(function(){"use strict";class uze{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?ZL.isErrorNoTelemetry(g)?new ZL(g.message+` `+g.stack):new Error(g.message+` `+g.stack):g},0)}}emit(g){this.listeners.forEach(x=>{x(g)})}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}}const hve=new uze;function bB(b){_ve(b)||hve.onUnexpectedError(b)}function pze(b){_ve(b)||hve.onUnexpectedExternalError(b)}function pQ(b){if(b instanceof Error){const{name:g,message:x,cause:O}=b,X=b.stacktrace||b.stack;return{$isError:!0,name:g,message:x,stack:X,noTelemetry:ZL.isErrorNoTelemetry(b),cause:O?pQ(O):void 0,code:b.code}}return b}const fQ="Canceled";function _ve(b){return b instanceof gve?!0:b instanceof Error&&b.name===fQ&&b.message===fQ}class gve extends Error{constructor(){super(fQ),this.name=this.message}}class ZL extends Error{constructor(g){super(g),this.name="CodeExpectedError"}static fromError(g){if(g instanceof ZL)return g;const x=new ZL;return x.message=g.message,x.stack=g.stack,x}static isErrorNoTelemetry(g){return g.name==="CodeExpectedError"}}class fm extends Error{constructor(g){super(g||"An unexpected bug occurred."),Object.setPrototypeOf(this,fm.prototype)}}function fze(b,g="Unreachable"){throw new Error(g)}function mze(b,g="unexpected state"){if(!b)throw typeof g=="string"?new fm(`Assertion Failed: ${g}`):g}function NW(b){if(!b()){debugger;b(),bB(new fm("Assertion Failed"))}}function mQ(b,g){let x=0;for(;x=0;Gi--)yield jn[Gi]}b.reverse=Ve;function ie(jn){return!jn||jn[Symbol.iterator]().next().done===!0}b.isEmpty=ie;function ut(jn){return jn[Symbol.iterator]().next().value}b.first=ut;function Qe(jn,Gi){let Ao=0;for(const Un of jn)if(Gi(Un,Ao++))return!0;return!1}b.some=Qe;function qe(jn,Gi){let Ao=0;for(const Un of jn)if(!Gi(Un,Ao++))return!1;return!0}b.every=qe;function Mn(jn,Gi){for(const Ao of jn)if(Gi(Ao))return Ao}b.find=Mn;function*Ln(jn,Gi){for(const Ao of jn)Gi(Ao)&&(yield Ao)}b.filter=Ln;function*rr(jn,Gi){let Ao=0;for(const Un of jn)yield Gi(Un,Ao++)}b.map=rr;function*kn(jn,Gi){let Ao=0;for(const Un of jn)yield*Gi(Un,Ao++)}b.flatMap=kn;function*Ti(...jn){for(const Gi of jn)_ze(Gi)?yield*Gi:yield Gi}b.concat=Ti;function uo(jn,Gi,Ao){let Un=Ao;for(const fl of jn)Un=Gi(Un,fl);return Un}b.reduce=uo;function Hn(jn){let Gi=0;for(const Ao of jn)Gi++;return Gi}b.length=Hn;function*mn(jn,Gi,Ao=jn.length){for(Gi<-jn.length&&(Gi=0),Gi<0&&(Gi+=jn.length),Ao<0?Ao+=jn.length:Ao>jn.length&&(Ao=jn.length);Gi1)throw new AggregateError(g,"Encountered errors while disposing of store");return Array.isArray(b)?[]:b}else if(b)return b.dispose(),b}function gze(...b){return MW(()=>yve(b))}class yze{constructor(g){this._isDisposed=!1,this._fn=g}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function MW(b){return new yze(b)}const VB=class VB{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{yve(this._toDispose)}finally{this._toDispose.clear()}}add(g){if(!g||g===uN.None)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?VB.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(g),g}delete(g){if(g){if(g===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(g),g.dispose()}}};VB.DISABLE_DISPOSED_WARNING=!1;let PW=VB;const aZ=class aZ{constructor(){this._store=new PW,this._store}dispose(){this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}};aZ.None=Object.freeze({dispose(){}});let uN=aZ;const m2=class m2{constructor(g){this.element=g,this.next=m2.Undefined,this.prev=m2.Undefined}};m2.Undefined=new m2(void 0);let Dp=m2;class vze{constructor(){this._first=Dp.Undefined,this._last=Dp.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Dp.Undefined}clear(){let g=this._first;for(;g!==Dp.Undefined;){const x=g.next;g.prev=Dp.Undefined,g.next=Dp.Undefined,g=x}this._first=Dp.Undefined,this._last=Dp.Undefined,this._size=0}unshift(g){return this._insert(g,!1)}push(g){return this._insert(g,!0)}_insert(g,x){const O=new Dp(g);if(this._first===Dp.Undefined)this._first=O,this._last=O;else if(x){const de=this._last;this._last=O,O.prev=de,de.next=O}else{const de=this._first;this._first=O,O.next=de,de.prev=O}this._size+=1;let X=!1;return()=>{X||(X=!0,this._remove(O))}}shift(){if(this._first!==Dp.Undefined){const g=this._first.element;return this._remove(this._first),g}}pop(){if(this._last!==Dp.Undefined){const g=this._last.element;return this._remove(this._last),g}}_remove(g){if(g.prev!==Dp.Undefined&&g.next!==Dp.Undefined){const x=g.prev;x.next=g.next,g.next.prev=x}else g.prev===Dp.Undefined&&g.next===Dp.Undefined?(this._first=Dp.Undefined,this._last=Dp.Undefined):g.next===Dp.Undefined?(this._last=this._last.prev,this._last.next=Dp.Undefined):g.prev===Dp.Undefined&&(this._first=this._first.next,this._first.prev=Dp.Undefined);this._size-=1}*[Symbol.iterator](){let g=this._first;for(;g!==Dp.Undefined;)yield g.element,g=g.next}}function bze(){return globalThis._VSCODE_NLS_MESSAGES}function vve(){return globalThis._VSCODE_NLS_LANGUAGE}const Tze=vve()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function bve(b,g){let x;return g.length===0?x=b:x=b.replace(/\{(\d+)\}/g,(O,X)=>{const de=X[0],Re=g[de];let Ve=O;return typeof Re=="string"?Ve=Re:(typeof Re=="number"||typeof Re=="boolean"||Re===void 0||Re===null)&&(Ve=String(Re)),Ve}),Tze&&(x="["+x.replace(/[aouei]/g,"$&$&")+"]"),x}function Ds(b,g,...x){return bve(typeof b=="number"?Sze(b,g):g,x)}function Sze(b,g){const x=bze()?.[b];if(typeof x!="string"){if(typeof g=="string")return g;throw new Error(`!!! NLS MISSING: ${b} !!!`)}return x}const e2="en";let hQ=!1,_Q=!1,gQ=!1,Tve=!1,yQ=!1,SB,vQ=e2,Sve=e2,Eze,qA;const JA=globalThis;let Yy;typeof JA.vscode<"u"&&typeof JA.vscode.process<"u"?Yy=JA.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Yy=process);const Aze=typeof Yy?.versions?.electron=="string"&&Yy?.type==="renderer";if(typeof Yy=="object"){hQ=Yy.platform==="win32",_Q=Yy.platform==="darwin",gQ=Yy.platform==="linux",gQ&&Yy.env.SNAP&&Yy.env.SNAP_REVISION,Yy.env.CI||Yy.env.BUILD_ARTIFACTSTAGINGDIRECTORY||Yy.env.GITHUB_WORKSPACE,SB=e2,vQ=e2;const b=Yy.env.VSCODE_NLS_CONFIG;if(b)try{const g=JSON.parse(b);SB=g.userLocale,Sve=g.osLocale,vQ=g.resolvedLanguage||e2,Eze=g.languagePack?.translationsConfigFile}catch{}Tve=!0}else typeof navigator=="object"&&!Aze?(qA=navigator.userAgent,hQ=qA.indexOf("Windows")>=0,_Q=qA.indexOf("Macintosh")>=0,(qA.indexOf("Macintosh")>=0||qA.indexOf("iPad")>=0||qA.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,gQ=qA.indexOf("Linux")>=0,qA?.indexOf("Mobi")>=0,yQ=!0,vQ=vve()||e2,SB=navigator.language.toLowerCase(),Sve=SB):console.error("Unable to resolve platform.");const LW=hQ,Ize=_Q,xze=Tve,Rze=yQ,Dze=yQ&&typeof JA.importScripts=="function"?JA.origin:void 0,GE=qA,Cze=typeof JA.postMessage=="function"&&!JA.importScripts;(()=>{if(Cze){const b=[];JA.addEventListener("message",x=>{if(x.data&&x.data.vscodeScheduleAsyncWork)for(let O=0,X=b.length;O{const O=++g;b.push({id:O,callback:x}),JA.postMessage({vscodeScheduleAsyncWork:O},"*")}}return b=>setTimeout(b)})();const Nze=!!(GE&&GE.indexOf("Chrome")>=0);GE&&GE.indexOf("Firefox")>=0,!Nze&&GE&&GE.indexOf("Safari")>=0,GE&&GE.indexOf("Edg/")>=0,GE&&GE.indexOf("Android")>=0;let t2;const bQ=globalThis.vscode;if(typeof bQ<"u"&&typeof bQ.process<"u"){const b=bQ.process;t2={get platform(){return b.platform},get arch(){return b.arch},get env(){return b.env},cwd(){return b.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?t2={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:t2={get platform(){return LW?"win32":Ize?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const EB=t2.cwd,Eve=t2.env,Mze=t2.platform,Pze=globalThis.performance.now.bind(globalThis.performance);class AB{static create(g){return new AB(g)}constructor(g){this._now=g===!1?Date.now:Pze,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}const Lze=100,Ave=6e4;function Ive(){return!!Eve.VSCODE_DEV}var TQ;(function(b){b.None=()=>uN.None;function g(Yt,Fo,to){return Mn(Yt,()=>{},0,void 0,Fo??!0,void 0,to)}b.defer=g;function x(Yt){return(Fo,to=null,Yo)=>{let fi=!1,bs;return bs=Yt(Il=>{if(!fi)return bs?bs.dispose():fi=!0,Fo.call(to,Il)},null,Yo),fi&&bs.dispose(),bs}}b.once=x;function O(Yt,Fo){return b.once(b.filter(Yt,Fo))}b.onceIf=O;function X(Yt,Fo,to){return Qe((Yo,fi=null,bs)=>Yt(Il=>Yo.call(fi,Fo(Il)),null,bs),to)}b.map=X;function de(Yt,Fo,to){return Qe((Yo,fi=null,bs)=>Yt(Il=>{Fo(Il),Yo.call(fi,Il)},null,bs),to)}b.forEach=de;function Re(Yt,Fo,to){return Qe((Yo,fi=null,bs)=>Yt(Il=>Fo(Il)&&Yo.call(fi,Il),null,bs),to)}b.filter=Re;function Ve(Yt){return Yt}b.signal=Ve;function ie(...Yt){return(Fo,to=null,Yo)=>{const fi=gze(...Yt.map(bs=>bs(Il=>Fo.call(to,Il))));return qe(fi,Yo)}}b.any=ie;function ut(Yt,Fo,to,Yo){let fi=to;return X(Yt,bs=>(fi=Fo(fi,bs),fi),Yo)}b.reduce=ut;function Qe(Yt,Fo){let to;const Yo={onWillAddFirstListener(){to=Yt(fi.fire,fi)},onDidRemoveLastListener(){to?.dispose()}},fi=new cS(Yo);return Fo?.add(fi),fi.event}function qe(Yt,Fo){return Fo instanceof Array?Fo.push(Yt):Fo&&Fo.add(Yt),Yt}function Mn(Yt,Fo,to=100,Yo=!1,fi=!1,bs,Il){let mm,Fd,Ei,zd=0,Of;const Wf={leakWarningThreshold:bs,onWillAddFirstListener(){mm=Yt(v2=>{zd++,Fd=Fo(Fd,v2),Yo&&!Ei&&(UE.fire(Fd),Fd=void 0),Of=()=>{const qW=Fd;Fd=void 0,Ei=void 0,(!Yo||zd>1)&&UE.fire(qW),zd=0},typeof to=="number"?(Ei&&clearTimeout(Ei),Ei=setTimeout(Of,to)):Ei===void 0&&(Ei=null,queueMicrotask(Of))})},onWillRemoveListener(){fi&&zd>0&&Of?.()},onDidRemoveLastListener(){Of=void 0,mm.dispose()}},UE=new cS(Wf);return Il?.add(UE),UE.event}b.debounce=Mn;function Ln(Yt,Fo=0,to,Yo){return b.debounce(Yt,(fi,bs)=>fi?(fi.push(bs),fi):[bs],Fo,void 0,to??!0,void 0,Yo)}b.accumulate=Ln;function rr(Yt,Fo,to=100,Yo=!0,fi=!0,bs,Il){let mm,Fd,Ei,zd=0;const Of={leakWarningThreshold:bs,onWillAddFirstListener(){mm=Yt(UE=>{zd++,Fd=Fo(Fd,UE),Ei===void 0&&(Yo&&(Wf.fire(Fd),Fd=void 0,zd=0),typeof to=="number"?Ei=setTimeout(()=>{fi&&zd>0&&Wf.fire(Fd),Fd=void 0,Ei=void 0,zd=0},to):(Ei=0,queueMicrotask(()=>{fi&&zd>0&&Wf.fire(Fd),Fd=void 0,Ei=void 0,zd=0})))})},onDidRemoveLastListener(){mm.dispose()}},Wf=new cS(Of);return Il?.add(Wf),Wf.event}b.throttle=rr;function kn(Yt,Fo=(Yo,fi)=>Yo===fi,to){let Yo=!0,fi;return Re(Yt,bs=>{const Il=Yo||!Fo(bs,fi);return Yo=!1,fi=bs,Il},to)}b.latch=kn;function Ti(Yt,Fo,to){return[b.filter(Yt,Fo,to),b.filter(Yt,Yo=>!Fo(Yo),to)]}b.split=Ti;function uo(Yt,Fo,to=!1,Yo=[],fi){let bs=Yo.slice(),Il;Ive()&&(Il={stack:IB.create(),timerId:setTimeout(()=>{bs&&bs.length>0&&Il&&!Il.warned&&(Il.warned=!0,console.warn(`[Event.buffer][${Fo}] potential LEAK detected: ${bs.length} events buffered for ${Ave/1e3}s without being consumed. Buffered here:`),Il.stack.print())},Ave),warned:!1},fi&&fi.add(MW(()=>clearTimeout(Il.timerId))));const mm=()=>{Il&&clearTimeout(Il.timerId)};let Fd=Yt(Of=>{bs?(bs.push(Of),Ive()&&Il&&!Il.warned&&bs.length>=Lze&&(Il.warned=!0,console.warn(`[Event.buffer][${Fo}] potential LEAK detected: ${bs.length} events buffered without being consumed. Buffered here:`),Il.stack.print())):zd.fire(Of)});fi&&fi.add(Fd);const Ei=()=>{bs?.forEach(Of=>zd.fire(Of)),bs=null,mm()},zd=new cS({onWillAddFirstListener(){Fd||(Fd=Yt(Of=>zd.fire(Of)),fi&&fi.add(Fd))},onDidAddFirstListener(){bs&&(to?setTimeout(Ei):Ei())},onDidRemoveLastListener(){Fd&&Fd.dispose(),Fd=null,mm()}});return fi&&fi.add(zd),zd.event}b.buffer=uo;function Hn(Yt,Fo){return(Yo,fi,bs)=>{const Il=Fo(new ga);return Yt(function(mm){const Fd=Il.evaluate(mm);Fd!==mn&&Yo.call(fi,Fd)},void 0,bs)}}b.chain=Hn;const mn=Symbol("HaltChainable");class ga{constructor(){this.steps=[]}map(Fo){return this.steps.push(Fo),this}forEach(Fo){return this.steps.push(to=>(Fo(to),to)),this}filter(Fo){return this.steps.push(to=>Fo(to)?to:mn),this}reduce(Fo,to){let Yo=to;return this.steps.push(fi=>(Yo=Fo(Yo,fi),Yo)),this}latch(Fo=(to,Yo)=>to===Yo){let to=!0,Yo;return this.steps.push(fi=>{const bs=to||!Fo(fi,Yo);return to=!1,Yo=fi,bs?fi:mn}),this}evaluate(Fo){for(const to of this.steps)if(Fo=to(Fo),Fo===mn)break;return Fo}}function ho(Yt,Fo,to=Yo=>Yo){const Yo=(...mm)=>Il.fire(to(...mm)),fi=()=>Yt.on(Fo,Yo),bs=()=>Yt.removeListener(Fo,Yo),Il=new cS({onWillAddFirstListener:fi,onDidRemoveLastListener:bs});return Il.event}b.fromNodeEventEmitter=ho;function vl(Yt,Fo,to=Yo=>Yo){const Yo=(...mm)=>Il.fire(to(...mm)),fi=()=>Yt.addEventListener(Fo,Yo),bs=()=>Yt.removeEventListener(Fo,Yo),Il=new cS({onWillAddFirstListener:fi,onDidRemoveLastListener:bs});return Il.event}b.fromDOMEventEmitter=vl;function jn(Yt,Fo){let to,Yo;const fi=new Promise(bs=>{Yo=x(Yt)(bs),IQ(Yo,Fo),to=()=>{xve(Yo,Fo)}});return fi.cancel=to,Fo&&fi.finally(()=>xve(Yo,Fo)),fi}b.toPromise=jn;function Gi(Yt,Fo){return Yt(to=>Fo.fire(to))}b.forward=Gi;function Ao(Yt,Fo,to){return Fo(to),Yt(Yo=>Fo(Yo))}b.runAndSubscribe=Ao;class Un{constructor(Fo,to){this._observable=Fo,this._counter=0,this._hasChanged=!1;const Yo={onWillAddFirstListener:()=>{Fo.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Fo.removeObserver(this)}};this.emitter=new cS(Yo),to&&to.add(this.emitter)}beginUpdate(Fo){this._counter++}handlePossibleChange(Fo){}handleChange(Fo,to){this._hasChanged=!0}endUpdate(Fo){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function fl(Yt,Fo){return new Un(Yt,Fo).emitter.event}b.fromObservable=fl;function Ra(Yt){return(Fo,to,Yo)=>{let fi=0,bs=!1;const Il={beginUpdate(){fi++},endUpdate(){fi--,fi===0&&(Yt.reportChanges(),bs&&(bs=!1,Fo.call(to)))},handlePossibleChange(){},handleChange(){bs=!0}};Yt.addObserver(Il),Yt.reportChanges();const mm={dispose(){Yt.removeObserver(Il)}};return IQ(mm,Yo),mm}}b.fromObservableLight=Ra})(TQ||(TQ={}));const h2=class h2{constructor(g){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${g}_${h2._idPool++}`,h2.all.add(this)}start(g){this._stopWatch=new AB,this.listenerCount=g}stop(){if(this._stopWatch){const g=this._stopWatch.elapsed();this.durations.push(g),this.elapsedOverall+=g,this.invocationCount+=1,this._stopWatch=void 0}}};h2.all=new Set,h2._idPool=0;let SQ=h2,kze=-1;const jB=class jB{constructor(g,x,O=(jB._idPool++).toString(16).padStart(3,"0")){this._errorHandler=g,this.threshold=x,this.name=O,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(g,x){const O=this.threshold;if(O<=0||x.3?"dominated":"popular",Qe=new xB(ut,ie,de,x,Ve);this._errorHandler(Qe)}return()=>{const de=this._stacks.get(g.value)||0;this._stacks.set(g.value,de-1)}}getMostFrequentStack(){if(!this._stacks)return;let g,x=0;for(const[O,X]of this._stacks)(!g||x{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const Ve=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Ve);const ie=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],ut=ie[1]/this._size>.3?"dominated":"popular",Qe=new wze(ut,`${Ve}. HINT: Stack shows most frequent listener (${ie[1]}-times)`,ie[0],this._size,this._options?.leakWarningName);return(this._options?.onListenerError||bB)(Qe),uN.None}if(this._disposed)return uN.None;x&&(g=g.bind(x));const X=new AQ(g);let de;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(X.stack=IB.create(),de=this._leakageMon.check(X.stack,this._size+1)),this._listeners?this._listeners instanceof AQ?(this._deliveryQueue??=new Wze,this._listeners=[this._listeners,X]):this._listeners.push(X):(this._options?.onWillAddFirstListener?.(this),this._listeners=X,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const Re=MW(()=>{de?.(),this._removeListener(X)});return IQ(Re,O),Re},this._event}_removeListener(g){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const x=this._listeners,O=x.indexOf(g);if(O===-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--,x[O]=void 0;const X=this._deliveryQueue.current===this;if(this._size*Oze<=x.length){let de=0;for(let Re=0;Re0}}class Wze{constructor(){this.i=-1,this.end=0}enqueue(g,x,O){this.i=0,this.end=O,this.current=g,this.value=x}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function IQ(b,g){g instanceof PW?g.add(b):Array.isArray(g)&&g.push(b)}function xve(b,g){if(g instanceof PW)g.delete(b);else if(Array.isArray(g)){const x=g.indexOf(b);x!==-1&&g.splice(x,1)}b.dispose()}function Fze(b){return b}class zze{constructor(g,x){this.lastCache=void 0,this.lastArgKey=void 0,typeof g=="function"?(this._fn=g,this._computeKey=Fze):(this._fn=x,this._computeKey=g.getCacheKey)}get(g){const x=this._computeKey(g);return this.lastArgKey!==x&&(this.lastArgKey=x,this.lastCache=this._fn(g)),this.lastCache}}var pN;(function(b){b[b.Uninitialized=0]="Uninitialized",b[b.Running=1]="Running",b[b.Completed=2]="Completed"})(pN||(pN={}));class xQ{constructor(g){this.executor=g,this._state=pN.Uninitialized}get value(){if(this._state===pN.Uninitialized){this._state=pN.Running;try{this._value=this.executor()}catch(g){this._error=g}finally{this._state=pN.Completed}}else if(this._state===pN.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function Bze(b){return b.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Gze(b){return b.source==="^"||b.source==="^$"||b.source==="$"||b.source==="^\\s*$"?!1:!!(b.exec("")&&b.lastIndex===0)}function Vze(b){return b.split(/\r\n|\r|\n/)}function jze(b){for(let g=0,x=b.length;g=0;x--){const O=b.charCodeAt(x);if(O!==32&&O!==9)return x}return-1}function Rve(b){return b>=65&&b<=90}function RQ(b,g){const x=Math.min(b.length,g.length);let O;for(O=0;OJSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),jE.cache=new zze(g=>{const x=g.split(",");function O(qe){const Mn=new Map;for(let Ln=0;Ln!qe.startsWith("_")&&Object.hasOwn(Re,qe));Ve.length===0&&(Ve=["_default"]);let ie;for(const qe of Ve){const Mn=O(Re[qe]);ie=de(ie,Mn)}const ut=O(Re._common),Qe=X(ut,ie);return new jE(Qe)}),jE._locales=new xQ(()=>Object.keys(jE.ambiguousCharacterData.value).filter(g=>!g.startsWith("_")));let kW=jE;const _2=class _2{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(_2.getRawData())].flat())),this._data}static isInvisibleCharacter(g){return _2.getData().has(g)}static get codePoints(){return _2.getData()}};_2._data=void 0;let wW=_2;const NQ="default",Yze="$initialize";class $ze{constructor(g,x,O,X,de){this.vsWorker=g,this.req=x,this.channel=O,this.method=X,this.args=de,this.type=0}}class Dve{constructor(g,x,O,X){this.vsWorker=g,this.seq=x,this.res=O,this.err=X,this.type=1}}class Qze{constructor(g,x,O,X,de){this.vsWorker=g,this.req=x,this.channel=O,this.eventName=X,this.arg=de,this.type=2}}class Zze{constructor(g,x,O){this.vsWorker=g,this.req=x,this.event=O,this.type=3}}class e5e{constructor(g,x){this.vsWorker=g,this.req=x,this.type=4}}class t5e{constructor(g){this._workerId=-1,this._handler=g,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(g){this._workerId=g}async sendMessage(g,x,O){const X=String(++this._lastSentReq);return new Promise((de,Re)=>{this._pendingReplies[X]={resolve:de,reject:Re},this._send(new $ze(this._workerId,X,g,x,O))})}listen(g,x,O){let X=null;const de=new cS({onWillAddFirstListener:()=>{X=String(++this._lastSentReq),this._pendingEmitters.set(X,de),this._send(new Qze(this._workerId,X,g,x,O))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(X),this._send(new e5e(this._workerId,X)),X=null}});return de.event}handleMessage(g){!g||!g.vsWorker||this._workerId!==-1&&g.vsWorker!==this._workerId||this._handleMessage(g)}createProxyToRemoteChannel(g,x){const O={get:(X,de)=>(typeof de=="string"&&!X[de]&&(Nve(de)?X[de]=Re=>this.listen(g,de,Re):Cve(de)?X[de]=this.listen(g,de,void 0):de.charCodeAt(0)===36&&(X[de]=async(...Re)=>(await x?.(),this.sendMessage(g,de,Re)))),X[de])};return new Proxy(Object.create(null),O)}_handleMessage(g){switch(g.type){case 1:return this._handleReplyMessage(g);case 0:return this._handleRequestMessage(g);case 2:return this._handleSubscribeEventMessage(g);case 3:return this._handleEventMessage(g);case 4:return this._handleUnsubscribeEventMessage(g)}}_handleReplyMessage(g){if(!this._pendingReplies[g.seq]){console.warn("Got reply to unknown seq");return}const x=this._pendingReplies[g.seq];if(delete this._pendingReplies[g.seq],g.err){let O=g.err;if(g.err.$isError){const X=new Error;X.name=g.err.name,X.message=g.err.message,X.stack=g.err.stack,O=X}x.reject(O);return}x.resolve(g.res)}_handleRequestMessage(g){const x=g.req;this._handler.handleMessage(g.channel,g.method,g.args).then(X=>{this._send(new Dve(this._workerId,x,X,void 0))},X=>{X.detail instanceof Error&&(X.detail=pQ(X.detail)),this._send(new Dve(this._workerId,x,void 0,pQ(X)))})}_handleSubscribeEventMessage(g){const x=g.req,O=this._handler.handleEvent(g.channel,g.eventName,g.arg)(X=>{this._send(new Zze(this._workerId,x,X))});this._pendingEvents.set(x,O)}_handleEventMessage(g){const x=this._pendingEmitters.get(g.req);if(x===void 0){console.warn("Got event for unknown req");return}x.fire(g.event)}_handleUnsubscribeEventMessage(g){const x=this._pendingEvents.get(g.req);if(x===void 0){console.warn("Got unsubscribe for unknown req");return}x.dispose(),this._pendingEvents.delete(g.req)}_send(g){const x=[];if(g.type===0)for(let O=0;O{g(O,X)},handleMessage:(O,X,de)=>this._handleMessage(O,X,de),handleEvent:(O,X,de)=>this._handleEvent(O,X,de)}),this.requestHandler=x(this)}onmessage(g){this._protocol.handleMessage(g)}_handleMessage(g,x,O){if(g===NQ&&x===Yze)return this.initialize(O[0]);const X=g===NQ?this.requestHandler:this._localChannels.get(g);if(!X)return Promise.reject(new Error(`Missing channel ${g} on worker thread`));const de=X[x];if(typeof de!="function")return Promise.reject(new Error(`Missing method ${x} on worker thread channel ${g}`));try{return Promise.resolve(de.apply(X,O))}catch(Re){return Promise.reject(Re)}}_handleEvent(g,x,O){const X=g===NQ?this.requestHandler:this._localChannels.get(g);if(!X)throw new Error(`Missing channel ${g} on worker thread`);if(Nve(x)){const de=X[x];if(typeof de!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);const Re=de.call(X,O);if(typeof Re!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);return Re}if(Cve(x)){const de=X[x];if(typeof de!="function")throw new Error(`Missing event ${x} on request handler.`);return de}throw new Error(`Malformed event name ${x}`)}getChannel(g){let x=this._remoteChannels.get(g);return x===void 0&&(x=this._protocol.createProxyToRemoteChannel(g),this._remoteChannels.set(g,x)),x}async initialize(g){this._protocol.setWorkerId(g)}}let Mve=!1;function r5e(b){if(Mve)throw new Error("WebWorker already initialized!");Mve=!0;const g=new n5e(x=>globalThis.postMessage(x),x=>b(x));return globalThis.onmessage=x=>{g.onmessage(x.data)},g}class ER{constructor(g,x,O,X){this.originalStart=g,this.originalLength=x,this.modifiedStart=O,this.modifiedLength=X}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new xQ(()=>new Uint8Array(256));function Pve(b,g){return(g<<5)-g+b|0}function i5e(b,g){g=Pve(149417,g);for(let x=0,O=b.length;x0||this.m_modifiedCount>0)&&this.m_changes.push(new ER(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(g,x){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,x),this.m_originalCount++}AddModifiedElement(g,x){this.m_originalStart=Math.min(this.m_originalStart,g),this.m_modifiedStart=Math.min(this.m_modifiedStart,x),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 AR{constructor(g,x,O=null){this.ContinueProcessingPredicate=O,this._originalSequence=g,this._modifiedSequence=x;const[X,de,Re]=AR._getElements(g),[Ve,ie,ut]=AR._getElements(x);this._hasStrings=Re&&ut,this._originalStringElements=X,this._originalElementsOrHash=de,this._modifiedStringElements=Ve,this._modifiedElementsOrHash=ie,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(g){return g.length>0&&typeof g[0]=="string"}static _getElements(g){const x=g.getElements();if(AR._isStringArray(x)){const O=new Int32Array(x.length);for(let X=0,de=x.length;X=g&&X>=O&&this.ElementsAreEqual(x,X);)x--,X--;if(g>x||O>X){let qe;return O<=X?(n2.Assert(g===x+1,"originalStart should only be one more than originalEnd"),qe=[new ER(g,0,O,X-O+1)]):g<=x?(n2.Assert(O===X+1,"modifiedStart should only be one more than modifiedEnd"),qe=[new ER(g,x-g+1,O,0)]):(n2.Assert(g===x+1,"originalStart should only be one more than originalEnd"),n2.Assert(O===X+1,"modifiedStart should only be one more than modifiedEnd"),qe=[]),qe}const Re=[0],Ve=[0],ie=this.ComputeRecursionPoint(g,x,O,X,Re,Ve,de),ut=Re[0],Qe=Ve[0];if(ie!==null)return ie;if(!de[0]){const qe=this.ComputeDiffRecursive(g,ut,O,Qe,de);let Mn=[];return de[0]?Mn=[new ER(ut+1,x-(ut+1)+1,Qe+1,X-(Qe+1)+1)]:Mn=this.ComputeDiffRecursive(ut+1,x,Qe+1,X,de),this.ConcatenateChanges(qe,Mn)}return[new ER(g,x-g+1,O,X-O+1)]}WALKTRACE(g,x,O,X,de,Re,Ve,ie,ut,Qe,qe,Mn,Ln,rr,kn,Ti,uo,Hn){let mn=null,ga=null,ho=new kve,vl=x,jn=O,Gi=Ln[0]-Ti[0]-X,Ao=-1073741824,Un=this.m_forwardHistory.length-1;do{const fl=Gi+g;fl===vl||fl=0&&(ut=this.m_forwardHistory[Un],g=ut[0],vl=1,jn=ut.length-1)}while(--Un>=-1);if(mn=ho.getReverseChanges(),Hn[0]){let fl=Ln[0]+1,Ra=Ti[0]+1;if(mn!==null&&mn.length>0){const Yt=mn[mn.length-1];fl=Math.max(fl,Yt.getOriginalEnd()),Ra=Math.max(Ra,Yt.getModifiedEnd())}ga=[new ER(fl,Mn-fl+1,Ra,kn-Ra+1)]}else{ho=new kve,vl=Re,jn=Ve,Gi=Ln[0]-Ti[0]-ie,Ao=1073741824,Un=uo?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const fl=Gi+de;fl===vl||fl=Qe[fl+1]?(qe=Qe[fl+1]-1,rr=qe-Gi-ie,qe>Ao&&ho.MarkNextChange(),Ao=qe+1,ho.AddOriginalElement(qe+1,rr+1),Gi=fl+1-de):(qe=Qe[fl-1],rr=qe-Gi-ie,qe>Ao&&ho.MarkNextChange(),Ao=qe,ho.AddModifiedElement(qe+1,rr+1),Gi=fl-1-de),Un>=0&&(Qe=this.m_reverseHistory[Un],de=Qe[0],vl=1,jn=Qe.length-1)}while(--Un>=-1);ga=ho.getChanges()}return this.ConcatenateChanges(mn,ga)}ComputeRecursionPoint(g,x,O,X,de,Re,Ve){let ie=0,ut=0,Qe=0,qe=0,Mn=0,Ln=0;g--,O--,de[0]=0,Re[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const rr=x-g+(X-O),kn=rr+1,Ti=new Int32Array(kn),uo=new Int32Array(kn),Hn=X-O,mn=x-g,ga=g-O,ho=x-X,jn=(mn-Hn)%2===0;Ti[Hn]=g,uo[mn]=x,Ve[0]=!1;for(let Gi=1;Gi<=rr/2+1;Gi++){let Ao=0,Un=0;Qe=this.ClipDiagonalBound(Hn-Gi,Gi,Hn,kn),qe=this.ClipDiagonalBound(Hn+Gi,Gi,Hn,kn);for(let Ra=Qe;Ra<=qe;Ra+=2){Ra===Qe||RaAo+Un&&(Ao=ie,Un=ut),!jn&&Math.abs(Ra-mn)<=Gi-1&&ie>=uo[Ra])return de[0]=ie,Re[0]=ut,Yt<=uo[Ra]&&Gi<=1448?this.WALKTRACE(Hn,Qe,qe,ga,mn,Mn,Ln,ho,Ti,uo,ie,x,de,ut,X,Re,jn,Ve):null}const fl=(Ao-g+(Un-O)-Gi)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ao,fl))return Ve[0]=!0,de[0]=Ao,Re[0]=Un,fl>0&&Gi<=1448?this.WALKTRACE(Hn,Qe,qe,ga,mn,Mn,Ln,ho,Ti,uo,ie,x,de,ut,X,Re,jn,Ve):(g++,O++,[new ER(g,x-g+1,O,X-O+1)]);Mn=this.ClipDiagonalBound(mn-Gi,Gi,mn,kn),Ln=this.ClipDiagonalBound(mn+Gi,Gi,mn,kn);for(let Ra=Mn;Ra<=Ln;Ra+=2){Ra===Mn||Ra=uo[Ra+1]?ie=uo[Ra+1]-1:ie=uo[Ra-1],ut=ie-(Ra-mn)-ho;const Yt=ie;for(;ie>g&&ut>O&&this.ElementsAreEqual(ie,ut);)ie--,ut--;if(uo[Ra]=ie,jn&&Math.abs(Ra-Hn)<=Gi&&ie<=Ti[Ra])return de[0]=ie,Re[0]=ut,Yt>=Ti[Ra]&&Gi<=1448?this.WALKTRACE(Hn,Qe,qe,ga,mn,Mn,Ln,ho,Ti,uo,ie,x,de,ut,X,Re,jn,Ve):null}if(Gi<=1447){let Ra=new Int32Array(qe-Qe+2);Ra[0]=Hn-Qe+1,r2.Copy2(Ti,Qe,Ra,1,qe-Qe+1),this.m_forwardHistory.push(Ra),Ra=new Int32Array(Ln-Mn+2),Ra[0]=mn-Mn+1,r2.Copy2(uo,Mn,Ra,1,Ln-Mn+1),this.m_reverseHistory.push(Ra)}}return this.WALKTRACE(Hn,Qe,qe,ga,mn,Mn,Ln,ho,Ti,uo,ie,x,de,ut,X,Re,jn,Ve)}PrettifyChanges(g){for(let x=0;x0,Ve=O.modifiedLength>0;for(;O.originalStart+O.originalLength=0;x--){const O=g[x];let X=0,de=0;if(x>0){const qe=g[x-1];X=qe.originalStart+qe.originalLength,de=qe.modifiedStart+qe.modifiedLength}const Re=O.originalLength>0,Ve=O.modifiedLength>0;let ie=0,ut=this._boundaryScore(O.originalStart,O.originalLength,O.modifiedStart,O.modifiedLength);for(let qe=1;;qe++){const Mn=O.originalStart-qe,Ln=O.modifiedStart-qe;if(Mnut&&(ut=kn,ie=qe)}O.originalStart-=ie,O.modifiedStart-=ie;const Qe=[null];if(x>0&&this.ChangesOverlap(g[x-1],g[x],Qe)){g[x-1]=Qe[0],g.splice(x,1),x++;continue}}if(this._hasStrings)for(let x=1,O=g.length;x0&&Ln>ie&&(ie=Ln,ut=qe,Qe=Mn)}return ie>0?[ut,Qe]:null}_contiguousSequenceScore(g,x,O){let X=0;for(let de=0;de=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[g])}_OriginalRegionIsBoundary(g,x){if(this._OriginalIsBoundary(g)||this._OriginalIsBoundary(g-1))return!0;if(x>0){const O=g+x;if(this._OriginalIsBoundary(O-1)||this._OriginalIsBoundary(O))return!0}return!1}_ModifiedIsBoundary(g){return g<=0||g>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[g])}_ModifiedRegionIsBoundary(g,x){if(this._ModifiedIsBoundary(g)||this._ModifiedIsBoundary(g-1))return!0;if(x>0){const O=g+x;if(this._ModifiedIsBoundary(O-1)||this._ModifiedIsBoundary(O))return!0}return!1}_boundaryScore(g,x,O,X){const de=this._OriginalRegionIsBoundary(g,x)?1:0,Re=this._ModifiedRegionIsBoundary(O,X)?1:0;return de+Re}ConcatenateChanges(g,x){const O=[];if(g.length===0||x.length===0)return x.length>0?x:g;if(this.ChangesOverlap(g[g.length-1],x[0],O)){const X=new Array(g.length+x.length-1);return r2.Copy(g,0,X,0,g.length-1),X[g.length-1]=O[0],r2.Copy(x,1,X,g.length,x.length-1),X}else{const X=new Array(g.length+x.length);return r2.Copy(g,0,X,0,g.length),r2.Copy(x,0,X,g.length,x.length),X}}ChangesOverlap(g,x,O){if(n2.Assert(g.originalStart<=x.originalStart,"Left change is not less than or equal to right change"),n2.Assert(g.modifiedStart<=x.modifiedStart,"Left change is not less than or equal to right change"),g.originalStart+g.originalLength>=x.originalStart||g.modifiedStart+g.modifiedLength>=x.modifiedStart){const X=g.originalStart;let de=g.originalLength;const Re=g.modifiedStart;let Ve=g.modifiedLength;return g.originalStart+g.originalLength>=x.originalStart&&(de=x.originalStart+x.originalLength-g.originalStart),g.modifiedStart+g.modifiedLength>=x.modifiedStart&&(Ve=x.modifiedStart+x.modifiedLength-g.modifiedStart),O[0]=new ER(X,de,Re,Ve),!0}else return O[0]=null,!1}ClipDiagonalBound(g,x,O,X){if(g>=0&&gO||g===O&&x>X?(this.startLineNumber=O,this.startColumn=X,this.endLineNumber=g,this.endColumn=x):(this.startLineNumber=g,this.startColumn=x,this.endLineNumber=O,this.endColumn=X)}isEmpty(){return ka.isEmpty(this)}static isEmpty(g){return g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn}containsPosition(g){return ka.containsPosition(this,g)}static containsPosition(g,x){return!(x.lineNumberg.endLineNumber||x.lineNumber===g.startLineNumber&&x.columng.endColumn)}static strictContainsPosition(g,x){return!(x.lineNumberg.endLineNumber||x.lineNumber===g.startLineNumber&&x.column<=g.startColumn||x.lineNumber===g.endLineNumber&&x.column>=g.endColumn)}containsRange(g){return ka.containsRange(this,g)}static containsRange(g,x){return!(x.startLineNumberg.endLineNumber||x.endLineNumber>g.endLineNumber||x.startLineNumber===g.startLineNumber&&x.startColumng.endColumn)}strictContainsRange(g){return ka.strictContainsRange(this,g)}static strictContainsRange(g,x){return!(x.startLineNumberg.endLineNumber||x.endLineNumber>g.endLineNumber||x.startLineNumber===g.startLineNumber&&x.startColumn<=g.startColumn||x.endLineNumber===g.endLineNumber&&x.endColumn>=g.endColumn)}plusRange(g){return ka.plusRange(this,g)}static plusRange(g,x){let O,X,de,Re;return x.startLineNumberg.endLineNumber?(de=x.endLineNumber,Re=x.endColumn):x.endLineNumber===g.endLineNumber?(de=x.endLineNumber,Re=Math.max(x.endColumn,g.endColumn)):(de=g.endLineNumber,Re=g.endColumn),new ka(O,X,de,Re)}intersectRanges(g){return ka.intersectRanges(this,g)}static intersectRanges(g,x){let O=g.startLineNumber,X=g.startColumn,de=g.endLineNumber,Re=g.endColumn;const Ve=x.startLineNumber,ie=x.startColumn,ut=x.endLineNumber,Qe=x.endColumn;return Out?(de=ut,Re=Qe):de===ut&&(Re=Math.min(Re,Qe)),O>de||O===de&&X>Re?null:new ka(O,X,de,Re)}equalsRange(g){return ka.equalsRange(this,g)}static equalsRange(g,x){return!g&&!x?!0:!!g&&!!x&&g.startLineNumber===x.startLineNumber&&g.startColumn===x.startColumn&&g.endLineNumber===x.endLineNumber&&g.endColumn===x.endColumn}getEndPosition(){return ka.getEndPosition(this)}static getEndPosition(g){return new Jl(g.endLineNumber,g.endColumn)}getStartPosition(){return ka.getStartPosition(this)}static getStartPosition(g){return new Jl(g.startLineNumber,g.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(g,x){return new ka(this.startLineNumber,this.startColumn,g,x)}setStartPosition(g,x){return new ka(g,x,this.endLineNumber,this.endColumn)}collapseToStart(){return ka.collapseToStart(this)}static collapseToStart(g){return new ka(g.startLineNumber,g.startColumn,g.startLineNumber,g.startColumn)}collapseToEnd(){return ka.collapseToEnd(this)}static collapseToEnd(g){return new ka(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn)}delta(g){return new ka(this.startLineNumber+g,this.startColumn,this.endLineNumber+g,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(g,x=g){return new ka(g.lineNumber,g.column,x.lineNumber,x.column)}static lift(g){return g?new ka(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):null}static isIRange(g){return!!g&&typeof g.startLineNumber=="number"&&typeof g.startColumn=="number"&&typeof g.endLineNumber=="number"&&typeof g.endColumn=="number"}static areIntersectingOrTouching(g,x){return!(g.endLineNumberg.startLineNumber}toJSON(){return this}}function wve(b){return b<0?0:b>255?255:b|0}function i2(b){return b<0?0:b>4294967295?4294967295:b|0}class MQ{constructor(g){const x=wve(g);this._defaultValue=x,this._asciiMap=MQ._createAsciiMap(x),this._map=new Map}static _createAsciiMap(g){const x=new Uint8Array(256);return x.fill(g),x}set(g,x){const O=wve(x);g>=0&&g<256?this._asciiMap[g]=O:this._map.set(g,O)}get(g){return g>=0&&g<256?this._asciiMap[g]:this._map.get(g)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class a5e{constructor(g,x,O){const X=new Uint8Array(g*x);for(let de=0,Re=g*x;dex&&(x=ie),Ve>O&&(O=Ve),ut>O&&(O=ut)}x++,O++;const X=new a5e(O,x,0);for(let de=0,Re=g.length;de=this._maxCharCode?0:this._states.get(g,x)}}let PQ=null;function l5e(){return PQ===null&&(PQ=new s5e([[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]])),PQ}let OW=null;function c5e(){if(OW===null){OW=new MQ(0);const b=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let x=0;xX);if(X>0){const Ve=x.charCodeAt(X-1),ie=x.charCodeAt(Re);(Ve===40&&ie===41||Ve===91&&ie===93||Ve===123&&ie===125)&&Re--}return{range:{startLineNumber:O,startColumn:X+1,endLineNumber:O,endColumn:Re+2},url:x.substring(X,Re+1)}}static computeLinks(g,x=l5e()){const O=c5e(),X=[];for(let de=1,Re=g.getLineCount();de<=Re;de++){const Ve=g.getLineContent(de),ie=Ve.length;let ut=0,Qe=0,qe=0,Mn=1,Ln=!1,rr=!1,kn=!1,Ti=!1;for(;ut=0?(X+=O?1:-1,X<0?X=g.length-1:X%=g.length,g[X]):null}};UB.INSTANCE=new UB;let LQ=UB;const Ove=Object.freeze(function(b,g){const x=setTimeout(b.bind(g),0);return{dispose(){clearTimeout(x)}}});var DB;(function(b){function g(x){return x===b.None||x===b.Cancelled||x instanceof CB?!0:!x||typeof x!="object"?!1:typeof x.isCancellationRequested=="boolean"&&typeof x.onCancellationRequested=="function"}b.isCancellationToken=g,b.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:TQ.None}),b.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ove})})(DB||(DB={}));class CB{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?Ove:(this._emitter||(this._emitter=new cS),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class u5e{constructor(g){this._token=void 0,this._parentListener=void 0,this._parentListener=g&&g.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new CB),this._token}cancel(){this._token?this._token instanceof CB&&this._token.cancel():this._token=DB.Cancelled}dispose(g=!1){g&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof CB&&this._token.dispose():this._token=DB.None}}class kQ{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(g,x){this._keyCodeToStr[g]=x,this._strToKeyCode[x.toLowerCase()]=g}keyCodeToStr(g){return this._keyCodeToStr[g]}strToKeyCode(g){return this._strToKeyCode[g.toLowerCase()]||0}}const NB=new kQ,wQ=new kQ,OQ=new kQ,p5e=new Array(230),f5e=Object.create(null),m5e=Object.create(null);(function(){const g=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[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,"",0,"","",""],[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","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Del",46,"VK_DELETE","Delete",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],x=[],O=[];for(const X of g){const[de,Re,Ve,ie,ut,Qe,qe,Mn,Ln]=X;if(O[Re]||(O[Re]=!0,f5e[Ve]=Re,m5e[Ve.toLowerCase()]=Re),!x[ie]){if(x[ie]=!0,!ut)throw new Error(`String representation missing for key code ${ie} around scan code ${Ve}`);NB.define(ie,ut),wQ.define(ie,Mn||ut),OQ.define(ie,Ln||Mn||ut)}Qe&&(p5e[Qe]=ie)}})();var Wve;(function(b){function g(Ve){return NB.keyCodeToStr(Ve)}b.toString=g;function x(Ve){return NB.strToKeyCode(Ve)}b.fromString=x;function O(Ve){return wQ.keyCodeToStr(Ve)}b.toUserSettingsUS=O;function X(Ve){return OQ.keyCodeToStr(Ve)}b.toUserSettingsGeneral=X;function de(Ve){return wQ.strToKeyCode(Ve)||OQ.strToKeyCode(Ve)}b.fromUserSettings=de;function Re(Ve){if(Ve>=98&&Ve<=113)return null;switch(Ve){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right";case 20:return"Delete"}return NB.keyCodeToStr(Ve)}b.toElectronAccelerator=Re})(Wve||(Wve={}));function h5e(b,g){const x=(g&65535)<<16>>>0;return(b|x)>>>0}const _5e=65,g5e=97,y5e=90,v5e=122,fN=46,zh=47,$y=92,KA=58,b5e=63;class Fve extends Error{constructor(g,x,O){let X;typeof x=="string"&&x.indexOf("not ")===0?(X="must not be",x=x.replace(/^not /,"")):X="must be";const de=g.indexOf(".")!==-1?"property":"argument";let Re=`The "${g}" ${de} ${X} of type ${x}`;Re+=`. Received type ${typeof O}`,super(Re),this.code="ERR_INVALID_ARG_TYPE"}}function T5e(b,g){if(b===null||typeof b!="object")throw new Fve(g,"Object",b)}function wf(b,g){if(typeof b!="string")throw new Fve(g,"string",b)}const XA=Mze==="win32";function ec(b){return b===zh||b===$y}function WQ(b){return b===zh}function YA(b){return b>=_5e&&b<=y5e||b>=g5e&&b<=v5e}function MB(b,g,x,O){let X="",de=0,Re=-1,Ve=0,ie=0;for(let ut=0;ut<=b.length;++ut){if(ut2){const Qe=X.lastIndexOf(x);Qe===-1?(X="",de=0):(X=X.slice(0,Qe),de=X.length-1-X.lastIndexOf(x)),Re=ut,Ve=0;continue}else if(X.length!==0){X="",de=0,Re=ut,Ve=0;continue}}g&&(X+=X.length>0?`${x}..`:"..",de=2)}else X.length>0?X+=`${x}${b.slice(Re+1,ut)}`:X=b.slice(Re+1,ut),de=ut-Re-1;Re=ut,Ve=0}else ie===fN&&Ve!==-1?++Ve:Ve=-1}return X}function S5e(b){return b?`${b[0]==="."?"":"."}${b}`:""}function zve(b,g){T5e(g,"pathObject");const x=g.dir||g.root,O=g.base||`${g.name||""}${S5e(g.ext)}`;return x?x===g.root?`${x}${O}`:`${x}${b}${O}`:O}const sg={resolve(...b){let g="",x="",O=!1;for(let X=b.length-1;X>=-1;X--){let de;if(X>=0){if(de=b[X],wf(de,`paths[${X}]`),de.length===0)continue}else g.length===0?de=EB():(de=Eve[`=${g}`]||EB(),(de===void 0||de.slice(0,2).toLowerCase()!==g.toLowerCase()&&de.charCodeAt(2)===$y)&&(de=`${g}\\`));const Re=de.length;let Ve=0,ie="",ut=!1;const Qe=de.charCodeAt(0);if(Re===1)ec(Qe)&&(Ve=1,ut=!0);else if(ec(Qe))if(ut=!0,ec(de.charCodeAt(1))){let qe=2,Mn=qe;for(;qe2&&ec(de.charCodeAt(2))&&(ut=!0,Ve=3));if(ie.length>0)if(g.length>0){if(ie.toLowerCase()!==g.toLowerCase())continue}else g=ie;if(O){if(g.length>0)break}else if(x=`${de.slice(Ve)}\\${x}`,O=ut,ut&&g.length>0)break}return x=MB(x,!O,"\\",ec),O?`${g}\\${x}`:`${g}${x}`||"."},normalize(b){wf(b,"path");const g=b.length;if(g===0)return".";let x=0,O,X=!1;const de=b.charCodeAt(0);if(g===1)return WQ(de)?"\\":b;if(ec(de))if(X=!0,ec(b.charCodeAt(1))){let Ve=2,ie=Ve;for(;Ve2&&ec(b.charCodeAt(2))&&(X=!0,x=3));let Re=x0&&ec(b.charCodeAt(g-1))&&(Re+="\\"),!X&&O===void 0&&b.includes(":")){if(Re.length>=2&&YA(Re.charCodeAt(0))&&Re.charCodeAt(1)===KA)return`.\\${Re}`;let Ve=b.indexOf(":");do if(Ve===g-1||ec(b.charCodeAt(Ve+1)))return`.\\${Re}`;while((Ve=b.indexOf(":",Ve+1))!==-1)}return O===void 0?X?`\\${Re}`:Re:X?`${O}\\${Re}`:`${O}${Re}`},isAbsolute(b){wf(b,"path");const g=b.length;if(g===0)return!1;const x=b.charCodeAt(0);return ec(x)||g>2&&YA(x)&&b.charCodeAt(1)===KA&&ec(b.charCodeAt(2))},join(...b){if(b.length===0)return".";let g,x;for(let de=0;de0&&(g===void 0?g=x=Re:g+=`\\${Re}`)}if(g===void 0)return".";let O=!0,X=0;if(typeof x=="string"&&ec(x.charCodeAt(0))){++X;const de=x.length;de>1&&ec(x.charCodeAt(1))&&(++X,de>2&&(ec(x.charCodeAt(2))?++X:O=!1))}if(O){for(;X=2&&(g=`\\${g.slice(X)}`)}return sg.normalize(g)},relative(b,g){if(wf(b,"from"),wf(g,"to"),b===g)return"";const x=sg.resolve(b),O=sg.resolve(g);if(x===O||(b=x.toLowerCase(),g=O.toLowerCase(),b===g))return"";if(x.length!==b.length||O.length!==g.length){const rr=x.split("\\"),kn=O.split("\\");rr[rr.length-1]===""&&rr.pop(),kn[kn.length-1]===""&&kn.pop();const Ti=rr.length,uo=kn.length,Hn=TiHn?kn.slice(mn).join("\\"):Ti>Hn?"..\\".repeat(Ti-1-mn)+"..":"":"..\\".repeat(Ti-mn)+kn.slice(mn).join("\\")}let X=0;for(;XX&&b.charCodeAt(de-1)===$y;)de--;const Re=de-X;let Ve=0;for(;VeVe&&g.charCodeAt(ie-1)===$y;)ie--;const ut=ie-Ve,Qe=ReQe){if(g.charCodeAt(Ve+Mn)===$y)return O.slice(Ve+Mn+1);if(Mn===2)return O.slice(Ve+Mn)}Re>Qe&&(b.charCodeAt(X+Mn)===$y?qe=Mn:Mn===2&&(qe=3)),qe===-1&&(qe=0)}let Ln="";for(Mn=X+qe+1;Mn<=de;++Mn)(Mn===de||b.charCodeAt(Mn)===$y)&&(Ln+=Ln.length===0?"..":"\\..");return Ve+=qe,Ln.length>0?`${Ln}${O.slice(Ve,ie)}`:(O.charCodeAt(Ve)===$y&&++Ve,O.slice(Ve,ie))},toNamespacedPath(b){if(typeof b!="string"||b.length===0)return b;const g=sg.resolve(b);if(g.length<=2)return b;if(g.charCodeAt(0)===$y){if(g.charCodeAt(1)===$y){const x=g.charCodeAt(2);if(x!==b5e&&x!==fN)return`\\\\?\\UNC\\${g.slice(2)}`}}else if(YA(g.charCodeAt(0))&&g.charCodeAt(1)===KA&&g.charCodeAt(2)===$y)return`\\\\?\\${g}`;return g},dirname(b){wf(b,"path");const g=b.length;if(g===0)return".";let x=-1,O=0;const X=b.charCodeAt(0);if(g===1)return ec(X)?b:".";if(ec(X)){if(x=O=1,ec(b.charCodeAt(1))){let Ve=2,ie=Ve;for(;Ve2&&ec(b.charCodeAt(2))?3:2,O=x);let de=-1,Re=!0;for(let Ve=g-1;Ve>=O;--Ve)if(ec(b.charCodeAt(Ve))){if(!Re){de=Ve;break}}else Re=!1;if(de===-1){if(x===-1)return".";de=x}return b.slice(0,de)},basename(b,g){g!==void 0&&wf(g,"suffix"),wf(b,"path");let x=0,O=-1,X=!0,de;if(b.length>=2&&YA(b.charCodeAt(0))&&b.charCodeAt(1)===KA&&(x=2),g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let Re=g.length-1,Ve=-1;for(de=b.length-1;de>=x;--de){const ie=b.charCodeAt(de);if(ec(ie)){if(!X){x=de+1;break}}else Ve===-1&&(X=!1,Ve=de+1),Re>=0&&(ie===g.charCodeAt(Re)?--Re===-1&&(O=de):(Re=-1,O=Ve))}return x===O?O=Ve:O===-1&&(O=b.length),b.slice(x,O)}for(de=b.length-1;de>=x;--de)if(ec(b.charCodeAt(de))){if(!X){x=de+1;break}}else O===-1&&(X=!1,O=de+1);return O===-1?"":b.slice(x,O)},extname(b){wf(b,"path");let g=0,x=-1,O=0,X=-1,de=!0,Re=0;b.length>=2&&b.charCodeAt(1)===KA&&YA(b.charCodeAt(0))&&(g=O=2);for(let Ve=b.length-1;Ve>=g;--Ve){const ie=b.charCodeAt(Ve);if(ec(ie)){if(!de){O=Ve+1;break}continue}X===-1&&(de=!1,X=Ve+1),ie===fN?x===-1?x=Ve:Re!==1&&(Re=1):x!==-1&&(Re=-1)}return x===-1||X===-1||Re===0||Re===1&&x===X-1&&x===O+1?"":b.slice(x,X)},format:zve.bind(null,"\\"),parse(b){wf(b,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;const x=b.length;let O=0,X=b.charCodeAt(0);if(x===1)return ec(X)?(g.root=g.dir=b,g):(g.base=g.name=b,g);if(ec(X)){if(O=1,ec(b.charCodeAt(1))){let qe=2,Mn=qe;for(;qe0&&(g.root=b.slice(0,O));let de=-1,Re=O,Ve=-1,ie=!0,ut=b.length-1,Qe=0;for(;ut>=O;--ut){if(X=b.charCodeAt(ut),ec(X)){if(!ie){Re=ut+1;break}continue}Ve===-1&&(ie=!1,Ve=ut+1),X===fN?de===-1?de=ut:Qe!==1&&(Qe=1):de!==-1&&(Qe=-1)}return Ve!==-1&&(de===-1||Qe===0||Qe===1&&de===Ve-1&&de===Re+1?g.base=g.name=b.slice(Re,Ve):(g.name=b.slice(Re,de),g.base=b.slice(Re,Ve),g.ext=b.slice(de,Ve))),Re>0&&Re!==O?g.dir=b.slice(0,Re-1):g.dir=g.root,g},sep:"\\",delimiter:";",win32:null,posix:null},E5e=(()=>{if(XA){const b=/\\/g;return()=>{const g=EB().replace(b,"/");return g.slice(g.indexOf("/"))}}return()=>EB()})(),lg={resolve(...b){let g="",x=!1;for(let O=b.length-1;O>=0&&!x;O--){const X=b[O];wf(X,`paths[${O}]`),X.length!==0&&(g=`${X}/${g}`,x=X.charCodeAt(0)===zh)}if(!x){const O=E5e();g=`${O}/${g}`,x=O.charCodeAt(0)===zh}return g=MB(g,!x,"/",WQ),x?`/${g}`:g.length>0?g:"."},normalize(b){if(wf(b,"path"),b.length===0)return".";const g=b.charCodeAt(0)===zh,x=b.charCodeAt(b.length-1)===zh;return b=MB(b,!g,"/",WQ),b.length===0?g?"/":x?"./":".":(x&&(b+="/"),g?`/${b}`:b)},isAbsolute(b){return wf(b,"path"),b.length>0&&b.charCodeAt(0)===zh},join(...b){if(b.length===0)return".";const g=[];for(let x=0;x0&&g.push(O)}return g.length===0?".":lg.normalize(g.join("/"))},relative(b,g){if(wf(b,"from"),wf(g,"to"),b===g||(b=lg.resolve(b),g=lg.resolve(g),b===g))return"";const x=1,O=b.length,X=O-x,de=1,Re=g.length-de,Ve=XVe){if(g.charCodeAt(de+ut)===zh)return g.slice(de+ut+1);if(ut===0)return g.slice(de+ut)}else X>Ve&&(b.charCodeAt(x+ut)===zh?ie=ut:ut===0&&(ie=0));let Qe="";for(ut=x+ie+1;ut<=O;++ut)(ut===O||b.charCodeAt(ut)===zh)&&(Qe+=Qe.length===0?"..":"/..");return`${Qe}${g.slice(de+ie)}`},toNamespacedPath(b){return b},dirname(b){if(wf(b,"path"),b.length===0)return".";const g=b.charCodeAt(0)===zh;let x=-1,O=!0;for(let X=b.length-1;X>=1;--X)if(b.charCodeAt(X)===zh){if(!O){x=X;break}}else O=!1;return x===-1?g?"/":".":g&&x===1?"//":b.slice(0,x)},basename(b,g){g!==void 0&&wf(g,"suffix"),wf(b,"path");let x=0,O=-1,X=!0,de;if(g!==void 0&&g.length>0&&g.length<=b.length){if(g===b)return"";let Re=g.length-1,Ve=-1;for(de=b.length-1;de>=0;--de){const ie=b.charCodeAt(de);if(ie===zh){if(!X){x=de+1;break}}else Ve===-1&&(X=!1,Ve=de+1),Re>=0&&(ie===g.charCodeAt(Re)?--Re===-1&&(O=de):(Re=-1,O=Ve))}return x===O?O=Ve:O===-1&&(O=b.length),b.slice(x,O)}for(de=b.length-1;de>=0;--de)if(b.charCodeAt(de)===zh){if(!X){x=de+1;break}}else O===-1&&(X=!1,O=de+1);return O===-1?"":b.slice(x,O)},extname(b){wf(b,"path");let g=-1,x=0,O=-1,X=!0,de=0;for(let Re=b.length-1;Re>=0;--Re){const Ve=b[Re];if(Ve==="/"){if(!X){x=Re+1;break}continue}O===-1&&(X=!1,O=Re+1),Ve==="."?g===-1?g=Re:de!==1&&(de=1):g!==-1&&(de=-1)}return g===-1||O===-1||de===0||de===1&&g===O-1&&g===x+1?"":b.slice(g,O)},format:zve.bind(null,"/"),parse(b){wf(b,"path");const g={root:"",dir:"",base:"",ext:"",name:""};if(b.length===0)return g;const x=b.charCodeAt(0)===zh;let O;x?(g.root="/",O=1):O=0;let X=-1,de=0,Re=-1,Ve=!0,ie=b.length-1,ut=0;for(;ie>=O;--ie){const Qe=b.charCodeAt(ie);if(Qe===zh){if(!Ve){de=ie+1;break}continue}Re===-1&&(Ve=!1,Re=ie+1),Qe===fN?X===-1?X=ie:ut!==1&&(ut=1):X!==-1&&(ut=-1)}if(Re!==-1){const Qe=de===0&&x?1:de;X===-1||ut===0||ut===1&&X===Re-1&&X===de+1?g.base=g.name=b.slice(Qe,Re):(g.name=b.slice(Qe,X),g.base=b.slice(Qe,Re),g.ext=b.slice(X,Re))}return de>0?g.dir=b.slice(0,de-1):x&&(g.dir="/"),g},sep:"/",delimiter:":",win32:null,posix:null};lg.win32=sg.win32=sg,lg.posix=sg.posix=lg,XA?sg.normalize:lg.normalize;const A5e=XA?sg.join:lg.join;XA?sg.resolve:lg.resolve,XA?sg.relative:lg.relative,XA?sg.dirname:lg.dirname,XA?sg.basename:lg.basename,XA?sg.extname:lg.extname,XA?sg.sep:lg.sep;const I5e=/^\w[\w\d+.-]*$/,x5e=/^\//,R5e=/^\/\//;function D5e(b,g){if(!b.scheme&&g)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${b.authority}", path: "${b.path}", query: "${b.query}", fragment: "${b.fragment}"}`);if(b.scheme&&!I5e.test(b.scheme)){const x=[...b.scheme.matchAll(/[^\w\d+.-]/gu)],O=x.length>0?` Found '${x[0][0]}' at index ${x[0].index} (${x.length} total)`:"";throw new Error(`[UriError]: Scheme contains illegal characters.${O} (len:${b.scheme.length})`)}if(b.path){if(b.authority){if(!x5e.test(b.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(R5e.test(b.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function C5e(b,g){return!b&&!g?"file":b}function N5e(b,g){switch(b){case"https":case"http":case"file":g?g[0]!==dS&&(g=dS+g):g=dS;break}return g}const $u="",dS="/",M5e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class $v{static isUri(g){return g instanceof $v?!0:!g||typeof g!="object"?!1:typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function"}constructor(g,x,O,X,de,Re=!1){typeof g=="object"?(this.scheme=g.scheme||$u,this.authority=g.authority||$u,this.path=g.path||$u,this.query=g.query||$u,this.fragment=g.fragment||$u):(this.scheme=C5e(g,Re),this.authority=x||$u,this.path=N5e(this.scheme,O||$u),this.query=X||$u,this.fragment=de||$u,D5e(this,Re))}get fsPath(){return FQ(this,!1)}with(g){if(!g)return this;let{scheme:x,authority:O,path:X,query:de,fragment:Re}=g;return x===void 0?x=this.scheme:x===null&&(x=$u),O===void 0?O=this.authority:O===null&&(O=$u),X===void 0?X=this.path:X===null&&(X=$u),de===void 0?de=this.query:de===null&&(de=$u),Re===void 0?Re=this.fragment:Re===null&&(Re=$u),x===this.scheme&&O===this.authority&&X===this.path&&de===this.query&&Re===this.fragment?this:new o2(x,O,X,de,Re)}static parse(g,x=!1){const O=M5e.exec(g);return O?new o2(O[2]||$u,PB(O[4]||$u),PB(O[5]||$u),PB(O[7]||$u),PB(O[9]||$u),x):new o2($u,$u,$u,$u,$u)}static file(g){let x=$u;if(LW&&(g=g.replace(/\\/g,dS)),g[0]===dS&&g[1]===dS){const O=g.indexOf(dS,2);O===-1?(x=g.substring(2),g=dS):(x=g.substring(2,O),g=g.substring(O)||dS)}return new o2("file",x,g,$u,$u)}static from(g,x){return new o2(g.scheme,g.authority,g.path,g.query,g.fragment,x)}static joinPath(g,...x){if(!g.path)throw new Error(`[UriError]: cannot call joinPath on URI without path: ${g.toString()}`);let O;return LW&&g.scheme==="file"?O=$v.file(sg.join(FQ(g,!0),...x)).path:O=lg.join(g.path,...x),g.with({path:O})}toString(g=!1){return zQ(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof $v)return g;{const x=new o2(g);return x._formatted=g.external??null,x._fsPath=g._sep===Bve?g.fsPath??null:null,x}}else return g}}const Bve=LW?1:void 0;class o2 extends $v{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=FQ(this,!1)),this._fsPath}toString(g=!1){return g?zQ(this,!0):(this._formatted||(this._formatted=zQ(this,!1)),this._formatted)}toJSON(){const g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=Bve),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}const Gve={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 Vve(b,g,x){let O,X=-1;for(let de=0;de=97&&Re<=122||Re>=65&&Re<=90||Re>=48&&Re<=57||Re===45||Re===46||Re===95||Re===126||g&&Re===47||x&&Re===91||x&&Re===93||x&&Re===58)X!==-1&&(O+=encodeURIComponent(b.substring(X,de)),X=-1),O!==void 0&&(O+=b.charAt(de));else{O===void 0&&(O=b.substr(0,de));const Ve=Gve[Re];Ve!==void 0?(X!==-1&&(O+=encodeURIComponent(b.substring(X,de)),X=-1),O+=Ve):X===-1&&(X=de)}}return X!==-1&&(O+=encodeURIComponent(b.substring(X))),O!==void 0?O:b}function P5e(b){let g;for(let x=0;x1&&b.scheme==="file"?x=`//${b.authority}${b.path}`:b.path.charCodeAt(0)===47&&(b.path.charCodeAt(1)>=65&&b.path.charCodeAt(1)<=90||b.path.charCodeAt(1)>=97&&b.path.charCodeAt(1)<=122)&&b.path.charCodeAt(2)===58?g?x=b.path.substr(1):x=b.path[1].toLowerCase()+b.path.substr(2):x=b.path,LW&&(x=x.replace(/\//g,"\\")),x}function zQ(b,g){const x=g?P5e:Vve;let O="",{scheme:X,authority:de,path:Re,query:Ve,fragment:ie}=b;if(X&&(O+=X,O+=":"),(de||X==="file")&&(O+=dS,O+=dS),de){let ut=de.indexOf("@");if(ut!==-1){const Qe=de.substr(0,ut);de=de.substr(ut+1),ut=Qe.lastIndexOf(":"),ut===-1?O+=x(Qe,!1,!1):(O+=x(Qe.substr(0,ut),!1,!1),O+=":",O+=x(Qe.substr(ut+1),!1,!0)),O+="@"}de=de.toLowerCase(),ut=de.lastIndexOf(":"),ut===-1?O+=x(de,!1,!0):(O+=x(de.substr(0,ut),!1,!0),O+=de.substr(ut))}if(Re){if(Re.length>=3&&Re.charCodeAt(0)===47&&Re.charCodeAt(2)===58){const ut=Re.charCodeAt(1);ut>=65&&ut<=90&&(Re=`/${String.fromCharCode(ut+32)}:${Re.substr(3)}`)}else if(Re.length>=2&&Re.charCodeAt(1)===58){const ut=Re.charCodeAt(0);ut>=65&&ut<=90&&(Re=`${String.fromCharCode(ut+32)}:${Re.substr(2)}`)}O+=x(Re,!0,!1)}return Ve&&(O+="?",O+=x(Ve,!1,!1)),ie&&(O+="#",O+=g?ie:Vve(ie,!1,!1)),O}function jve(b){try{return decodeURIComponent(b)}catch{return b.length>3?b.substr(0,3)+jve(b.substr(3)):b}}const Uve=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function PB(b){return b.match(Uve)?b.replace(Uve,g=>jve(g)):b}class Qv extends ka{constructor(g,x,O,X){super(g,x,O,X),this.selectionStartLineNumber=g,this.selectionStartColumn=x,this.positionLineNumber=O,this.positionColumn=X}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(g){return Qv.selectionsEqual(this,g)}static selectionsEqual(g,x){return g.selectionStartLineNumber===x.selectionStartLineNumber&&g.selectionStartColumn===x.selectionStartColumn&&g.positionLineNumber===x.positionLineNumber&&g.positionColumn===x.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(g,x){return this.getDirection()===0?new Qv(this.startLineNumber,this.startColumn,g,x):new Qv(g,x,this.startLineNumber,this.startColumn)}getPosition(){return new Jl(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Jl(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(g,x){return this.getDirection()===0?new Qv(g,x,this.endLineNumber,this.endColumn):new Qv(this.endLineNumber,this.endColumn,g,x)}static fromPositions(g,x=g){return new Qv(g.lineNumber,g.column,x.lineNumber,x.column)}static fromRange(g,x){return x===0?new Qv(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn):new Qv(g.endLineNumber,g.endColumn,g.startLineNumber,g.startColumn)}static liftSelection(g){return new Qv(g.selectionStartLineNumber,g.selectionStartColumn,g.positionLineNumber,g.positionColumn)}static selectionsArrEqual(g,x){if(g&&!x||!g&&x)return!1;if(!g&&!x)return!0;if(g.length!==x.length)return!1;for(let O=0,X=g.length;O{this._tokenizationSupports.get(g)===x&&(this._tokenizationSupports.delete(g),this.handleChange([g]))})}get(g){return this._tokenizationSupports.get(g)||null}registerFactory(g,x){this._factories.get(g)?.dispose();const O=new O5e(this,g,x);return this._factories.set(g,O),MW(()=>{const X=this._factories.get(g);!X||X!==O||(this._factories.delete(g),X.dispose())})}async getOrCreate(g){const x=this.get(g);if(x)return x;const O=this._factories.get(g);return!O||O.isResolved?null:(await O.resolve(),this.get(g))}isResolved(g){if(this.get(g))return!0;const O=this._factories.get(g);return!!(!O||O.isResolved)}setColorMap(g){this._colorMap=g,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 O5e extends uN{get isResolved(){return this._isResolved}constructor(g,x,O){super(),this._registry=g,this._languageId=x,this._factory=O,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const g=await this._factory.tokenizationSupport;this._isResolved=!0,g&&!this._isDisposed&&this._register(this._registry.register(this._languageId,g))}}class W5e{constructor(g,x,O){this.offset=g,this.type=x,this.language=O,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var qve;(function(b){b[b.Increase=0]="Increase",b[b.Decrease=1]="Decrease"})(qve||(qve={}));var Jve;(function(b){const g=new Map;g.set(0,vs.symbolMethod),g.set(1,vs.symbolFunction),g.set(2,vs.symbolConstructor),g.set(3,vs.symbolField),g.set(4,vs.symbolVariable),g.set(5,vs.symbolClass),g.set(6,vs.symbolStruct),g.set(7,vs.symbolInterface),g.set(8,vs.symbolModule),g.set(9,vs.symbolProperty),g.set(10,vs.symbolEvent),g.set(11,vs.symbolOperator),g.set(12,vs.symbolUnit),g.set(13,vs.symbolValue),g.set(15,vs.symbolEnum),g.set(14,vs.symbolConstant),g.set(15,vs.symbolEnum),g.set(16,vs.symbolEnumMember),g.set(17,vs.symbolKeyword),g.set(28,vs.symbolSnippet),g.set(18,vs.symbolText),g.set(19,vs.symbolColor),g.set(20,vs.symbolFile),g.set(21,vs.symbolReference),g.set(22,vs.symbolCustomColor),g.set(23,vs.symbolFolder),g.set(24,vs.symbolTypeParameter),g.set(25,vs.account),g.set(26,vs.issues),g.set(27,vs.tools);function x(Re){let Ve=g.get(Re);return Ve||(console.info("No codicon found for CompletionItemKind "+Re),Ve=vs.symbolProperty),Ve}b.toIcon=x;function O(Re){switch(Re){case 0:return Ds(763,"Method");case 1:return Ds(764,"Function");case 2:return Ds(765,"Constructor");case 3:return Ds(766,"Field");case 4:return Ds(767,"Variable");case 5:return Ds(768,"Class");case 6:return Ds(769,"Struct");case 7:return Ds(770,"Interface");case 8:return Ds(771,"Module");case 9:return Ds(772,"Property");case 10:return Ds(773,"Event");case 11:return Ds(774,"Operator");case 12:return Ds(775,"Unit");case 13:return Ds(776,"Value");case 14:return Ds(777,"Constant");case 15:return Ds(778,"Enum");case 16:return Ds(779,"Enum Member");case 17:return Ds(780,"Keyword");case 18:return Ds(781,"Text");case 19:return Ds(782,"Color");case 20:return Ds(783,"File");case 21:return Ds(784,"Reference");case 22:return Ds(785,"Custom Color");case 23:return Ds(786,"Folder");case 24:return Ds(787,"Type Parameter");case 25:return Ds(788,"User");case 26:return Ds(789,"Issue");case 27:return Ds(790,"Tool");case 28:return Ds(791,"Snippet");default:return""}}b.toLabel=O;const X=new Map;X.set("method",0),X.set("function",1),X.set("constructor",2),X.set("field",3),X.set("variable",4),X.set("class",5),X.set("struct",6),X.set("interface",7),X.set("module",8),X.set("property",9),X.set("event",10),X.set("operator",11),X.set("unit",12),X.set("value",13),X.set("constant",14),X.set("enum",15),X.set("enum-member",16),X.set("enumMember",16),X.set("keyword",17),X.set("snippet",28),X.set("text",18),X.set("color",19),X.set("file",20),X.set("reference",21),X.set("customcolor",22),X.set("folder",23),X.set("type-parameter",24),X.set("typeParameter",24),X.set("account",25),X.set("issue",26),X.set("tool",27);function de(Re,Ve){let ie=X.get(Re);return typeof ie>"u"&&!Ve&&(ie=9),ie}b.fromString=de})(Jve||(Jve={}));var Kve;(function(b){b[b.Automatic=0]="Automatic",b[b.Explicit=1]="Explicit"})(Kve||(Kve={}));var Xve;(function(b){b[b.Code=1]="Code",b[b.Label=2]="Label"})(Xve||(Xve={}));var Yve;(function(b){b[b.Accepted=0]="Accepted",b[b.Rejected=1]="Rejected",b[b.Ignored=2]="Ignored"})(Yve||(Yve={}));var $ve;(function(b){b[b.Automatic=0]="Automatic",b[b.PasteAs=1]="PasteAs"})($ve||($ve={}));var Qve;(function(b){b[b.Invoke=1]="Invoke",b[b.TriggerCharacter=2]="TriggerCharacter",b[b.ContentChange=3]="ContentChange"})(Qve||(Qve={}));var Zve;(function(b){b[b.Text=0]="Text",b[b.Read=1]="Read",b[b.Write=2]="Write"})(Zve||(Zve={})),Ds(792,"array"),Ds(793,"boolean"),Ds(794,"class"),Ds(795,"constant"),Ds(796,"constructor"),Ds(797,"enumeration"),Ds(798,"enumeration member"),Ds(799,"event"),Ds(800,"field"),Ds(801,"file"),Ds(802,"function"),Ds(803,"interface"),Ds(804,"key"),Ds(805,"method"),Ds(806,"module"),Ds(807,"namespace"),Ds(808,"null"),Ds(809,"number"),Ds(810,"object"),Ds(811,"operator"),Ds(812,"package"),Ds(813,"property"),Ds(814,"string"),Ds(815,"struct"),Ds(816,"type parameter"),Ds(817,"variable");var ebe;(function(b){const g=new Map;g.set(0,vs.symbolFile),g.set(1,vs.symbolModule),g.set(2,vs.symbolNamespace),g.set(3,vs.symbolPackage),g.set(4,vs.symbolClass),g.set(5,vs.symbolMethod),g.set(6,vs.symbolProperty),g.set(7,vs.symbolField),g.set(8,vs.symbolConstructor),g.set(9,vs.symbolEnum),g.set(10,vs.symbolInterface),g.set(11,vs.symbolFunction),g.set(12,vs.symbolVariable),g.set(13,vs.symbolConstant),g.set(14,vs.symbolString),g.set(15,vs.symbolNumber),g.set(16,vs.symbolBoolean),g.set(17,vs.symbolArray),g.set(18,vs.symbolObject),g.set(19,vs.symbolKey),g.set(20,vs.symbolNull),g.set(21,vs.symbolEnumMember),g.set(22,vs.symbolStruct),g.set(23,vs.symbolEvent),g.set(24,vs.symbolOperator),g.set(25,vs.symbolTypeParameter);function x(de){let Re=g.get(de);return Re||(console.info("No codicon found for SymbolKind "+de),Re=vs.symbolProperty),Re}b.toIcon=x;const O=new Map;O.set(0,20),O.set(1,8),O.set(2,8),O.set(3,8),O.set(4,5),O.set(5,0),O.set(6,9),O.set(7,3),O.set(8,2),O.set(9,15),O.set(10,7),O.set(11,1),O.set(12,4),O.set(13,14),O.set(14,18),O.set(15,13),O.set(16,13),O.set(17,13),O.set(18,13),O.set(19,17),O.set(20,13),O.set(21,16),O.set(22,6),O.set(23,10),O.set(24,11),O.set(25,24);function X(de){let Re=O.get(de);return Re===void 0&&(console.info("No completion kind found for SymbolKind "+de),Re=20),Re}b.toCompletionKind=X})(ebe||(ebe={}));const NT=class NT{static fromValue(g){switch(g){case"comment":return NT.Comment;case"imports":return NT.Imports;case"region":return NT.Region}return new NT(g)}constructor(g){this.value=g}};NT.Comment=new NT("comment"),NT.Imports=new NT("imports"),NT.Region=new NT("region");let tbe=NT;var nbe;(function(b){b[b.AIGenerated=1]="AIGenerated"})(nbe||(nbe={}));var rbe;(function(b){b[b.Invoke=0]="Invoke",b[b.Automatic=1]="Automatic"})(rbe||(rbe={}));var ibe;(function(b){function g(x){return!x||typeof x!="object"?!1:typeof x.id=="string"&&typeof x.title=="string"}b.is=g})(ibe||(ibe={}));var obe;(function(b){b[b.Type=1]="Type",b[b.Parameter=2]="Parameter"})(obe||(obe={})),new w5e;var abe;(function(b){b[b.Unknown=0]="Unknown",b[b.Disabled=1]="Disabled",b[b.Enabled=2]="Enabled"})(abe||(abe={}));var sbe;(function(b){b[b.Invoke=1]="Invoke",b[b.Auto=2]="Auto"})(sbe||(sbe={}));var lbe;(function(b){b[b.None=0]="None",b[b.KeepWhitespace=1]="KeepWhitespace",b[b.InsertAsSnippet=4]="InsertAsSnippet"})(lbe||(lbe={}));var cbe;(function(b){b[b.Method=0]="Method",b[b.Function=1]="Function",b[b.Constructor=2]="Constructor",b[b.Field=3]="Field",b[b.Variable=4]="Variable",b[b.Class=5]="Class",b[b.Struct=6]="Struct",b[b.Interface=7]="Interface",b[b.Module=8]="Module",b[b.Property=9]="Property",b[b.Event=10]="Event",b[b.Operator=11]="Operator",b[b.Unit=12]="Unit",b[b.Value=13]="Value",b[b.Constant=14]="Constant",b[b.Enum=15]="Enum",b[b.EnumMember=16]="EnumMember",b[b.Keyword=17]="Keyword",b[b.Text=18]="Text",b[b.Color=19]="Color",b[b.File=20]="File",b[b.Reference=21]="Reference",b[b.Customcolor=22]="Customcolor",b[b.Folder=23]="Folder",b[b.TypeParameter=24]="TypeParameter",b[b.User=25]="User",b[b.Issue=26]="Issue",b[b.Tool=27]="Tool",b[b.Snippet=28]="Snippet"})(cbe||(cbe={}));var dbe;(function(b){b[b.Deprecated=1]="Deprecated"})(dbe||(dbe={}));var ube;(function(b){b[b.Invoke=0]="Invoke",b[b.TriggerCharacter=1]="TriggerCharacter",b[b.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(ube||(ube={}));var pbe;(function(b){b[b.EXACT=0]="EXACT",b[b.ABOVE=1]="ABOVE",b[b.BELOW=2]="BELOW"})(pbe||(pbe={}));var fbe;(function(b){b[b.NotSet=0]="NotSet",b[b.ContentFlush=1]="ContentFlush",b[b.RecoverFromMarkers=2]="RecoverFromMarkers",b[b.Explicit=3]="Explicit",b[b.Paste=4]="Paste",b[b.Undo=5]="Undo",b[b.Redo=6]="Redo"})(fbe||(fbe={}));var mbe;(function(b){b[b.LF=1]="LF",b[b.CRLF=2]="CRLF"})(mbe||(mbe={}));var hbe;(function(b){b[b.Text=0]="Text",b[b.Read=1]="Read",b[b.Write=2]="Write"})(hbe||(hbe={}));var _be;(function(b){b[b.None=0]="None",b[b.Keep=1]="Keep",b[b.Brackets=2]="Brackets",b[b.Advanced=3]="Advanced",b[b.Full=4]="Full"})(_be||(_be={}));var gbe;(function(b){b[b.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",b[b.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",b[b.accessibilitySupport=2]="accessibilitySupport",b[b.accessibilityPageSize=3]="accessibilityPageSize",b[b.allowOverflow=4]="allowOverflow",b[b.allowVariableLineHeights=5]="allowVariableLineHeights",b[b.allowVariableFonts=6]="allowVariableFonts",b[b.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",b[b.ariaLabel=8]="ariaLabel",b[b.ariaRequired=9]="ariaRequired",b[b.autoClosingBrackets=10]="autoClosingBrackets",b[b.autoClosingComments=11]="autoClosingComments",b[b.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",b[b.autoClosingDelete=13]="autoClosingDelete",b[b.autoClosingOvertype=14]="autoClosingOvertype",b[b.autoClosingQuotes=15]="autoClosingQuotes",b[b.autoIndent=16]="autoIndent",b[b.autoIndentOnPaste=17]="autoIndentOnPaste",b[b.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",b[b.automaticLayout=19]="automaticLayout",b[b.autoSurround=20]="autoSurround",b[b.bracketPairColorization=21]="bracketPairColorization",b[b.guides=22]="guides",b[b.codeLens=23]="codeLens",b[b.codeLensFontFamily=24]="codeLensFontFamily",b[b.codeLensFontSize=25]="codeLensFontSize",b[b.colorDecorators=26]="colorDecorators",b[b.colorDecoratorsLimit=27]="colorDecoratorsLimit",b[b.columnSelection=28]="columnSelection",b[b.comments=29]="comments",b[b.contextmenu=30]="contextmenu",b[b.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",b[b.cursorBlinking=32]="cursorBlinking",b[b.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",b[b.cursorStyle=34]="cursorStyle",b[b.cursorSurroundingLines=35]="cursorSurroundingLines",b[b.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",b[b.cursorWidth=37]="cursorWidth",b[b.cursorHeight=38]="cursorHeight",b[b.disableLayerHinting=39]="disableLayerHinting",b[b.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",b[b.domReadOnly=41]="domReadOnly",b[b.dragAndDrop=42]="dragAndDrop",b[b.dropIntoEditor=43]="dropIntoEditor",b[b.editContext=44]="editContext",b[b.emptySelectionClipboard=45]="emptySelectionClipboard",b[b.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",b[b.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",b[b.extraEditorClassName=48]="extraEditorClassName",b[b.fastScrollSensitivity=49]="fastScrollSensitivity",b[b.find=50]="find",b[b.fixedOverflowWidgets=51]="fixedOverflowWidgets",b[b.folding=52]="folding",b[b.foldingStrategy=53]="foldingStrategy",b[b.foldingHighlight=54]="foldingHighlight",b[b.foldingImportsByDefault=55]="foldingImportsByDefault",b[b.foldingMaximumRegions=56]="foldingMaximumRegions",b[b.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",b[b.fontFamily=58]="fontFamily",b[b.fontInfo=59]="fontInfo",b[b.fontLigatures=60]="fontLigatures",b[b.fontSize=61]="fontSize",b[b.fontWeight=62]="fontWeight",b[b.fontVariations=63]="fontVariations",b[b.formatOnPaste=64]="formatOnPaste",b[b.formatOnType=65]="formatOnType",b[b.glyphMargin=66]="glyphMargin",b[b.gotoLocation=67]="gotoLocation",b[b.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",b[b.hover=69]="hover",b[b.inDiffEditor=70]="inDiffEditor",b[b.inlineSuggest=71]="inlineSuggest",b[b.letterSpacing=72]="letterSpacing",b[b.lightbulb=73]="lightbulb",b[b.lineDecorationsWidth=74]="lineDecorationsWidth",b[b.lineHeight=75]="lineHeight",b[b.lineNumbers=76]="lineNumbers",b[b.lineNumbersMinChars=77]="lineNumbersMinChars",b[b.linkedEditing=78]="linkedEditing",b[b.links=79]="links",b[b.matchBrackets=80]="matchBrackets",b[b.minimap=81]="minimap",b[b.mouseStyle=82]="mouseStyle",b[b.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",b[b.mouseWheelZoom=84]="mouseWheelZoom",b[b.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",b[b.multiCursorModifier=86]="multiCursorModifier",b[b.mouseMiddleClickAction=87]="mouseMiddleClickAction",b[b.multiCursorPaste=88]="multiCursorPaste",b[b.multiCursorLimit=89]="multiCursorLimit",b[b.occurrencesHighlight=90]="occurrencesHighlight",b[b.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",b[b.overtypeCursorStyle=92]="overtypeCursorStyle",b[b.overtypeOnPaste=93]="overtypeOnPaste",b[b.overviewRulerBorder=94]="overviewRulerBorder",b[b.overviewRulerLanes=95]="overviewRulerLanes",b[b.padding=96]="padding",b[b.pasteAs=97]="pasteAs",b[b.parameterHints=98]="parameterHints",b[b.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",b[b.placeholder=100]="placeholder",b[b.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",b[b.quickSuggestions=102]="quickSuggestions",b[b.quickSuggestionsDelay=103]="quickSuggestionsDelay",b[b.readOnly=104]="readOnly",b[b.readOnlyMessage=105]="readOnlyMessage",b[b.renameOnType=106]="renameOnType",b[b.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",b[b.renderControlCharacters=108]="renderControlCharacters",b[b.renderFinalNewline=109]="renderFinalNewline",b[b.renderLineHighlight=110]="renderLineHighlight",b[b.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",b[b.renderValidationDecorations=112]="renderValidationDecorations",b[b.renderWhitespace=113]="renderWhitespace",b[b.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",b[b.roundedSelection=115]="roundedSelection",b[b.rulers=116]="rulers",b[b.scrollbar=117]="scrollbar",b[b.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",b[b.scrollBeyondLastLine=119]="scrollBeyondLastLine",b[b.scrollPredominantAxis=120]="scrollPredominantAxis",b[b.selectionClipboard=121]="selectionClipboard",b[b.selectionHighlight=122]="selectionHighlight",b[b.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",b[b.selectionHighlightMultiline=124]="selectionHighlightMultiline",b[b.selectOnLineNumbers=125]="selectOnLineNumbers",b[b.showFoldingControls=126]="showFoldingControls",b[b.showUnused=127]="showUnused",b[b.snippetSuggestions=128]="snippetSuggestions",b[b.smartSelect=129]="smartSelect",b[b.smoothScrolling=130]="smoothScrolling",b[b.stickyScroll=131]="stickyScroll",b[b.stickyTabStops=132]="stickyTabStops",b[b.stopRenderingLineAfter=133]="stopRenderingLineAfter",b[b.suggest=134]="suggest",b[b.suggestFontSize=135]="suggestFontSize",b[b.suggestLineHeight=136]="suggestLineHeight",b[b.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",b[b.suggestSelection=138]="suggestSelection",b[b.tabCompletion=139]="tabCompletion",b[b.tabIndex=140]="tabIndex",b[b.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",b[b.unicodeHighlighting=142]="unicodeHighlighting",b[b.unusualLineTerminators=143]="unusualLineTerminators",b[b.useShadowDOM=144]="useShadowDOM",b[b.useTabStops=145]="useTabStops",b[b.wordBreak=146]="wordBreak",b[b.wordSegmenterLocales=147]="wordSegmenterLocales",b[b.wordSeparators=148]="wordSeparators",b[b.wordWrap=149]="wordWrap",b[b.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",b[b.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",b[b.wordWrapColumn=152]="wordWrapColumn",b[b.wordWrapOverride1=153]="wordWrapOverride1",b[b.wordWrapOverride2=154]="wordWrapOverride2",b[b.wrappingIndent=155]="wrappingIndent",b[b.wrappingStrategy=156]="wrappingStrategy",b[b.showDeprecated=157]="showDeprecated",b[b.inertialScroll=158]="inertialScroll",b[b.inlayHints=159]="inlayHints",b[b.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",b[b.effectiveCursorStyle=161]="effectiveCursorStyle",b[b.editorClassName=162]="editorClassName",b[b.pixelRatio=163]="pixelRatio",b[b.tabFocusMode=164]="tabFocusMode",b[b.layoutInfo=165]="layoutInfo",b[b.wrappingInfo=166]="wrappingInfo",b[b.defaultColorDecorators=167]="defaultColorDecorators",b[b.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",b[b.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",b[b.effectiveEditContext=170]="effectiveEditContext",b[b.scrollOnMiddleClick=171]="scrollOnMiddleClick",b[b.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts",b[b.doubleClickSelectsBlock=173]="doubleClickSelectsBlock"})(gbe||(gbe={}));var ybe;(function(b){b[b.TextDefined=0]="TextDefined",b[b.LF=1]="LF",b[b.CRLF=2]="CRLF"})(ybe||(ybe={}));var vbe;(function(b){b[b.LF=0]="LF",b[b.CRLF=1]="CRLF"})(vbe||(vbe={}));var bbe;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=3]="Right"})(bbe||(bbe={}));var Tbe;(function(b){b[b.Increase=0]="Increase",b[b.Decrease=1]="Decrease"})(Tbe||(Tbe={}));var Sbe;(function(b){b[b.None=0]="None",b[b.Indent=1]="Indent",b[b.IndentOutdent=2]="IndentOutdent",b[b.Outdent=3]="Outdent"})(Sbe||(Sbe={}));var Ebe;(function(b){b[b.Both=0]="Both",b[b.Right=1]="Right",b[b.Left=2]="Left",b[b.None=3]="None"})(Ebe||(Ebe={}));var Abe;(function(b){b[b.Type=1]="Type",b[b.Parameter=2]="Parameter"})(Abe||(Abe={}));var Ibe;(function(b){b[b.Accepted=0]="Accepted",b[b.Rejected=1]="Rejected",b[b.Ignored=2]="Ignored"})(Ibe||(Ibe={}));var xbe;(function(b){b[b.Code=1]="Code",b[b.Label=2]="Label"})(xbe||(xbe={}));var Rbe;(function(b){b[b.Automatic=0]="Automatic",b[b.Explicit=1]="Explicit"})(Rbe||(Rbe={}));var BQ;(function(b){b[b.DependsOnKbLayout=-1]="DependsOnKbLayout",b[b.Unknown=0]="Unknown",b[b.Backspace=1]="Backspace",b[b.Tab=2]="Tab",b[b.Enter=3]="Enter",b[b.Shift=4]="Shift",b[b.Ctrl=5]="Ctrl",b[b.Alt=6]="Alt",b[b.PauseBreak=7]="PauseBreak",b[b.CapsLock=8]="CapsLock",b[b.Escape=9]="Escape",b[b.Space=10]="Space",b[b.PageUp=11]="PageUp",b[b.PageDown=12]="PageDown",b[b.End=13]="End",b[b.Home=14]="Home",b[b.LeftArrow=15]="LeftArrow",b[b.UpArrow=16]="UpArrow",b[b.RightArrow=17]="RightArrow",b[b.DownArrow=18]="DownArrow",b[b.Insert=19]="Insert",b[b.Delete=20]="Delete",b[b.Digit0=21]="Digit0",b[b.Digit1=22]="Digit1",b[b.Digit2=23]="Digit2",b[b.Digit3=24]="Digit3",b[b.Digit4=25]="Digit4",b[b.Digit5=26]="Digit5",b[b.Digit6=27]="Digit6",b[b.Digit7=28]="Digit7",b[b.Digit8=29]="Digit8",b[b.Digit9=30]="Digit9",b[b.KeyA=31]="KeyA",b[b.KeyB=32]="KeyB",b[b.KeyC=33]="KeyC",b[b.KeyD=34]="KeyD",b[b.KeyE=35]="KeyE",b[b.KeyF=36]="KeyF",b[b.KeyG=37]="KeyG",b[b.KeyH=38]="KeyH",b[b.KeyI=39]="KeyI",b[b.KeyJ=40]="KeyJ",b[b.KeyK=41]="KeyK",b[b.KeyL=42]="KeyL",b[b.KeyM=43]="KeyM",b[b.KeyN=44]="KeyN",b[b.KeyO=45]="KeyO",b[b.KeyP=46]="KeyP",b[b.KeyQ=47]="KeyQ",b[b.KeyR=48]="KeyR",b[b.KeyS=49]="KeyS",b[b.KeyT=50]="KeyT",b[b.KeyU=51]="KeyU",b[b.KeyV=52]="KeyV",b[b.KeyW=53]="KeyW",b[b.KeyX=54]="KeyX",b[b.KeyY=55]="KeyY",b[b.KeyZ=56]="KeyZ",b[b.Meta=57]="Meta",b[b.ContextMenu=58]="ContextMenu",b[b.F1=59]="F1",b[b.F2=60]="F2",b[b.F3=61]="F3",b[b.F4=62]="F4",b[b.F5=63]="F5",b[b.F6=64]="F6",b[b.F7=65]="F7",b[b.F8=66]="F8",b[b.F9=67]="F9",b[b.F10=68]="F10",b[b.F11=69]="F11",b[b.F12=70]="F12",b[b.F13=71]="F13",b[b.F14=72]="F14",b[b.F15=73]="F15",b[b.F16=74]="F16",b[b.F17=75]="F17",b[b.F18=76]="F18",b[b.F19=77]="F19",b[b.F20=78]="F20",b[b.F21=79]="F21",b[b.F22=80]="F22",b[b.F23=81]="F23",b[b.F24=82]="F24",b[b.NumLock=83]="NumLock",b[b.ScrollLock=84]="ScrollLock",b[b.Semicolon=85]="Semicolon",b[b.Equal=86]="Equal",b[b.Comma=87]="Comma",b[b.Minus=88]="Minus",b[b.Period=89]="Period",b[b.Slash=90]="Slash",b[b.Backquote=91]="Backquote",b[b.BracketLeft=92]="BracketLeft",b[b.Backslash=93]="Backslash",b[b.BracketRight=94]="BracketRight",b[b.Quote=95]="Quote",b[b.OEM_8=96]="OEM_8",b[b.IntlBackslash=97]="IntlBackslash",b[b.Numpad0=98]="Numpad0",b[b.Numpad1=99]="Numpad1",b[b.Numpad2=100]="Numpad2",b[b.Numpad3=101]="Numpad3",b[b.Numpad4=102]="Numpad4",b[b.Numpad5=103]="Numpad5",b[b.Numpad6=104]="Numpad6",b[b.Numpad7=105]="Numpad7",b[b.Numpad8=106]="Numpad8",b[b.Numpad9=107]="Numpad9",b[b.NumpadMultiply=108]="NumpadMultiply",b[b.NumpadAdd=109]="NumpadAdd",b[b.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",b[b.NumpadSubtract=111]="NumpadSubtract",b[b.NumpadDecimal=112]="NumpadDecimal",b[b.NumpadDivide=113]="NumpadDivide",b[b.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",b[b.ABNT_C1=115]="ABNT_C1",b[b.ABNT_C2=116]="ABNT_C2",b[b.AudioVolumeMute=117]="AudioVolumeMute",b[b.AudioVolumeUp=118]="AudioVolumeUp",b[b.AudioVolumeDown=119]="AudioVolumeDown",b[b.BrowserSearch=120]="BrowserSearch",b[b.BrowserHome=121]="BrowserHome",b[b.BrowserBack=122]="BrowserBack",b[b.BrowserForward=123]="BrowserForward",b[b.MediaTrackNext=124]="MediaTrackNext",b[b.MediaTrackPrevious=125]="MediaTrackPrevious",b[b.MediaStop=126]="MediaStop",b[b.MediaPlayPause=127]="MediaPlayPause",b[b.LaunchMediaPlayer=128]="LaunchMediaPlayer",b[b.LaunchMail=129]="LaunchMail",b[b.LaunchApp2=130]="LaunchApp2",b[b.Clear=131]="Clear",b[b.MAX_VALUE=132]="MAX_VALUE"})(BQ||(BQ={}));var GQ;(function(b){b[b.Hint=1]="Hint",b[b.Info=2]="Info",b[b.Warning=4]="Warning",b[b.Error=8]="Error"})(GQ||(GQ={}));var VQ;(function(b){b[b.Unnecessary=1]="Unnecessary",b[b.Deprecated=2]="Deprecated"})(VQ||(VQ={}));var Dbe;(function(b){b[b.Inline=1]="Inline",b[b.Gutter=2]="Gutter"})(Dbe||(Dbe={}));var Cbe;(function(b){b[b.Normal=1]="Normal",b[b.Underlined=2]="Underlined"})(Cbe||(Cbe={}));var Nbe;(function(b){b[b.UNKNOWN=0]="UNKNOWN",b[b.TEXTAREA=1]="TEXTAREA",b[b.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",b[b.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",b[b.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",b[b.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",b[b.CONTENT_TEXT=6]="CONTENT_TEXT",b[b.CONTENT_EMPTY=7]="CONTENT_EMPTY",b[b.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",b[b.CONTENT_WIDGET=9]="CONTENT_WIDGET",b[b.OVERVIEW_RULER=10]="OVERVIEW_RULER",b[b.SCROLLBAR=11]="SCROLLBAR",b[b.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",b[b.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Nbe||(Nbe={}));var Mbe;(function(b){b[b.AIGenerated=1]="AIGenerated"})(Mbe||(Mbe={}));var Pbe;(function(b){b[b.Invoke=0]="Invoke",b[b.Automatic=1]="Automatic"})(Pbe||(Pbe={}));var Lbe;(function(b){b[b.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",b[b.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",b[b.TOP_CENTER=2]="TOP_CENTER"})(Lbe||(Lbe={}));var kbe;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=4]="Right",b[b.Full=7]="Full"})(kbe||(kbe={}));var wbe;(function(b){b[b.Word=0]="Word",b[b.Line=1]="Line",b[b.Suggest=2]="Suggest"})(wbe||(wbe={}));var Obe;(function(b){b[b.Left=0]="Left",b[b.Right=1]="Right",b[b.None=2]="None",b[b.LeftOfInjectedText=3]="LeftOfInjectedText",b[b.RightOfInjectedText=4]="RightOfInjectedText"})(Obe||(Obe={}));var Wbe;(function(b){b[b.Off=0]="Off",b[b.On=1]="On",b[b.Relative=2]="Relative",b[b.Interval=3]="Interval",b[b.Custom=4]="Custom"})(Wbe||(Wbe={}));var Fbe;(function(b){b[b.None=0]="None",b[b.Text=1]="Text",b[b.Blocks=2]="Blocks"})(Fbe||(Fbe={}));var zbe;(function(b){b[b.Smooth=0]="Smooth",b[b.Immediate=1]="Immediate"})(zbe||(zbe={}));var Bbe;(function(b){b[b.Auto=1]="Auto",b[b.Hidden=2]="Hidden",b[b.Visible=3]="Visible"})(Bbe||(Bbe={}));var jQ;(function(b){b[b.LTR=0]="LTR",b[b.RTL=1]="RTL"})(jQ||(jQ={}));var Gbe;(function(b){b.Off="off",b.OnCode="onCode",b.On="on"})(Gbe||(Gbe={}));var Vbe;(function(b){b[b.Invoke=1]="Invoke",b[b.TriggerCharacter=2]="TriggerCharacter",b[b.ContentChange=3]="ContentChange"})(Vbe||(Vbe={}));var jbe;(function(b){b[b.File=0]="File",b[b.Module=1]="Module",b[b.Namespace=2]="Namespace",b[b.Package=3]="Package",b[b.Class=4]="Class",b[b.Method=5]="Method",b[b.Property=6]="Property",b[b.Field=7]="Field",b[b.Constructor=8]="Constructor",b[b.Enum=9]="Enum",b[b.Interface=10]="Interface",b[b.Function=11]="Function",b[b.Variable=12]="Variable",b[b.Constant=13]="Constant",b[b.String=14]="String",b[b.Number=15]="Number",b[b.Boolean=16]="Boolean",b[b.Array=17]="Array",b[b.Object=18]="Object",b[b.Key=19]="Key",b[b.Null=20]="Null",b[b.EnumMember=21]="EnumMember",b[b.Struct=22]="Struct",b[b.Event=23]="Event",b[b.Operator=24]="Operator",b[b.TypeParameter=25]="TypeParameter"})(jbe||(jbe={}));var Ube;(function(b){b[b.Deprecated=1]="Deprecated"})(Ube||(Ube={}));var Hbe;(function(b){b[b.LTR=0]="LTR",b[b.RTL=1]="RTL"})(Hbe||(Hbe={}));var qbe;(function(b){b[b.Hidden=0]="Hidden",b[b.Blink=1]="Blink",b[b.Smooth=2]="Smooth",b[b.Phase=3]="Phase",b[b.Expand=4]="Expand",b[b.Solid=5]="Solid"})(qbe||(qbe={}));var Jbe;(function(b){b[b.Line=1]="Line",b[b.Block=2]="Block",b[b.Underline=3]="Underline",b[b.LineThin=4]="LineThin",b[b.BlockOutline=5]="BlockOutline",b[b.UnderlineThin=6]="UnderlineThin"})(Jbe||(Jbe={}));var Kbe;(function(b){b[b.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",b[b.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",b[b.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",b[b.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Kbe||(Kbe={}));var Xbe;(function(b){b[b.None=0]="None",b[b.Same=1]="Same",b[b.Indent=2]="Indent",b[b.DeepIndent=3]="DeepIndent"})(Xbe||(Xbe={}));const g2=class g2{static chord(g,x){return h5e(g,x)}};g2.CtrlCmd=2048,g2.Shift=1024,g2.Alt=512,g2.WinCtrl=256;let UQ=g2;function F5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:u5e,Emitter:cS,KeyCode:BQ,KeyMod:UQ,Position:Jl,Range:ka,Selection:Qv,SelectionDirection:jQ,MarkerSeverity:GQ,MarkerTag:VQ,Uri:$v,Token:W5e}}var Ybe;class z5e{constructor(){this[Ybe]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(g){return this._map.has(g)}get(g,x=0){const O=this._map.get(g);if(O)return x!==0&&this.touch(O,x),O.value}set(g,x,O=0){let X=this._map.get(g);if(X)X.value=x,O!==0&&this.touch(X,O);else{switch(X={key:g,value:x,next:void 0,previous:void 0},O){case 0:this.addItemLast(X);break;case 1:this.addItemFirst(X);break;case 2:this.addItemLast(X);break;default:this.addItemLast(X);break}this._map.set(g,X),this._size++}return this}delete(g){return!!this.remove(g)}remove(g){const x=this._map.get(g);if(x)return this._map.delete(g),this.removeItem(x),this._size--,x.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const g=this._head;return this._map.delete(g.key),this.removeItem(g),this._size--,g.value}forEach(g,x){const O=this._state;let X=this._head;for(;X;){if(x?g.bind(x)(X.value,X.key,this):g(X.value,X.key,this),this._state!==O)throw new Error("LinkedMap got modified during iteration.");X=X.next}}keys(){const g=this,x=this._state;let O=this._head;const X={[Symbol.iterator](){return X},[Symbol.dispose](){},next(){if(g._state!==x)throw new Error("LinkedMap got modified during iteration.");if(O){const de={value:O.key,done:!1};return O=O.next,de}else return{value:void 0,done:!0}}};return X}values(){const g=this,x=this._state;let O=this._head;const X={[Symbol.iterator](){return X},[Symbol.dispose](){},next(){if(g._state!==x)throw new Error("LinkedMap got modified during iteration.");if(O){const de={value:O.value,done:!1};return O=O.next,de}else return{value:void 0,done:!0}}};return X}entries(){const g=this,x=this._state;let O=this._head;const X={[Symbol.iterator](){return X},[Symbol.dispose](){},next(){if(g._state!==x)throw new Error("LinkedMap got modified during iteration.");if(O){const de={value:[O.key,O.value],done:!1};return O=O.next,de}else return{value:void 0,done:!0}}};return X}[(Ybe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(g){if(g>=this.size)return;if(g===0){this.clear();return}let x=this._head,O=this.size;for(;x&&O>g;)this._map.delete(x.key),x=x.next,O--;this._head=x,this._size=O,x&&(x.previous=void 0),this._state++}trimNew(g){if(g>=this.size)return;if(g===0){this.clear();return}let x=this._tail,O=this.size;for(;x&&O>g;)this._map.delete(x.key),x=x.previous,O--;this._tail=x,this._size=O,x&&(x.next=void 0),this._state++}addItemFirst(g){if(!this._head&&!this._tail)this._tail=g;else if(this._head)g.next=this._head,this._head.previous=g;else throw new Error("Invalid list");this._head=g,this._state++}addItemLast(g){if(!this._head&&!this._tail)this._head=g;else if(this._tail)g.previous=this._tail,this._tail.next=g;else throw new Error("Invalid list");this._tail=g,this._state++}removeItem(g){if(g===this._head&&g===this._tail)this._head=void 0,this._tail=void 0;else if(g===this._head){if(!g.next)throw new Error("Invalid list");g.next.previous=void 0,this._head=g.next}else if(g===this._tail){if(!g.previous)throw new Error("Invalid list");g.previous.next=void 0,this._tail=g.previous}else{const x=g.next,O=g.previous;if(!x||!O)throw new Error("Invalid list");x.previous=O,O.next=x}g.next=void 0,g.previous=void 0,this._state++}touch(g,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(x!==1&&x!==2)){if(x===1){if(g===this._head)return;const O=g.next,X=g.previous;g===this._tail?(X.next=void 0,this._tail=X):(O.previous=X,X.next=O),g.previous=void 0,g.next=this._head,this._head.previous=g,this._head=g,this._state++}else if(x===2){if(g===this._tail)return;const O=g.next,X=g.previous;g===this._head?(O.previous=void 0,this._head=O):(O.previous=X,X.next=O),g.next=void 0,g.previous=this._tail,this._tail.next=g,this._tail=g,this._state++}}}toJSON(){const g=[];return this.forEach((x,O)=>{g.push([O,x])}),g}fromJSON(g){this.clear();for(const[x,O]of g)this.set(x,O)}}class B5e extends z5e{constructor(g,x=1){super(),this._limit=g,this._ratio=Math.min(Math.max(0,x),1)}get limit(){return this._limit}set limit(g){this._limit=g,this.checkTrim()}get(g,x=2){return super.get(g,x)}peek(g){return super.get(g,0)}set(g,x){return super.set(g,x,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class G5e extends B5e{constructor(g,x=1){super(g,x)}trim(g){this.trimOld(g)}set(g,x){return super.set(g,x),this.checkTrim(),this}}class V5e{constructor(){this.map=new Map}add(g,x){let O=this.map.get(g);O||(O=new Set,this.map.set(g,O)),O.add(x)}delete(g,x){const O=this.map.get(g);O&&(O.delete(x),O.size===0&&this.map.delete(g))}forEach(g,x){const O=this.map.get(g);O&&O.forEach(x)}}new G5e(10);var $be;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=4]="Right",b[b.Full=7]="Full"})($be||($be={}));var Qbe;(function(b){b[b.Left=1]="Left",b[b.Center=2]="Center",b[b.Right=3]="Right"})(Qbe||(Qbe={}));var Zbe;(function(b){b[b.LTR=0]="LTR",b[b.RTL=1]="RTL"})(Zbe||(Zbe={}));var eTe;(function(b){b[b.Both=0]="Both",b[b.Right=1]="Right",b[b.Left=2]="Left",b[b.None=3]="None"})(eTe||(eTe={}));function j5e(b){if(!b||b.length===0)return!1;for(let g=0,x=b.length;g=x)break;const X=b.charCodeAt(g);if(X===110||X===114||X===87)return!0}}return!1}function U5e(b,g,x,O,X){if(O===0)return!0;const de=g.charCodeAt(O-1);if(b.get(de)!==0||de===13||de===10)return!0;if(X>0){const Re=g.charCodeAt(O);if(b.get(Re)!==0)return!0}return!1}function H5e(b,g,x,O,X){if(O+X===x)return!0;const de=g.charCodeAt(O+X);if(b.get(de)!==0||de===13||de===10)return!0;if(X>0){const Re=g.charCodeAt(O+X-1);if(b.get(Re)!==0)return!0}return!1}function q5e(b,g,x,O,X){return U5e(b,g,x,O,X)&&H5e(b,g,x,O,X)}class J5e{constructor(g,x){this._wordSeparators=g,this._searchRegex=x,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(g){this._searchRegex.lastIndex=g,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(g){const x=g.length;let O;do{if(this._prevMatchStartIndex+this._prevMatchLength===x||(O=this._searchRegex.exec(g),!O))return null;const X=O.index,de=O[0].length;if(X===this._prevMatchStartIndex&&de===this._prevMatchLength){if(de===0){Jze(g,x,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=X,this._prevMatchLength=de,!this._wordSeparators||q5e(this._wordSeparators,g,x,X,de))return O}while(O);return null}}const K5e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function X5e(b=""){let g="(-?\\d*\\.\\d\\w*)|([^";for(const x of K5e)b.indexOf(x)>=0||(g+="\\"+x);return g+="\\s]+)",new RegExp(g,"g")}const tTe=X5e();function nTe(b){let g=tTe;if(b&&b instanceof RegExp)if(b.global)g=b;else{let x="g";b.ignoreCase&&(x+="i"),b.multiline&&(x+="m"),b.unicode&&(x+="u"),g=new RegExp(b.source,x)}return g.lastIndex=0,g}const rTe=new vze;rTe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function HQ(b,g,x,O,X){if(g=nTe(g),X||(X=TB.first(rTe)),x.length>X.maxLen){let ut=b-X.maxLen/2;return ut<0?ut=0:O+=ut,x=x.substring(ut,b+X.maxLen/2),HQ(b,g,x,O,X)}const de=Date.now(),Re=b-1-O;let Ve=-1,ie=null;for(let ut=1;!(Date.now()-de>=X.timeBudget);ut++){const Qe=Re-X.windowSize*ut;g.lastIndex=Math.max(0,Qe);const qe=Y5e(g,x,Re,Ve);if(!qe&&ie||(ie=qe,Qe<=0))break;Ve=Qe}if(ie){const ut={word:ie[0],startColumn:O+1+ie.index,endColumn:O+1+ie.index+ie[0].length};return g.lastIndex=0,ut}return null}function Y5e(b,g,x,O){let X;for(;X=b.exec(g);){const de=X.index||0;if(de<=x&&b.lastIndex>=x)return X;if(O>0&&de>O)return null}return null}class $5e{static computeUnicodeHighlights(g,x,O){const X=O?O.startLineNumber:1,de=O?O.endLineNumber:g.getLineCount(),Re=new iTe(x),Ve=Re.getCandidateCodePoints();let ie;Ve==="allNonBasicAscii"?ie=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):ie=new RegExp(`${Q5e(Array.from(Ve))}`,"g");const ut=new J5e(null,ie),Qe=[];let qe=!1,Mn,Ln=0,rr=0,kn=0;e:for(let Ti=X,uo=de;Ti<=uo;Ti++){const Hn=g.getLineContent(Ti),mn=Hn.length;ut.reset(0);do if(Mn=ut.next(Hn),Mn){let ga=Mn.index,ho=Mn.index+Mn[0].length;if(ga>0){const Ao=Hn.charCodeAt(ga-1);CQ(Ao)&&ga--}if(ho+1=1e3){qe=!0;break e}Qe.push(new ka(Ti,ga+1,Ti,ho+1))}}while(Mn)}return{ranges:Qe,hasMore:qe,ambiguousCharacterCount:Ln,invisibleCharacterCount:rr,nonBasicAsciiCharacterCount:kn}}static computeUnicodeHighlightReason(g,x){const O=new iTe(x);switch(O.shouldHighlightNonBasicASCII(g,null)){case 0:return null;case 2:return{kind:1};case 3:{const de=g.codePointAt(0),Re=O.ambiguousCharacters.getPrimaryConfusable(de),Ve=kW.getLocales().filter(ie=>!kW.getInstance(new Set([...x.allowedLocales,ie])).isAmbiguous(de));return{kind:0,confusableWith:String.fromCodePoint(Re),notAmbiguousInLocales:Ve}}case 1:return{kind:2}}}}function Q5e(b,g){return`[${Bze(b.map(O=>String.fromCodePoint(O)).join(""))}]`}class iTe{constructor(g){this.options=g,this.allowedCodePoints=new Set(g.allowedCodePoints),this.ambiguousCharacters=kW.getInstance(new Set(g.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const g=new Set;if(this.options.invisibleCharacters)for(const x of wW.codePoints)oTe(String.fromCodePoint(x))||g.add(x);if(this.options.ambiguousCharacters)for(const x of this.ambiguousCharacters.getConfusableCodePoints())g.add(x);for(const x of this.allowedCodePoints)g.delete(x);return g}shouldHighlightNonBasicASCII(g,x){const O=g.codePointAt(0);if(this.allowedCodePoints.has(O))return 0;if(this.options.nonBasicASCII)return 1;let X=!1,de=!1;if(x)for(const Re of x){const Ve=Re.codePointAt(0),ie=Xze(Re);X=X||ie,!ie&&!this.ambiguousCharacters.isAmbiguous(Ve)&&!wW.isInvisibleCharacter(Ve)&&(de=!0)}return!X&&de?0:this.options.invisibleCharacters&&!oTe(g)&&wW.isInvisibleCharacter(O)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(O)?3:0}}function oTe(b){return b===" "||b===` `||b===" "}class WW{constructor(g,x,O){this.changes=g,this.moves=x,this.hitTimeout=O}}class aTe{constructor(g,x){this.lineRangeMapping=g,this.changes=x}}function Z5e(b,g,x=(O,X)=>O===X){if(b===g)return!0;if(!b||!g||b.length!==g.length)return!1;for(let O=0,X=b.length;O0}b.isGreaterThan=O;function X(de){return de===0}b.isNeitherLessOrGreaterThan=X,b.greaterThan=1,b.lessThan=-1,b.neitherLessOrGreaterThan=0})(qQ||(qQ={}));function a2(b,g){return(x,O)=>g(b(x),b(O))}const FW=(b,g)=>b-g;function iBe(b){return(g,x)=>-b(g,x)}const y2=class y2{constructor(g){this.iterate=g}toArray(){const g=[];return this.iterate(x=>(g.push(x),!0)),g}filter(g){return new y2(x=>this.iterate(O=>g(O)?x(O):!0))}map(g){return new y2(x=>this.iterate(O=>x(g(O))))}findLast(g){let x;return this.iterate(O=>(g(O)&&(x=O),!0)),x}findLastMaxBy(g){let x,O=!0;return this.iterate(X=>((O||qQ.isGreaterThan(g(X,x)))&&(O=!1,x=X),!0)),x}};y2.empty=new y2(g=>{});let sTe=y2;class Es{static fromTo(g,x){return new Es(g,x)}static addRange(g,x){let O=0;for(;Ox))return new Es(g,x)}static ofLength(g){return new Es(0,g)}static ofStartAndLength(g,x){return new Es(g,g+x)}static emptyAt(g){return new Es(g,g)}constructor(g,x){if(this.start=g,this.endExclusive=x,g>x)throw new fm(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(g){return new Es(this.start+g,this.endExclusive+g)}deltaStart(g){return new Es(this.start+g,this.endExclusive)}deltaEnd(g){return new Es(this.start,this.endExclusive+g)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(g){return this.start===g.start&&this.endExclusive===g.endExclusive}containsRange(g){return this.start<=g.start&&g.endExclusive<=this.endExclusive}contains(g){return this.start<=g&&g=g.endExclusive}slice(g){return g.slice(this.start,this.endExclusive)}substring(g){return g.substring(this.start,this.endExclusive)}clip(g){if(this.isEmpty)throw new fm(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,g))}clipCyclic(g){if(this.isEmpty)throw new fm(`Invalid clipping range: ${this.toString()}`);return g=this.endExclusive?this.start+(g-this.start)%this.length:g}forEach(g){for(let x=this.start;xx)throw new fm(`startLineNumber ${g} cannot be after endLineNumberExclusive ${x}`);this.startLineNumber=g,this.endLineNumberExclusive=x}contains(g){return this.startLineNumber<=g&&gg.startLineNumber,FW);let xc=tb;class VE{constructor(g=[]){this._normalizedRanges=g}get ranges(){return this._normalizedRanges}addRange(g){if(g.length===0)return;const x=JQ(this._normalizedRanges,X=>X.endLineNumberExclusive>=g.startLineNumber),O=l2(this._normalizedRanges,X=>X.startLineNumber<=g.endLineNumberExclusive)+1;if(x===O)this._normalizedRanges.splice(x,0,g);else if(x===O-1){const X=this._normalizedRanges[x];this._normalizedRanges[x]=X.join(g)}else{const X=this._normalizedRanges[x].join(this._normalizedRanges[O-1]).join(g);this._normalizedRanges.splice(x,O-x,X)}}contains(g){const x=s2(this._normalizedRanges,O=>O.startLineNumber<=g);return!!x&&x.endLineNumberExclusive>g}intersects(g){const x=s2(this._normalizedRanges,O=>O.startLineNumberg.startLineNumber}getUnion(g){if(this._normalizedRanges.length===0)return g;if(g._normalizedRanges.length===0)return this;const x=[];let O=0,X=0,de=null;for(;O=Re.startLineNumber?de=new xc(de.startLineNumber,Math.max(de.endLineNumberExclusive,Re.endLineNumberExclusive)):(x.push(de),de=Re)}return de!==null&&x.push(de),new VE(x)}subtractFrom(g){const x=JQ(this._normalizedRanges,Re=>Re.endLineNumberExclusive>=g.startLineNumber),O=l2(this._normalizedRanges,Re=>Re.startLineNumber<=g.endLineNumberExclusive)+1;if(x===O)return new VE([g]);const X=[];let de=g.startLineNumber;for(let Re=x;Rede&&X.push(new xc(de,Ve.startLineNumber)),de=Ve.endLineNumberExclusive}return deg.toString()).join(", ")}getIntersection(g){const x=[];let O=0,X=0;for(;Ox.delta(g)))}}const pS=class pS{static betweenPositions(g,x){return g.lineNumber===x.lineNumber?new pS(0,x.column-g.column):new pS(x.lineNumber-g.lineNumber,x.column-1)}static fromPosition(g){return new pS(g.lineNumber-1,g.column-1)}static ofRange(g){return pS.betweenPositions(g.getStartPosition(),g.getEndPosition())}static ofText(g){let x=0,O=0;for(const X of g)X===` `?(x++,O=0):O++;return new pS(x,O)}constructor(g,x){this.lineCount=g,this.columnCount=x}isGreaterThanOrEqualTo(g){return this.lineCount!==g.lineCount?this.lineCount>g.lineCount:this.columnCount>=g.columnCount}add(g){return g.lineCount===0?new pS(this.lineCount,this.columnCount+g.columnCount):new pS(this.lineCount+g.lineCount,g.columnCount)}createRange(g){return this.lineCount===0?new ka(g.lineNumber,g.column,g.lineNumber,g.column+this.columnCount):new ka(g.lineNumber,g.column,g.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new ka(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return xc.ofLength(1,this.lineCount+1)}addToPosition(g){return this.lineCount===0?new Jl(g.lineNumber,g.column+this.columnCount):new Jl(g.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};pS.zero=new pS(0,0);let IR=pS;class aBe{getOffsetRange(g){return new Es(this.getOffset(g.getStartPosition()),this.getOffset(g.getEndPosition()))}getRange(g){return ka.fromPositions(this.getPosition(g.start),this.getPosition(g.endExclusive))}getStringReplacement(g){return new mN.deps.StringReplacement(this.getOffsetRange(g.range),g.text)}getTextReplacement(g){return new mN.deps.TextReplacement(this.getRange(g.replaceRange),g.newText)}getTextEdit(g){const x=g.replacements.map(O=>this.getTextReplacement(O));return new mN.deps.TextEdit(x)}}const sZ=class sZ{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};sZ._deps=void 0;let mN=sZ;function sBe(b){mN._deps=b}class lTe extends aBe{constructor(g){super(),this.text=g}get lineStartOffsetByLineIdx(){return this._lineStartOffsetByLineIdx||this._computeLineOffsets(),this._lineStartOffsetByLineIdx}get lineEndOffsetByLineIdx(){return this._lineEndOffsetByLineIdx||this._computeLineOffsets(),this._lineEndOffsetByLineIdx}_computeLineOffsets(){this._lineStartOffsetByLineIdx=[],this._lineEndOffsetByLineIdx=[],this._lineStartOffsetByLineIdx.push(0);for(let g=0;g0&&this.text.charAt(g-1)==="\r"?this._lineEndOffsetByLineIdx.push(g-1):this._lineEndOffsetByLineIdx.push(g));this._lineEndOffsetByLineIdx.push(this.text.length)}getOffset(g){const x=this._validatePosition(g);return this.lineStartOffsetByLineIdx[x.lineNumber-1]+x.column-1}_validatePosition(g){if(g.lineNumber<1)return new Jl(1,1);const x=this.textLength.lineCount+1;if(g.lineNumber>x){const X=this.getLineLength(x);return new Jl(x,X+1)}if(g.column<1)return new Jl(g.lineNumber,1);const O=this.getLineLength(g.lineNumber);return g.column-1>O?new Jl(g.lineNumber,O+1):g}getPosition(g){const x=l2(this.lineStartOffsetByLineIdx,de=>de<=g),O=x+1,X=g-this.lineStartOffsetByLineIdx[x]+1;return new Jl(O,X)}get textLength(){const g=this.lineStartOffsetByLineIdx.length-1;return new mN.deps.TextLength(g,this.text.length-this.lineStartOffsetByLineIdx[g])}getLineLength(g){return this.lineEndOffsetByLineIdx[g-1]-this.lineStartOffsetByLineIdx[g-1]}}class cTe{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Jl(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(g){return this.getValueOfRange(this.getTransformer().getRange(g))}getLineLength(g){return this.getValueOfRange(new ka(g,1,g,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new lTe(this.getValue())),this._transformer}getLineAt(g){return this.getValueOfRange(new ka(g,1,g,Number.MAX_SAFE_INTEGER))}}class lBe extends cTe{constructor(g,x){mze(x>=1),super(),this._getLineContent=g,this._lineCount=x}getValueOfRange(g){if(g.startLineNumber===g.endLineNumber)return this._getLineContent(g.startLineNumber).substring(g.startColumn-1,g.endColumn-1);let x=this._getLineContent(g.startLineNumber).substring(g.startColumn-1);for(let O=g.startLineNumber+1;Og[x-1],g.length)}}class wB extends cTe{constructor(g){super(),this.value=g,this._t=new lTe(this.value)}getValueOfRange(g){return this._t.getOffsetRange(g).substring(this.value)}get length(){return this._t.textLength}getTransformer(){return this._t}}class OB{static fromStringEdit(g,x){const O=g.replacements.map(X=>uS.fromStringReplacement(X,x));return new OB(O)}static fromParallelReplacementsUnsorted(g){const x=g.slice().sort(a2(O=>O.range,ka.compareRangesUsingStarts));return new OB(x)}constructor(g){this.replacements=g,NW(()=>mQ(g,(x,O)=>x.range.getEndPosition().isBeforeOrEqual(O.range.getStartPosition())))}mapPosition(g){let x=0,O=0,X=0;for(const de of this.replacements){const Re=de.range.getStartPosition();if(g.isBeforeOrEqual(Re))break;const Ve=de.range.getEndPosition(),ie=IR.ofText(de.text);if(g.isBefore(Ve)){const ut=new Jl(Re.lineNumber+x,Re.column+(Re.lineNumber+x===O?X:0)),Qe=ie.addToPosition(ut);return WB(ut,Qe)}Re.lineNumber+x!==O&&(X=0),x+=ie.lineCount-(de.range.endLineNumber-de.range.startLineNumber),ie.lineCount===0?Ve.lineNumber!==Re.lineNumber?X+=ie.columnCount-(Ve.column-1):X+=ie.columnCount-(Ve.column-Re.column):X=ie.columnCount,O=Ve.lineNumber+x}return new Jl(g.lineNumber+x,g.column+(g.lineNumber+x===O?X:0))}mapRange(g){function x(Re){return Re instanceof Jl?Re:Re.getStartPosition()}function O(Re){return Re instanceof Jl?Re:Re.getEndPosition()}const X=x(this.mapPosition(g.getStartPosition())),de=O(this.mapPosition(g.getEndPosition()));return WB(X,de)}apply(g){let x="",O=new Jl(1,1);for(const de of this.replacements){const Re=de.range,Ve=Re.getStartPosition(),ie=Re.getEndPosition(),ut=WB(O,Ve);ut.isEmpty()||(x+=g.getValueOfRange(ut)),x+=de.text,O=ie}const X=WB(O,g.endPositionExclusive);return X.isEmpty()||(x+=g.getValueOfRange(X)),x}applyToString(g){const x=new wB(g);return this.apply(x)}getNewRanges(){const g=[];let x=0,O=0,X=0;for(const de of this.replacements){const Re=IR.ofText(de.text),Ve=Jl.lift({lineNumber:de.range.startLineNumber+O,column:de.range.startColumn+(de.range.startLineNumber===x?X:0)}),ie=Re.createRange(Ve);g.push(ie),O=ie.endLineNumber-de.range.endLineNumber,X=ie.endColumn-de.range.endColumn,x=de.range.endLineNumber}return g}toReplacement(g){if(this.replacements.length===0)throw new fm;if(this.replacements.length===1)return this.replacements[0];const x=this.replacements[0].range.getStartPosition(),O=this.replacements[this.replacements.length-1].range.getEndPosition();let X="";for(let de=0;dex.toString()).join(` `):typeof g=="string"?this.toString(new wB(g)):this.replacements.length===0?"":this.replacements.map(x=>{const X=g.getValueOfRange(x.range),de=ka.fromPositions(new Jl(Math.max(1,x.range.startLineNumber-1),1),x.range.getStartPosition());let Re=g.getValueOfRange(de);Re.length>10&&(Re="..."+Re.substring(Re.length-10));const Ve=ka.fromPositions(x.range.getEndPosition(),new Jl(x.range.endLineNumber+1,1));let ie=g.getValueOfRange(Ve);ie.length>10&&(ie=ie.substring(0,10)+"...");let ut=X;if(ut.length>10){const qe=Math.floor(5);ut=ut.substring(0,qe)+"..."+ut.substring(ut.length-qe)}let Qe=x.text;if(Qe.length>10){const qe=Math.floor(5);Qe=Qe.substring(0,qe)+"..."+Qe.substring(Qe.length-qe)}return ut.length===0?`${Re}❰${Qe}❱${ie}`:`${Re}❰${ut}↦${Qe}❱${ie}`}).join(` `)}}class uS{static joinReplacements(g,x){if(g.length===0)throw new fm;if(g.length===1)return g[0];const O=g[0].range.getStartPosition(),X=g[g.length-1].range.getEndPosition();let de="";for(let Re=0;Re ${x.lineNumber},${x.column}): "${this.text}"`}}function WB(b,g){if(b.lineNumber===g.lineNumber&&b.column===Number.MAX_SAFE_INTEGER)return ka.fromPositions(g,g);if(!b.isBeforeOrEqual(g))throw new fm("start must be before end");return new ka(b.lineNumber,b.column,g.lineNumber,g.column)}class Zv{static inverse(g,x,O){const X=[];let de=1,Re=1;for(const ie of g){const ut=new Zv(new xc(de,ie.original.startLineNumber),new xc(Re,ie.modified.startLineNumber));ut.modified.isEmpty||X.push(ut),de=ie.original.endLineNumberExclusive,Re=ie.modified.endLineNumberExclusive}const Ve=new Zv(new xc(de,x+1),new xc(Re,O+1));return Ve.modified.isEmpty||X.push(Ve),X}static clip(g,x,O){const X=[];for(const de of g){const Re=de.original.intersect(x),Ve=de.modified.intersect(O);Re&&!Re.isEmpty&&Ve&&!Ve.isEmpty&&X.push(new Zv(Re,Ve))}return X}constructor(g,x){this.original=g,this.modified=x}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Zv(this.modified,this.original)}join(g){return new Zv(this.original.join(g.original),this.modified.join(g.modified))}toRangeMapping(){const g=this.original.toInclusiveRange(),x=this.modified.toInclusiveRange();if(g&&x)return new eb(g,x);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new fm("not a valid diff");return new eb(new ka(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ka(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new eb(new ka(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new ka(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(g,x){if(dTe(this.original.endLineNumberExclusive,g)&&dTe(this.modified.endLineNumberExclusive,x))return new eb(new ka(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ka(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new eb(ka.fromPositions(new Jl(this.original.startLineNumber,1),c2(new Jl(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),ka.fromPositions(new Jl(this.modified.startLineNumber,1),c2(new Jl(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new eb(ka.fromPositions(c2(new Jl(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),g),c2(new Jl(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),g)),ka.fromPositions(c2(new Jl(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),x),c2(new Jl(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));throw new fm}}function c2(b,g){if(b.lineNumber<1)return new Jl(1,1);if(b.lineNumber>g.length)return new Jl(g.length,g[g.length-1].length+1);const x=g[b.lineNumber-1];return b.column>x.length+1?new Jl(b.lineNumber,x.length+1):b}function dTe(b,g){return b>=1&&b<=g.length}class $A extends Zv{static fromRangeMappings(g){const x=xc.join(g.map(X=>xc.fromRangeInclusive(X.originalRange))),O=xc.join(g.map(X=>xc.fromRangeInclusive(X.modifiedRange)));return new $A(x,O,g)}constructor(g,x,O){super(g,x),this.innerChanges=O}flip(){return new $A(this.modified,this.original,this.innerChanges?.map(g=>g.flip()))}withInnerChangesFromLineRanges(){return new $A(this.original,this.modified,[this.toRangeMapping()])}}class eb{static fromEdit(g){const x=g.getNewRanges();return g.replacements.map((X,de)=>new eb(X.range,x[de]))}static assertSorted(g){for(let x=1;x${this.modifiedRange.toString()}}`}flip(){return new eb(this.modifiedRange,this.originalRange)}toTextEdit(g){const x=g.getValueOfRange(this.modifiedRange);return new uS(this.originalRange,x)}}function KQ(b,g,x,O=!1){const X=[];for(const de of eBe(b.map(Re=>cBe(Re,g,x)),(Re,Ve)=>Re.original.intersectsOrTouches(Ve.original)||Re.modified.intersectsOrTouches(Ve.modified))){const Re=de[0],Ve=de[de.length-1];X.push(new $A(Re.original.join(Ve.original),Re.modified.join(Ve.modified),de.map(ie=>ie.innerChanges[0])))}return NW(()=>!O&&X.length>0&&(X[0].modified.startLineNumber!==X[0].original.startLineNumber||x.length.lineCount-X[X.length-1].modified.endLineNumberExclusive!==g.length.lineCount-X[X.length-1].original.endLineNumberExclusive)?!1:mQ(X,(de,Re)=>Re.original.startLineNumber-de.original.endLineNumberExclusive===Re.modified.startLineNumber-de.modified.endLineNumberExclusive&&de.original.endLineNumberExclusive=x.getLineLength(b.modifiedRange.startLineNumber)&&b.originalRange.startColumn-1>=g.getLineLength(b.originalRange.startLineNumber)&&b.originalRange.startLineNumber<=b.originalRange.endLineNumber+X&&b.modifiedRange.startLineNumber<=b.modifiedRange.endLineNumber+X&&(O=1);const de=new xc(b.originalRange.startLineNumber+O,b.originalRange.endLineNumber+1+X),Re=new xc(b.modifiedRange.startLineNumber+O,b.modifiedRange.endLineNumber+1+X);return new $A(de,Re,[b])}const dBe=3;class uBe{computeDiff(g,x,O){const de=new mBe(g,x,{maxComputationTime:O.maxComputationTimeMs,shouldIgnoreTrimWhitespace:O.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Re=[];let Ve=null;for(const ie of de.changes){let ut;ie.originalEndLineNumber===0?ut=new xc(ie.originalStartLineNumber+1,ie.originalStartLineNumber+1):ut=new xc(ie.originalStartLineNumber,ie.originalEndLineNumber+1);let Qe;ie.modifiedEndLineNumber===0?Qe=new xc(ie.modifiedStartLineNumber+1,ie.modifiedStartLineNumber+1):Qe=new xc(ie.modifiedStartLineNumber,ie.modifiedEndLineNumber+1);let qe=new $A(ut,Qe,ie.charChanges?.map(Mn=>new eb(new ka(Mn.originalStartLineNumber,Mn.originalStartColumn,Mn.originalEndLineNumber,Mn.originalEndColumn),new ka(Mn.modifiedStartLineNumber,Mn.modifiedStartColumn,Mn.modifiedEndLineNumber,Mn.modifiedEndColumn))));Ve&&(Ve.modified.endLineNumberExclusive===qe.modified.startLineNumber||Ve.original.endLineNumberExclusive===qe.original.startLineNumber)&&(qe=new $A(Ve.original.join(qe.original),Ve.modified.join(qe.modified),Ve.innerChanges&&qe.innerChanges?Ve.innerChanges.concat(qe.innerChanges):void 0),Re.pop()),Re.push(qe),Ve=qe}return NW(()=>mQ(Re,(ie,ut)=>ut.original.startLineNumber-ie.original.endLineNumberExclusive===ut.modified.startLineNumber-ie.modified.endLineNumberExclusive&&ie.original.endLineNumberExclusive(g===10?"\\n":String.fromCharCode(g))+`-(${this._lineNumbers[x]},${this._columns[x]})`).join(", ")+"]"}_assertIndex(g,x){if(g<0||g>=x.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(g){return g>0&&g===this._lineNumbers.length?this.getEndLineNumber(g-1):(this._assertIndex(g,this._lineNumbers),this._lineNumbers[g])}getEndLineNumber(g){return g===-1?this.getStartLineNumber(g+1):(this._assertIndex(g,this._lineNumbers),this._charCodes[g]===10?this._lineNumbers[g]+1:this._lineNumbers[g])}getStartColumn(g){return g>0&&g===this._columns.length?this.getEndColumn(g-1):(this._assertIndex(g,this._columns),this._columns[g])}getEndColumn(g){return g===-1?this.getStartColumn(g+1):(this._assertIndex(g,this._columns),this._charCodes[g]===10?1:this._columns[g]+1)}}class d2{constructor(g,x,O,X,de,Re,Ve,ie){this.originalStartLineNumber=g,this.originalStartColumn=x,this.originalEndLineNumber=O,this.originalEndColumn=X,this.modifiedStartLineNumber=de,this.modifiedStartColumn=Re,this.modifiedEndLineNumber=Ve,this.modifiedEndColumn=ie}static createFromDiffChange(g,x,O){const X=x.getStartLineNumber(g.originalStart),de=x.getStartColumn(g.originalStart),Re=x.getEndLineNumber(g.originalStart+g.originalLength-1),Ve=x.getEndColumn(g.originalStart+g.originalLength-1),ie=O.getStartLineNumber(g.modifiedStart),ut=O.getStartColumn(g.modifiedStart),Qe=O.getEndLineNumber(g.modifiedStart+g.modifiedLength-1),qe=O.getEndColumn(g.modifiedStart+g.modifiedLength-1);return new d2(X,de,Re,Ve,ie,ut,Qe,qe)}}function fBe(b){if(b.length<=1)return b;const g=[b[0]];let x=g[0];for(let O=1,X=b.length;O0&&x.originalLength<20&&x.modifiedLength>0&&x.modifiedLength<20&&de()){const Ln=O.createCharSequence(g,x.originalStart,x.originalStart+x.originalLength-1),rr=X.createCharSequence(g,x.modifiedStart,x.modifiedStart+x.modifiedLength-1);if(Ln.getElements().length>0&&rr.getElements().length>0){let kn=uTe(Ln,rr,de,!0).changes;Ve&&(kn=fBe(kn)),Mn=[];for(let Ti=0,uo=kn.length;Ti1&&kn>1;){const Ti=Mn.charCodeAt(rr-2),uo=Ln.charCodeAt(kn-2);if(Ti!==uo)break;rr--,kn--}(rr>1||kn>1)&&this._pushTrimWhitespaceCharChange(X,de+1,1,rr,Re+1,1,kn)}{let rr=YQ(Mn,1),kn=YQ(Ln,1);const Ti=Mn.length+1,uo=Ln.length+1;for(;rr!0;const g=Date.now();return()=>Date.now()-g{O.push(df.fromOffsetPairs(X?X.getEndExclusives():ZA.zero,de?de.getStarts():new ZA(x,(X?X.seq2Range.endExclusive-X.seq1Range.endExclusive:0)+x)))}),O}static fromOffsetPairs(g,x){return new df(new Es(g.offset1,x.offset1),new Es(g.offset2,x.offset2))}static assertSorted(g){let x;for(const O of g){if(x&&!(x.seq1Range.endExclusive<=O.seq1Range.start&&x.seq2Range.endExclusive<=O.seq2Range.start))throw new fm("Sequence diffs must be sorted");x=O}}constructor(g,x){this.seq1Range=g,this.seq2Range=x}swap(){return new df(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(g){return new df(this.seq1Range.join(g.seq1Range),this.seq2Range.join(g.seq2Range))}delta(g){return g===0?this:new df(this.seq1Range.delta(g),this.seq2Range.delta(g))}deltaStart(g){return g===0?this:new df(this.seq1Range.deltaStart(g),this.seq2Range.deltaStart(g))}deltaEnd(g){return g===0?this:new df(this.seq1Range.deltaEnd(g),this.seq2Range.deltaEnd(g))}intersect(g){const x=this.seq1Range.intersect(g.seq1Range),O=this.seq2Range.intersect(g.seq2Range);if(!(!x||!O))return new df(x,O)}getStarts(){return new ZA(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ZA(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const _N=class _N{constructor(g,x){this.offset1=g,this.offset2=x}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(g){return g===0?this:new _N(this.offset1+g,this.offset2+g)}equals(g){return this.offset1===g.offset1&&this.offset2===g.offset2}};_N.zero=new _N(0,0),_N.max=new _N(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let ZA=_N;const qB=class qB{isValid(){return!0}};qB.instance=new qB;let BW=qB;class hBe{constructor(g){if(this.timeout=g,this.startTime=Date.now(),this.valid=!0,g<=0)throw new fm("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&kn>0&&Re.get(rr-1,kn-1)===3&&(Hn+=Ve.get(rr-1,kn-1)),Hn+=X?X(rr,kn):1):Hn=-1;const mn=Math.max(Ti,uo,Hn);if(mn===Hn){const ga=rr>0&&kn>0?Ve.get(rr-1,kn-1):0;Ve.set(rr,kn,ga+1),Re.set(rr,kn,3)}else mn===Ti?(Ve.set(rr,kn,0),Re.set(rr,kn,1)):mn===uo&&(Ve.set(rr,kn,0),Re.set(rr,kn,2));de.set(rr,kn,mn)}const ie=[];let ut=g.length,Qe=x.length;function qe(rr,kn){(rr+1!==ut||kn+1!==Qe)&&ie.push(new df(new Es(rr+1,ut),new Es(kn+1,Qe))),ut=rr,Qe=kn}let Mn=g.length-1,Ln=x.length-1;for(;Mn>=0&&Ln>=0;)Re.get(Mn,Ln)===3?(qe(Mn,Ln),Mn--,Ln--):Re.get(Mn,Ln)===1?Mn--:Ln--;return qe(-1,-1),ie.reverse(),new QA(ie,!1)}}class mTe{compute(g,x,O=BW.instance){if(g.length===0||x.length===0)return QA.trivial(g,x);const X=g,de=x;function Re(kn,Ti){for(;knX.length||ga>de.length)continue;const ho=Re(mn,ga);ie.set(Qe,ho);const vl=mn===uo?ut.get(Qe+1):ut.get(Qe-1);if(ut.set(Qe,ho!==mn?new hTe(vl,mn,ga,ho-mn):vl),ie.get(Qe)===X.length&&ie.get(Qe)-Qe===de.length)break e}}let qe=ut.get(Qe);const Mn=[];let Ln=X.length,rr=de.length;for(;;){const kn=qe?qe.x+qe.length:0,Ti=qe?qe.y+qe.length:0;if((kn!==Ln||Ti!==rr)&&Mn.push(new df(new Es(kn,Ln),new Es(Ti,rr))),!qe)break;Ln=qe.x,rr=qe.y,qe=qe.prev}return Mn.reverse(),new QA(Mn,!1)}}class hTe{constructor(g,x,O,X){this.prev=g,this.x=x,this.y=O,this.length=X}}class gBe{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,x){if(g<0){if(g=-g-1,g>=this.negativeArr.length){const O=this.negativeArr;this.negativeArr=new Int32Array(O.length*2),this.negativeArr.set(O)}this.negativeArr[g]=x}else{if(g>=this.positiveArr.length){const O=this.positiveArr;this.positiveArr=new Int32Array(O.length*2),this.positiveArr.set(O)}this.positiveArr[g]=x}}}class yBe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(g){return g<0?(g=-g-1,this.negativeArr[g]):this.positiveArr[g]}set(g,x){g<0?(g=-g-1,this.negativeArr[g]=x):this.positiveArr[g]=x}}class zB{constructor(g,x,O){this.lines=g,this.range=x,this.considerWhitespaceChanges=O,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let X=this.range.startLineNumber;X<=this.range.endLineNumber;X++){let de=g[X-1],Re=0;X===this.range.startLineNumber&&this.range.startColumn>1&&(Re=this.range.startColumn-1,de=de.substring(Re)),this.lineStartOffsets.push(Re);let Ve=0;if(!O){const ut=de.trimStart();Ve=de.length-ut.length,de=ut.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Ve);const ie=X===this.range.endLineNumber?Math.min(this.range.endColumn-1-Re-Ve,de.length):de.length;for(let ut=0;utString.fromCharCode(x)).join("")}getElement(g){return this.elements[g]}get length(){return this.elements.length}getBoundaryScore(g){const x=yTe(g>0?this.elements[g-1]:-1),O=yTe(gde<=g),X=g-this.firstElementOffsetByLineIdx[O];return new Jl(this.range.startLineNumber+O,1+this.lineStartOffsets[O]+X+(X===0&&x==="left"?0:this.trimmedWsLengthsByLineIdx[O]))}translateRange(g){const x=this.translateOffset(g.start,"right"),O=this.translateOffset(g.endExclusive,"left");return O.isBefore(x)?ka.fromPositions(O,O):ka.fromPositions(x,O)}findWordContaining(g){if(g<0||g>=this.elements.length||!u2(this.elements[g]))return;let x=g;for(;x>0&&u2(this.elements[x-1]);)x--;let O=g;for(;O=this.elements.length||!u2(this.elements[g]))return;let x=g;for(;x>0&&u2(this.elements[x-1])&&!_Te(this.elements[x]);)x--;let O=g;for(;OX<=g.start)??0,O=oBe(this.firstElementOffsetByLineIdx,X=>g.endExclusive<=X)??this.elements.length;return new Es(x,O)}}function u2(b){return b>=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57}function _Te(b){return b>=65&&b<=90}const vBe={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function gTe(b){return vBe[b]}function yTe(b){return b===10?8:b===13?7:QQ(b)?6:b>=97&&b<=122?0:b>=65&&b<=90?1:b>=48&&b<=57?2:b===-1?3:b===44||b===59?5:4}function bBe(b,g,x,O,X,de){let{moves:Re,excludedChanges:Ve}=SBe(b,g,x,de);if(!de.isValid())return[];const ie=b.filter(Qe=>!Ve.has(Qe)),ut=EBe(ie,O,X,g,x,de);return rBe(Re,ut),Re=ABe(Re),Re=Re.filter(Qe=>{const qe=Qe.original.toOffsetRange().slice(g).map(Ln=>Ln.trim());return qe.join(` `).length>=15&&TBe(qe,Ln=>Ln.length>=2)>=2}),Re=IBe(b,Re),Re}function TBe(b,g){let x=0;for(const O of b)g(O)&&x++;return x}function SBe(b,g,x,O){const X=[],de=b.filter(ie=>ie.modified.isEmpty&&ie.original.length>=3).map(ie=>new FB(ie.original,g,ie)),Re=new Set(b.filter(ie=>ie.original.isEmpty&&ie.modified.length>=3).map(ie=>new FB(ie.modified,x,ie))),Ve=new Set;for(const ie of de){let ut=-1,Qe;for(const qe of Re){const Mn=ie.computeSimilarity(qe);Mn>ut&&(ut=Mn,Qe=qe)}if(ut>.9&&Qe&&(Re.delete(Qe),X.push(new Zv(ie.range,Qe.range)),Ve.add(ie.source),Ve.add(Qe.source)),!O.isValid())return{moves:X,excludedChanges:Ve}}return{moves:X,excludedChanges:Ve}}function EBe(b,g,x,O,X,de){const Re=[],Ve=new V5e;for(const Mn of b)for(let Ln=Mn.original.startLineNumber;LnMn.modified.startLineNumber,FW));for(const Mn of b){let Ln=[];for(let rr=Mn.modified.startLineNumber;rr{for(const ga of Ln)if(ga.originalLineRange.endLineNumberExclusive+1===Hn.endLineNumberExclusive&&ga.modifiedLineRange.endLineNumberExclusive+1===Ti.endLineNumberExclusive){ga.originalLineRange=new xc(ga.originalLineRange.startLineNumber,Hn.endLineNumberExclusive),ga.modifiedLineRange=new xc(ga.modifiedLineRange.startLineNumber,Ti.endLineNumberExclusive),uo.push(ga);return}const mn={modifiedLineRange:Ti,originalLineRange:Hn};ie.push(mn),uo.push(mn)}),Ln=uo}if(!de.isValid())return[]}ie.sort(iBe(a2(Mn=>Mn.modifiedLineRange.length,FW)));const ut=new VE,Qe=new VE;for(const Mn of ie){const Ln=Mn.modifiedLineRange.startLineNumber-Mn.originalLineRange.startLineNumber,rr=ut.subtractFrom(Mn.modifiedLineRange),kn=Qe.subtractFrom(Mn.originalLineRange).getWithDelta(Ln),Ti=rr.getIntersection(kn);for(const uo of Ti.ranges){if(uo.length<3)continue;const Hn=uo,mn=uo.delta(-Ln);Re.push(new Zv(mn,Hn)),ut.addRange(Hn),Qe.addRange(mn)}}Re.sort(a2(Mn=>Mn.original.startLineNumber,FW));const qe=new LB(b);for(let Mn=0;Mnvl.original.startLineNumber<=Ln.original.startLineNumber),kn=s2(b,vl=>vl.modified.startLineNumber<=Ln.modified.startLineNumber),Ti=Math.max(Ln.original.startLineNumber-rr.original.startLineNumber,Ln.modified.startLineNumber-kn.modified.startLineNumber),uo=qe.findLastMonotonous(vl=>vl.original.startLineNumbervl.modified.startLineNumberO.length||jn>X.length||ut.contains(jn)||Qe.contains(vl)||!vTe(O[vl-1],X[jn-1],de))break}ga>0&&(Qe.addRange(new xc(Ln.original.startLineNumber-ga,Ln.original.startLineNumber)),ut.addRange(new xc(Ln.modified.startLineNumber-ga,Ln.modified.startLineNumber)));let ho;for(ho=0;hoO.length||jn>X.length||ut.contains(jn)||Qe.contains(vl)||!vTe(O[vl-1],X[jn-1],de))break}ho>0&&(Qe.addRange(new xc(Ln.original.endLineNumberExclusive,Ln.original.endLineNumberExclusive+ho)),ut.addRange(new xc(Ln.modified.endLineNumberExclusive,Ln.modified.endLineNumberExclusive+ho))),(ga>0||ho>0)&&(Re[Mn]=new Zv(new xc(Ln.original.startLineNumber-ga,Ln.original.endLineNumberExclusive+ho),new xc(Ln.modified.startLineNumber-ga,Ln.modified.endLineNumberExclusive+ho)))}return Re}function vTe(b,g,x){if(b.trim()===g.trim())return!0;if(b.length>300&&g.length>300)return!1;const X=new mTe().compute(new zB([b],new ka(1,1,1,b.length),!1),new zB([g],new ka(1,1,1,g.length),!1),x);let de=0;const Re=df.invert(X.diffs,b.length);for(const Qe of Re)Qe.seq1Range.forEach(qe=>{QQ(b.charCodeAt(qe))||de++});function Ve(Qe){let qe=0;for(let Mn=0;Mng.length?b:g);return de/ie>.6&&ie>10}function ABe(b){if(b.length===0)return b;b.sort(a2(x=>x.original.startLineNumber,FW));const g=[b[0]];for(let x=1;x=0&&Re>=0&&de+Re<=2){g[g.length-1]=O.join(X);continue}g.push(X)}return g}function IBe(b,g){const x=new LB(b);return g=g.filter(O=>{const X=x.findLastMonotonous(Ve=>Ve.original.startLineNumberVe.modified.startLineNumber0&&(Ve=Ve.delta(ut))}X.push(Ve)}return O.length>0&&X.push(O[O.length-1]),X}function xBe(b,g,x){if(!b.getBoundaryScore||!g.getBoundaryScore)return x;for(let O=0;O0?x[O-1]:void 0,de=x[O],Re=O+1=O.start&&b.seq2Range.start-Re>=X.start&&x.isStronglyEqual(b.seq2Range.start-Re,b.seq2Range.endExclusive-Re)&&Re<100;)Re++;Re--;let Ve=0;for(;b.seq1Range.start+Veut&&(ut=rr,ie=Qe)}return b.delta(ie)}function RBe(b,g,x){const O=[];for(const X of x){const de=O[O.length-1];if(!de){O.push(X);continue}X.seq1Range.start-de.seq1Range.endExclusive<=2||X.seq2Range.start-de.seq2Range.endExclusive<=2?O[O.length-1]=new df(de.seq1Range.join(X.seq1Range),de.seq2Range.join(X.seq2Range)):O.push(X)}return O}function ETe(b,g,x,O,X=!1){const de=df.invert(x,b.length),Re=[];let Ve=new ZA(0,0);function ie(Qe,qe){if(Qe.offset10;){const Hn=de[0];if(!(Hn.seq1Range.intersects(rr.seq1Range)||Hn.seq2Range.intersects(rr.seq2Range)))break;const ga=O(b,Hn.seq1Range.start),ho=O(g,Hn.seq2Range.start),vl=new df(ga,ho),jn=vl.intersect(Hn);if(Ti+=jn.seq1Range.length,uo+=jn.seq2Range.length,rr=rr.join(vl),rr.seq1Range.endExclusive>=Hn.seq1Range.endExclusive)de.shift();else break}(X&&Ti+uo0;){const Qe=de.shift();Qe.seq1Range.isEmpty||(ie(Qe.getStarts(),Qe),ie(Qe.getEndExclusives().delta(-1),Qe))}return DBe(x,Re)}function DBe(b,g){const x=[];for(;b.length>0||g.length>0;){const O=b[0],X=g[0];let de;O&&(!X||O.seq1Range.start0&&x[x.length-1].seq1Range.endExclusive>=de.seq1Range.start?x[x.length-1]=x[x.length-1].join(de):x.push(de)}return x}function CBe(b,g,x){let O=x;if(O.length===0)return O;let X=0,de;do{de=!1;const Re=[O[0]];for(let Ve=1;Ve5||Ln.seq1Range.length+Ln.seq2Range.length>5)};const ie=O[Ve],ut=Re[Re.length-1];Qe(ut,ie)?(de=!0,Re[Re.length-1]=Re[Re.length-1].join(ie)):Re.push(ie)}O=Re}while(X++<10&&de);return O}function NBe(b,g,x){let O=x;if(O.length===0)return O;let X=0,de;do{de=!1;const Ve=[O[0]];for(let ie=1;ie5||kn.length>500)return!1;const uo=b.getText(kn).trim();if(uo.length>20||uo.split(/\r\n|\r|\n/).length>1)return!1;const Hn=b.countLinesIn(Ln.seq1Range),mn=Ln.seq1Range.length,ga=g.countLinesIn(Ln.seq2Range),ho=Ln.seq2Range.length,vl=b.countLinesIn(rr.seq1Range),jn=rr.seq1Range.length,Gi=g.countLinesIn(rr.seq2Range),Ao=rr.seq2Range.length,Un=130;function fl(Ra){return Math.min(Ra,Un)}return Math.pow(Math.pow(fl(Hn*40+mn),1.5)+Math.pow(fl(ga*40+ho),1.5),1.5)+Math.pow(Math.pow(fl(vl*40+jn),1.5)+Math.pow(fl(Gi*40+Ao),1.5),1.5)>(Un**1.5)**1.5*1.3};const ut=O[ie],Qe=Ve[Ve.length-1];qe(Qe,ut)?(de=!0,Ve[Ve.length-1]=Ve[Ve.length-1].join(ut)):Ve.push(ut)}O=Ve}while(X++<10&&de);const Re=[];return nBe(O,(Ve,ie,ut)=>{let Qe=ie;function qe(uo){return uo.length>0&&uo.trim().length<=3&&ie.seq1Range.length+ie.seq2Range.length>100}const Mn=b.extendToFullLines(ie.seq1Range),Ln=b.getText(new Es(Mn.start,ie.seq1Range.start));qe(Ln)&&(Qe=Qe.deltaStart(-Ln.length));const rr=b.getText(new Es(ie.seq1Range.endExclusive,Mn.endExclusive));qe(rr)&&(Qe=Qe.deltaEnd(rr.length));const kn=df.fromOffsetPairs(Ve?Ve.getEndExclusives():ZA.zero,ut?ut.getStarts():ZA.max),Ti=Qe.intersect(kn);Re.length>0&&Ti.getStarts().equals(Re[Re.length-1].getEndExclusives())?Re[Re.length-1]=Re[Re.length-1].join(Ti):Re.push(Ti)}),Re}class ATe{constructor(g,x){this.trimmedHash=g,this.lines=x}getElement(g){return this.trimmedHash[g]}get length(){return this.trimmedHash.length}getBoundaryScore(g){const x=g===0?0:ITe(this.lines[g-1]),O=g===this.lines.length?0:ITe(this.lines[g]);return 1e3-(x+O)}getText(g){return this.lines.slice(g.start,g.endExclusive).join(` `)}isStronglyEqual(g,x){return this.lines[g]===this.lines[x]}}function ITe(b){let g=0;for(;gjn===Gi))return new WW([],[],!1);if(g.length===1&&g[0].length===0||x.length===1&&x[0].length===0)return new WW([new $A(new xc(1,g.length+1),new xc(1,x.length+1),[new eb(new ka(1,1,g.length,g[g.length-1].length+1),new ka(1,1,x.length,x[x.length-1].length+1))])],[],!1);const X=O.maxComputationTimeMs===0?BW.instance:new hBe(O.maxComputationTimeMs),de=!O.ignoreTrimWhitespace,Re=new Map;function Ve(jn){let Gi=Re.get(jn);return Gi===void 0&&(Gi=Re.size,Re.set(jn,Gi)),Gi}const ie=g.map(jn=>Ve(jn.trim())),ut=x.map(jn=>Ve(jn.trim())),Qe=new ATe(ie,g),qe=new ATe(ut,x),Mn=Qe.length+qe.length<1700?this.dynamicProgrammingDiffing.compute(Qe,qe,X,(jn,Gi)=>g[jn]===x[Gi]?x[Gi].length===0?.1:1+Math.log(1+x[Gi].length):.99):this.myersDiffingAlgorithm.compute(Qe,qe,X);let Ln=Mn.diffs,rr=Mn.hitTimeout;Ln=bTe(Qe,qe,Ln),Ln=CBe(Qe,qe,Ln);const kn=[],Ti=jn=>{if(de)for(let Gi=0;Gijn.seq1Range.start-uo===jn.seq2Range.start-Hn);const Gi=jn.seq1Range.start-uo;Ti(Gi),uo=jn.seq1Range.endExclusive,Hn=jn.seq2Range.endExclusive;const Ao=this.refineDiff(g,x,jn,X,de,O);Ao.hitTimeout&&(rr=!0);for(const Un of Ao.mappings)kn.push(Un)}Ti(g.length-uo);const mn=new kB(g),ga=new kB(x),ho=KQ(kn,mn,ga);let vl=[];return O.computeMoves&&(vl=this.computeMoves(ho,g,x,ie,ut,X,de,O)),NW(()=>{function jn(Ao,Un){if(Ao.lineNumber<1||Ao.lineNumber>Un.length)return!1;const fl=Un[Ao.lineNumber-1];return!(Ao.column<1||Ao.column>fl.length+1)}function Gi(Ao,Un){return!(Ao.startLineNumber<1||Ao.startLineNumber>Un.length+1||Ao.endLineNumberExclusive<1||Ao.endLineNumberExclusive>Un.length+1)}for(const Ao of ho){if(!Ao.innerChanges)return!1;for(const Un of Ao.innerChanges)if(!(jn(Un.modifiedRange.getStartPosition(),x)&&jn(Un.modifiedRange.getEndPosition(),x)&&jn(Un.originalRange.getStartPosition(),g)&&jn(Un.originalRange.getEndPosition(),g)))return!1;if(!Gi(Ao.modified,x)||!Gi(Ao.original,g))return!1}return!0}),new WW(ho,vl,rr)}computeMoves(g,x,O,X,de,Re,Ve,ie){return bBe(g,x,O,X,de,Re).map(qe=>{const Mn=this.refineDiff(x,O,new df(qe.original.toOffsetRange(),qe.modified.toOffsetRange()),Re,Ve,ie),Ln=KQ(Mn.mappings,new kB(x),new kB(O),!0);return new aTe(qe,Ln)})}refineDiff(g,x,O,X,de,Re){const ie=PBe(O).toRangeMapping2(g,x),ut=new zB(g,ie.originalRange,de),Qe=new zB(x,ie.modifiedRange,de),qe=ut.length+Qe.length<500?this.dynamicProgrammingDiffing.compute(ut,Qe,X):this.myersDiffingAlgorithm.compute(ut,Qe,X);let Mn=qe.diffs;return Mn=bTe(ut,Qe,Mn),Mn=ETe(ut,Qe,Mn,(rr,kn)=>rr.findWordContaining(kn)),Re.extendToSubwords&&(Mn=ETe(ut,Qe,Mn,(rr,kn)=>rr.findSubWordContaining(kn),!0)),Mn=RBe(ut,Qe,Mn),Mn=NBe(ut,Qe,Mn),{mappings:Mn.map(rr=>new eb(ut.translateRange(rr.seq1Range),Qe.translateRange(rr.seq2Range))),hitTimeout:qe.hitTimeout}}}function PBe(b){return new Zv(new xc(b.seq1Range.start+1,b.seq1Range.endExclusive+1),new xc(b.seq2Range.start+1,b.seq2Range.endExclusive+1))}var xR;(function(b){b.inMemory="inmemory",b.vscode="vscode",b.internal="private",b.walkThrough="walkThrough",b.walkThroughSnippet="walkThroughSnippet",b.http="http",b.https="https",b.file="file",b.mailto="mailto",b.untitled="untitled",b.data="data",b.command="command",b.vscodeRemote="vscode-remote",b.vscodeRemoteResource="vscode-remote-resource",b.vscodeManagedRemoteResource="vscode-managed-remote-resource",b.vscodeUserData="vscode-userdata",b.vscodeCustomEditor="vscode-custom-editor",b.vscodeNotebookCell="vscode-notebook-cell",b.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",b.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",b.vscodeNotebookCellOutput="vscode-notebook-cell-output",b.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",b.vscodeNotebookMetadata="vscode-notebook-metadata",b.vscodeInteractiveInput="vscode-interactive-input",b.vscodeSettings="vscode-settings",b.vscodeWorkspaceTrust="vscode-workspace-trust",b.vscodeTerminal="vscode-terminal",b.vscodeImageCarousel="vscode-image-carousel",b.vscodeChatCodeBlock="vscode-chat-code-block",b.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",b.vscodeChatEditor="vscode-chat-editor",b.vscodeChatInput="chatSessionInput",b.vscodeLocalChatSession="vscode-chat-session",b.webviewPanel="webview-panel",b.vscodeWebview="vscode-webview",b.vscodeBrowser="vscode-browser",b.extension="extension",b.vscodeFileResource="vscode-file",b.tmp="tmp",b.vsls="vsls",b.vscodeSourceControl="vscode-scm",b.commentsInput="comment",b.codeSetting="code-setting",b.outputChannel="output",b.accessibleView="accessible-view",b.chatEditingSnapshotScheme="chat-editing-snapshot-text-model",b.chatEditingModel="chat-editing-text-model",b.copilotPr="copilot-pr"})(xR||(xR={}));const LBe="tkn";class kBe{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(g){this._preferredWebSchema=g}get _remoteResourcesPath(){return lg.join(this._serverRootPath,xR.vscodeRemoteResource)}rewrite(g){if(this._delegate)try{return this._delegate(g)}catch(Ve){return pze(Ve),g}const x=g.authority;let O=this._hosts[x];O&&O.indexOf(":")!==-1&&O.indexOf("[")===-1&&(O=`[${O}]`);const X=this._ports[x],de=this._connectionTokens[x];let Re=`path=${encodeURIComponent(g.path)}`;return typeof de=="string"&&(Re+=`&${LBe}=${encodeURIComponent(de)}`),$v.from({scheme:Rze?this._preferredWebSchema:xR.vscodeRemoteResource,authority:`${O}:${X}`,path:this._remoteResourcesPath,query:Re})}}const wBe=new kBe,OBe="vs/../../node_modules",WBe="vscode-app",UW=class UW{asBrowserUri(g){const x=this.toUri(g);return this.uriToBrowserUri(x)}uriToBrowserUri(g){return g.scheme===xR.vscodeRemote?wBe.rewrite(g):g.scheme===xR.file&&(xze||Dze===`${xR.vscodeFileResource}://${UW.FALLBACK_AUTHORITY}`)?g.with({scheme:xR.vscodeFileResource,authority:g.authority||UW.FALLBACK_AUTHORITY,query:null,fragment:null}):g}toUri(g){if($v.isUri(g))return g;if(globalThis._VSCODE_FILE_ROOT){const x=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(x))return $v.joinPath($v.parse(x,!0),g);const O=A5e(x,g);return $v.file(O)}throw new Error("Cannot determine URI for module id!")}};UW.FALLBACK_AUTHORITY=WBe;let ZQ=UW;const FBe=new ZQ;var xTe;(function(b){const g=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);b.CoopAndCoep=Object.freeze(g.get("3"));const x="vscode-coi";function O(de){let Re;typeof de=="string"?Re=new URL(de).searchParams:de instanceof URL?Re=de.searchParams:$v.isUri(de)&&(Re=new URL(de.toString(!0)).searchParams);const Ve=Re?.get(x);if(Ve)return g.get(Ve)}b.getHeadersFromQuery=O;function X(de,Re,Ve){if(!globalThis.crossOriginIsolated)return;const ie=Re&&Ve?"3":Ve?"2":"1";de instanceof URLSearchParams?de.set(x,ie):de[x]=ie}b.addSearchParam=X})(xTe||(xTe={}));function zBe(b,g){(globalThis._VSCODE_PRODUCT_JSON??globalThis.vscode?.context?.configuration()?.product)?.commit;const O=`${b}/${g}`,de=`${OBe}/${O}`;return FBe.asBrowserUri(de).toString(!0)}class BBe{constructor(g){this.replacements=g;let x=-1;for(const O of g){if(!(O.replaceRange.start>=x))throw new fm(`Edits must be disjoint and sorted. Found ${O} after ${x}`);x=O.replaceRange.endExclusive}}toString(){return`[${this.replacements.map(x=>x.toString()).join(", ")}]`}normalize(){const g=[];let x;for(const O of this.replacements)if(!(O.getNewLength()===0&&O.replaceRange.length===0)){if(x&&x.replaceRange.endExclusive===O.replaceRange.start){const X=x.tryJoinTouching(O);if(X){x=X;continue}}x&&g.push(x),x=O}return x&&g.push(x),this._createNew(g)}compose(g){const x=this.normalize(),O=g.normalize();if(x.isEmpty())return O;if(O.isEmpty())return x;const X=[...x.replacements],de=[];let Re=0;for(const Ve of O.replacements){for(;;){const qe=X[0];if(!qe||qe.replaceRange.start+Re+qe.getNewLength()>=Ve.replaceRange.start)break;X.shift(),de.push(qe),Re+=qe.getNewLength()-qe.replaceRange.length}const ie=Re;let ut,Qe;for(;;){const qe=X[0];if(!qe||qe.replaceRange.start+Re>Ve.replaceRange.endExclusive)break;ut||(ut=qe),Qe=qe,X.shift(),Re+=qe.getNewLength()-qe.replaceRange.length}if(!ut)de.push(Ve.delta(-Re));else{const qe=Math.min(ut.replaceRange.start,Ve.replaceRange.start-ie),Mn=Ve.replaceRange.start-(ut.replaceRange.start+ie);if(Mn>0){const Ti=ut.slice(Es.emptyAt(qe),new Es(0,Mn));de.push(Ti)}if(!Qe)throw new fm("Invariant violation: lastIntersecting is undefined");const Ln=Qe.replaceRange.endExclusive+Re-Ve.replaceRange.endExclusive;if(Ln>0){const Ti=Qe.slice(Es.ofStartAndLength(Qe.replaceRange.endExclusive,0),new Es(Qe.getNewLength()-Ln,Qe.getNewLength()));X.unshift(Ti),Re-=Ti.getNewLength()-Ti.replaceRange.length}const rr=new Es(qe,Ve.replaceRange.endExclusive-Re),kn=Ve.slice(rr,new Es(0,Ve.getNewLength()));de.push(kn)}}for(;;){const Ve=X.shift();if(!Ve)break;de.push(Ve)}return this._createNew(de).normalize()}getNewRanges(){const g=[];let x=0;for(const O of this.replacements)g.push(Es.ofStartAndLength(O.replaceRange.start+x,O.getNewLength())),x+=O.getLengthDelta();return g}isEmpty(){return this.replacements.length===0}applyToOffsetOrUndefined(g){let x=0;for(const O of this.replacements)if(O.replaceRange.start<=g){if(g ${this.getNewLength()} }`}get isEmpty(){return this.getNewLength()===0&&this.replaceRange.length===0}getRangeAfterReplace(){return new Es(this.replaceRange.start,this.replaceRange.start+this.getNewLength())}}class VBe extends BBe{apply(g){const x=[];let O=0;for(const X of this.replacements)x.push(g.substring(O,X.replaceRange.start)),x.push(X.newText),O=X.replaceRange.endExclusive;return x.push(g.substring(O)),x.join("")}removeCommonSuffixPrefix(g){const x=[];for(const O of this.replacements){const X=O.removeCommonSuffixPrefix(g);X.isEmpty||x.push(X)}return new BB(x)}}class jBe extends GBe{constructor(g,x){super(g),this.newText=x}getNewLength(){return this.newText.length}toString(){return`${this.replaceRange} -> ${JSON.stringify(this.newText)}`}replace(g){return g.substring(0,this.replaceRange.start)+this.newText+g.substring(this.replaceRange.endExclusive)}removeCommonSuffixPrefix(g){const x=g.substring(this.replaceRange.start,this.replaceRange.endExclusive),O=RQ(x,this.newText),X=Math.min(x.length-O,this.newText.length-O,DQ(x,this.newText)),de=new Es(this.replaceRange.start+O,this.replaceRange.endExclusive-X),Re=this.newText.substring(O,this.newText.length-X);return new RR(de,Re)}removeCommonSuffixAndPrefix(g){return this.removeCommonSuffix(g).removeCommonPrefix(g)}removeCommonPrefix(g){const x=this.replaceRange.substring(g),O=RQ(x,this.newText);return O===0?this:this.slice(this.replaceRange.deltaStart(O),new Es(O,this.newText.length))}removeCommonSuffix(g){const x=this.replaceRange.substring(g),O=DQ(x,this.newText);return O===0?this:this.slice(this.replaceRange.deltaEnd(-O),new Es(0,this.newText.length-O))}toJson(){return{txt:this.newText,pos:this.replaceRange.start,len:this.replaceRange.length}}}const gN=class gN extends VBe{static replace(g,x){return new gN([new RR(g,x)])}static compose(g){if(g.length===0)return gN.empty;let x=g[0];for(let O=1;Og.createDiffComputer({useWasm:!0}))),nZ):(tZ||(tZ=RTe().then(g=>g.createDiffComputer({useWasm:!1}))),tZ)}async function DTe(b){const g=await UBe(b);return new HBe(g)}class HBe{constructor(g){this._computer=g}computeDiff(g,x,O){const X=new wB(g.join(` `)),de=new wB(x.join(` `)),Re=this._computer.computeDiff(X.value,de.value,{ignoreTrimWhitespace:!0,computeMoves:O.computeMoves,extendToSubwords:O.extendToSubwords}),Ve=X.getTransformer(),ie=de.getTransformer(),ut=[];let Qe=0;for(const Ln of Re.edits.replacements){const rr=Ln.range.start+Qe,kn=rr+Ln.newText.length,Ti=Ve.getRange(new Es(Ln.range.start,Ln.range.endExclusive)),uo=ie.getRange(new Es(rr,kn));ut.push(new eb(Ti,uo)),Qe+=Ln.newText.length-(Ln.range.endExclusive-Ln.range.start)}const qe=KQ(ut,X,de),Mn=[];if(O.computeMoves)for(const Ln of Re.moves){const rr=Ve.getPosition(Ln.range.original.start),kn=Ve.getPosition(Ln.range.original.endExclusive),Ti=ie.getPosition(Ln.range.modified.start),uo=ie.getPosition(Ln.range.modified.endExclusive),Hn=new xc(rr.lineNumber,kn.lineNumber),mn=new xc(Ti.lineNumber,uo.lineNumber);Mn.push(new aTe(new Zv(Hn,mn),[]))}return new WW(qe,Mn,Re.hitTimeout)}}const GB={getLegacy:()=>new uBe,getDefault:()=>new MBe,getAdvancedExternal:()=>DTe(!1),getAdvancedWasm:()=>DTe(!0)};function DR(b,g){const x=Math.pow(10,g);return Math.round(b*x)/x}class Er{constructor(g,x,O,X=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,g))|0,this.g=Math.min(255,Math.max(0,x))|0,this.b=Math.min(255,Math.max(0,O))|0,this.a=DR(Math.max(Math.min(1,X),0),3)}static equals(g,x){return g.r===x.r&&g.g===x.g&&g.b===x.b&&g.a===x.a}}class DT{constructor(g,x,O,X){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=DR(Math.max(Math.min(1,x),0),3),this.l=DR(Math.max(Math.min(1,O),0),3),this.a=DR(Math.max(Math.min(1,X),0),3)}static equals(g,x){return g.h===x.h&&g.s===x.s&&g.l===x.l&&g.a===x.a}static fromRGBA(g){const x=g.r/255,O=g.g/255,X=g.b/255,de=g.a,Re=Math.max(x,O,X),Ve=Math.min(x,O,X);let ie=0,ut=0;const Qe=(Ve+Re)/2,qe=Re-Ve;if(qe>0){switch(ut=Math.min(Qe<=.5?qe/(2*Qe):qe/(2-2*Qe),1),Re){case x:ie=(O-X)/qe+(O1&&(O-=1),O<1/6?g+(x-g)*6*O:O<1/2?x:O<2/3?g+(x-g)*(2/3-O)*6:g}static toRGBA(g){const x=g.h/360,{s:O,l:X,a:de}=g;let Re,Ve,ie;if(O===0)Re=Ve=ie=X;else{const ut=X<.5?X*(1+O):X+O-X*O,Qe=2*X-ut;Re=DT._hue2rgb(Qe,ut,x+1/3),Ve=DT._hue2rgb(Qe,ut,x),ie=DT._hue2rgb(Qe,ut,x-1/3)}return new Er(Math.round(Re*255),Math.round(Ve*255),Math.round(ie*255),de)}}class p2{constructor(g,x,O,X){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,g),0)|0,this.s=DR(Math.max(Math.min(1,x),0),3),this.v=DR(Math.max(Math.min(1,O),0),3),this.a=DR(Math.max(Math.min(1,X),0),3)}static equals(g,x){return g.h===x.h&&g.s===x.s&&g.v===x.v&&g.a===x.a}static fromRGBA(g){const x=g.r/255,O=g.g/255,X=g.b/255,de=Math.max(x,O,X),Re=Math.min(x,O,X),Ve=de-Re,ie=de===0?0:Ve/de;let ut;return Ve===0?ut=0:de===x?ut=((O-X)/Ve%6+6)%6:de===O?ut=(X-x)/Ve+2:ut=(x-O)/Ve+4,new p2(Math.round(ut*60),ie,de,g.a)}static toRGBA(g){const{h:x,s:O,v:X,a:de}=g,Re=X*O,Ve=Re*(1-Math.abs(x/60%2-1)),ie=X-Re;let[ut,Qe,qe]=[0,0,0];return x<60?(ut=Re,Qe=Ve):x<120?(ut=Ve,Qe=Re):x<180?(Qe=Re,qe=Ve):x<240?(Qe=Ve,qe=Re):x<300?(ut=Ve,qe=Re):x<=360&&(ut=Re,qe=Ve),ut=Math.round((ut+ie)*255),Qe=Math.round((Qe+ie)*255),qe=Math.round((qe+ie)*255),new Er(ut,Qe,qe,de)}}const nu=class nu{static fromHex(g){return nu.Format.CSS.parseHex(g)||nu.red}static equals(g,x){return!g&&!x?!0:!g||!x?!1:g.equals(x)}get hsla(){return this._hsla?this._hsla:DT.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:p2.fromRGBA(this.rgba)}constructor(g){if(g)if(g instanceof Er)this.rgba=g;else if(g instanceof DT)this._hsla=g,this.rgba=DT.toRGBA(g);else if(g instanceof p2)this._hsva=g,this.rgba=p2.toRGBA(g);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(g){return!!g&&Er.equals(this.rgba,g.rgba)&&DT.equals(this.hsla,g.hsla)&&p2.equals(this.hsva,g.hsva)}getRelativeLuminance(){const g=nu._relativeLuminanceForComponent(this.rgba.r),x=nu._relativeLuminanceForComponent(this.rgba.g),O=nu._relativeLuminanceForComponent(this.rgba.b),X=.2126*g+.7152*x+.0722*O;return DR(X,4)}static _relativeLuminanceForComponent(g){const x=g/255;return x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(g){const x=this.getRelativeLuminance(),O=g.getRelativeLuminance();return x>O}isDarkerThan(g){const x=this.getRelativeLuminance(),O=g.getRelativeLuminance();return x>>0),this._toNumber32Bit}static getLighterColor(g,x,O){if(g.isLighterThan(x))return g;O=O||.5;const X=g.getRelativeLuminance(),de=x.getRelativeLuminance();return O=O*(de-X)/de,g.lighten(O)}static getDarkerColor(g,x,O){if(g.isDarkerThan(x))return g;O=O||.5;const X=g.getRelativeLuminance(),de=x.getRelativeLuminance();return O=O*(X-de)/X,g.darken(O)}};nu.white=new nu(new Er(255,255,255,1)),nu.black=new nu(new Er(0,0,0,1)),nu.red=new nu(new Er(255,0,0,1)),nu.blue=new nu(new Er(0,0,255,1)),nu.green=new nu(new Er(0,255,0,1)),nu.cyan=new nu(new Er(0,255,255,1)),nu.lightgrey=new nu(new Er(211,211,211,1)),nu.transparent=new nu(new Er(0,0,0,0));let f2=nu;(function(b){(function(g){(function(x){function O(kn){return kn.rgba.a===1?`rgb(${kn.rgba.r}, ${kn.rgba.g}, ${kn.rgba.b})`:b.Format.CSS.formatRGBA(kn)}x.formatRGB=O;function X(kn){return`rgba(${kn.rgba.r}, ${kn.rgba.g}, ${kn.rgba.b}, ${+kn.rgba.a.toFixed(2)})`}x.formatRGBA=X;function de(kn){return kn.hsla.a===1?`hsl(${kn.hsla.h}, ${Math.round(kn.hsla.s*100)}%, ${Math.round(kn.hsla.l*100)}%)`:b.Format.CSS.formatHSLA(kn)}x.formatHSL=de;function Re(kn){return`hsla(${kn.hsla.h}, ${Math.round(kn.hsla.s*100)}%, ${Math.round(kn.hsla.l*100)}%, ${kn.hsla.a.toFixed(2)})`}x.formatHSLA=Re;function Ve(kn){const Ti=kn.toString(16);return Ti.length!==2?"0"+Ti:Ti}function ie(kn){return`#${Ve(kn.rgba.r)}${Ve(kn.rgba.g)}${Ve(kn.rgba.b)}`}x.formatHex=ie;function ut(kn,Ti=!1){return Ti&&kn.rgba.a===1?b.Format.CSS.formatHex(kn):`#${Ve(kn.rgba.r)}${Ve(kn.rgba.g)}${Ve(kn.rgba.b)}${Ve(Math.round(kn.rgba.a*255))}`}x.formatHexA=ut;function Qe(kn){return kn.isOpaque()?b.Format.CSS.formatHex(kn):b.Format.CSS.formatRGBA(kn)}x.format=Qe;function qe(kn){if(kn==="transparent")return b.transparent;if(kn.startsWith("#"))return Ln(kn);if(kn.startsWith("rgba(")){const Ti=kn.match(/rgba\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+(\.\d+)?)\)/);if(!Ti)throw new Error("Invalid color format "+kn);const uo=parseInt(Ti.groups?.r??"0"),Hn=parseInt(Ti.groups?.g??"0"),mn=parseInt(Ti.groups?.b??"0"),ga=parseFloat(Ti.groups?.a??"0");return new b(new Er(uo,Hn,mn,ga))}if(kn.startsWith("rgb(")){const Ti=kn.match(/rgb\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+)\)/);if(!Ti)throw new Error("Invalid color format "+kn);const uo=parseInt(Ti.groups?.r??"0"),Hn=parseInt(Ti.groups?.g??"0"),mn=parseInt(Ti.groups?.b??"0");return new b(new Er(uo,Hn,mn))}return Mn(kn)}x.parse=qe;function Mn(kn){switch(kn){case"aliceblue":return new b(new Er(240,248,255,1));case"antiquewhite":return new b(new Er(250,235,215,1));case"aqua":return new b(new Er(0,255,255,1));case"aquamarine":return new b(new Er(127,255,212,1));case"azure":return new b(new Er(240,255,255,1));case"beige":return new b(new Er(245,245,220,1));case"bisque":return new b(new Er(255,228,196,1));case"black":return new b(new Er(0,0,0,1));case"blanchedalmond":return new b(new Er(255,235,205,1));case"blue":return new b(new Er(0,0,255,1));case"blueviolet":return new b(new Er(138,43,226,1));case"brown":return new b(new Er(165,42,42,1));case"burlywood":return new b(new Er(222,184,135,1));case"cadetblue":return new b(new Er(95,158,160,1));case"chartreuse":return new b(new Er(127,255,0,1));case"chocolate":return new b(new Er(210,105,30,1));case"coral":return new b(new Er(255,127,80,1));case"cornflowerblue":return new b(new Er(100,149,237,1));case"cornsilk":return new b(new Er(255,248,220,1));case"crimson":return new b(new Er(220,20,60,1));case"cyan":return new b(new Er(0,255,255,1));case"darkblue":return new b(new Er(0,0,139,1));case"darkcyan":return new b(new Er(0,139,139,1));case"darkgoldenrod":return new b(new Er(184,134,11,1));case"darkgray":return new b(new Er(169,169,169,1));case"darkgreen":return new b(new Er(0,100,0,1));case"darkgrey":return new b(new Er(169,169,169,1));case"darkkhaki":return new b(new Er(189,183,107,1));case"darkmagenta":return new b(new Er(139,0,139,1));case"darkolivegreen":return new b(new Er(85,107,47,1));case"darkorange":return new b(new Er(255,140,0,1));case"darkorchid":return new b(new Er(153,50,204,1));case"darkred":return new b(new Er(139,0,0,1));case"darksalmon":return new b(new Er(233,150,122,1));case"darkseagreen":return new b(new Er(143,188,143,1));case"darkslateblue":return new b(new Er(72,61,139,1));case"darkslategray":return new b(new Er(47,79,79,1));case"darkslategrey":return new b(new Er(47,79,79,1));case"darkturquoise":return new b(new Er(0,206,209,1));case"darkviolet":return new b(new Er(148,0,211,1));case"deeppink":return new b(new Er(255,20,147,1));case"deepskyblue":return new b(new Er(0,191,255,1));case"dimgray":return new b(new Er(105,105,105,1));case"dimgrey":return new b(new Er(105,105,105,1));case"dodgerblue":return new b(new Er(30,144,255,1));case"firebrick":return new b(new Er(178,34,34,1));case"floralwhite":return new b(new Er(255,250,240,1));case"forestgreen":return new b(new Er(34,139,34,1));case"fuchsia":return new b(new Er(255,0,255,1));case"gainsboro":return new b(new Er(220,220,220,1));case"ghostwhite":return new b(new Er(248,248,255,1));case"gold":return new b(new Er(255,215,0,1));case"goldenrod":return new b(new Er(218,165,32,1));case"gray":return new b(new Er(128,128,128,1));case"green":return new b(new Er(0,128,0,1));case"greenyellow":return new b(new Er(173,255,47,1));case"grey":return new b(new Er(128,128,128,1));case"honeydew":return new b(new Er(240,255,240,1));case"hotpink":return new b(new Er(255,105,180,1));case"indianred":return new b(new Er(205,92,92,1));case"indigo":return new b(new Er(75,0,130,1));case"ivory":return new b(new Er(255,255,240,1));case"khaki":return new b(new Er(240,230,140,1));case"lavender":return new b(new Er(230,230,250,1));case"lavenderblush":return new b(new Er(255,240,245,1));case"lawngreen":return new b(new Er(124,252,0,1));case"lemonchiffon":return new b(new Er(255,250,205,1));case"lightblue":return new b(new Er(173,216,230,1));case"lightcoral":return new b(new Er(240,128,128,1));case"lightcyan":return new b(new Er(224,255,255,1));case"lightgoldenrodyellow":return new b(new Er(250,250,210,1));case"lightgray":return new b(new Er(211,211,211,1));case"lightgreen":return new b(new Er(144,238,144,1));case"lightgrey":return new b(new Er(211,211,211,1));case"lightpink":return new b(new Er(255,182,193,1));case"lightsalmon":return new b(new Er(255,160,122,1));case"lightseagreen":return new b(new Er(32,178,170,1));case"lightskyblue":return new b(new Er(135,206,250,1));case"lightslategray":return new b(new Er(119,136,153,1));case"lightslategrey":return new b(new Er(119,136,153,1));case"lightsteelblue":return new b(new Er(176,196,222,1));case"lightyellow":return new b(new Er(255,255,224,1));case"lime":return new b(new Er(0,255,0,1));case"limegreen":return new b(new Er(50,205,50,1));case"linen":return new b(new Er(250,240,230,1));case"magenta":return new b(new Er(255,0,255,1));case"maroon":return new b(new Er(128,0,0,1));case"mediumaquamarine":return new b(new Er(102,205,170,1));case"mediumblue":return new b(new Er(0,0,205,1));case"mediumorchid":return new b(new Er(186,85,211,1));case"mediumpurple":return new b(new Er(147,112,219,1));case"mediumseagreen":return new b(new Er(60,179,113,1));case"mediumslateblue":return new b(new Er(123,104,238,1));case"mediumspringgreen":return new b(new Er(0,250,154,1));case"mediumturquoise":return new b(new Er(72,209,204,1));case"mediumvioletred":return new b(new Er(199,21,133,1));case"midnightblue":return new b(new Er(25,25,112,1));case"mintcream":return new b(new Er(245,255,250,1));case"mistyrose":return new b(new Er(255,228,225,1));case"moccasin":return new b(new Er(255,228,181,1));case"navajowhite":return new b(new Er(255,222,173,1));case"navy":return new b(new Er(0,0,128,1));case"oldlace":return new b(new Er(253,245,230,1));case"olive":return new b(new Er(128,128,0,1));case"olivedrab":return new b(new Er(107,142,35,1));case"orange":return new b(new Er(255,165,0,1));case"orangered":return new b(new Er(255,69,0,1));case"orchid":return new b(new Er(218,112,214,1));case"palegoldenrod":return new b(new Er(238,232,170,1));case"palegreen":return new b(new Er(152,251,152,1));case"paleturquoise":return new b(new Er(175,238,238,1));case"palevioletred":return new b(new Er(219,112,147,1));case"papayawhip":return new b(new Er(255,239,213,1));case"peachpuff":return new b(new Er(255,218,185,1));case"peru":return new b(new Er(205,133,63,1));case"pink":return new b(new Er(255,192,203,1));case"plum":return new b(new Er(221,160,221,1));case"powderblue":return new b(new Er(176,224,230,1));case"purple":return new b(new Er(128,0,128,1));case"rebeccapurple":return new b(new Er(102,51,153,1));case"red":return new b(new Er(255,0,0,1));case"rosybrown":return new b(new Er(188,143,143,1));case"royalblue":return new b(new Er(65,105,225,1));case"saddlebrown":return new b(new Er(139,69,19,1));case"salmon":return new b(new Er(250,128,114,1));case"sandybrown":return new b(new Er(244,164,96,1));case"seagreen":return new b(new Er(46,139,87,1));case"seashell":return new b(new Er(255,245,238,1));case"sienna":return new b(new Er(160,82,45,1));case"silver":return new b(new Er(192,192,192,1));case"skyblue":return new b(new Er(135,206,235,1));case"slateblue":return new b(new Er(106,90,205,1));case"slategray":return new b(new Er(112,128,144,1));case"slategrey":return new b(new Er(112,128,144,1));case"snow":return new b(new Er(255,250,250,1));case"springgreen":return new b(new Er(0,255,127,1));case"steelblue":return new b(new Er(70,130,180,1));case"tan":return new b(new Er(210,180,140,1));case"teal":return new b(new Er(0,128,128,1));case"thistle":return new b(new Er(216,191,216,1));case"tomato":return new b(new Er(255,99,71,1));case"turquoise":return new b(new Er(64,224,208,1));case"violet":return new b(new Er(238,130,238,1));case"wheat":return new b(new Er(245,222,179,1));case"white":return new b(new Er(255,255,255,1));case"whitesmoke":return new b(new Er(245,245,245,1));case"yellow":return new b(new Er(255,255,0,1));case"yellowgreen":return new b(new Er(154,205,50,1));default:return null}}function Ln(kn){const Ti=kn.length;if(Ti===0||kn.charCodeAt(0)!==35)return null;if(Ti===7){const uo=16*rr(kn.charCodeAt(1))+rr(kn.charCodeAt(2)),Hn=16*rr(kn.charCodeAt(3))+rr(kn.charCodeAt(4)),mn=16*rr(kn.charCodeAt(5))+rr(kn.charCodeAt(6));return new b(new Er(uo,Hn,mn,1))}if(Ti===9){const uo=16*rr(kn.charCodeAt(1))+rr(kn.charCodeAt(2)),Hn=16*rr(kn.charCodeAt(3))+rr(kn.charCodeAt(4)),mn=16*rr(kn.charCodeAt(5))+rr(kn.charCodeAt(6)),ga=16*rr(kn.charCodeAt(7))+rr(kn.charCodeAt(8));return new b(new Er(uo,Hn,mn,ga/255))}if(Ti===4){const uo=rr(kn.charCodeAt(1)),Hn=rr(kn.charCodeAt(2)),mn=rr(kn.charCodeAt(3));return new b(new Er(16*uo+uo,16*Hn+Hn,16*mn+mn))}if(Ti===5){const uo=rr(kn.charCodeAt(1)),Hn=rr(kn.charCodeAt(2)),mn=rr(kn.charCodeAt(3)),ga=rr(kn.charCodeAt(4));return new b(new Er(16*uo+uo,16*Hn+Hn,16*mn+mn,(16*ga+ga)/255))}return null}x.parseHex=Ln;function rr(kn){switch(kn){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}})(g.CSS||(g.CSS={}))})(b.Format||(b.Format={}))})(f2||(f2={}));function CTe(b){const g=[];for(const x of b){const O=Number(x);(O||O===0&&x.replace(/\s/g,"")!=="")&&g.push(O)}return g}function rZ(b,g,x,O){return{red:b/255,blue:x/255,green:g/255,alpha:O}}function GW(b,g){const x=g.index,O=g[0].length;if(x===void 0)return;const X=b.positionAt(x);return{startLineNumber:X.lineNumber,startColumn:X.column,endLineNumber:X.lineNumber,endColumn:X.column+O}}function qBe(b,g){if(!b)return;const x=f2.Format.CSS.parseHex(g);if(x)return{range:b,color:rZ(x.rgba.r,x.rgba.g,x.rgba.b,x.rgba.a)}}function NTe(b,g,x){if(!b||g.length!==1)return;const X=g[0].values(),de=CTe(X);return{range:b,color:rZ(de[0],de[1],de[2],x?de[3]:1)}}function MTe(b,g,x){if(!b||g.length!==1)return;const X=g[0].values(),de=CTe(X),Re=new f2(new DT(de[0],de[1]/100,de[2]/100,x?de[3]:1));return{range:b,color:rZ(Re.rgba.r,Re.rgba.g,Re.rgba.b,Re.rgba.a)}}function VW(b,g){return typeof b=="string"?[...b.matchAll(g)]:b.findMatches(g)}function JBe(b){const g=[],x=new RegExp(`\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%\\/]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,"gm"),O=VW(b,x);if(O.length>0)for(const X of O){const de=X.filter(ut=>ut!==void 0),Re=de[1],Ve=de[2];if(!Ve)continue;let ie;if(Re==="rgb"){const ut=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;ie=NTe(GW(b,X),VW(Ve,ut),!1)}else if(Re==="rgba"){const ut=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;ie=NTe(GW(b,X),VW(Ve,ut),!0)}else if(Re==="hsl"){const ut=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;ie=MTe(GW(b,X),VW(Ve,ut),!1)}else if(Re==="hsla"){const ut=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;ie=MTe(GW(b,X),VW(Ve,ut),!0)}else Re==="#"&&(ie=qBe(GW(b,X),Re+Ve));ie&&g.push(ie)}return g}function KBe(b){return!b||typeof b.getValue!="function"||typeof b.positionAt!="function"?[]:JBe(b)}const XBe=/^-+|-+$/g,PTe=100,YBe=5;function $Be(b,g){let x=[];if(g.findRegionSectionHeaders&&g.foldingRules?.markers){const O=QBe(b,g);x=x.concat(O)}if(g.findMarkSectionHeaders){const O=ZBe(b,g);x=x.concat(O)}return x}function QBe(b,g){const x=[],O=b.getLineCount();for(let X=1;X<=O;X++){const de=b.getLineContent(X),Re=de.match(g.foldingRules.markers.start);if(Re){const Ve={startLineNumber:X,startColumn:Re[0].length+1,endLineNumber:X,endColumn:de.length+1};if(Ve.endColumn>Ve.startColumn){const ie={range:Ve,...e9e(de.substring(Re[0].length)),shouldBeInComments:!1};(ie.text||ie.hasSeparatorLine)&&x.push(ie)}}}return x}function ZBe(b,g){const x=[],O=b.getLineCount();if(!g.markSectionHeaderRegex||g.markSectionHeaderRegex.trim()==="")return x;const X=j5e(g.markSectionHeaderRegex),de=new RegExp(g.markSectionHeaderRegex,`gdm${X?"s":""}`);if(Gze(de))return x;for(let Re=1;Re<=O;Re+=PTe-YBe){const Ve=Math.min(Re+PTe-1,O),ie=[];for(let qe=Re;qe<=Ve;qe++)ie.push(b.getLineContent(qe));const ut=ie.join(` `);de.lastIndex=0;let Qe;for(;(Qe=de.exec(ut))!==null;){const qe=ut.substring(0,Qe.index),Mn=(qe.match(/\n/g)||[]).length,Ln=Re+Mn,rr=Qe[0].split(` `),kn=rr.length,Ti=Ln+kn-1,uo=qe.lastIndexOf(` `)+1,Hn=Qe.index-uo+1,mn=rr[rr.length-1],ga=kn===1?Hn+Qe[0].length:mn.length+1,ho={startLineNumber:Ln,startColumn:Hn,endLineNumber:Ti,endColumn:ga},vl=(Qe.groups??{}).label??"",jn=((Qe.groups??{}).separator??"")!=="",Gi={range:ho,text:vl,hasSeparatorLine:jn,shouldBeInComments:!0};(Gi.text||Gi.hasSeparatorLine)&&(x.length===0||x[x.length-1].range.endLineNumber{this.completeCallback=g,this.errorCallback=x})}complete(g){return this.isSettled?Promise.resolve():new Promise(x=>{this.completeCallback(g),this.outcome={outcome:0,value:g},x()})}error(g){return this.isSettled?Promise.resolve():new Promise(x=>{this.errorCallback(g),this.outcome={outcome:1,value:g},x()})}cancel(){return this.error(new gve)}}var kTe;(function(b){async function g(O){let X;const de=await Promise.all(O.map(Re=>Re.then(Ve=>Ve,Ve=>{X||(X=Ve)})));if(typeof X<"u")throw X;return de}b.settled=g;function x(O){return new Promise(async(X,de)=>{try{await O(X,de)}catch(Re){de(Re)}})}b.withAsyncBody=x})(kTe||(kTe={}));class t9e{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(g){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const x=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(x,g)}else this._unconsumedValues.push(g)}produceFinal(g){this._ensureNoFinalValue(),this._finalValue=g;for(const x of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(x,g);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new fm("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(g,x){x.ok?g.complete(x.value):g.error(x.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const g=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return g.ok?Promise.resolve(g.value):Promise.reject(g.error)}else{const g=new LTe;return this._unsatisfiedConsumers.push(g),g.p}}}const cg=class cg{constructor(g,x){this._onReturn=x,this._producerConsumer=new t9e,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async O=>(this._finishError(O),{done:!0,value:void 0})},queueMicrotask(async()=>{const O=g({emitOne:X=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:X}}),emitMany:X=>{for(const de of X)this._producerConsumer.produce({ok:!0,value:{done:!1,value:de}})},reject:X=>this._finishError(X)});if(!this._producerConsumer.hasFinalValue)try{await O,this._finishOk()}catch(X){this._finishError(X)}})}static fromArray(g){return new cg(x=>{x.emitMany(g)})}static fromPromise(g){return new cg(async x=>{x.emitMany(await g)})}static fromPromisesResolveOrder(g){return new cg(async x=>{await Promise.all(g.map(async O=>x.emitOne(await O)))})}static merge(g){return new cg(async x=>{await Promise.all(g.map(async O=>{for await(const X of O)x.emitOne(X)}))})}static map(g,x){return new cg(async O=>{for await(const X of g)O.emitOne(x(X))})}static tee(g){let x,O;const X=new LTe,de=async()=>{if(!(!x||!O))try{for await(const ie of g)x.emitOne(ie),O.emitOne(ie)}catch(ie){x.reject(ie),O.reject(ie)}finally{X.complete()}},Re=new cg(async ie=>(x=ie,de(),X.p)),Ve=new cg(async ie=>(O=ie,de(),X.p));return[Re,Ve]}map(g){return cg.map(this,g)}static coalesce(g){return cg.filter(g,x=>!!x)}coalesce(){return cg.coalesce(this)}static filter(g,x){return new cg(async O=>{for await(const X of g)x(X)&&O.emitOne(X)})}filter(g){return cg.filter(this,g)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(g){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:g})}[Symbol.asyncIterator](){return this._iterator}};cg.EMPTY=cg.fromArray([]);let wTe=cg;class n9e{constructor(g){this.values=g,this.prefixSum=new Uint32Array(g.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(g,x){g=i2(g);const O=this.values,X=this.prefixSum,de=x.length;return de===0?!1:(this.values=new Uint32Array(O.length+de),this.values.set(O.subarray(0,g),0),this.values.set(O.subarray(g),g+de),this.values.set(x,g),g-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(g,x){return g=i2(g),x=i2(x),this.values[g]===x?!1:(this.values[g]=x,g-1=O.length)return!1;const de=O.length-g;return x>=de&&(x=de),x===0?!1:(this.values=new Uint32Array(O.length-x),this.values.set(O.subarray(0,g),0),this.values.set(O.subarray(g+x),g),this.prefixSum=new Uint32Array(this.values.length),g-1=0&&this.prefixSum.set(X.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(g){return g<0?0:(g=i2(g),this._getPrefixSum(g))}_getPrefixSum(g){if(g<=this.prefixSumValidIndex[0])return this.prefixSum[g];let x=this.prefixSumValidIndex[0]+1;x===0&&(this.prefixSum[0]=this.values[0],x++),g>=this.values.length&&(g=this.values.length-1);for(let O=x;O<=g;O++)this.prefixSum[O]=this.prefixSum[O-1]+this.values[O];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],g),this.prefixSum[g]}getIndexOf(g){g=Math.floor(g),this.getTotalSum();let x=0,O=this.values.length-1,X=0,de=0,Re=0;for(;x<=O;)if(X=x+(O-x)/2|0,de=this.prefixSum[X],Re=de-this.values[X],g=de)x=X+1;else break;return new r9e(X,g-Re)}}class r9e{constructor(g,x){this.index=g,this.remainder=x,this._prefixSumIndexOfResultBrand=void 0,this.index=g,this.remainder=x}}class i9e{constructor(g,x,O,X){this._uri=g,this._lines=x,this._eol=O,this._versionId=X,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(g){g.eol&&g.eol!==this._eol&&(this._eol=g.eol,this._lineStarts=null);const x=g.changes;for(const O of x)this._acceptDeleteRange(O.range),this._acceptInsertText(new Jl(O.range.startLineNumber,O.range.startColumn),O.text);this._versionId=g.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const g=this._eol.length,x=this._lines.length,O=new Uint32Array(x);for(let X=0;Xg.push(this._models[x])),g}$acceptNewModel(g){this._models[g.url]=new a9e($v.parse(g.url),g.lines,g.EOL,g.versionId)}$acceptModelChanged(g,x){if(!this._models[g])return;this._models[g].onEvents(x)}$acceptRemovedModel(g){this._models[g]&&delete this._models[g]}}class a9e extends i9e{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(g){const x=[];for(let O=0;Othis._lines.length)x=this._lines.length,O=this._lines[x-1].length+1,X=!0;else{const de=this._lines[x-1].length+1;O<1?(O=1,X=!0):O>de&&(O=de,X=!0)}return X?{lineNumber:x,column:O}:g}}const yN=class yN{constructor(g=null){this._foreignModule=g,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new o9e}dispose(){}async $ping(){return"pong"}_getModel(g){return this._workerTextModelSyncServer.getModel(g)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(g){this._workerTextModelSyncServer.$acceptNewModel(g)}$acceptModelChanged(g,x){this._workerTextModelSyncServer.$acceptModelChanged(g,x)}$acceptRemovedModel(g){this._workerTextModelSyncServer.$acceptRemovedModel(g)}async $computeUnicodeHighlights(g,x,O){const X=this._getModel(g);return X?$5e.computeUnicodeHighlights(X,x,O):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(g,x){const O=this._getModel(g);return O?$Be(O,x):[]}async $computeDiff(g,x,O,X){const de=this._getModel(g),Re=this._getModel(x);if(!de||!Re)return null;const Ve=await s9e(X);return yN.computeDiff(de,Re,O,Ve)}static computeDiff(g,x,O,X){const de=g.getLinesContent(),Re=x.getLinesContent(),Ve=X.computeDiff(de,Re,O),ie=Ve.changes.length>0?!1:this._modelsAreIdentical(g,x);function ut(Qe){return Qe.map(qe=>[qe.original.startLineNumber,qe.original.endLineNumberExclusive,qe.modified.startLineNumber,qe.modified.endLineNumberExclusive,qe.innerChanges?.map(Mn=>[Mn.originalRange.startLineNumber,Mn.originalRange.startColumn,Mn.originalRange.endLineNumber,Mn.originalRange.endColumn,Mn.modifiedRange.startLineNumber,Mn.modifiedRange.startColumn,Mn.modifiedRange.endLineNumber,Mn.modifiedRange.endColumn])])}return{identical:ie,quitEarly:Ve.hitTimeout,changes:ut(Ve.changes),moves:Ve.moves.map(Qe=>[Qe.lineRangeMapping.original.startLineNumber,Qe.lineRangeMapping.original.endLineNumberExclusive,Qe.lineRangeMapping.modified.startLineNumber,Qe.lineRangeMapping.modified.endLineNumberExclusive,ut(Qe.changes)])}}static _modelsAreIdentical(g,x){const O=g.getLineCount(),X=x.getLineCount();if(O!==X)return!1;for(let de=1;de<=O;de++){const Re=g.getLineContent(de),Ve=x.getLineContent(de);if(Re!==Ve)return!1}return!0}async $computeMoreMinimalEdits(g,x,O){const X=this._getModel(g);if(!X)return x;const de=[];let Re;x=x.slice(0).sort((ie,ut)=>{if(ie.range&&ut.range)return ka.compareRangesUsingStarts(ie.range,ut.range);const Qe=ie.range?0:1,qe=ut.range?0:1;return Qe-qe});let Ve=0;for(let ie=1;ieyN._diffLimit){de.push({range:ie,text:ut});continue}const Mn=o5e(qe,ut,O),Ln=X.offsetAt(ka.lift(ie).getStartPosition());for(const rr of Mn){const kn=X.positionAt(Ln+rr.originalStart),Ti=X.positionAt(Ln+rr.originalStart+rr.originalLength),uo={text:ut.substr(rr.modifiedStart,rr.modifiedLength),range:{startLineNumber:kn.lineNumber,startColumn:kn.column,endLineNumber:Ti.lineNumber,endColumn:Ti.column}};X.getValueInRange(uo.range)!==uo.text&&de.push(uo)}}return typeof Re=="number"&&de.push({eol:Re,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),de}async $computeLinks(g){const x=this._getModel(g);return x?d5e(x):null}async $computeDefaultDocumentColors(g){const x=this._getModel(g);return x?KBe(x):null}async $textualSuggest(g,x,O,X){const de=new AB,Re=new RegExp(O,X),Ve=new Set;e:for(const ie of g){const ut=this._getModel(ie);if(ut){for(const Qe of ut.words(Re))if(!(Qe===x||!isNaN(Number(Qe)))&&(Ve.add(Qe),Ve.size>yN._suggestionsLimit))break e}}return{words:Array.from(Ve),duration:de.elapsed()}}async $computeWordRanges(g,x,O,X){const de=this._getModel(g);if(!de)return Object.create(null);const Re=new RegExp(O,X),Ve=Object.create(null);for(let ie=x.startLineNumber;ie{const X=oZ.getChannel(O),Re={host:new Proxy({},{get(Ve,ie,ut){if(ie!=="then"){if(typeof ie!="string")throw new Error("Not supported");return(...Qe)=>X.$fhr(ie,Qe)}}}),getMirrorModels:()=>x.requestHandler.getModels()};return g=b(Re),new iZ(g)});return g}function c9e(b){self.onmessage=g=>{l9e(x=>b(x,g.data))}}var OTe=void 0;var CT={};(b=>{var g=Object.defineProperty,x=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},O=e=>e,X={};x(X,{ANONYMOUS:()=>EJ,AccessFlags:()=>iee,AssertionLevel:()=>mZ,AssignmentDeclarationKind:()=>fee,AssignmentKind:()=>Wne,Associativity:()=>Hne,BreakpointResolver:()=>TK,BuilderFileEmit:()=>Gse,BuilderProgramKind:()=>Xse,BuilderState:()=>vh,CallHierarchy:()=>Ex,CharacterCodes:()=>Aee,CheckFlags:()=>eee,CheckMode:()=>qU,ClassificationType:()=>kq,ClassificationTypeNames:()=>$le,CommentDirectiveType:()=>zZ,Comparison:()=>Ve,CompletionInfoFlags:()=>Ule,CompletionTriggerKind:()=>Pq,Completions:()=>Dx,ContainerFlags:()=>Tae,ContextFlags:()=>qZ,Debug:()=>C,DiagnosticCategory:()=>nF,Diagnostics:()=>f,DocumentHighlights:()=>Q7,ElementFlags:()=>ree,EmitFlags:()=>M9,EmitHint:()=>Dee,EmitOnly:()=>GZ,EndOfLineState:()=>Jle,ExitStatus:()=>VZ,ExportKind:()=>Gce,Extension:()=>Iee,ExternalEmitHelpers:()=>Ree,FileIncludeKind:()=>T9,FilePreprocessingDiagnosticsKind:()=>BZ,FileSystemEntryKind:()=>Wee,FileWatcherEventKind:()=>kee,FindAllReferences:()=>Qs,FlattenLevel:()=>jae,FlowFlags:()=>tF,ForegroundColorEscapeSequences:()=>Mse,FunctionFlags:()=>jne,GeneratedIdentifierFlags:()=>b9,GetLiteralTextFlags:()=>ene,GoToDefinition:()=>vC,HighlightSpanKind:()=>Vle,IdentifierNameMap:()=>XD,ImportKind:()=>Bce,ImportsNotUsedAsValues:()=>vee,IndentStyle:()=>jle,IndexFlags:()=>oee,IndexKind:()=>lee,InferenceFlags:()=>uee,InferencePriority:()=>dee,InlayHintKind:()=>Gle,InlayHints:()=>pX,InternalEmitFlags:()=>xee,InternalNodeBuilderFlags:()=>KZ,InternalSymbolName:()=>tee,IntersectionFlags:()=>HZ,InvalidatedProjectKind:()=>yle,JSDocParsingMode:()=>Lee,JsDoc:()=>b0,JsTyping:()=>qb,JsxEmit:()=>yee,JsxFlags:()=>wZ,JsxReferenceKind:()=>aee,LanguageFeatureMinimumTarget:()=>td,LanguageServiceMode:()=>zle,LanguageVariant:()=>See,LexicalEnvironmentFlags:()=>Nee,ListFormat:()=>Mee,LogLevel:()=>AZ,MapCode:()=>fX,MemberOverrideStatus:()=>jZ,ModifierFlags:()=>y9,ModuleDetectionKind:()=>mee,ModuleInstanceState:()=>vae,ModuleKind:()=>wR,ModuleResolutionKind:()=>kR,ModuleSpecifierEnding:()=>Vre,NavigateTo:()=>ude,NavigationBar:()=>fde,NewLineKind:()=>bee,NodeBuilderFlags:()=>JZ,NodeCheckFlags:()=>A9,NodeFactoryFlags:()=>bie,NodeFlags:()=>g9,NodeResolutionFeatures:()=>cae,ObjectFlags:()=>x9,OperationCanceledException:()=>RN,OperatorPrecedence:()=>qne,OrganizeImports:()=>T0,OrganizeImportsMode:()=>Mq,OuterExpressionKinds:()=>Cee,OutliningElementsCollector:()=>hX,OutliningSpanKind:()=>Hle,OutputFileType:()=>qle,PackageJsonAutoImportPreference:()=>Fle,PackageJsonDependencyGroup:()=>Wle,PatternMatchKind:()=>VJ,PollingInterval:()=>P9,PollingWatchKind:()=>gee,PragmaKindFlags:()=>Pee,PredicateSemantics:()=>OZ,PreparePasteEdits:()=>NX,PrivateIdentifierKind:()=>Nie,ProcessLevel:()=>Jae,ProgramUpdateLevel:()=>xse,QuotePreference:()=>vce,RegularExpressionFlags:()=>WZ,RelationComparisonResult:()=>v9,Rename:()=>wz,ScriptElementKind:()=>Xle,ScriptElementKindModifier:()=>Yle,ScriptKind:()=>D9,ScriptSnapshot:()=>d7,ScriptTarget:()=>Tee,SemanticClassificationFormat:()=>Ble,SemanticMeaning:()=>Qle,SemicolonPreference:()=>Lq,SignatureCheckMode:()=>JU,SignatureFlags:()=>R9,SignatureHelp:()=>d8,SignatureInfo:()=>Bse,SignatureKind:()=>see,SmartSelectionRange:()=>yX,SnippetKind:()=>N9,StatisticType:()=>Rle,StructureIsReused:()=>S9,SymbolAccessibility:()=>$Z,SymbolDisplay:()=>Tv,SymbolDisplayPartKind:()=>p7,SymbolFlags:()=>E9,SymbolFormatFlags:()=>YZ,SyntaxKind:()=>_9,Ternary:()=>pee,ThrottledCancellationToken:()=>Tue,TokenClass:()=>Kle,TokenFlags:()=>FZ,TransformFlags:()=>C9,TypeFacts:()=>HU,TypeFlags:()=>I9,TypeFormatFlags:()=>XZ,TypeMapKind:()=>cee,TypePredicateKind:()=>QZ,TypeReferenceSerializationKind:()=>ZZ,UnionReduction:()=>UZ,UpToDateStatusType:()=>ule,VarianceFlags:()=>nee,Version:()=>sh,VersionRange:()=>eF,WatchDirectoryFlags:()=>Eee,WatchDirectoryKind:()=>_ee,WatchFileKind:()=>hee,WatchLogLevel:()=>Dse,WatchType:()=>ld,accessPrivateIdentifier:()=>Vae,addEmitFlags:()=>t_,addEmitHelper:()=>UI,addEmitHelpers:()=>Cg,addInternalEmitFlags:()=>v1,addNodeFactoryPatcher:()=>MSe,addObjectAllocatorPatcher:()=>hSe,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>kb,addSyntheticTrailingComment:()=>VM,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>b4,affectsDeclarationPathOptionDeclarations:()=>woe,affectsEmitOptionDeclarations:()=>koe,allKeysStartWithDot:()=>m3,altDirectorySeparator:()=>sF,and:()=>$W,append:()=>Vn,appendIfUnique:()=>ty,arrayFrom:()=>Do,arrayIsEqualTo:()=>tf,arrayIsHomogeneous:()=>$re,arrayOf:()=>dZ,arrayReverseIterator:()=>XB,arrayToMap:()=>NR,arrayToMultiMap:()=>S2,arrayToNumericMap:()=>pZ,assertType:()=>jTe,assign:()=>HE,asyncSuperHelper:()=>v4,attachFileToDiagnostics:()=>wI,base64decode:()=>fre,base64encode:()=>pre,binarySearch:()=>ib,binarySearchKey:()=>tI,bindSourceFile:()=>Sae,breakIntoCharacterSpans:()=>rde,breakIntoWordSpans:()=>ide,buildLinkParts:()=>Rce,buildOpts:()=>Fw,buildOverload:()=>yOe,bundlerModuleNameResolver:()=>dae,canBeConvertedToAsync:()=>KJ,canHaveDecorators:()=>YS,canHaveExportModifier:()=>lw,canHaveFlowNode:()=>aD,canHaveIllegalDecorators:()=>tU,canHaveIllegalModifiers:()=>hoe,canHaveIllegalType:()=>rEe,canHaveIllegalTypeParameters:()=>moe,canHaveJSDoc:()=>Ck,canHaveLocals:()=>N_,canHaveModifiers:()=>Rm,canHaveModuleSpecifier:()=>kne,canHaveSymbol:()=>ch,canIncludeBindAndCheckDiagnostics:()=>PM,canJsonReportNoInputFiles:()=>Uw,canProduceDiagnostics:()=>Zw,canUsePropertyAccess:()=>oj,canWatchAffectingLocation:()=>rle,canWatchAtTypes:()=>nle,canWatchDirectoryOrFile:()=>KH,canWatchDirectoryOrFilePath:()=>mO,cartesianProduct:()=>SZ,cast:()=>ma,chainBundle:()=>yh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>C2,changeCompilerHostLikeToUseCache:()=>AP,changeExtension:()=>lv,changeFullExtension:()=>dF,changesAffectModuleResolution:()=>WF,changesAffectingProgramStructure:()=>qte,characterCodeToRegularExpressionFlag:()=>j9,childIsDecorated:()=>eM,classElementOrClassElementParameterIsDecorated:()=>VG,classHasClassThisAssignment:()=>lH,classHasDeclaredOrExplicitlyAssignedName:()=>cH,classHasExplicitlyAssignedName:()=>D3,classOrConstructorParameterIsDecorated:()=>rv,classicNameResolver:()=>gae,classifier:()=>Iue,cleanExtendedConfigCache:()=>k3,clear:()=>Ra,clearMap:()=>yp,clearSharedExtendedConfigFileWatcher:()=>EH,climbPastPropertyAccess:()=>h7,clone:()=>fZ,cloneCompilerOptions:()=>Zq,closeFileWatcher:()=>Hm,closeFileWatcherOf:()=>Qf,codefix:()=>pu,collapseTextChangeRangesAcrossMultipleVersions:()=>ite,collectExternalModuleInfo:()=>iH,combine:()=>eI,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>Foe,commentPragmas:()=>rF,commonOptionsWithBuild:()=>J4,compact:()=>b2,compareBooleans:()=>PT,compareDataObjects:()=>wV,compareDiagnostics:()=>IM,compareEmitHelpers:()=>Pie,compareNumberOfDirectorySeparators:()=>iw,comparePaths:()=>ry,comparePathsCaseInsensitive:()=>h0e,comparePathsCaseSensitive:()=>m0e,comparePatternKeys:()=>FU,compareProperties:()=>yZ,compareStringsCaseInsensitive:()=>A2,compareStringsCaseInsensitiveEslintCompatible:()=>hZ,compareStringsCaseSensitive:()=>Bd,compareStringsCaseSensitiveUI:()=>I2,compareTextSpans:()=>XW,compareValues:()=>Hs,compilerOptionsAffectDeclarationPath:()=>wre,compilerOptionsAffectEmit:()=>kre,compilerOptionsAffectSemanticDiagnostics:()=>Lre,compilerOptionsDidYouMeanDiagnostics:()=>$4,compilerOptionsIndicateEsModules:()=>oJ,computeCommonSourceDirectoryOfFilenames:()=>Cse,computeLineAndCharacterOfPosition:()=>zR,computeLineOfPosition:()=>MN,computeLineStarts:()=>cI,computePositionOfLineAndCharacter:()=>mF,computeSignatureWithDiagnostics:()=>VH,computeSuggestionDiagnostics:()=>HJ,computedOptions:()=>xM,concatenate:()=>ao,concatenateDiagnosticMessageChains:()=>xre,consumesNodeCoreModules:()=>j7,contains:()=>jn,containsIgnoredPath:()=>wM,containsObjectRestOrSpread:()=>kw,containsParseError:()=>yI,containsPath:()=>gm,convertCompilerOptionsForTelemetry:()=>Zoe,convertCompilerOptionsFromJson:()=>p1e,convertJsonOption:()=>k1,convertToBase64:()=>ure,convertToJson:()=>Gw,convertToObject:()=>Joe,convertToOptionsWithAbsolutePaths:()=>t3,convertToRelativePath:()=>CN,convertToTSConfig:()=>TU,convertTypeAcquisitionFromJson:()=>f1e,copyComments:()=>j1,copyEntries:()=>FF,copyLeadingComments:()=>uC,copyProperties:()=>n9,copyTrailingAsLeadingComments:()=>wO,copyTrailingComments:()=>BP,couldStartTrivia:()=>Uee,countWhere:()=>Ao,createAbstractBuilder:()=>bIe,createAccessorPropertyBackingField:()=>iU,createAccessorPropertyGetRedirector:()=>Eoe,createAccessorPropertySetRedirector:()=>Aoe,createBaseNodeFactory:()=>hie,createBinaryExpressionTrampoline:()=>V4,createBuilderProgram:()=>jH,createBuilderProgramUsingIncrementalBuildInfo:()=>Zse,createBuilderStatusReporter:()=>n7,createCacheableExportInfoMap:()=>kJ,createCachedDirectoryStructureHost:()=>P3,createClassifier:()=>Yxe,createCommentDirectivesMap:()=>Qte,createCompilerDiagnostic:()=>Dl,createCompilerDiagnosticForInvalidCustomType:()=>zoe,createCompilerDiagnosticFromMessageChain:()=>G6,createCompilerHost:()=>Nse,createCompilerHostFromProgramHost:()=>cq,createCompilerHostWorker:()=>w3,createDetachedDiagnostic:()=>kI,createDiagnosticCollection:()=>hM,createDiagnosticForFileFromMessageChain:()=>WG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>QR,createDiagnosticForNodeArrayFromMessageChain:()=>sk,createDiagnosticForNodeFromMessageChain:()=>bg,createDiagnosticForNodeInSourceFile:()=>Gf,createDiagnosticForRange:()=>pne,createDiagnosticMessageChainFromDiagnostic:()=>une,createDiagnosticReporter:()=>hx,createDocumentPositionMapper:()=>Wae,createDocumentRegistry:()=>qce,createDocumentRegistryInternal:()=>zJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JH,createEmitHelperFactory:()=>Mie,createEmptyExports:()=>xw,createEvaluator:()=>sie,createExpressionForJsxElement:()=>loe,createExpressionForJsxFragment:()=>coe,createExpressionForObjectLiteralElementLike:()=>doe,createExpressionForPropertyName:()=>Xj,createExpressionFromEntityName:()=>Rw,createExternalHelpersImportDeclarationIfNeeded:()=>Qj,createFileDiagnostic:()=>zc,createFileDiagnosticFromMessageChain:()=>KF,createFlowNode:()=>B_,createForOfBindingStatement:()=>Kj,createFutureSourceFile:()=>X7,createGetCanonicalFileName:()=>Gd,createGetIsolatedDeclarationErrors:()=>_se,createGetSourceFile:()=>DH,createGetSymbolAccessibilityDiagnosticForNode:()=>d0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>hse,createGetSymbolWalker:()=>Eae,createIncrementalCompilerHost:()=>t7,createIncrementalProgram:()=>dle,createJsxFactoryExpression:()=>Jj,createLanguageService:()=>Sue,createLanguageServiceSourceFile:()=>mz,createMemberAccessForPropertyName:()=>P1,createModeAwareCache:()=>UD,createModeAwareCacheKey:()=>cP,createModeMismatchDetails:()=>TG,createModuleNotFoundChain:()=>BF,createModuleResolutionCache:()=>HD,createModuleResolutionLoader:()=>kH,createModuleResolutionLoaderUsingGlobalCache:()=>sle,createModuleSpecifierResolutionHost:()=>m0,createMultiMap:()=>hm,createNameResolver:()=>dj,createNodeConverters:()=>yie,createNodeFactory:()=>fw,createOptionNameMap:()=>X4,createOverload:()=>PX,createPackageJsonImportFilter:()=>pC,createPackageJsonInfo:()=>xJ,createParenthesizerRules:()=>_ie,createPatternMatcher:()=>$ce,createPrinter:()=>Ub,createPrinterWithDefaults:()=>Ase,createPrinterWithRemoveComments:()=>eE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Ise,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>SH,createProgram:()=>uO,createProgramDiagnostics:()=>Fse,createProgramHost:()=>dq,createPropertyNameNodeForIdentifierOrLiteral:()=>sw,createQueue:()=>E2,createRange:()=>Uf,createRedirectedBuilderProgram:()=>qH,createResolutionCache:()=>YH,createRuntimeTypeSerializer:()=>Qae,createScanner:()=>mg,createSemanticDiagnosticsBuilderProgram:()=>vIe,createSet:()=>r9,createSolutionBuilder:()=>hle,createSolutionBuilderHost:()=>fle,createSolutionBuilderWithWatch:()=>_le,createSolutionBuilderWithWatchHost:()=>mle,createSortedArray:()=>KB,createSourceFile:()=>ax,createSourceMapGenerator:()=>Pae,createSourceMapSource:()=>wSe,createSuperAccessVariableStatement:()=>N3,createSymbolTable:()=>da,createSymlinkCache:()=>HV,createSyntacticTypeNodeBuilder:()=>kle,createSystemWatchFunctions:()=>s0e,createTextChange:()=>DO,createTextChangeFromStartLength:()=>D7,createTextChangeRange:()=>z2,createTextRangeFromNode:()=>nJ,createTextRangeFromSpan:()=>R7,createTextSpan:()=>xd,createTextSpanFromBounds:()=>sc,createTextSpanFromNode:()=>Vu,createTextSpanFromRange:()=>yv,createTextSpanFromStringLiteralLikeContent:()=>tJ,createTextWriter:()=>Bk,createTokenRange:()=>NV,createTypeChecker:()=>Nae,createTypeReferenceDirectiveResolutionCache:()=>u3,createTypeReferenceResolutionLoader:()=>F3,createWatchCompilerHost:()=>NIe,createWatchCompilerHostOfConfigFile:()=>uq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>pq,createWatchFactory:()=>lq,createWatchHost:()=>sq,createWatchProgram:()=>fq,createWatchStatusReporter:()=>$H,createWriteFileMeasuringIO:()=>CH,declarationNameToString:()=>Ws,decodeMappings:()=>tH,decodedTextSpanIntersectsWith:()=>F2,deduplicate:()=>fS,defaultHoverMaximumTruncationLength:()=>Ute,defaultInitCompilerOptions:()=>PEe,defaultMaximumTruncationLength:()=>JN,diagnosticCategoryName:()=>JE,diagnosticToString:()=>oE,diagnosticsEqualityComparer:()=>V6,directoryProbablyExists:()=>ph,directorySeparator:()=>Xs,displayPart:()=>Tp,displayPartsToString:()=>KO,disposeEmitNodes:()=>Tj,documentSpansEqual:()=>pJ,dumpTracingLegend:()=>kZ,elementAt:()=>rb,elideNodes:()=>Soe,emitDetachedComments:()=>tre,emitFiles:()=>bH,emitFilesAndReportErrors:()=>$3,emitFilesAndReportErrorsAndGetExitStatus:()=>aq,emitModuleKindIsNonNodeESM:()=>ew,emitNewLineBeforeLeadingCommentOfPosition:()=>ere,emitResolverSkipsTypeChecking:()=>vH,emitSkippedWithNoDiagnostics:()=>WH,emptyArray:()=>ie,emptyFileSystemEntries:()=>qre,emptyMap:()=>ut,emptyOptions:()=>Dm,endsWith:()=>nl,ensurePathIsNonModuleName:()=>KE,ensureScriptKind:()=>Q6,ensureTrailingDirectorySeparator:()=>qc,entityNameToString:()=>kp,enumerateInsertsAndDeletes:()=>ZW,equalOwnProperties:()=>uZ,equateStringsCaseInsensitive:()=>lb,equateStringsCaseSensitive:()=>_S,equateValues:()=>sb,escapeJsxAttributeString:()=>pV,escapeLeadingUnderscores:()=>Pl,escapeNonAsciiString:()=>T6,escapeSnippetText:()=>BS,escapeString:()=>O_,escapeTemplateSubstitution:()=>dV,evaluatorResult:()=>Kc,every:()=>Hn,exclusivelyPrefixedNodeCoreModules:()=>f4,executeCommandLine:()=>cxe,expandPreOrPostfixIncrementOrDecrementExpression:()=>W4,explainFiles:()=>tq,explainIfFileIsRedirectAndImpliedFormat:()=>nq,exportAssignmentIsAlias:()=>Lk,expressionResultIsUnused:()=>Zre,extend:()=>t9,extensionFromPath:()=>NM,extensionIsTS:()=>r4,extensionsNotSupportingExtensionlessResolution:()=>n4,externalHelpersModuleNameText:()=>bb,factory:()=>L,fileExtensionIs:()=>xl,fileExtensionIsOneOf:()=>tc,fileIncludeReasonToDiagnostics:()=>oq,fileShouldUseJavaScriptRequire:()=>LJ,filter:()=>Un,filterMutate:()=>fl,filterSemanticDiagnostics:()=>V3,find:()=>mn,findAncestor:()=>Dn,findBestPatternMatch:()=>c9,findChildOfKind:()=>Is,findComputedPropertyNameCacheAssignment:()=>j4,findConfigFile:()=>xH,findConstructorDeclaration:()=>uw,findContainingList:()=>b7,findDiagnosticForNode:()=>Wce,findFirstNonJsxWhitespaceToken:()=>ace,findIndex:()=>ho,findLast:()=>ga,findLastIndex:()=>vl,findListItemInfo:()=>oce,findModifier:()=>lC,findNextToken:()=>iE,findPackageJson:()=>Oce,findPackageJsons:()=>IJ,findPrecedingMatchingToken:()=>I7,findPrecedingToken:()=>jc,findSuperStatementIndexPath:()=>A3,findTokenOnLeftOfPosition:()=>LP,findUseStrictPrologue:()=>$j,first:()=>Qa,firstDefined:()=>Ln,firstDefinedIterator:()=>rr,firstIterator:()=>$B,firstOrOnly:()=>CJ,firstOrUndefined:()=>Rc,firstOrUndefinedIterator:()=>KW,fixupCompilerOptions:()=>XJ,flatMap:()=>fi,flatMapIterator:()=>Il,flatMapToMutable:()=>bs,flatten:()=>Yo,flattenCommaList:()=>Ioe,flattenDestructuringAssignment:()=>F1,flattenDestructuringBinding:()=>ZS,flattenDiagnosticMessageText:()=>c_,forEach:()=>qe,forEachAncestor:()=>Jte,forEachAncestorDirectory:()=>NN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>z_,forEachChild:()=>Jo,forEachChildRecursively:()=>ox,forEachDynamicImportOrRequireCall:()=>m4,forEachEmittedFile:()=>hH,forEachEnclosingBlockScopeContainer:()=>lne,forEachEntry:()=>Jc,forEachExternalModuleToImportFrom:()=>OJ,forEachImportClauseDeclaration:()=>wne,forEachKey:()=>yg,forEachLeadingCommentRange:()=>P2,forEachNameInAccessChainWalkingLeft:()=>Tre,forEachNameOfDefaultExport:()=>$7,forEachOptionsSyntaxByName:()=>_j,forEachProjectReference:()=>BM,forEachPropertyAssignment:()=>tD,forEachResolvedProjectReference:()=>mj,forEachReturnStatement:()=>Ab,forEachRight:()=>Mn,forEachTrailingCommentRange:()=>L2,forEachTsConfigPropArray:()=>pk,forEachUnique:()=>mJ,forEachYieldExpression:()=>_ne,formatColorAndReset:()=>tE,formatDiagnostic:()=>NH,formatDiagnostics:()=>JAe,formatDiagnosticsWithColorAndContext:()=>kse,formatGeneratedName:()=>o0,formatGeneratedNamePart:()=>BD,formatLocation:()=>MH,formatMessage:()=>OI,formatStringFromArgs:()=>Ig,formatting:()=>Lc,generateDjb2Hash:()=>D2,generateTSConfig:()=>Koe,getAdjustedReferenceLocation:()=>Jq,getAdjustedRenameLocation:()=>S7,getAliasDeclarationFromName:()=>eV,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>aH,getAllDecoratorsOfClassElement:()=>x3,getAllJSDocTags:()=>TF,getAllJSDocTagsOfKind:()=>F0e,getAllKeys:()=>zTe,getAllProjectOutputs:()=>M3,getAllSuperTypeNodes:()=>cM,getAllowImportingTsExtensions:()=>Dre,getAllowJSCompilerOption:()=>Mb,getAllowSyntheticDefaultImports:()=>WI,getAncestor:()=>UT,getAnyExtensionFromPath:()=>sI,getAreDeclarationMapsEnabled:()=>j6,getAssignedExpandoInitializer:()=>TI,getAssignedName:()=>yF,getAssignmentDeclarationKind:()=>lc,getAssignmentDeclarationPropertyAccessKind:()=>Ak,getAssignmentTargetKind:()=>Ib,getAutomaticTypeDirectiveNames:()=>c3,getBaseFileName:()=>Dc,getBinaryOperatorPrecedence:()=>Wk,getBuildInfo:()=>TH,getBuildInfoFileVersionMap:()=>HH,getBuildInfoText:()=>Sse,getBuildOrderFromAnyBuildOrder:()=>_O,getBuilderCreationParameters:()=>q3,getBuilderFileEmit:()=>Hb,getCanonicalDiagnostic:()=>fne,getCheckFlags:()=>Bl,getClassExtendsHeritageElement:()=>MS,getClassLikeDeclarationOfSymbol:()=>fy,getCombinedLocalAndExportSymbolFlags:()=>hD,getCombinedModifierFlags:()=>kT,getCombinedNodeFlags:()=>oy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>X9,getCommentRange:()=>n_,getCommonSourceDirectory:()=>EP,getCommonSourceDirectoryOfConfig:()=>z1,getCompilerOptionValue:()=>q6,getConditions:()=>Gb,getConfigFileParsingDiagnostics:()=>nE,getConstantValue:()=>Eie,getContainerFlags:()=>BU,getContainerNode:()=>V1,getContainingClass:()=>_d,getContainingClassExcludingClassDecorators:()=>n6,getContainingClassStaticBlock:()=>Ane,getContainingFunction:()=>pf,getContainingFunctionDeclaration:()=>Ene,getContainingFunctionOrClassStaticBlock:()=>t6,getContainingNodeArray:()=>eie,getContainingObjectLiteralElement:()=>XO,getContextualTypeFromParent:()=>W7,getContextualTypeFromParentOrAncestorTypeNode:()=>T7,getDeclarationDiagnostics:()=>gse,getDeclarationEmitExtensionForPath:()=>A6,getDeclarationEmitOutputFilePath:()=>Yne,getDeclarationEmitOutputFilePathWorker:()=>E6,getDeclarationFileExtension:()=>H4,getDeclarationFromName:()=>lM,getDeclarationModifierFlagsFromSymbol:()=>qf,getDeclarationOfKind:()=>ll,getDeclarationsOfKind:()=>Hte,getDeclaredExpandoInitializer:()=>iM,getDecorators:()=>fb,getDefaultCompilerOptions:()=>fz,getDefaultFormatCodeSettings:()=>u7,getDefaultLibFileName:()=>w2,getDefaultLibFilePath:()=>Eue,getDefaultLikeExportInfo:()=>Y7,getDefaultLikeExportNameFromDeclaration:()=>NJ,getDefaultResolutionModeForFileWorker:()=>G3,getDiagnosticText:()=>ap,getDiagnosticsWithinSpan:()=>Fce,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>XH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>ole,getDocumentPositionMapper:()=>UJ,getDocumentSpansEqualityComparer:()=>fJ,getESModuleInterop:()=>e_,getEditsForFileRename:()=>Kce,getEffectiveBaseTypeNode:()=>uh,getEffectiveConstraintOfTypeParameter:()=>jR,getEffectiveContainerForJSDocTemplateTag:()=>m6,getEffectiveImplementsTypeNodes:()=>lD,getEffectiveInitializer:()=>Tk,getEffectiveJSDocHost:()=>jT,getEffectiveModifierFlags:()=>Ud,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>ore,getEffectiveModifierFlagsNoCache:()=>are,getEffectiveReturnTypeNode:()=>Wp,getEffectiveSetAccessorTypeAnnotationNode:()=>bV,getEffectiveTypeAnnotationNode:()=>Cc,getEffectiveTypeParameterDeclarations:()=>mb,getEffectiveTypeRoots:()=>lP,getElementOrPropertyAccessArgumentExpressionOrName:()=>f6,getElementOrPropertyAccessName:()=>ly,getElementsOfBindingOrAssignmentPattern:()=>zD,getEmitDeclarations:()=>vp,getEmitFlags:()=>Za,getEmitHelpers:()=>Sj,getEmitModuleDetectionKind:()=>Cre,getEmitModuleFormatOfFileWorker:()=>RP,getEmitModuleKind:()=>Eu,getEmitModuleResolutionKind:()=>su,getEmitScriptTarget:()=>Va,getEmitStandardClassFields:()=>jV,getEnclosingBlockScopeContainer:()=>dh,getEnclosingContainer:()=>JF,getEncodedSemanticClassifications:()=>WJ,getEncodedSyntacticClassifications:()=>FJ,getEndLinePosition:()=>nk,getEntityNameFromTypeNode:()=>hk,getEntrypointsFromPackageJsonInfo:()=>wU,getErrorCountForSummary:()=>X3,getErrorSpanForNode:()=>o1,getErrorSummaryText:()=>ZH,getEscapedTextOfIdentifierOrLiteral:()=>pM,getEscapedTextOfJsxAttributeName:()=>FM,getEscapedTextOfJsxNamespacedName:()=>GI,getExpandoInitializer:()=>GT,getExportAssignmentExpression:()=>tV,getExportInfoMap:()=>GO,getExportNeedsImportStarHelper:()=>Fae,getExpressionAssociativity:()=>lV,getExpressionPrecedence:()=>mM,getExternalHelpersModuleName:()=>Cw,getExternalModuleImportEqualsDeclarationExpression:()=>tM,getExternalModuleName:()=>EI,getExternalModuleNameFromDeclaration:()=>Kne,getExternalModuleNameFromPath:()=>hV,getExternalModuleNameLiteral:()=>ix,getExternalModuleRequireArgument:()=>UG,getFallbackOptions:()=>lO,getFileEmitOutput:()=>zse,getFileMatcherPatterns:()=>$6,getFileNamesFromConfigSpecs:()=>aP,getFileWatcherEventKind:()=>w9,getFilesInErrorForSummary:()=>Y3,getFirstConstructorWithBody:()=>Eg,getFirstIdentifier:()=>Ou,getFirstNonSpaceCharacterPosition:()=>Nce,getFirstProjectOutput:()=>yH,getFixableErrorSpanExpression:()=>RJ,getFormatCodeSettingsForWriting:()=>J7,getFullWidth:()=>ek,getFunctionFlags:()=>pc,getHeritageClause:()=>kk,getHostSignatureFromJSDoc:()=>VT,getIdentifierAutoGenerate:()=>FSe,getIdentifierGeneratedImportReference:()=>Cie,getIdentifierTypeArguments:()=>b1,getImmediatelyInvokedFunctionExpression:()=>zT,getImpliedNodeFormatForEmitWorker:()=>B1,getImpliedNodeFormatForFile:()=>dO,getImpliedNodeFormatForFileWorker:()=>B3,getImportNeedsImportDefaultHelper:()=>rH,getImportNeedsImportStarHelper:()=>S3,getIndentString:()=>S6,getInferredLibraryNameResolveFrom:()=>z3,getInitializedVariables:()=>SM,getInitializerOfBinaryExpression:()=>KG,getInitializerOfBindingOrAssignmentElement:()=>Mw,getInterfaceBaseTypeNodes:()=>dM,getInternalEmitFlags:()=>jm,getInvokedExpression:()=>o6,getIsFileExcluded:()=>jce,getIsolatedModules:()=>Am,getJSDocAugmentsTag:()=>mte,getJSDocClassTag:()=>Q9,getJSDocCommentRanges:()=>zG,getJSDocCommentsAndTags:()=>XG,getJSDocDeprecatedTag:()=>Z9,getJSDocDeprecatedTagNoCache:()=>Tte,getJSDocEnumTag:()=>eG,getJSDocHost:()=>CS,getJSDocImplementsTags:()=>hte,getJSDocOverloadTags:()=>$G,getJSDocOverrideTagNoCache:()=>bte,getJSDocParameterTags:()=>VR,getJSDocParameterTagsNoCache:()=>dte,getJSDocPrivateTag:()=>k0e,getJSDocPrivateTagNoCache:()=>gte,getJSDocProtectedTag:()=>w0e,getJSDocProtectedTagNoCache:()=>yte,getJSDocPublicTag:()=>L0e,getJSDocPublicTagNoCache:()=>_te,getJSDocReadonlyTag:()=>O0e,getJSDocReadonlyTagNoCache:()=>vte,getJSDocReturnTag:()=>Ste,getJSDocReturnType:()=>G2,getJSDocRoot:()=>sD,getJSDocSatisfiesExpressionType:()=>sj,getJSDocSatisfiesTag:()=>tG,getJSDocTags:()=>OT,getJSDocTemplateTag:()=>W0e,getJSDocThisTag:()=>vF,getJSDocType:()=>Zy,getJSDocTypeAliasName:()=>eU,getJSDocTypeAssertionType:()=>WD,getJSDocTypeParameterDeclarations:()=>C6,getJSDocTypeParameterTags:()=>ute,getJSDocTypeParameterTagsNoCache:()=>pte,getJSDocTypeTag:()=>wT,getJSXImplicitImportBase:()=>tw,getJSXRuntimeImport:()=>K6,getJSXTransformEnabled:()=>J6,getKeyForCompilerOptions:()=>NU,getLanguageVariant:()=>Xk,getLastChild:()=>OV,getLeadingCommentRanges:()=>fg,getLeadingCommentRangesOfNode:()=>FG,getLeftmostAccessExpression:()=>_D,getLeftmostExpression:()=>gD,getLibFileNameFromLibReference:()=>fj,getLibNameFromLibReference:()=>pj,getLibraryNameFromLibFileName:()=>wH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>eH,getLineOfLocalPosition:()=>_M,getLineStartPositionForPosition:()=>Cm,getLineStarts:()=>ug,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>yre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>gre,getLinesBetweenPositions:()=>PN,getLinesBetweenRangeEndAndRangeStart:()=>MV,getLinesBetweenRangeEndPositions:()=>fSe,getLiteralText:()=>tne,getLocalNameForExternalImport:()=>FD,getLocalSymbolForExportDefault:()=>bM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>hO,getMappedContextSpan:()=>hJ,getMappedDocumentSpan:()=>k7,getMappedLocation:()=>WP,getMatchedFileSpec:()=>rq,getMatchedIncludeSpec:()=>iq,getMeaningFromDeclaration:()=>f7,getMeaningFromLocation:()=>G1,getMembersOfDeclaration:()=>gne,getModeForFileReference:()=>wse,getModeForResolutionAtIndex:()=>ZAe,getModeForUsageLocation:()=>LH,getModifiedTime:()=>aI,getModifiers:()=>yS,getModuleInstanceState:()=>yy,getModuleNameStringLiteralAt:()=>pO,getModuleSpecifierEndingPreference:()=>jre,getModuleSpecifierResolverHost:()=>aJ,getNameForExportedSymbol:()=>U7,getNameFromImportAttribute:()=>d4,getNameFromIndexInfo:()=>cne,getNameFromPropertyName:()=>NO,getNameOfAccessExpression:()=>FV,getNameOfCompilerOptionValue:()=>e3,getNameOfDeclaration:()=>wo,getNameOfExpando:()=>HG,getNameOfJSDocTypedef:()=>cte,getNameOfScriptTarget:()=>H6,getNameOrArgument:()=>Ek,getNameTable:()=>bK,getNamespaceDeclarationNode:()=>oD,getNewLineCharacter:()=>av,getNewLineKind:()=>BO,getNewLineOrDefaultFromHost:()=>by,getNewTargetContainer:()=>xne,getNextJSDocCommentLocation:()=>YG,getNodeChildren:()=>Hj,getNodeForGeneratedName:()=>Lw,getNodeId:()=>ls,getNodeKind:()=>rE,getNodeModifiers:()=>kP,getNodeModulePathParts:()=>s4,getNonAssignedNameOfDeclaration:()=>gF,getNonAssignmentOperatorForCompoundAssignment:()=>_P,getNonAugmentationDeclaration:()=>MG,getNonDecoratorTokenPosOfNode:()=>IG,getNonIncrementalBuildInfoRoots:()=>ele,getNonModifierTokenPosOfNode:()=>Zte,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>z9,getNormalizedPathComponents:()=>cF,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>cV,getOperatorPrecedence:()=>Ok,getOptionFromName:()=>_U,getOptionsForLibraryResolution:()=>MU,getOptionsNameMap:()=>VD,getOptionsSyntaxByArrayElementValue:()=>hj,getOptionsSyntaxByValue:()=>pie,getOrCreateEmitNode:()=>qd,getOrUpdate:()=>Of,getOriginalNode:()=>bl,getOriginalNodeId:()=>Gu,getOutputDeclarationFileName:()=>SP,getOutputDeclarationFileNameWorker:()=>_H,getOutputExtension:()=>oO,getOutputFileNames:()=>HAe,getOutputJSFileNameWorker:()=>gH,getOutputPathsFor:()=>TP,getOwnEmitOutputFilePath:()=>Xne,getOwnKeys:()=>Bh,getOwnValues:()=>nI,getPackageJsonTypesVersionsPaths:()=>l3,getPackageNameFromTypesPackageName:()=>pP,getPackageScopeForPath:()=>uP,getParameterSymbolFromJSDoc:()=>Nk,getParentNodeInSpan:()=>PO,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>zw,getPathComponents:()=>Vd,getPathFromPathComponents:()=>LT,getPathUpdater:()=>GJ,getPathsBasePath:()=>I6,getPatternFromSpec:()=>KV,getPendingEmitKindWithSeen:()=>H3,getPositionOfLineAndCharacter:()=>N2,getPossibleGenericSignatures:()=>Xq,getPossibleOriginalInputExtensionForExtension:()=>_V,getPossibleOriginalInputPathWithoutChangingExt:()=>gV,getPossibleTypeArgumentsInfo:()=>Yq,getPreEmitDiagnostics:()=>qAe,getPrecedingNonSpaceCharacterPosition:()=>w7,getPrivateIdentifier:()=>sH,getProperties:()=>oH,getProperty:()=>T2,getPropertyAssignmentAliasLikeExpression:()=>Vne,getPropertyNameForPropertyNameNode:()=>f1,getPropertyNameFromType:()=>Kf,getPropertyNameOfBindingOrAssignmentElement:()=>Zj,getPropertySymbolFromBindingElement:()=>L7,getPropertySymbolsFromContextualType:()=>hz,getQuoteFromPreference:()=>lJ,getQuotePreference:()=>Up,getRangesWhere:()=>JB,getRefactorContextSpan:()=>vx,getReferencedFileLocation:()=>xP,getRegexFromPattern:()=>sv,getRegularExpressionForWildcard:()=>RM,getRegularExpressionsForWildcards:()=>X6,getRelativePathFromDirectory:()=>uf,getRelativePathFromFile:()=>WR,getRelativePathToDirectoryOrUrl:()=>FR,getRenameLocation:()=>kO,getReplacementSpanForContextToken:()=>eJ,getResolutionDiagnostic:()=>zH,getResolutionModeOverride:()=>$D,getResolveJsonModule:()=>WS,getResolvePackageJsonExports:()=>$k,getResolvePackageJsonImports:()=>Qk,getResolvedExternalModuleName:()=>mV,getResolvedModuleFromResolution:()=>gI,getResolvedTypeReferenceDirectiveFromResolution:()=>zF,getRestIndicatorOfBindingOrAssignmentElement:()=>B4,getRestParameterElementType:()=>BG,getRightMostAssignedExpression:()=>Sk,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>ale,getRootLength:()=>Vh,getScriptKind:()=>vJ,getScriptKindFromFileName:()=>Z6,getScriptTargetFeatures:()=>xG,getSelectedEffectiveModifierFlags:()=>CI,getSelectedSyntacticModifierFlags:()=>rre,getSemanticClassifications:()=>Uce,getSemanticJsxChildren:()=>dD,getSetAccessorTypeAnnotationNode:()=>Qne,getSetAccessorValueParameter:()=>gM,getSetExternalModuleIndicator:()=>Yk,getShebang:()=>hF,getSingleVariableOfVariableStatement:()=>xI,getSnapshotText:()=>yx,getSnippetElement:()=>Ej,getSourceFileOfModule:()=>tk,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>R6,getSourceFileVersionAsHashFromText:()=>Q3,getSourceFilesToEmit:()=>x6,getSourceMapRange:()=>dv,getSourceMapper:()=>ade,getSourceTextOfNodeFromSourceFile:()=>ES,getSpanOfTokenAtPosition:()=>qh,getSpellingSuggestion:()=>gS,getStartPositionOfLine:()=>Tb,getStartPositionOfRange:()=>TM,getStartsOnNewLine:()=>GM,getStaticPropertiesAndClassStaticBlock:()=>I3,getStrictOptionValue:()=>Hd,getStringComparer:()=>PR,getSubPatternFromSpec:()=>Y6,getSuperCallFromStatement:()=>E3,getSuperContainer:()=>fk,getSupportedCodeFixes:()=>yK,getSupportedExtensions:()=>DM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>rw,getSwitchedType:()=>SJ,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>wk,getSymbolTarget:()=>bJ,getSyntacticClassifications:()=>Hce,getSyntacticModifierFlags:()=>iv,getSyntacticModifierFlagsNoCache:()=>EV,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>pw,getSynthesizedDeepClones:()=>GS,getSynthesizedDeepClonesWithReplacements:()=>gj,getSyntheticLeadingComments:()=>ED,getSyntheticTrailingComments:()=>gw,getTargetLabel:()=>_7,getTargetOfBindingOrAssignmentElement:()=>zb,getTemporaryModuleResolutionState:()=>dP,getTextOfConstantValue:()=>nne,getTextOfIdentifierOrLiteral:()=>jf,getTextOfJSDocComment:()=>V2,getTextOfJsxAttributeName:()=>dw,getTextOfJsxNamespacedName:()=>zM,getTextOfNode:()=>Rl,getTextOfNodeFromSourceText:()=>XN,getTextOfPropertyName:()=>bI,getThisContainer:()=>Su,getThisParameter:()=>LS,getTokenAtPosition:()=>zi,getTokenPosOfNode:()=>Sb,getTokenSourceMapRange:()=>OSe,getTouchingPropertyName:()=>sp,getTouchingToken:()=>aC,getTrailingCommentRanges:()=>pb,getTrailingSemicolonDeferringWriter:()=>fV,getTransformers:()=>vse,getTsBuildInfoEmitOutputFilePath:()=>u0,getTsConfigObjectLiteralExpression:()=>ZN,getTsConfigPropArrayElementValue:()=>e6,getTypeAnnotationNode:()=>Zne,getTypeArgumentOrTypeParameterList:()=>fce,getTypeKeywordOfTypeOnlyImport:()=>uJ,getTypeNode:()=>Rie,getTypeNodeIfAccessible:()=>VP,getTypeParameterFromJsDoc:()=>One,getTypeParameterOwner:()=>C0e,getTypesPackageName:()=>h3,getUILocale:()=>_Z,getUniqueName:()=>U1,getUniqueSymbolId:()=>Cce,getUseDefineForClassFields:()=>Zk,getWatchErrorSummaryDiagnosticMessage:()=>QH,getWatchFactory:()=>IH,group:()=>MR,groupBy:()=>e9,guessIndentation:()=>Vte,handleNoEmitOptions:()=>FH,handleWatchOptionsConfigDirTemplateSubstitution:()=>n3,hasAbstractModifier:()=>OS,hasAccessorModifier:()=>$h,hasAmbientModifier:()=>SV,hasChangesInResolutions:()=>SG,hasContextSensitiveParameters:()=>a4,hasDecorators:()=>mf,hasDocComment:()=>uce,hasDynamicName:()=>cy,hasEffectiveModifier:()=>Fp,hasEffectiveModifiers:()=>TV,hasEffectiveReadonlyModifier:()=>h1,hasExtension:()=>OR,hasImplementationTSFileExtension:()=>Gre,hasIndexSignature:()=>TJ,hasInferredType:()=>p4,hasInitializer:()=>tv,hasInvalidEscape:()=>uV,hasJSDocNodes:()=>rf,hasJSDocParameterTags:()=>fte,hasJSFileExtension:()=>xg,hasJsonModuleEmitEnabled:()=>U6,hasOnlyExpressionInitializer:()=>r1,hasOverrideModifier:()=>N6,hasPossibleExternalModuleReference:()=>sne,hasProperty:()=>Cs,hasPropertyAccessExpressionWithName:()=>SO,hasQuestionToken:()=>AI,hasRecordedExternalHelpers:()=>foe,hasResolutionModeOverride:()=>oie,hasRestParameter:()=>gG,hasScopeMarker:()=>Lte,hasStaticModifier:()=>Fc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>nre,hasTSFileExtension:()=>g1,hasTabstop:()=>nie,hasTrailingDirectorySeparator:()=>db,hasType:()=>kF,hasTypeArguments:()=>rSe,hasZeroOrOneAsteriskCharacter:()=>UV,hostGetCanonicalFileName:()=>dy,hostUsesCaseSensitiveFileNames:()=>m1,idText:()=>Kr,identifierIsThisKeyword:()=>vV,identifierToKeywordKind:()=>$E,identity:()=>Us,identitySourceMapConsumer:()=>nH,ignoreSourceNewlines:()=>Ij,ignoredPaths:()=>oF,importFromModuleSpecifier:()=>aM,importSyntaxAffectsModuleResolution:()=>VV,indexOfAnyCharCode:()=>Gi,indexOfNode:()=>YR,indicesOf:()=>JW,inferredTypesContainingFile:()=>IP,injectClassNamedEvaluationHelperBlockIfMissing:()=>C3,injectClassThisAssignmentIfMissing:()=>qae,insertImports:()=>dJ,insertSorted:()=>nb,insertStatementAfterCustomPrologue:()=>i1,insertStatementAfterStandardPrologue:()=>Y0e,insertStatementsAfterCustomPrologue:()=>EG,insertStatementsAfterStandardPrologue:()=>vg,intersperse:()=>uo,intrinsicTagNameToString:()=>lj,introducesArgumentsExoticObject:()=>bne,inverseJsxOptionMap:()=>Ww,isAbstractConstructorSymbol:()=>vre,isAbstractModifier:()=>zie,isAccessExpression:()=>Ys,isAccessibilityModifier:()=>Qq,isAccessor:()=>yb,isAccessorModifier:()=>Mj,isAliasableExpression:()=>h6,isAmbientModule:()=>Tu,isAmbientPropertyDeclaration:()=>LG,isAnyDirectorySeparator:()=>O9,isAnyImportOrBareOrAccessedRequire:()=>one,isAnyImportOrReExport:()=>ok,isAnyImportOrRequireStatement:()=>ane,isAnyImportSyntax:()=>vI,isAnySupportedFileExtension:()=>RSe,isApplicableVersionedTypesKey:()=>Jw,isArgumentExpressionOfElementAccess:()=>Gq,isArray:()=>No,isArrayBindingElement:()=>DF,isArrayBindingOrAssignmentElement:()=>K2,isArrayBindingOrAssignmentPattern:()=>uG,isArrayBindingPattern:()=>mv,isArrayLiteralExpression:()=>Nd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>gv,isArrayTypeNode:()=>Tw,isArrowFunction:()=>$s,isAsExpression:()=>DD,isAssertClause:()=>Jie,isAssertEntry:()=>JSe,isAssertionExpression:()=>SS,isAssertsKeyword:()=>Wie,isAssignmentDeclaration:()=>rM,isAssignmentExpression:()=>od,isAssignmentOperator:()=>uy,isAssignmentPattern:()=>HN,isAssignmentTarget:()=>xb,isAsteriskToken:()=>vw,isAsyncFunction:()=>uM,isAsyncModifier:()=>UM,isAutoAccessorPropertyDeclaration:()=>Zu,isAwaitExpression:()=>Wb,isAwaitKeyword:()=>Nj,isBigIntLiteral:()=>AD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>Gk,isBinaryOperatorToken:()=>Toe,isBindableObjectDefinePropertyCall:()=>c1,isBindableStaticAccessExpression:()=>DS,isBindableStaticElementAccessExpression:()=>p6,isBindableStaticNameExpression:()=>d1,isBindingElement:()=>qa,isBindingElementOfBareOrAccessedRequire:()=>Cne,isBindingName:()=>t1,isBindingOrAssignmentElement:()=>Cte,isBindingOrAssignmentPattern:()=>q2,isBindingPattern:()=>Zo,isBlock:()=>ta,isBlockLike:()=>bx,isBlockOrCatchScoped:()=>RG,isBlockScope:()=>kG,isBlockScopedContainerTopLevel:()=>ine,isBooleanLiteral:()=>UN,isBreakOrContinueStatement:()=>BN,isBreakStatement:()=>USe,isBuildCommand:()=>Dle,isBuildInfoFile:()=>bse,isBuilderProgram:()=>eq,isBundle:()=>$ie,isCallChain:()=>QE,isCallExpression:()=>ea,isCallExpressionTarget:()=>wq,isCallLikeExpression:()=>TS,isCallLikeOrFunctionLikeExpression:()=>pG,isCallOrNewExpression:()=>Uh,isCallOrNewExpressionTarget:()=>Oq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>jM,isCaseBlock:()=>$M,isCaseClause:()=>PD,isCaseKeyword:()=>Gie,isCaseOrDefaultClause:()=>PF,isCatchClause:()=>KS,isCatchClauseVariableDeclaration:()=>tie,isCatchClauseVariableDeclarationOrBindingElement:()=>DG,isCheckJsEnabledForFile:()=>MM,isCircularBuildOrder:()=>_x,isClassDeclaration:()=>Mc,isClassElement:()=>Sc,isClassExpression:()=>fc,isClassInstanceProperty:()=>Rte,isClassLike:()=>ui,isClassMemberModifier:()=>lG,isClassNamedEvaluationHelperBlock:()=>fx,isClassOrTypeElement:()=>RF,isClassStaticBlockDeclaration:()=>nc,isClassThisAssignmentBlock:()=>yP,isColonToken:()=>wie,isCommaExpression:()=>Dw,isCommaListExpression:()=>XM,isCommaSequence:()=>nP,isCommaToken:()=>kie,isComment:()=>x7,isCommonJsExportPropertyAssignment:()=>QF,isCommonJsExportedExpression:()=>yne,isCompoundAssignment:()=>hP,isComputedNonLiteralName:()=>ak,isComputedPropertyName:()=>va,isConciseBody:()=>NF,isConditionalExpression:()=>I1,isConditionalTypeNode:()=>jS,isConstAssertion:()=>cj,isConstTypeReference:()=>Gm,isConstructSignatureDeclaration:()=>JM,isConstructorDeclaration:()=>kl,isConstructorTypeNode:()=>ID,isContextualKeyword:()=>g6,isContinueStatement:()=>jSe,isCustomPrologue:()=>uk,isDebuggerStatement:()=>HSe,isDeclaration:()=>id,isDeclarationBindingElement:()=>H2,isDeclarationFileName:()=>sd,isDeclarationName:()=>w_,isDeclarationNameOfEnumOrNamespace:()=>LV,isDeclarationReadonly:()=>lk,isDeclarationStatement:()=>Wte,isDeclarationWithTypeParameterChildren:()=>OG,isDeclarationWithTypeParameters:()=>wG,isDecorator:()=>Bc,isDecoratorTarget:()=>ece,isDefaultClause:()=>QM,isDefaultImport:()=>u1,isDefaultModifier:()=>A4,isDefaultedExpandoInitializer:()=>Nne,isDeleteExpression:()=>jie,isDeleteTarget:()=>ZG,isDeprecatedDeclaration:()=>H7,isDestructuringAssignment:()=>ov,isDiskPathRoot:()=>W9,isDoStatement:()=>VSe,isDocumentRegistryEntry:()=>VO,isDotDotDotToken:()=>S4,isDottedName:()=>jk,isDynamicName:()=>v6,isEffectiveExternalModule:()=>$R,isEffectiveStrictModeSourceFile:()=>PG,isElementAccessChain:()=>nG,isElementAccessExpression:()=>zs,isEmittedFileOfProgram:()=>Rse,isEmptyArrayLiteral:()=>dre,isEmptyBindingElement:()=>ate,isEmptyBindingPattern:()=>ote,isEmptyObjectLiteral:()=>DV,isEmptyStatement:()=>kj,isEmptyStringLiteral:()=>jG,isEntityName:()=>ku,isEntityNameExpression:()=>Ns,isEnumConst:()=>FT,isEnumDeclaration:()=>t0,isEnumMember:()=>_y,isEqualityOperatorKind:()=>F7,isEqualsGreaterThanToken:()=>Oie,isExclamationToken:()=>bw,isExcludedFile:()=>Yoe,isExclusivelyTypeOnlyImportOrExport:()=>PH,isExpandoPropertyDeclaration:()=>VI,isExportAssignment:()=>dl,isExportDeclaration:()=>hc,isExportModifier:()=>JI,isExportName:()=>F4,isExportNamespaceAsDefaultDeclaration:()=>UF,isExportOrDefaultModifier:()=>Pw,isExportSpecifier:()=>lu,isExportsIdentifier:()=>l1,isExportsOrModuleExportsOrAlias:()=>$S,isExpression:()=>St,isExpressionNode:()=>k_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>rce,isExpressionOfOptionalChainRoot:()=>EF,isExpressionStatement:()=>ad,isExpressionWithTypeArguments:()=>my,isExpressionWithTypeArgumentsInClassExtendsClause:()=>P6,isExternalModule:()=>Vc,isExternalModuleAugmentation:()=>IS,isExternalModuleImportEqualsDeclaration:()=>BT,isExternalModuleIndicator:()=>Y2,isExternalModuleNameRelative:()=>nd,isExternalModuleReference:()=>hy,isExternalModuleSymbol:()=>hI,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>U2,isFileLevelUniqueName:()=>VF,isFileProbablyExternalModule:()=>ww,isFirstDeclarationOfSymbolParameter:()=>_J,isFixablePromiseHandler:()=>JJ,isForInOrOfStatement:()=>n1,isForInStatement:()=>C4,isForInitializer:()=>Bf,isForOfStatement:()=>Ew,isForStatement:()=>e0,isFullSourceFile:()=>Tg,isFunctionBlock:()=>xS,isFunctionBody:()=>mG,isFunctionDeclaration:()=>rc,isFunctionExpression:()=>qs,isFunctionExpressionOrArrowFunction:()=>Pb,isFunctionLike:()=>$o,isFunctionLikeDeclaration:()=>Ls,isFunctionLikeKind:()=>uI,isFunctionLikeOrClassStaticBlockDeclaration:()=>qR,isFunctionOrConstructorTypeNode:()=>Dte,isFunctionOrModuleBlock:()=>cG,isFunctionSymbol:()=>Lne,isFunctionTypeNode:()=>W_,isGeneratedIdentifier:()=>ml,isGeneratedPrivateIdentifier:()=>e1,isGetAccessor:()=>_g,isGetAccessorDeclaration:()=>Xf,isGetOrSetAccessorDeclaration:()=>j2,isGlobalScopeAugmentation:()=>L_,isGlobalSourceFile:()=>nv,isGrammarError:()=>$te,isHeritageClause:()=>Gp,isHoistedFunction:()=>YF,isHoistedVariableStatement:()=>$F,isIdentifier:()=>Je,isIdentifierANonContextualKeyword:()=>iV,isIdentifierName:()=>Gne,isIdentifierOrThisTypeNode:()=>goe,isIdentifierPart:()=>iy,isIdentifierStart:()=>C_,isIdentifierText:()=>_p,isIdentifierTypePredicate:()=>Tne,isIdentifierTypeReference:()=>Yre,isIfStatement:()=>ZT,isIgnoredFileFromWildCardWatching:()=>sO,isImplicitGlob:()=>JV,isImportAttribute:()=>Kie,isImportAttributeName:()=>xte,isImportAttributes:()=>D1,isImportCall:()=>tp,isImportClause:()=>Jm,isImportDeclaration:()=>Tl,isImportEqualsDeclaration:()=>Gc,isImportKeyword:()=>qM,isImportMeta:()=>eD,isImportOrExportSpecifier:()=>_b,isImportOrExportSpecifierName:()=>Dce,isImportSpecifier:()=>xu,isImportTypeAssertionContainer:()=>qSe,isImportTypeNode:()=>r_,isImportable:()=>wJ,isInComment:()=>_v,isInCompoundLikeAssignment:()=>QG,isInExpressionContext:()=>a6,isInJSDoc:()=>nM,isInJSFile:()=>Ir,isInJSXText:()=>dce,isInJsonFile:()=>l6,isInNonReferenceComment:()=>_ce,isInReferenceComment:()=>hce,isInRightSideOfInternalImportEqualsDeclaration:()=>m7,isInString:()=>gx,isInTemplateString:()=>Kq,isInTopLevelContext:()=>r6,isInTypeQuery:()=>DI,isIncrementalBuildInfo:()=>fO,isIncrementalBundleEmitBuildInfo:()=>Kse,isIncrementalCompilation:()=>FS,isIndexSignatureDeclaration:()=>Ob,isIndexedAccessTypeNode:()=>US,isInferTypeNode:()=>S1,isInfinityOrNaNString:()=>OM,isInitializedProperty:()=>$w,isInitializedVariable:()=>Kk,isInsideJsxElement:()=>A7,isInsideJsxElementOrAttribute:()=>cce,isInsideNodeModules:()=>WO,isInsideTemplateLiteral:()=>RO,isInstanceOfExpression:()=>L6,isInstantiatedModule:()=>XU,isInterfaceDeclaration:()=>yd,isInternalDeclaration:()=>jte,isInternalModuleImportEqualsDeclaration:()=>s1,isInternalName:()=>Yj,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>uD,isIterationStatement:()=>vb,isJSDoc:()=>gh,isJSDocAllType:()=>eoe,isJSDocAugmentsTag:()=>rx,isJSDocAuthorTag:()=>$Se,isJSDocCallbackTag:()=>Fj,isJSDocClassTag:()=>noe,isJSDocCommentContainingNode:()=>LF,isJSDocConstructSignature:()=>II,isJSDocDeprecatedTag:()=>jj,isJSDocEnumTag:()=>Iw,isJSDocFunctionType:()=>kD,isJSDocImplementsTag:()=>w4,isJSDocImportTag:()=>l_,isJSDocIndexSignature:()=>d6,isJSDocLikeText:()=>oU,isJSDocLink:()=>Qie,isJSDocLinkCode:()=>Zie,isJSDocLinkLike:()=>mI,isJSDocLinkPlain:()=>XSe,isJSDocMemberName:()=>i0,isJSDocNameReference:()=>ZM,isJSDocNamepathType:()=>YSe,isJSDocNamespaceBody:()=>j0e,isJSDocNode:()=>JR,isJSDocNonNullableType:()=>M4,isJSDocNullableType:()=>LD,isJSDocOptionalParameter:()=>l4,isJSDocOptionalType:()=>Wj,isJSDocOverloadTag:()=>wD,isJSDocOverrideTag:()=>L4,isJSDocParameterTag:()=>_f,isJSDocPrivateTag:()=>Bj,isJSDocPropertyLikeTag:()=>GN,isJSDocPropertyTag:()=>roe,isJSDocProtectedTag:()=>Gj,isJSDocPublicTag:()=>zj,isJSDocReadonlyTag:()=>Vj,isJSDocReturnTag:()=>k4,isJSDocSatisfiesExpression:()=>aj,isJSDocSatisfiesTag:()=>O4,isJSDocSeeTag:()=>QSe,isJSDocSignature:()=>hv,isJSDocTag:()=>KR,isJSDocTemplateTag:()=>xm,isJSDocThisTag:()=>Uj,isJSDocThrowsTag:()=>eEe,isJSDocTypeAlias:()=>Tm,isJSDocTypeAssertion:()=>XS,isJSDocTypeExpression:()=>r0,isJSDocTypeLiteral:()=>N1,isJSDocTypeTag:()=>eP,isJSDocTypedefTag:()=>M1,isJSDocUnknownTag:()=>ZSe,isJSDocUnknownType:()=>toe,isJSDocVariadicType:()=>P4,isJSXTagName:()=>rD,isJsonEqual:()=>i4,isJsonSourceFile:()=>Vf,isJsxAttribute:()=>s_,isJsxAttributeLike:()=>MF,isJsxAttributeName:()=>iie,isJsxAttributes:()=>JS,isJsxCallLike:()=>Gte,isJsxChild:()=>Z2,isJsxClosingElement:()=>qS,isJsxClosingFragment:()=>Yie,isJsxElement:()=>a_,isJsxExpression:()=>MD,isJsxFragment:()=>n0,isJsxNamespacedName:()=>_h,isJsxOpeningElement:()=>hh,isJsxOpeningFragment:()=>Km,isJsxOpeningLikeElement:()=>au,isJsxOpeningLikeElementTagName:()=>tce,isJsxSelfClosingElement:()=>C1,isJsxSpreadAttribute:()=>nx,isJsxTagNameExpression:()=>qN,isJsxText:()=>HI,isJumpStatementTarget:()=>EO,isKeyword:()=>rp,isKeywordOrPunctuation:()=>_6,isKnownSymbol:()=>fM,isLabelName:()=>zq,isLabelOfLabeledStatement:()=>Fq,isLabeledStatement:()=>Fb,isLateVisibilityPaintedStatement:()=>qF,isLeftHandSideExpression:()=>ep,isLet:()=>XF,isLineBreak:()=>ru,isLiteralComputedPropertyDeclarationName:()=>Pk,isLiteralExpression:()=>ZE,isLiteralExpressionOfObject:()=>aG,isLiteralImportTypeNode:()=>sy,isLiteralKind:()=>VN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>g7,isLiteralTypeLiteral:()=>Pte,isLiteralTypeNode:()=>fv,isLocalName:()=>gy,isLogicalOperator:()=>sre,isLogicalOrCoalescingAssignmentExpression:()=>AV,isLogicalOrCoalescingAssignmentOperator:()=>yM,isLogicalOrCoalescingBinaryExpression:()=>Vk,isLogicalOrCoalescingBinaryOperator:()=>M6,isMappedTypeNode:()=>A1,isMemberName:()=>hg,isMetaProperty:()=>x1,isMethodDeclaration:()=>Ll,isMethodOrAccessor:()=>pI,isMethodSignature:()=>qm,isMinusToken:()=>Cj,isMissingDeclaration:()=>KSe,isMissingPackageJsonInfo:()=>sae,isModifier:()=>Aa,isModifierKind:()=>gb,isModifierLike:()=>hl,isModuleAugmentationExternal:()=>NG,isModuleBlock:()=>i_,isModuleBody:()=>kte,isModuleDeclaration:()=>mc,isModuleExportName:()=>N4,isModuleExportsAccessExpression:()=>Sg,isModuleIdentifier:()=>qG,isModuleName:()=>boe,isModuleOrEnumDeclaration:()=>$2,isModuleReference:()=>zte,isModuleSpecifierLike:()=>P7,isModuleWithStringLiteralName:()=>HF,isNameOfFunctionDeclaration:()=>jq,isNameOfModuleDeclaration:()=>Vq,isNamedDeclaration:()=>rd,isNamedEvaluation:()=>Op,isNamedEvaluationSource:()=>oV,isNamedExportBindings:()=>iG,isNamedExports:()=>$f,isNamedImportBindings:()=>hG,isNamedImports:()=>o_,isNamedImportsOrExports:()=>z6,isNamedTupleMember:()=>xD,isNamespaceBody:()=>V0e,isNamespaceExport:()=>F_,isNamespaceExportDeclaration:()=>Aw,isNamespaceImport:()=>Ng,isNamespaceReexportDeclaration:()=>Dne,isNewExpression:()=>HS,isNewExpressionTarget:()=>MP,isNewScopeNode:()=>uie,isNoSubstitutionTemplateLiteral:()=>T1,isNodeArray:()=>vS,isNodeArrayMultiLine:()=>_re,isNodeDescendantOf:()=>NS,isNodeKind:()=>IF,isNodeLikeSystem:()=>p9,isNodeModulesDirectory:()=>uF,isNodeWithPossibleHoistedDeclaration:()=>zne,isNonContextualKeyword:()=>rV,isNonGlobalAmbientModule:()=>CG,isNonNullAccess:()=>rie,isNonNullChain:()=>AF,isNonNullExpression:()=>ex,isNonStaticMethodOrAccessorWithPrivateName:()=>zae,isNotEmittedStatement:()=>Xie,isNullishCoalesce:()=>rG,isNumber:()=>ob,isNumericLiteral:()=>op,isNumericLiteralName:()=>Dg,isObjectBindingElementWithoutPropertyName:()=>MO,isObjectBindingOrAssignmentElement:()=>J2,isObjectBindingOrAssignmentPattern:()=>dG,isObjectBindingPattern:()=>hf,isObjectLiteralElement:()=>_G,isObjectLiteralElementLike:()=>ay,isObjectLiteralExpression:()=>za,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>ZF,isObjectTypeDeclaration:()=>LI,isOmittedExpression:()=>Xc,isOptionalChain:()=>iu,isOptionalChainRoot:()=>FN,isOptionalDeclaration:()=>BI,isOptionalJSDocPropertyLikeTag:()=>cw,isOptionalTypeNode:()=>I4,isOuterExpression:()=>z4,isOutermostOptionalChain:()=>zN,isOverrideModifier:()=>Bie,isPackageJsonInfo:()=>d3,isPackedArrayLiteral:()=>ij,isParameter:()=>Zi,isParameterPropertyDeclaration:()=>Lp,isParameterPropertyModifier:()=>jN,isParenthesizedExpression:()=>zu,isParenthesizedTypeNode:()=>E1,isParseTreeNode:()=>WN,isPartOfParameterDeclaration:()=>HT,isPartOfTypeNode:()=>Kh,isPartOfTypeOnlyImportOrExportDeclaration:()=>Ite,isPartOfTypeQuery:()=>s6,isPartiallyEmittedExpression:()=>Uie,isPatternMatch:()=>YW,isPinnedComment:()=>jF,isPlainJsFile:()=>KN,isPlusToken:()=>Dj,isPossiblyTypeArgumentPosition:()=>xO,isPostfixUnaryExpression:()=>Lj,isPrefixUnaryExpression:()=>QT,isPrimitiveLiteralValue:()=>u4,isPrivateIdentifier:()=>Qi,isPrivateIdentifierClassElementDeclaration:()=>ou,isPrivateIdentifierPropertyAccessExpression:()=>HR,isPrivateIdentifierSymbol:()=>Une,isProgramUptoDate:()=>OH,isPrologueDirective:()=>Jh,isPropertyAccessChain:()=>SF,isPropertyAccessEntityNameExpression:()=>Uk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>X2,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Nte,isPropertyAssignment:()=>Pc,isPropertyDeclaration:()=>Mo,isPropertyName:()=>Tc,isPropertyNameLiteral:()=>Xh,isPropertySignature:()=>Iu,isPrototypeAccess:()=>Cb,isPrototypePropertyAssignment:()=>Ik,isPunctuation:()=>nV,isPushOrUnshiftIdentifier:()=>aV,isQualifiedName:()=>Wu,isQuestionDotToken:()=>E4,isQuestionOrExclamationToken:()=>_oe,isQuestionOrPlusOrMinusToken:()=>voe,isQuestionToken:()=>wb,isReadonlyKeyword:()=>Fie,isReadonlyKeywordOrPlusOrMinusToken:()=>yoe,isRecognizedTripleSlashComment:()=>AG,isReferenceFileLocation:()=>QD,isReferencedFile:()=>p0,isRegularExpressionLiteral:()=>xj,isRequireCall:()=>np,isRequireVariableStatement:()=>vk,isRestParameter:()=>M_,isRestTypeNode:()=>x4,isReturnStatement:()=>of,isReturnStatementWithFixablePromiseHandler:()=>Z7,isRightSideOfAccessExpression:()=>RV,isRightSideOfInstanceofExpression:()=>cre,isRightSideOfPropertyAccess:()=>rC,isRightSideOfQualifiedName:()=>nce,isRightSideOfQualifiedNameOrPropertyAccess:()=>vM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>lre,isRootedDiskPath:()=>Pp,isSameEntityName:()=>iD,isSatisfiesExpression:()=>CD,isSemicolonClassElement:()=>Hie,isSetAccessor:()=>Hh,isSetAccessorDeclaration:()=>bp,isShiftOperatorOrHigher:()=>nU,isShorthandAmbientModuleSymbol:()=>ik,isShorthandPropertyAssignment:()=>Jd,isSideEffectImport:()=>uj,isSignedNumericLiteral:()=>y6,isSimpleCopiableExpression:()=>QS,isSimpleInlineableExpression:()=>G_,isSimpleParameterList:()=>Qw,isSingleOrDoubleQuote:()=>bk,isSolutionConfig:()=>IU,isSourceElement:()=>aie,isSourceFile:()=>Xi,isSourceFileFromLibrary:()=>fC,isSourceFileJS:()=>wu,isSourceFileNotJson:()=>c6,isSourceMapping:()=>Oae,isSpecialPropertyDeclaration:()=>Pne,isSpreadAssignment:()=>Mg,isSpreadElement:()=>Yf,isStatement:()=>ji,isStatementButNotDeclaration:()=>Q2,isStatementOrBlock:()=>Fte,isStatementWithLocals:()=>Yte,isStatic:()=>ua,isStaticModifier:()=>KI,isString:()=>Bo,isStringANonContextualKeyword:()=>RI,isStringAndEmptyAnonymousObjectIntersection:()=>mce,isStringDoubleQuoted:()=>u6,isStringLiteral:()=>Oa,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>Bte,isStringLiteralOrTemplate:()=>Pce,isStringOrNumericLiteralLike:()=>ff,isStringOrRegularExpressionOrTemplateLiteral:()=>$q,isStringTextContainingNode:()=>sG,isSuperCall:()=>a1,isSuperKeyword:()=>HM,isSuperProperty:()=>gp,isSupportedSourceFileName:()=>$V,isSwitchStatement:()=>YM,isSyntaxList:()=>OD,isSyntheticExpression:()=>GSe,isSyntheticReference:()=>tx,isTagName:()=>Bq,isTaggedTemplateExpression:()=>$T,isTaggedTemplateTag:()=>Zle,isTemplateExpression:()=>D4,isTemplateHead:()=>qI,isTemplateLiteral:()=>fI,isTemplateLiteralKind:()=>hb,isTemplateLiteralToken:()=>Ete,isTemplateLiteralTypeNode:()=>Vie,isTemplateLiteralTypeSpan:()=>Pj,isTemplateMiddle:()=>Rj,isTemplateMiddleOrTemplateTail:()=>xF,isTemplateSpan:()=>ND,isTemplateTail:()=>T4,isTextWhiteSpaceLike:()=>bce,isThis:()=>iC,isThisContainerOrFunctionBlock:()=>Ine,isThisIdentifier:()=>Db,isThisInTypeQuery:()=>kS,isThisInitializedDeclaration:()=>i6,isThisInitializedObjectBindingExpression:()=>Rne,isThisProperty:()=>mk,isThisTypeNode:()=>KM,isThisTypeParameter:()=>WM,isThisTypePredicate:()=>Sne,isThrowStatement:()=>Oj,isToken:()=>dI,isTokenKind:()=>oG,isTraceEnabled:()=>Bb,isTransientSymbol:()=>gg,isTrivia:()=>cD,isTryStatement:()=>R1,isTupleTypeNode:()=>$I,isTypeAlias:()=>Dk,isTypeAliasDeclaration:()=>Im,isTypeAssertionExpression:()=>R4,isTypeDeclaration:()=>zI,isTypeElement:()=>bS,isTypeKeyword:()=>wP,isTypeKeywordTokenOrIdentifier:()=>C7,isTypeLiteralNode:()=>Fu,isTypeNode:()=>Ci,isTypeNodeKind:()=>WV,isTypeOfExpression:()=>RD,isTypeOnlyExportDeclaration:()=>Ate,isTypeOnlyImportDeclaration:()=>UR,isTypeOnlyImportOrExportDeclaration:()=>ev,isTypeOperatorNode:()=>YT,isTypeParameterDeclaration:()=>cl,isTypePredicateNode:()=>YI,isTypeQueryNode:()=>VS,isTypeReferenceNode:()=>Bp,isTypeReferenceType:()=>wF,isTypeUsableAsPropertyName:()=>Jf,isUMDExportSymbol:()=>F6,isUnaryExpression:()=>fG,isUnaryExpressionWithWrite:()=>Mte,isUnicodeIdentifierStart:()=>fF,isUnionTypeNode:()=>pv,isUrl:()=>Fee,isValidBigIntString:()=>o4,isValidESSymbolDeclaration:()=>vne,isValidTypeOnlyAliasUseSite:()=>JT,isValueSignatureDeclaration:()=>p1,isVarAwaitUsing:()=>ck,isVarConst:()=>ZR,isVarConstLike:()=>hne,isVarUsing:()=>dk,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>QN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>RS,isVariableDeclarationInitializedToRequire:()=>yk,isVariableDeclarationList:()=>gd,isVariableLike:()=>$N,isVariableStatement:()=>cc,isVoidExpression:()=>ZI,isWatchSet:()=>kV,isWhileStatement:()=>wj,isWhiteSpaceLike:()=>pg,isWhiteSpaceSingleLine:()=>jh,isWithStatement:()=>qie,isWriteAccess:()=>PI,isWriteOnlyAccess:()=>W6,isYieldExpression:()=>Sw,jsxModeNeedsExplicitImport:()=>PJ,keywordPart:()=>Hp,last:()=>Ga,lastOrUndefined:()=>tl,length:()=>Qe,libMap:()=>dU,libs:()=>q4,lineBreakPart:()=>dC,loadModuleFromGlobalCache:()=>yae,loadWithModeAwareCache:()=>cO,makeIdentifierFromModuleName:()=>rne,makeImport:()=>Jb,makeStringLiteral:()=>OP,mangleScopedPackageName:()=>JD,map:()=>Yt,mapAllOrFail:()=>Fd,mapDefined:()=>Ei,mapDefinedIterator:()=>zd,mapEntries:()=>qW,mapIterator:()=>Fo,mapOneOrMany:()=>DJ,mapToDisplayParts:()=>Kb,matchFiles:()=>Bre,matchPatternOrExact:()=>QV,matchedText:()=>TZ,matchesExclude:()=>o3,matchesExcludeWorker:()=>a3,maxBy:()=>i9,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>Ire,memoize:()=>Lu,memoizeOne:()=>Gh,min:()=>o9,minAndMax:()=>Jre,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>NI,modifiersToFlags:()=>Qh,moduleExportNameIsDefault:()=>P_,moduleExportNameTextEscaped:()=>AS,moduleExportNameTextUnescaped:()=>Eb,moduleOptionDeclaration:()=>Poe,moduleResolutionIsEqualTo:()=>Kte,moduleResolutionNameAndModeGetter:()=>W3,moduleResolutionOptionDeclarations:()=>pU,moduleResolutionSupportsPackageJsonExportsAndImports:()=>yD,moduleResolutionUsesNodeModules:()=>N7,moduleSpecifierToValidIdentifier:()=>zO,moduleSpecifiers:()=>vy,moduleSupportsImportAttributes:()=>Pre,moduleSymbolToValidIdentifier:()=>FO,moveEmitHelpers:()=>Iie,moveRangeEnd:()=>w6,moveRangePastDecorators:()=>py,moveRangePastModifiers:()=>Zh,moveRangePos:()=>qT,moveSyntheticComments:()=>Sie,mutateMap:()=>AM,mutateMapSkippingNewValues:()=>Ag,needsParentheses:()=>O7,needsScopeMarker:()=>CF,newCaseClauseTracker:()=>K7,newPrivateEnvironment:()=>Gae,noEmitNotification:()=>nO,noEmitSubstitution:()=>bP,noTransformers:()=>yse,noTruncationMaximumTruncationLength:()=>vG,nodeCanBeDecorated:()=>_k,nodeCoreModules:()=>SD,nodeHasName:()=>B2,nodeIsDecorated:()=>nD,nodeIsMissing:()=>zl,nodeIsPresent:()=>vm,nodeIsSynthesized:()=>Fs,nodeModuleNameResolver:()=>uae,nodeModulesPathPart:()=>Pg,nodeNextJsonConfigResolver:()=>pae,nodeOrChildIsDecorated:()=>gk,nodeOverlapsWithStartEnd:()=>y7,nodePosToString:()=>q0e,nodeSeenTracker:()=>sC,nodeStartsNewLexicalEnvironment:()=>sV,noop:()=>gs,noopFileWatcher:()=>tC,normalizePath:()=>ya,normalizeSlashes:()=>jd,normalizeSpans:()=>K9,not:()=>QW,notImplemented:()=>ha,notImplementedResolver:()=>Ese,nullNodeConverters:()=>vie,nullParenthesizerRules:()=>gie,nullTransformationContext:()=>iO,objectAllocator:()=>Dd,operatorPart:()=>FP,optionDeclarations:()=>Xm,optionMapToObject:()=>Z4,optionsAffectingProgramStructure:()=>Ooe,optionsForBuild:()=>mU,optionsForWatch:()=>lx,optionsHaveChanges:()=>_I,or:()=>Np,orderedRemoveItem:()=>bN,orderedRemoveItemAt:()=>cb,packageIdToPackageName:()=>GF,packageIdToString:()=>WT,parameterIsThisKeyword:()=>Rb,parameterNamePart:()=>Sce,parseBaseNodeFactory:()=>xoe,parseBigInt:()=>Xre,parseBuildCommand:()=>Uoe,parseCommandLine:()=>Voe,parseCommandLineWorker:()=>hU,parseConfigFileTextToJson:()=>gU,parseConfigFileWithSystem:()=>lle,parseConfigHostFromCompilerHostLike:()=>j3,parseCustomTypeOption:()=>Y4,parseIsolatedEntityName:()=>sx,parseIsolatedJSDocComment:()=>Doe,parseJSDocTypeExpressionForTests:()=>AEe,parseJsonConfigFileContent:()=>e1e,parseJsonSourceFileConfigFileContent:()=>Vw,parseJsonText:()=>Ow,parseListTypeOption:()=>Boe,parseNodeFactory:()=>a0,parseNodeModuleFromPath:()=>qw,parsePackageName:()=>f3,parsePseudoBigInt:()=>LM,parseValidBigInt:()=>nj,pasteEdits:()=>MX,patchWriteFileEnsuringDirectory:()=>l0e,pathContainsNodeModules:()=>Vb,pathIsAbsolute:()=>DN,pathIsBareSpecifier:()=>F9,pathIsRelative:()=>nf,patternText:()=>bZ,performIncrementalCompilation:()=>cle,performance:()=>CZ,positionBelongsToNode:()=>Uq,positionIsASICandidate:()=>z7,positionIsSynthesized:()=>fh,positionsAreOnSameLine:()=>Hf,preProcessFile:()=>dRe,probablyUsesSemicolons:()=>OO,processCommentPragmas:()=>lU,processPragmasIntoFields:()=>cU,processTaggedTemplateExpression:()=>dH,programContainsEsModules:()=>yce,programContainsModules:()=>gce,projectReferenceIsEqualTo:()=>bG,propertyNamePart:()=>Ece,pseudoBigIntToString:()=>zS,punctuationPart:()=>uu,pushIfUnique:()=>Ff,quote:()=>GP,quotePreferenceFromString:()=>sJ,rangeContainsPosition:()=>oC,rangeContainsPositionExclusive:()=>AO,rangeContainsRange:()=>ip,rangeContainsRangeExclusive:()=>ice,rangeContainsStartEnd:()=>IO,rangeEndIsOnSameLineAsRangeStart:()=>Jk,rangeEndPositionsAreOnSameLine:()=>mre,rangeEquals:()=>YB,rangeIsOnSingleLine:()=>_1,rangeOfNode:()=>ej,rangeOfTypeParameters:()=>tj,rangeOverlapsWithStartEnd:()=>PP,rangeStartIsOnSameLineAsRangeEnd:()=>hre,rangeStartPositionsAreOnSameLine:()=>O6,readBuilderProgram:()=>e7,readConfigFile:()=>Bw,readJson:()=>mD,readJsonConfigFile:()=>Hoe,readJsonOrUndefined:()=>CV,reduceEachLeadingCommentRange:()=>qee,reduceEachTrailingCommentRange:()=>Jee,reduceLeft:()=>bu,reduceLeftIterator:()=>kn,reducePathComponents:()=>lI,refactor:()=>Sx,regExpEscape:()=>TSe,regularExpressionFlagToCharacterCode:()=>b0e,relativeComplement:()=>lZ,removeAllComments:()=>hw,removeEmitHelper:()=>WSe,removeExtension:()=>ow,removeFileExtension:()=>Au,removeIgnoredPath:()=>J3,removeMinAndVersionNumbers:()=>l9,removePrefix:()=>TN,removeSuffix:()=>LR,removeTrailingDirectorySeparator:()=>Qy,repeatString:()=>CO,replaceElement:()=>ZB,replaceFirstStar:()=>y1,resolutionExtensionIsTSOrJson:()=>CM,resolveConfigFileProjectName:()=>mq,resolveJSModule:()=>P1e,resolveLibrary:()=>p3,resolveModuleName:()=>w1,resolveModuleNameFromCache:()=>N1e,resolvePackageNameToPackageJson:()=>CU,resolvePath:()=>ub,resolveProjectReferencePath:()=>mx,resolveTripleslashReference:()=>RH,resolveTypeReferenceDirective:()=>oae,resolvingEmptyArray:()=>yG,returnFalse:()=>ny,returnNoopFileWatcher:()=>DP,returnTrue:()=>mS,returnUndefined:()=>hS,returnsPromise:()=>qJ,rewriteModuleSpecifier:()=>ux,sameFlatMap:()=>mm,sameMap:()=>to,sameMapping:()=>TAe,scanTokenAtPosition:()=>mne,scanner:()=>vd,semanticDiagnosticsOptionDeclarations:()=>Loe,serializeCompilerOptions:()=>SU,server:()=>p8e,servicesVersion:()=>ZDe,setCommentRange:()=>Nc,setConfigFileInOptions:()=>EU,setConstantValue:()=>Aie,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>Z3,setIdentifierAutoGenerate:()=>yw,setIdentifierGeneratedImportReference:()=>Die,setIdentifierTypeArguments:()=>uv,setInternalEmitFlags:()=>_w,setLocalizedDiagnosticMessages:()=>Are,setNodeChildren:()=>ioe,setNodeFlags:()=>Qre,setObjectAllocator:()=>Ere,setOriginalNode:()=>jr,setParent:()=>ps,setParentRecursive:()=>KT,setPrivateIdentifier:()=>W1,setSnippetElement:()=>Aj,setSourceMapRange:()=>Ha,setStackTraceLimit:()=>t0e,setStartsOnNewLine:()=>g4,setSyntheticLeadingComments:()=>XT,setSyntheticTrailingComments:()=>jI,setSys:()=>c0e,setSysLog:()=>Oee,setTextRange:()=>bt,setTextRangeEnd:()=>TD,setTextRangePos:()=>kM,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>rj,setTokenSourceMapRange:()=>Tie,setTypeNode:()=>xie,setUILocale:()=>gZ,setValueDeclaration:()=>oM,shouldAllowImportingTsExtension:()=>KD,shouldPreserveConstEnums:()=>Nb,shouldRewriteModuleSpecifier:()=>Rk,shouldUseUriStyleNodeCoreModules:()=>q7,showModuleSpecifier:()=>bre,signatureHasRestParameter:()=>du,signatureToDisplayParts:()=>yJ,single:()=>QB,singleElementArray:()=>oI,singleIterator:()=>UE,singleOrMany:()=>R_,singleOrUndefined:()=>dg,skipAlias:()=>Rd,skipConstraint:()=>iJ,skipOuterExpressions:()=>Kl,skipParentheses:()=>us,skipPartiallyEmittedExpressions:()=>Vm,skipTrivia:()=>wa,skipTypeChecking:()=>bD,skipTypeCheckingIgnoringNoCheck:()=>Kre,skipTypeParentheses:()=>sM,skipWhile:()=>EZ,sliceAfter:()=>ZV,some:()=>vt,sortAndDeduplicate:()=>vN,sortAndDeduplicateDiagnostics:()=>GR,sourceFileAffectingCompilerOptions:()=>fU,sourceFileMayBeEmitted:()=>PS,sourceMapCommentRegExp:()=>QU,sourceMapCommentRegExpDontCareLineStart:()=>Lae,spacePart:()=>Vl,spanMap:()=>v2,startEndContainsRange:()=>PV,startEndOverlapsWithStartEnd:()=>v7,startOnNewLine:()=>cu,startTracing:()=>LZ,startsWith:()=>po,startsWithDirectory:()=>G9,startsWithUnderscore:()=>MJ,startsWithUseStrict:()=>uoe,stringContainsAt:()=>zce,stringToToken:()=>XE,stripQuotes:()=>Sm,supportedDeclarationExtensions:()=>t4,supportedJSExtensionsFlat:()=>vD,supportedLocaleDirectories:()=>lte,supportedTSExtensionsFlat:()=>XV,supportedTSImplementationExtensions:()=>nw,suppressLeadingAndTrailingTrivia:()=>zp,suppressLeadingTrivia:()=>yj,suppressTrailingTrivia:()=>fie,symbolEscapedNameNoDefault:()=>M7,symbolName:()=>Fl,symbolNameNoDefault:()=>cJ,symbolToDisplayParts:()=>zP,sys:()=>Hc,sysLog:()=>aF,tagNamesAreEquivalent:()=>l0,takeWhile:()=>u9,targetOptionDeclaration:()=>uU,targetToLibMap:()=>Kee,testFormatSettings:()=>Pxe,textChangeRangeIsUnchanged:()=>rte,textChangeRangeNewSpan:()=>ON,textChanges:()=>Rr,textOrKeywordPart:()=>gJ,textPart:()=>bf,textRangeContainsPositionInclusive:()=>O2,textRangeContainsTextSpan:()=>$ee,textRangeIntersectsWithTextSpan:()=>tte,textSpanContainsPosition:()=>q9,textSpanContainsTextRange:()=>J9,textSpanContainsTextSpan:()=>Yee,textSpanEnd:()=>Ml,textSpanIntersection:()=>nte,textSpanIntersectsWith:()=>W2,textSpanIntersectsWithPosition:()=>ete,textSpanIntersectsWithTextSpan:()=>Zee,textSpanIsEmpty:()=>Xee,textSpanOverlap:()=>Qee,textSpanOverlapsWith:()=>D0e,textSpansEqual:()=>cC,textToKeywordObj:()=>pF,timestamp:()=>ws,toArray:()=>rI,toBuilderFileEmit:()=>$se,toBuilderStateFileInfoForMultiEmit:()=>Yse,toEditorSettings:()=>JO,toFileNameLowerCase:()=>ab,toPath:()=>Os,toProgramEmitPending:()=>Qse,toSorted:()=>Cp,tokenIsIdentifierOrKeyword:()=>Qu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Bee,tokenToString:()=>_a,trace:()=>Io,tracing:()=>xr,tracingEnabled:()=>R2,transferSourceFileChildren:()=>ooe,transform:()=>cCe,transformClassFields:()=>$ae,transformDeclarations:()=>mH,transformECMAScriptModule:()=>fH,transformES2015:()=>use,transformES2016:()=>dse,transformES2017:()=>tse,transformES2018:()=>nse,transformES2019:()=>rse,transformES2020:()=>ise,transformES2021:()=>ose,transformESDecorators:()=>ese,transformESNext:()=>ase,transformGenerators:()=>pse,transformImpliedNodeFormatDependentModule:()=>mse,transformJsx:()=>cse,transformLegacyDecorators:()=>Zae,transformModule:()=>pH,transformNamedEvaluation:()=>Vp,transformNodes:()=>rO,transformSystemModule:()=>fse,transformTypeScript:()=>Yae,transpile:()=>vRe,transpileDeclaration:()=>gRe,transpileModule:()=>lde,transpileOptionValueCompilerOptions:()=>Woe,tryAddToSet:()=>Wf,tryAndIgnoreErrors:()=>V7,tryCast:()=>ni,tryDirectoryExists:()=>G7,tryExtractTSExtension:()=>k6,tryFileExists:()=>jP,tryGetClassExtendingExpressionWithTypeArguments:()=>IV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>xV,tryGetDirectories:()=>B7,tryGetExtensionFromPath:()=>Rg,tryGetImportFromModuleSpecifier:()=>xk,tryGetJSDocSatisfiesTypeNode:()=>c4,tryGetModuleNameFromFile:()=>Nw,tryGetModuleSpecifierFromDeclaration:()=>SI,tryGetNativePerformanceHooks:()=>DZ,tryGetPropertyAccessOrIdentifierToString:()=>Hk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>G4,tryGetSourceMappingURL:()=>kae,tryGetTextOfPropertyName:()=>YN,tryParseJson:()=>qk,tryParsePattern:()=>FI,tryParsePatterns:()=>aw,tryParseRawSourceMap:()=>wae,tryReadDirectory:()=>AJ,tryReadFile:()=>oP,tryRemoveDirectoryPrefix:()=>qV,tryRemoveExtension:()=>Hre,tryRemovePrefix:()=>d9,tryRemoveSuffix:()=>vZ,tscBuildOption:()=>L1,typeAcquisitionDeclarations:()=>K4,typeAliasNamePart:()=>Ace,typeDirectiveIsEqualTo:()=>Xte,typeKeywords:()=>rJ,typeParameterNamePart:()=>Ice,typeToDisplayParts:()=>LO,unchangedPollThresholds:()=>iF,unchangedTextChangeRange:()=>_F,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Kw,unorderedRemoveItem:()=>iI,unprefixedNodeCoreModules:()=>die,unreachableCodeIsError:()=>Nre,unsetNodeChildren:()=>qj,unusedLabelIsError:()=>Mre,unwrapInnermostStatementOfLabel:()=>GG,unwrapParenthesizedExpression:()=>lie,updateErrorForNoInputFiles:()=>i3,updateLanguageServiceSourceFile:()=>vK,updateMissingFilePathsWatch:()=>AH,updateResolutionField:()=>jD,updateSharedExtendedConfigFileWatcher:()=>L3,updateSourceFile:()=>aU,updateWatchingWildcardDirectories:()=>aO,usingSingleLineStringWriter:()=>XR,utf16EncodeAsString:()=>wN,validateLocaleAndSetLanguage:()=>Y9,version:()=>Re,versionMajorMinor:()=>de,visitArray:()=>fP,visitCommaListElements:()=>T3,visitEachChild:()=>On,visitFunctionBody:()=>vf,visitIterationBody:()=>Bu,visitLexicalEnvironment:()=>$U,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>Gl,walkUpBindingElementsAndPatterns:()=>YE,walkUpOuterExpressions:()=>poe,walkUpParenthesizedExpressions:()=>Um,walkUpParenthesizedTypes:()=>Mk,walkUpParenthesizedTypesAndGetParentAndChild:()=>Bne,whitespaceOrMapCommentRegExp:()=>ZU,writeCommentRange:()=>fD,writeFile:()=>D6,writeFileEnsuringDirectories:()=>yV,zipWith:()=>Ti}),b.exports=O(X);var de="5.9",Re="5.9.3",Ve=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Ve||{}),ie=[],ut=new Map;function Qe(e){return e!==void 0?e.length:0}function qe(e,t){if(e!==void 0)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function Ln(e,t){if(e!==void 0)for(let r=0;r=0;i--){const o=e[i];if(t(o,i))return o}}function ho(e,t,r){if(e===void 0)return-1;for(let i=r??0;i=0;i--)if(t(e[i],i))return i;return-1}function jn(e,t,r=sb){if(e!==void 0){for(let i=0;i{const[s,l]=t(o,i);r.set(s,l)}),r}function vt(e,t){if(e!==void 0)if(t!==void 0){for(let r=0;r0;return!1}function JB(e,t,r){let i;for(let o=0;oe[l])}function T9e(e,t){const r=[];for(let i=0;i0&&i(t,e[l-1]))return!1;if(l0&&C.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(const l=o;ol&&C.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Vn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function eI(e,t){return e===void 0?t:t===void 0?e:No(e)?No(t)?ao(e,t):Vn(e,t):No(t)?Vn(t,e):[e,t]}function cZ(e,t){return t<0?e.length+t:t}function Xr(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:cZ(t,r),i=i===void 0?t.length:cZ(t,i);for(let o=r;or(e[i],e[o])||Hs(i,o))}function Cp(e,t){return e.length===0?ie:e.slice().sort(t)}function*XB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function YB(e,t,r,i){for(;re?.at(t):(e,t)=>{if(e!==void 0&&(t=cZ(e,t),t>1),d=r(e[u],u);switch(i(d,t)){case-1:s=u+1;break;case 0:return u;case 1:l=u-1;break}}return~s}function bu(e,t,r,i,o){if(e&&e.length>0){const s=e.length;if(s>0){let l=i===void 0||i<0?0:i;const u=o===void 0||l+o>s-1?s-1:l+o;let d;for(arguments.length<=2?(d=e[l],l++):d=r;l<=u;)d=t(d,e[l],l),l++;return d}}return r}var MT=Object.prototype.hasOwnProperty;function Cs(e,t){return MT.call(e,t)}function T2(e,t){return MT.call(e,t)?e[t]:void 0}function Bh(e){const t=[];for(const r in e)MT.call(e,r)&&t.push(r);return t}function zTe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)Ff(t,i)}while(e=Object.getPrototypeOf(e));return t}function nI(e){const t=[];for(const r in e)MT.call(e,r)&&t.push(e[r]);return t}function dZ(e,t){const r=new Array(e);for(let i=0;i100&&r>t.length>>1){const u=t.length-r;t.copyWithin(0,r),t.length=u,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function r9(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())No(l)?yield*l:yield l}const s={has(l){const u=e(l);if(!r.has(u))return!1;const d=r.get(u);return No(d)?jn(d,l,t):t(d,l)},add(l){const u=e(l);if(r.has(u)){const d=r.get(u);if(No(d))jn(d,l,t)||(d.push(l),i++);else{const _=d;t(_,l)||(r.set(u,[_,l]),i++)}}else r.set(u,l),i++;return this},delete(l){const u=e(l);if(!r.has(u))return!1;const d=r.get(u);if(No(d)){for(let _=0;_o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function No(e){return Array.isArray(e)}function rI(e){return No(e)?e:[e]}function Bo(e){return typeof e=="string"}function ob(e){return typeof e=="number"}function ni(e,t){return e!==void 0&&t(e)?e:void 0}function ma(e,t){return e!==void 0&&t(e)?e:C.fail(`Invalid cast. The supplied value ${e} did not pass the test '${C.getFunctionName(t)}'.`)}function gs(e){}function ny(){return!1}function mS(){return!0}function hS(){}function Us(e){return e}function x9e(e){return e.toLowerCase()}var BTe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function ab(e){return BTe.test(e)?e.replace(BTe,x9e):e}function ha(){throw new Error("Not implemented")}function Lu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Gh(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}}var mZ=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(mZ||{});function sb(e,t){return e===t}function lb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function _S(e,t){return sb(e,t)}function GTe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function A2(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function hZ(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Bd(e,t){return GTe(e,t)}function PR(e){return e?A2:Bd}var R9e=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;const s=o(r,i);return s<0?-1:s>0?1:0}function t(r){const i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(o,s)=>e(o,s,i)}})(),a9,s9;function _Z(){return s9}function gZ(e){s9!==e&&(s9=e,a9=void 0)}function I2(e,t){return a9??(a9=R9e(s9)),a9(e,t)}function yZ(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function PT(e,t){return Hs(e?1:0,t?1:0)}function gS(e,t,r){const i=Math.max(2,Math.floor(e.length*.34));let o=Math.floor(e.length*.4)+1,s;for(const l of t){const u=r(l);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const d=D9e(e,u,o-.1);if(d===void 0)continue;C.assert(dr?u-r:1),h=Math.floor(t.length>r+u?r+u:t.length);o[0]=u;let y=u;for(let A=1;A<_;A++)o[A]=s;for(let A=_;A<=h;A++){const R=e[u-1].toLowerCase()===t[A-1].toLowerCase()?i[A-1]+.1:i[A-1]+2,N=d===t.charCodeAt(A-1)?i[A-1]:Math.min(i[A]+1,o[A-1]+1,R);o[A]=N,y=Math.min(y,N)}for(let A=h+1;A<=t.length;A++)o[A]=s;if(y>r)return;const E=i;i=o,o=E}const l=i[t.length];return l>r?void 0:l}function nl(e,t,r){const i=e.length-t.length;return i>=0&&(r?lb(e.slice(i),t):e.indexOf(t,i)===i)}function LR(e,t){return nl(e,t)?e.slice(0,e.length-t.length):e}function vZ(e,t){return nl(e,t)?e.slice(0,e.length-t.length):void 0}function l9(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 bN(e,t){for(let r=0;rr===t)}function C9e(e,t){for(let r=0;ro&&YW(u,r)&&(o=u.prefix.length,i=l)}return i}function po(e,t,r){return r?lb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function TN(e,t){return po(e,t)?e.substr(t.length):e}function d9(e,t,r=Us){return po(r(e),r(t))?e.substring(t.length):void 0}function YW({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&po(r,e)&&nl(r,t)}function $W(e,t){return r=>e(r)&&t(r)}function Np(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function QW(e){return(...t)=>!e(...t)}function jTe(e){}function oI(e){return e===void 0?void 0:[e]}function ZW(e,t,r,i,o,s){s??(s=gs);let l=0,u=0;const d=e.length,_=t.length;let h=!1;for(;l(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))(AZ||{}),C;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r($e){return e.currentLogLevel<=$e}e.shouldLog=r;function i($e,At){e.loggingHost&&r($e)&&e.loggingHost.log($e,At)}function o($e){i(3,$e)}e.log=o,($e=>{function At(ai){i(1,ai)}$e.error=At;function hn(ai){i(2,ai)}$e.warn=hn;function dr(ai){i(3,ai)}$e.log=dr;function ri(ai){i(4,ai)}$e.trace=ri})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u($e){const At=t;if(t=$e,$e>At)for(const hn of Bh(s)){const dr=s[hn];dr!==void 0&&e[hn]!==dr.assertion&&$e>=dr.level&&(e[hn]=dr,s[hn]=void 0)}}e.setAssertionLevel=u;function d($e){return t>=$e}e.shouldAssert=d;function _($e,At){return d($e)?!0:(s[At]={level:$e,assertion:e[At]},e[At]=gs,!1)}function h($e,At){debugger;const hn=new Error($e?`Debug Failure. ${$e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(hn,At||h),hn}e.fail=h;function y($e,At,hn){return h(`${At||"Unexpected node."}\r Node ${Ne($e.kind)} was unexpected.`,hn||y)}e.failBadSyntaxKind=y;function E($e,At,hn,dr){$e||(At=At?`False expression: ${At}`:"False expression.",hn&&(At+=`\r Verbose Debug Information: `+(typeof hn=="string"?hn:hn())),h(At,dr||E))}e.assert=E;function A($e,At,hn,dr,ri){if($e!==At){const ai=hn?dr?`${hn} ${dr}`:hn:"";h(`Expected ${$e} === ${At}. ${ai}`,ri||A)}}e.assertEqual=A;function R($e,At,hn,dr){$e>=At&&h(`Expected ${$e} < ${At}. ${hn||""}`,dr||R)}e.assertLessThan=R;function N($e,At,hn){$e>At&&h(`Expected ${$e} <= ${At}`,hn||N)}e.assertLessThanOrEqual=N;function P($e,At,hn){$e= ${At}`,hn||P)}e.assertGreaterThanOrEqual=P;function k($e,At,hn){$e==null&&h(At,hn||k)}e.assertIsDefined=k;function F($e,At,hn){return k($e,At,hn||F),$e}e.checkDefined=F;function W($e,At,hn){for(const dr of $e)k(dr,At,hn||W)}e.assertEachIsDefined=W;function G($e,At,hn){return W($e,At,hn||G),$e}e.checkEachDefined=G;function j($e,At="Illegal value:",hn){const dr=typeof $e=="object"&&Cs($e,"kind")&&Cs($e,"pos")?"SyntaxKind: "+Ne($e.kind):JSON.stringify($e);return h(`${At} ${dr}`,hn||j)}e.assertNever=j;function J($e,At,hn,dr){_(1,"assertEachNode")&&E(At===void 0||Hn($e,At),hn||"Unexpected node.",()=>`Node array did not pass test '${ue(At)}'.`,dr||J)}e.assertEachNode=J;function Z($e,At,hn,dr){_(1,"assertNode")&&E($e!==void 0&&(At===void 0||At($e)),hn||"Unexpected node.",()=>`Node ${Ne($e?.kind)} did not pass test '${ue(At)}'.`,dr||Z)}e.assertNode=Z;function q($e,At,hn,dr){_(1,"assertNotNode")&&E($e===void 0||At===void 0||!At($e),hn||"Unexpected node.",()=>`Node ${Ne($e.kind)} should not have passed test '${ue(At)}'.`,dr||q)}e.assertNotNode=q;function ve($e,At,hn,dr){_(1,"assertOptionalNode")&&E(At===void 0||$e===void 0||At($e),hn||"Unexpected node.",()=>`Node ${Ne($e?.kind)} did not pass test '${ue(At)}'.`,dr||ve)}e.assertOptionalNode=ve;function oe($e,At,hn,dr){_(1,"assertOptionalToken")&&E(At===void 0||$e===void 0||$e.kind===At,hn||"Unexpected node.",()=>`Node ${Ne($e?.kind)} was not a '${Ne(At)}' token.`,dr||oe)}e.assertOptionalToken=oe;function K($e,At,hn){_(1,"assertMissingNode")&&E($e===void 0,At||"Unexpected node.",()=>`Node ${Ne($e.kind)} was unexpected'.`,hn||K)}e.assertMissingNode=K;function fe($e){}e.type=fe;function ue($e){if(typeof $e!="function")return"";if(Cs($e,"name"))return $e.name;{const At=Function.prototype.toString.call($e),hn=/^function\s+([\w$]+)\s*\(/.exec(At);return hn?hn[1]:""}}e.getFunctionName=ue;function me($e){return`{ name: ${Vi($e.escapedName)}; flags: ${ce($e.flags)}; declarations: ${Yt($e.declarations,At=>Ne(At.kind))} }`}e.formatSymbol=me;function be($e=0,At,hn){const dr=Y(At);if($e===0)return dr.length>0&&dr[0][0]===0?dr[0][1]:"0";if(hn){const ri=[];let ai=$e;for(const[qi,Qo]of dr){if(qi>$e)break;qi!==0&&qi&$e&&(ri.push(Qo),ai&=~qi)}if(ai===0)return ri.join("|")}else for(const[ri,ai]of dr)if(ri===$e)return ai;return $e.toString()}e.formatEnum=be;const De=new Map;function Y($e){const At=De.get($e);if(At)return At;const hn=[];for(const ri in $e){const ai=$e[ri];typeof ai=="number"&&hn.push([ai,ri])}const dr=Cp(hn,(ri,ai)=>Hs(ri[0],ai[0]));return De.set($e,dr),dr}function Ne($e){return be($e,_9,!1)}e.formatSyntaxKind=Ne;function Xe($e){return be($e,N9,!1)}e.formatSnippetKind=Xe;function Ee($e){return be($e,D9,!1)}e.formatScriptKind=Ee;function re($e){return be($e,g9,!0)}e.formatNodeFlags=re;function Te($e){return be($e,A9,!0)}e.formatNodeCheckFlags=Te;function Me($e){return be($e,y9,!0)}e.formatModifierFlags=Me;function Be($e){return be($e,C9,!0)}e.formatTransformFlags=Be;function lt($e){return be($e,M9,!0)}e.formatEmitFlags=lt;function ce($e){return be($e,E9,!0)}e.formatSymbolFlags=ce;function Ce($e){return be($e,I9,!0)}e.formatTypeFlags=Ce;function ye($e){return be($e,R9,!0)}e.formatSignatureFlags=ye;function Ue($e){return be($e,x9,!0)}e.formatObjectFlags=Ue;function Ge($e){return be($e,tF,!0)}e.formatFlowFlags=Ge;function We($e){return be($e,v9,!0)}e.formatRelationComparisonResult=We;function at($e){return be($e,qU,!0)}e.formatCheckMode=at;function Wt($e){return be($e,JU,!0)}e.formatSignatureCheckMode=Wt;function cn($e){return be($e,HU,!0)}e.formatTypeFacts=cn;let gn=!1,Kn;function gt($e){"__debugFlowFlags"in $e||Object.defineProperties($e,{__tsDebuggerDisplay:{value(){const At=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",hn=this.flags&-2048;return`${At}${hn?` (${Ge(hn)})`:""}`}},__debugFlowFlags:{get(){return be(this.flags,tF,!0)}},__debugToString:{value(){return Mi(this)}}})}function en($e){return gn&&(typeof Object.setPrototypeOf=="function"?(Kn||(Kn=Object.create(Object.prototype),gt(Kn)),Object.setPrototypeOf($e,Kn)):gt($e)),$e}e.attachFlowNodeDebugInfo=en;let or;function Ni($e){"__tsDebuggerDisplay"in $e||Object.defineProperties($e,{__tsDebuggerDisplay:{value(At){return At=String(At).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${At}`}}})}function so($e){gn&&(typeof Object.setPrototypeOf=="function"?(or||(or=Object.create(Array.prototype),Ni(or)),Object.setPrototypeOf($e,or)):Ni($e))}e.attachNodeArrayDebugInfo=so;function zt(){if(gn)return;const $e=new WeakMap,At=new WeakMap;Object.defineProperties(Dd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const dr=this.flags&33554432?"TransientSymbol":"Symbol",ri=this.flags&-33554433;return`${dr} '${Fl(this)}'${ri?` (${ce(ri)})`:""}`}},__debugFlags:{get(){return ce(this.flags)}}}),Object.defineProperties(Dd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const dr=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`: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&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",ri=this.flags&524288?this.objectFlags&-1344:0;return`${dr}${this.symbol?` '${Fl(this.symbol)}'`:""}${ri?` (${Ue(ri)})`:""}`}},__debugFlags:{get(){return Ce(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ue(this.objectFlags):""}},__debugTypeToString:{value(){let dr=$e.get(this);return dr===void 0&&(dr=this.checker.typeToString(this),$e.set(this,dr)),dr}}}),Object.defineProperties(Dd.getSignatureConstructor().prototype,{__debugFlags:{get(){return ye(this.flags)}},__debugSignatureToString:{value(){var dr;return(dr=this.checker)==null?void 0:dr.signatureToString(this)}}});const hn=[Dd.getNodeConstructor(),Dd.getIdentifierConstructor(),Dd.getTokenConstructor(),Dd.getSourceFileConstructor()];for(const dr of hn)Cs(dr.prototype,"__debugKind")||Object.defineProperties(dr.prototype,{__tsDebuggerDisplay:{value(){return`${ml(this)?"GeneratedIdentifier":Je(this)?`Identifier '${Kr(this)}'`:Qi(this)?`PrivateIdentifier '${Kr(this)}'`:Oa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:op(this)?`NumericLiteral ${this.text}`:AD(this)?`BigIntLiteral ${this.text}n`:cl(this)?"TypeParameterDeclaration":Zi(this)?"ParameterDeclaration":kl(this)?"ConstructorDeclaration":Xf(this)?"GetAccessorDeclaration":bp(this)?"SetAccessorDeclaration":XI(this)?"CallSignatureDeclaration":JM(this)?"ConstructSignatureDeclaration":Ob(this)?"IndexSignatureDeclaration":YI(this)?"TypePredicateNode":Bp(this)?"TypeReferenceNode":W_(this)?"FunctionTypeNode":ID(this)?"ConstructorTypeNode":VS(this)?"TypeQueryNode":Fu(this)?"TypeLiteralNode":Tw(this)?"ArrayTypeNode":$I(this)?"TupleTypeNode":I4(this)?"OptionalTypeNode":x4(this)?"RestTypeNode":pv(this)?"UnionTypeNode":QI(this)?"IntersectionTypeNode":jS(this)?"ConditionalTypeNode":S1(this)?"InferTypeNode":E1(this)?"ParenthesizedTypeNode":KM(this)?"ThisTypeNode":YT(this)?"TypeOperatorNode":US(this)?"IndexedAccessTypeNode":A1(this)?"MappedTypeNode":fv(this)?"LiteralTypeNode":xD(this)?"NamedTupleMember":r_(this)?"ImportTypeNode":Ne(this.kind)}${this.flags?` (${re(this.flags)})`:""}`}},__debugKind:{get(){return Ne(this.kind)}},__debugNodeFlags:{get(){return re(this.flags)}},__debugModifierFlags:{get(){return Me(are(this))}},__debugTransformFlags:{get(){return Be(this.transformFlags)}},__debugIsParseTreeNode:{get(){return WN(this)}},__debugEmitFlags:{get(){return lt(Za(this))}},__debugGetText:{value(ri){if(Fs(this))return"";let ai=At.get(this);if(ai===void 0){const qi=jo(this),Qo=qi&&zn(qi);ai=Qo?ES(Qo,qi,ri):"",At.set(this,ai)}return ai}}});gn=!0}e.enableDebugInfo=zt;function Zr($e){const At=$e&7;let hn=At===0?"in out":At===3?"[bivariant]":At===2?"in":At===1?"out":At===4?"[independent]":"";return $e&8?hn+=" (unmeasurable)":$e&16&&(hn+=" (unreliable)"),hn}e.formatVariance=Zr;class xi{__debugToString(){var At;switch(this.kind){case 3:return((At=this.debugInfo)==null?void 0:At.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Ti(this.sources,this.targets||Yt(this.sources,()=>"any"),(hn,dr)=>`${hn.__debugTypeToString()} -> ${typeof dr=="string"?dr:dr.__debugTypeToString()}`).join(", ");case 2:return Ti(this.sources,this.targets,(hn,dr)=>`${hn.__debugTypeToString()} -> ${dr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return j(this)}}}e.DebugTypeMapper=xi;function Pi($e){return e.isDebugging?Object.setPrototypeOf($e,xi.prototype):$e}e.attachDebugPrototypeIfDebug=Pi;function Pr($e){return console.log(Mi($e))}e.printControlFlowGraph=Pr;function Mi($e){let At=-1;function hn(Ie){return Ie.id||(Ie.id=At,At--),Ie.id}let dr;(Ie=>{Ie.lr="─",Ie.ud="│",Ie.dr="╭",Ie.dl="╮",Ie.ul="╯",Ie.ur="╰",Ie.udr="├",Ie.udl="┤",Ie.dlr="┬",Ie.ulr="┴",Ie.udlr="╫"})(dr||(dr={}));let ri;(Ie=>{Ie[Ie.None=0]="None",Ie[Ie.Up=1]="Up",Ie[Ie.Down=2]="Down",Ie[Ie.Left=4]="Left",Ie[Ie.Right=8]="Right",Ie[Ie.UpDown=3]="UpDown",Ie[Ie.LeftRight=12]="LeftRight",Ie[Ie.UpLeft=5]="UpLeft",Ie[Ie.UpRight=9]="UpRight",Ie[Ie.DownLeft=6]="DownLeft",Ie[Ie.DownRight=10]="DownRight",Ie[Ie.UpDownLeft=7]="UpDownLeft",Ie[Ie.UpDownRight=11]="UpDownRight",Ie[Ie.UpLeftRight=13]="UpLeftRight",Ie[Ie.DownLeftRight=14]="DownLeftRight",Ie[Ie.UpDownLeftRight=15]="UpDownLeftRight",Ie[Ie.NoChildren=16]="NoChildren"})(ri||(ri={}));const ai=2032,qi=882,Qo=Object.create(null),Ia=[],Pn=dt($e,new Set);for(const Ie of Ia)Ie.text=Tr(Ie.flowNode,Ie.circular),He(Ie);const Uo=Rt(Pn),ot=It(Uo);return Ot(Pn,0),Oe();function Ft(Ie){return!!(Ie.flags&128)}function le(Ie){return!!(Ie.flags&12)&&!!Ie.antecedent}function _t(Ie){return!!(Ie.flags&ai)}function ne(Ie){return!!(Ie.flags&qi)}function Fe(Ie){const te=[];for(const xt of Ie.edges)xt.source===Ie&&te.push(xt.target);return te}function it(Ie){const te=[];for(const xt of Ie.edges)xt.target===Ie&&te.push(xt.source);return te}function dt(Ie,te){const xt=hn(Ie);let Kt=Qo[xt];if(Kt&&te.has(Ie))return Kt.circular=!0,Kt={id:-1,flowNode:Ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Ia.push(Kt),Kt;if(te.add(Ie),!Kt)if(Qo[xt]=Kt={id:xt,flowNode:Ie,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Ia.push(Kt),le(Ie))for(const Le of Ie.antecedent)Lt(Kt,Le,te);else _t(Ie)&&Lt(Kt,Ie.antecedent,te);return te.delete(Ie),Kt}function Lt(Ie,te,xt){const Kt=dt(te,xt),Le={source:Ie,target:Kt};Ie.edges.push(Le),Kt.edges.push(Le)}function He(Ie){if(Ie.level!==-1)return Ie.level;let te=0;for(const xt of it(Ie))te=Math.max(te,He(xt)+1);return Ie.level=te}function Rt(Ie){let te=0;for(const xt of Fe(Ie))te=Math.max(te,Rt(xt));return te+1}function It(Ie){const te=ge(Array(Ie),0);for(const xt of Ia)te[xt.level]=Math.max(te[xt.level],xt.text.length);return te}function Ot(Ie,te){if(Ie.lane===-1){Ie.lane=te,Ie.endLane=te;const xt=Fe(Ie);for(let Kt=0;Kt0&&te++;const Le=xt[Kt];Ot(Le,te),Le.endLane>Ie.endLane&&(te=Le.endLane)}Ie.endLane=te}}function nt(Ie){if(Ie&2)return"Start";if(Ie&4)return"Branch";if(Ie&8)return"Loop";if(Ie&16)return"Assignment";if(Ie&32)return"True";if(Ie&64)return"False";if(Ie&128)return"SwitchClause";if(Ie&256)return"ArrayMutation";if(Ie&512)return"Call";if(Ie&1024)return"ReduceLabel";if(Ie&1)return"Unreachable";throw new Error}function Jt(Ie){const te=zn(Ie);return ES(te,Ie,!1)}function Tr(Ie,te){let xt=nt(Ie.flags);if(te&&(xt=`${xt}#${hn(Ie)}`),Ft(Ie)){const Kt=[],{switchStatement:Le,clauseStart:yt,clauseEnd:Bt}=Ie.node;for(let gr=yt;grBt.lane)+1,xt=ge(Array(te),""),Kt=ot.map(()=>Array(te)),Le=ot.map(()=>ge(Array(te),0));for(const Bt of Ia){Kt[Bt.level][Bt.lane]=Bt;const gr=Fe(Bt);for(let Jn=0;Jn0&&(Mt|=1),Jn0&&(Mt|=1),Jn0?Le[Bt-1][gr]:0,Jn=gr>0?Le[Bt][gr-1]:0;let mt=Le[Bt][gr];mt||(tr&8&&(mt|=12),Jn&2&&(mt|=3),Le[Bt][gr]=mt)}for(let Bt=0;Bt0?Ie.repeat(te):"";let xt="";for(;xt.length=0,"Invalid argument: major"),C.assert(r>=0,"Invalid argument: minor"),C.assert(i>=0,"Invalid argument: patch");const l=o?No(o)?o:o.split("."):ie,u=s?No(s)?s:s.split("."):ie;C.assert(Hn(l,d=>P9e.test(d)),"Invalid argument: prerelease"),C.assert(Hn(u,d=>k9e.test(d)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=u}static tryParse(t){const r=qTe(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new CW(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:Hs(this.major,t.major)||Hs(this.minor,t.minor)||Hs(this.patch,t.patch)||w9e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new CW(this.major+1,0,0);case"minor":return new CW(this.major,this.minor+1,0);case"patch":return new CW(this.major,this.minor,this.patch+1);default:return C.assertNever(t)}}with(t){const{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new CW(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return vt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),vt(this.build)&&(t+=`+${this.build.join(".")}`),t}};IZ.zero=new IZ(0,0,0,["0"]);var sh=IZ;function qTe(e){const t=N9e.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!M9e.test(s))&&!(l&&!L9e.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function w9e(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=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function JTe(e){const t=[];for(let r of e.trim().split(O9e)){if(!r)continue;const i=[];r=r.trim();const o=z9e.exec(r);if(o){if(!G9e(o[1],o[2],i))return}else for(const s of r.split(W9e)){const l=B9e.exec(s.trim());if(!l||!V9e(l[1],l[2],i))return}t.push(i)}return t}function xZ(e){const t=F9e.exec(e);if(!t)return;const[,r,i="*",o="*",s,l]=t;return{version:new sh(_m(r)?0:parseInt(r,10),_m(r)||_m(i)?0:parseInt(i,10),_m(r)||_m(i)||_m(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function G9e(e,t,r){const i=xZ(e);if(!i)return!1;const o=xZ(t);return o?(_m(i.major)||r.push(D_(">=",i.version)),_m(o.major)||r.push(_m(o.minor)?D_("<",o.version.increment("major")):_m(o.patch)?D_("<",o.version.increment("minor")):D_("<=",o.version)),!0):!1}function V9e(e,t,r){const i=xZ(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(_m(s))(e==="<"||e===">")&&r.push(D_("<",sh.zero));else switch(e){case"~":r.push(D_(">=",o)),r.push(D_("<",o.increment(_m(l)?"major":"minor")));break;case"^":r.push(D_(">=",o)),r.push(D_("<",o.increment(o.major>0||_m(l)?"major":o.minor>0||_m(u)?"minor":"patch")));break;case"<":case">=":r.push(_m(l)||_m(u)?D_(e,o.with({prerelease:"0"})):D_(e,o));break;case"<=":case">":r.push(_m(l)?D_(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):_m(u)?D_(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):D_(e,o));break;case"=":case void 0:_m(l)||_m(u)?(r.push(D_(">=",o.with({prerelease:"0"}))),r.push(D_("<",o.increment(_m(l)?"major":"minor").with({prerelease:"0"})))):r.push(D_("=",o));break;default:return!1}return!0}function _m(e){return e==="*"||e==="x"||e==="X"}function D_(e,t){return{operator:e,operand:t}}function j9e(e,t){if(t.length===0)return!0;for(const r of t)if(U9e(e,r))return!0;return!1}function U9e(e,t){for(const r of t)if(!H9e(e,r.operator,r.operand))return!1;return!0}function H9e(e,t,r){const i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return C.assertNever(t)}}function q9e(e){return Yt(e,J9e).join(" || ")||"*"}function J9e(e){return Yt(e,K9e).join(" ")}function K9e(e){return`${e.operator}${e.operand}`}function X9e(){if(p9(),typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function Y9e(){const e=X9e();if(!e)return;const{shouldWriteNativeEvents:t,performance:r}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof r.timeOrigin=="number"&&typeof r.now=="function"&&(i.performanceTime=r),i.performanceTime&&typeof r.mark=="function"&&typeof r.measure=="function"&&typeof r.clearMarks=="function"&&typeof r.clearMeasures=="function"&&(i.performance=r),i}var RZ=Y9e(),KTe=RZ?.performanceTime;function DZ(){return RZ}var ws=KTe?()=>KTe.now():Date.now,CZ={};x(CZ,{clearMarks:()=>e0e,clearMeasures:()=>ZTe,createTimer:()=>f9,createTimerIf:()=>XTe,disable:()=>PZ,enable:()=>h9,forEachMark:()=>QTe,forEachMeasure:()=>m9,getCount:()=>$Te,getDuration:()=>xN,isEnabled:()=>MZ,mark:()=>Nl,measure:()=>zf,nullTimer:()=>NZ});var SN,qE;function XTe(e,t,r,i){return e?f9(t,r,i):NZ}function f9(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&Nl(t)}function s(){--i===0?(Nl(r),zf(e,t,r)):i<0&&C.fail("enter/exit count does not match.")}}var NZ={enter:gs,exit:gs},EN=!1,YTe=ws(),AN=new Map,x2=new Map,IN=new Map;function Nl(e){if(EN){const t=x2.get(e)??0;x2.set(e,t+1),AN.set(e,ws()),qE?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function zf(e,t,r){if(EN){const i=(r!==void 0?AN.get(r):void 0)??ws(),o=(t!==void 0?AN.get(t):void 0)??YTe,s=IN.get(e)||0;IN.set(e,s+(i-o)),qE?.measure(e,t,r)}}function $Te(e){return x2.get(e)||0}function xN(e){return IN.get(e)||0}function m9(e){IN.forEach((t,r)=>e(r,t))}function QTe(e){AN.forEach((t,r)=>e(r))}function ZTe(e){e!==void 0?IN.delete(e):IN.clear(),qE?.clearMeasures(e)}function e0e(e){e!==void 0?(x2.delete(e),AN.delete(e)):(x2.clear(),AN.clear()),qE?.clearMarks(e)}function MZ(){return EN}function h9(e=Hc){var t;return EN||(EN=!0,SN||(SN=DZ()),SN?.performance&&(YTe=SN.performance.timeOrigin,(SN.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(qE=SN.performance))),!0}function PZ(){EN&&(AN.clear(),x2.clear(),IN.clear(),qE=void 0,EN=!1)}var xr,R2;(e=>{let t,r=0,i=0,o;const s=[];let l;const u=[];function d(J,Z,q){if(C.assert(!xr,"Tracing already started"),t===void 0)try{t=OTe("fs")}catch(ue){throw new Error(`tracing requires having fs (original error: ${ue.message||ue})`)}o=J,s.length=0,l===void 0&&(l=Qr(Z,"legend.json")),t.existsSync(Z)||t.mkdirSync(Z,{recursive:!0});const ve=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",oe=Qr(Z,`trace${ve}.json`),K=Qr(Z,`types${ve}.json`);u.push({configFilePath:q,tracePath:oe,typesPath:K}),i=t.openSync(oe,"w"),xr=e;const fe={cat:"__metadata",ph:"M",ts:1e3*ws(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...fe},{name:"thread_name",args:{name:"Main"},...fe},{name:"TracingStartedInBrowser",...fe,cat:"disabled-by-default-devtools.timeline"}].map(ue=>JSON.stringify(ue)).join(`, `))}e.startTracing=d;function _(){C.assert(xr,"Tracing is not in progress"),C.assert(!!s.length==(o!=="server")),t.writeSync(i,` ] `),t.closeSync(i),xr=void 0,s.length?G(s):u[u.length-1].typesPath=void 0}e.stopTracing=_;function h(J){o!=="server"&&s.push(J)}e.recordType=h,(J=>{J.Parse="parse",J.Program="program",J.Bind="bind",J.Check="check",J.CheckTypes="checkTypes",J.Emit="emit",J.Session="session"})(e.Phase||(e.Phase={}));function y(J,Z,q){F("I",J,Z,q,'"s":"g"')}e.instant=y;const E=[];function A(J,Z,q,ve=!1){ve&&F("B",J,Z,q),E.push({phase:J,name:Z,args:q,time:1e3*ws(),separateBeginAndEnd:ve})}e.push=A;function R(J){C.assert(E.length>0),k(E.length-1,1e3*ws(),J),E.length--}e.pop=R;function N(){const J=1e3*ws();for(let Z=E.length-1;Z>=0;Z--)k(Z,J);E.length=0}e.popAll=N;const P=1e3*10;function k(J,Z,q){const{phase:ve,name:oe,args:K,time:fe,separateBeginAndEnd:ue}=E[J];ue?(C.assert(!q,"`results` are not supported for events with `separateBeginAndEnd`"),F("E",ve,oe,K,void 0,Z)):P-fe%P<=Z-fe&&F("X",ve,oe,{...K,results:q},`"dur":${Z-fe}`,fe)}function F(J,Z,q,ve,oe,K=1e3*ws()){o==="server"&&Z==="checkTypes"||(Nl("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${J}","cat":"${Z}","ts":${K},"name":"${q}"`),oe&&t.writeSync(i,`,${oe}`),ve&&t.writeSync(i,`,"args":${JSON.stringify(ve)}`),t.writeSync(i,"}"),Nl("endTracing"),zf("Tracing","beginTracing","endTracing"))}function W(J){const Z=zn(J);return Z?{path:Z.path,start:q(ca(Z,J.pos)),end:q(ca(Z,J.end))}:void 0;function q(ve){return{line:ve.line+1,character:ve.character+1}}}function G(J){var Z,q,ve,oe,K,fe,ue,me,be,De,Y,Ne,Xe,Ee,re,Te,Me,Be,lt;Nl("beginDumpTypes");const ce=u[u.length-1].typesPath,Ce=t.openSync(ce,"w"),ye=new Map;t.writeSync(Ce,"[");const Ue=J.length;for(let Ge=0;GePi.id),referenceLocation:W(xi.node)}}let gt={};if(We.flags&16777216){const xi=We;gt={conditionalCheckType:(fe=xi.checkType)==null?void 0:fe.id,conditionalExtendsType:(ue=xi.extendsType)==null?void 0:ue.id,conditionalTrueType:((me=xi.resolvedTrueType)==null?void 0:me.id)??-1,conditionalFalseType:((be=xi.resolvedFalseType)==null?void 0:be.id)??-1}}let en={};if(We.flags&33554432){const xi=We;en={substitutionBaseType:(De=xi.baseType)==null?void 0:De.id,constraintType:(Y=xi.constraint)==null?void 0:Y.id}}let or={};if(at&1024){const xi=We;or={reverseMappedSourceType:(Ne=xi.source)==null?void 0:Ne.id,reverseMappedMappedType:(Xe=xi.mappedType)==null?void 0:Xe.id,reverseMappedConstraintType:(Ee=xi.constraintType)==null?void 0:Ee.id}}let Ni={};if(at&256){const xi=We;Ni={evolvingArrayElementType:xi.elementType.id,evolvingArrayFinalType:(re=xi.finalArrayType)==null?void 0:re.id}}let so;const zt=We.checker.getRecursionIdentity(We);zt&&(so=ye.get(zt),so||(so=ye.size,ye.set(zt,so)));const Zr={id:We.id,intrinsicName:We.intrinsicName,symbolName:Wt?.escapedName&&Vi(Wt.escapedName),recursionId:so,isTuple:at&8?!0:void 0,unionTypes:We.flags&1048576?(Te=We.types)==null?void 0:Te.map(xi=>xi.id):void 0,intersectionTypes:We.flags&2097152?We.types.map(xi=>xi.id):void 0,aliasTypeArguments:(Me=We.aliasTypeArguments)==null?void 0:Me.map(xi=>xi.id),keyofType:We.flags&4194304?(Be=We.type)==null?void 0:Be.id:void 0,...gn,...Kn,...gt,...en,...or,...Ni,destructuringPattern:W(We.pattern),firstDeclaration:W((lt=Wt?.declarations)==null?void 0:lt[0]),flags:C.formatTypeFlags(We.flags).split("|"),display:cn};t.writeSync(Ce,JSON.stringify(Zr)),Ge(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(_9||{}),g9=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(g9||{}),y9=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(y9||{}),wZ=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(wZ||{}),v9=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(v9||{}),OZ=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(OZ||{}),b9=(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))(b9||{}),WZ=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(WZ||{}),FZ=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.PrecedingJSDocLeadingAsterisks=32768]="PrecedingJSDocLeadingAsterisks",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(FZ||{}),tF=(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))(tF||{}),zZ=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(zZ||{}),RN=class{},T9=(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))(T9||{}),BZ=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(BZ||{}),GZ=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(GZ||{}),S9=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(S9||{}),VZ=(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))(VZ||{}),jZ=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(jZ||{}),UZ=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(UZ||{}),HZ=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(HZ||{}),qZ=(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))(qZ||{}),JZ=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(JZ||{}),KZ=(e=>(e[e.None=0]="None",e[e.WriteComputedProps=1]="WriteComputedProps",e[e.NoSyntacticPrinter=2]="NoSyntacticPrinter",e[e.DoNotIncludeSymbolChain=4]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=8]="AllowUnresolvedNames",e))(KZ||{}),XZ=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(XZ||{}),YZ=(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))(YZ||{}),$Z=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))($Z||{}),QZ=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(QZ||{}),ZZ=(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))(ZZ||{}),E9=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(E9||{}),eee=(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))(eee||{}),tee=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(tee||{}),A9=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(A9||{}),I9=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(I9||{}),x9=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(x9||{}),nee=(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))(nee||{}),ree=(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))(ree||{}),iee=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.AllowMissing=16]="AllowMissing",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(iee||{}),oee=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(oee||{}),aee=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(aee||{}),see=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(see||{}),R9=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(R9||{}),lee=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(lee||{}),cee=(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))(cee||{}),dee=(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))(dee||{}),uee=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(uee||{}),pee=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(pee||{}),fee=(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))(fee||{}),nF=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(nF||{});function JE(e,t=!0){const r=nF[e.category];return t?r.toLowerCase():r}var kR=(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))(kR||{}),mee=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(mee||{}),hee=(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))(hee||{}),_ee=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(_ee||{}),gee=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(gee||{}),wR=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.Node18=101]="Node18",e[e.Node20=102]="Node20",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(wR||{}),yee=(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))(yee||{}),vee=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(vee||{}),bee=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(bee||{}),D9=(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))(D9||{}),Tee=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Tee||{}),See=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(See||{}),Eee=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Eee||{}),Aee=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Aee||{}),Iee=(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))(Iee||{}),C9=(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))(C9||{}),N9=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(N9||{}),M9=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(M9||{}),xee=(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))(xee||{}),td={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Ree=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.RewriteRelativeImportExtension=33554432]="RewriteRelativeImportExtension",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(Ree||{}),Dee=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(Dee||{}),Cee=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.ExpressionsWithTypeArguments=16]="ExpressionsWithTypeArguments",e[e.Satisfies=32]="Satisfies",e[e.Assertions=38]="Assertions",e[e.All=63]="All",e[e.ExcludeJSDocTypeAssertion=-2147483648]="ExcludeJSDocTypeAssertion",e))(Cee||{}),Nee=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(Nee||{}),Mee=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(Mee||{}),Pee=(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))(Pee||{}),rF={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Lee=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Lee||{});function D2(e){let t=5381;for(let r=0;r(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(kee||{}),P9=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(P9||{}),Mp=new Date(0);function aI(e,t){return e.getModifiedTime(t)||Mp}function wee(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var L9={Low:32,Medium:64,High:256},k9=wee(L9),iF=wee(L9);function $9e(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",P9);k9=s("TSC_WATCH_POLLINGCHUNKSIZE",L9)||k9,iF=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",L9)||iF;function r(l,u){return e.getEnvironmentVariable(`${l}_${u.toUpperCase()}`)}function i(l){let u;return d("Low"),d("Medium"),d("High"),u;function d(_){const h=r(l,_);h&&((u||(u={}))[_]=Number(h))}}function o(l,u){const d=i(l);if(d)return _("Low"),_("Medium"),_("High"),!0;return!1;function _(h){u[h]=d[h]||u[h]}}function s(l,u){const d=i(l);return(t||d)&&wee(d?{...u,...d}:u)}}function n0e(e,t,r,i,o){let s=r;for(let u=t.length;i&&u;l(),u--){const d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;const _=tGe(d,aI(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o?.(d,r,_),t[r]&&(s{W.isClosed=!0,iI(t,W)}}}function u(P){const k=[];return k.pollingInterval=P,k.pollIndex=0,k.pollScheduled=!1,k}function d(P,k){k.pollIndex=h(k,k.pollingInterval,k.pollIndex,k9[k.pollingInterval]),k.length?N(k.pollingInterval):(C.assert(k.pollIndex===0),k.pollScheduled=!1)}function _(P,k){h(r,250,0,r.length),d(P,k),!k.pollScheduled&&r.length&&N(250)}function h(P,k,F,W){return n0e(e,P,F,W,G);function G(j,J,Z){Z?(j.unchangedPolls=0,P!==r&&(P[J]=void 0,A(j))):j.unchangedPolls!==iF[k]?j.unchangedPolls++:P===r?(j.unchangedPolls=1,P[J]=void 0,E(j,250)):k!==2e3&&(j.unchangedPolls++,P[J]=void 0,E(j,k===250?500:2e3))}}function y(P){switch(P){case 250:return i;case 500:return o;case 2e3:return s}}function E(P,k){y(k).push(P),R(k)}function A(P){r.push(P),R(250)}function R(P){y(P).pollScheduled||N(P)}function N(P){y(P).pollScheduled=e.setTimeout(P===250?_:d,P,P===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(P))}}function Z9e(e,t,r,i){const o=hm(),s=i?new Map:void 0,l=new Map,u=Gd(t);return d;function d(h,y,E,A){const R=u(h);o.add(R,y).length===1&&s&&s.set(R,r(h)||Mp);const N=ci(R)||".",P=l.get(N)||_(ci(h)||".",N,A);return P.referenceCount++,{close:()=>{P.referenceCount===1?(P.close(),l.delete(N)):P.referenceCount--,o.remove(R,y)}}}function _(h,y,E){const A=e(h,1,(R,N)=>{if(!Bo(N))return;const P=bo(N,h),k=u(P),F=P&&o.get(k);if(F){let W,G=1;if(s){const j=s.get(k);if(R==="change"&&(W=r(P)||Mp,W.getTime()===j.getTime()))return;W||(W=r(P)||Mp),s.set(k,W),j===Mp?G=0:W===Mp&&(G=2)}for(const j of F)j(P,G,W)}},!1,500,E);return A.referenceCount=0,l.set(y,A),A}}function eGe(e){const t=[];let r=0,i;return o;function o(u,d){const _={fileName:u,callback:d,mtime:aI(e,u)};return t.push(_),l(),{close:()=>{_.isClosed=!0,iI(t,_)}}}function s(){i=void 0,r=n0e(e,t,r,k9[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function r0e(e,t,r,i,o){const l=Gd(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((d,_,h)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(E=>E(d,_,h))}),callbacks:[i]}),{close:()=>{const d=e.get(l);d&&(!bN(d.callbacks,i)||d.callbacks.length||(e.delete(l),Qf(d)))}}}function tGe(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,w9(r,i),t),!0):!1}function w9(e,t){return e===0?0:t===0?2:1}var oF=["/node_modules/.","/.git","/.#"],i0e=gs;function aF(e){return i0e(e)}function Oee(e){i0e=e}function nGe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const d=new Map,_=hm(),h=new Map;let y;const E=PR(!t),A=Gd(t);return(q,ve,oe,K)=>oe?R(q,K,ve):e(q,ve,oe,K);function R(q,ve,oe,K){const fe=A(q);let ue=d.get(fe);ue?ue.refCount++:(ue={watcher:e(q,be=>{var De;J(be,ve)||(ve?.synchronousWatchDirectory?((De=d.get(fe))!=null&&De.targetWatcher||N(q,fe,be),j(q,fe,ve)):P(q,fe,be,ve))},!1,ve),refCount:1,childWatches:ie,targetWatcher:void 0,links:void 0},d.set(fe,ue),j(q,fe,ve)),K&&(ue.links??(ue.links=new Set)).add(K);const me=oe&&{dirName:q,callback:oe};return me&&_.add(fe,me),{dirName:q,close:()=>{var be;const De=C.checkDefined(d.get(fe));me&&_.remove(fe,me),K&&((be=De.links)==null||be.delete(K)),De.refCount--,!De.refCount&&(d.delete(fe),De.links=void 0,Qf(De),G(De),De.childWatches.forEach(Hm))}}}function N(q,ve,oe,K){var fe,ue;let me,be;Bo(oe)?me=oe:be=oe,_.forEach((De,Y)=>{if(!(be&&be.get(Y)===!0)&&(Y===ve||po(ve,Y)&&ve[Y.length]===Xs))if(be)if(K){const Ne=be.get(Y);Ne?Ne.push(...K):be.set(Y,K.slice())}else be.set(Y,!0);else De.forEach(({callback:Ne})=>Ne(me))}),(ue=(fe=d.get(ve))==null?void 0:fe.links)==null||ue.forEach(De=>{const Y=Ne=>Qr(De,uf(q,Ne,A));be?N(De,A(De),be,K?.map(Y)):N(De,A(De),Y(me))})}function P(q,ve,oe,K){const fe=d.get(ve);if(fe&&o(q,1)){k(q,ve,oe,K);return}N(q,ve,oe),G(fe),W(fe)}function k(q,ve,oe,K){const fe=h.get(ve);fe?fe.fileNames.push(oe):h.set(ve,{dirName:q,options:K,fileNames:[oe]}),y&&(u(y),y=void 0),y=l(F,1e3,"timerToUpdateChildWatches")}function F(){var q;y=void 0,aF(`sysLog:: onTimerToUpdateChildWatches:: ${h.size}`);const ve=ws(),oe=new Map;for(;!y&&h.size;){const fe=h.entries().next();C.assert(!fe.done);const{value:[ue,{dirName:me,options:be,fileNames:De}]}=fe;h.delete(ue);const Y=j(me,ue,be);(q=d.get(ue))!=null&&q.targetWatcher||N(me,ue,oe,Y?void 0:De)}aF(`sysLog:: invokingWatchers:: Elapsed:: ${ws()-ve}ms:: ${h.size}`),_.forEach((fe,ue)=>{const me=oe.get(ue);me&&fe.forEach(({callback:be,dirName:De})=>{No(me)?me.forEach(be):be(De)})});const K=ws()-ve;aF(`sysLog:: Elapsed:: ${K}ms:: onTimerToUpdateChildWatches:: ${h.size} ${y}`)}function W(q){if(!q)return;const ve=q.childWatches;q.childWatches=ie;for(const oe of ve)oe.close(),W(d.get(A(oe.dirName)))}function G(q){q?.targetWatcher&&(q.targetWatcher.close(),q.targetWatcher=void 0)}function j(q,ve,oe){const K=d.get(ve);if(!K)return!1;const fe=ya(s(q));let ue,me;return E(fe,q)===0?ue=ZW(o(q,1)?Ei(i(q),Y=>{const Ne=bo(Y,q);return!J(Ne,oe)&&E(Ne,ya(s(Ne)))===0?Ne:void 0}):ie,K.childWatches,(Y,Ne)=>E(Y,Ne.dirName),be,Hm,De):K.targetWatcher&&E(fe,K.targetWatcher.dirName)===0?(ue=!1,C.assert(K.childWatches===ie)):(G(K),K.targetWatcher=R(fe,oe,void 0,q),K.childWatches.forEach(Hm),ue=!0),K.childWatches=me||ie,ue;function be(Y){const Ne=R(Y,oe);De(Ne)}function De(Y){(me||(me=[])).push(Y)}}function J(q,ve){return vt(oF,oe=>Z(q,oe))||o0e(q,ve,t,r)}function Z(q,ve){return q.includes(ve)?!0:t?!1:A(q).includes(ve)}}var Wee=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(Wee||{});function rGe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function iGe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Mp),t(e,s!==Mp?0:2,s)):t(e,1,s)}}function o0e(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(o3(e,t?.excludeFiles,r,i())||o3(e,t?.excludeDirectories,r,i()))}function a0e(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?ya(Qr(e,l)):e;(!l||!o0e(u,r,i,o))&&t(u)}}}function s0e({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:_,realpath:h,tscWatchFile:y,useNonPollingWatchers:E,tscWatchDirectory:A,inodeWatching:R,fsWatchWithTimestamp:N,sysLog:P}){const k=new Map,F=new Map,W=new Map;let G,j,J,Z,q=!1;return{watchFile:ve,watchDirectory:me};function ve(re,Te,Me,Be){Be=fe(Be,E);const lt=C.checkDefined(Be.watchFile);switch(lt){case 0:return Y(re,Te,250,void 0);case 1:return Y(re,Te,Me,void 0);case 2:return oe()(re,Te,Me,void 0);case 3:return K()(re,Te,void 0,void 0);case 4:return Ne(re,0,iGe(re,Te,t),!1,Me,lO(Be));case 5:return J||(J=Z9e(Ne,l,t,N)),J(re,Te,Me,lO(Be));default:C.assertNever(lt)}}function oe(){return G||(G=Q9e({getModifiedTime:t,setTimeout:r}))}function K(){return j||(j=eGe({getModifiedTime:t,setTimeout:r}))}function fe(re,Te){if(re&&re.watchFile!==void 0)return re;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return ue(4,1,re);case"UseFsEventsWithFallbackDynamicPolling":return ue(4,2,re);case"UseFsEventsOnParentDirectory":Te=!0;default:return Te?ue(5,1,re):{watchFile:4}}}function ue(re,Te,Me){const Be=Me?.fallbackPolling;return{watchFile:re,fallbackPolling:Be===void 0?Te:Be}}function me(re,Te,Me,Be){return d?Ne(re,1,a0e(re,Te,Be,l,u),Me,500,lO(Be)):(Z||(Z=nGe({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:_,watchDirectory:be,realpath:h,setTimeout:r,clearTimeout:i})),Z(re,Te,Me,Be))}function be(re,Te,Me,Be){C.assert(!Me);const lt=De(Be),ce=C.checkDefined(lt.watchDirectory);switch(ce){case 1:return Y(re,()=>Te(re),500,void 0);case 2:return oe()(re,()=>Te(re),500,void 0);case 3:return K()(re,()=>Te(re),void 0,void 0);case 0:return Ne(re,1,a0e(re,Te,Be,l,u),Me,500,lO(lt));default:C.assertNever(ce)}}function De(re){if(re&&re.watchDirectory!==void 0)return re;switch(A){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const Te=re?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Te!==void 0?Te:void 0}}}function Y(re,Te,Me,Be){return r0e(k,l,re,Te,lt=>e(re,lt,Me,Be))}function Ne(re,Te,Me,Be,lt,ce){return r0e(Be?W:F,l,re,Me,Ce=>Xe(re,Te,Ce,Be,lt,ce))}function Xe(re,Te,Me,Be,lt,ce){let Ce,ye;R&&(Ce=re.substring(re.lastIndexOf(Xs)),ye=Ce.slice(Xs.length));let Ue=s(re,Te)?We():cn();return{close:()=>{Ue&&(Ue.close(),Ue=void 0)}};function Ge(gn){Ue&&(P(`sysLog:: ${re}:: Changing watcher to ${gn===We?"Present":"Missing"}FileSystemEntryWatcher`),Ue.close(),Ue=gn())}function We(){if(q)return P(`sysLog:: ${re}:: Defaulting to watchFile`),Wt();try{const gn=(Te===1||!N?o:Ee)(re,Be,R?at:Me);return gn.on("error",()=>{Me("rename",""),Ge(cn)}),gn}catch(gn){return q||(q=gn.code==="ENOSPC"),P(`sysLog:: ${re}:: Changing to watchFile`),Wt()}}function at(gn,Kn){let gt;if(Kn&&nl(Kn,"~")&&(gt=Kn,Kn=Kn.slice(0,Kn.length-1)),gn==="rename"&&(!Kn||Kn===ye||nl(Kn,Ce))){const en=t(re)||Mp;gt&&Me(gn,gt,en),Me(gn,Kn,en),R?Ge(en===Mp?cn:We):en===Mp&&Ge(cn)}else gt&&Me(gn,gt),Me(gn,Kn)}function Wt(){return ve(re,rGe(Me),lt,ce)}function cn(){return ve(re,(gn,Kn,gt)=>{Kn===0&&(gt||(gt=t(re)||Mp),gt!==Mp&&(Me("rename","",gt),Ge(We)))},lt,ce)}}function Ee(re,Te,Me){let Be=t(re)||Mp;return o(re,Te,(lt,ce,Ce)=>{lt==="change"&&(Ce||(Ce=t(re)||Mp),Ce.getTime()===Be.getTime())||(Be=Ce||t(re)||Mp,Me(lt,ce,Be))})}}function l0e(e){const t=e.writeFile;e.writeFile=(r,i,o)=>yV(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}var Hc=(()=>{let e;return p9(),e})();function c0e(e){Hc=e}Hc&&Hc.getEnvironmentVariable&&($9e(Hc),C.setAssertionLevel(/^development$/i.test(Hc.getEnvironmentVariable("NODE_ENV"))?1:0)),Hc&&Hc.debugMode&&(C.isDebugging=!0);var Xs="/",sF="\\",d0e="://",oGe=/\\/g;function O9(e){return e===47||e===92}function Fee(e){return lF(e)<0}function Pp(e){return lF(e)>0}function W9(e){const t=lF(e);return t>0&&t===e.length}function DN(e){return lF(e)!==0}function nf(e){return/^\.\.?(?:$|[\\/])/.test(e)}function F9(e){return!DN(e)&&!nf(e)}function OR(e){return Dc(e).includes(".")}function xl(e,t){return e.length>t.length&&nl(e,t)}function tc(e,t){for(const r of t)if(xl(e,r))return!0;return!1}function db(e){return e.length>0&&O9(e.charCodeAt(e.length-1))}function u0e(e){return e>=97&&e<=122||e>=65&&e<=90}function aGe(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 lF(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?Xs:sF,2);return i<0?e.length:i+1}if(u0e(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(d0e);if(r!==-1){const i=r+d0e.length,o=e.indexOf(Xs,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&u0e(e.charCodeAt(o+1))){const u=aGe(e,o+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(o+1)}return~e.length}return 0}function Vh(e){const t=lF(e);return t<0?~t:t}function ci(e){e=jd(e);const t=Vh(e);return t===e.length?e:(e=Qy(e),e.slice(0,Math.max(t,e.lastIndexOf(Xs))))}function Dc(e,t,r){if(e=jd(e),Vh(e)===e.length)return"";e=Qy(e);const o=e.slice(Math.max(Vh(e),e.lastIndexOf(Xs)+1)),s=t!==void 0&&r!==void 0?sI(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function p0e(e,t,r){if(po(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(r(i,t))return i}}function sGe(e,t,r){if(typeof t=="string")return p0e(e,t,r)||"";for(const i of t){const o=p0e(e,i,r);if(o)return o}return""}function sI(e,t,r){if(t)return sGe(Qy(e),t,r?lb:_S);const i=Dc(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function lGe(e,t){const r=e.substring(0,t),i=e.substring(t).split(Xs);return i.length&&!tl(i)&&i.pop(),[r,...i]}function Vd(e,t=""){return e=Qr(t,e),lGe(e,Vh(e))}function LT(e,t){return e.length===0?"":(e[0]&&qc(e[0]))+e.slice(1,t).join(Xs)}function jd(e){return e.includes("\\")?e.replace(oGe,Xs):e}function lI(e){if(!vt(e))return[];const t=[e[0]];for(let r=1;r1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Qr(e,...t){e&&(e=jd(e));for(let r of t)r&&(r=jd(r),!e||Vh(r)!==0?e=r:e=qc(e)+r);return e}function ub(e,...t){return ya(vt(t)?Qr(e,...t):jd(e))}function cF(e,t){return lI(Vd(e,t))}function bo(e,t){let r=Vh(e);r===0&&t?(e=Qr(t,e),r=Vh(e)):e=jd(e);const i=f0e(e);if(i!==void 0)return i.length>r?Qy(i):i;const o=e.length,s=e.substring(0,r);let l,u=r,d=u,_=u,h=r!==0;for(;ud&&(l??(l=e.substring(0,d-1)),d=u);let E=e.indexOf(Xs,u+1);E===-1&&(E=o);const A=E-d;if(A===1&&e.charCodeAt(u)===46)l??(l=e.substring(0,_));else if(A===2&&e.charCodeAt(u)===46&&e.charCodeAt(u+1)===46)if(!h)l!==void 0?l+=l.length===r?"..":"/..":_=u+2;else if(l===void 0)_-2>=0?l=e.substring(0,Math.max(r,e.lastIndexOf(Xs,_-2))):l=e.substring(0,_);else{const R=l.lastIndexOf(Xs);R!==-1?l=l.substring(0,Math.max(r,R)):l=s,l.length===r&&(h=r!==0)}else l!==void 0?(l.length!==r&&(l+=Xs),h=!0,l+=e.substring(d,E)):(h=!0,_=E);u=E+1}return l??(o>r?Qy(e):e)}function ya(e){e=jd(e);let t=f0e(e);return t!==void 0?t:(t=bo(e,""),t&&db(e)?qc(t):t)}function f0e(e){if(!B9.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!B9.test(e)))return e}function cGe(e){return e.length===0?"":e.slice(1).join(Xs)}function z9(e,t){return cGe(cF(e,t))}function Os(e,t,r){const i=Pp(e)?ya(e):bo(e,t);return r(i)}function Qy(e){return db(e)?e.substr(0,e.length-1):e}function qc(e){return db(e)?e:e+Xs}function KE(e){return!DN(e)&&!nf(e)?"./"+e:e}function C2(e,t,r,i){const o=r!==void 0&&i!==void 0?sI(e,r,i):sI(e);return o?e.slice(0,e.length-o.length)+(po(t,".")?t:"."+t):e}function dF(e,t){const r=H4(e);return r?e.slice(0,e.length-r.length)+(po(t,".")?t:"."+t):C2(e,t)}var B9=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function zee(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,Vh(e)),o=t.substring(0,Vh(t)),s=A2(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!B9.test(l)&&!B9.test(u))return r(l,u);const d=lI(Vd(e)),_=lI(Vd(t)),h=Math.min(d.length,_.length);for(let y=1;y0==Vh(t)>0,"Paths must either both be absolute or both be relative");const s=_0e(e,t,(typeof r=="boolean"?r:!1)?lb:_S,typeof r=="function"?r:Us);return LT(s)}function CN(e,t,r){return Pp(e)?FR(t,e,t,r,!1):e}function WR(e,t,r){return KE(uf(ci(e),t,r))}function FR(e,t,r,i,o){const s=_0e(ub(r,e),ub(r,t),_S,i),l=s[0];if(o&&Pp(l)){const u=l.charAt(0)===Xs?"file://":"file:///";s[0]=u+l}return LT(s)}function NN(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ci(e);if(i===e)return;e=i}}function uF(e){return nl(e,"/node_modules")}function S(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f={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_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_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: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 type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:S(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:S(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:S(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:S(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:S(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:S(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:S(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:S(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:S(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:S(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:S(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:S(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:S(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:S(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:S(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:S(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:S(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:S(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:S(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:S(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:S(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:S(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:S(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:S(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:S(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:S(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:S(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:S(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:S(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:S(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:S(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:S(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:S(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:S(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:S(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:S(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:S(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:S(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:S(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:S(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:S(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:S(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:S(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:S(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:S(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:S(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:S(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:S(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:S(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:S(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:S(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:S(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:S(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:S(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:S(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:S(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:S(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:S(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:S(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:S(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:S(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:S(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:S(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:S(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:S(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:S(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:S(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:S(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:S(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:S(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:S(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:S(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:S(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:S(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:S(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:S(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:S(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:S(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:S(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:S(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:S(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:S(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:S(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:S(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:S(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:S(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:S(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:S(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:S(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:S(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:S(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:S(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:S(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:S(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:S(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:S(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:S(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:S(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:S(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:S(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:S(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:S(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:S(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:S(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:S(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:S(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:S(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:S(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:S(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:S(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:S(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:S(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:S(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:S(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:S(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:S(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:S(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:S(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:S(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:S(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:S(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:S(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:S(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:S(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:S(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:S(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:S(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:S(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:S(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:S(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:S(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:S(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:S(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:S(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:S(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:S(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:S(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:S(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:S(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:S(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:S(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:S(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:S(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:S(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:S(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:S(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:S(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:S(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:S(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:S(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:S(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:S(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:S(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:S(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:S(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:S(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:S(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:S(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:S(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:S(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:S(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:S(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:S(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:S(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:S(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:S(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:S(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:S(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:S(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:S(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:S(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:S(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:S(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:S(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:S(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:S(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:S(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:S(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:S(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:S(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:S(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:S(1286,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:S(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:S(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:S(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:S(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:S(1293,1,"ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:S(1294,1,"This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294","This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:S(1295,1,"ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295","ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript."),with_statements_are_not_allowed_in_an_async_function_block: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_node18_node20_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', 'node18', 'node20', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:S(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element: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_node18_node20_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', 'node18', 'node20', 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}'?"),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_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:S(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:S(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:S(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:S(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:S(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:S(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:S(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:S(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:S(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:S(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:S(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:S(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:S(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:S(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:S(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:S(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:S(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:S(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:S(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:S(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:S(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:S(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:S(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:S(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:S(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:S(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:S(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:S(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:S(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:S(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:S(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:S(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:S(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:S(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:S(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:S(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:S(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:S(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:S(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:S(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:S(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:S(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:S(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:S(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:S(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:S(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:S(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:S(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:S(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: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_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:S(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:S(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:S(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:S(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:S(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:S(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:S(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:S(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:S(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:S(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:S(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:S(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:S(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:S(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:S(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:S(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:S(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:S(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:S(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:S(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:S(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:S(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:S(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:S(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:S(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:S(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:S(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:S(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:S(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:S(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:S(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:S(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:S(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:S(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:S(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:S(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:S(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:S(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:S(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:S(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:S(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:S(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:S(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:S(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:S(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:S(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:S(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:S(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:S(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:S(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:S(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:S(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:S(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:S(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:S(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:S(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:S(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:S(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:S(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:S(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:S(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:S(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:S(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:S(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:S(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:S(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:S(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:S(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:S(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:S(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:S(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:S(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:S(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:S(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:S(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:S(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:S(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:S(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:S(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:S(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:S(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:S(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:S(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),A_bigint_literal_cannot_be_used_as_a_property_name:S(1539,1,"A_bigint_literal_cannot_be_used_as_a_property_name_1539","A 'bigint' literal cannot be used as a property name."),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:S(1540,2,"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540","A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:S(1541,1,"Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541","Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:S(1542,1,"Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542","Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:S(1543,1,"Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:S(1544,1,"Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544","Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'."),using_declarations_are_not_allowed_in_ambient_contexts:S(1545,1,"using_declarations_are_not_allowed_in_ambient_contexts_1545","'using' declarations are not allowed in ambient contexts."),await_using_declarations_are_not_allowed_in_ambient_contexts:S(1546,1,"await_using_declarations_are_not_allowed_in_ambient_contexts_1546","'await using' declarations are not allowed in ambient contexts."),The_types_of_0_are_incompatible_between_these_types: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_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_undefined_void_nor_any_must_return_a_value:S(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:S(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:S(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:S(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:S(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:S(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:S(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:S(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:S(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:S(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:S(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:S(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:S(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:S(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:S(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:S(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:S(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:S(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:S(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:S(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:S(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:S(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:S(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:S(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:S(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:S(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:S(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:S(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:S(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:S(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:S(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:S(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:S(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:S(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:S(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:S(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:S(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:S(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:S(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:S(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:S(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:S(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:S(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:S(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:S(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:S(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:S(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:S(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:S(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:S(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:S(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:S(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:S(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:S(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:S(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:S(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:S(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:S(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:S(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:S(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:S(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:S(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:S(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:S(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:S(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:S(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:S(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:S(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:S(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:S(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:S(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:S(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:S(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:S(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:S(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:S(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:S(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:S(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:S(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:S(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:S(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:S(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:S(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:S(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:S(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:S(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:S(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:S(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:S(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:S(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:S(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:S(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:S(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:S(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:S(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:S(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:S(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:S(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:S(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:S(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:S(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:S(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:S(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:S(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:S(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:S(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:S(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:S(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:S(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:S(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:S(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:S(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:S(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:S(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:S(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:S(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:S(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:S(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:S(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:S(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:S(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:S(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:S(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:S(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export: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_ES5_Consider_using_a_standard_function_or_method:S(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer: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."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:S(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:S(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:S(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:S(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:S(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:S(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:S(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:S(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:S(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:S(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:S(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:S(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:S(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:S(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:S(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:S(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:S(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:S(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:S(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:S(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:S(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:S(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:S(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:S(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:S(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:S(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:S(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:S(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:S(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:S(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:S(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:S(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:S(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:S(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:S(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:S(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:S(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:S(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:S(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:S(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:S(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:S(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:S(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:S(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:S(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:S(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:S(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:S(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:S(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:S(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:S(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:S(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:S(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:S(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:S(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:S(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:S(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:S(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:S(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:S(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:S(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:S(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:S(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:S(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:S(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:S(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:S(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:S(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:S(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:S(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:S(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:S(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:S(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:S(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:S(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:S(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:S(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:S(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:S(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:S(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:S(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:S(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:S(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:S(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:S(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:S(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:S(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:S(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:S(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:S(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:S(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:S(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:S(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:S(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:S(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:S(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:S(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:S(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: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}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:S(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:S(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:S(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element: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_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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters: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_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_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1: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_and_above_with_module_0:S(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 and above with module {0}."),Cannot_find_lib_definition_for_0: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_or_class_static_initialization_blocks:S(2815,1,"arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815","'arguments' cannot be referenced in property initializers or class static initialization blocks."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class: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_node18_node20_nodenext_or_preserve:S(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:S(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:S(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:S(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:S(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:S(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:S(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:S(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:S(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:S(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:S(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:S(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:S(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:S(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:S(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:S(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:S(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:S(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:S(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:S(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:S(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:S(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:S(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:S(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:S(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:S(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:S(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:S(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:S(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:S(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:S(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:S(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:S(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:S(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:S(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:S(2869,1,"Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869","Right operand of ?? is unreachable because the left operand is never nullish."),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:S(2870,1,"This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870","This binary expression is never nullish. Are you missing parentheses?"),This_expression_is_always_nullish:S(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:S(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:S(2873,1,"This_kind_of_expression_is_always_falsy_2873","This kind of expression is always falsy."),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:S(2874,1,"This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874","This JSX tag requires '{0}' to be in scope, but it could not be found."),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:S(2875,1,"This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875","This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed."),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:S(2876,1,"This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".'),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:S(2877,1,"This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877","This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:S(2878,1,"This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878","This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:S(2879,1,"Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879","Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:S(2880,1,"Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880","Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),This_expression_is_never_nullish:S(2881,1,"This_expression_is_never_nullish_2881","This expression is never nullish."),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}'."),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_anonymous_class_type_may_not_be_private_or_protected:S(4094,1,"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","Property '{0}' of exported anonymous class type may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:S(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:S(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:S(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:S(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:S(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:S(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:S(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:S(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:S(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:S(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:S(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:S(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:S(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:S(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:S(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:S(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:S(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:S(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:S(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:S(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:S(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:S(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:S(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:S(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:S(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:S(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:S(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:S(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:S(4127,1,"This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127","This member cannot have an 'override' modifier because its name is dynamic."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:S(4128,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128","This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),The_current_host_does_not_support_the_0_option: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}."),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_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:S(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:S(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:S(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:S(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:S(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:S(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:S(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:S(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:S(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:S(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:S(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:S(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:S(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:S(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:S(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:S(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:S(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:S(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:S(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:S(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:S(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:S(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:S(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:S(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:S(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:S(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:S(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:S(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:S(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:S(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:S(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:S(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:S(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:S(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:S(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:S(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:S(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:S(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:S(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:S(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:S(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:S(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:S(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:S(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:S(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:S(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:S(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:S(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:S(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:S(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:S(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:S(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:S(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:S(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:S(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:S(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:S(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:S(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:S(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:S(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:S(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:S(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:S(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:S(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:S(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:S(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:S(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:S(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:S(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:S(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:S(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:S(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:S(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:S(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:S(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:S(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:S(6024,3,"options_6024","options"),file:S(6025,3,"file_6025","file"),Examples_Colon_0:S(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:S(6027,3,"Options_Colon_6027","Options:"),Version_0:S(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:S(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:S(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:S(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:S(6034,3,"KIND_6034","KIND"),FILE:S(6035,3,"FILE_6035","FILE"),VERSION:S(6036,3,"VERSION_6036","VERSION"),LOCATION:S(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:S(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:S(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:S(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:S(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:S(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:S(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:S(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:S(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:S(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:S(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:S(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:S(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:S(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:S(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:S(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:S(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:S(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:S(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:S(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:S(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:S(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:S(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:S(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:S(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:S(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:S(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:S(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:S(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:S(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:S(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:S(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:S(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:S(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:S(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:S(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:S(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:S(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:S(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:S(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:S(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:S(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:S(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:S(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:S(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:S(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:S(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:S(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:S(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:S(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:S(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:S(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:S(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:S(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:S(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:S(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:S(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:S(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:S(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:S(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:S(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:S(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:S(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:S(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:S(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:S(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:S(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:S(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:S(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:S(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:S(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:S(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:S(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:S(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:S(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:S(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:S(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:S(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:S(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:S(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:S(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:S(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:S(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:S(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:S(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:S(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:S(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:S(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:S(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:S(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:S(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:S(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:S(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:S(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:S(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:S(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:S(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:S(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:S(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:S(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:S(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:S(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:S(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:S(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:S(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:S(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:S(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:S(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:S(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:S(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:S(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:S(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:S(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:S(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:S(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:S(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:S(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:S(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:S(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:S(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:S(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:S(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:S(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:S(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:S(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:S(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:S(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:S(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:S(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:S(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:S(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:S(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:S(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:S(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:S(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:S(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:S(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:S(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:S(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:S(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:S(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:S(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:S(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:S(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:S(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:S(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:S(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:S(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:S(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:S(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:S(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:S(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:S(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:S(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:S(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:S(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:S(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:S(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:S(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:S(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:S(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:S(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:S(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:S(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:S(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:S(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:S(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:S(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:S(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:S(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:S(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:S(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:S(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:S(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:S(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:S(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:S(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:S(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:S(6244,3,"Modules_6244","Modules"),File_Management:S(6245,3,"File_Management_6245","File Management"),Emit:S(6246,3,"Emit_6246","Emit"),JavaScript_Support:S(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:S(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:S(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:S(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:S(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:S(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:S(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:S(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:S(6255,3,"Projects_6255","Projects"),Output_Formatting:S(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:S(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:S(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:S(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:S(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:S(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:S(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:S(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:S(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:S(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:S(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:S(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:S(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:S(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:S(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:S(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:S(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:S(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:S(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:S(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:S(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:S(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:S(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:S(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:S(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),File_Layout:S(6284,3,"File_Layout_6284","File Layout"),Environment_Settings:S(6285,3,"Environment_Settings_6285","Environment Settings"),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:S(6286,3,"See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286","See also https://aka.ms/tsconfig/module"),For_nodejs_Colon:S(6287,3,"For_nodejs_Colon_6287","For nodejs:"),and_npm_install_D_types_Slashnode:S(6290,3,"and_npm_install_D_types_Slashnode_6290","and npm install -D @types/node"),Other_Outputs:S(6291,3,"Other_Outputs_6291","Other Outputs"),Stricter_Typechecking_Options:S(6292,3,"Stricter_Typechecking_Options_6292","Stricter Typechecking Options"),Style_Options:S(6293,3,"Style_Options_6293","Style Options"),Recommended_Options:S(6294,3,"Recommended_Options_6294","Recommended Options"),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."),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}'..."),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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:S(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:S(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:S(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:S(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:S(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:S(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:S(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:S(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:S(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:S(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:S(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:S(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:S(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:S(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:S(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:S(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:S(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:S(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:S(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:S(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:S(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:S(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:S(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:S(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:S(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:S(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:S(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:S(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:S(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:S(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:S(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:S(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:S(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:S(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:S(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:S(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:S(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:S(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:S(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:S(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:S(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:S(6419,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419","Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors."),Project_0_is_out_of_date_because_1:S(6420,3,"Project_0_is_out_of_date_because_1_6420","Project '{0}' is out of date because {1}."),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:S(6421,3,"Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421","Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: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."),Skip_building_downstream_projects_on_error_in_upstream_project:S(6640,3,"Skip_building_downstream_projects_on_error_in_upstream_project_6640","Skip building downstream projects on error in upstream project."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation: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 ''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."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:S(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:S(6720,3,"Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720","Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:S(6721,3,"Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721","Do not allow runtime constructs that are not part of ECMAScript."),Default_catch_clause_variables_as_unknown_instead_of_any: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."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:S(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),Check_side_effect_imports:S(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:S(6807,1,"This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807","This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:S(6808,3,"Enable_lib_replacement_6808","Enable lib replacement."),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_Consider_supplying_a_return_type_annotation:S(7025,1,"Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025","Generator implicitly has yield type '{0}'. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:S(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:S(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:S(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:S(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:S(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:S(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:S(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:S(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:S(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:S(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:S(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:S(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:S(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:S(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:S(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:S(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:S(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:S(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:S(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:S(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:S(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:S(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:S(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:S(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:S(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:S(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:S(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:S(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:S(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:S(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:S(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:S(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:S(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:S(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:S(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:S(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:S(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:S(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:S(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:S(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:S(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:S(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:S(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:S(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:S(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:S(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:S(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:S(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:S(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:S(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:S(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:S(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:S(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:S(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:S(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:S(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:S(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:S(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:S(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:S(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:S(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:S(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:S(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:S(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:S(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:S(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:S(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:S(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:S(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:S(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:S(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:S(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:S(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:S(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9009,1,"At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:S(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:S(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:S(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:S(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:S(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:S(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:S(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:S(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:S(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:S(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:S(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:S(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:S(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025","Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:S(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:S(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:S(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:S(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:S(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:S(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:S(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:S(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:S(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:S(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:S(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:S(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:S(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:S(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:S(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:S(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:S(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:S(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:S(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:S(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:S(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:S(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:S(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:S(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:S(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:S(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:S(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:S(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:S(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:S(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:S(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:S(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:S(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:S(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:S(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:S(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:S(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:S(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:S(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:S(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:S(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:S(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:S(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:S(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:S(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:S(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:S(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:S(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:S(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:S(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:S(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:S(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:S(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:S(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:S(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:S(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:S(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:S(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:S(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:S(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:S(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:S(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:S(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:S(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:S(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:S(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:S(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:S(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:S(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:S(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:S(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:S(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:S(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:S(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:S(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:S(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:S(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:S(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:S(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:S(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:S(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:S(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:S(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:S(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:S(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:S(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:S(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:S(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:S(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:S(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:S(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:S(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:S(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:S(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:S(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:S(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:S(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:S(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:S(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:S(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:S(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:S(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:S(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:S(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:S(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:S(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:S(95005,3,"Extract_function_95005","Extract function"),Extract_constant:S(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:S(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:S(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:S(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:S(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:S(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:S(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:S(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:S(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:S(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:S(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:S(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:S(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:S(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:S(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:S(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:S(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:S(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:S(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:S(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:S(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:S(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:S(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:S(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:S(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:S(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:S(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:S(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:S(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:S(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:S(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:S(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:S(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:S(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:S(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:S(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:S(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:S(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:S(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:S(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:S(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:S(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:S(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:S(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:S(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:S(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:S(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:S(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:S(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:S(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:S(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:S(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:S(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:S(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:S(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:S(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:S(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:S(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:S(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:S(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:S(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:S(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:S(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:S(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:S(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:S(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:S(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:S(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:S(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:S(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:S(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:S(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:S(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:S(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:S(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:S(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:S(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:S(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:S(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:S(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:S(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:S(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:S(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:S(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:S(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:S(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:S(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:S(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:S(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:S(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:S(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:S(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:S(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:S(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:S(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:S(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:S(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:S(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:S(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:S(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:S(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:S(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:S(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:S(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:S(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:S(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:S(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:S(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:S(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:S(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:S(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:S(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:S(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:S(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:S(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:S(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:S(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:S(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:S(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:S(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:S(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:S(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:S(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:S(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:S(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:S(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:S(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:S(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:S(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:S(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:S(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:S(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:S(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:S(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:S(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:S(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:S(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:S(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:S(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:S(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:S(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:S(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:S(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:S(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:S(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:S(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:S(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:S(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:S(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:S(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:S(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:S(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:S(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:S(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:S(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:S(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:S(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:S(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:S(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:S(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:S(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:S(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:S(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:S(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:S(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:S(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:S(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:S(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:S(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:S(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:S(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:S(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:S(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:S(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:S(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:S(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:S(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:S(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:S(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:S(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:S(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:S(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:S(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:S(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:S(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:S(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:S(95196,3,"Add_resolution_mode_import_attribute_95196","Add 'resolution-mode' import attribute"),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:S(95197,3,"Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197","Add 'resolution-mode' import attribute to all type-only imports that need it"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: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."),Its_type_0_is_not_a_valid_JSX_element_type:S(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:S(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:S(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:S(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled."),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:S(18057,1,"String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057","String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'."),Default_imports_are_not_allowed_in_a_deferred_import:S(18058,1,"Default_imports_are_not_allowed_in_a_deferred_import_18058","Default imports are not allowed in a deferred import."),Named_imports_are_not_allowed_in_a_deferred_import:S(18059,1,"Named_imports_are_not_allowed_in_a_deferred_import_18059","Named imports are not allowed in a deferred import."),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:S(18060,1,"Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060","Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'."),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:S(18061,1,"_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061","'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?")};function Qu(e){return e>=80}function Bee(e){return e===32||Qu(e)}var pF={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},dGe=new Map(Object.entries(pF)),g0e=new Map(Object.entries({...pF,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),y0e=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),uGe=new Map([[1,td.RegularExpressionFlagsHasIndices],[16,td.RegularExpressionFlagsDotAll],[32,td.RegularExpressionFlagsUnicode],[64,td.RegularExpressionFlagsUnicodeSets],[128,td.RegularExpressionFlagsSticky]]),pGe=[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],fGe=[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],mGe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],hGe=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],_Ge=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,gGe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,yGe=/@(?:see|link)/i;function V9(e,t){if(e=2?V9(e,mGe):V9(e,pGe)}function vGe(e,t){return t>=2?V9(e,hGe):V9(e,fGe)}function v0e(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}var bGe=v0e(g0e);function _a(e){return bGe[e]}function XE(e){return g0e.get(e)}var TGe=v0e(y0e);function b0e(e){return TGe[e]}function j9(e){return y0e.get(e)}function cI(e){const t=[];let r=0,i=0;for(;r127&&ru(o)&&(t.push(i),i=r);break}}return t.push(i),t}function N2(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):mF(ug(e),t,r,e.text,i)}function mF(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:C.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?tf(e,cI(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=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function ru(e){return e===10||e===13||e===8232||e===8233}function BR(e){return e>=48&&e<=57}function Gee(e){return BR(e)||e>=65&&e<=70||e>=97&&e<=102}function Vee(e){return e>=65&&e<=90||e>=97&&e<=122}function T0e(e){return Vee(e)||BR(e)||e===95}function jee(e){return e>=48&&e<=55}function Uee(e,t){const r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function wa(e,t,r,i,o){if(fh(t))return t;let s=!1;for(;;){const l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&pg(l)){t++;continue}break}return t}}var U9=7;function LN(e,t){if(C.assert(t>=0),t===0||ru(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+U9=0&&r127&&pg(R)){y&&ru(R)&&(h=!0),r++;continue}break e}}return y&&(A=o(u,d,_,h,s,A)),A}function P2(e,t,r,i){return H9(!1,e,t,!1,r,i)}function L2(e,t,r,i){return H9(!1,e,t,!0,r,i)}function qee(e,t,r,i,o){return H9(!0,e,t,!1,r,i,o)}function Jee(e,t,r,i,o){return H9(!0,e,t,!0,r,i,o)}function A0e(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function fg(e,t){return qee(e,t,A0e,void 0,void 0)}function pb(e,t){return Jee(e,t,A0e,void 0,void 0)}function hF(e){const t=Hee.exec(e);if(t)return t[0]}function C_(e,t){return Vee(e)||e===36||e===95||e>127&&fF(e,t)}function iy(e,t,r){return T0e(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&vGe(e,t)}function _p(e,t,r){let i=kN(e,0);if(!C_(i,t))return!1;for(let o=lh(i);oh,getStartPos:()=>h,getTokenEnd:()=>d,getTextPos:()=>d,getToken:()=>E,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,d),getTokenValue:()=>A,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(R&32768)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>N,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Ge,reScanAsteriskEqualsToken:We,reScanSlashToken:at,reScanTemplateToken:gt,reScanTemplateHeadOrNoSubstitutionTemplate:en,scanJsxIdentifier:xi,scanJsxAttributeValue:Pi,reScanJsxAttributeValue:Pr,reScanJsxToken:or,reScanLessThanToken:Ni,reScanHashToken:so,reScanQuestionToken:zt,reScanInvalidIdentifier:ye,scanJsxToken:Zr,scanJsDocToken:$e,scanJSDocCommentTextToken:Mi,scan:ce,getText:ai,clearCommentDirectives:qi,setText:Qo,setScriptTarget:Pn,setLanguageVariant:Uo,setScriptKind:ot,setJSDocParsingMode:Ft,setOnError:Ia,resetTokenState:le,setTextPos:le,setSkipJsDocLeadingAsterisks:_t,tryScan:ri,lookAhead:dr,scanRange:hn};return C.isDebugging&&Object.defineProperty(W,"__debugShowCurrentPositionInText",{get:()=>{const ne=W.getText();return ne.slice(0,W.getTokenFullStart())+"║"+ne.slice(W.getTokenFullStart())}}),W;function G(ne){return kN(u,ne)}function j(ne){return ne>=0&&ne<_?G(ne):-1}function J(ne){return u.charCodeAt(ne)}function Z(ne){return ne>=0&&ne<_?J(ne):-1}function q(ne,Fe=d,it,dt){if(o){const Lt=d;d=Fe,o(ne,it||0,dt),d=Lt}}function ve(){let ne=d,Fe=!1,it=!1,dt="";for(;;){const Lt=J(d);if(Lt===95){R|=512,Fe?(Fe=!1,it=!0,dt+=u.substring(ne,d)):(R|=16384,q(it?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,d,1)),d++,ne=d;continue}if(BR(Lt)){Fe=!0,it=!1,d++;continue}break}return J(d-1)===95&&(R|=16384,q(f.Numeric_separators_are_not_allowed_here,d-1,1)),dt+u.substring(ne,d)}function oe(){let ne=d,Fe;if(J(d)===48)if(d++,J(d)===95)R|=16896,q(f.Numeric_separators_are_not_allowed_here,d,1),d--,Fe=ve();else if(!fe())R|=8192,Fe=""+ +A;else if(!A)Fe="0";else{A=""+parseInt(A,8),R|=32;const Rt=E===41,It=(Rt?"-":"")+"0o"+(+A).toString(8);return Rt&&ne--,q(f.Octal_literals_are_not_allowed_Use_the_syntax_0,ne,d-ne,It),9}else Fe=ve();let it,dt;J(d)===46&&(d++,it=ve());let Lt=d;if(J(d)===69||J(d)===101){d++,R|=16,(J(d)===43||J(d)===45)&&d++;const Rt=d,It=ve();It?(dt=u.substring(Lt,Rt)+It,Lt=d):q(f.Digit_expected)}let He;if(R&512?(He=Fe,it&&(He+="."+it),dt&&(He+=dt)):He=u.substring(ne,Lt),R&8192)return q(f.Decimals_with_leading_zeros_are_not_allowed,ne,Lt-ne),A=""+ +He,9;if(it!==void 0||R&16)return K(ne,it===void 0&&!!(R&16)),A=""+ +He,9;{A=He;const Rt=lt();return K(ne),Rt}}function K(ne,Fe){if(!C_(G(d),e))return;const it=d,{length:dt}=Te();dt===1&&u[it]==="n"?q(Fe?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,ne,it-ne+1):(q(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,it,dt),d=it)}function fe(){const ne=d;let Fe=!0;for(;BR(Z(d));)jee(J(d))||(Fe=!1),d++;return A=u.substring(ne,d),Fe}function ue(ne,Fe){const it=be(ne,!1,Fe);return it?parseInt(it,16):-1}function me(ne,Fe){return be(ne,!0,Fe)}function be(ne,Fe,it){let dt=[],Lt=!1,He=!1;for(;dt.length=65&&Rt<=70)Rt+=32;else if(!(Rt>=48&&Rt<=57||Rt>=97&&Rt<=102))break;dt.push(Rt),d++,He=!1}return dt.length=_){it+=u.substring(dt,d),R|=4,q(f.Unterminated_string_literal);break}const Lt=J(d);if(Lt===Fe){it+=u.substring(dt,d),d++;break}if(Lt===92&&!ne){it+=u.substring(dt,d),it+=Ne(3),dt=d;continue}if((Lt===10||Lt===13)&&!ne){it+=u.substring(dt,d),R|=4,q(f.Unterminated_string_literal);break}d++}return it}function Y(ne){const Fe=J(d)===96;d++;let it=d,dt="",Lt;for(;;){if(d>=_){dt+=u.substring(it,d),R|=4,q(f.Unterminated_template_literal),Lt=Fe?15:18;break}const He=J(d);if(He===96){dt+=u.substring(it,d),d++,Lt=Fe?15:18;break}if(He===36&&d+1<_&&J(d+1)===123){dt+=u.substring(it,d),d+=2,Lt=Fe?16:17;break}if(He===92){dt+=u.substring(it,d),dt+=Ne(1|(ne?2:0)),it=d;continue}if(He===13){dt+=u.substring(it,d),d++,d<_&&J(d)===10&&d++,dt+=` `,it=d;continue}d++}return C.assert(Lt!==void 0),A=dt,Lt}function Ne(ne){const Fe=d;if(d++,d>=_)return q(f.Unexpected_end_of_text),"";const it=J(d);switch(d++,it){case 48:if(d>=_||!BR(J(d)))return"\0";case 49:case 50:case 51:d<_&&jee(J(d))&&d++;case 52:case 53:case 54:case 55:if(d<_&&jee(J(d))&&d++,R|=2048,ne&6){const He=parseInt(u.substring(Fe+1,d),8);return ne&4&&!(ne&32)&&it!==48?q(f.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,Fe,d-Fe,"\\x"+He.toString(16).padStart(2,"0")):q(f.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Fe,d-Fe,"\\x"+He.toString(16).padStart(2,"0")),String.fromCharCode(He)}return u.substring(Fe,d);case 56:case 57:return R|=2048,ne&6?(ne&4&&!(ne&32)?q(f.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Fe,d-Fe):q(f.Escape_sequence_0_is_not_allowed,Fe,d-Fe,u.substring(Fe,d)),String.fromCharCode(it)):u.substring(Fe,d);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(d<_&&J(d)===123){d-=2;const He=Xe(!!(ne&6));return ne&17||(R|=2048,ne&6&&q(f.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Fe,d-Fe)),He}for(;d=55296&&dt<=56319&&d+6<_&&u.substring(d,d+2)==="\\u"&&J(d+2)!==123){const He=d;let Rt=d+2;for(;Rt=56320&&It<=57343)return d=Rt,Lt+String.fromCharCode(It)}return Lt;case 120:for(;d1114111&&(ne&&q(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,it,d-it),He=!0),d>=_?(ne&&q(f.Unexpected_end_of_text),He=!0):J(d)===125?d++:(ne&&q(f.Unterminated_Unicode_escape_sequence),He=!0),He?(R|=2048,u.substring(Fe,d)):(R|=8,wN(Lt))}function Ee(){if(d+5<_&&J(d+1)===117){const ne=d;d+=2;const Fe=ue(4,!1);return d=ne,Fe}return-1}function re(){if(G(d+1)===117&&G(d+2)===123){const ne=d;d+=3;const Fe=me(1,!1),it=Fe?parseInt(Fe,16):-1;return d=ne,it}return-1}function Te(){let ne="",Fe=d;for(;d<_;){let it=G(d);if(iy(it,e))d+=lh(it);else if(it===92){if(it=re(),it>=0&&iy(it,e)){ne+=Xe(!0),Fe=d;continue}if(it=Ee(),!(it>=0&&iy(it,e)))break;R|=1024,ne+=u.substring(Fe,d),ne+=wN(it),d+=6,Fe=d}else break}return ne+=u.substring(Fe,d),ne}function Me(){const ne=A.length;if(ne>=2&&ne<=12){const Fe=A.charCodeAt(0);if(Fe>=97&&Fe<=122){const it=dGe.get(A);if(it!==void 0)return E=it}}return E=80}function Be(ne){let Fe="",it=!1,dt=!1;for(;;){const Lt=J(d);if(Lt===95){R|=512,it?(it=!1,dt=!0):q(dt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(it=!0,!BR(Lt)||Lt-48>=ne)break;Fe+=u[d],d++,dt=!1}return J(d-1)===95&&q(f.Numeric_separators_are_not_allowed_here,d-1,1),Fe}function lt(){return J(d)===110?(A+="n",R&384&&(A=LM(A)+"n"),d++,10):(A=""+(R&128?parseInt(A.slice(2),2):R&256?parseInt(A.slice(2),8):+A),9)}function ce(){for(h=d,R=0;;){if(y=d,d>=_)return E=1;const ne=G(d);if(d===0&&ne===35&&S0e(u,d)){if(d=E0e(u,d),t)continue;return E=6}switch(ne){case 10:case 13:if(R|=1,t){d++;continue}else return ne===13&&d+1<_&&J(d+1)===10?d+=2:d++,E=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<_&&jh(J(d));)d++;return E=5}case 33:return J(d+1)===61?J(d+2)===61?(d+=3,E=38):(d+=2,E=36):(d++,E=54);case 34:case 39:return A=De(),E=11;case 96:return E=Y(!1);case 37:return J(d+1)===61?(d+=2,E=70):(d++,E=45);case 38:return J(d+1)===38?J(d+2)===61?(d+=3,E=77):(d+=2,E=56):J(d+1)===61?(d+=2,E=74):(d++,E=51);case 40:return d++,E=21;case 41:return d++,E=22;case 42:if(J(d+1)===61)return d+=2,E=67;if(J(d+1)===42)return J(d+2)===61?(d+=3,E=68):(d+=2,E=43);if(d++,P&&(R&32768)===0&&R&1){R|=32768;continue}return E=42;case 43:return J(d+1)===43?(d+=2,E=46):J(d+1)===61?(d+=2,E=65):(d++,E=40);case 44:return d++,E=28;case 45:return J(d+1)===45?(d+=2,E=47):J(d+1)===61?(d+=2,E=66):(d++,E=41);case 46:return BR(J(d+1))?(oe(),E=9):J(d+1)===46&&J(d+2)===46?(d+=3,E=26):(d++,E=25);case 47:if(J(d+1)===47){for(d+=2;d<_&&!ru(J(d));)d++;if(N=gn(N,u.slice(y,d),_Ge,y),t)continue;return E=2}if(J(d+1)===42){d+=2;const Rt=J(d)===42&&J(d+1)!==47;let It=!1,Ot=y;for(;d<_;){const nt=J(d);if(nt===42&&J(d+1)===47){d+=2,It=!0;break}d++,ru(nt)&&(Ot=d,R|=1)}if(Rt&&Ce()&&(R|=2),N=gn(N,u.slice(Ot,d),gGe,Ot),It||q(f.Asterisk_Slash_expected),t)continue;return It||(R|=4),E=3}return J(d+1)===61?(d+=2,E=69):(d++,E=44);case 48:if(d+2<_&&(J(d+1)===88||J(d+1)===120))return d+=2,A=me(1,!0),A||(q(f.Hexadecimal_digit_expected),A="0"),A="0x"+A,R|=64,E=lt();if(d+2<_&&(J(d+1)===66||J(d+1)===98))return d+=2,A=Be(2),A||(q(f.Binary_digit_expected),A="0"),A="0b"+A,R|=128,E=lt();if(d+2<_&&(J(d+1)===79||J(d+1)===111))return d+=2,A=Be(8),A||(q(f.Octal_digit_expected),A="0"),A="0o"+A,R|=256,E=lt();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E=oe();case 58:return d++,E=59;case 59:return d++,E=27;case 60:if(LN(u,d)){if(d=M2(u,d,q),t)continue;return E=7}return J(d+1)===60?J(d+2)===61?(d+=3,E=71):(d+=2,E=48):J(d+1)===61?(d+=2,E=33):r===1&&J(d+1)===47&&J(d+2)!==42?(d+=2,E=31):(d++,E=30);case 61:if(LN(u,d)){if(d=M2(u,d,q),t)continue;return E=7}return J(d+1)===61?J(d+2)===61?(d+=3,E=37):(d+=2,E=35):J(d+1)===62?(d+=2,E=39):(d++,E=64);case 62:if(LN(u,d)){if(d=M2(u,d,q),t)continue;return E=7}return d++,E=32;case 63:return J(d+1)===46&&!BR(J(d+2))?(d+=2,E=29):J(d+1)===63?J(d+2)===61?(d+=3,E=78):(d+=2,E=61):(d++,E=58);case 91:return d++,E=23;case 93:return d++,E=24;case 94:return J(d+1)===61?(d+=2,E=79):(d++,E=53);case 123:return d++,E=19;case 124:if(LN(u,d)){if(d=M2(u,d,q),t)continue;return E=7}return J(d+1)===124?J(d+2)===61?(d+=3,E=76):(d+=2,E=57):J(d+1)===61?(d+=2,E=75):(d++,E=52);case 125:return d++,E=20;case 126:return d++,E=55;case 64:return d++,E=60;case 92:const Fe=re();if(Fe>=0&&C_(Fe,e))return A=Xe(!0)+Te(),E=Me();const it=Ee();return it>=0&&C_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+Te(),E=Me()):(q(f.Invalid_character),d++,E=0);case 35:if(d!==0&&u[d+1]==="!")return q(f.can_only_be_used_at_the_start_of_a_file,d,2),d++,E=0;const dt=G(d+1);if(dt===92){d++;const Rt=re();if(Rt>=0&&C_(Rt,e))return A="#"+Xe(!0)+Te(),E=81;const It=Ee();if(It>=0&&C_(It,e))return d+=6,R|=1024,A="#"+String.fromCharCode(It)+Te(),E=81;d--}return C_(dt,e)?(d++,Ue(dt,e)):(A="#",q(f.Invalid_character,d++,lh(ne))),E=81;case 65533:return q(f.File_appears_to_be_binary,0,0),d=_,E=8;default:const Lt=Ue(ne,e);if(Lt)return E=Lt;if(jh(ne)){d+=lh(ne);continue}else if(ru(ne)){R|=1,d+=lh(ne);continue}const He=lh(ne);return q(f.Invalid_character,d,He),d+=He,E=0}}}function Ce(){switch(F){case 0:return!0;case 1:return!1}return k!==3&&k!==4?!0:F===3?!1:yGe.test(u.slice(h,d))}function ye(){C.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=y=h,R=0;const ne=G(d),Fe=Ue(ne,99);return Fe?E=Fe:(d+=lh(ne),E)}function Ue(ne,Fe){let it=ne;if(C_(it,Fe)){for(d+=lh(it);d<_&&iy(it=G(d),Fe);)d+=lh(it);return A=u.substring(y,d),it===92&&(A+=Te()),Me()}}function Ge(){if(E===32){if(J(d)===62)return J(d+1)===62?J(d+2)===61?(d+=3,E=73):(d+=2,E=50):J(d+1)===61?(d+=2,E=72):(d++,E=49);if(J(d)===61)return d++,E=34}return E}function We(){return C.assert(E===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=y+1,E=64}function at(ne){if(E===44||E===69){const Fe=y+1;d=Fe;let it=!1,dt=!1,Lt=!1;for(;;){const Rt=Z(d);if(Rt===-1||ru(Rt)){R|=4;break}if(it)it=!1;else{if(Rt===47&&!Lt)break;Rt===91?Lt=!0:Rt===92?it=!0:Rt===93?Lt=!1:!Lt&&Rt===40&&Z(d+1)===63&&Z(d+2)===60&&Z(d+3)!==61&&Z(d+3)!==33&&(dt=!0)}d++}const He=d;if(R&4){d=Fe,it=!1;let Rt=0,It=!1,Ot=0;for(;d{Wt(Rt,!0,dt)})}A=u.substring(y,d),E=14}return E}function Wt(ne,Fe,it){var dt=!!(ne&64),Lt=!!(ne&96),He=Lt||!1,Rt=!1,It=0,Ot,nt,Jt,Tr=[],Oe;function Nt(wt){for(;;){if(Tr.push(Oe),Oe=void 0,ge(wt),Oe=Tr.pop(),Z(d)!==124)return;d++}}function ge(wt){let En=!1;for(;;){const xn=d,wn=Z(d);switch(wn){case-1:return;case 94:case 36:d++,En=!1;break;case 92:switch(d++,Z(d)){case 98:case 66:d++,En=!1;break;default:Ie(),En=!0;break}break;case 40:if(d++,Z(d)===63)switch(d++,Z(d)){case 61:case 33:d++,En=!He;break;case 60:const ia=d;switch(d++,Z(d)){case 61:case 33:d++,En=!1;break;default:Kt(!1),yn(62),e<5&&q(f.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,ia,d-ia),It++,En=!0;break}break;default:const la=d,zo=B(0);Z(d)===45&&(d++,B(zo),d===la+1&&q(f.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,la,d-la)),yn(58),En=!0;break}else It++,En=!0;Nt(!0),yn(41);break;case 123:d++;const ln=d;fe();const Ri=A;if(!He&&!Ri){En=!0;break}if(Z(d)===44){d++,fe();const ia=A;if(Ri)ia&&Number.parseInt(Ri)>Number.parseInt(ia)&&(He||Z(d)===125)&&q(f.Numbers_out_of_order_in_quantifier,ln,d-ln);else if(ia||Z(d)===125)q(f.Incomplete_quantifier_Digit_expected,ln,0);else{q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,xn,1,String.fromCharCode(wn)),En=!0;break}}else if(!Ri){He&&q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,xn,1,String.fromCharCode(wn)),En=!0;break}if(Z(d)!==125)if(He)q(f._0_expected,d,0,"}"),d--;else{En=!0;break}case 42:case 43:case 63:d++,Z(d)===63&&d++,En||q(f.There_is_nothing_available_for_repetition,xn,d-xn),En=!1;break;case 46:d++,En=!0;break;case 91:d++,dt?Bt():yt(),yn(93),En=!0;break;case 41:if(wt)return;case 93:case 125:(He||wn===41)&&q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(wn)),d++,En=!0;break;case 47:case 124:return;default:In(),En=!0;break}}}function B(wt){for(;;){const En=j(d);if(En===-1||!iy(En,e))break;const xn=lh(En),wn=j9(En);wn===void 0?q(f.Unknown_regular_expression_flag,d,xn):wt&wn?q(f.Duplicate_regular_expression_flag,d,xn):wn&28?(wt|=wn,cn(wn,xn)):q(f.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,d,xn),d+=xn}return wt}function Ie(){switch(C.assertEqual(J(d-1),92),Z(d)){case 107:d++,Z(d)===60?(d++,Kt(!0),yn(62)):(He||it)&&q(f.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,d-2,2);break;case 113:if(dt){d++,q(f.q_is_only_available_inside_character_class,d-2,2);break}default:C.assert(Vt()||te()||xt(!0));break}}function te(){C.assertEqual(J(d-1),92);const wt=Z(d);if(wt>=49&&wt<=57){const En=d;return fe(),Jt=Vn(Jt,{pos:En,end:d,value:+A}),!0}return!1}function xt(wt){C.assertEqual(J(d-1),92);let En=Z(d);switch(En){case-1:return q(f.Undetermined_character_escape,d-1,1),"\\";case 99:if(d++,En=Z(d),Vee(En))return d++,String.fromCharCode(En&31);if(He)q(f.c_must_be_followed_by_an_ASCII_letter,d-2,2);else if(wt)return d--,"\\";return String.fromCharCode(En);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return d++,String.fromCharCode(En);default:return d--,Ne(12|(Lt?16:0)|(wt?32:0))}}function Kt(wt){C.assertEqual(J(d-1),60),y=d,Ue(j(d),e),d===y?q(f.Expected_a_capturing_group_name):wt?nt=Vn(nt,{pos:y,end:d,name:A}):Oe?.has(A)||Tr.some(En=>En?.has(A))?q(f.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,y,d-y):(Oe??(Oe=new Set),Oe.add(A),Ot??(Ot=new Set),Ot.add(A))}function Le(wt){return wt===93||wt===-1||d>=_}function yt(){for(C.assertEqual(J(d-1),91),Z(d)===94&&d++;;){const wt=Z(d);if(Le(wt))return;const En=d,xn=Mt();if(Z(d)===45){d++;const wn=Z(d);if(Le(wn))return;!xn&&He&&q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,En,d-1-En);const ln=d,Ri=Mt();if(!Ri&&He){q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,ln,d-ln);continue}if(!xn)continue;const ia=kN(xn,0),la=kN(Ri,0);xn.length===lh(ia)&&Ri.length===lh(la)&&ia>la&&q(f.Range_out_of_order_in_character_class,En,d-En)}}}function Bt(){C.assertEqual(J(d-1),91);let wt=!1;Z(d)===94&&(d++,wt=!0);let En=!1,xn=Z(d);if(Le(xn))return;let wn=d,ln;switch(u.slice(d,d+2)){case"--":case"&&":q(f.Expected_a_class_set_operand),Rt=!1;break;default:ln=tr();break}switch(Z(d)){case 45:if(Z(d+1)===45){wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,wn,d-wn),En=Rt,gr(3),Rt=!wt&&En;return}break;case 38:if(Z(d+1)===38){gr(2),wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,wn,d-wn),En=Rt,Rt=!wt&&En;return}else q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(xn));break;default:wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,wn,d-wn),En=Rt;break}for(;xn=Z(d),xn!==-1;){switch(xn){case 45:if(d++,xn=Z(d),Le(xn)){Rt=!wt&&En;return}if(xn===45){d++,q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2),wn=d-2,ln=u.slice(wn,d);continue}else{ln||q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,wn,d-1-wn);const Ri=d,ia=tr();if(wt&&Rt&&q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Ri,d-Ri),En||(En=Rt),!ia){q(f.A_character_class_range_must_not_be_bounded_by_another_character_class,Ri,d-Ri);break}if(!ln)break;const la=kN(ln,0),zo=kN(ia,0);ln.length===lh(la)&&ia.length===lh(zo)&&la>zo&&q(f.Range_out_of_order_in_character_class,wn,d-wn)}break;case 38:wn=d,d++,Z(d)===38?(d++,q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2),Z(d)===38&&(q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(xn)),d++)):q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d-1,1,String.fromCharCode(xn)),ln=u.slice(wn,d);continue}if(Le(Z(d)))break;switch(wn=d,u.slice(d,d+2)){case"--":case"&&":q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d,2),d+=2,ln=u.slice(wn,d);break;default:ln=tr();break}}Rt=!wt&&En}function gr(wt){let En=Rt;for(;;){let xn=Z(d);if(Le(xn))break;switch(xn){case 45:d++,Z(d)===45?(d++,wt!==3&&q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2)):q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-1,1);break;case 38:d++,Z(d)===38?(d++,wt!==2&&q(f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,d-2,2),Z(d)===38&&(q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(xn)),d++)):q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d-1,1,String.fromCharCode(xn));break;default:switch(wt){case 3:q(f._0_expected,d,0,"--");break;case 2:q(f._0_expected,d,0,"&&");break}break}if(xn=Z(d),Le(xn)){q(f.Expected_a_class_set_operand);break}tr(),En&&(En=Rt)}Rt=En}function tr(){switch(Rt=!1,Z(d)){case-1:return"";case 91:return d++,Bt(),yn(93),"";case 92:if(d++,Vt())return"";if(Z(d)===113)return d++,Z(d)===123?(d++,Jn(),yn(125),""):(q(f.q_must_be_followed_by_string_alternatives_enclosed_in_braces,d-2,2),"q");d--;default:return mt()}}function Jn(){C.assertEqual(J(d-1),123);let wt=0;for(;;)switch(Z(d)){case-1:return;case 125:wt!==1&&(Rt=!0);return;case 124:wt!==1&&(Rt=!0),d++,s=d,wt=0;break;default:mt(),wt++;break}}function mt(){const wt=Z(d);if(wt===-1)return"";if(wt===92){d++;const En=Z(d);switch(En){case 98:return d++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return d++,String.fromCharCode(En);default:return xt(!1)}}else if(wt===Z(d+1))switch(wt){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return q(f.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,d,2),d+=2,u.substring(d-2,d)}switch(wt){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return q(f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,d,1,String.fromCharCode(wt)),d++,String.fromCharCode(wt)}return In()}function Mt(){if(Z(d)===92){d++;const wt=Z(d);switch(wt){case 98:return d++,"\b";case 45:return d++,String.fromCharCode(wt);default:return Vt()?"":xt(!1)}}else return In()}function Vt(){C.assertEqual(J(d-1),92);let wt=!1;const En=d-1,xn=Z(d);switch(xn){case 100:case 68:case 115:case 83:case 119:case 87:return d++,!0;case 80:wt=!0;case 112:if(d++,Z(d)===123){d++;const wn=d,ln=Qt();if(Z(d)===61){const Ri=I0e.get(ln);if(d===wn)q(f.Expected_a_Unicode_property_name);else if(Ri===void 0){q(f.Unknown_Unicode_property_name,wn,d-wn);const zo=gS(ln,I0e.keys(),Us);zo&&q(f.Did_you_mean_0,wn,d-wn,zo)}d++;const ia=d,la=Qt();if(d===ia)q(f.Expected_a_Unicode_property_value);else if(Ri!==void 0&&!k2[Ri].has(la)){q(f.Unknown_Unicode_property_value,ia,d-ia);const zo=gS(la,k2[Ri],Us);zo&&q(f.Did_you_mean_0,ia,d-ia,zo)}}else if(d===wn)q(f.Expected_a_Unicode_property_name_or_value);else if(R0e.has(ln))dt?wt?q(f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,wn,d-wn):Rt=!0:q(f.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,wn,d-wn);else if(!k2.General_Category.has(ln)&&!x0e.has(ln)){q(f.Unknown_Unicode_property_name_or_value,wn,d-wn);const Ri=gS(ln,[...k2.General_Category,...x0e,...R0e],Us);Ri&&q(f.Did_you_mean_0,wn,d-wn,Ri)}yn(125),Lt||q(f.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,En,d-En)}else if(He)q(f._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,d-2,2,String.fromCharCode(xn));else return d--,!1;return!0}return!1}function Qt(){let wt="";for(;;){const En=Z(d);if(En===-1||!T0e(En))break;wt+=String.fromCharCode(En),d++}return wt}function In(){const wt=Lt?lh(j(d)):1;return d+=wt,wt>0?u.substring(d-wt,d):""}function yn(wt){Z(d)===wt?d++:q(f._0_expected,d,0,String.fromCharCode(wt))}Nt(!1),qe(nt,wt=>{if(!Ot?.has(wt.name)&&(q(f.There_is_no_capturing_group_named_0_in_this_regular_expression,wt.pos,wt.end-wt.pos,wt.name),Ot)){const En=gS(wt.name,Ot,Us);En&&q(f.Did_you_mean_0,wt.pos,wt.end-wt.pos,En)}}),qe(Jt,wt=>{wt.value>It&&(It?q(f.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,wt.pos,wt.end-wt.pos,It):q(f.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,wt.pos,wt.end-wt.pos))})}function cn(ne,Fe){const it=uGe.get(ne);it&&e=_)return E=1;let Fe=J(d);if(Fe===60)return J(d+1)===47?(d+=2,E=31):(d++,E=30);if(Fe===123)return d++,E=19;let it=0;for(;d<_&&(Fe=J(d),Fe!==123);){if(Fe===60){if(LN(u,d))return d=M2(u,d,q),E=7;break}if(Fe===62&&q(f.Unexpected_token_Did_you_mean_or_gt,d,1),Fe===125&&q(f.Unexpected_token_Did_you_mean_or_rbrace,d,1),ru(Fe)&&it===0)it=-1;else{if(!ne&&ru(Fe)&&it>0)break;pg(Fe)||(it=d)}d++}return A=u.substring(h,d),it===-1?13:12}function xi(){if(Qu(E)){for(;d<_;){if(J(d)===45){A+="-",d++;continue}const Fe=d;if(A+=Te(),d===Fe)break}return Me()}return E}function Pi(){switch(h=d,J(d)){case 34:case 39:return A=De(!0),E=11;default:return ce()}}function Pr(){return d=y=h,Pi()}function Mi(ne){if(h=y=d,R=0,d>=_)return E=1;for(let Fe=J(d);d<_&&!ru(Fe)&&Fe!==96;Fe=G(++d))if(!ne){if(Fe===123)break;if(Fe===64&&d-1>=0&&jh(J(d-1))&&!(d+1<_&&pg(J(d+1))))break}return d===y?$e():(A=u.substring(y,d),E=82)}function $e(){if(h=y=d,R=0,d>=_)return E=1;const ne=G(d);switch(d+=lh(ne),ne){case 9:case 11:case 12:case 32:for(;d<_&&jh(J(d));)d++;return E=5;case 64:return E=60;case 13:J(d)===10&&d++;case 10:return R|=1,E=4;case 42:return E=42;case 123:return E=19;case 125:return E=20;case 91:return E=23;case 93:return E=24;case 40:return E=21;case 41:return E=22;case 60:return E=30;case 62:return E=32;case 61:return E=64;case 44:return E=28;case 46:return E=25;case 96:return E=62;case 35:return E=63;case 92:d--;const Fe=re();if(Fe>=0&&C_(Fe,e))return A=Xe(!0)+Te(),E=Me();const it=Ee();return it>=0&&C_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+Te(),E=Me()):(d++,E=0)}if(C_(ne,e)){let Fe=ne;for(;d<_&&iy(Fe=G(d),e)||Fe===45;)d+=lh(Fe);return A=u.substring(y,d),Fe===92&&(A+=Te()),E=Me()}else return E=0}function At(ne,Fe){const it=d,dt=h,Lt=y,He=E,Rt=A,It=R,Ot=ne();return(!Ot||Fe)&&(d=it,h=dt,y=Lt,E=He,A=Rt,R=It),Ot}function hn(ne,Fe,it){const dt=_,Lt=d,He=h,Rt=y,It=E,Ot=A,nt=R,Jt=N;Qo(u,ne,Fe);const Tr=it();return _=dt,d=Lt,h=He,y=Rt,E=It,A=Ot,R=nt,N=Jt,Tr}function dr(ne){return At(ne,!0)}function ri(ne){return At(ne,!1)}function ai(){return u}function qi(){N=void 0}function Qo(ne,Fe,it){u=ne||"",_=it===void 0?u.length:Fe+it,le(Fe||0)}function Ia(ne){o=ne}function Pn(ne){e=ne}function Uo(ne){r=ne}function ot(ne){k=ne}function Ft(ne){F=ne}function le(ne){C.assert(ne>=0),d=ne,h=ne,y=ne,E=0,A=void 0,R=0}function _t(ne){P+=ne?1:-1}}function kN(e,t){return e.codePointAt(t)}function lh(e){return e>=65536?2:e===-1?0:1}function SGe(e){if(C.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}var EGe=String.fromCodePoint?e=>String.fromCodePoint(e):SGe;function wN(e){return EGe(e)}var I0e=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),x0e=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),R0e=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),k2={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};k2.Script_Extensions=k2.Script;function nd(e){return nf(e)||Pp(e)}function GR(e){return vN(e,IM,V6)}var Kee=new Map([[99,"lib.esnext.full.d.ts"],[11,"lib.es2024.full.d.ts"],[10,"lib.es2023.full.d.ts"],[9,"lib.es2022.full.d.ts"],[8,"lib.es2021.full.d.ts"],[7,"lib.es2020.full.d.ts"],[6,"lib.es2019.full.d.ts"],[5,"lib.es2018.full.d.ts"],[4,"lib.es2017.full.d.ts"],[3,"lib.es2016.full.d.ts"],[2,"lib.es6.d.ts"]]);function w2(e){const t=Va(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return Kee.get(t);default:return"lib.d.ts"}}function Ml(e){return e.start+e.length}function Xee(e){return e.length===0}function q9(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Yee(e,t){return t.start>=e.start&&Ml(t)<=Ml(e)}function J9(e,t){return t.pos>=e.start&&t.end<=Ml(e)}function $ee(e,t){return t.start>=e.pos&&Ml(t)<=e.end}function D0e(e,t){return Qee(e,t)!==void 0}function Qee(e,t){const r=nte(e,t);return r&&r.length===0?void 0:r}function Zee(e,t){return F2(e.start,e.length,t.start,t.length)}function W2(e,t,r){return F2(e.start,e.length,t,r)}function F2(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function ete(e,t){return t<=Ml(e)&&t>=e.start}function tte(e,t){return W2(t,e.pos,e.end-e.pos)}function nte(e,t){const r=Math.max(e.start,t.start),i=Math.min(Ml(e),Ml(t));return r<=i?sc(r,i):void 0}function K9(e){e=e.filter(i=>i.length>0).sort((i,o)=>i.start!==o.start?i.start-o.start:i.length-o.length);const t=[];let r=0;for(;r=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Vi(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 Kr(e){return Vi(e.escapedText)}function $E(e){const t=XE(e.escapedText);return t?ni(t,rp):void 0}function Fl(e){return e.valueDeclaration&&ou(e.valueDeclaration)?Kr(e.valueDeclaration.name):Vi(e.escapedName)}function N0e(e){const t=e.parent.parent;if(t){if(id(t))return $9(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return $9(t.declarationList.declarations[0]);break;case 245:let r=t.expression;switch(r.kind===227&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 212:return r.name;case 213:const i=r.argumentExpression;if(Je(i))return i}break;case 218:return $9(t.expression);case 257:{if(id(t.statement)||St(t.statement))return $9(t.statement);break}}}}function $9(e){const t=wo(e);return t&&Je(t)?t:void 0}function B2(e,t){return!!(rd(e)&&Je(e.name)&&Kr(e.name)===Kr(t)||cc(e)&&vt(e.declarationList.declarations,r=>B2(r,t)))}function cte(e){return e.name||N0e(e)}function rd(e){return!!e.name}function gF(e){switch(e.kind){case 80:return e;case 349:case 342:{const{name:r}=e;if(r.kind===167)return r.right;break}case 214:case 227:{const r=e;switch(lc(r)){case 1:case 4:case 5:case 3:return f6(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return cte(e);case 341:return N0e(e);case 278:{const{expression:r}=e;return Je(r)?r:void 0}case 213:const t=e;if(p6(t))return t.argumentExpression}return e.name}function wo(e){if(e!==void 0)return gF(e)||(qs(e)||$s(e)||fc(e)?yF(e):void 0)}function yF(e){if(e.parent){if(Pc(e.parent)||qa(e.parent))return e.parent.name;if(Nr(e.parent)&&e===e.parent.right){if(Je(e.parent.left))return e.parent.left;if(Ys(e.parent.left))return f6(e.parent.left)}else if(yi(e.parent)&&Je(e.parent.name))return e.parent.name}else return}function fb(e){if(mf(e))return Un(e.modifiers,Bc)}function yS(e){if(di(e,98303))return Un(e.modifiers,Aa)}function M0e(e,t){if(e.name)if(Je(e.name)){const r=e.name.escapedText;return bF(e.parent,t).filter(i=>_f(i)&&Je(i.name)&&i.name.escapedText===r)}else{const r=e.parent.parameters.indexOf(e);C.assert(r>-1,"Parameters should always be in their parents' parameter list");const i=bF(e.parent,t).filter(_f);if(rxm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function ute(e){return P0e(e,!1)}function pte(e){return P0e(e,!0)}function fte(e){return!!ym(e,_f)}function mte(e){return ym(e,rx)}function hte(e){return TF(e,w4)}function Q9(e){return ym(e,noe)}function L0e(e){return ym(e,zj)}function _te(e){return ym(e,zj,!0)}function k0e(e){return ym(e,Bj)}function gte(e){return ym(e,Bj,!0)}function w0e(e){return ym(e,Gj)}function yte(e){return ym(e,Gj,!0)}function O0e(e){return ym(e,Vj)}function vte(e){return ym(e,Vj,!0)}function bte(e){return ym(e,L4,!0)}function Z9(e){return ym(e,jj)}function Tte(e){return ym(e,jj,!0)}function eG(e){return ym(e,Iw)}function vF(e){return ym(e,Uj)}function Ste(e){return ym(e,k4)}function W0e(e){return ym(e,xm)}function tG(e){return ym(e,O4)}function wT(e){const t=ym(e,eP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Zy(e){let t=ym(e,eP);return!t&&Zi(e)&&(t=mn(VR(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function G2(e){const t=Ste(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=wT(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(Fu(i)){const o=mn(i.members,XI);return o&&o.type}if(W_(i)||kD(i))return i.type}}function bF(e,t){var r;if(!Ck(e))return ie;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=XG(e,t);C.assert(o.length<2||o[0]!==o[1]),i=fi(o,s=>gh(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function OT(e){return bF(e,!1)}function ym(e,t,r){return mn(bF(e,r),t)}function TF(e,t){return OT(e).filter(t)}function F0e(e,t){return OT(e).filter(r=>r.kind===t)}function V2(e){return typeof e=="string"?e:e?.map(t=>t.kind===322?t.text:IGe(t)).join("")}function IGe(e){const t=e.kind===325?"link":e.kind===326?"linkcode":"linkplain",r=e.name?kp(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${r}${i}${e.text}}`}function mb(e){if(hv(e)){if(wD(e.parent)){const t=sD(e.parent);if(t&&Qe(t.tags))return fi(t.tags,r=>xm(r)?r.typeParameters:void 0)}return ie}if(Tm(e))return C.assert(e.parent.kind===321),fi(e.parent.tags,t=>xm(t)?t.typeParameters:void 0);if(e.typeParameters||moe(e)&&e.typeParameters)return e.typeParameters;if(Ir(e)){const t=C6(e);if(t.length)return t;const r=Zy(e);if(r&&W_(r)&&r.typeParameters)return r.typeParameters}return ie}function jR(e){return e.constraint?e.constraint:xm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function hg(e){return e.kind===80||e.kind===81}function j2(e){return e.kind===179||e.kind===178}function SF(e){return qr(e)&&!!(e.flags&64)}function nG(e){return zs(e)&&!!(e.flags&64)}function QE(e){return ea(e)&&!!(e.flags&64)}function iu(e){const t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function FN(e){return iu(e)&&!ex(e)&&!!e.questionDotToken}function EF(e){return FN(e.parent)&&e.parent.expression===e}function zN(e){return!iu(e.parent)||FN(e.parent)||e!==e.parent.expression}function rG(e){return e.kind===227&&e.operatorToken.kind===61}function Gm(e){return Bp(e)&&Je(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Vm(e){return Kl(e,8)}function AF(e){return ex(e)&&!!(e.flags&64)}function BN(e){return e.kind===253||e.kind===252}function iG(e){return e.kind===281||e.kind===280}function GN(e){return e.kind===349||e.kind===342}function IF(e){return e>=167}function oG(e){return e>=0&&e<=166}function dI(e){return oG(e.kind)}function vS(e){return Cs(e,"pos")&&Cs(e,"end")}function VN(e){return 9<=e&&e<=15}function ZE(e){return VN(e.kind)}function aG(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function hb(e){return 15<=e&&e<=18}function Ete(e){return hb(e.kind)}function xF(e){const t=e.kind;return t===17||t===18}function _b(e){return xu(e)||lu(e)}function UR(e){switch(e.kind){case 277:return e.isTypeOnly||e.parent.parent.phaseModifier===156;case 275:return e.parent.phaseModifier===156;case 274:return e.phaseModifier===156;case 272:return e.isTypeOnly}return!1}function Ate(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function ev(e){return UR(e)||Ate(e)}function Ite(e){return Dn(e,ev)!==void 0}function sG(e){return e.kind===11||hb(e.kind)}function xte(e){return Oa(e)||Je(e)}function ml(e){var t;return Je(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function e1(e){var t;return Qi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function U2(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ou(e){return(Mo(e)||pI(e))&&Qi(e.name)}function HR(e){return qr(e)&&Qi(e.name)}function gb(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function jN(e){return!!(NI(e)&31)}function lG(e){return jN(e)||e===126||e===164||e===129}function Aa(e){return gb(e.kind)}function ku(e){const t=e.kind;return t===167||t===80}function Tc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===168}function t1(e){const t=e.kind;return t===80||t===207||t===208}function $o(e){return!!e&&uI(e.kind)}function qR(e){return!!e&&(uI(e.kind)||nc(e))}function Ls(e){return e&&z0e(e.kind)}function UN(e){return e.kind===112||e.kind===97}function z0e(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function uI(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return z0e(e)}}function cG(e){return Xi(e)||i_(e)||ta(e)&&$o(e.parent)}function Sc(e){const t=e.kind;return t===177||t===173||t===175||t===178||t===179||t===182||t===176||t===241}function ui(e){return e&&(e.kind===264||e.kind===232)}function yb(e){return e&&(e.kind===178||e.kind===179)}function Zu(e){return Mo(e)&&$h(e)}function Rte(e){return Ir(e)&&VI(e)?(!DS(e)||!Cb(e.expression))&&!d1(e,!0):e.parent&&ui(e.parent)&&Mo(e)&&!$h(e)}function pI(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function hl(e){return Aa(e)||Bc(e)}function bS(e){const t=e.kind;return t===181||t===180||t===172||t===174||t===182||t===178||t===179||t===355}function RF(e){return bS(e)||Sc(e)}function ay(e){const t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function Ci(e){return WV(e.kind)}function Dte(e){switch(e.kind){case 185:case 186:return!0}return!1}function Zo(e){if(e){const t=e.kind;return t===208||t===207}return!1}function HN(e){const t=e.kind;return t===210||t===211}function DF(e){const t=e.kind;return t===209||t===233}function H2(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function Cte(e){return yi(e)||Zi(e)||J2(e)||K2(e)}function q2(e){return dG(e)||uG(e)}function dG(e){switch(e.kind){case 207:case 211:return!0}return!1}function J2(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function uG(e){switch(e.kind){case 208:case 210:return!0}return!1}function K2(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return od(e,!0)}function Nte(e){const t=e.kind;return t===212||t===167||t===206}function X2(e){const t=e.kind;return t===212||t===167}function pG(e){return TS(e)||Pb(e)}function TS(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return e.operatorToken.kind===104;default:return!1}}function Uh(e){return e.kind===214||e.kind===215}function fI(e){const t=e.kind;return t===229||t===15}function ep(e){return B0e(Vm(e).kind)}function B0e(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function fG(e){return G0e(Vm(e).kind)}function G0e(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return B0e(e)}}function Mte(e){switch(e.kind){case 226:return!0;case 225:return e.operator===46||e.operator===47;default:return!1}}function Pte(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return ZE(e)}}function St(e){return xGe(Vm(e).kind)}function xGe(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return G0e(e)}}function SS(e){const t=e.kind;return t===217||t===235}function vb(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&vb(e.statement,t)}return!1}function RGe(e){return dl(e)||hc(e)}function Lte(e){return vt(e,RGe)}function CF(e){return!ok(e)&&!dl(e)&&!di(e,32)&&!Tu(e)}function Y2(e){return ok(e)||dl(e)||di(e,32)}function n1(e){return e.kind===250||e.kind===251}function NF(e){return ta(e)||St(e)}function mG(e){return ta(e)}function Bf(e){return gd(e)||St(e)}function kte(e){const t=e.kind;return t===269||t===268||t===80}function V0e(e){const t=e.kind;return t===269||t===268}function j0e(e){const t=e.kind;return t===80||t===268}function hG(e){const t=e.kind;return t===276||t===275}function $2(e){return e.kind===268||e.kind===267}function ch(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function N_(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function DGe(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function wte(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function Ote(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function id(e){return e.kind===169?e.parent&&e.parent.kind!==346||Ir(e):DGe(e.kind)}function Wte(e){return wte(e.kind)}function Q2(e){return Ote(e.kind)}function ji(e){const t=e.kind;return Ote(t)||wte(t)||CGe(e)}function CGe(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!xS(e)}function Fte(e){const t=e.kind;return Ote(t)||wte(t)||t===242}function zte(e){const t=e.kind;return t===284||t===167||t===80}function qN(e){const t=e.kind;return t===110||t===80||t===212||t===296}function Z2(e){const t=e.kind;return t===285||t===295||t===286||t===12||t===289}function MF(e){const t=e.kind;return t===292||t===294}function Bte(e){const t=e.kind;return t===11||t===295}function au(e){const t=e.kind;return t===287||t===286}function Gte(e){const t=e.kind;return t===287||t===286||t===290}function PF(e){const t=e.kind;return t===297||t===298}function JR(e){return e.kind>=310&&e.kind<=352}function LF(e){return e.kind===321||e.kind===320||e.kind===322||mI(e)||KR(e)||N1(e)||hv(e)}function KR(e){return e.kind>=328&&e.kind<=352}function Hh(e){return e.kind===179}function _g(e){return e.kind===178}function rf(e){if(!Ck(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function kF(e){return!!e.type}function tv(e){return!!e.initializer}function r1(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function _G(e){return e.kind===292||e.kind===294||ay(e)}function wF(e){return e.kind===184||e.kind===234}var U0e=1073741823;function Vte(e){let t=U0e;for(const r of e){if(!r.length)continue;let i=0;for(;i0?r.parent.parameters[o-1]:void 0,l=t.text,u=s?ao(pb(l,wa(l,s.end+1,!1,!0)),fg(l,e.pos)):pb(l,wa(l,e.pos,!1,!0));return vt(u)&&H0e(Ga(u),t)}const i=r&&FG(r,t);return!!qe(i,o=>H0e(o,t))}var yG=[],bb="tslib",JN=160,vG=1e6,Ute=500;function ll(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Hte(e,t){return Un(e.declarations||ie,r=>r.kind===t)}function da(e){const t=new Map;if(e)for(const r of e)t.set(r.escapedName,r);return t}function gg(e){return(e.flags&33554432)!==0}function hI(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var OF=NGe();function NGe(){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&&pg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:gs,decreaseIndent:gs,clear:()=>e=""}}function WF(e,t){return e.configFilePath!==t.configFilePath||MGe(e,t)}function MGe(e,t){return _I(e,t,pU)}function qte(e,t){return _I(e,t,Ooe)}function _I(e,t,r){return e!==t&&r.some(i=>!i4(q6(e,i),q6(t,i)))}function Jte(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Xi(e))return;e=e.parent}}function Jc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function yg(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function FF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function XR(e){const t=OF.getText();try{return e(OF),OF.getText()}finally{OF.clear(),OF.writeKeyword(t)}}function ek(e){return e.end-e.pos}function bG(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Kte(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&&PGe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function gI(e){return e.resolvedModule}function zF(e){return e.resolvedTypeReferenceDirective}function BF(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(su(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(Pg+"@types/")?`@types/${JD(o)}`:o]]),d=u?qo(void 0,u[0],...u[1]):t.typesPackageExists(o)?qo(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,JD(o)):t.packageBundlesTypes(o)?qo(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):qo(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,JD(o));return d&&(d.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),d}function TG(e){const t=Rg(e.fileName),r=e.packageJsonScope,i=t===".ts"?".mts":t===".js"?".mjs":void 0,o=r&&!r.contents.packageJsonContent.type?i?qo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,i,Qr(r.packageDirectory,"package.json")):qo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Qr(r.packageDirectory,"package.json")):i?qo(void 0,f.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,i):qo(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return o.repopulateInfo=()=>!0,o}function PGe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function GF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function WT(e){return`${GF(e)}@${e.version}${e.peerDependencies??""}`}function Xte(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 SG(e,t,r,i){C.assert(e.length===t.length);for(let o=0;o=0),ug(t)[e]}function q0e(e){const t=zn(e),r=ca(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function nk(e,t){C.assert(e>=0);const r=ug(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{const s=r[i];let l=r[i+1]-1;for(C.assert(ru(o.charCodeAt(l)));s<=l&&ru(o.charCodeAt(l));)l--;return l}}function VF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function zl(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function vm(e){return!zl(e)}function $te(e,t){return cl(e)?t===e.expression:nc(e)?t===e.modifiers:Iu(e)?t===e.initializer:Mo(e)?t===e.questionToken&&Zu(e):Pc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||rk(e.modifiers,t,hl):Jd(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||rk(e.modifiers,t,hl):Ll(e)?t===e.exclamationToken:kl(e)?t===e.typeParameters||t===e.type||rk(e.typeParameters,t,cl):Xf(e)?t===e.typeParameters||rk(e.typeParameters,t,cl):bp(e)?t===e.typeParameters||t===e.type||rk(e.typeParameters,t,cl):Aw(e)?t===e.modifiers||rk(e.modifiers,t,hl):!1}function rk(e,t,r){return!e||No(t)||!r(t)?!1:jn(e,t)}function J0e(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${ca(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return Do(r.entries()).filter(([l,u])=>u.type===0&&!i.get(l)).map(([l,u])=>u)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function Sb(e,t,r){if(zl(e))return e.pos;if(JR(e)||e.kind===12)return wa((t??zn(e)).text,e.pos,!1,!0);if(r&&rf(e))return Sb(e.jsDoc[0],t);if(e.kind===353){t??(t=zn(e));const i=Rc(Hj(e,t));if(i)return Sb(i,t,r)}return wa((t??zn(e)).text,e.pos,!1,!1,nM(e))}function IG(e,t){const r=!zl(e)&&Rm(e)?ga(e.modifiers,Bc):void 0;return r?wa((t||zn(e)).text,r.end):Sb(e,t)}function Zte(e,t){const r=!zl(e)&&Rm(e)&&e.modifiers?Ga(e.modifiers):void 0;return r?wa((t||zn(e)).text,r.end):Sb(e,t)}function ES(e,t,r=!1){return XN(e.text,t,r)}function kGe(e){return!!Dn(e,r0)}function UF(e){return!!(hc(e)&&e.exportClause&&F_(e.exportClause)&&P_(e.exportClause.name))}function Eb(e){return e.kind===11?e.text:Vi(e.escapedText)}function AS(e){return e.kind===11?Pl(e.text):e.escapedText}function P_(e){return(e.kind===11?e.text:e.escapedText)==="default"}function XN(e,t,r=!1){if(zl(t))return"";let i=e.substring(r?t.pos:wa(e,t.pos),t.end);return kGe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` `)),i}function Rl(e,t=!1){return ES(zn(e),e,t)}function wGe(e){return e.pos}function YR(e,t){return ib(e,t,wGe,Hs)}function Za(e){const t=e.emitNode;return t&&t.flags||0}function jm(e){const t=e.emitNode;return t&&t.internalFlags||0}var xG=Lu(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Iterator:new Map(Object.entries({es2015:ie})),AsyncIterator:new Map(Object.entries({es2015:ie})),ArrayBuffer:new Map(Object.entries({es2024:["maxByteLength","resizable","resize","detached","transfer","transferToFixedLength"]})),Atomics:new Map(Object.entries({es2017:["add","and","compareExchange","exchange","isLockFree","load","or","store","sub","wait","notify","xor"],es2024:["waitAsync"],esnext:["pause"]})),SharedArrayBuffer:new Map(Object.entries({es2017:["byteLength","slice"],es2024:["growable","maxByteLength","grow"]})),AsyncIterable:new Map(Object.entries({es2018:ie})),AsyncIterableIterator:new Map(Object.entries({es2018:ie})),AsyncGenerator:new Map(Object.entries({es2018:ie})),AsyncGeneratorFunction:new Map(Object.entries({es2018:ie})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"],es2024:["unicodeSets"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"],es2024:["groupBy"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],esnext:["f16round"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],es2024:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:ie,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"],esnext:["metadata","dispose","asyncDispose"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],esnext:["setFloat16","getFloat16"]})),BigInt:new Map(Object.entries({es2020:ie})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float16Array:new Map(Object.entries({esnext:ie})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigInt64Array:new Map(Object.entries({es2020:ie,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:ie,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),ene=(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))(ene||{});function tne(e,t,r){if(t&&OGe(e,r))return ES(t,e);switch(e.kind){case 11:{const i=r&2?pV:r&1||Za(e)&16777216?O_:T6;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||Za(e)&16777216?O_:T6,o=e.rawText??dV(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return C.fail(`Literal kind '${e.kind}' not accounted for.`)}function OGe(e,t){if(Fs(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(op(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!AD(e)}function nne(e){return Bo(e)?`"${O_(e)}"`:""+e}function rne(e){return Dc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function RG(e){return(oy(e)&7)!==0||DG(e)}function DG(e){const t=Yh(e);return t.kind===261&&t.parent.kind===300}function Tu(e){return mc(e)&&(e.name.kind===11||L_(e))}function HF(e){return mc(e)&&e.name.kind===11}function CG(e){return mc(e)&&Oa(e.name)}function WGe(e){return mc(e)||Je(e)}function ik(e){return FGe(e.valueDeclaration)}function FGe(e){return!!e&&e.kind===268&&!e.body}function ine(e){return e.kind===308||e.kind===268||qR(e)}function L_(e){return!!(e.flags&2048)}function IS(e){return Tu(e)&&NG(e)}function NG(e){switch(e.parent.kind){case 308:return Vc(e.parent);case 269:return Tu(e.parent.parent)&&Xi(e.parent.parent.parent)&&!Vc(e.parent.parent.parent)}return!1}function MG(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!IS(r)&&!(mc(r)&&L_(r)))}function zGe(e){return e===1||100<=e&&e<=199}function $R(e,t){return Vc(e)||zGe(Eu(t))&&!!e.commonJsModuleIndicator}function PG(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Hd(t,"alwaysStrict")||uoe(e.statements)||Vc(e)||Am(t))}function LG(e){return!!(e.flags&33554432)||di(e,128)}function kG(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!qR(t)}return!1}function wG(e){switch(C.type(e),e.kind){case 339:case 347:case 324:return!0;default:return OG(e)}}function OG(e){switch(C.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function vI(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function one(e){return vI(e)||RS(e)}function ane(e){return vI(e)||vk(e)}function qF(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function sne(e){return ok(e)||mc(e)||r_(e)||tp(e)}function ok(e){return vI(e)||hc(e)}function JF(e){return Dn(e.parent,t=>!!(BU(t)&1))}function dh(e){return Dn(e.parent,t=>kG(t,t.parent))}function lne(e,t){let r=dh(e);for(;r;)t(r),r=dh(r)}function Ws(e){return!e||ek(e)===0?"(Missing)":Rl(e)}function cne(e){return e.declaration?Ws(e.declaration.parameters[0].name):void 0}function ak(e){return e.kind===168&&!ff(e.expression)}function YN(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 10:case 15:return Pl(e.text);case 168:return ff(e.expression)?Pl(e.expression.text):void 0;case 296:return GI(e);default:return C.assertNever(e)}}function bI(e){return C.checkDefined(YN(e))}function kp(e){switch(e.kind){case 110:return"this";case 81:case 80:return ek(e)===0?Kr(e):Rl(e);case 167:return kp(e.left)+"."+kp(e.right);case 212:return Je(e.name)||Qi(e.name)?kp(e.expression)+"."+kp(e.name):C.assertNever(e.name);case 312:return kp(e.left)+"#"+kp(e.right);case 296:return kp(e.namespace)+":"+kp(e.name);default:return C.assertNever(e)}}function Ar(e,t,...r){const i=zn(e);return Gf(i,e,t,...r)}function QR(e,t,r,...i){const o=wa(e.text,t.pos);return zc(e,o,t.end-o,r,...i)}function Gf(e,t,r,...i){const o=o1(e,t);return zc(e,o.start,o.length,r,...i)}function bg(e,t,r,i){const o=o1(e,t);return KF(e,o.start,o.length,r,i)}function sk(e,t,r,i){const o=wa(e.text,t.pos);return KF(e,o,t.end-o,r,i)}function dne(e,t,r){C.assertGreaterThanOrEqual(t,0),C.assertGreaterThanOrEqual(r,0),C.assertLessThanOrEqual(t,e.length),C.assertLessThanOrEqual(t+r,e.length)}function KF(e,t,r,i,o){return dne(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o,canonicalHead:i.canonicalHead}}function WG(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 une(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function pne(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function fne(e,...t){return{code:e.code,messageText:OI(e,...t)}}function qh(e,t){const r=mg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return sc(i,r.getTokenEnd())}function mne(e,t){const r=mg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function BGe(e,t){const r=wa(e.text,t.pos);if(t.body&&t.body.kind===242){const{line:i}=ca(e,t.body.pos),{line:o}=ca(e,t.body.end);if(i0?t.statements[0].pos:t.end;return sc(s,l)}case 254:case 230:{const s=wa(e.text,t.pos);return qh(e,s)}case 239:{const s=wa(e.text,t.expression.end);return qh(e,s)}case 351:{const s=wa(e.text,t.tagName.pos);return qh(e,s)}case 177:{const s=t,l=wa(e.text,s.pos),u=mg(e.languageVersion,!0,e.languageVariant,e.text,void 0,l);let d=u.scan();for(;d!==137&&d!==1;)d=u.scan();const _=u.getTokenEnd();return sc(l,_)}}if(r===void 0)return qh(e,t.pos);C.assert(!gh(r));const i=zl(r),o=i||HI(t)?r.pos:wa(e.text,r.pos);return i?(C.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(C.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),C.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),sc(o,r.end)}function nv(e){return e.kind===308&&!wp(e)}function wp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Vf(e){return e.scriptKind===6}function FT(e){return!!(kT(e)&4096)}function lk(e){return!!(kT(e)&8&&!Lp(e,e.parent))}function ck(e){return(oy(e)&7)===6}function dk(e){return(oy(e)&7)===4}function ZR(e){return(oy(e)&7)===2}function hne(e){const t=oy(e)&7;return t===2||t===4||t===6}function XF(e){return(oy(e)&7)===1}function a1(e){return e.kind===214&&e.expression.kind===108}function tp(e){if(e.kind!==214)return!1;const t=e.expression;return t.kind===102||x1(t)&&t.keywordToken===102&&t.name.escapedText==="defer"}function eD(e){return x1(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function sy(e){return r_(e)&&fv(e.argument)&&Oa(e.argument.literal)}function Jh(e){return e.kind===245&&e.expression.kind===11}function uk(e){return!!(Za(e)&2097152)}function YF(e){return uk(e)&&rc(e)}function GGe(e){return Je(e.name)&&!e.initializer}function $F(e){return uk(e)&&cc(e)&&Hn(e.declarationList.declarations,GGe)}function FG(e,t){return e.kind!==12?fg(t.text,e.pos):void 0}function zG(e,t){const r=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?ao(pb(t,e.pos),fg(t,e.pos)):fg(t,e.pos);return Un(r,i=>i.end<=e.end&&t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}var VGe=/^\/\/\/\s*/,jGe=/^\/\/\/\s*/,UGe=/^\/\/\/\s*/,HGe=/^\/\/\/\s*/,qGe=/^\/\/\/\s*/,JGe=/^\/\/\/\s*/;function Kh(e){if(183<=e.kind&&e.kind<=206)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==223;case 234:return $0e(e);case 169:return e.parent.kind===201||e.parent.kind===196;case 80:(e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e)&&(e=e.parent),C.assert(e.kind===80||e.kind===167||e.kind===212,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 167:case 212:case 110:{const{parent:t}=e;if(t.kind===187)return!1;if(t.kind===206)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return $0e(t);case 169:return e===t.constraint;case 346:return e===t.constraint;case 173:case 172:case 170:case 261:return e===t.type;case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:return e===t.type;case 180:case 181:case 182:return e===t.type;case 217:return e===t.type;case 214:case 215:case 216:return jn(t.typeArguments,e)}}}return!1}function $0e(e){return w4(e.parent)||rx(e.parent)||Gp(e.parent)&&!P6(e)}function Ab(e,t){return r(e);function r(i){switch(i.kind){case 254:return t(i);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return Jo(i,r)}}}function _ne(e,t){return r(e);function r(i){switch(i.kind){case 230:t(i);const o=i.expression;o&&r(o);return;case 267:case 265:case 268:case 266:return;default:if($o(i)){if(i.name&&i.name.kind===168){r(i.name.expression);return}}else Kh(i)||Jo(i,r)}}}function BG(e){return e&&e.kind===189?e.elementType:e&&e.kind===184?dg(e.typeArguments):void 0}function gne(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function $N(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function QN(e){return e.parent.kind===262&&e.parent.parent.kind===244}function yne(e){return Ir(e)?za(e.parent)&&Nr(e.parent.parent)&&lc(e.parent.parent)===2||QF(e.parent):!1}function QF(e){return Ir(e)?Nr(e)&&lc(e)===1:!1}function vne(e){return(yi(e)?ZR(e)&&Je(e.name)&&QN(e):Mo(e)?h1(e)&&Fc(e):Iu(e)&&h1(e))||QF(e)}function bne(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function GG(e,t){for(;;){if(t&&t(e),e.statement.kind!==257)return e.statement;e=e.statement}}function xS(e){return e&&e.kind===242&&$o(e.parent)}function bm(e){return e&&e.kind===175&&e.parent.kind===211}function ZF(e){return(e.kind===175||e.kind===178||e.kind===179)&&(e.parent.kind===211||e.parent.kind===232)}function Tne(e){return e&&e.kind===1}function Sne(e){return e&&e.kind===0}function tD(e,t,r,i){return qe(e?.properties,o=>{if(!Pc(o))return;const s=YN(o.name);return t===s||i&&i===s?r(o):void 0})}function ZN(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ni(t,za)}}function e6(e,t,r){return pk(e,t,i=>Nd(i.initializer)?mn(i.initializer.elements,o=>Oa(o)&&o.text===r):void 0)}function pk(e,t,r){return tD(ZN(e),t,r)}function pf(e){return Dn(e.parent,$o)}function Ene(e){return Dn(e.parent,Ls)}function _d(e){return Dn(e.parent,ui)}function Ane(e){return Dn(e.parent,t=>ui(t)||$o(t)?"quit":nc(t))}function t6(e){return Dn(e.parent,qR)}function n6(e){const t=Dn(e.parent,r=>ui(r)?"quit":Bc(r));return t&&ui(t.parent)?_d(t.parent):_d(t??e)}function Su(e,t,r){for(C.assert(e.kind!==308);;){if(e=e.parent,!e)return C.fail();switch(e.kind){case 168:if(r&&ui(e.parent.parent))return e;e=e.parent.parent;break;case 171:e.parent.kind===170&&Sc(e.parent.parent)?e=e.parent.parent:Sc(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function Ine(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function r6(e){Je(e)&&(Mc(e.parent)||rc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=Su(e,!0,!1);return Xi(t)}function xne(e){const t=Su(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function fk(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:e.parent.kind===170&&Sc(e.parent.parent)?e=e.parent.parent:Sc(e.parent)&&(e=e.parent);break}}}function zT(e){if(e.kind===219||e.kind===220){let t=e,r=e.parent;for(;r.kind===218;)t=r,r=r.parent;if(r.kind===214&&r.expression===t)return r}}function gp(e){const t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function mk(e){const t=e.kind;return(t===212||t===213)&&e.expression.kind===110}function i6(e){var t;return!!e&&yi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Rne(e){return!!e&&(Jd(e)||Pc(e))&&Nr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function hk(e){switch(e.kind){case 184:return e.typeName;case 234:return Ns(e.expression)?e.expression:void 0;case 80:case 167:return e}}function o6(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function _k(e,t,r,i){if(e&&rd(t)&&Qi(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return r!==void 0&&(e?Mc(r):ui(r)&&!OS(t)&&!SV(t));case 178:case 179:case 175:return t.body!==void 0&&r!==void 0&&(e?Mc(r):ui(r));case 170:return e?r!==void 0&&r.body!==void 0&&(r.kind===177||r.kind===175||r.kind===179)&&LS(r)!==t&&i!==void 0&&i.kind===264:!1}return!1}function nD(e,t,r,i){return mf(t)&&_k(e,t,r,i)}function gk(e,t,r,i){return nD(e,t,r,i)||eM(e,t,r)}function eM(e,t,r){switch(t.kind){case 264:return vt(t.members,i=>gk(e,i,t,r));case 232:return!e&&vt(t.members,i=>gk(e,i,t,r));case 175:case 179:case 177:return vt(t.parameters,i=>nD(e,i,t,r));default:return!1}}function rv(e,t){if(nD(e,t))return!0;const r=Eg(t);return!!r&&eM(e,r,t)}function VG(e,t,r){let i;if(yb(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=wS(r.members,t),u=mf(o)?o:s&&mf(s)?s:void 0;if(!u||t!==u)return!1;i=l?.parameters}else Ll(t)&&(i=t.parameters);if(nD(e,t,r))return!0;if(i){for(const o of i)if(!Rb(o)&&nD(e,o,t,r))return!0}return!1}function jG(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return jG(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function rD(e){const{parent:t}=e;return t.kind===287||t.kind===286||t.kind===288?t.tagName===e:!1}function k_(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!tp(e.parent)||e.parent.expression!==e;case 234:return!Gp(e.parent)&&!rx(e.parent);case 167:for(;e.parent.kind===167;)e=e.parent;return e.parent.kind===187||mI(e.parent)||ZM(e.parent)||i0(e.parent)||rD(e);case 312:for(;i0(e.parent);)e=e.parent;return e.parent.kind===187||mI(e.parent)||ZM(e.parent)||i0(e.parent)||rD(e);case 81:return Nr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===187||mI(e.parent)||ZM(e.parent)||i0(e.parent)||rD(e))return!0;case 9:case 10:case 11:case 15:case 110:return a6(e);default:return!1}}function a6(e){const{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:const r=t;return r.initializer===e&&r.initializer.kind!==262||r.condition===e||r.incrementor===e;case 250:case 251:const i=t;return i.initializer===e&&i.initializer.kind!==262||i.expression===e;case 217:case 235:return e===t.expression;case 240:return e===t.expression;case 168:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!Kh(t);case 305:return t.objectAssignmentInitializer===e;case 239:return e===t.expression;default:return k_(t)}}function s6(e){for(;e.kind===167||e.kind===80;)e=e.parent;return e.kind===187}function Dne(e){return F_(e)&&!!e.parent.moduleSpecifier}function BT(e){return e.kind===272&&e.moduleReference.kind===284}function tM(e){return C.assert(BT(e)),e.moduleReference.expression}function UG(e){return RS(e)&&_D(e.initializer).arguments[0]}function s1(e){return e.kind===272&&e.moduleReference.kind!==284}function Tg(e){return e?.kind===308}function wu(e){return Ir(e)}function Ir(e){return!!e&&!!(e.flags&524288)}function l6(e){return!!e&&!!(e.flags&134217728)}function c6(e){return!Vf(e)}function nM(e){return!!e&&!!(e.flags&16777216)}function d6(e){return Bp(e)&&Je(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function np(e,t){if(e.kind!==214)return!1;const{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;const o=i[0];return!t||ds(o)}function yk(e){return Q0e(e,!1)}function RS(e){return Q0e(e,!0)}function Cne(e){return qa(e)&&RS(e.parent.parent)}function Q0e(e,t){return yi(e)&&!!e.initializer&&np(t?_D(e.initializer):e.initializer,!0)}function vk(e){return cc(e)&&e.declarationList.declarations.length>0&&Hn(e.declarationList.declarations,t=>yk(t))}function bk(e){return e===39||e===34}function u6(e,t){return ES(t,e).charCodeAt(0)===34}function rM(e){return Nr(e)||Ys(e)||Je(e)||ea(e)}function Tk(e){return Ir(e)&&e.initializer&&Nr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Ns(e.name)&&iD(e.name,e.initializer.left)?e.initializer.right:e.initializer}function iM(e){const t=Tk(e);return t&>(t,Cb(e.name))}function KGe(e,t){return qe(e.properties,r=>Pc(r)&&Je(r.name)&&r.name.escapedText==="value"&&r.initializer&>(r.initializer,t))}function TI(e){if(e&&e.parent&&Nr(e.parent)&&e.parent.operatorToken.kind===64){const t=Cb(e.parent.left);return GT(e.parent.right,t)||XGe(e.parent.left,e.parent.right,t)}if(e&&ea(e)&&c1(e)){const t=KGe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function GT(e,t){if(ea(e)){const r=us(e.expression);return r.kind===219||r.kind===220?e:void 0}if(e.kind===219||e.kind===232||e.kind===220||za(e)&&(e.properties.length===0||t))return e}function XGe(e,t,r){const i=Nr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&>(t.right,r);if(i&&iD(e,t.left))return i}function Nne(e){const t=yi(e.parent)?e.parent.name:Nr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&>(e.right,Cb(t))&&Ns(t)&&iD(t,e.left)}function HG(e){if(Nr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Nr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Je(t.left))return t.left}else if(yi(e.parent))return e.parent.name}function iD(e,t){return Xh(e)&&Xh(t)?jf(e)===jf(t):hg(e)&&Mne(t)&&(t.expression.kind===110||Je(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?iD(e,Ek(t)):Mne(e)&&Mne(t)?ly(e)===ly(t)&&iD(e.expression,t.expression):!1}function Sk(e){for(;od(e,!0);)e=e.right;return e}function l1(e){return Je(e)&&e.escapedText==="exports"}function qG(e){return Je(e)&&e.escapedText==="module"}function Sg(e){return(qr(e)||JG(e))&&qG(e.expression)&&ly(e)==="exports"}function lc(e){const t=YGe(e);return t===5||Ir(e)?t:0}function c1(e){return Qe(e.arguments)===3&&qr(e.expression)&&Je(e.expression.expression)&&Kr(e.expression.expression)==="Object"&&Kr(e.expression.name)==="defineProperty"&&ff(e.arguments[1])&&d1(e.arguments[0],!0)}function Mne(e){return qr(e)||JG(e)}function JG(e){return zs(e)&&ff(e.argumentExpression)}function DS(e,t){return qr(e)&&(!t&&e.expression.kind===110||Je(e.name)&&d1(e.expression,!0))||p6(e,t)}function p6(e,t){return JG(e)&&(!t&&e.expression.kind===110||Ns(e.expression)||DS(e.expression,!0))}function d1(e,t){return Ns(e)||DS(e,t)}function Ek(e){return qr(e)?e.name:e.argumentExpression}function YGe(e){if(ea(e)){if(!c1(e))return 0;const t=e.arguments[0];return l1(t)||Sg(t)?8:DS(t)&&ly(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ys(e.left)||$Ge(Sk(e))?0:d1(e.left.expression,!0)&&ly(e.left)==="prototype"&&za(KG(e))?6:Ak(e.left)}function $Ge(e){return ZI(e)&&op(e.expression)&&e.expression.text==="0"}function f6(e){if(qr(e))return e.name;const t=us(e.argumentExpression);return op(t)||ds(t)?t:e}function ly(e){const t=f6(e);if(t){if(Je(t))return t.escapedText;if(ds(t)||op(t))return Pl(t.text)}}function Ak(e){if(e.expression.kind===110)return 4;if(Sg(e))return 2;if(d1(e.expression,!0)){if(Cb(e.expression))return 3;let t=e;for(;!Je(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&ly(t)==="exports")&&DS(e))return 1;if(d1(e,!0)||zs(e)&&v6(e))return 5}return 0}function KG(e){for(;Nr(e.right);)e=e.right;return e.right}function Ik(e){return Nr(e)&&lc(e)===3}function Pne(e){return Ir(e)&&e.parent&&e.parent.kind===245&&(!zs(e)||JG(e))&&!!wT(e.parent)}function oM(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Ir(t)&&!(r.flags&33554432))&&rM(r)&&!rM(t)||r.kind!==t.kind&&WGe(r))&&(e.valueDeclaration=t)}function Lne(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===263||yi(t)&&t.initializer&&$o(t.initializer)}function kne(e){switch(e?.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function SI(e){var t,r;switch(e.kind){case 261:case 209:return(t=Dn(e.initializer,i=>np(i,!0)))==null?void 0:t.arguments[0];case 273:case 279:case 352:return ni(e.moduleSpecifier,ds);case 272:return ni((r=ni(e.moduleReference,hy))==null?void 0:r.expression,ds);case 274:case 281:return ni(e.parent.moduleSpecifier,ds);case 275:case 282:return ni(e.parent.parent.moduleSpecifier,ds);case 277:return ni(e.parent.parent.parent.moduleSpecifier,ds);case 206:return sy(e)?e.argument.literal:void 0;default:C.assertNever(e)}}function aM(e){return xk(e)||C.failBadSyntaxKind(e.parent)}function xk(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return tp(e.parent)||np(e.parent,!1)?e.parent:void 0;case 202:if(!Oa(e))break;return ni(e.parent.parent,r_);default:return}}function Rk(e,t){return!!t.rewriteRelativeImportExtensions&&nf(e)&&!sd(e)&&g1(e)}function EI(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return e.moduleReference.kind===284?e.moduleReference.expression:void 0;case 206:return sy(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return e.name.kind===11?e.name:void 0;default:return C.assertNever(e)}}function oD(e){switch(e.kind){case 273:return e.importClause&&ni(e.importClause.namedBindings,Ng);case 272:return e;case 279:return e.exportClause&&ni(e.exportClause,F_);default:return C.assertNever(e)}}function u1(e){return(e.kind===273||e.kind===352)&&!!e.importClause&&!!e.importClause.name}function wne(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=Ng(e.namedBindings)?t(e.namedBindings):qe(e.namedBindings.elements,t);if(r)return r}}function AI(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return e.questionToken!==void 0}return!1}function II(e){const t=kD(e)?Rc(e.parameters):void 0,r=ni(t&&t.name,Je);return!!r&&r.escapedText==="new"}function Tm(e){return e.kind===347||e.kind===339||e.kind===341}function Dk(e){return Tm(e)||Im(e)}function QGe(e){return ad(e)&&Nr(e.expression)&&e.expression.operatorToken.kind===64?Sk(e.expression):void 0}function Z0e(e){return ad(e)&&Nr(e.expression)&&lc(e.expression)!==0&&Nr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function eSe(e){switch(e.kind){case 244:const t=xI(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function xI(e){return cc(e)?Rc(e.declarationList.declarations):void 0}function tSe(e){return mc(e)&&e.body&&e.body.kind===268?e.body:void 0}function aD(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function Ck(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function XG(e,t){let r;$N(e)&&tv(e)&&rf(e.initializer)&&(r=Xr(r,nSe(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(rf(i)&&(r=Xr(r,nSe(e,i.jsDoc))),i.kind===170){r=Xr(r,(t?dte:VR)(i));break}if(i.kind===169){r=Xr(r,(t?pte:ute)(i));break}i=YG(i)}return r||ie}function nSe(e,t){const r=Ga(t);return fi(t,i=>{if(i===r){const o=Un(i.tags,s=>ZGe(e,s));return i.tags===o?[i]:o}else return Un(i.tags,wD)})}function ZGe(e,t){return!(eP(t)||O4(t))||!t.parent||!gh(t.parent)||!zu(t.parent.parent)||t.parent.parent===e}function YG(e){const t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||tSe(t)||od(e))return t;if(t.parent&&(xI(t.parent)===e||od(t)))return t.parent;if(t.parent&&t.parent.parent&&(xI(t.parent.parent)||eSe(t.parent.parent)===e||Z0e(t.parent.parent)))return t.parent.parent}function Nk(e){if(e.symbol)return e.symbol;if(!Je(e.name))return;const t=e.name.escapedText,r=VT(e);if(!r)return;const i=mn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function m6(e){if(gh(e.parent)&&e.parent.tags){const t=mn(e.parent.tags,Tm);if(t)return t}return VT(e)}function $G(e){return TF(e,wD)}function VT(e){const t=jT(e);if(t)return Iu(t)&&t.type&&$o(t.type)?t.type:$o(t)?t:void 0}function jT(e){const t=CS(e);if(t)return Z0e(t)||QGe(t)||eSe(t)||xI(t)||tSe(t)||t}function CS(e){const t=sD(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===tl(r.jsDoc))return r}function sD(e){return Dn(e.parent,gh)}function One(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&mn(r,i=>i.name.escapedText===t)}function rSe(e){return!!e.typeArguments}var Wne=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Wne||{});function Fne(e){let t=e.parent;for(;;){switch(t.kind){case 227:const r=t,i=r.operatorToken.kind;return uy(i)&&r.left===e?r:void 0;case 225:case 226:const o=t,s=o.operator;return s===46||s===47?o:void 0;case 250:case 251:const l=t;return l.initializer===e?l:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Ib(e){const t=Fne(e);if(!t)return 0;switch(t.kind){case 227:const r=t.operatorToken.kind;return r===64||yM(r)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function xb(e){return!!Fne(e)}function eVe(e){const t=us(e.right);return t.kind===227&&nU(t.operatorToken.kind)}function QG(e){const t=Fne(e);return!!t&&od(t,!0)&&eVe(t)}function zne(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function p1(e){return qs(e)||$s(e)||pI(e)||rc(e)||kl(e)}function iSe(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Mk(e){return iSe(e,197)}function Um(e){return iSe(e,218)}function Bne(e){let t;for(;e&&e.kind===197;)t=e,e=e.parent;return[t,e]}function sM(e){for(;E1(e);)e=e.type;return e}function us(e,t){return Kl(e,t?-2147483647:1)}function ZG(e){return e.kind!==212&&e.kind!==213?!1:(e=Um(e.parent),e&&e.kind===221)}function NS(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function w_(e){return!Xi(e)&&!Zo(e)&&id(e.parent)&&e.parent.name===e}function lM(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(va(t))return t.parent;case 80:if(id(t))return t.name===e?t:void 0;if(Wu(t)){const r=t.parent;return _f(r)&&r.name===t?r:void 0}else{const r=t.parent;return Nr(r)&&lc(r)!==0&&(r.left.symbol||r.symbol)&&wo(r)===e?r:void 0}case 81:return id(t)&&t.name===e?t:void 0;default:return}}function Pk(e){return ff(e)&&e.parent.kind===168&&id(e.parent.parent)}function Gne(e){const t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function eV(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do e=e.parent;while(e.parent.kind===167);return eV(e)}}function h6(e){return Ns(e)||fc(e)}function Lk(e){const t=tV(e);return h6(t)}function tV(e){return dl(e)?e.expression:e.right}function Vne(e){return e.kind===305?e.name:e.kind===304?e.initializer:e.parent.right}function uh(e){const t=MS(e);if(t&&Ir(e)){const r=mte(e);if(r)return r.class}return t}function MS(e){const t=kk(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function lD(e){if(Ir(e))return hte(e).map(t=>t.class);{const t=kk(e.heritageClauses,119);return t?.types}}function cM(e){return yd(e)?dM(e)||ie:ui(e)&&ao(oI(uh(e)),lD(e))||ie}function dM(e){const t=kk(e.heritageClauses,96);return t?t.types:void 0}function kk(e,t){if(e){for(const r of e)if(r.token===t)return r}}function UT(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function rp(e){return 83<=e&&e<=166}function nV(e){return 19<=e&&e<=79}function _6(e){return rp(e)||nV(e)}function g6(e){return 128<=e&&e<=166}function rV(e){return rp(e)&&!g6(e)}function RI(e){const t=XE(e);return t!==void 0&&rV(t)}function iV(e){const t=$E(e);return!!t&&!g6(t)}function cD(e){return 2<=e&&e<=7}var jne=(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))(jne||{});function pc(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:di(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function uM(e){switch(e.kind){case 263:case 219:case 220:case 175:return e.body!==void 0&&e.asteriskToken===void 0&&di(e,1024)}return!1}function ff(e){return ds(e)||op(e)}function y6(e){return QT(e)&&(e.operator===40||e.operator===41)&&op(e.operand)}function cy(e){const t=wo(e);return!!t&&v6(t)}function v6(e){if(!(e.kind===168||e.kind===213))return!1;const t=zs(e)?us(e.argumentExpression):e.expression;return!ff(t)&&!y6(t)}function f1(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return Pl(e.text);case 168:const t=e.expression;return ff(t)?Pl(t.text):y6(t)?t.operator===41?_a(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return GI(e);default:return C.assertNever(e)}}function Xh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function jf(e){return hg(e)?Kr(e):_h(e)?zM(e):e.text}function pM(e){return hg(e)?e.escapedText:_h(e)?GI(e):Pl(e.text)}function wk(e,t){return`__#${Ta(e)}@${t}`}function fM(e){return po(e.escapedName,"__@")}function Une(e){return po(e.escapedName,"__#")}function tVe(e){return Je(e)?Kr(e)==="__proto__":Oa(e)&&e.text==="__proto__"}function b6(e,t){switch(e=Kl(e),e.kind){case 232:if(cH(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return typeof t=="function"?t(e):!0}function oV(e){switch(e.kind){case 304:return!tVe(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return Je(e.name)&&!!e.initializer;case 170:return Je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 209:return Je(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Je(e.left)}break;case 278:return!0}return!1}function Op(e,t){if(!oV(e))return!1;switch(e.kind){case 304:return b6(e.initializer,t);case 305:return b6(e.objectAssignmentInitializer,t);case 261:case 170:case 209:case 173:return b6(e.initializer,t);case 227:return b6(e.right,t);case 278:return b6(e.expression,t)}}function aV(e){return e.escapedText==="push"||e.escapedText==="unshift"}function HT(e){return Yh(e).kind===170}function Yh(e){for(;e.kind===209;)e=e.parent.parent;return e}function sV(e){const t=e.kind;return t===177||t===219||t===263||t===220||t===175||t===178||t===179||t===268||t===308}function Fs(e){return fh(e.pos)||fh(e.end)}var Hne=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Hne||{});function lV(e){const t=oSe(e),r=e.kind===215&&e.arguments!==void 0;return cV(e.kind,t,r)}function cV(e,t,r){switch(e){case 215:return r?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function mM(e){const t=oSe(e),r=e.kind===215&&e.arguments!==void 0;return Ok(e.kind,t,r)}function oSe(e){return e.kind===227?e.operatorToken.kind:e.kind===225||e.kind===226?e.operator:e.kind}var qne=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.LogicalOR=5]="LogicalOR",e[e.Coalesce=5]="Coalesce",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(qne||{});function Ok(e,t,r){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Wk(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return r?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function Wk(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function dD(e){return Un(e,t=>{switch(t.kind){case 295:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function hM(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(d){let _;if(d.file?_=r.get(d.file.fileName):_=e,!_)return;const h=ib(_,d,Us,Rre);if(h>=0)return _[h];if(~h>0&&V6(d,_[~h-1]))return _[~h-1]}function s(d){let _;d.file?(_=r.get(d.file.fileName),_||(_=[],r.set(d.file.fileName,_),nb(t,d.file.fileName,Bd))):(i&&(i=!1,e=e.slice()),_=e),nb(_,d,Rre,V6)}function l(){return i=!0,e}function u(d){if(d)return r.get(d)||[];const _=bs(t,h=>r.get(h));return e.length&&_.unshift(...e),_}}var nVe=/\$\{/g;function dV(e){return e.replace(nVe,"\\${")}function Jne(e){return!!((e.templateFlags||0)&2048)}function uV(e){return e&&!!(T1(e)?Jne(e):Jne(e.head)||vt(e.templateSpans,t=>Jne(t.literal)))}var rVe=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,iVe=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,oVe=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,aVe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function aSe(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function sVe(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return aVe.get(e)||aSe(e.charCodeAt(0))}function O_(e,t){const r=t===96?oVe:t===39?iVe:rVe;return e.replace(r,sVe)}var sSe=/[^\u0000-\u007F]/g;function T6(e,t){return e=O_(e,t),sSe.test(e)?e.replace(sSe,r=>aSe(r.charCodeAt(0))):e}var lVe=/["\u0000-\u001f\u2028\u2029\u0085]/g,cVe=/['\u0000-\u001f\u2028\u2029\u0085]/g,dVe=new Map(Object.entries({'"':""","'":"'"}));function uVe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function pVe(e){return e.charCodeAt(0)===0?"�":dVe.get(e)||uVe(e.charCodeAt(0))}function pV(e,t){const r=t===39?cVe:lVe;return e.replace(r,pVe)}function Sm(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&fVe(e.charCodeAt(0))?e.substring(1,t-1):e}function fVe(e){return e===39||e===34||e===96}function uD(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Fk=[""," "];function S6(e){const t=Fk[1];for(let r=Fk.length;r<=e;r++)Fk.push(Fk[r-1]+t);return Fk[e]}function zk(){return Fk[1].length}function Bk(e){var t,r,i,o,s,l=!1;function u(N){const P=cI(N);P.length>1?(o=o+P.length-1,s=t.length-N.length+Ga(P),i=s-t.length===0):i=!1}function d(N){N&&N.length&&(i&&(N=S6(r)+N,i=!1),t+=N,u(N))}function _(N){N&&(l=!1),d(N)}function h(N){N&&(l=!0),d(N)}function y(){t="",r=0,i=!0,o=0,s=0,l=!1}function E(N){N!==void 0&&(t+=N,u(N),l=!1)}function A(N){N&&N.length&&_(N)}function R(N){(!i||N)&&(t+=e,o++,s=t.length,i=!0,l=!1)}return y(),{write:_,rawWrite:E,writeLiteral:A,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*zk():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&pg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:_,writeOperator:_,writeParameter:_,writeProperty:_,writePunctuation:_,writeSpace:_,writeStringLiteral:_,writeSymbol:(N,P)=>_(N),writeTrailingSemicolon:_,writeComment:h}}function fV(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function m1(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function dy(e){return Gd(m1(e))}function mV(e,t,r){return t.moduleName||hV(e,t.fileName,r&&r.fileName)}function lSe(e,t){return e.getCanonicalFileName(bo(t,e.getCurrentDirectory()))}function Kne(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=EI(r);if(!(o&&ds(o)&&!nf(o.text)&&!lSe(e,i.path).includes(lSe(e,qc(e.getCommonSourceDirectory())))))return mV(e,i)}function hV(e,t,r){const i=d=>e.getCanonicalFileName(d),o=Os(r?ci(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=bo(t,e.getCurrentDirectory()),l=FR(o,s,o,i,!1),u=Au(l);return r?KE(u):u}function Xne(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Au(R6(e,t,i.outDir)):o=Au(e),o+r}function Yne(e,t){return E6(e,t.getCompilerOptions(),t)}function E6(e,t,r){const i=t.declarationDir||t.outDir,o=i?$ne(e,i,r.getCurrentDirectory(),r.getCommonSourceDirectory(),l=>r.getCanonicalFileName(l)):e,s=A6(o);return Au(o)+s}function A6(e){return tc(e,[".mjs",".mts"])?".d.mts":tc(e,[".cjs",".cts"])?".d.cts":tc(e,[".json"])?".d.json.ts":".d.ts"}function _V(e){return tc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:tc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:tc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function gV(e,t,r,i){return r?ub(i(),uf(r,e,t)):e}function I6(e,t){var r;if(e.paths)return e.baseUrl??C.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function x6(e,t,r){const i=e.getCompilerOptions();if(i.outFile){const o=Eu(i),s=i.emitDeclarationOnly||o===2||o===4;return Un(e.getSourceFiles(),l=>(s||!Vc(l))&&PS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return Un(o,s=>PS(s,e,r))}}function PS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&wu(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Vf(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(i.outFile)return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const o=bo(EP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=$ne(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(ry(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function R6(e,t,r){return $ne(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function $ne(e,t,r,i,o){let s=bo(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Qr(t,s)}function D6(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Dl(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function cSe(e,t,r){if(e.length>Vh(e)&&!r(e)){const i=ci(e);cSe(i,t,r),t(e)}}function yV(e,t,r,i,o,s){try{i(e,t,r)}catch{cSe(ci(ya(e)),o,s),i(e,t,r)}}function _M(e,t){const r=ug(e);return MN(r,t)}function pD(e,t){return MN(e,t)}function Eg(e){return mn(e.members,t=>kl(t)&&vm(t.body))}function gM(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&Rb(e.parameters[0]);return e.parameters[t?1:0]}}function Qne(e){const t=gM(e);return t&&t.type}function LS(e){if(e.parameters.length&&!hv(e)){const t=e.parameters[0];if(Rb(t))return t}}function Rb(e){return Db(e.name)}function Db(e){return!!e&&e.kind===80&&vV(e)}function DI(e){return!!Dn(e,t=>t.kind===187?!0:t.kind===80||t.kind===167?!1:"quit")}function kS(e){if(!Db(e))return!1;for(;Wu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===187}function vV(e){return e.escapedText==="this"}function wS(e,t){let r,i,o,s;return cy(t)?(r=t,t.kind===178?o=t:t.kind===179?s=t:C.fail("Accessor has wrong kind")):qe(e,l=>{if(yb(l)&&ua(l)===ua(t)){const u=f1(l.name),d=f1(t.name);u===d&&(r?i||(i=l):r=l,l.kind===178&&!o&&(o=l),l.kind===179&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Cc(e){if(!Ir(e)&&rc(e)||Im(e))return;const t=e.type;return t||!Ir(e)?t:GN(e)?e.typeExpression&&e.typeExpression.type:Zy(e)}function Zne(e){return e.type}function Wp(e){return hv(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Ir(e)?G2(e):void 0)}function C6(e){return fi(OT(e),t=>mVe(t)?t.typeParameters:void 0)}function mVe(e){return xm(e)&&!(e.parent.kind===321&&(e.parent.tags.some(Tm)||e.parent.tags.some(wD)))}function bV(e){const t=gM(e);return t&&Cc(t)}function hVe(e,t,r,i){_Ve(e,t,r.pos,i)}function _Ve(e,t,r,i){i&&i.length&&r!==i[0].pos&&pD(e,r)!==pD(e,i[0].pos)&&t.writeLine()}function ere(e,t,r,i){r!==i&&pD(e,r)!==pD(e,i)&&t.writeLine()}function gVe(e,t,r,i,o,s,l,u){if(i&&i.length>0){let d=!1;for(const _ of i)d&&(r.writeSpace(" "),d=!1),u(e,t,r,_.pos,_.end,l),_.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function tre(e,t,r,i,o,s,l){let u,d;if(l?o.pos===0&&(u=Un(fg(e,o.pos),_)):u=fg(e,o.pos),u){const h=[];let y;for(const E of u){if(y){const A=pD(t,y.end);if(pD(t,E.pos)>=A+2)break}h.push(E),y=E}if(h.length){const E=pD(t,Ga(h).end);pD(t,wa(e,o.pos))>=E+2&&(hVe(t,r,o,u),gVe(e,t,r,h,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:Ga(h).end})}}return d;function _(h){return jF(e,h.pos)}}function fD(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=zR(t,i),u=t.length;let d;for(let _=i,h=l.line;_0){let R=A%zk();const N=S6((A-R)/zk());for(r.rawWrite(N);R;)r.rawWrite(" "),R--}else r.rawWrite("")}yVe(e,o,r,s,_,y),_=y}}else r.writeComment(e.substring(i,o))}function yVe(e,t,r,i,o,s){const l=Math.min(t,s-1),u=e.substring(o,l).trim();u?(r.writeComment(u),l!==t&&r.writeLine()):r.rawWrite(i)}function dSe(e,t,r){let i=0;for(;t=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=EV(e)|536870912),r||t&&Ir(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=uSe(e)|268435456),pSe(e.modifierFlagsCache)):vVe(e.modifierFlagsCache))}function Ud(e){return ire(e,!0)}function ore(e){return ire(e,!0,!0)}function iv(e){return ire(e,!1)}function uSe(e){let t=0;return e.parent&&!Zi(e)&&(Ir(e)&&(_te(e)&&(t|=8388608),gte(e)&&(t|=16777216),yte(e)&&(t|=33554432),vte(e)&&(t|=67108864),bte(e)&&(t|=134217728)),Tte(e)&&(t|=65536)),t}function vVe(e){return e&65535}function pSe(e){return e&131071|(e&260046848)>>>23}function bVe(e){return pSe(uSe(e))}function are(e){return EV(e)|bVe(e)}function EV(e){let t=Rm(e)?Qh(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Qh(e){let t=0;if(e)for(const r of e)t|=NI(r.kind);return t}function NI(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function Gk(e){return e===57||e===56}function sre(e){return Gk(e)||e===54}function yM(e){return e===76||e===77||e===78}function AV(e){return Nr(e)&&yM(e.operatorToken.kind)}function M6(e){return Gk(e)||e===61}function Vk(e){return Nr(e)&&M6(e.operatorToken.kind)}function uy(e){return e>=64&&e<=79}function IV(e){const t=xV(e);return t&&!t.isImplements?t.class:void 0}function xV(e){if(my(e)){if(Gp(e.parent)&&ui(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(rx(e.parent)){const t=jT(e.parent);if(t&&ui(t))return{class:t,isImplements:!1}}}}function od(e,t){return Nr(e)&&(t?e.operatorToken.kind===64:uy(e.operatorToken.kind))&&ep(e.left)}function ov(e){if(od(e,!0)){const t=e.left.kind;return t===211||t===210}return!1}function P6(e){return IV(e)!==void 0}function Ns(e){return e.kind===80||Uk(e)}function Ou(e){switch(e.kind){case 80:return e;case 167:do e=e.left;while(e.kind!==80);return e;case 212:do e=e.expression;while(e.kind!==80);return e}}function jk(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===237||e.kind===212&&jk(e.expression)||e.kind===218&&jk(e.expression)}function Uk(e){return qr(e)&&Je(e.name)&&Ns(e.expression)}function Hk(e){if(qr(e)){const t=Hk(e.expression);if(t!==void 0)return t+"."+kp(e.name)}else if(zs(e)){const t=Hk(e.expression);if(t!==void 0&&Tc(e.argumentExpression))return t+"."+f1(e.argumentExpression)}else{if(Je(e))return Vi(e.escapedText);if(_h(e))return zM(e)}}function Cb(e){return DS(e)&&ly(e)==="prototype"}function vM(e){return e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e||e.parent.kind===237&&e.parent.name===e}function RV(e){return!!e.parent&&(qr(e.parent)&&e.parent.name===e||zs(e.parent)&&e.parent.argumentExpression===e)}function lre(e){return Wu(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e||i0(e.parent)&&e.parent.right===e}function L6(e){return Nr(e)&&e.operatorToken.kind===104}function cre(e){return L6(e.parent)&&e===e.parent.right}function DV(e){return e.kind===211&&e.properties.length===0}function dre(e){return e.kind===210&&e.elements.length===0}function bM(e){if(!(!TVe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function TVe(e){return e&&Qe(e.declarations)>0&&di(e.declarations[0],2048)}function k6(e){return mn(XVe,t=>xl(e,t))}function SVe(e){const t=[],r=e.length;for(let i=0;i>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):C.assert(!1,"Unexpected code point")}return t}var MI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ure(e){let t="";const r=SVe(e);let i=0;const o=r.length;let s,l,u,d;for(;i>2,l=(r[i]&3)<<4|r[i+1]>>4,u=(r[i+1]&15)<<2|r[i+2]>>6,d=r[i+2]&63,i+1>=o?u=d=64:i+2>=o&&(d=64),t+=MI.charAt(s)+MI.charAt(l)+MI.charAt(u)+MI.charAt(d),i+=3;return t}function EVe(e){let t="",r=0;const i=e.length;for(;r>4&3,h=(l&15)<<4|u>>2&15,y=(u&3)<<6|d&63;h===0&&u!==0?i.push(_):y===0&&d!==0?i.push(_,h):i.push(_,h,y),o+=4}return EVe(i)}function CV(e,t){const r=Bo(t)?t:t.readFile(e);if(!r)return;let i=qk(r);if(i===void 0){const o=gU(e,r);o.error||(i=o.config)}return i}function mD(e,t){return CV(e,t)||{}}function qk(e){try{return JSON.parse(e)}catch{return}}function ph(e,t){return!t.directoryExists||t.directoryExists(e)}var AVe=`\r `,IVe=` `;function av(e){switch(e.newLine){case 0:return AVe;case 1:case void 0:return IVe}}function Uf(e,t=e){return C.assert(t>=e||t===-1),{pos:e,end:t}}function w6(e,t){return Uf(e.pos,t)}function qT(e,t){return Uf(t,e.end)}function py(e){const t=Rm(e)?ga(e.modifiers,Bc):void 0;return t&&!fh(t.end)?qT(e,t.end):e}function Zh(e){if(Mo(e)||Ll(e))return qT(e,e.name.pos);const t=Rm(e)?tl(e.modifiers):void 0;return t&&!fh(t.end)?qT(e,t.end):py(e)}function NV(e,t){return Uf(e,e+_a(t).length)}function _1(e,t){return hre(e,e,t)}function O6(e,t,r){return Hf(TM(e,r,!1),TM(t,r,!1),r)}function mre(e,t,r){return Hf(e.end,t.end,r)}function hre(e,t,r){return Hf(TM(e,r,!1),t.end,r)}function Jk(e,t,r){return Hf(e.end,TM(t,r,!1),r)}function MV(e,t,r,i){const o=TM(t,r,i);return PN(r,e.end,o)}function fSe(e,t,r){return PN(r,e.end,t.end)}function _re(e,t){return!Hf(e.pos,e.end,t)}function Hf(e,t,r){return PN(r,e,t)===0}function TM(e,t,r){return fh(e.pos)?-1:wa(t.text,e.pos,!1,r)}function gre(e,t,r,i){const o=wa(r.text,e,!1,i),s=xVe(o,t,r);return PN(r,s??t,o)}function yre(e,t,r,i){const o=wa(r.text,e,!1,i);return PN(r,e,Math.min(t,o))}function ip(e,t){return PV(e.pos,e.end,t)}function PV(e,t,r){return e<=r.pos&&t>=r.end}function xVe(e,t=0,r){for(;e-- >t;)if(!pg(r.text.charCodeAt(e)))return e}function LV(e){const t=jo(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function SM(e){return Un(e.declarations,Kk)}function Kk(e){return yi(e)&&e.initializer!==void 0}function kV(e){return e.watch&&Cs(e,"watch")}function Hm(e){e.close()}function Bl(e){return e.flags&33554432?e.links.checkFlags:0}function qf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&mn(e.declarations,bp)||e.flags&32768&&mn(e.declarations,Xf)||e.valueDeclaration,i=kT(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Bl(e)&6){const r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function Rd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function hD(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function W6(e){return EM(e)===1}function PI(e){return EM(e)!==0}function EM(e){const{parent:t}=e;switch(t?.kind){case 218:return EM(t);case 226:case 225:const{operator:r}=t;return r===46||r===47?2:0;case 227:const{left:i,operatorToken:o}=t;return i===e&&uy(o.kind)?o.kind===64?1:2:0;case 212:return t.name!==e?0:EM(t);case 304:{const s=EM(t.parent);return e===t.name?RVe(s):s}case 305:return e===t.objectAssignmentInitializer?0:EM(t.parent);case 210:return EM(t);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function RVe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return C.assertNever(e)}}function wV(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(!wV(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function yp(e,t){e.forEach(t),e.clear()}function Ag(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t?.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function AM(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 vre(e){if(e.flags&32){const t=fy(e);return!!t&&di(t,64)}return!1}function fy(e){var t;return(t=e.declarations)==null?void 0:t.find(ui)}function Hr(e){return e.flags&3899393?e.objectFlags:0}function F6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Aw(e.declarations[0])}function bre({moduleSpecifier:e}){return Oa(e)?e.text:Rl(e)}function OV(e){let t;return Jo(e,r=>{vm(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(vm(r[i])){t=r[i];break}}),t}function Em(e,t){return e.has(t)?!1:(e.add(t),!0)}function LI(e){return ui(e)||yd(e)||Fu(e)}function WV(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Ys(e){return e.kind===212||e.kind===213}function FV(e){return e.kind===212?e.name:(C.assert(e.kind===213),e.argumentExpression)}function z6(e){return e.kind===276||e.kind===280}function _D(e){for(;Ys(e);)e=e.expression;return e}function Tre(e,t){if(Ys(e.parent)&&RV(e))return r(e.parent);function r(i){if(i.kind===212){const o=t(i.name);if(o!==void 0)return o}else if(i.kind===213)if(Je(i.argumentExpression)||ds(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ys(i.expression))return r(i.expression);if(Je(i.expression))return t(i.expression)}}function gD(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function DVe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function CVe(e,t){this.flags=t,(C.isDebugging||xr)&&(this.checker=e)}function NVe(e,t){this.flags=t,C.isDebugging&&(this.checker=e)}function Sre(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 MVe(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 PVe(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 LVe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}var Dd={getNodeConstructor:()=>Sre,getTokenConstructor:()=>MVe,getIdentifierConstructor:()=>PVe,getPrivateIdentifierConstructor:()=>Sre,getSourceFileConstructor:()=>Sre,getSymbolConstructor:()=>DVe,getTypeConstructor:()=>CVe,getSignatureConstructor:()=>NVe,getSourceMapSourceConstructor:()=>LVe},mSe=[];function hSe(e){mSe.push(e),e(Dd)}function Ere(e){Object.assign(Dd,e),qe(mSe,t=>t(Dd))}function Ig(e,t){return e.replace(/\{(\d+)\}/g,(r,i)=>""+C.checkDefined(t[+i]))}var B6;function Are(e){B6=e}function Ire(e){!B6&&e&&(B6=e())}function Ho(e){return B6&&B6[e.key]||e.message}function kI(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),dne(t,r,i);let l=Ho(o);return vt(s)&&(l=Ig(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function kVe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function _Se(e,t){const r=t.fileName||"",i=t.text.length;C.assertEqual(e.fileName,r),C.assertLessThanOrEqual(e.start,i),C.assertLessThanOrEqual(e.start+e.length,i);const o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(const s of e.relatedInformation)kVe(s)&&s.fileName===r?(C.assertLessThanOrEqual(s.start,i),C.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(_Se(s,t))):o.relatedInformation.push(s)}return o}function wI(e,t){const r=[];for(const i of e)r.push(_Se(i,t));return r}function zc(e,t,r,i,...o){dne(e.text,t,r);let s=Ho(i);return vt(o)&&(s=Ig(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function OI(e,...t){let r=Ho(e);return vt(t)&&(r=Ig(r,t)),r}function Dl(e,...t){let r=Ho(e);return vt(t)&&(r=Ig(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function G6(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 qo(e,t,...r){let i=Ho(t);return vt(r)&&(i=Ig(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function xre(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function zV(e){return e.file?e.file.path:void 0}function IM(e,t){return Rre(e,t)||wVe(e,t)||0}function Rre(e,t){const r=BV(e),i=BV(t);return Bd(zV(e),zV(t))||Hs(e.start,t.start)||Hs(e.length,t.length)||Hs(r,i)||OVe(e,t)||0}function wVe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Hs(t.relatedInformation.length,e.relatedInformation.length)||qe(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return IM(r,o)})||0:e.relatedInformation?-1:1}function OVe(e,t){let r=GV(e),i=GV(t);typeof r!="string"&&(r=r.messageText),typeof i!="string"&&(i=i.messageText);const o=typeof e.messageText!="string"?e.messageText.next:void 0,s=typeof t.messageText!="string"?t.messageText.next:void 0;let l=Bd(r,i);return l||(l=WVe(o,s),l)?l:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function WVe(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:gSe(e,t)||ySe(e,t)}function gSe(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let r=Hs(t.length,e.length);if(r)return r;for(let i=0;i{o.externalModuleIndicator=ww(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=ww(o)};case 2:const t=[ww];(e.jsx===4||e.jsx===5)&&t.push(zVe),t.push(BVe);const r=Np(...t);return o=>{o.externalModuleIndicator=r(o,e)}}}function VV(e){const t=su(e);return 3<=t&&t<=99||$k(e)||Qk(e)}function DTt(e){return e}var Cd={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Cd.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Cd.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;const t=Cd.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Cd.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Cd.esModuleInterop.computeValue(e)||Cd.module.computeValue(e)===4||Cd.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Cd.moduleResolution.computeValue(e);if(!yD(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{const t=Cd.moduleResolution.computeValue(e);if(!yD(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(Cd.module.computeValue(e)){case 102:case 199:return!0}return Cd.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Cd.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Cd.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Cd.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Hd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Hd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Hd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Hd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Hd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Hd(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Hd(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Hd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Hd(e,"useUnknownInCatchVariables")}},xM=Cd,Dre=Cd.allowImportingTsExtensions.computeValue,Va=Cd.target.computeValue,Eu=Cd.module.computeValue,su=Cd.moduleResolution.computeValue,Cre=Cd.moduleDetection.computeValue,Am=Cd.isolatedModules.computeValue,e_=Cd.esModuleInterop.computeValue,WI=Cd.allowSyntheticDefaultImports.computeValue,$k=Cd.resolvePackageJsonExports.computeValue,Qk=Cd.resolvePackageJsonImports.computeValue,WS=Cd.resolveJsonModule.computeValue,vp=Cd.declaration.computeValue,Nb=Cd.preserveConstEnums.computeValue,FS=Cd.incremental.computeValue,j6=Cd.declarationMap.computeValue,Mb=Cd.allowJs.computeValue,Zk=Cd.useDefineForClassFields.computeValue;function ew(e){return e>=5&&e<=99}function U6(e){switch(Eu(e)){case 0:case 4:case 3:return!1}return!0}function Nre(e){return e.allowUnreachableCode===!1}function Mre(e){return e.allowUnusedLabels===!1}function yD(e){return e>=3&&e<=99||e===100}function Pre(e){return 101<=e&&e<=199||e===200||e===99}function Hd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function H6(e){return Jc(uU.type,(t,r)=>t===e?r:void 0)}function jV(e){return e.useDefineForClassFields!==!1&&Va(e)>=9}function Lre(e,t){return _I(t,e,Loe)}function kre(e,t){return _I(t,e,koe)}function wre(e,t){return _I(t,e,woe)}function q6(e,t){return t.strictFlag?Hd(e,t.name):t.allowJsFlag?Mb(e):e[t.name]}function J6(e){const t=e.jsx;return t===2||t===4||t===5}function tw(e,t){const r=t?.pragmas.get("jsximportsource"),i=No(r)?r[r.length-1]:r,o=t?.pragmas.get("jsxruntime"),s=No(o)?o[o.length-1]:o;if(s?.arguments.factory!=="classic")return e.jsx===4||e.jsx===5||e.jsxImportSource||i||s?.arguments.factory==="automatic"?i?.arguments.factory||e.jsxImportSource||"react":void 0}function K6(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function UV(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,_)=>(o||(o=new Map)).set(d,_),setSymlinkedDirectory:(d,_)=>{let h=Os(d,e,t);wM(h)||(h=qc(h),_!==!1&&!r?.has(h)&&(i||(i=hm())).add(_.realPath,d),(r||(r=new Map)).set(h,_))},setSymlinksFromResolutions(d,_,h){C.assert(!s),s=!0,d(y=>u(this,y.resolvedModule)),_(y=>u(this,y.resolvedTypeReferenceDirective)),h.forEach(y=>u(this,y.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s,setSymlinksFromResolution(d){u(this,d)},hasAnySymlinks:l};function l(){return!!o?.size||!!r&&!!Jc(r,d=>!!d)}function u(d,_){if(!_||!_.originalPath||!_.resolvedFileName)return;const{resolvedFileName:h,originalPath:y}=_;d.setSymlinkedFile(Os(y,e,t),h);const[E,A]=GVe(h,y,e,t)||ie;E&&A&&d.setSymlinkedDirectory(A,{real:qc(E),realPath:qc(Os(E,e,t))})}}function GVe(e,t,r,i){const o=Vd(bo(e,r)),s=Vd(bo(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!bSe(o[o.length-2],i)&&!bSe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[LT(o),LT(s)]:void 0}function bSe(e,t){return e!==void 0&&(t(e)==="node_modules"||po(e,"@"))}function VVe(e){return O9(e.charCodeAt(0))?e.slice(1):void 0}function qV(e,t,r){const i=d9(e,t,r);return i===void 0?void 0:VVe(i)}var Ore=/[^\w\s/]/g;function TSe(e){return e.replace(Ore,jVe)}function jVe(e){return"\\"+e}var UVe=[42,63],HVe=["node_modules","bower_components","jspm_packages"],Wre=`(?!(?:${HVe.join("|")})(?:/|$))`,SSe={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${Wre}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>zre(e,SSe.singleAsteriskRegexFragment)},ESe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${Wre}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>zre(e,ESe.singleAsteriskRegexFragment)},ASe={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>zre(e,ASe.singleAsteriskRegexFragment)},Fre={files:SSe,directories:ESe,exclude:ASe};function RM(e,t,r){const i=X6(e,t,r);return!i||!i.length?void 0:`^(?:${i.map(l=>`(?:${l})`).join("|")})${r==="exclude"?"(?:$|/)":"$"}`}function X6(e,t,r){if(!(e===void 0||e.length===0))return fi(e,i=>i&&Y6(i,t,r,Fre[r]))}function JV(e){return!/[.*?]/.test(e)}function KV(e,t,r){const i=e&&Y6(e,t,r,Fre[r]);return i&&`^(?:${i})${r==="exclude"?"(?:$|/)":"$"}`}function Y6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=Fre[r]){let l="",u=!1;const d=cF(e,t),_=Ga(d);if(r!=="exclude"&&_==="**")return;d[0]=Qy(d[0]),JV(_)&&d.push("**","*");let h=0;for(let y of d){if(y==="**")l+=o;else if(r==="directories"&&(l+="(?:",h++),u&&(l+=Xs),r!=="exclude"){let E="";y.charCodeAt(0)===42?(E+="(?:[^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(E+="[^./]",y=y.substr(1)),E+=y.replace(Ore,s),E!==y&&(l+=Wre),l+=E}else l+=y.replace(Ore,s);u=!0}for(;h>0;)l+=")?",h--;return l}function zre(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function $6(e,t,r,i,o){e=ya(e),o=ya(o);const s=Qr(o,e);return{includeFilePatterns:Yt(X6(r,s,"files"),l=>`^${l}$`),includeFilePattern:RM(r,s,"files"),includeDirectoryPattern:RM(r,s,"directories"),excludePattern:RM(t,s,"exclude"),basePaths:qVe(e,r,i)}}function sv(e,t){return new RegExp(e,t?"":"i")}function Bre(e,t,r,i,o,s,l,u,d){e=ya(e),s=ya(s);const _=$6(e,r,i,o,s),h=_.includeFilePatterns&&_.includeFilePatterns.map(k=>sv(k,o)),y=_.includeDirectoryPattern&&sv(_.includeDirectoryPattern,o),E=_.excludePattern&&sv(_.excludePattern,o),A=h?h.map(()=>[]):[[]],R=new Map,N=Gd(o);for(const k of _.basePaths)P(k,Qr(s,k),l);return Yo(A);function P(k,F,W){const G=N(d(F));if(R.has(G))return;R.set(G,!0);const{files:j,directories:J}=u(k);for(const Z of Cp(j,Bd)){const q=Qr(k,Z),ve=Qr(F,Z);if(!(t&&!tc(q,t))&&!(E&&E.test(ve)))if(!h)A[0].push(q);else{const oe=ho(h,K=>K.test(ve));oe!==-1&&A[oe].push(q)}}if(!(W!==void 0&&(W--,W===0)))for(const Z of Cp(J,Bd)){const q=Qr(k,Z),ve=Qr(F,Z);(!y||y.test(ve))&&(!E||!E.test(ve))&&P(q,ve,W)}}}function qVe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=Pp(s)?s:ya(Qr(e,s));o.push(JVe(l))}o.sort(PR(!r));for(const s of o)Hn(i,l=>!gm(l,s,e,!r))&&i.push(s)}return i}function JVe(e){const t=Gi(e,UVe);return t<0?OR(e)?Qy(ci(e)):e:e.substring(0,e.lastIndexOf(Xs,t))}function Q6(e,t){return t||Z6(e)||3}function Z6(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var e4=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],XV=Yo(e4),KVe=[...e4,[".json"]],XVe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],YVe=[[".js",".jsx"],[".mjs"],[".cjs"]],vD=Yo(YVe),YV=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],$Ve=[...YV,[".json"]],t4=[".d.ts",".d.cts",".d.mts"],nw=[".ts",".cts",".mts",".tsx"],n4=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function DM(e,t){const r=e&&Mb(e);if(!t||t.length===0)return r?YV:e4;const i=r?YV:e4,o=Yo(i);return[...i,...Ei(t,l=>l.scriptKind===7||r&&QVe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function rw(e,t){return!e||!WS(e)?t:t===YV?$Ve:t===e4?KVe:[...t,[".json"]]}function QVe(e){return e===1||e===2}function xg(e){return vt(vD,t=>xl(e,t))}function g1(e){return vt(XV,t=>xl(e,t))}function Gre(e){return vt(nw,t=>xl(e,t))&&!sd(e)}var Vre=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Vre||{});function ZVe({imports:e},t=Np(xg,g1)){return Ln(e,({text:r})=>nf(r)&&!tc(r,n4)?t(r):void 0)||!1}function jre(e,t,r,i){const o=su(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return KD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!KD(r))return i&&ZVe(i)?2:0;return l();function l(){let u=!1;const d=i?.imports.length?i.imports:i&&wu(i)?eje(i).map(_=>_.arguments[0]):ie;for(const _ of d)if(nf(_.text)){if(s&&t===1&&LH(i,_,r)===99||tc(_.text,n4))continue;if(g1(_.text))return 3;xg(_.text)&&(u=!0)}return u?2:0}}function eje(e){let t=0,r;for(const i of e.statements){if(t>3)break;vk(i)?r=ao(r,i.declarationList.declarations.map(o=>o.initializer)):ad(i)&&np(i.expression,!0)?r=Vn(r,i.expression):t++}return r||ie}function $V(e,t,r){if(!e)return!1;const i=DM(t,r);for(const o of Yo(rw(t,i)))if(xl(e,o))return!0;return!1}function ISe(e){const t=e.match(/\//g);return t?t.length:0}function iw(e,t){return Hs(ISe(e),ISe(t))}var Ure=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Au(e){for(const t of Ure){const r=Hre(e,t);if(r!==void 0)return r}return e}function Hre(e,t){return xl(e,t)?ow(e,t):void 0}function ow(e,t){return e.substring(0,e.length-t.length)}function lv(e,t){return C2(e,t,Ure,!1)}function FI(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)}}var xSe=new WeakMap;function aw(e){let t=xSe.get(e);if(t!==void 0)return t;let r,i;const o=Bh(e);for(const s of o){const l=FI(s);l!==void 0&&(typeof l=="string"?(r??(r=new Set)).add(l):(i??(i=[])).push(l))}return xSe.set(e,t={matchableStringSet:r,patterns:i}),t}function fh(e){return!(e>=0)}function r4(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||po(e,".d.")&&nl(e,".ts")}function CM(e){return r4(e)||e===".json"}function NM(e){const t=Rg(e);return t!==void 0?t:C.fail(`File ${e} has unknown extension.`)}function RSe(e){return Rg(e)!==void 0}function Rg(e){return mn(Ure,t=>xl(e,t))}function MM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var qre={files:ie,directories:ie};function QV(e,t){const{matchableStringSet:r,patterns:i}=e;if(r?.has(t))return t;if(!(i===void 0||i.length===0))return c9(i,o=>o,t)}function ZV(e,t){const r=e.indexOf(t);return C.assert(r!==-1),e.slice(r)}function pa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),C.assert(e.relatedInformation!==ie,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Jre(e,t){C.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;oi&&(i=s)}return{min:r,max:i}}function ej(e){return{pos:Sb(e),end:e.end}}function tj(e,t){const r=t.pos-1,i=Math.min(e.text.length,wa(e.text,t.end)+1);return{pos:r,end:i}}function bD(e,t,r){return DSe(e,t,r,!1)}function Kre(e,t,r){return DSe(e,t,r,!0)}function DSe(e,t,r,i){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!i&&t.noCheck||r.isSourceOfProjectReferenceRedirect(e.fileName)||!PM(e,t)}function PM(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;const i=(e.scriptKind===1||e.scriptKind===2)&&MM(e,t);return KN(e,t.checkJs)||i||e.scriptKind===7}function i4(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&uZ(e,t,i4)}function LM(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 _=e.length-1;let h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,_)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let _=i-1,h=0;_>=r;_--,h+=t){const y=h>>>4,E=e.charCodeAt(_),R=(E<=57?E-48:10+E-(E<=70?65:97))<<(h&15);s[y]|=R;const N=R>>>16;N&&(s[y+1]|=N)}let l="",u=s.length-1,d=!0;for(;d;){let _=0;d=!1;for(let h=u;h>=0;h--){const y=_<<16|s[h],E=y/10|0;s[h]=E,_=y-E*10,E&&!d&&(u=h,d=!0)}l=_+l}return l}function zS({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Xre(e){if(o4(e,!1))return nj(e)}function nj(e){const t=e.startsWith("-"),r=LM(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function o4(e,t){if(e==="")return!1;const r=mg(99,!1);let i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan();const s=o===41;s&&(o=r.scan());const l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===zS({negative:s,base10Value:LM(r.getTokenValue())}))}function JT(e){return!!(e.flags&33554432)||nM(e)||s6(e)||rje(e)||nje(e)||!(k_(e)||tje(e))}function tje(e){return Je(e)&&Jd(e.parent)&&e.parent.name===e}function nje(e){for(;e.kind===80||e.kind===212;)e=e.parent;if(e.kind!==168)return!1;if(di(e.parent,64))return!0;const t=e.parent.parent.kind;return t===265||t===188}function rje(e){if(e.kind!==80)return!1;const t=Dn(e.parent,r=>{switch(r.kind){case 299:return!0;case 212:case 234:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===265}function Yre(e){return Bp(e)&&Je(e.typeName)}function $re(e,t=sb){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;ie.includes(t))}function eie(e){if(!e.parent)return;switch(e.kind){case 169:const{parent:r}=e;return r.kind===196?void 0:r.typeParameters;case 170:return e.parent.parameters;case 205:return e.parent.templateSpans;case 240:return e.parent.templateSpans;case 171:{const{parent:i}=e;return YS(i)?i.modifiers:void 0}case 299:return e.parent.heritageClauses}const{parent:t}=e;if(KR(e))return N1(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return bS(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return Ci(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return Z2(e)?t.children:void 0;case 287:case 286:return Ci(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:return t.statements;case 270:return t.clauses;case 264:case 232:return Sc(e)?t.members:void 0;case 267:return _y(e)?t.members:void 0;case 308:return t.statements}}function a4(e){if(!e.typeParameters){if(vt(e.parameters,t=>!Cc(t)))return!0;if(e.kind!==220){const t=Rc(e.parameters);if(!(t&&Rb(t)))return!0}}return!1}function OM(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function tie(e){return e.kind===261&&e.parent.kind===300}function Pb(e){return e.kind===219||e.kind===220}function BS(e){return e.replace(/\$/g,()=>"\\$")}function Dg(e){return(+e).toString()===e}function sw(e,t,r,i,o){const s=o&&e==="new";return!s&&_p(e,t)?L.createIdentifier(e):!i&&!s&&Dg(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function WM(e){return!!(e.flags&262144&&e.isThisType)}function s4(e){let t=0,r=0,i=0,o=0,s;(_=>{_[_.BeforeNodeModules=0]="BeforeNodeModules",_[_.NodeModules=1]="NodeModules",_[_.Scope=2]="Scope",_[_.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,u=0,d=0;for(;u>=0;)switch(l=u,u=e.indexOf("/",l+1),d){case 0:e.indexOf(Pg,l)===l&&(t=l,r=u,d=1);break;case 1:case 2:d===1&&e.charAt(l+1)==="@"?d=2:(i=u,d=3);break;case 3:e.indexOf(Pg,l)===l?d=1:d=3;break}return o=l,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function zI(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return e.phaseModifier===156;case 277:return e.parent.parent.phaseModifier===156;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function lw(e){return t0(e)||cc(e)||rc(e)||Mc(e)||yd(e)||zI(e)||mc(e)&&!IS(e)&&!L_(e)}function cw(e){if(!GN(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===317}function oj(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&C_(e.charCodeAt(1),t):C_(r,t)}function nie(e){var t;return((t=Ej(e))==null?void 0:t.kind)===0}function l4(e){return Ir(e)&&(e.type&&e.type.kind===317||VR(e).some(cw))}function BI(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||l4(e);case 349:case 342:return cw(e);default:return!1}}function rie(e){const t=e.kind;return(t===212||t===213)&&ex(e.expression)}function aj(e){return Ir(e)&&zu(e)&&rf(e)&&!!tG(e)}function sj(e){return C.checkDefined(c4(e))}function c4(e){const t=tG(e);return t&&t.typeExpression&&t.typeExpression.type}function FM(e){return Je(e)?e.escapedText:GI(e)}function dw(e){return Je(e)?Kr(e):zM(e)}function iie(e){const t=e.kind;return t===80||t===296}function GI(e){return`${e.namespace.escapedText}:${Kr(e.name)}`}function zM(e){return`${Kr(e.namespace)}:${Kr(e.name)}`}function lj(e){return Je(e)?Kr(e):zM(e)}function Jf(e){return!!(e.flags&8576)}function Kf(e){return e.flags&8192?e.escapedName:e.flags&384?Pl(""+e.value):C.fail()}function VI(e){return!!e&&(qr(e)||zs(e)||Nr(e))}function oie(e){return e===void 0?!1:!!$D(e.attributes)}var oje=String.prototype.replace;function y1(e,t){return oje.call(e,"*",t)}function d4(e){return Je(e.name)?e.name.escapedText:Pl(e.name.text)}function aie(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function Kc(e,t=!1,r=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:r,hasExternalReferences:i}}function sie({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function r(o,s){let l=!1,u=!1,d=!1;switch(o=us(o),o.kind){case 225:const _=r(o.operand,s);if(u=_.resolvedOtherFiles,d=_.hasExternalReferences,typeof _.value=="number")switch(o.operator){case 40:return Kc(_.value,l,u,d);case 41:return Kc(-_.value,l,u,d);case 55:return Kc(~_.value,l,u,d)}break;case 227:{const h=r(o.left,s),y=r(o.right,s);if(l=(h.isSyntacticallyString||y.isSyntacticallyString)&&o.operatorToken.kind===40,u=h.resolvedOtherFiles||y.resolvedOtherFiles,d=h.hasExternalReferences||y.hasExternalReferences,typeof h.value=="number"&&typeof y.value=="number")switch(o.operatorToken.kind){case 52:return Kc(h.value|y.value,l,u,d);case 51:return Kc(h.value&y.value,l,u,d);case 49:return Kc(h.value>>y.value,l,u,d);case 50:return Kc(h.value>>>y.value,l,u,d);case 48:return Kc(h.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(J&3&&re==="arguments"){me=r;break e}break;case 219:if(J&3&&re==="arguments"){me=r;break e}if(J&16){const Be=G.name;if(Be&&re===Be.escapedText){me=G.symbol;break e}}break;case 171:G.parent&&G.parent.kind===170&&(G=G.parent),G.parent&&(Sc(G.parent)||G.parent.kind===264)&&(G=G.parent);break;case 347:case 339:case 341:case 352:const Me=sD(G);Me&&(G=Me.parent);break;case 170:be&&(be===G.initializer||be===G.name&&Zo(be))&&(Ne||(Ne=G));break;case 209:be&&(be===G.initializer||be===G.name&&Zo(be))&&HT(G)&&!Ne&&(Ne=G);break;case 196:if(J&262144){const Be=G.typeParameter.name;if(Be&&re===Be.escapedText){me=G.typeParameter.symbol;break e}}break;case 282:be&&be===G.propertyName&&G.parent.parent.moduleSpecifier&&(G=G.parent.parent.parent);break}F(G,be)&&(De=G),be=G,G=xm(G)?m6(G)||G.parent:(_f(G)||k4(G))&&VT(G)||G.parent}if(q&&me&&(!De||me!==De.symbol)&&(me.isReferenced|=J),!me){if(be&&(C.assertNode(be,Xi),be.commonJsModuleIndicator&&re==="exports"&&J&be.symbol.flags))return be.symbol;ve||(me=l(s,re,J))}if(!me&&ue&&Ir(ue)&&ue.parent&&np(ue.parent,!1))return t;if(Z){if(Y&&_(ue,re,Y,me))return;me?y(ue,me,J,be,Ne,Xe):h(ue,j,J,Z)}return me}function P(G,j,J){const Z=Va(e),q=j;if(Zi(J)&&q.body&&G.valueDeclaration&&G.valueDeclaration.pos>=q.body.pos&&G.valueDeclaration.end<=q.body.end&&Z>=2){let K=d(q);return K===void 0&&(K=qe(q.parameters,ve)||!1,u(q,K)),!K}return!1;function ve(K){return oe(K.name)||!!K.initializer&&oe(K.initializer)}function oe(K){switch(K.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return oe(K.name);case 173:return Fc(K)?!A:oe(K.name);default:return rG(K)||iu(K)?Z<7:qa(K)&&K.dotDotDotToken&&hf(K.parent)?Z<4:Ci(K)?!1:Jo(K,oe)||!1}}}function k(G,j){return G.kind!==220&&G.kind!==219?VS(G)||(Ls(G)||G.kind===173&&!ua(G))&&(!j||j!==G.name):j&&j===G.name?!1:G.asteriskToken||di(G,1024)?!0:!zT(G)}function F(G,j){switch(G.kind){case 170:return!!j&&j===G.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function W(G,j){if(G.declarations){for(const J of G.declarations)if(J.kind===169&&(xm(J.parent)?CS(J.parent):J.parent)===j)return!(xm(J.parent)&&mn(J.parent.parent.tags,Tm))}return!1}}function u4(e,t=!0){switch(C.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return e.operator===41?op(e.operand)||t&&AD(e.operand):e.operator===40?op(e.operand):!1;default:return!1}}function lie(e){for(;e.kind===218;)e=e.expression;return e}function p4(e){switch(C.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function uj(e){const t=Dn(e,Tl);return!!t&&!t.importClause}var cie=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],die=new Set(cie),f4=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),SD=new Set([...cie,...cie.map(e=>`node:${e}`),...f4]);function m4(e,t,r,i){const o=Ir(e),s=/import|require/g;for(;s.exec(e.text)!==null;){const l=aje(e,s.lastIndex,t);if(o&&np(l,r))i(l,l.arguments[0]);else if(tp(l)&&l.arguments.length>=1&&(!r||ds(l.arguments[0])))i(l,l.arguments[0]);else if(t&&sy(l))i(l,l.argument.literal);else if(t&&l_(l)){const u=EI(l);u&&Oa(u)&&u.text&&i(l,u)}}}function aje(e,t,r){const i=Ir(e);let o=e;const s=l=>{if(l.pos<=t&&(tr&&t(r))}function BM(e,t,r,i){let o;return s(e,t,void 0);function s(l,u,d){if(i){const h=i(l,d);if(h)return h}let _;return qe(u,(h,y)=>{if(h&&o?.has(h.sourceFile.path)){(_??(_=new Set)).add(h);return}const E=r(h,d,y);if(E||!h)return E;(o||(o=new Set)).add(h.sourceFile.path)})||qe(u,h=>h&&!_?.has(h)?s(h.commandLine.projectReferences,h.references,h):void 0)}}function hj(e,t,r){return e&&sje(e,t,r)}function sje(e,t,r){return tD(e,t,i=>Nd(i.initializer)?mn(i.initializer.elements,o=>Oa(o)&&o.text===r):void 0)}function pie(e,t,r){return _j(e,t,i=>Oa(i.initializer)&&i.initializer.text===r?i.initializer:void 0)}function _j(e,t,r){return tD(e,t,r)}function _s(e,t=!0){const r=e&&CSe(e);return r&&!t&&zp(r),KT(r,!1)}function pw(e,t,r){let i=r(e);return i?jr(i,e):i=CSe(e,r),i&&!t&&zp(i),i}function CSe(e,t){const r=t?s=>pw(s,!0,t):_s,o=On(e,r,void 0,t?s=>s&&gj(s,!0,t):s=>s&&GS(s),r);if(o===e){const s=Oa(e)?jr(L.createStringLiteralFromNode(e),e):op(e)?jr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return bt(s,e)}return o.parent=void 0,o}function GS(e,t=!0){if(e){const r=L.createNodeArray(e.map(i=>_s(i,t)),e.hasTrailingComma);return bt(r,e),r}return e}function gj(e,t,r){return L.createNodeArray(e.map(i=>pw(i,t,r)),e.hasTrailingComma)}function zp(e){yj(e),fie(e)}function yj(e){mie(e,1024,lje)}function fie(e){mie(e,2048,OV)}function mie(e,t,r){t_(e,t);const i=r(e);i&&mie(i,t,r)}function lje(e){return Jo(e,t=>t)}function hie(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:d,createBaseNode:_};function s(h){return new(o||(o=Dd.getSourceFileConstructor()))(h,-1,-1)}function l(h){return new(r||(r=Dd.getIdentifierConstructor()))(h,-1,-1)}function u(h){return new(i||(i=Dd.getPrivateIdentifierConstructor()))(h,-1,-1)}function d(h){return new(t||(t=Dd.getTokenConstructor()))(h,-1,-1)}function _(h){return new(e||(e=Dd.getNodeConstructor()))(h,-1,-1)}}function _ie(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:y,parenthesizeExpressionOfComputedPropertyName:E,parenthesizeConditionOfConditionalExpression:A,parenthesizeBranchOfConditionalExpression:R,parenthesizeExpressionOfExportDefault:N,parenthesizeExpressionOfNew:P,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:F,parenthesizeOperandOfPrefixUnary:W,parenthesizeExpressionsOfCommaDelimitedList:G,parenthesizeExpressionForDisallowedComma:j,parenthesizeExpressionOfExpressionStatement:J,parenthesizeConciseBodyOfArrowFunction:Z,parenthesizeCheckTypeOfConditionalType:q,parenthesizeExtendsTypeOfConditionalType:ve,parenthesizeConstituentTypesOfUnionType:K,parenthesizeConstituentTypeOfUnionType:oe,parenthesizeConstituentTypesOfIntersectionType:ue,parenthesizeConstituentTypeOfIntersectionType:fe,parenthesizeOperandOfTypeOperator:me,parenthesizeOperandOfReadonlyTypeOperator:be,parenthesizeNonArrayTypeOfPostfixType:De,parenthesizeElementTypesOfTupleType:Y,parenthesizeElementTypeOfTupleType:Ne,parenthesizeTypeOfOptionalType:Ee,parenthesizeTypeArguments:Me,parenthesizeLeadingTypeArgument:re};function i(Be){t||(t=new Map);let lt=t.get(Be);return lt||(lt=ce=>h(Be,ce),t.set(Be,lt)),lt}function o(Be){r||(r=new Map);let lt=r.get(Be);return lt||(lt=ce=>y(Be,void 0,ce),r.set(Be,lt)),lt}function s(Be,lt){return Be===61?lt===56||lt===57:lt===61?Be===56||Be===57:!1}function l(Be,lt,ce,Ce){const ye=Vm(lt);if(Nr(ye)&&s(Be,ye.operatorToken.kind))return!0;const Ue=Ok(227,Be),Ge=cV(227,Be);if(!ce&<.kind===220&&Ue>3)return!0;const We=mM(ye);switch(Hs(We,Ue)){case-1:return!(!ce&&Ge===1&<.kind===230);case 1:return!1;case 0:if(ce)return Ge===1;if(Nr(ye)&&ye.operatorToken.kind===Be){if(u(Be))return!1;if(Be===40){const Wt=Ce?d(Ce):0;if(VN(Wt)&&Wt===d(ye))return!1}}return lV(ye)===0}}function u(Be){return Be===42||Be===52||Be===51||Be===53||Be===28}function d(Be){if(Be=Vm(Be),VN(Be.kind))return Be.kind;if(Be.kind===227&&Be.operatorToken.kind===40){if(Be.cachedLiteralKind!==void 0)return Be.cachedLiteralKind;const lt=d(Be.left),ce=VN(lt)&<===d(Be.right)?lt:0;return Be.cachedLiteralKind=ce,ce}return 0}function _(Be,lt,ce,Ce){return Vm(lt).kind===218?lt:l(Be,lt,ce,Ce)?e.createParenthesizedExpression(lt):lt}function h(Be,lt){return _(Be,lt,!0)}function y(Be,lt,ce){return _(Be,ce,!1,lt)}function E(Be){return nP(Be)?e.createParenthesizedExpression(Be):Be}function A(Be){const lt=Ok(228,58),ce=Vm(Be),Ce=mM(ce);return Hs(Ce,lt)!==1?e.createParenthesizedExpression(Be):Be}function R(Be){const lt=Vm(Be);return nP(lt)?e.createParenthesizedExpression(Be):Be}function N(Be){const lt=Vm(Be);let ce=nP(lt);if(!ce)switch(gD(lt,!1).kind){case 232:case 219:ce=!0}return ce?e.createParenthesizedExpression(Be):Be}function P(Be){const lt=gD(Be,!0);switch(lt.kind){case 214:return e.createParenthesizedExpression(Be);case 215:return lt.arguments?Be:e.createParenthesizedExpression(Be)}return k(Be)}function k(Be,lt){const ce=Vm(Be);return ep(ce)&&(ce.kind!==215||ce.arguments)&&(lt||!iu(ce))?Be:bt(e.createParenthesizedExpression(Be),Be)}function F(Be){return ep(Be)?Be:bt(e.createParenthesizedExpression(Be),Be)}function W(Be){return fG(Be)?Be:bt(e.createParenthesizedExpression(Be),Be)}function G(Be){const lt=to(Be,j);return bt(e.createNodeArray(lt,Be.hasTrailingComma),Be)}function j(Be){const lt=Vm(Be),ce=mM(lt),Ce=Ok(227,28);return ce>Ce?Be:bt(e.createParenthesizedExpression(Be),Be)}function J(Be){const lt=Vm(Be);if(ea(lt)){const Ce=lt.expression,ye=Vm(Ce).kind;if(ye===219||ye===220){const Ue=e.updateCallExpression(lt,bt(e.createParenthesizedExpression(Ce),Ce),lt.typeArguments,lt.arguments);return e.restoreOuterExpressions(Be,Ue,8)}}const ce=gD(lt,!1).kind;return ce===211||ce===219?bt(e.createParenthesizedExpression(Be),Be):Be}function Z(Be){return!ta(Be)&&(nP(Be)||gD(Be,!1).kind===211)?bt(e.createParenthesizedExpression(Be),Be):Be}function q(Be){switch(Be.kind){case 185:case 186:case 195:return e.createParenthesizedType(Be)}return Be}function ve(Be){return Be.kind===195?e.createParenthesizedType(Be):Be}function oe(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return q(Be)}function K(Be){return e.createNodeArray(to(Be,oe))}function fe(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return oe(Be)}function ue(Be){return e.createNodeArray(to(Be,fe))}function me(Be){return Be.kind===194?e.createParenthesizedType(Be):fe(Be)}function be(Be){return Be.kind===199?e.createParenthesizedType(Be):me(Be)}function De(Be){switch(Be.kind){case 196:case 199:case 187:return e.createParenthesizedType(Be)}return me(Be)}function Y(Be){return e.createNodeArray(to(Be,Ne))}function Ne(Be){return Xe(Be)?e.createParenthesizedType(Be):Be}function Xe(Be){return LD(Be)?Be.postfix:xD(Be)||W_(Be)||ID(Be)||YT(Be)?Xe(Be.type):jS(Be)?Xe(Be.falseType):pv(Be)||QI(Be)?Xe(Ga(Be.types)):S1(Be)?!!Be.typeParameter.constraint&&Xe(Be.typeParameter.constraint):!1}function Ee(Be){return Xe(Be)?e.createParenthesizedType(Be):De(Be)}function re(Be){return Dte(Be)&&Be.typeParameters?e.createParenthesizedType(Be):Be}function Te(Be,lt){return lt===0?re(Be):Be}function Me(Be){if(vt(Be))return e.createNodeArray(to(Be,Te))}}var gie={getParenthesizeLeftSideOfBinaryForOperator:e=>Us,getParenthesizeRightSideOfBinaryForOperator:e=>Us,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Us,parenthesizeConditionOfConditionalExpression:Us,parenthesizeBranchOfConditionalExpression:Us,parenthesizeExpressionOfExportDefault:Us,parenthesizeExpressionOfNew:e=>ma(e,ep),parenthesizeLeftSideOfAccess:e=>ma(e,ep),parenthesizeOperandOfPostfixUnary:e=>ma(e,ep),parenthesizeOperandOfPrefixUnary:e=>ma(e,fG),parenthesizeExpressionsOfCommaDelimitedList:e=>ma(e,vS),parenthesizeExpressionForDisallowedComma:Us,parenthesizeExpressionOfExpressionStatement:Us,parenthesizeConciseBodyOfArrowFunction:Us,parenthesizeCheckTypeOfConditionalType:Us,parenthesizeExtendsTypeOfConditionalType:Us,parenthesizeConstituentTypesOfUnionType:e=>ma(e,vS),parenthesizeConstituentTypeOfUnionType:Us,parenthesizeConstituentTypesOfIntersectionType:e=>ma(e,vS),parenthesizeConstituentTypeOfIntersectionType:Us,parenthesizeOperandOfTypeOperator:Us,parenthesizeOperandOfReadonlyTypeOperator:Us,parenthesizeNonArrayTypeOfPostfixType:Us,parenthesizeElementTypesOfTupleType:e=>ma(e,vS),parenthesizeElementTypeOfTupleType:Us,parenthesizeTypeOfOptionalType:Us,parenthesizeTypeArguments:e=>e&&ma(e,vS),parenthesizeLeadingTypeArgument:Us};function yie(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:d,convertToAssignmentElementTarget:_};function t(h,y){if(ta(h))return h;const E=e.createReturnStatement(h);bt(E,h);const A=e.createBlock([E],y);return bt(A,h),A}function r(h){var y;if(!h.body)return C.fail("Cannot convert a FunctionDeclaration without a body");const E=e.createFunctionExpression((y=yS(h))==null?void 0:y.filter(A=>!JI(A)&&!A4(A)),h.asteriskToken,h.name,h.typeParameters,h.parameters,h.type,h.body);return jr(E,h),bt(E,h),GM(h)&&g4(E,!0),E}function i(h){var y;const E=e.createClassExpression((y=h.modifiers)==null?void 0:y.filter(A=>!JI(A)&&!A4(A)),h.name,h.typeParameters,h.heritageClauses,h.members);return jr(E,h),bt(E,h),GM(h)&&g4(E,!0),E}function o(h){if(qa(h)){if(h.dotDotDotToken)return C.assertNode(h.name,Je),jr(bt(e.createSpreadElement(h.name),h),h);const y=_(h.name);return h.initializer?jr(bt(e.createAssignment(y,h.initializer),h),h):y}return ma(h,St)}function s(h){if(qa(h)){if(h.dotDotDotToken)return C.assertNode(h.name,Je),jr(bt(e.createSpreadAssignment(h.name),h),h);if(h.propertyName){const y=_(h.name);return jr(bt(e.createPropertyAssignment(h.propertyName,h.initializer?e.createAssignment(y,h.initializer):y),h),h)}return C.assertNode(h.name,Je),jr(bt(e.createShorthandPropertyAssignment(h.name,h.initializer),h),h)}return ma(h,ay)}function l(h){switch(h.kind){case 208:case 210:return d(h);case 207:case 211:return u(h)}}function u(h){return hf(h)?jr(bt(e.createObjectLiteralExpression(Yt(h.elements,s)),h),h):ma(h,za)}function d(h){return mv(h)?jr(bt(e.createArrayLiteralExpression(Yt(h.elements,o)),h),h):ma(h,Nd)}function _(h){return Zo(h)?l(h):ma(h,St)}}var vie={convertToFunctionBlock:ha,convertToFunctionExpression:ha,convertToClassExpression:ha,convertToArrayAssignmentElement:ha,convertToObjectAssignmentElement:ha,convertToAssignmentPattern:ha,convertToObjectAssignmentPattern:ha,convertToArrayAssignmentPattern:ha,convertToAssignmentElementTarget:ha},vj=0,bie=(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))(bie||{}),NSe=[];function MSe(e){NSe.push(e)}function fw(e,t){const r=e&8?Us:jr,i=Lu(()=>e&1?gie:_ie(k)),o=Lu(()=>e&2?vie:yie(k)),s=Gh(T=>(M,V)=>ar(M,T,V)),l=Gh(T=>M=>pt(T,M)),u=Gh(T=>M=>an(M,T)),d=Gh(T=>()=>Oo(T)),_=Gh(T=>M=>oA(T,M)),h=Gh(T=>(M,V)=>Mr(T,M,V)),y=Gh(T=>(M,V)=>Sp(T,M,V)),E=Gh(T=>(M,V)=>tT(T,M,V)),A=Gh(T=>(M,V)=>F0(T,M,V)),R=Gh(T=>(M,V,pe)=>wy(T,M,V,pe)),N=Gh(T=>(M,V,pe)=>wC(T,M,V,pe)),P=Gh(T=>(M,V,pe,tt)=>z0(T,M,V,pe,tt)),k={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:F,createNumericLiteral:J,createBigIntLiteral:Z,createStringLiteral:ve,createStringLiteralFromNode:oe,createRegularExpressionLiteral:K,createLiteralLikeNode:fe,createIdentifier:be,createTempVariable:De,createLoopVariable:Y,createUniqueName:Ne,getGeneratedNameForNode:Xe,createPrivateIdentifier:re,createUniquePrivateName:Me,getGeneratedPrivateNameForNode:Be,createToken:ce,createSuper:Ce,createThis:ye,createNull:Ue,createTrue:Ge,createFalse:We,createModifier:at,createModifiersFromModifierFlags:Wt,createQualifiedName:cn,updateQualifiedName:gn,createComputedPropertyName:Kn,updateComputedPropertyName:gt,createTypeParameterDeclaration:en,updateTypeParameterDeclaration:or,createParameterDeclaration:Ni,updateParameterDeclaration:so,createDecorator:zt,updateDecorator:Zr,createPropertySignature:xi,updatePropertySignature:Pi,createPropertyDeclaration:Mi,updatePropertyDeclaration:$e,createMethodSignature:At,updateMethodSignature:hn,createMethodDeclaration:dr,updateMethodDeclaration:ri,createConstructorDeclaration:Pn,updateConstructorDeclaration:Uo,createGetAccessorDeclaration:Ft,updateGetAccessorDeclaration:le,createSetAccessorDeclaration:ne,updateSetAccessorDeclaration:Fe,createCallSignature:dt,updateCallSignature:Lt,createConstructSignature:He,updateConstructSignature:Rt,createIndexSignature:It,updateIndexSignature:Ot,createClassStaticBlockDeclaration:qi,updateClassStaticBlockDeclaration:Qo,createTemplateLiteralTypeSpan:nt,updateTemplateLiteralTypeSpan:Jt,createKeywordTypeNode:Tr,createTypePredicateNode:Oe,updateTypePredicateNode:Nt,createTypeReferenceNode:ge,updateTypeReferenceNode:B,createFunctionTypeNode:Ie,updateFunctionTypeNode:te,createConstructorTypeNode:Kt,updateConstructorTypeNode:Bt,createTypeQueryNode:Jn,updateTypeQueryNode:mt,createTypeLiteralNode:Mt,updateTypeLiteralNode:Vt,createArrayTypeNode:Qt,updateArrayTypeNode:In,createTupleTypeNode:yn,updateTupleTypeNode:wt,createNamedTupleMember:En,updateNamedTupleMember:xn,createOptionalTypeNode:wn,updateOptionalTypeNode:ln,createRestTypeNode:Ri,updateRestTypeNode:ia,createUnionTypeNode:jl,updateUnionTypeNode:Cl,createIntersectionTypeNode:ks,updateIntersectionTypeNode:lo,createConditionalTypeNode:Go,updateConditionalTypeNode:Ec,createInferTypeNode:Zs,updateInferTypeNode:Da,createImportTypeNode:Po,updateImportTypeNode:fa,createParenthesizedType:os,updateParenthesizedType:Ja,createThisTypeNode:Zt,createTypeOperatorNode:xs,updateTypeOperatorNode:Xl,createIndexedAccessTypeNode:dc,updateIndexedAccessTypeNode:bd,createMappedTypeNode:Bs,updateMappedTypeNode:Ae,createLiteralTypeNode:$,updateLiteralTypeNode:ft,createTemplateLiteralType:ic,updateTemplateLiteralType:Sf,createObjectBindingPattern:Ht,updateObjectBindingPattern:fn,createArrayBindingPattern:ur,updateArrayBindingPattern:si,createBindingElement:Dr,updateBindingElement:Bn,createArrayLiteralExpression:no,updateArrayLiteralExpression:To,createObjectLiteralExpression:Ps,updateObjectLiteralExpression:Ca,createPropertyAccessExpression:e&4?(T,M)=>Cr(Ac(T,M),262144):Ac,updatePropertyAccessExpression:_c,createPropertyAccessChain:e&4?(T,M,V)=>Cr(Js(T,M,V),262144):Js,updatePropertyAccessChain:wl,createElementAccessExpression:Ld,updateElementAccessExpression:af,createElementAccessChain:lp,updateElementAccessChain:ze,createCallExpression:er,updateCallExpression:go,createCallChain:es,updateCallChain:ts,createNewExpression:ja,updateNewExpression:kc,createTaggedTemplateExpression:rl,updateTaggedTemplateExpression:Ol,createTypeAssertion:Yl,updateTypeAssertion:sf,createParenthesizedExpression:Td,updateParenthesizedExpression:cd,createFunctionExpression:qp,updateFunctionExpression:Ru,createArrowFunction:Zf,updateArrowFunction:j_,createDeleteExpression:kg,updateDeleteExpression:wg,createTypeOfExpression:cp,updateTypeOfExpression:$c,createVoidExpression:Eh,updateVoidExpression:Ef,createAwaitExpression:h_,updateAwaitExpression:ae,createPrefixUnaryExpression:pt,updatePrefixUnaryExpression:tn,createPostfixUnaryExpression:an,updatePostfixUnaryExpression:Wn,createBinaryExpression:ar,updateBinaryExpression:Si,createConditionalExpression:Yi,updateConditionalExpression:z,createTemplateExpression:je,updateTemplateExpression:kt,createTemplateHead:_l,createTemplateMiddle:Na,createTemplateTail:dd,createNoSubstitutionTemplateLiteral:Jp,createTemplateLiteralLikeNode:Vo,createYieldExpression:Af,updateYieldExpression:em,createSpreadElement:Iy,updateSpreadElement:Ev,createClassExpression:ju,updateClassExpression:U_,createOmittedExpression:Ah,createExpressionWithTypeArguments:Mm,updateExpressionWithTypeArguments:Yb,createAsExpression:Ye,updateAsExpression:ht,createNonNullExpression:Xt,updateNonNullExpression:Rn,createSatisfiesExpression:Qn,updateSatisfiesExpression:Lr,createNonNullChain:Yn,updateNonNullChain:cr,createMetaProperty:Wi,updateMetaProperty:xo,createTemplateSpan:_i,updateTemplateSpan:Ro,createSemicolonClassElement:$i,createBlock:gl,updateBlock:dp,createVariableStatement:Pm,updateVariableStatement:Sd,createEmptyStatement:Lm,createExpressionStatement:Kp,updateExpressionStatement:S0,createIfStatement:__,updateIfStatement:H_,createDoStatement:E0,updateDoStatement:q_,createWhileStatement:RC,updateWhileStatement:sL,createForStatement:DC,updateForStatement:Og,createForInStatement:A0,updateForInStatement:Y1,createForOfStatement:Av,updateForOfStatement:$1,createContinueStatement:Lx,updateContinueStatement:lL,createBreakStatement:Q1,updateBreakStatement:kx,createReturnStatement:I0,updateReturnStatement:CC,createWithStatement:Z1,updateWithStatement:wx,createSwitchStatement:pE,updateSwitchStatement:$b,createLabeledStatement:Ox,updateLabeledStatement:Wx,createThrowStatement:fE,updateThrowStatement:Qb,createTryStatement:Iv,updateTryStatement:xy,createDebuggerStatement:Ry,createVariableDeclaration:Dy,updateVariableDeclaration:Zb,createVariableDeclarationList:x0,updateVariableDeclarationList:eA,createFunctionDeclaration:R0,updateFunctionDeclaration:rs,createClassDeclaration:NC,updateClassDeclaration:Cy,createInterfaceDeclaration:Ny,updateInterfaceDeclaration:J_,createTypeAliasDeclaration:ul,updateTypeAliasDeclaration:Xd,createEnumDeclaration:up,updateEnumDeclaration:Yd,createModuleDeclaration:D0,updateModuleDeclaration:Du,createModuleBlock:K_,updateModuleBlock:Uu,createCaseBlock:km,updateCaseBlock:$m,createNamespaceExportDeclaration:C0,updateNamespaceExportDeclaration:N0,createImportEqualsDeclaration:MC,updateImportEqualsDeclaration:xv,createImportDeclaration:mE,updateImportDeclaration:Ze,createImportClause:nA,updateImportClause:Wg,createAssertClause:Qm,updateAssertClause:Rv,createAssertEntry:eT,updateAssertEntry:Cu,createImportTypeAssertionContainer:Ih,updateImportTypeAssertionContainer:wm,createImportAttributes:M0,updateImportAttributes:Ua,createImportAttribute:If,updateImportAttribute:Dv,createNamespaceImport:rA,updateNamespaceImport:My,createNamespaceExport:hE,updateNamespaceExport:tm,createNamedImports:Fg,updateNamedImports:P0,createImportSpecifier:Cv,updateImportSpecifier:g_,createExportAssignment:_E,updateExportAssignment:L0,createExportDeclaration:Jr,updateExportDeclaration:Vr,createNamedExports:iA,updateNamedExports:Py,createExportSpecifier:gE,updateExportSpecifier:PC,createMissingDeclaration:dL,createExternalModuleReference:zr,updateExternalModuleReference:Nu,get createJSDocAllType(){return d(313)},get createJSDocUnknownType(){return d(314)},get createJSDocNonNullableType(){return y(316)},get updateJSDocNonNullableType(){return E(316)},get createJSDocNullableType(){return y(315)},get updateJSDocNullableType(){return E(315)},get createJSDocOptionalType(){return _(317)},get updateJSDocOptionalType(){return h(317)},get createJSDocVariadicType(){return _(319)},get updateJSDocVariadicType(){return h(319)},get createJSDocNamepathType(){return _(320)},get updateJSDocNamepathType(){return h(320)},createJSDocFunctionType:LC,updateJSDocFunctionType:Fx,createJSDocTypeLiteral:fu,updateJSDocTypeLiteral:X_,createJSDocTypeExpression:xh,updateJSDocTypeExpression:nT,createJSDocSignature:aA,updateJSDocSignature:rT,createJSDocTemplateTag:pp,updateJSDocTemplateTag:Nv,createJSDocTypedefTag:k0,updateJSDocTypedefTag:zx,createJSDocParameterTag:w0,updateJSDocParameterTag:iT,createJSDocPropertyTag:Bx,updateJSDocPropertyTag:Ly,createJSDocCallbackTag:y_,updateJSDocCallbackTag:oT,createJSDocOverloadTag:O0,updateJSDocOverloadTag:Mv,createJSDocAugmentsTag:aT,updateJSDocAugmentsTag:eh,createJSDocImplementsTag:ky,updateJSDocImplementsTag:jx,createJSDocSeeTag:zg,updateJSDocSeeTag:sT,createJSDocImportTag:fp,updateJSDocImportTag:rm,createJSDocNameReference:ud,updateJSDocNameReference:yE,createJSDocMemberName:Bg,updateJSDocMemberName:W0,createJSDocLink:sA,updateJSDocLink:Gg,createJSDocLinkCode:kC,updateJSDocLinkCode:Gx,createJSDocLinkPlain:Vx,updateJSDocLinkPlain:uL,get createJSDocTypeTag(){return N(345)},get updateJSDocTypeTag(){return P(345)},get createJSDocReturnTag(){return N(343)},get updateJSDocReturnTag(){return P(343)},get createJSDocThisTag(){return N(344)},get updateJSDocThisTag(){return P(344)},get createJSDocAuthorTag(){return A(331)},get updateJSDocAuthorTag(){return R(331)},get createJSDocClassTag(){return A(333)},get updateJSDocClassTag(){return R(333)},get createJSDocPublicTag(){return A(334)},get updateJSDocPublicTag(){return R(334)},get createJSDocPrivateTag(){return A(335)},get updateJSDocPrivateTag(){return R(335)},get createJSDocProtectedTag(){return A(336)},get updateJSDocProtectedTag(){return R(336)},get createJSDocReadonlyTag(){return A(337)},get updateJSDocReadonlyTag(){return R(337)},get createJSDocOverrideTag(){return A(338)},get updateJSDocOverrideTag(){return R(338)},get createJSDocDeprecatedTag(){return A(332)},get updateJSDocDeprecatedTag(){return R(332)},get createJSDocThrowsTag(){return N(350)},get updateJSDocThrowsTag(){return P(350)},get createJSDocSatisfiesTag(){return N(351)},get updateJSDocSatisfiesTag(){return P(351)},createJSDocEnumTag:pd,updateJSDocEnumTag:Ux,createJSDocUnknownTag:lA,updateJSDocUnknownTag:gc,createJSDocText:vE,updateJSDocText:Rh,createJSDocComment:lT,updateJSDocComment:Pv,createJsxElement:Hx,updateJsxElement:pL,createJsxSelfClosingElement:Ul,updateJsxSelfClosingElement:OC,createJsxOpeningElement:cA,updateJsxOpeningElement:bE,createJsxClosingElement:qx,updateJsxClosingElement:mu,createJsxFragment:Ep,createJsxText:B0,updateJsxText:Ap,createJsxOpeningFragment:uA,createJsxJsxClosingFragment:Vg,updateJsxFragment:dA,createJsxAttribute:Jx,updateJsxAttribute:pA,createJsxAttributes:th,updateJsxAttributes:Kx,createJsxSpreadAttribute:WC,updateJsxSpreadAttribute:Xx,createJsxExpression:fA,updateJsxExpression:Yx,createJsxNamespacedName:Lv,updateJsxNamespacedName:Xp,createCaseClause:v_,updateCaseClause:mA,createDefaultClause:hA,updateDefaultClause:as,createHeritageClause:Wr,updateHeritageClause:Rf,createCatchClause:Qc,updateCatchClause:G0,createPropertyAssignment:_A,updatePropertyAssignment:TE,createShorthandPropertyAssignment:gA,updateShorthandPropertyAssignment:D,createSpreadAssignment:Et,updateSpreadAssignment:An,createEnumMember:vi,updateEnumMember:Oi,createSourceFile:Eo,updateSourceFile:j0,createRedirectedSourceFile:wi,createBundle:qu,updateBundle:cT,createSyntheticExpression:$x,createSyntaxList:Om,createNotEmittedStatement:Sl,createNotEmittedTypeElement:nh,createPartiallyEmittedExpression:yA,updatePartiallyEmittedExpression:kv,createCommaListExpression:SE,updateCommaListExpression:Hz,createSyntheticReferenceExpression:fL,updateSyntheticReferenceExpression:Qx,cloneNode:vA,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:qz,createImmediatelyInvokedArrowFunction:EE,createVoidZero:bA,createExportDefault:hL,createExternalModuleExport:eR,createTypeCheck:co,createIsNotTypeCheck:uT,createMethodCall:sr,createGlobalMethodCall:AE,createFunctionBindCall:_L,createFunctionCallCall:FC,createFunctionApplyCall:zC,createArraySliceCall:R8,createArrayConcatCall:TA,createObjectDefinePropertyCall:Jz,createObjectGetOwnPropertyDescriptorCall:BC,createReflectGetCall:Y_,createReflectSetCall:D8,createPropertyDescriptor:Kz,createCallBinding:GC,createAssignmentTargetWrapper:b_,inlineExpressions:ee,getInternalName:rt,getLocalName:Pt,getExportName:nn,getDeclarationName:_n,getNamespaceMemberName:ei,getExternalModuleOrNamespaceExportName:wr,restoreOuterExpressions:yL,restoreEnclosingLabel:H0,createUseStrictPrologue:oo,copyPrologue:pr,copyStandardPrologue:Gs,copyCustomPrologue:Rs,ensureUseStrict:ss,liftToBlock:im,mergeLexicalEnvironment:Ov,replaceModifiers:Wv,replaceDecoratorsAndModifiers:jg,replacePropertyName:pT};return qe(NSe,T=>T(k)),k;function F(T,M){if(T===void 0||T===ie)T=[];else if(vS(T)){if(M===void 0||T.hasTrailingComma===M)return T.transformFlags===void 0&&LSe(T),C.attachNodeArrayDebugInfo(T),T;const tt=T.slice();return tt.pos=T.pos,tt.end=T.end,tt.hasTrailingComma=M,tt.transformFlags=T.transformFlags,C.attachNodeArrayDebugInfo(tt),tt}const V=T.length,pe=V>=1&&V<=4?T.slice():T;return pe.pos=-1,pe.end=-1,pe.hasTrailingComma=!!M,pe.transformFlags=0,LSe(pe),C.attachNodeArrayDebugInfo(pe),pe}function W(T){return t.createBaseNode(T)}function G(T){const M=W(T);return M.symbol=void 0,M.localSymbol=void 0,M}function j(T,M){return T!==M&&(T.typeArguments=M.typeArguments),br(T,M)}function J(T,M=0){const V=typeof T=="number"?T+"":T;C.assert(V.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const pe=G(9);return pe.text=V,pe.numericLiteralFlags=M,M&384&&(pe.transformFlags|=1024),pe}function Z(T){const M=lt(10);return M.text=typeof T=="string"?T:zS(T)+"n",M.transformFlags|=32,M}function q(T,M){const V=G(11);return V.text=T,V.singleQuote=M,V}function ve(T,M,V){const pe=q(T,M);return pe.hasExtendedUnicodeEscape=V,V&&(pe.transformFlags|=1024),pe}function oe(T){const M=q(jf(T),void 0);return M.textSourceNode=T,M}function K(T){const M=lt(14);return M.text=T,M}function fe(T,M){switch(T){case 9:return J(M,0);case 10:return Z(M);case 11:return ve(M,void 0);case 12:return B0(M,!1);case 13:return B0(M,!0);case 14:return K(M);case 15:return Vo(T,M,void 0,0)}}function ue(T){const M=t.createBaseIdentifierNode(80);return M.escapedText=T,M.jsDoc=void 0,M.flowNode=void 0,M.symbol=void 0,M}function me(T,M,V,pe){const tt=ue(Pl(T));return yw(tt,{flags:M,id:vj,prefix:V,suffix:pe}),vj++,tt}function be(T,M,V){M===void 0&&T&&(M=XE(T)),M===80&&(M=void 0);const pe=ue(Pl(T));return V&&(pe.flags|=256),pe.escapedText==="await"&&(pe.transformFlags|=67108864),pe.flags&256&&(pe.transformFlags|=1024),pe}function De(T,M,V,pe){let tt=1;M&&(tt|=8);const rn=me("",tt,V,pe);return T&&T(rn),rn}function Y(T){let M=2;return T&&(M|=8),me("",M,void 0,void 0)}function Ne(T,M=0,V,pe){return C.assert(!(M&7),"Argument out of range: flags"),C.assert((M&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),me(T,3|M,V,pe)}function Xe(T,M=0,V,pe){C.assert(!(M&7),"Argument out of range: flags");const tt=T?hg(T)?o0(!1,V,T,pe,Kr):`generated@${ls(T)}`:"";(V||pe)&&(M|=16);const rn=me(tt,4|M,V,pe);return rn.original=T,rn}function Ee(T){const M=t.createBasePrivateIdentifierNode(81);return M.escapedText=T,M.transformFlags|=16777216,M}function re(T){return po(T,"#")||C.fail("First character of private identifier must be #: "+T),Ee(Pl(T))}function Te(T,M,V,pe){const tt=Ee(Pl(T));return yw(tt,{flags:M,id:vj,prefix:V,suffix:pe}),vj++,tt}function Me(T,M,V){T&&!po(T,"#")&&C.fail("First character of private identifier must be #: "+T);const pe=8|(T?3:1);return Te(T??"",pe,M,V)}function Be(T,M,V){const pe=hg(T)?o0(!0,M,T,V,Kr):`#generated@${ls(T)}`,rn=Te(pe,4|(M||V?16:0),M,V);return rn.original=T,rn}function lt(T){return t.createBaseTokenNode(T)}function ce(T){C.assert(T>=0&&T<=166,"Invalid token"),C.assert(T<=15||T>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),C.assert(T<=9||T>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),C.assert(T!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const M=lt(T);let V=0;switch(T){case 134:V=384;break;case 160:V=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:V=1;break;case 108:V=134218752,M.flowNode=void 0;break;case 126:V=1024;break;case 129:V=16777216;break;case 110:V=16384,M.flowNode=void 0;break}return V&&(M.transformFlags|=V),M}function Ce(){return ce(108)}function ye(){return ce(110)}function Ue(){return ce(106)}function Ge(){return ce(112)}function We(){return ce(97)}function at(T){return ce(T)}function Wt(T){const M=[];return T&32&&M.push(at(95)),T&128&&M.push(at(138)),T&2048&&M.push(at(90)),T&4096&&M.push(at(87)),T&1&&M.push(at(125)),T&2&&M.push(at(123)),T&4&&M.push(at(124)),T&64&&M.push(at(128)),T&256&&M.push(at(126)),T&16&&M.push(at(164)),T&8&&M.push(at(148)),T&512&&M.push(at(129)),T&1024&&M.push(at(134)),T&8192&&M.push(at(103)),T&16384&&M.push(at(147)),M.length?M:void 0}function cn(T,M){const V=W(167);return V.left=T,V.right=Uc(M),V.transformFlags|=Fr(V.left)|mw(V.right),V.flowNode=void 0,V}function gn(T,M,V){return T.left!==M||T.right!==V?br(cn(M,V),T):T}function Kn(T){const M=W(168);return M.expression=i().parenthesizeExpressionOfComputedPropertyName(T),M.transformFlags|=Fr(M.expression)|1024|131072,M}function gt(T,M){return T.expression!==M?br(Kn(M),T):T}function en(T,M,V,pe){const tt=G(169);return tt.modifiers=cs(T),tt.name=Uc(M),tt.constraint=V,tt.default=pe,tt.transformFlags=1,tt.expression=void 0,tt.jsDoc=void 0,tt}function or(T,M,V,pe,tt){return T.modifiers!==M||T.name!==V||T.constraint!==pe||T.default!==tt?br(en(M,V,pe,tt),T):T}function Ni(T,M,V,pe,tt,rn){const Or=G(170);return Or.modifiers=cs(T),Or.dotDotDotToken=M,Or.name=Uc(V),Or.questionToken=pe,Or.type=tt,Or.initializer=hu(rn),Db(Or.name)?Or.transformFlags=1:Or.transformFlags=is(Or.modifiers)|Fr(Or.dotDotDotToken)|Lb(Or.name)|Fr(Or.questionToken)|Fr(Or.initializer)|(Or.questionToken??Or.type?1:0)|(Or.dotDotDotToken??Or.initializer?1024:0)|(Qh(Or.modifiers)&31?8192:0),Or.jsDoc=void 0,Or}function so(T,M,V,pe,tt,rn,Or){return T.modifiers!==M||T.dotDotDotToken!==V||T.name!==pe||T.questionToken!==tt||T.type!==rn||T.initializer!==Or?br(Ni(M,V,pe,tt,rn,Or),T):T}function zt(T){const M=W(171);return M.expression=i().parenthesizeLeftSideOfAccess(T,!1),M.transformFlags|=Fr(M.expression)|1|8192|33554432,M}function Zr(T,M){return T.expression!==M?br(zt(M),T):T}function xi(T,M,V,pe){const tt=G(172);return tt.modifiers=cs(T),tt.name=Uc(M),tt.type=pe,tt.questionToken=V,tt.transformFlags=1,tt.initializer=void 0,tt.jsDoc=void 0,tt}function Pi(T,M,V,pe,tt){return T.modifiers!==M||T.name!==V||T.questionToken!==pe||T.type!==tt?Pr(xi(M,V,pe,tt),T):T}function Pr(T,M){return T!==M&&(T.initializer=M.initializer),br(T,M)}function Mi(T,M,V,pe,tt){const rn=G(173);rn.modifiers=cs(T),rn.name=Uc(M),rn.questionToken=V&&wb(V)?V:void 0,rn.exclamationToken=V&&bw(V)?V:void 0,rn.type=pe,rn.initializer=hu(tt);const Or=rn.flags&33554432||Qh(rn.modifiers)&128;return rn.transformFlags=is(rn.modifiers)|Lb(rn.name)|Fr(rn.initializer)|(Or||rn.questionToken||rn.exclamationToken||rn.type?1:0)|(va(rn.name)||Qh(rn.modifiers)&256&&rn.initializer?8192:0)|16777216,rn.jsDoc=void 0,rn}function $e(T,M,V,pe,tt,rn){return T.modifiers!==M||T.name!==V||T.questionToken!==(pe!==void 0&&wb(pe)?pe:void 0)||T.exclamationToken!==(pe!==void 0&&bw(pe)?pe:void 0)||T.type!==tt||T.initializer!==rn?br(Mi(M,V,pe,tt,rn),T):T}function At(T,M,V,pe,tt,rn){const Or=G(174);return Or.modifiers=cs(T),Or.name=Uc(M),Or.questionToken=V,Or.typeParameters=cs(pe),Or.parameters=cs(tt),Or.type=rn,Or.transformFlags=1,Or.jsDoc=void 0,Or.locals=void 0,Or.nextContainer=void 0,Or.typeArguments=void 0,Or}function hn(T,M,V,pe,tt,rn,Or){return T.modifiers!==M||T.name!==V||T.questionToken!==pe||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or?j(At(M,V,pe,tt,rn,Or),T):T}function dr(T,M,V,pe,tt,rn,Or,Lo){const il=G(175);if(il.modifiers=cs(T),il.asteriskToken=M,il.name=Uc(V),il.questionToken=pe,il.exclamationToken=void 0,il.typeParameters=cs(tt),il.parameters=F(rn),il.type=Or,il.body=Lo,!il.body)il.transformFlags=1;else{const lf=Qh(il.modifiers)&1024,fT=!!il.asteriskToken,Dh=lf&&fT;il.transformFlags=is(il.modifiers)|Fr(il.asteriskToken)|Lb(il.name)|Fr(il.questionToken)|is(il.typeParameters)|is(il.parameters)|Fr(il.type)|Fr(il.body)&-67108865|(Dh?128:lf?256:fT?2048:0)|(il.questionToken||il.typeParameters||il.type?1:0)|1024}return il.typeArguments=void 0,il.jsDoc=void 0,il.locals=void 0,il.nextContainer=void 0,il.flowNode=void 0,il.endFlowNode=void 0,il.returnFlowNode=void 0,il}function ri(T,M,V,pe,tt,rn,Or,Lo,il){return T.modifiers!==M||T.asteriskToken!==V||T.name!==pe||T.questionToken!==tt||T.typeParameters!==rn||T.parameters!==Or||T.type!==Lo||T.body!==il?ai(dr(M,V,pe,tt,rn,Or,Lo,il),T):T}function ai(T,M){return T!==M&&(T.exclamationToken=M.exclamationToken),br(T,M)}function qi(T){const M=G(176);return M.body=T,M.transformFlags=Fr(T)|16777216,M.modifiers=void 0,M.jsDoc=void 0,M.locals=void 0,M.nextContainer=void 0,M.endFlowNode=void 0,M.returnFlowNode=void 0,M}function Qo(T,M){return T.body!==M?Ia(qi(M),T):T}function Ia(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function Pn(T,M,V){const pe=G(177);return pe.modifiers=cs(T),pe.parameters=F(M),pe.body=V,pe.body?pe.transformFlags=is(pe.modifiers)|is(pe.parameters)|Fr(pe.body)&-67108865|1024:pe.transformFlags=1,pe.typeParameters=void 0,pe.type=void 0,pe.typeArguments=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.returnFlowNode=void 0,pe}function Uo(T,M,V,pe){return T.modifiers!==M||T.parameters!==V||T.body!==pe?ot(Pn(M,V,pe),T):T}function ot(T,M){return T!==M&&(T.typeParameters=M.typeParameters,T.type=M.type),j(T,M)}function Ft(T,M,V,pe,tt){const rn=G(178);return rn.modifiers=cs(T),rn.name=Uc(M),rn.parameters=F(V),rn.type=pe,rn.body=tt,rn.body?rn.transformFlags=is(rn.modifiers)|Lb(rn.name)|is(rn.parameters)|Fr(rn.type)|Fr(rn.body)&-67108865|(rn.type?1:0):rn.transformFlags=1,rn.typeArguments=void 0,rn.typeParameters=void 0,rn.jsDoc=void 0,rn.locals=void 0,rn.nextContainer=void 0,rn.flowNode=void 0,rn.endFlowNode=void 0,rn.returnFlowNode=void 0,rn}function le(T,M,V,pe,tt,rn){return T.modifiers!==M||T.name!==V||T.parameters!==pe||T.type!==tt||T.body!==rn?_t(Ft(M,V,pe,tt,rn),T):T}function _t(T,M){return T!==M&&(T.typeParameters=M.typeParameters),j(T,M)}function ne(T,M,V,pe){const tt=G(179);return tt.modifiers=cs(T),tt.name=Uc(M),tt.parameters=F(V),tt.body=pe,tt.body?tt.transformFlags=is(tt.modifiers)|Lb(tt.name)|is(tt.parameters)|Fr(tt.body)&-67108865|(tt.type?1:0):tt.transformFlags=1,tt.typeArguments=void 0,tt.typeParameters=void 0,tt.type=void 0,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt.endFlowNode=void 0,tt.returnFlowNode=void 0,tt}function Fe(T,M,V,pe,tt){return T.modifiers!==M||T.name!==V||T.parameters!==pe||T.body!==tt?it(ne(M,V,pe,tt),T):T}function it(T,M){return T!==M&&(T.typeParameters=M.typeParameters,T.type=M.type),j(T,M)}function dt(T,M,V){const pe=G(180);return pe.typeParameters=cs(T),pe.parameters=cs(M),pe.type=V,pe.transformFlags=1,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.typeArguments=void 0,pe}function Lt(T,M,V,pe){return T.typeParameters!==M||T.parameters!==V||T.type!==pe?j(dt(M,V,pe),T):T}function He(T,M,V){const pe=G(181);return pe.typeParameters=cs(T),pe.parameters=cs(M),pe.type=V,pe.transformFlags=1,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.typeArguments=void 0,pe}function Rt(T,M,V,pe){return T.typeParameters!==M||T.parameters!==V||T.type!==pe?j(He(M,V,pe),T):T}function It(T,M,V){const pe=G(182);return pe.modifiers=cs(T),pe.parameters=cs(M),pe.type=V,pe.transformFlags=1,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.typeArguments=void 0,pe}function Ot(T,M,V,pe){return T.parameters!==V||T.type!==pe||T.modifiers!==M?j(It(M,V,pe),T):T}function nt(T,M){const V=W(205);return V.type=T,V.literal=M,V.transformFlags=1,V}function Jt(T,M,V){return T.type!==M||T.literal!==V?br(nt(M,V),T):T}function Tr(T){return ce(T)}function Oe(T,M,V){const pe=W(183);return pe.assertsModifier=T,pe.parameterName=Uc(M),pe.type=V,pe.transformFlags=1,pe}function Nt(T,M,V,pe){return T.assertsModifier!==M||T.parameterName!==V||T.type!==pe?br(Oe(M,V,pe),T):T}function ge(T,M){const V=W(184);return V.typeName=Uc(T),V.typeArguments=M&&i().parenthesizeTypeArguments(F(M)),V.transformFlags=1,V}function B(T,M,V){return T.typeName!==M||T.typeArguments!==V?br(ge(M,V),T):T}function Ie(T,M,V){const pe=G(185);return pe.typeParameters=cs(T),pe.parameters=cs(M),pe.type=V,pe.transformFlags=1,pe.modifiers=void 0,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.typeArguments=void 0,pe}function te(T,M,V,pe){return T.typeParameters!==M||T.parameters!==V||T.type!==pe?xt(Ie(M,V,pe),T):T}function xt(T,M){return T!==M&&(T.modifiers=M.modifiers),j(T,M)}function Kt(...T){return T.length===4?Le(...T):T.length===3?yt(...T):C.fail("Incorrect number of arguments specified.")}function Le(T,M,V,pe){const tt=G(186);return tt.modifiers=cs(T),tt.typeParameters=cs(M),tt.parameters=cs(V),tt.type=pe,tt.transformFlags=1,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.typeArguments=void 0,tt}function yt(T,M,V){return Le(void 0,T,M,V)}function Bt(...T){return T.length===5?gr(...T):T.length===4?tr(...T):C.fail("Incorrect number of arguments specified.")}function gr(T,M,V,pe,tt){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==pe||T.type!==tt?j(Kt(M,V,pe,tt),T):T}function tr(T,M,V,pe){return gr(T,T.modifiers,M,V,pe)}function Jn(T,M){const V=W(187);return V.exprName=T,V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags=1,V}function mt(T,M,V){return T.exprName!==M||T.typeArguments!==V?br(Jn(M,V),T):T}function Mt(T){const M=G(188);return M.members=F(T),M.transformFlags=1,M}function Vt(T,M){return T.members!==M?br(Mt(M),T):T}function Qt(T){const M=W(189);return M.elementType=i().parenthesizeNonArrayTypeOfPostfixType(T),M.transformFlags=1,M}function In(T,M){return T.elementType!==M?br(Qt(M),T):T}function yn(T){const M=W(190);return M.elements=F(i().parenthesizeElementTypesOfTupleType(T)),M.transformFlags=1,M}function wt(T,M){return T.elements!==M?br(yn(M),T):T}function En(T,M,V,pe){const tt=G(203);return tt.dotDotDotToken=T,tt.name=M,tt.questionToken=V,tt.type=pe,tt.transformFlags=1,tt.jsDoc=void 0,tt}function xn(T,M,V,pe,tt){return T.dotDotDotToken!==M||T.name!==V||T.questionToken!==pe||T.type!==tt?br(En(M,V,pe,tt),T):T}function wn(T){const M=W(191);return M.type=i().parenthesizeTypeOfOptionalType(T),M.transformFlags=1,M}function ln(T,M){return T.type!==M?br(wn(M),T):T}function Ri(T){const M=W(192);return M.type=T,M.transformFlags=1,M}function ia(T,M){return T.type!==M?br(Ri(M),T):T}function la(T,M,V){const pe=W(T);return pe.types=k.createNodeArray(V(M)),pe.transformFlags=1,pe}function zo(T,M,V){return T.types!==M?br(la(T.kind,M,V),T):T}function jl(T){return la(193,T,i().parenthesizeConstituentTypesOfUnionType)}function Cl(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfUnionType)}function ks(T){return la(194,T,i().parenthesizeConstituentTypesOfIntersectionType)}function lo(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfIntersectionType)}function Go(T,M,V,pe){const tt=W(195);return tt.checkType=i().parenthesizeCheckTypeOfConditionalType(T),tt.extendsType=i().parenthesizeExtendsTypeOfConditionalType(M),tt.trueType=V,tt.falseType=pe,tt.transformFlags=1,tt.locals=void 0,tt.nextContainer=void 0,tt}function Ec(T,M,V,pe,tt){return T.checkType!==M||T.extendsType!==V||T.trueType!==pe||T.falseType!==tt?br(Go(M,V,pe,tt),T):T}function Zs(T){const M=W(196);return M.typeParameter=T,M.transformFlags=1,M}function Da(T,M){return T.typeParameter!==M?br(Zs(M),T):T}function ic(T,M){const V=W(204);return V.head=T,V.templateSpans=F(M),V.transformFlags=1,V}function Sf(T,M,V){return T.head!==M||T.templateSpans!==V?br(ic(M,V),T):T}function Po(T,M,V,pe,tt=!1){const rn=W(206);return rn.argument=T,rn.attributes=M,rn.assertions&&rn.assertions.assertClause&&rn.attributes&&(rn.assertions.assertClause=rn.attributes),rn.qualifier=V,rn.typeArguments=pe&&i().parenthesizeTypeArguments(pe),rn.isTypeOf=tt,rn.transformFlags=1,rn}function fa(T,M,V,pe,tt,rn=T.isTypeOf){return T.argument!==M||T.attributes!==V||T.qualifier!==pe||T.typeArguments!==tt||T.isTypeOf!==rn?br(Po(M,V,pe,tt,rn),T):T}function os(T){const M=W(197);return M.type=T,M.transformFlags=1,M}function Ja(T,M){return T.type!==M?br(os(M),T):T}function Zt(){const T=W(198);return T.transformFlags=1,T}function xs(T,M){const V=W(199);return V.operator=T,V.type=T===148?i().parenthesizeOperandOfReadonlyTypeOperator(M):i().parenthesizeOperandOfTypeOperator(M),V.transformFlags=1,V}function Xl(T,M){return T.type!==M?br(xs(T.operator,M),T):T}function dc(T,M){const V=W(200);return V.objectType=i().parenthesizeNonArrayTypeOfPostfixType(T),V.indexType=M,V.transformFlags=1,V}function bd(T,M,V){return T.objectType!==M||T.indexType!==V?br(dc(M,V),T):T}function Bs(T,M,V,pe,tt,rn){const Or=G(201);return Or.readonlyToken=T,Or.typeParameter=M,Or.nameType=V,Or.questionToken=pe,Or.type=tt,Or.members=rn&&F(rn),Or.transformFlags=1,Or.locals=void 0,Or.nextContainer=void 0,Or}function Ae(T,M,V,pe,tt,rn,Or){return T.readonlyToken!==M||T.typeParameter!==V||T.nameType!==pe||T.questionToken!==tt||T.type!==rn||T.members!==Or?br(Bs(M,V,pe,tt,rn,Or),T):T}function $(T){const M=W(202);return M.literal=T,M.transformFlags=1,M}function ft(T,M){return T.literal!==M?br($(M),T):T}function Ht(T){const M=W(207);return M.elements=F(T),M.transformFlags|=is(M.elements)|1024|524288,M.transformFlags&32768&&(M.transformFlags|=65664),M}function fn(T,M){return T.elements!==M?br(Ht(M),T):T}function ur(T){const M=W(208);return M.elements=F(T),M.transformFlags|=is(M.elements)|1024|524288,M}function si(T,M){return T.elements!==M?br(ur(M),T):T}function Dr(T,M,V,pe){const tt=G(209);return tt.dotDotDotToken=T,tt.propertyName=Uc(M),tt.name=Uc(V),tt.initializer=hu(pe),tt.transformFlags|=Fr(tt.dotDotDotToken)|Lb(tt.propertyName)|Lb(tt.name)|Fr(tt.initializer)|(tt.dotDotDotToken?32768:0)|1024,tt.flowNode=void 0,tt}function Bn(T,M,V,pe,tt){return T.propertyName!==V||T.dotDotDotToken!==M||T.name!==pe||T.initializer!==tt?br(Dr(M,V,pe,tt),T):T}function no(T,M){const V=W(210),pe=T&&tl(T),tt=F(T,pe&&Xc(pe)?!0:void 0);return V.elements=i().parenthesizeExpressionsOfCommaDelimitedList(tt),V.multiLine=M,V.transformFlags|=is(V.elements),V}function To(T,M){return T.elements!==M?br(no(M,T.multiLine),T):T}function Ps(T,M){const V=G(211);return V.properties=F(T),V.multiLine=M,V.transformFlags|=is(V.properties),V.jsDoc=void 0,V}function Ca(T,M){return T.properties!==M?br(Ps(M,T.multiLine),T):T}function el(T,M,V){const pe=G(212);return pe.expression=T,pe.questionDotToken=M,pe.name=V,pe.transformFlags=Fr(pe.expression)|Fr(pe.questionDotToken)|(Je(pe.name)?mw(pe.name):Fr(pe.name)|536870912),pe.jsDoc=void 0,pe.flowNode=void 0,pe}function Ac(T,M){const V=el(i().parenthesizeLeftSideOfAccess(T,!1),void 0,Uc(M));return HM(T)&&(V.transformFlags|=384),V}function _c(T,M,V){return SF(T)?wl(T,M,T.questionDotToken,ma(V,Je)):T.expression!==M||T.name!==V?br(Ac(M,V),T):T}function Js(T,M,V){const pe=el(i().parenthesizeLeftSideOfAccess(T,!0),M,Uc(V));return pe.flags|=64,pe.transformFlags|=32,pe}function wl(T,M,V,pe){return C.assert(!!(T.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),T.expression!==M||T.questionDotToken!==V||T.name!==pe?br(Js(M,V,pe),T):T}function Sh(T,M,V){const pe=G(213);return pe.expression=T,pe.questionDotToken=M,pe.argumentExpression=V,pe.transformFlags|=Fr(pe.expression)|Fr(pe.questionDotToken)|Fr(pe.argumentExpression),pe.jsDoc=void 0,pe.flowNode=void 0,pe}function Ld(T,M){const V=Sh(i().parenthesizeLeftSideOfAccess(T,!1),void 0,Fv(M));return HM(T)&&(V.transformFlags|=384),V}function af(T,M,V){return nG(T)?ze(T,M,T.questionDotToken,V):T.expression!==M||T.argumentExpression!==V?br(Ld(M,V),T):T}function lp(T,M,V){const pe=Sh(i().parenthesizeLeftSideOfAccess(T,!0),M,Fv(V));return pe.flags|=64,pe.transformFlags|=32,pe}function ze(T,M,V,pe){return C.assert(!!(T.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),T.expression!==M||T.questionDotToken!==V||T.argumentExpression!==pe?br(lp(M,V,pe),T):T}function qt(T,M,V,pe){const tt=G(214);return tt.expression=T,tt.questionDotToken=M,tt.typeArguments=V,tt.arguments=pe,tt.transformFlags|=Fr(tt.expression)|Fr(tt.questionDotToken)|is(tt.typeArguments)|is(tt.arguments),tt.typeArguments&&(tt.transformFlags|=1),gp(tt.expression)&&(tt.transformFlags|=16384),tt}function er(T,M,V){const pe=qt(i().parenthesizeLeftSideOfAccess(T,!1),void 0,cs(M),i().parenthesizeExpressionsOfCommaDelimitedList(F(V)));return qM(pe.expression)&&(pe.transformFlags|=8388608),pe}function go(T,M,V,pe){return QE(T)?ts(T,M,T.questionDotToken,V,pe):T.expression!==M||T.typeArguments!==V||T.arguments!==pe?br(er(M,V,pe),T):T}function es(T,M,V,pe){const tt=qt(i().parenthesizeLeftSideOfAccess(T,!0),M,cs(V),i().parenthesizeExpressionsOfCommaDelimitedList(F(pe)));return tt.flags|=64,tt.transformFlags|=32,tt}function ts(T,M,V,pe,tt){return C.assert(!!(T.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),T.expression!==M||T.questionDotToken!==V||T.typeArguments!==pe||T.arguments!==tt?br(es(M,V,pe,tt),T):T}function ja(T,M,V){const pe=G(215);return pe.expression=i().parenthesizeExpressionOfNew(T),pe.typeArguments=cs(M),pe.arguments=V?i().parenthesizeExpressionsOfCommaDelimitedList(V):void 0,pe.transformFlags|=Fr(pe.expression)|is(pe.typeArguments)|is(pe.arguments)|32,pe.typeArguments&&(pe.transformFlags|=1),pe}function kc(T,M,V,pe){return T.expression!==M||T.typeArguments!==V||T.arguments!==pe?br(ja(M,V,pe),T):T}function rl(T,M,V){const pe=W(216);return pe.tag=i().parenthesizeLeftSideOfAccess(T,!1),pe.typeArguments=cs(M),pe.template=V,pe.transformFlags|=Fr(pe.tag)|is(pe.typeArguments)|Fr(pe.template)|1024,pe.typeArguments&&(pe.transformFlags|=1),uV(pe.template)&&(pe.transformFlags|=128),pe}function Ol(T,M,V,pe){return T.tag!==M||T.typeArguments!==V||T.template!==pe?br(rl(M,V,pe),T):T}function Yl(T,M){const V=W(217);return V.expression=i().parenthesizeOperandOfPrefixUnary(M),V.type=T,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function sf(T,M,V){return T.type!==M||T.expression!==V?br(Yl(M,V),T):T}function Td(T){const M=W(218);return M.expression=T,M.transformFlags=Fr(M.expression),M.jsDoc=void 0,M}function cd(T,M){return T.expression!==M?br(Td(M),T):T}function qp(T,M,V,pe,tt,rn,Or){const Lo=G(219);Lo.modifiers=cs(T),Lo.asteriskToken=M,Lo.name=Uc(V),Lo.typeParameters=cs(pe),Lo.parameters=F(tt),Lo.type=rn,Lo.body=Or;const il=Qh(Lo.modifiers)&1024,lf=!!Lo.asteriskToken,fT=il&&lf;return Lo.transformFlags=is(Lo.modifiers)|Fr(Lo.asteriskToken)|Lb(Lo.name)|is(Lo.typeParameters)|is(Lo.parameters)|Fr(Lo.type)|Fr(Lo.body)&-67108865|(fT?128:il?256:lf?2048:0)|(Lo.typeParameters||Lo.type?1:0)|4194304,Lo.typeArguments=void 0,Lo.jsDoc=void 0,Lo.locals=void 0,Lo.nextContainer=void 0,Lo.flowNode=void 0,Lo.endFlowNode=void 0,Lo.returnFlowNode=void 0,Lo}function Ru(T,M,V,pe,tt,rn,Or,Lo){return T.name!==pe||T.modifiers!==M||T.asteriskToken!==V||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==Lo?j(qp(M,V,pe,tt,rn,Or,Lo),T):T}function Zf(T,M,V,pe,tt,rn){const Or=G(220);Or.modifiers=cs(T),Or.typeParameters=cs(M),Or.parameters=F(V),Or.type=pe,Or.equalsGreaterThanToken=tt??ce(39),Or.body=i().parenthesizeConciseBodyOfArrowFunction(rn);const Lo=Qh(Or.modifiers)&1024;return Or.transformFlags=is(Or.modifiers)|is(Or.typeParameters)|is(Or.parameters)|Fr(Or.type)|Fr(Or.equalsGreaterThanToken)|Fr(Or.body)&-67108865|(Or.typeParameters||Or.type?1:0)|(Lo?16640:0)|1024,Or.typeArguments=void 0,Or.jsDoc=void 0,Or.locals=void 0,Or.nextContainer=void 0,Or.flowNode=void 0,Or.endFlowNode=void 0,Or.returnFlowNode=void 0,Or}function j_(T,M,V,pe,tt,rn,Or){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==pe||T.type!==tt||T.equalsGreaterThanToken!==rn||T.body!==Or?j(Zf(M,V,pe,tt,rn,Or),T):T}function kg(T){const M=W(221);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function wg(T,M){return T.expression!==M?br(kg(M),T):T}function cp(T){const M=W(222);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function $c(T,M){return T.expression!==M?br(cp(M),T):T}function Eh(T){const M=W(223);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Ef(T,M){return T.expression!==M?br(Eh(M),T):T}function h_(T){const M=W(224);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression)|256|128|2097152,M}function ae(T,M){return T.expression!==M?br(h_(M),T):T}function pt(T,M){const V=W(225);return V.operator=T,V.operand=i().parenthesizeOperandOfPrefixUnary(M),V.transformFlags|=Fr(V.operand),(T===46||T===47)&&Je(V.operand)&&!ml(V.operand)&&!gy(V.operand)&&(V.transformFlags|=268435456),V}function tn(T,M){return T.operand!==M?br(pt(T.operator,M),T):T}function an(T,M){const V=W(226);return V.operator=M,V.operand=i().parenthesizeOperandOfPostfixUnary(T),V.transformFlags|=Fr(V.operand),Je(V.operand)&&!ml(V.operand)&&!gy(V.operand)&&(V.transformFlags|=268435456),V}function Wn(T,M){return T.operand!==M?br(an(M,T.operator),T):T}function ar(T,M,V){const pe=G(227),tt=tR(M),rn=tt.kind;return pe.left=i().parenthesizeLeftSideOfBinary(rn,T),pe.operatorToken=tt,pe.right=i().parenthesizeRightSideOfBinary(rn,pe.left,V),pe.transformFlags|=Fr(pe.left)|Fr(pe.operatorToken)|Fr(pe.right),rn===61?pe.transformFlags|=32:rn===64?za(pe.left)?pe.transformFlags|=5248|ti(pe.left):Nd(pe.left)&&(pe.transformFlags|=5120|ti(pe.left)):rn===43||rn===68?pe.transformFlags|=512:yM(rn)&&(pe.transformFlags|=16),rn===103&&Qi(pe.left)&&(pe.transformFlags|=536870912),pe.jsDoc=void 0,pe}function ti(T){return kw(T)?65536:0}function Si(T,M,V,pe){return T.left!==M||T.operatorToken!==V||T.right!==pe?br(ar(M,V,pe),T):T}function Yi(T,M,V,pe,tt){const rn=W(228);return rn.condition=i().parenthesizeConditionOfConditionalExpression(T),rn.questionToken=M??ce(58),rn.whenTrue=i().parenthesizeBranchOfConditionalExpression(V),rn.colonToken=pe??ce(59),rn.whenFalse=i().parenthesizeBranchOfConditionalExpression(tt),rn.transformFlags|=Fr(rn.condition)|Fr(rn.questionToken)|Fr(rn.whenTrue)|Fr(rn.colonToken)|Fr(rn.whenFalse),rn.flowNodeWhenFalse=void 0,rn.flowNodeWhenTrue=void 0,rn}function z(T,M,V,pe,tt,rn){return T.condition!==M||T.questionToken!==V||T.whenTrue!==pe||T.colonToken!==tt||T.whenFalse!==rn?br(Yi(M,V,pe,tt,rn),T):T}function je(T,M){const V=W(229);return V.head=T,V.templateSpans=F(M),V.transformFlags|=Fr(V.head)|is(V.templateSpans)|1024,V}function kt(T,M,V){return T.head!==M||T.templateSpans!==V?br(je(M,V),T):T}function Fn(T,M,V,pe=0){C.assert(!(pe&-7177),"Unsupported template flags.");let tt;if(V!==void 0&&V!==M&&(tt=cje(T,V),typeof tt=="object"))return C.fail("Invalid raw text");if(M===void 0){if(tt===void 0)return C.fail("Arguments 'text' and 'rawText' may not both be undefined.");M=tt}else tt!==void 0&&C.assert(M===tt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return M}function yo(T){let M=1024;return T&&(M|=128),M}function na(T,M,V,pe){const tt=lt(T);return tt.text=M,tt.rawText=V,tt.templateFlags=pe&7176,tt.transformFlags=yo(tt.templateFlags),tt}function So(T,M,V,pe){const tt=G(T);return tt.text=M,tt.rawText=V,tt.templateFlags=pe&7176,tt.transformFlags=yo(tt.templateFlags),tt}function Vo(T,M,V,pe){return T===15?So(T,M,V,pe):na(T,M,V,pe)}function _l(T,M,V){return T=Fn(16,T,M,V),Vo(16,T,M,V)}function Na(T,M,V){return T=Fn(16,T,M,V),Vo(17,T,M,V)}function dd(T,M,V){return T=Fn(16,T,M,V),Vo(18,T,M,V)}function Jp(T,M,V){return T=Fn(16,T,M,V),So(15,T,M,V)}function Af(T,M){C.assert(!T||!!M,"A `YieldExpression` with an asteriskToken must have an expression.");const V=W(230);return V.expression=M&&i().parenthesizeExpressionForDisallowedComma(M),V.asteriskToken=T,V.transformFlags|=Fr(V.expression)|Fr(V.asteriskToken)|1024|128|1048576,V}function em(T,M,V){return T.expression!==V||T.asteriskToken!==M?br(Af(M,V),T):T}function Iy(T){const M=W(231);return M.expression=i().parenthesizeExpressionForDisallowedComma(T),M.transformFlags|=Fr(M.expression)|1024|32768,M}function Ev(T,M){return T.expression!==M?br(Iy(M),T):T}function ju(T,M,V,pe,tt){const rn=G(232);return rn.modifiers=cs(T),rn.name=Uc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(pe),rn.members=F(tt),rn.transformFlags|=is(rn.modifiers)|Lb(rn.name)|is(rn.typeParameters)|is(rn.heritageClauses)|is(rn.members)|(rn.typeParameters?1:0)|1024,rn.jsDoc=void 0,rn}function U_(T,M,V,pe,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==pe||T.heritageClauses!==tt||T.members!==rn?br(ju(M,V,pe,tt,rn),T):T}function Ah(){return W(233)}function Mm(T,M){const V=W(234);return V.expression=i().parenthesizeLeftSideOfAccess(T,!1),V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags|=Fr(V.expression)|is(V.typeArguments)|1024,V}function Yb(T,M,V){return T.expression!==M||T.typeArguments!==V?br(Mm(M,V),T):T}function Ye(T,M){const V=W(235);return V.expression=T,V.type=M,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function ht(T,M,V){return T.expression!==M||T.type!==V?br(Ye(M,V),T):T}function Xt(T){const M=W(236);return M.expression=i().parenthesizeLeftSideOfAccess(T,!1),M.transformFlags|=Fr(M.expression)|1,M}function Rn(T,M){return AF(T)?cr(T,M):T.expression!==M?br(Xt(M),T):T}function Qn(T,M){const V=W(239);return V.expression=T,V.type=M,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function Lr(T,M,V){return T.expression!==M||T.type!==V?br(Qn(M,V),T):T}function Yn(T){const M=W(236);return M.flags|=64,M.expression=i().parenthesizeLeftSideOfAccess(T,!0),M.transformFlags|=Fr(M.expression)|1,M}function cr(T,M){return C.assert(!!(T.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),T.expression!==M?br(Yn(M),T):T}function Wi(T,M){const V=W(237);switch(V.keywordToken=T,V.name=M,V.transformFlags|=Fr(V.name),T){case 105:V.transformFlags|=1024;break;case 102:V.transformFlags|=32;break;default:return C.assertNever(T)}return V.flowNode=void 0,V}function xo(T,M){return T.name!==M?br(Wi(T.keywordToken,M),T):T}function _i(T,M){const V=W(240);return V.expression=T,V.literal=M,V.transformFlags|=Fr(V.expression)|Fr(V.literal)|1024,V}function Ro(T,M,V){return T.expression!==M||T.literal!==V?br(_i(M,V),T):T}function $i(){const T=W(241);return T.transformFlags|=1024,T}function gl(T,M){const V=W(242);return V.statements=F(T),V.multiLine=M,V.transformFlags|=is(V.statements),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V}function dp(T,M){return T.statements!==M?br(gl(M,T.multiLine),T):T}function Pm(T,M){const V=W(244);return V.modifiers=cs(T),V.declarationList=No(M)?x0(M):M,V.transformFlags|=is(V.modifiers)|Fr(V.declarationList),Qh(V.modifiers)&128&&(V.transformFlags=1),V.jsDoc=void 0,V.flowNode=void 0,V}function Sd(T,M,V){return T.modifiers!==M||T.declarationList!==V?br(Pm(M,V),T):T}function Lm(){const T=W(243);return T.jsDoc=void 0,T}function Kp(T){const M=W(245);return M.expression=i().parenthesizeExpressionOfExpressionStatement(T),M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function S0(T,M){return T.expression!==M?br(Kp(M),T):T}function __(T,M,V){const pe=W(246);return pe.expression=T,pe.thenStatement=Ug(M),pe.elseStatement=Ug(V),pe.transformFlags|=Fr(pe.expression)|Fr(pe.thenStatement)|Fr(pe.elseStatement),pe.jsDoc=void 0,pe.flowNode=void 0,pe}function H_(T,M,V,pe){return T.expression!==M||T.thenStatement!==V||T.elseStatement!==pe?br(__(M,V,pe),T):T}function E0(T,M){const V=W(247);return V.statement=Ug(T),V.expression=M,V.transformFlags|=Fr(V.statement)|Fr(V.expression),V.jsDoc=void 0,V.flowNode=void 0,V}function q_(T,M,V){return T.statement!==M||T.expression!==V?br(E0(M,V),T):T}function RC(T,M){const V=W(248);return V.expression=T,V.statement=Ug(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function sL(T,M,V){return T.expression!==M||T.statement!==V?br(RC(M,V),T):T}function DC(T,M,V,pe){const tt=W(249);return tt.initializer=T,tt.condition=M,tt.incrementor=V,tt.statement=Ug(pe),tt.transformFlags|=Fr(tt.initializer)|Fr(tt.condition)|Fr(tt.incrementor)|Fr(tt.statement),tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt}function Og(T,M,V,pe,tt){return T.initializer!==M||T.condition!==V||T.incrementor!==pe||T.statement!==tt?br(DC(M,V,pe,tt),T):T}function A0(T,M,V){const pe=W(250);return pe.initializer=T,pe.expression=M,pe.statement=Ug(V),pe.transformFlags|=Fr(pe.initializer)|Fr(pe.expression)|Fr(pe.statement),pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe.flowNode=void 0,pe}function Y1(T,M,V,pe){return T.initializer!==M||T.expression!==V||T.statement!==pe?br(A0(M,V,pe),T):T}function Av(T,M,V,pe){const tt=W(251);return tt.awaitModifier=T,tt.initializer=M,tt.expression=i().parenthesizeExpressionForDisallowedComma(V),tt.statement=Ug(pe),tt.transformFlags|=Fr(tt.awaitModifier)|Fr(tt.initializer)|Fr(tt.expression)|Fr(tt.statement)|1024,T&&(tt.transformFlags|=128),tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt.flowNode=void 0,tt}function $1(T,M,V,pe,tt){return T.awaitModifier!==M||T.initializer!==V||T.expression!==pe||T.statement!==tt?br(Av(M,V,pe,tt),T):T}function Lx(T){const M=W(252);return M.label=Uc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function lL(T,M){return T.label!==M?br(Lx(M),T):T}function Q1(T){const M=W(253);return M.label=Uc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function kx(T,M){return T.label!==M?br(Q1(M),T):T}function I0(T){const M=W(254);return M.expression=T,M.transformFlags|=Fr(M.expression)|128|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function CC(T,M){return T.expression!==M?br(I0(M),T):T}function Z1(T,M){const V=W(255);return V.expression=T,V.statement=Ug(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function wx(T,M,V){return T.expression!==M||T.statement!==V?br(Z1(M,V),T):T}function pE(T,M){const V=W(256);return V.expression=i().parenthesizeExpressionForDisallowedComma(T),V.caseBlock=M,V.transformFlags|=Fr(V.expression)|Fr(V.caseBlock),V.jsDoc=void 0,V.flowNode=void 0,V.possiblyExhaustive=!1,V}function $b(T,M,V){return T.expression!==M||T.caseBlock!==V?br(pE(M,V),T):T}function Ox(T,M){const V=W(257);return V.label=Uc(T),V.statement=Ug(M),V.transformFlags|=Fr(V.label)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function Wx(T,M,V){return T.label!==M||T.statement!==V?br(Ox(M,V),T):T}function fE(T){const M=W(258);return M.expression=T,M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function Qb(T,M){return T.expression!==M?br(fE(M),T):T}function Iv(T,M,V){const pe=W(259);return pe.tryBlock=T,pe.catchClause=M,pe.finallyBlock=V,pe.transformFlags|=Fr(pe.tryBlock)|Fr(pe.catchClause)|Fr(pe.finallyBlock),pe.jsDoc=void 0,pe.flowNode=void 0,pe}function xy(T,M,V,pe){return T.tryBlock!==M||T.catchClause!==V||T.finallyBlock!==pe?br(Iv(M,V,pe),T):T}function Ry(){const T=W(260);return T.jsDoc=void 0,T.flowNode=void 0,T}function Dy(T,M,V,pe){const tt=G(261);return tt.name=Uc(T),tt.exclamationToken=M,tt.type=V,tt.initializer=hu(pe),tt.transformFlags|=Lb(tt.name)|Fr(tt.initializer)|(tt.exclamationToken??tt.type?1:0),tt.jsDoc=void 0,tt}function Zb(T,M,V,pe,tt){return T.name!==M||T.type!==pe||T.exclamationToken!==V||T.initializer!==tt?br(Dy(M,V,pe,tt),T):T}function x0(T,M=0){const V=W(262);return V.flags|=M&7,V.declarations=F(T),V.transformFlags|=is(V.declarations)|4194304,M&7&&(V.transformFlags|=263168),M&4&&(V.transformFlags|=4),V}function eA(T,M){return T.declarations!==M?br(x0(M,T.flags),T):T}function R0(T,M,V,pe,tt,rn,Or){const Lo=G(263);if(Lo.modifiers=cs(T),Lo.asteriskToken=M,Lo.name=Uc(V),Lo.typeParameters=cs(pe),Lo.parameters=F(tt),Lo.type=rn,Lo.body=Or,!Lo.body||Qh(Lo.modifiers)&128)Lo.transformFlags=1;else{const il=Qh(Lo.modifiers)&1024,lf=!!Lo.asteriskToken,fT=il&&lf;Lo.transformFlags=is(Lo.modifiers)|Fr(Lo.asteriskToken)|Lb(Lo.name)|is(Lo.typeParameters)|is(Lo.parameters)|Fr(Lo.type)|Fr(Lo.body)&-67108865|(fT?128:il?256:lf?2048:0)|(Lo.typeParameters||Lo.type?1:0)|4194304}return Lo.typeArguments=void 0,Lo.jsDoc=void 0,Lo.locals=void 0,Lo.nextContainer=void 0,Lo.endFlowNode=void 0,Lo.returnFlowNode=void 0,Lo}function rs(T,M,V,pe,tt,rn,Or,Lo){return T.modifiers!==M||T.asteriskToken!==V||T.name!==pe||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==Lo?tA(R0(M,V,pe,tt,rn,Or,Lo),T):T}function tA(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),j(T,M)}function NC(T,M,V,pe,tt){const rn=G(264);return rn.modifiers=cs(T),rn.name=Uc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(pe),rn.members=F(tt),Qh(rn.modifiers)&128?rn.transformFlags=1:(rn.transformFlags|=is(rn.modifiers)|Lb(rn.name)|is(rn.typeParameters)|is(rn.heritageClauses)|is(rn.members)|(rn.typeParameters?1:0)|1024,rn.transformFlags&8192&&(rn.transformFlags|=1)),rn.jsDoc=void 0,rn}function Cy(T,M,V,pe,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==pe||T.heritageClauses!==tt||T.members!==rn?br(NC(M,V,pe,tt,rn),T):T}function Ny(T,M,V,pe,tt){const rn=G(265);return rn.modifiers=cs(T),rn.name=Uc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(pe),rn.members=F(tt),rn.transformFlags=1,rn.jsDoc=void 0,rn}function J_(T,M,V,pe,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==pe||T.heritageClauses!==tt||T.members!==rn?br(Ny(M,V,pe,tt,rn),T):T}function ul(T,M,V,pe){const tt=G(266);return tt.modifiers=cs(T),tt.name=Uc(M),tt.typeParameters=cs(V),tt.type=pe,tt.transformFlags=1,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt}function Xd(T,M,V,pe,tt){return T.modifiers!==M||T.name!==V||T.typeParameters!==pe||T.type!==tt?br(ul(M,V,pe,tt),T):T}function up(T,M,V){const pe=G(267);return pe.modifiers=cs(T),pe.name=Uc(M),pe.members=F(V),pe.transformFlags|=is(pe.modifiers)|Fr(pe.name)|is(pe.members)|1,pe.transformFlags&=-67108865,pe.jsDoc=void 0,pe}function Yd(T,M,V,pe){return T.modifiers!==M||T.name!==V||T.members!==pe?br(up(M,V,pe),T):T}function D0(T,M,V,pe=0){const tt=G(268);return tt.modifiers=cs(T),tt.flags|=pe&2088,tt.name=M,tt.body=V,Qh(tt.modifiers)&128?tt.transformFlags=1:tt.transformFlags|=is(tt.modifiers)|Fr(tt.name)|Fr(tt.body)|1,tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt}function Du(T,M,V,pe){return T.modifiers!==M||T.name!==V||T.body!==pe?br(D0(M,V,pe,T.flags),T):T}function K_(T){const M=W(269);return M.statements=F(T),M.transformFlags|=is(M.statements),M.jsDoc=void 0,M}function Uu(T,M){return T.statements!==M?br(K_(M),T):T}function km(T){const M=W(270);return M.clauses=F(T),M.transformFlags|=is(M.clauses),M.locals=void 0,M.nextContainer=void 0,M}function $m(T,M){return T.clauses!==M?br(km(M),T):T}function C0(T){const M=G(271);return M.name=Uc(T),M.transformFlags|=mw(M.name)|1,M.modifiers=void 0,M.jsDoc=void 0,M}function N0(T,M){return T.name!==M?cL(C0(M),T):T}function cL(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function MC(T,M,V,pe){const tt=G(272);return tt.modifiers=cs(T),tt.name=Uc(V),tt.isTypeOnly=M,tt.moduleReference=pe,tt.transformFlags|=is(tt.modifiers)|mw(tt.name)|Fr(tt.moduleReference),hy(tt.moduleReference)||(tt.transformFlags|=1),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function xv(T,M,V,pe,tt){return T.modifiers!==M||T.isTypeOnly!==V||T.name!==pe||T.moduleReference!==tt?br(MC(M,V,pe,tt),T):T}function mE(T,M,V,pe){const tt=W(273);return tt.modifiers=cs(T),tt.importClause=M,tt.moduleSpecifier=V,tt.attributes=tt.assertClause=pe,tt.transformFlags|=Fr(tt.importClause)|Fr(tt.moduleSpecifier),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function Ze(T,M,V,pe,tt){return T.modifiers!==M||T.importClause!==V||T.moduleSpecifier!==pe||T.attributes!==tt?br(mE(M,V,pe,tt),T):T}function nA(T,M,V){const pe=G(274);return typeof T=="boolean"&&(T=T?156:void 0),pe.isTypeOnly=T===156,pe.phaseModifier=T,pe.name=M,pe.namedBindings=V,pe.transformFlags|=Fr(pe.name)|Fr(pe.namedBindings),T===156&&(pe.transformFlags|=1),pe.transformFlags&=-67108865,pe}function Wg(T,M,V,pe){return typeof M=="boolean"&&(M=M?156:void 0),T.phaseModifier!==M||T.name!==V||T.namedBindings!==pe?br(nA(M,V,pe),T):T}function Qm(T,M){const V=W(301);return V.elements=F(T),V.multiLine=M,V.token=132,V.transformFlags|=4,V}function Rv(T,M,V){return T.elements!==M||T.multiLine!==V?br(Qm(M,V),T):T}function eT(T,M){const V=W(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function Cu(T,M,V){return T.name!==M||T.value!==V?br(eT(M,V),T):T}function Ih(T,M){const V=W(303);return V.assertClause=T,V.multiLine=M,V}function wm(T,M,V){return T.assertClause!==M||T.multiLine!==V?br(Ih(M,V),T):T}function M0(T,M,V){const pe=W(301);return pe.token=V??118,pe.elements=F(T),pe.multiLine=M,pe.transformFlags|=4,pe}function Ua(T,M,V){return T.elements!==M||T.multiLine!==V?br(M0(M,V,T.token),T):T}function If(T,M){const V=W(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function Dv(T,M,V){return T.name!==M||T.value!==V?br(If(M,V),T):T}function rA(T){const M=G(275);return M.name=T,M.transformFlags|=Fr(M.name),M.transformFlags&=-67108865,M}function My(T,M){return T.name!==M?br(rA(M),T):T}function hE(T){const M=G(281);return M.name=T,M.transformFlags|=Fr(M.name)|32,M.transformFlags&=-67108865,M}function tm(T,M){return T.name!==M?br(hE(M),T):T}function Fg(T){const M=W(276);return M.elements=F(T),M.transformFlags|=is(M.elements),M.transformFlags&=-67108865,M}function P0(T,M){return T.elements!==M?br(Fg(M),T):T}function Cv(T,M,V){const pe=G(277);return pe.isTypeOnly=T,pe.propertyName=M,pe.name=V,pe.transformFlags|=Fr(pe.propertyName)|Fr(pe.name),pe.transformFlags&=-67108865,pe}function g_(T,M,V,pe){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==pe?br(Cv(M,V,pe),T):T}function _E(T,M,V){const pe=G(278);return pe.modifiers=cs(T),pe.isExportEquals=M,pe.expression=M?i().parenthesizeRightSideOfBinary(64,void 0,V):i().parenthesizeExpressionOfExportDefault(V),pe.transformFlags|=is(pe.modifiers)|Fr(pe.expression),pe.transformFlags&=-67108865,pe.jsDoc=void 0,pe}function L0(T,M,V){return T.modifiers!==M||T.expression!==V?br(_E(M,T.isExportEquals,V),T):T}function Jr(T,M,V,pe,tt){const rn=G(279);return rn.modifiers=cs(T),rn.isTypeOnly=M,rn.exportClause=V,rn.moduleSpecifier=pe,rn.attributes=rn.assertClause=tt,rn.transformFlags|=is(rn.modifiers)|Fr(rn.exportClause)|Fr(rn.moduleSpecifier),rn.transformFlags&=-67108865,rn.jsDoc=void 0,rn}function Vr(T,M,V,pe,tt,rn){return T.modifiers!==M||T.isTypeOnly!==V||T.exportClause!==pe||T.moduleSpecifier!==tt||T.attributes!==rn?Ed(Jr(M,V,pe,tt,rn),T):T}function Ed(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),br(T,M)}function iA(T){const M=W(280);return M.elements=F(T),M.transformFlags|=is(M.elements),M.transformFlags&=-67108865,M}function Py(T,M){return T.elements!==M?br(iA(M),T):T}function gE(T,M,V){const pe=W(282);return pe.isTypeOnly=T,pe.propertyName=Uc(M),pe.name=Uc(V),pe.transformFlags|=Fr(pe.propertyName)|Fr(pe.name),pe.transformFlags&=-67108865,pe.jsDoc=void 0,pe}function PC(T,M,V,pe){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==pe?br(gE(M,V,pe),T):T}function dL(){const T=G(283);return T.jsDoc=void 0,T}function zr(T){const M=W(284);return M.expression=T,M.transformFlags|=Fr(M.expression),M.transformFlags&=-67108865,M}function Nu(T,M){return T.expression!==M?br(zr(M),T):T}function Oo(T){return W(T)}function Sp(T,M,V=!1){const pe=oA(T,V?M&&i().parenthesizeNonArrayTypeOfPostfixType(M):M);return pe.postfix=V,pe}function oA(T,M){const V=W(T);return V.type=M,V}function tT(T,M,V){return M.type!==V?br(Sp(T,V,M.postfix),M):M}function Mr(T,M,V){return M.type!==V?br(oA(T,V),M):M}function LC(T,M){const V=G(318);return V.parameters=cs(T),V.type=M,V.transformFlags=is(V.parameters)|(V.type?1:0),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V.typeArguments=void 0,V}function Fx(T,M,V){return T.parameters!==M||T.type!==V?br(LC(M,V),T):T}function fu(T,M=!1){const V=G(323);return V.jsDocPropertyTags=cs(T),V.isArrayType=M,V}function X_(T,M,V){return T.jsDocPropertyTags!==M||T.isArrayType!==V?br(fu(M,V),T):T}function xh(T){const M=W(310);return M.type=T,M}function nT(T,M){return T.type!==M?br(xh(M),T):T}function aA(T,M,V){const pe=G(324);return pe.typeParameters=cs(T),pe.parameters=F(M),pe.type=V,pe.jsDoc=void 0,pe.locals=void 0,pe.nextContainer=void 0,pe}function rT(T,M,V,pe){return T.typeParameters!==M||T.parameters!==V||T.type!==pe?br(aA(M,V,pe),T):T}function xf(T){const M=bj(T.kind);return T.tagName.escapedText===Pl(M)?T.tagName:be(M)}function Zm(T,M,V){const pe=W(T);return pe.tagName=M,pe.comment=V,pe}function nm(T,M,V){const pe=G(T);return pe.tagName=M,pe.comment=V,pe}function pp(T,M,V,pe){const tt=Zm(346,T??be("template"),pe);return tt.constraint=M,tt.typeParameters=F(V),tt}function Nv(T,M=xf(T),V,pe,tt){return T.tagName!==M||T.constraint!==V||T.typeParameters!==pe||T.comment!==tt?br(pp(M,V,pe,tt),T):T}function k0(T,M,V,pe){const tt=nm(347,T??be("typedef"),pe);return tt.typeExpression=M,tt.fullName=V,tt.name=eU(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function zx(T,M=xf(T),V,pe,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==pe||T.comment!==tt?br(k0(M,V,pe,tt),T):T}function w0(T,M,V,pe,tt,rn){const Or=nm(342,T??be("param"),rn);return Or.typeExpression=pe,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function iT(T,M=xf(T),V,pe,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==pe||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(w0(M,V,pe,tt,rn,Or),T):T}function Bx(T,M,V,pe,tt,rn){const Or=nm(349,T??be("prop"),rn);return Or.typeExpression=pe,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function Ly(T,M=xf(T),V,pe,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==pe||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(Bx(M,V,pe,tt,rn,Or),T):T}function y_(T,M,V,pe){const tt=nm(339,T??be("callback"),pe);return tt.typeExpression=M,tt.fullName=V,tt.name=eU(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function oT(T,M=xf(T),V,pe,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==pe||T.comment!==tt?br(y_(M,V,pe,tt),T):T}function O0(T,M,V){const pe=Zm(340,T??be("overload"),V);return pe.typeExpression=M,pe}function Mv(T,M=xf(T),V,pe){return T.tagName!==M||T.typeExpression!==V||T.comment!==pe?br(O0(M,V,pe),T):T}function aT(T,M,V){const pe=Zm(329,T??be("augments"),V);return pe.class=M,pe}function eh(T,M=xf(T),V,pe){return T.tagName!==M||T.class!==V||T.comment!==pe?br(aT(M,V,pe),T):T}function ky(T,M,V){const pe=Zm(330,T??be("implements"),V);return pe.class=M,pe}function zg(T,M,V){const pe=Zm(348,T??be("see"),V);return pe.name=M,pe}function sT(T,M,V,pe){return T.tagName!==M||T.name!==V||T.comment!==pe?br(zg(M,V,pe),T):T}function ud(T){const M=W(311);return M.name=T,M}function yE(T,M){return T.name!==M?br(ud(M),T):T}function Bg(T,M){const V=W(312);return V.left=T,V.right=M,V.transformFlags|=Fr(V.left)|Fr(V.right),V}function W0(T,M,V){return T.left!==M||T.right!==V?br(Bg(M,V),T):T}function sA(T,M){const V=W(325);return V.name=T,V.text=M,V}function Gg(T,M,V){return T.name!==M?br(sA(M,V),T):T}function kC(T,M){const V=W(326);return V.name=T,V.text=M,V}function Gx(T,M,V){return T.name!==M?br(kC(M,V),T):T}function Vx(T,M){const V=W(327);return V.name=T,V.text=M,V}function uL(T,M,V){return T.name!==M?br(Vx(M,V),T):T}function jx(T,M=xf(T),V,pe){return T.tagName!==M||T.class!==V||T.comment!==pe?br(ky(M,V,pe),T):T}function F0(T,M,V){return Zm(T,M??be(bj(T)),V)}function wy(T,M,V=xf(M),pe){return M.tagName!==V||M.comment!==pe?br(F0(T,V,pe),M):M}function wC(T,M,V,pe){const tt=Zm(T,M??be(bj(T)),pe);return tt.typeExpression=V,tt}function z0(T,M,V=xf(M),pe,tt){return M.tagName!==V||M.typeExpression!==pe||M.comment!==tt?br(wC(T,V,pe,tt),M):M}function lA(T,M){return Zm(328,T,M)}function gc(T,M,V){return T.tagName!==M||T.comment!==V?br(lA(M,V),T):T}function pd(T,M,V){const pe=nm(341,T??be(bj(341)),V);return pe.typeExpression=M,pe.locals=void 0,pe.nextContainer=void 0,pe}function Ux(T,M=xf(T),V,pe){return T.tagName!==M||T.typeExpression!==V||T.comment!==pe?br(pd(M,V,pe),T):T}function fp(T,M,V,pe,tt){const rn=Zm(352,T??be("import"),tt);return rn.importClause=M,rn.moduleSpecifier=V,rn.attributes=pe,rn.comment=tt,rn}function rm(T,M,V,pe,tt,rn){return T.tagName!==M||T.comment!==rn||T.importClause!==V||T.moduleSpecifier!==pe||T.attributes!==tt?br(fp(M,V,pe,tt,rn),T):T}function vE(T){const M=W(322);return M.text=T,M}function Rh(T,M){return T.text!==M?br(vE(M),T):T}function lT(T,M){const V=W(321);return V.comment=T,V.tags=cs(M),V}function Pv(T,M,V){return T.comment!==M||T.tags!==V?br(lT(M,V),T):T}function Hx(T,M,V){const pe=W(285);return pe.openingElement=T,pe.children=F(M),pe.closingElement=V,pe.transformFlags|=Fr(pe.openingElement)|is(pe.children)|Fr(pe.closingElement)|2,pe}function pL(T,M,V,pe){return T.openingElement!==M||T.children!==V||T.closingElement!==pe?br(Hx(M,V,pe),T):T}function Ul(T,M,V){const pe=W(286);return pe.tagName=T,pe.typeArguments=cs(M),pe.attributes=V,pe.transformFlags|=Fr(pe.tagName)|is(pe.typeArguments)|Fr(pe.attributes)|2,pe.typeArguments&&(pe.transformFlags|=1),pe}function OC(T,M,V,pe){return T.tagName!==M||T.typeArguments!==V||T.attributes!==pe?br(Ul(M,V,pe),T):T}function cA(T,M,V){const pe=W(287);return pe.tagName=T,pe.typeArguments=cs(M),pe.attributes=V,pe.transformFlags|=Fr(pe.tagName)|is(pe.typeArguments)|Fr(pe.attributes)|2,M&&(pe.transformFlags|=1),pe}function bE(T,M,V,pe){return T.tagName!==M||T.typeArguments!==V||T.attributes!==pe?br(cA(M,V,pe),T):T}function qx(T){const M=W(288);return M.tagName=T,M.transformFlags|=Fr(M.tagName)|2,M}function mu(T,M){return T.tagName!==M?br(qx(M),T):T}function Ep(T,M,V){const pe=W(289);return pe.openingFragment=T,pe.children=F(M),pe.closingFragment=V,pe.transformFlags|=Fr(pe.openingFragment)|is(pe.children)|Fr(pe.closingFragment)|2,pe}function dA(T,M,V,pe){return T.openingFragment!==M||T.children!==V||T.closingFragment!==pe?br(Ep(M,V,pe),T):T}function B0(T,M){const V=W(12);return V.text=T,V.containsOnlyTriviaWhiteSpaces=!!M,V.transformFlags|=2,V}function Ap(T,M,V){return T.text!==M||T.containsOnlyTriviaWhiteSpaces!==V?br(B0(M,V),T):T}function uA(){const T=W(290);return T.transformFlags|=2,T}function Vg(){const T=W(291);return T.transformFlags|=2,T}function Jx(T,M){const V=G(292);return V.name=T,V.initializer=M,V.transformFlags|=Fr(V.name)|Fr(V.initializer)|2,V}function pA(T,M,V){return T.name!==M||T.initializer!==V?br(Jx(M,V),T):T}function th(T){const M=G(293);return M.properties=F(T),M.transformFlags|=is(M.properties)|2,M}function Kx(T,M){return T.properties!==M?br(th(M),T):T}function WC(T){const M=W(294);return M.expression=T,M.transformFlags|=Fr(M.expression)|2,M}function Xx(T,M){return T.expression!==M?br(WC(M),T):T}function fA(T,M){const V=W(295);return V.dotDotDotToken=T,V.expression=M,V.transformFlags|=Fr(V.dotDotDotToken)|Fr(V.expression)|2,V}function Yx(T,M){return T.expression!==M?br(fA(T.dotDotDotToken,M),T):T}function Lv(T,M){const V=W(296);return V.namespace=T,V.name=M,V.transformFlags|=Fr(V.namespace)|Fr(V.name)|2,V}function Xp(T,M,V){return T.namespace!==M||T.name!==V?br(Lv(M,V),T):T}function v_(T,M){const V=W(297);return V.expression=i().parenthesizeExpressionForDisallowedComma(T),V.statements=F(M),V.transformFlags|=Fr(V.expression)|is(V.statements),V.jsDoc=void 0,V}function mA(T,M,V){return T.expression!==M||T.statements!==V?br(v_(M,V),T):T}function hA(T){const M=W(298);return M.statements=F(T),M.transformFlags=is(M.statements),M}function as(T,M){return T.statements!==M?br(hA(M),T):T}function Wr(T,M){const V=W(299);switch(V.token=T,V.types=F(M),V.transformFlags|=is(V.types),T){case 96:V.transformFlags|=1024;break;case 119:V.transformFlags|=1;break;default:return C.assertNever(T)}return V}function Rf(T,M){return T.types!==M?br(Wr(T.token,M),T):T}function Qc(T,M){const V=W(300);return V.variableDeclaration=Q_(T),V.block=M,V.transformFlags|=Fr(V.variableDeclaration)|Fr(V.block)|(T?0:64),V.locals=void 0,V.nextContainer=void 0,V}function G0(T,M,V){return T.variableDeclaration!==M||T.block!==V?br(Qc(M,V),T):T}function _A(T,M){const V=G(304);return V.name=Uc(T),V.initializer=i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Lb(V.name)|Fr(V.initializer),V.modifiers=void 0,V.questionToken=void 0,V.exclamationToken=void 0,V.jsDoc=void 0,V}function TE(T,M,V){return T.name!==M||T.initializer!==V?V0(_A(M,V),T):T}function V0(T,M){return T!==M&&(T.modifiers=M.modifiers,T.questionToken=M.questionToken,T.exclamationToken=M.exclamationToken),br(T,M)}function gA(T,M){const V=G(305);return V.name=Uc(T),V.objectAssignmentInitializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=mw(V.name)|Fr(V.objectAssignmentInitializer)|1024,V.equalsToken=void 0,V.modifiers=void 0,V.questionToken=void 0,V.exclamationToken=void 0,V.jsDoc=void 0,V}function D(T,M,V){return T.name!==M||T.objectAssignmentInitializer!==V?he(gA(M,V),T):T}function he(T,M){return T!==M&&(T.modifiers=M.modifiers,T.questionToken=M.questionToken,T.exclamationToken=M.exclamationToken,T.equalsToken=M.equalsToken),br(T,M)}function Et(T){const M=G(306);return M.expression=i().parenthesizeExpressionForDisallowedComma(T),M.transformFlags|=Fr(M.expression)|128|65536,M.jsDoc=void 0,M}function An(T,M){return T.expression!==M?br(Et(M),T):T}function vi(T,M){const V=G(307);return V.name=Uc(T),V.initializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Fr(V.name)|Fr(V.initializer)|1,V.jsDoc=void 0,V}function Oi(T,M,V){return T.name!==M||T.initializer!==V?br(vi(M,V),T):T}function Eo(T,M,V){const pe=t.createBaseSourceFileNode(308);return pe.statements=F(T),pe.endOfFileToken=M,pe.flags|=V,pe.text="",pe.fileName="",pe.path="",pe.resolvedPath="",pe.originalFileName="",pe.languageVersion=1,pe.languageVariant=0,pe.scriptKind=0,pe.isDeclarationFile=!1,pe.hasNoDefaultLib=!1,pe.transformFlags|=is(pe.statements)|Fr(pe.endOfFileToken),pe.locals=void 0,pe.nextContainer=void 0,pe.endFlowNode=void 0,pe.nodeCount=0,pe.identifierCount=0,pe.symbolCount=0,pe.parseDiagnostics=void 0,pe.bindDiagnostics=void 0,pe.bindSuggestionDiagnostics=void 0,pe.lineMap=void 0,pe.externalModuleIndicator=void 0,pe.setExternalModuleIndicator=void 0,pe.pragmas=void 0,pe.checkJsDirective=void 0,pe.referencedFiles=void 0,pe.typeReferenceDirectives=void 0,pe.libReferenceDirectives=void 0,pe.amdDependencies=void 0,pe.commentDirectives=void 0,pe.identifiers=void 0,pe.packageJsonLocations=void 0,pe.packageJsonScope=void 0,pe.imports=void 0,pe.moduleAugmentations=void 0,pe.ambientModuleNames=void 0,pe.classifiableNames=void 0,pe.impliedNodeFormat=void 0,pe}function wi(T){const M=Object.create(T.redirectTarget);return Object.defineProperties(M,{id:{get(){return this.redirectInfo.redirectTarget.id},set(V){this.redirectInfo.redirectTarget.id=V}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(V){this.redirectInfo.redirectTarget.symbol=V}}}),M.redirectInfo=T,M}function Ka(T){const M=wi(T.redirectInfo);return M.flags|=T.flags&-17,M.fileName=T.fileName,M.path=T.path,M.resolvedPath=T.resolvedPath,M.originalFileName=T.originalFileName,M.packageJsonLocations=T.packageJsonLocations,M.packageJsonScope=T.packageJsonScope,M.emitNode=void 0,M}function yc(T){const M=t.createBaseSourceFileNode(308);M.flags|=T.flags&-17;for(const V in T)if(!(Cs(M,V)||!Cs(T,V))){if(V==="emitNode"){M.emitNode=void 0;continue}M[V]=T[V]}return M}function $d(T){const M=T.redirectInfo?Ka(T):yc(T);return r(M,T),M}function Hu(T,M,V,pe,tt,rn,Or){const Lo=$d(T);return Lo.statements=F(M),Lo.isDeclarationFile=V,Lo.referencedFiles=pe,Lo.typeReferenceDirectives=tt,Lo.hasNoDefaultLib=rn,Lo.libReferenceDirectives=Or,Lo.transformFlags=is(Lo.statements)|Fr(Lo.endOfFileToken),Lo}function j0(T,M,V=T.isDeclarationFile,pe=T.referencedFiles,tt=T.typeReferenceDirectives,rn=T.hasNoDefaultLib,Or=T.libReferenceDirectives){return T.statements!==M||T.isDeclarationFile!==V||T.referencedFiles!==pe||T.typeReferenceDirectives!==tt||T.hasNoDefaultLib!==rn||T.libReferenceDirectives!==Or?br(Hu(T,M,V,pe,tt,rn,Or),T):T}function qu(T){const M=W(309);return M.sourceFiles=T,M.syntheticFileReferences=void 0,M.syntheticTypeReferences=void 0,M.syntheticLibReferences=void 0,M.hasNoDefaultLib=void 0,M}function cT(T,M){return T.sourceFiles!==M?br(qu(M),T):T}function $x(T,M=!1,V){const pe=W(238);return pe.type=T,pe.isSpread=M,pe.tupleNameSource=V,pe}function Om(T){const M=W(353);return M._children=T,M}function Sl(T){const M=W(354);return M.original=T,bt(M,T),M}function yA(T,M){const V=W(356);return V.expression=T,V.original=M,V.transformFlags|=Fr(V.expression)|1,bt(V,M),V}function kv(T,M){return T.expression!==M?br(yA(M,T.original),T):T}function nh(){return W(355)}function wv(T){if(Fs(T)&&!WN(T)&&!T.original&&!T.emitNode&&!T.id){if(XM(T))return T.elements;if(Nr(T)&&kie(T.operatorToken))return[T.left,T.right]}return T}function SE(T){const M=W(357);return M.elements=F(mm(T,wv)),M.transformFlags|=is(M.elements),M}function Hz(T,M){return T.elements!==M?br(SE(M),T):T}function fL(T,M){const V=W(358);return V.expression=T,V.thisArg=M,V.transformFlags|=Fr(V.expression)|Fr(V.thisArg),V}function Qx(T,M,V){return T.expression!==M||T.thisArg!==V?br(fL(M,V),T):T}function mL(T){const M=ue(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),yw(M,{...T.emitNode.autoGenerate}),M}function x8(T){const M=ue(T.escapedText);M.flags|=T.flags&-17,M.jsDoc=T.jsDoc,M.flowNode=T.flowNode,M.symbol=T.symbol,M.transformFlags=T.transformFlags,r(M,T);const V=b1(T);return V&&uv(M,V),M}function dT(T){const M=Ee(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),yw(M,{...T.emitNode.autoGenerate}),M}function Zx(T){const M=Ee(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),M}function vA(T){if(T===void 0)return T;if(Xi(T))return $d(T);if(ml(T))return mL(T);if(Je(T))return x8(T);if(e1(T))return dT(T);if(Qi(T))return Zx(T);const M=IF(T.kind)?t.createBaseNode(T.kind):t.createBaseTokenNode(T.kind);M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T);for(const V in T)Cs(M,V)||!Cs(T,V)||(M[V]=T[V]);return M}function qz(T,M,V){return er(qp(void 0,void 0,void 0,void 0,M?[M]:[],void 0,gl(T,!0)),void 0,V?[V]:[])}function EE(T,M,V){return er(Zf(void 0,void 0,M?[M]:[],void 0,void 0,gl(T,!0)),void 0,V?[V]:[])}function bA(){return Eh(J("0"))}function hL(T){return _E(void 0,!1,T)}function eR(T){return Jr(void 0,!1,iA([gE(!1,void 0,T)]))}function co(T,M){return M==="null"?k.createStrictEquality(T,Ue()):M==="undefined"?k.createStrictEquality(T,bA()):k.createStrictEquality(cp(T),ve(M))}function uT(T,M){return M==="null"?k.createStrictInequality(T,Ue()):M==="undefined"?k.createStrictInequality(T,bA()):k.createStrictInequality(cp(T),ve(M))}function sr(T,M,V){return QE(T)?es(Js(T,void 0,M),void 0,void 0,V):er(Ac(T,M),void 0,V)}function _L(T,M,V){return sr(T,"bind",[M,...V])}function FC(T,M,V){return sr(T,"call",[M,...V])}function zC(T,M,V){return sr(T,"apply",[M,V])}function AE(T,M,V){return sr(be(T),M,V)}function R8(T,M){return sr(T,"slice",M===void 0?[]:[Fv(M)])}function TA(T,M){return sr(T,"concat",M)}function Jz(T,M,V){return AE("Object","defineProperty",[T,Fv(M),V])}function BC(T,M){return AE("Object","getOwnPropertyDescriptor",[T,Fv(M)])}function Y_(T,M,V){return AE("Reflect","get",V?[T,M,V]:[T,M])}function D8(T,M,V,pe){return AE("Reflect","set",pe?[T,M,V,pe]:[T,M,V])}function U0(T,M,V){return V?(T.push(_A(M,V)),!0):!1}function Kz(T,M){const V=[];U0(V,"enumerable",Fv(T.enumerable)),U0(V,"configurable",Fv(T.configurable));let pe=U0(V,"writable",Fv(T.writable));pe=U0(V,"value",T.value)||pe;let tt=U0(V,"get",T.get);return tt=U0(V,"set",T.set)||tt,C.assert(!(pe&&tt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ps(V,!M)}function gL(T,M){switch(T.kind){case 218:return cd(T,M);case 217:return sf(T,T.type,M);case 235:return ht(T,M,T.type);case 239:return Lr(T,M,T.type);case 236:return Rn(T,M);case 234:return Yb(T,M,T.typeArguments);case 356:return kv(T,M)}}function C8(T){return zu(T)&&Fs(T)&&Fs(dv(T))&&Fs(n_(T))&&!vt(ED(T))&&!vt(gw(T))}function yL(T,M,V=63){return T&&z4(T,V)&&!C8(T)?gL(T,yL(T.expression,M)):M}function H0(T,M,V){if(!M)return T;const pe=Wx(M,M.label,Fb(M.statement)?H0(T,M.statement):T);return V&&V(M),pe}function $_(T,M){const V=us(T);switch(V.kind){case 80:return M;case 110:case 9:case 10:case 11:return!1;case 210:return V.elements.length!==0;case 211:return V.properties.length>0;default:return!0}}function GC(T,M,V,pe=!1){const tt=Kl(T,63);let rn,Or;return gp(tt)?(rn=ye(),Or=tt):HM(tt)?(rn=ye(),Or=V!==void 0&&V<2?bt(be("_super"),tt):tt):Za(tt)&8192?(rn=bA(),Or=i().parenthesizeLeftSideOfAccess(tt,!1)):qr(tt)?$_(tt.expression,pe)?(rn=De(M),Or=Ac(bt(k.createAssignment(rn,tt.expression),tt.expression),tt.name),bt(Or,tt)):(rn=tt.expression,Or=tt):zs(tt)?$_(tt.expression,pe)?(rn=De(M),Or=Ld(bt(k.createAssignment(rn,tt.expression),tt.expression),tt.argumentExpression),bt(Or,tt)):(rn=tt.expression,Or=tt):(rn=bA(),Or=i().parenthesizeLeftSideOfAccess(T,!1)),{target:Or,thisArg:rn}}function b_(T,M){return Ac(Td(Ps([ne(void 0,"value",[Ni(void 0,void 0,T,void 0,void 0,void 0)],gl([Kp(M)]))])),"value")}function ee(T){return T.length>10?SE(T):bu(T,k.createComma)}function ke(T,M,V,pe=0,tt){const rn=tt?T&&gF(T):wo(T);if(rn&&Je(rn)&&!ml(rn)){const Or=ps(bt(vA(rn),rn),rn.parent);return pe|=Za(rn),V||(pe|=96),M||(pe|=3072),pe&&Cr(Or,pe),Or}return Xe(T)}function rt(T,M,V){return ke(T,M,V,98304)}function Pt(T,M,V,pe){return ke(T,M,V,32768,pe)}function nn(T,M,V){return ke(T,M,V,16384)}function _n(T,M,V){return ke(T,M,V)}function ei(T,M,V,pe){const tt=Ac(T,Fs(M)?M:vA(M));bt(tt,M);let rn=0;return pe||(rn|=96),V||(rn|=3072),rn&&Cr(tt,rn),tt}function wr(T,M,V,pe){return T&&di(M,32)?ei(T,ke(M),V,pe):nn(M,V,pe)}function pr(T,M,V,pe){const tt=Gs(T,M,0,V);return Rs(T,M,tt,pe)}function Ai(T){return Oa(T.expression)&&T.expression.text==="use strict"}function oo(){return cu(Kp(ve("use strict")))}function Gs(T,M,V=0,pe){C.assert(M.length===0,"Prologue directives should be at the first statement in the target statements array");let tt=!1;const rn=T.length;for(;VLo&&lf.splice(tt,0,...M.slice(Lo,il)),Lo>Or&&lf.splice(pe,0,...M.slice(Or,Lo)),Or>rn&&lf.splice(V,0,...M.slice(rn,Or)),rn>0)if(V===0)lf.splice(0,0,...M.slice(0,rn));else{const fT=new Map;for(let Dh=0;Dh=0;Dh--){const nR=M[Dh];fT.has(nR.expression.text)||lf.unshift(nR)}}return vS(T)?bt(F(lf,T.hasTrailingComma),T):T}function Wv(T,M){let V;return typeof M=="number"?V=Wt(M):V=M,cl(T)?or(T,V,T.name,T.constraint,T.default):Zi(T)?so(T,V,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):ID(T)?gr(T,V,T.typeParameters,T.parameters,T.type):Iu(T)?Pi(T,V,T.name,T.questionToken,T.type):Mo(T)?$e(T,V,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):qm(T)?hn(T,V,T.name,T.questionToken,T.typeParameters,T.parameters,T.type):Ll(T)?ri(T,V,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):kl(T)?Uo(T,V,T.parameters,T.body):Xf(T)?le(T,V,T.name,T.parameters,T.type,T.body):bp(T)?Fe(T,V,T.name,T.parameters,T.body):Ob(T)?Ot(T,V,T.parameters,T.type):qs(T)?Ru(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):$s(T)?j_(T,V,T.typeParameters,T.parameters,T.type,T.equalsGreaterThanToken,T.body):fc(T)?U_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):cc(T)?Sd(T,V,T.declarationList):rc(T)?rs(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):Mc(T)?Cy(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):yd(T)?J_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):Im(T)?Xd(T,V,T.name,T.typeParameters,T.type):t0(T)?Yd(T,V,T.name,T.members):mc(T)?Du(T,V,T.name,T.body):Gc(T)?xv(T,V,T.isTypeOnly,T.name,T.moduleReference):Tl(T)?Ze(T,V,T.importClause,T.moduleSpecifier,T.attributes):dl(T)?L0(T,V,T.expression):hc(T)?Vr(T,V,T.isTypeOnly,T.exportClause,T.moduleSpecifier,T.attributes):C.assertNever(T)}function jg(T,M){return Zi(T)?so(T,M,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):Mo(T)?$e(T,M,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):Ll(T)?ri(T,M,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):Xf(T)?le(T,M,T.name,T.parameters,T.type,T.body):bp(T)?Fe(T,M,T.name,T.parameters,T.body):fc(T)?U_(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):Mc(T)?Cy(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):C.assertNever(T)}function pT(T,M){switch(T.kind){case 178:return le(T,T.modifiers,M,T.parameters,T.type,T.body);case 179:return Fe(T,T.modifiers,M,T.parameters,T.body);case 175:return ri(T,T.modifiers,T.asteriskToken,M,T.questionToken,T.typeParameters,T.parameters,T.type,T.body);case 174:return hn(T,T.modifiers,M,T.questionToken,T.typeParameters,T.parameters,T.type);case 173:return $e(T,T.modifiers,M,T.questionToken??T.exclamationToken,T.type,T.initializer);case 172:return Pi(T,T.modifiers,M,T.questionToken,T.type);case 304:return TE(T,M,T.initializer)}}function cs(T){return T?F(T):void 0}function Uc(T){return typeof T=="string"?be(T):T}function Fv(T){return typeof T=="string"?ve(T):typeof T=="number"?J(T):typeof T=="boolean"?T?Ge():We():T}function hu(T){return T&&i().parenthesizeExpressionForDisallowedComma(T)}function tR(T){return typeof T=="number"?ce(T):T}function Ug(T){return T&&Xie(T)?bt(r(Lm(),T),T):T}function Q_(T){return typeof T=="string"||T&&!yi(T)?Dy(T,void 0,void 0,void 0):T}function br(T,M){return T!==M&&(r(T,M),bt(T,M)),T}}function bj(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return C.fail(`Unsupported kind: ${C.formatSyntaxKind(e)}`)}}var cv,PSe={};function cje(e,t){switch(cv||(cv=mg(99,!1,0)),e){case 15:cv.setText("`"+t+"`");break;case 16:cv.setText("`"+t+"${");break;case 17:cv.setText("}"+t+"${");break;case 18:cv.setText("}"+t+"`");break}let r=cv.scan();if(r===20&&(r=cv.reScanTemplateToken(!1)),cv.isUnterminated())return cv.setText(void 0),PSe;let i;switch(r){case 15:case 16:case 17:case 18:i=cv.getTokenValue();break}return i===void 0||cv.scan()!==1?(cv.setText(void 0),PSe):(cv.setText(void 0),i)}function Lb(e){return e&&Je(e)?mw(e):Fr(e)}function mw(e){return Fr(e)&-67108865}function dje(e,t){return t|e.transformFlags&134234112}function Fr(e){if(!e)return 0;const t=e.transformFlags&~uje(e.kind);return rd(e)&&Tc(e.name)?dje(e.name,t):t}function is(e){return e?e.transformFlags:0}function LSe(e){let t=0;for(const r of e)t|=Fr(r);e.transformFlags=t}function uje(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var h4=hie();function _4(e){return e.flags|=16,e}var pje={createBaseSourceFileNode:e=>_4(h4.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>_4(h4.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>_4(h4.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>_4(h4.createBaseTokenNode(e)),createBaseNode:e=>_4(h4.createBaseNode(e))},L=fw(4,pje),kSe;function wSe(e,t,r){return new(kSe||(kSe=Dd.getSourceMapSourceConstructor()))(e,t,r)}function jr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=fje(r,e.emitNode))}return e}function fje(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:d,constantValue:_,helpers:h,startsOnNewLine:y,snippetElement:E,classThis:A,assignedName:R}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Xr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Xr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),u&&(t.sourceMapRange=u),d&&(t.tokenSourceMapRanges=mje(d,t.tokenSourceMapRanges)),_!==void 0&&(t.constantValue=_),h)for(const N of h)t.helpers=ty(t.helpers,N);return y!==void 0&&(t.startsOnNewLine=y),E!==void 0&&(t.snippetElement=E),A&&(t.classThis=A),R&&(t.assignedName=R),t}function mje(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}function qd(e){if(e.emitNode)C.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(WN(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};const t=zn(jo(zn(e)))??C.fail("Could not determine parsed source file.");qd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function Tj(e){var t,r;const i=(r=(t=zn(jo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function hw(e){const t=qd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Cr(e,t){return qd(e).flags=t,e}function t_(e,t){const r=qd(e);return r.flags=r.flags|t,e}function _w(e,t){return qd(e).internalFlags=t,e}function v1(e,t){const r=qd(e);return r.internalFlags=r.internalFlags|t,e}function dv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ha(e,t){return qd(e).sourceMapRange=t,e}function OSe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Tie(e,t,r){const i=qd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function GM(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function g4(e,t){return qd(e).startsOnNewLine=t,e}function n_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function Nc(e,t){return qd(e).commentRange=t,e}function ED(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function XT(e,t){return qd(e).leadingComments=t,e}function kb(e,t,r,i){return XT(e,Vn(ED(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function gw(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function jI(e,t){return qd(e).trailingComments=t,e}function VM(e,t,r,i){return jI(e,Vn(gw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Sie(e,t){XT(e,ED(t)),jI(e,gw(t));const r=qd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Eie(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Aie(e,t){const r=qd(e);return r.constantValue=t,e}function UI(e,t){const r=qd(e);return r.helpers=Vn(r.helpers,t),e}function Cg(e,t){if(vt(t)){const r=qd(e);for(const i of t)r.helpers=ty(r.helpers,i)}return e}function WSe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?bN(i,t):!1}function Sj(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Iie(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!vt(o))return;const s=qd(t);let l=0;for(let u=0;u0&&(o[u-l]=d)}l>0&&(o.length-=l)}function Ej(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function Aj(e,t){const r=qd(e);return r.snippetElement=t,e}function Ij(e){return qd(e).internalFlags|=4,e}function xie(e,t){const r=qd(e);return r.typeNode=t,e}function Rie(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function uv(e,t){return qd(e).identifierTypeArguments=t,e}function b1(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function yw(e,t){return qd(e).autoGenerate=t,e}function FSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Die(e,t){return qd(e).generatedImportReference=t,e}function Cie(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var Nie=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Nie||{});function Mie(e){const t=e.factory,r=Lu(()=>_w(t.createTrue(),8)),i=Lu(()=>_w(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:N,createRunInitializersHelper:P,createAssignHelper:k,createAwaitHelper:F,createAsyncGeneratorHelper:W,createAsyncDelegatorHelper:G,createAsyncValuesHelper:j,createRestHelper:J,createAwaiterHelper:Z,createExtendsHelper:q,createTemplateObjectHelper:ve,createSpreadArrayHelper:oe,createPropKeyHelper:K,createSetFunctionNameHelper:fe,createValuesHelper:ue,createReadHelper:me,createGeneratorHelper:be,createImportStarHelper:De,createImportStarCallbackHelper:Y,createImportDefaultHelper:Ne,createExportStarHelper:Xe,createClassPrivateFieldGetHelper:Ee,createClassPrivateFieldSetHelper:re,createClassPrivateFieldInHelper:Te,createAddDisposableResourceHelper:Me,createDisposeResourcesHelper:Be,createRewriteRelativeImportExtensionsHelper:lt};function o(ce){return Cr(t.createIdentifier(ce),8196)}function s(ce,Ce,ye,Ue){e.requestEmitHelper(hje);const Ge=[];return Ge.push(t.createArrayLiteralExpression(ce,!0)),Ge.push(Ce),ye&&(Ge.push(ye),Ue&&Ge.push(Ue)),t.createCallExpression(o("__decorate"),void 0,Ge)}function l(ce,Ce){return e.requestEmitHelper(_je),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(ce),Ce])}function u(ce,Ce,ye){return e.requestEmitHelper(gje),bt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(Ce+""),ce]),ye)}function d(ce){const Ce=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),ce.name),t.createPropertyAssignment(t.createIdentifier("metadata"),ce.metadata)];return t.createObjectLiteralExpression(Ce)}function _(ce){const Ce=ce.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ce.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ce.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Ce))}function h(ce){const Ce=ce.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ce.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ce.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(Ce,t.createIdentifier("value")))])))}function y(ce){const Ce=ce.computed?ce.name:Je(ce.name)?t.createStringLiteralFromNode(ce.name):ce.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(Ce,103,t.createIdentifier("obj"))))}function E(ce,Ce){const ye=[];return ye.push(y(ce)),Ce.get&&ye.push(_(ce)),Ce.set&&ye.push(h(ce)),t.createObjectLiteralExpression(ye)}function A(ce){const Ce=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(ce.kind)),t.createPropertyAssignment(t.createIdentifier("name"),ce.name.computed?ce.name.name:t.createStringLiteralFromNode(ce.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),ce.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),ce.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),E(ce.name,ce.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),ce.metadata)];return t.createObjectLiteralExpression(Ce)}function R(ce){return ce.kind==="class"?d(ce):A(ce)}function N(ce,Ce,ye,Ue,Ge,We){return e.requestEmitHelper(yje),t.createCallExpression(o("__esDecorate"),void 0,[ce??t.createNull(),Ce??t.createNull(),ye,R(Ue),Ge,We])}function P(ce,Ce,ye){return e.requestEmitHelper(vje),t.createCallExpression(o("__runInitializers"),void 0,ye?[ce,Ce,ye]:[ce,Ce])}function k(ce){return Va(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,ce):(e.requestEmitHelper(bje),t.createCallExpression(o("__assign"),void 0,ce))}function F(ce){return e.requestEmitHelper(y4),t.createCallExpression(o("__await"),void 0,[ce])}function W(ce,Ce){return e.requestEmitHelper(y4),e.requestEmitHelper(Tje),(ce.emitNode||(ce.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[Ce?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),ce])}function G(ce){return e.requestEmitHelper(y4),e.requestEmitHelper(Sje),t.createCallExpression(o("__asyncDelegator"),void 0,[ce])}function j(ce){return e.requestEmitHelper(Eje),t.createCallExpression(o("__asyncValues"),void 0,[ce])}function J(ce,Ce,ye,Ue){e.requestEmitHelper(Aje);const Ge=[];let We=0;for(let at=0;at{let i="";for(let o=0;o= 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; };`},_je={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); };`},gje={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); } };`},yje={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.unshift(_); } else if (_ = accept(result)) { if (kind === "field") initializers.unshift(_); else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; };`},vje={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; };`},bje={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); };`},y4={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); }`},Tje={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[y4],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 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } 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]); } };`},Sje={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[y4],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; } };`},Eje={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); } };`},Aje={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; };`},Ije={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()); }); };`},xje={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 __()); }; })();`},Rje={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; };`},Dje={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; };`},Cje={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)); };`},Nje={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},Mje={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 }); };`},Pje={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."); };`},Lje={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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); return g.next = verb(0), g["throw"] = verb(1), g["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 }; } };`},Lie={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]; }));`},kje={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; });`},BSe={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Lie,kje],priority:2,text:` var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })();`},wje={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},Oje={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Lie],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); };`},Wje={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); };`},Fje={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; };`},zje={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); };`},Bje={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); var dispose, inner; if (async) { if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); dispose = value[Symbol.asyncDispose]; } if (dispose === void 0) { if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); dispose = value[Symbol.dispose]; if (async) inner = dispose; } if (typeof dispose !== "function") throw new TypeError("Object not disposable."); if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; env.stack.push({ value: value, dispose: dispose, async: async }); } else if (async) { env.stack.push({ async: true }); } return value; };`},Gje={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } var r, s = 0; function next() { while (r = env.stack.pop()) { try { if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); if (r.dispose) { var result = r.dispose.call(r.value); if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); } else s |= 1; } catch (e) { fail(e); } } if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); if (env.hasError) throw env.error; } return next(); }; })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; });`},Vje={name:"typescript:rewriteRelativeImportExtensions",importName:"__rewriteRelativeImportExtension",scoped:!1,text:` var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { if (typeof path === "string" && /^\\.\\.?\\//.test(path)) { return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); }); } return path; };`},v4={name:"typescript:async-super",scoped:!0,text:zSe` const ${"_superIndex"} = name => super[name];`},b4={name:"typescript:advanced-async-super",scoped:!0,text:zSe` 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 jM(e,t){return ea(e)&&Je(e.expression)&&(Za(e.expression)&8192)!==0&&e.expression.escapedText===t}function op(e){return e.kind===9}function AD(e){return e.kind===10}function Oa(e){return e.kind===11}function HI(e){return e.kind===12}function xj(e){return e.kind===14}function T1(e){return e.kind===15}function qI(e){return e.kind===16}function Rj(e){return e.kind===17}function T4(e){return e.kind===18}function S4(e){return e.kind===26}function kie(e){return e.kind===28}function Dj(e){return e.kind===40}function Cj(e){return e.kind===41}function vw(e){return e.kind===42}function bw(e){return e.kind===54}function wb(e){return e.kind===58}function wie(e){return e.kind===59}function E4(e){return e.kind===29}function Oie(e){return e.kind===39}function Je(e){return e.kind===80}function Qi(e){return e.kind===81}function JI(e){return e.kind===95}function A4(e){return e.kind===90}function UM(e){return e.kind===134}function Wie(e){return e.kind===131}function Nj(e){return e.kind===135}function Fie(e){return e.kind===148}function KI(e){return e.kind===126}function zie(e){return e.kind===128}function Bie(e){return e.kind===164}function Mj(e){return e.kind===129}function HM(e){return e.kind===108}function qM(e){return e.kind===102}function Gie(e){return e.kind===84}function Wu(e){return e.kind===167}function va(e){return e.kind===168}function cl(e){return e.kind===169}function Zi(e){return e.kind===170}function Bc(e){return e.kind===171}function Iu(e){return e.kind===172}function Mo(e){return e.kind===173}function qm(e){return e.kind===174}function Ll(e){return e.kind===175}function nc(e){return e.kind===176}function kl(e){return e.kind===177}function Xf(e){return e.kind===178}function bp(e){return e.kind===179}function XI(e){return e.kind===180}function JM(e){return e.kind===181}function Ob(e){return e.kind===182}function YI(e){return e.kind===183}function Bp(e){return e.kind===184}function W_(e){return e.kind===185}function ID(e){return e.kind===186}function VS(e){return e.kind===187}function Fu(e){return e.kind===188}function Tw(e){return e.kind===189}function $I(e){return e.kind===190}function xD(e){return e.kind===203}function I4(e){return e.kind===191}function x4(e){return e.kind===192}function pv(e){return e.kind===193}function QI(e){return e.kind===194}function jS(e){return e.kind===195}function S1(e){return e.kind===196}function E1(e){return e.kind===197}function KM(e){return e.kind===198}function YT(e){return e.kind===199}function US(e){return e.kind===200}function A1(e){return e.kind===201}function fv(e){return e.kind===202}function r_(e){return e.kind===206}function Pj(e){return e.kind===205}function Vie(e){return e.kind===204}function hf(e){return e.kind===207}function mv(e){return e.kind===208}function qa(e){return e.kind===209}function Nd(e){return e.kind===210}function za(e){return e.kind===211}function qr(e){return e.kind===212}function zs(e){return e.kind===213}function ea(e){return e.kind===214}function HS(e){return e.kind===215}function $T(e){return e.kind===216}function R4(e){return e.kind===217}function zu(e){return e.kind===218}function qs(e){return e.kind===219}function $s(e){return e.kind===220}function jie(e){return e.kind===221}function RD(e){return e.kind===222}function ZI(e){return e.kind===223}function Wb(e){return e.kind===224}function QT(e){return e.kind===225}function Lj(e){return e.kind===226}function Nr(e){return e.kind===227}function I1(e){return e.kind===228}function D4(e){return e.kind===229}function Sw(e){return e.kind===230}function Yf(e){return e.kind===231}function fc(e){return e.kind===232}function Xc(e){return e.kind===233}function my(e){return e.kind===234}function DD(e){return e.kind===235}function CD(e){return e.kind===239}function ex(e){return e.kind===236}function x1(e){return e.kind===237}function GSe(e){return e.kind===238}function Uie(e){return e.kind===356}function XM(e){return e.kind===357}function ND(e){return e.kind===240}function Hie(e){return e.kind===241}function ta(e){return e.kind===242}function cc(e){return e.kind===244}function kj(e){return e.kind===243}function ad(e){return e.kind===245}function ZT(e){return e.kind===246}function VSe(e){return e.kind===247}function wj(e){return e.kind===248}function e0(e){return e.kind===249}function C4(e){return e.kind===250}function Ew(e){return e.kind===251}function jSe(e){return e.kind===252}function USe(e){return e.kind===253}function of(e){return e.kind===254}function qie(e){return e.kind===255}function YM(e){return e.kind===256}function Fb(e){return e.kind===257}function Oj(e){return e.kind===258}function R1(e){return e.kind===259}function HSe(e){return e.kind===260}function yi(e){return e.kind===261}function gd(e){return e.kind===262}function rc(e){return e.kind===263}function Mc(e){return e.kind===264}function yd(e){return e.kind===265}function Im(e){return e.kind===266}function t0(e){return e.kind===267}function mc(e){return e.kind===268}function i_(e){return e.kind===269}function $M(e){return e.kind===270}function Aw(e){return e.kind===271}function Gc(e){return e.kind===272}function Tl(e){return e.kind===273}function Jm(e){return e.kind===274}function qSe(e){return e.kind===303}function Jie(e){return e.kind===301}function JSe(e){return e.kind===302}function D1(e){return e.kind===301}function Kie(e){return e.kind===302}function Ng(e){return e.kind===275}function F_(e){return e.kind===281}function o_(e){return e.kind===276}function xu(e){return e.kind===277}function dl(e){return e.kind===278}function hc(e){return e.kind===279}function $f(e){return e.kind===280}function lu(e){return e.kind===282}function N4(e){return e.kind===80||e.kind===11}function KSe(e){return e.kind===283}function Xie(e){return e.kind===354}function tx(e){return e.kind===358}function hy(e){return e.kind===284}function a_(e){return e.kind===285}function C1(e){return e.kind===286}function hh(e){return e.kind===287}function qS(e){return e.kind===288}function n0(e){return e.kind===289}function Km(e){return e.kind===290}function Yie(e){return e.kind===291}function s_(e){return e.kind===292}function JS(e){return e.kind===293}function nx(e){return e.kind===294}function MD(e){return e.kind===295}function _h(e){return e.kind===296}function PD(e){return e.kind===297}function QM(e){return e.kind===298}function Gp(e){return e.kind===299}function KS(e){return e.kind===300}function Pc(e){return e.kind===304}function Jd(e){return e.kind===305}function Mg(e){return e.kind===306}function _y(e){return e.kind===307}function Xi(e){return e.kind===308}function $ie(e){return e.kind===309}function r0(e){return e.kind===310}function ZM(e){return e.kind===311}function i0(e){return e.kind===312}function Qie(e){return e.kind===325}function Zie(e){return e.kind===326}function XSe(e){return e.kind===327}function eoe(e){return e.kind===313}function toe(e){return e.kind===314}function LD(e){return e.kind===315}function M4(e){return e.kind===316}function Wj(e){return e.kind===317}function kD(e){return e.kind===318}function P4(e){return e.kind===319}function YSe(e){return e.kind===320}function gh(e){return e.kind===321}function N1(e){return e.kind===323}function hv(e){return e.kind===324}function rx(e){return e.kind===329}function $Se(e){return e.kind===331}function noe(e){return e.kind===333}function Fj(e){return e.kind===339}function zj(e){return e.kind===334}function Bj(e){return e.kind===335}function Gj(e){return e.kind===336}function Vj(e){return e.kind===337}function L4(e){return e.kind===338}function wD(e){return e.kind===340}function jj(e){return e.kind===332}function QSe(e){return e.kind===348}function Iw(e){return e.kind===341}function _f(e){return e.kind===342}function k4(e){return e.kind===343}function Uj(e){return e.kind===344}function eP(e){return e.kind===345}function xm(e){return e.kind===346}function M1(e){return e.kind===347}function ZSe(e){return e.kind===328}function roe(e){return e.kind===349}function w4(e){return e.kind===330}function O4(e){return e.kind===351}function eEe(e){return e.kind===350}function l_(e){return e.kind===352}function OD(e){return e.kind===353}var tP=new WeakMap;function Hj(e,t){var r;const i=e.kind;return IF(i)?i===353?e._children:(r=tP.get(t))==null?void 0:r.get(e):ie}function ioe(e,t,r){e.kind===353&&C.fail("Should not need to re-set the children of a SyntaxList.");let i=tP.get(t);return i===void 0&&(i=new WeakMap,tP.set(t,i)),i.set(e,r),r}function qj(e,t){var r;e.kind===353&&C.fail("Did not expect to unset the children of a SyntaxList."),(r=tP.get(t))==null||r.delete(e)}function ooe(e,t){const r=tP.get(e);r!==void 0&&(tP.delete(e),tP.set(t,r))}function xw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function P1(e,t,r,i){if(va(r))return bt(e.createElementAccessExpression(t,r.expression),i);{const o=bt(hg(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return t_(o,128),o}}function aoe(e,t){const r=a0.createIdentifier(e||"React");return ps(r,jo(t)),r}function soe(e,t,r){if(Wu(t)){const i=soe(e,t.left,r),o=e.createIdentifier(Kr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return aoe(Kr(t),r)}function Jj(e,t,r,i){return t?soe(e,t,i):e.createPropertyAccessExpression(aoe(r,i),"createElement")}function jje(e,t,r,i){return t?soe(e,t,i):e.createPropertyAccessExpression(aoe(r,i),"Fragment")}function loe(e,t,r,i,o,s){const l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(const u of o)cu(u),l.push(u);else l.push(o[0]);return bt(e.createCallExpression(t,void 0,l),s)}function coe(e,t,r,i,o,s,l){const d=[jje(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const _ of o)cu(_),d.push(_);else d.push(o[0]);return bt(e.createCallExpression(Jj(e,t,i,s),void 0,d),l)}function Kj(e,t,r){if(gd(t)){const i=Qa(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return bt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{const i=bt(e.createAssignment(t,r),t);return bt(e.createExpressionStatement(i),t)}}function Rw(e,t){if(Wu(t)){const r=Rw(e,t.left),i=ps(bt(e.cloneNode(t.right),t.right),t.right.parent);return bt(e.createPropertyAccessExpression(r,i),t)}else return ps(bt(e.cloneNode(t),t),t.parent)}function Xj(e,t){return Je(t)?e.createStringLiteralFromNode(t):va(t)?ps(bt(e.cloneNode(t.expression),t.expression),t.expression.parent):ps(bt(e.cloneNode(t),t),t.parent)}function Uje(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=wS(t,r);if(r===s)return bt(e.createObjectDefinePropertyCall(i,Xj(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&bt(jr(e.createFunctionExpression(yS(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&bt(jr(e.createFunctionExpression(yS(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function Hje(e,t,r){return jr(bt(e.createAssignment(P1(e,r,t.name,t.name),t.initializer),t),t)}function qje(e,t,r){return jr(bt(e.createAssignment(P1(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function Jje(e,t,r){return jr(bt(e.createAssignment(P1(e,r,t.name,t.name),jr(bt(e.createFunctionExpression(yS(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function doe(e,t,r,i){switch(r.name&&Qi(r.name)&&C.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 178:case 179:return Uje(e,t.properties,r,i,!!t.multiLine);case 304:return Hje(e,r,i);case 305:return qje(e,r,i);case 175:return Jje(e,r,i)}}function W4(e,t,r,i,o){const s=t.operator;C.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const l=e.createTempVariable(i);r=e.createAssignment(l,r),bt(r,t.operand);let u=QT(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return bt(u,t),o&&(u=e.createAssignment(o,u),bt(u,t)),r=e.createComma(r,u),bt(r,t),Lj(t)&&(r=e.createComma(r,l),bt(r,t)),r}function Yj(e){return(Za(e)&65536)!==0}function gy(e){return(Za(e)&32768)!==0}function F4(e){return(Za(e)&16384)!==0}function tEe(e){return Oa(e.expression)&&e.expression.text==="use strict"}function $j(e){for(const t of e)if(Jh(t)){if(tEe(t))return t}else break}function uoe(e){const t=Rc(e);return t!==void 0&&Jh(t)&&tEe(t)}function Dw(e){return e.kind===227&&e.operatorToken.kind===28}function nP(e){return Dw(e)||XM(e)}function XS(e){return zu(e)&&Ir(e)&&!!wT(e)}function WD(e){const t=Zy(e);return C.assertIsDefined(t),t}function z4(e,t=63){switch(e.kind){case 218:return t&-2147483648&&XS(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function Kl(e,t=63){for(;z4(e,t);)e=e.expression;return e}function poe(e,t=63){let r=e.parent;for(;z4(r,t);)r=r.parent,C.assert(r);return r}function cu(e){return g4(e,!0)}function Cw(e){const t=bl(e,Xi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function foe(e){const t=bl(e,Xi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function Qj(e,t,r,i,o,s,l){if(i.importHelpers&&$R(r,i)){const u=Eu(i),d=B1(r,i),_=Kje(r);if(d!==1&&(u>=5&&u<=99||d===99||d===void 0&&u===200)){if(_){const h=[];for(const y of _){const E=y.importName;E&&Ff(h,E)}if(vt(h)){h.sort(Bd);const y=e.createNamedImports(Yt(h,N=>VF(r,N)?e.createImportSpecifier(!1,void 0,e.createIdentifier(N)):e.createImportSpecifier(!1,e.createIdentifier(N),t.getUnscopedHelperName(N)))),E=bl(r,Xi),A=qd(E);A.externalHelpers=!0;const R=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,y),e.createStringLiteral(bb),void 0);return v1(R,2),R}}}else{const h=Xje(e,r,i,_,o,s||l);if(h){const y=e.createImportEqualsDeclaration(void 0,!1,h,e.createExternalModuleReference(e.createStringLiteral(bb)));return v1(y,2),y}}}}function Kje(e){return Un(Sj(e),t=>!t.scoped)}function Xje(e,t,r,i,o,s){const l=Cw(t);if(l)return l;if(vt(i)||(o||e_(r)&&s)&&RP(t,r)<4){const d=bl(t,Xi),_=qd(d);return _.externalHelpersModuleName||(_.externalHelpersModuleName=e.createUniqueName(bb))}}function FD(e,t,r){const i=oD(t);if(i&&!u1(t)&&!UF(t)){const o=i.name;return o.kind===11?e.getGeneratedNameForNode(t):ml(o)?o:e.createIdentifier(ES(r,o)||Kr(o))}if(t.kind===273&&t.importClause||t.kind===279&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function ix(e,t,r,i,o,s){const l=EI(t);if(l&&Oa(l))return $je(t,i,e,o,s)||Yje(e,l,r)||e.cloneNode(l)}function Yje(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Nw(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(hV(r,t.fileName))}}function $je(e,t,r,i,o){return Nw(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Mw(e){if(H2(e))return e.initializer;if(Pc(e)){const t=e.initializer;return od(t,!0)?t.right:void 0}if(Jd(e))return e.objectAssignmentInitializer;if(od(e,!0))return e.right;if(Yf(e))return Mw(e.expression)}function zb(e){if(H2(e))return e.name;if(ay(e)){switch(e.kind){case 304:return zb(e.initializer);case 305:return e.name;case 306:return zb(e.expression)}return}return od(e,!0)?zb(e.left):Yf(e)?zb(e.expression):e}function B4(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function Zj(e){const t=G4(e);return C.assert(!!t||Mg(e),"Invalid property name for binding element."),t}function G4(e){switch(e.kind){case 209:if(e.propertyName){const r=e.propertyName;return Qi(r)?C.failBadSyntaxKind(r):va(r)&&nEe(r.expression)?r.expression:r}break;case 304:if(e.name){const r=e.name;return Qi(r)?C.failBadSyntaxKind(r):va(r)&&nEe(r.expression)?r.expression:r}break;case 306:return e.name&&Qi(e.name)?C.failBadSyntaxKind(e.name):e.name}const t=zb(e);if(t&&Tc(t))return t}function nEe(e){const t=e.kind;return t===11||t===9}function zD(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function eU(e){if(e){let t=e;for(;;){if(Je(t)||!t.body)return Je(t)?t:t.name;t=t.body}}}function rEe(e){const t=e.kind;return t===177||t===179}function moe(e){const t=e.kind;return t===177||t===178||t===179}function tU(e){const t=e.kind;return t===304||t===305||t===263||t===177||t===182||t===176||t===283||t===244||t===265||t===266||t===267||t===268||t===272||t===273||t===271||t===279||t===278}function hoe(e){const t=e.kind;return t===176||t===304||t===305||t===283||t===271}function _oe(e){return wb(e)||bw(e)}function goe(e){return Je(e)||KM(e)}function yoe(e){return Fie(e)||Dj(e)||Cj(e)}function voe(e){return wb(e)||Dj(e)||Cj(e)}function boe(e){return Je(e)||Oa(e)}function Qje(e){return e===43}function Zje(e){return e===42||e===44||e===45}function eUe(e){return Qje(e)||Zje(e)}function tUe(e){return e===40||e===41}function nUe(e){return tUe(e)||eUe(e)}function rUe(e){return e===48||e===49||e===50}function nU(e){return rUe(e)||nUe(e)}function iUe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function oUe(e){return iUe(e)||nU(e)}function aUe(e){return e===35||e===37||e===36||e===38}function sUe(e){return aUe(e)||oUe(e)}function lUe(e){return e===51||e===52||e===53}function cUe(e){return lUe(e)||sUe(e)}function dUe(e){return e===56||e===57}function uUe(e){return dUe(e)||cUe(e)}function pUe(e){return e===61||uUe(e)||uy(e)}function fUe(e){return pUe(e)||e===28}function Toe(e){return fUe(e.kind)}var rU;(e=>{function t(h,y,E,A,R,N,P){const k=y>0?R[y-1]:void 0;return C.assertEqual(E[y],t),R[y]=h.onEnter(A[y],k,P),E[y]=u(h,t),y}e.enter=t;function r(h,y,E,A,R,N,P){C.assertEqual(E[y],r),C.assertIsDefined(h.onLeft),E[y]=u(h,r);const k=h.onLeft(A[y].left,R[y],A[y]);return k?(_(y,A,k),d(y,E,A,R,k)):y}e.left=r;function i(h,y,E,A,R,N,P){return C.assertEqual(E[y],i),C.assertIsDefined(h.onOperator),E[y]=u(h,i),h.onOperator(A[y].operatorToken,R[y],A[y]),y}e.operator=i;function o(h,y,E,A,R,N,P){C.assertEqual(E[y],o),C.assertIsDefined(h.onRight),E[y]=u(h,o);const k=h.onRight(A[y].right,R[y],A[y]);return k?(_(y,A,k),d(y,E,A,R,k)):y}e.right=o;function s(h,y,E,A,R,N,P){C.assertEqual(E[y],s),E[y]=u(h,s);const k=h.onExit(A[y],R[y]);if(y>0){if(y--,h.foldState){const F=E[y]===s?"right":"left";R[y]=h.foldState(R[y],k,F)}}else N.value=k;return y}e.exit=s;function l(h,y,E,A,R,N,P){return C.assertEqual(E[y],l),y}e.done=l;function u(h,y){switch(y){case t:if(h.onLeft)return r;case r:if(h.onOperator)return i;case i:if(h.onRight)return o;case o:return s;case s:return l;case l:return l;default:C.fail("Invalid state")}}e.nextState=u;function d(h,y,E,A,R){return h++,y[h]=t,E[h]=R,A[h]=void 0,h}function _(h,y,E){if(C.shouldAssert(2))for(;h>=0;)C.assert(y[h]!==E,"Circular traversal detected."),h--}})(rU||(rU={}));var mUe=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 V4(e,t,r,i,o,s){const l=new mUe(e,t,r,i,o,s);return u;function u(d,_){const h={value:void 0},y=[rU.enter],E=[d],A=[void 0];let R=0;for(;y[R]!==rU.done;)R=y[R](l,R,y,E,A,h,_);return C.assertEqual(R,0),h.value}}function hUe(e){return e===95||e===90}function Pw(e){const t=e.kind;return hUe(t)}function Soe(e,t){if(t!==void 0)return t.length===0?t:bt(e.createNodeArray([],t.hasTrailingComma),t)}function Lw(e){var t;const r=e.emitNode.autoGenerate;if(r.flags&4){const i=r.id;let o=e,s=o.original;for(;s;){o=s;const l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(hg(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function BD(e,t){return typeof e=="object"?o0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function _Ue(e,t){return typeof e=="string"?e:gUe(e,C.checkDefined(t))}function gUe(e,t){return e1(e)?t(e).slice(1):ml(e)?t(e):Qi(e)?e.escapedText.slice(1):Kr(e)}function o0(e,t,r,i,o){return t=BD(t,o),i=BD(i,o),r=_Ue(r,o),`${e?"#":""}${t}${r}${i}`}function iU(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Eoe(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Aoe(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function j4(e){let t=e.expression;for(;;){if(t=Kl(t),XM(t)){t=Ga(t.elements);continue}if(Dw(t)){t=t.right;continue}if(od(t,!0)&&ml(t.left))return t;break}}function yUe(e){return zu(e)&&Fs(e)&&!e.emitNode}function U4(e,t){if(yUe(e))U4(e.expression,t);else if(Dw(e))U4(e.left,t),U4(e.right,t);else if(XM(e))for(const r of e.elements)U4(r,t);else t.push(e)}function Ioe(e){const t=[];return U4(e,t),t}function kw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of zD(e)){const r=zb(t);if(r&&HN(r)&&(r.transformFlags&65536||r.transformFlags&128&&kw(r)))return!0}return!1}function bt(e,t){return t?mh(e,t.pos,t.end):e}function Rm(e){const t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function YS(e){const t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var iEe,oEe,aEe,sEe,lEe,xoe={createBaseSourceFileNode:e=>new(lEe||(lEe=Dd.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(aEe||(aEe=Dd.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(sEe||(sEe=Dd.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(oEe||(oEe=Dd.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(iEe||(iEe=Dd.getNodeConstructor()))(e,-1,-1)},a0=fw(1,xoe);function dn(e,t){return t&&e(t)}function Ki(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function oU(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function ww(e){return qe(e.statements,vUe)||bUe(e)}function vUe(e){return Rm(e)&&TUe(e,95)||Gc(e)&&hy(e.moduleReference)||Tl(e)||dl(e)||hc(e)?e:void 0}function bUe(e){return e.flags&8388608?cEe(e):void 0}function cEe(e){return SUe(e)?e:Jo(e,cEe)}function TUe(e,t){return vt(e.modifiers,r=>r.kind===t)}function SUe(e){return x1(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var EUe={167:function(t,r,i){return dn(r,t.left)||dn(r,t.right)},169:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.constraint)||dn(r,t.default)||dn(r,t.expression)},305:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.equalsToken)||dn(r,t.objectAssignmentInitializer)},306:function(t,r,i){return dn(r,t.expression)},170:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.dotDotDotToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)||dn(r,t.initializer)},173:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.type)||dn(r,t.initializer)},172:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)||dn(r,t.initializer)},304:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||dn(r,t.initializer)},261:function(t,r,i){return dn(r,t.name)||dn(r,t.exclamationToken)||dn(r,t.type)||dn(r,t.initializer)},209:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.propertyName)||dn(r,t.name)||dn(r,t.initializer)},182:function(t,r,i){return Ki(r,i,t.modifiers)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)},186:function(t,r,i){return Ki(r,i,t.modifiers)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)},185:function(t,r,i){return Ki(r,i,t.modifiers)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)},180:dEe,181:dEe,175:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},174:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)},177:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},178:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},179:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},263:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},219:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},220:function(t,r,i){return Ki(r,i,t.modifiers)||Ki(r,i,t.typeParameters)||Ki(r,i,t.parameters)||dn(r,t.type)||dn(r,t.equalsGreaterThanToken)||dn(r,t.body)},176:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.body)},184:function(t,r,i){return dn(r,t.typeName)||Ki(r,i,t.typeArguments)},183:function(t,r,i){return dn(r,t.assertsModifier)||dn(r,t.parameterName)||dn(r,t.type)},187:function(t,r,i){return dn(r,t.exprName)||Ki(r,i,t.typeArguments)},188:function(t,r,i){return Ki(r,i,t.members)},189:function(t,r,i){return dn(r,t.elementType)},190:function(t,r,i){return Ki(r,i,t.elements)},193:uEe,194:uEe,195:function(t,r,i){return dn(r,t.checkType)||dn(r,t.extendsType)||dn(r,t.trueType)||dn(r,t.falseType)},196:function(t,r,i){return dn(r,t.typeParameter)},206:function(t,r,i){return dn(r,t.argument)||dn(r,t.attributes)||dn(r,t.qualifier)||Ki(r,i,t.typeArguments)},303:function(t,r,i){return dn(r,t.assertClause)},197:pEe,199:pEe,200:function(t,r,i){return dn(r,t.objectType)||dn(r,t.indexType)},201:function(t,r,i){return dn(r,t.readonlyToken)||dn(r,t.typeParameter)||dn(r,t.nameType)||dn(r,t.questionToken)||dn(r,t.type)||Ki(r,i,t.members)},202:function(t,r,i){return dn(r,t.literal)},203:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.type)},207:fEe,208:fEe,210:function(t,r,i){return Ki(r,i,t.elements)},211:function(t,r,i){return Ki(r,i,t.properties)},212:function(t,r,i){return dn(r,t.expression)||dn(r,t.questionDotToken)||dn(r,t.name)},213:function(t,r,i){return dn(r,t.expression)||dn(r,t.questionDotToken)||dn(r,t.argumentExpression)},214:mEe,215:mEe,216:function(t,r,i){return dn(r,t.tag)||dn(r,t.questionDotToken)||Ki(r,i,t.typeArguments)||dn(r,t.template)},217:function(t,r,i){return dn(r,t.type)||dn(r,t.expression)},218:function(t,r,i){return dn(r,t.expression)},221:function(t,r,i){return dn(r,t.expression)},222:function(t,r,i){return dn(r,t.expression)},223:function(t,r,i){return dn(r,t.expression)},225:function(t,r,i){return dn(r,t.operand)},230:function(t,r,i){return dn(r,t.asteriskToken)||dn(r,t.expression)},224:function(t,r,i){return dn(r,t.expression)},226:function(t,r,i){return dn(r,t.operand)},227:function(t,r,i){return dn(r,t.left)||dn(r,t.operatorToken)||dn(r,t.right)},235:function(t,r,i){return dn(r,t.expression)||dn(r,t.type)},236:function(t,r,i){return dn(r,t.expression)},239:function(t,r,i){return dn(r,t.expression)||dn(r,t.type)},237:function(t,r,i){return dn(r,t.name)},228:function(t,r,i){return dn(r,t.condition)||dn(r,t.questionToken)||dn(r,t.whenTrue)||dn(r,t.colonToken)||dn(r,t.whenFalse)},231:function(t,r,i){return dn(r,t.expression)},242:hEe,269:hEe,308:function(t,r,i){return Ki(r,i,t.statements)||dn(r,t.endOfFileToken)},244:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.declarationList)},262:function(t,r,i){return Ki(r,i,t.declarations)},245:function(t,r,i){return dn(r,t.expression)},246:function(t,r,i){return dn(r,t.expression)||dn(r,t.thenStatement)||dn(r,t.elseStatement)},247:function(t,r,i){return dn(r,t.statement)||dn(r,t.expression)},248:function(t,r,i){return dn(r,t.expression)||dn(r,t.statement)},249:function(t,r,i){return dn(r,t.initializer)||dn(r,t.condition)||dn(r,t.incrementor)||dn(r,t.statement)},250:function(t,r,i){return dn(r,t.initializer)||dn(r,t.expression)||dn(r,t.statement)},251:function(t,r,i){return dn(r,t.awaitModifier)||dn(r,t.initializer)||dn(r,t.expression)||dn(r,t.statement)},252:_Ee,253:_Ee,254:function(t,r,i){return dn(r,t.expression)},255:function(t,r,i){return dn(r,t.expression)||dn(r,t.statement)},256:function(t,r,i){return dn(r,t.expression)||dn(r,t.caseBlock)},270:function(t,r,i){return Ki(r,i,t.clauses)},297:function(t,r,i){return dn(r,t.expression)||Ki(r,i,t.statements)},298:function(t,r,i){return Ki(r,i,t.statements)},257:function(t,r,i){return dn(r,t.label)||dn(r,t.statement)},258:function(t,r,i){return dn(r,t.expression)},259:function(t,r,i){return dn(r,t.tryBlock)||dn(r,t.catchClause)||dn(r,t.finallyBlock)},300:function(t,r,i){return dn(r,t.variableDeclaration)||dn(r,t.block)},171:function(t,r,i){return dn(r,t.expression)},264:gEe,232:gEe,265:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||Ki(r,i,t.typeParameters)||Ki(r,i,t.heritageClauses)||Ki(r,i,t.members)},266:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||Ki(r,i,t.typeParameters)||dn(r,t.type)},267:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||Ki(r,i,t.members)},307:function(t,r,i){return dn(r,t.name)||dn(r,t.initializer)},268:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.body)},272:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.moduleReference)},273:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.importClause)||dn(r,t.moduleSpecifier)||dn(r,t.attributes)},274:function(t,r,i){return dn(r,t.name)||dn(r,t.namedBindings)},301:function(t,r,i){return Ki(r,i,t.elements)},302:function(t,r,i){return dn(r,t.name)||dn(r,t.value)},271:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.name)},275:function(t,r,i){return dn(r,t.name)},281:function(t,r,i){return dn(r,t.name)},276:yEe,280:yEe,279:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.exportClause)||dn(r,t.moduleSpecifier)||dn(r,t.attributes)},277:vEe,282:vEe,278:function(t,r,i){return Ki(r,i,t.modifiers)||dn(r,t.expression)},229:function(t,r,i){return dn(r,t.head)||Ki(r,i,t.templateSpans)},240:function(t,r,i){return dn(r,t.expression)||dn(r,t.literal)},204:function(t,r,i){return dn(r,t.head)||Ki(r,i,t.templateSpans)},205:function(t,r,i){return dn(r,t.type)||dn(r,t.literal)},168:function(t,r,i){return dn(r,t.expression)},299:function(t,r,i){return Ki(r,i,t.types)},234:function(t,r,i){return dn(r,t.expression)||Ki(r,i,t.typeArguments)},284:function(t,r,i){return dn(r,t.expression)},283:function(t,r,i){return Ki(r,i,t.modifiers)},357:function(t,r,i){return Ki(r,i,t.elements)},285:function(t,r,i){return dn(r,t.openingElement)||Ki(r,i,t.children)||dn(r,t.closingElement)},289:function(t,r,i){return dn(r,t.openingFragment)||Ki(r,i,t.children)||dn(r,t.closingFragment)},286:bEe,287:bEe,293:function(t,r,i){return Ki(r,i,t.properties)},292:function(t,r,i){return dn(r,t.name)||dn(r,t.initializer)},294:function(t,r,i){return dn(r,t.expression)},295:function(t,r,i){return dn(r,t.dotDotDotToken)||dn(r,t.expression)},288:function(t,r,i){return dn(r,t.tagName)},296:function(t,r,i){return dn(r,t.namespace)||dn(r,t.name)},191:rP,192:rP,310:rP,316:rP,315:rP,317:rP,319:rP,318:function(t,r,i){return Ki(r,i,t.parameters)||dn(r,t.type)},321:function(t,r,i){return(typeof t.comment=="string"?void 0:Ki(r,i,t.comment))||Ki(r,i,t.tags)},348:function(t,r,i){return dn(r,t.tagName)||dn(r,t.name)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment))},311:function(t,r,i){return dn(r,t.name)},312:function(t,r,i){return dn(r,t.left)||dn(r,t.right)},342:TEe,349:TEe,331:function(t,r,i){return dn(r,t.tagName)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment))},330:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment))},329:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment))},346:function(t,r,i){return dn(r,t.tagName)||dn(r,t.constraint)||Ki(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment))},347:function(t,r,i){return dn(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===310?dn(r,t.typeExpression)||dn(r,t.fullName)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment)):dn(r,t.fullName)||dn(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment)))},339:function(t,r,i){return dn(r,t.tagName)||dn(r,t.fullName)||dn(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Ki(r,i,t.comment))},343:iP,345:iP,344:iP,341:iP,351:iP,350:iP,340:iP,324:function(t,r,i){return qe(t.typeParameters,r)||qe(t.parameters,r)||dn(r,t.type)},325:Roe,326:Roe,327:Roe,323:function(t,r,i){return qe(t.jsDocPropertyTags,r)},328:GD,333:GD,334:GD,335:GD,336:GD,337:GD,332:GD,338:GD,352:AUe,356:IUe};function dEe(e,t,r){return Ki(t,r,e.typeParameters)||Ki(t,r,e.parameters)||dn(t,e.type)}function uEe(e,t,r){return Ki(t,r,e.types)}function pEe(e,t,r){return dn(t,e.type)}function fEe(e,t,r){return Ki(t,r,e.elements)}function mEe(e,t,r){return dn(t,e.expression)||dn(t,e.questionDotToken)||Ki(t,r,e.typeArguments)||Ki(t,r,e.arguments)}function hEe(e,t,r){return Ki(t,r,e.statements)}function _Ee(e,t,r){return dn(t,e.label)}function gEe(e,t,r){return Ki(t,r,e.modifiers)||dn(t,e.name)||Ki(t,r,e.typeParameters)||Ki(t,r,e.heritageClauses)||Ki(t,r,e.members)}function yEe(e,t,r){return Ki(t,r,e.elements)}function vEe(e,t,r){return dn(t,e.propertyName)||dn(t,e.name)}function bEe(e,t,r){return dn(t,e.tagName)||Ki(t,r,e.typeArguments)||dn(t,e.attributes)}function rP(e,t,r){return dn(t,e.type)}function TEe(e,t,r){return dn(t,e.tagName)||(e.isNameFirst?dn(t,e.name)||dn(t,e.typeExpression):dn(t,e.typeExpression)||dn(t,e.name))||(typeof e.comment=="string"?void 0:Ki(t,r,e.comment))}function iP(e,t,r){return dn(t,e.tagName)||dn(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Ki(t,r,e.comment))}function Roe(e,t,r){return dn(t,e.name)}function GD(e,t,r){return dn(t,e.tagName)||(typeof e.comment=="string"?void 0:Ki(t,r,e.comment))}function AUe(e,t,r){return dn(t,e.tagName)||dn(t,e.importClause)||dn(t,e.moduleSpecifier)||dn(t,e.attributes)||(typeof e.comment=="string"?void 0:Ki(t,r,e.comment))}function IUe(e,t,r){return dn(t,e.expression)}function Jo(e,t,r){if(e===void 0||e.kind<=166)return;const i=EUe[e.kind];return i===void 0?void 0:i(e,t,r)}function ox(e,t,r){const i=SEe(e),o=[];for(;o.length=0;--u)i.push(s[u]),o.push(l)}else{const u=t(s,l);if(u){if(u==="skip")continue;return u}if(s.kind>=167)for(const d of SEe(s))i.push(d),o.push(s)}}}function SEe(e){const t=[];return Jo(e,r,r),t;function r(i){t.unshift(i)}}function EEe(e){e.externalModuleIndicator=ww(e)}function ax(e,t,r,i=!1,o){var s,l;(s=xr)==null||s.push(xr.Phase.Parse,"createSourceFile",{path:e},!0),Nl("beforeParse");let u;const{languageVersion:d,setExternalModuleIndicator:_,impliedNodeFormat:h,jsDocParsingMode:y}=typeof r=="object"?r:{languageVersion:r};if(d===100)u=s0.parseSourceFile(e,t,d,void 0,i,6,gs,y);else{const E=h===void 0?_:A=>(A.impliedNodeFormat=h,(_||EEe)(A));u=s0.parseSourceFile(e,t,d,void 0,i,o,E,y)}return Nl("afterParse"),zf("Parse","beforeParse","afterParse"),(l=xr)==null||l.pop(),u}function sx(e,t){return s0.parseIsolatedEntityName(e,t)}function Ow(e,t){return s0.parseJsonText(e,t)}function Vc(e){return e.externalModuleIndicator!==void 0}function aU(e,t,r,i=!1){const o=sU.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Doe(e,t,r){const i=s0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&s0.fixupParentReferences(i.jsDoc),i}function AEe(e,t,r){return s0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}var s0;(e=>{var t=mg(99,!0),r=40960,i,o,s,l,u;function d(ee){return We++,ee}var _={createBaseSourceFileNode:ee=>d(new u(ee,0,0)),createBaseIdentifierNode:ee=>d(new s(ee,0,0)),createBasePrivateIdentifierNode:ee=>d(new l(ee,0,0)),createBaseTokenNode:ee=>d(new o(ee,0,0)),createBaseNode:ee=>d(new i(ee,0,0))},h=fw(11,_),{createNodeArray:y,createNumericLiteral:E,createStringLiteral:A,createLiteralLikeNode:R,createIdentifier:N,createPrivateIdentifier:P,createToken:k,createArrayLiteralExpression:F,createObjectLiteralExpression:W,createPropertyAccessExpression:G,createPropertyAccessChain:j,createElementAccessExpression:J,createElementAccessChain:Z,createCallExpression:q,createCallChain:ve,createNewExpression:oe,createParenthesizedExpression:K,createBlock:fe,createVariableStatement:ue,createExpressionStatement:me,createIfStatement:be,createWhileStatement:De,createForStatement:Y,createForOfStatement:Ne,createVariableDeclaration:Xe,createVariableDeclarationList:Ee}=h,re,Te,Me,Be,lt,ce,Ce,ye,Ue,Ge,We,at,Wt,cn,gn,Kn,gt=!0,en=!1;function or(ee,ke,rt,Pt,nn=!1,_n,ei,wr=0){var pr;if(_n=Q6(ee,_n),_n===6){const oo=so(ee,ke,rt,Pt,nn);return Gw(oo,(pr=oo.statements[0])==null?void 0:pr.expression,oo.parseDiagnostics,!1,void 0),oo.referencedFiles=ie,oo.typeReferenceDirectives=ie,oo.libReferenceDirectives=ie,oo.amdDependencies=ie,oo.hasNoDefaultLib=!1,oo.pragmas=ut,oo}zt(ee,ke,rt,Pt,_n,wr);const Ai=xi(rt,nn,_n,ei||EEe,wr);return Zr(),Ai}e.parseSourceFile=or;function Ni(ee,ke){zt("",ee,ke,void 0,1,0),Le();const rt=pt(!0),Pt=te()===1&&!Ce.length;return Zr(),Pt?rt:void 0}e.parseIsolatedEntityName=Ni;function so(ee,ke,rt=2,Pt,nn=!1){zt(ee,ke,rt,Pt,6,0),Te=Kn,Le();const _n=B();let ei,wr;if(te()===1)ei=Ja([],_n,_n),wr=ic();else{let oo;for(;te()!==1;){let ss;switch(te()){case 23:ss=oT();break;case 112:case 97:case 106:ss=ic();break;case 41:wt(()=>Le()===9&&Le()!==59)?ss=Dv():ss=Mv();break;case 9:case 11:if(wt(()=>Le()!==59)){ss=kt();break}default:ss=Mv();break}oo&&No(oo)?oo.push(ss):oo?oo=[oo,ss]:(oo=ss,te()!==1&&Jt(f.Unexpected_token))}const Gs=No(oo)?Zt(F(oo),_n):C.checkDefined(oo),Rs=me(Gs);Zt(Rs,_n),ei=Ja([Rs],_n),wr=Zs(1,f.Unexpected_token)}const pr=At(ee,2,6,!1,ei,wr,Te,gs);nn&&$e(pr),pr.nodeCount=We,pr.identifierCount=Wt,pr.identifiers=at,pr.parseDiagnostics=wI(Ce,pr),ye&&(pr.jsDocDiagnostics=wI(ye,pr));const Ai=pr;return Zr(),Ai}e.parseJsonText=so;function zt(ee,ke,rt,Pt,nn,_n){switch(i=Dd.getNodeConstructor(),o=Dd.getTokenConstructor(),s=Dd.getIdentifierConstructor(),l=Dd.getPrivateIdentifierConstructor(),u=Dd.getSourceFileConstructor(),re=ya(ee),Me=ke,Be=rt,Ue=Pt,lt=nn,ce=Xk(nn),Ce=[],cn=0,at=new Map,Wt=0,We=0,Te=0,gt=!0,lt){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}en=!1,t.setText(Me),t.setOnError(ge),t.setScriptTarget(Be),t.setLanguageVariant(ce),t.setScriptKind(lt),t.setJSDocParsingMode(_n)}function Zr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Me=void 0,Be=void 0,Ue=void 0,lt=void 0,ce=void 0,Te=0,Ce=void 0,ye=void 0,cn=0,at=void 0,gn=void 0,gt=!0}function xi(ee,ke,rt,Pt,nn){const _n=sd(re);_n&&(Kn|=33554432),Te=Kn,Le();const ei=ja(0,Ep);C.assert(te()===1);const wr=Ie(),pr=Pr(ic(),wr),Ai=At(re,ee,rt,_n,ei,pr,Te,Pt);return lU(Ai,Me),cU(Ai,oo),Ai.commentDirectives=t.getCommentDirectives(),Ai.nodeCount=We,Ai.identifierCount=Wt,Ai.identifiers=at,Ai.parseDiagnostics=wI(Ce,Ai),Ai.jsDocParsingMode=nn,ye&&(Ai.jsDocDiagnostics=wI(ye,Ai)),ke&&$e(Ai),Ai;function oo(Gs,Rs,ss){Ce.push(kI(re,Me,Gs,Rs,ss))}}let Pi=!1;function Pr(ee,ke){if(!ke)return ee;C.assert(!ee.jsDoc);const rt=Ei(zG(ee,Me),Pt=>b_.parseJSDocComment(ee,Pt.pos,Pt.end-Pt.pos));return rt.length&&(ee.jsDoc=rt),Pi&&(Pi=!1,ee.flags|=536870912),ee}function Mi(ee){const ke=Ue,rt=sU.createSyntaxCursor(ee);Ue={currentNode:oo};const Pt=[],nn=Ce;Ce=[];let _n=0,ei=pr(ee.statements,0);for(;ei!==-1;){const Gs=ee.statements[_n],Rs=ee.statements[ei];Xr(Pt,ee.statements,_n,ei),_n=Ai(ee.statements,ei);const ss=ho(nn,Df=>Df.start>=Gs.pos),im=ss>=0?ho(nn,Df=>Df.start>=Rs.pos,ss):-1;ss>=0&&Xr(Ce,nn,ss,im>=0?im:void 0),yn(()=>{const Df=Kn;for(Kn|=65536,t.resetTokenState(Rs.pos),Le();te()!==1;){const Ov=t.getTokenFullStart(),Wv=kc(0,Ep);if(Pt.push(Wv),Ov===t.getTokenFullStart()&&Le(),_n>=0){const jg=ee.statements[_n];if(Wv.end===jg.pos)break;Wv.end>jg.pos&&(_n=Ai(ee.statements,_n+1))}}Kn=Df},2),ei=_n>=0?pr(ee.statements,_n):-1}if(_n>=0){const Gs=ee.statements[_n];Xr(Pt,ee.statements,_n);const Rs=ho(nn,ss=>ss.start>=Gs.pos);Rs>=0&&Xr(Ce,nn,Rs)}return Ue=ke,h.updateSourceFile(ee,bt(y(Pt),ee.statements));function wr(Gs){return!(Gs.flags&65536)&&!!(Gs.transformFlags&67108864)}function pr(Gs,Rs){for(let ss=Rs;ss118}function wn(){return te()===80?!0:te()===127&&He()||te()===135&&nt()?!1:te()>118}function ln(ee,ke,rt=!0){return te()===ee?(rt&&Le(),!0):(ke?Jt(ke):Jt(f._0_expected,_a(ee)),!1)}const Ri=Object.keys(pF).filter(ee=>ee.length>2);function ia(ee){if($T(ee)){Oe(wa(Me,ee.template.pos),ee.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}const ke=Je(ee)?Kr(ee):void 0;if(!ke||!_p(ke,Be)){Jt(f._0_expected,_a(27));return}const rt=wa(Me,ee.pos);switch(ke){case"const":case"let":case"var":Oe(rt,ee.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":la(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":Oe(rt,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":la(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":la(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}const Pt=gS(ke,Ri,Us)??zo(ke);if(Pt){Oe(rt,ee.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,Pt);return}te()!==0&&Oe(rt,ee.end,f.Unexpected_keyword_or_identifier)}function la(ee,ke,rt){te()===rt?Jt(ke):Jt(ee,t.getTokenValue())}function zo(ee){for(const ke of Ri)if(ee.length>ke.length+2&&po(ee,ke))return`${ke} ${ee.slice(ke.length)}`}function jl(ee,ke,rt){if(te()===60&&!t.hasPrecedingLineBreak()){Jt(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(te()===21){Jt(f.Cannot_start_a_function_call_in_a_type_annotation),Le();return}if(ke&&!Po()){rt?Jt(f._0_expected,_a(27)):Jt(f.Expected_for_property_initializer);return}if(!fa()){if(rt){Jt(f._0_expected,_a(27));return}ia(ee)}}function Cl(ee){return te()===ee?(yt(),!0):(C.assert(_6(ee)),Jt(f._0_expected,_a(ee)),!1)}function ks(ee,ke,rt,Pt){if(te()===ke){Le();return}const nn=Jt(f._0_expected,_a(ke));rt&&nn&&pa(nn,kI(re,Me,Pt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,_a(ee),_a(ke)))}function lo(ee){return te()===ee?(Le(),!0):!1}function Go(ee){if(te()===ee)return ic()}function Ec(ee){if(te()===ee)return Sf()}function Zs(ee,ke,rt){return Go(ee)||xs(ee,!1,ke||f._0_expected,rt||_a(ee))}function Da(ee){const ke=Ec(ee);return ke||(C.assert(_6(ee)),xs(ee,!1,f._0_expected,_a(ee)))}function ic(){const ee=B(),ke=te();return Le(),Zt(k(ke),ee)}function Sf(){const ee=B(),ke=te();return yt(),Zt(k(ke),ee)}function Po(){return te()===27?!0:te()===20||te()===1||t.hasPrecedingLineBreak()}function fa(){return Po()?(te()===27&&Le(),!0):!1}function os(){return fa()||ln(27)}function Ja(ee,ke,rt,Pt){const nn=y(ee,Pt);return mh(nn,ke,rt??t.getTokenFullStart()),nn}function Zt(ee,ke,rt){return mh(ee,ke,rt??t.getTokenFullStart()),Kn&&(ee.flags|=Kn),en&&(en=!1,ee.flags|=262144),ee}function xs(ee,ke,rt,...Pt){ke?Tr(t.getTokenFullStart(),0,rt,...Pt):rt&&Jt(rt,...Pt);const nn=B(),_n=ee===80?N("",void 0):hb(ee)?h.createTemplateLiteralLikeNode(ee,"","",void 0):ee===9?E("",void 0):ee===11?A("",void 0):ee===283?h.createMissingDeclaration():k(ee);return Zt(_n,nn)}function Xl(ee){let ke=at.get(ee);return ke===void 0&&at.set(ee,ke=ee),ke}function dc(ee,ke,rt){if(ee){Wt++;const wr=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():B(),pr=te(),Ai=Xl(t.getTokenValue()),oo=t.hasExtendedUnicodeEscape();return xt(),Zt(N(Ai,pr,oo),wr)}if(te()===81)return Jt(rt||f.Private_identifiers_are_not_allowed_outside_class_bodies),dc(!0);if(te()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return dc(!0);Wt++;const Pt=te()===1,nn=t.isReservedWord(),_n=t.getTokenText(),ei=nn?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return xs(80,Pt,ke||ei,_n)}function bd(ee){return dc(xn(),void 0,ee)}function Bs(ee,ke){return dc(wn(),ee,ke)}function Ae(ee){return dc(Qu(te()),ee)}function $(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Jt(f.Unicode_escape_sequence_cannot_appear_here),dc(Qu(te()))}function ft(){return Qu(te())||te()===11||te()===9||te()===10}function Ht(){return Qu(te())||te()===11}function fn(ee){if(te()===11||te()===9||te()===10){const ke=kt();return ke.text=Xl(ke.text),ke}return te()===23?si():te()===81?Dr():Ae()}function ur(){return fn()}function si(){const ee=B();ln(23);const ke=Pn(Du);return ln(24),Zt(h.createComputedPropertyName(ke),ee)}function Dr(){const ee=B(),ke=P(Xl(t.getTokenValue()));return Le(),Zt(ke,ee)}function Bn(ee){return te()===ee&&En(To)}function no(){return Le(),t.hasPrecedingLineBreak()?!1:Ac()}function To(){switch(te()){case 87:return Le()===94;case 95:return Le(),te()===90?wt(Js):te()===156?wt(Ca):Ps();case 90:return Js();case 126:return Le(),Ac();case 139:case 153:return Le(),_c();default:return no()}}function Ps(){return te()===60||te()!==42&&te()!==130&&te()!==19&&Ac()}function Ca(){return Le(),Ps()}function el(){return gb(te())&&En(To)}function Ac(){return te()===23||te()===19||te()===42||te()===26||ft()}function _c(){return te()===23||ft()}function Js(){return Le(),te()===86||te()===100||te()===120||te()===60||te()===128&&wt(fp)||te()===134&&wt(rm)}function wl(ee,ke){if(rl(ee))return!0;switch(ee){case 0:case 1:case 3:return!(te()===27&&ke)&&Pv();case 2:return te()===84||te()===90;case 4:return wt(Lm);case 5:return wt(gA)||te()===27&&!ke;case 6:return te()===23||ft();case 12:switch(te()){case 23:case 42:case 26:case 25:return!0;default:return ft()}case 18:return ft();case 9:return te()===23||te()===26||ft();case 24:return Ht();case 7:return te()===19?wt(Sh):ke?wn()&&!ze():up()&&!ze();case 8:return Yx();case 10:return te()===28||te()===26||Yx();case 19:return te()===103||te()===87||wn();case 15:switch(te()){case 28:case 25:return!0}case 11:return te()===26||Yd();case 16:return ht(!1);case 17:return ht(!0);case 20:case 21:return te()===28||$b();case 22:return yA();case 23:return te()===161&&wt(Vg)?!1:te()===11?!0:Qu(te());case 13:return Qu(te())||te()===19;case 14:return!0;case 25:return!0;case 26:return C.fail("ParsingContext.Count used as a context");default:C.assertNever(ee,"Non-exhaustive case in 'isListElement'.")}}function Sh(){if(C.assert(te()===19),Le()===20){const ee=Le();return ee===28||ee===19||ee===96||ee===119}return!0}function Ld(){return Le(),wn()}function af(){return Le(),Qu(te())}function lp(){return Le(),Bee(te())}function ze(){return te()===119||te()===96?wt(qt):!1}function qt(){return Le(),Yd()}function er(){return Le(),$b()}function go(ee){if(te()===1)return!0;switch(ee){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return te()===20;case 3:return te()===20||te()===84||te()===90;case 7:return te()===19||te()===96||te()===119;case 8:return es();case 19:return te()===32||te()===21||te()===19||te()===96||te()===119;case 11:return te()===22||te()===27;case 15:case 21:case 10:return te()===24;case 17:case 16:case 18:return te()===22||te()===24;case 20:return te()!==28;case 22:return te()===19||te()===20;case 13:return te()===32||te()===44;case 14:return te()===30&&wt(qz);default:return!1}}function es(){return!!(Po()||Cu(te())||te()===39)}function ts(){C.assert(cn,"Missing parsing context");for(let ee=0;ee<26;ee++)if(cn&1<=0)}function Eh(ee){return ee===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ef(){const ee=Ja([],B());return ee.isMissingList=!0,ee}function h_(ee){return!!ee.isMissingList}function ae(ee,ke,rt,Pt){if(ln(rt)){const nn=$c(ee,ke);return ln(Pt),nn}return Ef()}function pt(ee,ke){const rt=B();let Pt=ee?Ae(ke):Bs(ke);for(;lo(25)&&te()!==30;)Pt=Zt(h.createQualifiedName(Pt,an(ee,!1,!0)),rt);return Pt}function tn(ee,ke){return Zt(h.createQualifiedName(ee,ke),ee.pos)}function an(ee,ke,rt){if(t.hasPrecedingLineBreak()&&Qu(te())&&wt(Ux))return xs(80,!0,f.Identifier_expected);if(te()===81){const Pt=Dr();return ke?Pt:xs(80,!0,f.Identifier_expected)}return ee?rt?Ae():$():Bs()}function Wn(ee){const ke=B(),rt=[];let Pt;do Pt=je(ee),rt.push(Pt);while(Pt.literal.kind===17);return Ja(rt,ke)}function ar(ee){const ke=B();return Zt(h.createTemplateExpression(Fn(ee),Wn(ee)),ke)}function ti(){const ee=B();return Zt(h.createTemplateLiteralType(Fn(!1),Si()),ee)}function Si(){const ee=B(),ke=[];let rt;do rt=Yi(),ke.push(rt);while(rt.literal.kind===17);return Ja(ke,ee)}function Yi(){const ee=B();return Zt(h.createTemplateLiteralTypeSpan(ul(),z(!1)),ee)}function z(ee){return te()===20?(Jn(ee),yo()):Zs(18,f._0_expected,_a(20))}function je(ee){const ke=B();return Zt(h.createTemplateSpan(Pn(Du),z(ee)),ke)}function kt(){return So(te())}function Fn(ee){!ee&&t.getTokenFlags()&26656&&Jn(!1);const ke=So(te());return C.assert(ke.kind===16,"Template head has wrong token kind"),ke}function yo(){const ee=So(te());return C.assert(ee.kind===17||ee.kind===18,"Template fragment has wrong token kind"),ee}function na(ee){const ke=ee===15||ee===18,rt=t.getTokenText();return rt.substring(1,rt.length-(t.isUnterminated()?0:ke?1:2))}function So(ee){const ke=B(),rt=hb(ee)?h.createTemplateLiteralLikeNode(ee,t.getTokenValue(),na(ee),t.getTokenFlags()&7176):ee===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):ee===11?A(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):VN(ee)?R(ee,t.getTokenValue()):C.fail();return t.hasExtendedUnicodeEscape()&&(rt.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(rt.isUnterminated=!0),Le(),Zt(rt,ke)}function Vo(){return pt(!0,f.Type_expected)}function _l(){if(!t.hasPrecedingLineBreak()&&mt()===30)return ae(20,ul,30,32)}function Na(){const ee=B();return Zt(h.createTypeReferenceNode(Vo(),_l()),ee)}function dd(ee){switch(ee.kind){case 184:return zl(ee.typeName);case 185:case 186:{const{parameters:ke,type:rt}=ee;return h_(ke)||dd(rt)}case 197:return dd(ee.type);default:return!1}}function Jp(ee){return Le(),Zt(h.createTypePredicateNode(void 0,ee,ul()),ee.pos)}function Af(){const ee=B();return Le(),Zt(h.createThisTypeNode(),ee)}function em(){const ee=B();return Le(),Zt(h.createJSDocAllType(),ee)}function Iy(){const ee=B();return Le(),Zt(h.createJSDocNonNullableType(pE(),!1),ee)}function Ev(){const ee=B();return Le(),te()===28||te()===20||te()===22||te()===32||te()===64||te()===52?Zt(h.createJSDocUnknownType(),ee):Zt(h.createJSDocNullableType(ul(),!1),ee)}function ju(){const ee=B(),ke=Ie();if(En(Zx)){const rt=_i(36),Pt=cr(59,!1);return Pr(Zt(h.createJSDocFunctionType(rt,Pt),ee),ke)}return Zt(h.createTypeReferenceNode(Ae(),void 0),ee)}function U_(){const ee=B();let ke;return(te()===110||te()===105)&&(ke=Ae(),ln(59)),Zt(h.createParameterDeclaration(void 0,void 0,ke,void 0,Ah(),void 0),ee)}function Ah(){t.setSkipJsDocLeadingAsterisks(!0);const ee=B();if(lo(144)){const Pt=h.createJSDocNamepathType(void 0);e:for(;;)switch(te()){case 20:case 1:case 28:case 5:break e;default:yt()}return t.setSkipJsDocLeadingAsterisks(!1),Zt(Pt,ee)}const ke=lo(26);let rt=Cy();return t.setSkipJsDocLeadingAsterisks(!1),ke&&(rt=Zt(h.createJSDocVariadicType(rt),ee)),te()===64?(Le(),Zt(h.createJSDocOptionalType(rt),ee)):rt}function Mm(){const ee=B();ln(114);const ke=pt(!0),rt=t.hasPrecedingLineBreak()?void 0:Sl();return Zt(h.createTypeQueryNode(ke,rt),ee)}function Yb(){const ee=B(),ke=Oi(!1,!0),rt=Bs();let Pt,nn;lo(96)&&($b()||!Yd()?Pt=ul():nn=P0());const _n=lo(64)?ul():void 0,ei=h.createTypeParameterDeclaration(ke,rt,Pt,_n);return ei.expression=nn,Zt(ei,ee)}function Ye(){if(te()===30)return ae(19,Yb,30,32)}function ht(ee){return te()===26||Yx()||gb(te())||te()===60||$b(!ee)}function Xt(ee){const ke=Lv(f.Private_identifiers_cannot_be_used_as_parameters);return ek(ke)===0&&!vt(ee)&&gb(te())&&Le(),ke}function Rn(){return xn()||te()===23||te()===19}function Qn(ee){return Yn(ee)}function Lr(ee){return Yn(ee,!1)}function Yn(ee,ke=!0){const rt=B(),Pt=Ie(),nn=ee?ne(()=>Oi(!0)):Fe(()=>Oi(!0));if(te()===110){const pr=h.createParameterDeclaration(nn,void 0,dc(!0),void 0,Xd(),void 0),Ai=Rc(nn);return Ai&&Nt(Ai,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Pr(Zt(pr,rt),Pt)}const _n=gt;gt=!1;const ei=Go(26);if(!ke&&!Rn())return;const wr=Pr(Zt(h.createParameterDeclaration(nn,ei,Xt(nn),Go(58),Xd(),K_()),rt),Pt);return gt=_n,wr}function cr(ee,ke){if(Wi(ee,ke))return ot(Cy)}function Wi(ee,ke){return ee===39?(ln(ee),!0):lo(59)?!0:ke&&te()===39?(Jt(f._0_expected,_a(59)),Le(),!0):!1}function xo(ee,ke){const rt=He(),Pt=nt();ri(!!(ee&1)),qi(!!(ee&2));const nn=ee&32?$c(17,U_):$c(16,()=>ke?Qn(Pt):Lr(Pt));return ri(rt),qi(Pt),nn}function _i(ee){if(!ln(21))return Ef();const ke=xo(ee,!0);return ln(22),ke}function Ro(){lo(28)||os()}function $i(ee){const ke=B(),rt=Ie();ee===181&&ln(105);const Pt=Ye(),nn=_i(4),_n=cr(59,!0);Ro();const ei=ee===180?h.createCallSignature(Pt,nn,_n):h.createConstructSignature(Pt,nn,_n);return Pr(Zt(ei,ke),rt)}function gl(){return te()===23&&wt(dp)}function dp(){if(Le(),te()===26||te()===24)return!0;if(gb(te())){if(Le(),wn())return!0}else if(wn())Le();else return!1;return te()===59||te()===28?!0:te()!==58?!1:(Le(),te()===59||te()===28||te()===24)}function Pm(ee,ke,rt){const Pt=ae(16,()=>Qn(!1),23,24),nn=Xd();Ro();const _n=h.createIndexSignature(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function Sd(ee,ke,rt){const Pt=ur(),nn=Go(58);let _n;if(te()===21||te()===30){const ei=Ye(),wr=_i(4),pr=cr(59,!0);_n=h.createMethodSignature(rt,Pt,nn,ei,wr,pr)}else{const ei=Xd();_n=h.createPropertySignature(rt,Pt,nn,ei),te()===64&&(_n.initializer=K_())}return Ro(),Pr(Zt(_n,ee),ke)}function Lm(){if(te()===21||te()===30||te()===139||te()===153)return!0;let ee=!1;for(;gb(te());)ee=!0,Le();return te()===23?!0:(ft()&&(ee=!0,Le()),ee?te()===21||te()===30||te()===58||te()===59||te()===28||Po():!1)}function Kp(){if(te()===21||te()===30)return $i(180);if(te()===105&&wt(S0))return $i(181);const ee=B(),ke=Ie(),rt=Oi(!1);return Bn(139)?V0(ee,ke,rt,178,4):Bn(153)?V0(ee,ke,rt,179,4):gl()?Pm(ee,ke,rt):Sd(ee,ke,rt)}function S0(){return Le(),te()===21||te()===30}function __(){return Le()===25}function H_(){switch(Le()){case 21:case 30:case 25:return!0}return!1}function E0(){const ee=B();return Zt(h.createTypeLiteralNode(q_()),ee)}function q_(){let ee;return ln(19)?(ee=ja(4,Kp),ln(20)):ee=Ef(),ee}function RC(){return Le(),te()===40||te()===41?Le()===148:(te()===148&&Le(),te()===23&&Ld()&&Le()===103)}function sL(){const ee=B(),ke=Ae();ln(103);const rt=ul();return Zt(h.createTypeParameterDeclaration(void 0,ke,rt,void 0),ee)}function DC(){const ee=B();ln(19);let ke;(te()===148||te()===40||te()===41)&&(ke=ic(),ke.kind!==148&&ln(148)),ln(23);const rt=sL(),Pt=lo(130)?ul():void 0;ln(24);let nn;(te()===58||te()===40||te()===41)&&(nn=ic(),nn.kind!==58&&ln(58));const _n=Xd();os();const ei=ja(4,Kp);return ln(20),Zt(h.createMappedTypeNode(ke,rt,Pt,nn,_n,ei),ee)}function Og(){const ee=B();if(lo(26))return Zt(h.createRestTypeNode(ul()),ee);const ke=ul();if(LD(ke)&&ke.pos===ke.type.pos){const rt=h.createOptionalTypeNode(ke.type);return bt(rt,ke),rt.flags=ke.flags,rt}return ke}function A0(){return Le()===59||te()===58&&Le()===59}function Y1(){return te()===26?Qu(Le())&&A0():Qu(te())&&A0()}function Av(){if(wt(Y1)){const ee=B(),ke=Ie(),rt=Go(26),Pt=Ae(),nn=Go(58);ln(59);const _n=Og(),ei=h.createNamedTupleMember(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}return Og()}function $1(){const ee=B();return Zt(h.createTupleTypeNode(ae(21,Av,23,24)),ee)}function Lx(){const ee=B();ln(21);const ke=ul();return ln(22),Zt(h.createParenthesizedType(ke),ee)}function lL(){let ee;if(te()===128){const ke=B();Le();const rt=Zt(k(128),ke);ee=Ja([rt],ke)}return ee}function Q1(){const ee=B(),ke=Ie(),rt=lL(),Pt=lo(105);C.assert(!rt||Pt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const nn=Ye(),_n=_i(4),ei=cr(39,!1),wr=Pt?h.createConstructorTypeNode(rt,nn,_n,ei):h.createFunctionTypeNode(nn,_n,ei);return Pr(Zt(wr,ee),ke)}function kx(){const ee=ic();return te()===25?void 0:ee}function I0(ee){const ke=B();ee&&Le();let rt=te()===112||te()===97||te()===106?ic():So(te());return ee&&(rt=Zt(h.createPrefixUnaryExpression(41,rt),ke)),Zt(h.createLiteralTypeNode(rt),ke)}function CC(){return Le(),te()===102}function Z1(){Te|=4194304;const ee=B(),ke=lo(114);ln(102),ln(21);const rt=ul();let Pt;if(lo(28)){const ei=t.getTokenStart();ln(19);const wr=te();if(wr===118||wr===132?Le():Jt(f._0_expected,_a(118)),ln(59),Pt=uT(wr,!0),lo(28),!ln(20)){const pr=tl(Ce);pr&&pr.code===f._0_expected.code&&pa(pr,kI(re,Me,ei,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ln(22);const nn=lo(25)?Vo():void 0,_n=_l();return Zt(h.createImportTypeNode(rt,Pt,nn,_n,ke),ee)}function wx(){return Le(),te()===9||te()===10}function pE(){switch(te()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return En(kx)||Na();case 67:t.reScanAsteriskEqualsToken();case 42:return em();case 61:t.reScanQuestionToken();case 58:return Ev();case 100:return ju();case 54:return Iy();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return I0();case 41:return wt(wx)?I0(!0):Na();case 116:return ic();case 110:{const ee=Af();return te()===142&&!t.hasPrecedingLineBreak()?Jp(ee):ee}case 114:return wt(CC)?Z1():Mm();case 19:return wt(RC)?DC():E0();case 23:return $1();case 21:return Lx();case 102:return Z1();case 131:return wt(Ux)?J_():Na();case 16:return ti();default:return Na()}}function $b(ee){switch(te()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!ee;case 41:return!ee&&wt(wx);case 21:return!ee&&wt(Ox);default:return wn()}}function Ox(){return Le(),te()===22||ht(!1)||$b()}function Wx(){const ee=B();let ke=pE();for(;!t.hasPrecedingLineBreak();)switch(te()){case 54:Le(),ke=Zt(h.createJSDocNonNullableType(ke,!0),ee);break;case 58:if(wt(er))return ke;Le(),ke=Zt(h.createJSDocNullableType(ke,!0),ee);break;case 23:if(ln(23),$b()){const rt=ul();ln(24),ke=Zt(h.createIndexedAccessTypeNode(ke,rt),ee)}else ln(24),ke=Zt(h.createArrayTypeNode(ke),ee);break;default:return ke}return ke}function fE(ee){const ke=B();return ln(ee),Zt(h.createTypeOperatorNode(ee,Ry()),ke)}function Qb(){if(lo(96)){const ee=Ft(ul);if(It()||te()!==58)return ee}}function Iv(){const ee=B(),ke=Bs(),rt=En(Qb),Pt=h.createTypeParameterDeclaration(void 0,ke,rt);return Zt(Pt,ee)}function xy(){const ee=B();return ln(140),Zt(h.createInferTypeNode(Iv()),ee)}function Ry(){const ee=te();switch(ee){case 143:case 158:case 148:return fE(ee);case 140:return xy()}return ot(Wx)}function Dy(ee){if(rs()){const ke=Q1();let rt;return W_(ke)?rt=ee?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:rt=ee?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Nt(ke,rt),ke}}function Zb(ee,ke,rt){const Pt=B(),nn=ee===52,_n=lo(ee);let ei=_n&&Dy(nn)||ke();if(te()===ee||_n){const wr=[ei];for(;lo(ee);)wr.push(Dy(nn)||ke());ei=Zt(rt(Ja(wr,Pt)),Pt)}return ei}function x0(){return Zb(51,Ry,h.createIntersectionTypeNode)}function eA(){return Zb(52,x0,h.createUnionTypeNode)}function R0(){return Le(),te()===105}function rs(){return te()===30||te()===21&&wt(NC)?!0:te()===105||te()===128&&wt(R0)}function tA(){if(gb(te())&&Oi(!1),wn()||te()===110)return Le(),!0;if(te()===23||te()===19){const ee=Ce.length;return Lv(),ee===Ce.length}return!1}function NC(){return Le(),!!(te()===22||te()===26||tA()&&(te()===59||te()===28||te()===58||te()===64||te()===22&&(Le(),te()===39)))}function Cy(){const ee=B(),ke=wn()&&En(Ny),rt=ul();return ke?Zt(h.createTypePredicateNode(void 0,ke,rt),ee):rt}function Ny(){const ee=Bs();if(te()===142&&!t.hasPrecedingLineBreak())return Le(),ee}function J_(){const ee=B(),ke=Zs(131),rt=te()===110?Af():Bs(),Pt=lo(142)?ul():void 0;return Zt(h.createTypePredicateNode(ke,rt,Pt),ee)}function ul(){if(Kn&81920)return Qo(81920,ul);if(rs())return Q1();const ee=B(),ke=eA();if(!It()&&!t.hasPrecedingLineBreak()&&lo(96)){const rt=Ft(ul);ln(58);const Pt=ot(ul);ln(59);const nn=ot(ul);return Zt(h.createConditionalTypeNode(ke,rt,Pt,nn),ee)}return ke}function Xd(){return lo(59)?ul():void 0}function up(){switch(te()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return wt(H_);default:return wn()}}function Yd(){if(up())return!0;switch(te()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return wm()?!0:wn()}}function D0(){return te()!==19&&te()!==100&&te()!==86&&te()!==60&&Yd()}function Du(){const ee=Ot();ee&&ai(!1);const ke=B();let rt=Uu(!0),Pt;for(;Pt=Go(28);)rt=Ua(rt,Pt,Uu(!0),ke);return ee&&ai(!0),rt}function K_(){return lo(64)?Uu(!0):void 0}function Uu(ee){if(km())return C0();const ke=cL(ee)||Ze(ee);if(ke)return ke;const rt=B(),Pt=Ie(),nn=eT(0);return nn.kind===80&&te()===39?N0(rt,nn,ee,Pt,void 0):ep(nn)&&uy(gr())?Ua(nn,ic(),Uu(ee),rt):Rv(nn,rt,ee)}function km(){return te()===127?He()?!0:wt(vE):!1}function $m(){return Le(),!t.hasPrecedingLineBreak()&&wn()}function C0(){const ee=B();return Le(),!t.hasPrecedingLineBreak()&&(te()===42||Yd())?Zt(h.createYieldExpression(Go(42),Uu(!0)),ee):Zt(h.createYieldExpression(void 0,void 0),ee)}function N0(ee,ke,rt,Pt,nn){C.assert(te()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const _n=h.createParameterDeclaration(void 0,void 0,ke,void 0,void 0,void 0);Zt(_n,ke.pos);const ei=Ja([_n],_n.pos,_n.end),wr=Zs(39),pr=Qm(!!nn,rt),Ai=h.createArrowFunction(nn,void 0,ei,void 0,wr,pr);return Pr(Zt(Ai,ee),Pt)}function cL(ee){const ke=MC();if(ke!==0)return ke===1?Wg(!0,!0):En(()=>mE(ee))}function MC(){return te()===21||te()===30||te()===134?wt(xv):te()===39?1:0}function xv(){if(te()===134&&(Le(),t.hasPrecedingLineBreak()||te()!==21&&te()!==30))return 0;const ee=te(),ke=Le();if(ee===21){if(ke===22)switch(Le()){case 39:case 59:case 19:return 1;default:return 0}if(ke===23||ke===19)return 2;if(ke===26)return 1;if(gb(ke)&&ke!==134&&wt(Ld))return Le()===130?0:1;if(!wn()&&ke!==110)return 0;switch(Le()){case 59:return 1;case 58:return Le(),te()===59||te()===28||te()===64||te()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return C.assert(ee===30),!wn()&&te()!==87?0:ce===1?wt(()=>{lo(87);const Pt=Le();if(Pt===96)switch(Le()){case 64:case 32:case 44:return!1;default:return!0}else if(Pt===28||Pt===64)return!0;return!1})?1:0:2}function mE(ee){const ke=t.getTokenStart();if(gn?.has(ke))return;const rt=Wg(!1,ee);return rt||(gn||(gn=new Set)).add(ke),rt}function Ze(ee){if(te()===134&&wt(nA)===1){const ke=B(),rt=Ie(),Pt=Eo(),nn=eT(0);return N0(ke,nn,ee,rt,Pt)}}function nA(){if(te()===134){if(Le(),t.hasPrecedingLineBreak()||te()===39)return 0;const ee=eT(0);if(!t.hasPrecedingLineBreak()&&ee.kind===80&&te()===39)return 1}return 0}function Wg(ee,ke){const rt=B(),Pt=Ie(),nn=Eo(),_n=vt(nn,UM)?2:0,ei=Ye();let wr;if(ln(21)){if(ee)wr=xo(_n,ee);else{const Ov=xo(_n,ee);if(!Ov)return;wr=Ov}if(!ln(22)&&!ee)return}else{if(!ee)return;wr=Ef()}const pr=te()===59,Ai=cr(59,!1);if(Ai&&!ee&&dd(Ai))return;let oo=Ai;for(;oo?.kind===197;)oo=oo.type;const Gs=oo&&kD(oo);if(!ee&&te()!==39&&(Gs||te()!==19))return;const Rs=te(),ss=Zs(39),im=Rs===39||Rs===19?Qm(vt(nn,UM),ke):Bs();if(!ke&&pr&&te()!==59)return;const Df=h.createArrowFunction(nn,ei,wr,Ai,ss,im);return Pr(Zt(Df,rt),Pt)}function Qm(ee,ke){if(te()===19)return sT(ee?2:0);if(te()!==27&&te()!==100&&te()!==86&&Pv()&&!D0())return sT(16|(ee?2:0));const rt=He();ri(!1);const Pt=gt;gt=!1;const nn=ee?ne(()=>Uu(ke)):Fe(()=>Uu(ke));return gt=Pt,ri(rt),nn}function Rv(ee,ke,rt){const Pt=Go(58);if(!Pt)return ee;let nn;return Zt(h.createConditionalExpression(ee,Pt,Qo(r,()=>Uu(!1)),nn=Zs(59),vm(nn)?Uu(rt):xs(80,!1,f._0_expected,_a(59))),ke)}function eT(ee){const ke=B(),rt=P0();return Ih(ee,rt,ke)}function Cu(ee){return ee===103||ee===165}function Ih(ee,ke,rt){for(;;){gr();const Pt=Wk(te());if(!(te()===43?Pt>=ee:Pt>ee)||te()===103&&Rt())break;if(te()===130||te()===152){if(t.hasPrecedingLineBreak())break;{const _n=te();Le(),ke=_n===152?M0(ke,ul()):If(ke,ul())}}else ke=Ua(ke,ic(),eT(Pt),rt)}return ke}function wm(){return Rt()&&te()===103?!1:Wk(te())>0}function M0(ee,ke){return Zt(h.createSatisfiesExpression(ee,ke),ee.pos)}function Ua(ee,ke,rt,Pt){return Zt(h.createBinaryExpression(ee,ke,rt),Pt)}function If(ee,ke){return Zt(h.createAsExpression(ee,ke),ee.pos)}function Dv(){const ee=B();return Zt(h.createPrefixUnaryExpression(te(),Kt(Cv)),ee)}function rA(){const ee=B();return Zt(h.createDeleteExpression(Kt(Cv)),ee)}function My(){const ee=B();return Zt(h.createTypeOfExpression(Kt(Cv)),ee)}function hE(){const ee=B();return Zt(h.createVoidExpression(Kt(Cv)),ee)}function tm(){return te()===135?nt()?!0:wt(vE):!1}function Fg(){const ee=B();return Zt(h.createAwaitExpression(Kt(Cv)),ee)}function P0(){if(g_()){const rt=B(),Pt=_E();return te()===43?Ih(Wk(te()),Pt,rt):Pt}const ee=te(),ke=Cv();if(te()===43){const rt=wa(Me,ke.pos),{end:Pt}=ke;ke.kind===217?Oe(rt,Pt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(C.assert(_6(ee)),Oe(rt,Pt,f.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(ee)))}return ke}function Cv(){switch(te()){case 40:case 41:case 55:case 54:return Dv();case 91:return rA();case 114:return My();case 116:return hE();case 30:return ce===1?Ed(!0,void 0,void 0,!0):fu();case 135:if(tm())return Fg();default:return _E()}}function g_(){switch(te()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ce!==1)return!1;default:return!0}}function _E(){if(te()===46||te()===47){const ke=B();return Zt(h.createPrefixUnaryExpression(te(),Kt(L0)),ke)}else if(ce===1&&te()===30&&wt(lp))return Ed(!0);const ee=L0();if(C.assert(ep(ee)),(te()===46||te()===47)&&!t.hasPrecedingLineBreak()){const ke=te();return Le(),Zt(h.createPostfixUnaryExpression(ee,ke),ee.pos)}return ee}function L0(){const ee=B();let ke;return te()===102?wt(S0)?(Te|=4194304,ke=ic()):wt(__)?(Le(),Le(),ke=Zt(h.createMetaProperty(102,Ae()),ee),ke.name.escapedText==="defer"?(te()===21||te()===30)&&(Te|=4194304):Te|=8388608):ke=Jr():ke=te()===108?Vr():Jr(),pp(ee,ke)}function Jr(){const ee=B(),ke=w0();return xf(ee,ke,!0)}function Vr(){const ee=B();let ke=ic();if(te()===30){const rt=B(),Pt=En(k0);Pt!==void 0&&(Oe(rt,B(),f.super_may_not_use_type_arguments),Zm()||(ke=h.createExpressionWithTypeArguments(ke,Pt)))}return te()===21||te()===25||te()===23?ke:(Zs(25,f.super_must_be_followed_by_an_argument_list_or_member_access),Zt(G(ke,an(!0,!0,!0)),ee))}function Ed(ee,ke,rt,Pt=!1){const nn=B(),_n=dL(ee);let ei;if(_n.kind===287){let wr=gE(_n),pr;const Ai=wr[wr.length-1];if(Ai?.kind===285&&!l0(Ai.openingElement.tagName,Ai.closingElement.tagName)&&l0(_n.tagName,Ai.closingElement.tagName)){const oo=Ai.children.end,Gs=Zt(h.createJsxElement(Ai.openingElement,Ai.children,Zt(h.createJsxClosingElement(Zt(N(""),oo,oo)),oo,oo)),Ai.openingElement.pos,oo);wr=Ja([...wr.slice(0,wr.length-1),Gs],wr.pos,oo),pr=Ai.closingElement}else pr=LC(_n,ee),l0(_n.tagName,pr.tagName)||(rt&&hh(rt)&&l0(pr.tagName,rt.tagName)?Nt(_n.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,XN(Me,_n.tagName)):Nt(pr.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,XN(Me,_n.tagName)));ei=Zt(h.createJsxElement(_n,wr,pr),nn)}else _n.kind===290?ei=Zt(h.createJsxFragment(_n,gE(_n),Fx(ee)),nn):(C.assert(_n.kind===286),ei=_n);if(!Pt&&ee&&te()===30){const wr=typeof ke>"u"?ei.pos:ke,pr=En(()=>Ed(!0,wr));if(pr){const Ai=xs(28,!1);return rj(Ai,pr.pos,0),Oe(wa(Me,wr),pr.end,f.JSX_expressions_must_have_one_parent_element),Zt(h.createBinaryExpression(ei,Ai,pr),nn)}}return ei}function iA(){const ee=B(),ke=h.createJsxText(t.getTokenValue(),Ge===13);return Ge=t.scanJsxToken(),Zt(ke,ee)}function Py(ee,ke){switch(ke){case 1:if(Km(ee))Nt(ee,f.JSX_fragment_has_no_corresponding_closing_tag);else{const rt=ee.tagName,Pt=Math.min(wa(Me,rt.pos),rt.end);Oe(Pt,rt.end,f.JSX_element_0_has_no_corresponding_closing_tag,XN(Me,ee.tagName))}return;case 31:case 7:return;case 12:case 13:return iA();case 19:return Oo(!1);case 30:return Ed(!1,void 0,ee);default:return C.assertNever(ke)}}function gE(ee){const ke=[],rt=B(),Pt=cn;for(cn|=16384;;){const nn=Py(ee,Ge=t.reScanJsxToken());if(!nn||(ke.push(nn),hh(ee)&&nn?.kind===285&&!l0(nn.openingElement.tagName,nn.closingElement.tagName)&&l0(ee.tagName,nn.closingElement.tagName)))break}return cn=Pt,Ja(ke,rt)}function PC(){const ee=B();return Zt(h.createJsxAttributes(ja(13,Sp)),ee)}function dL(ee){const ke=B();if(ln(30),te()===32)return Qt(),Zt(h.createJsxOpeningFragment(),ke);const rt=zr(),Pt=(Kn&524288)===0?Sl():void 0,nn=PC();let _n;return te()===32?(Qt(),_n=h.createJsxOpeningElement(rt,Pt,nn)):(ln(44),ln(32,void 0,!1)&&(ee?Le():Qt()),_n=h.createJsxSelfClosingElement(rt,Pt,nn)),Zt(_n,ke)}function zr(){const ee=B(),ke=Nu();if(_h(ke))return ke;let rt=ke;for(;lo(25);)rt=Zt(G(rt,an(!0,!1,!1)),ee);return rt}function Nu(){const ee=B();Vt();const ke=te()===110,rt=$();return lo(59)?(Vt(),Zt(h.createJsxNamespacedName(rt,$()),ee)):ke?Zt(h.createToken(110),ee):rt}function Oo(ee){const ke=B();if(!ln(19))return;let rt,Pt;return te()!==20&&(ee||(rt=Go(26)),Pt=Du()),ee?ln(20):ln(20,void 0,!1)&&Qt(),Zt(h.createJsxExpression(rt,Pt),ke)}function Sp(){if(te()===19)return Mr();const ee=B();return Zt(h.createJsxAttribute(tT(),oA()),ee)}function oA(){if(te()===64){if(In()===11)return kt();if(te()===19)return Oo(!0);if(te()===30)return Ed(!0);Jt(f.or_JSX_element_expected)}}function tT(){const ee=B();Vt();const ke=$();return lo(59)?(Vt(),Zt(h.createJsxNamespacedName(ke,$()),ee)):ke}function Mr(){const ee=B();ln(19),ln(26);const ke=Du();return ln(20),Zt(h.createJsxSpreadAttribute(ke),ee)}function LC(ee,ke){const rt=B();ln(31);const Pt=zr();return ln(32,void 0,!1)&&(ke||!l0(ee.tagName,Pt)?Le():Qt()),Zt(h.createJsxClosingElement(Pt),rt)}function Fx(ee){const ke=B();return ln(31),ln(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(ee?Le():Qt()),Zt(h.createJsxJsxClosingFragment(),ke)}function fu(){C.assert(ce!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const ee=B();ln(30);const ke=ul();ln(32);const rt=Cv();return Zt(h.createTypeAssertion(ke,rt),ee)}function X_(){return Le(),Qu(te())||te()===23||Zm()}function xh(){return te()===29&&wt(X_)}function nT(ee){if(ee.flags&64)return!0;if(ex(ee)){let ke=ee.expression;for(;ex(ke)&&!(ke.flags&64);)ke=ke.expression;if(ke.flags&64){for(;ex(ee);)ee.flags|=64,ee=ee.expression;return!0}}return!1}function aA(ee,ke,rt){const Pt=an(!0,!0,!0),nn=rt||nT(ke),_n=nn?j(ke,rt,Pt):G(ke,Pt);if(nn&&Qi(_n.name)&&Nt(_n.name,f.An_optional_chain_cannot_contain_private_identifiers),my(ke)&&ke.typeArguments){const ei=ke.typeArguments.pos-1,wr=wa(Me,ke.typeArguments.end)+1;Oe(ei,wr,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Zt(_n,ee)}function rT(ee,ke,rt){let Pt;if(te()===24)Pt=xs(80,!0,f.An_element_access_expression_should_take_an_argument);else{const _n=Pn(Du);ff(_n)&&(_n.text=Xl(_n.text)),Pt=_n}ln(24);const nn=rt||nT(ke)?Z(ke,rt,Pt):J(ke,Pt);return Zt(nn,ee)}function xf(ee,ke,rt){for(;;){let Pt,nn=!1;if(rt&&xh()?(Pt=Zs(29),nn=Qu(te())):nn=lo(25),nn){ke=aA(ee,ke,Pt);continue}if((Pt||!Ot())&&lo(23)){ke=rT(ee,ke,Pt);continue}if(Zm()){ke=!Pt&&ke.kind===234?nm(ee,ke.expression,Pt,ke.typeArguments):nm(ee,ke,Pt,void 0);continue}if(!Pt){if(te()===54&&!t.hasPrecedingLineBreak()){Le(),ke=Zt(h.createNonNullExpression(ke),ee);continue}const _n=En(k0);if(_n){ke=Zt(h.createExpressionWithTypeArguments(ke,_n),ee);continue}}return ke}}function Zm(){return te()===15||te()===16}function nm(ee,ke,rt,Pt){const nn=h.createTaggedTemplateExpression(ke,Pt,te()===15?(Jn(!0),kt()):ar(!0));return(rt||ke.flags&64)&&(nn.flags|=64),nn.questionDotToken=rt,Zt(nn,ee)}function pp(ee,ke){for(;;){ke=xf(ee,ke,!0);let rt;const Pt=Go(29);if(Pt&&(rt=En(k0),Zm())){ke=nm(ee,ke,Pt,rt);continue}if(rt||te()===21){!Pt&&ke.kind===234&&(rt=ke.typeArguments,ke=ke.expression);const nn=Nv(),_n=Pt||nT(ke)?ve(ke,Pt,rt,nn):q(ke,rt,nn);ke=Zt(_n,ee);continue}if(Pt){const nn=xs(80,!1,f.Identifier_expected);ke=Zt(j(ke,Pt,nn),ee)}break}return ke}function Nv(){ln(21);const ee=$c(11,y_);return ln(22),ee}function k0(){if((Kn&524288)!==0||mt()!==30)return;Le();const ee=$c(20,ul);if(gr()===32)return Le(),ee&&zx()?ee:void 0}function zx(){switch(te()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||wm()||!Yd()}function w0(){switch(te()){case 15:t.getTokenFlags()&26656&&Jn(!1);case 9:case 10:case 11:return kt();case 110:case 108:case 106:case 112:case 97:return ic();case 21:return iT();case 23:return oT();case 19:return Mv();case 134:if(!wt(rm))break;return aT();case 60:return Ka();case 86:return yc();case 100:return aT();case 105:return ky();case 44:case 69:if(tr()===14)return kt();break;case 16:return ar(!1);case 81:return Dr()}return Bs(f.Expression_expected)}function iT(){const ee=B(),ke=Ie();ln(21);const rt=Pn(Du);return ln(22),Pr(Zt(K(rt),ee),ke)}function Bx(){const ee=B();ln(26);const ke=Uu(!0);return Zt(h.createSpreadElement(ke),ee)}function Ly(){return te()===26?Bx():te()===28?Zt(h.createOmittedExpression(),B()):Uu(!0)}function y_(){return Qo(r,Ly)}function oT(){const ee=B(),ke=t.getTokenStart(),rt=ln(23),Pt=t.hasPrecedingLineBreak(),nn=$c(15,Ly);return ks(23,24,rt,ke),Zt(F(nn,Pt),ee)}function O0(){const ee=B(),ke=Ie();if(Go(26)){const oo=Uu(!0);return Pr(Zt(h.createSpreadAssignment(oo),ee),ke)}const rt=Oi(!0);if(Bn(139))return V0(ee,ke,rt,178,0);if(Bn(153))return V0(ee,ke,rt,179,0);const Pt=Go(42),nn=wn(),_n=ur(),ei=Go(58),wr=Go(54);if(Pt||te()===21||te()===30)return G0(ee,ke,rt,Pt,_n,ei,wr);let pr;if(nn&&te()!==59){const oo=Go(64),Gs=oo?Pn(()=>Uu(!0)):void 0;pr=h.createShorthandPropertyAssignment(_n,Gs),pr.equalsToken=oo}else{ln(59);const oo=Pn(()=>Uu(!0));pr=h.createPropertyAssignment(_n,oo)}return pr.modifiers=rt,pr.questionToken=ei,pr.exclamationToken=wr,Pr(Zt(pr,ee),ke)}function Mv(){const ee=B(),ke=t.getTokenStart(),rt=ln(19),Pt=t.hasPrecedingLineBreak(),nn=$c(12,O0,!0);return ks(19,20,rt,ke),Zt(W(nn,Pt),ee)}function aT(){const ee=Ot();ai(!1);const ke=B(),rt=Ie(),Pt=Oi(!1);ln(100);const nn=Go(42),_n=nn?1:0,ei=vt(Pt,UM)?2:0,wr=_n&&ei?it(eh):_n?le(eh):ei?ne(eh):eh(),pr=Ye(),Ai=_i(_n|ei),oo=cr(59,!1),Gs=sT(_n|ei);ai(ee);const Rs=h.createFunctionExpression(Pt,nn,wr,pr,Ai,oo,Gs);return Pr(Zt(Rs,ke),rt)}function eh(){return xn()?bd():void 0}function ky(){const ee=B();if(ln(105),lo(25)){const _n=Ae();return Zt(h.createMetaProperty(105,_n),ee)}const ke=B();let rt=xf(ke,w0(),!1),Pt;rt.kind===234&&(Pt=rt.typeArguments,rt=rt.expression),te()===29&&Jt(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,XN(Me,rt));const nn=te()===21?Nv():void 0;return Zt(oe(rt,Pt,nn),ee)}function zg(ee,ke){const rt=B(),Pt=Ie(),nn=t.getTokenStart(),_n=ln(19,ke);if(_n||ee){const ei=t.hasPrecedingLineBreak(),wr=ja(1,Ep);ks(19,20,_n,nn);const pr=Pr(Zt(fe(wr,ei),rt),Pt);return te()===64&&(Jt(f.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),Le()),pr}else{const ei=Ef();return Pr(Zt(fe(ei,void 0),rt),Pt)}}function sT(ee,ke){const rt=He();ri(!!(ee&1));const Pt=nt();qi(!!(ee&2));const nn=gt;gt=!1;const _n=Ot();_n&&ai(!1);const ei=zg(!!(ee&16),ke);return _n&&ai(!0),gt=nn,ri(rt),qi(Pt),ei}function ud(){const ee=B(),ke=Ie();return ln(27),Pr(Zt(h.createEmptyStatement(),ee),ke)}function yE(){const ee=B(),ke=Ie();ln(101);const rt=t.getTokenStart(),Pt=ln(21),nn=Pn(Du);ks(21,22,Pt,rt);const _n=Ep(),ei=lo(93)?Ep():void 0;return Pr(Zt(be(nn,_n,ei),ee),ke)}function Bg(){const ee=B(),ke=Ie();ln(92);const rt=Ep();ln(117);const Pt=t.getTokenStart(),nn=ln(21),_n=Pn(Du);return ks(21,22,nn,Pt),lo(27),Pr(Zt(h.createDoStatement(rt,_n),ee),ke)}function W0(){const ee=B(),ke=Ie();ln(117);const rt=t.getTokenStart(),Pt=ln(21),nn=Pn(Du);ks(21,22,Pt,rt);const _n=Ep();return Pr(Zt(De(nn,_n),ee),ke)}function sA(){const ee=B(),ke=Ie();ln(99);const rt=Go(135);ln(21);let Pt;te()!==27&&(te()===115||te()===121||te()===87||te()===160&&wt(Ul)||te()===135&&wt(qx)?Pt=mA(!0):Pt=Uo(Du));let nn;if(rt?ln(165):lo(165)){const _n=Pn(()=>Uu(!0));ln(22),nn=Ne(rt,Pt,_n,Ep())}else if(lo(103)){const _n=Pn(Du);ln(22),nn=h.createForInStatement(Pt,_n,Ep())}else{ln(27);const _n=te()!==27&&te()!==22?Pn(Du):void 0;ln(27);const ei=te()!==22?Pn(Du):void 0;ln(22),nn=Y(Pt,_n,ei,Ep())}return Pr(Zt(nn,ee),ke)}function Gg(ee){const ke=B(),rt=Ie();ln(ee===253?83:88);const Pt=Po()?void 0:Bs();os();const nn=ee===253?h.createBreakStatement(Pt):h.createContinueStatement(Pt);return Pr(Zt(nn,ke),rt)}function kC(){const ee=B(),ke=Ie();ln(107);const rt=Po()?void 0:Pn(Du);return os(),Pr(Zt(h.createReturnStatement(rt),ee),ke)}function Gx(){const ee=B(),ke=Ie();ln(118);const rt=t.getTokenStart(),Pt=ln(21),nn=Pn(Du);ks(21,22,Pt,rt);const _n=Ia(67108864,Ep);return Pr(Zt(h.createWithStatement(nn,_n),ee),ke)}function Vx(){const ee=B(),ke=Ie();ln(84);const rt=Pn(Du);ln(59);const Pt=ja(3,Ep);return Pr(Zt(h.createCaseClause(rt,Pt),ee),ke)}function uL(){const ee=B();ln(90),ln(59);const ke=ja(3,Ep);return Zt(h.createDefaultClause(ke),ee)}function jx(){return te()===84?Vx():uL()}function F0(){const ee=B();ln(19);const ke=ja(2,jx);return ln(20),Zt(h.createCaseBlock(ke),ee)}function wy(){const ee=B(),ke=Ie();ln(109),ln(21);const rt=Pn(Du);ln(22);const Pt=F0();return Pr(Zt(h.createSwitchStatement(rt,Pt),ee),ke)}function wC(){const ee=B(),ke=Ie();ln(111);let rt=t.hasPrecedingLineBreak()?void 0:Pn(Du);return rt===void 0&&(Wt++,rt=Zt(N(""),B())),fa()||ia(rt),Pr(Zt(h.createThrowStatement(rt),ee),ke)}function z0(){const ee=B(),ke=Ie();ln(113);const rt=zg(!1),Pt=te()===85?lA():void 0;let nn;return(!Pt||te()===98)&&(ln(98,f.catch_or_finally_expected),nn=zg(!1)),Pr(Zt(h.createTryStatement(rt,Pt,nn),ee),ke)}function lA(){const ee=B();ln(85);let ke;lo(21)?(ke=v_(),ln(22)):ke=void 0;const rt=zg(!1);return Zt(h.createCatchClause(ke,rt),ee)}function gc(){const ee=B(),ke=Ie();return ln(89),os(),Pr(Zt(h.createDebuggerStatement(),ee),ke)}function pd(){const ee=B();let ke=Ie(),rt;const Pt=te()===21,nn=Pn(Du);return Je(nn)&&lo(59)?rt=h.createLabeledStatement(nn,Ep()):(fa()||ia(nn),rt=me(nn),Pt&&(ke=!1)),Pr(Zt(rt,ee),ke)}function Ux(){return Le(),Qu(te())&&!t.hasPrecedingLineBreak()}function fp(){return Le(),te()===86&&!t.hasPrecedingLineBreak()}function rm(){return Le(),te()===100&&!t.hasPrecedingLineBreak()}function vE(){return Le(),(Qu(te())||te()===9||te()===10||te()===11)&&!t.hasPrecedingLineBreak()}function Rh(){for(;;)switch(te()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return bE();case 135:return mu();case 120:case 156:case 166:return $m();case 144:case 145:return pA();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const ee=te();if(Le(),t.hasPrecedingLineBreak())return!1;if(ee===138&&te()===156)return!0;continue;case 162:return Le(),te()===19||te()===80||te()===95;case 102:return Le(),te()===166||te()===11||te()===42||te()===19||Qu(te());case 95:let ke=Le();if(ke===156&&(ke=wt(Le)),ke===64||ke===42||ke===19||ke===90||ke===130||ke===60)return!0;continue;case 126:Le();continue;default:return!1}}function lT(){return wt(Rh)}function Pv(){switch(te()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return lT()||wt(H_);case 87:case 95:return lT();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return lT()||!wt(Ux);default:return Yd()}}function Hx(){return Le(),xn()||te()===19||te()===23}function pL(){return wt(Hx)}function Ul(){return cA(!0)}function OC(){return Le(),te()===64||te()===27||te()===59}function cA(ee){return Le(),ee&&te()===165?wt(OC):(xn()||te()===19)&&!t.hasPrecedingLineBreak()}function bE(){return wt(cA)}function qx(ee){return Le()===160?cA(ee):!1}function mu(){return wt(qx)}function Ep(){switch(te()){case 27:return ud();case 19:return zg(!1);case 115:return as(B(),Ie(),void 0);case 121:if(pL())return as(B(),Ie(),void 0);break;case 135:if(mu())return as(B(),Ie(),void 0);break;case 160:if(bE())return as(B(),Ie(),void 0);break;case 100:return Wr(B(),Ie(),void 0);case 86:return $d(B(),Ie(),void 0);case 101:return yE();case 92:return Bg();case 117:return W0();case 99:return sA();case 88:return Gg(252);case 83:return Gg(253);case 107:return kC();case 118:return Gx();case 109:return wy();case 111:return wC();case 113:case 85:case 98:return z0();case 89:return gc();case 60:return B0();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(lT())return B0();break}return pd()}function dA(ee){return ee.kind===138}function B0(){const ee=B(),ke=Ie(),rt=Oi(!0);if(vt(rt,dA)){const nn=Ap(ee);if(nn)return nn;for(const _n of rt)_n.flags|=33554432;return Ia(33554432,()=>uA(ee,ke,rt))}else return uA(ee,ke,rt)}function Ap(ee){return Ia(33554432,()=>{const ke=rl(cn,ee);if(ke)return Ol(ke)})}function uA(ee,ke,rt){switch(te()){case 115:case 121:case 87:case 160:case 135:return as(ee,ke,rt);case 100:return Wr(ee,ke,rt);case 86:return $d(ee,ke,rt);case 120:return nh(ee,ke,rt);case 156:return wv(ee,ke,rt);case 94:return Hz(ee,ke,rt);case 162:case 144:case 145:return x8(ee,ke,rt);case 102:return bA(ee,ke,rt);case 95:switch(Le(),te()){case 90:case 64:return H0(ee,ke,rt);case 130:return EE(ee,ke,rt);default:return yL(ee,ke,rt)}default:if(rt){const Pt=xs(283,!0,f.Declaration_expected);return kM(Pt,ee),Pt.modifiers=rt,Pt}return}}function Vg(){return Le()===11}function Jx(){return Le(),te()===161||te()===64}function pA(){return Le(),!t.hasPrecedingLineBreak()&&(wn()||te()===11)}function th(ee,ke){if(te()!==19){if(ee&4){Ro();return}if(Po()){os();return}}return sT(ee,ke)}function Kx(){const ee=B();if(te()===28)return Zt(h.createOmittedExpression(),ee);const ke=Go(26),rt=Lv(),Pt=K_();return Zt(h.createBindingElement(ke,void 0,rt,Pt),ee)}function WC(){const ee=B(),ke=Go(26),rt=xn();let Pt=ur(),nn;rt&&te()!==59?(nn=Pt,Pt=void 0):(ln(59),nn=Lv());const _n=K_();return Zt(h.createBindingElement(ke,Pt,nn,_n),ee)}function Xx(){const ee=B();ln(19);const ke=Pn(()=>$c(9,WC));return ln(20),Zt(h.createObjectBindingPattern(ke),ee)}function fA(){const ee=B();ln(23);const ke=Pn(()=>$c(10,Kx));return ln(24),Zt(h.createArrayBindingPattern(ke),ee)}function Yx(){return te()===19||te()===23||te()===81||xn()}function Lv(ee){return te()===23?fA():te()===19?Xx():bd(ee)}function Xp(){return v_(!0)}function v_(ee){const ke=B(),rt=Ie(),Pt=Lv(f.Private_identifiers_are_not_allowed_in_variable_declarations);let nn;ee&&Pt.kind===80&&te()===54&&!t.hasPrecedingLineBreak()&&(nn=ic());const _n=Xd(),ei=Cu(te())?void 0:K_(),wr=Xe(Pt,nn,_n,ei);return Pr(Zt(wr,ke),rt)}function mA(ee){const ke=B();let rt=0;switch(te()){case 115:break;case 121:rt|=1;break;case 87:rt|=2;break;case 160:rt|=4;break;case 135:C.assert(mu()),rt|=6,Le();break;default:C.fail()}Le();let Pt;if(te()===165&&wt(hA))Pt=Ef();else{const nn=Rt();dr(ee),Pt=$c(8,ee?v_:Xp),dr(nn)}return Zt(Ee(Pt,rt),ke)}function hA(){return Ld()&&Le()===22}function as(ee,ke,rt){const Pt=mA(!1);os();const nn=ue(rt,Pt);return Pr(Zt(nn,ee),ke)}function Wr(ee,ke,rt){const Pt=nt(),nn=Qh(rt);ln(100);const _n=Go(42),ei=nn&2048?eh():bd(),wr=_n?1:0,pr=nn&1024?2:0,Ai=Ye();nn&32&&qi(!0);const oo=_i(wr|pr),Gs=cr(59,!1),Rs=th(wr|pr,f.or_expected);qi(Pt);const ss=h.createFunctionDeclaration(rt,_n,ei,Ai,oo,Gs,Rs);return Pr(Zt(ss,ee),ke)}function Rf(){if(te()===137)return ln(137);if(te()===11&&wt(Le)===21)return En(()=>{const ee=kt();return ee.text==="constructor"?ee:void 0})}function Qc(ee,ke,rt){return En(()=>{if(Rf()){const Pt=Ye(),nn=_i(0),_n=cr(59,!1),ei=th(0,f.or_expected),wr=h.createConstructorDeclaration(rt,nn,ei);return wr.typeParameters=Pt,wr.type=_n,Pr(Zt(wr,ee),ke)}})}function G0(ee,ke,rt,Pt,nn,_n,ei,wr){const pr=Pt?1:0,Ai=vt(rt,UM)?2:0,oo=Ye(),Gs=_i(pr|Ai),Rs=cr(59,!1),ss=th(pr|Ai,wr),im=h.createMethodDeclaration(rt,Pt,nn,_n,oo,Gs,Rs,ss);return im.exclamationToken=ei,Pr(Zt(im,ee),ke)}function _A(ee,ke,rt,Pt,nn){const _n=!nn&&!t.hasPrecedingLineBreak()?Go(54):void 0,ei=Xd(),wr=Qo(90112,K_);jl(Pt,ei,wr);const pr=h.createPropertyDeclaration(rt,Pt,nn||_n,ei,wr);return Pr(Zt(pr,ee),ke)}function TE(ee,ke,rt){const Pt=Go(42),nn=ur(),_n=Go(58);return Pt||te()===21||te()===30?G0(ee,ke,rt,Pt,nn,_n,void 0,f.or_expected):_A(ee,ke,rt,nn,_n)}function V0(ee,ke,rt,Pt,nn){const _n=ur(),ei=Ye(),wr=_i(0),pr=cr(59,!1),Ai=th(nn),oo=Pt===178?h.createGetAccessorDeclaration(rt,_n,wr,pr,Ai):h.createSetAccessorDeclaration(rt,_n,wr,Ai);return oo.typeParameters=ei,bp(oo)&&(oo.type=pr),Pr(Zt(oo,ee),ke)}function gA(){let ee;if(te()===60)return!0;for(;gb(te());){if(ee=te(),lG(ee))return!0;Le()}if(te()===42||(ft()&&(ee=te(),Le()),te()===23))return!0;if(ee!==void 0){if(!rp(ee)||ee===153||ee===139)return!0;switch(te()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Po()}}return!1}function D(ee,ke,rt){Zs(126);const Pt=he(),nn=Pr(Zt(h.createClassStaticBlockDeclaration(Pt),ee),ke);return nn.modifiers=rt,nn}function he(){const ee=He(),ke=nt();ri(!1),qi(!0);const rt=zg(!1);return ri(ee),qi(ke),rt}function Et(){if(nt()&&te()===135){const ee=B(),ke=Bs(f.Expression_expected);Le();const rt=xf(ee,ke,!0);return pp(ee,rt)}return L0()}function An(){const ee=B();if(!lo(60))return;const ke=_t(Et);return Zt(h.createDecorator(ke),ee)}function vi(ee,ke,rt){const Pt=B(),nn=te();if(te()===87&&ke){if(!En(no))return}else{if(rt&&te()===126&&wt(vA))return;if(ee&&te()===126)return;if(!el())return}return Zt(k(nn),Pt)}function Oi(ee,ke,rt){const Pt=B();let nn,_n,ei,wr=!1,pr=!1,Ai=!1;if(ee&&te()===60)for(;_n=An();)nn=Vn(nn,_n);for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Vn(nn,ei),pr=!0;if(pr&&ee&&te()===60)for(;_n=An();)nn=Vn(nn,_n),Ai=!0;if(Ai)for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Vn(nn,ei);return nn&&Ja(nn,Pt)}function Eo(){let ee;if(te()===134){const ke=B();Le();const rt=Zt(k(134),ke);ee=Ja([rt],ke)}return ee}function wi(){const ee=B(),ke=Ie();if(te()===27)return Le(),Pr(Zt(h.createSemicolonClassElement(),ee),ke);const rt=Oi(!0,!0,!0);if(te()===126&&wt(vA))return D(ee,ke,rt);if(Bn(139))return V0(ee,ke,rt,178,0);if(Bn(153))return V0(ee,ke,rt,179,0);if(te()===137||te()===11){const Pt=Qc(ee,ke,rt);if(Pt)return Pt}if(gl())return Pm(ee,ke,rt);if(Qu(te())||te()===11||te()===9||te()===10||te()===42||te()===23)if(vt(rt,dA)){for(const nn of rt)nn.flags|=33554432;return Ia(33554432,()=>TE(ee,ke,rt))}else return TE(ee,ke,rt);if(rt){const Pt=xs(80,!0,f.Declaration_expected);return _A(ee,ke,rt,Pt,void 0)}return C.fail("Should not have attempted to parse class member declaration.")}function Ka(){const ee=B(),ke=Ie(),rt=Oi(!0);if(te()===86)return Hu(ee,ke,rt,232);const Pt=xs(283,!0,f.Expression_expected);return kM(Pt,ee),Pt.modifiers=rt,Pt}function yc(){return Hu(B(),Ie(),void 0,232)}function $d(ee,ke,rt){return Hu(ee,ke,rt,264)}function Hu(ee,ke,rt,Pt){const nn=nt();ln(86);const _n=j0(),ei=Ye();vt(rt,JI)&&qi(!0);const wr=cT();let pr;ln(19)?(pr=kv(),ln(20)):pr=Ef(),qi(nn);const Ai=Pt===264?h.createClassDeclaration(rt,_n,ei,wr,pr):h.createClassExpression(rt,_n,ei,wr,pr);return Pr(Zt(Ai,ee),ke)}function j0(){return xn()&&!qu()?dc(xn()):void 0}function qu(){return te()===119&&wt(af)}function cT(){if(yA())return ja(22,$x)}function $x(){const ee=B(),ke=te();C.assert(ke===96||ke===119),Le();const rt=$c(7,Om);return Zt(h.createHeritageClause(ke,rt),ee)}function Om(){const ee=B(),ke=L0();if(ke.kind===234)return ke;const rt=Sl();return Zt(h.createExpressionWithTypeArguments(ke,rt),ee)}function Sl(){return te()===30?ae(20,ul,30,32):void 0}function yA(){return te()===96||te()===119}function kv(){return ja(5,wi)}function nh(ee,ke,rt){ln(120);const Pt=Bs(),nn=Ye(),_n=cT(),ei=q_(),wr=h.createInterfaceDeclaration(rt,Pt,nn,_n,ei);return Pr(Zt(wr,ee),ke)}function wv(ee,ke,rt){ln(156),t.hasPrecedingLineBreak()&&Jt(f.Line_break_not_permitted_here);const Pt=Bs(),nn=Ye();ln(64);const _n=te()===141&&En(kx)||ul();os();const ei=h.createTypeAliasDeclaration(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}function SE(){const ee=B(),ke=Ie(),rt=ur(),Pt=Pn(K_);return Pr(Zt(h.createEnumMember(rt,Pt),ee),ke)}function Hz(ee,ke,rt){ln(94);const Pt=Bs();let nn;ln(19)?(nn=dt(()=>$c(6,SE)),ln(20)):nn=Ef();const _n=h.createEnumDeclaration(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function fL(){const ee=B();let ke;return ln(19)?(ke=ja(1,Ep),ln(20)):ke=Ef(),Zt(h.createModuleBlock(ke),ee)}function Qx(ee,ke,rt,Pt){const nn=Pt&32,_n=Pt&8?Ae():Bs(),ei=lo(25)?Qx(B(),!1,void 0,8|nn):fL(),wr=h.createModuleDeclaration(rt,_n,ei,Pt);return Pr(Zt(wr,ee),ke)}function mL(ee,ke,rt){let Pt=0,nn;te()===162?(nn=Bs(),Pt|=2048):(nn=kt(),nn.text=Xl(nn.text));let _n;te()===19?_n=fL():os();const ei=h.createModuleDeclaration(rt,nn,_n,Pt);return Pr(Zt(ei,ee),ke)}function x8(ee,ke,rt){let Pt=0;if(te()===162)return mL(ee,ke,rt);if(lo(145))Pt|=32;else if(ln(144),te()===11)return mL(ee,ke,rt);return Qx(ee,ke,rt,Pt)}function dT(){return te()===149&&wt(Zx)}function Zx(){return Le()===21}function vA(){return Le()===19}function qz(){return Le()===44}function EE(ee,ke,rt){ln(130),ln(145);const Pt=Bs();os();const nn=h.createNamespaceExportDeclaration(Pt);return nn.modifiers=rt,Pr(Zt(nn,ee),ke)}function bA(ee,ke,rt){ln(102);const Pt=t.getTokenFullStart();let nn;wn()&&(nn=Bs());let _n;if(nn?.escapedText==="type"&&(te()!==161||wn()&&wt(Jx))&&(wn()||sr())?(_n=156,nn=wn()?Bs():void 0):nn?.escapedText==="defer"&&(te()===161?!wt(Vg):te()!==28&&te()!==64)&&(_n=166,nn=wn()?Bs():void 0),nn&&!_L()&&_n!==166)return FC(ee,ke,rt,nn,_n===156);const ei=hL(nn,Pt,_n,void 0),wr=TA(),pr=eR();os();const Ai=h.createImportDeclaration(rt,ei,wr,pr);return Pr(Zt(Ai,ee),ke)}function hL(ee,ke,rt,Pt=!1){let nn;return(ee||te()===42||te()===19)&&(nn=zC(ee,ke,rt,Pt),ln(161)),nn}function eR(){const ee=te();if((ee===118||ee===132)&&!t.hasPrecedingLineBreak())return uT(ee)}function co(){const ee=B(),ke=Qu(te())?Ae():So(11);ln(59);const rt=Uu(!0);return Zt(h.createImportAttribute(ke,rt),ee)}function uT(ee,ke){const rt=B();ke||ln(ee);const Pt=t.getTokenStart();if(ln(19)){const nn=t.hasPrecedingLineBreak(),_n=$c(24,co,!0);if(!ln(20)){const ei=tl(Ce);ei&&ei.code===f._0_expected.code&&pa(ei,kI(re,Me,Pt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Zt(h.createImportAttributes(_n,nn,ee),rt)}else{const nn=Ja([],B(),void 0,!1);return Zt(h.createImportAttributes(nn,!1,ee),rt)}}function sr(){return te()===42||te()===19}function _L(){return te()===28||te()===161}function FC(ee,ke,rt,Pt,nn){ln(64);const _n=AE();os();const ei=h.createImportEqualsDeclaration(rt,nn,Pt,_n);return Pr(Zt(ei,ee),ke)}function zC(ee,ke,rt,Pt){let nn;return(!ee||lo(28))&&(Pt&&t.setSkipJsDocLeadingAsterisks(!0),te()===42?nn=Jz():nn=D8(276),Pt&&t.setSkipJsDocLeadingAsterisks(!1)),Zt(h.createImportClause(rt,ee,nn),ke)}function AE(){return dT()?R8():pt(!1)}function R8(){const ee=B();ln(149),ln(21);const ke=TA();return ln(22),Zt(h.createExternalModuleReference(ke),ee)}function TA(){if(te()===11){const ee=kt();return ee.text=Xl(ee.text),ee}else return Du()}function Jz(){const ee=B();ln(42),ln(130);const ke=Bs();return Zt(h.createNamespaceImport(ke),ee)}function BC(){return Qu(te())||te()===11}function Y_(ee){return te()===11?kt():ee()}function D8(ee){const ke=B(),rt=ee===276?h.createNamedImports(ae(23,Kz,19,20)):h.createNamedExports(ae(23,U0,19,20));return Zt(rt,ke)}function U0(){const ee=Ie();return Pr(gL(282),ee)}function Kz(){return gL(277)}function gL(ee){const ke=B();let rt=rp(te())&&!wn(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),_n=!1,ei,wr=!0,pr=Y_(Ae);if(pr.kind===80&&pr.escapedText==="type")if(te()===130){const Gs=Ae();if(te()===130){const Rs=Ae();BC()?(_n=!0,ei=Gs,pr=Y_(oo),wr=!1):(ei=pr,pr=Rs,wr=!1)}else BC()?(ei=pr,wr=!1,pr=Y_(oo)):(_n=!0,pr=Gs)}else BC()&&(_n=!0,pr=Y_(oo));wr&&te()===130&&(ei=pr,ln(130),pr=Y_(oo)),ee===277&&(pr.kind!==80?(Oe(wa(Me,pr.pos),pr.end,f.Identifier_expected),pr=mh(xs(80,!1),pr.pos,pr.pos)):rt&&Oe(Pt,nn,f.Identifier_expected));const Ai=ee===277?h.createImportSpecifier(_n,ei,pr):h.createExportSpecifier(_n,ei,pr);return Zt(Ai,ke);function oo(){return rt=rp(te())&&!wn(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),Ae()}}function C8(ee){return Zt(h.createNamespaceExport(Y_(Ae)),ee)}function yL(ee,ke,rt){const Pt=nt();qi(!0);let nn,_n,ei;const wr=lo(156),pr=B();lo(42)?(lo(130)&&(nn=C8(pr)),ln(161),_n=TA()):(nn=D8(280),(te()===161||te()===11&&!t.hasPrecedingLineBreak())&&(ln(161),_n=TA()));const Ai=te();_n&&(Ai===118||Ai===132)&&!t.hasPrecedingLineBreak()&&(ei=uT(Ai)),os(),qi(Pt);const oo=h.createExportDeclaration(rt,wr,nn,_n,ei);return Pr(Zt(oo,ee),ke)}function H0(ee,ke,rt){const Pt=nt();qi(!0);let nn;lo(64)?nn=!0:ln(90);const _n=Uu(!0);os(),qi(Pt);const ei=h.createExportAssignment(rt,nn,_n);return Pr(Zt(ei,ee),ke)}let $_;(ee=>{ee[ee.SourceElements=0]="SourceElements",ee[ee.BlockStatements=1]="BlockStatements",ee[ee.SwitchClauses=2]="SwitchClauses",ee[ee.SwitchClauseStatements=3]="SwitchClauseStatements",ee[ee.TypeMembers=4]="TypeMembers",ee[ee.ClassMembers=5]="ClassMembers",ee[ee.EnumMembers=6]="EnumMembers",ee[ee.HeritageClauseElement=7]="HeritageClauseElement",ee[ee.VariableDeclarations=8]="VariableDeclarations",ee[ee.ObjectBindingElements=9]="ObjectBindingElements",ee[ee.ArrayBindingElements=10]="ArrayBindingElements",ee[ee.ArgumentExpressions=11]="ArgumentExpressions",ee[ee.ObjectLiteralMembers=12]="ObjectLiteralMembers",ee[ee.JsxAttributes=13]="JsxAttributes",ee[ee.JsxChildren=14]="JsxChildren",ee[ee.ArrayLiteralMembers=15]="ArrayLiteralMembers",ee[ee.Parameters=16]="Parameters",ee[ee.JSDocParameters=17]="JSDocParameters",ee[ee.RestProperties=18]="RestProperties",ee[ee.TypeParameters=19]="TypeParameters",ee[ee.TypeArguments=20]="TypeArguments",ee[ee.TupleElementTypes=21]="TupleElementTypes",ee[ee.HeritageClauses=22]="HeritageClauses",ee[ee.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ee[ee.ImportAttributes=24]="ImportAttributes",ee[ee.JSDocComment=25]="JSDocComment",ee[ee.Count=26]="Count"})($_||($_={}));let GC;(ee=>{ee[ee.False=0]="False",ee[ee.True=1]="True",ee[ee.Unknown=2]="Unknown"})(GC||(GC={}));let b_;(ee=>{function ke(Ai,oo,Gs){zt("file.js",Ai,99,void 0,1,0),t.setText(Ai,oo,Gs),Ge=t.scan();const Rs=rt(),ss=At("file.js",99,1,!1,[],k(1),0,gs),im=wI(Ce,ss);return ye&&(ss.jsDocDiagnostics=wI(ye,ss)),Zr(),Rs?{jsDocTypeExpression:Rs,diagnostics:im}:void 0}ee.parseJSDocTypeExpressionForTests=ke;function rt(Ai){const oo=B(),Gs=(Ai?lo:ln)(19),Rs=Ia(16777216,Ah);(!Ai||Gs)&&Cl(20);const ss=h.createJSDocTypeExpression(Rs);return $e(ss),Zt(ss,oo)}ee.parseJSDocTypeExpression=rt;function Pt(){const Ai=B(),oo=lo(19),Gs=B();let Rs=pt(!1);for(;te()===81;)Mt(),yt(),Rs=Zt(h.createJSDocMemberName(Rs,Bs()),Gs);oo&&Cl(20);const ss=h.createJSDocNameReference(Rs);return $e(ss),Zt(ss,Ai)}ee.parseJSDocNameReference=Pt;function nn(Ai,oo,Gs){zt("",Ai,99,void 0,1,0);const Rs=Ia(16777216,()=>pr(oo,Gs)),im=wI(Ce,{languageVariant:0,text:Ai});return Zr(),Rs?{jsDoc:Rs,diagnostics:im}:void 0}ee.parseIsolatedJSDocComment=nn;function _n(Ai,oo,Gs){const Rs=Ge,ss=Ce.length,im=en,Df=Ia(16777216,()=>pr(oo,Gs));return ps(Df,Ai),Kn&524288&&(ye||(ye=[]),Xr(ye,Ce,ss)),Ge=Rs,Ce.length=ss,en=im,Df}ee.parseJSDocComment=_n;let ei;(Ai=>{Ai[Ai.BeginningOfLine=0]="BeginningOfLine",Ai[Ai.SawAsterisk=1]="SawAsterisk",Ai[Ai.SavingComments=2]="SavingComments",Ai[Ai.SavingBackticks=3]="SavingBackticks"})(ei||(ei={}));let wr;(Ai=>{Ai[Ai.Property=1]="Property",Ai[Ai.Parameter=2]="Parameter",Ai[Ai.CallbackParameter=4]="CallbackParameter"})(wr||(wr={}));function pr(Ai=0,oo){const Gs=Me,Rs=oo===void 0?Gs.length:Ai+oo;if(oo=Rs-Ai,C.assert(Ai>=0),C.assert(Ai<=Rs),C.assert(Rs<=Gs.length),!oU(Gs,Ai))return;let ss,im,Df,Ov,Wv,jg=[];const pT=[],cs=cn;cn|=1<<25;const Uc=t.scanRange(Ai+3,oo-5,Fv);return cn=cs,Uc;function Fv(){let Gn=1,Ur,$r=Ai-(Gs.lastIndexOf(` `,Ai)+1)+4;function Li(Vs){Ur||(Ur=$r),jg.push(Vs),$r+=Vs.length}for(yt();Ch(5););Ch(4)&&(Gn=0,$r=0);e:for(;;){switch(te()){case 60:tR(jg),Wv||(Wv=B()),il(T($r)),Gn=0,Ur=void 0;break;case 4:jg.push(t.getTokenText()),Gn=0,$r=0;break;case 42:const Vs=t.getTokenText();Gn===1?(Gn=2,Li(Vs)):(C.assert(Gn===0),Gn=1,$r+=Vs.length);break;case 5:C.assert(Gn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Ad=t.getTokenText();Ur!==void 0&&$r+Ad.length>Ur&&jg.push(Ad.slice(Ur-$r)),$r+=Ad.length;break;case 1:break e;case 82:Gn=2,Li(t.getTokenValue());break;case 19:Gn=2;const Nh=t.getTokenFullStart(),Wm=t.getTokenEnd()-1,rh=pe(Wm);if(rh){Ov||hu(jg),pT.push(Zt(h.createJSDocText(jg.join("")),Ov??Ai,Nh)),pT.push(rh),jg=[],Ov=t.getTokenEnd();break}default:Gn=2,Li(t.getTokenText());break}Gn===2?Bt(!1):yt()}const Fi=jg.join("").trimEnd();pT.length&&Fi.length&&pT.push(Zt(h.createJSDocText(Fi),Ov??Ai,Wv)),pT.length&&ss&&C.assertIsDefined(Wv,"having parsed tags implies that the end of the comment span should be set");const Ma=ss&&Ja(ss,im,Df);return Zt(h.createJSDocComment(pT.length?Ja(pT,Ai,Wv):Fi.length?Fi:void 0,Ma),Ai,Rs)}function hu(Gn){for(;Gn.length&&(Gn[0]===` `||Gn[0]==="\r");)Gn.shift()}function tR(Gn){for(;Gn.length;){const Ur=Gn[Gn.length-1].trimEnd();if(Ur==="")Gn.pop();else if(Ur.lengthAd&&(Li.push(Hg.slice(Ad-Gn)),Vs=2),Gn+=Hg.length;break;case 19:Vs=2;const Oy=t.getTokenFullStart(),VC=t.getTokenEnd()-1,EL=pe(VC);EL?(Fi.push(Zt(h.createJSDocText(Li.join("")),Ma??$r,Oy)),Fi.push(EL),Li=[],Ma=t.getTokenEnd()):Nh(t.getTokenText());break;case 62:Vs===3?Vs=2:Vs=3,Nh(t.getTokenText());break;case 82:Vs!==3&&(Vs=2),Nh(t.getTokenValue());break;case 42:if(Vs===0){Vs=1,Gn+=1;break}default:Vs!==3&&(Vs=2),Nh(t.getTokenText());break}Vs===2||Vs===3?Wm=Bt(Vs===3):Wm=yt()}hu(Li);const rh=Li.join("").trimEnd();if(Fi.length)return rh.length&&Fi.push(Zt(h.createJSDocText(rh),Ma??$r)),Ja(Fi,$r,t.getTokenEnd());if(rh.length)return rh}function pe(Gn){const Ur=En(rn);if(!Ur)return;yt(),Q_();const $r=tt(),Li=[];for(;te()!==20&&te()!==4&&te()!==1;)Li.push(t.getTokenText()),yt();const Fi=Ur==="link"?h.createJSDocLink:Ur==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return Zt(Fi($r,Li.join("")),Gn,t.getTokenEnd())}function tt(){if(Qu(te())){const Gn=B();let Ur=Ae();for(;lo(25);)Ur=Zt(h.createQualifiedName(Ur,te()===81?xs(80,!1):Ae()),Gn);for(;te()===81;)Mt(),yt(),Ur=Zt(h.createJSDocMemberName(Ur,Bs()),Gn);return Ur}}function rn(){if(br(),te()===19&&yt()===60&&Qu(yt())){const Gn=t.getTokenValue();if(Or(Gn))return Gn}}function Or(Gn){return Gn==="link"||Gn==="linkcode"||Gn==="linkplain"}function Lo(Gn,Ur,$r,Li){return Zt(h.createJSDocUnknownTag(Ur,M(Gn,B(),$r,Li)),Gn)}function il(Gn){Gn&&(ss?ss.push(Gn):(ss=[Gn],im=Gn.pos),Df=Gn.end)}function lf(){return br(),te()===19?rt():void 0}function fT(){const Gn=Ch(23);Gn&&Q_();const Ur=Ch(62),$r=dY();return Ur&&Da(62),Gn&&(Q_(),Go(64)&&Du(),ln(24)),{name:$r,isBracketed:Gn}}function Dh(Gn){switch(Gn.kind){case 151:return!0;case 189:return Dh(Gn.elementType);default:return Bp(Gn)&&Je(Gn.typeName)&&Gn.typeName.escapedText==="Object"&&!Gn.typeArguments}}function nR(Gn,Ur,$r,Li){let Fi=lf(),Ma=!Fi;br();const{name:Vs,isBracketed:Ad}=fT(),Nh=br();Ma&&!wt(rn)&&(Fi=lf());const Wm=M(Gn,B(),Li,Nh),rh=Ehe(Fi,Vs,$r,Li);rh&&(Fi=rh,Ma=!0);const Hg=$r===1?h.createJSDocPropertyTag(Ur,Vs,Ad,Fi,Ma,Wm):h.createJSDocParameterTag(Ur,Vs,Ad,Fi,Ma,Wm);return Zt(Hg,Gn)}function Ehe(Gn,Ur,$r,Li){if(Gn&&Dh(Gn.type)){const Fi=B();let Ma,Vs;for(;Ma=En(()=>SA($r,Li,Ur));)Ma.kind===342||Ma.kind===349?Vs=Vn(Vs,Ma):Ma.kind===346&&Nt(Ma.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Vs){const Ad=Zt(h.createJSDocTypeLiteral(Vs,Gn.type.kind===189),Fi);return Zt(h.createJSDocTypeExpression(Ad),Fi)}}}function vL(Gn,Ur,$r,Li){vt(ss,k4)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Ur.escapedText));const Fi=lf();return Zt(h.createJSDocReturnTag(Ur,Fi,M(Gn,B(),$r,Li)),Gn)}function rR(Gn,Ur,$r,Li){vt(ss,eP)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Vi(Ur.escapedText));const Fi=rt(!0),Ma=$r!==void 0&&Li!==void 0?M(Gn,B(),$r,Li):void 0;return Zt(h.createJSDocTypeTag(Ur,Fi,Ma),Gn)}function Ahe(Gn,Ur,$r,Li){const Ma=te()===23||wt(()=>yt()===60&&Qu(yt())&&Or(t.getTokenValue()))?void 0:Pt(),Vs=$r!==void 0&&Li!==void 0?M(Gn,B(),$r,Li):void 0;return Zt(h.createJSDocSeeTag(Ur,Ma,Vs),Gn)}function Ihe(Gn,Ur,$r,Li){const Fi=lf(),Ma=M(Gn,B(),$r,Li);return Zt(h.createJSDocThrowsTag(Ur,Fi,Ma),Gn)}function N8(Gn,Ur,$r,Li){const Fi=B(),Ma=iY();let Vs=t.getTokenFullStart();const Ad=M(Gn,Vs,$r,Li);Ad||(Vs=t.getTokenFullStart());const Nh=typeof Ad!="string"?Ja(ao([Zt(Ma,Fi,Vs)],Ad),Fi):Ma.text+Ad;return Zt(h.createJSDocAuthorTag(Ur,Nh),Gn)}function iY(){const Gn=[];let Ur=!1,$r=t.getToken();for(;$r!==1&&$r!==4;){if($r===30)Ur=!0;else{if($r===60&&!Ur)break;if($r===32&&Ur){Gn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Gn.push(t.getTokenText()),$r=yt()}return h.createJSDocText(Gn.join(""))}function mT(Gn,Ur,$r,Li){const Fi=IE();return Zt(h.createJSDocImplementsTag(Ur,Fi,M(Gn,B(),$r,Li)),Gn)}function xhe(Gn,Ur,$r,Li){const Fi=IE();return Zt(h.createJSDocAugmentsTag(Ur,Fi,M(Gn,B(),$r,Li)),Gn)}function Rhe(Gn,Ur,$r,Li){const Fi=rt(!1),Ma=$r!==void 0&&Li!==void 0?M(Gn,B(),$r,Li):void 0;return Zt(h.createJSDocSatisfiesTag(Ur,Fi,Ma),Gn)}function Dhe(Gn,Ur,$r,Li){const Fi=t.getTokenFullStart();let Ma;wn()&&(Ma=Bs());const Vs=hL(Ma,Fi,156,!0),Ad=TA(),Nh=eR(),Wm=$r!==void 0&&Li!==void 0?M(Gn,B(),$r,Li):void 0;return Zt(h.createJSDocImportTag(Ur,Vs,Ad,Nh,Wm),Gn)}function IE(){const Gn=lo(19),Ur=B(),$r=bL();t.setSkipJsDocLeadingAsterisks(!0);const Li=Sl();t.setSkipJsDocLeadingAsterisks(!1);const Fi=h.createExpressionWithTypeArguments($r,Li),Ma=Zt(Fi,Ur);return Gn&&(Q_(),ln(20)),Ma}function bL(){const Gn=B();let Ur=Yp();for(;lo(25);){const $r=Yp();Ur=Zt(G(Ur,$r),Gn)}return Ur}function iR(Gn,Ur,$r,Li,Fi){return Zt(Ur($r,M(Gn,B(),Li,Fi)),Gn)}function oY(Gn,Ur,$r,Li){const Fi=rt(!0);return Q_(),Zt(h.createJSDocThisTag(Ur,Fi,M(Gn,B(),$r,Li)),Gn)}function TL(Gn,Ur,$r,Li){const Fi=rt(!0);return Q_(),Zt(h.createJSDocEnumTag(Ur,Fi,M(Gn,B(),$r,Li)),Gn)}function aY(Gn,Ur,$r,Li){let Fi=lf();br();const Ma=M8();Q_();let Vs=V($r),Ad;if(!Fi||Dh(Fi.type)){let Wm,rh,Hg,Oy=!1;for(;(Wm=En(()=>Mhe($r)))&&Wm.kind!==346;)if(Oy=!0,Wm.kind===345)if(rh){const VC=Jt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);VC&&pa(VC,kI(re,Me,0,0,f.The_tag_was_first_specified_here));break}else rh=Wm;else Hg=Vn(Hg,Wm);if(Oy){const VC=Fi&&Fi.type.kind===189,EL=h.createJSDocTypeLiteral(Hg,VC);Fi=rh&&rh.typeExpression&&!Dh(rh.typeExpression.type)?rh.typeExpression:Zt(EL,Gn),Ad=Fi.end}}Ad=Ad||Vs!==void 0?B():(Ma??Fi??Ur).end,Vs||(Vs=M(Gn,Ad,$r,Li));const Nh=h.createJSDocTypedefTag(Ur,Fi,Ma,Vs);return Zt(Nh,Gn,Ad)}function M8(Gn){const Ur=t.getTokenStart();if(!Qu(te()))return;const $r=Yp();if(lo(25)){const Li=M8(!0),Fi=h.createModuleDeclaration(void 0,$r,Li,Gn?8:void 0);return Zt(Fi,Ur)}return Gn&&($r.flags|=4096),$r}function SL(Gn){const Ur=B();let $r,Li;for(;$r=En(()=>SA(4,Gn));){if($r.kind===346){Nt($r.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Li=Vn(Li,$r)}return Ja(Li||[],Ur)}function sY(Gn,Ur){const $r=SL(Ur),Li=En(()=>{if(Ch(60)){const Fi=T(Ur);if(Fi&&Fi.kind===343)return Fi}});return Zt(h.createJSDocSignature(void 0,$r,Li),Gn)}function lY(Gn,Ur,$r,Li){const Fi=M8();Q_();let Ma=V($r);const Vs=sY(Gn,$r);Ma||(Ma=M(Gn,B(),$r,Li));const Ad=Ma!==void 0?B():Vs.end;return Zt(h.createJSDocCallbackTag(Ur,Vs,Fi,Ma),Gn,Ad)}function Che(Gn,Ur,$r,Li){Q_();let Fi=V($r);const Ma=sY(Gn,$r);Fi||(Fi=M(Gn,B(),$r,Li));const Vs=Fi!==void 0?B():Ma.end;return Zt(h.createJSDocOverloadTag(Ur,Ma,Fi),Gn,Vs)}function Nhe(Gn,Ur){for(;!Je(Gn)||!Je(Ur);)if(!Je(Gn)&&!Je(Ur)&&Gn.right.escapedText===Ur.right.escapedText)Gn=Gn.left,Ur=Ur.left;else return!1;return Gn.escapedText===Ur.escapedText}function Mhe(Gn){return SA(1,Gn)}function SA(Gn,Ur,$r){let Li=!0,Fi=!1;for(;;)switch(yt()){case 60:if(Li){const Ma=cY(Gn,Ur);return Ma&&(Ma.kind===342||Ma.kind===349)&&$r&&(Je(Ma.name)||!Nhe($r,Ma.name.left))?!1:Ma}Fi=!1;break;case 4:Li=!0,Fi=!1;break;case 42:Fi&&(Li=!1),Fi=!0;break;case 80:Li=!1;break;case 1:return!1}}function cY(Gn,Ur){C.assert(te()===60);const $r=t.getTokenFullStart();yt();const Li=Yp(),Fi=br();let Ma;switch(Li.escapedText){case"type":return Gn===1&&rR($r,Li);case"prop":case"property":Ma=1;break;case"arg":case"argument":case"param":Ma=6;break;case"template":return _r($r,Li,Ur,Fi);case"this":return oY($r,Li,Ur,Fi);default:return!1}return Gn&Ma?nR($r,Li,Gn,Ur):!1}function Phe(){const Gn=B(),Ur=Ch(23);Ur&&Q_();const $r=Oi(!1,!0),Li=Yp(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Fi;if(Ur&&(Q_(),ln(64),Fi=Ia(16777216,Ah),ln(24)),!zl(Li))return Zt(h.createTypeParameterDeclaration($r,Li,void 0,Fi),Gn)}function zv(){const Gn=B(),Ur=[];do{Q_();const $r=Phe();$r!==void 0&&Ur.push($r),br()}while(Ch(28));return Ja(Ur,Gn)}function _r(Gn,Ur,$r,Li){const Fi=te()===19?rt():void 0,Ma=zv();return Zt(h.createJSDocTemplateTag(Ur,Fi,Ma,M(Gn,B(),$r,Li)),Gn)}function Ch(Gn){return te()===Gn?(yt(),!0):!1}function dY(){let Gn=Yp();for(lo(23)&&ln(24);lo(25);){const Ur=Yp();lo(23)&&ln(24),Gn=tn(Gn,Ur)}return Gn}function Yp(Gn){if(!Qu(te()))return xs(80,!Gn,Gn||f.Identifier_expected);Wt++;const Ur=t.getTokenStart(),$r=t.getTokenEnd(),Li=te(),Fi=Xl(t.getTokenValue()),Ma=Zt(N(Fi,Li),Ur,$r);return yt(),Ma}}})(b_=e.JSDocParser||(e.JSDocParser={}))})(s0||(s0={}));var IEe=new WeakSet;function xUe(e){IEe.has(e)&&C.fail("Source file has already been incrementally parsed"),IEe.add(e)}var xEe=new WeakSet;function RUe(e){return xEe.has(e)}function Coe(e){xEe.add(e)}var sU;(e=>{function t(A,R,N,P){if(P=P||C.shouldAssert(2),h(A,R,N,P),rte(N))return A;if(A.statements.length===0)return s0.parseSourceFile(A.fileName,R,A.languageVersion,void 0,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);xUe(A),s0.fixupParentReferences(A);const k=A.text,F=y(A),W=d(A,N);h(A,R,W,P),C.assert(W.span.start<=N.span.start),C.assert(Ml(W.span)===Ml(N.span)),C.assert(Ml(ON(W))===Ml(ON(N)));const G=ON(W).length-W.span.length;u(A,W.span.start,Ml(W.span),Ml(ON(W)),G,k,R,P);const j=s0.parseSourceFile(A.fileName,R,A.languageVersion,F,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);return j.commentDirectives=r(A.commentDirectives,j.commentDirectives,W.span.start,Ml(W.span),G,k,R,P),j.impliedNodeFormat=A.impliedNodeFormat,ooe(A,j),j}e.updateSourceFile=t;function r(A,R,N,P,k,F,W,G){if(!A)return R;let j,J=!1;for(const q of A){const{range:ve,type:oe}=q;if(ve.endP){Z();const K={range:{pos:ve.pos+k,end:ve.end+k},type:oe};j=Vn(j,K),G&&C.assert(F.substring(ve.pos,ve.end)===W.substring(K.range.pos,K.range.end))}}return Z(),j;function Z(){J||(J=!0,j?R&&j.push(...R):j=R)}}function i(A,R,N,P,k,F,W){N?j(A):G(A);return;function G(J){let Z="";if(W&&o(J)&&(Z=k.substring(J.pos,J.end)),qj(J,R),mh(J,J.pos+P,J.end+P),W&&o(J)&&C.assert(Z===F.substring(J.pos,J.end)),Jo(J,G,j),rf(J))for(const q of J.jsDoc)G(q);l(J,W)}function j(J){mh(J,J.pos+P,J.end+P);for(const Z of J)G(Z)}}function o(A){switch(A.kind){case 11:case 9:case 80:return!0}return!1}function s(A,R,N,P,k){C.assert(A.end>=R,"Adjusting an element that was entirely before the change range"),C.assert(A.pos<=N,"Adjusting an element that was entirely after the change range"),C.assert(A.pos<=A.end);const F=Math.min(A.pos,P),W=A.end>=N?A.end+k:Math.min(A.end,P);if(C.assert(F<=W),A.parent){const G=A.parent;C.assertGreaterThanOrEqual(F,G.pos),C.assertLessThanOrEqual(W,G.end)}mh(A,F,W)}function l(A,R){if(R){let N=A.pos;const P=k=>{C.assert(k.pos>=N),N=k.end};if(rf(A))for(const k of A.jsDoc)P(k);Jo(A,P),C.assert(N<=A.end)}}function u(A,R,N,P,k,F,W,G){j(A);return;function j(Z){if(C.assert(Z.pos<=Z.end),Z.pos>N){i(Z,A,!1,k,F,W,G);return}const q=Z.end;if(q>=R){if(Coe(Z),qj(Z,A),s(Z,R,N,P,k),Jo(Z,j,J),rf(Z))for(const ve of Z.jsDoc)j(ve);l(Z,G);return}C.assert(qN){i(Z,A,!0,k,F,W,G);return}const q=Z.end;if(q>=R){Coe(Z),s(Z,R,N,P,k);for(const ve of Z)j(ve);return}C.assert(q0&&W<=1;W++){const G=_(A,P);C.assert(G.pos<=P);const j=G.pos;P=Math.max(0,j-1)}const k=sc(P,Ml(R.span)),F=R.newLength+(R.span.start-P);return z2(k,F)}function _(A,R){let N=A,P;if(Jo(A,F),P){const W=k(P);W.pos>N.pos&&(N=W)}return N;function k(W){for(;;){const G=OV(W);if(G)W=G;else return W}}function F(W){if(!zl(W))if(W.pos<=R){if(W.pos>=N.pos&&(N=W),RR),!0}}function h(A,R,N,P){const k=A.text;if(N&&(C.assert(k.length-N.span.length+N.newLength===R.length),P||C.shouldAssert(3))){const F=k.substr(0,N.span.start),W=R.substr(0,N.span.start);C.assert(F===W);const G=k.substring(Ml(N.span),k.length),j=R.substring(Ml(ON(N)),R.length);C.assert(G===j)}}function y(A){let R=A.statements,N=0;C.assert(N=J.pos&&W=J.pos&&W{A[A.Value=-1]="Value"})(E||(E={}))})(sU||(sU={}));function sd(e){return H4(e)!==void 0}function H4(e){const t=sI(e,t4,!1);if(t)return t;if(xl(e,".ts")){const r=Dc(e),i=r.lastIndexOf(".d.");if(i>=0)return r.substring(i)}}function DUe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function lU(e,t){const r=[];for(const i of fg(t,0)||ie){const o=t.substring(i.pos,i.end);PUe(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 cU(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{const o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;qe(rI(r),u=>{const{types:d,lib:_,path:h,["resolution-mode"]:y,preserve:E}=u.arguments,A=E==="true"?!0:void 0;if(u.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(d){const R=DUe(y,d.pos,d.end,t);s.push({pos:d.pos,end:d.end,fileName:d.value,...R?{resolutionMode:R}:{},...A?{preserve:A}:{}})}else _?l.push({pos:_.pos,end:_.end,fileName:_.value,...A?{preserve:A}:{}}):h?o.push({pos:h.pos,end:h.end,fileName:h.value,...A?{preserve:A}:{}}):t(u.range.pos,u.range.end-u.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Yt(rI(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,f.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":{qe(rI(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:C.fail("Unhandled pragma kind")}})}var Noe=new Map;function CUe(e){if(Noe.has(e))return Noe.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Noe.set(e,t),t}var NUe=/^\/\/\/\s*<(\S+)\s.*?\/>/m,MUe=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function PUe(e,t,r){const i=t.kind===2&&NUe.exec(r);if(i){const s=i[1].toLowerCase(),l=rF[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const d of l.args){const h=CUe(d.name).exec(r);if(!h&&!d.optional)return;if(h){const y=h[2]||h[3];if(d.captureSpan){const E=t.pos+h.index+h[1].length+1;u[d.name]={value:y,pos:E,end:E+y.length}}else u[d.name]=y}}e.push({name:s,args:{arguments:u,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}const o=t.kind===2&&MUe.exec(r);if(o)return REe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+(?:\S.*)?)?$/gm;let l;for(;l=s.exec(r);)REe(e,t,4,l)}}function REe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=rF[o];if(!s||!(s.kind&r))return;const l=i[2],u=LUe(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function LUe(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;o[""+t,e])),CEe=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["es2024","lib.es2024.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.arraybuffer","lib.es2017.arraybuffer.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["es2024.arraybuffer","lib.es2024.arraybuffer.d.ts"],["es2024.collection","lib.es2024.collection.d.ts"],["es2024.object","lib.es2024.object.d.ts"],["es2024.promise","lib.es2024.promise.d.ts"],["es2024.regexp","lib.es2024.regexp.d.ts"],["es2024.sharedmemory","lib.es2024.sharedmemory.d.ts"],["es2024.string","lib.es2024.string.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.float16","lib.esnext.float16.d.ts"],["esnext.error","lib.esnext.error.d.ts"],["esnext.sharedmemory","lib.esnext.sharedmemory.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],q4=CEe.map(e=>e[0]),dU=new Map(CEe),lx=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.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:f.Watch_and_Build_Modes,description:f.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:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.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:$oe},allowConfigDirTemplateSubstitution:!0,category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:$oe},allowConfigDirTemplateSubstitution:!0,category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],J4=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:f.Compiler_Diagnostics,description:f.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.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:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],uU={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},Poe={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},NEe=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},uU,Poe,{name:"lib",type:"list",element:{name:"lib",type:dU,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:DEe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.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:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:f.Emit,description:f.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:f.Backwards_Compatibility,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:f.Interop_Constraints,description:f.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"erasableSyntaxOnly",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"libReplacement",type:"boolean",affectsProgramStructure:!0,category:f.Language_and_Environment,description:f.Enable_lib_replacement,defaultValueDescription:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.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:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.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:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.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:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.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:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"rewriteRelativeImportExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.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:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:f.Language_and_Environment,description:f.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:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.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:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.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:f.Emit,description:f.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:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.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:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.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:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.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:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.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:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.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}],Xm=[...J4,...NEe],Loe=Xm.filter(e=>!!e.affectsSemanticDiagnostics),koe=Xm.filter(e=>!!e.affectsEmit),woe=Xm.filter(e=>!!e.affectsDeclarationPath),pU=Xm.filter(e=>!!e.affectsModuleResolution),fU=Xm.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Ooe=Xm.filter(e=>!!e.affectsProgramStructure),Woe=Xm.filter(e=>Cs(e,"transpileOptionValue")),kUe=Xm.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),wUe=lx.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Foe=Xm.filter(OUe);function OUe(e){return!Bo(e.type)}var L1={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},mU=[L1,{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:f.Command_line_Options,description:f.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],Fw=[...J4,...mU],K4=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function X4(e){const t=new Map,r=new Map;return qe(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}var MEe;function VD(){return MEe||(MEe=X4(Xm))}var WUe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:WEe},PEe={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function zoe(e){return LEe(e,Dl)}function LEe(e,t){const r=Do(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function Y4(e,t,r){return g1e(e,(t??"").trim(),r)}function Boe(e,t="",r){if(t=t.trim(),po(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return cx(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Ei(i,o=>cx(e.element,parseInt(o),r));case"string":return Ei(i,o=>cx(e.element,o||"",r));case"boolean":case"object":return C.fail(`List of ${e.element.type} is not yet supported.`);default:return Ei(i,o=>Y4(e.element,o,r))}}function kEe(e){return e.name}function Goe(e,t,r,i,o){var s;const l=(s=t.alternateMode)==null?void 0:s.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(l)return c0(o,i,l!==L1?t.alternateMode.diagnostic:f.Option_build_must_be_the_first_command_line_argument,e);const u=gS(e,t.optionDeclarations,kEe);return u?c0(o,i,t.unknownDidYouMeanDiagnostic,r||e,u.name):c0(o,i,t.unknownOptionDiagnostic,r||e)}function hU(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(_){let h=0;for(;h<_.length;){const y=_[h];if(h++,y.charCodeAt(0)===64)d(y.slice(1));else if(y.charCodeAt(0)===45){const E=y.slice(y.charCodeAt(1)===45?2:1),A=joe(e.getOptionsNameMap,E,!0);if(A)h=wEe(_,h,e,A,i,l);else{const R=joe(vU.getOptionsNameMap,E,!0);R?h=wEe(_,h,vU,R,o||(o={}),l):l.push(Goe(E,e,y))}}else s.push(y)}}function d(_){const h=oP(_,r||(A=>Hc.readFile(A)));if(!Bo(h)){l.push(h);return}const y=[];let E=0;for(;;){for(;E=h.length)break;const A=E;if(h.charCodeAt(A)===34){for(E++;E32;)E++;y.push(h.substring(A,E))}}u(y)}}function wEe(e,t,r,i,o,s){if(i.isTSConfigOnly){const l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=cx(i,!1,s),t++):(l==="true"&&t++,s.push(Dl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Dl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!po(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Dl(r.optionTypeMismatchDiagnostic,i.name,bU(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=cx(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=cx(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=cx(i,e[t]||"",s),t++;break;case"list":const u=Boe(i,e[t],s);o[i.name]=u||[],u&&t++;break;case"listOrElement":C.fail("listOrElement not supported here");break;default:o[i.name]=Y4(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}var $4={alternateMode:WUe,getOptionsNameMap:VD,optionDeclarations:Xm,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument};function Voe(e,t){return hU($4,e,t)}function _U(e,t){return joe(VD,e,t)}function joe(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)}var OEe;function WEe(){return OEe||(OEe=X4(Fw))}var FUe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:VD},zUe={alternateMode:FUe,getOptionsNameMap:WEe,optionDeclarations:Fw,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1};function Uoe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=hU(zUe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Dl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Dl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Dl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Dl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function ap(e,...t){return ma(Dl(e,...t).messageText,Bo)}function zw(e,t,r,i,o,s){const l=oP(e,_=>r.readFile(_));if(!Bo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=Ow(e,l),d=r.getCurrentDirectory();return u.path=Os(e,d,Gd(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,Vw(u,r,bo(ci(e),d),t,bo(e,d),void 0,s,i,o)}function Bw(e,t){const r=oP(e,t);return Bo(r)?gU(e,r):{config:{},error:r}}function gU(e,t){const r=Ow(e,t);return{config:YEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Hoe(e,t){const r=oP(e,t);return Bo(r)?Ow(e,r):{fileName:e,parseDiagnostics:[r]}}function oP(e,t){let r;try{r=t(e)}catch(i){return Dl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Dl(f.Cannot_read_file_0,e):r}function yU(e){return NR(e,kEe)}var FEe={optionDeclarations:K4,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},zEe;function BEe(){return zEe||(zEe=X4(lx))}var vU={getOptionsNameMap:BEe,optionDeclarations:lx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},GEe;function VEe(){return GEe||(GEe=yU(Xm))}var jEe;function UEe(){return jEe||(jEe=yU(lx))}var HEe;function qEe(){return HEe||(HEe=yU(K4))}var Q4={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},JEe={name:"compilerOptions",type:"object",elementOptions:VEe(),extraKeyDiagnostics:$4},KEe={name:"watchOptions",type:"object",elementOptions:UEe(),extraKeyDiagnostics:vU},XEe={name:"typeAcquisition",type:"object",elementOptions:qEe(),extraKeyDiagnostics:FEe},qoe;function BUe(){return qoe===void 0&&(qoe={name:void 0,type:"object",elementOptions:yU([JEe,KEe,XEe,Q4,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},Moe])}),qoe}function YEe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==211){if(t.push(Gf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Dc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Nd(o)){const s=mn(o.elements,za);if(s)return Gw(e,s,t,!0,r)}return{}}return Gw(e,o,t,!0,r)}function Joe(e,t){var r;return Gw(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function Gw(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o?.rootOptions);function s(_,h){var y;const E=i?{}:void 0;for(const A of _.properties){if(A.kind!==304){r.push(Gf(e,A,f.Property_assignment_expected));continue}A.questionToken&&r.push(Gf(e,A.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(A.name)||r.push(Gf(e,A.name,f.String_literal_with_double_quotes_expected));const R=ak(A.name)?void 0:bI(A.name),N=R&&Vi(R),P=N?(y=h?.elementOptions)==null?void 0:y.get(N):void 0,k=u(A.initializer,P);typeof N<"u"&&(i&&(E[N]=k),o?.onPropertySet(N,k,A,h,P))}return E}function l(_,h){if(!i){_.forEach(y=>u(y,h));return}return Un(_.map(y=>u(y,h)),y=>y!==void 0)}function u(_,h){switch(_.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return d(_)||r.push(Gf(e,_,f.String_literal_with_double_quotes_expected)),_.text;case 9:return Number(_.text);case 225:if(_.operator!==41||_.operand.kind!==9)break;return-Number(_.operand.text);case 211:return s(_,h);case 210:return l(_.elements,h&&h.element)}h?r.push(Gf(e,_,f.Compiler_option_0_requires_a_value_of_type_1,h.name,bU(h))):r.push(Gf(e,_,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function d(_){return Oa(_)&&u6(_,e)}}function bU(e){return e.type==="listOrElement"?`${bU(e.element)} or Array`:e.type==="list"?"Array":Bo(e.type)?e.type:"string"}function $Ee(e,t){if(e){if(jw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return No(t);if(e.type==="listOrElement")return No(t)||$Ee(e.element,t);const r=Bo(e.type)?e.type:"string";return typeof t===r}return!1}function TU(e,t,r){var i,o,s;const l=Gd(r.useCaseSensitiveFileNames),u=Yt(Un(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?jUe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):mS),R=>WR(bo(t,r.getCurrentDirectory()),bo(R,r.getCurrentDirectory()),l)),d={configFilePath:bo(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},_=SU(e.options,d),h=e.watchOptions&&UUe(e.watchOptions),y={compilerOptions:{...Z4(_),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:h&&Z4(h),references:Yt(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Qe(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:VUe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(_.keys()),A={};for(const R in xM)if(!E.has(R)&&GUe(R,E)){const N=xM[R].computeValue(e.options),P=xM[R].computeValue({});N!==P&&(A[R]=xM[R].computeValue(e.options))}return HE(y.compilerOptions,Z4(SU(A,d))),y}function GUe(e,t){const r=new Set;return i(e);function i(o){var s;return Em(r,o)?vt((s=xM[o])==null?void 0:s.dependencies,l=>t.has(l)||i(l)):!1}}function Z4(e){return Object.fromEntries(e)}function VUe(e){if(Qe(e)){if(Qe(e)!==1)return e;if(e[0]!==n1e)return e}}function jUe(e,t,r,i){if(!t)return mS;const o=$6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&sv(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&sv(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):mS}function QEe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return QEe(e.element);default:return e.type}}function e3(e,t){return Jc(t,(r,i)=>{if(r===e)return i})}function SU(e,t){return ZEe(e,VD(),t)}function UUe(e){return ZEe(e,BEe())}function ZEe(e,{optionsNameMap:t},r){const i=new Map,o=r&&Gd(r.useCaseSensitiveFileNames);for(const s in e)if(Cs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;const l=e[s],u=t.get(s.toLowerCase());if(u){C.assert(u.type!=="listOrElement");const d=QEe(u);d?u.type==="list"?i.set(s,l.map(_=>e3(_,d))):i.set(s,e3(l,d)):r&&u.isFilePath?i.set(s,WR(r.configFilePath,bo(l,ci(r.configFilePath)),o)):r&&u.type==="list"&&u.element.isFilePath?i.set(s,l.map(_=>WR(r.configFilePath,bo(_,ci(r.configFilePath)),o))):i.set(s,l)}}return i}function Koe(e,t){const i=[],o=Object.keys(e).filter(h=>h!=="init"&&h!=="help"&&h!=="watch");if(i.push("{"),i.push(` // ${Ho(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),i.push(' "compilerOptions": {'),l(f.File_Layout),u("rootDir","./src","optional"),u("outDir","./dist","optional"),s(),l(f.Environment_Settings),l(f.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),u("module",199),u("target",99),u("types",[]),e.lib&&u("lib",e.lib),l(f.For_nodejs_Colon),i.push(' // "lib": ["esnext"],'),i.push(' // "types": ["node"],'),l(f.and_npm_install_D_types_Slashnode),s(),l(f.Other_Outputs),u("sourceMap",!0),u("declaration",!0),u("declarationMap",!0),s(),l(f.Stricter_Typechecking_Options),u("noUncheckedIndexedAccess",!0),u("exactOptionalPropertyTypes",!0),s(),l(f.Style_Options),u("noImplicitReturns",!0,"optional"),u("noImplicitOverride",!0,"optional"),u("noUnusedLocals",!0,"optional"),u("noUnusedParameters",!0,"optional"),u("noFallthroughCasesInSwitch",!0,"optional"),u("noPropertyAccessFromIndexSignature",!0,"optional"),s(),l(f.Recommended_Options),u("strict",!0),u("jsx",4),u("verbatimModuleSyntax",!0),u("isolatedModules",!0),u("noUncheckedSideEffectImports",!0),u("moduleDetection",3),u("skipLibCheck",!0),o.length>0)for(s();o.length>0;)u(o[0],e[o[0]]);function s(){i.push("")}function l(h){i.push(` // ${Ho(h)}`)}function u(h,y,E="never"){const A=o.indexOf(h);A>=0&&o.splice(A,1);let R;E==="always"?R=!0:E==="never"?R=!1:R=!Cs(e,h);const N=e[h]??y;R?i.push(` // "${h}": ${d(h,N)},`):i.push(` "${h}": ${d(h,N)},`)}function d(h,y){const E=Xm.filter(R=>R.name===h)[0];E||C.fail(`No option named ${h}?`);const A=E.type instanceof Map?E.type:void 0;if(No(y)){const R="element"in E&&E.element.type instanceof Map?E.element.type:void 0;return`[${y.map(N=>_(N,R)).join(", ")}]`}else return _(y,A)}function _(h,y){return y&&(h=e3(h,y)??C.fail(`No matching value of ${h}`)),JSON.stringify(h)}return i.push(" }"),i.push("}"),i.push(""),i.join(t)}function t3(e,t){const r={},i=VD().optionsNameMap;for(const o in e)Cs(e,o)&&(r[o]=HUe(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function HUe(e,t,r){if(e&&!jw(t)){if(e.type==="list"){const i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);C.assert(e.type!=="listOrElement")}return t}function e1e(e,t,r,i,o,s,l,u,d){return r1e(e,void 0,t,r,i,d,o,s,l,u)}function Vw(e,t,r,i,o,s,l,u,d){var _,h;(_=xr)==null||_.push(xr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const y=r1e(void 0,e,t,r,i,d,o,s,l,u);return(h=xr)==null||h.pop(),y}function EU(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function jw(e){return e==null}function t1e(e,t){return ci(bo(e,t))}var n1e="**/*";function r1e(e,t,r,i,o={},s,l,u=[],d=[],_){C.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const h=[],y=c1e(e,t,r,i,l,u,h,_),{raw:E}=y,A=i1e(t9(o,y.options||{}),kUe,i),R=n3(s&&y.watchOptions?t9(s,y.watchOptions):y.watchOptions||s,i);A.configFilePath=l&&jd(l);const N=ya(l?t1e(l,i):i),P=k();return t&&(t.configFileSpecs=P),EU(A,t),{options:A,watchOptions:R,fileNames:F(N),projectReferences:W(N),typeAcquisition:y.typeAcquisition||xU(),raw:E,errors:h,wildcardDirectories:rHe(P,N,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function k(){const q=J("references",Ee=>typeof Ee=="object","object"),ve=G(j("files"));if(ve){const Ee=q==="no-prop"||No(q)&&q.length===0,re=Cs(E,"extends");if(ve.length===0&&Ee&&!re)if(t){const Te=l||"tsconfig.json",Me=f.The_files_list_in_config_file_0_is_empty,Be=pk(t,"files",ce=>ce.initializer),lt=c0(t,Be,Me,Te);h.push(lt)}else Z(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let oe=G(j("include"));const K=j("exclude");let fe=!1,ue=G(K);if(K==="no-prop"){const Ee=A.outDir,re=A.declarationDir;(Ee||re)&&(ue=Un([Ee,re],Te=>!!Te))}ve===void 0&&oe===void 0&&(oe=[n1e],fe=!0);let me,be,De,Y;oe&&(me=b1e(oe,h,!0,t,"include"),De=r3(me,N)||me),ue&&(be=b1e(ue,h,!1,t,"exclude"),Y=r3(be,N)||be);const Ne=Un(ve,Bo),Xe=r3(Ne,N)||Ne;return{filesSpecs:ve,includeSpecs:oe,excludeSpecs:ue,validatedFilesSpec:Xe,validatedIncludeSpecs:De,validatedExcludeSpecs:Y,validatedFilesSpecBeforeSubstitution:Ne,validatedIncludeSpecsBeforeSubstitution:me,validatedExcludeSpecsBeforeSubstitution:be,isDefaultIncludeSpec:fe}}function F(q){const ve=aP(P,q,A,r,d);return l1e(ve,Uw(E),u)&&h.push(s1e(P,l)),ve}function W(q){let ve;const oe=J("references",K=>typeof K=="object","object");if(No(oe))for(const K of oe)typeof K.path!="string"?Z(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ve||(ve=[])).push({path:bo(K.path,q),originalPath:K.path,prepend:K.prepend,circular:K.circular});return ve}function G(q){return No(q)?q:void 0}function j(q){return J(q,Bo,"string")}function J(q,ve,oe){if(Cs(E,q)&&!jw(E[q]))if(No(E[q])){const K=E[q];return!t&&!Hn(K,ve)&&h.push(Dl(f.Compiler_option_0_requires_a_value_of_type_1,q,oe)),K}else return Z(f.Compiler_option_0_requires_a_value_of_type_1,q,"Array"),"not-array";return"no-prop"}function Z(q,...ve){t||h.push(Dl(q,...ve))}}function n3(e,t){return i1e(e,wUe,t)}function i1e(e,t,r){if(!e)return e;let i;for(const s of t)if(e[s.name]!==void 0){const l=e[s.name];switch(s.type){case"string":C.assert(s.isFilePath),AU(l)&&o(s,a1e(l,r));break;case"list":C.assert(s.element.isFilePath);const u=r3(l,r);u&&o(s,u);break;case"object":C.assert(s.name==="paths");const d=qUe(l,r);d&&o(s,d);break;default:C.fail("option type not supported")}}return i||e;function o(s,l){(i??(i=HE({},e)))[s.name]=l}}var o1e="${configDir}";function AU(e){return Bo(e)&&po(e,o1e,!0)}function a1e(e,t){return bo(e.replace(o1e,"./"),t)}function r3(e,t){if(!e)return e;let r;return e.forEach((i,o)=>{AU(i)&&((r??(r=e.slice()))[o]=a1e(i,t))}),r}function qUe(e,t){let r;return Bh(e).forEach(o=>{if(!No(e[o]))return;const s=r3(e[o],t);s&&((r??(r=HE({},e)))[o]=s)}),r}function JUe(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function s1e({includeSpecs:e,excludeSpecs:t},r){return Dl(f.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 l1e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function IU(e){return!e.fileNames.length&&Cs(e.raw,"references")}function Uw(e){return!Cs(e,"files")&&!Cs(e,"references")}function i3(e,t,r,i,o){const s=i.length;return l1e(e,o)?i.push(s1e(r,t)):fl(i,l=>!JUe(l)),s!==i.length}function KUe(e){return!!e.options}function c1e(e,t,r,i,o,s,l,u){var d;i=jd(i);const _=bo(o||"",i);if(s.includes(_))return l.push(Dl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,_].join(" -> "))),{raw:e||Joe(t,l)};const h=e?XUe(e,r,i,o,l):YUe(t,r,i,o,l);if((d=h.options)!=null&&d.paths&&(h.options.pathsBasePath=i),h.extendedConfigPath){s=s.concat([_]);const A={options:{}};Bo(h.extendedConfigPath)?y(A,h.extendedConfigPath):h.extendedConfigPath.forEach(R=>y(A,R)),A.include&&(h.raw.include=A.include),A.exclude&&(h.raw.exclude=A.exclude),A.files&&(h.raw.files=A.files),h.raw.compileOnSave===void 0&&A.compileOnSave&&(h.raw.compileOnSave=A.compileOnSave),t&&A.extendedSourceFiles&&(t.extendedSourceFiles=Do(A.extendedSourceFiles.keys())),h.options=HE(A.options,h.options),h.watchOptions=h.watchOptions&&A.watchOptions?E(A,h.watchOptions):h.watchOptions||A.watchOptions}return h;function y(A,R){const N=$Ue(t,R,r,s,l,u,A);if(N&&KUe(N)){const P=N.raw;let k;const F=W=>{h.raw[W]||P[W]&&(A[W]=Yt(P[W],G=>AU(G)||Pp(G)?G:Qr(k||(k=CN(ci(R),i,Gd(r.useCaseSensitiveFileNames))),G)))};F("include"),F("exclude"),F("files"),P.compileOnSave!==void 0&&(A.compileOnSave=P.compileOnSave),HE(A.options,N.options),A.watchOptions=A.watchOptions&&N.watchOptions?E(A,N.watchOptions):A.watchOptions||N.watchOptions}}function E(A,R){return A.watchOptionsCopied?HE(A.watchOptions,R):(A.watchOptionsCopied=!0,HE({},A.watchOptions,R))}}function XUe(e,t,r,i,o){Cs(e,"excludes")&&o.push(Dl(f.Unknown_option_excludes_Did_you_mean_exclude));const s=h1e(e.compilerOptions,r,o,i),l=_1e(e.typeAcquisition,r,o,i),u=ZUe(e.watchOptions,r,o);e.compileOnSave=QUe(e,r,o);const d=e.extends||e.extends===""?d1e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:d}}function d1e(e,t,r,i,o,s,l,u){let d;const _=i?t1e(i,r):r;if(Bo(e))d=u1e(e,t,_,o,l,u);else if(No(e)){d=[];for(let h=0;hF.name===A)&&(_=Vn(_,N.name))))}}function u1e(e,t,r,i,o,s){if(e=jd(e),Pp(e)||po(e,"./")||po(e,"../")){let u=bo(e,r);if(!t.fileExists(u)&&!nl(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(c0(s,o,f.File_0_not_found,e));return}return u}const l=pae(e,Qr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(c0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(c0(s,o,f.File_0_not_found,e))}function $Ue(e,t,r,i,o,s,l){const u=r.useCaseSensitiveFileNames?t:ab(t);let d,_,h;if(s&&(d=s.get(u))?{extendedResult:_,extendedConfig:h}=d:(_=Hoe(t,y=>r.readFile(y)),_.parseDiagnostics.length||(h=c1e(void 0,_,r,ci(t),Dc(t),i,o,s)),s&&s.set(u,{extendedResult:_,extendedConfig:h})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(_.fileName),_.extendedSourceFiles))for(const y of _.extendedSourceFiles)l.extendedSourceFiles.add(y);if(_.parseDiagnostics.length){o.push(..._.parseDiagnostics);return}return h}function QUe(e,t,r){if(!Cs(e,Moe.name))return!1;const i=k1(Moe,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function p1e(e,t,r){const i=[];return{options:h1e(e,t,i,r),errors:i}}function f1e(e,t,r){const i=[];return{options:_1e(e,t,i,r),errors:i}}function m1e(e){return e&&Dc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function h1e(e,t,r,i){const o=m1e(i);return Xoe(VEe(),e,t,o,$4,r),i&&(o.configFilePath=jd(i)),o}function xU(e){return{enable:!!e&&Dc(e)==="jsconfig.json",include:[],exclude:[]}}function _1e(e,t,r,i){const o=xU(i);return Xoe(qEe(),e,t,o,FEe,r),o}function ZUe(e,t,r){return Xoe(UEe(),e,t,void 0,vU,r)}function Xoe(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=k1(u,t[l],r,s):s.push(Goe(l,o))}return i}}function c0(e,t,r,...i){return e&&t?Gf(e,t,r,...i):Dl(r,...i)}function k1(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(c0(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if($Ee(e,t)){const u=e.type;if(u==="list"&&No(t))return y1e(e,t,r,i,o,s,l);if(u==="listOrElement")return No(t)?y1e(e,t,r,i,o,s,l):k1(e.element,t,r,i,o,s,l);if(!Bo(e.type))return g1e(e,t,i,s,l);const d=cx(e,t,i,s,l);return jw(d)?d:eHe(e,r,d)}else i.push(c0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,bU(e)))}function eHe(e,t,r){return e.isFilePath&&(r=jd(r),r=AU(r)?r:bo(r,t),r===""&&(r=".")),r}function cx(e,t,r,i,o){var s;if(jw(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(c0(o,i,...l))}function g1e(e,t,r,i,o){if(jw(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return cx(e,l,r,i,o);r.push(LEe(e,(u,...d)=>c0(o,i,u,...d)))}function y1e(e,t,r,i,o,s,l){return Un(Yt(t,(u,d)=>k1(e.element,u,r,i,o,s?.elements[d],l)),u=>e.listPreserveFalsyValues?!0:!!u)}var tHe=/(?:^|\/)\*\*\/?$/,nHe=/^[^*?]*(?=\/[^/]*[*?])/;function aP(e,t,r,i,o=ie){t=ya(t);const s=Gd(i.useCaseSensitiveFileNames),l=new Map,u=new Map,d=new Map,{validatedFilesSpec:_,validatedIncludeSpecs:h,validatedExcludeSpecs:y}=e,E=DM(r,o),A=rw(r,E);if(_)for(const k of _){const F=bo(k,t);l.set(s(F),F)}let R;if(h&&h.length>0)for(const k of i.readDirectory(t,Yo(A),y,h,void 0)){if(xl(k,".json")){if(!R){const G=h.filter(J=>nl(J,".json")),j=Yt(X6(G,t,"files"),J=>`^${J}$`);R=j?j.map(J=>sv(J,i.useCaseSensitiveFileNames)):ie}if(ho(R,G=>G.test(k))!==-1){const G=s(k);!l.has(G)&&!d.has(G)&&d.set(G,k)}continue}if(oHe(k,l,u,E,s))continue;aHe(k,u,E,s);const F=s(k);!l.has(F)&&!u.has(F)&&u.set(F,k)}const N=Do(l.values()),P=Do(u.values());return N.concat(P,Do(d.values()))}function Yoe(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Qe(l)||!Qe(u))return!1;r=ya(r);const d=Gd(i);if(s){for(const _ of s)if(d(bo(_,r))===e)return!1}return a3(e,u,i,o,r)}function v1e(e){const t=po(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(nl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function o3(e,t,r,i){return a3(e,Un(t,o=>!v1e(o)),r,i)}function a3(e,t,r,i,o){const s=RM(t,Qr(ya(i),o),"exclude"),l=s&&sv(s,r);return l?l.test(e)?!0:!OR(e)&&l.test(qc(e)):!1}function b1e(e,t,r,i,o){return e.filter(l=>{if(!Bo(l))return!1;const u=$oe(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const d=e6(i,o,u);return c0(i,d,l,u)}}function $oe(e,t){if(C.assert(typeof e=="string"),t&&tHe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v1e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function rHe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=RM(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const d=[];for(const _ of e){const h=ya(Qr(r,_));if(s&&s.test(h))continue;const y=iHe(h,i);if(y){const{key:E,path:A,flags:R}=y,N=u.get(E),P=N!==void 0?l[N]:void 0;(P===void 0||Ptc(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(xl(e,l)&&(l!==".ts"||!xl(e,".d.ts")))return!1;const u=o(lv(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(xl(e,".js")||xl(e,".jsx")))continue;return!0}}return!1}function aHe(e,t,r,i){const o=qe(r,s=>tc(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(xl(e,l))return;const u=i(lv(e,l));t.delete(u)}}function Zoe(e){const t={};for(const r in e)if(Cs(e,r)){const i=_U(r);i!==void 0&&(t[r]=eae(e[r],i))}return t}function eae(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!No(e))return eae(e,t.element);case"list":const r=t.element;return No(e)?Ei(e,i=>eae(i,r)):"";default:return Jc(t.type,(i,o)=>{if(i===e)return o})}}function Io(e,t,...r){e.trace(OI(t,...r))}function Bb(e,t){return!!e.traceResolution&&t.trace!==void 0}function dx(e,t,r){let i;if(t&&e){const o=e.contents.packageJsonContent;typeof o.name=="string"&&typeof o.version=="string"&&(i={name:o.name,subModuleName:t.path.slice(e.packageDirectory.length+Xs.length),version:o.version,peerDependencies:RHe(e,r)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function RU(e){return dx(void 0,e,void 0)}function T1e(e){if(e)return C.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function s3(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 sHe(e){const t=[];return e&1&&t.push(...nw),e&2&&t.push(...vD),e&4&&t.push(...t4),e&8&&t.push(".json"),t}function tae(e){if(e)return C.assert(r4(e.extension)),{fileName:e.path,packageId:e.packageId}}function S1e(e,t,r,i,o,s,l,u,d){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!nd(e)){const{resolvedFileName:_,originalPath:h}=I1e(t.path,l.host,l.traceEnabled);h&&(t={...t,path:_,originalPath:h})}return E1e(t,r,i,o,s,l.resultFromCache,u,d)}function E1e(e,t,r,i,o,s,l,u){return s?l?.isReadonly?{...s,failedLookupLocations:nae(s.failedLookupLocations,r),affectingLocations:nae(s.affectingLocations,i),resolutionDiagnostics:nae(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=jD(s.failedLookupLocations,r),s.affectingLocations=jD(s.affectingLocations,i),s.resolutionDiagnostics=jD(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:sP(r),affectingLocations:sP(i),resolutionDiagnostics:sP(o),alternateResult:u}}function sP(e){return e.length?e:void 0}function jD(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function nae(e,t){return e?.length?t.length?[...e,...t]:e.slice():sP(t)}function rae(e,t,r,i){if(!Cs(e,t)){i.traceEnabled&&Io(i.host,f.package_json_does_not_have_a_0_field,t);return}const o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&Io(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function DU(e,t,r,i){const o=rae(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&Io(i.host,f.package_json_had_a_falsy_0_field,t);return}const s=ya(Qr(r,o));return i.traceEnabled&&Io(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function lHe(e,t,r){return DU(e,"typings",t,r)||DU(e,"types",t,r)}function cHe(e,t,r){return DU(e,"tsconfig",t,r)}function dHe(e,t,r){return DU(e,"main",t,r)}function uHe(e,t){const r=rae(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&Io(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function pHe(e,t){const r=uHe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Cs(r,l)&&!eF.tryParse(l)&&Io(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=l3(r);if(!i){t.traceEnabled&&Io(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,de);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&Io(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}var iae;function l3(e){iae||(iae=new sh(Re));for(const t in e){if(!Cs(e,t))continue;const r=eF.tryParse(t);if(r!==void 0&&r.test(iae))return{version:t,paths:e[t]}}}function lP(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ci(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return fHe(r)}function fHe(e){let t;return NN(ya(e),r=>{const i=Qr(r,mHe);(t??(t=[])).push(i)}),t}var mHe=Qr("node_modules","@types");function A1e(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return ry(e,t,!i)===0}function I1e(e,t,r){const i=w1e(e,t,r),o=A1e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function x1e(e,t,r){const i=nl(e,"/node_modules/@types")||nl(e,"/node_modules/@types/")?K1e(t,r):t;return Qr(e,i)}function oae(e,t,r,i,o,s,l){C.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const u=Bb(r,i);o&&(r=o.commandLine.options);const d=t?ci(t):void 0;let _=d?s?.getFromDirectoryCache(e,l,d,o):void 0;if(!_&&d&&!nd(e)&&(_=s?.getFromNonRelativeNameCache(e,l,d,o)),_)return u&&(Io(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&Io(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),Io(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),j(_)),_;const h=lP(r,i);u&&(t===void 0?h===void 0?Io(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Io(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,h):h===void 0?Io(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Io(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,h),o&&Io(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=[],E=[];let A=aae(r);l!==void 0&&(A|=30);const R=su(r);l===99&&3<=R&&R<=99&&(A|=32);const N=A&8?Gb(r,l):[],P=[],k={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:A,conditions:N,requestContainingDirectory:d,reportDiagnostic:q=>{P.push(q)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let F=J(),W=!0;F||(F=Z(),W=!1);let G;if(F){const{fileName:q,packageId:ve}=F;let oe=q,K;r.preserveSymlinks||({resolvedFileName:oe,originalPath:K}=I1e(q,i,u)),G={primary:W,resolvedFileName:oe,originalPath:K,packageId:ve,isExternalLibraryImport:Vb(q)}}return _={resolvedTypeReferenceDirective:G,failedLookupLocations:sP(y),affectingLocations:sP(E),resolutionDiagnostics:sP(P)},d&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(d,o).set(e,l,_),nd(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(d,_)),u&&j(_),_;function j(q){var ve;(ve=q.resolvedTypeReferenceDirective)!=null&&ve.resolvedFileName?q.resolvedTypeReferenceDirective.packageId?Io(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,q.resolvedTypeReferenceDirective.resolvedFileName,WT(q.resolvedTypeReferenceDirective.packageId),q.resolvedTypeReferenceDirective.primary):Io(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,q.resolvedTypeReferenceDirective.resolvedFileName,q.resolvedTypeReferenceDirective.primary):Io(i,f.Type_reference_directive_0_was_not_resolved,e)}function J(){if(h&&h.length)return u&&Io(i,f.Resolving_with_primary_search_path_0,h.join(", ")),Ln(h,q=>{const ve=x1e(q,e,k),oe=ph(q,i);if(!oe&&u&&Io(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,q),r.typeRoots){const K=qD(4,ve,!oe,k);if(K){const fe=qw(K.path),ue=fe?O1(fe,!1,k):void 0;return tae(dx(ue,K,k))}}return tae(mae(4,ve,!oe,k))});u&&Io(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Z(){const q=t&&ci(t);if(q!==void 0){let ve;if(!r.typeRoots||!nl(t,IP))if(u&&Io(i,f.Looking_up_in_node_modules_folder_initial_location_0,q),nd(e)){const{path:oe}=k1e(q,e);ve=PU(4,oe,!1,k,!0)}else{const oe=U1e(4,e,q,k,void 0,void 0);ve=oe&&oe.value}else u&&Io(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return tae(ve)}else u&&Io(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function aae(e){let t=0;switch(su(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 Gb(e,t){const r=su(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),ao(i,e.customConditions)}function CU(e,t,r,i,o){const s=dP(o?.getPackageJsonInfoCache(),i,r);return z_(i,t,l=>{if(Dc(l)!=="node_modules"){const u=Qr(l,"node_modules"),d=Qr(u,e);return O1(d,!1,s)}})}function c3(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=lP(e,t);if(i){for(const o of i)if(t.directoryExists(o))for(const s of t.getDirectories(o)){const l=ya(s),u=Qr(o,l,"package.json");if(!(t.fileExists(u)&&mD(u,t).typings===null)){const _=Dc(l);_.charCodeAt(0)!==46&&r.push(_)}}}}return r}function d3(e){return!!e?.contents}function sae(e){return!!e&&!e.contents}function lae(e){var t;if(e===null||typeof e!="object")return""+e;if(No(e))return`[${(t=e.map(i=>lae(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Cs(e,i)&&(r+=`${i}: ${lae(e[i])}`);return r+"}"}function NU(e,t){return t.map(r=>lae(q6(e,r))).join("|")+`|${e.pathsBasePath}`}function R1e(e,t){const r=new Map,i=new Map;let o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:u,clear:_,getOwnMap:()=>o};function s(y){return y?d(y.commandLine.options,!1):o}function l(y){return y?d(y.commandLine.options,!0):o}function u(y){e!==y&&(e?o=d(y,!0):r.set(y,o),e=y)}function d(y,E){let A=r.get(y);if(A)return A;const R=h(y);if(A=i.get(R),!A){if(e){const N=h(e);N===R?A=o:i.has(N)||i.set(N,o)}E&&(A??(A=new Map)),A&&i.set(R,A)}return A&&r.set(y,A),A}function _(){const y=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),r.set(e,o))}function h(y){let E=t.get(y);return E||t.set(y,E=NU(y,pU)),E}}function hHe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r?.get(Os(u,e,t))}function o(u,d){(r||(r=new Map)).set(Os(u,e,t),d)}function s(){r=void 0}function l(){return r}}function D1e(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function _He(e,t,r,i){const o=R1e(r,i);return{getFromDirectoryCache:d,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(_){o.update(_)}function u(_,h){const y=Os(_,e,t);return D1e(o,h,y,()=>UD())}function d(_,h,y,E){var A,R;const N=Os(y,e,t);return(R=(A=o.getMapOfCacheRedirects(E))==null?void 0:A.get(N))==null?void 0:R.get(_,h)}}function cP(e,t){return t===void 0?e:`${t}|${e}`}function UD(){const e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{const[u,d]=t.get(l);return o(s,u,d)})},size(){return e.size}};return r;function i(o,s){const l=cP(o,s);return t.set(l,[o,s]),l}}function gHe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function yHe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function vHe(e,t,r,i,o){const s=R1e(r,o);return{getFromNonRelativeNameCache:d,getOrCreateCacheForNonRelativeName:_,clear:l,update:u};function l(){s.clear()}function u(y){s.update(y)}function d(y,E,A,R){var N,P;return C.assert(!nd(y)),(P=(N=s.getMapOfCacheRedirects(R))==null?void 0:N.get(cP(y,E)))==null?void 0:P.get(A)}function _(y,E,A){return C.assert(!nd(y)),D1e(s,A,cP(y,E),h)}function h(){const y=new Map;return{get:E,set:A};function E(N){return y.get(Os(N,e,t))}function A(N,P){const k=Os(N,e,t);if(y.has(k))return;y.set(k,P);const F=i(P),W=F&&R(k,F);let G=k;for(;G!==W;){const j=ci(G);if(j===G||y.has(j))break;y.set(j,P),G=j}}function R(N,P){const k=Os(ci(P),e,t);let F=0;const W=Math.min(N.length,k.length);for(;Fi,clearAllExceptPackageJsonInfoCache:_,optionsToRedirectsKey:s};function d(){_(),i.clear()}function _(){l.clear(),u.clear()}function h(y){l.update(y),u.update(y)}}function HD(e,t,r,i,o){const s=C1e(e,t,r,i,gHe,o);return s.getOrCreateCacheForModuleName=(l,u,d)=>s.getOrCreateCacheForNonRelativeName(l,u,d),s}function u3(e,t,r,i,o){return C1e(e,t,r,i,yHe,o)}function MU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function p3(e,t,r,i,o){return w1(e,t,MU(r),i,o)}function N1e(e,t,r,i){const o=ci(t);return r.getFromDirectoryCache(e,i,o,void 0)}function w1(e,t,r,i,o,s,l){const u=Bb(r,i);s&&(r=s.commandLine.options),u&&(Io(i,f.Resolving_module_0_from_1,e,t),s&&Io(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const d=ci(t);let _=o?.getFromDirectoryCache(e,l,d,s);if(_)u&&Io(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let h=r.moduleResolution;switch(h===void 0?(h=su(r),u&&Io(i,f.Module_resolution_kind_is_not_specified_using_0,kR[h])):u&&Io(i,f.Explicitly_specified_module_resolution_kind_Colon_0,kR[h]),h){case 3:_=EHe(e,t,r,i,o,s,l);break;case 99:_=AHe(e,t,r,i,o,s,l);break;case 2:_=uae(e,t,r,i,o,s,l?Gb(r,l):void 0);break;case 1:_=gae(e,t,r,i,o,s);break;case 100:_=dae(e,t,r,i,o,s,l?Gb(r,l):void 0);break;default:return C.fail(`Unexpected moduleResolution: ${h}`)}o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(d,s).set(e,l,_),nd(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(d,_))}return u&&(_.resolvedModule?_.resolvedModule.packageId?Io(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,_.resolvedModule.resolvedFileName,WT(_.resolvedModule.packageId)):Io(i,f.Module_name_0_was_successfully_resolved_to_1,e,_.resolvedModule.resolvedFileName):Io(i,f.Module_name_0_was_not_resolved,e)),_}function M1e(e,t,r,i,o){const s=bHe(e,t,i,o);return s?s.value:nd(t)?THe(e,t,r,i,o):SHe(e,t,i,o)}function bHe(e,t,r,i){const{baseUrl:o,paths:s}=i.compilerOptions;if(s&&!nf(t)){i.traceEnabled&&(o&&Io(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),Io(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const l=I6(i.compilerOptions,i.host),u=aw(s);return hae(e,t,l,s,u,r,!1,i)}}function THe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&Io(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const s=ya(Qr(r,t));let l,u;for(const d of o.compilerOptions.rootDirs){let _=ya(d);nl(_,Xs)||(_+=Xs);const h=po(s,_)&&(u===void 0||u.length<_.length);o.traceEnabled&&Io(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,s,h),h&&(u=_,l=d)}if(u){o.traceEnabled&&Io(o.host,f.Longest_matching_prefix_for_0_is_1,s,u);const d=s.substr(u.length);o.traceEnabled&&Io(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,d,u,s);const _=i(e,s,!ph(r,o.host),o);if(_)return _;o.traceEnabled&&Io(o.host,f.Trying_other_entries_in_rootDirs);for(const h of o.compilerOptions.rootDirs){if(h===l)continue;const y=Qr(ya(h),d);o.traceEnabled&&Io(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,d,h,y);const E=ci(y),A=i(e,y,!ph(E,o.host),o);if(A)return A}o.traceEnabled&&Io(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function SHe(e,t,r,i){const{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&Io(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);const s=ya(Qr(o,t));return i.traceEnabled&&Io(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!ph(ci(s),i.host),i)}function P1e(e,t,r){const{resolvedModule:i,failedLookupLocations:o}=IHe(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(", ")}`);return i.resolvedFileName}var cae=(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))(cae||{});function EHe(e,t,r,i,o,s,l){return L1e(30,e,t,r,i,o,s,l)}function AHe(e,t,r,i,o,s,l){return L1e(30,e,t,r,i,o,s,l)}function L1e(e,t,r,i,o,s,l,u,d){const _=ci(r),h=u===99?32:0;let y=i.noDtsResolution?3:7;return WS(i)&&(y|=8),Hw(e|h,t,_,i,o,s,y,!1,l,d)}function IHe(e,t,r){return Hw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function dae(e,t,r,i,o,s,l){const u=ci(t);let d=r.noDtsResolution?3:7;return WS(r)&&(d|=8),Hw(aae(r),e,u,r,i,o,d,!1,s,l)}function uae(e,t,r,i,o,s,l,u){let d;return u?d=8:r.noDtsResolution?(d=3,WS(r)&&(d|=8)):d=WS(r)?15:7,Hw(l?30:0,e,ci(t),r,i,o,d,!!u,s,l)}function pae(e,t,r){return Hw(30,e,ci(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function Hw(e,t,r,i,o,s,l,u,d,_){var h,y,E,A,R;const N=Bb(i,o),P=[],k=[],F=su(i);_??(_=Gb(i,F===100||F===2?void 0:e&32?99:1));const W=[],G={compilerOptions:i,host:o,traceEnabled:N,failedLookupLocations:P,affectingLocations:k,packageJsonInfoCache:s,features:e,conditions:_??ie,requestContainingDirectory:r,reportDiagnostic:q=>{W.push(q)},isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&yD(F)&&Io(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",G.conditions.map(q=>`'${q}'`).join(", "));let j;if(F===2){const q=l&5,ve=l&-6;j=q&&Z(q,G)||ve&&Z(ve,G)||void 0}else j=Z(l,G);let J;if(G.resolvedPackageDirectory&&!u&&!nd(t)){const q=j?.value&&l&5&&!G1e(5,j.value.resolved.extension);if((h=j?.value)!=null&&h.isExternalLibraryImport&&q&&e&8&&_?.includes("import")){jb(G,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ve={...G,features:G.features&-9,reportDiagnostic:gs},oe=Z(l&5,ve);(y=oe?.value)!=null&&y.isExternalLibraryImport&&(J=oe.value.resolved.path)}else if((!j?.value||q)&&F===2){jb(G,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const ve={...G.compilerOptions,moduleResolution:100},oe={...G,compilerOptions:ve,features:30,conditions:Gb(ve),reportDiagnostic:gs},K=Z(l&5,oe);(E=K?.value)!=null&&E.isExternalLibraryImport&&(J=K.value.resolved.path)}}return S1e(t,(A=j?.value)==null?void 0:A.resolved,(R=j?.value)==null?void 0:R.isExternalLibraryImport,P,k,W,G,s,J);function Z(q,ve){const K=M1e(q,t,r,(fe,ue,me,be)=>PU(fe,ue,me,be,!0),ve);if(K)return gf({resolved:K,isExternalLibraryImport:Vb(K.path)});if(nd(t)){const{path:fe,parts:ue}=k1e(r,t),me=PU(q,fe,!1,ve,!0);return me&&gf({resolved:me,isExternalLibraryImport:jn(ue,"node_modules")})}else{if(e&2&&po(t,"#")){const ue=MHe(q,t,r,ve,s,d);if(ue)return ue.value&&{value:{resolved:ue.value,isExternalLibraryImport:!1}}}if(e&4){const ue=NHe(q,t,r,ve,s,d);if(ue)return ue.value&&{value:{resolved:ue.value,isExternalLibraryImport:!1}}}if(t.includes(":")){N&&Io(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,s3(q));return}N&&Io(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,s3(q));let fe=U1e(q,t,r,ve,s,d);return q&4&&(fe??(fe=Y1e(t,ve))),fe&&{value:fe.value&&{resolved:fe.value,isExternalLibraryImport:!0}}}}}function k1e(e,t){const r=Qr(e,t),i=Vd(r),o=tl(i);return{path:o==="."||o===".."?qc(ya(r)):ya(r),parts:i}}function w1e(e,t,r){if(!t.realpath)return e;const i=ya(t.realpath(e));return r&&Io(t,f.Resolving_real_path_for_0_result_1,e,i),i}function PU(e,t,r,i,o){if(i.traceEnabled&&Io(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,s3(e)),!db(t)){if(!r){const l=ci(t);ph(l,i.host)||(i.traceEnabled&&Io(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=qD(e,t,r,i);if(s){const l=o?qw(s.path):void 0,u=l?O1(l,!1,i):void 0;return dx(u,s,i)}}if(r||ph(t,i.host)||(i.traceEnabled&&Io(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return mae(e,t,r,i,o)}var Pg="/node_modules/";function Vb(e){return e.includes(Pg)}function qw(e,t){const r=ya(e),i=r.lastIndexOf(Pg);if(i===-1)return;const o=i+Pg.length;let s=O1e(r,o,t);return r.charCodeAt(o)===64&&(s=O1e(r,s,t)),r.slice(0,s)}function O1e(e,t,r){const i=e.indexOf(Xs,t+1);return i===-1?r?e.length:t:i}function fae(e,t,r,i){return RU(qD(e,t,r,i))}function qD(e,t,r,i){const o=W1e(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=F1e(t,e,"",r,i);if(s)return s}}function W1e(e,t,r,i){if(!Dc(t).includes("."))return;let s=Au(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&Io(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),F1e(s,e,l,r,i)}function LU(e,t,r,i,o){if(e&1&&tc(t,nw)||e&4&&tc(t,t4)){const s=kU(t,i,o),l=k6(t);return s!==void 0?{path:t,ext:l,resolvedUsingTsExtension:r?!nl(r,l):void 0}:void 0}return o.isConfigLookup&&e===8&&xl(t,".json")?kU(t,i,o)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:W1e(e,t,i,o)}function F1e(e,t,r,i,o){if(!i){const l=ci(e);l&&(i=!ph(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!sd(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){const d=kU(e+l,i,o);return d===void 0?void 0:{path:d,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function kU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return z1e(e,t,r);const o=Rg(e)??"",s=o?ow(e,o):e;return qe(r.compilerOptions.moduleSuffixes,l=>z1e(s+l+o,t,r))}function z1e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&Io(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&Io(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function mae(e,t,r,i,o=!0){const s=o?O1(t,r,i):void 0;return dx(s,OU(e,t,r,i,s),i)}function wU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s;const l=5|(o?2:0),u=aae(t),d=dP(i?.getPackageJsonInfoCache(),r,t);d.conditions=Gb(t),d.requestContainingDirectory=e.packageDirectory;const _=OU(l,e.packageDirectory,!1,d,e);if(s=Vn(s,_?.path),u&8&&e.contents.packageJsonContent.exports){const h=fS([Gb(t,99),Gb(t,1)],tf);for(const y of h){const E={...d,failedLookupLocations:[],conditions:y,host:r},A=xHe(e,e.contents.packageJsonContent.exports,E,l);if(A)for(const R of A)s=ty(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function xHe(e,t,r,i){let o;if(No(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&m3(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,d;if(typeof l=="string"&&po(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,sHe(i),void 0,[dF(y1(l,"**/*"),".*")]).forEach(_=>{o=ty(o,{path:_,ext:sI(_),resolvedUsingTsExtension:void 0})})}else{const _=Vd(l).slice(2);if(_.includes("..")||_.includes(".")||_.includes("node_modules"))return!1;const h=Qr(e.packageDirectory,l),y=bo(h,(d=(u=r.host).getCurrentDirectory)==null?void 0:d.call(u)),E=LU(i,y,l,!1,r);if(E)return o=ty(o,E,(A,R)=>A.path===R.path),!0}else if(Array.isArray(l)){for(const _ of l)if(s(_))return!0}else if(typeof l=="object"&&l!==null)return qe(Bh(l),_=>{if(_==="default"||jn(r.conditions,_)||Jw(r.conditions,_))return s(l[_]),!0})}}function dP(e,t,r){return{host:t,compilerOptions:r,traceEnabled:Bb(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:ie,requestContainingDirectory:void 0,reportDiagnostic:gs,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function uP(e,t){return z_(t.host,e,r=>O1(r,!1,t))}function B1e(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=pHe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function RHe(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=DHe(e,t)||!1),e.contents.peerDependencies||void 0}function DHe(e,t){const r=rae(e.contents.packageJsonContent,"peerDependencies","object",t);if(r===void 0)return;t.traceEnabled&&Io(t.host,f.package_json_has_a_peerDependencies_field);const i=w1e(e.packageDirectory,t.host,t.traceEnabled),o=i.substring(0,i.lastIndexOf("node_modules")+12)+Xs;let s="";for(const l in r)if(Cs(r,l)){const u=O1(o+l,!1,t);if(u){const d=u.contents.packageJsonContent.version;s+=`+${l}@${d}`,t.traceEnabled&&Io(t.host,f.Found_peerDependency_0_with_1_version,l,d)}else t.traceEnabled&&Io(t.host,f.Failed_to_find_peerDependency_0,l)}return s}function O1(e,t,r){var i,o,s,l,u,d;const{host:_,traceEnabled:h}=r,y=Qr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(y);return}const E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(y);if(E!==void 0){if(d3(E))return h&&Io(_,f.File_0_exists_according_to_earlier_cached_lookups,y),(s=r.affectingLocations)==null||s.push(y),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&h&&Io(_,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}const A=ph(e,_);if(A&&_.fileExists(y)){const R=mD(y,_);h&&Io(_,f.Found_package_json_at_0,y);const N={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,N),(u=r.affectingLocations)==null||u.push(y),N}else A&&h&&Io(_,f.File_0_does_not_exist,y),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:A}),(d=r.failedLookupLocations)==null||d.push(y)}function OU(e,t,r,i,o){const s=o&&B1e(o,i);let l;o&&A1e(o?.packageDirectory,t,i.host)&&(i.isConfigLookup?l=cHe(o.contents.packageJsonContent,o.packageDirectory,i):l=e&4&&lHe(o.contents.packageJsonContent,o.packageDirectory,i)||e&7&&dHe(o.contents.packageJsonContent,o.packageDirectory,i)||void 0);const u=(E,A,R,N)=>{const P=LU(E,A,void 0,R,N);if(P)return RU(P);const k=E===4?5:E,F=N.features,W=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,o?.contents.packageJsonContent.type!=="module"&&(N.features&=-33);const G=PU(k,A,R,N,!1);return N.features=F,N.candidateIsFromPackageJsonField=W,G},d=l?!ph(ci(l),i.host):void 0,_=r||!ph(t,i.host),h=Qr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||gm(t,l))){const E=uf(t,l||h,!1);i.traceEnabled&&Io(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Re,E);const A=aw(s.paths),R=hae(e,E,t,s.paths,A,u,d||_,i);if(R)return T1e(R.value)}const y=l&&T1e(u(e,l,d,i));if(y)return y;if(!(i.features&32))return qD(e,h,_,i)}function G1e(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 f3(e){let t=e.indexOf(Xs);return e[0]==="@"&&(t=e.indexOf(Xs,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function m3(e){return Hn(Bh(e),t=>po(t,"."))}function CHe(e){return!vt(Bh(e),t=>po(t,"."))}function NHe(e,t,r,i,o,s){var l,u;const d=bo(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),_=uP(d,i);if(!_||!_.contents.packageJsonContent.exports||typeof _.contents.packageJsonContent.name!="string")return;const h=Vd(t),y=Vd(_.contents.packageJsonContent.name);if(!Hn(y,(P,k)=>h[k]===P))return;const E=h.slice(y.length),A=Qe(E)?`.${Xs}${E.join(Xs)}`:".";if(Mb(i.compilerOptions)&&!Vb(r))return WU(_,e,A,i,o,s);const R=e&5,N=e&-6;return WU(_,R,A,i,o,s)||WU(_,N,A,i,o,s)}function WU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&CHe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Cs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return j1e(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(m3(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&Io(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),gf(void 0);const l=V1e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&Io(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),gf(void 0)}}function MHe(e,t,r,i,o,s){var l,u;if(t==="#"||po(t,"#/"))return i.traceEnabled&&Io(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),gf(void 0);const d=bo(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),_=uP(d,i);if(!_)return i.traceEnabled&&Io(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),gf(void 0);if(!_.contents.packageJsonContent.imports)return i.traceEnabled&&Io(i.host,f.package_json_scope_0_has_no_imports_defined,_.packageDirectory),gf(void 0);const h=V1e(e,i,o,s,t,_.contents.packageJsonContent.imports,_,!0);return h||(i.traceEnabled&&Io(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,_.packageDirectory),gf(void 0))}function FU(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 V1e(e,t,r,i,o,s,l,u){const d=j1e(e,t,r,i,o,l,u);if(!nl(o,Xs)&&!o.includes("*")&&Cs(s,o)){const y=s[o];return d(y,"",!1,o)}const _=Cp(Un(Bh(s),y=>PHe(y)||nl(y,"/")),FU);for(const y of _)if(t.features&16&&h(y,o)){const E=s[y],A=y.indexOf("*"),R=o.substring(y.substring(0,A).length,o.length-(y.length-1-A));return d(E,R,!0,y)}else if(nl(y,"*")&&po(o,y.substring(0,y.length-1))){const E=s[y],A=o.substring(y.length-1);return d(E,A,!0,y)}else if(po(o,y)){const E=s[y],A=o.substring(y.length);return d(E,A,!1,y)}function h(y,E){if(nl(y,"*"))return!1;const A=y.indexOf("*");return A===-1?!1:po(E,y.substring(0,A))&&nl(E,y.substring(A+1))}}function PHe(e){const t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function j1e(e,t,r,i,o,s,l){return u;function u(d,_,h,y){var E,A;if(typeof d=="string"){if(!h&&_.length>0&&!nl(d,"/"))return t.traceEnabled&&Io(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),gf(void 0);if(!po(d,"./")){if(l&&!po(d,"../")&&!po(d,"/")&&!Pp(d)){const Z=h?d.replace(/\*/g,_):d+_;jb(t,f.Using_0_subpath_1_with_target_2,"imports",y,Z),jb(t,f.Resolving_module_0_from_1,Z,s.packageDirectory+"/");const q=Hw(t.features,Z,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return(E=t.failedLookupLocations)==null||E.push(...q.failedLookupLocations??ie),(A=t.affectingLocations)==null||A.push(...q.affectingLocations??ie),gf(q.resolvedModule?{path:q.resolvedModule.resolvedFileName,extension:q.resolvedModule.extension,packageId:q.resolvedModule.packageId,originalPath:q.resolvedModule.originalPath,resolvedUsingTsExtension:q.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Io(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),gf(void 0)}const F=(nf(d)?Vd(d).slice(1):Vd(d)).slice(1);if(F.includes("..")||F.includes(".")||F.includes("node_modules"))return t.traceEnabled&&Io(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),gf(void 0);const W=Qr(s.packageDirectory,d),G=Vd(_);if(G.includes("..")||G.includes(".")||G.includes("node_modules"))return t.traceEnabled&&Io(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),gf(void 0);t.traceEnabled&&Io(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,h?d.replace(/\*/g,_):d+_);const j=R(h?W.replace(/\*/g,_):W+_),J=P(j,_,Qr(s.packageDirectory,"package.json"),l);return J||gf(dx(s,LU(e,j,d,!1,t),t))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!Qe(d))return t.traceEnabled&&Io(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),gf(void 0);for(const k of d){const F=u(k,_,h,y);if(F)return F}}else{jb(t,f.Entering_conditional_exports);for(const k of Bh(d))if(k==="default"||t.conditions.includes(k)||Jw(t.conditions,k)){jb(t,f.Matched_0_condition_1,l?"imports":"exports",k);const F=d[k],W=u(F,_,h,y);if(W)return jb(t,f.Resolved_under_condition_0,k),jb(t,f.Exiting_conditional_exports),W;jb(t,f.Failed_to_resolve_under_condition_0,k)}else jb(t,f.Saw_non_matching_condition_0,k);jb(t,f.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&Io(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),gf(void 0);return t.traceEnabled&&Io(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),gf(void 0);function R(k){var F,W;return k===void 0?k:bo(k,(W=(F=t.host).getCurrentDirectory)==null?void 0:W.call(F))}function N(k,F){return qc(Qr(k,F))}function P(k,F,W,G){var j,J,Z,q;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!k.includes("/node_modules/")&&(!t.compilerOptions.configFile||gm(s.packageDirectory,R(t.compilerOptions.configFile.fileName),!zU(t)))){const oe=dy({useCaseSensitiveFileNames:()=>zU(t)}),K=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const fe=R(EP(t.compilerOptions,()=>[],((J=(j=t.host).getCurrentDirectory)==null?void 0:J.call(j))||"",oe));K.push(fe)}else if(t.requestContainingDirectory){const fe=R(Qr(t.requestContainingDirectory,"index.ts")),ue=R(EP(t.compilerOptions,()=>[fe,R(W)],((q=(Z=t.host).getCurrentDirectory)==null?void 0:q.call(Z))||"",oe));K.push(ue);let me=qc(ue);for(;me&&me.length>1;){const be=Vd(me);be.pop();const De=LT(be);K.unshift(De),me=qc(De)}}K.length>1&&t.reportDiagnostic(Dl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,F===""?".":F,W));for(const fe of K){const ue=ve(fe);for(const me of ue)if(gm(me,k,!zU(t))){const be=k.slice(me.length+1),De=Qr(fe,be),Y=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Ne of Y)if(xl(De,Ne)){const Xe=_V(De);for(const Ee of Xe){if(!G1e(e,Ee))continue;const re=C2(De,Ee,Ne,!zU(t));if(t.host.fileExists(re))return gf(dx(s,LU(e,re,void 0,!1,t),t))}}}}}return;function ve(oe){var K,fe;const ue=t.compilerOptions.configFile?((fe=(K=t.host).getCurrentDirectory)==null?void 0:fe.call(K))||"":oe,me=[];return t.compilerOptions.declarationDir&&me.push(R(N(ue,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&me.push(R(N(ue,t.compilerOptions.outDir))),me}}}}function Jw(e,t){if(!e.includes("types")||!po(t,"types@"))return!1;const r=eF.tryParse(t.substring(6));return r?r.test(Re):!1}function U1e(e,t,r,i,o,s){return H1e(e,t,r,i,!1,o,s)}function LHe(e,t,r){return H1e(4,e,t,r,!0,void 0,void 0)}function H1e(e,t,r,i,o,s,l){const u=i.features===0?void 0:i.features&32||i.conditions.includes("import")?99:1,d=e&5,_=e&-6;if(d){jb(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,s3(d));const y=h(d);if(y)return y}if(_&&!o)return jb(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,s3(_)),h(_);function h(y){return z_(i.host,jd(r),E=>{if(Dc(E)!=="node_modules"){const A=X1e(s,t,u,E,l,i);return A||gf(q1e(y,t,E,i,o,s,l))}})}}function z_(e,t,r){var i;const o=(i=e?.getGlobalTypingsCacheLocation)==null?void 0:i.call(e);return NN(t,s=>{const l=r(s);if(l!==void 0)return l;if(s===o)return!1})||void 0}function q1e(e,t,r,i,o,s,l){const u=Qr(r,"node_modules"),d=ph(u,i.host);if(!d&&i.traceEnabled&&Io(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const _=J1e(e,t,u,d,i,s,l);if(_)return _}if(e&4){const _=Qr(u,"@types");let h=d;return d&&!ph(_,i.host)&&(i.traceEnabled&&Io(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),h=!1),J1e(4,K1e(t,i),_,h,i,s,l)}}function J1e(e,t,r,i,o,s,l){var u,d;const _=ya(Qr(r,t)),{packageName:h,rest:y}=f3(t),E=Qr(r,h);let A,R=O1(_,!i,o);if(y!==""&&R&&(!(o.features&8)||!Cs(((u=A=O1(E,!i,o))==null?void 0:u.contents.packageJsonContent)??ie,"exports"))){const k=qD(e,_,!i,o);if(k)return RU(k);const F=OU(e,_,!i,o,R);return dx(R,F,o)}const N=(k,F,W,G)=>{let j=(y||!(G.features&32))&&qD(k,F,W,G)||OU(k,F,W,G,R);return!j&&!y&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&G.features&32&&(j=qD(k,Qr(F,"index.js"),W,G)),dx(R,j,G)};if(y!==""&&(R=A??O1(E,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(d=WU(R,e,Qr(".",y),o,s,l))==null?void 0:d.value;const P=y!==""&&R?B1e(R,o):void 0;if(P){o.traceEnabled&&Io(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,P.version,Re,y);const k=i&&ph(E,o.host),F=aw(P.paths),W=hae(e,y,E,P.paths,F,N,!k,o);if(W)return W.value}return N(e,_,!i,o)}function hae(e,t,r,i,o,s,l,u){const d=QV(o,t);if(d){const _=Bo(d)?void 0:TZ(d,t),h=Bo(d)?d:bZ(d);return u.traceEnabled&&Io(u.host,f.Module_name_0_matched_pattern_1,t,h),{value:qe(i[h],E=>{const A=_?y1(E,_):E,R=ya(Qr(r,A));u.traceEnabled&&Io(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,A);const N=Rg(E);if(N!==void 0){const P=kU(R,l,u);if(P!==void 0)return RU({path:P,ext:N,resolvedUsingTsExtension:void 0})}return s(e,R,l||!ph(ci(R),u.host),u)})}}}var _ae="__";function K1e(e,t){const r=JD(e);return t.traceEnabled&&r!==e&&Io(t.host,f.Scoped_package_detected_looking_in_0,r),r}function h3(e){return`@types/${JD(e)}`}function JD(e){if(po(e,"@")){const t=e.replace(Xs,_ae);if(t!==e)return t.slice(1)}return e}function pP(e){const t=TN(e,"@types/");return t!==e?Kw(t):e}function Kw(e){return e.includes(_ae)?"@"+e.replace(_ae,Xs):e}function X1e(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&Io(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function gae(e,t,r,i,o,s){const l=Bb(r,i),u=[],d=[],_=ci(t),h=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:_,reportDiagnostic:R=>{h.push(R)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=A(5)||A(2|(r.resolveJsonModule?8:0));return S1e(e,E&&E.value,E?.value&&Vb(E.value.path),u,d,h,y,o);function A(R){const N=M1e(R,e,_,fae,y);if(N)return{value:N};if(nd(e)){const P=ya(Qr(_,e));return gf(fae(R,P,!1,y))}else{const P=z_(y.host,_,k=>{const F=X1e(o,e,void 0,k,s,y);if(F)return F;const W=ya(Qr(k,e));return gf(fae(R,W,!1,y))});if(P)return P;if(R&5){let k=LHe(e,_,y);return R&4&&(k??(k=Y1e(e,y))),k}}}}function Y1e(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=x1e(r,e,t),o=ph(r,t.host);!o&&t.traceEnabled&&Io(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=qD(4,i,!o,t);if(s){const u=qw(s.path),d=u?O1(u,!1,t):void 0;return gf(dx(d,s,t))}const l=mae(4,i,!o,t);if(l)return gf(l)}}function KD(e,t){return Dre(e)||!!t&&sd(t)}function yae(e,t,r,i,o,s){const l=Bb(r,i);l&&Io(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);const u=[],d=[],_=[],h={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>{_.push(E)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=q1e(4,e,o,h,!1,void 0,void 0);return E1e(y,!0,u,d,_,h.resultFromCache,void 0)}function gf(e){return e!==void 0?{value:e}:void 0}function jb(e,t,...r){e.traceEnabled&&Io(e.host,t,...r)}function zU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var vae=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(vae||{});function yy(e,t){return e.body&&!e.body.parent&&(ps(e.body,e),KT(e.body,!1)),e.body?bae(e.body,t):1}function bae(e,t=new Map){const r=ls(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=kHe(e,t);return t.set(r,i),i}function kHe(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(FT(e))return 2;break;case 273:case 272:if(!di(e,32))return 0;break;case 279:const r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===280){let i=0;for(const o of r.exportClause.elements){const s=wHe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 269:{let i=0;return Jo(e,o=>{const s=bae(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:C.assertNever(s)}}),i}case 268:return yy(e,t);case 80:if(e.flags&4096)return 0}return 1}function wHe(e,t){const r=e.propertyName||e.name;if(r.kind!==80)return 1;let i=e.parent;for(;i;){if(ta(i)||i_(i)||Xi(i)){const o=i.statements;let s;for(const l of o)if(B2(l,r)){l.parent||(ps(l,i),KT(l,!1));const u=bae(l,t);if((s===void 0||u>s)&&(s=u),s===1)return s;l.kind===272&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}var Tae=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(Tae||{});function B_(e,t,r){return C.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:r})}var OHe=WHe();function Sae(e,t){Nl("beforeBind"),OHe(e,t),Nl("afterBind"),zf("Bind","beforeBind","afterBind")}function WHe(){var e,t,r,i,o,s,l,u,d,_,h,y,E,A,R,N,P,k,F,W,G,j,J,Z,q,ve=!1,oe=0,K,fe,ue=B_(1,void 0,void 0),me=B_(1,void 0,void 0),be=B();return Y;function De(z,je,...kt){return Gf(zn(z)||e,z,je,...kt)}function Y(z,je){var kt,Fn;e=z,t=je,r=Va(t),q=Ne(e,je),fe=new Set,oe=0,K=Dd.getSymbolConstructor(),C.attachFlowNodeDebugInfo(ue),C.attachFlowNodeDebugInfo(me),e.locals||((kt=xr)==null||kt.push(xr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Bn(e),(Fn=xr)==null||Fn.pop(),e.symbolCount=oe,e.classifiableNames=fe,Zs(),Da()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0,h=void 0,_=!1,y=void 0,E=void 0,A=void 0,R=void 0,N=void 0,P=void 0,k=void 0,W=void 0,G=!1,j=!1,J=!1,ve=!1,Z=0}function Ne(z,je){return Hd(je,"alwaysStrict")&&!z.isDeclarationFile?!0:!!z.externalModuleIndicator}function Xe(z,je){return oe++,new K(z,je)}function Ee(z,je,kt){z.flags|=kt,je.symbol=z,z.declarations=ty(z.declarations,je),kt&1955&&!z.exports&&(z.exports=da()),kt&6240&&!z.members&&(z.members=da()),z.constEnumOnlyModule&&z.flags&304&&(z.constEnumOnlyModule=!1),kt&111551&&oM(z,je)}function re(z){if(z.kind===278)return z.isExportEquals?"export=":"default";const je=wo(z);if(je){if(Tu(z)){const kt=jf(je);return L_(z)?"__global":`"${kt}"`}if(je.kind===168){const kt=je.expression;if(ff(kt))return Pl(kt.text);if(y6(kt))return _a(kt.operator)+kt.operand.text;C.fail("Only computed properties with literal names have declaration names")}if(Qi(je)){const kt=_d(z);if(!kt)return;const Fn=kt.symbol;return wk(Fn,je.escapedText)}return _h(je)?GI(je):Xh(je)?pM(je):void 0}switch(z.kind){case 177:return"__constructor";case 185:case 180:case 324:return"__call";case 186:case 181:return"__new";case 182:return"__index";case 279:return"__export";case 308:return"export=";case 227:if(lc(z)===2)return"export=";C.fail("Unknown binary declaration kind");break;case 318:return II(z)?"__new":"__call";case 170:return C.assert(z.parent.kind===318,"Impossible parameter parent kind",()=>`parent is: ${C.formatSyntaxKind(z.parent.kind)}, expected JSDocFunctionType`),"arg"+z.parent.parameters.indexOf(z)}}function Te(z){return rd(z)?Ws(z.name):Vi(C.checkDefined(re(z)))}function Me(z,je,kt,Fn,yo,na,So){C.assert(So||!cy(kt));const Vo=di(kt,2048)||lu(kt)&&P_(kt.name),_l=So?"__computed":Vo&&je?"default":re(kt);let Na;if(_l===void 0)Na=Xe(0,"__missing");else if(Na=z.get(_l),Fn&2885600&&fe.add(_l),!Na)z.set(_l,Na=Xe(0,_l)),na&&(Na.isReplaceableByMethod=!0);else{if(na&&!Na.isReplaceableByMethod)return Na;if(Na.flags&yo){if(Na.isReplaceableByMethod)z.set(_l,Na=Xe(0,_l));else if(!(Fn&3&&Na.flags&67108864)){rd(kt)&&ps(kt.name,kt);let dd=Na.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Jp=!0;(Na.flags&384||Fn&384)&&(dd=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Jp=!1);let Af=!1;Qe(Na.declarations)&&(Vo||Na.declarations&&Na.declarations.length&&kt.kind===278&&!kt.isExportEquals)&&(dd=f.A_module_cannot_have_multiple_default_exports,Jp=!1,Af=!0);const em=[];Im(kt)&&zl(kt.type)&&di(kt,32)&&Na.flags&2887656&&em.push(De(kt,f.Did_you_mean_0,`export type { ${Vi(kt.name.escapedText)} }`));const Iy=wo(kt)||kt;qe(Na.declarations,(ju,U_)=>{const Ah=wo(ju)||ju,Mm=Jp?De(Ah,dd,Te(ju)):De(Ah,dd);e.bindDiagnostics.push(Af?pa(Mm,De(Iy,U_===0?f.Another_export_default_is_here:f.and_here)):Mm),Af&&em.push(De(Ah,f.The_first_export_default_is_here))});const Ev=Jp?De(Iy,dd,Te(kt)):De(Iy,dd);e.bindDiagnostics.push(pa(Ev,...em)),Na=Xe(0,_l)}}}return Ee(Na,kt,Fn),Na.parent?C.assert(Na.parent===je,"Existing symbol parent should match new one"):Na.parent=je,Na}function Be(z,je,kt){const Fn=!!(kT(z)&32)||lt(z);if(je&2097152)return z.kind===282||z.kind===272&&Fn?Me(o.symbol.exports,o.symbol,z,je,kt):(C.assertNode(o,N_),Me(o.locals,void 0,z,je,kt));if(Tm(z)&&C.assert(Ir(z)),!Tu(z)&&(Fn||o.flags&128)){if(!N_(o)||!o.locals||di(z,2048)&&!re(z))return Me(o.symbol.exports,o.symbol,z,je,kt);const yo=je&111551?1048576:0,na=Me(o.locals,void 0,z,yo,kt);return na.exportSymbol=Me(o.symbol.exports,o.symbol,z,je,kt),z.localSymbol=na,na}else return C.assertNode(o,N_),Me(o.locals,void 0,z,je,kt)}function lt(z){if(z.parent&&mc(z)&&(z=z.parent),!Tm(z))return!1;if(!Iw(z)&&z.fullName)return!0;const je=wo(z);return je?!!(Uk(je.parent)&&Zf(je.parent)||id(je.parent)&&kT(je.parent)&32):!1}function ce(z,je){const kt=o,Fn=s,yo=l,na=j;if(z.kind===220&&z.body.kind!==242&&(j=!0),je&1?(z.kind!==220&&(s=o),o=l=z,je&32&&(o.locals=da(),En(o))):je&2&&(l=z,je&32&&(l.locals=void 0)),je&4){const So=y,Vo=E,_l=A,Na=R,dd=k,Jp=W,Af=G,em=je&16&&!di(z,1024)&&!z.asteriskToken&&!!zT(z)||z.kind===176;em||(y=B_(2,void 0,void 0),je&144&&(y.node=z)),R=em||z.kind===177||Ir(z)&&(z.kind===263||z.kind===219)?en():void 0,k=void 0,E=void 0,A=void 0,W=void 0,G=!1,Ge(z),z.flags&=-5633,!(y.flags&1)&&je&8&&vm(z.body)&&(z.flags|=512,G&&(z.flags|=1024),z.endFlowNode=y),z.kind===308&&(z.flags|=Z,z.endFlowNode=y),R&&(zt(R,y),y=Mi(R),(z.kind===177||z.kind===176||Ir(z)&&(z.kind===263||z.kind===219))&&(z.returnFlowNode=y)),em||(y=So),E=Vo,A=_l,R=Na,k=dd,W=Jp,G=Af}else je&64?(_=!1,Ge(z),C.assertNotNode(z,Je),z.flags=_?z.flags|256:z.flags&-257):Ge(z);j=na,o=kt,s=Fn,l=yo}function Ce(z){ye(z,je=>je.kind===263?Bn(je):void 0),ye(z,je=>je.kind!==263?Bn(je):void 0)}function ye(z,je=Bn){z!==void 0&&qe(z,je)}function Ue(z){Jo(z,Bn,ye)}function Ge(z){const je=ve;if(ve=!1,Yi(z)){aD(z)&&z.flowNode&&(z.flowNode=void 0),Ue(z),no(z),ve=je;return}switch(z.kind>=244&&z.kind<=260&&(!t.allowUnreachableCode||z.kind===254)&&(z.flowNode=y),z.kind){case 248:Ia(z);break;case 247:Pn(z);break;case 249:Uo(z);break;case 250:case 251:ot(z);break;case 246:Ft(z);break;case 254:case 258:le(z);break;case 253:case 252:Fe(z);break;case 259:it(z);break;case 256:dt(z);break;case 270:Lt(z);break;case 297:He(z);break;case 245:Rt(z);break;case 257:Ot(z);break;case 225:Oe(z);break;case 226:Nt(z);break;case 227:if(ov(z)){ve=je,ge(z);return}be(z);break;case 221:Ie(z);break;case 228:te(z);break;case 261:Kt(z);break;case 212:case 213:yn(z);break;case 214:wt(z);break;case 236:In(z);break;case 347:case 339:case 341:gr(z);break;case 352:Jn(z);break;case 308:{Ce(z.statements),Bn(z.endOfFileToken);break}case 242:case 269:Ce(z.statements);break;case 209:Le(z);break;case 170:yt(z);break;case 211:case 210:case 304:case 231:ve=je;default:Ue(z);break}no(z),ve=je}function We(z){switch(z.kind){case 80:case 110:return!0;case 212:case 213:return Wt(z);case 214:return cn(z);case 218:if(XS(z))return!1;case 236:return We(z.expression);case 227:return Kn(z);case 225:return z.operator===54&&We(z.operand);case 222:return We(z.expression)}return!1}function at(z){switch(z.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return at(z.expression);case 213:return(ff(z.argumentExpression)||Ns(z.argumentExpression))&&at(z.expression);case 227:return z.operatorToken.kind===28&&at(z.right)||uy(z.operatorToken.kind)&&ep(z.left)}return!1}function Wt(z){return at(z)||iu(z)&&Wt(z.expression)}function cn(z){if(z.arguments){for(const je of z.arguments)if(Wt(je))return!0}return!!(z.expression.kind===212&&Wt(z.expression.expression))}function gn(z,je){return RD(z)&>(z.expression)&&ds(je)}function Kn(z){switch(z.operatorToken.kind){case 64:case 76:case 77:case 78:return Wt(z.left);case 35:case 36:case 37:case 38:const je=us(z.left),kt=us(z.right);return gt(je)||gt(kt)||gn(kt,je)||gn(je,kt)||UN(kt)&&We(je)||UN(je)&&We(kt);case 104:return gt(z.left);case 103:return We(z.right);case 28:return We(z.right)}return!1}function gt(z){switch(z.kind){case 218:return gt(z.expression);case 227:switch(z.operatorToken.kind){case 64:return gt(z.left);case 28:return gt(z.right)}}return Wt(z)}function en(){return B_(4,void 0,void 0)}function or(){return B_(8,void 0,void 0)}function Ni(z,je,kt){return B_(1024,{target:z,antecedents:je},kt)}function so(z){z.flags|=z.flags&2048?4096:2048}function zt(z,je){!(je.flags&1)&&!jn(z.antecedent,je)&&((z.antecedent||(z.antecedent=[])).push(je),so(je))}function Zr(z,je,kt){return je.flags&1?je:kt?(kt.kind===112&&z&64||kt.kind===97&&z&32)&&!EF(kt)&&!rG(kt.parent)?ue:We(kt)?(so(je),B_(z,kt,je)):je:z&32?je:ue}function xi(z,je,kt,Fn){return so(z),B_(128,{switchStatement:je,clauseStart:kt,clauseEnd:Fn},z)}function Pi(z,je,kt){so(je),J=!0;const Fn=B_(z,kt,je);return k&&zt(k,Fn),Fn}function Pr(z,je){return so(z),J=!0,B_(512,je,z)}function Mi(z){const je=z.antecedent;return je?je.length===1?je[0]:z:ue}function $e(z){const je=z.parent;switch(je.kind){case 246:case 248:case 247:return je.expression===z;case 249:case 228:return je.condition===z}return!1}function At(z){for(;;)if(z.kind===218)z=z.expression;else if(z.kind===225&&z.operator===54)z=z.operand;else return Vk(z)}function hn(z){return AV(us(z))}function dr(z){for(;zu(z.parent)||QT(z.parent)&&z.parent.operator===54;)z=z.parent;return!$e(z)&&!At(z.parent)&&!(iu(z.parent)&&z.parent.expression===z)}function ri(z,je,kt,Fn){const yo=N,na=P;N=kt,P=Fn,z(je),N=yo,P=na}function ai(z,je,kt){ri(Bn,z,je,kt),(!z||!hn(z)&&!At(z)&&!(iu(z)&&zN(z)))&&(zt(je,Zr(32,y,z)),zt(kt,Zr(64,y,z)))}function qi(z,je,kt){const Fn=E,yo=A;E=je,A=kt,Bn(z),E=Fn,A=yo}function Qo(z,je){let kt=W;for(;kt&&z.parent.kind===257;)kt.continueTarget=je,kt=kt.next,z=z.parent;return je}function Ia(z){const je=Qo(z,or()),kt=en(),Fn=en();zt(je,y),y=je,ai(z.expression,kt,Fn),y=Mi(kt),qi(z.statement,Fn,je),zt(je,y),y=Mi(Fn)}function Pn(z){const je=or(),kt=Qo(z,en()),Fn=en();zt(je,y),y=je,qi(z.statement,Fn,kt),zt(kt,y),y=Mi(kt),ai(z.expression,je,Fn),y=Mi(Fn)}function Uo(z){const je=Qo(z,or()),kt=en(),Fn=en(),yo=en();Bn(z.initializer),zt(je,y),y=je,ai(z.condition,kt,yo),y=Mi(kt),qi(z.statement,yo,Fn),zt(Fn,y),y=Mi(Fn),Bn(z.incrementor),zt(je,y),y=Mi(yo)}function ot(z){const je=Qo(z,or()),kt=en();Bn(z.expression),zt(je,y),y=je,z.kind===251&&Bn(z.awaitModifier),zt(kt,y),Bn(z.initializer),z.initializer.kind!==262&&Jt(z.initializer),qi(z.statement,kt,je),zt(je,y),y=Mi(kt)}function Ft(z){const je=en(),kt=en(),Fn=en();ai(z.expression,je,kt),y=Mi(je),Bn(z.thenStatement),zt(Fn,y),y=Mi(kt),Bn(z.elseStatement),zt(Fn,y),y=Mi(Fn)}function le(z){const je=j;j=!0,Bn(z.expression),j=je,z.kind===254&&(G=!0,R&&zt(R,y)),y=ue,J=!0}function _t(z){for(let je=W;je;je=je.next)if(je.name===z)return je}function ne(z,je,kt){const Fn=z.kind===253?je:kt;Fn&&(zt(Fn,y),y=ue,J=!0)}function Fe(z){if(Bn(z.label),z.label){const je=_t(z.label.escapedText);je&&(je.referenced=!0,ne(z,je.breakTarget,je.continueTarget))}else ne(z,E,A)}function it(z){const je=R,kt=k,Fn=en(),yo=en();let na=en();if(z.finallyBlock&&(R=yo),zt(na,y),k=na,Bn(z.tryBlock),zt(Fn,y),z.catchClause&&(y=Mi(na),na=en(),zt(na,y),k=na,Bn(z.catchClause),zt(Fn,y)),R=je,k=kt,z.finallyBlock){const So=en();So.antecedent=ao(ao(Fn.antecedent,na.antecedent),yo.antecedent),y=So,Bn(z.finallyBlock),y.flags&1?y=ue:(R&&yo.antecedent&&zt(R,Ni(So,yo.antecedent,y)),k&&na.antecedent&&zt(k,Ni(So,na.antecedent,y)),y=Fn.antecedent?Ni(So,Fn.antecedent,y):ue)}else y=Mi(Fn)}function dt(z){const je=en();Bn(z.expression);const kt=E,Fn=F;E=je,F=y,Bn(z.caseBlock),zt(je,y);const yo=qe(z.caseBlock.clauses,na=>na.kind===298);z.possiblyExhaustive=!yo&&!je.antecedent,yo||zt(je,xi(F,z,0,0)),E=kt,F=Fn,y=Mi(je)}function Lt(z){const je=z.clauses,kt=z.parent.expression.kind===112||We(z.parent.expression);let Fn=ue;for(let yo=0;yohc(kt)||dl(kt))}function ia(z){z.flags&33554432&&!Ri(z)?z.flags|=128:z.flags&=-129}function la(z){if(ia(z),Tu(z))if(di(z,32)&&fn(z,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),NG(z))zo(z);else{let je;if(z.name.kind===11){const{text:Fn}=z.name;je=FI(Fn),je===void 0&&fn(z.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Fn)}const kt=xn(z,512,110735);e.patternAmbientModules=Vn(e.patternAmbientModules,je&&!Bo(je)?{pattern:je,symbol:kt}:void 0)}else{const je=zo(z);if(je!==0){const{symbol:kt}=z;kt.constEnumOnlyModule=!(kt.flags&304)&&je===2&&kt.constEnumOnlyModule!==!1}}}function zo(z){const je=yy(z),kt=je!==0;return xn(z,kt?512:1024,kt?110735:0),je}function jl(z){const je=Xe(131072,re(z));Ee(je,z,131072);const kt=Xe(2048,"__type");Ee(kt,z,2048),kt.members=da(),kt.members.set(je.escapedName,je)}function Cl(z){return Go(z,4096,"__object")}function ks(z){return Go(z,4096,"__jsxAttributes")}function lo(z,je,kt){return xn(z,je,kt)}function Go(z,je,kt){const Fn=Xe(je,kt);return je&106508&&(Fn.parent=o.symbol),Ee(Fn,z,je),Fn}function Ec(z,je,kt){switch(l.kind){case 268:Be(z,je,kt);break;case 308:if(wp(o)){Be(z,je,kt);break}default:C.assertNode(l,N_),l.locals||(l.locals=da(),En(l)),Me(l.locals,void 0,z,je,kt)}}function Zs(){if(!d)return;const z=o,je=u,kt=l,Fn=i,yo=y;for(const na of d){const So=na.parent.parent;o=JF(So)||e,l=dh(So)||e,y=B_(2,void 0,void 0),i=na,Bn(na.typeExpression);const Vo=wo(na);if((Iw(na)||!na.fullName)&&Vo&&Uk(Vo.parent)){const _l=Zf(Vo.parent);if(_l){qp(e.symbol,Vo.parent,_l,!!Dn(Vo,dd=>qr(dd)&&dd.name.escapedText==="prototype"),!1);const Na=o;switch(Ak(Vo.parent)){case 1:case 2:wp(e)?o=e:o=void 0;break;case 4:o=Vo.parent.expression;break;case 3:o=Vo.parent.expression.name;break;case 5:o=$S(e,Vo.parent.expression)?e:qr(Vo.parent.expression)?Vo.parent.expression.name:Vo.parent.expression;break;case 0:return C.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Be(na,524288,788968),o=Na}}else Iw(na)||!na.fullName||na.fullName.kind===80?(i=na.parent,Ec(na,524288,788968)):Bn(na.fullName)}o=z,u=je,l=kt,i=Fn,y=yo}function Da(){if(h===void 0)return;const z=o,je=u,kt=l,Fn=i,yo=y;for(const na of h){const So=CS(na),Vo=So?JF(So):void 0,_l=So?dh(So):void 0;o=Vo||e,l=_l||e,y=B_(2,void 0,void 0),i=na,Bn(na.importClause)}o=z,u=je,l=kt,i=Fn,y=yo}function ic(z){if(!e.parseDiagnostics.length&&!(z.flags&33554432)&&!(z.flags&16777216)&&!Gne(z)){const je=$E(z);if(je===void 0)return;q&&je>=119&&je<=127?e.bindDiagnostics.push(De(z,Sf(z),Ws(z))):je===135?Vc(e)&&r6(z)?e.bindDiagnostics.push(De(z,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ws(z))):z.flags&65536&&e.bindDiagnostics.push(De(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ws(z))):je===127&&z.flags&16384&&e.bindDiagnostics.push(De(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ws(z)))}}function Sf(z){return _d(z)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Po(z){z.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(De(z,f.constructor_is_a_reserved_word,Ws(z))))}function fa(z){q&&ep(z.left)&&uy(z.operatorToken.kind)&&xs(z,z.left)}function os(z){q&&z.variableDeclaration&&xs(z,z.variableDeclaration.name)}function Ja(z){if(q&&z.expression.kind===80){const je=o1(e,z.expression);e.bindDiagnostics.push(zc(e,je.start,je.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Zt(z){return Je(z)&&(z.escapedText==="eval"||z.escapedText==="arguments")}function xs(z,je){if(je&&je.kind===80){const kt=je;if(Zt(kt)){const Fn=o1(e,je);e.bindDiagnostics.push(zc(e,Fn.start,Fn.length,Xl(z),Kr(kt)))}}}function Xl(z){return _d(z)?f.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?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function dc(z){q&&!(z.flags&33554432)&&xs(z,z.name)}function bd(z){return _d(z)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function Bs(z){if(r<2&&l.kind!==308&&l.kind!==268&&!qR(l)){const je=o1(e,z);e.bindDiagnostics.push(zc(e,je.start,je.length,bd(z)))}}function Ae(z){q&&xs(z,z.operand)}function $(z){q&&(z.operator===46||z.operator===47)&&xs(z,z.operand)}function ft(z){q&&fn(z,f.with_statements_are_not_allowed_in_strict_mode)}function Ht(z){q&&Va(t)>=2&&(Wte(z.statement)||cc(z.statement))&&fn(z.label,f.A_label_is_not_allowed_here)}function fn(z,je,...kt){const Fn=qh(e,z.pos);e.bindDiagnostics.push(zc(e,Fn.start,Fn.length,je,...kt))}function ur(z,je,kt){si(z,je,je,kt)}function si(z,je,kt,Fn){Dr(z,{pos:Sb(je,e),end:kt.end},Fn)}function Dr(z,je,kt){const Fn=zc(e,je.pos,je.end-je.pos,kt);z?e.bindDiagnostics.push(Fn):e.bindSuggestionDiagnostics=Vn(e.bindSuggestionDiagnostics,{...Fn,category:2})}function Bn(z){if(!z)return;ps(z,i),xr&&(z.tracingPath=e.path);const je=q;if(Ca(z),z.kind>166){const kt=i;i=z;const Fn=BU(z);Fn===0?Ge(z):ce(z,Fn),i=kt}else{const kt=i;z.kind===1&&(i=z),no(z),i=kt}q=je}function no(z){if(rf(z))if(Ir(z))for(const je of z.jsDoc)Bn(je);else for(const je of z.jsDoc)ps(je,z),KT(je,!1)}function To(z){if(!q)for(const je of z){if(!Jh(je))return;if(Ps(je)){q=!0;return}}}function Ps(z){const je=ES(e,z.expression);return je==='"use strict"'||je==="'use strict'"}function Ca(z){switch(z.kind){case 80:if(z.flags&4096){let So=z.parent;for(;So&&!Tm(So);)So=So.parent;Ec(So,524288,788968);break}case 110:return y&&(St(z)||i.kind===305)&&(z.flowNode=y),ic(z);case 167:y&&s6(z)&&(z.flowNode=y);break;case 237:case 108:z.flowNode=y;break;case 81:return Po(z);case 212:case 213:const je=z;y&&at(je)&&(je.flowNode=y),Pne(je)&&kc(je),Ir(je)&&e.commonJsModuleIndicator&&Sg(je)&&!_3(l,"module")&&Me(e.locals,void 0,je.expression,134217729,111550);break;case 227:switch(lc(z)){case 1:qt(z);break;case 2:er(z);break;case 3:Yl(z.left,z);break;case 6:rl(z);break;case 4:es(z);break;case 5:const So=z.left.expression;if(Ir(z)&&Je(So)){const Vo=_3(l,So.escapedText);if(i6(Vo?.valueDeclaration)){es(z);break}}Td(z);break;case 0:break;default:C.fail("Unknown binary expression special property assignment kind")}return fa(z);case 300:return os(z);case 221:return Ja(z);case 226:return Ae(z);case 225:return $(z);case 255:return ft(z);case 257:return Ht(z);case 198:_=!0;return;case 183:break;case 169:return ti(z);case 170:return pt(z);case 261:return ae(z);case 209:return z.flowNode=y,ae(z);case 173:case 172:return el(z);case 304:case 305:return Wn(z,4,0);case 307:return Wn(z,8,900095);case 180:case 181:case 182:return xn(z,131072,0);case 175:case 174:return Wn(z,8192|(z.questionToken?16777216:0),bm(z)?0:103359);case 263:return tn(z);case 177:return xn(z,16384,0);case 178:return Wn(z,32768,46015);case 179:return Wn(z,65536,78783);case 185:case 318:case 324:case 186:return jl(z);case 188:case 323:case 201:return Ac(z);case 333:return tr(z);case 211:return Cl(z);case 219:case 220:return an(z);case 214:switch(lc(z)){case 7:return sf(z);case 8:return ze(z);case 9:return Ol(z);case 0:break;default:return C.fail("Unknown call expression assignment declaration kind")}Ir(z)&&Eh(z);break;case 232:case 264:return q=!0,Ef(z);case 265:return Ec(z,64,788872);case 266:return Ec(z,524288,788968);case 267:return h_(z);case 268:return la(z);case 293:return ks(z);case 292:return lo(z,4,0);case 272:case 275:case 277:case 282:return xn(z,2097152,2097152);case 271:return Sh(z);case 274:return af(z);case 279:return Ld(z);case 278:return wl(z);case 308:return To(z.statements),_c();case 242:if(!qR(z.parent))return;case 269:return To(z.statements);case 342:if(z.parent.kind===324)return pt(z);if(z.parent.kind!==323)break;case 349:const yo=z,na=yo.isBracketed||yo.typeExpression&&yo.typeExpression.type.kind===317?16777220:4;return xn(yo,na,0);case 347:case 339:case 341:return(d||(d=[])).push(z);case 340:return Bn(z.typeExpression);case 352:return(h||(h=[])).push(z)}}function el(z){const je=Zu(z),kt=je?98304:4,Fn=je?13247:0;return Wn(z,kt|(z.questionToken?16777216:0),Fn)}function Ac(z){return Go(z,2048,"__type")}function _c(){if(ia(e),Vc(e))Js();else if(Vf(e)){Js();const z=e.symbol;Me(e.symbol.exports,e.symbol,e,4,-1),e.symbol=z}}function Js(){Go(e,512,`"${Au(e.fileName)}"`)}function wl(z){if(!o.symbol||!o.symbol.exports)Go(z,111551,re(z));else{const je=Lk(z)?2097152:4,kt=Me(o.symbol.exports,o.symbol,z,je,-1);z.isExportEquals&&oM(kt,z)}}function Sh(z){vt(z.modifiers)&&e.bindDiagnostics.push(De(z,f.Modifiers_cannot_appear_here));const je=Xi(z.parent)?Vc(z.parent)?z.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;je?e.bindDiagnostics.push(De(z,je)):(e.symbol.globalExports=e.symbol.globalExports||da(),Me(e.symbol.globalExports,e.symbol,z,2097152,2097152))}function Ld(z){!o.symbol||!o.symbol.exports?Go(z,8388608,re(z)):z.exportClause?F_(z.exportClause)&&(ps(z.exportClause,z),Me(o.symbol.exports,o.symbol,z.exportClause,2097152,2097152)):Me(o.symbol.exports,o.symbol,z,8388608,0)}function af(z){z.name&&xn(z,2097152,2097152)}function lp(z){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=z,e.externalModuleIndicator||Js()),!0)}function ze(z){if(!lp(z))return;const je=$c(z.arguments[0],void 0,(kt,Fn)=>(Fn&&Ee(Fn,kt,67110400),Fn));je&&Me(je.exports,je,z,1048580,0)}function qt(z){if(!lp(z))return;const je=$c(z.left.expression,void 0,(kt,Fn)=>(Fn&&Ee(Fn,kt,67110400),Fn));if(je){const Fn=h6(z.right)&&(l1(z.left.expression)||Sg(z.left.expression))?2097152:1048580;ps(z.left,z),Me(je.exports,je,z.left,Fn,0)}}function er(z){if(!lp(z))return;const je=Sk(z.right);if(DV(je)||o===e&&$S(e,je))return;if(za(je)&&Hn(je.properties,Jd)){qe(je.properties,go);return}const kt=Lk(z)?2097152:1049092,Fn=Me(e.symbol.exports,e.symbol,z,kt|67108864,0);oM(Fn,z)}function go(z){Me(e.symbol.exports,e.symbol,z,69206016,0)}function es(z){if(C.assert(Ir(z)),Nr(z)&&qr(z.left)&&Qi(z.left.name)||qr(z)&&Qi(z.name))return;const kt=Su(z,!1,!1);switch(kt.kind){case 263:case 219:let Fn=kt.symbol;if(Nr(kt.parent)&&kt.parent.operatorToken.kind===64){const So=kt.parent.left;DS(So)&&Cb(So.expression)&&(Fn=cp(So.expression.expression,s))}Fn&&Fn.valueDeclaration&&(Fn.members=Fn.members||da(),cy(z)?ts(z,Fn,Fn.members):Me(Fn.members,Fn,z,67108868,0),Ee(Fn,Fn.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:const yo=kt.parent,na=ua(kt)?yo.symbol.exports:yo.symbol.members;cy(z)?ts(z,yo.symbol,na):Me(na,yo.symbol,z,67108868,0,!0);break;case 308:if(cy(z))break;kt.commonJsModuleIndicator?Me(kt.symbol.exports,kt.symbol,z,1048580,0):xn(z,1,111550);break;case 268:break;default:C.failBadSyntaxKind(kt)}}function ts(z,je,kt){Me(kt,je,z,4,0,!0,!0),ja(z,je)}function ja(z,je){je&&(je.assignmentDeclarationMembers||(je.assignmentDeclarationMembers=new Map)).set(ls(z),z)}function kc(z){z.expression.kind===110?es(z):DS(z)&&z.parent.parent.kind===308&&(Cb(z.expression)?Yl(z,z.parent):cd(z))}function rl(z){ps(z.left,z),ps(z.right,z),j_(z.left.expression,z.left,!1,!0)}function Ol(z){const je=cp(z.arguments[0].expression);je&&je.valueDeclaration&&Ee(je,je.valueDeclaration,32),Ru(z,je,!0)}function Yl(z,je){const kt=z.expression,Fn=kt.expression;ps(Fn,kt),ps(kt,z),ps(z,je),j_(Fn,z,!0,!0)}function sf(z){let je=cp(z.arguments[0]);const kt=z.parent.parent.kind===308;je=qp(je,z.arguments[0],kt,!1,!1),Ru(z,je,!1)}function Td(z){var je;const kt=cp(z.left.expression,l)||cp(z.left.expression,o);if(!Ir(z)&&!Lne(kt))return;const Fn=_D(z.left);if(!(Je(Fn)&&((je=_3(o,Fn.escapedText))==null?void 0:je.flags)&2097152))if(ps(z.left,z),ps(z.right,z),Je(z.left.expression)&&o===e&&$S(e,z.left.expression))qt(z);else if(cy(z)){Go(z,67108868,"__computed");const yo=qp(kt,z.left.expression,Zf(z.left),!1,!1);ja(z,yo)}else cd(ma(z.left,d1))}function cd(z){C.assert(!Je(z)),ps(z.expression,z),j_(z.expression,z,!1,!1)}function qp(z,je,kt,Fn,yo){return z?.flags&2097152||(kt&&!Fn&&(z=$c(je,z,(Vo,_l,Na)=>{if(_l)return Ee(_l,Vo,67110400),_l;{const dd=Na?Na.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=da());return Me(dd,Na,Vo,67110400,110735)}})),yo&&z&&z.valueDeclaration&&Ee(z,z.valueDeclaration,32)),z}function Ru(z,je,kt){if(!je||!kg(je))return;const Fn=kt?je.members||(je.members=da()):je.exports||(je.exports=da());let yo=0,na=0;Ls(TI(z))?(yo=8192,na=103359):ea(z)&&c1(z)&&(vt(z.arguments[2].properties,So=>{const Vo=wo(So);return!!Vo&&Je(Vo)&&Kr(Vo)==="set"})&&(yo|=65540,na|=78783),vt(z.arguments[2].properties,So=>{const Vo=wo(So);return!!Vo&&Je(Vo)&&Kr(Vo)==="get"})&&(yo|=32772,na|=46015)),yo===0&&(yo=4,na=0),Me(Fn,je,z,yo|67108864,na&-67108865)}function Zf(z){return Nr(z.parent)?wg(z.parent).parent.kind===308:z.parent.parent.kind===308}function j_(z,je,kt,Fn){let yo=cp(z,l)||cp(z,o);const na=Zf(je);yo=qp(yo,je.expression,na,kt,Fn),Ru(je,yo,kt)}function kg(z){if(z.flags&1072)return!0;const je=z.valueDeclaration;if(je&&ea(je))return!!TI(je);let kt=je?yi(je)?je.initializer:Nr(je)?je.right:qr(je)&&Nr(je.parent)?je.parent.right:void 0:void 0;if(kt=kt&&Sk(kt),kt){const Fn=Cb(yi(je)?je.name:Nr(je)?je.left:je);return!!GT(Nr(kt)&&(kt.operatorToken.kind===57||kt.operatorToken.kind===61)?kt.right:kt,Fn)}return!1}function wg(z){for(;Nr(z.parent);)z=z.parent;return z.parent}function cp(z,je=o){if(Je(z))return _3(je,z.escapedText);{const kt=cp(z.expression);return kt&&kt.exports&&kt.exports.get(ly(z))}}function $c(z,je,kt){if($S(e,z))return e.symbol;if(Je(z))return kt(z,cp(z),je);{const Fn=$c(z.expression,je,kt),yo=Ek(z);return Qi(yo)&&C.fail("unexpected PrivateIdentifier"),kt(yo,Fn&&Fn.exports&&Fn.exports.get(ly(z)),Fn)}}function Eh(z){!e.commonJsModuleIndicator&&np(z,!1)&&lp(z)}function Ef(z){if(z.kind===264)Ec(z,32,899503);else{const yo=z.name?z.name.escapedText:"__class";Go(z,32,yo),z.name&&fe.add(z.name.escapedText)}const{symbol:je}=z,kt=Xe(4194308,"prototype"),Fn=je.exports.get(kt.escapedName);Fn&&(z.name&&ps(z.name,z),e.bindDiagnostics.push(De(Fn.declarations[0],f.Duplicate_identifier_0,Fl(kt)))),je.exports.set(kt.escapedName,kt),kt.parent=je}function h_(z){return FT(z)?Ec(z,128,899967):Ec(z,256,899327)}function ae(z){if(q&&xs(z,z.name),!Zo(z.name)){const je=z.kind===261?z:z.parent.parent;Ir(z)&&RS(je)&&!wT(z)&&!(kT(z)&32)?xn(z,2097152,2097152):RG(z)?Ec(z,2,111551):HT(z)?xn(z,1,111551):xn(z,1,111550)}}function pt(z){if(!(z.kind===342&&o.kind!==324)&&(q&&!(z.flags&33554432)&&xs(z,z.name),Zo(z.name)?Go(z,1,"__"+z.parent.parameters.indexOf(z)):xn(z,1,111551),Lp(z,z.parent))){const je=z.parent.parent;Me(je.symbol.members,je.symbol,z,4|(z.questionToken?16777216:0),0)}}function tn(z){!e.isDeclarationFile&&!(z.flags&33554432)&&uM(z)&&(Z|=4096),dc(z),q?(Bs(z),Ec(z,16,110991)):xn(z,16,110991)}function an(z){!e.isDeclarationFile&&!(z.flags&33554432)&&uM(z)&&(Z|=4096),y&&(z.flowNode=y),dc(z);const je=z.name?z.name.escapedText:"__function";return Go(z,16,je)}function Wn(z,je,kt){return!e.isDeclarationFile&&!(z.flags&33554432)&&uM(z)&&(Z|=4096),y&&ZF(z)&&(z.flowNode=y),cy(z)?Go(z,je,"__computed"):xn(z,je,kt)}function ar(z){const je=Dn(z,kt=>kt.parent&&jS(kt.parent)&&kt.parent.extendsType===kt);return je&&je.parent}function ti(z){if(xm(z.parent)){const je=m6(z.parent);je?(C.assertNode(je,N_),je.locals??(je.locals=da()),Me(je.locals,void 0,z,262144,526824)):xn(z,262144,526824)}else if(z.parent.kind===196){const je=ar(z.parent);je?(C.assertNode(je,N_),je.locals??(je.locals=da()),Me(je.locals,void 0,z,262144,526824)):Go(z,262144,re(z))}else xn(z,262144,526824)}function Si(z){const je=yy(z);return je===1||je===2&&Nb(t)}function Yi(z){if(!(y.flags&1))return!1;if(y===ue&&(Q2(z)&&z.kind!==243||z.kind===264||$1e(z,t)||z.kind===268&&Si(z))&&(y=me,!t.allowUnreachableCode)){const kt=Nre(t)&&!(z.flags&33554432)&&(!cc(z)||!!(oy(z.declarationList)&7)||z.declarationList.declarations.some(Fn=>!!Fn.initializer));FHe(z,t,(Fn,yo)=>si(kt,Fn,yo,f.Unreachable_code_detected))}return!0}}function $1e(e,t){return e.kind===267&&(!FT(e)||Nb(t))}function FHe(e,t,r){if(ji(e)&&i(e)&&ta(e.parent)){const{statements:s}=e.parent,l=ZV(s,e);JB(l,i,(u,d)=>r(l[u],l[d-1]))}else r(e,e);function i(s){return!rc(s)&&!o(s)&&!(cc(s)&&!(oy(s)&7)&&s.declarationList.declarations.some(l=>!l.initializer))}function o(s){switch(s.kind){case 265:case 266:return!0;case 268:return yy(s)!==1;case 267:return!$1e(s,t);default:return!1}}}function $S(e,t){let r=0;const i=E2();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),l1(t)||Sg(t))return!0;if(Je(t)){const o=_3(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),od(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function BU(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(ZF(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return $o(e.parent)||nc(e.parent)?0:34}return 0}function _3(e,t){var r,i,o,s;const l=(i=(r=ni(e,N_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Xi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(ch(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}function Eae(e,t,r,i,o,s,l,u,d,_){return h;function h(y=()=>!0){const E=[],A=[];return{walkType:ve=>{try{return R(ve),{visitedTypes:nI(E),visitedSymbols:nI(A)}}finally{Ra(E),Ra(A)}},walkSymbol:ve=>{try{return q(ve),{visitedTypes:nI(E),visitedSymbols:nI(A)}}finally{Ra(E),Ra(A)}}};function R(ve){if(!(!ve||E[ve.id]||(E[ve.id]=ve,q(ve.symbol)))){if(ve.flags&524288){const K=ve,fe=K.objectFlags;fe&4&&N(ve),fe&32&&G(ve),fe&3&&J(ve),fe&24&&Z(K)}ve.flags&262144&&P(ve),ve.flags&3145728&&k(ve),ve.flags&4194304&&F(ve),ve.flags&8388608&&W(ve)}}function N(ve){R(ve.target),qe(_(ve),R)}function P(ve){R(u(ve))}function k(ve){qe(ve.types,R)}function F(ve){R(ve.type)}function W(ve){R(ve.objectType),R(ve.indexType),R(ve.constraint)}function G(ve){R(ve.typeParameter),R(ve.constraintType),R(ve.templateType),R(ve.modifiersType)}function j(ve){const oe=t(ve);oe&&R(oe.type),qe(ve.typeParameters,R);for(const K of ve.parameters)q(K);R(e(ve)),R(r(ve))}function J(ve){Z(ve),qe(ve.typeParameters,R),qe(i(ve),R),R(ve.thisType)}function Z(ve){const oe=o(ve);for(const K of oe.indexInfos)R(K.keyType),R(K.type);for(const K of oe.callSignatures)j(K);for(const K of oe.constructSignatures)j(K);for(const K of oe.properties)q(K)}function q(ve){if(!ve)return!1;const oe=Ta(ve);if(A[oe])return!1;if(A[oe]=ve,!y(ve))return!0;const K=s(ve);return R(K),ve.exports&&ve.exports.forEach(q),qe(ve.declarations,fe=>{if(fe.type&&fe.type.kind===187){const ue=fe.type,me=l(d(ue.exprName));q(me)}}),!1}}}var vy={};x(vy,{RelativePreference:()=>Q1e,countPathComponents:()=>v3,forEachFileNameOfModule:()=>iAe,getLocalModuleSpecifierBetweenFileNames:()=>UHe,getModuleSpecifier:()=>GHe,getModuleSpecifierPreferences:()=>Xw,getModuleSpecifiers:()=>tAe,getModuleSpecifiersWithCacheInfo:()=>nAe,getNodeModulesPackageName:()=>VHe,tryGetJSExtensionForFile:()=>VU,tryGetModuleSpecifiersFromCache:()=>jHe,tryGetRealFileNameForNonJsDeclarationFileName:()=>cAe,updateModuleSpecifier:()=>BHe});var zHe=Gh(e=>{try{let t=e.indexOf("/");if(t!==0)return new RegExp(e);const r=e.lastIndexOf("/");if(t===r)return new RegExp(e);for(;(t=e.indexOf("/",t+1))!==r;)if(e[t-1]!=="\\")return new RegExp(e);const i=e.substring(r+1).replace(/[^iu]/g,"");return e=e.substring(1,r),new RegExp(e,i)}catch{return}}),Q1e=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Q1e||{});function Xw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:r},i,o,s,l){const u=d();return{excludeRegexes:r,relativePreference:l!==void 0?nd(l)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:_=>{const h=jU(s,i,o),y=_!==h?d(_):u,E=su(o);if((_??h)===99&&3<=E&&E<=99)return KD(o,s.fileName)?[3,2]:[2];if(su(o)===1)return y===2?[2,1]:[1,2];const A=KD(o,s.fileName);switch(y){case 2:return A?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return A?[1,0,3,2]:[1,0,2];case 0:return A?[0,1,3,2]:[0,1,2];default:C.assertNever(y)}}};function d(_){if(l!==void 0){if(xg(l))return 2;if(nl(l,"/index"))return 1}return jre(t,_??jU(s,i,o),o,Tg(s)?s:void 0)}}function BHe(e,t,r,i,o,s,l={}){const u=Z1e(e,t,r,i,o,Xw({},o,e,t,s),{},l);if(u!==s)return u}function GHe(e,t,r,i,o,s={}){return Z1e(e,t,r,i,o,Xw({},o,e,t),{},s)}function VHe(e,t,r,i,o,s={}){const l=y3(t.fileName,i),u=oAe(l,r,i,o,e,s);return Ln(u,d=>xae(d,l,t,i,e,o,!0,s.overrideImportMode))}function Z1e(e,t,r,i,o,s,l,u={}){const d=y3(r,o),_=oAe(d,i,o,l,e,u);return Ln(_,h=>xae(h,d,t,o,e,l,void 0,u.overrideImportMode))||Aae(i,d,e,o,u.overrideImportMode||jU(t,o,e),s)}function jHe(e,t,r,i,o={}){const s=eAe(e,t,r,i,o);return s[1]&&{kind:s[0],moduleSpecifiers:s[1],computedWithoutCache:!1}}function eAe(e,t,r,i,o={}){var s;const l=tk(e);if(!l)return ie;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=u?.get(t.path,l.path,i,o);return[d?.kind,d?.moduleSpecifiers,l,d?.modulePaths,u]}function tAe(e,t,r,i,o,s,l={}){return nAe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function nAe(e,t,r,i,o,s,l={},u){let d=!1;const _=XHe(e,t);if(_)return{kind:"ambient",moduleSpecifiers:u&&g3(_,s.autoImportSpecifierExcludeRegexes)?ie:[_],computedWithoutCache:d};let[h,y,E,A,R]=eAe(e,i,o,s,l);if(y)return{kind:h,moduleSpecifiers:y,computedWithoutCache:d};if(!E)return{kind:void 0,moduleSpecifiers:ie,computedWithoutCache:d};d=!0,A||(A=aAe(y3(i.fileName,o),E.originalFileName,o,r,l));const N=HHe(A,r,i,o,s,l,u);return R?.set(i.path,E.path,s,l,N.kind,A,N.moduleSpecifiers),N}function UHe(e,t,r,i,o,s={}){const l=y3(e.fileName,i),u=s.overrideImportMode??e.impliedNodeFormat;return Aae(t,l,r,i,u,Xw(o,i,r,e))}function HHe(e,t,r,i,o,s={},l){const u=y3(r.fileName,i),d=Xw(o,i,t,r),_=Tg(r)&&qe(e,N=>qe(i.getFileIncludeReasons().get(Os(N.path,i.getCurrentDirectory(),u.getCanonicalFileName)),P=>{if(P.kind!==3||P.file!==r.path)return;const k=i.getModeForResolutionAtIndex(r,P.index),F=s.overrideImportMode??i.getDefaultResolutionModeForFile(r);if(k!==F&&k!==void 0&&F!==void 0)return;const W=pO(r,P.index).text;return d.relativePreference!==1||!nf(W)?W:void 0}));if(_)return{kind:void 0,moduleSpecifiers:[_],computedWithoutCache:!0};const h=vt(e,N=>N.isInNodeModules);let y,E,A,R;for(const N of e){const P=N.isInNodeModules?xae(N,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(P&&!(l&&g3(P,d.excludeRegexes))&&(y=Vn(y,P),N.isRedirect))return{kind:"node_modules",moduleSpecifiers:y,computedWithoutCache:!0};const k=Aae(N.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,d,N.isRedirect||!!P);!k||l&&g3(k,d.excludeRegexes)||(N.isRedirect?A=Vn(A,k):F9(k)?Vb(k)?R=Vn(R,k):E=Vn(E,k):(l||!h||N.isInNodeModules)&&(R=Vn(R,k)))}return E?.length?{kind:"paths",moduleSpecifiers:E,computedWithoutCache:!0}:A?.length?{kind:"redirect",moduleSpecifiers:A,computedWithoutCache:!0}:y?.length?{kind:"node_modules",moduleSpecifiers:y,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:R??ie,computedWithoutCache:!0}}function g3(e,t){return vt(t,r=>{var i;return!!((i=zHe(r))!=null&&i.test(e))})}function y3(e,t){e=bo(e,t.getCurrentDirectory());const r=Gd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ci(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function Aae(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l,excludeRegexes:u},d){const{baseUrl:_,paths:h,rootDirs:y}=r;if(d&&!h)return;const{sourceDirectory:E,canonicalSourceDirectory:A,getCanonicalFileName:R}=t,N=s(o),P=y&&QHe(y,e,E,R,N,r)||Yw(KE(uf(E,e,R)),N,r);if(!_&&!h&&!Qk(r)||l===0)return d?void 0:P;const k=bo(I6(r,i)||_,i.getCurrentDirectory()),F=Rae(e,k,R);if(!F)return d?void 0:P;const W=d?void 0:$He(e,E,r,i,o,eqe(N)),G=d||W===void 0?h&&sAe(F,h,N,k,R,i,r):void 0;if(d)return G;const j=W??(G===void 0&&_!==void 0?Yw(F,N,r):G);if(!j)return P;const J=g3(P,u),Z=g3(j,u);if(!J&&Z)return P;if(J&&!Z||l===1&&!nf(j))return j;if(l===3&&!nf(j)){const q=r.configFilePath?Os(ci(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ve=Os(e,q,R),oe=po(A,q),K=po(ve,q);if(oe&&!K||!oe&&K)return j;const fe=Iae(i,ci(ve)),ue=Iae(i,E),me=!m1(i);return qHe(fe,ue,me)?P:j}return dAe(j)||v3(P)e.fileExists(Qr(r,"package.json"))?r:void 0)}function iAe(e,t,r,i,o){var s,l;const u=dy(r),d=r.getCurrentDirectory(),_=r.isSourceOfProjectReferenceRedirect(t)?(s=r.getRedirectFromSourceFile(t))==null?void 0:s.outputDts:void 0,h=Os(t,d,u),y=r.redirectTargetsMap.get(h)||ie,A=[..._?[_]:ie,t,...y].map(F=>bo(F,d));let R=!Hn(A,wM);if(!i){const F=qe(A,W=>!(R&&wM(W))&&o(W,_===W));if(F)return F}const N=(l=r.getSymlinkCache)==null?void 0:l.call(r).getSymlinkedDirectoriesByRealpath(),P=bo(t,d);return N&&z_(r,ci(P),F=>{const W=N.get(qc(Os(F,d,u)));if(W)return G9(e,F,u)?!1:qe(A,G=>{if(!G9(G,F,u))return;const j=uf(F,G,u);for(const J of W){const Z=ub(J,j),q=o(Z,G===_);if(R=!0,q)return q}})})||(i?qe(A,F=>R&&wM(F)?void 0:o(F,F===_)):void 0)}function oAe(e,t,r,i,o,s={}){var l;const u=Os(e.importingSourceFileName,r.getCurrentDirectory(),dy(r)),d=Os(t,r.getCurrentDirectory(),dy(r)),_=(l=r.getModuleSpecifierCache)==null?void 0:l.call(r);if(_){const y=_.get(u,d,i,s);if(y?.modulePaths)return y.modulePaths}const h=aAe(e,t,r,o,s);return _&&_.setModulePaths(u,d,i,s,h),h}var JHe=["dependencies","peerDependencies","optionalDependencies"];function KHe(e){let t;for(const r of JHe){const i=e[r];i&&typeof i=="object"&&(t=ao(t,Bh(i)))}return t}function aAe(e,t,r,i,o){var s,l;const u=(s=r.getModuleResolutionCache)==null?void 0:s.call(r),d=(l=r.getSymlinkCache)==null?void 0:l.call(r);if(u&&d&&r.readFile&&!Vb(e.importingSourceFileName)){C.type(r);const y=dP(u.getPackageJsonInfoCache(),r,{}),E=uP(ci(e.importingSourceFileName),y);if(E){const A=KHe(E.contents.packageJsonContent);for(const R of A||ie){const N=w1(R,Qr(E.packageDirectory,"package.json"),i,r,u,void 0,o.overrideImportMode);d.setSymlinksFromResolution(N.resolvedModule)}}}const _=new Map;iAe(e.importingSourceFileName,t,r,!0,(y,E)=>{const A=Vb(y);_.set(y,{path:e.getCanonicalFileName(y),isRedirect:E,isInNodeModules:A})});const h=[];for(let y=e.canonicalSourceDirectory;_.size!==0;){const E=qc(y);let A;_.forEach(({path:N,isRedirect:P,isInNodeModules:k},F)=>{po(N,E)&&((A||(A=[])).push({path:F,isRedirect:P,isInNodeModules:k}),_.delete(F))}),A&&(A.length>1&&A.sort(rAe),h.push(...A));const R=ci(y);if(R===y)break;y=R}if(_.size){const y=Do(_.entries(),([E,{isRedirect:A,isInNodeModules:R}])=>({path:E,isRedirect:A,isInNodeModules:R}));y.length>1&&y.sort(rAe),h.push(...y)}return h}function XHe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>CG(l)&&(!IS(l)||!nd(jf(l.name))));if(i)return i.name.text;const s=Ei(e.declarations,l=>{var u,d,_,h;if(!mc(l))return;const y=N(l);if(!((u=y?.parent)!=null&&u.parent&&i_(y.parent)&&Tu(y.parent.parent)&&Xi(y.parent.parent.parent)))return;const E=(h=(_=(d=y.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:_.valueDeclaration)==null?void 0:h.expression;if(!E)return;const A=t.getSymbolAtLocation(E);if(!A)return;if((A?.flags&2097152?t.getAliasedSymbol(A):A)===l.symbol)return y.parent.parent;function N(P){for(;P.flags&8;)P=P.parent;return P}})[0];if(s)return s.name.text}function sAe(e,t,r,i,o,s,l){for(const d in t)for(const _ of t[d]){const h=ya(_),y=Rae(h,i,o)??h,E=y.indexOf("*"),A=r.map(R=>({ending:R,value:Yw(e,[R],l)}));if(Rg(y)&&A.push({ending:void 0,value:e}),E!==-1){const R=y.substring(0,E),N=y.substring(E+1);for(const{ending:P,value:k}of A)if(k.length>=R.length+N.length&&po(k,R)&&nl(k,N)&&u({ending:P,value:k})){const F=k.substring(R.length,k.length-N.length);if(!nf(F))return y1(d,F)}}else if(vt(A,R=>R.ending!==0&&y===R.value)||vt(A,R=>R.ending===0&&y===R.value&&u(R)))return d}function u({ending:d,value:_}){return d!==0||_===Yw(e,[d],l,s)}}function b3(e,t,r,i,o,s,l,u,d,_){if(typeof s=="string"){const h=!m1(t),y=()=>t.getCommonSourceDirectory(),E=d&&gH(r,e,h,y),A=d&&_H(r,e,h,y),R=bo(Qr(i,s),void 0),N=g1(r)?Au(r)+VU(r,e):void 0,P=_&&Gre(r);switch(u){case 0:if(N&&ry(N,R,h)===0||ry(r,R,h)===0||E&&ry(E,R,h)===0||A&&ry(A,R,h)===0)return{moduleFileToTry:o};break;case 1:if(P&&gm(r,R,h)){const G=uf(R,r,!1);return{moduleFileToTry:bo(Qr(Qr(o,s),G),void 0)}}if(N&&gm(R,N,h)){const G=uf(R,N,!1);return{moduleFileToTry:bo(Qr(Qr(o,s),G),void 0)}}if(!P&&gm(R,r,h)){const G=uf(R,r,!1);return{moduleFileToTry:bo(Qr(Qr(o,s),G),void 0)}}if(E&&gm(R,E,h)){const G=uf(R,E,!1);return{moduleFileToTry:Qr(o,G)}}if(A&&gm(R,A,h)){const G=dF(uf(R,A,!1),GU(A,e));return{moduleFileToTry:Qr(o,G)}}break;case 2:const k=R.indexOf("*"),F=R.slice(0,k),W=R.slice(k+1);if(P&&po(r,F,h)&&nl(r,W,h)){const G=r.slice(F.length,r.length-W.length);return{moduleFileToTry:y1(o,G)}}if(N&&po(N,F,h)&&nl(N,W,h)){const G=N.slice(F.length,N.length-W.length);return{moduleFileToTry:y1(o,G)}}if(!P&&po(r,F,h)&&nl(r,W,h)){const G=r.slice(F.length,r.length-W.length);return{moduleFileToTry:y1(o,G)}}if(E&&po(E,F,h)&&nl(E,W,h)){const G=E.slice(F.length,E.length-W.length);return{moduleFileToTry:y1(o,G)}}if(A&&po(A,F,h)&&nl(A,W,h)){const G=A.slice(F.length,A.length-W.length),j=y1(o,G),J=VU(A,e);return J?{moduleFileToTry:dF(j,J)}:void 0}break}}else{if(Array.isArray(s))return qe(s,h=>b3(e,t,r,i,o,h,l,u,d,_));if(typeof s=="object"&&s!==null){for(const h of Bh(s))if(h==="default"||l.indexOf(h)>=0||Jw(l,h)){const y=s[h],E=b3(e,t,r,i,o,y,l,u,d,_);if(E)return E}}}}function YHe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&m3(s)?qe(Bh(s),u=>{const d=bo(Qr(o,u),void 0),_=nl(u,"/")?1:u.includes("*")?2:0;return b3(e,t,r,i,d,s[u],l,_,!1,!1)}):b3(e,t,r,i,o,s,l,0,!1,!1)}function $He(e,t,r,i,o,s){var l,u,d;if(!i.readFile||!Qk(r))return;const _=Iae(i,t);if(!_)return;const h=Qr(_,"package.json"),y=(u=(l=i.getPackageJsonInfoCache)==null?void 0:l.call(i))==null?void 0:u.getPackageJsonInfo(h);if(sae(y)||!i.fileExists(h))return;const E=y?.contents.packageJsonContent||qk(i.readFile(h)),A=E?.imports;if(!A)return;const R=Gb(r,o);return(d=qe(Bh(A),N=>{if(!po(N,"#")||N==="#"||po(N,"#/"))return;const P=nl(N,"/")?1:N.includes("*")?2:0;return b3(r,i,e,_,N,A[N],R,P,!0,s)}))==null?void 0:d.moduleFileToTry}function QHe(e,t,r,i,o,s){const l=lAe(t,e,i);if(l===void 0)return;const u=lAe(r,e,i),d=fi(u,h=>Yt(l,y=>KE(uf(h,y,i)))),_=o9(d,iw);if(_)return Yw(_,o,s)}function xae({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,d,_){if(!s.fileExists||!s.readFile)return;const h=s4(e);if(!h)return;const E=Xw(u,s,l,o).getAllowedEndingsInPreferredOrder();let A=e,R=!1;if(!d){let G=h.packageRootIndex,j;for(;;){const{moduleFileToTry:J,packageRootPath:Z,blockedByExports:q,verbatimFromExports:ve}=W(G);if(su(l)!==1){if(q)return;if(ve)return J}if(Z){A=Z,R=!0;break}if(j||(j=J),G=e.indexOf(Xs,G+1),G===-1){A=Yw(j,E,l,s);break}}}if(t&&!R)return;const N=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),P=r(A.substring(0,h.topLevelNodeModulesIndex));if(!(po(i,P)||N&&po(r(N),P)))return;const k=A.substring(h.topLevelPackageNameIndex+1),F=pP(k);return su(l)===1&&F===k?void 0:F;function W(G){var j,J;const Z=e.substring(0,G),q=Qr(Z,"package.json");let ve=e,oe=!1;const K=(J=(j=s.getPackageJsonInfoCache)==null?void 0:j.call(s))==null?void 0:J.getPackageJsonInfo(q);if(d3(K)||K===void 0&&s.fileExists(q)){const fe=K?.contents.packageJsonContent||qk(s.readFile(q)),ue=_||jU(o,s,l);if($k(l)){const De=Z.substring(h.topLevelPackageNameIndex+1),Y=pP(De),Ne=Gb(l,ue),Xe=fe?.exports?YHe(l,s,e,Z,Y,fe.exports,Ne):void 0;if(Xe)return{...Xe,verbatimFromExports:!0};if(fe?.exports)return{moduleFileToTry:e,blockedByExports:!0}}const me=fe?.typesVersions?l3(fe.typesVersions):void 0;if(me){const De=e.slice(Z.length+1),Y=sAe(De,me.paths,E,Z,r,s,l);Y===void 0?oe=!0:ve=Qr(Z,Y)}const be=fe?.typings||fe?.types||fe?.main||"index.js";if(Bo(be)&&!(oe&&QV(aw(me.paths),be))){const De=Os(be,Z,r),Y=r(ve);if(Au(De)===Au(Y))return{packageRootPath:Z,moduleFileToTry:ve};if(fe?.type!=="module"&&!tc(Y,n4)&&po(Y,De)&&ci(Y)===Qy(De)&&Au(Dc(Y))==="index")return{packageRootPath:Z,moduleFileToTry:ve}}}else{const fe=r(ve.substring(h.packageRootIndex+1));if(fe==="index.d.ts"||fe==="index.js"||fe==="index.ts"||fe==="index.tsx")return{moduleFileToTry:ve,packageRootPath:Z}}return{moduleFileToTry:ve}}}function ZHe(e,t){if(!e.fileExists)return;const r=Yo(DM({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 lAe(e,t,r){return Ei(t,i=>{const o=Rae(e,i,r);return o!==void 0&&dAe(o)?void 0:o})}function Yw(e,t,r,i){if(tc(e,[".json",".mjs",".cjs"]))return e;const o=Au(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if(tc(e,[".mts",".cts"])&&l!==-1&&l_===0||_===1);return d!==-1&&d-1&&t(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))(HU||{}),Cae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),qU=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(qU||{}),JU=(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))(JU||{}),tqe=$W(_Ae,rqe),KU=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),hAe=class{};function nqe(){this.flags=0}function ls(e){return e.id||(e.id=pAe,pAe++),e.id}function Ta(e){return e.id||(e.id=uAe,uAe++),e.id}function XU(e,t){const r=yy(e);return r===1||t&&r===2}function Nae(e){var t=[],r=n=>{t.push(n)},i,o,s=Dd.getSymbolConstructor(),l=Dd.getTypeConstructor(),u=Dd.getSignatureConstructor(),d=0,_=0,h=0,y=0,E=0,A=0,R,N,P=!1,k=da(),F=[1],W=e.getCompilerOptions(),G=Va(W),j=Eu(W),J=!!W.experimentalDecorators,Z=Zk(W),q=jV(W),ve=WI(W),oe=Hd(W,"strictNullChecks"),K=Hd(W,"strictFunctionTypes"),fe=Hd(W,"strictBindCallApply"),ue=Hd(W,"strictPropertyInitialization"),me=Hd(W,"strictBuiltinIteratorReturn"),be=Hd(W,"noImplicitAny"),De=Hd(W,"noImplicitThis"),Y=Hd(W,"useUnknownInCatchVariables"),Ne=W.exactOptionalPropertyTypes,Xe=!!W.noUncheckedSideEffectImports,Ee=B_t(),re=Abt(),Te=Jz(),Me=kle(W,Te.syntacticBuilderResolver),Be=sie({evaluateElementAccessExpression:mvt,evaluateEntityNameExpression:h7e}),lt=da(),ce=Ua(4,"undefined");ce.declarations=[];var Ce=Ua(1536,"globalThis",8);Ce.exports=lt,Ce.declarations=[],lt.set(Ce.escapedName,Ce);var ye=Ua(4,"arguments"),Ue=Ua(4,"require"),Ge=W.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",We=!W.verbatimModuleSyntax,at,Wt,cn=0,gn,Kn=0,gt=dj({compilerOptions:W,requireSymbol:Ue,argumentsSymbol:ye,globals:lt,getSymbolOfDeclaration:Wr,error:Ze,getRequiresScopeChangeCache:gE,setRequiresScopeChangeCache:PC,lookup:Ed,onPropertyWithInvalidInitializer:dL,onFailedToResolveSymbol:zr,onSuccessfullyResolvedSymbol:Nu}),en=dj({compilerOptions:W,requireSymbol:Ue,argumentsSymbol:ye,globals:lt,getSymbolOfDeclaration:Wr,error:Ze,getRequiresScopeChangeCache:gE,setRequiresScopeChangeCache:PC,lookup:sht});const or={getNodeCount:()=>bu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>bu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>bu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,_),getTypeCount:()=>d,getInstantiationCount:()=>h,getRelationCacheSizes:()=>({assignable:Xd.size,identity:Yd.size,subtype:J_.size,strictSubtype:ul.size}),isUndefinedSymbol:n=>n===ce,isArgumentsSymbol:n=>n===ye,isUnknownSymbol:n=>n===ne,getMergedSymbol:as,symbolIsValue:An,getDiagnostics:E7e,getGlobalDiagnostics:zvt,getRecursionIdentity:jY,getUnmatchedProperties:ige,getTypeOfSymbolAtLocation:(n,a)=>{const c=jo(a);return c?yft(n,c):nt},getTypeOfSymbol:_r,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=jo(n,Zi);return c===void 0?C.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(C.assert(Lp(c,c.parent)),iA(c,Pl(a)))},getDeclaredTypeOfSymbol:Ks,getPropertiesOfType:Ts,getPropertyOfType:(n,a)=>Ea(n,Pl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const p=jo(c);if(!p)return;const m=Pl(a),v=G5(m,p);return v?I$(n,v):void 0},getTypeOfPropertyOfType:(n,a)=>_n(n,Pl(a)),getIndexInfoOfType:(n,a)=>Jg(n,a===0?yt:Bt),getIndexInfosOfType:Qd,getIndexInfosOfIndexSymbol:vY,getSignaturesOfType:ra,getIndexTypeOfType:(n,a)=>K0(n,a===0?yt:Bt),getIndexType:n=>E_(n),getBaseTypes:ih,getBaseTypeOfLiteralType:jy,getWidenedType:ef,getWidenedLiteralType:tS,fillMissingTypeArguments:Vv,getTypeFromTypeNode:n=>{const a=jo(n,Ci);return a?Ji(a):nt},getParameterType:Oh,getParameterIdentifierInfoAtPosition:t_t,getPromisedTypeOfPromise:yW,getAwaitedType:n=>gR(n),getReturnTypeOfSignature:fs,isNullableType:B5,getNullableType:E5,getNonNullableType:Uy,getNonOptionalType:JY,getTypeArguments:ol,typeToTypeNode:Te.typeToTypeNode,typePredicateToTypePredicateNode:Te.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:Te.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Te.signatureToSignatureDeclaration,symbolToEntityName:Te.symbolToEntityName,symbolToExpression:Te.symbolToExpression,symbolToNode:Te.symbolToNode,symbolToTypeParameterDeclarations:Te.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Te.symbolToParameterDeclaration,typeParameterToDeclaration:Te.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=jo(n);return c?Bvt(c,a):[]},getSymbolAtLocation:n=>{const a=jo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=jo(n);return a?Kvt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=jo(n);return a?Xvt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=jo(n,lu);return a?Yvt(a):void 0},getExportSymbolOfSymbol(n){return as(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=jo(n);return a?vR(a):nt},getTypeOfAssignmentPattern:n=>{const a=jo(n,HN);return a&&tQ(a)||nt},getPropertySymbolOfDestructuringAssignment:n=>{const a=jo(n,Je);return a?$vt(a):void 0},signatureToString:(n,a,c,p)=>uT(n,jo(a),c,p),typeToString:(n,a,c)=>sr(n,jo(a),c),symbolToString:(n,a,c,p)=>co(n,jo(a),c,p),typePredicateToString:(n,a,c)=>Y_(n,jo(a),c),writeSignature:(n,a,c,p,m,v,I,w)=>uT(n,jo(a),c,p,m,v,I,w),writeType:(n,a,c,p,m,v,I)=>sr(n,jo(a),c,p,m,v,I),writeSymbol:(n,a,c,p,m)=>co(n,jo(a),c,p,m),writeTypePredicate:(n,a,c,p)=>Y_(n,jo(a),c,p),getAugmentedPropertiesOfType:Jye,getRootSymbols:M7e,getSymbolOfExpando:M$,getContextualType:(n,a)=>{const c=jo(n,St);if(c)return a&4?Zr(c,()=>Ku(c,a)):Ku(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=jo(n,ay);return a?kge(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=jo(n,TS);return c&&Mge(c,a)},getContextualTypeForJsxAttribute:n=>{const a=jo(n,MF);return a&&q6e(a,void 0)},isContextSensitive:Mf,getTypeOfPropertyOfContextualType:rS,getFullyQualifiedName:Pv,getResolvedSignature:(n,a,c)=>xi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:so,getResolvedSignatureForSignatureHelp:(n,a,c)=>zt(n,()=>xi(n,a,c,16)),getExpandedParameters:C8e,hasEffectiveRestParameter:ig,containsArgumentsReference:Yhe,getConstantValue:n=>{const a=jo(n,W7e);return a?iQ(a):void 0},isValidPropertyAccess:(n,a)=>{const c=jo(n,Nte);return!!c&&dht(c,Pl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const p=jo(n,qr);return!!p&&E4e(p,a,c)},getSignatureFromDeclaration:n=>{const a=jo(n,$o);return a?Nf(a):void 0},isImplementationOfOverload:n=>{const a=jo(n,$o);return a?w7e(a):void 0},getImmediateAliasedSymbol:y$,getAliasedSymbol:pd,getEmitResolver:cL,requiresAddingImplicitUndefined:fB,getExportsOfModule:Kx,getExportsAndPropertiesOfModule:WC,forEachExportAndPropertyOfModule:Xx,getSymbolWalker:Eae(Oct,am,fs,ih,Mh,_r,_u,Ju,Ou,ol),getAmbientModules:pTt,getJsxIntrinsicTagNamesAt:Umt,isOptionalParameter:n=>{const a=jo(n,Zi);return a?O8(a):!1},tryGetMemberInModuleExports:(n,a)=>fA(Pl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>Yx(Pl(n),a),tryFindAmbientModule:n=>X8e(n,!0),getApparentType:Mu,getUnionType:pi,isTypeAssignableTo:sa,createAnonymousType:Sl,createSignature:T_,createSymbol:Ua,createIndexInfo:Kg,getAnyType:()=>He,getStringType:()=>yt,getStringLiteralType:Ip,getNumberType:()=>Bt,getNumberLiteralType:Ph,getBigIntType:()=>gr,getBigIntLiteralType:u5,getUnknownType:()=>Nt,createPromiseType:Y5,createArrayType:Zd,getElementTypeOfArrayType:S5,getBooleanType:()=>Vt,getFalseType:n=>n?tr:Jn,getTrueType:n=>n?mt:Mt,getVoidType:()=>In,getUndefinedType:()=>ge,getNullType:()=>Kt,getESSymbolType:()=>Qt,getNeverType:()=>yn,getNonPrimitiveType:()=>wn,getOptionalType:()=>xt,getPromiseType:()=>o5(!1),getPromiseLikeType:()=>vWe(!1),getAnyAsyncIterableType:()=>{const n=a5(!1);if(n!==Zt)return Wy(n,[He,He,He])},isSymbolAccessible:dT,isArrayType:lm,isTupleType:Xa,isArrayLikeType:Hv,isEmptyAnonymousObjectType:rg,isTypeInvalidDueToUnionDiscriminant:gct,getExactOptionalProperties:qut,getAllPossiblePropertiesOfTypes:yct,getSuggestedSymbolForNonexistentProperty:Jge,getSuggestedSymbolForNonexistentJSXAttribute:v4e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>T4e(n,Pl(a),c),getSuggestedSymbolForNonexistentModule:Kge,getSuggestedSymbolForNonexistentClassMember:y4e,getBaseConstraintOfType:kd,getDefaultFromTypeParameter:n=>n&&n.flags&262144?RE(n):void 0,resolveName(n,a,c,p){return gt(a,Pl(n),c,void 0,!1,p)},getJsxNamespace:n=>Vi($m(n)),getJsxFragmentFactory:n=>{const a=Qye(n);return a&&Vi(Ou(a).escapedText)},getAccessibleSymbolChain:wv,getTypePredicateOfSignature:am,resolveExternalModuleName:n=>{const a=jo(n,St);return a&&mu(a,a,!0)},resolveExternalModuleSymbol:Ap,tryGetThisTypeAt:(n,a,c)=>{const p=jo(n);return p&&Rge(p,a,c)},getTypeArgumentConstraint:n=>{const a=jo(n,Ci);return a&&Sgt(a)},getSuggestionDiagnostics:(n,a)=>{const c=jo(n,Xi)||C.fail("Could not determine parsed source file.");if(bD(c,W,e))return ie;let p;try{return i=a,Hye(c),C.assert(!!(Vr(c).flags&1)),p=Xr(p,tA.getDiagnostics(c.fileName)),G3e(S7e(c),(m,v,I)=>{!yI(m)&&!T7e(v,!!(m.flags&33554432))&&(p||(p=[])).push({...I,category:2})}),p||ie}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(or)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Ma,isDeclarationVisible:$_,isPropertyAccessible:Yge,getTypeOnlyAliasDeclaration:Rh,getMemberOverrideModifierStatus:rvt,isTypeParameterPossiblyReferenced:m5,typeHasCallOrConstructSignatures:nQ,getSymbolFlags:fp,getTypeArgumentsForResolvedSignature:Ni,isLibType:BC};function Ni(n){if(n.mapper!==void 0)return Gy((n.target||n).typeParameters,n.mapper)}function so(n,a){const c=new Set,p=[];Zr(a,()=>xi(n,p,void 0,0));for(const m of p)c.add(m);p.length=0,zt(a,()=>xi(n,p,void 0,0));for(const m of p)c.add(m);return Do(c)}function zt(n,a){if(n=Dn(n,pG),n){const c=[],p=[];for(;n;){const v=Vr(n);if(c.push([v,v.resolvedSignature]),v.resolvedSignature=void 0,Pb(n)){const I=Jr(Wr(n)),w=I.type;p.push([I,w]),I.type=void 0}n=Dn(n.parent,pG)}const m=a();for(const[v,I]of c)v.resolvedSignature=I;for(const[v,I]of p)v.type=I;return m}return a()}function Zr(n,a){const c=Dn(n,TS);if(c){let m=n;do Vr(m).skipDirectInference=!0,m=m.parent;while(m&&m!==c)}P=!0;const p=zt(n,a);if(P=!1,c){let m=n;do Vr(m).skipDirectInference=void 0,m=m.parent;while(m&&m!==c)}return p}function xi(n,a,c,p){const m=jo(n,TS);at=c;const v=m?oN(m,a,p):void 0;return at=void 0,v}var Pi=new Map,Pr=new Map,Mi=new Map,$e=new Map,At=new Map,hn=new Map,dr=new Map,ri=new Map,ai=new Map,qi=new Map,Qo=new Map,Ia=new Map,Pn=new Map,Uo=new Map,ot=new Map,Ft=[],le=new Map,_t=new Set,ne=Ua(4,"unknown"),Fe=Ua(0,"__resolving__"),it=new Map,dt=new Map,Lt=new Set,He=wi(1,"any"),Rt=wi(1,"any",262144,"auto"),It=wi(1,"any",void 0,"wildcard"),Ot=wi(1,"any",void 0,"blocked string"),nt=wi(1,"error"),Jt=wi(1,"unresolved"),Tr=wi(1,"any",65536,"non-inferrable"),Oe=wi(1,"intrinsic"),Nt=wi(2,"unknown"),ge=wi(32768,"undefined"),B=oe?ge:wi(32768,"undefined",65536,"widening"),Ie=wi(32768,"undefined",void 0,"missing"),te=Ne?Ie:ge,xt=wi(32768,"undefined",void 0,"optional"),Kt=wi(65536,"null"),Le=oe?Kt:wi(65536,"null",65536,"widening"),yt=wi(4,"string"),Bt=wi(8,"number"),gr=wi(64,"bigint"),tr=wi(512,"false",void 0,"fresh"),Jn=wi(512,"false"),mt=wi(512,"true",void 0,"fresh"),Mt=wi(512,"true");mt.regularType=Mt,mt.freshType=mt,Mt.regularType=Mt,Mt.freshType=mt,tr.regularType=Jn,tr.freshType=tr,Jn.regularType=Jn,Jn.freshType=tr;var Vt=pi([Jn,Mt]),Qt=wi(4096,"symbol"),In=wi(16384,"void"),yn=wi(131072,"never"),wt=wi(131072,"never",262144,"silent"),En=wi(131072,"never",void 0,"implicit"),xn=wi(131072,"never",void 0,"unreachable"),wn=wi(67108864,"object"),ln=pi([yt,Bt]),Ri=pi([yt,Bt,Qt]),ia=pi([Bt,gr]),la=pi([yt,Bt,Vt,gr,Kt,ge]),zo=RA(["",""],[Bt]),jl=f5(n=>n.flags&262144?yut(n):n,()=>"(restrictive mapper)"),Cl=f5(n=>n.flags&262144?It:n,()=>"(permissive mapper)"),ks=wi(131072,"never",void 0,"unique literal"),lo=f5(n=>n.flags&262144?ks:n,()=>"(unique literal mapper)"),Go,Ec=f5(n=>(Go&&(n===Bs||n===Ae||n===$)&&Go(!0),n),()=>"(unmeasurable reporter)"),Zs=f5(n=>(Go&&(n===Bs||n===Ae||n===$)&&Go(!1),n),()=>"(unreliable reporter)"),Da=Sl(void 0,k,ie,ie,ie),ic=Sl(void 0,k,ie,ie,ie);ic.objectFlags|=2048;var Sf=Sl(void 0,k,ie,ie,ie);Sf.objectFlags|=141440;var Po=Ua(2048,"__type");Po.members=da();var fa=Sl(Po,k,ie,ie,ie),os=Sl(void 0,k,ie,ie,ie),Ja=oe?pi([ge,Kt,os]):Nt,Zt=Sl(void 0,k,ie,ie,ie);Zt.instantiations=new Map;var xs=Sl(void 0,k,ie,ie,ie);xs.objectFlags|=262144;var Xl=Sl(void 0,k,ie,ie,ie),dc=Sl(void 0,k,ie,ie,ie),bd=Sl(void 0,k,ie,ie,ie),Bs=Hu(),Ae=Hu();Ae.constraint=Bs;var $=Hu(),ft=Hu(),Ht=Hu();Ht.constraint=ft;var fn=W8(1,"<>",0,He),ur=T_(void 0,void 0,void 0,ie,He,void 0,0,0),si=T_(void 0,void 0,void 0,ie,nt,void 0,0,0),Dr=T_(void 0,void 0,void 0,ie,He,void 0,0,0),Bn=T_(void 0,void 0,void 0,ie,wt,void 0,0,0),no=Kg(Bt,yt,!0),To=Kg(yt,He,!1),Ps=new Map,Ca={get yieldType(){return C.fail("Not supported")},get returnType(){return C.fail("Not supported")},get nextType(){return C.fail("Not supported")}},el=ET(He,He,He),Ac=ET(wt,wt,wt),_c={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:$ct,getGlobalIterableType:a5,getGlobalIterableIteratorType:bWe,getGlobalIteratorObjectType:Zct,getGlobalGeneratorType:edt,getGlobalBuiltinIteratorTypes:Qct,resolveIterationType:(n,a)=>gR(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Js={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:tdt,getGlobalIterableType:RY,getGlobalIterableIteratorType:TWe,getGlobalIteratorObjectType:rdt,getGlobalGeneratorType:idt,getGlobalBuiltinIteratorTypes:ndt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},wl,Sh=new Map,Ld=new Map,af,lp,ze,qt,er,go,es,ts,ja,kc,rl,Ol,Yl,sf,Td,cd,qp,Ru,Zf,j_,kg,wg,cp,$c,Eh,Ef,h_,ae,pt,tn,an,Wn,ar,ti,Si,Yi,z,je,kt,Fn,yo,na,So,Vo,_l,Na,dd,Jp,Af,em,Iy,Ev,ju,U_,Ah,Mm,Yb,Ye,ht,Xt,Rn,Qn=new Map,Lr=0,Yn=0,cr=0,Wi=!1,xo=0,_i,Ro,$i,gl=[],dp=[],Pm=[],Sd=0,Lm=[],Kp=[],S0=[],__=0,H_=[],E0=[],q_=0,RC=Ip(""),sL=Ph(0),DC=u5({negative:!1,base10Value:"0"}),Og=[],A0=[],Y1=[],Av=0,$1=!1,Lx=0,lL=10,Q1=[],kx=[],I0=[],CC=[],Z1=[],wx=[],pE=[],$b=[],Ox=[],Wx=[],fE=[],Qb=[],Iv=[],xy=[],Ry=[],Dy=[],Zb=[],x0=[],eA=[],R0=0,rs=hM(),tA=hM(),NC=$d(),Cy,Ny,J_=new Map,ul=new Map,Xd=new Map,up=new Map,Yd=new Map,D0=new Map,Du=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",W.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Ibt(),or;function K_(n){return!qr(n)||!Je(n.name)||!qr(n.expression)&&!Je(n.expression)?!1:Je(n.expression)?Kr(n.expression)==="Symbol"&&_u(n.expression)===(YC("Symbol",1160127,void 0)||ne):Je(n.expression.expression)?Kr(n.expression.name)==="Symbol"&&Kr(n.expression.expression)==="globalThis"&&_u(n.expression.expression)===Ce:!1}function Uu(n){return n?ot.get(n):void 0}function km(n,a){return n&&ot.set(n,a),a}function $m(n){if(n){const a=zn(n);if(a)if(Km(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const m=No(c)?c[0]:c;if(a.localJsxFragmentFactory=sx(m.arguments.factory,G),st(a.localJsxFragmentFactory,N0,ku),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Ou(a.localJsxFragmentFactory).escapedText}const p=Qye(n);if(p)return a.localJsxFragmentFactory=p,a.localJsxFragmentNamespace=Ou(p).escapedText}else{const c=C0(a);if(c)return a.localJsxNamespace=c}}return Cy||(Cy="React",W.jsxFactory?(Ny=sx(W.jsxFactory,G),st(Ny,N0),Ny&&(Cy=Ou(Ny).escapedText)):W.reactNamespace&&(Cy=Pl(W.reactNamespace))),Ny||(Ny=L.createQualifiedName(L.createIdentifier(Vi(Cy)),"createElement")),Cy}function C0(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=No(a)?a[0]:a;if(n.localJsxFactory=sx(c.arguments.factory,G),st(n.localJsxFactory,N0,ku),n.localJsxFactory)return n.localJsxNamespace=Ou(n.localJsxFactory).escapedText}}function N0(n){return mh(n,-1,-1),On(n,N0,void 0)}function cL(n,a,c){return c||E7e(n,a),re}function MC(n,a,...c){const p=n?Ar(n,a,...c):Dl(a,...c),m=rs.lookup(p);return m||(rs.add(p),p)}function xv(n,a,c,...p){const m=Ze(a,c,...p);return m.skippedOn=n,m}function mE(n,a,...c){return n?Ar(n,a,...c):Dl(a,...c)}function Ze(n,a,...c){const p=mE(n,a,...c);return rs.add(p),p}function nA(n){const c=zn(n).fileName;return tc(c,[".cts",".cjs"])?f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function Wg(n,a){n?rs.add(a):tA.add({...a,category:2})}function Qm(n,a,c,...p){if(a.pos<0||a.end<0){if(!n)return;const m=zn(a);Wg(n,"message"in c?zc(m,0,0,c,...p):WG(m,c));return}Wg(n,"message"in c?Ar(a,c,...p):bg(zn(a),a,c))}function Rv(n,a,c,...p){const m=Ze(n,c,...p);if(a){const v=Ar(n,f.Did_you_forget_to_use_await);pa(m,v)}return m}function eT(n,a){const c=Array.isArray(n)?qe(n,Z9):Z9(n);return c&&pa(a,Ar(c,f.The_declaration_was_marked_as_deprecated_here)),tA.add(a),a}function Cu(n){const a=Qc(n);return a&&Qe(n.declarations)>1?a.flags&64?vt(n.declarations,Ih):Hn(n.declarations,Ih):!!n.valueDeclaration&&Ih(n.valueDeclaration)||Qe(n.declarations)&&Hn(n.declarations,Ih)}function Ih(n){return!!(zE(n)&536870912)}function wm(n,a,c){const p=Ar(n,f._0_is_deprecated,c);return eT(a,p)}function M0(n,a,c,p){const m=c?Ar(n,f.The_signature_0_of_1_is_deprecated,p,c):Ar(n,f._0_is_deprecated,p);return eT(a,m)}function Ua(n,a,c){_++;const p=new s(n|33554432,a);return p.links=new hAe,p.links.checkFlags=c||0,p}function If(n,a){const c=Ua(1,n);return c.links.type=a,c}function Dv(n,a){const c=Ua(4,n);return c.links.type=a,c}function rA(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 My(n,a){a.mergeId||(a.mergeId=fAe,fAe++),Q1[a.mergeId]=n}function hE(n){const a=Ua(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)),My(a,n),a}function tm(n,a,c=!1){if(!(n.flags&rA(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const v=gc(n);if(v===ne)return a;if(!(v.flags&rA(a.flags))||(a.flags|v.flags)&67108864)n=hE(v);else return p(n,a),a}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&oM(n,a.valueDeclaration),Xr(n.declarations,a.declarations),a.members&&(n.members||(n.members=da()),g_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=da()),g_(n.exports,a.exports,c,n)),c||My(n,a)}else n.flags&1024?n!==Ce&&Ze(a.declarations&&wo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,co(n)):p(n,a);return n;function p(v,I){const w=!!(v.flags&384||I.flags&384),U=!!(v.flags&2||I.flags&2),H=w?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:U?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Q=I.declarations&&zn(I.declarations[0]),xe=v.declarations&&zn(v.declarations[0]),Se=KN(Q,W.checkJs),et=KN(xe,W.checkJs),Tt=co(I);if(Q&&xe&&wl&&!w&&Q!==xe){const Dt=ry(Q.path,xe.path)===-1?Q:xe,$t=Dt===Q?xe:Q,Tn=Of(wl,`${Dt.path}|${$t.path}`,()=>({firstFile:Dt,secondFile:$t,conflictingSymbols:new Map})),nr=Of(Tn.conflictingSymbols,Tt,()=>({isBlockScoped:U,firstFileLocations:[],secondFileLocations:[]}));Se||m(nr.firstFileLocations,I),et||m(nr.secondFileLocations,v)}else Se||Fg(I,H,Tt,v),et||Fg(v,H,Tt,I)}function m(v,I){if(I.declarations)for(const w of I.declarations)Ff(v,w)}}function Fg(n,a,c,p){qe(n.declarations,m=>{P0(m,a,c,p.declarations)})}function P0(n,a,c,p){const m=(GT(n,!1)?HG(n):wo(n))||n,v=MC(m,a,c);for(const I of p||ie){const w=(GT(I,!1)?HG(I):wo(I))||I;if(w===m)continue;v.relatedInformation=v.relatedInformation||[];const U=Ar(w,f._0_was_also_declared_here,c),H=Ar(w,f.and_here);Qe(v.relatedInformation)>=5||vt(v.relatedInformation,Q=>IM(Q,H)===0||IM(Q,U)===0)||pa(v,Qe(v.relatedInformation)?H:U)}}function Cv(n,a){if(!n?.size)return a;if(!a?.size)return n;const c=da();return g_(c,n),g_(c,a),c}function g_(n,a,c=!1,p){a.forEach((m,v)=>{const I=n.get(v),w=I?tm(I,m,c):as(m);p&&I&&(w.parent=p),n.set(v,w)})}function _E(n){var a,c,p;const m=n.parent;if(((a=m.symbol.declarations)==null?void 0:a[0])!==m){C.assert(m.symbol.declarations.length>1);return}if(L_(m))g_(lt,m.symbol.exports);else{const v=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let I=Ep(n,n,v,!1,!0);if(!I)return;if(I=Ap(I),I.flags&1920)if(vt(lp,w=>I===w.symbol)){const w=tm(m.symbol,I,!0);ze||(ze=new Map),ze.set(n.text,w)}else{if((c=I.exports)!=null&&c.get("__export")&&((p=m.symbol.exports)!=null&&p.size)){const w=whe(I,"resolvedExports");for(const[U,H]of Do(m.symbol.exports.entries()))w.has(U)&&!I.exports.has(U)&&tm(w.get(U),H)}tm(I,m.symbol)}else Ze(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(){const n=ce.escapedName,a=lt.get(n);a?qe(a.declarations,c=>{zI(c)||rs.add(Ar(c,f.Declaration_name_conflicts_with_built_in_global_identifier_0,Vi(n)))}):lt.set(n,ce)}function Jr(n){if(n.flags&33554432)return n.links;const a=Ta(n);return kx[a]??(kx[a]=new hAe)}function Vr(n){const a=ls(n);return I0[a]||(I0[a]=new nqe)}function Ed(n,a,c){if(c){const p=as(n.get(a));if(p&&(p.flags&c||p.flags&2097152&&fp(p)&c))return p}}function iA(n,a){const c=n.parent,p=n.parent.parent,m=Ed(c.locals,a,111551),v=Ed(Z_(p.symbol),a,111551);return m&&v?[m,v]:C.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Py(n,a){const c=zn(n),p=zn(a),m=dh(n);if(c!==p){if(j&&(c.externalModuleIndicator||p.externalModuleIndicator)||!W.outFile||DI(a)||n.flags&33554432||I(a,n))return!0;const H=e.getSourceFiles();return H.indexOf(c)<=H.indexOf(p)}if(a.flags&16777216||DI(a)||uge(a))return!0;if(n.pos<=a.pos&&!(Mo(n)&&mk(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===209){const H=UT(a,209);return H?Dn(H,qa)!==Dn(n,qa)||n.posQ===n?"quit":va(Q)?Q.parent.parent===n:!J&&Bc(Q)&&(Q.parent===n||Ll(Q.parent)&&Q.parent.parent===n||j2(Q.parent)&&Q.parent.parent===n||Mo(Q.parent)&&Q.parent.parent===n||Zi(Q.parent)&&Q.parent.parent.parent===n));return H?!J&&Bc(H)?!!Dn(a,Q=>Q===H?"quit":$o(Q)&&!zT(Q)):!1:!0}else{if(Mo(n))return!U(n,a,!1);if(Lp(n,n.parent))return!(q&&_d(n)===_d(a)&&I(a,n))}}return!0}if(a.parent.kind===282||a.parent.kind===278&&a.parent.isExportEquals||a.kind===278&&a.isExportEquals)return!0;if(I(a,n))return q&&_d(n)&&(Mo(n)||Lp(n,n.parent))?!U(n,a,!0):!0;return!1;function v(H,Q){switch(H.parent.parent.kind){case 244:case 249:case 251:if(Zm(Q,H,m))return!0;break}const xe=H.parent.parent;return n1(xe)&&Zm(Q,xe.expression,m)}function I(H,Q){return w(H,Q)}function w(H,Q){return!!Dn(H,xe=>{if(xe===m)return"quit";if($o(xe))return!zT(xe);if(nc(xe))return Q.posH.end?!1:Dn(Q,et=>{if(et===H)return"quit";switch(et.kind){case 220:return!0;case 173:return xe&&(Mo(H)&&et.parent===H.parent||Lp(H,H.parent)&&et.parent===H.parent.parent)?"quit":!0;case 242:switch(et.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})===void 0}}function gE(n){return Vr(n).declarationRequiresScopeChange}function PC(n,a){Vr(n).declarationRequiresScopeChange=a}function dL(n,a,c,p){return q?!1:(n&&!p&&oA(n,a,a)||Ze(n,n&&c.type&&O2(c.type,n.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ws(c.name),Sp(a)),!0)}function zr(n,a,c,p){const m=Bo(a)?a:a.escapedText;r(()=>{if(!n||n.parent.kind!==325&&!oA(n,m,a)&&!tT(n)&&!LC(n,m,c)&&!X_(n,m)&&!rT(n,m,c)&&!xh(n,m,c)&&!Fx(n,m,c)){let v,I;if(a&&(I=oht(a),I&&Ze(n,p,Sp(a),I)),!I&&Lx{var I;const w=a.escapedName,U=p&&Xi(p)&&wp(p);if(n&&(c&2||(c&32||c&384)&&(c&111551)===111551)){const H=Et(a);(H.flags&2||H.flags&32||H.flags&384)&&xf(H,n)}if(U&&(c&111551)===111551&&!(n.flags&16777216)){const H=as(a);Qe(H.declarations)&&Hn(H.declarations,Q=>Aw(Q)||Xi(Q)&&!!Q.symbol.globalExports)&&Qm(!W.allowUmdGlobalAccess,n,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Vi(w))}if(m&&!v&&(c&111551)===111551){const H=as(pY(a)),Q=Yh(m);H===Wr(m)?Ze(n,f.Parameter_0_cannot_reference_itself,Ws(m.name)):H.valueDeclaration&&H.valueDeclaration.pos>m.pos&&Q.parent.locals&&Ed(Q.parent.locals,H.escapedName,c)===H&&Ze(n,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ws(m.name),Ws(n))}if(n&&c&111551&&a.flags&2097152&&!(a.flags&111551)&&!JT(n)){const H=Rh(a,111551);if(H){const Q=H.kind===282||H.kind===279||H.kind===281?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,xe=Vi(w);Oo(Ze(n,Q,xe),H,xe)}}if(W.isolatedModules&&a&&U&&(c&111551)===111551){const Q=Ed(lt,w,c)===a&&Xi(p)&&p.locals&&Ed(p.locals,w,-111552);if(Q){const xe=(I=Q.declarations)==null?void 0:I.find(Se=>Se.kind===277||Se.kind===274||Se.kind===275||Se.kind===272);xe&&!UR(xe)&&Ze(xe,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Vi(w))}}})}function Oo(n,a,c){return a?pa(n,Ar(a,a.kind===282||a.kind===279||a.kind===281?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Sp(n){return Bo(n)?Vi(n):Ws(n)}function oA(n,a,c){if(!Je(n)||n.escapedText!==a||A7e(n)||DI(n))return!1;const p=Su(n,!1,!1);let m=p;for(;m;){if(ui(m.parent)){const v=Wr(m.parent);if(!v)break;const I=_r(v);if(Ea(I,a))return Ze(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Sp(c),co(v)),!0;if(m===p&&!ua(m)){const w=Ks(v).thisType;if(Ea(w,a))return Ze(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Sp(c)),!0}}m=m.parent}return!1}function tT(n){const a=Mr(n);return a&&Ul(a,64,!0)?(Ze(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Rl(a)),!0):!1}function Mr(n){switch(n.kind){case 80:case 212:return n.parent?Mr(n.parent):void 0;case 234:if(Ns(n.expression))return n.expression;default:return}}function LC(n,a,c){const p=1920|(Ir(n)?111551:0);if(c===p){const m=gc(gt(n,a,788968&~p,void 0,!1)),v=n.parent;if(m){if(Wu(v)){C.assert(v.left===n,"Should only be resolving left side of qualified name as a namespace");const I=v.right.escapedText;if(Ea(Ks(m),I))return Ze(v,f.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,Vi(a),Vi(I)),!0}return Ze(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Vi(a)),!0}}return!1}function Fx(n,a,c){if(c&788584){const p=gc(gt(n,a,111127,void 0,!1));if(p&&!(p.flags&1920))return Ze(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Vi(a)),!0}return!1}function fu(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function X_(n,a){return fu(a)&&n.parent.kind===282?(Ze(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function xh(n,a,c){if(c&111551){if(fu(a)){const v=n.parent.parent;if(v&&v.parent&&Gp(v)){const I=v.token;v.parent.kind===265&&I===96?Ze(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Vi(a)):ui(v.parent)&&I===96?Ze(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Vi(a)):ui(v.parent)&&I===119&&Ze(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Vi(a))}else Ze(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Vi(a));return!0}const p=gc(gt(n,a,788544,void 0,!1)),m=p&&fp(p);if(p&&m!==void 0&&!(m&111551)){const v=Vi(a);return aA(a)?Ze(n,f._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,v):nT(n,p)?Ze(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,v,v==="K"?"P":"K"):Ze(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,v),!0}}return!1}function nT(n,a){const c=Dn(n.parent,p=>va(p)||Iu(p)?!1:Fu(p)||"quit");if(c&&c.members.length===1){const p=Ks(a);return!!(p.flags&1048576)&&mW(p,384,!0)}return!1}function aA(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function rT(n,a,c){if(c&111127){if(gc(gt(n,a,1024,void 0,!1)))return Ze(n,f.Cannot_use_namespace_0_as_a_value,Vi(a)),!0}else if(c&788544&&gc(gt(n,a,1536,void 0,!1)))return Ze(n,f.Cannot_use_namespace_0_as_a_type,Vi(a)),!0;return!1}function xf(n,a){var c;if(C.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;const p=(c=n.declarations)==null?void 0:c.find(m=>RG(m)||ui(m)||m.kind===267);if(p===void 0)return C.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(p.flags&33554432)&&!Py(p,a)){let m;const v=Ws(wo(p));n.flags&2?m=Ze(a,f.Block_scoped_variable_0_used_before_its_declaration,v):n.flags&32?m=Ze(a,f.Class_0_used_before_its_declaration,v):n.flags&256?m=Ze(a,f.Enum_0_used_before_its_declaration,v):(C.assert(!!(n.flags&128)),Am(W)&&(m=Ze(a,f.Enum_0_used_before_its_declaration,v))),m&&pa(m,Ar(p,f._0_is_declared_here,v))}}function Zm(n,a,c){return!!a&&!!Dn(n,p=>p===a||(p===c||$o(p)&&(!zT(p)||pc(p)&3)?"quit":!1))}function nm(n){switch(n.kind){case 272:return n;case 274:return n.parent;case 275:return n.parent.parent;case 277:return n.parent.parent.parent;default:return}}function pp(n){return n.declarations&&ga(n.declarations,Nv)}function Nv(n){return n.kind===272||n.kind===271||n.kind===274&&!!n.name||n.kind===275||n.kind===281||n.kind===277||n.kind===282||n.kind===278&&Lk(n)||Nr(n)&&lc(n)===2&&Lk(n)||Ys(n)&&Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&k0(n.parent.right)||n.kind===305||n.kind===304&&k0(n.initializer)||n.kind===261&&RS(n)||n.kind===209&&RS(n.parent.parent)}function k0(n){return h6(n)||qs(n)&&x_(n)}function zx(n,a){const c=Vx(n);if(c){const m=_D(c.expression).arguments[0];return Je(c.name)?gc(Ea(Y8e(m),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===284){const m=mu(n,UG(n)||tM(n)),v=Ap(m);if(v&&102<=j&&j<=199){const I=yE(v,"module.exports",n,a);if(I)return I}return rm(n,m,v,!1),v}const p=lT(n.moduleReference,a);return w0(n,p),p}function w0(n,a){if(rm(n,void 0,a,!1)&&!n.isTypeOnly){const c=Rh(Wr(n)),p=c.kind===282||c.kind===279,m=p?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,v=p?f._0_was_exported_here:f._0_was_imported_here,I=c.kind===279?"*":Eb(c.name);pa(Ze(n.moduleReference,m),Ar(c,v,I))}}function iT(n,a,c,p){const m=n.exports.get("export="),v=m?Ea(_r(m),a,!0):n.exports.get(a),I=gc(v,p);return rm(c,v,I,!1),I}function Bx(n){return dl(n)&&!n.isExportEquals||di(n,2048)||lu(n)||F_(n)}function Ly(n){return ds(n)?e.getEmitSyntaxForUsageLocation(zn(n),n):void 0}function y_(n,a){return n===99&&a===1}function oT(n,a){if(100<=j&&j<=199&&Ly(n)===99){a??(a=mu(n,n,!0));const p=a&&tk(a);return p&&(Vf(p)||H4(p.fileName)===".d.json.ts")}return!1}function O0(n,a,c,p){const m=n&&Ly(p);if(n&&m!==void 0){const v=e.getImpliedNodeFormatForEmit(n);if(m===99&&v===1&&100<=j&&j<=199)return!0;if(m===99&&v===99)return!1}if(!ve)return!1;if(!n||n.isDeclarationFile){const v=iT(a,"default",void 0,!0);return!(v&&vt(v.declarations,Bx)||iT(a,Pl("__esModule"),void 0,c))}return wu(n)?typeof n.externalModuleIndicator!="object"&&!iT(a,Pl("__esModule"),void 0,c):th(a)}function Mv(n,a){const c=mu(n,n.parent.moduleSpecifier);if(c)return aT(c,n,a)}function aT(n,a,c){var p;const m=(p=n.declarations)==null?void 0:p.find(Xi),v=eh(a);let I,w;if(ik(n))I=n;else if(m&&v&&102<=j&&j<=199&&Ly(v)===1&&e.getImpliedNodeFormatForEmit(m)===99&&(w=iT(n,"module.exports",a,c))){if(!e_(W)){Ze(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,co(n),"esModuleInterop");return}return rm(a,w,void 0,!1),w}else I=iT(n,"default",a,c);if(!v)return I;const U=oT(v,n),H=O0(m,n,c,v);if(!I&&!H&&!U)if(th(n)&&!ve){const Q=j>=5?"allowSyntheticDefaultImports":"esModuleInterop",Se=n.exports.get("export=").valueDeclaration,et=Ze(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,co(n),Q);Se&&pa(et,Ar(Se,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,Q))}else Jm(a)?ky(n,a):sA(n,n,a,_b(a)&&a.propertyName||a.name);else if(H||U){const Q=Ap(n,c)||gc(n,c);return rm(a,n,Q,!1),Q}return rm(a,I,void 0,!1),I}function eh(n){switch(n.kind){case 274:return n.parent.moduleSpecifier;case 272:return hy(n.moduleReference)?n.moduleReference.expression:void 0;case 275:return n.parent.parent.moduleSpecifier;case 277:return n.parent.parent.parent.moduleSpecifier;case 282:return n.parent.parent.moduleSpecifier;default:return C.assertNever(n)}}function ky(n,a){var c,p,m;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Ze(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,co(n),co(a.symbol));else{const v=Ze(a.name,f.Module_0_has_no_default_export,co(n)),I=(p=n.exports)==null?void 0:p.get("__export");if(I){const w=(m=I.declarations)==null?void 0:m.find(U=>{var H,Q;return!!(hc(U)&&U.moduleSpecifier&&((Q=(H=mu(U,U.moduleSpecifier))==null?void 0:H.exports)!=null&&Q.has("default")))});w&&pa(v,Ar(w,f.export_Asterisk_does_not_re_export_a_default))}}}function zg(n,a){const c=n.parent.parent.moduleSpecifier,p=mu(n,c),m=Vg(p,c,a,!1);return rm(n,p,m,!1),m}function sT(n,a){const c=n.parent.moduleSpecifier,p=c&&mu(n,c),m=c&&Vg(p,c,a,!1);return rm(n,p,m,!1),m}function ud(n,a){if(n===ne&&a===ne)return ne;if(n.flags&790504)return n;const c=Ua(n.flags|a.flags,n.escapedName);return C.assert(n.declarations||a.declarations),c.declarations=fS(ao(n.declarations,a.declarations),sb),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function yE(n,a,c,p){var m;if(n.flags&1536){const v=Xp(n).get(a),I=gc(v,p),w=(m=Jr(n).typeOnlyExportStarMap)==null?void 0:m.get(a);return rm(c,v,I,!1,w,a),I}}function Bg(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return gc(Ea(Ji(c),a))}}function W0(n,a,c=!1){var p;const m=UG(n)||n.moduleSpecifier,v=mu(n,m),I=!qr(a)&&a.propertyName||a.name;if(!Je(I)&&I.kind!==11)return;const w=AS(I),H=Vg(v,m,!1,w==="default"&&ve);if(H&&(w||I.kind===11)){if(ik(v))return v;let Q;v&&v.exports&&v.exports.get("export=")?Q=Ea(_r(H),w,!0):Q=Bg(H,w),Q=gc(Q,c);let xe=yE(H,w,a,c);if(xe===void 0&&w==="default"){const et=(p=v.declarations)==null?void 0:p.find(Xi);(oT(m,v)||O0(et,v,c,m))&&(xe=Ap(v,c)||gc(v,c))}const Se=xe&&Q&&xe!==Q?ud(Q,xe):xe||Q;return _b(a)&&oT(m,v)&&w!=="default"?Ze(I,f.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,wR[j]):Se||sA(v,H,n,I),Se}}function sA(n,a,c,p){var m;const v=Pv(n,c),I=Ws(p),w=Je(p)?Kge(p,a):void 0;if(w!==void 0){const U=co(w),H=Ze(p,f._0_has_no_exported_member_named_1_Did_you_mean_2,v,I,U);w.valueDeclaration&&pa(H,Ar(w.valueDeclaration,f._0_is_declared_here,U))}else(m=n.exports)!=null&&m.has("default")?Ze(p,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,v,I):Gg(c,p,I,n,v)}function Gg(n,a,c,p,m){var v,I;const w=(I=(v=ni(p.valueDeclaration,N_))==null?void 0:v.locals)==null?void 0:I.get(AS(a)),U=p.exports;if(w){const H=U?.get("export=");if(H)he(H,w)?kC(n,a,c,m):Ze(a,f.Module_0_has_no_exported_member_1,m,c);else{const Q=U?mn(Xhe(U),Se=>!!he(Se,w)):void 0,xe=Q?Ze(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,m,c,co(Q)):Ze(a,f.Module_0_declares_1_locally_but_it_is_not_exported,m,c);w.declarations&&pa(xe,...Yt(w.declarations,(Se,et)=>Ar(Se,et===0?f._0_is_declared_here:f.and_here,c)))}}else Ze(a,f.Module_0_has_no_exported_member_1,m,c)}function kC(n,a,c,p){if(j>=5){const m=e_(W)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ze(a,m,c)}else if(Ir(n)){const m=e_(W)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ze(a,m,c)}else{const m=e_(W)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ze(a,m,c,c,p)}}function Gx(n,a){if(xu(n)&&P_(n.propertyName||n.name)){const I=eh(n),w=I&&mu(n,I);if(w)return aT(w,n,a)}const c=qa(n)?Yh(n):n.parent.parent.parent,p=Vx(c),m=W0(c,p||n,a),v=n.propertyName||n.name;return p&&m&&Je(v)?gc(Ea(_r(m),v.escapedText),a):(rm(n,void 0,m,!1),m)}function Vx(n){if(yi(n)&&n.initializer&&qr(n.initializer))return n.initializer}function uL(n,a){if(ch(n.parent)){const c=Ap(n.parent.symbol,a);return rm(n,void 0,c,!1),c}}function jx(n,a,c){const p=n.propertyName||n.name;if(P_(p)){const v=eh(n),I=v&&mu(n,v);if(I)return aT(I,n,!!c)}const m=n.parent.parent.moduleSpecifier?W0(n.parent.parent,n,c):p.kind===11?void 0:Ul(p,a,!1,c);return rm(n,void 0,m,!1),m}function F0(n,a){const c=dl(n)?n.expression:n.right,p=wy(c,a);return rm(n,void 0,p,!1),p}function wy(n,a){if(fc(n))return Hl(n).symbol;if(!ku(n)&&!Ns(n))return;const c=Ul(n,901119,!0,a);return c||(Hl(n),Vr(n).resolvedSymbol)}function wC(n,a){if(Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return wy(n.parent.right,a)}function z0(n,a=!1){switch(n.kind){case 272:case 261:return zx(n,a);case 274:return Mv(n,a);case 275:return zg(n,a);case 281:return sT(n,a);case 277:case 209:return Gx(n,a);case 282:return jx(n,901119,a);case 278:case 227:return F0(n,a);case 271:return uL(n,a);case 305:return Ul(n.name,901119,!0,a);case 304:return wy(n.initializer,a);case 213:case 212:return wC(n,a);default:return C.fail()}}function lA(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function gc(n,a){return!a&&lA(n)?pd(n):n}function pd(n){C.assert((n.flags&2097152)!==0,"Should only get Alias here.");const a=Jr(n);if(a.aliasTarget)a.aliasTarget===Fe&&(a.aliasTarget=ne);else{a.aliasTarget=Fe;const c=pp(n);if(!c)return C.fail();const p=z0(c);a.aliasTarget===Fe?a.aliasTarget=p||ne:Ze(c,f.Circular_definition_of_import_alias_0,co(n))}return a.aliasTarget}function Ux(n){if(Jr(n).aliasTarget!==Fe)return pd(n)}function fp(n,a,c){const p=a&&Rh(n),m=p&&hc(p),v=p&&(m?mu(p.moduleSpecifier,p.moduleSpecifier,!0):pd(p.symbol)),I=m&&v?v_(v):void 0;let w=c?0:n.flags,U;for(;n.flags&2097152;){const H=Et(pd(n));if(!m&&H===v||I?.get(H.escapedName)===H)break;if(H===ne)return-1;if(H===n||U?.has(H))break;H.flags&2097152&&(U?U.add(H):U=new Set([n,H])),w|=H.flags,n=H}return w}function rm(n,a,c,p,m,v){if(!n||qr(n))return!1;const I=Wr(n);if(ev(n)){const U=Jr(I);return U.typeOnlyDeclaration=n,!0}if(m){const U=Jr(I);return U.typeOnlyDeclaration=m,I.escapedName!==v&&(U.typeOnlyExportStarName=v),!0}const w=Jr(I);return vE(w,a,p)||vE(w,c,p)}function vE(n,a,c){var p;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){const m=((p=a.exports)==null?void 0:p.get("export="))??a,v=m.declarations&&mn(m.declarations,ev);n.typeOnlyDeclaration=v??Jr(m).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Rh(n,a){var c;if(!(n.flags&2097152))return;const p=Jr(n);if(p.typeOnlyDeclaration===void 0){p.typeOnlyDeclaration=!1;const m=gc(n);rm((c=n.declarations)==null?void 0:c[0],pp(n)&&y$(n),m,!0)}if(a===void 0)return p.typeOnlyDeclaration||void 0;if(p.typeOnlyDeclaration){const m=p.typeOnlyDeclaration.kind===279?gc(v_(p.typeOnlyDeclaration.symbol.parent).get(p.typeOnlyExportStarName||n.escapedName)):pd(p.typeOnlyDeclaration.symbol);return fp(m)&a?p.typeOnlyDeclaration:void 0}}function lT(n,a){return n.kind===80&&vM(n)&&(n=n.parent),n.kind===80||n.parent.kind===167?Ul(n,1920,!1,a):(C.assert(n.parent.kind===272),Ul(n,901119,!1,a))}function Pv(n,a){return n.parent?Pv(n.parent,a)+"."+co(n):co(n,a,void 0,36)}function Hx(n){for(;Wu(n.parent);)n=n.parent;return n}function pL(n){let a=Ou(n),c=gt(a,a,111551,void 0,!0);if(c){for(;Wu(a.parent);){const p=_r(c);if(c=Ea(p,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Ul(n,a,c,p,m){if(zl(n))return;const v=1920|(Ir(n)?a&111551:0);let I;if(n.kind===80){const w=a===v||Fs(n)?f.Cannot_find_namespace_0:YFe(Ou(n)),U=Ir(n)&&!Fs(n)?OC(n,a):void 0;if(I=as(gt(m||n,n,a,c||U?void 0:w,!0,!1)),!I)return as(U)}else if(n.kind===167||n.kind===212){const w=n.kind===167?n.left:n.expression,U=n.kind===167?n.right:n.name;let H=Ul(w,v,c,!1,m);if(!H||zl(U))return;if(H===ne)return H;if(H.valueDeclaration&&Ir(H.valueDeclaration)&&su(W)!==100&&yi(H.valueDeclaration)&&H.valueDeclaration.initializer&&q4e(H.valueDeclaration.initializer)){const Q=H.valueDeclaration.initializer.arguments[0],xe=mu(Q,Q);if(xe){const Se=Ap(xe);Se&&(H=Se)}}if(I=as(Ed(Xp(H),U.escapedText,a)),!I&&H.flags&2097152&&(I=as(Ed(Xp(pd(H)),U.escapedText,a))),!I){if(!c){const Q=Pv(H),xe=Ws(U),Se=Kge(U,H);if(Se){Ze(U,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,xe,co(Se));return}const et=Wu(n)&&Hx(n);if(qt&&a&788968&&et&&!RD(et.parent)&&pL(et)){Ze(et,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,kp(et));return}if(a&1920&&Wu(n.parent)){const Dt=as(Ed(Xp(H),U.escapedText,788968));if(Dt){Ze(n.parent.right,f.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,co(Dt),Vi(n.parent.right.escapedText));return}}Ze(U,f.Namespace_0_has_no_exported_member_1,Q,xe)}return}}else C.assertNever(n,"Unknown entity name kind.");return!Fs(n)&&ku(n)&&(I.flags&2097152||n.parent.kind===278)&&rm(eV(n),I,void 0,!0),I.flags&a||p?I:pd(I)}function OC(n,a){if(AY(n.parent)){const c=cA(n.parent);if(c)return gt(c,n,a,void 0,!0)}}function cA(n){if(Dn(n,m=>JR(m)||m.flags&16777216?Tm(m):"quit"))return;const c=CS(n);if(c&&ad(c)&&Ik(c.expression)){const m=Wr(c.expression.left);if(m)return bE(m)}if(c&&qs(c)&&Ik(c.parent)&&ad(c.parent.parent)){const m=Wr(c.parent.left);if(m)return bE(m)}if(c&&(bm(c)||Pc(c))&&Nr(c.parent.parent)&&lc(c.parent.parent)===6){const m=Wr(c.parent.parent.left);if(m)return bE(m)}const p=jT(n);if(p&&$o(p)){const m=Wr(p);return m&&m.valueDeclaration}}function bE(n){const a=n.parent.valueDeclaration;return a?(rM(a)?TI(a):r1(a)?iM(a):void 0)||a:void 0}function qx(n){const a=n.valueDeclaration;if(!a||!Ir(a)||n.flags&524288||GT(a,!1))return;const c=yi(a)?iM(a):TI(a);if(c){const p=Rf(c);if(p)return iye(p,n)}}function mu(n,a,c){const m=su(W)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ep(n,a,c?void 0:m,c)}function Ep(n,a,c,p=!1,m=!1){return ds(a)?dA(n,a.text,c,p?void 0:a,m):void 0}function dA(n,a,c,p,m=!1){var v,I,w,U,H,Q,xe,Se,et,Tt,Dt,$t;if(p&&po(a,"@types/")){const Bi=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ko=TN(a,"@types/");Ze(p,Bi,Ko,a)}const Tn=X8e(a,!0);if(Tn)return Tn;const nr=zn(n),yr=ds(n)?n:((v=mc(n)?n:n.parent&&mc(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:v.name)||((I=sy(n)?n:void 0)==null?void 0:I.argument.literal)||(yi(n)&&n.initializer&&np(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((w=Dn(n,tp))==null?void 0:w.arguments[0])||((U=Dn(n,Np(Tl,l_,hc)))==null?void 0:U.moduleSpecifier)||((H=Dn(n,BT))==null?void 0:H.moduleReference.expression),Sn=yr&&ds(yr)?e.getModeForUsageLocation(nr,yr):e.getDefaultResolutionModeForFile(nr),vn=su(W),Sr=(Q=e.getResolvedModule(nr,a,Sn))==null?void 0:Q.resolvedModule,mi=p&&Sr&&zH(W,Sr,nr),io=Sr&&(!mi||mi===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Sr.resolvedFileName);if(io){if(mi&&Ze(p,mi,a,Sr.resolvedFileName),Sr.resolvedUsingTsExtension&&sd(a)){const Bi=((xe=Dn(n,Tl))==null?void 0:xe.importClause)||Dn(n,Np(Gc,hc));(p&&Bi&&!Bi.isTypeOnly||Dn(n,tp))&&Ze(p,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ii(C.checkDefined(k6(a))))}else if(Sr.resolvedUsingTsExtension&&!KD(W,nr.fileName)){const Bi=((Se=Dn(n,Tl))==null?void 0:Se.importClause)||Dn(n,Np(Gc,hc));if(p&&!(Bi?.isTypeOnly||Dn(n,r_))){const Ko=C.checkDefined(k6(a));Ze(p,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ko)}}else if(W.rewriteRelativeImportExtensions&&!(n.flags&33554432)&&!sd(a)&&!sy(n)&&!Ite(n)){const Bi=Rk(a,W);if(!Sr.resolvedUsingTsExtension&&Bi)Ze(p,f.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,WR(bo(nr.fileName,e.getCurrentDirectory()),Sr.resolvedFileName,dy(e)));else if(Sr.resolvedUsingTsExtension&&!Bi&&PS(io,e))Ze(p,f.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,sI(a));else if(Sr.resolvedUsingTsExtension&&Bi){const Ko=(et=e.getRedirectFromSourceFile(io.path))==null?void 0:et.resolvedRef;if(Ko){const ms=!e.useCaseSensitiveFileNames(),fo=e.getCommonSourceDirectory(),pl=z1(Ko.commandLine,ms),Ql=uf(fo,pl,ms),gu=uf(W.outDir||fo,Ko.commandLine.options.outDir||pl,ms);Ql!==gu&&Ze(p,f.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(io.symbol){if(p&&Sr.isExternalLibraryImport&&!CM(Sr.extension)&&B0(!1,p,nr,Sn,Sr,a),p&&(j===100||j===101)){const Bi=nr.impliedNodeFormat===1&&!Dn(n,tp)||!!Dn(n,Gc),Ko=Dn(n,ms=>r_(ms)||hc(ms)||Tl(ms)||l_(ms));if(Bi&&io.impliedNodeFormat===99&&!oie(Ko))if(Dn(n,Gc))Ze(p,f.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 ms;const fo=Rg(nr.fileName);(fo===".ts"||fo===".js"||fo===".tsx"||fo===".jsx")&&(ms=TG(nr));const pl=Ko?.kind===273&&((Tt=Ko.importClause)!=null&&Tt.isTypeOnly)?f.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:Ko?.kind===206?f.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:f.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;rs.add(bg(zn(p),p,qo(ms,pl,a)))}}return as(io.symbol)}p&&c&&!uj(p)&&Ze(p,f.File_0_is_not_a_module,io.fileName);return}if(lp){const Bi=c9(lp,Ko=>Ko.pattern,a);if(Bi){const Ko=ze&&ze.get(a);return as(Ko||Bi.symbol)}}if(!p)return;if(Sr&&!CM(Sr.extension)&&mi===void 0||mi===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){const Bi=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ze(p,Bi,a,Sr.resolvedFileName)}else B0(be&&!!c,p,nr,Sn,Sr,a);return}if(c){if(Sr){const Bi=e.getRedirectFromSourceFile(Sr.resolvedFileName);if(Bi?.outputDts){Ze(p,f.Output_file_0_has_not_been_built_from_source_file_1,Bi.outputDts,Sr.resolvedFileName);return}}if(mi)Ze(p,mi,a,Sr.resolvedFileName);else{const Bi=nf(a)&&!OR(a),Ko=vn===3||vn===99;if(!WS(W)&&xl(a,".json")&&vn!==1&&U6(W))Ze(p,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Sn===99&&Ko&&Bi){const ms=bo(a,ci(nr.path)),fo=(Dt=Du.find(([pl,Ql])=>e.fileExists(ms+pl)))==null?void 0:Dt[1];fo?Ze(p,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+fo):Ze(p,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if(($t=e.getResolvedModule(nr,a,Sn))!=null&&$t.alternateResult){const ms=BF(nr,e,a,Sn,a);Qm(!0,p,qo(ms,c,a))}else Ze(p,c,a)}}return;function ii(Bi){const Ko=ow(a,Bi);if(ew(j)||Sn===99){const ms=sd(a)&&KD(W);return Ko+(Bi===".mts"||Bi===".d.mts"?ms?".mts":".mjs":Bi===".cts"||Bi===".d.mts"?ms?".cts":".cjs":ms?".ts":".js")}return Ko}}function B0(n,a,c,p,{packageId:m,resolvedFileName:v},I){if(uj(a))return;let w;!nd(I)&&m&&(w=BF(c,e,I,p,m.name)),Qm(n,a,qo(w,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,v))}function Ap(n,a){if(n?.exports){const c=gc(n.exports.get("export="),a),p=uA(as(c),as(n));return as(p)||n}}function uA(n,a){if(!n||n===ne||n===a||a.exports.size===1||n.flags&2097152)return n;const c=Jr(n);if(c.cjsExportMerged)return c.cjsExportMerged;const p=n.flags&33554432?n:hE(n);return p.flags=p.flags|512,p.exports===void 0&&(p.exports=da()),a.exports.forEach((m,v)=>{v!=="export="&&p.exports.set(v,p.exports.has(v)?tm(p.exports.get(v),m):m)}),p===n&&(Jr(p).resolvedExports=void 0,Jr(p).resolvedMembers=void 0),Jr(p).cjsExportMerged=p,c.cjsExportMerged=p}function Vg(n,a,c,p){var m;const v=Ap(n,c);if(!c&&v){if(!p&&!(v.flags&1539)&&!ll(v,308)){const U=j>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ze(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,U),v}const I=a.parent,w=Tl(I)&&oD(I);if(w||tp(I)){const U=tp(I)?I.arguments[0]:I.moduleSpecifier,H=_r(v),Q=U4e(H,v,n,U);if(Q)return pA(v,Q,I);const xe=(m=n?.declarations)==null?void 0:m.find(Xi),Se=Ly(U);let et;if(w&&xe&&102<=j&&j<=199&&Se===1&&e.getImpliedNodeFormatForEmit(xe)===99&&(et=iT(v,"module.exports",w,c)))return!p&&!(v.flags&1539)&&Ze(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),e_(W)&&Jx(H)?pA(et,H,I):et;const Tt=xe&&y_(Se,e.getImpliedNodeFormatForEmit(xe));if((e_(W)||Tt)&&(Jx(H)||Ea(H,"default",!0)||Tt)){const Dt=H.flags&3670016?H4e(H,v,n,U):oye(v,v.parent);return pA(v,Dt,I)}}}return v}function Jx(n){return vt(n5(n,0))||vt(n5(n,1))}function pA(n,a,c){const p=Ua(n.flags,n.escapedName);p.declarations=n.declarations?n.declarations.slice():[],p.parent=n.parent,p.links.target=n,p.links.originatingImport=c,n.valueDeclaration&&(p.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(p.constEnumOnlyModule=!0),n.members&&(p.members=new Map(n.members)),n.exports&&(p.exports=new Map(n.exports));const m=Mh(a);return p.links.type=Sl(p,m.members,ie,ie,m.indexInfos),p}function th(n){return n.exports.get("export=")!==void 0}function Kx(n){return Xhe(v_(n))}function WC(n){const a=Kx(n),c=Ap(n);if(c!==n){const p=_r(c);Lv(p)&&Xr(a,Ts(p))}return a}function Xx(n,a){v_(n).forEach((m,v)=>{j0(v)||a(m,v)});const p=Ap(n);if(p!==n){const m=_r(p);Lv(m)&&_ct(m,(v,I)=>{a(v,I)})}}function fA(n,a){const c=v_(a);if(c)return c.get(n)}function Yx(n,a){const c=fA(n,a);if(c)return c;const p=Ap(a);if(p===a)return;const m=_r(p);return Lv(m)?Ea(m,n):void 0}function Lv(n){return!(n.flags&402784252||Hr(n)&1||lm(n)||Xa(n))}function Xp(n){return n.flags&6256?whe(n,"resolvedExports"):n.flags&1536?v_(n):n.exports||k}function v_(n){const a=Jr(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:p}=hA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=p}return a.resolvedExports}function mA(n,a,c,p){a&&a.forEach((m,v)=>{if(v==="default")return;const I=n.get(v);if(!I)n.set(v,m),c&&p&&c.set(v,{specifierText:Rl(p.moduleSpecifier)});else if(c&&p&&I&&gc(I)!==gc(m)){const w=c.get(v);w.exportsWithDuplicate?w.exportsWithDuplicate.push(p):w.exportsWithDuplicate=[p]}})}function hA(n){const a=[];let c;const p=new Set;n=Ap(n);const m=v(n)||k;return c&&p.forEach(I=>c.delete(I)),{exports:m,typeOnlyExportStarMap:c};function v(I,w,U){if(!U&&I?.exports&&I.exports.forEach((xe,Se)=>p.add(Se)),!(I&&I.exports&&Ff(a,I)))return;const H=new Map(I.exports),Q=I.exports.get("__export");if(Q){const xe=da(),Se=new Map;if(Q.declarations)for(const et of Q.declarations){const Tt=mu(et,et.moduleSpecifier),Dt=v(Tt,et,U||et.isTypeOnly);mA(xe,Dt,Se,et)}Se.forEach(({exportsWithDuplicate:et},Tt)=>{if(!(Tt==="export="||!(et&&et.length)||H.has(Tt)))for(const Dt of et)rs.add(Ar(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Se.get(Tt).specifierText,Vi(Tt)))}),mA(H,xe)}return w?.isTypeOnly&&(c??(c=new Map),H.forEach((xe,Se)=>c.set(Se,w))),H}}function as(n){let a;return n&&n.mergeId&&(a=Q1[n.mergeId])?a:n}function Wr(n){return as(n.symbol&&pY(n.symbol))}function Rf(n){return ch(n)?Wr(n):void 0}function Qc(n){return as(n.parent&&pY(n.parent))}function G0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===220||((c=n.valueDeclaration)==null?void 0:c.kind)===219)&&Rf(n.valueDeclaration.parent)||n}function _A(n,a){const c=zn(a),p=ls(c),m=Jr(n);let v;if(m.extendedContainersByFile&&(v=m.extendedContainersByFile.get(p)))return v;if(c&&c.imports){for(const w of c.imports){if(Fs(w))continue;const U=mu(a,w,!0);!U||!D(U,n)||(v=Vn(v,U))}if(Qe(v))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(p,v),v}if(m.extendedContainers)return m.extendedContainers;const I=e.getSourceFiles();for(const w of I){if(!Vc(w))continue;const U=Wr(w);D(U,n)&&(v=Vn(v,U))}return m.extendedContainers=v||ie}function TE(n,a,c){const p=Qc(n);if(p&&!(n.flags&262144))return U(p);const m=Ei(n.declarations,Q=>{if(!Tu(Q)&&Q.parent){if(EE(Q.parent))return Wr(Q.parent);if(i_(Q.parent)&&Q.parent.parent&&Ap(Wr(Q.parent.parent))===n)return Wr(Q.parent.parent)}if(fc(Q)&&Nr(Q.parent)&&Q.parent.operatorToken.kind===64&&Ys(Q.parent.left)&&Ns(Q.parent.left.expression))return Sg(Q.parent.left)||l1(Q.parent.left.expression)?Wr(zn(Q)):(Hl(Q.parent.left.expression),Vr(Q.parent.left.expression).resolvedSymbol)});if(!Qe(m))return;const v=Ei(m,Q=>D(Q,n)?Q:void 0);let I=[],w=[];for(const Q of v){const[xe,...Se]=U(Q);I=Vn(I,xe),w=Xr(w,Se)}return ao(I,w);function U(Q){const xe=Ei(Q.declarations,H),Se=a&&_A(n,a),et=V0(Q,c);if(a&&Q.flags&nh(c)&&wv(Q,a,1920,!1))return Vn(ao(ao([Q],xe),Se),et);const Tt=!(Q.flags&nh(c))&&Q.flags&788968&&Ks(Q).flags&524288&&c===111551?kv(a,$t=>Jc($t,Tn=>{if(Tn.flags&nh(c)&&_r(Tn)===Ks(Q))return Tn})):void 0;let Dt=Tt?[Tt,...xe,Q]:[...xe,Q];return Dt=Vn(Dt,et),Dt=Xr(Dt,Se),Dt}function H(Q){return p&&gA(Q,p)}}function V0(n,a){const c=!!Qe(n.declarations)&&Qa(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(za(c)&&c===c.parent.initializer||Fu(c)&&c===c.parent.type))return Wr(c.parent)}function gA(n,a){const c=vA(n),p=c&&c.exports&&c.exports.get("export=");return p&&he(p,a)?c:void 0}function D(n,a){if(n===Qc(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&he(c,a))return n;const p=Xp(n),m=p.get(a.escapedName);return m&&he(m,a)?m:Jc(p,v=>{if(he(v,a))return v})}function he(n,a){if(as(gc(as(n)))===as(gc(as(a))))return n}function Et(n){return as(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function An(n,a){return!!(n.flags&111551||n.flags&2097152&&fp(n,!a)&111551)}function vi(n){var a;const c=new l(or,n);return d++,c.id=d,(a=xr)==null||a.recordType(c),c}function Oi(n,a){const c=vi(n);return c.symbol=a,c}function Eo(n){return new l(or,n)}function wi(n,a,c=0,p){Ka(a,p);const m=vi(n);return m.intrinsicName=a,m.debugIntrinsicName=p,m.objectFlags=c|524288|2097152|33554432|16777216,m}function Ka(n,a){const c=`${n},${a??""}`;Lt.has(c)&&C.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),Lt.add(c)}function yc(n,a){const c=Oi(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function $d(){return pi(Do(Cae.keys(),Ip))}function Hu(n){return Oi(262144,n)}function j0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function qu(n){let a;return n.forEach((c,p)=>{cT(c,p)&&(a||(a=[])).push(c)}),a||ie}function cT(n,a){return!j0(a)&&An(n)}function $x(n){const a=qu(n),c=yY(n);return c?ao(a,[c]):a}function Om(n,a,c,p,m){const v=n;return v.members=a,v.properties=ie,v.callSignatures=c,v.constructSignatures=p,v.indexInfos=m,a!==k&&(v.properties=qu(a)),v}function Sl(n,a,c,p,m){return Om(yc(16,n),a,c,p,m)}function yA(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=Un(n.constructSignatures,p=>!(p.flags&4));if(n.constructSignatures===a)return n;const c=Sl(n.symbol,n.members,n.callSignatures,vt(a)?a:ie,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function kv(n,a){let c;for(let p=n;p;p=p.parent){if(N_(p)&&p.locals&&!nv(p)&&(c=a(p.locals,void 0,!0,p)))return c;switch(p.kind){case 308:if(!wp(p))break;case 268:const m=Wr(p);if(c=a(m?.exports||k,void 0,!0,p))return c;break;case 264:case 232:case 265:let v;if((Wr(p).members||k).forEach((I,w)=>{I.flags&788968&&(v||(v=da())).set(w,I)}),v&&(c=a(v,void 0,!1,p)))return c;break}}return a(lt,void 0,!0)}function nh(n){return n===111551?111551:1920}function wv(n,a,c,p,m=new Map){if(!(n&&!Hz(n)))return;const v=Jr(n),I=v.accessibleChainCache||(v.accessibleChainCache=new Map),w=kv(a,(Tn,nr,yr,Sn)=>Sn),U=`${p?0:1}|${w?ls(w):0}|${c}`;if(I.has(U))return I.get(U);const H=Ta(n);let Q=m.get(H);Q||m.set(H,Q=[]);const xe=kv(a,Se);return I.set(U,xe),xe;function Se(Tn,nr,yr){if(!Ff(Q,Tn))return;const Sn=Dt(Tn,nr,yr);return Q.pop(),Sn}function et(Tn,nr){return!SE(Tn,a,nr)||!!wv(Tn.parent,a,nh(nr),p,m)}function Tt(Tn,nr,yr){return(n===(nr||Tn)||as(n)===as(nr||Tn))&&!vt(Tn.declarations,EE)&&(yr||et(as(Tn),c))}function Dt(Tn,nr,yr){return Tt(Tn.get(n.escapedName),void 0,nr)?[n]:Jc(Tn,vn=>{if(vn.flags&2097152&&vn.escapedName!=="export="&&vn.escapedName!=="default"&&!(F6(vn)&&a&&Vc(zn(a)))&&(!p||vt(vn.declarations,BT))&&(!yr||!vt(vn.declarations,Dne))&&(nr||!ll(vn,282))){const Sr=pd(vn),mi=$t(vn,Sr,nr);if(mi)return mi}if(vn.escapedName===n.escapedName&&vn.exportSymbol&&Tt(as(vn.exportSymbol),void 0,nr))return[n]})||(Tn===lt?$t(Ce,Ce,nr):void 0)}function $t(Tn,nr,yr){if(Tt(Tn,nr,yr))return[Tn];const Sn=Xp(nr),vn=Sn&&Se(Sn,!0);if(vn&&et(Tn,nh(c)))return[Tn].concat(vn)}}function SE(n,a,c){let p=!1;return kv(a,m=>{let v=as(m.get(n.escapedName));if(!v)return!1;if(v===n)return!0;const I=v.flags&2097152&&!ll(v,282);return v=I?pd(v):v,(I?fp(v):v.flags)&c?(p=!0,!0):!1}),p}function Hz(n){if(n.declarations&&n.declarations.length){for(const a of n.declarations)switch(a.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}function fL(n,a){return Zx(n,a,788968,!1,!0).accessibility===0}function Qx(n,a){return Zx(n,a,111551,!1,!0).accessibility===0}function mL(n,a,c){return Zx(n,a,c,!1,!1).accessibility===0}function x8(n,a,c,p,m,v){if(!Qe(n))return;let I,w=!1;for(const U of n){const H=wv(U,a,p,!1);if(H){I=U;const Se=bA(H[0],m);if(Se)return Se}if(v&&vt(U.declarations,EE)){if(m){w=!0;continue}return{accessibility:0}}const Q=TE(U,a,p),xe=x8(Q,a,c,c===U?nh(p):p,m,v);if(xe)return xe}if(w)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:co(c,a,p),errorModuleName:I!==c?co(I,a,1920):void 0}}function dT(n,a,c,p){return Zx(n,a,c,p,!0)}function Zx(n,a,c,p,m){if(n&&a){const v=x8([n],a,n,c,p,m);if(v)return v;const I=qe(n.declarations,vA);if(I){const w=vA(a);if(I!==w)return{accessibility:2,errorSymbolName:co(n,a,c),errorModuleName:co(I),errorNode:Ir(a)?a:void 0}}return{accessibility:1,errorSymbolName:co(n,a,c)}}return{accessibility:0}}function vA(n){const a=Dn(n,qz);return a&&Wr(a)}function qz(n){return Tu(n)||n.kind===308&&wp(n)}function EE(n){return HF(n)||n.kind===308&&wp(n)}function bA(n,a){let c;if(!Hn(Un(n.declarations,v=>v.kind!==80),p))return;return{accessibility:0,aliasesToMakeVisible:c};function p(v){var I,w;if(!$_(v)){const U=nm(v);if(U&&!di(U,32)&&$_(U.parent))return m(v,U);if(yi(v)&&cc(v.parent.parent)&&!di(v.parent.parent,32)&&$_(v.parent.parent.parent))return m(v,v.parent.parent);if(qF(v)&&!di(v,32)&&$_(v.parent))return m(v,v);if(qa(v)){if(n.flags&2097152&&Ir(v)&&((I=v.parent)!=null&&I.parent)&&yi(v.parent.parent)&&((w=v.parent.parent.parent)!=null&&w.parent)&&cc(v.parent.parent.parent.parent)&&!di(v.parent.parent.parent.parent,32)&&v.parent.parent.parent.parent.parent&&$_(v.parent.parent.parent.parent.parent))return m(v,v.parent.parent.parent.parent);if(n.flags&2){const H=YE(v);if(H.kind===170)return!1;const Q=H.parent.parent;return Q.kind!==244?!1:di(Q,32)?!0:$_(Q.parent)?m(v,Q):!1}}return!1}return!0}function m(v,I){return a&&(Vr(v).isVisible=!0,c=ty(c,I)),!0}}function hL(n){let a;return n.parent.kind===187||n.parent.kind===234&&!Kh(n.parent)||n.parent.kind===168||n.parent.kind===183&&n.parent.parameterName===n?a=1160127:n.kind===167||n.kind===212||n.parent.kind===272||n.parent.kind===167&&n.parent.left===n||n.parent.kind===212&&n.parent.expression===n||n.parent.kind===213&&n.parent.expression===n?a=1920:a=788968,a}function eR(n,a,c=!0){const p=hL(n),m=Ou(n),v=gt(a,m.escapedText,p,void 0,!1);return v&&v.flags&262144&&p&788968?{accessibility:0}:!v&&Db(m)&&dT(Wr(Su(m,!1,!1)),m,p,!1).accessibility===0?{accessibility:0}:v?bA(v,c)||{accessibility:1,errorSymbolName:Rl(m),errorNode:m}:{accessibility:3,errorSymbolName:Rl(m),errorNode:m}}function co(n,a,c,p=4,m){let v=70221824,I=0;p&2&&(v|=128),p&1&&(v|=512),p&8&&(v|=16384),p&32&&(I|=4),p&16&&(I|=1);const w=p&4?Te.symbolToNode:Te.symbolToEntityName;return m?U(m).getText():XR(U);function U(H){const Q=w(n,c,a,v,I),xe=a?.kind===308?Ise():eE(),Se=a&&zn(a);return xe.writeNode(4,Q,Se,H),H}}function uT(n,a,c=0,p,m,v,I,w){return m?U(m).getText():XR(U);function U(H){let Q;c&262144?Q=p===1?186:185:Q=p===1?181:180;const xe=Te.signatureToSignatureDeclaration(n,Q,a,AE(c)|70221824|512,void 0,void 0,v,I,w),Se=SH(),et=a&&zn(a);return Se.writeNode(4,xe,et,fV(H)),H}}function sr(n,a,c=1064960,p=Bk(""),m,v,I){const w=!m&&W.noErrorTruncation||c&1,U=Te.typeToTypeNode(n,a,AE(c)|70221824|(w?1:0),void 0,void 0,m,v,I);if(U===void 0)return C.fail("should always get typenode");const H=n!==Jt?eE():Ase(),Q=a&&zn(a);H.writeNode(4,U,Q,p);const xe=p.getText(),Se=m||(w?vG*2:JN*2);return xe&&xe.length>=Se?xe.substr(0,Se-3)+"...":xe}function _L(n,a){let c=zC(n.symbol)?sr(n,n.symbol.valueDeclaration):sr(n),p=zC(a.symbol)?sr(a,a.symbol.valueDeclaration):sr(a);return c===p&&(c=FC(n),p=FC(a)),[c,p]}function FC(n){return sr(n,void 0,64)}function zC(n){return n&&!!n.valueDeclaration&&St(n.valueDeclaration)&&!Mf(n.valueDeclaration)}function AE(n=0){return n&848330095}function R8(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===om(n.symbol)||!!(n.flags&524288)&&!!(Hr(n)&16777216))}function TA(n){return Ji(n)}function Jz(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:h7e,isExpandoFunctionDeclaration:O7e,hasLateBindableName:jC,shouldRemoveDeclaration(we,se){return!(we.internalFlags&8&&Ns(se.name.expression)&&ah(se.name).flags&1)},createRecoveryBoundary(we){return Bi(we)},isDefinitelyReferenceToGlobalSymbolObject:K_,getAllAccessorDeclarations:Yye,requiresAddingImplicitUndefined(we,se,on){var pn;switch(we.kind){case 173:case 172:case 349:se??(se=Wr(we));const Pe=_r(se);return!!(se.flags&4&&se.flags&16777216&&BI(we)&&((pn=se.links)!=null&&pn.mappedType)&&Vut(Pe));case 170:case 342:return fB(we,on);default:C.assertNever(we)}},isOptionalParameter:O8,isUndefinedIdentifierExpression(we){return um(we)===ce},isEntityNameVisible(we,se,on){return eR(se,we.enclosingDeclaration,on)},serializeExistingTypeNode(we,se,on){return hp(we,se,!!on)},serializeReturnTypeForSignature(we,se,on){const pn=we,Pe=Nf(se);on??(on=Wr(se));const Ke=pn.enclosingSymbolTypes.get(Ta(on))??ro(fs(Pe),pn.mapper);return Fa(pn,Pe,Ke)},serializeTypeOfExpression(we,se){const on=we,pn=ro(ef(D7e(se)),on.mapper);return $t(pn,on)},serializeTypeOfDeclaration(we,se,on){var pn;const Pe=we;on??(on=Wr(se));let Ke=(pn=Pe.enclosingSymbolTypes)==null?void 0:pn.get(Ta(on));return Ke===void 0&&(Ke=on.flags&98304&&se.kind===179?ro(zv(on),Pe.mapper):on&&!(on.flags&133120)?ro(tS(_r(on)),Pe.mapper):nt),se&&(Zi(se)||_f(se))&&fB(se,Pe.enclosingDeclaration)&&(Ke=bT(Ke)),hr(on,Pe,Ke)},serializeNameOfParameter(we,se){return Hi(Wr(se),se,we)},serializeEntityName(we,se){const on=we,pn=um(se,!0);if(pn&&Qx(pn,on.enclosingDeclaration))return pm(pn,on,1160127)},serializeTypeName(we,se,on,pn){return ed(we,se,on,pn)},getJsDocPropertyOverride(we,se,on){const pn=we,Pe=Je(on.name)?on.name:on.name.right,Ke=_n(a(pn,se),Pe.escapedText);return Ke&&on.typeExpression&&a(pn,on.typeExpression.type)!==Ke?$t(Ke,pn):void 0},enterNewScope(we,se){if($o(se)||hv(se)){const on=Nf(se);return Ko(we,se,on.parameters,on.typeParameters)}else{const on=jS(se)?E_e(se):[q0(Wr(se.typeParameter))];return Ko(we,se,void 0,on)}},markNodeReuse(we,se,on){return c(we,se,on)},trackExistingEntityName(we,se){return js(se,we)},trackComputedName(we,se){vr(se,we.enclosingDeclaration,we)},getModuleSpecifierOverride(we,se,on){const pn=we;if(pn.bundled||pn.enclosingFile!==zn(on)){let Pe=on.text;const Ke=Pe,ct=Vr(se).resolvedSymbol,Gt=se.isTypeOf?111551:788968,sn=ct&&dT(ct,pn.enclosingDeclaration,Gt,!1).accessibility===0&&ko(ct,pn,Gt,!0)[0];if(sn&&hI(sn))Pe=uc(sn,pn);else{const jt=Zye(se);jt&&(Pe=uc(jt.symbol,pn))}if(Pe.includes("/node_modules/")&&(pn.encounteredError=!0,pn.tracker.reportLikelyUnsafeImportRequiredError&&pn.tracker.reportLikelyUnsafeImportRequiredError(Pe)),Pe!==Ke)return Pe}},canReuseTypeNode(we,se){return yu(we,se)},canReuseTypeNodeAnnotation(we,se,on,pn,Pe){var Ke;const ct=we;if(ct.enclosingDeclaration===void 0)return!1;pn??(pn=Wr(se));let Gt=(Ke=ct.enclosingSymbolTypes)==null?void 0:Ke.get(Ta(pn));Gt===void 0&&(pn.flags&98304?Gt=se.kind===179?zv(pn):TL(pn):p1(se)?Gt=fs(Nf(se)):Gt=_r(pn));let sn=TA(on);return pr(sn)?!0:(Pe&&sn&&(sn=hu(sn,!Zi(se))),!!sn&&gi(se,Gt,sn)&&Nn(on,Gt))}},typeToTypeNode:(we,se,on,pn,Pe,Ke,ct,Gt)=>H(se,on,pn,Pe,Ke,ct,sn=>$t(we,sn),Gt),typePredicateToTypePredicateNode:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,Ke=>gu(we,Ke)),serializeTypeForDeclaration:(we,se,on,pn,Pe,Ke)=>H(on,pn,Pe,Ke,void 0,void 0,ct=>Me.serializeTypeOfDeclaration(we,se,ct)),serializeReturnTypeForSignature:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,Ke=>Me.serializeReturnTypeForSignature(we,Wr(we),Ke)),serializeTypeForExpression:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,Ke=>Me.serializeTypeOfExpression(we,Ke)),indexInfoToIndexSignatureDeclaration:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,Ke=>io(we,Ke,void 0)),signatureToSignatureDeclaration:(we,se,on,pn,Pe,Ke,ct,Gt,sn)=>H(on,pn,Pe,Ke,ct,Gt,jt=>ii(we,se,jt),sn),symbolToEntityName:(we,se,on,pn,Pe,Ke)=>H(on,pn,Pe,Ke,void 0,void 0,ct=>ac(we,ct,se,!1)),symbolToExpression:(we,se,on,pn,Pe,Ke)=>H(on,pn,Pe,Ke,void 0,void 0,ct=>pm(we,ct,se)),symbolToTypeParameterDeclarations:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,Ke=>al(we,Ke)),symbolToParameterDeclaration:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,Ke=>ir(we,Ke)),typeParameterToDeclaration:(we,se,on,pn,Pe,Ke,ct,Gt)=>H(se,on,pn,Pe,Ke,ct,sn=>Ql(we,sn),Gt),symbolTableToDeclarationStatements:(we,se,on,pn,Pe)=>H(se,on,pn,Pe,void 0,void 0,Ke=>aS(we,Ke)),symbolToNode:(we,se,on,pn,Pe,Ke)=>H(on,pn,Pe,Ke,void 0,void 0,ct=>p(we,ct,se)),symbolToDeclarations:m};function a(we,se,on){const pn=TA(se);if(!we.mapper)return pn;const Pe=ro(pn,we.mapper);return on&&Pe!==pn?void 0:Pe}function c(we,se,on){if((!Fs(se)||!(se.flags&16)||!we.enclosingFile||we.enclosingFile!==zn(bl(se)))&&(se=L.cloneNode(se)),se===on||!on)return se;let pn=se.original;for(;pn&&pn!==on;)pn=pn.original;return pn||jr(se,on),we.enclosingFile&&we.enclosingFile===zn(bl(on))?bt(se,on):se}function p(we,se,on){if(se.internalFlags&1){if(we.valueDeclaration){const Pe=wo(we.valueDeclaration);if(Pe&&va(Pe))return Pe}const pn=Jr(we).nameType;if(pn&&pn.flags&9216)return se.enclosingDeclaration=pn.symbol.valueDeclaration,L.createComputedPropertyName(pm(pn.symbol,se,on))}return pm(we,se,on)}function m(we,se,on,pn,Pe,Ke){const ct=H(void 0,on,void 0,void 0,pn,Pe,Gt=>U(we,Gt),Ke);return Ei(ct,Gt=>{switch(Gt.kind){case 264:return v(Gt,we);case 267:return I(Gt,t0,we);case 265:return w(Gt,we,se);case 268:return I(Gt,mc,we);default:return}})}function v(we,se){const on=Un(se.declarations,ui),pn=on&&on.length>0?on[0]:we,Pe=Ud(pn)&-161;return fc(pn)&&(we=L.updateClassDeclaration(we,we.modifiers,void 0,we.typeParameters,we.heritageClauses,we.members)),L.replaceModifiers(we,Pe)}function I(we,se,on){const pn=Un(on.declarations,se),Pe=pn&&pn.length>0?pn[0]:we,Ke=Ud(Pe)&-161;return L.replaceModifiers(we,Ke)}function w(we,se,on){if(on&64)return I(we,yd,se)}function U(we,se){const on=Ks(we);se.typeStack.push(on.id),se.typeStack.push(-1);const pn=da([we]),Pe=aS(pn,se);return se.typeStack.pop(),se.typeStack.pop(),Pe}function H(we,se,on,pn,Pe,Ke,ct,Gt){const sn=pn?.trackSymbol?pn.moduleResolverHost:(on||0)&4?iqe(e):void 0;se=se||0;const jt=Pe||(se&1?vG:JN),un={enclosingDeclaration:we,enclosingFile:we&&zn(we),flags:se,internalFlags:on||0,tracker:void 0,maxTruncationLength:jt,maxExpansionDepth:Ke??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!W.outFile&&!!we&&wp(zn(we)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};un.tracker=new Mae(un,pn,sn);const Zn=ct(un);return un.truncating&&un.flags&1&&un.tracker.reportTruncationError(),Gt&&(Gt.canIncreaseExpansionDepth=un.out.canIncreaseExpansionDepth,Gt.truncated=un.out.truncated),un.encounteredError?void 0:Zn}function Q(we,se,on){const pn=Ta(se),Pe=we.enclosingSymbolTypes.get(pn);return we.enclosingSymbolTypes.set(pn,on),Ke;function Ke(){Pe?we.enclosingSymbolTypes.set(pn,Pe):we.enclosingSymbolTypes.delete(pn)}}function xe(we){const se=we.flags,on=we.internalFlags,pn=we.depth;return Pe;function Pe(){we.flags=se,we.internalFlags=on,we.depth=pn}}function Se(we){return we.maxExpansionDepth>=0&&et(we)}function et(we){return we.truncating?we.truncating:we.truncating=we.approximateLength>we.maxTruncationLength}function Tt(we,se){for(let on=0;on0)return we.flags&1048576?L.createUnionTypeNode(Yr):L.createIntersectionTypeNode(Yr);!se.encounteredError&&!(se.flags&262144)&&(se.encounteredError=!0);return}if(ct&48)return C.assert(!!(we.flags&524288)),fr(we);if(we.flags&4194304){const bn=we.type;se.approximateLength+=6;const Yr=$t(bn,se);return L.createTypeOperatorNode(143,Yr)}if(we.flags&134217728){const bn=we.texts,Yr=we.types,Wo=L.createTemplateHead(bn[0]),vo=L.createNodeArray(Yt(Yr,($a,hs)=>L.createTemplateLiteralTypeSpan($t($a,se),(hsGt(bn));if(we.flags&33554432){const bn=$t(we.baseType,se),Yr=XC(we)&&i_e("NoInfer",!1);return Yr?Ss(Yr,se,788968,[bn]):bn}return C.fail("Should be unreachable.");function Gt(bn){const Yr=$t(bn.checkType,se);if(se.approximateLength+=15,se.flags&4&&bn.root.isDistributive&&!(bn.checkType.flags&262144)){const Co=Hu(Ua(262144,"T")),wc=Al(Co,se),Oc=L.createTypeReferenceNode(wc);se.approximateLength+=37;const Wd=MA(bn.root.checkType,Co,bn.mapper),vu=se.inferTypeParameters;se.inferTypeParameters=bn.root.inferTypeParameters;const Xu=$t(ro(bn.root.extendsType,Wd),se);se.inferTypeParameters=vu;const Xy=sn(ro(a(se,bn.root.node.trueType),Wd)),lS=sn(ro(a(se,bn.root.node.falseType),Wd));return L.createConditionalTypeNode(Yr,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Oc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(wc)),$t(bn.checkType,se),L.createConditionalTypeNode(Oc,Xu,Xy,lS),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}const Wo=se.inferTypeParameters;se.inferTypeParameters=bn.root.inferTypeParameters;const vo=$t(bn.extendsType,se);se.inferTypeParameters=Wo;const $a=sn(gT(bn)),hs=sn(yT(bn));return L.createConditionalTypeNode(Yr,vo,$a,hs)}function sn(bn){var Yr,Wo,vo;return bn.flags&1048576?(Yr=se.visitedTypes)!=null&&Yr.has(fd(bn))?(se.flags&131072||(se.encounteredError=!0,(vo=(Wo=se.tracker)==null?void 0:Wo.reportCyclicStructureError)==null||vo.call(Wo)),nr(se)):Br(bn,$a=>$t($a,se)):$t(bn,se)}function jt(bn){return!!U8(bn)}function un(bn){return!!bn.target&&jt(bn.target)&&!jt(bn)}function Zn(bn){var Yr;C.assert(!!(bn.flags&524288));const Wo=bn.declaration.readonlyToken?L.createToken(bn.declaration.readonlyToken.kind):void 0,vo=bn.declaration.questionToken?L.createToken(bn.declaration.questionToken.kind):void 0;let $a,hs,Co=qg(bn);const wc=oh(bn),Oc=!HC(bn)&&!(J0(bn).flags&2)&&se.flags&4&&!(Cf(bn).flags&262144&&((Yr=Ju(Cf(bn)))==null?void 0:Yr.flags)&4194304);if(HC(bn)){if(un(bn)&&se.flags&4){const IT=Hu(Ua(262144,"T")),SR=Al(IT,se),$L=bn.target;hs=L.createTypeReferenceNode(SR),Co=ro(qg($L),oFe([oh($L),J0($L)],[wc,IT]))}$a=L.createTypeOperatorNode(143,hs||$t(J0(bn),se))}else if(Oc){const IT=Hu(Ua(262144,"T")),SR=Al(IT,se);hs=L.createTypeReferenceNode(SR),$a=hs}else $a=$t(Cf(bn),se);const Wd=fo(wc,se,$a),vu=Ko(se,bn.declaration,void 0,[q0(Wr(bn.declaration.typeParameter))]),Xu=bn.declaration.nameType?$t(Bv(bn),se):void 0,Xy=$t(Hy(Co,!!(eg(bn)&4)),se);vu();const lS=L.createMappedTypeNode(Wo,Wd,Xu,vo,Xy,void 0);se.approximateLength+=10;const BE=Cr(lS,1);if(un(bn)&&se.flags&4){const IT=ro(Ju(a(se,bn.declaration.typeParameter.constraint.type))||Nt,bn.mapper);return L.createConditionalTypeNode($t(J0(bn),se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(hs.typeName),IT.flags&2?void 0:$t(IT,se))),BE,L.createKeywordTypeNode(146))}else if(Oc)return L.createConditionalTypeNode($t(Cf(bn),se),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(hs.typeName),L.createTypeOperatorNode(143,$t(J0(bn),se)))),BE,L.createKeywordTypeNode(146));return BE}function fr(bn,Yr=!1,Wo=!1){var vo,$a;const hs=bn.id,Co=bn.symbol;if(Co){if(!!(Hr(bn)&8388608)){const Xu=bn.node;if(VS(Xu)&&a(se,Xu)===bn){const Xy=Me.tryReuseExistingTypeNode(se,Xu);if(Xy)return Xy}return(vo=se.visitedTypes)!=null&&vo.has(hs)?nr(se):Br(bn,li)}const Wd=R8(bn)?788968:111551;if(x_(Co.valueDeclaration))return Ss(Co,se,Wd);if(!Wo&&(Co.flags&32&&!Yr&&!M8(Co)&&!(Co.valueDeclaration&&ui(Co.valueDeclaration)&&se.flags&2048&&(!Mc(Co.valueDeclaration)||dT(Co,se.enclosingDeclaration,Wd,!1).accessibility!==0))||Co.flags&896||wc()))if(Dt(bn,se))se.depth+=1;else return Ss(Co,se,Wd);if(($a=se.visitedTypes)!=null&&$a.has(hs)){const vu=Kz(bn);return vu?Ss(vu,se,788968):nr(se)}else return Br(bn,li)}else return li(bn);function wc(){var Oc;const Wd=!!(Co.flags&8192)&&vt(Co.declarations,Xu=>ua(Xu)&&!S8e(wo(Xu))),vu=!!(Co.flags&16)&&(Co.parent||qe(Co.declarations,Xu=>Xu.parent.kind===308||Xu.parent.kind===269));if(Wd||vu)return(!!(se.flags&4096)||((Oc=se.visitedTypes)==null?void 0:Oc.has(hs)))&&(!(se.flags&8)||Qx(Co,se.enclosingDeclaration))}}function Br(bn,Yr){var Wo,vo,$a;const hs=bn.id,Co=Hr(bn)&16&&bn.symbol&&bn.symbol.flags&32,wc=Hr(bn)&4&&bn.node?"N"+ls(bn.node):bn.flags&16777216?"N"+ls(bn.root.node):bn.symbol?(Co?"+":"")+Ta(bn.symbol):void 0;se.visitedTypes||(se.visitedTypes=new Set),wc&&!se.symbolDepth&&(se.symbolDepth=new Map);const Oc=se.maxExpansionDepth>=0?void 0:se.enclosingDeclaration&&Vr(se.enclosingDeclaration),Wd=`${fd(bn)}|${se.flags}|${se.internalFlags}`;Oc&&(Oc.serializedTypes||(Oc.serializedTypes=new Map));const vu=(Wo=Oc?.serializedTypes)==null?void 0:Wo.get(Wd);if(vu)return(vo=vu.trackedSymbols)==null||vo.forEach(([og,cN,_B])=>se.tracker.trackSymbol(og,cN,_B)),vu.truncating&&(se.truncating=!0),se.approximateLength+=vu.addedLength,SR(vu.node);let Xu;if(wc){if(Xu=se.symbolDepth.get(wc)||0,Xu>10)return nr(se);se.symbolDepth.set(wc,Xu+1)}se.visitedTypes.add(hs);const Xy=se.trackedSymbols;se.trackedSymbols=void 0;const lS=se.approximateLength,BE=Yr(bn),IT=se.approximateLength-lS;return!se.reportedDiagnostic&&!se.encounteredError&&(($a=Oc?.serializedTypes)==null||$a.set(Wd,{node:BE,truncating:se.truncating,addedLength:IT,trackedSymbols:se.trackedSymbols})),se.visitedTypes.delete(hs),wc&&se.symbolDepth.set(wc,Xu),se.trackedSymbols=Xy,BE;function SR(og){return!Fs(og)&&jo(og)===og?og:c(se,L.cloneNode(On(og,SR,void 0,$L,SR)),og)}function $L(og,cN,_B,ove,ave){return og&&og.length===0?bt(L.createNodeArray(void 0,og.hasTrailingComma),og):Xn(og,cN,_B,ove,ave)}}function li(bn){if(mp(bn)||bn.containsError)return Zn(bn);const Yr=Mh(bn);if(!Yr.properties.length&&!Yr.indexInfos.length){if(!Yr.callSignatures.length&&!Yr.constructSignatures.length)return se.approximateLength+=2,Cr(L.createTypeLiteralNode(void 0),1);if(Yr.callSignatures.length===1&&!Yr.constructSignatures.length){const Co=Yr.callSignatures[0];return ii(Co,185,se)}if(Yr.constructSignatures.length===1&&!Yr.callSignatures.length){const Co=Yr.constructSignatures[0];return ii(Co,186,se)}}const Wo=Un(Yr.constructSignatures,Co=>!!(Co.flags&4));if(vt(Wo)){const Co=Yt(Wo,IA);return Yr.callSignatures.length+(Yr.constructSignatures.length-Wo.length)+Yr.indexInfos.length+(se.flags&2048?Ao(Yr.properties,Oc=>!(Oc.flags&4194304)):Qe(Yr.properties))&&Co.push(yA(Yr)),$t(Pa(Co),se)}const vo=xe(se);se.flags|=4194304;const $a=ns(Yr);vo();const hs=L.createTypeLiteralNode($a);return se.approximateLength+=2,Cr(hs,se.flags&1024?0:1),hs}function hi(bn){let Yr=ol(bn);if(bn.target===ts||bn.target===ja){if(se.flags&2){const $a=$t(Yr[0],se);return L.createTypeReferenceNode(bn.target===ts?"Array":"ReadonlyArray",[$a])}const Wo=$t(Yr[0],se),vo=L.createArrayTypeNode(Wo);return bn.target===ts?vo:L.createTypeOperatorNode(148,vo)}else if(bn.target.objectFlags&8){if(Yr=to(Yr,(Wo,vo)=>Hy(Wo,!!(bn.target.elementFlags[vo]&2))),Yr.length>0){const Wo=jv(bn),vo=Sr(Yr.slice(0,Wo),se);if(vo){const{labeledElementDeclarations:$a}=bn.target;for(let Co=0;Co0){let Oc=0;if(bn.target.typeParameters&&(Oc=Math.min(bn.target.typeParameters.length,Yr.length),(Yp(bn,RY(!1))||Yp(bn,TWe(!1))||Yp(bn,a5(!1))||Yp(bn,bWe(!1)))&&(!bn.node||!Bp(bn.node)||!bn.node.typeArguments||bn.node.typeArguments.length0;){const Wd=Yr[Oc-1],vu=bn.target.typeParameters[Oc-1],Xu=RE(vu);if(!Xu||!Yg(Wd,Xu))break;Oc--}hs=Sr(Yr.slice(vo,Oc),se)}const Co=xe(se);se.flags|=16;const wc=Ss(bn.symbol,se,788968,hs);return Co(),$a?lr($a,wc):wc}}}function lr(bn,Yr){if(r_(bn)){let Wo=bn.typeArguments,vo=bn.qualifier;vo&&(Je(vo)?Wo!==b1(vo)&&(vo=uv(L.cloneNode(vo),Wo)):Wo!==b1(vo.right)&&(vo=L.updateQualifiedName(vo,vo.left,uv(L.cloneNode(vo.right),Wo)))),Wo=Yr.typeArguments;const $a=Di(Yr);for(const hs of $a)vo=vo?L.createQualifiedName(vo,hs):hs;return L.updateImportTypeNode(bn,bn.argument,bn.attributes,vo,Wo,bn.isTypeOf)}else{let Wo=bn.typeArguments,vo=bn.typeName;Je(vo)?Wo!==b1(vo)&&(vo=uv(L.cloneNode(vo),Wo)):Wo!==b1(vo.right)&&(vo=L.updateQualifiedName(vo,vo.left,uv(L.cloneNode(vo.right),Wo))),Wo=Yr.typeArguments;const $a=Di(Yr);for(const hs of $a)vo=L.createQualifiedName(vo,hs);return L.updateTypeReferenceNode(bn,vo,Wo)}}function Di(bn){let Yr=bn.typeName;const Wo=[];for(;!Je(Yr);)Wo.unshift(Yr.right),Yr=Yr.left;return Wo.unshift(Yr),Wo}function mo(bn,Yr,Wo){if(bn.components&&Hn(bn.components,$a=>{var hs;return!!($a.name&&va($a.name)&&Ns($a.name.expression)&&Yr.enclosingDeclaration&&((hs=eR($a.name.expression,Yr.enclosingDeclaration,!1))==null?void 0:hs.accessibility)===0)})){const $a=Un(bn.components,hs=>!jC(hs));return Yt($a,hs=>(vr(hs.name.expression,Yr.enclosingDeclaration,Yr),c(Yr,L.createPropertySignature(bn.isReadonly?[L.createModifier(148)]:void 0,hs.name,(Iu(hs)||Mo(hs)||qm(hs)||Ll(hs)||_g(hs)||Hh(hs))&&hs.questionToken?L.createToken(58):void 0,Wo||$t(_r(hs.symbol),Yr)),hs)))}return[io(bn,Yr,Wo)]}function ns(bn){if(et(se))return se.out.truncated=!0,se.flags&1?[VM(L.createNotEmittedTypeElement(),3,"elided")]:[L.createPropertySignature(void 0,"...",void 0,void 0)];se.typeStack.push(-1);const Yr=[];for(const $a of bn.callSignatures)Yr.push(ii($a,180,se));for(const $a of bn.constructSignatures)$a.flags&4||Yr.push(ii($a,181,se));for(const $a of bn.indexInfos)Yr.push(...mo($a,se,bn.objectFlags&1024?nr(se):void 0));const Wo=bn.properties;if(!Wo)return se.typeStack.pop(),Yr;let vo=0;for(const $a of Wo)if(!(sS(se)&&$a.flags&4194304)){if(vo++,se.flags&2048){if($a.flags&4194304)continue;qf($a)&6&&se.tracker.reportPrivateInBaseOfClassExpression&&se.tracker.reportPrivateInBaseOfClassExpression(Vi($a.escapedName))}if(et(se)&&vo+2!(li.flags&32768)),0);for(const li of Br){const hi=ii(li,174,se,{name:Gt,questionToken:sn});on.push(fr(hi,li.declaration||we.valueDeclaration))}if(Br.length||!sn)return}let jt;yr(we,se)?jt=nr(se):(Pe&&(se.reverseMappedStack||(se.reverseMappedStack=[]),se.reverseMappedStack.push(we)),jt=Ke?Gr(se,void 0,Ke,we):L.createKeywordTypeNode(133),Pe&&se.reverseMappedStack.pop());const un=Fh(we)?[L.createToken(148)]:void 0;un&&(se.approximateLength+=9);const Zn=L.createPropertySignature(un,Gt,sn,jt);on.push(fr(Zn,we.valueDeclaration));function fr(Br,li){var hi;const lr=(hi=we.declarations)==null?void 0:hi.find(Di=>Di.kind===349);if(lr){const Di=V2(lr.comment);Di&&XT(Br,[{kind:3,text:`* * `+Di.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else li&&vn(se,Br,li);return Br}}function vn(we,se,on){return we.enclosingFile&&we.enclosingFile===zn(on)?Nc(se,on):se}function Sr(we,se,on){if(vt(we)){if(et(se))if(se.out.truncated=!0,on){if(we.length>2)return[$t(we[0],se),se.flags&1?kb(L.createKeywordTypeNode(133),3,`... ${we.length-2} more elided ...`):L.createTypeReferenceNode(`... ${we.length-2} more ...`,void 0),$t(we[we.length-1],se)]}else return[se.flags&1?kb(L.createKeywordTypeNode(133),3,"elided"):L.createTypeReferenceNode("...",void 0)];const Pe=!(se.flags&64)?hm():void 0,Ke=[];let ct=0;for(const Gt of we){if(ct++,et(se)&&ct+2{if(!$re(sn,([jt],[un])=>mi(jt,un)))for(const[jt,un]of sn)Ke[un]=$t(jt,se)}),Gt()}return Ke}}function mi(we,se){return we===se||!!we.symbol&&we.symbol===se.symbol||!!we.aliasSymbol&&we.aliasSymbol===se.aliasSymbol}function io(we,se,on){const pn=cne(we)||"x",Pe=$t(we.keyType,se),Ke=L.createParameterDeclaration(void 0,void 0,pn,void 0,Pe,void 0);return on||(on=$t(we.type||He,se)),!we.type&&!(se.flags&2097152)&&(se.encounteredError=!0),se.approximateLength+=pn.length+4,L.createIndexSignature(we.isReadonly?[L.createToken(148)]:void 0,[Ke],on)}function ii(we,se,on,pn){var Pe;let Ke,ct;const Gt=C8e(we,!0)[0],sn=Ko(on,we.declaration,Gt,we.typeParameters,we.parameters,we.mapper);on.approximateLength+=3,on.flags&32&&we.target&&we.mapper&&we.target.typeParameters?ct=we.target.typeParameters.map(hi=>$t(ro(hi,we.mapper),on)):Ke=we.typeParameters&&we.typeParameters.map(hi=>Ql(hi,on));const jt=xe(on);on.flags&=-257;const un=(vt(Gt,hi=>hi!==Gt[Gt.length-1]&&!!(Bl(hi)&32768))?we.parameters:Gt).map(hi=>ir(hi,on,se===177)),Zn=on.flags&33554432?void 0:ms(we,on);Zn&&un.unshift(Zn),jt();const fr=La(on,we);let Br=pn?.modifiers;if(se===186&&we.flags&4){const hi=Qh(Br);Br=L.createModifiersFromModifierFlags(hi|64)}const li=se===180?L.createCallSignature(Ke,un,fr):se===181?L.createConstructSignature(Ke,un,fr):se===174?L.createMethodSignature(Br,pn?.name??L.createIdentifier(""),pn?.questionToken,Ke,un,fr):se===175?L.createMethodDeclaration(Br,void 0,pn?.name??L.createIdentifier(""),void 0,Ke,un,fr,void 0):se===177?L.createConstructorDeclaration(Br,un,void 0):se===178?L.createGetAccessorDeclaration(Br,pn?.name??L.createIdentifier(""),un,fr,void 0):se===179?L.createSetAccessorDeclaration(Br,pn?.name??L.createIdentifier(""),un,void 0):se===182?L.createIndexSignature(Br,un,fr):se===318?L.createJSDocFunctionType(un,fr):se===185?L.createFunctionTypeNode(Ke,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):se===186?L.createConstructorTypeNode(Br,Ke,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):se===263?L.createFunctionDeclaration(Br,void 0,pn?.name?ma(pn.name,Je):L.createIdentifier(""),Ke,un,fr,void 0):se===219?L.createFunctionExpression(Br,void 0,pn?.name?ma(pn.name,Je):L.createIdentifier(""),Ke,un,fr,L.createBlock([])):se===220?L.createArrowFunction(Br,Ke,un,fr,void 0,L.createBlock([])):C.assertNever(se);if(ct&&(li.typeArguments=L.createNodeArray(ct)),((Pe=we.declaration)==null?void 0:Pe.kind)===324&&we.declaration.parent.kind===340){const hi=Rl(we.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(lr=>lr.replace(/^\s+/," ")).join(` `);kb(li,3,hi,!0)}return sn?.(),li}function Bi(we){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let se,on,pn=!1;const Pe=we.tracker,Ke=we.trackedSymbols;we.trackedSymbols=void 0;const ct=we.encounteredError;return we.tracker=new Mae(we,{...Pe.inner,reportCyclicStructureError(){Gt(()=>Pe.reportCyclicStructureError())},reportInaccessibleThisError(){Gt(()=>Pe.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Gt(()=>Pe.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(un){Gt(()=>Pe.reportLikelyUnsafeImportRequiredError(un))},reportNonSerializableProperty(un){Gt(()=>Pe.reportNonSerializableProperty(un))},reportPrivateInBaseOfClassExpression(un){Gt(()=>Pe.reportPrivateInBaseOfClassExpression(un))},trackSymbol(un,Zn,fr){return(se??(se=[])).push([un,Zn,fr]),!1},moduleResolverHost:we.tracker.moduleResolverHost},we.tracker.moduleResolverHost),{startRecoveryScope:sn,finalizeBoundary:jt,markError:Gt,hadError:()=>pn};function Gt(un){pn=!0,un&&(on??(on=[])).push(un)}function sn(){const un=se?.length??0,Zn=on?.length??0;return()=>{pn=!1,se&&(se.length=un),on&&(on.length=Zn)}}function jt(){return we.tracker=Pe,we.trackedSymbols=Ke,we.encounteredError=ct,on?.forEach(un=>un()),pn?!1:(se?.forEach(([un,Zn,fr])=>we.tracker.trackSymbol(un,Zn,fr)),!0)}}function Ko(we,se,on,pn,Pe,Ke){const ct=DW(we);let Gt,sn;const jt=we.enclosingDeclaration,un=we.mapper;if(Ke&&(we.mapper=Ke),we.enclosingDeclaration&&se){let Zn=function(fr,Br){C.assert(we.enclosingDeclaration);let li;Vr(we.enclosingDeclaration).fakeScopeForSignatureDeclaration===fr?li=we.enclosingDeclaration:we.enclosingDeclaration.parent&&Vr(we.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===fr&&(li=we.enclosingDeclaration.parent),C.assertOptionalNode(li,ta);const hi=li?.locals??da();let lr,Di;if(Br((mo,ns)=>{if(li){const bn=hi.get(mo);bn?Di=Vn(Di,{name:mo,oldSymbol:bn}):lr=Vn(lr,mo)}hi.set(mo,ns)}),li)return function(){qe(lr,ns=>hi.delete(ns)),qe(Di,ns=>hi.set(ns.name,ns.oldSymbol))};{const mo=L.createBlock(ie);Vr(mo).fakeScopeForSignatureDeclaration=fr,mo.locals=hi,ps(mo,we.enclosingDeclaration),we.enclosingDeclaration=mo}};Gt=vt(on)?Zn("params",fr=>{if(on)for(let Br=0;Br{if(Zi(lr)&&Zo(lr.name))return Di(lr.name),!0;return;function Di(ns){qe(ns.elements,bn=>{switch(bn.kind){case 233:return;case 209:return mo(bn);default:return C.assertNever(bn)}})}function mo(ns){if(Zo(ns.name))return Di(ns.name);const bn=Wr(ns);fr(bn.escapedName,bn)}})||fr(li.escapedName,li)}}):void 0,we.flags&4&&vt(pn)&&(sn=Zn("typeParams",fr=>{for(const Br of pn??ie){const li=Al(Br,we).escapedText;fr(li,Br.symbol)}}))}return()=>{Gt?.(),sn?.(),ct(),we.enclosingDeclaration=jt,we.mapper=un}}function ms(we,se){if(we.thisParameter)return ir(we.thisParameter,se);if(we.declaration&&Ir(we.declaration)){const on=vF(we.declaration);if(on&&on.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,$t(a(se,on.typeExpression),se))}}function fo(we,se,on){const pn=xe(se);se.flags&=-513;const Pe=L.createModifiersFromModifierFlags(j_e(we)),Ke=Al(we,se),ct=RE(we),Gt=ct&&$t(ct,se);return pn(),L.createTypeParameterDeclaration(Pe,Ke,on,Gt)}function pl(we,se,on){return!Tt(we,on)&&se&&a(on,se)===we&&Me.tryReuseExistingTypeNode(on,se)||$t(we,on)}function Ql(we,se,on=Ju(we)){const pn=on&&pl(on,TY(we),se);return fo(we,se,pn)}function gu(we,se){const on=we.kind===2||we.kind===3?L.createToken(131):void 0,pn=we.kind===1||we.kind===3?Cr(L.createIdentifier(we.parameterName),16777216):L.createThisTypeNode(),Pe=we.type&&$t(we.type,se);return L.createTypePredicateNode(on,pn,Pe)}function qn(we){const se=ll(we,170);if(se)return se;if(!gg(we))return ll(we,342)}function ir(we,se,on){const pn=qn(we),Pe=_r(we),Ke=Gr(se,pn,Pe,we),ct=!(se.flags&8192)&&on&&pn&&Rm(pn)?Yt(yS(pn),L.cloneNode):void 0,sn=pn&&M_(pn)||Bl(we)&32768?L.createToken(26):void 0,jt=Hi(we,pn,se),Zn=pn&&O8(pn)||Bl(we)&16384?L.createToken(58):void 0,fr=L.createParameterDeclaration(ct,sn,jt,Zn,Ke,void 0);return se.approximateLength+=Fl(we).length+3,fr}function Hi(we,se,on){return se&&se.name?se.name.kind===80?Cr(L.cloneNode(se.name),16777216):se.name.kind===167?Cr(L.cloneNode(se.name.right),16777216):pn(se.name):Fl(we);function pn(Pe){return Ke(Pe);function Ke(ct){on.tracker.canTrackSymbol&&va(ct)&&khe(ct)&&vr(ct.expression,on.enclosingDeclaration,on);let Gt=On(ct,Ke,void 0,void 0,Ke);return qa(Gt)&&(Gt=L.updateBindingElement(Gt,Gt.dotDotDotToken,Gt.propertyName,Gt.name,void 0)),Fs(Gt)||(Gt=L.cloneNode(Gt)),Cr(Gt,16777217)}}}function vr(we,se,on){if(!on.tracker.canTrackSymbol)return;const pn=Ou(we),Pe=gt(se,pn.escapedText,1160127,void 0,!0);if(Pe)on.tracker.trackSymbol(Pe,se,111551);else{const Ke=gt(pn,pn.escapedText,1160127,void 0,!0);Ke&&on.tracker.trackSymbol(Ke,se,111551)}}function ko(we,se,on,pn){return se.tracker.trackSymbol(we,se.enclosingDeclaration,on),ys(we,se,on,pn)}function ys(we,se,on,pn){let Pe;return!(we.flags&262144)&&(se.enclosingDeclaration||se.flags&64)&&!(se.internalFlags&4)?(Pe=C.checkDefined(ct(we,on,!0)),C.assert(Pe&&Pe.length>0)):Pe=[we],Pe;function ct(Gt,sn,jt){let un=wv(Gt,se.enclosingDeclaration,sn,!!(se.flags&128)),Zn;if(!un||SE(un[0],se.enclosingDeclaration,un.length===1?sn:nh(sn))){const Br=TE(un?un[0]:Gt,se.enclosingDeclaration,sn);if(Qe(Br)){Zn=Br.map(lr=>vt(lr.declarations,EE)?uc(lr,se):void 0);const li=Br.map((lr,Di)=>Di);li.sort(fr);const hi=li.map(lr=>Br[lr]);for(const lr of hi){const Di=ct(lr,nh(sn),!1);if(Di){if(lr.exports&&lr.exports.get("export=")&&he(lr.exports.get("export="),Gt)){un=Di;break}un=Di.concat(un||[D(lr,Gt)||Gt]);break}}}}if(un)return un;if(jt||!(Gt.flags&6144))return!jt&&!pn&&qe(Gt.declarations,EE)?void 0:[Gt];function fr(Br,li){const hi=Zn[Br],lr=Zn[li];if(hi&&lr){const Di=nf(lr);return nf(hi)===Di?v3(hi)-v3(lr):Di?-1:1}return 0}}}function al(we,se){let on;return lN(we).flags&524384&&(on=L.createNodeArray(Yt(Ma(we),Pe=>Ql(Pe,se)))),on}function hd(we,se,on){var pn;C.assert(we&&0<=se&&seUv(un,sn.links.mapper)),on)}else ct=al(Pe,on)}return ct}function Ya(we){return US(we.objectType)?Ya(we.objectType):we}function uc(we,se,on){let pn=ll(we,308);if(!pn){const Zn=Ln(we.declarations,fr=>gA(fr,we));Zn&&(pn=ll(Zn,308))}if(pn&&pn.moduleName!==void 0)return pn.moduleName;if(!pn&&Dae.test(we.escapedName))return we.escapedName.substring(1,we.escapedName.length-1);if(!se.enclosingFile||!se.tracker.moduleResolverHost)return Dae.test(we.escapedName)?we.escapedName.substring(1,we.escapedName.length-1):zn(MG(we)).fileName;const Pe=bl(se.enclosingDeclaration),Ke=kne(Pe)?SI(Pe):void 0,ct=se.enclosingFile,Gt=on||Ke&&e.getModeForUsageLocation(ct,Ke)||ct&&e.getDefaultResolutionModeForFile(ct),sn=cP(ct.path,Gt),jt=Jr(we);let un=jt.specifierCache&&jt.specifierCache.get(sn);if(!un){const Zn=!!W.outFile,{moduleResolverHost:fr}=se.tracker,Br=Zn?{...W,baseUrl:fr.getCommonSourceDirectory()}:W;un=Qa(tAe(we,or,Br,ct,fr,{importModuleSpecifierPreference:Zn?"non-relative":"project-relative",importModuleSpecifierEnding:Zn?"minimal":Gt===99?"js":void 0},{overrideImportMode:on})),jt.specifierCache??(jt.specifierCache=new Map),jt.specifierCache.set(sn,un)}return un}function vc(we){const se=L.createIdentifier(Vi(we.escapedName));return we.parent?L.createQualifiedName(vc(we.parent),se):se}function Ss(we,se,on,pn){const Pe=ko(we,se,on,!(se.flags&16384)),Ke=on===111551;if(vt(Pe[0].declarations,EE)){const sn=Pe.length>1?Gt(Pe,Pe.length-1,1):void 0,jt=pn||hd(Pe,0,se),un=zn(bl(se.enclosingDeclaration)),Zn=tk(Pe[0]);let fr,Br;if((su(W)===3||su(W)===99)&&Zn?.impliedNodeFormat===99&&Zn.impliedNodeFormat!==un?.impliedNodeFormat&&(fr=uc(Pe[0],se,99),Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),fr||(fr=uc(Pe[0],se)),!(se.flags&67108864)&&su(W)!==1&&fr.includes("/node_modules/")){const hi=fr;if(su(W)===3||su(W)===99){const lr=un?.impliedNodeFormat===99?1:99;fr=uc(Pe[0],se,lr),fr.includes("/node_modules/")?fr=hi:Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(lr===99?"import":"require"))]))}Br||(se.encounteredError=!0,se.tracker.reportLikelyUnsafeImportRequiredError&&se.tracker.reportLikelyUnsafeImportRequiredError(hi))}const li=L.createLiteralTypeNode(L.createStringLiteral(fr));if(se.approximateLength+=fr.length+10,!sn||ku(sn)){if(sn){const hi=Je(sn)?sn:sn.right;uv(hi,void 0)}return L.createImportTypeNode(li,Br,sn,jt,Ke)}else{const hi=Ya(sn),lr=hi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(li,Br,lr,jt,Ke),hi.indexType)}}const ct=Gt(Pe,Pe.length-1,0);if(US(ct))return ct;if(Ke)return L.createTypeQueryNode(ct);{const sn=Je(ct)?ct:ct.right,jt=b1(sn);return uv(sn,void 0),L.createTypeReferenceNode(ct,jt)}function Gt(sn,jt,un){const Zn=jt===sn.length-1?pn:hd(sn,jt,se),fr=sn[jt],Br=sn[jt-1];let li;if(jt===0)se.flags|=16777216,li=H0(fr,se),se.approximateLength+=(li?li.length:0)+1,se.flags^=16777216;else if(Br&&Xp(Br)){const lr=Xp(Br);Jc(lr,(Di,mo)=>{if(he(Di,fr)&&!P8(mo)&&mo!=="export=")return li=Vi(mo),!0})}if(li===void 0){const lr=Ln(fr.declarations,wo);if(lr&&va(lr)&&ku(lr.expression)){const Di=Gt(sn,jt-1,un);return ku(Di)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(Di)),L.createTypeQueryNode(lr.expression)):Di}li=H0(fr,se)}if(se.approximateLength+=li.length+1,!(se.flags&16)&&Br&&Z_(Br)&&Z_(Br).get(fr.escapedName)&&he(Z_(Br).get(fr.escapedName),fr)){const lr=Gt(sn,jt-1,un);return US(lr)?L.createIndexedAccessTypeNode(lr,L.createLiteralTypeNode(L.createStringLiteral(li))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(lr,Zn),L.createLiteralTypeNode(L.createStringLiteral(li)))}const hi=Cr(L.createIdentifier(li),16777216);if(Zn&&uv(hi,L.createNodeArray(Zn)),hi.symbol=fr,jt>un){const lr=Gt(sn,jt-1,un);return ku(lr)?L.createQualifiedName(lr,hi):C.fail("Impossible construct - an export of an indexed access cannot be reachable")}return hi}}function Pf(we,se,on){const pn=gt(se.enclosingDeclaration,we,788968,void 0,!1);return pn&&pn.flags&262144?pn!==on.symbol:!1}function Al(we,se){var on,pn,Pe,Ke;if(se.flags&4&&se.typeParameterNames){const sn=se.typeParameterNames.get(fd(we));if(sn)return sn}let ct=ac(we.symbol,se,788968,!0);if(!(ct.kind&80))return L.createIdentifier("(Missing type parameter)");const Gt=(pn=(on=we.symbol)==null?void 0:on.declarations)==null?void 0:pn[0];if(Gt&&cl(Gt)&&(ct=c(se,ct,Gt.name)),se.flags&4){const sn=ct.escapedText;let jt=((Pe=se.typeParameterNamesByTextNextNameCount)==null?void 0:Pe.get(sn))||0,un=sn;for(;(Ke=se.typeParameterNamesByText)!=null&&Ke.has(un)||Pf(un,se,we);)jt++,un=`${sn}_${jt}`;if(un!==sn){const Zn=b1(ct);ct=L.createIdentifier(un),uv(ct,Zn)}se.mustCreateTypeParametersNamesLookups&&(se.mustCreateTypeParametersNamesLookups=!1,se.typeParameterNames=new Map(se.typeParameterNames),se.typeParameterNamesByTextNextNameCount=new Map(se.typeParameterNamesByTextNextNameCount),se.typeParameterNamesByText=new Set(se.typeParameterNamesByText)),se.typeParameterNamesByTextNextNameCount.set(sn,jt),se.typeParameterNames.set(fd(we),ct),se.typeParameterNamesByText.add(un)}return ct}function ac(we,se,on,pn){const Pe=ko(we,se,on);return pn&&Pe.length!==1&&!se.encounteredError&&!(se.flags&65536)&&(se.encounteredError=!0),Ke(Pe,Pe.length-1);function Ke(ct,Gt){const sn=hd(ct,Gt,se),jt=ct[Gt];Gt===0&&(se.flags|=16777216);const un=H0(jt,se);Gt===0&&(se.flags^=16777216);const Zn=Cr(L.createIdentifier(un),16777216);return sn&&uv(Zn,L.createNodeArray(sn)),Zn.symbol=jt,Gt>0?L.createQualifiedName(Ke(ct,Gt-1),Zn):Zn}}function pm(we,se,on){const pn=ko(we,se,on);return Pe(pn,pn.length-1);function Pe(Ke,ct){const Gt=hd(Ke,ct,se),sn=Ke[ct];ct===0&&(se.flags|=16777216);let jt=H0(sn,se);ct===0&&(se.flags^=16777216);let un=jt.charCodeAt(0);if(bk(un)&&vt(sn.declarations,EE)){const Zn=uc(sn,se);return se.approximateLength+=2+Zn.length,L.createStringLiteral(Zn)}if(ct===0||oj(jt,G)){const Zn=Cr(L.createIdentifier(jt),16777216);return Gt&&uv(Zn,L.createNodeArray(Gt)),Zn.symbol=sn,se.approximateLength+=1+jt.length,ct>0?L.createPropertyAccessExpression(Pe(Ke,ct-1),Zn):Zn}else{un===91&&(jt=jt.substring(1,jt.length-1),un=jt.charCodeAt(0));let Zn;if(bk(un)&&!(sn.flags&8)){const fr=Sm(jt).replace(/\\./g,Br=>Br.substring(1));se.approximateLength+=fr.length+2,Zn=L.createStringLiteral(fr,un===39)}else""+ +jt===jt&&(se.approximateLength+=jt.length,Zn=L.createNumericLiteral(+jt));if(!Zn){const fr=Cr(L.createIdentifier(jt),16777216);Gt&&uv(fr,L.createNodeArray(Gt)),fr.symbol=sn,se.approximateLength+=jt.length,Zn=fr}return se.approximateLength+=2,L.createElementAccessExpression(Pe(Ke,ct-1),Zn)}}}function XL(we){const se=wo(we);return se?va(se)?!!(_o(se.expression).flags&402653316):zs(se)?!!(_o(se.argumentExpression).flags&402653316):Oa(se):!1}function RW(we){const se=wo(we);return!!(se&&Oa(se)&&(se.singleQuote||!Fs(se)&&po(Rl(se,!1),"'")))}function YL(we,se){const on=dQ(we);if(on)if(!!se.tracker.reportPrivateInBaseOfClassExpression&&se.flags&2048){let jt=Vi(we.escapedName);return jt=jt.replace(/__#\d+@#/g,"__#private@#"),sw(jt,Va(W),!1,!0,!!(we.flags&8192))}else return on;const pn=!!Qe(we.declarations)&&Hn(we.declarations,XL),Pe=!!Qe(we.declarations)&&Hn(we.declarations,RW),Ke=!!(we.flags&8192),ct=cf(we,se,Pe,pn,Ke);if(ct)return ct;const Gt=Vi(we.escapedName);return sw(Gt,Va(W),Pe,pn,Ke)}function cf(we,se,on,pn,Pe){const Ke=Jr(we).nameType;if(Ke){if(Ke.flags&384){const ct=""+Ke.value;return!_p(ct,Va(W))&&(pn||!Dg(ct))?L.createStringLiteral(ct,!!on):Dg(ct)&&po(ct,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-ct))):sw(ct,Va(W),on,pn,Pe)}if(Ke.flags&8192)return L.createComputedPropertyName(pm(Ke.symbol,se,111551))}}function DW(we){const se=we.mustCreateTypeParameterSymbolList,on=we.mustCreateTypeParametersNamesLookups;we.mustCreateTypeParameterSymbolList=!0,we.mustCreateTypeParametersNamesLookups=!0;const pn=we.typeParameterNames,Pe=we.typeParameterNamesByText,Ke=we.typeParameterNamesByTextNextNameCount,ct=we.typeParameterSymbolList;return()=>{we.typeParameterNames=pn,we.typeParameterNamesByText=Pe,we.typeParameterNamesByTextNextNameCount=Ke,we.typeParameterSymbolList=ct,we.mustCreateTypeParameterSymbolList=se,we.mustCreateTypeParametersNamesLookups=on}}function Ut(we,se){return we.declarations&&mn(we.declarations,on=>!!F7e(on)&&(!se||!!Dn(on,pn=>pn===se)))}function Nn(we,se){if(!(Hr(se)&4)||!Bp(we))return!0;IY(we);const on=Vr(we).resolvedSymbol,pn=on&&Ks(on);return!pn||pn!==se.target?!0:Qe(we.typeArguments)>=tg(se.target.typeParameters)}function $n(we){for(;Vr(we).fakeScopeForSignatureDeclaration;)we=we.parent;return we}function hr(we,se,on){return on.flags&8192&&on.symbol===we&&(!se.enclosingDeclaration||vt(we.declarations,Pe=>zn(Pe)===se.enclosingFile))&&(se.flags|=1048576),$t(on,se)}function Gr(we,se,on,pn){var Pe;let Ke;const ct=se&&(Zi(se)||_f(se))&&fB(se,we.enclosingDeclaration),Gt=se??pn.valueDeclaration??Ut(pn)??((Pe=pn.declarations)==null?void 0:Pe[0]);if(!Tt(on,we)&&Gt){const sn=Q(we,pn,on);yb(Gt)?Ke=Me.serializeTypeOfAccessor(Gt,pn,we):p4(Gt)&&!Fs(Gt)&&!(Hr(on)&196608)&&(Ke=Me.serializeTypeOfDeclaration(Gt,pn,we)),sn()}return Ke||(ct&&(on=bT(on)),Ke=hr(pn,we,on)),Ke??L.createKeywordTypeNode(133)}function gi(we,se,on){return on===se?!0:we&&((Iu(we)||Mo(we))&&we.questionToken||Zi(we)&&mY(we))?cm(se,524288)===on:!1}function La(we,se){const on=we.flags&256,pn=xe(we);on&&(we.flags&=-257);let Pe;const Ke=fs(se);if(!(on&&wr(Ke))){if(se.declaration&&!Fs(se.declaration)&&!Tt(Ke,we)){const ct=Wr(se.declaration),Gt=Q(we,ct,Ke);Pe=Me.serializeReturnTypeForSignature(se.declaration,ct,we),Gt()}Pe||(Pe=Fa(we,se,Ke))}return!Pe&&!on&&(Pe=L.createKeywordTypeNode(133)),pn(),Pe}function Fa(we,se,on){const pn=we.suppressReportInferenceFallback;we.suppressReportInferenceFallback=!0;const Pe=am(se),Ke=Pe?gu(we.mapper?lFe(Pe,we.mapper):Pe,we):$t(on,we);return we.suppressReportInferenceFallback=pn,Ke}function js(we,se,on=se.enclosingDeclaration){let pn=!1;const Pe=Ou(we);if(Ir(we)&&(l1(Pe)||Sg(Pe.parent)||Wu(Pe.parent)&&qG(Pe.parent.left)&&l1(Pe.parent.right)))return pn=!0,{introducesError:pn,node:we};const Ke=hL(we);let ct;if(Db(Pe))return ct=Wr(Su(Pe,!1,!1)),dT(ct,Pe,Ke,!1).accessibility!==0&&(pn=!0,se.tracker.reportInaccessibleThisError()),{introducesError:pn,node:Gt(we)};if(ct=Ul(Pe,Ke,!0,!0),se.enclosingDeclaration&&!(ct&&ct.flags&262144)){ct=Et(ct);const sn=Ul(Pe,Ke,!0,!0,se.enclosingDeclaration);if(sn===ne||sn===void 0&&ct!==void 0||sn&&ct&&!he(Et(sn),ct))return sn!==ne&&se.tracker.reportInferenceFallback(we),pn=!0,{introducesError:pn,node:we,sym:ct};ct=sn}if(ct)return ct.flags&1&&ct.valueDeclaration&&(HT(ct.valueDeclaration)||_f(ct.valueDeclaration))?{introducesError:pn,node:Gt(we)}:(!(ct.flags&262144)&&!w_(we)&&dT(ct,on,Ke,!1).accessibility!==0?(se.tracker.reportInferenceFallback(we),pn=!0):se.tracker.trackSymbol(ct,on,Ke),{introducesError:pn,node:Gt(we)});return{introducesError:pn,node:we};function Gt(sn){if(sn===Pe){const un=Ks(ct),Zn=ct.flags&262144?Al(un,se):L.cloneNode(sn);return Zn.symbol=ct,c(se,Cr(Zn,16777216),sn)}const jt=On(sn,un=>Gt(un),void 0);return c(se,jt,sn)}}function ed(we,se,on,pn){const Pe=on?111551:788968,Ke=Ul(se,Pe,!0);if(!Ke)return;const ct=Ke.flags&2097152?pd(Ke):Ke;if(dT(Ke,we.enclosingDeclaration,Pe,!1).accessibility===0)return Ss(ct,we,Pe,pn)}function yu(we,se){const on=a(we,se,!0);if(!on)return!1;if(Ir(se)&&sy(se)){ZWe(se);const pn=Vr(se).resolvedSymbol;return!pn||!(!se.isTypeOf&&!(pn.flags&788968)||!(Qe(se.typeArguments)>=tg(Ma(pn))))}if(Bp(se)){if(Gm(se))return!1;const pn=Vr(se).resolvedSymbol;if(!pn)return!1;if(pn.flags&262144){const Pe=Ks(pn);return!(we.mapper&&Uv(Pe,we.mapper)!==Pe)}if(nM(se))return Nn(se,on)&&!dWe(se)&&!!(pn.flags&788968)}if(YT(se)&&se.operator===158&&se.type.kind===155){const pn=we.enclosingDeclaration&&$n(we.enclosingDeclaration);return!!Dn(se,Pe=>Pe===pn)}return!0}function hp(we,se,on){const pn=a(we,se);if(on&&!dm(pn,Pe=>!!(Pe.flags&32768))&&yu(we,se)){const Pe=Me.tryReuseExistingTypeNode(we,se);if(Pe)return L.createUnionTypeNode([Pe,L.createKeywordTypeNode(157)])}return $t(pn,we)}function aS(we,se){var on;const pn=eze(L.createPropertyDeclaration,175,!0),Pe=eze((Ct,mr,bi,Ii)=>L.createPropertySignature(Ct,mr,bi,Ii),174,!1),Ke=se.enclosingDeclaration;let ct=[];const Gt=new Set,sn=[],jt=se;se={...jt,usedSymbolNames:new Set(jt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((on=jt.remappedSymbolReferences)==null?void 0:on.entries()),tracker:void 0};const un={...jt.tracker.inner,trackSymbol:(Ct,mr,bi)=>{var Ii,kr;if((Ii=se.remappedSymbolNames)!=null&&Ii.has(Ta(Ct)))return!1;if(dT(Ct,mr,bi,!1).accessibility===0){const Ba=ys(Ct,se,bi);if(!(Ct.flags&4)){const Xo=Ba[0],ki=zn(jt.enclosingDeclaration);vt(Xo.declarations,ba=>zn(ba)===ki)&&$a(Xo)}}else if((kr=jt.tracker.inner)!=null&&kr.trackSymbol)return jt.tracker.inner.trackSymbol(Ct,mr,bi);return!1}};se.tracker=new Mae(se,un,jt.tracker.moduleResolverHost),Jc(we,(Ct,mr)=>{const bi=Vi(mr);ag(Ct,bi)});let Zn=!se.bundled;const fr=we.get("export=");return fr&&we.size>1&&fr.flags&2098688&&(we=da(),we.set("export=",fr)),Yr(we),mo(ct);function Br(Ct){return!!Ct&&Ct.kind===80}function li(Ct){return cc(Ct)?Un(Yt(Ct.declarationList.declarations,wo),Br):Un([wo(Ct)],Br)}function hi(Ct){const mr=mn(Ct,dl),bi=ho(Ct,mc);let Ii=bi!==-1?Ct[bi]:void 0;if(Ii&&mr&&mr.isExportEquals&&Je(mr.expression)&&Je(Ii.name)&&Kr(Ii.name)===Kr(mr.expression)&&Ii.body&&i_(Ii.body)){const kr=Un(Ct,Xo=>!!(Ud(Xo)&32)),xa=Ii.name;let Ba=Ii.body;if(Qe(kr)&&(Ii=L.updateModuleDeclaration(Ii,Ii.modifiers,Ii.name,Ba=L.updateModuleBlock(Ba,L.createNodeArray([...Ii.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(Yt(fi(kr,Xo=>li(Xo)),Xo=>L.createExportSpecifier(!1,void 0,Xo))),void 0)]))),Ct=[...Ct.slice(0,bi),Ii,...Ct.slice(bi+1)]),!mn(Ct,Xo=>Xo!==Ii&&B2(Xo,xa))){ct=[];const Xo=!vt(Ba.statements,ki=>di(ki,32)||dl(ki)||hc(ki));qe(Ba.statements,ki=>{Co(ki,Xo?32:0)}),Ct=[...Un(Ct,ki=>ki!==Ii&&ki!==mr),...ct]}}return Ct}function lr(Ct){const mr=Un(Ct,Ii=>hc(Ii)&&!Ii.moduleSpecifier&&!!Ii.exportClause&&$f(Ii.exportClause));Qe(mr)>1&&(Ct=[...Un(Ct,kr=>!hc(kr)||!!kr.moduleSpecifier||!kr.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(fi(mr,kr=>ma(kr.exportClause,$f).elements)),void 0)]);const bi=Un(Ct,Ii=>hc(Ii)&&!!Ii.moduleSpecifier&&!!Ii.exportClause&&$f(Ii.exportClause));if(Qe(bi)>1){const Ii=MR(bi,kr=>Oa(kr.moduleSpecifier)?">"+kr.moduleSpecifier.text:">");if(Ii.length!==bi.length)for(const kr of Ii)kr.length>1&&(Ct=[...Un(Ct,xa=>!kr.includes(xa)),L.createExportDeclaration(void 0,!1,L.createNamedExports(fi(kr,xa=>ma(xa.exportClause,$f).elements)),kr[0].moduleSpecifier)])}return Ct}function Di(Ct){const mr=ho(Ct,bi=>hc(bi)&&!bi.moduleSpecifier&&!bi.attributes&&!!bi.exportClause&&$f(bi.exportClause));if(mr>=0){const bi=Ct[mr],Ii=Ei(bi.exportClause.elements,kr=>{if(!kr.propertyName&&kr.name.kind!==11){const xa=kr.name,Ba=JW(Ct),Xo=Un(Ba,ki=>B2(Ct[ki],xa));if(Qe(Xo)&&Hn(Xo,ki=>lw(Ct[ki]))){for(const ki of Xo)Ct[ki]=ns(Ct[ki]);return}}return kr});Qe(Ii)?Ct[mr]=L.updateExportDeclaration(bi,bi.modifiers,bi.isTypeOnly,L.updateNamedExports(bi.exportClause,Ii),bi.moduleSpecifier,bi.attributes):cb(Ct,mr)}return Ct}function mo(Ct){return Ct=hi(Ct),Ct=lr(Ct),Ct=Di(Ct),Ke&&(Xi(Ke)&&wp(Ke)||mc(Ke))&&(!vt(Ct,Y2)||!Lte(Ct)&&vt(Ct,CF))&&Ct.push(xw(L)),Ct}function ns(Ct){const mr=(Ud(Ct)|32)&-129;return L.replaceModifiers(Ct,mr)}function bn(Ct){const mr=Ud(Ct)&-33;return L.replaceModifiers(Ct,mr)}function Yr(Ct,mr,bi){mr||sn.push(new Map);let Ii=0;const kr=Array.from(Ct.values());for(const xa of kr){if(Ii++,Se(se)&&Ii+2{Wo(xa,!0,!!bi)}),sn.pop())}function Wo(Ct,mr,bi){Ts(_r(Ct));const Ii=as(Ct);if(Gt.has(Ta(Ii)))return;if(Gt.add(Ta(Ii)),!mr||Qe(Ct.declarations)&&vt(Ct.declarations,xa=>!!Dn(xa,Ba=>Ba===Ke))){const xa=DW(se);se.tracker.pushErrorFallbackNode(mn(Ct.declarations,Ba=>zn(Ba)===se.enclosingFile)),vo(Ct,mr,bi),se.tracker.popErrorFallbackNode(),xa()}}function vo(Ct,mr,bi,Ii=Ct.escapedName){var kr,xa,Ba,Xo,ki,ba,Wc;const yl=Vi(Ii),tu=Ii==="default";if(mr&&!(se.flags&131072)&&RI(yl)&&!tu){se.encounteredError=!0;return}let Zl=tu&&!!(Ct.flags&-113||Ct.flags&16&&Qe(Ts(_r(Ct))))&&!(Ct.flags&2097152),sl=!Zl&&!mr&&RI(yl)&&!tu;(Zl||sl)&&(mr=!0);const Wl=(mr?0:32)|(tu&&!Zl?2048:0),ql=Ct.flags&1536&&Ct.flags&7&&Ii!=="export=",Lf=ql&&sve(_r(Ct),Ct);if((Ct.flags&8208||Lf)&&IT(_r(Ct),Ct,ag(Ct,yl),Wl),Ct.flags&524288&&wc(Ct,yl,Wl),Ct.flags&98311&&Ii!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!Lf)if(bi)gB(Ct)&&(sl=!1,Zl=!1);else{const bc=_r(Ct),Yu=ag(Ct,yl);if(bc.symbol&&bc.symbol!==Ct&&bc.symbol.flags&16&&vt(bc.symbol.declarations,Pb)&&((kr=bc.symbol.members)!=null&&kr.size||(xa=bc.symbol.exports)!=null&&xa.size))se.remappedSymbolReferences||(se.remappedSymbolReferences=new Map),se.remappedSymbolReferences.set(Ta(bc.symbol),Ct),vo(bc.symbol,mr,bi,Ii),se.remappedSymbolReferences.delete(Ta(bc.symbol));else if(!(Ct.flags&16)&&sve(bc,Ct))IT(bc,Ct,Yu,Wl);else{const Xv=Ct.flags&2?fR(Ct)?2:1:(Ba=Ct.parent)!=null&&Ba.valueDeclaration&&Xi((Xo=Ct.parent)==null?void 0:Xo.valueDeclaration)?2:void 0,kf=Zl||!(Ct.flags&4)?Yu:vB(Yu,Ct);let ey=Ct.declarations&&mn(Ct.declarations,RT=>yi(RT));ey&&gd(ey.parent)&&ey.parent.declarations.length===1&&(ey=ey.parent.parent);const xT=(ki=Ct.declarations)==null?void 0:ki.find(qr);if(xT&&Nr(xT.parent)&&Je(xT.parent.right)&&((ba=bc.symbol)!=null&&ba.valueDeclaration)&&Xi(bc.symbol.valueDeclaration)){const RT=Yu===xT.parent.right.escapedText?void 0:xT.parent.right;se.approximateLength+=12+(((Wc=RT?.escapedText)==null?void 0:Wc.length)??0),Co(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,RT,Yu)])),0),se.tracker.trackSymbol(bc.symbol,se.enclosingDeclaration,111551)}else{const RT=c(se,L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(kf,void 0,Gr(se,void 0,bc,Ct))],Xv)),ey);se.approximateLength+=7+kf.length,Co(RT,kf!==Yu?Wl&-33:Wl),kf!==Yu&&!mr&&(se.approximateLength+=16+kf.length+Yu.length,Co(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,kf,Yu)])),0),sl=!1,Zl=!1)}}}if(Ct.flags&384&&BE(Ct,yl,Wl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&Nr(Ct.valueDeclaration.parent)&&fc(Ct.valueDeclaration.parent.right)?Z7e(Ct,ag(Ct,yl),Wl):ove(Ct,ag(Ct,yl),Wl)),(Ct.flags&1536&&(!ql||Xy(Ct))||Lf)&&lS(Ct,yl,Wl),Ct.flags&64&&!(Ct.flags&32)&&Oc(Ct,yl,Wl),Ct.flags&2097152&&Z7e(Ct,ag(Ct,yl),Wl),Ct.flags&4&&Ct.escapedName==="export="&&gB(Ct),Ct.flags&8388608&&Ct.declarations)for(const bc of Ct.declarations){const Yu=mu(bc,bc.moduleSpecifier);if(!Yu)continue;const Xv=bc.isTypeOnly,kf=uc(Yu,se);se.approximateLength+=17+kf.length,Co(L.createExportDeclaration(void 0,Xv,void 0,L.createStringLiteral(kf)),0)}if(Zl){const bc=ag(Ct,yl);se.approximateLength+=16+bc.length,Co(L.createExportAssignment(void 0,!1,L.createIdentifier(bc)),0)}else if(sl){const bc=ag(Ct,yl);se.approximateLength+=22+yl.length+bc.length,Co(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,bc,yl)])),0)}}function $a(Ct){if(vt(Ct.declarations,HT))return;C.assertIsDefined(sn[sn.length-1]),vB(Vi(Ct.escapedName),Ct);const mr=!!(Ct.flags&2097152)&&!vt(Ct.declarations,bi=>!!Dn(bi,hc)||F_(bi)||Gc(bi)&&!hy(bi.moduleReference));sn[mr?0:sn.length-1].set(Ta(Ct),Ct)}function hs(Ct){return Xi(Ct)&&(wp(Ct)||Vf(Ct))||Tu(Ct)&&!L_(Ct)}function Co(Ct,mr){if(Rm(Ct)){const bi=Ud(Ct);let Ii=0;const kr=se.enclosingDeclaration&&(Tm(se.enclosingDeclaration)?zn(se.enclosingDeclaration):se.enclosingDeclaration);mr&32&&kr&&(hs(kr)||mc(kr))&&lw(Ct)&&(Ii|=32),Zn&&!(Ii&32)&&(!kr||!(kr.flags&33554432))&&(t0(Ct)||cc(Ct)||rc(Ct)||Mc(Ct)||mc(Ct))&&(Ii|=128),mr&2048&&(Mc(Ct)||yd(Ct)||rc(Ct))&&(Ii|=2048),Ii&&(Ct=L.replaceModifiers(Ct,Ii|bi)),se.approximateLength+=yB(Ii|bi)}ct.push(Ct)}function wc(Ct,mr,bi){var Ii;const kr=f8e(Ct),xa=Jr(Ct).typeParameters,Ba=Yt(xa,Zl=>Ql(Zl,se)),Xo=(Ii=Ct.declarations)==null?void 0:Ii.find(Tm),ki=V2(Xo?Xo.comment||Xo.parent.comment:void 0),ba=xe(se);se.flags|=8388608;const Wc=se.enclosingDeclaration;se.enclosingDeclaration=Xo;const yl=Xo&&Xo.typeExpression&&r0(Xo.typeExpression)&&Me.tryReuseExistingTypeNode(se,Xo.typeExpression.type)||$t(kr,se),tu=ag(Ct,mr);se.approximateLength+=8+(ki?.length??0)+tu.length,Co(XT(L.createTypeAliasDeclaration(void 0,tu,Ba,yl),ki?[{kind:3,text:`* * `+ki.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),bi),ba(),se.enclosingDeclaration=Wc}function Oc(Ct,mr,bi){const Ii=ag(Ct,mr);se.approximateLength+=14+Ii.length;const kr=om(Ct),xa=Ma(Ct),Ba=Yt(xa,sl=>Ql(sl,se)),Xo=ih(kr),ki=Qe(Xo)?Pa(Xo):void 0,ba=Wd(Ts(kr),!1,ki),Wc=lve(0,kr,ki,180),yl=lve(1,kr,ki,181),tu=nze(kr,ki),Zl=Qe(Xo)?[L.createHeritageClause(96,Ei(Xo,sl=>cve(sl,111551)))]:void 0;Co(L.createInterfaceDeclaration(void 0,Ii,Ba,Zl,[...tu,...yl,...Wc,...ba]),bi)}function Wd(Ct,mr,bi,Ii){const kr=[];let xa=0;for(const Ba of Ct){if(xa++,Se(se)&&xa+2cN(Ii)&&_p(Ii.escapedName,99))}function Xy(Ct){return Hn(Xu(Ct),mr=>!(fp(gc(mr))&111551))}function lS(Ct,mr,bi){const Ii=Xu(Ct),kr=sS(se),xa=S2(Ii,ki=>ki.parent&&ki.parent===Ct||kr?"real":"merged"),Ba=xa.get("real")||ie,Xo=xa.get("merged")||ie;if(Qe(Ba)||kr){let ki;if(kr){const ba=se.flags;se.flags|=514,ki=p(Ct,se,-1),se.flags=ba}else{const ba=ag(Ct,mr);ki=L.createIdentifier(ba),se.approximateLength+=ba.length}og(Ba,ki,bi,!!(Ct.flags&67108880))}if(Qe(Xo)){const ki=zn(se.enclosingDeclaration),ba=ag(Ct,mr),Wc=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(Ei(Un(Xo,yl=>yl.escapedName!=="export="),yl=>{var tu,Zl;const sl=Vi(yl.escapedName),Wl=ag(yl,sl),ql=yl.declarations&&pp(yl);if(ki&&(ql?ki!==zn(ql):!vt(yl.declarations,Yu=>zn(Yu)===ki))){(Zl=(tu=se.tracker)==null?void 0:tu.reportNonlocalAugmentation)==null||Zl.call(tu,ki,Ct,yl);return}const Lf=ql&&z0(ql,!0);$a(Lf||yl);const bc=Lf?ag(Lf,Vi(Lf.escapedName)):Wl;return L.createExportSpecifier(!1,sl===bc?void 0:bc,sl)})))]);Co(L.createModuleDeclaration(void 0,L.createIdentifier(ba),Wc,32),0)}}function BE(Ct,mr,bi){const Ii=ag(Ct,mr);se.approximateLength+=9+Ii.length;const kr=[],xa=Un(Ts(_r(Ct)),Xo=>!!(Xo.flags&8));let Ba=0;for(const Xo of xa){if(Ba++,Se(se)&&Ba+2!Qe(ql.declarations)||vt(ql.declarations,Lf=>zn(Lf)===zn(se.enclosingDeclaration))||xa?"local":"remote").get("local")||ie;let ki=a0.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr);ps(ki,Ke),ki.locals=da(Ct),ki.symbol=Ct[0].parent;const ba=ct;ct=[];const Wc=Zn;Zn=!1;const yl={...se,enclosingDeclaration:ki},tu=se;se=yl,Yr(da(Xo),Ii,!0),se=tu,Zn=Wc;const Zl=ct;ct=ba;const sl=Yt(Zl,ql=>dl(ql)&&!ql.isExportEquals&&Je(ql.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,ql.expression,L.createIdentifier("default"))])):ql),Wl=Hn(sl,ql=>di(ql,32))?Yt(sl,bn):sl;ki=L.updateModuleDeclaration(ki,ki.modifiers,ki.name,L.createModuleBlock(Wl)),Co(ki,bi)}else xa&&(se.approximateLength+=14,Co(L.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr),bi))}function cN(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&ua(Ct.valueDeclaration)&&ui(Ct.valueDeclaration.parent))}function _B(Ct){const mr=Ei(Ct,bi=>{const Ii=se.enclosingDeclaration;se.enclosingDeclaration=bi;let kr=bi.expression;if(Ns(kr)){if(Je(kr)&&Kr(kr)==="")return xa(void 0);let Ba;if({introducesError:Ba,node:kr}=js(kr,se),Ba)return xa(void 0)}return xa(L.createExpressionWithTypeArguments(kr,Yt(bi.typeArguments,Ba=>Me.tryReuseExistingTypeNode(se,Ba)||$t(a(se,Ba),se))));function xa(Ba){return se.enclosingDeclaration=Ii,Ba}});if(mr.length===Ct.length)return mr}function ove(Ct,mr,bi){var Ii,kr;se.approximateLength+=9+mr.length;const xa=(Ii=Ct.declarations)==null?void 0:Ii.find(ui),Ba=se.enclosingDeclaration;se.enclosingDeclaration=xa||Ba;const Xo=Ma(Ct),ki=Yt(Xo,Yv=>Ql(Yv,se));qe(Xo,Yv=>se.approximateLength+=Fl(Yv.symbol).length);const ba=$p(om(Ct)),Wc=ih(ba),yl=xa&&lD(xa),tu=yl&&_B(yl)||Ei(VC(ba),ETt),Zl=_r(Ct),sl=!!((kr=Zl.symbol)!=null&&kr.valueDeclaration)&&ui(Zl.symbol.valueDeclaration),Wl=sl?Oy(Zl):He;se.approximateLength+=(Qe(Wc)?8:0)+(Qe(tu)?11:0);const ql=[...Qe(Wc)?[L.createHeritageClause(96,Yt(Wc,Yv=>STt(Yv,Wl,mr)))]:[],...Qe(tu)?[L.createHeritageClause(119,tu)]:[]],Lf=avt(ba,Wc,Ts(ba)),bc=Un(Lf,Yv=>!hB(Yv)),Yu=vt(Lf,hB),Xv=Yu?sS(se)?Wd(Un(Lf,hB),!0,Wc[0],!1):[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:ie;Yu&&!sS(se)&&(se.approximateLength+=9);const kf=Wd(bc,!0,Wc[0],!1),ey=Wd(Un(Ts(Zl),Yv=>!(Yv.flags&4194304)&&Yv.escapedName!=="prototype"&&!cN(Yv)),!0,Wl,!0),xT=!sl&&!!Ct.valueDeclaration&&Ir(Ct.valueDeclaration)&&!vt(ra(Zl,1));xT&&(se.approximateLength+=21);const RT=xT?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:lve(1,Zl,Wl,177),ATt=nze(ba,Wc[0]);se.enclosingDeclaration=Ba,Co(c(se,L.createClassDeclaration(void 0,mr,ki,ql,[...ATt,...ey,...RT,...kf,...Xv]),Ct.declarations&&Un(Ct.declarations,Yv=>Mc(Yv)||fc(Yv))[0]),bi)}function ave(Ct){return Ln(Ct,mr=>{if(xu(mr)||lu(mr))return Eb(mr.propertyName||mr.name);if(Nr(mr)||dl(mr)){const bi=dl(mr)?mr.expression:mr.right;if(qr(bi))return Kr(bi.name)}if(Nv(mr)){const bi=wo(mr);if(bi&&Je(bi))return Kr(bi)}})}function Z7e(Ct,mr,bi){var Ii,kr,xa,Ba,Xo;const ki=pp(Ct);if(!ki)return C.fail();const ba=as(z0(ki,!0));if(!ba)return;let Wc=ik(ba)&&ave(Ct.declarations)||Vi(ba.escapedName);Wc==="export="&&ve&&(Wc="default");const yl=ag(ba,Wc);switch($a(ba),ki.kind){case 209:if(((kr=(Ii=ki.parent)==null?void 0:Ii.parent)==null?void 0:kr.kind)===261){const sl=uc(ba.parent||ba,se),{propertyName:Wl}=ki,ql=Wl&&Je(Wl)?Kr(Wl):void 0;se.approximateLength+=24+mr.length+sl.length+(ql?.length??0),Co(L.createImportDeclaration(void 0,L.createImportClause(void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,ql?L.createIdentifier(ql):void 0,L.createIdentifier(mr))])),L.createStringLiteral(sl),void 0),0);break}C.failBadSyntaxKind(((xa=ki.parent)==null?void 0:xa.parent)||ki,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:((Xo=(Ba=ki.parent)==null?void 0:Ba.parent)==null?void 0:Xo.kind)===227&&QL(Vi(Ct.escapedName),yl);break;case 261:if(qr(ki.initializer)){const sl=ki.initializer,Wl=L.createUniqueName(mr),ql=uc(ba.parent||ba,se);se.approximateLength+=22+ql.length+Kr(Wl).length,Co(L.createImportEqualsDeclaration(void 0,!1,Wl,L.createExternalModuleReference(L.createStringLiteral(ql))),0),se.approximateLength+=12+mr.length+Kr(Wl).length+Kr(sl.name).length,Co(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),L.createQualifiedName(Wl,sl.name)),bi);break}case 272:if(ba.escapedName==="export="&&vt(ba.declarations,sl=>Xi(sl)&&Vf(sl))){gB(Ct);break}const tu=!(ba.flags&512)&&!yi(ki);se.approximateLength+=11+mr.length+Vi(ba.escapedName).length,Co(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),tu?ac(ba,se,-1,!1):L.createExternalModuleReference(L.createStringLiteral(uc(ba,se)))),tu?bi:0);break;case 271:Co(L.createNamespaceExportDeclaration(Kr(ki.name)),0);break;case 274:{const sl=uc(ba.parent||ba,se),Wl=se.bundled?L.createStringLiteral(sl):ki.parent.moduleSpecifier,ql=Tl(ki.parent)?ki.parent.attributes:void 0,Lf=l_(ki.parent);se.approximateLength+=14+mr.length+3+(Lf?4:0),Co(L.createImportDeclaration(void 0,L.createImportClause(Lf?156:void 0,L.createIdentifier(mr),void 0),Wl,ql),0);break}case 275:{const sl=uc(ba.parent||ba,se),Wl=se.bundled?L.createStringLiteral(sl):ki.parent.parent.moduleSpecifier,ql=l_(ki.parent.parent);se.approximateLength+=19+mr.length+3+(ql?4:0),Co(L.createImportDeclaration(void 0,L.createImportClause(ql?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(mr))),Wl,ki.parent.attributes),0);break}case 281:se.approximateLength+=19+mr.length+3,Co(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(mr)),L.createStringLiteral(uc(ba,se))),0);break;case 277:{const sl=uc(ba.parent||ba,se),Wl=se.bundled?L.createStringLiteral(sl):ki.parent.parent.parent.moduleSpecifier,ql=l_(ki.parent.parent.parent);se.approximateLength+=19+mr.length+3+(ql?4:0),Co(L.createImportDeclaration(void 0,L.createImportClause(ql?156:void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,mr!==Wc?L.createIdentifier(Wc):void 0,L.createIdentifier(mr))])),Wl,ki.parent.parent.parent.attributes),0);break}case 282:const Zl=ki.parent.parent.moduleSpecifier;if(Zl){const sl=ki.propertyName;sl&&P_(sl)&&(Wc="default")}QL(Vi(Ct.escapedName),Zl?Wc:yl,Zl&&ds(Zl)?L.createStringLiteral(Zl.text):void 0);break;case 278:gB(Ct);break;case 227:case 212:case 213:Ct.escapedName==="default"||Ct.escapedName==="export="?gB(Ct):QL(mr,yl);break;default:return C.failBadSyntaxKind(ki,"Unhandled alias declaration kind in symbol serializer!")}}function QL(Ct,mr,bi){se.approximateLength+=16+Ct.length+(Ct!==mr?mr.length:0),Co(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==mr?mr:void 0,Ct)]),bi),0)}function gB(Ct){var mr;if(Ct.flags&4194304)return!1;const bi=Vi(Ct.escapedName),Ii=bi==="export=",xa=Ii||bi==="default",Ba=Ct.declarations&&pp(Ct),Xo=Ba&&z0(Ba,!0);if(Xo&&Qe(Xo.declarations)&&vt(Xo.declarations,ki=>zn(ki)===zn(Ke))){const ki=Ba&&(dl(Ba)||Nr(Ba)?tV(Ba):Vne(Ba)),ba=ki&&Ns(ki)?Tvt(ki):void 0,Wc=ba&&Ul(ba,-1,!0,!0,Ke);(Wc||Xo)&&$a(Wc||Xo);const yl=se.tracker.disableTrackSymbol;if(se.tracker.disableTrackSymbol=!0,xa)se.approximateLength+=10,ct.push(L.createExportAssignment(void 0,Ii,pm(Xo,se,-1)));else if(ba===ki&&ba)QL(bi,Kr(ba));else if(ki&&fc(ki))QL(bi,ag(Xo,Fl(Xo)));else{const tu=vB(bi,Ct);se.approximateLength+=tu.length+10,Co(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(tu),ac(Xo,se,-1,!1)),0),QL(bi,tu)}return se.tracker.disableTrackSymbol=yl,!0}else{const ki=vB(bi,Ct),ba=ef(_r(as(Ct)));if(sve(ba,Ct))IT(ba,Ct,ki,xa?0:32);else{const Wc=((mr=se.enclosingDeclaration)==null?void 0:mr.kind)===268&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2;se.approximateLength+=ki.length+5;const yl=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(ki,void 0,Gr(se,void 0,ba,Ct))],Wc));Co(yl,Xo&&Xo.flags&4&&Xo.escapedName==="export="?128:bi===ki?32:0)}return xa?(se.approximateLength+=ki.length+10,ct.push(L.createExportAssignment(void 0,Ii,L.createIdentifier(ki))),!0):bi!==ki?(QL(bi,ki),!0):!1}}function sve(Ct,mr){var bi;const Ii=zn(se.enclosingDeclaration);return Hr(Ct)&48&&!vt((bi=Ct.symbol)==null?void 0:bi.declarations,Ci)&&!Qe(Qd(Ct))&&!R8(Ct)&&!!(Qe(Un(Ts(Ct),cN))||Qe(ra(Ct,0)))&&!Qe(ra(Ct,1))&&!Ut(mr,Ke)&&!(Ct.symbol&&vt(Ct.symbol.declarations,kr=>zn(kr)!==Ii))&&!vt(Ts(Ct),kr=>P8(kr.escapedName))&&!vt(Ts(Ct),kr=>vt(kr.declarations,xa=>zn(xa)!==Ii))&&Hn(Ts(Ct),kr=>_p(Fl(kr),G)?kr.flags&98304?Ch(kr)===zv(kr):!0:!1)}function eze(Ct,mr,bi){return function(kr,xa,Ba){var Xo,ki,ba,Wc,yl,tu;const Zl=qf(kr),sl=!!(Zl&2)&&!sS(se);if(xa&&kr.flags&2887656)return[];if(kr.flags&4194304||kr.escapedName==="constructor"||Ba&&Ea(Ba,kr.escapedName)&&Fh(Ea(Ba,kr.escapedName))===Fh(kr)&&(kr.flags&16777216)===(Ea(Ba,kr.escapedName).flags&16777216)&&Yg(_r(kr),_n(Ba,kr.escapedName)))return[];const Wl=Zl&-1025|(xa?256:0),ql=YL(kr,se),Lf=(Xo=kr.declarations)==null?void 0:Xo.find(Np(Mo,yb,yi,Iu,Nr,qr));if(kr.flags&98304&&bi){const bc=[];if(kr.flags&65536){const Yu=kr.declarations&&qe(kr.declarations,ey=>{if(ey.kind===179)return ey;if(ea(ey)&&c1(ey))return qe(ey.arguments[2].properties,xT=>{const RT=wo(xT);if(RT&&Je(RT)&&Kr(RT)==="set")return xT})});C.assert(!!Yu);const Xv=Ls(Yu)?Nf(Yu).parameters[0]:void 0,kf=(ki=kr.declarations)==null?void 0:ki.find(Hh);se.approximateLength+=yB(Wl)+7+(Xv?Fl(Xv).length:5)+(sl?0:2),bc.push(c(se,L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(Wl),ql,[L.createParameterDeclaration(void 0,void 0,Xv?Hi(Xv,qn(Xv),se):"value",void 0,sl?void 0:Gr(se,kf,zv(kr),kr))],void 0),kf??Lf))}if(kr.flags&32768){const Yu=(ba=kr.declarations)==null?void 0:ba.find(_g);se.approximateLength+=yB(Wl)+8+(sl?0:2),bc.push(c(se,L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(Wl),ql,[],sl?void 0:Gr(se,Yu,_r(kr),kr),void 0),Yu??Lf))}return bc}else if(kr.flags&98311){const bc=(Fh(kr)?8:0)|Wl;return se.approximateLength+=2+(sl?0:2)+yB(bc),c(se,Ct(L.createModifiersFromModifierFlags(bc),ql,kr.flags&16777216?L.createToken(58):void 0,sl?void 0:Gr(se,(Wc=kr.declarations)==null?void 0:Wc.find(bp),zv(kr),kr),void 0),((yl=kr.declarations)==null?void 0:yl.find(Np(Mo,yi)))||Lf)}if(kr.flags&8208){const bc=_r(kr),Yu=ra(bc,0);if(sl){const kf=(Fh(kr)?8:0)|Wl;return se.approximateLength+=1+yB(kf),c(se,Ct(L.createModifiersFromModifierFlags(kf),ql,kr.flags&16777216?L.createToken(58):void 0,void 0,void 0),((tu=kr.declarations)==null?void 0:tu.find(Ls))||Yu[0]&&Yu[0].declaration||kr.declarations&&kr.declarations[0])}const Xv=[];for(const kf of Yu){se.approximateLength+=1;const ey=ii(kf,mr,se,{name:ql,questionToken:kr.flags&16777216?L.createToken(58):void 0,modifiers:Wl?L.createModifiersFromModifierFlags(Wl):void 0}),xT=kf.declaration&&Ik(kf.declaration.parent)?kf.declaration.parent:kf.declaration;Xv.push(c(se,ey,xT))}return Xv}return C.fail(`Unhandled class member kind! ${kr.__debugFlags||kr.flags}`)}}function yB(Ct){let mr=0;return Ct&32&&(mr+=7),Ct&128&&(mr+=8),Ct&2048&&(mr+=8),Ct&4096&&(mr+=6),Ct&1&&(mr+=7),Ct&2&&(mr+=8),Ct&4&&(mr+=10),Ct&64&&(mr+=9),Ct&256&&(mr+=7),Ct&16&&(mr+=9),Ct&8&&(mr+=9),Ct&512&&(mr+=9),Ct&1024&&(mr+=6),Ct&8192&&(mr+=3),Ct&16384&&(mr+=4),mr}function tze(Ct,mr){return Pe(Ct,!1,mr)}function lve(Ct,mr,bi,Ii){const kr=ra(mr,Ct);if(Ct===1){if(!bi&&Hn(kr,Xo=>Qe(Xo.parameters)===0))return[];if(bi){const Xo=ra(bi,1);if(!Qe(Xo)&&Hn(kr,ki=>Qe(ki.parameters)===0))return[];if(Xo.length===kr.length){let ki=!1;for(let ba=0;ba$t(kr,se)),Ii=pm(Ct.target.symbol,se,788968)):Ct.symbol&&mL(Ct.symbol,Ke,mr)&&(Ii=pm(Ct.symbol,se,788968)),Ii)return L.createExpressionWithTypeArguments(Ii,bi)}function ETt(Ct){const mr=cve(Ct,788968);if(mr)return mr;if(Ct.symbol)return L.createExpressionWithTypeArguments(pm(Ct.symbol,se,788968),void 0)}function vB(Ct,mr){var bi,Ii;const kr=mr?Ta(mr):void 0;if(kr&&se.remappedSymbolNames.has(kr))return se.remappedSymbolNames.get(kr);mr&&(Ct=rze(mr,Ct));let xa=0;const Ba=Ct;for(;(bi=se.usedSymbolNames)!=null&&bi.has(Ct);)xa++,Ct=`${Ba}_${xa}`;return(Ii=se.usedSymbolNames)==null||Ii.add(Ct),kr&&se.remappedSymbolNames.set(kr,Ct),Ct}function rze(Ct,mr){if(mr==="default"||mr==="__class"||mr==="__function"){const bi=xe(se);se.flags|=16777216;const Ii=H0(Ct,se);bi(),mr=Ii.length>0&&bk(Ii.charCodeAt(0))?Sm(Ii):Ii}return mr==="default"?mr="_default":mr==="export="&&(mr="_exports"),mr=_p(mr,G)&&!RI(mr)?mr:"_"+mr.replace(/[^a-z0-9]/gi,"_"),mr}function ag(Ct,mr){const bi=Ta(Ct);return se.remappedSymbolNames.has(bi)?se.remappedSymbolNames.get(bi):(mr=rze(Ct,mr),se.remappedSymbolNames.set(bi,mr),mr)}}function sS(we){return we.maxExpansionDepth!==-1}function hB(we){return!!we.valueDeclaration&&rd(we.valueDeclaration)&&Qi(we.valueDeclaration.name)}function dQ(we){if(we.valueDeclaration&&rd(we.valueDeclaration)&&Qi(we.valueDeclaration.name))return L.cloneNode(we.valueDeclaration.name)}}function BC(n){var a;const c=(Hr(n)&4)!==0?n.target.symbol:n.symbol;return Xa(n)||!!((a=c?.declarations)!=null&&a.some(p=>e.isSourceFileDefaultLibrary(zn(p))))}function Y_(n,a,c=16384,p){return p?m(p).getText():XR(m);function m(v){const I=AE(c)|70221824|512,w=Te.typePredicateToTypePredicateNode(n,a,I),U=eE(),H=a&&zn(a);return U.writeNode(4,w,H,v),v}}function D8(n,a){const c=[];let p=0;for(let m=0;mwo(I)?I:void 0);const v=m&&wo(m);if(m&&v){if(ea(m)&&c1(m))return Fl(n);if(va(v)&&!(Bl(n)&4096)){const I=Jr(n).nameType;if(I&&I.flags&384){const w=yL(n,a);if(w!==void 0)return w}}return Ws(v)}if(m||(m=n.declarations[0]),m.parent&&m.parent.kind===261)return Ws(m.parent.name);switch(m.kind){case 232:case 219:case 220:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),m.kind===232?"(Anonymous class)":"(Anonymous function)"}}const p=yL(n,a);return p!==void 0?p:Fl(n)}function $_(n){if(n){const c=Vr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 339:case 347:case 341:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Xi(n.parent.parent.parent));case 209:return $_(n.parent.parent);case 261:if(Zo(n.name)&&!n.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(IS(n))return!0;const c=Pt(n);return!(cQ(n)&32)&&!(n.kind!==272&&c.kind!==308&&c.flags&33554432)?nv(c):$_(c);case 173:case 172:case 178:case 179:case 175:case 174:if(Fp(n,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return $_(n.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;case 278:return!1;default:return!1}}}function GC(n,a){let c;n.kind!==11&&n.parent&&n.parent.kind===278?c=gt(n,n,2998271,void 0,!1):n.parent.kind===282&&(c=jx(n.parent,2998271));let p,m;return c&&(m=new Set,m.add(Ta(c)),v(c.declarations)),p;function v(I){qe(I,w=>{const U=nm(w)||w;if(a?Vr(w).isVisible=!0:(p=p||[],Ff(p,U)),s1(w)){const H=w.moduleReference,Q=Ou(H),xe=gt(w,Q.escapedText,901119,void 0,!1);xe&&m&&Wf(m,Ta(xe))&&v(xe.declarations)}})}}function b_(n,a){const c=ee(n,a);if(c>=0){const{length:p}=Og;for(let m=c;m=Av;c--){if(ke(Og[c],Y1[c]))return-1;if(Og[c]===n&&Y1[c]===a)return c}return-1}function ke(n,a){switch(a){case 0:return!!Jr(n).type;case 2:return!!Jr(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 5:return!!n.resolvedTypeArguments;case 6:return!!n.baseTypesResolved;case 7:return!!Jr(n).writeType;case 8:return Vr(n).parameterInitializerContainsUndefined!==void 0}return C.assertNever(a)}function rt(){return Og.pop(),Y1.pop(),A0.pop()}function Pt(n){return Dn(Yh(n),a=>{switch(a.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function nn(n){const a=Ks(Qc(n));return a.typeParameters?Wy(a,Yt(a.typeParameters,c=>He)):a}function _n(n,a){const c=Ea(n,a);return c?_r(c):void 0}function ei(n,a){var c;let p;return _n(n,a)||(p=(c=aR(n,a))==null?void 0:c.type)&&hu(p,!0,!0)}function wr(n){return n&&(n.flags&1)!==0}function pr(n){return n===nt||!!(n.flags&1&&n.aliasSymbol)}function Ai(n,a){if(a!==0)return tR(n,!1,a);const c=Wr(n);return c&&Jr(c).type||tR(n,!1,a)}function oo(n,a,c){if(n=Ic(n,U=>!(U.flags&98304)),n.flags&131072)return Da;if(n.flags&1048576)return El(n,U=>oo(U,a,c));let p=pi(Yt(a,Fy));const m=[],v=[];for(const U of Ts(n)){const H=sR(U,8576);!sa(H,p)&&!(qf(U)&6)&&MY(U)?m.push(U):v.push(H)}if(CA(n)||NA(p)){if(v.length&&(p=pi([p,...v])),p.flags&131072)return n;const U=cdt();return U?KC(U,[n,p]):nt}const I=da();for(const U of m)I.set(U.escapedName,x_e(U,!1));const w=Sl(c,I,ie,ie,Qd(n));return w.objectFlags|=4194304,w}function Gs(n){return!!(n.flags&465829888)&&oc(kd(n)||Nt,32768)}function Rs(n){const a=dm(n,Gs)?El(n,c=>c.flags&465829888?S_(c):c):n;return cm(a,524288)}function ss(n,a){const c=im(n);return c?qy(c,a):a}function im(n){const a=Df(n);if(a&&aD(a)&&a.flowNode){const c=Ov(n);if(c){const p=bt(a0.createStringLiteral(c),n),m=ep(a)?a:a0.createParenthesizedExpression(a),v=bt(a0.createElementAccessExpression(m,p),n);return ps(p,v),ps(v,n),m!==a&&ps(m,v),v.flowNode=a.flowNode,v}}}function Df(n){const a=n.parent.parent;switch(a.kind){case 209:case 304:return im(a);case 210:return im(n.parent);case 261:return a.initializer;case 227:return a.right}}function Ov(n){const a=n.parent;return n.kind===209&&a.kind===207?Wv(n.propertyName||n.name):n.kind===304||n.kind===305?Wv(n.name):""+a.elements.indexOf(n)}function Wv(n){const a=Fy(n);return a.flags&384?""+a.value:void 0}function jg(n){const a=n.dotDotDotToken?32:0,c=Ai(n.parent.parent,a);return c&&pT(n,c,!1)}function pT(n,a,c){if(wr(a))return a;const p=n.parent;oe&&n.flags&33554432&&HT(n)?a=Uy(a):oe&&p.parent.initializer&&!kh(s6e(p.parent.initializer),65536)&&(a=cm(a,524288));const m=32|(c||hR(n)?16:0);let v;if(p.kind===207)if(n.dotDotDotToken){if(a=Fm(a),a.flags&2||!W5(a))return Ze(n,f.Rest_types_may_only_be_created_from_object_types),nt;const I=[];for(const w of p.elements)w.dotDotDotToken||I.push(w.propertyName||w.name);v=oo(a,I,n.symbol)}else{const I=n.propertyName||n.name,w=Fy(I),U=Qp(a,w,m,I);v=ss(n,U)}else{const I=Jv(65|(n.dotDotDotToken?0:128),a,ge,p),w=p.elements.indexOf(n);if(n.dotDotDotToken){const U=El(a,H=>H.flags&58982400?S_(H):H);v=xp(U,Xa)?El(U,H=>ML(H,w)):Zd(I)}else if(Hv(a)){const U=Ph(w),H=_T(a,U,m,n.name)||nt;v=ss(n,H)}else v=I}return n.initializer?Cc(YE(n))?oe&&!kh(GL(n,0),16777216)?Rs(v):v:Tye(n,pi([Rs(v),GL(n,0)],2)):v}function cs(n){const a=Zy(n);if(a)return Ji(a)}function Uc(n){const a=us(n,!0);return a.kind===106||a.kind===80&&_u(a)===ce}function Fv(n){const a=us(n,!0);return a.kind===210&&a.elements.length===0}function hu(n,a=!1,c=!0){return oe&&c?bT(n,a):n}function tR(n,a,c){if(yi(n)&&n.parent.parent.kind===250){const I=E_(Vge(_o(n.parent.parent.expression,c)));return I.flags&4456448?GWe(I):yt}if(yi(n)&&n.parent.parent.kind===251){const I=n.parent.parent;return lB(I)||He}if(Zo(n.parent))return jg(n);const p=Mo(n)&&!$h(n)||Iu(n)||roe(n),m=a&&BI(n),v=mT(n);if(DG(n))return v?wr(v)||v===Nt?v:nt:Y?Nt:He;if(v)return hu(v,p,m);if((be||Ir(n))&&yi(n)&&!Zo(n.name)&&!(cQ(n)&32)&&!(n.flags&33554432)){if(!(zE(n)&6)&&(!n.initializer||Uc(n.initializer)))return Rt;if(n.initializer&&Fv(n.initializer))return cd}if(Zi(n)){if(!n.symbol)return;const I=n.parent;if(I.kind===179&&UC(I)){const H=ll(Wr(n.parent),178);if(H){const Q=Nf(H),xe=nve(I);return xe&&n===xe?(C.assert(!xe.type),_r(Q.thisParameter)):fs(Q)}}const w=Lct(I,n);if(w)return w;const U=n.symbol.escapedName==="this"?Dge(I):F6e(n);if(U)return hu(U,!1,m)}if(r1(n)&&n.initializer){if(Ir(n)&&!Zi(n)){const w=rn(n,Wr(n),iM(n));if(w)return w}const I=Tye(n,GL(n,c));return hu(I,p,m)}if(Mo(n)&&(be||Ir(n)))if(Fc(n)){const I=Un(n.parent.members,nc),w=I.length?M(n.symbol,I):Ud(n)&128?VY(n.symbol):void 0;return w&&hu(w,!0,m)}else{const I=uw(n.parent),w=I?V(n.symbol,I):Ud(n)&128?VY(n.symbol):void 0;return w&&hu(w,!0,m)}if(s_(n))return mt;if(Zo(n.name))return vL(n.name,!1,!0)}function Ug(n){if(n.valueDeclaration&&Nr(n.valueDeclaration)){const a=Jr(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!br(n)&&Hn(n.declarations,c=>Nr(c)&&f$(c)&&(c.left.kind!==213||ff(c.left.argumentExpression))&&!Or(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function Q_(n){const a=n.valueDeclaration;return a&&Mo(a)&&!Cc(a)&&!a.initializer&&(be||Ir(a))}function br(n){if(n.declarations)for(const a of n.declarations){const c=Su(a,!1,!1);if(c&&(c.kind===177||x_(c)))return c}}function T(n){const a=zn(n.declarations[0]),c=Vi(n.escapedName),p=n.declarations.every(v=>Ir(v)&&Ys(v)&&Sg(v.expression)),m=p?L.createPropertyAccessExpression(L.createPropertyAccessExpression(L.createIdentifier("module"),L.createIdentifier("exports")),c):L.createPropertyAccessExpression(L.createIdentifier("exports"),c);return p&&ps(m.expression.expression,m.expression),ps(m.expression,m),ps(m,a),m.flowNode=a.endFlowNode,qy(m,Rt,ge)}function M(n,a){const c=po(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName);for(const p of a){const m=L.createPropertyAccessExpression(L.createThis(),c);ps(m.expression,m),ps(m,p),m.flowNode=p.returnFlowNode;const v=pe(m,n);if(be&&(v===Rt||v===cd)&&Ze(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,co(n),sr(v)),!xp(v,B5))return SW(v)}}function V(n,a){const c=po(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Vi(n.escapedName),p=L.createPropertyAccessExpression(L.createThis(),c);ps(p.expression,p),ps(p,a),p.flowNode=a.returnFlowNode;const m=pe(p,n);return be&&(m===Rt||m===cd)&&Ze(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,co(n),sr(m)),xp(m,B5)?void 0:SW(m)}function pe(n,a){const c=a?.valueDeclaration&&(!Q_(a)||Ud(a.valueDeclaration)&128)&&VY(a)||ge;return qy(n,Rt,c)}function tt(n,a){const c=TI(n.valueDeclaration);if(c){const w=Ir(c)?wT(c):void 0;return w&&w.typeExpression?Ji(w.typeExpression):n.valueDeclaration&&rn(n.valueDeclaration,n,c)||tS(Hl(c))}let p,m=!1,v=!1;if(Ug(n)&&(p=V(n,br(n))),!p){let w;if(n.declarations){let U;for(const H of n.declarations){const Q=Nr(H)||ea(H)?H:Ys(H)?Nr(H.parent)?H.parent:H:void 0;if(!Q)continue;const xe=Ys(Q)?Ak(Q):lc(Q);(xe===4||Nr(Q)&&f$(Q,xe))&&(lf(Q)?m=!0:v=!0),ea(Q)||(U=Or(U,Q,n,H)),U||(w||(w=[])).push(Nr(Q)||ea(Q)?Lo(n,a,Q,xe):yn)}p=U}if(!p){if(!Qe(w))return nt;let U=m&&n.declarations?fT(w,n.declarations):void 0;if(v){const Q=VY(n);Q&&((U||(U=[])).push(Q),m=!0)}const H=vt(U,Q=>!!(Q.flags&-98305))?U:w;p=pi(H)}}const I=ef(hu(p,!1,v&&!m));return n.valueDeclaration&&Ir(n.valueDeclaration)&&Ic(I,w=>!!(w.flags&-98305))===yn?(nS(n.valueDeclaration,He),He):I}function rn(n,a,c){var p,m;if(!Ir(n)||!c||!za(c)||c.properties.length)return;const v=da();for(;Nr(n)||qr(n);){const U=Rf(n);(p=U?.exports)!=null&&p.size&&g_(v,U.exports),n=Nr(n)?n.parent:n.parent.parent}const I=Rf(n);(m=I?.exports)!=null&&m.size&&g_(v,I.exports);const w=Sl(a,v,ie,ie,ie);return w.objectFlags|=4096,w}function Or(n,a,c,p){var m;const v=Cc(a.parent);if(v){const I=ef(Ji(v));if(n)!pr(n)&&!pr(I)&&!Yg(n,I)&&q3e(void 0,n,p,I);else return I}if((m=c.parent)!=null&&m.valueDeclaration){const I=G0(c.parent);if(I.valueDeclaration){const w=Cc(I.valueDeclaration);if(w){const U=Ea(Ji(w),c.escapedName);if(U)return Ch(U)}}}return n}function Lo(n,a,c,p){if(ea(c)){if(a)return _r(a);const I=Hl(c.arguments[2]),w=_n(I,"value");if(w)return w;const U=_n(I,"get");if(U){const Q=VA(U);if(Q)return fs(Q)}const H=_n(I,"set");if(H){const Q=VA(H);if(Q)return uye(Q)}return He}if(il(c.left,c.right))return He;const m=p===1&&(qr(c.left)||zs(c.left))&&(Sg(c.left.expression)||Je(c.left.expression)&&l1(c.left.expression)),v=a?_r(a):m?Pu(Hl(c.right)):tS(Hl(c.right));if(v.flags&524288&&p===2&&n.escapedName==="export="){const I=Mh(v),w=da();FF(I.members,w);const U=w.size;a&&!a.exports&&(a.exports=da()),(a||n).exports.forEach((Q,xe)=>{var Se;const et=w.get(xe);if(et&&et!==Q&&!(Q.flags&2097152))if(Q.flags&111551&&et.flags&111551){if(Q.valueDeclaration&&et.valueDeclaration&&zn(Q.valueDeclaration)!==zn(et.valueDeclaration)){const Dt=Vi(Q.escapedName),$t=((Se=ni(et.valueDeclaration,rd))==null?void 0:Se.name)||et.valueDeclaration;pa(Ze(Q.valueDeclaration,f.Duplicate_identifier_0,Dt),Ar($t,f._0_was_also_declared_here,Dt)),pa(Ze($t,f.Duplicate_identifier_0,Dt),Ar(Q.valueDeclaration,f._0_was_also_declared_here,Dt))}const Tt=Ua(Q.flags|et.flags,xe);Tt.links.type=pi([_r(Q),_r(et)]),Tt.valueDeclaration=et.valueDeclaration,Tt.declarations=ao(et.declarations,Q.declarations),w.set(xe,Tt)}else w.set(xe,tm(Q,et));else w.set(xe,Q)});const H=Sl(U!==w.size?void 0:I.symbol,w,I.callSignatures,I.constructSignatures,I.indexInfos);if(U===w.size&&(v.aliasSymbol&&(H.aliasSymbol=v.aliasSymbol,H.aliasTypeArguments=v.aliasTypeArguments),Hr(v)&4)){H.aliasSymbol=v.symbol;const Q=ol(v);H.aliasTypeArguments=Qe(Q)?Q:void 0}return H.objectFlags|=r5([v])|Hr(v)&20608,H.symbol&&H.symbol.flags&32&&v===om(H.symbol)&&(H.objectFlags|=16777216),H}return UY(v)?(nS(c,Td),Td):v}function il(n,a){return qr(n)&&n.expression.kind===110&&ox(a,c=>Id(n,c))}function lf(n){const a=Su(n,!1,!1);return a.kind===177||a.kind===263||a.kind===219&&!Ik(a.parent)}function fT(n,a){return C.assert(n.length===a.length),n.filter((c,p)=>{const m=a[p],v=Nr(m)?m:Nr(m.parent)?m.parent:void 0;return v&&lf(v)})}function Dh(n,a,c){if(n.initializer){const p=Zo(n.name)?vL(n.name,!0,!1):Nt;return hu(y3e(n,GL(n,0,p)))}return Zo(n.name)?vL(n.name,a,c):(c&&!iY(n)&&nS(n,He),a?Tr:He)}function nR(n,a,c){const p=da();let m,v=131200;qe(n.elements,w=>{const U=w.propertyName||w.name;if(w.dotDotDotToken){m=Kg(yt,He,!1);return}const H=Fy(U);if(!Jf(H)){v|=512;return}const Q=Kf(H),xe=4|(w.initializer?16777216:0),Se=Ua(xe,Q);Se.links.type=Dh(w,a,c),p.set(Se.escapedName,Se)});const I=Sl(void 0,p,ie,ie,m?[m]:ie);return I.objectFlags|=v,a&&(I.pattern=n,I.objectFlags|=131072),I}function Ehe(n,a,c){const p=n.elements,m=tl(p),v=m&&m.kind===209&&m.dotDotDotToken?m:void 0;if(p.length===0||p.length===1&&v)return G>=2?IWe(He):Td;const I=Yt(p,Q=>Xc(Q)?He:Dh(Q,a,c)),w=vl(p,Q=>!(Q===v||Xc(Q)||hR(Q)),p.length-1)+1,U=Yt(p,(Q,xe)=>Q===v?4:xe>=w?2:1);let H=ng(I,U);return a&&(H=rWe(H),H.pattern=n,H.objectFlags|=131072),H}function vL(n,a=!1,c=!1){a&&Lm.push(n);const p=n.kind===207?nR(n,a,c):Ehe(n,a,c);return a&&Lm.pop(),p}function rR(n,a){return N8(tR(n,!0,0),n,a)}function Ahe(n){const a=Vr(n);if(!a.resolvedType){const c=Ua(4096,"__importAttributes"),p=da();qe(n.elements,v=>{const I=Ua(4,d4(v));I.parent=c,I.links.type=Svt(v),I.links.target=I,p.set(I.escapedName,I)});const m=Sl(c,p,ie,ie,ie);m.objectFlags|=262272,a.resolvedType=m}return a.resolvedType}function Ihe(n){const a=Rf(n),c=Xct(!1);return c&&a&&a===c}function N8(n,a,c){return n?(n.flags&4096&&Ihe(a.parent)&&(n=R_e(a)),c&&QY(a,n),n.flags&8192&&(qa(a)||!mT(a))&&n.symbol!==Wr(a)&&(n=Qt),ef(n)):(n=Zi(a)&&a.dotDotDotToken?Td:He,c&&(iY(a)||nS(a,n)),n)}function iY(n){const a=Yh(n),c=a.kind===170?a.parent:a;return nB(c)}function mT(n){const a=Cc(n);if(a)return Ji(a)}function xhe(n){let a=n.valueDeclaration;return a?(qa(a)&&(a=YE(a)),Zi(a)?wY(a.parent):!1):!1}function Rhe(n){const a=Jr(n);if(!a.type){const c=Dhe(n);return!a.type&&!xhe(n)&&(a.type=c),c}return a.type}function Dhe(n){if(n.flags&4194304)return nn(n);if(n===Ue)return He;if(n.flags&134217728&&n.valueDeclaration){const p=Wr(zn(n.valueDeclaration)),m=Ua(p.flags,"exports");m.declarations=p.declarations?p.declarations.slice():[],m.parent=n,m.links.target=p,p.valueDeclaration&&(m.valueDeclaration=p.valueDeclaration),p.members&&(m.members=new Map(p.members)),p.exports&&(m.exports=new Map(p.exports));const v=da();return v.set("exports",m),Sl(n,v,ie,ie,ie)}C.assertIsDefined(n.valueDeclaration);const a=n.valueDeclaration;if(Xi(a)&&Vf(a))return a.statements.length?ef(tS(_o(a.statements[0].expression))):Da;if(yb(a))return TL(n);if(!b_(n,0))return n.flags&512&&!(n.flags&67108864)?SL(n):SA(n);let c;if(a.kind===278)c=N8(mT(a)||Hl(a.expression),a);else if(Nr(a)||Ir(a)&&(ea(a)||(qr(a)||p6(a))&&Nr(a.parent)))c=tt(n);else if(qr(a)||zs(a)||Je(a)||ds(a)||op(a)||Mc(a)||rc(a)||Ll(a)&&!bm(a)||qm(a)||Xi(a)){if(n.flags&9136)return SL(n);c=Nr(a.parent)?tt(n):mT(a)||He}else if(Pc(a))c=mT(a)||v3e(a);else if(s_(a))c=mT(a)||Z6e(a);else if(Jd(a))c=mT(a)||jL(a.name,0);else if(bm(a))c=mT(a)||b3e(a,0);else if(Zi(a)||Mo(a)||Iu(a)||yi(a)||qa(a)||GN(a))c=rR(a,!0);else if(t0(a))c=SL(n);else if(_y(a))c=lY(n);else return C.fail("Unhandled declaration kind! "+C.formatSyntaxKind(a.kind)+" for "+C.formatSymbol(n));return rt()?c:n.flags&512&&!(n.flags&67108864)?SL(n):SA(n)}function IE(n){if(n)switch(n.kind){case 178:return Wp(n);case 179:return bV(n);case 173:return C.assert($h(n)),Cc(n)}}function bL(n){const a=IE(n);return a&&Ji(a)}function iR(n){const a=nve(n);return a&&a.symbol}function oY(n){return X0(Nf(n))}function TL(n){const a=Jr(n);if(!a.type){if(!b_(n,0))return nt;const c=ll(n,178),p=ll(n,179),m=ni(ll(n,173),Zu);let v=c&&Ir(c)&&cs(c)||bL(c)||bL(p)||bL(m)||c&&c.body&&L$(c)||m&&rR(m,!0);v||(p&&!nB(p)?Qm(be,p,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,co(n)):c&&!nB(c)?Qm(be,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,co(n)):m&&!nB(m)&&Qm(be,m,f.Member_0_implicitly_has_an_1_type,co(n),"any"),v=He),rt()||(IE(c)?Ze(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,co(n)):IE(p)||IE(m)?Ze(p,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,co(n)):c&&be&&Ze(c,f._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,co(n)),v=He),a.type??(a.type=v)}return a.type}function aY(n){const a=Jr(n);if(!a.writeType){if(!b_(n,7))return nt;const c=ll(n,179)??ni(ll(n,173),Zu);let p=bL(c);rt()||(IE(c)&&Ze(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,co(n)),p=He),a.writeType??(a.writeType=p||TL(n))}return a.writeType}function M8(n){const a=Oy(om(n));return a.flags&8650752?a:a.flags&2097152?mn(a.types,c=>!!(c.flags&8650752)):void 0}function SL(n){let a=Jr(n);const c=a;if(!a.type){const p=n.valueDeclaration&&M$(n.valueDeclaration,!1);if(p){const m=iye(n,p);m&&(n=m,a=m.links)}c.type=a.type=sY(n)}return a.type}function sY(n){const a=n.valueDeclaration;if(n.flags&1536&&ik(n))return He;if(a&&(a.kind===227||Ys(a)&&a.parent.kind===227))return tt(n);if(n.flags&512&&a&&Xi(a)&&a.commonJsModuleIndicator){const p=Ap(n);if(p!==n){if(!b_(n,0))return nt;const m=as(n.exports.get("export=")),v=tt(m,m===p?void 0:p);return rt()?v:SA(n)}}const c=yc(16,n);if(n.flags&32){const p=M8(n);return p?Pa([c,p]):c}else return oe&&n.flags&16777216?bT(c,!0):c}function lY(n){const a=Jr(n);return a.type||(a.type=_8e(n))}function Che(n){const a=Jr(n);if(!a.type){if(!b_(n,0))return nt;const c=pd(n),p=n.declarations&&z0(pp(n),!0),m=Ln(p?.declarations,v=>dl(v)?mT(v):void 0);if(a.type??(a.type=p?.declarations&&Z$(p.declarations)&&n.declarations.length?T(p):Z$(n.declarations)?Rt:m||(fp(c)&111551?_r(c):nt)),!rt())return SA(p??n),a.type??(a.type=nt)}return a.type}function Nhe(n){const a=Jr(n);return a.type||(a.type=ro(_r(a.target),a.mapper))}function Mhe(n){const a=Jr(n);return a.writeType||(a.writeType=ro(zv(a.target),a.mapper))}function SA(n){const a=n.valueDeclaration;if(a){if(Cc(a))return Ze(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,co(n)),nt;be&&(a.kind!==170||a.initializer)&&Ze(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,co(n))}else if(n.flags&2097152){const c=pp(n);c&&Ze(c,f.Circular_definition_of_import_alias_0,co(n))}return He}function cY(n){const a=Jr(n);return a.type||(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?pi(a.deferralConstituents):Pa(a.deferralConstituents)),a.type}function Phe(n){const a=Jr(n);return!a.writeType&&a.deferralWriteConstituents&&(C.assertIsDefined(a.deferralParent),C.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?pi(a.deferralWriteConstituents):Pa(a.deferralWriteConstituents)),a.writeType}function zv(n){const a=Bl(n);return a&2?a&65536?Phe(n)||cY(n):n.links.writeType||n.links.type:n.flags&4?Hy(_r(n),!!(n.flags&16777216)):n.flags&98304?a&1?Mhe(n):aY(n):_r(n)}function _r(n){const a=Bl(n);return a&65536?cY(n):a&1?Nhe(n):a&262144?mct(n):a&8192?Mpt(n):n.flags&7?Rhe(n):n.flags&9136?SL(n):n.flags&8?lY(n):n.flags&98304?TL(n):n.flags&2097152?Che(n):nt}function Ch(n){return Hy(_r(n),!!(n.flags&16777216))}function dY(n,a){if(n===void 0||(Hr(n)&4)===0)return!1;for(const c of a)if(n.target===c)return!0;return!1}function Yp(n,a){return n!==void 0&&a!==void 0&&(Hr(n)&4)!==0&&n.target===a}function Gn(n){return Hr(n)&4?n.target:n}function Ur(n,a){return c(n);function c(p){if(Hr(p)&7){const m=Gn(p);return m===a||vt(ih(m),c)}else if(p.flags&2097152)return vt(p.types,c);return!1}}function $r(n,a){for(const c of a)n=ty(n,q0(Wr(c)));return n}function Li(n,a){for(;;){if(n=n.parent,n&&Nr(n)){const p=lc(n);if(p===6||p===3){const m=Wr(n.left);m&&m.parent&&!Dn(m.parent.valueDeclaration,v=>n===v)&&(n=m.parent.valueDeclaration)}}if(!n)return;const c=n.kind;switch(c){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{const m=Li(n,a);if((c===219||c===220||bm(n))&&Mf(n)){const w=Rc(ra(_r(Wr(n)),0));if(w&&w.typeParameters)return[...m||ie,...w.typeParameters]}if(c===201)return Vn(m,q0(Wr(n.typeParameter)));if(c===195)return ao(m,E_e(n));const v=$r(m,mb(n)),I=a&&(c===264||c===232||c===265||x_(n))&&om(Wr(n)).thisType;return I?Vn(v,I):v}case 342:const p=Nk(n);p&&(n=p.valueDeclaration);break;case 321:{const m=Li(n,a);return n.tags?$r(m,fi(n.tags,v=>xm(v)?v.typeParameters:void 0)):m}}}}function Fi(n){var a;const c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(p=>{if(p.kind===265)return!0;if(p.kind!==261)return!1;const m=p.initializer;return!!m&&(m.kind===219||m.kind===220)});return C.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Li(c)}function Ma(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===265||c.kind===264||c.kind===232||x_(c)||Dk(c))&&(a=$r(a,mb(c)));return a}function Vs(n){return ao(Fi(n),Ma(n))}function Ad(n){const a=ra(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&du(c)){const p=J5(c.parameters[0]);return wr(p)||S5(p)===He}}return!1}function Nh(n){if(ra(n,1).length>0)return!0;if(n.flags&8650752){const a=kd(n);return!!a&&Ad(a)}return!1}function Wm(n){const a=fy(n.symbol);return a&&uh(a)}function rh(n,a,c){const p=Qe(a),m=Ir(c);return Un(ra(n,1),v=>(m||p>=tg(v.typeParameters))&&p<=Qe(v.typeParameters))}function Hg(n,a,c){const p=rh(n,a,c),m=Yt(a,Ji);return to(p,v=>vt(v.typeParameters)?F8(v,m,Ir(c)):v)}function Oy(n){if(!n.resolvedBaseConstructorType){const a=fy(n.symbol),c=a&&uh(a),p=Wm(n);if(!p)return n.resolvedBaseConstructorType=ge;if(!b_(n,1))return nt;const m=_o(p.expression);if(c&&p!==c&&(C.assert(!c.typeArguments),_o(c.expression)),m.flags&2621440&&Mh(m),!rt())return Ze(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,co(n.symbol)),n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt);if(!(m.flags&1)&&m!==Le&&!Nh(m)){const v=Ze(p.expression,f.Type_0_is_not_a_constructor_function_type,sr(m));if(m.flags&262144){const I=DL(m);let w=Nt;if(I){const U=ra(I,1);U[0]&&(w=fs(U[0]))}m.symbol.declarations&&pa(v,Ar(m.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,co(m.symbol),sr(w)))}return n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt)}n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=m)}return n.resolvedBaseConstructorType}function VC(n){let a=ie;if(n.symbol.declarations)for(const c of n.symbol.declarations){const p=lD(c);if(p)for(const m of p){const v=Ji(m);pr(v)||(a===ie?a=[v]:a.push(v))}}return a}function EL(n,a){Ze(n,f.Type_0_recursively_references_itself_as_a_base_type,sr(a,void 0,2))}function ih(n){if(!n.baseTypesResolved){if(b_(n,6)&&(n.objectFlags&8?n.resolvedBaseTypes=[zlt(n)]:n.symbol.flags&96?(n.symbol.flags&32&&Blt(n),n.symbol.flags&64&&Vlt(n)):C.fail("type must be class or interface"),!rt()&&n.symbol.declarations))for(const a of n.symbol.declarations)(a.kind===264||a.kind===265)&&EL(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function zlt(n){const a=to(n.typeParameters,(c,p)=>n.elementFlags[p]&8?Qp(c,Bt):c);return Zd(pi(a||ie),n.readonly)}function Blt(n){n.resolvedBaseTypes=yG;const a=Mu(Oy(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=ie;const c=Wm(n);let p;const m=a.symbol?Ks(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Glt(m))p=iWe(c,a.symbol);else if(a.flags&1)p=a;else{const I=Hg(a,c.typeArguments,c);if(!I.length)return Ze(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=ie;p=fs(I[0])}if(pr(p))return n.resolvedBaseTypes=ie;const v=Fm(p);if(!Xz(v)){const I=Hhe(void 0,p),w=qo(I,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,sr(v));return rs.add(bg(zn(c.expression),c.expression,w)),n.resolvedBaseTypes=ie}return n===v||Ur(v,n)?(Ze(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,sr(n,void 0,2)),n.resolvedBaseTypes=ie):(n.resolvedBaseTypes===yG&&(n.members=void 0),n.resolvedBaseTypes=[v])}function Glt(n){const a=n.outerTypeParameters;if(a){const c=a.length-1,p=ol(n);return a[c].symbol!==p[c].symbol}return!0}function Xz(n){if(n.flags&262144){const a=kd(n);if(a)return Xz(a)}return!!(n.flags&67633153&&!mp(n)||n.flags&2097152&&Hn(n.types,Xz))}function Vlt(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||ie,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===265&&dM(a))for(const c of dM(a)){const p=Fm(Ji(c));pr(p)||(Xz(p)?n!==p&&!Ur(p,n)?n.resolvedBaseTypes===ie?n.resolvedBaseTypes=[p]:n.resolvedBaseTypes.push(p):EL(a,n):Ze(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function jlt(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===265){if(a.flags&256)return!1;const c=dM(a);if(c){for(const p of c)if(Ns(p.expression)){const m=Ul(p.expression,788968,!0);if(!m||!(m.flags&64)||om(m).thisType)return!1}}}return!0}function om(n){let a=Jr(n);const c=a;if(!a.declaredType){const p=n.flags&32?1:2,m=iye(n,n.valueDeclaration&&jht(n.valueDeclaration));m&&(n=m,a=m.links);const v=c.declaredType=a.declaredType=yc(p,n),I=Fi(n),w=Ma(n);(I||w||p===1||!jlt(n))&&(v.objectFlags|=4,v.typeParameters=ao(I,w),v.outerTypeParameters=I,v.localTypeParameters=w,v.instantiations=new Map,v.instantiations.set(zm(v.typeParameters),v),v.target=v,v.resolvedTypeArguments=v.typeParameters,v.thisType=Hu(n),v.thisType.isThisType=!0,v.thisType.constraint=v)}return a.declaredType}function f8e(n){var a;const c=Jr(n);if(!c.declaredType){if(!b_(n,2))return nt;const p=C.checkDefined((a=n.declarations)==null?void 0:a.find(Dk),"Type alias symbol with no valid declaration found"),m=Tm(p)?p.typeExpression:p.type;let v=m?Ji(m):nt;if(rt()){const I=Ma(n);I&&(c.typeParameters=I,c.instantiations=new Map,c.instantiations.set(zm(I),v)),v===Oe&&n.escapedName==="BuiltinIteratorReturn"&&(v=s_e())}else v=nt,p.kind===341?Ze(p.typeExpression.type,f.Type_alias_0_circularly_references_itself,co(n)):Ze(rd(p)&&p.name||p,f.Type_alias_0_circularly_references_itself,co(n));c.declaredType??(c.declaredType=v)}return c.declaredType}function uY(n){return n.flags&1056&&n.symbol.flags&8?Ks(Qc(n.symbol)):n}function m8e(n){const a=Jr(n);if(!a.declaredType){const c=[];if(n.declarations){for(const m of n.declarations)if(m.kind===267){for(const v of m.members)if(UC(v)){const I=Wr(v),w=UA(v).value,U=dR(w!==void 0?uut(w,Ta(n),I):h8e(I));Jr(I).declaredType=U,c.push(Pu(U))}}}const p=c.length?pi(c,1,n,void 0):h8e(n);p.flags&1048576&&(p.flags|=1024,p.symbol=n),a.declaredType=p}return a.declaredType}function h8e(n){const a=Oi(32,n),c=Oi(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function _8e(n){const a=Jr(n);if(!a.declaredType){const c=m8e(Qc(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function q0(n){const a=Jr(n);return a.declaredType||(a.declaredType=Hu(n))}function Ult(n){const a=Jr(n);return a.declaredType||(a.declaredType=Ks(pd(n)))}function Ks(n){return g8e(n)||nt}function g8e(n){if(n.flags&96)return om(n);if(n.flags&524288)return f8e(n);if(n.flags&262144)return q0(n);if(n.flags&384)return m8e(n);if(n.flags&8)return _8e(n);if(n.flags&2097152)return Ult(n)}function Yz(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return Yz(n.elementType);case 184:return!n.typeArguments||n.typeArguments.every(Yz)}return!1}function Hlt(n){const a=jR(n);return!a||Yz(a)}function y8e(n){const a=Cc(n);return a?Yz(a):!tv(n)}function qlt(n){const a=Wp(n),c=mb(n);return(n.kind===177||!!a&&Yz(a))&&n.parameters.every(y8e)&&c.every(Hlt)}function Jlt(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 173:case 172:return y8e(a);case 175:case 174:case 177:case 178:case 179:return qlt(a)}}return!1}function v8e(n,a,c){const p=da();for(const m of n)p.set(m.escapedName,c&&Jlt(m)?m:M_e(m,a));return p}function b8e(n,a){for(const c of a){if(T8e(c))continue;const p=n.get(c.escapedName);(!p||p.valueDeclaration&&Nr(p.valueDeclaration)&&!Ug(p)&&!Ane(p.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function T8e(n){return!!n.valueDeclaration&&ou(n.valueDeclaration)&&ua(n.valueDeclaration)}function Lhe(n){if(!n.declaredProperties){const a=n.symbol,c=Z_(a);n.declaredProperties=qu(c),n.declaredCallSignatures=ie,n.declaredConstructSignatures=ie,n.declaredIndexInfos=ie,n.declaredCallSignatures=DE(c.get("__call")),n.declaredConstructSignatures=DE(c.get("__new")),n.declaredIndexInfos=eWe(a)}return n}function khe(n){return E8e(n)&&Jf(va(n)?ah(n):Hl(n.argumentExpression))}function S8e(n){return E8e(n)&&Klt(va(n)?ah(n):Hl(n.argumentExpression))}function E8e(n){if(!va(n)&&!zs(n))return!1;const a=va(n)?n.expression:n.argumentExpression;return Ns(a)}function Klt(n){return sa(n,Ri)}function P8(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function jC(n){const a=wo(n);return!!a&&khe(a)}function A8e(n){const a=wo(n);return!!a&&S8e(a)}function UC(n){return!cy(n)||jC(n)}function I8e(n){return v6(n)&&!khe(n)}function Xlt(n,a,c){C.assert(!!(Bl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Jr(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&oM(n,a)}function x8e(n,a,c,p){C.assert(!!p.symbol,"The member is expected to have a symbol.");const m=Vr(p);if(!m.resolvedSymbol){m.resolvedSymbol=p.symbol;const v=Nr(p)?p.left:p.name,I=zs(v)?Hl(v.argumentExpression):ah(v);if(Jf(I)){const w=Kf(I),U=p.symbol.flags;let H=c.get(w);H||c.set(w,H=Ua(0,w,4096));const Q=a&&a.get(w);if(!(n.flags&32)&&H.flags&rA(U)){const xe=Q?ao(Q.declarations,H.declarations):H.declarations,Se=!(I.flags&8192)&&Vi(w)||Ws(v);qe(xe,et=>Ze(wo(et)||et,f.Property_0_was_also_declared_here,Se)),Ze(v||p,f.Duplicate_property_0,Se),H=Ua(0,w,4096)}return H.links.nameType=I,Xlt(H,p,U),H.parent?C.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,m.resolvedSymbol=H}}return m.resolvedSymbol}function Ylt(n,a,c,p){let m=c.get("__index");if(!m){const v=a?.get("__index");v?(m=hE(v),m.links.checkFlags|=4096):m=Ua(0,"__index",4096),c.set("__index",m)}m.declarations?p.symbol.isReplaceableByMethod||m.declarations.push(p):m.declarations=[p]}function whe(n,a){const c=Jr(n);if(!c[a]){const p=a==="resolvedExports",m=p?n.flags&1536?hA(n).exports:n.exports:n.members;c[a]=m||k;const v=da();for(const U of n.declarations||ie){const H=gne(U);if(H)for(const Q of H)p===Fc(Q)&&(jC(Q)?x8e(n,m,v,Q):A8e(Q)&&Ylt(n,m,v,Q))}const I=G0(n).assignmentDeclarationMembers;if(I){const U=Do(I.values());for(const H of U){const Q=lc(H),xe=Q===3||Nr(H)&&f$(H,Q)||Q===9||Q===6;p===!xe&&jC(H)&&x8e(n,m,v,H)}}let w=Cv(m,v);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(const U of n.declarations){const H=Jr(U.symbol)[a];if(!w){w=H;continue}H&&H.forEach((Q,xe)=>{const Se=w.get(xe);if(!Se)w.set(xe,Q);else{if(Se===Q)return;w.set(xe,tm(Se,Q))}})}c[a]=w||k}return c[a]}function Z_(n){return n.flags&6256?whe(n,"resolvedMembers"):n.members||k}function pY(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Jr(n);if(!a.lateSymbol&&vt(n.declarations,jC)){const c=as(n.parent);vt(n.declarations,Fc)?Xp(c):Z_(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function $p(n,a,c){if(Hr(n)&4){const p=n.target,m=ol(n);return Qe(p.typeParameters)===Qe(m)?Wy(p,ao(m,[a||p.thisType])):n}else if(n.flags&2097152){const p=to(n.types,m=>$p(m,a,c));return p!==n.types?Pa(p):n}return c?Mu(n):n}function R8e(n,a,c,p){let m,v,I,w,U;YB(c,p,0,c.length)?(v=a.symbol?Z_(a.symbol):da(a.declaredProperties),I=a.declaredCallSignatures,w=a.declaredConstructSignatures,U=a.declaredIndexInfos):(m=Zp(c,p),v=v8e(a.declaredProperties,m,c.length===1),I=LY(a.declaredCallSignatures,m),w=LY(a.declaredConstructSignatures,m),U=iFe(a.declaredIndexInfos,m));const H=ih(a);if(H.length){if(a.symbol&&v===Z_(a.symbol)){const xe=da(a.declaredProperties),Se=gY(a.symbol);Se&&xe.set("__index",Se),v=xe}Om(n,v,I,w,U);const Q=tl(p);for(const xe of H){const Se=Q?$p(ro(xe,m),Q):xe;b8e(v,Ts(Se)),I=ao(I,ra(Se,0)),w=ao(w,ra(Se,1));const et=Se!==He?Qd(Se):[To];U=ao(U,Un(et,Tt=>!xL(U,Tt.keyType)))}}Om(n,v,I,w,U)}function $lt(n){R8e(n,Lhe(n),ie,ie)}function Qlt(n){const a=Lhe(n.target),c=ao(a.typeParameters,[a.thisType]),p=ol(n),m=p.length===c.length?p:ao(p,[n]);R8e(n,a,c,m)}function T_(n,a,c,p,m,v,I,w){const U=new u(or,w);return U.declaration=n,U.typeParameters=a,U.parameters=p,U.thisParameter=c,U.resolvedReturnType=m,U.resolvedTypePredicate=v,U.minArgumentCount=I,U.resolvedMinArgumentCount=void 0,U.target=void 0,U.mapper=void 0,U.compositeSignatures=void 0,U.compositeKind=void 0,U}function L8(n){const a=T_(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function D8e(n,a){const c=L8(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function Zlt(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});const c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=ect(n,a))}function ect(n,a){C.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const c=L8(n);return c.flags|=a,c}function C8e(n,a){if(du(n)){const m=n.parameters.length-1,v=n.parameters[m],I=_r(v);if(Xa(I))return[c(I,m,v)];if(!a&&I.flags&1048576&&Hn(I.types,Xa))return Yt(I.types,w=>c(w,m,v))}return[n.parameters];function c(m,v,I){const w=ol(m),U=p(m,I),H=Yt(w,(Q,xe)=>{const Se=U&&U[xe]?U[xe]:BL(n,v+xe,m),et=m.target.elementFlags[xe],Tt=et&12?32768:et&2?16384:0,Dt=Ua(1,Se,Tt);return Dt.links.type=et&4?Zd(Q):Q,Dt});return ao(n.parameters.slice(0,v),H)}function p(m,v){const I=Yt(m.target.labeledElementDeclarations,(w,U)=>dye(w,U,m.target.elementFlags[U],v));if(I){const w=[],U=new Set;for(let Q=0;Q=xe&&U<=Se){const et=Se?_Y(Q,Vv(w,Q.typeParameters,xe,I)):L8(Q);et.typeParameters=n.localTypeParameters,et.resolvedReturnType=n,et.flags=m?et.flags|4:et.flags&-5,H.push(et)}}return H}function fY(n,a,c,p,m){for(const v of n)if(b5(v,a,c,p,m,c?Dut:q8))return v}function nct(n,a,c){if(a.typeParameters){if(c>0)return;for(let m=1;m1&&(c=c===void 0?p:-1);for(const m of n[p])if(!a||!fY(a,m,!1,!1,!0)){const v=nct(n,m,p);if(v){let I=m;if(v.length>1){let w=m.thisParameter;const U=qe(v,H=>H.thisParameter);if(U){const H=Pa(Ei(v,Q=>Q.thisParameter&&_r(Q.thisParameter)));w=kA(U,H)}I=D8e(m,v),I.thisParameter=w}(a||(a=[])).push(I)}}}if(!Qe(a)&&c!==-1){const p=n[c!==void 0?c:0];let m=p.slice();for(const v of n)if(v!==p){const I=v[0];if(C.assert(!!I,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=I.typeParameters&&vt(m,w=>!!w.typeParameters&&!N8e(I.typeParameters,w.typeParameters))?void 0:Yt(m,w=>oct(w,I)),!m)break}a=m}return a||ie}function N8e(n,a){if(Qe(n)!==Qe(a))return!1;if(!n||!a)return!0;const c=Zp(a,n);for(let p=0;p=m?n:a,I=v===n?a:n,w=v===n?p:m,U=ig(n)||ig(a),H=U&&!ig(v),Q=new Array(w+(H?1:0));for(let xe=0;xe=Wh(v)&&xe>=Wh(I),Tn=xe>=p?void 0:BL(n,xe),nr=xe>=m?void 0:BL(a,xe),yr=Tn===nr?Tn:Tn?nr?void 0:Tn:nr,Sn=Ua(1|($t&&!Dt?16777216:0),yr||`arg${xe}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Zd(Tt):Tt,Q[xe]=Sn}if(H){const xe=Ua(1,"args",32768);xe.links.type=Zd(Oh(I,w)),I===a&&(xe.links.type=ro(xe.links.type,c)),Q[w]=xe}return Q}function oct(n,a){const c=n.typeParameters||a.typeParameters;let p;n.typeParameters&&a.typeParameters&&(p=Zp(a.typeParameters,n.typeParameters));let m=(n.flags|a.flags)&166;const v=n.declaration,I=ict(n,a,p),w=tl(I);w&&Bl(w)&32768&&(m|=1);const U=rct(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=T_(v,c,U,I,void 0,void 0,H,m);return Q.compositeKind=1048576,Q.compositeSignatures=ao(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),p?Q.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?Q0(n.mapper,p):p:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(Q.mapper=n.mapper),Q}function M8e(n){const a=Qd(n[0]);if(a){const c=[];for(const p of a){const m=p.keyType;Hn(n,v=>!!Jg(v,m))&&c.push(Kg(m,pi(Yt(n,v=>K0(v,m))),vt(n,v=>Jg(v,m).isReadonly)))}return c}return ie}function act(n){const a=Ohe(Yt(n.types,m=>m===er?[si]:ra(m,0))),c=Ohe(Yt(n.types,m=>ra(m,1))),p=M8e(n.types);Om(n,k,a,c,p)}function $z(n,a){return n?a?Pa([n,a]):n:a}function P8e(n){const a=Ao(n,p=>ra(p,1).length>0),c=Yt(n,Ad);if(a>0&&a===Ao(c,p=>p)){const p=c.indexOf(!0);c[p]=!1}return c}function sct(n,a,c,p){const m=[];for(let v=0;vw);for(let w=0;w0&&(H=Yt(H,Q=>{const xe=L8(Q);return xe.resolvedReturnType=sct(fs(Q),m,v,w),xe})),c=L8e(c,H)}a=L8e(a,ra(U,0)),p=bu(Qd(U),(H,Q)=>k8e(H,Q,!1),p)}Om(n,k,a||ie,c||ie,p||ie)}function L8e(n,a){for(const c of a)(!n||Hn(n,p=>!b5(p,c,!1,!1,!1,q8)))&&(n=Vn(n,c));return n}function k8e(n,a,c){if(n)for(let p=0;p{var U;!(w.flags&418)&&!(w.flags&512&&((U=w.declarations)!=null&&U.length)&&Hn(w.declarations,Tu))&&I.set(w.escapedName,w)}),c=I}let m;if(Om(n,c,ie,ie,ie),a.flags&32){const I=om(a),w=Oy(I);w.flags&11272192?(c=da($x(c)),b8e(c,Ts(w))):w===He&&(m=To)}const v=yY(c);if(v?p=vY(v,Do(c.values())):(m&&(p=Vn(p,m)),a.flags&384&&(Ks(a).flags&32||vt(n.properties,I=>!!(_r(I).flags&296)))&&(p=Vn(p,no))),Om(n,c,ie,ie,p||ie),a.flags&8208&&(n.callSignatures=DE(a)),a.flags&32){const I=om(a);let w=a.members?DE(a.members.get("__constructor")):ie;a.flags&16&&(w=Xr(w.slice(),Ei(n.callSignatures,U=>x_(U.declaration)?T_(U.declaration,U.typeParameters,U.thisParameter,U.parameters,I,void 0,U.minArgumentCount,U.flags&167):void 0))),w.length||(w=tct(I)),n.constructSignatures=w}}function dct(n,a,c){return ro(n,Zp([a.indexType,a.objectType],[Ph(0),ng([c])]))}function uct(n){const a=Cf(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;const p=Pa(c.types.filter(m=>m!==n.constraintType));return p!==yn?p:void 0}function pct(n){const a=Jg(n.source,yt),c=eg(n.mappedType),p=!(c&1),m=c&4?0:16777216,v=a?[Kg(yt,e$(a.type,n.mappedType,n.constraintType)||Nt,p&&a.isReadonly)]:ie,I=da(),w=uct(n);for(const U of Ts(n.source)){if(w){const xe=sR(U,8576);if(!sa(xe,w))continue}const H=8192|(p&&Fh(U)?8:0),Q=Ua(4|U.flags&m,U.escapedName,H);if(Q.declarations=U.declarations,Q.links.nameType=Jr(U).nameType,Q.links.propertyType=_r(U),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){const xe=n.constraintType.type.objectType,Se=dct(n.mappedType,n.constraintType.type,xe);Q.links.mappedType=Se,Q.links.constraintType=E_(xe)}else Q.links.mappedType=n.mappedType,Q.links.constraintType=n.constraintType;I.set(U.escapedName,Q)}Om(n,I,ie,ie,v)}function Qz(n){if(n.flags&4194304){const a=Mu(n.type);return vT(a)?CWe(a):E_(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=Qz(a);if(c!==a)return L_e(n,MA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return El(n,Qz,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===fa?n:Pa(to(n.types,Qz))}return n}function Whe(n){return Bl(n)&4096}function Fhe(n,a,c,p){for(const m of Ts(n))p(sR(m,a));if(n.flags&1)p(yt);else for(const m of Qd(n))(!c||m.keyType.flags&134217732)&&p(m.keyType)}function fct(n){const a=da();let c;Om(n,k,ie,ie,ie);const p=oh(n),m=Cf(n),v=n.target||n,I=Bv(v),w=k8(v)!==2,U=qg(v),H=Mu(J0(n)),Q=eg(n);HC(n)?Fhe(H,8576,!1,Se):FA(Qz(m),Se),Om(n,a,ie,ie,c||ie);function Se(Tt){const Dt=I?ro(I,j8(n.mapper,p,Tt)):Tt;FA(Dt,$t=>et(Tt,$t))}function et(Tt,Dt){if(Jf(Dt)){const $t=Kf(Dt),Tn=a.get($t);if(Tn)Tn.links.nameType=pi([Tn.links.nameType,Dt]),Tn.links.keyType=pi([Tn.links.keyType,Tt]);else{const nr=Jf(Tt)?Ea(H,Kf(Tt)):void 0,yr=!!(Q&4||!(Q&8)&&nr&&nr.flags&16777216),Sn=!!(Q&1||!(Q&2)&&nr&&Fh(nr)),vn=oe&&!yr&&nr&&nr.flags&16777216,Sr=nr?Whe(nr):0,mi=Ua(4|(yr?16777216:0),$t,Sr|262144|(Sn?8:0)|(vn?524288:0));mi.links.mappedType=n,mi.links.nameType=Dt,mi.links.keyType=Tt,nr&&(mi.links.syntheticOrigin=nr,mi.declarations=w?nr.declarations:void 0),a.set($t,mi)}}else if(bY(Dt)||Dt.flags&33){const $t=Dt.flags&5?yt:Dt.flags&40?Bt:Dt,Tn=ro(U,j8(n.mapper,p,Tt)),nr=w8(H,Dt),yr=!!(Q&1||!(Q&2)&&nr?.isReadonly),Sn=Kg($t,Tn,yr);c=k8e(c,Sn,!0)}}}function mct(n){var a;if(!n.links.type){const c=n.links.mappedType;if(!b_(n,0))return c.containsError=!0,nt;const p=qg(c.target||c),m=j8(c.mapper,oh(c),n.links.keyType),v=ro(p,m);let I=oe&&n.flags&16777216&&!oc(v,49152)?bT(v,!0):n.links.checkFlags&524288?XY(v):v;rt()||(Ze(R,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,co(n),sr(c)),I=nt),(a=n.links).type??(a.type=I)}return n.links.type}function oh(n){return n.typeParameter||(n.typeParameter=q0(Wr(n.declaration.typeParameter)))}function Cf(n){return n.constraintType||(n.constraintType=Ju(oh(n))||nt)}function Bv(n){return n.declaration.nameType?n.nameType||(n.nameType=ro(Ji(n.declaration.nameType),n.mapper)):void 0}function qg(n){return n.templateType||(n.templateType=n.declaration.type?ro(hu(Ji(n.declaration.type),!0,!!(eg(n)&4)),n.mapper):nt)}function w8e(n){return jR(n.declaration.typeParameter)}function HC(n){const a=w8e(n);return a.kind===199&&a.operator===143}function J0(n){if(!n.modifiersType)if(HC(n))n.modifiersType=ro(Ji(w8e(n).type),n.mapper);else{const a=T_e(n.declaration),c=Cf(a),p=c&&c.flags&262144?Ju(c):c;n.modifiersType=p&&p.flags&4194304?ro(p.type,n.mapper):Nt}return n.modifiersType}function eg(n){const a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function O8e(n){const a=eg(n);return a&8?-1:a&4?1:0}function AL(n){if(Hr(n)&32)return O8e(n)||AL(J0(n));if(n.flags&2097152){const a=AL(n.types[0]);return Hn(n.types,(c,p)=>p===0||AL(c)===a)?a:0}return 0}function hct(n){return!!(Hr(n)&32&&eg(n)&4)}function mp(n){if(Hr(n)&32){const a=Cf(n);if(NA(a))return!0;const c=Bv(n);if(c&&NA(ro(c,PE(oh(n),a))))return!0}return!1}function k8(n){const a=Bv(n);return a?sa(a,oh(n))?1:2:0}function Mh(n){return n.members||(n.flags&524288?n.objectFlags&4?Qlt(n):n.objectFlags&3?$lt(n):n.objectFlags&1024?pct(n):n.objectFlags&16?cct(n):n.objectFlags&32?fct(n):C.fail("Unhandled object type "+C.formatObjectFlags(n.objectFlags)):n.flags&1048576?act(n):n.flags&2097152?lct(n):C.fail("Unhandled type "+C.formatTypeFlags(n.flags))),n}function Gv(n){return n.flags&524288?Mh(n).properties:ie}function xE(n,a){if(n.flags&524288){const p=Mh(n).members.get(a);if(p&&An(p))return p}}function Zz(n){if(!n.resolvedProperties){const a=da();for(const c of n.types){for(const p of Ts(c))if(!a.has(p.escapedName)){const m=t5(n,p.escapedName,!!(n.flags&2097152));m&&a.set(p.escapedName,m)}if(n.flags&1048576&&Qd(c).length===0)break}n.resolvedProperties=qu(a)}return n.resolvedProperties}function Ts(n){return n=IL(n),n.flags&3145728?Zz(n):Gv(n)}function _ct(n,a){n=IL(n),n.flags&3670016&&Mh(n).members.forEach((c,p)=>{cT(c,p)&&a(c,p)})}function gct(n,a){return a.properties.some(p=>{const m=p.name&&(_h(p.name)?Ip(dw(p.name)):Fy(p.name)),v=m&&Jf(m)?Kf(m):void 0,I=v===void 0?void 0:_n(n,v);return!!I&&X8(I)&&!sa(vR(p),I)})}function yct(n){const a=pi(n);if(!(a.flags&1048576))return Jye(a);const c=da();for(const p of n)for(const{escapedName:m}of Jye(p))if(!c.has(m)){const v=j8e(a,m);v&&c.set(m,v)}return Do(c.values())}function EA(n){return n.flags&262144?Ju(n):n.flags&8388608?bct(n):n.flags&16777216?z8e(n):kd(n)}function Ju(n){return e5(n)?DL(n):void 0}function vct(n,a){const c=U8(n);return!!c&&AA(c,a)}function AA(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&vt((c=n.symbol)==null?void 0:c.declarations,p=>di(p,4096))||n.flags&3145728&&vt(n.types,p=>AA(p,a))||n.flags&8388608&&AA(n.objectType,a+1)||n.flags&16777216&&AA(z8e(n),a+1)||n.flags&33554432&&AA(n.baseType,a)||Hr(n)&32&&vct(n,a)||vT(n)&&ho(CE(n),(p,m)=>!!(n.target.elementFlags[m]&8)&&AA(p,a))>=0))}function bct(n){return e5(n)?Tct(n):void 0}function zhe(n){const a=zy(n,!1);return a!==n?a:EA(n)}function Tct(n){if(jhe(n))return CY(n.objectType,n.indexType);const a=zhe(n.indexType);if(a&&a!==n.indexType){const p=_T(n.objectType,a,n.accessFlags);if(p)return p}const c=zhe(n.objectType);if(c&&c!==n.objectType)return _T(c,n.indexType,n.accessFlags)}function Bhe(n){if(!n.resolvedDefaultConstraint){const a=aut(n),c=yT(n);n.resolvedDefaultConstraint=wr(a)?c:wr(c)?a:pi([a,c])}return n.resolvedDefaultConstraint}function W8e(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=zy(n.checkType,!1),c=a===n.checkType?EA(a):a;if(c&&c!==n.checkType){const p=L_e(n,MA(n.root.checkType,c,n.mapper),!0);if(!(p.flags&131072))return n.resolvedConstraintOfDistributive=p,p}}n.resolvedConstraintOfDistributive=!1}function F8e(n){return W8e(n)||Bhe(n)}function z8e(n){return e5(n)?F8e(n):void 0}function Sct(n,a){let c,p=!1;for(const m of n)if(m.flags&465829888){let v=EA(m);for(;v&&v.flags&21233664;)v=EA(v);v&&(c=Vn(c,v),a&&(c=Vn(c,m)))}else(m.flags&469892092||rg(m))&&(p=!0);if(c&&(a||p)){if(p)for(const m of n)(m.flags&469892092||rg(m))&&(c=Vn(c,m));return g5(Pa(c,2),!1)}}function kd(n){if(n.flags&464781312||vT(n)){const a=Ghe(n);return a!==Xl&&a!==dc?a:void 0}return n.flags&4194304?Ri:void 0}function S_(n){return kd(n)||n}function e5(n){return Ghe(n)!==dc}function Ghe(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(v){if(!v.immediateBaseConstraint){if(!b_(v,4))return dc;let I;const w=jY(v);if((a.length<10||a.length<50&&!jn(a,w))&&(a.push(w),I=m(zy(v,!1)),a.pop()),!rt()){if(v.flags&262144){const U=TY(v);if(U){const H=Ze(U,f.Type_parameter_0_has_a_circular_constraint,sr(v));R&&!NS(U,R)&&!NS(R,U)&&pa(H,Ar(R,f.Circularity_originates_in_type_at_this_location))}}I=dc}v.immediateBaseConstraint??(v.immediateBaseConstraint=I||Xl)}return v.immediateBaseConstraint}function p(v){const I=c(v);return I!==Xl&&I!==dc?I:void 0}function m(v){if(v.flags&262144){const I=DL(v);return v.isThisType||!I?I:p(I)}if(v.flags&3145728){const I=v.types,w=[];let U=!1;for(const H of I){const Q=p(H);Q?(Q!==H&&(U=!0),w.push(Q)):U=!0}return U?v.flags&1048576&&w.length===I.length?pi(w):v.flags&2097152&&w.length?Pa(w):void 0:v}if(v.flags&4194304)return Ri;if(v.flags&134217728){const I=v.types,w=Ei(I,p);return w.length===I.length?RA(v.texts,w):yt}if(v.flags&268435456){const I=p(v.type);return I&&I!==v.type?lR(v.symbol,I):yt}if(v.flags&8388608){if(jhe(v))return p(CY(v.objectType,v.indexType));const I=p(v.objectType),w=p(v.indexType),U=I&&w&&_T(I,w,v.accessFlags);return U&&p(U)}if(v.flags&16777216){const I=F8e(v);return I&&p(I)}if(v.flags&33554432)return p(n_e(v));if(vT(v)){const I=Yt(CE(v),(w,U)=>{const H=w.flags&262144&&v.target.elementFlags[U]&8&&p(w)||w;return H!==w&&xp(H,Q=>eS(Q)&&!vT(Q))?H:w});return ng(I,v.target.elementFlags,v.target.readonly,v.target.labeledElementDeclarations)}return v}}function Ect(n,a){if(n===a)return n.resolvedApparentType||(n.resolvedApparentType=$p(n,a,!0));const c=`I${fd(n)},${fd(a)}`;return Uu(c)??km(c,$p(n,a,!0))}function Vhe(n){if(n.default)n.default===bd&&(n.default=dc);else if(n.target){const a=Vhe(n.target);n.default=a?ro(a,n.mapper):Xl}else{n.default=bd;const a=n.symbol&&qe(n.symbol.declarations,p=>cl(p)&&p.default),c=a?Ji(a):Xl;n.default===bd&&(n.default=c)}return n.default}function RE(n){const a=Vhe(n);return a!==Xl&&a!==dc?a:void 0}function Act(n){return Vhe(n)!==dc}function B8e(n){return!!(n.symbol&&qe(n.symbol.declarations,a=>cl(a)&&a.default))}function G8e(n){return n.resolvedApparentType||(n.resolvedApparentType=Ict(n))}function Ict(n){const a=n.target??n,c=U8(a);if(c&&!a.declaration.nameType){const p=J0(n),m=mp(p)?G8e(p):kd(p);if(m&&xp(m,v=>eS(v)||V8e(v)))return ro(a,MA(c,m,n.mapper))}return n}function V8e(n){return!!(n.flags&2097152)&&Hn(n.types,eS)}function jhe(n){let a;return!!(n.flags&8388608&&Hr(a=n.objectType)&32&&!mp(a)&&NA(n.indexType)&&!(eg(a)&8)&&!a.declaration.nameType)}function Mu(n){const a=n.flags&465829888?kd(n)||Nt:n,c=Hr(a);return c&32?G8e(a):c&4&&a!==n?$p(a,n):a.flags&2097152?Ect(a,n):a.flags&402653316?kc:a.flags&296?rl:a.flags&2112?ddt():a.flags&528?Ol:a.flags&12288?yWe():a.flags&67108864?Da:a.flags&4194304?Ri:a.flags&2&&!oe?Da:a}function IL(n){return Fm(Mu(Fm(n)))}function j8e(n,a,c){var p,m,v;let I=0,w,U,H;const Q=n.flags&1048576;let xe,Se=4,et=Q?0:8,Tt=!1;for(const io of n.types){const ii=Mu(io);if(!(pr(ii)||ii.flags&131072)){const Bi=Ea(ii,a,c),Ko=Bi?qf(Bi):0;if(Bi){if(Bi.flags&106500&&(xe??(xe=Q?0:16777216),Q?xe|=Bi.flags&16777216:xe&=Bi.flags),!w)w=Bi,I=Bi.flags&98304||4;else if(Bi!==w){if((lN(Bi)||Bi)===(lN(w)||w)&&U_e(w,Bi,(fo,pl)=>fo===pl?-1:0)===-1)Tt=!!w.parent&&!!Qe(Ma(w.parent));else{U||(U=new Map,U.set(Ta(w),w));const fo=Ta(Bi);U.has(fo)||U.set(fo,Bi)}I&98304&&(Bi.flags&98304)!==(I&98304)&&(I=I&-98305|4)}Q&&Fh(Bi)?et|=8:!Q&&!Fh(Bi)&&(et&=-9),et|=(Ko&6?0:256)|(Ko&4?512:0)|(Ko&2?1024:0)|(Ko&256?2048:0),Bge(Bi)||(Se=2)}else if(Q){const ms=!P8(a)&&aR(ii,a);ms?(I=I&-98305|4,et|=32|(ms.isReadonly?8:0),H=Vn(H,Xa(ii)?qY(ii)||ge:ms.type)):qv(ii)&&!(Hr(ii)&2097152)?(et|=32,H=Vn(H,ge)):et|=16}}}if(!w||Q&&(U||et&48)&&et&1536&&!(U&&xct(U.values())))return;if(!U&&!(et&16)&&!H)if(Tt){const io=(p=ni(w,gg))==null?void 0:p.links,ii=kA(w,io?.type);return ii.parent=(v=(m=w.valueDeclaration)==null?void 0:m.symbol)==null?void 0:v.parent,ii.links.containingType=n,ii.links.mapper=io?.mapper,ii.links.writeType=zv(w),ii}else return w;const Dt=U?Do(U.values()):[w];let $t,Tn,nr;const yr=[];let Sn,vn,Sr=!1;for(const io of Dt){vn?io.valueDeclaration&&io.valueDeclaration!==vn&&(Sr=!0):vn=io.valueDeclaration,$t=Xr($t,io.declarations);const ii=_r(io);Tn||(Tn=ii,nr=Jr(io).nameType);const Bi=zv(io);(Sn||Bi!==ii)&&(Sn=Vn(Sn||yr.slice(),Bi)),ii!==Tn&&(et|=64),(X8(ii)||DA(ii))&&(et|=128),ii.flags&131072&&ii!==ks&&(et|=131072),yr.push(ii)}Xr(yr,H);const mi=Ua(I|(xe??0),a,Se|et);return mi.links.containingType=n,!Sr&&vn&&(mi.valueDeclaration=vn,vn.symbol.parent&&(mi.parent=vn.symbol.parent)),mi.declarations=$t,mi.links.nameType=nr,yr.length>2?(mi.links.checkFlags|=65536,mi.links.deferralParent=n,mi.links.deferralConstituents=yr,mi.links.deferralWriteConstituents=Sn):(mi.links.type=Q?pi(yr):Pa(yr),Sn&&(mi.links.writeType=Q?pi(Sn):Pa(Sn))),mi}function U8e(n,a,c){var p,m,v;let I=c?(p=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:p.get(a):(m=n.propertyCache)==null?void 0:m.get(a);return I||(I=j8e(n,a,c),I&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=da()):n.propertyCache||(n.propertyCache=da())).set(a,I),c&&!(Bl(I)&48)&&!((v=n.propertyCache)!=null&&v.get(a))&&(n.propertyCache||(n.propertyCache=da())).set(a,I))),I}function xct(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(p=>{jn(c.declarations,p)||a.delete(p)}),a.size===0)return}return a}function t5(n,a,c){const p=U8e(n,a,c);return p&&!(Bl(p)&16)?p:void 0}function Fm(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Rct(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(vt(Zz(n),Dct)?33554432:0)),n.objectFlags&33554432?yn:n):n}function Rct(n){const a=to(n.types,Fm);if(a===n.types)return n;const c=pi(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function Dct(n){return H8e(n)||q8e(n)}function H8e(n){return!(n.flags&16777216)&&(Bl(n)&131264)===192&&!!(_r(n).flags&131072)}function q8e(n){return!n.valueDeclaration&&!!(Bl(n)&1024)}function Uhe(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&vt(n.types,Uhe)||n.flags&2097152&&Cct(n))}function Cct(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=ro(n,lo));return Fm(a)!==a}function Hhe(n,a){if(a.flags&2097152&&Hr(a)&33554432){const c=mn(Zz(a),H8e);if(c)return qo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,sr(a,void 0,536870912),co(c));const p=mn(Zz(a),q8e);if(p)return qo(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,sr(a,void 0,536870912),co(p))}return n}function Ea(n,a,c,p){var m,v;if(n=IL(n),n.flags&524288){const I=Mh(n),w=I.members.get(a);if(w&&!p&&((m=n.symbol)==null?void 0:m.flags)&512&&((v=Jr(n.symbol).typeOnlyExportStarMap)!=null&&v.has(a)))return;if(w&&An(w,p))return w;if(c)return;const U=I===xs?er:I.callSignatures.length?go:I.constructSignatures.length?es:void 0;if(U){const H=xE(U,a);if(H)return H}return xE(qt,a)}if(n.flags&2097152){const I=t5(n,a,!0);return I||(c?void 0:t5(n,a,c))}if(n.flags&1048576)return t5(n,a,c)}function n5(n,a){if(n.flags&3670016){const c=Mh(n);return a===0?c.callSignatures:c.constructSignatures}return ie}function ra(n,a){const c=n5(IL(n),a);if(a===0&&!Qe(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let p;if(xp(n,m=>{var v;return!!((v=m.symbol)!=null&&v.parent)&&Nct(m.symbol.parent)&&(p?p===m.symbol.escapedName:(p=m.symbol.escapedName,!0))})){const m=El(n,I=>Uv((J8e(I.symbol.parent)?ja:ts).typeParameters[0],I.mapper)),v=Zd(m,dm(n,I=>J8e(I.symbol.parent)));return n.arrayFallbackSignatures=ra(_n(v,p),a)}n.arrayFallbackSignatures=c}return c}function Nct(n){return!n||!ts.symbol||!ja.symbol?!1:!!he(n,ts.symbol)||!!he(n,ja.symbol)}function J8e(n){return!n||!ja.symbol?!1:!!he(n,ja.symbol)}function xL(n,a){return mn(n,c=>c.keyType===a)}function qhe(n,a){let c,p,m;for(const v of n)v.keyType===yt?c=v:oR(a,v.keyType)&&(p?(m||(m=[p])).push(v):p=v);return m?Kg(Nt,Pa(Yt(m,v=>v.type)),bu(m,(v,I)=>v&&I.isReadonly,!0)):p||(c&&oR(a,yt)?c:void 0)}function oR(n,a){return sa(n,a)||a===yt&&sa(n,Bt)||a===Bt&&(n===zo||!!(n.flags&128)&&Dg(n.value))}function Jhe(n){return n.flags&3670016?Mh(n).indexInfos:ie}function Qd(n){return Jhe(IL(n))}function Jg(n,a){return xL(Qd(n),a)}function K0(n,a){var c;return(c=Jg(n,a))==null?void 0:c.type}function Khe(n,a){return Qd(n).filter(c=>oR(a,c.keyType))}function w8(n,a){return qhe(Qd(n),a)}function aR(n,a){return w8(n,P8(a)?Qt:Ip(Vi(a)))}function K8e(n){var a;let c;for(const p of mb(n))c=ty(c,q0(p.symbol));return c?.length?c:rc(n)?(a=RL(n))==null?void 0:a.typeParameters:void 0}function Xhe(n){const a=[];return n.forEach((c,p)=>{j0(p)||a.push(c)}),a}function X8e(n,a){if(nd(n))return;const c=Ed(lt,'"'+n+'"',512);return c&&a?as(c):c}function mY(n){return AI(n)||cw(n)||Zi(n)&&l4(n)}function O8(n){if(mY(n))return!0;if(!Zi(n))return!1;if(n.initializer){const c=Nf(n.parent),p=n.parent.parameters.indexOf(n);return C.assert(p>=0),p>=Wh(c,3)}const a=zT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=C$(a).length:!1}function Mct(n){return Mo(n)&&!$h(n)&&n.questionToken}function W8(n,a,c,p){return{kind:n,parameterName:a,parameterIndex:c,type:p}}function tg(n){let a=0;if(n)for(let c=0;c=c&&v<=m){const I=n?n.slice():[];for(let U=v;U!!Zy(Tt))&&!Zy(n)&&!g$(n)&&(p|=32);for(let Tt=H?1:0;TtU.arguments.length&&!Tn||(m=c.length)}if((n.kind===178||n.kind===179)&&UC(n)&&(!w||!v)){const Tt=n.kind===178?179:178,Dt=ll(Wr(n),Tt);Dt&&(v=iR(Dt))}I&&I.typeExpression&&(v=kA(Ua(1,"this"),Ji(I.typeExpression)));const xe=hv(n)?jT(n):n,Se=xe&&kl(xe)?om(as(xe.parent.symbol)):void 0,et=Se?Se.localTypeParameters:K8e(n);(gG(n)||Ir(n)&&Pct(n,c))&&(p|=1),(ID(n)&&di(n,64)||kl(n)&&di(n.parent,64))&&(p|=4),a.resolvedSignature=T_(n,et,v,c,void 0,void 0,m,p)}return a.resolvedSignature}function Pct(n,a){if(hv(n)||!Yhe(n))return!1;const c=tl(n.parameters),p=c?VR(c):OT(n).filter(_f),m=Ln(p,I=>I.typeExpression&&P4(I.typeExpression.type)?I.typeExpression.type:void 0),v=Ua(3,"args",32768);return m?v.links.type=Zd(Ji(m.type)):(v.links.checkFlags|=65536,v.links.deferralParent=yn,v.links.deferralConstituents=[Td],v.links.deferralWriteConstituents=[Td]),m&&a.pop(),a.push(v),!0}function RL(n){if(!(Ir(n)&&Ls(n)))return;const a=wT(n);return a?.typeExpression&&VA(Ji(a.typeExpression))}function Lct(n,a){const c=RL(n);if(!c)return;const p=n.parameters.indexOf(a);return a.dotDotDotToken?K5(c,p):Oh(c,p)}function kct(n){const a=RL(n);return a&&fs(a)}function Yhe(n){const a=Vr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(p){if(!p)return!1;switch(p.kind){case 80:return p.escapedText===ye.escapedName&&IW(p)===ye;case 173:case 175:case 178:case 179:return p.name.kind===168&&c(p.name);case 212:case 213:return c(p.expression);case 304:return c(p.initializer);default:return!sV(p)&&!Kh(p)&&!!Jo(p,c)}}}function DE(n){if(!n||!n.declarations)return ie;const a=[];for(let c=0;c0&&p.body){const m=n.declarations[c-1];if(p.parent===m.parent&&p.kind===m.kind&&p.pos===m.end)continue}if(Ir(p)&&p.jsDoc){const m=$G(p);if(Qe(m)){for(const v of m){const I=v.typeExpression;I.type===void 0&&!kl(p)&&nS(I,He),a.push(Nf(I))}continue}}a.push(!Pb(p)&&!bm(p)&&RL(p)||Nf(p))}}return a}function Y8e(n){const a=mu(n,n);if(a){const c=Ap(a);if(c)return _r(c)}return He}function X0(n){if(n.thisParameter)return _r(n.thisParameter)}function am(n){if(!n.resolvedTypePredicate){if(n.target){const a=am(n.target);n.resolvedTypePredicate=a?lFe(a,n.mapper):fn}else if(n.compositeSignatures)n.resolvedTypePredicate=wdt(n.compositeSignatures,n.compositeKind)||fn;else{const a=n.declaration&&Wp(n.declaration);let c;if(!a){const p=RL(n.declaration);p&&n!==p&&(c=am(p))}if(a||c)n.resolvedTypePredicate=a&&YI(a)?wct(a,n):c||fn;else if(n.declaration&&Ls(n.declaration)&&(!n.resolvedReturnType||n.resolvedReturnType.flags&16)&&Rp(n)>0){const{declaration:p}=n;n.resolvedTypePredicate=fn,n.resolvedTypePredicate=T_t(p)||fn}else n.resolvedTypePredicate=fn}C.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===fn?void 0:n.resolvedTypePredicate}function wct(n,a){const c=n.parameterName,p=n.type&&Ji(n.type);return c.kind===198?W8(n.assertsModifier?2:0,void 0,void 0,p):W8(n.assertsModifier?3:1,c.escapedText,ho(a.parameters,m=>m.escapedName===c.escapedText),p)}function $8e(n,a,c){return a!==2097152?pi(n,c):Pa(n)}function fs(n){if(!n.resolvedReturnType){if(!b_(n,3))return nt;let a=n.target?ro(fs(n.target),n.mapper):n.compositeSignatures?ro($8e(Yt(n.compositeSignatures,fs),n.compositeKind,2),n.mapper):qC(n.declaration)||(zl(n.declaration.body)?He:L$(n.declaration));if(n.flags&8?a=WFe(a):n.flags&16&&(a=bT(a)),!rt()){if(n.declaration){const c=Wp(n.declaration);if(c)Ze(c,f.Return_type_annotation_circularly_references_itself);else if(be){const p=n.declaration,m=wo(p);m?Ze(m,f._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,Ws(m)):Ze(p,f.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=He}n.resolvedReturnType??(n.resolvedReturnType=a)}return n.resolvedReturnType}function qC(n){if(n.kind===177)return om(as(n.parent.symbol));const a=Wp(n);if(hv(n)){const c=sD(n);if(c&&kl(c.parent)&&!a)return om(as(c.parent.parent.symbol))}if(II(n))return Ji(n.parameters[0].type);if(a)return Ji(a);if(n.kind===178&&UC(n)){const c=Ir(n)&&cs(n);if(c)return c;const p=ll(Wr(n),179),m=bL(p);if(m)return m}return kct(n)}function hY(n){return n.compositeSignatures&&vt(n.compositeSignatures,hY)||!n.resolvedReturnType&&ee(n,3)>=0}function Oct(n){return Q8e(n)||He}function Q8e(n){if(du(n)){const a=_r(n.parameters[n.parameters.length-1]),c=Xa(a)?qY(a):a;return c&&K0(c,Bt)}}function F8(n,a,c,p){const m=$he(n,Vv(a,n.typeParameters,tg(n.typeParameters),c));if(p){const v=D4e(fs(m));if(v){const I=L8(v);I.typeParameters=p;const w=IA(I);w.mapper=m.mapper;const U=L8(m);return U.resolvedReturnType=w,U}}return m}function $he(n,a){const c=n.instantiations||(n.instantiations=new Map),p=zm(a);let m=c.get(p);return m||c.set(p,m=_Y(n,a)),m}function _Y(n,a){return PA(n,Wct(n,a),!0)}function Z8e(n){return to(n.typeParameters,a=>a.mapper?ro(a,a.mapper):a)}function Wct(n,a){return Zp(Z8e(n),a)}function z8(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Fct(n)):n}function Fct(n){return PA(n,aFe(n.typeParameters),!0)}function zct(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Bct(n)):n}function Bct(n){return F8(n,Yt(n.typeParameters,a=>a.target&&!Ju(a.target)?a.target:a),Ir(n.declaration))}function Gct(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=aFe(a),p=Zp(a,Yt(a,v=>Ju(v)||Nt));let m=Yt(a,v=>ro(v,p)||Nt);for(let v=0;v{bY(et)&&!xL(c,et)&&c.push(Kg(et,xe.type?Ji(xe.type):He,Fp(xe,8),xe))})}}else if(A8e(xe)){const Se=Nr(xe)?xe.left:xe.name,et=zs(Se)?Hl(Se.argumentExpression):ah(Se);if(xL(c,et))continue;sa(et,Ri)&&(sa(et,Bt)?(p=!0,h1(xe)||(m=!1)):sa(et,Qt)?(v=!0,h1(xe)||(I=!1)):(w=!0,h1(xe)||(U=!1)),H.push(xe.symbol))}const Q=ao(H,Un(a,xe=>xe!==n));return w&&!xL(c,yt)&&c.push(aW(U,0,Q,yt)),p&&!xL(c,Bt)&&c.push(aW(m,0,Q,Bt)),v&&!xL(c,Qt)&&c.push(aW(I,0,Q,Qt)),c}return ie}function bY(n){return!!(n.flags&4108)||DA(n)||!!(n.flags&2097152)&&!$0(n)&&vt(n.types,bY)}function TY(n){return Ei(Un(n.symbol&&n.symbol.declarations,cl),jR)[0]}function tWe(n,a){var c;let p;if((c=n.symbol)!=null&&c.declarations){for(const m of n.symbol.declarations)if(m.parent.kind===196){const[v=m.parent,I]=Bne(m.parent.parent);if(I.kind===184&&!a){const w=I,U=xye(w);if(U){const H=w.typeArguments.indexOf(v);if(H()=>bgt(w,U,Tt))),Se=ro(Q,xe);Se!==n&&(p=Vn(p,Se))}}}}else if(I.kind===170&&I.dotDotDotToken||I.kind===192||I.kind===203&&I.dotDotDotToken)p=Vn(p,Zd(Nt));else if(I.kind===205)p=Vn(p,yt);else if(I.kind===169&&I.parent.kind===201)p=Vn(p,Ri);else if(I.kind===201&&I.type&&us(I.type)===m.parent&&I.parent.kind===195&&I.parent.extendsType===I&&I.parent.checkType.kind===201&&I.parent.checkType.type){const w=I.parent.checkType,U=Ji(w.type);p=Vn(p,ro(U,PE(q0(Wr(w.typeParameter)),w.typeParameter.constraint?Ji(w.typeParameter.constraint):Ri)))}}}return p&&Pa(p)}function DL(n){if(!n.constraint)if(n.target){const a=Ju(n.target);n.constraint=a?ro(a,n.mapper):Xl}else{const a=TY(n);if(!a)n.constraint=tWe(n)||Xl;else{let c=Ji(a);c.flags&1&&!pr(c)&&(c=a.parent.parent.kind===201?Ri:Nt),n.constraint=c}}return n.constraint===Xl?void 0:n.constraint}function nWe(n){const a=ll(n.symbol,169),c=xm(a.parent)?m6(a.parent):a.parent;return c&&Rf(c)}function zm(n){let a="";if(n){const c=n.length;let p=0;for(;p1&&(a+=":"+v),p+=v}}return a}function xA(n,a){return n?`@${Ta(n)}`+(a?`:${zm(a)}`:""):""}function r5(n,a){let c=0;for(const p of n)(a===void 0||!(p.flags&a))&&(c|=Hr(p));return c&458752}function JC(n,a){return vt(a)&&n===Zt?Nt:Wy(n,a)}function Wy(n,a){const c=zm(a);let p=n.instantiations.get(c);return p||(p=yc(4,n.symbol),n.instantiations.set(c,p),p.objectFlags|=a?r5(a):0,p.target=n,p.resolvedTypeArguments=a),p}function rWe(n){const a=Oi(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Qhe(n,a,c,p,m){if(!p){p=cR(a);const I=$C(p);m=c?Gy(I,c):I}const v=yc(4,n.symbol);return v.target=n,v.node=a,v.mapper=c,v.aliasSymbol=p,v.aliasTypeArguments=m,v}function ol(n){var a,c;if(!n.resolvedTypeArguments){if(!b_(n,5))return ao(n.target.outerTypeParameters,(a=n.target.localTypeParameters)==null?void 0:a.map(()=>nt))||ie;const p=n.node,m=p?p.kind===184?ao(n.target.outerTypeParameters,z$(p,n.target.localTypeParameters)):p.kind===189?[Ji(p.elementType)]:Yt(p.elements,Ji):ie;rt()?n.resolvedTypeArguments??(n.resolvedTypeArguments=n.mapper?Gy(m,n.mapper):m):(n.resolvedTypeArguments??(n.resolvedTypeArguments=ao(n.target.outerTypeParameters,((c=n.target.localTypeParameters)==null?void 0:c.map(()=>nt))||ie)),Ze(n.node||R,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&co(n.target.symbol)))}return n.resolvedTypeArguments}function jv(n){return Qe(n.target.typeParameters)}function iWe(n,a){const c=Ks(as(a)),p=c.localTypeParameters;if(p){const m=Qe(n.typeArguments),v=tg(p),I=Ir(n);if(!(!be&&I)&&(mp.length)){const H=I&&my(n)&&!rx(n.parent),Q=v===p.length?H?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:H?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,xe=sr(c,void 0,2);if(Ze(n,Q,xe,v,p.length),!I)return nt}if(n.kind===184&&RWe(n,Qe(n.typeArguments)!==p.length))return Qhe(c,n,void 0);const U=ao(c.outerTypeParameters,Vv(i5(n),p,v,I));return Wy(c,U)}return Y0(n,a)?c:nt}function KC(n,a,c,p){const m=Ks(n);if(m===Oe){const H=KU.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?Zhe(a[0]):lR(n,a[0])}const v=Jr(n),I=v.typeParameters,w=zm(a)+xA(c,p);let U=v.instantiations.get(w);return U||v.instantiations.set(w,U=uFe(m,Zp(I,Vv(a,I,tg(I),Ir(n.valueDeclaration))),c,p)),U}function Vct(n,a){if(Bl(a)&1048576){const m=i5(n),v=xA(a,m);let I=dt.get(v);return I||(I=wi(1,"error",void 0,`alias ${v}`),I.aliasSymbol=a,I.aliasTypeArguments=m,dt.set(v,I)),I}const c=Ks(a),p=Jr(a).typeParameters;if(p){const m=Qe(n.typeArguments),v=tg(p);if(mp.length)return Ze(n,v===p.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,co(a),v,p.length),nt;const I=cR(n);let w=I&&(oWe(a)||!oWe(I))?I:void 0,U;if(w)U=$C(w);else if(wF(n)){const H=CL(n,2097152,!0);if(H&&H!==ne){const Q=pd(H);Q&&Q.flags&524288&&(w=Q,U=i5(n)||(p?[]:void 0))}}return KC(a,i5(n),w,U)}return Y0(n,a)?c:nt}function oWe(n){var a;const c=(a=n.declarations)==null?void 0:a.find(Dk);return!!(c&&pf(c))}function jct(n){switch(n.kind){case 184:return n.typeName;case 234:const a=n.expression;if(Ns(a))return a}}function aWe(n){return n.parent?`${aWe(n.parent)}.${n.escapedName}`:n.escapedName}function SY(n){const c=(n.kind===167?n.right:n.kind===212?n.name:n).escapedText;if(c){const p=n.kind===167?SY(n.left):n.kind===212?SY(n.expression):void 0,m=p?`${aWe(p)}.${c}`:c;let v=it.get(m);return v||(it.set(m,v=Ua(524288,c,1048576)),v.parent=p,v.links.declaredType=Jt),v}return ne}function CL(n,a,c){const p=jct(n);if(!p)return ne;const m=Ul(p,a,c);return m&&m!==ne?m:c?ne:SY(p)}function EY(n,a){if(a===ne)return nt;if(a=qx(a)||a,a.flags&96)return iWe(n,a);if(a.flags&524288)return Vct(n,a);const c=g8e(a);if(c)return Y0(n,a)?Pu(c):nt;if(a.flags&111551&&AY(n)){const p=Uct(n,a);return p||(CL(n,788968),_r(a))}return nt}function Uct(n,a){const c=Vr(n);if(!c.resolvedJSDocType){const p=_r(a);let m=p;if(a.valueDeclaration){const v=n.kind===206&&n.qualifier;p.symbol&&p.symbol!==a&&v&&(m=EY(n,p.symbol))}c.resolvedJSDocType=m}return c.resolvedJSDocType}function Zhe(n){return e_e(n)?sWe(n,Nt):n}function e_e(n){return!!(n.flags&3145728&&vt(n.types,e_e)||n.flags&33554432&&!XC(n)&&e_e(n.baseType)||n.flags&524288&&!rg(n)||n.flags&432275456&&!DA(n))}function XC(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function t_e(n,a){return a.flags&3||a===n||n.flags&1?n:sWe(n,a)}function sWe(n,a){const c=`${fd(n)}>${fd(a)}`,p=Ia.get(c);if(p)return p;const m=vi(33554432);return m.baseType=n,m.constraint=a,Ia.set(c,m),m}function n_e(n){return XC(n)?n.baseType:Pa([n.constraint,n.baseType])}function lWe(n){return n.kind===190&&n.elements.length===1}function cWe(n,a,c){return lWe(a)&&lWe(c)?cWe(n,a.elements[0],c.elements[0]):By(Ji(a))===By(n)?Ji(c):void 0}function Hct(n,a){let c,p=!0;for(;a&&!ji(a)&&a.kind!==321;){const m=a.parent;if(m.kind===170&&(p=!p),(p||n.flags&8650752)&&m.kind===195&&a===m.trueType){const v=cWe(n,m.checkType,m.extendsType);v&&(c=Vn(c,v))}else if(n.flags&262144&&m.kind===201&&!m.nameType&&a===m.type){const v=Ji(m);if(oh(v)===By(n)){const I=U8(v);if(I){const w=Ju(I);w&&xp(w,eS)&&(c=Vn(c,pi([Bt,zo])))}}}a=m}return c?t_e(n,Pa(c)):n}function AY(n){return!!(n.flags&16777216)&&(n.kind===184||n.kind===206)}function Y0(n,a){return n.typeArguments?(Ze(n,f.Type_0_is_not_generic,a?co(a):n.typeName?Ws(n.typeName):UU),!1):!0}function dWe(n){if(Je(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return Y0(n),yt;case"Number":return Y0(n),Bt;case"BigInt":return Y0(n),gr;case"Boolean":return Y0(n),Vt;case"Void":return Y0(n),In;case"Undefined":return Y0(n),ge;case"Null":return Y0(n),Kt;case"Function":case"function":return Y0(n),er;case"array":return(!a||!a.length)&&!be?Td:void 0;case"promise":return(!a||!a.length)&&!be?Y5(He):void 0;case"Object":if(a&&a.length===2){if(d6(n)){const c=Ji(a[0]),p=Ji(a[1]),m=c===yt||c===Bt?[Kg(c,p,!1)]:ie;return Sl(void 0,k,ie,ie,m)}return He}return Y0(n),be?void 0:He}}}function qct(n){const a=Ji(n.type);return oe?E5(a,65536):a}function IY(n){const a=Vr(n);if(!a.resolvedType){if(Gm(n)&&SS(n.parent))return a.resolvedSymbol=ne,a.resolvedType=Hl(n.parent.expression);let c,p;const m=788968;AY(n)&&(p=dWe(n),p||(c=CL(n,m,!0),c===ne?c=CL(n,m|111551):CL(n,m),p=EY(n,c))),p||(c=CL(n,m),p=EY(n,c)),a.resolvedSymbol=c,a.resolvedType=p}return a.resolvedType}function i5(n){return Yt(n.typeArguments,Ji)}function uWe(n){const a=Vr(n);if(!a.resolvedType){const c=X4e(n);a.resolvedType=Pu(ef(c))}return a.resolvedType}function pWe(n,a){function c(m){const v=m.declarations;if(v)for(const I of v)switch(I.kind){case 264:case 265:case 267:return I}}if(!n)return a?Zt:Da;const p=Ks(n);return p.flags&524288?Qe(p.typeParameters)!==a?(Ze(c(n),f.Global_type_0_must_have_1_type_parameter_s,Fl(n),a),a?Zt:Da):p:(Ze(c(n),f.Global_type_0_must_be_a_class_or_interface_type,Fl(n)),a?Zt:Da)}function r_e(n,a){return YC(n,111551,a?f.Cannot_find_global_value_0:void 0)}function i_e(n,a){return YC(n,788968,a?f.Cannot_find_global_type_0:void 0)}function xY(n,a,c){const p=YC(n,788968,c?f.Cannot_find_global_type_0:void 0);if(p&&(Ks(p),Qe(Jr(p).typeParameters)!==a)){const m=p.declarations&&mn(p.declarations,Im);Ze(m,f.Global_type_0_must_have_1_type_parameter_s,Fl(p),a);return}return p}function YC(n,a,c){return gt(void 0,n,a,c,!1,!1)}function $l(n,a,c){const p=i_e(n,c);return p||c?pWe(p,a):void 0}function fWe(n,a){let c;for(const p of n)c=Vn(c,$l(p,a,!1));return c??ie}function Jct(){return wg||(wg=$l("TypedPropertyDescriptor",1,!0)||Zt)}function Kct(){return yo||(yo=$l("TemplateStringsArray",0,!0)||Da)}function mWe(){return na||(na=$l("ImportMeta",0,!0)||Da)}function hWe(){if(!So){const n=Ua(0,"ImportMetaExpression"),a=mWe(),c=Ua(4,"meta",8);c.parent=n,c.links.type=a;const p=da([c]);n.members=p,So=Sl(n,p,ie,ie,ie)}return So}function _We(n){return Vo||(Vo=$l("ImportCallOptions",0,n))||Da}function o_e(n){return _l||(_l=$l("ImportAttributes",0,n))||Da}function gWe(n){return Zf||(Zf=r_e("Symbol",n))}function Xct(n){return j_||(j_=i_e("SymbolConstructor",n))}function yWe(){return kg||(kg=$l("Symbol",0,!1))||Da}function o5(n){return cp||(cp=$l("Promise",1,n))||Zt}function vWe(n){return $c||($c=$l("PromiseLike",1,n))||Zt}function a_e(n){return Eh||(Eh=r_e("Promise",n))}function Yct(n){return Ef||(Ef=$l("PromiseConstructorLike",0,n))||Da}function a5(n){return ti||(ti=$l("AsyncIterable",3,n))||Zt}function $ct(n){return Si||(Si=$l("AsyncIterator",3,n))||Zt}function bWe(n){return Yi||(Yi=$l("AsyncIterableIterator",3,n))||Zt}function Qct(){return je??(je=fWe(["ReadableStreamAsyncIterator"],1))}function Zct(n){return kt||(kt=$l("AsyncIteratorObject",3,n))||Zt}function edt(n){return Fn||(Fn=$l("AsyncGenerator",3,n))||Zt}function RY(n){return h_||(h_=$l("Iterable",3,n))||Zt}function tdt(n){return ae||(ae=$l("Iterator",3,n))||Zt}function TWe(n){return pt||(pt=$l("IterableIterator",3,n))||Zt}function s_e(){return me?ge:He}function ndt(){return z??(z=fWe(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function rdt(n){return tn||(tn=$l("IteratorObject",3,n))||Zt}function idt(n){return an||(an=$l("Generator",3,n))||Zt}function odt(n){return Wn||(Wn=$l("IteratorYieldResult",1,n))||Zt}function adt(n){return ar||(ar=$l("IteratorReturnResult",1,n))||Zt}function SWe(n){return Na||(Na=$l("Disposable",0,n))||Da}function sdt(n){return dd||(dd=$l("AsyncDisposable",0,n))||Da}function EWe(n,a=0){const c=YC(n,788968,void 0);return c&&pWe(c,a)}function ldt(){return Jp||(Jp=xY("Extract",2,!0)||ne),Jp===ne?void 0:Jp}function cdt(){return Af||(Af=xY("Omit",2,!0)||ne),Af===ne?void 0:Af}function l_e(n){return em||(em=xY("Awaited",1,n)||(n?ne:void 0)),em===ne?void 0:em}function ddt(){return Iy||(Iy=$l("BigInt",0,!1))||Da}function udt(n){return U_??(U_=$l("ClassDecoratorContext",1,n))??Zt}function pdt(n){return Ah??(Ah=$l("ClassMethodDecoratorContext",2,n))??Zt}function fdt(n){return Mm??(Mm=$l("ClassGetterDecoratorContext",2,n))??Zt}function mdt(n){return Yb??(Yb=$l("ClassSetterDecoratorContext",2,n))??Zt}function hdt(n){return Ye??(Ye=$l("ClassAccessorDecoratorContext",2,n))??Zt}function _dt(n){return ht??(ht=$l("ClassAccessorDecoratorTarget",2,n))??Zt}function gdt(n){return Xt??(Xt=$l("ClassAccessorDecoratorResult",2,n))??Zt}function ydt(n){return Rn??(Rn=$l("ClassFieldDecoratorContext",2,n))??Zt}function vdt(){return Ev||(Ev=r_e("NaN",!1))}function bdt(){return ju||(ju=xY("Record",2,!0)||ne),ju===ne?void 0:ju}function NL(n,a){return n!==Zt?Wy(n,a):Da}function AWe(n){return NL(Jct(),[n])}function IWe(n){return NL(RY(!0),[n,In,ge])}function Zd(n,a){return NL(a?ja:ts,[n])}function c_e(n){switch(n.kind){case 191:return 2;case 192:return xWe(n);case 203:return n.questionToken?2:n.dotDotDotToken?xWe(n):1;default:return 1}}function xWe(n){return p5(n.type)?4:8}function Tdt(n){const a=Adt(n.parent);if(p5(n))return a?ja:ts;const p=Yt(n.elements,c_e);return d_e(p,a,Yt(n.elements,Sdt))}function Sdt(n){return xD(n)||Zi(n)?n:void 0}function RWe(n,a){return!!cR(n)||DWe(n)&&(n.kind===189?hT(n.elementType):n.kind===190?vt(n.elements,hT):a||vt(n.typeArguments,hT))}function DWe(n){const a=n.parent;switch(a.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return DWe(a);case 266:return!0}return!1}function hT(n){switch(n.kind){case 184:return AY(n)||!!(CL(n,788968).flags&524288);case 187:return!0;case 199:return n.operator!==158&&hT(n.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return hT(n.type);case 192:return n.type.kind!==189||hT(n.type.elementType);case 193:case 194:return vt(n.types,hT);case 200:return hT(n.objectType)||hT(n.indexType);case 195:return hT(n.checkType)||hT(n.extendsType)||hT(n.trueType)||hT(n.falseType)}return!1}function Edt(n){const a=Vr(n);if(!a.resolvedType){const c=Tdt(n);if(c===Zt)a.resolvedType=Da;else if(!(n.kind===190&&vt(n.elements,p=>!!(c_e(p)&8)))&&RWe(n))a.resolvedType=n.kind===190&&n.elements.length===0?c:Qhe(c,n,void 0);else{const p=n.kind===189?[Ji(n.elementType)]:Yt(n.elements,Ji);a.resolvedType=u_e(c,p)}}return a.resolvedType}function Adt(n){return YT(n)&&n.operator===148}function ng(n,a,c=!1,p=[]){const m=d_e(a||Yt(n,v=>1),c,p);return m===Zt?Da:n.length?u_e(m,n):m}function d_e(n,a,c){if(n.length===1&&n[0]&4)return a?ja:ts;const p=Yt(n,v=>v&1?"#":v&2?"?":v&4?".":"*").join()+(a?"R":"")+(vt(c,v=>!!v)?","+Yt(c,v=>v?ls(v):"_").join(","):"");let m=Pi.get(p);return m||Pi.set(p,m=Idt(n,a,c)),m}function Idt(n,a,c){const p=n.length,m=Ao(n,xe=>!!(xe&9));let v;const I=[];let w=0;if(p){v=new Array(p);for(let xe=0;xe!!(n.elementFlags[$t]&8&&Dt.flags&1179648));if(Tt>=0)return l5(Yt(a,(Dt,$t)=>n.elementFlags[$t]&8?Dt:Nt))?El(a[Tt],Dt=>p_e(n,ZB(a,Tt,Dt))):nt}const I=[],w=[],U=[];let H=-1,Q=-1,xe=-1;for(let Tt=0;Tt=1e4)return Ze(R,Kh(R)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),nt;qe(Tn,(nr,yr)=>{var Sn;return et(nr,Dt.target.elementFlags[yr],(Sn=Dt.target.labeledElementDeclarations)==null?void 0:Sn[yr])})}else et(Hv(Dt)&&K0(Dt,Bt)||nt,4,(m=n.labeledElementDeclarations)==null?void 0:m[Tt]);else et(Dt,$t,(v=n.labeledElementDeclarations)==null?void 0:v[Tt])}for(let Tt=0;Tt=0&&Qw[Q+Dt]&8?Qp(Tt,Bt):Tt)),I.splice(Q+1,xe-Q),w.splice(Q+1,xe-Q),U.splice(Q+1,xe-Q));const Se=d_e(w,n.readonly,U);return Se===Zt?Da:w.length?Wy(Se,I):Se;function et(Tt,Dt,$t){Dt&1&&(H=w.length),Dt&4&&Q<0&&(Q=w.length),Dt&6&&(xe=w.length),I.push(Dt&2?hu(Tt,!0):Tt),w.push(Dt),U.push($t)}}function ML(n,a,c=0){const p=n.target,m=jv(n)-c;return a>p.fixedLength?ppt(n)||ng(ie):ng(ol(n).slice(a,m),p.elementFlags.slice(a,m),!1,p.labeledElementDeclarations&&p.labeledElementDeclarations.slice(a,m))}function CWe(n){return pi(Vn(dZ(n.target.fixedLength,a=>Ip(""+a)),E_(n.target.readonly?ja:ts)))}function xdt(n,a){const c=ho(n.elementFlags,p=>!(p&a));return c>=0?c:n.elementFlags.length}function B8(n,a){return n.elementFlags.length-vl(n.elementFlags,c=>!(c&a))-1}function f_e(n){return n.fixedLength+B8(n,3)}function CE(n){const a=ol(n),c=jv(n);return a.length===c?a:a.slice(0,c)}function Rdt(n){return hu(Ji(n.type),!0)}function fd(n){return n.id}function Xg(n,a){return ib(n,a,fd,Hs)>=0}function s5(n,a){const c=ib(n,a,fd,Hs);return c<0?(n.splice(~c,0,a),!0):!1}function Ddt(n,a,c){const p=c.flags;if(!(p&131072))if(a|=p&473694207,p&465829888&&(a|=33554432),p&2097152&&Hr(c)&67108864&&(a|=536870912),c===It&&(a|=8388608),pr(c)&&(a|=1073741824),!oe&&p&98304)Hr(c)&65536||(a|=4194304);else{const m=n.length,v=m&&c.id>n[m-1].id?~m:ib(n,c,fd,Hs);v<0&&n.splice(~v,0,c)}return a}function NWe(n,a,c){let p;for(const m of c)m!==p&&(a=m.flags&1048576?NWe(n,a|(kdt(m)?1048576:0),m.types):Ddt(n,a,m),p=m);return a}function Cdt(n,a){var c;if(n.length<2)return n;const p=zm(n),m=Pn.get(p);if(m)return m;const v=a&&vt(n,H=>!!(H.flags&524288)&&!mp(H)&&W_e(Mh(H))),I=n.length;let w=I,U=0;for(;w>0;){w--;const H=n[w];if(v||H.flags&469499904){if(H.flags&262144&&S_(H).flags&1048576){A_(H,pi(Yt(n,Se=>Se===H?yn:Se)),ul)&&cb(n,w);continue}const Q=H.flags&61603840?mn(Ts(H),Se=>Lh(_r(Se))):void 0,xe=Q&&Pu(_r(Q));for(const Se of n)if(H!==Se){if(U===1e5&&U/(I-w)*I>1e6){(c=xr)==null||c.instant(xr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(Tt=>Tt.id)}),Ze(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(U++,Q&&Se.flags&61603840){const et=_n(Se,Q.escapedName);if(et&&Lh(et)&&Pu(et)!==xe)continue}if(A_(H,Se,ul)&&(!(Hr(Gn(H))&1)||!(Hr(Gn(Se))&1)||Z0(H,Se))){cb(n,w);break}}}}return Pn.set(p,n),n}function Ndt(n,a,c){let p=n.length;for(;p>0;){p--;const m=n[p],v=m.flags;(v&402653312&&a&4||v&256&&a&8||v&2048&&a&64||v&8192&&a&4096||c&&v&32768&&a&16384||ME(m)&&Xg(n,m.regularType))&&cb(n,p)}}function Mdt(n){const a=Un(n,DA);if(a.length){let c=n.length;for(;c>0;){c--;const p=n[c];p.flags&128&&vt(a,m=>Pdt(p,m))&&cb(n,c)}}}function Pdt(n,a){return a.flags&134217728?n$(n,a):t$(n,a)}function Ldt(n){const a=[];for(const c of n)if(c.flags&2097152&&Hr(c)&67108864){const p=c.types[0].flags&8650752?0:1;Ff(a,c.types[p])}for(const c of a){const p=[];for(const v of n)if(v.flags&2097152&&Hr(v)&67108864){const I=v.types[0].flags&8650752?0:1;v.types[I]===c&&s5(p,v.types[1-I])}const m=kd(c);if(xp(m,v=>Xg(p,v))){let v=n.length;for(;v>0;){v--;const I=n[v];if(I.flags&2097152&&Hr(I)&67108864){const w=I.types[0].flags&8650752?0:1;I.types[w]===c&&Xg(p,I.types[1-w])&&cb(n,v)}}s5(n,c)}}}function kdt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function MWe(n,a){for(const c of a)if(c.flags&1048576){const p=c.origin;c.aliasSymbol||p&&!(p.flags&1048576)?Ff(n,c):p&&p.flags&1048576&&MWe(n,p.types)}}function m_e(n,a){const c=Eo(n);return c.types=a,c}function pi(n,a=1,c,p,m){if(n.length===0)return yn;if(n.length===1)return n[0];if(n.length===2&&!m&&(n[0].flags&1048576||n[1].flags&1048576)){const v=a===0?"N":a===2?"S":"L",I=n[0].id=2&&v[0]===ge&&v[1]===Ie&&cb(v,1),(I&402664352||I&16384&&I&32768)&&Ndt(v,I,!!(a&2)),I&128&&I&402653184&&Mdt(v),I&536870912&&Ldt(v),a===2&&(v=Cdt(v,!!(I&524288)),!v))return nt;if(v.length===0)return I&65536?I&4194304?Kt:Le:I&32768?I&4194304?ge:B:yn}if(!m&&I&1048576){const U=[];MWe(U,n);const H=[];for(const xe of v)vt(U,Se=>Xg(Se.types,xe))||H.push(xe);if(!c&&U.length===1&&H.length===0)return U[0];if(bu(U,(xe,Se)=>xe+Se.types.length,0)+H.length===v.length){for(const xe of U)s5(H,xe);m=m_e(1048576,H)}}const w=(I&36323331?0:32768)|(I&2097152?16777216:0);return __e(v,w,c,p,m)}function wdt(n,a){let c;const p=[];for(const v of n){const I=am(v);if(I){if(I.kind!==0&&I.kind!==1||c&&!h_e(c,I))return;c=I,p.push(I.type)}else{const w=a!==2097152?fs(v):void 0;if(w!==tr&&w!==Jn)return}}if(!c)return;const m=$8e(p,a);return W8(c.kind,c.parameterName,c.parameterIndex,m)}function h_e(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function __e(n,a,c,p,m){if(n.length===0)return yn;if(n.length===1)return n[0];const I=(m?m.flags&1048576?`|${zm(m.types)}`:m.flags&2097152?`&${zm(m.types)}`:`#${m.type.id}|${zm(n)}`:zm(n))+xA(c,p);let w=Pr.get(I);return w||(w=vi(1048576),w.objectFlags=a|r5(n,98304),w.types=n,w.origin=m,w.aliasSymbol=c,w.aliasTypeArguments=p,n.length===2&&n[0].flags&512&&n[1].flags&512&&(w.flags|=16,w.intrinsicName="boolean"),Pr.set(I,w)),w}function Odt(n){const a=Vr(n);if(!a.resolvedType){const c=cR(n);a.resolvedType=pi(Yt(n.types,Ji),1,c,$C(c))}return a.resolvedType}function Wdt(n,a,c){const p=c.flags;return p&2097152?LWe(n,a,c.types):(rg(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(p&3?(c===It&&(a|=8388608),pr(c)&&(a|=1073741824)):(oe||!(p&98304))&&(c===Ie&&(a|=262144,c=ge),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=p&473694207),a)}function LWe(n,a,c){for(const p of c)a=Wdt(n,a,Pu(p));return a}function Fdt(n,a){let c=n.length;for(;c>0;){c--;const p=n[c];(p.flags&4&&a&402653312||p.flags&8&&a&256||p.flags&64&&a&2048||p.flags&4096&&a&8192||p.flags&16384&&a&32768||rg(p)&&a&470302716)&&cb(n,c)}}function zdt(n,a){for(const c of n)if(!Xg(c.types,a)){if(a===Ie)return Xg(c.types,ge);if(a===ge)return Xg(c.types,Ie);const p=a.flags&128?yt:a.flags&288?Bt:a.flags&2048?gr:a.flags&8192?Qt:void 0;if(!p||!Xg(c.types,p))return!1}return!0}function Bdt(n){let a=n.length;const c=Un(n,p=>!!(p.flags&128));for(;a>0;){a--;const p=n[a];if(p.flags&402653184){for(const m of c)if(LE(m,p)){cb(n,a);break}else if(DA(p))return!0}}return!1}function kWe(n,a){for(let c=0;c!(p.flags&a))}function Gdt(n){let a;const c=ho(n,I=>!!(Hr(I)&32768));if(c<0)return!1;let p=c+1;for(;p!!(Tt.flags&469893116)||rg(Tt))){if(PL(et,Se))return xe;if(!(et.flags&1048576&&dm(et,Tt=>PL(Tt,Se)))&&!PL(Se,et))return yn;w=67108864}}}const U=zm(I)+(a&2?"*":xA(c,p));let H=$e.get(U);if(!H){if(v&1048576)if(Gdt(I))H=Pa(I,a,c,p);else if(Hn(I,Q=>!!(Q.flags&1048576&&Q.types[0].flags&32768))){const Q=vt(I,$8)?Ie:ge;kWe(I,32768),H=pi([Pa(I,a),Q],1,c,p)}else if(Hn(I,Q=>!!(Q.flags&1048576&&(Q.types[0].flags&65536||Q.types[1].flags&65536))))kWe(I,65536),H=pi([Pa(I,a),Kt],1,c,p);else if(I.length>=3&&n.length>2){const Q=Math.floor(I.length/2);H=Pa([Pa(I.slice(0,Q),a),Pa(I.slice(Q),a)],a,c,p)}else{if(!l5(I))return nt;const Q=jdt(I,a),xe=vt(Q,Se=>!!(Se.flags&2097152))&&g_e(Q)>g_e(I)?m_e(2097152,I):void 0;H=pi(Q,1,c,p,xe)}else H=Vdt(I,w,c,p);$e.set(U,H)}return H}function wWe(n){return bu(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function l5(n){var a;const c=wWe(n);return c>=1e5?((a=xr)==null||a.instant(xr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(p=>p.id),size:c}),Ze(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function jdt(n,a){const c=wWe(n),p=[];for(let m=0;m=0;U--)if(n[U].flags&1048576){const H=n[U].types,Q=H.length;v[U]=H[I%Q],I=Math.floor(I/Q)}const w=Pa(v,a);w.flags&131072||p.push(w)}return p}function OWe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?OWe(n.origin):g_e(n.types)}function g_e(n){return bu(n,(a,c)=>a+OWe(c),0)}function Udt(n){const a=Vr(n);if(!a.resolvedType){const c=cR(n),p=Yt(n.types,Ji),m=p.length===2?p.indexOf(fa):-1,v=m>=0?p[1-m]:Nt,I=!!(v.flags&76||v.flags&134217728&&DA(v));a.resolvedType=Pa(p,I?1:0,c,$C(c))}return a.resolvedType}function WWe(n,a){const c=vi(4194304);return c.type=n,c.indexFlags=a,c}function Hdt(n){const a=Eo(4194304);return a.type=n,a}function FWe(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=WWe(n,1)):n.resolvedIndexType||(n.resolvedIndexType=WWe(n,0))}function zWe(n,a){const c=oh(n),p=Cf(n),m=Bv(n.target||n);if(!m&&!(a&2))return p;const v=[];if(NA(p)){if(HC(n))return FWe(n,a);FA(p,w)}else if(HC(n)){const U=Mu(J0(n));Fhe(U,8576,!!(a&1),w)}else FA(Qz(p),w);const I=a&2?Ic(pi(v),U=>!(U.flags&5)):pi(v);if(I.flags&1048576&&p.flags&1048576&&zm(I.types)===zm(p.types))return p;return I;function w(U){const H=m?ro(m,j8(n.mapper,c,U)):U;v.push(H===yt?ln:H)}}function qdt(n){const a=oh(n);return c(Bv(n)||a);function c(p){return p.flags&470810623?!0:p.flags&16777216?p.root.isDistributive&&p.checkType===a:p.flags&137363456?Hn(p.types,c):p.flags&8388608?c(p.objectType)&&c(p.indexType):p.flags&33554432?c(p.baseType)&&c(p.constraint):p.flags&268435456?c(p.type):!1}}function Fy(n){if(Qi(n))return yn;if(op(n))return Pu(_o(n));if(va(n))return Pu(ah(n));const a=f1(n);return a!==void 0?Ip(Vi(a)):St(n)?Pu(_o(n)):yn}function sR(n,a,c){if(c||!(qf(n)&6)){let p=Jr(pY(n)).nameType;if(!p){const m=wo(n.valueDeclaration);p=n.escapedName==="default"?Ip("default"):m&&Fy(m)||(fM(n)?void 0:Ip(Fl(n)))}if(p&&p.flags&a)return p}return yn}function BWe(n,a){return!!(n.flags&a||n.flags&2097152&&vt(n.types,c=>BWe(c,a)))}function Jdt(n,a,c){const p=c&&(Hr(n)&7||n.aliasSymbol)?Hdt(n):void 0,m=Yt(Ts(n),I=>sR(I,a)),v=Yt(Qd(n),I=>I!==no&&BWe(I.keyType,a)?I.keyType===yt&&a&8?ln:I.keyType:yn);return pi(ao(m,v),1,void 0,void 0,p)}function y_e(n,a=0){return!!(n.flags&58982400||vT(n)||mp(n)&&(!qdt(n)||k8(n)===2)||n.flags&1048576&&!(a&4)&&Uhe(n)||n.flags&2097152&&oc(n,465829888)&&vt(n.types,rg))}function E_(n,a=0){return n=Fm(n),XC(n)?Zhe(E_(n.baseType,a)):y_e(n,a)?FWe(n,a):n.flags&1048576?Pa(Yt(n.types,c=>E_(c,a))):n.flags&2097152?pi(Yt(n.types,c=>E_(c,a))):Hr(n)&32?zWe(n,a):n===It?It:n.flags&2?yn:n.flags&131073?Ri:Jdt(n,(a&2?128:402653316)|(a&1?0:12584),a===0)}function GWe(n){const a=ldt();return a?KC(a,[n,yt]):yt}function Kdt(n){const a=GWe(E_(n));return a.flags&131072?yt:a}function Xdt(n){const a=Vr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=E_(Ji(n.type));break;case 158:a.resolvedType=n.type.kind===155?R_e(Mk(n.parent)):nt;break;case 148:a.resolvedType=Ji(n.type);break;default:C.assertNever(n.operator)}return a.resolvedType}function Ydt(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=RA([n.head.text,...Yt(n.templateSpans,c=>c.literal.text)],Yt(n.templateSpans,c=>Ji(c.type)))),a.resolvedType}function RA(n,a){const c=ho(a,H=>!!(H.flags&1179648));if(c>=0)return l5(a)?El(a[c],H=>RA(n,ZB(a,c,H))):nt;if(jn(a,It))return It;const p=[],m=[];let v=n[0];if(!U(n,a))return yt;if(p.length===0)return Ip(v);if(m.push(v),Hn(m,H=>H==="")){if(Hn(p,H=>!!(H.flags&4)))return yt;if(p.length===1&&DA(p[0]))return p[0]}const I=`${zm(p)}|${Yt(m,H=>H.length).join(",")}|${m.join("")}`;let w=qi.get(I);return w||qi.set(I,w=Qdt(m,p)),w;function U(H,Q){for(let xe=0;xelR(n,c)):a.flags&128?Ip(VWe(n,a.value)):a.flags&134217728?RA(...Zdt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||NA(a)?jWe(n,a):c5(a)?jWe(n,RA(["",""],[a])):a}function VWe(n,a){switch(KU.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 Zdt(n,a,c){switch(KU.get(n.escapedName)){case 0:return[a.map(p=>p.toUpperCase()),c.map(p=>lR(n,p))];case 1:return[a.map(p=>p.toLowerCase()),c.map(p=>lR(n,p))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[lR(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[lR(n,c[0]),...c.slice(1)]:c]}return[a,c]}function jWe(n,a){const c=`${Ta(n)},${fd(a)}`;let p=Qo.get(c);return p||Qo.set(c,p=eut(n,a)),p}function eut(n,a){const c=Oi(268435456,n);return c.type=a,c}function tut(n,a,c,p,m){const v=vi(8388608);return v.objectType=n,v.indexType=a,v.accessFlags=c,v.aliasSymbol=p,v.aliasTypeArguments=m,v}function G8(n){if(be)return!1;if(Hr(n)&4096)return!0;if(n.flags&1048576)return Hn(n.types,G8);if(n.flags&2097152)return vt(n.types,G8);if(n.flags&465829888){const a=Ghe(n);return a!==n&&G8(a)}return!1}function DY(n,a){return Jf(n)?Kf(n):a&&Tc(a)?f1(a):void 0}function v_e(n,a){if(a.flags&8208){const c=Dn(n.parent,p=>!Ys(p))||n.parent;return TS(c)?Uh(c)&&Je(n)&&t6e(c,n):Hn(a.declarations,p=>!$o(p)||Ih(p))}return!0}function UWe(n,a,c,p,m,v){const I=m&&m.kind===213?m:void 0,w=m&&Qi(m)?void 0:DY(c,m);if(w!==void 0){if(v&256)return rS(a,w)||He;const H=Ea(a,w);if(H){if(v&64&&m&&H.declarations&&Cu(H)&&v_e(m,H)){const xe=I?.argumentExpression??(US(m)?m.indexType:m);wm(xe,H.declarations,w)}if(I){if(j5(H,I,S4e(I.expression,a.symbol)),d3e(I,H,Ib(I))){Ze(I.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,co(H));return}if(v&8&&(Vr(m).resolvedSymbol=H),m4e(I,H))return Rt}const Q=v&4?zv(H):_r(H);return I&&Ib(I)!==1?qy(I,Q):m&&US(m)&&$8(Q)?pi([Q,ge]):Q}if(xp(a,Xa)&&Dg(w)){const Q=+w;if(m&&xp(a,xe=>!(xe.target.combinedFlags&12))&&!(v&16)){const xe=b_e(m);if(Xa(a)){if(Q<0)return Ze(xe,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),ge;Ze(xe,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,sr(a),jv(a),Vi(w))}else Ze(xe,f.Property_0_does_not_exist_on_type_1,Vi(w),sr(a))}if(Q>=0)return U(Jg(a,Bt)),kFe(a,Q,v&1?Ie:void 0)}}if(!(c.flags&98304)&&wd(c,402665900)){if(a.flags&131073)return a;const H=w8(a,c)||Jg(a,yt);if(H){if(v&2&&H.keyType!==Bt){I&&(v&4?Ze(I,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,sr(n)):Ze(I,f.Type_0_cannot_be_used_to_index_type_1,sr(c),sr(n)));return}if(m&&H.keyType===yt&&!wd(c,12)){const Q=b_e(m);return Ze(Q,f.Type_0_cannot_be_used_as_an_index_type,sr(c)),v&1?pi([H.type,Ie]):H.type}return U(H),v&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Qc(c.symbol)===a.symbol)?pi([H.type,Ie]):H.type}if(c.flags&131072)return yn;if(G8(a))return He;if(I&&!O$(a)){if(qv(a)){if(be&&c.flags&384)return rs.add(Ar(I,f.Property_0_does_not_exist_on_type_1,c.value,sr(a))),ge;if(c.flags&12){const Q=Yt(a.properties,xe=>_r(xe));return pi(Vn(Q,ge))}}if(a.symbol===Ce&&w!==void 0&&Ce.exports.has(w)&&Ce.exports.get(w).flags&418)Ze(I,f.Property_0_does_not_exist_on_type_1,Vi(w),sr(a));else if(be&&!(v&128))if(w!==void 0&&g4e(w,a)){const Q=sr(a);Ze(I,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,w,Q,Q+"["+Rl(I.argumentExpression)+"]")}else if(K0(a,Bt))Ze(I.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Q;if(w!==void 0&&(Q=b4e(w,a)))Q!==void 0&&Ze(I.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,w,sr(a),Q);else{const xe=lht(a,I,c);if(xe!==void 0)Ze(I,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,sr(a),xe);else{let Se;if(c.flags&1024)Se=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+sr(c)+"]",sr(a));else if(c.flags&8192){const et=Pv(c.symbol,I);Se=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+et+"]",sr(a))}else c.flags&128||c.flags&256?Se=qo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,sr(a)):c.flags&12&&(Se=qo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,sr(c),sr(a)));Se=qo(Se,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,sr(p),sr(a)),rs.add(bg(zn(I),I,Se))}}}return}}if(v&16&&qv(a))return ge;if(G8(a))return He;if(m){const H=b_e(m);if(H.kind!==10&&c.flags&384)Ze(H,f.Property_0_does_not_exist_on_type_1,""+c.value,sr(a));else if(c.flags&12)Ze(H,f.Type_0_has_no_matching_index_signature_for_type_1,sr(a),sr(c));else{const Q=H.kind===10?"bigint":sr(c);Ze(H,f.Type_0_cannot_be_used_as_an_index_type,Q)}}if(wr(c))return c;return;function U(H){H&&H.isReadonly&&I&&(xb(I)||ZG(I))&&Ze(I,f.Index_signature_in_type_0_only_permits_reading,sr(a))}}function b_e(n){return n.kind===213?n.argumentExpression:n.kind===200?n.indexType:n.kind===168?n.expression:n}function c5(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||c5(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||DA(n)}function DA(n){return!!(n.flags&134217728)&&Hn(n.types,c5)||!!(n.flags&268435456)&&c5(n.type)}function HWe(n){return!!(n.flags&402653184)&&!DA(n)}function $0(n){return!!V8(n)}function CA(n){return!!(V8(n)&4194304)}function NA(n){return!!(V8(n)&8388608)}function V8(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|bu(n.types,(a,c)=>a|V8(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|V8(n.baseType)|V8(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||mp(n)||vT(n)?4194304:0)|(n.flags&63176704||HWe(n)?8388608:0)}function zy(n,a){return n.flags&8388608?rut(n,a):n.flags&16777216?iut(n,a):n}function qWe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!y_e(n)){const p=Yt(n.types,m=>zy(Qp(m,a),c));return n.flags&2097152||c?Pa(p):pi(p)}}function nut(n,a,c){if(a.flags&1048576){const p=Yt(a.types,m=>zy(Qp(n,m),c));return c?Pa(p):pi(p)}}function rut(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===dc?n:n[c];n[c]=dc;const p=zy(n.objectType,a),m=zy(n.indexType,a),v=nut(p,m,a);if(v)return n[c]=v;if(!(m.flags&465829888)){const I=qWe(p,m,a);if(I)return n[c]=I}if(vT(p)&&m.flags&296){const I=wL(p,m.flags&8?0:p.target.fixedLength,0,a);if(I)return n[c]=I}return mp(p)&&k8(p)!==2?n[c]=El(CY(p,n.indexType),I=>zy(I,a)):n[c]=n}function iut(n,a){const c=n.checkType,p=n.extendsType,m=gT(n),v=yT(n);if(v.flags&131072&&By(m)===By(c)){if(c.flags&1||sa(LA(c),LA(p)))return zy(m,a);if(JWe(c,p))return yn}else if(m.flags&131072&&By(v)===By(c)){if(!(c.flags&1)&&sa(LA(c),LA(p)))return yn;if(c.flags&1||JWe(c,p))return zy(v,a)}return n}function JWe(n,a){return!!(pi([$z(n,a),yn]).flags&131072)}function CY(n,a){const c=Zp([oh(n)],[a]),p=Q0(n.mapper,c),m=ro(qg(n.target||n),p),v=O8e(n)>0||($0(n)?AL(J0(n))>0:out(n,a));return hu(m,!0,v)}function out(n,a){const c=kd(a);return!!c&&vt(Ts(n),p=>!!(p.flags&16777216)&&sa(sR(p,8576),c))}function Qp(n,a,c=0,p,m,v){return _T(n,a,c,p,m,v)||(p?nt:Nt)}function KWe(n,a){return xp(n,c=>{if(c.flags&384){const p=Kf(c);if(Dg(p)){const m=+p;return m>=0&&m0&&!vt(n.elements,a=>I4(a)||x4(a)||xD(a)&&!!(a.questionToken||a.dotDotDotToken))}function $We(n,a){return $0(n)||a&&Xa(n)&&vt(CE(n),$0)}function S_e(n,a,c,p,m){let v,I,w=0;for(;;){if(w===1e3)return Ze(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const H=ro(By(n.checkType),a),Q=ro(n.extendsType,a);if(H===nt||Q===nt)return nt;if(H===It||Q===It)return It;const xe=sM(n.node.checkType),Se=sM(n.node.extendsType),et=YWe(xe)&&YWe(Se)&&Qe(xe.elements)===Qe(Se.elements),Tt=$We(H,et);let Dt;if(n.inferTypeParameters){const Tn=Z8(n.inferTypeParameters,void 0,0);a&&(Tn.nonFixingMapper=Q0(Tn.nonFixingMapper,a)),Tt||$g(Tn.inferences,H,Q,1536),Dt=a?Q0(Tn.mapper,a):Tn.mapper}const $t=Dt?ro(n.extendsType,Dt):Q;if(!Tt&&!$We($t,et)){if(!($t.flags&3)&&(H.flags&1||!sa(H8(H),H8($t)))){(H.flags&1||c&&!($t.flags&131072)&&dm(H8($t),nr=>sa(nr,H8(H))))&&(I||(I=[])).push(ro(Ji(n.node.trueType),Dt||a));const Tn=Ji(n.node.falseType);if(Tn.flags&16777216){const nr=Tn.root;if(nr.node.parent===n.node&&(!nr.isDistributive||nr.checkType===n.checkType)){n=nr;continue}if(U(Tn,a))continue}v=ro(Tn,a);break}if($t.flags&3||sa(LA(H),LA($t))){const Tn=Ji(n.node.trueType),nr=Dt||a;if(U(Tn,nr))continue;v=ro(Tn,nr);break}}v=vi(16777216),v.root=n,v.checkType=ro(n.checkType,a),v.extendsType=ro(n.extendsType,a),v.mapper=a,v.combinedMapper=Dt,v.aliasSymbol=p||n.aliasSymbol,v.aliasTypeArguments=p?m:Gy(n.aliasTypeArguments,a);break}return I?pi(Vn(I,v)):v;function U(H,Q){if(H.flags&16777216&&Q){const xe=H.root;if(xe.outerTypeParameters){const Se=Q0(H.mapper,Q),et=Yt(xe.outerTypeParameters,$t=>Uv($t,Se)),Tt=Zp(xe.outerTypeParameters,et),Dt=xe.isDistributive?Uv(xe.checkType,Tt):void 0;if(!Dt||Dt===xe.checkType||!(Dt.flags&1179648))return n=xe,a=Tt,p=void 0,m=void 0,xe.aliasSymbol&&w++,!0}}return!1}}function gT(n){return n.resolvedTrueType||(n.resolvedTrueType=ro(Ji(n.root.node.trueType),n.mapper))}function yT(n){return n.resolvedFalseType||(n.resolvedFalseType=ro(Ji(n.root.node.falseType),n.mapper))}function aut(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?ro(Ji(n.root.node.trueType),n.combinedMapper):gT(n))}function E_e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Vn(a,Ks(c)))}),a}function sut(n){return n.isDistributive&&(m5(n.checkType,n.node.trueType)||m5(n.checkType,n.node.falseType))}function lut(n){const a=Vr(n);if(!a.resolvedType){const c=Ji(n.checkType),p=cR(n),m=$C(p),v=Li(n,!0),I=m?v:Un(v,U=>m5(U,n)),w={node:n,checkType:c,extendsType:Ji(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:E_e(n),outerTypeParameters:I,instantiations:void 0,aliasSymbol:p,aliasTypeArguments:m};a.resolvedType=S_e(w,void 0,!1),I&&(w.instantiations=new Map,w.instantiations.set(zm(I),a.resolvedType))}return a.resolvedType}function cut(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=q0(Wr(n.typeParameter))),a.resolvedType}function QWe(n){return Je(n)?[n]:Vn(QWe(n.left),n.right)}function ZWe(n){var a;const c=Vr(n);if(!c.resolvedType){if(!sy(n))return Ze(n.argument,f.String_literal_expected),c.resolvedSymbol=ne,c.resolvedType=nt;const p=n.isTypeOf?111551:n.flags&16777216?900095:788968,m=mu(n,n.argument.literal);if(!m)return c.resolvedSymbol=ne,c.resolvedType=nt;const v=!!((a=m.exports)!=null&&a.get("export=")),I=Ap(m,!1);if(zl(n.qualifier))if(I.flags&p)c.resolvedType=eFe(n,c,I,p);else{const w=p===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Ze(n,w,n.argument.literal.text),c.resolvedSymbol=ne,c.resolvedType=nt}else{const w=QWe(n.qualifier);let U=I,H;for(;H=w.shift();){const Q=w.length?1920:p,xe=as(gc(U)),Se=n.isTypeOf||Ir(n)&&v?Ea(_r(xe),H.escapedText,!1,!0):void 0,Tt=(n.isTypeOf?void 0:Ed(Xp(xe),H.escapedText,Q))??Se;if(!Tt)return Ze(H,f.Namespace_0_has_no_exported_member_1,Pv(U),Ws(H)),c.resolvedType=nt;Vr(H).resolvedSymbol=Tt,Vr(H.parent).resolvedSymbol=Tt,U=Tt}c.resolvedType=eFe(n,c,U,p)}}return c.resolvedType}function eFe(n,a,c,p){const m=gc(c);return a.resolvedSymbol=m,p===111551?Y4e(_r(c),n):EY(n,m)}function tFe(n){const a=Vr(n);if(!a.resolvedType){const c=cR(n);if(!n.symbol||Z_(n.symbol).size===0&&!c)a.resolvedType=fa;else{let p=yc(16,n.symbol);p.aliasSymbol=c,p.aliasTypeArguments=$C(c),N1(n)&&n.isArrayType&&(p=Zd(p)),a.resolvedType=p}}return a.resolvedType}function cR(n){let a=n.parent;for(;E1(a)||r0(a)||YT(a)&&a.operator===148;)a=a.parent;return Dk(a)?Wr(a):void 0}function $C(n){return n?Ma(n):void 0}function NY(n){return!!(n.flags&524288)&&!mp(n)}function A_e(n){return Vy(n)||!!(n.flags&474058748)}function I_e(n,a){if(!(n.flags&1048576))return n;if(Hn(n.types,A_e))return mn(n.types,Vy)||Da;const c=mn(n.types,v=>!A_e(v));if(!c||mn(n.types,v=>v!==c&&!A_e(v)))return n;return m(c);function m(v){const I=da();for(const U of Ts(v))if(!(qf(U)&6)){if(MY(U)){const H=U.flags&65536&&!(U.flags&32768),xe=Ua(16777220,U.escapedName,Whe(U)|(a?8:0));xe.links.type=H?ge:hu(_r(U),!0),xe.declarations=U.declarations,xe.links.nameType=Jr(U).nameType,xe.links.syntheticOrigin=U,I.set(U.escapedName,xe)}}const w=Sl(v.symbol,I,ie,ie,Qd(v));return w.objectFlags|=131200,w}}function NE(n,a,c,p,m){if(n.flags&1||a.flags&1)return He;if(n.flags&2||a.flags&2)return Nt;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=I_e(n,m),n.flags&1048576)return l5([n,a])?El(n,H=>NE(H,a,c,p,m)):nt;if(a=I_e(a,m),a.flags&1048576)return l5([n,a])?El(a,H=>NE(n,H,c,p,m)):nt;if(a.flags&473960444)return n;if(CA(n)||CA(a)){if(Vy(n))return a;if(n.flags&2097152){const H=n.types,Q=H[H.length-1];if(NY(Q)&&NY(a))return Pa(ao(H.slice(0,H.length-1),[NE(Q,a,c,p,m)]))}return Pa([n,a])}const v=da(),I=new Set,w=n===Da?Qd(a):M8e([n,a]);for(const H of Ts(a))qf(H)&6?I.add(H.escapedName):MY(H)&&v.set(H.escapedName,x_e(H,m));for(const H of Ts(n))if(!(I.has(H.escapedName)||!MY(H)))if(v.has(H.escapedName)){const Q=v.get(H.escapedName),xe=_r(Q);if(Q.flags&16777216){const Se=ao(H.declarations,Q.declarations),et=4|H.flags&16777216,Tt=Ua(et,H.escapedName),Dt=_r(H),$t=XY(Dt),Tn=XY(xe);Tt.links.type=$t===Tn?Dt:pi([Dt,Tn],2),Tt.links.leftSpread=H,Tt.links.rightSpread=Q,Tt.declarations=Se,Tt.links.nameType=Jr(H).nameType,v.set(H.escapedName,Tt)}}else v.set(H.escapedName,x_e(H,m));const U=Sl(c,v,ie,ie,to(w,H=>dut(H,m)));return U.objectFlags|=2228352|p,U}function MY(n){var a;return!vt(n.declarations,ou)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ui(c.parent))))}function x_e(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===Fh(n))return n;const p=4|n.flags&16777216,m=Ua(p,n.escapedName,Whe(n)|(a?8:0));return m.links.type=c?ge:_r(n),m.declarations=n.declarations,m.links.nameType=Jr(n).nameType,m.links.syntheticOrigin=n,m}function dut(n,a){return n.isReadonly!==a?Kg(n.keyType,n.type,a,n.declaration,n.components):n}function d5(n,a,c,p){const m=Oi(n,c);return m.value=a,m.regularType=p||m,m}function dR(n){if(n.flags&2976){if(!n.freshType){const a=d5(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Pu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=El(n,Pu)):n}function ME(n){return!!(n.flags&2976)&&n.freshType===n}function Ip(n){let a;return At.get(n)||(At.set(n,a=d5(128,n)),a)}function Ph(n){let a;return hn.get(n)||(hn.set(n,a=d5(256,n)),a)}function u5(n){let a;const c=zS(n);return dr.get(c)||(dr.set(c,a=d5(2048,n)),a)}function uut(n,a,c){let p;const m=`${a}${typeof n=="string"?"@":"#"}${n}`,v=1024|(typeof n=="string"?128:256);return ri.get(m)||(ri.set(m,p=d5(v,n,c)),p)}function put(n){if(n.literal.kind===106)return Kt;const a=Vr(n);return a.resolvedType||(a.resolvedType=Pu(_o(n.literal))),a.resolvedType}function fut(n){const a=Oi(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ta(a.symbol)}`,a}function R_e(n){if(Ir(n)&&r0(n)){const a=CS(n);a&&(n=xI(a)||a)}if(vne(n)){const a=QF(n)?Rf(n.left):Rf(n);if(a){const c=Jr(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=fut(a))}}return Qt}function mut(n){const a=Su(n,!1,!1),c=a&&a.parent;if(c&&(ui(c)||c.kind===265)&&!ua(a)&&(!kl(a)||NS(n,a.body)))return om(Wr(c)).thisType;if(c&&za(c)&&Nr(c.parent)&&lc(c.parent)===6)return om(Rf(c.parent.left).parent).thisType;const p=n.flags&16777216?VT(n):void 0;return p&&qs(p)&&Nr(p.parent)&&lc(p.parent)===3?om(Rf(p.parent.left).parent).thisType:x_(a)&&NS(n,a.body)?om(Wr(a)).thisType:(Ze(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),nt)}function D_e(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=mut(n)),a.resolvedType}function nFe(n){return Ji(p5(n.type)||n.type)}function p5(n){switch(n.kind){case 197:return p5(n.type);case 190:if(n.elements.length===1&&(n=n.elements[0],n.kind===192||n.kind===203&&n.dotDotDotToken))return p5(n.type);break;case 189:return n.elementType}}function hut(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?nFe(n):hu(Ji(n.type),!0,!!n.questionToken))}function Ji(n){return Hct(rFe(n),n)}function rFe(n){switch(n.kind){case 133:case 313:case 314:return He;case 159:return Nt;case 154:return yt;case 150:return Bt;case 163:return gr;case 136:return Vt;case 155:return Qt;case 116:return In;case 157:return ge;case 106:return Kt;case 146:return yn;case 151:return n.flags&524288&&!be?He:wn;case 141:return Oe;case 198:case 110:return D_e(n);case 202:return put(n);case 184:return IY(n);case 183:return n.assertsModifier?In:Vt;case 234:return IY(n);case 187:return uWe(n);case 189:case 190:return Edt(n);case 191:return Rdt(n);case 193:return Odt(n);case 194:return Udt(n);case 315:return qct(n);case 317:return hu(Ji(n.type));case 203:return hut(n);case 197:case 316:case 310:return Ji(n.type);case 192:return nFe(n);case 319:return Lvt(n);case 185:case 186:case 188:case 323:case 318:case 324:return tFe(n);case 199:return Xdt(n);case 200:return XWe(n);case 201:return T_e(n);case 195:return lut(n);case 196:return cut(n);case 204:return Ydt(n);case 206:return ZWe(n);case 80:case 167:case 212:const a=um(n);return a?Ks(a):nt;default:return nt}}function PY(n,a,c){if(n&&n.length)for(let p=0;pp.typeParameter),Yt(c,()=>Nt))}function gut(n){return n.outerReturnMapper??(n.outerReturnMapper=sFe(n.returnMapper,BFe(n).mapper))}function Q0(n,a){return n?kY(4,n,a):a}function sFe(n,a){return n?kY(5,n,a):a}function MA(n,a,c){return c?kY(5,PE(n,a),c):PE(n,a)}function j8(n,a,c){return n?kY(5,n,PE(a,c)):PE(a,c)}function yut(n){return!n.constraint&&!TY(n)||n.constraint===Xl?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Hu(n.symbol),n.restrictiveInstantiation.constraint=Xl,n.restrictiveInstantiation)}function N_e(n){const a=Hu(n.symbol);return a.target=n,a}function lFe(n,a){return W8(n.kind,n.parameterName,n.parameterIndex,ro(n.type,a))}function PA(n,a,c){let p;if(n.typeParameters&&!c){p=Yt(n.typeParameters,N_e),a=Q0(Zp(n.typeParameters,p),a);for(const v of p)v.mapper=a}const m=T_(n.declaration,p,n.thisParameter&&M_e(n.thisParameter,a),PY(n.parameters,a,M_e),void 0,void 0,n.minArgumentCount,n.flags&167);return m.target=n,m.mapper=a,m}function M_e(n,a){const c=Jr(n);if(c.type&&!TT(c.type)&&(!(n.flags&65536)||c.writeType&&!TT(c.writeType)))return n;Bl(n)&1&&(n=c.target,a=Q0(c.mapper,a));const p=Ua(n.flags,n.escapedName,1|Bl(n)&53256);return p.declarations=n.declarations,p.parent=n.parent,p.links.target=n,p.links.mapper=a,n.valueDeclaration&&(p.valueDeclaration=n.valueDeclaration),c.nameType&&(p.links.nameType=c.nameType),p}function vut(n,a,c,p){const m=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],v=Vr(m),I=n.objectFlags&4?v.resolvedType:n.objectFlags&64?n.target:n;let w=v.outerTypeParameters;if(!w){let U=Li(m,!0);if(x_(m)){const Q=K8e(m);U=Xr(U,Q)}w=U||ie;const H=n.objectFlags&8388612?[m]:n.symbol.declarations;w=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?Un(w,Q=>vt(H,xe=>m5(Q,xe))):w,v.outerTypeParameters=w}if(w.length){const U=Q0(n.mapper,a),H=Yt(w,Tt=>Uv(Tt,U)),Q=c||n.aliasSymbol,xe=c?p:Gy(n.aliasTypeArguments,a),Se=zm(H)+xA(Q,xe);I.instantiations||(I.instantiations=new Map,I.instantiations.set(zm(w)+xA(I.aliasSymbol,I.aliasTypeArguments),I));let et=I.instantiations.get(Se);if(!et){let Tt=Zp(w,H);I.objectFlags&134217728&&a&&(Tt=Q0(Tt,a)),et=I.objectFlags&4?Qhe(n.target,n.node,Tt,Q,xe):I.objectFlags&32?Tut(I,Tt,Q,xe):P_e(I,Tt,Q,xe),I.instantiations.set(Se,et);const Dt=Hr(et);if(et.flags&3899393&&!(Dt&524288)){const $t=vt(H,TT);Hr(et)&524288||(Dt&52?et.objectFlags|=524288|($t?1048576:0):et.objectFlags|=$t?0:524288)}}return et}return n}function but(n){return!(n.parent.kind===184&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===206&&n.parent.typeArguments&&n===n.parent.qualifier)}function m5(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){const p=n.symbol.declarations[0].parent;for(let m=a;m!==p;m=m.parent)if(!m||m.kind===242||m.kind===195&&Jo(m.extendsType,c))return!0;return c(a)}return!0;function c(p){switch(p.kind){case 198:return!!n.isThisType;case 80:return!n.isThisType&&Kh(p)&&but(p)&&rFe(p)===n;case 187:const m=p.exprName,v=Ou(m);if(!Db(v)){const I=_u(v),w=n.symbol.declarations[0],U=w.kind===169?w.parent:n.isThisType?w:void 0;if(I.declarations&&U)return vt(I.declarations,H=>NS(H,U))||vt(p.typeArguments,c)}return!0;case 175:case 174:return!p.type&&!!p.body||vt(p.typeParameters,c)||vt(p.parameters,c)||!!p.type&&c(p.type)}return!!Jo(p,c)}}function U8(n){const a=Cf(n);if(a.flags&4194304){const c=By(a.type);if(c.flags&262144)return c}}function Tut(n,a,c,p){const m=U8(n);if(m){const I=ro(m,a);if(m!==I)return u6e(Fm(I),v,c,p)}return ro(Cf(n),a)===It?It:P_e(n,a,c,p);function v(I){if(I.flags&61603843&&I!==It&&!pr(I)){if(!n.declaration.nameType){let w;if(lm(I)||I.flags&1&&ee(m,4)<0&&(w=Ju(m))&&xp(w,eS))return Eut(I,n,MA(m,I,a));if(Xa(I))return Sut(I,n,m,a);if(V8e(I))return Pa(Yt(I.types,v))}return P_e(n,MA(m,I,a))}return I}}function cFe(n,a){return a&1?!0:a&2?!1:n}function Sut(n,a,c,p){const m=n.target.elementFlags,v=n.target.fixedLength,I=v?MA(c,n,p):p,w=Yt(CE(n),(xe,Se)=>{const et=m[Se];return Sexe&1?2:xe):U&8?Yt(m,xe=>xe&2?1:xe):m,Q=cFe(n.target.readonly,eg(a));return jn(w,nt)?nt:ng(w,H,Q,n.target.labeledElementDeclarations)}function Eut(n,a,c){const p=dFe(a,Bt,!0,c);return pr(p)?nt:Zd(p,cFe(LL(n),eg(a)))}function dFe(n,a,c,p){const m=j8(p,oh(n),a),v=ro(qg(n.target||n),m),I=eg(n);return oe&&I&4&&!oc(v,49152)?bT(v,!0):oe&&I&8&&c?cm(v,524288):v}function P_e(n,a,c,p){C.assert(n.symbol,"anonymous type must have symbol to be instantiated");const m=yc(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){m.declaration=n.declaration;const v=oh(n),I=N_e(v);m.typeParameter=I,a=Q0(PE(v,I),a),I.mapper=a}return n.objectFlags&8388608&&(m.node=n.node),m.target=n,m.mapper=a,m.aliasSymbol=c||n.aliasSymbol,m.aliasTypeArguments=c?p:Gy(n.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?r5(m.aliasTypeArguments):0,m}function L_e(n,a,c,p,m){const v=n.root;if(v.outerTypeParameters){const I=Yt(v.outerTypeParameters,H=>Uv(H,a)),w=(c?"C":"")+zm(I)+xA(p,m);let U=v.instantiations.get(w);if(!U){const H=Zp(v.outerTypeParameters,I),Q=v.checkType,xe=v.isDistributive?Fm(Uv(Q,H)):void 0;U=xe&&Q!==xe&&xe.flags&1179648?u6e(xe,Se=>S_e(v,MA(Q,Se,H),c),p,m):S_e(v,H,c,p,m),v.instantiations.set(w,U)}return U}return n}function ro(n,a){return n&&a?uFe(n,a,void 0,void 0):n}function uFe(n,a,c,p){var m;if(!TT(n))return n;if(E===100||y>=5e6)return(m=xr)==null||m.instant(xr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:E,instantiationCount:y}),Ze(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const v=cmt(a);v===-1&&smt(a);const I=n.id+xA(c,p),w=E0[v!==-1?v:q_-1],U=w.get(I);if(U)return U;h++,y++,E++;const H=Aut(n,a,c,p);return v===-1?lmt():w.set(I,H),E--,H}function Aut(n,a,c,p){const m=n.flags;if(m&262144)return Uv(n,a);if(m&524288){const v=n.objectFlags;if(v&52){if(v&4&&!n.node){const I=n.resolvedTypeArguments,w=Gy(I,a);return w!==I?u_e(n.target,w):n}return v&1024?Iut(n,a):vut(n,a,c,p)}return n}if(m&3145728){const v=n.flags&1048576?n.origin:void 0,I=v&&v.flags&3145728?v.types:n.types,w=Gy(I,a);if(w===I&&c===n.aliasSymbol)return n;const U=c||n.aliasSymbol,H=c?p:Gy(n.aliasTypeArguments,a);return m&2097152||v&&v.flags&2097152?Pa(w,0,U,H):pi(w,1,U,H)}if(m&4194304)return E_(ro(n.type,a));if(m&134217728)return RA(n.texts,Gy(n.types,a));if(m&268435456)return lR(n.symbol,ro(n.type,a));if(m&8388608){const v=c||n.aliasSymbol,I=c?p:Gy(n.aliasTypeArguments,a);return Qp(ro(n.objectType,a),ro(n.indexType,a),n.accessFlags,void 0,v,I)}if(m&16777216)return L_e(n,Q0(n.mapper,a),!1,c,p);if(m&33554432){const v=ro(n.baseType,a);if(XC(n))return Zhe(v);const I=ro(n.constraint,a);return v.flags&8650752&&$0(I)?t_e(v,I):I.flags&3||sa(LA(v),LA(I))?v:v.flags&8650752?t_e(v,I):Pa([I,v])}return n}function Iut(n,a){const c=ro(n.mappedType,a);if(!(Hr(c)&32))return n;const p=ro(n.constraintType,a);if(!(p.flags&4194304))return n;const m=jFe(ro(n.source,a),c,p);return m||n}function H8(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=ro(n,Cl))}function LA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=ro(n,jl),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function xut(n,a){return Kg(n.keyType,ro(n.type,a),n.isReadonly,n.declaration,n.components)}function Mf(n){switch(C.assert(n.kind!==175||bm(n)),n.kind){case 219:case 220:case 175:case 263:return pFe(n);case 211:return vt(n.properties,Mf);case 210:return vt(n.elements,Mf);case 228:return Mf(n.whenTrue)||Mf(n.whenFalse);case 227:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Mf(n.left)||Mf(n.right));case 304:return Mf(n.initializer);case 218:return Mf(n.expression);case 293:return vt(n.properties,Mf)||hh(n.parent)&&vt(n.parent.parent.children,Mf);case 292:{const{initializer:a}=n;return!!a&&Mf(a)}case 295:{const{expression:a}=n;return!!a&&Mf(a)}}return!1}function pFe(n){return a4(n)||Rut(n)}function Rut(n){return n.typeParameters||Wp(n)||!n.body?!1:n.body.kind!==242?Mf(n.body):!!Ab(n.body,a=>!!a.expression&&Mf(a.expression))}function wY(n){return(Pb(n)||bm(n))&&pFe(n)}function fFe(n){if(n.flags&524288){const a=Mh(n);if(a.constructSignatures.length||a.callSignatures.length){const c=yc(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=ie,c.constructSignatures=ie,c.indexInfos=ie,c}}else if(n.flags&2097152)return Pa(Yt(n.types,fFe));return n}function Yg(n,a){return A_(n,a,Yd)}function q8(n,a){return A_(n,a,Yd)?-1:0}function k_e(n,a){return A_(n,a,Xd)?-1:0}function Dut(n,a){return A_(n,a,J_)?-1:0}function LE(n,a){return A_(n,a,J_)}function PL(n,a){return A_(n,a,ul)}function sa(n,a){return A_(n,a,Xd)}function Z0(n,a){return n.flags&1048576?Hn(n.types,c=>Z0(c,a)):a.flags&1048576?vt(a.types,c=>Z0(n,c)):n.flags&2097152?vt(n.types,c=>Z0(c,a)):n.flags&58982400?Z0(kd(n)||Nt,a):rg(a)?!!(n.flags&67633152):a===qt?!!(n.flags&67633152)&&!rg(n):a===er?!!(n.flags&524288)&&mge(n):Ur(n,Gn(a))||lm(a)&&!LL(a)&&Z0(n,ja)}function OY(n,a){return A_(n,a,up)}function h5(n,a){return OY(n,a)||OY(a,n)}function eu(n,a,c,p,m,v){return sm(n,a,Xd,c,p,m,v)}function kE(n,a,c,p,m,v){return w_e(n,a,Xd,c,p,m,v,void 0)}function w_e(n,a,c,p,m,v,I,w){return A_(n,a,c)?!0:!p||!J8(m,n,a,c,v,I,w)?sm(n,a,c,p,v,I,w):!1}function mFe(n){return!!(n.flags&16777216||n.flags&2097152&&vt(n.types,mFe))}function J8(n,a,c,p,m,v,I){if(!n||mFe(c))return!1;if(!sm(a,c,p,void 0)&&Cut(n,a,c,p,m,v,I))return!0;switch(n.kind){case 235:if(!cj(n))break;case 295:case 218:return J8(n.expression,a,c,p,m,v,I);case 227:switch(n.operatorToken.kind){case 64:case 28:return J8(n.right,a,c,p,m,v,I)}break;case 211:return Wut(n,a,c,p,v,I);case 210:return wut(n,a,c,p,v,I);case 293:return kut(n,a,c,p,v,I);case 220:return Nut(n,a,c,p,v,I)}return!1}function Cut(n,a,c,p,m,v,I){const w=ra(a,0),U=ra(a,1);for(const H of[U,w])if(vt(H,Q=>{const xe=fs(Q);return!(xe.flags&131073)&&sm(xe,c,p,void 0)})){const Q=I||{};eu(a,c,n,m,v,Q);const xe=Q.errors[Q.errors.length-1];return pa(xe,Ar(n,H===U?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function Nut(n,a,c,p,m,v){if(ta(n.body)||vt(n.parameters,kF))return!1;const I=VA(a);if(!I)return!1;const w=ra(c,0);if(!Qe(w))return!1;const U=n.body,H=fs(I),Q=pi(Yt(w,fs));if(!sm(H,Q,p,void 0)){const xe=U&&J8(U,H,Q,p,void 0,m,v);if(xe)return xe;const Se=v||{};if(sm(H,Q,p,U,void 0,m,Se),Se.errors)return c.symbol&&Qe(c.symbol.declarations)&&pa(Se.errors[Se.errors.length-1],Ar(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),(pc(n)&2)===0&&!_n(H,"then")&&sm(Y5(H),Q,p,void 0)&&pa(Se.errors[Se.errors.length-1],Ar(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function hFe(n,a,c){const p=_T(a,c);if(p)return p;if(a.flags&1048576){const m=EFe(n,a);if(m)return _T(m,c)}}function _Fe(n,a){O5(n,a,!1);const c=jL(n,1);return iW(),c}function _5(n,a,c,p,m,v){let I=!1;for(const w of n){const{errorNode:U,innerExpression:H,nameType:Q,errorMessage:xe}=w;let Se=hFe(a,c,Q);if(!Se||Se.flags&8388608)continue;let et=_T(a,Q);if(!et)continue;const Tt=DY(Q,void 0);if(!sm(et,Se,p,void 0)){const Dt=H&&J8(H,et,Se,p,void 0,m,v);if(I=!0,!Dt){const $t=v||{},Tn=H?_Fe(H,et):et;if(Ne&&FY(Tn,Se)){const nr=Ar(U,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,sr(Tn),sr(Se));rs.add(nr),$t.errors=[nr]}else{const nr=!!(Tt&&(Ea(c,Tt)||ne).flags&16777216),yr=!!(Tt&&(Ea(a,Tt)||ne).flags&16777216);Se=Hy(Se,nr),et=Hy(et,nr&&yr),sm(Tn,Se,p,U,xe,m,$t)&&Tn!==et&&sm(et,Se,p,U,xe,m,$t)}if($t.errors){const nr=$t.errors[$t.errors.length-1],yr=Jf(Q)?Kf(Q):void 0,Sn=yr!==void 0?Ea(c,yr):void 0;let vn=!1;if(!Sn){const Sr=w8(c,Q);Sr&&Sr.declaration&&!zn(Sr.declaration).hasNoDefaultLib&&(vn=!0,pa(nr,Ar(Sr.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!vn&&(Sn&&Qe(Sn.declarations)||c.symbol&&Qe(c.symbol.declarations))){const Sr=Sn&&Qe(Sn.declarations)?Sn.declarations[0]:c.symbol.declarations[0];zn(Sr).hasNoDefaultLib||pa(nr,Ar(Sr,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,yr&&!(Q.flags&8192)?Vi(yr):sr(Q),sr(c)))}}}}}return I}function Mut(n,a,c,p,m,v){const I=Ic(c,HY),w=Ic(c,Q=>!HY(Q)),U=w!==yn?Oye(13,0,w,void 0):void 0;let H=!1;for(let Q=n.next();!Q.done;Q=n.next()){const{errorNode:xe,innerExpression:Se,nameType:et,errorMessage:Tt}=Q.value;let Dt=U;const $t=I!==yn?hFe(a,I,et):void 0;if($t&&!($t.flags&8388608)&&(Dt=U?pi([U,$t]):$t),!Dt)continue;let Tn=_T(a,et);if(!Tn)continue;const nr=DY(et,void 0);if(!sm(Tn,Dt,p,void 0)){const yr=Se&&J8(Se,Tn,Dt,p,void 0,m,v);if(H=!0,!yr){const Sn=v||{},vn=Se?_Fe(Se,Tn):Tn;if(Ne&&FY(vn,Dt)){const Sr=Ar(xe,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,sr(vn),sr(Dt));rs.add(Sr),Sn.errors=[Sr]}else{const Sr=!!(nr&&(Ea(I,nr)||ne).flags&16777216),mi=!!(nr&&(Ea(a,nr)||ne).flags&16777216);Dt=Hy(Dt,Sr),Tn=Hy(Tn,Sr&&mi),sm(vn,Dt,p,xe,Tt,m,Sn)&&vn!==Tn&&sm(Tn,Dt,p,xe,Tt,m,Sn)}}}}return H}function*Put(n){if(Qe(n.properties))for(const a of n.properties)nx(a)||Wge(dw(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Ip(dw(a.name))})}function*Lut(n,a){if(!Qe(n.children))return;let c=0;for(let p=0;p1;let $t,Tn;if(RY(!1)!==Zt){const yr=IWe(He);$t=Ic(et,Sn=>sa(Sn,yr)),Tn=Ic(et,Sn=>!sa(Sn,yr))}else $t=Ic(et,HY),Tn=Ic(et,yr=>!HY(yr));if(Dt){if($t!==yn){const yr=ng(v$(H,0)),Sn=Lut(H,U);I=Mut(Sn,yr,$t,p,m,v)||I}else if(!A_(Qp(a,Se),et,p)){I=!0;const yr=Ze(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,xe,sr(et));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(yr)}}else if(Tn!==yn){const yr=Tt[0],Sn=gFe(yr,Se,U);Sn&&(I=_5((function*(){yield Sn})(),a,c,p,m,v)||I)}else if(!A_(Qp(a,Se),et,p)){I=!0;const yr=Ze(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,xe,sr(et));v&&v.skipLogging&&(v.errors||(v.errors=[])).push(yr)}}return I;function U(){if(!w){const H=Rl(n.parent.tagName),Q=F5(BA(n)),xe=Q===void 0?"children":Vi(Q),Se=Qp(c,Ip(xe)),et=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;w={...et,key:"!!ALREADY FORMATTED!!",message:OI(et,H,xe,sr(Se))}}return w}}function*yFe(n,a){const c=Qe(n.elements);if(c)for(let p=0;pU:Wh(n)>U))return p&&!(c&8)&&m(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,Wh(n),U),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=zct(a),n=C4e(n,a,void 0,I));const Q=Rp(n),xe=pW(n),Se=pW(a);(xe||Se)&&ro(xe||Se,w);const et=a.declaration?a.declaration.kind:0,Tt=!(c&3)&&K&&et!==175&&et!==174&&et!==177;let Dt=-1;const $t=X0(n);if($t&&$t!==In){const yr=X0(a);if(yr){const Sn=!Tt&&I($t,yr,!1)||I(yr,$t,p);if(!Sn)return p&&m(f.The_this_types_of_each_signature_are_incompatible),0;Dt&=Sn}}const Tn=xe||Se?Math.min(Q,U):Math.max(Q,U),nr=xe||Se?Tn-1:-1;for(let yr=0;yr=Wh(n)&&yr=3&&a[0].flags&32768&&a[1].flags&65536&&vt(a,rg)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function QC(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function Vut(n){const a=n.flags&1048576?n.types[0]:n;return!!(a.flags&32768)&&a!==Ie}function bFe(n){return n.flags&524288&&!mp(n)&&Ts(n).length===0&&Qd(n).length===1&&!!Jg(n,yt)||n.flags&3145728&&Hn(n.types,bFe)||!1}function F_e(n,a,c){const p=n.flags&8?Qc(n):n,m=a.flags&8?Qc(a):a;if(p===m)return!0;if(p.escapedName!==m.escapedName||!(p.flags&256)||!(m.flags&256))return!1;const v=Ta(p)+","+Ta(m),I=D0.get(v);if(I!==void 0&&!(I&2&&c))return!!(I&1);const w=_r(m);for(const U of Ts(_r(p)))if(U.flags&8){const H=Ea(w,U.escapedName);if(!H||!(H.flags&8))return c&&c(f.Property_0_is_missing_in_type_1,Fl(U),sr(Ks(m),void 0,64)),D0.set(v,2),!1;const Q=UA(ll(U,307)).value,xe=UA(ll(H,307)).value;if(Q!==xe){const Se=typeof Q=="string",et=typeof xe=="string";if(Q!==void 0&&xe!==void 0){if(c){const Tt=Se?`"${O_(Q)}"`:Q,Dt=et?`"${O_(xe)}"`:xe;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Fl(m),Fl(H),Dt,Tt)}return D0.set(v,2),!1}if(Se||et){if(c){const Tt=Q??xe;C.assert(typeof Tt=="string");const Dt=`"${O_(Tt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Fl(m),Fl(H),Dt)}return D0.set(v,2),!1}}}return D0.set(v,1),!0}function K8(n,a,c,p){const m=n.flags,v=a.flags;return v&1||m&131072||n===It||v&2&&!(c===ul&&m&1)?!0:v&131072?!1:!!(m&402653316&&v&4||m&128&&m&1024&&v&128&&!(v&1024)&&n.value===a.value||m&296&&v&8||m&256&&m&1024&&v&256&&!(v&1024)&&n.value===a.value||m&2112&&v&64||m&528&&v&16||m&12288&&v&4096||m&32&&v&32&&n.symbol.escapedName===a.symbol.escapedName&&F_e(n.symbol,a.symbol,p)||m&1024&&v&1024&&(m&1048576&&v&1048576&&F_e(n.symbol,a.symbol,p)||m&2944&&v&2944&&n.value===a.value&&F_e(n.symbol,a.symbol,p))||m&32768&&(!oe&&!(v&3145728)||v&49152)||m&65536&&(!oe&&!(v&3145728)||v&65536)||m&524288&&v&67108864&&!(c===ul&&rg(n)&&!(Hr(n)&8192))||(c===Xd||c===up)&&(m&1||m&8&&(v&32||v&256&&v&1024)||m&256&&!(m&1024)&&(v&32||v&256&&v&1024&&n.value===a.value)||Gut(a)))}function A_(n,a,c){if(ME(n)&&(n=n.regularType),ME(a)&&(a=a.regularType),n===a)return!0;if(c!==Yd){if(c===up&&!(a.flags&131072)&&K8(a,n,c)||K8(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){const p=c.get(GY(n,a,0,c,!1));if(p!==void 0)return!!(p&1)}return n.flags&469499904||a.flags&469499904?sm(n,a,c,void 0):!1}function TFe(n,a){return Hr(n)&2048&&Wge(a.escapedName)}function g5(n,a){for(;;){const c=ME(n)?n.regularType:vT(n)?Hut(n,a):Hr(n)&4?n.node?Wy(n.target,ol(n)):q_e(n)||n:n.flags&3145728?jut(n,a):n.flags&33554432?a?n.baseType:n_e(n):n.flags&25165824?zy(n,a):n;if(c===n)return c;n=c}}function jut(n,a){const c=Fm(n);if(c!==n)return c;if(n.flags&2097152&&Uut(n)){const p=to(n.types,m=>g5(m,a));if(p!==n.types)return Pa(p)}return n}function Uut(n){let a=!1,c=!1;for(const p of n.types)if(a||(a=!!(p.flags&465829888)),c||(c=!!(p.flags&98304)||rg(p)),a&&c)return!0;return!1}function Hut(n,a){const c=CE(n),p=to(c,m=>m.flags&25165824?zy(m,a):m);return c!==p?p_e(n.target,p):n}function sm(n,a,c,p,m,v,I){var w;let U,H,Q,xe,Se,et,Tt=0,Dt=0,$t=0,Tn=0,nr=!1,yr=0,Sn=0,vn,Sr,mi=16e6-c.size>>3;C.assert(c!==Yd||!p,"no error reporting in identity checking");const io=vr(n,a,3,!!p,m);if(Sr&&ms(),nr){const Pe=GY(n,a,0,c,!1);c.set(Pe,2|(mi<=0?32:64)),(w=xr)==null||w.instant(xr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:$t});const Ke=mi<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,ct=Ze(p||R,Ke,sr(n),sr(a));I&&(I.errors||(I.errors=[])).push(ct)}else if(U){if(v){const ct=v();ct&&(xre(ct,U),U=ct)}let Pe;if(m&&p&&!io&&n.symbol){const ct=Jr(n.symbol);if(ct.originatingImport&&!tp(ct.originatingImport)&&sm(_r(ct.target),a,c,void 0)){const sn=Ar(ct.originatingImport,f.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);Pe=Vn(Pe,sn)}}const Ke=bg(zn(p),p,U,Pe);H&&pa(Ke,...H),I&&(I.errors||(I.errors=[])).push(Ke),(!I||!I.skipLogging)&&rs.add(Ke)}return p&&I&&I.skipLogging&&io===0&&C.assert(!!I.errors,"missed opportunity to interact with error."),io!==0;function ii(Pe){U=Pe.errorInfo,vn=Pe.lastSkippedInfo,Sr=Pe.incompatibleStack,yr=Pe.overrideNextErrorInfo,Sn=Pe.skipParentCounter,H=Pe.relatedInfo}function Bi(){return{errorInfo:U,lastSkippedInfo:vn,incompatibleStack:Sr?.slice(),overrideNextErrorInfo:yr,skipParentCounter:Sn,relatedInfo:H?.slice()}}function Ko(Pe,...Ke){yr++,vn=void 0,(Sr||(Sr=[])).push([Pe,...Ke])}function ms(){const Pe=Sr||[];Sr=void 0;const Ke=vn;if(vn=void 0,Pe.length===1){fo(...Pe[0]),Ke&&gu(void 0,...Ke);return}let ct="";const Gt=[];for(;Pe.length;){const[sn,...jt]=Pe.pop();switch(sn.code){case f.Types_of_property_0_are_incompatible.code:{ct.indexOf("new ")===0&&(ct=`(${ct})`);const un=""+jt[0];ct.length===0?ct=`${un}`:_p(un,Va(W))?ct=`${ct}.${un}`:un[0]==="["&&un[un.length-1]==="]"?ct=`${ct}${un}`:ct=`${ct}[${un}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(ct.length===0){let un=sn;sn.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?un=f.Call_signature_return_types_0_and_1_are_incompatible:sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(un=f.Construct_signature_return_types_0_and_1_are_incompatible),Gt.unshift([un,jt[0],jt[1]])}else{const un=sn.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Zn=sn.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||sn.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";ct=`${un}${ct}(${Zn})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Gt.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,jt[0],jt[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Gt.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,jt[0],jt[1],jt[2]]);break}default:return C.fail(`Unhandled Diagnostic: ${sn.code}`)}}ct?fo(ct[ct.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,ct):Gt.shift();for(const[sn,...jt]of Gt){const un=sn.elidedInCompatabilityPyramid;sn.elidedInCompatabilityPyramid=!1,fo(sn,...jt),sn.elidedInCompatabilityPyramid=un}Ke&&gu(void 0,...Ke)}function fo(Pe,...Ke){C.assert(!!p),Sr&&ms(),!Pe.elidedInCompatabilityPyramid&&(Sn===0?U=qo(U,Pe,...Ke):Sn--)}function pl(Pe,...Ke){fo(Pe,...Ke),Sn++}function Ql(Pe){C.assert(!!U),H?H.push(Pe):H=[Pe]}function gu(Pe,Ke,ct){Sr&&ms();const[Gt,sn]=_L(Ke,ct);let jt=Ke,un=Gt;if(!(ct.flags&131072)&&X8(Ke)&&!z_e(ct)&&(jt=jy(Ke),C.assert(!sa(jt,ct),"generalized source shouldn't be assignable"),un=FC(jt)),(ct.flags&8388608&&!(Ke.flags&8388608)?ct.objectType.flags:ct.flags)&262144&&ct!==ft&&ct!==Ht){const fr=kd(ct);let Br;fr&&(sa(jt,fr)||(Br=sa(Ke,fr)))?fo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Br?Gt:un,sn,sr(fr)):(U=void 0,fo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,sn,un))}if(Pe)Pe===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ne&&SFe(Ke,ct).length&&(Pe=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===up)Pe=f.Type_0_is_not_comparable_to_type_1;else if(Gt===sn)Pe=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ne&&SFe(Ke,ct).length)Pe=f.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(Ke.flags&128&&ct.flags&1048576){const fr=cht(Ke,ct);if(fr){fo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,un,sn,sr(fr));return}}Pe=f.Type_0_is_not_assignable_to_type_1}fo(Pe,un,sn)}function qn(Pe,Ke){const ct=zC(Pe.symbol)?sr(Pe,Pe.symbol.valueDeclaration):sr(Pe),Gt=zC(Ke.symbol)?sr(Ke,Ke.symbol.valueDeclaration):sr(Ke);(kc===Pe&&yt===Ke||rl===Pe&&Bt===Ke||Ol===Pe&&Vt===Ke||yWe()===Pe&&Qt===Ke)&&fo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Gt,ct)}function ir(Pe,Ke,ct){return Xa(Pe)?Pe.target.readonly&&T5(Ke)?(ct&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sr(Pe),sr(Ke)),!1):eS(Ke):LL(Pe)&&T5(Ke)?(ct&&fo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sr(Pe),sr(Ke)),!1):Xa(Ke)?lm(Pe):!0}function Hi(Pe,Ke,ct){return vr(Pe,Ke,3,ct)}function vr(Pe,Ke,ct=3,Gt=!1,sn,jt=0){if(Pe===Ke)return-1;if(Pe.flags&524288&&Ke.flags&402784252)return c===up&&!(Ke.flags&131072)&&K8(Ke,Pe,c)||K8(Pe,Ke,c,Gt?fo:void 0)?-1:(Gt&&ko(Pe,Ke,Pe,Ke,sn),0);const un=g5(Pe,!1);let Zn=g5(Ke,!0);if(un===Zn)return-1;if(c===Yd)return un.flags!==Zn.flags?0:un.flags&67358815?-1:(ys(un,Zn),RW(un,Zn,!1,0,ct));if(un.flags&262144&&EA(un)===Zn)return-1;if(un.flags&470302716&&Zn.flags&1048576){const fr=Zn.types,Br=fr.length===2&&fr[0].flags&98304?fr[1]:fr.length===3&&fr[0].flags&98304&&fr[1].flags&98304?fr[2]:void 0;if(Br&&!(Br.flags&98304)&&(Zn=g5(Br,!0),un===Zn))return-1}if(c===up&&!(Zn.flags&131072)&&K8(Zn,un,c)||K8(un,Zn,c,Gt?fo:void 0))return-1;if(un.flags&469499904||Zn.flags&469499904){if(!(jt&2)&&qv(un)&&Hr(un)&8192&&hd(un,Zn,Gt))return Gt&&gu(sn,un,Ke.aliasSymbol?Ke:Zn),0;const Br=(c!==up||Lh(un))&&!(jt&2)&&un.flags&405405692&&un!==qt&&Zn.flags&2621440&&G_e(Zn)&&(Ts(un).length>0||nQ(un)),li=!!(Hr(un)&2048);if(Br&&!Jut(un,Zn,li)){if(Gt){const Di=sr(Pe.aliasSymbol?Pe:un),mo=sr(Ke.aliasSymbol?Ke:Zn),ns=ra(un,0),bn=ra(un,1);ns.length>0&&vr(fs(ns[0]),Zn,1,!1)||bn.length>0&&vr(fs(bn[0]),Zn,1,!1)?fo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Di,mo):fo(f.Type_0_has_no_properties_in_common_with_type_1,Di,mo)}return 0}ys(un,Zn);const lr=un.flags&1048576&&un.types.length<4&&!(Zn.flags&1048576)||Zn.flags&1048576&&Zn.types.length<4&&!(un.flags&469499904)?uc(un,Zn,Gt,jt):RW(un,Zn,Gt,jt,ct);if(lr)return lr}return Gt&&ko(Pe,Ke,un,Zn,sn),0}function ko(Pe,Ke,ct,Gt,sn){var jt,un;const Zn=!!q_e(Pe),fr=!!q_e(Ke);ct=Pe.aliasSymbol||Zn?Pe:ct,Gt=Ke.aliasSymbol||fr?Ke:Gt;let Br=yr>0;if(Br&&yr--,ct.flags&524288&&Gt.flags&524288){const li=U;ir(ct,Gt,!0),U!==li&&(Br=!!U)}if(ct.flags&524288&&Gt.flags&402784252)qn(ct,Gt);else if(ct.symbol&&ct.flags&524288&&qt===ct)fo(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Hr(ct)&2048&&Gt.flags&2097152){const li=Gt.types,hi=WE(yf.IntrinsicAttributes,p),lr=WE(yf.IntrinsicClassAttributes,p);if(!pr(hi)&&!pr(lr)&&(jn(li,hi)||jn(li,lr)))return}else U=Hhe(U,Ke);if(!sn&&Br){const li=Bi();gu(sn,ct,Gt);let hi;U&&U!==li.errorInfo&&(hi={code:U.code,messageText:U.messageText}),ii(li),hi&&U&&(U.canonicalHead=hi),vn=[ct,Gt];return}if(gu(sn,ct,Gt),ct.flags&262144&&((un=(jt=ct.symbol)==null?void 0:jt.declarations)!=null&&un[0])&&!EA(ct)){const li=N_e(ct);if(li.constraint=ro(Gt,PE(ct,li)),e5(li)){const hi=sr(Gt,ct.symbol.declarations[0]);Ql(Ar(ct.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,hi))}}}function ys(Pe,Ke){if(xr&&Pe.flags&3145728&&Ke.flags&3145728){const ct=Pe,Gt=Ke;if(ct.objectFlags&Gt.objectFlags&32768)return;const sn=ct.types.length,jt=Gt.types.length;sn*jt>1e6&&xr.instant(xr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Pe.id,sourceSize:sn,targetId:Ke.id,targetSize:jt,pos:p?.pos,end:p?.end})}}function al(Pe,Ke){return pi(bu(Pe,(Gt,sn)=>{var jt;sn=Mu(sn);const un=sn.flags&3145728?t5(sn,Ke):xE(sn,Ke),Zn=un&&_r(un)||((jt=aR(sn,Ke))==null?void 0:jt.type)||ge;return Vn(Gt,Zn)},void 0)||ie)}function hd(Pe,Ke,ct){var Gt;if(!sW(Ke)||!be&&Hr(Ke)&4096)return!1;const sn=!!(Hr(Pe)&2048);if((c===Xd||c===up)&&(WL(qt,Ke)||!sn&&Vy(Ke)))return!1;let jt=Ke,un;Ke.flags&1048576&&(jt=Q7e(Pe,Ke,vr)||vTt(Ke),un=jt.flags&1048576?jt.types:[jt]);for(const Zn of Ts(Pe))if(Ya(Zn,Pe.symbol)&&!TFe(Pe,Zn)){if(!S$(jt,Zn.escapedName,sn)){if(ct){const fr=Ic(jt,sW);if(!p)return C.fail();if(JS(p)||au(p)||au(p.parent)){Zn.valueDeclaration&&s_(Zn.valueDeclaration)&&zn(p)===zn(Zn.valueDeclaration.name)&&(p=Zn.valueDeclaration.name);const Br=co(Zn),li=v4e(Br,fr),hi=li?co(li):void 0;hi?fo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Br,sr(fr),hi):fo(f.Property_0_does_not_exist_on_type_1,Br,sr(fr))}else{const Br=((Gt=Pe.symbol)==null?void 0:Gt.declarations)&&Rc(Pe.symbol.declarations);let li;if(Zn.valueDeclaration&&Dn(Zn.valueDeclaration,hi=>hi===Br)&&zn(Br)===zn(p)){const hi=Zn.valueDeclaration;C.assertNode(hi,ay);const lr=hi.name;p=lr,Je(lr)&&(li=b4e(lr,fr))}li!==void 0?pl(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,co(Zn),sr(fr),li):pl(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,co(Zn),sr(fr))}}return!0}if(un&&!vr(_r(Zn),al(un,Zn.escapedName),3,ct))return ct&&Ko(f.Types_of_property_0_are_incompatible,co(Zn)),!0}return!1}function Ya(Pe,Ke){return Pe.valueDeclaration&&Ke.valueDeclaration&&Pe.valueDeclaration.parent===Ke.valueDeclaration}function uc(Pe,Ke,ct,Gt){if(Pe.flags&1048576){if(Ke.flags&1048576){const sn=Pe.origin;if(sn&&sn.flags&2097152&&Ke.aliasSymbol&&jn(sn.types,Ke))return-1;const jt=Ke.origin;if(jt&&jt.flags&1048576&&Pe.aliasSymbol&&jn(jt.types,Pe))return-1}return c===up?Al(Pe,Ke,ct&&!(Pe.flags&402784252),Gt):pm(Pe,Ke,ct&&!(Pe.flags&402784252),Gt)}if(Ke.flags&1048576)return Ss(Q8(Pe),Ke,ct&&!(Pe.flags&402784252)&&!(Ke.flags&402784252),Gt);if(Ke.flags&2097152)return Pf(Pe,Ke,ct,2);if(c===up&&Ke.flags&402784252){const sn=to(Pe.types,jt=>jt.flags&465829888?kd(jt)||Nt:jt);if(sn!==Pe.types){if(Pe=Pa(sn),Pe.flags&131072)return 0;if(!(Pe.flags&2097152))return vr(Pe,Ke,1,!1)||vr(Ke,Pe,1,!1)}}return Al(Pe,Ke,!1,1)}function vc(Pe,Ke){let ct=-1;const Gt=Pe.types;for(const sn of Gt){const jt=Ss(sn,Ke,!1,0);if(!jt)return 0;ct&=jt}return ct}function Ss(Pe,Ke,ct,Gt){const sn=Ke.types;if(Ke.flags&1048576){if(Xg(sn,Pe))return-1;if(c!==up&&Hr(Ke)&32768&&!(Pe.flags&1024)&&(Pe.flags&2688||(c===J_||c===ul)&&Pe.flags&256)){const un=Pe===Pe.regularType?Pe.freshType:Pe.regularType,Zn=Pe.flags&128?yt:Pe.flags&256?Bt:Pe.flags&2048?gr:void 0;return Zn&&Xg(sn,Zn)||un&&Xg(sn,un)?-1:0}const jt=ZFe(Ke,Pe);if(jt){const un=vr(Pe,jt,2,!1,void 0,Gt);if(un)return un}}for(const jt of sn){const un=vr(Pe,jt,2,!1,void 0,Gt);if(un)return un}if(ct){const jt=EFe(Pe,Ke,vr);jt&&vr(Pe,jt,2,!0,void 0,Gt)}return 0}function Pf(Pe,Ke,ct,Gt){let sn=-1;const jt=Ke.types;for(const un of jt){const Zn=vr(Pe,un,2,ct,void 0,Gt);if(!Zn)return 0;sn&=Zn}return sn}function Al(Pe,Ke,ct,Gt){const sn=Pe.types;if(Pe.flags&1048576&&Xg(sn,Ke))return-1;const jt=sn.length;for(let un=0;un=un.types.length&&jt.length%un.types.length===0){const li=vr(fr,un.types[Zn%un.types.length],3,!1,void 0,Gt);if(li){sn&=li;continue}}const Br=vr(fr,Ke,1,ct,void 0,Gt);if(!Br)return 0;sn&=Br}return sn}function XL(Pe=ie,Ke=ie,ct=ie,Gt,sn){if(Pe.length!==Ke.length&&c===Yd)return 0;const jt=Pe.length<=Ke.length?Pe.length:Ke.length;let un=-1;for(let Zn=0;Zn(Di|=bn?16:8,lr(bn)));let mo;return Tn===3?((jt=xr)==null||jt.instant(xr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Pe.id,sourceIdStack:Se.map(bn=>bn.id),targetId:Ke.id,targetIdStack:et.map(bn=>bn.id),depth:Dt,targetDepth:$t}),mo=3):((un=xr)==null||un.push(xr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Pe.id,targetId:Ke.id}),mo=YL(Pe,Ke,ct,Gt),(Zn=xr)==null||Zn.pop()),Go&&(Go=lr),sn&1&&Dt--,sn&2&&$t--,Tn=hi,mo?(mo===-1||Dt===0&&$t===0)&&ns(mo===-1||mo===3):(c.set(fr,2|Di),mi--,ns(!1)),mo;function ns(bn){for(let Yr=li;YrZn!==Pe)&&(jt=vr(un,Ke,1,!1,void 0,Gt))}jt&&!(Gt&2)&&Ke.flags&2097152&&!CA(Ke)&&Pe.flags&2621440?(jt&=La(Pe,Ke,ct,void 0,!1,0),jt&&qv(Pe)&&Hr(Pe)&8192&&(jt&=we(Pe,Ke,!1,ct,0))):jt&&NY(Ke)&&!eS(Ke)&&Pe.flags&2097152&&Mu(Pe).flags&3670016&&!vt(Pe.types,un=>un===Ke||!!(Hr(un)&262144))&&(jt&=La(Pe,Ke,ct,void 0,!0,Gt))}return jt&&ii(sn),jt}function cf(Pe,Ke){const ct=Mu(J0(Ke)),Gt=[];return Fhe(ct,8576,!1,sn=>{Gt.push(ro(Pe,j8(Ke.mapper,oh(Ke),sn)))}),pi(Gt)}function DW(Pe,Ke,ct,Gt,sn){let jt,un,Zn=!1,fr=Pe.flags;const Br=Ke.flags;if(c===Yd){if(fr&3145728){let lr=vc(Pe,Ke);return lr&&(lr&=vc(Ke,Pe)),lr}if(fr&4194304)return vr(Pe.type,Ke.type,3,!1);if(fr&8388608&&(jt=vr(Pe.objectType,Ke.objectType,3,!1))&&(jt&=vr(Pe.indexType,Ke.indexType,3,!1))||fr&16777216&&Pe.root.isDistributive===Ke.root.isDistributive&&(jt=vr(Pe.checkType,Ke.checkType,3,!1))&&(jt&=vr(Pe.extendsType,Ke.extendsType,3,!1))&&(jt&=vr(gT(Pe),gT(Ke),3,!1))&&(jt&=vr(yT(Pe),yT(Ke),3,!1))||fr&33554432&&(jt=vr(Pe.baseType,Ke.baseType,3,!1))&&(jt&=vr(Pe.constraint,Ke.constraint,3,!1)))return jt;if(fr&134217728&&tf(Pe.texts,Ke.texts)){const lr=Pe.types,Di=Ke.types;jt=-1;for(let mo=0;mo!!(Di.flags&262144));){if(jt=vr(lr,Ke,1,!1))return jt;lr=Ju(lr)}return 0}}else if(Br&4194304){const lr=Ke.type;if(fr&4194304&&(jt=vr(lr,Pe.type,3,!1)))return jt;if(Xa(lr)){if(jt=vr(Pe,CWe(lr),2,ct))return jt}else{const Di=zhe(lr);if(Di){if(vr(Pe,E_(Di,Ke.indexFlags|4),2,ct)===-1)return-1}else if(mp(lr)){const mo=Bv(lr),ns=Cf(lr);let bn;if(mo&&HC(lr)){const Yr=cf(mo,lr);bn=pi([Yr,mo])}else bn=mo||ns;if(vr(Pe,bn,2,ct)===-1)return-1}}}else if(Br&8388608){if(fr&8388608){if((jt=vr(Pe.objectType,Ke.objectType,3,ct))&&(jt&=vr(Pe.indexType,Ke.indexType,3,ct)),jt)return jt;ct&&(un=U)}if(c===Xd||c===up){const lr=Ke.objectType,Di=Ke.indexType,mo=kd(lr)||lr,ns=kd(Di)||Di;if(!CA(mo)&&!NA(ns)){const bn=4|(mo!==lr?2:0),Yr=_T(mo,ns,bn);if(Yr){if(ct&&un&&ii(sn),jt=vr(Pe,Yr,2,ct,void 0,Gt))return jt;ct&&un&&U&&(U=li([un])<=li([U])?un:U)}}}ct&&(un=void 0)}else if(mp(Ke)&&c!==Yd){const lr=!!Ke.declaration.nameType,Di=qg(Ke),mo=eg(Ke);if(!(mo&8)){if(!lr&&Di.flags&8388608&&Di.objectType===Pe&&Di.indexType===oh(Ke))return-1;if(!mp(Pe)){const ns=lr?Bv(Ke):Cf(Ke),bn=E_(Pe,2),Yr=mo&4,Wo=Yr?$z(ns,bn):void 0;if(Yr?!(Wo.flags&131072):vr(ns,bn,3)){const vo=qg(Ke),$a=oh(Ke),hs=FL(vo,-98305);if(!lr&&hs.flags&8388608&&hs.indexType===$a){if(jt=vr(Pe,hs.objectType,2,ct))return jt}else{const Co=lr?Wo||ns:Wo?Pa([Wo,$a]):$a,wc=Qp(Pe,Co);if(jt=vr(wc,vo,3,ct))return jt}}un=U,ii(sn)}}}else if(Br&16777216){if(pR(Ke,et,$t,10))return 3;const lr=Ke;if(!lr.root.inferTypeParameters&&!sut(lr.root)&&!(Pe.flags&16777216&&Pe.root===lr.root)){const Di=!sa(H8(lr.checkType),H8(lr.extendsType)),mo=!Di&&sa(LA(lr.checkType),LA(lr.extendsType));if((jt=Di?-1:vr(Pe,gT(lr),2,!1,void 0,Gt))&&(jt&=mo?-1:vr(Pe,yT(lr),2,!1,void 0,Gt),jt))return jt}}else if(Br&134217728){if(fr&134217728){if(c===up)return wpt(Pe,Ke)?0:-1;ro(Pe,Ec)}if(n$(Pe,Ke))return-1}else if(Ke.flags&268435456&&!(Pe.flags&268435456)&&t$(Pe,Ke))return-1;if(fr&8650752){if(!(fr&8388608&&Br&8388608)){const lr=EA(Pe)||Nt;if(jt=vr(lr,Ke,1,!1,void 0,Gt))return jt;if(jt=vr($p(lr,Pe),Ke,1,ct&&lr!==Nt&&!(Br&fr&262144),void 0,Gt))return jt;if(jhe(Pe)){const Di=EA(Pe.indexType);if(Di&&(jt=vr(Qp(Pe.objectType,Di),Ke,1,ct)))return jt}}}else if(fr&4194304){const lr=y_e(Pe.type,Pe.indexFlags)&&Hr(Pe.type)&32;if(jt=vr(Ri,Ke,1,ct&&!lr))return jt;if(lr){const Di=Pe.type,mo=Bv(Di),ns=mo&&HC(Di)?cf(mo,Di):mo||Cf(Di);if(jt=vr(ns,Ke,1,ct))return jt}}else if(fr&134217728&&!(Br&524288)){if(!(Br&134217728)){const lr=kd(Pe);if(lr&&lr!==Pe&&(jt=vr(lr,Ke,1,ct)))return jt}}else if(fr&268435456)if(Br&268435456){if(Pe.symbol!==Ke.symbol)return 0;if(jt=vr(Pe.type,Ke.type,3,ct))return jt}else{const lr=kd(Pe);if(lr&&(jt=vr(lr,Ke,1,ct)))return jt}else if(fr&16777216){if(pR(Pe,Se,Dt,10))return 3;if(Br&16777216){const mo=Pe.root.inferTypeParameters;let ns=Pe.extendsType,bn;if(mo){const Yr=Z8(mo,void 0,0,Hi);$g(Yr.inferences,Ke.extendsType,ns,1536),ns=ro(ns,Yr.mapper),bn=Yr.mapper}if(Yg(ns,Ke.extendsType)&&(vr(Pe.checkType,Ke.checkType,3)||vr(Ke.checkType,Pe.checkType,3))&&((jt=vr(ro(gT(Pe),bn),gT(Ke),3,ct))&&(jt&=vr(yT(Pe),yT(Ke),3,ct)),jt))return jt}const lr=Bhe(Pe);if(lr&&(jt=vr(lr,Ke,1,ct)))return jt;const Di=!(Br&16777216)&&e5(Pe)?W8e(Pe):void 0;if(Di&&(ii(sn),jt=vr(Di,Ke,1,ct)))return jt}else{if(c!==J_&&c!==ul&&hct(Ke)&&Vy(Pe))return-1;if(mp(Ke))return mp(Pe)&&(jt=Ut(Pe,Ke,ct))?jt:0;const lr=!!(fr&402784252);if(c!==Yd)Pe=Mu(Pe),fr=Pe.flags;else if(mp(Pe))return 0;if(Hr(Pe)&4&&Hr(Ke)&4&&Pe.target===Ke.target&&!Xa(Pe)&&!(zY(Pe)||zY(Ke))){if(UY(Pe))return-1;const Di=V_e(Pe.target);if(Di===ie)return 1;const mo=hi(ol(Pe),ol(Ke),Di,Gt);if(mo!==void 0)return mo}else{if(LL(Ke)?xp(Pe,eS):lm(Ke)&&xp(Pe,Di=>Xa(Di)&&!Di.target.readonly))return c!==Yd?vr(K0(Pe,Bt)||He,K0(Ke,Bt)||He,3,ct):0;if(vT(Pe)&&Xa(Ke)&&!vT(Ke)){const Di=S_(Pe);if(Di!==Pe)return vr(Di,Ke,1,ct)}else if((c===J_||c===ul)&&Vy(Ke)&&Hr(Ke)&8192&&!Vy(Pe))return 0}if(fr&2621440&&Br&524288){const Di=ct&&U===sn.errorInfo&&!lr;if(jt=La(Pe,Ke,Di,void 0,!1,Gt),jt&&(jt&=js(Pe,Ke,0,Di,Gt),jt&&(jt&=js(Pe,Ke,1,Di,Gt),jt&&(jt&=we(Pe,Ke,lr,Di,Gt)))),Zn&&jt)U=un||U||sn.errorInfo;else if(jt)return jt}if(fr&2621440&&Br&1048576){const Di=FL(Ke,36175872);if(Di.flags&1048576){const mo=Nn(Pe,Di);if(mo)return mo}}}return 0;function li(lr){return lr?bu(lr,(Di,mo)=>Di+1+li(mo.next),0):0}function hi(lr,Di,mo,ns){if(jt=XL(lr,Di,mo,ct,ns))return jt;if(vt(mo,Yr=>!!(Yr&24))){un=void 0,ii(sn);return}const bn=Di&&Kut(Di,mo);if(Zn=!bn,mo!==ie&&!bn){if(Zn&&!(ct&&vt(mo,Yr=>(Yr&7)===0)))return 0;un=U,ii(sn)}}}function Ut(Pe,Ke,ct){if(c===up||(c===Yd?eg(Pe)===eg(Ke):AL(Pe)<=AL(Ke))){let sn;const jt=Cf(Ke),un=ro(Cf(Pe),AL(Pe)<0?Zs:Ec);if(sn=vr(jt,un,3,ct)){const Zn=Zp([oh(Pe)],[oh(Ke)]);if(ro(Bv(Pe),Zn)===ro(Bv(Ke),Zn))return sn&vr(ro(qg(Pe),Zn),qg(Ke),3,ct)}}return 0}function Nn(Pe,Ke){var ct;const Gt=Ts(Pe),sn=QFe(Gt,Ke);if(!sn)return 0;let jt=1;for(const hi of sn)if(jt*=cft(Ch(hi)),jt>25)return(ct=xr)==null||ct.instant(xr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Pe.id,targetId:Ke.id,numCombinations:jt}),0;const un=new Array(sn.length),Zn=new Set;for(let hi=0;hihi[mo],!1,0,oe||c===up))continue e}Ff(Br,Di,sb),lr=!0}if(!lr)return 0}let li=-1;for(const hi of Br)if(li&=La(Pe,hi,!1,Zn,!1,0),li&&(li&=js(Pe,hi,0,!1,0),li&&(li&=js(Pe,hi,1,!1,0),li&&!(Xa(Pe)&&Xa(hi))&&(li&=we(Pe,hi,!1,!1,0)))),!li)return li;return li}function $n(Pe,Ke){if(!Ke||Pe.length===0)return Pe;let ct;for(let Gt=0;Gt5?fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,sr(Pe),sr(Ke),Yt(jt.slice(0,4),un=>co(un)).join(", "),jt.length-4):fo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,sr(Pe),sr(Ke),Yt(jt,un=>co(un)).join(", ")),sn&&U&&yr++)}function La(Pe,Ke,ct,Gt,sn,jt){if(c===Yd)return Fa(Pe,Ke,Gt);let un=-1;if(Xa(Ke)){if(eS(Pe)){if(!Ke.target.readonly&&(LL(Pe)||Xa(Pe)&&Pe.target.readonly))return 0;const hi=jv(Pe),lr=jv(Ke),Di=Xa(Pe)?Pe.target.combinedFlags&4:4,mo=!!(Ke.target.combinedFlags&12),ns=Xa(Pe)?Pe.target.minLength:0,bn=Ke.target.minLength;if(!Di&&hi=vo?lr-1-Math.min(Oc,$a):Co,vu=Ke.target.elementFlags[Wd];if(vu&8&&!(wc&8))return ct&&fo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Wd),0;if(wc&8&&!(vu&12))return ct&&fo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Co,Wd),0;if(vu&1&&!(wc&1))return ct&&fo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Wd),0;if(hs&&((wc&12||vu&12)&&(hs=!1),hs&&Gt?.has(""+Co)))continue;const Xu=Hy(Yr[Co],!!(wc&vu&2)),Xy=Wo[Wd],lS=wc&8&&vu&4?Zd(Xy):Hy(Xy,!!(vu&2)),BE=vr(Xu,lS,3,ct,void 0,jt);if(!BE)return ct&&(lr>1||hi>1)&&(mo&&Co>=vo&&Oc>=$a&&vo!==hi-$a-1?Ko(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,vo,hi-$a-1,Wd):Ko(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Co,Wd)),0;un&=BE}return un}if(Ke.target.combinedFlags&12)return 0}const Zn=(c===J_||c===ul)&&!qv(Pe)&&!UY(Pe)&&!Xa(Pe),fr=oge(Pe,Ke,Zn,!1);if(fr)return ct&&ed(Pe,Ke)&&gi(Pe,Ke,fr,Zn),0;if(qv(Ke)){for(const hi of $n(Ts(Pe),Gt))if(!xE(Ke,hi.escapedName)&&!(_r(hi).flags&32768))return ct&&fo(f.Property_0_does_not_exist_on_type_1,co(hi),sr(Ke)),0}const Br=Ts(Ke),li=Xa(Pe)&&Xa(Ke);for(const hi of $n(Br,Gt)){const lr=hi.escapedName;if(!(hi.flags&4194304)&&(!li||Dg(lr)||lr==="length")&&(!sn||hi.flags&16777216)){const Di=Ea(Pe,lr);if(Di&&Di!==hi){const mo=Gr(Pe,Ke,Di,hi,Ch,ct,jt,c===up);if(!mo)return 0;un&=mo}}}return un}function Fa(Pe,Ke,ct){if(!(Pe.flags&524288&&Ke.flags&524288))return 0;const Gt=$n(Gv(Pe),ct),sn=$n(Gv(Ke),ct);if(Gt.length!==sn.length)return 0;let jt=-1;for(const un of Gt){const Zn=xE(Ke,un.escapedName);if(!Zn)return 0;const fr=U_e(un,Zn,vr);if(!fr)return 0;jt&=fr}return jt}function js(Pe,Ke,ct,Gt,sn){var jt,un;if(c===Yd)return sS(Pe,Ke,ct);if(Ke===xs||Pe===xs)return-1;const Zn=Pe.symbol&&x_(Pe.symbol.valueDeclaration),fr=Ke.symbol&&x_(Ke.symbol.valueDeclaration),Br=ra(Pe,Zn&&ct===1?0:ct),li=ra(Ke,fr&&ct===1?0:ct);if(ct===1&&Br.length&&li.length){const ns=!!(Br[0].flags&4),bn=!!(li[0].flags&4);if(ns&&!bn)return Gt&&fo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!pn(Br[0],li[0],Gt))return 0}let hi=-1;const lr=ct===1?hp:yu,Di=Hr(Pe),mo=Hr(Ke);if(Di&64&&mo&64&&Pe.symbol===Ke.symbol||Di&4&&mo&4&&Pe.target===Ke.target){C.assertEqual(Br.length,li.length);for(let ns=0;nsuT(vo,void 0,262144,ct);return fo(f.Type_0_is_not_assignable_to_type_1,Wo(bn),Wo(Yr)),fo(f.Types_of_construct_signatures_are_incompatible),hi}}else e:for(const ns of li){const bn=Bi();let Yr=Gt;for(const Wo of Br){const vo=aS(Wo,ns,!0,Yr,sn,lr(Wo,ns));if(vo){hi&=vo,ii(bn);continue e}Yr=!1}return Yr&&fo(f.Type_0_provides_no_match_for_the_signature_1,sr(Pe),uT(ns,void 0,void 0,ct)),0}return hi}function ed(Pe,Ke){const ct=n5(Pe,0),Gt=n5(Pe,1),sn=Gv(Pe);return(ct.length||Gt.length)&&!sn.length?!!(ra(Ke,0).length&&ct.length||ra(Ke,1).length&&Gt.length):!0}function yu(Pe,Ke){return Pe.parameters.length===0&&Ke.parameters.length===0?(ct,Gt)=>Ko(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sr(ct),sr(Gt)):(ct,Gt)=>Ko(f.Call_signature_return_types_0_and_1_are_incompatible,sr(ct),sr(Gt))}function hp(Pe,Ke){return Pe.parameters.length===0&&Ke.parameters.length===0?(ct,Gt)=>Ko(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sr(ct),sr(Gt)):(ct,Gt)=>Ko(f.Construct_signature_return_types_0_and_1_are_incompatible,sr(ct),sr(Gt))}function aS(Pe,Ke,ct,Gt,sn,jt){const un=c===J_?16:c===ul?24:0;return O_e(ct?z8(Pe):Pe,ct?z8(Ke):Ke,un,Gt,fo,jt,Zn,Ec);function Zn(fr,Br,li){return vr(fr,Br,3,li,void 0,sn)}}function sS(Pe,Ke,ct){const Gt=ra(Pe,ct),sn=ra(Ke,ct);if(Gt.length!==sn.length)return 0;let jt=-1;for(let un=0;unfr.keyType===yt);let Zn=-1;for(const fr of jt){const Br=c!==ul&&!ct&&un&&fr.type.flags&1?-1:mp(Pe)&&un?vr(qg(Pe),fr.type,3,Gt):se(Pe,fr,Gt,sn);if(!Br)return 0;Zn&=Br}return Zn}function se(Pe,Ke,ct,Gt){const sn=w8(Pe,Ke.keyType);return sn?dQ(sn,Ke,ct,Gt):!(Gt&1)&&(c!==ul||Hr(Pe)&8192)&&YY(Pe)?hB(Pe,Ke,ct,Gt):(ct&&fo(f.Index_signature_for_type_0_is_missing_in_type_1,sr(Ke.keyType),sr(Pe)),0)}function on(Pe,Ke){const ct=Qd(Pe),Gt=Qd(Ke);if(ct.length!==Gt.length)return 0;for(const sn of Gt){const jt=Jg(Pe,sn.keyType);if(!(jt&&vr(jt.type,sn.type,3)&&jt.isReadonly===sn.isReadonly))return 0}return-1}function pn(Pe,Ke,ct){if(!Pe.declaration||!Ke.declaration)return!0;const Gt=CI(Pe.declaration,6),sn=CI(Ke.declaration,6);return sn===2||sn===4&&Gt!==2||sn!==4&&!Gt?!0:(ct&&fo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,U0(Gt),U0(sn)),!1)}}function z_e(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!qe(n.types,z_e);if(n.flags&465829888){const a=EA(n);if(a&&a!==n)return z_e(a)}return Lh(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function SFe(n,a){return Xa(n)&&Xa(a)?ie:Ts(a).filter(c=>FY(_n(n,c.escapedName),_r(c)))}function FY(n,a){return!!n&&!!a&&oc(n,32768)&&!!$8(a)}function qut(n){return Ts(n).filter(a=>$8(_r(a)))}function EFe(n,a,c=k_e){return Q7e(n,a,c)||hTt(n,a)||_Tt(n,a)||gTt(n,a)||yTt(n,a)}function B_e(n,a,c){const p=n.types,m=p.map(I=>I.flags&402784252?0:-1);for(const[I,w]of a){let U=!1;for(let H=0;H!!c(xe,Q))?U=!0:m[H]=3)}for(let H=0;Hm[w]),0):n;return v.flags&131072?n:v}function G_e(n){if(n.flags&524288){const a=Mh(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Hn(a.properties,c=>!!(c.flags&16777216))}return n.flags&33554432?G_e(n.baseType):n.flags&2097152?Hn(n.types,G_e):!1}function Jut(n,a,c){for(const p of Ts(n))if(S$(a,p.escapedName,c))return!0;return!1}function V_e(n){return n===ts||n===ja||n.objectFlags&8?F:IFe(n.symbol,n.typeParameters)}function AFe(n){return IFe(n,Jr(n).typeParameters)}function IFe(n,a=ie){var c,p;const m=Jr(n);if(!m.variances){(c=xr)==null||c.push(xr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:fd(Ks(n))});const v=$1,I=Av;$1||($1=!0,Av=Og.length),m.variances=ie;const w=[];for(const U of a){const H=j_e(U);let Q=H&16384?H&8192?0:1:H&8192?2:void 0;if(Q===void 0){let xe=!1,Se=!1;const et=Go;Go=$t=>$t?Se=!0:xe=!0;const Tt=y5(n,U,Bs),Dt=y5(n,U,Ae);Q=(sa(Dt,Tt)?1:0)|(sa(Tt,Dt)?2:0),Q===3&&sa(y5(n,U,$),Tt)&&(Q=4),Go=et,(xe||Se)&&(xe&&(Q|=8),Se&&(Q|=16))}w.push(Q)}v||($1=!1,Av=I),m.variances=w,(p=xr)==null||p.pop({variances:w.map(C.formatVariance)})}return m.variances}function y5(n,a,c){const p=PE(a,c),m=Ks(n);if(pr(m))return m;const v=n.flags&524288?KC(n,Gy(Jr(n).typeParameters,p)):Wy(m,Gy(m.typeParameters,p));return _t.add(fd(v)),v}function zY(n){return _t.has(fd(n))}function j_e(n){var a;return bu((a=n.symbol)==null?void 0:a.declarations,(c,p)=>c|Ud(p),0)&28672}function Kut(n,a){for(let c=0;c!!(a.flags&262144)||BY(a))}function $ut(n,a,c,p){const m=[];let v="";const I=U(n,0),w=U(a,0);return`${v}${I},${w}${c}`;function U(H,Q=0){let xe=""+H.target.id;for(const Se of ol(H)){if(Se.flags&262144){if(p||Xut(Se)){let et=m.indexOf(Se);et<0&&(et=m.length,m.push(Se)),xe+="="+et;continue}v="*"}else if(Q<4&&BY(Se)){xe+="<"+U(Se,Q+1)+">";continue}xe+="-"+Se.id}return xe}}function GY(n,a,c,p,m){if(p===Yd&&n.id>a.id){const I=n;n=a,a=I}const v=c?":"+c:"";return BY(n)&&BY(a)?$ut(n,a,v,m):`${n.id},${a.id}${v}`}function v5(n,a){if(Bl(n)&6){for(const c of n.links.containingType.types){const p=Ea(c,n.escapedName),m=p&&v5(p,a);if(m)return m}return}return a(n)}function uR(n){return n.parent&&n.parent.flags&32?Ks(Qc(n)):void 0}function VY(n){const a=uR(n),c=a&&ih(a)[0];return c&&_n(c,n.escapedName)}function Qut(n,a){return v5(n,c=>{const p=uR(c);return p?Ur(p,a):!1})}function Zut(n,a){return!v5(a,c=>qf(c)&4?!Qut(n,uR(c)):!1)}function xFe(n,a,c){return v5(a,p=>qf(p,c)&4?!Ur(n,uR(p)):!1)?void 0:n}function pR(n,a,c,p=3){if(c>=p){if((Hr(n)&96)===96&&(n=RFe(n)),n.flags&2097152)return vt(n.types,w=>pR(w,a,c,p));const m=jY(n);let v=0,I=0;for(let w=0;w=I&&(v++,v>=p))return!0;I=U.id}}}return!1}function RFe(n){let a;for(;(Hr(n)&96)===96&&(a=J0(n))&&(a.symbol||a.flags&2097152&&vt(a.types,c=>!!c.symbol));)n=a;return n}function DFe(n,a){return(Hr(n)&96)===96&&(n=RFe(n)),n.flags&2097152?vt(n.types,c=>DFe(c,a)):jY(n)===a}function jY(n){if(n.flags&524288&&!sge(n)){if(Hr(n)&4&&n.node)return n.node;if(n.symbol&&!(Hr(n)&16&&n.symbol.flags&32))return n.symbol;if(Xa(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 ept(n,a){return U_e(n,a,q8)!==0}function U_e(n,a,c){if(n===a)return-1;const p=qf(n)&6,m=qf(a)&6;if(p!==m)return 0;if(p){if(lN(n)!==lN(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return Fh(n)!==Fh(a)?0:c(_r(n),_r(a))}function tpt(n,a,c){const p=Rp(n),m=Rp(a),v=Wh(n),I=Wh(a),w=ig(n),U=ig(a);return!!(p===m&&v===I&&w===U||c&&v<=I)}function b5(n,a,c,p,m,v){if(n===a)return-1;if(!tpt(n,a,c)||Qe(n.typeParameters)!==Qe(a.typeParameters))return 0;if(a.typeParameters){const U=Zp(n.typeParameters,a.typeParameters);for(let H=0;Ha|(c.flags&1048576?CFe(c.types):c.flags),0)}function ipt(n){if(n.length===1)return n[0];const a=oe?to(n,p=>Ic(p,m=>!(m.flags&98304))):n,c=rpt(a)?pi(a):opt(a);return a===n?c:E5(c,CFe(n)&98304)}function opt(n){const a=bu(n,(c,p)=>PL(c,p)?p:c);return Hn(n,c=>c===a||PL(c,a))?a:bu(n,(c,p)=>LE(c,p)?p:c)}function apt(n){return bu(n,(a,c)=>LE(c,a)?c:a)}function lm(n){return!!(Hr(n)&4)&&(n.target===ts||n.target===ja)}function LL(n){return!!(Hr(n)&4)&&n.target===ja}function eS(n){return lm(n)||Xa(n)}function T5(n){return lm(n)&&!LL(n)||Xa(n)&&!n.target.readonly}function S5(n){return lm(n)?ol(n)[0]:void 0}function Hv(n){return lm(n)||!(n.flags&98304)&&sa(n,qp)}function H_e(n){return T5(n)||!(n.flags&98305)&&sa(n,Td)}function q_e(n){if(!(Hr(n)&4)||!(Hr(n.target)&3))return;if(Hr(n)&33554432)return Hr(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;const a=n.target;if(Hr(a)&1){const m=Wm(a);if(m&&m.expression.kind!==80&&m.expression.kind!==212)return}const c=ih(a);if(c.length!==1||Z_(n.symbol).size)return;let p=Qe(a.typeParameters)?ro(c[0],Zp(a.typeParameters,ol(n).slice(0,a.typeParameters.length))):c[0];return Qe(ol(n))>Qe(a.typeParameters)&&(p=$p(p,Ga(ol(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=p}function NFe(n){return oe?n===En:n===B}function UY(n){const a=S5(n);return!!a&&NFe(a)}function kL(n){let a;return Xa(n)||!!Ea(n,"0")||Hv(n)&&!!(a=_n(n,"length"))&&xp(a,c=>!!(c.flags&256))}function HY(n){return Hv(n)||kL(n)}function spt(n,a){const c=_n(n,""+a);if(c)return c;if(xp(n,Xa))return kFe(n,a,W.noUncheckedIndexedAccess?ge:void 0)}function lpt(n){return!(n.flags&240544)}function Lh(n){return!!(n.flags&109472)}function MFe(n){const a=S_(n);return a.flags&2097152?vt(a.types,Lh):Lh(a)}function cpt(n){return n.flags&2097152&&mn(n.types,Lh)||n}function X8(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Hn(n.types,Lh):Lh(n)}function jy(n){return n.flags&1056?uY(n):n.flags&402653312?yt:n.flags&256?Bt:n.flags&2048?gr:n.flags&512?Vt:n.flags&1048576?dpt(n):n}function dpt(n){const a=`B${fd(n)}`;return Uu(a)??km(a,El(n,jy))}function J_e(n){return n.flags&402653312?yt:n.flags&288?Bt:n.flags&2048?gr:n.flags&512?Vt:n.flags&1048576?El(n,J_e):n}function tS(n){return n.flags&1056&&ME(n)?uY(n):n.flags&128&&ME(n)?yt:n.flags&256&&ME(n)?Bt:n.flags&2048&&ME(n)?gr:n.flags&512&&ME(n)?Vt:n.flags&1048576?El(n,tS):n}function PFe(n){return n.flags&8192?Qt:n.flags&1048576?El(n,PFe):n}function K_e(n,a){return W$(n,a)||(n=PFe(tS(n))),Pu(n)}function upt(n,a,c){if(n&&Lh(n)){const p=a?c?yW(a):a:void 0;n=K_e(n,p)}return n}function X_e(n,a,c,p){if(n&&Lh(n)){const m=a?Kv(c,a,p):void 0;n=K_e(n,m)}return n}function Xa(n){return!!(Hr(n)&4&&n.target.objectFlags&8)}function vT(n){return Xa(n)&&!!(n.target.combinedFlags&8)}function LFe(n){return vT(n)&&n.target.elementFlags.length===1}function qY(n){return wL(n,n.target.fixedLength)}function kFe(n,a,c){return El(n,p=>{const m=p,v=qY(m);return v?c&&a>=f_e(m.target)?pi([v,c]):v:ge})}function ppt(n){const a=qY(n);return a&&Zd(a)}function wL(n,a,c=0,p=!1,m=!1){const v=jv(n)-c;if(a(c&12)===(a.target.elementFlags[p]&12))}function wFe({value:n}){return n.base10Value==="0"}function OFe(n){return Ic(n,a=>kh(a,4194304))}function mpt(n){return El(n,hpt)}function hpt(n){return n.flags&4?RC:n.flags&8?sL:n.flags&64?DC:n===Jn||n===tr||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&wFe(n)?n:yn}function E5(n,a){const c=a&~n.flags&98304;return c===0?n:pi(c===32768?[n,ge]:c===65536?[n,Kt]:[n,ge,Kt])}function bT(n,a=!1){C.assert(oe);const c=a?te:ge;return n===c||n.flags&1048576&&n.types[0]===c?n:pi([n,c])}function _pt(n){return Ru||(Ru=YC("NonNullable",524288,void 0)||ne),Ru!==ne?KC(Ru,[n]):Pa([n,Da])}function Uy(n){return oe?WA(n,2097152):n}function WFe(n){return oe?pi([n,xt]):n}function JY(n){return oe?i$(n,xt):n}function KY(n,a,c){return c?zN(a)?bT(n):WFe(n):n}function Y8(n,a){return EF(a)?Uy(n):iu(a)?JY(n):n}function Hy(n,a){return Ne&&a?i$(n,Ie):n}function $8(n){return n===Ie||!!(n.flags&1048576)&&n.types[0]===Ie}function XY(n){return Ne?i$(n,Ie):cm(n,524288)}function gpt(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function YY(n){const a=Hr(n);return n.flags&2097152?Hn(n.types,YY):!!(n.symbol&&(n.symbol.flags&7040)!==0&&!(n.symbol.flags&32)&&!nQ(n))||!!(a&4194304)||!!(a&1024&&YY(n.source))}function kA(n,a){const c=Ua(n.flags,n.escapedName,Bl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);const p=Jr(n).nameType;return p&&(c.links.nameType=p),c}function ypt(n,a){const c=da();for(const p of Gv(n)){const m=_r(p),v=a(m);c.set(p.escapedName,v===m?p:kA(p,v))}return c}function Q8(n){if(!(qv(n)&&Hr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,p=ypt(n,Q8),m=Sl(c.symbol,p,c.callSignatures,c.constructSignatures,c.indexInfos);return m.flags=c.flags,m.objectFlags|=c.objectFlags&-8193,n.regularType=m,m}function FFe(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function zFe(n){if(!n.siblings){const a=[];for(const c of zFe(n.parent))if(qv(c)){const p=xE(c,n.propertyName);p&&FA(_r(p),m=>{a.push(m)})}n.siblings=a}return n.siblings}function vpt(n){if(!n.resolvedProperties){const a=new Map;for(const c of zFe(n))if(qv(c)&&!(Hr(c)&2097152))for(const p of Ts(c))a.set(p.escapedName,p);n.resolvedProperties=Do(a.values())}return n.resolvedProperties}function bpt(n,a){if(!(n.flags&4))return n;const c=_r(n),p=a&&FFe(a,n.escapedName,void 0),m=Y_e(c,p);return m===c?n:kA(n,m)}function Tpt(n){const a=le.get(n.escapedName);if(a)return a;const c=kA(n,te);return c.flags|=16777216,le.set(n.escapedName,c),c}function Spt(n,a){const c=da();for(const m of Gv(n))c.set(m.escapedName,bpt(m,a));if(a)for(const m of vpt(a))c.has(m.escapedName)||c.set(m.escapedName,Tpt(m));const p=Sl(n.symbol,c,ie,ie,to(Qd(n),m=>Kg(m.keyType,ef(m.type),m.isReadonly,m.declaration,m.components)));return p.objectFlags|=Hr(n)&266240,p}function ef(n){return Y_e(n,void 0)}function Y_e(n,a){if(Hr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=He;else if(qv(n))c=Spt(n,a);else if(n.flags&1048576){const p=a||FFe(void 0,void 0,n.types),m=to(n.types,v=>v.flags&98304?v:Y_e(v,p));c=pi(m,vt(m,Vy)?2:1)}else n.flags&2097152?c=Pa(to(n.types,ef)):eS(n)&&(c=Wy(n.target,to(ol(n),ef)));return c&&a===void 0&&(n.widened=c),c||n}return n}function $Y(n){var a;let c=!1;if(Hr(n)&65536){if(n.flags&1048576)if(vt(n.types,Vy))c=!0;else for(const p of n.types)c||(c=$Y(p));else if(eS(n))for(const p of ol(n))c||(c=$Y(p));else if(qv(n))for(const p of Gv(n)){const m=_r(p);if(Hr(m)&65536&&(c=$Y(m),!c)){const v=(a=p.declarations)==null?void 0:a.find(I=>{var w;return((w=I.symbol.valueDeclaration)==null?void 0:w.parent)===n.symbol.valueDeclaration});v&&(Ze(v,f.Object_literal_s_property_0_implicitly_has_an_1_type,co(p),sr(ef(m))),c=!0)}}}return c}function nS(n,a,c){const p=sr(ef(a));if(Ir(n)&&!MM(zn(n),W))return;let m;switch(n.kind){case 227:case 173:case 172:m=be?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:const v=n;if(Je(v.name)){const I=$E(v.name);if((XI(v.parent)||qm(v.parent)||W_(v.parent))&&v.parent.parameters.includes(v)&&(gt(v,v.name.escapedText,788968,void 0,!0)||I&&WV(I))){const w="arg"+v.parent.parameters.indexOf(v),U=Ws(v.name)+(v.dotDotDotToken?"[]":"");Qm(be,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,w,U);return}}m=n.dotDotDotToken?be?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:be?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(m=f.Binding_element_0_implicitly_has_an_1_type,!be)return;break;case 318:Ze(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return;case 324:be&&wD(n.parent)&&Ze(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,p);return;case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(be&&!n.name){c===3?Ze(n,f.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,p):Ze(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return}m=be?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:be&&Ze(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=be?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Qm(be,n,m,Ws(wo(n)),p)}function Ept(n,a){const c=g$(n);if(!c)return!0;let p=fs(c);const m=pc(n);switch(a){case 1:return m&1?p=Kv(1,p,!!(m&2))??p:m&2&&(p=Jy(p)??p),$0(p);case 3:const v=Kv(0,p,!!(m&2));return!!v&&$0(v);case 2:const I=Kv(2,p,!!(m&2));return!!I&&$0(I)}return!1}function QY(n,a,c){r(()=>{be&&Hr(a)&65536&&(!c||Ls(n)&&Ept(n,c))&&($Y(a)||nS(n,a,c))})}function $_e(n,a,c){const p=Rp(n),m=Rp(a),v=uW(n),I=uW(a),w=I?m-1:m,U=v?w:Math.min(p,w),H=X0(n);if(H){const Q=X0(a);Q&&c(H,Q)}for(let Q=0;Qa.typeParameter),Yt(n.inferences,(a,c)=>()=>(a.isFixed||(xpt(n),ZY(n.inferences),a.isFixed=!0),lge(n,c))))}function Ipt(n){return C_e(Yt(n.inferences,a=>a.typeParameter),Yt(n.inferences,(a,c)=>()=>lge(n,c)))}function ZY(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function ege(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function xpt(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const p=a.kind===175?H6e(a,2):Ku(a,2);p&&$g(n.inferences,c,p)}n.intraExpressionInferenceSites=void 0}}function tge(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function GFe(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 Rpt(n){const a=Un(n.inferences,sN);return a.length?Z_e(Yt(a,GFe),n.signature,n.flags,n.compareTypes):void 0}function nge(n){return n&&n.mapper}function TT(n){const a=Hr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!VFe(n)&&(a&4&&(n.node||vt(ol(n),TT))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!VFe(n)&&vt(n.types,TT));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function VFe(n){if(n.aliasSymbol&&!n.aliasTypeArguments){const a=ll(n.aliasSymbol,266);return!!(a&&Dn(a.parent,c=>c.kind===308?!0:c.kind===268?!1:"quit"))}return!1}function eW(n,a,c=0){return!!(n===a||n.flags&3145728&&vt(n.types,p=>eW(p,a,c))||c<3&&n.flags&16777216&&(eW(gT(n),a,c+1)||eW(yT(n),a,c+1)))}function Dpt(n,a){const c=am(n);return c?!!c.type&&eW(c.type,a):eW(fs(n),a)}function Cpt(n){const a=da();FA(n,p=>{if(!(p.flags&128))return;const m=Pl(p.value),v=Ua(4,m);v.links.type=He,p.symbol&&(v.declarations=p.symbol.declarations,v.valueDeclaration=p.symbol.valueDeclaration),a.set(m,v)});const c=n.flags&4?[Kg(yt,Da,!1)]:ie;return Sl(void 0,a,ie,ie,c)}function jFe(n,a,c){const p=n.id+","+a.id+","+c.id;if(Ld.has(p))return Ld.get(p);const m=Npt(n,a,c);return Ld.set(p,m),m}function rge(n){return!(Hr(n)&262144)||qv(n)&&vt(Ts(n),a=>rge(_r(a)))||Xa(n)&&vt(CE(n),rge)}function Npt(n,a,c){if(!(Jg(n,yt)||Ts(n).length!==0&&rge(n)))return;if(lm(n)){const m=e$(ol(n)[0],a,c);return m?Zd(m,LL(n)):void 0}if(Xa(n)){const m=Yt(CE(n),I=>e$(I,a,c));if(!Hn(m,I=>!!I))return;const v=eg(a)&4?to(n.target.elementFlags,I=>I&2?1:I):n.target.elementFlags;return ng(m,v,n.target.readonly,n.target.labeledElementDeclarations)}const p=yc(1040,void 0);return p.source=n,p.mappedType=a,p.constraintType=c,p}function Mpt(n){const a=Jr(n);return a.type||(a.type=e$(n.links.propertyType,n.links.mappedType,n.links.constraintType)||Nt),a.type}function Ppt(n,a,c){const p=Qp(c.type,oh(a)),m=qg(a),v=tge(p);return $g([v],n,m),UFe(v)||Nt}function e$(n,a,c){const p=n.id+","+a.id+","+c.id;if(Sh.has(p))return Sh.get(p)||Nt;x0.push(n),eA.push(a);const m=R0;pR(n,x0,x0.length,2)&&(R0|=1),pR(a,eA,eA.length,2)&&(R0|=2);let v;return R0!==3&&(v=Ppt(n,a,c)),x0.pop(),eA.pop(),R0=m,Sh.set(p,v),v}function*ige(n,a,c,p){const m=Ts(a);for(const v of m)if(!T8e(v)&&(c||!(v.flags&16777216||Bl(v)&48))){const I=Ea(n,v.escapedName);if(!I)yield v;else if(p){const w=_r(v);if(w.flags&109472){const U=_r(I);U.flags&1||Pu(U)===Pu(w)||(yield v)}}}}function oge(n,a,c,p){return KW(ige(n,a,c,p))}function Lpt(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!(a.target.combinedFlags&12)&&(!!(n.target.combinedFlags&12)||a.target.fixedLengthlR(v,m),n)===n&&t$(n,a)}return!1}function JFe(n,a){if(a.flags&2097152)return Hn(a.types,c=>c===fa||JFe(n,c));if(a.flags&4||sa(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&qFe(c,!1)||a.flags&64&&o4(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&t$(n,a)||a.flags&134217728&&n$(n,a))}if(n.flags&134217728){const c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&sa(n.types[0],a)}return!1}function KFe(n,a){return n.flags&128?XFe([n.value],ie,a):n.flags&134217728?tf(n.texts,a.texts)?Yt(n.types,(c,p)=>sa(S_(c),S_(a.types[p]))?c:Wpt(c)):XFe(n.texts,n.types,a):void 0}function n$(n,a){const c=KFe(n,a);return!!c&&Hn(c,(p,m)=>JFe(p,a.types[m]))}function Wpt(n){return n.flags&402653317?n:RA(["",""],[n])}function XFe(n,a,c){const p=n.length-1,m=n[0],v=n[p],I=c.texts,w=I.length-1,U=I[0],H=I[w];if(p===0&&m.length0){let nr=Se,yr=et;for(;yr=Tt(nr).indexOf(Tn,yr),!(yr>=0);){if(nr++,nr===n.length)return;yr=0}Dt(nr,yr),et+=Tn.length}else if(et!jn(vr,ys)):qn,ko?Un(ir,ys=>!jn(ko,ys)):ir]}function nr(qn,ir,Hi){const vr=qn.length!!vn(ko));if(!vr||ir&&vr!==ir)return;ir=vr}return ir}function mi(qn,ir,Hi){let vr=0;if(Hi&1048576){let ko;const ys=qn.flags&1048576?qn.types:[qn],al=new Array(ys.length);let hd=!1;for(const Ya of ir)if(vn(Ya))ko=Ya,vr++;else for(let uc=0;ucal[vc]?void 0:uc);if(Ya.length){Se(pi(Ya),ko);return}}}else for(const ko of ir)vn(ko)?vr++:Se(qn,ko);if(Hi&2097152?vr===1:vr>0)for(const ko of ir)vn(ko)&&et(qn,ko,1)}function io(qn,ir,Hi){if(Hi.flags&1048576||Hi.flags&2097152){let vr=!1;for(const ko of Hi.types)vr=io(qn,ir,ko)||vr;return vr}if(Hi.flags&4194304){const vr=vn(Hi.type);if(vr&&!vr.isFixed&&!HFe(qn)){const ko=jFe(qn,ir,Hi);ko&&et(ko,vr.typeParameter,Hr(qn)&262144?16:8)}return!0}if(Hi.flags&262144){et(E_(qn,qn.pattern?2:0),Hi,32);const vr=EA(Hi);if(vr&&io(qn,ir,vr))return!0;const ko=Yt(Ts(qn),_r),ys=Yt(Qd(qn),al=>al!==no?al.type:yn);return Se(pi(ao(ko,ys)),qg(ir)),!0}return!1}function ii(qn,ir){if(qn.flags&16777216)Se(qn.checkType,ir.checkType),Se(qn.extendsType,ir.extendsType),Se(gT(qn),gT(ir)),Se(yT(qn),yT(ir));else{const Hi=[gT(ir),yT(ir)];Dt(qn,Hi,ir.flags,m?64:0)}}function Bi(qn,ir){const Hi=KFe(qn,ir),vr=ir.types;if(Hi||Hn(ir.texts,ko=>ko.length===0))for(let ko=0;koSs|Pf.flags,0);if(!(vc&4)){const Ss=ys.value;vc&296&&!qFe(Ss,!0)&&(vc&=-297),vc&2112&&!o4(Ss,!0)&&(vc&=-2113);const Pf=bu(uc,(Al,ac)=>ac.flags&vc?Al.flags&4?Al:ac.flags&4?ys:Al.flags&134217728?Al:ac.flags&134217728&&n$(ys,ac)?ys:Al.flags&268435456?Al:ac.flags&268435456&&Ss===VWe(ac.symbol,Ss)?ys:Al.flags&128?Al:ac.flags&128&&ac.value===Ss?ac:Al.flags&8?Al:ac.flags&8?Ph(+Ss):Al.flags&32?Al:ac.flags&32?Ph(+Ss):Al.flags&256?Al:ac.flags&256&&ac.value===+Ss?ac:Al.flags&64?Al:ac.flags&64?Opt(Ss):Al.flags&2048?Al:ac.flags&2048&&zS(ac.value)===Ss?ac:Al.flags&16?Al:ac.flags&16?Ss==="true"?mt:Ss==="false"?tr:Vt:Al.flags&512?Al:ac.flags&512&&ac.intrinsicName===Ss?ac:Al.flags&32768?Al:ac.flags&32768&&ac.intrinsicName===Ss?ac:Al.flags&65536?Al:ac.flags&65536&&ac.intrinsicName===Ss?ac:Al:Al,yn);if(!(Pf.flags&131072)){Se(Pf,al);continue}}}}Se(ys,al)}}function Ko(qn,ir){Se(Cf(qn),Cf(ir)),Se(qg(qn),qg(ir));const Hi=Bv(qn),vr=Bv(ir);Hi&&vr&&Se(Hi,vr)}function ms(qn,ir){var Hi,vr;if(Hr(qn)&4&&Hr(ir)&4&&(qn.target===ir.target||lm(qn)&&lm(ir))){nr(ol(qn),ol(ir),V_e(qn.target));return}if(mp(qn)&&mp(ir)&&Ko(qn,ir),Hr(ir)&32&&!ir.declaration.nameType){const ko=Cf(ir);if(io(qn,ir,ko))return}if(!kpt(qn,ir)){if(eS(qn)){if(Xa(ir)){const ko=jv(qn),ys=jv(ir),al=ol(ir),hd=ir.target.elementFlags;if(Xa(qn)&&fpt(qn,ir)){for(let vc=0;vc0){const ys=ra(ir,Hi),al=ys.length;for(let hd=0;hd1){const a=Un(n,sge);if(a.length){const c=pi(a,2);return ao(Un(n,p=>!sge(p)),[c])}}return n}function Vpt(n){return n.priority&416?Pa(n.contraCandidates):apt(n.contraCandidates)}function jpt(n,a){const c=Gpt(n.candidates),p=Bpt(n.typeParameter)||AA(n.typeParameter),m=!p&&n.topLevel&&(n.isFixed||!Dpt(a,n.typeParameter)),v=p?to(c,Pu):m?to(c,tS):c,I=n.priority&416?pi(v,2):ipt(v);return ef(I)}function lge(n,a){const c=n.inferences[a];if(!c.inferredType){let p,m;if(n.signature){const I=c.candidates?jpt(c,n.signature):void 0,w=c.contraCandidates?Vpt(c):void 0;if(I||w){const U=I&&(!w||!(I.flags&131073)&&vt(c.contraCandidates,H=>sa(I,H))&&Hn(n.inferences,H=>H!==c&&Ju(H.typeParameter)!==c.typeParameter||Hn(H.candidates,Q=>sa(Q,I))));p=U?I:w,m=U?w:I}else if(n.flags&1)p=wt;else{const U=RE(c.typeParameter);U&&(p=ro(U,sFe(_ut(n,a),n.nonFixingMapper)))}}else p=UFe(c);c.inferredType=p||cge(!!(n.flags&2));const v=Ju(c.typeParameter);if(v){const I=ro(v,n.nonFixingMapper);(!p||!n.compareTypes(p,$p(I,p)))&&(c.inferredType=m&&n.compareTypes(m,$p(I,m))?m:I)}dmt()}return c.inferredType}function cge(n){return n?He:Nt}function dge(n){const a=[];for(let c=0;cyd(a)||Im(a)||Fu(a)))}function A5(n,a,c,p){switch(n.kind){case 80:if(!kS(n)){const I=_u(n);return I!==ne?`${p?ls(p):"-1"}|${fd(a)}|${fd(c)}|${Ta(I)}`:void 0}case 110:return`0|${p?ls(p):"-1"}|${fd(a)}|${fd(c)}`;case 236:case 218:return A5(n.expression,a,c,p);case 167:const m=A5(n.left,a,c,p);return m&&`${m}.${n.right.escapedText}`;case 212:case 213:const v=wA(n);if(v!==void 0){const I=A5(n.expression,a,c,p);return I&&`${I}.${v}`}if(zs(n)&&Je(n.argumentExpression)){const I=_u(n.argumentExpression);if(fR(I)||rW(I)&&!nW(I)){const w=A5(n.expression,a,c,p);return w&&`${w}.@${Ta(I)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${ls(n)}#${fd(a)}`}}function Id(n,a){switch(a.kind){case 218:case 236:return Id(n,a.expression);case 227:return od(a)&&Id(n,a.left)||Nr(a)&&a.operatorToken.kind===28&&Id(n,a.right)}switch(n.kind){case 237:return a.kind===237&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return kS(n)?a.kind===110:a.kind===80&&_u(n)===_u(a)||(yi(a)||qa(a))&&Et(_u(n))===Wr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 236:case 218:case 239:return Id(n.expression,a);case 212:case 213:const c=wA(n);if(c!==void 0){const p=Ys(a)?wA(a):void 0;if(p!==void 0)return p===c&&Id(n.expression,a.expression)}if(zs(n)&&zs(a)&&Je(n.argumentExpression)&&Je(a.argumentExpression)){const p=_u(n.argumentExpression);if(p===_u(a.argumentExpression)&&(fR(p)||rW(p)&&!nW(p)))return Id(n.expression,a.expression)}break;case 167:return Ys(a)&&n.right.escapedText===wA(a)&&Id(n.left,a.expression);case 227:return Nr(n)&&n.operatorToken.kind===28&&Id(n.right,a)}return!1}function wA(n){if(qr(n))return n.name.escapedText;if(zs(n))return Upt(n);if(qa(n)){const a=Ov(n);return a?Pl(a):void 0}if(Zi(n))return""+n.parent.parameters.indexOf(n)}function pge(n){return n.flags&8192?n.escapedName:n.flags&384?Pl(""+n.value):void 0}function Upt(n){return ff(n.argumentExpression)?Pl(n.argumentExpression.text):Ns(n.argumentExpression)?Hpt(n.argumentExpression):void 0}function Hpt(n){const a=Ul(n,111551,!0);if(!a||!(fR(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const p=mT(c);if(p){const m=pge(p);if(m!==void 0)return m}if(r1(c)&&Py(c,n)){const m=Tk(c);if(m){const v=Zo(c.parent)?jg(c):Od(m);return v&&pge(v)}if(_y(c))return bI(c.name)}}function $Fe(n,a){for(;Ys(n);)if(n=n.expression,Id(n,a))return!0;return!1}function OA(n,a){for(;iu(n);)if(n=n.expression,Id(n,a))return!0;return!1}function OL(n,a){if(n&&n.flags&1048576){const c=U8e(n,a);if(c&&Bl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!$0(_r(c))),!!c.links.isDiscriminantProperty}return!1}function QFe(n,a){let c;for(const p of n)if(OL(a,p.escapedName)){if(c){c.push(p);continue}c=[p]}return c}function qpt(n,a){const c=new Map;let p=0;for(const m of n)if(m.flags&61603840){const v=_n(m,a);if(v){if(!X8(v))return;let I=!1;FA(v,w=>{const U=fd(Pu(w)),H=c.get(U);H?H!==Nt&&(c.set(U,Nt),I=!0):c.set(U,m)}),I||p++}}return p>=10&&p*2>=n.length?c:void 0}function I5(n){const a=n.types;if(!(a.length<10||Hr(n)&32768||Ao(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=qe(a,m=>m.flags&59506688?qe(Ts(m),v=>Lh(_r(v))?v.escapedName:void 0):void 0),p=c&&qpt(a,c);n.keyPropertyName=p?c:"",n.constituentMap=p}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function x5(n,a){var c;const p=(c=n.constituentMap)==null?void 0:c.get(fd(Pu(a)));return p!==Nt?p:void 0}function ZFe(n,a){const c=I5(n),p=c&&_n(a,c);return p&&x5(n,p)}function Jpt(n,a){const c=I5(n),p=c&&mn(a.properties,v=>v.symbol&&v.kind===304&&v.symbol.escapedName===c&&w5(v.initializer)),m=p&&tB(p.initializer);return m&&x5(n,m)}function e6e(n,a){return Id(n,a)||$Fe(n,a)}function t6e(n,a){if(n.arguments){for(const c of n.arguments)if(e6e(a,c)||OA(c,a))return!0}return!!(n.expression.kind===212&&e6e(a,n.expression.expression))}function fge(n){return n.id<=0&&(n.id=mAe,mAe++),n.id}function Kpt(n,a){if(!(n.flags&1048576))return sa(n,a);for(const c of n.types)if(sa(c,a))return!0;return!1}function Xpt(n,a){if(n===a)return n;if(a.flags&131072)return a;const c=`A${fd(n)},${fd(a)}`;return Uu(c)??km(c,Ypt(n,a))}function Ypt(n,a){const c=Ic(n,m=>Kpt(a,m)),p=a.flags&512&&ME(a)?El(c,dR):c;return sa(a,p)?p:n}function mge(n){if(Hr(n)&256)return!1;const a=Mh(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&LE(n,er))}function ZC(n,a){return hge(n,a)&a}function kh(n,a){return ZC(n,a)!==0}function hge(n,a){n.flags&467927040&&(n=kd(n)||Nt);const c=n.flags;if(c&268435460)return oe?16317953:16776705;if(c&134217856){const p=c&128&&n.value==="";return oe?p?12123649:7929345:p?12582401:16776705}if(c&40)return oe?16317698:16776450;if(c&256){const p=n.value===0;return oe?p?12123394:7929090:p?12582146:16776450}if(c&64)return oe?16317188:16775940;if(c&2048){const p=wFe(n);return oe?p?12122884:7928580:p?12581636:16775940}return c&16?oe?16316168:16774920:c&528?oe?n===tr||n===Jn?12121864:7927560:n===tr||n===Jn?12580616:16774920:c&524288?(a&(oe?83427327:83886079))===0?0:Hr(n)&16&&Vy(n)?oe?83427327:83886079:mge(n)?oe?7880640:16728e3:oe?7888800:16736160:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?oe?7925520:16772880:c&67108864?oe?7888800:16736160:c&131072?0:c&1048576?bu(n.types,(p,m)=>p|hge(m,a),0):c&2097152?$pt(n,a):83886079}function $pt(n,a){const c=oc(n,402784252);let p=0,m=134217727;for(const v of n.types)if(!(c&&v.flags&524288)){const I=hge(v,a);p|=I,m&=I}return p&8256|m&134209471}function cm(n,a){return Ic(n,c=>kh(c,a))}function WA(n,a){const c=_ge(cm(oe&&n.flags&2?Ja:n,a));if(oe)switch(a){case 524288:return n6e(c,65536,131072,33554432,Kt);case 1048576:return n6e(c,131072,65536,16777216,ge);case 2097152:case 4194304:return El(c,p=>kh(p,262144)?_pt(p):p)}return c}function n6e(n,a,c,p,m){const v=ZC(n,50528256);if(!(v&a))return n;const I=pi([Da,m]);return El(n,w=>kh(w,a)?Pa([w,!(v&p)&&kh(w,c)?I:Da]):w)}function _ge(n){return n===Ja?Nt:n}function gge(n,a){return a?pi([Rs(n),Od(a)]):n}function r6e(n,a){var c;const p=Fy(a);if(!Jf(p))return nt;const m=Kf(p);return _n(n,m)||tW((c=aR(n,m))==null?void 0:c.type)||nt}function i6e(n,a){return xp(n,kL)&&spt(n,a)||tW(Jv(65,n,ge,void 0))||nt}function tW(n){return n&&(W.noUncheckedIndexedAccess?pi([n,Ie]):n)}function o6e(n){return Zd(Jv(65,n,ge,void 0)||nt)}function Qpt(n){return n.parent.kind===210&&yge(n.parent)||n.parent.kind===304&&yge(n.parent.parent)?gge(R5(n),n.right):Od(n.right)}function yge(n){return n.parent.kind===227&&n.parent.left===n||n.parent.kind===251&&n.parent.initializer===n}function Zpt(n,a){return i6e(R5(n),n.elements.indexOf(a))}function eft(n){return o6e(R5(n.parent))}function a6e(n){return r6e(R5(n.parent),n.name)}function tft(n){return gge(a6e(n),n.objectAssignmentInitializer)}function R5(n){const{parent:a}=n;switch(a.kind){case 250:return yt;case 251:return lB(a)||nt;case 227:return Qpt(a);case 221:return ge;case 210:return Zpt(a,n);case 231:return eft(a);case 304:return a6e(a);case 305:return tft(a)}return nt}function nft(n){const a=n.parent,c=l6e(a.parent),p=a.kind===207?r6e(c,n.propertyName||n.name):n.dotDotDotToken?o6e(c):i6e(c,a.elements.indexOf(n));return gge(p,n.initializer)}function s6e(n){return Vr(n).resolvedType||Od(n)}function rft(n){return n.initializer?s6e(n.initializer):n.parent.parent.kind===250?yt:n.parent.parent.kind===251&&lB(n.parent.parent)||nt}function l6e(n){return n.kind===261?rft(n):nft(n)}function ift(n){return n.kind===261&&n.initializer&&Fv(n.initializer)||n.kind!==209&&n.parent.kind===227&&Fv(n.parent.right)}function wE(n){switch(n.kind){case 218:return wE(n.expression);case 227:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return wE(n.left);case 28:return wE(n.right)}}return n}function c6e(n){const{parent:a}=n;return a.kind===218||a.kind===227&&a.operatorToken.kind===64&&a.left===n||a.kind===227&&a.operatorToken.kind===28&&a.right===n?c6e(a):n}function oft(n){return n.kind===297?Pu(Od(n.expression)):yn}function r$(n){const a=Vr(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(oft(c))}return a.switchTypes}function d6e(n){if(vt(n.caseBlock.clauses,c=>c.kind===297&&!ds(c.expression)))return;const a=[];for(const c of n.caseBlock.clauses){const p=c.kind===297?c.expression.text:void 0;a.push(p&&!jn(a,p)?p:void 0)}return a}function aft(n,a){return n.flags&1048576?!qe(n.types,c=>!jn(a,c)):jn(a,n)}function WL(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&sft(n,a))}function sft(n,a){if(n.flags&1048576){for(const c of n.types)if(!Xg(a.types,c))return!1;return!0}return n.flags&1056&&uY(n)===a?!0:Xg(a.types,n)}function FA(n,a){return n.flags&1048576?qe(n.types,a):a(n)}function dm(n,a){return n.flags&1048576?vt(n.types,a):a(n)}function xp(n,a){return n.flags&1048576?Hn(n.types,a):a(n)}function lft(n,a){return n.flags&3145728?Hn(n.types,a):a(n)}function Ic(n,a){if(n.flags&1048576){const c=n.types,p=Un(c,a);if(p===c)return n;const m=n.origin;let v;if(m&&m.flags&1048576){const I=m.types,w=Un(I,U=>!!(U.flags&1048576)||a(U));if(I.length-w.length===c.length-p.length){if(w.length===1)return w[0];v=m_e(1048576,w)}}return __e(p,n.objectFlags&16809984,void 0,void 0,v)}return n.flags&131072||a(n)?n:yn}function i$(n,a){return Ic(n,c=>c!==a)}function cft(n){return n.flags&1048576?n.types.length:1}function El(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);const p=n.origin,m=p&&p.flags&1048576?p.types:n.types;let v,I=!1;for(const w of m){const U=w.flags&1048576?El(w,a,c):a(w);I||(I=w!==U),U&&(v?v.push(U):v=[U])}return I?v&&pi(v,c?0:1):n}function u6e(n,a,c,p){return n.flags&1048576&&c?pi(Yt(n.types,a),1,c,p):El(n,a)}function FL(n,a){return Ic(n,c=>(c.flags&a)!==0)}function p6e(n,a){return oc(n,134217804)&&oc(a,402655616)?El(n,c=>c.flags&4?FL(a,402653316):DA(c)&&!oc(a,402653188)?FL(a,128):c.flags&8?FL(a,264):c.flags&64?FL(a,2112):c):n}function eN(n){return n.flags===0}function zA(n){return n.flags===0?n.type:n}function tN(n,a){return a?{flags:0,type:n.flags&131072?wt:n}:n}function dft(n){const a=yc(256);return a.elementType=n,a}function vge(n){return Ft[n.id]||(Ft[n.id]=dft(n))}function f6e(n,a){const c=Q8(jy(tB(a)));return WL(c,n.elementType)?n:vge(pi([n.elementType,c]))}function uft(n){return n.flags&131072?cd:Zd(n.flags&1048576?pi(n.types,2):n)}function pft(n){return n.finalArrayType||(n.finalArrayType=uft(n.elementType))}function D5(n){return Hr(n)&256?pft(n):n}function fft(n){return Hr(n)&256?n.elementType:yn}function mft(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(Hr(c)&256))return!1;a=!0}return a}function m6e(n){const a=c6e(n),c=a.parent,p=qr(c)&&(c.name.escapedText==="length"||c.parent.kind===214&&Je(c.name)&&aV(c.name)),m=c.kind===213&&c.expression===a&&c.parent.kind===227&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!xb(c.parent)&&wd(Od(c.argumentExpression),296);return p||m}function hft(n){return(yi(n)||Mo(n)||Iu(n)||Zi(n))&&!!(Cc(n)||Ir(n)&&tv(n)&&n.initializer&&Pb(n.initializer)&&Wp(n.initializer))}function o$(n,a){if(n=gc(n),n.flags&8752)return _r(n);if(n.flags&7){if(Bl(n)&262144){const p=n.links.syntheticOrigin;if(p&&o$(p))return _r(n)}const c=n.valueDeclaration;if(c){if(hft(c))return _r(n);if(yi(c)&&c.parent.parent.kind===251){const p=c.parent.parent,m=C5(p.expression,void 0);if(m){const v=p.awaitModifier?15:13;return Jv(v,m,ge,void 0)}}a&&pa(a,Ar(c,f._0_needs_an_explicit_type_annotation,co(n)))}}}function C5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=Et(_u(n));return o$(c,a);case 110:return Oft(n);case 108:return u$(n);case 212:{const p=C5(n.expression,a);if(p){const m=n.name;let v;if(Qi(m)){if(!p.symbol)return;v=Ea(p,wk(p.symbol,m.escapedText))}else v=Ea(p,m.escapedText);return v&&o$(v,a)}return}case 218:return C5(n.expression,a)}}function N5(n){const a=Vr(n);let c=a.effectsSignature;if(c===void 0){let p;if(Nr(n)){const I=rN(n.right);p=vye(I)}else n.parent.kind===245?p=C5(n.expression,void 0):n.expression.kind!==108&&(iu(n)?p=I_(Y8(_o(n.expression),n.expression),n.expression):p=rN(n.expression));const m=ra(p&&Mu(p)||Nt,0),v=m.length===1&&!m[0].typeParameters?m[0]:vt(m,h6e)?oN(n):void 0;c=a.effectsSignature=v&&h6e(v)?v:si}return c===si?void 0:c}function h6e(n){return!!(am(n)||n.declaration&&(qC(n.declaration)||Nt).flags&131072)}function _ft(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=us(a.expression);return Ys(c)?us(c.expression):void 0}function gft(n){const a=Dn(n,cG),c=zn(n),p=qh(c,a.statements.pos);rs.add(zc(c,p.start,p.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function M5(n){const a=a$(n,!1);return _i=n,Ro=a,a}function P5(n){const a=us(n,!0);return a.kind===97||a.kind===227&&(a.operatorToken.kind===56&&(P5(a.left)||P5(a.right))||a.operatorToken.kind===57&&P5(a.left)&&P5(a.right))}function a$(n,a){for(;;){if(n===_i)return Ro;const c=n.flags;if(c&4096){if(!a){const p=fge(n),m=Wx[p];return m!==void 0?m:Wx[p]=a$(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const p=N5(n.node);if(p){const m=am(p);if(m&&m.kind===3&&!m.type){const v=n.node.arguments[m.parameterIndex];if(v&&P5(v))return!1}if(fs(p).flags&131072)return!1}n=n.antecedent}else{if(c&4)return vt(n.antecedent,p=>a$(p,!1));if(c&8){const p=n.antecedent;if(p===void 0||p.length===0)return!1;n=p[0]}else if(c&128){const p=n.node;if(p.clauseStart===p.clauseEnd&&s3e(p.switchStatement))return!1;n=n.antecedent}else if(c&1024){_i=void 0;const p=n.node.target,m=p.antecedent;p.antecedent=n.node.antecedents;const v=a$(n.antecedent,!1);return p.antecedent=m,v}else return!(c&1)}}}function s$(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const p=fge(n),m=fE[p];return m!==void 0?m:fE[p]=s$(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return Hn(n.antecedent,p=>s$(p,!1));if(c&8)n=n.antecedent[0];else if(c&1024){const p=n.node.target,m=p.antecedent;p.antecedent=n.node.antecedents;const v=s$(n.antecedent,!1);return p.antecedent=m,v}else return!!(c&1)}}}function bge(n){switch(n.kind){case 110:return!0;case 80:if(!kS(n)){const c=_u(n);return fR(c)||rW(c)&&!nW(c)||!!c.valueDeclaration&&qs(c.valueDeclaration)}break;case 212:case 213:return bge(n.expression)&&Fh(Vr(n).resolvedSymbol||ne);case 207:case 208:const a=Yh(n.parent);return Zi(a)||tie(a)?!Tge(a):yi(a)&&xW(a)}return!1}function qy(n,a,c=a,p,m=(v=>(v=ni(n,aD))==null?void 0:v.flowNode)()){let v,I=!1,w=0;if(Wi)return nt;if(!m)return a;xo++;const U=cr,H=zA(Se(m));cr=U;const Q=Hr(H)&256&&m6e(n)?cd:D5(H);if(Q===xn||n.parent&&n.parent.kind===236&&!(Q.flags&131072)&&cm(Q,2097152).flags&131072)return a;return Q;function xe(){return I?v:(I=!0,v=A5(n,a,c,p))}function Se(Ut){var Nn;if(w===2e3)return(Nn=xr)==null||Nn.instant(xr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Ut.id}),Wi=!0,gft(n),nt;w++;let $n;for(;;){const hr=Ut.flags;if(hr&4096){for(let gi=U;gi=0&&$n.parameterIndex!(gi.flags&163840)):Nn.kind===222&&OA(Nn.expression,n)&&(hr=ys(hr,Ut.node,gi=>!(gi.flags&131072||gi.flags&128&&gi.value==="undefined"))));const Gr=io(Nn,hr);Gr&&(hr=Ko(hr,Gr,Ut.node))}return tN(hr,eN($n))}function Sn(Ut){const Nn=[];let $n=!1,hr=!1,Gr;for(const gi of Ut.antecedent){if(!Gr&&gi.flags&128&&gi.node.clauseStart===gi.node.clauseEnd){Gr=gi;continue}const La=Se(gi),Fa=zA(La);if(Fa===a&&a===c)return Fa;Ff(Nn,Fa),WL(Fa,c)||($n=!0),eN(La)&&(hr=!0)}if(Gr){const gi=Se(Gr),La=zA(gi);if(!(La.flags&131072)&&!jn(Nn,La)&&!s3e(Gr.node.switchStatement)){if(La===a&&a===c)return La;Nn.push(La),WL(La,c)||($n=!0),eN(gi)&&(hr=!0)}}return tN(Sr(Nn,$n?2:1),hr)}function vn(Ut){const Nn=fge(Ut),$n=CC[Nn]||(CC[Nn]=new Map),hr=xe();if(!hr)return a;const Gr=$n.get(hr);if(Gr)return Gr;for(let ed=Lr;ed{const ed=ei(js,hr)||Nt;return!(ed.flags&131072)&&!(Fa.flags&131072)&&h5(Fa,ed)})}function Bi(Ut,Nn,$n,hr,Gr){if(($n===37||$n===38)&&Ut.flags&1048576){const gi=I5(Ut);if(gi&&gi===wA(Nn)){const La=x5(Ut,Od(hr));if(La)return $n===(Gr?37:38)?La:Lh(_n(La,gi)||Nt)?i$(Ut,La):Ut}}return ii(Ut,Nn,gi=>Hi(gi,$n,hr,Gr))}function Ko(Ut,Nn,$n){if($n.clauseStart<$n.clauseEnd&&Ut.flags&1048576&&I5(Ut)===wA(Nn)){const hr=r$($n.switchStatement).slice($n.clauseStart,$n.clauseEnd),Gr=pi(Yt(hr,gi=>x5(Ut,gi)||Nt));if(Gr!==Nt)return Gr}return ii(Ut,Nn,hr=>al(hr,$n))}function ms(Ut,Nn,$n){if(Id(n,Nn))return WA(Ut,$n?4194304:8388608);oe&&$n&&OA(Nn,n)&&(Ut=WA(Ut,2097152));const hr=io(Nn,Ut);return hr?ii(Ut,hr,Gr=>cm(Gr,$n?4194304:8388608)):Ut}function fo(Ut,Nn,$n){const hr=Ea(Ut,Nn);return hr?!!(hr.flags&16777216||Bl(hr)&48)||$n:!!aR(Ut,Nn)||!$n}function pl(Ut,Nn,$n){const hr=Kf(Nn);if(dm(Ut,gi=>fo(gi,hr,!0)))return Ic(Ut,gi=>fo(gi,hr,$n));if($n){const gi=bdt();if(gi)return Pa([Ut,KC(gi,[Nn,Nt])])}return Ut}function Ql(Ut,Nn,$n,hr,Gr){return Gr=Gr!==($n.kind===112)!=(hr!==38&&hr!==36),cf(Ut,Nn,Gr)}function gu(Ut,Nn,$n){switch(Nn.operatorToken.kind){case 64:case 76:case 77:case 78:return ms(cf(Ut,Nn.right,$n),Nn.left,$n);case 35:case 36:case 37:case 38:const hr=Nn.operatorToken.kind,Gr=wE(Nn.left),gi=wE(Nn.right);if(Gr.kind===222&&ds(gi))return vr(Ut,Gr,hr,gi,$n);if(gi.kind===222&&ds(Gr))return vr(Ut,gi,hr,Gr,$n);if(Id(n,Gr))return Hi(Ut,hr,gi,$n);if(Id(n,gi))return Hi(Ut,hr,Gr,$n);oe&&(OA(Gr,n)?Ut=ir(Ut,hr,gi,$n):OA(gi,n)&&(Ut=ir(Ut,hr,Gr,$n)));const La=io(Gr,Ut);if(La)return Bi(Ut,La,hr,gi,$n);const Fa=io(gi,Ut);if(Fa)return Bi(Ut,Fa,hr,Gr,$n);if(Ss(Gr))return Pf(Ut,hr,gi,$n);if(Ss(gi))return Pf(Ut,hr,Gr,$n);if(UN(gi)&&!Ys(Gr))return Ql(Ut,Gr,gi,hr,$n);if(UN(Gr)&&!Ys(gi))return Ql(Ut,gi,Gr,hr,$n);break;case 104:return Al(Ut,Nn,$n);case 103:if(Qi(Nn.left))return qn(Ut,Nn,$n);const js=wE(Nn.right);if($8(Ut)&&Ys(n)&&Id(n.expression,js)){const ed=Od(Nn.left);if(Jf(ed)&&wA(n)===Kf(ed))return cm(Ut,$n?524288:65536)}if(Id(n,js)){const ed=Od(Nn.left);if(Jf(ed))return pl(Ut,ed,$n)}break;case 28:return cf(Ut,Nn.right,$n);case 56:return $n?cf(cf(Ut,Nn.left,!0),Nn.right,!0):pi([cf(Ut,Nn.left,!1),cf(Ut,Nn.right,!1)]);case 57:return $n?pi([cf(Ut,Nn.left,!0),cf(Ut,Nn.right,!0)]):cf(cf(Ut,Nn.left,!1),Nn.right,!1)}return Ut}function qn(Ut,Nn,$n){const hr=wE(Nn.right);if(!Id(n,hr))return Ut;C.assertNode(Nn.left,Qi);const Gr=A$(Nn.left);if(Gr===void 0)return Ut;const gi=Gr.parent,La=Fc(C.checkDefined(Gr.valueDeclaration,"should always have a declaration"))?_r(gi):Ks(gi);return pm(Ut,La,$n,!0)}function ir(Ut,Nn,$n,hr){const Gr=Nn===35||Nn===37,gi=Nn===35||Nn===36?98304:32768,La=Od($n);return Gr!==hr&&xp(La,js=>!!(js.flags&gi))||Gr===hr&&xp(La,js=>!(js.flags&(3|gi)))?WA(Ut,2097152):Ut}function Hi(Ut,Nn,$n,hr){if(Ut.flags&1)return Ut;(Nn===36||Nn===38)&&(hr=!hr);const Gr=Od($n),gi=Nn===35||Nn===36;if(Gr.flags&98304){if(!oe)return Ut;const La=gi?hr?262144:2097152:Gr.flags&65536?hr?131072:1048576:hr?65536:524288;return WA(Ut,La)}if(hr){if(!gi&&(Ut.flags&2||dm(Ut,rg))){if(Gr.flags&469893116||rg(Gr))return Gr;if(Gr.flags&524288)return wn}const La=Ic(Ut,Fa=>h5(Fa,Gr)||gi&&gpt(Fa,Gr));return p6e(La,Gr)}return Lh(Gr)?Ic(Ut,La=>!(MFe(La)&&h5(La,Gr))):Ut}function vr(Ut,Nn,$n,hr,Gr){($n===36||$n===38)&&(Gr=!Gr);const gi=wE(Nn.expression);if(!Id(n,gi)){oe&&OA(gi,n)&&Gr===(hr.text!=="undefined")&&(Ut=WA(Ut,2097152));const La=io(gi,Ut);return La?ii(Ut,La,Fa=>ko(Fa,hr,Gr)):Ut}return ko(Ut,hr,Gr)}function ko(Ut,Nn,$n){return $n?hd(Ut,Nn.text):WA(Ut,Cae.get(Nn.text)||32768)}function ys(Ut,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr},Gr){return $n!==hr&&Hn(r$(Nn).slice($n,hr),Gr)?cm(Ut,2097152):Ut}function al(Ut,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=r$(Nn);if(!Gr.length)return Ut;const gi=Gr.slice($n,hr),La=$n===hr||jn(gi,yn);if(Ut.flags&2&&!La){let yu;for(let hp=0;hph5(Fa,yu)),Fa);if(!La)return js;const ed=Ic(Ut,yu=>!(MFe(yu)&&jn(Gr,yu.flags&32768?ge:Pu(cpt(yu)))));return js.flags&131072?ed:pi([js,ed])}function hd(Ut,Nn){switch(Nn){case"string":return Ya(Ut,yt,1);case"number":return Ya(Ut,Bt,2);case"bigint":return Ya(Ut,gr,4);case"boolean":return Ya(Ut,Vt,8);case"symbol":return Ya(Ut,Qt,16);case"object":return Ut.flags&1?Ut:pi([Ya(Ut,wn,32),Ya(Ut,Kt,131072)]);case"function":return Ut.flags&1?Ut:Ya(Ut,er,64);case"undefined":return Ya(Ut,ge,65536)}return Ya(Ut,wn,128)}function Ya(Ut,Nn,$n){return El(Ut,hr=>A_(hr,Nn,ul)?kh(hr,$n)?hr:yn:LE(Nn,hr)?Nn:kh(hr,$n)?Pa([hr,Nn]):yn)}function uc(Ut,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=d6e(Nn);if(!Gr)return Ut;const gi=ho(Nn.caseBlock.clauses,js=>js.kind===298);if($n===hr||gi>=$n&&giZC(ed,js)===js)}const Fa=Gr.slice($n,hr);return pi(Yt(Fa,js=>js?hd(Ut,js):yn))}function vc(Ut,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=ho(Nn.caseBlock.clauses,Fa=>Fa.kind===298),gi=$n===hr||Gr>=$n&&GrFa.kind===297?cf(Ut,Fa.expression,!0):yn))}function Ss(Ut){return(qr(Ut)&&Kr(Ut.name)==="constructor"||zs(Ut)&&ds(Ut.argumentExpression)&&Ut.argumentExpression.text==="constructor")&&Id(n,Ut.expression)}function Pf(Ut,Nn,$n,hr){if(hr?Nn!==35&&Nn!==37:Nn!==36&&Nn!==38)return Ut;const Gr=Od($n);if(!Xye(Gr)&&!Nh(Gr))return Ut;const gi=Ea(Gr,"prototype");if(!gi)return Ut;const La=_r(gi),Fa=wr(La)?void 0:La;if(!Fa||Fa===qt||Fa===er)return Ut;if(wr(Ut))return Fa;return Ic(Ut,ed=>js(ed,Fa));function js(ed,yu){return ed.flags&524288&&Hr(ed)&1||yu.flags&524288&&Hr(yu)&1?ed.symbol===yu.symbol:LE(ed,yu)}}function Al(Ut,Nn,$n){const hr=wE(Nn.left);if(!Id(n,hr))return $n&&oe&&OA(hr,n)?WA(Ut,2097152):Ut;const Gr=Nn.right,gi=Od(Gr);if(!Z0(gi,qt))return Ut;const La=N5(Nn),Fa=La&&am(La);if(Fa&&Fa.kind===1&&Fa.parameterIndex===0)return pm(Ut,Fa.type,$n,!0);if(!Z0(gi,er))return Ut;const js=El(gi,ac);return wr(Ut)&&(js===qt||js===er)||!$n&&!(js.flags&524288&&!rg(js))?Ut:pm(Ut,js,$n,!0)}function ac(Ut){const Nn=_n(Ut,"prototype");if(Nn&&!wr(Nn))return Nn;const $n=ra(Ut,1);return $n.length?pi(Yt($n,hr=>fs(z8(hr)))):Da}function pm(Ut,Nn,$n,hr){const Gr=Ut.flags&1048576?`N${fd(Ut)},${fd(Nn)},${($n?1:0)|(hr?2:0)}`:void 0;return Uu(Gr)??km(Gr,XL(Ut,Nn,$n,hr))}function XL(Ut,Nn,$n,hr){if(!$n){if(Ut===Nn)return yn;if(hr)return Ic(Ut,js=>!Z0(js,Nn));Ut=Ut.flags&2?Ja:Ut;const Fa=pm(Ut,Nn,!0,!1);return _ge(Ic(Ut,js=>!WL(js,Fa)))}if(Ut.flags&3||Ut===Nn)return Nn;const Gr=hr?Z0:LE,gi=Ut.flags&1048576?I5(Ut):void 0,La=El(Nn,Fa=>{const js=gi&&_n(Fa,gi),ed=js&&x5(Ut,js),yu=El(ed||Ut,hr?hp=>Z0(hp,Fa)?hp:Z0(Fa,hp)?Fa:yn:hp=>PL(hp,Fa)?hp:PL(Fa,hp)?Fa:LE(hp,Fa)?hp:LE(Fa,hp)?Fa:yn);return yu.flags&131072?El(Ut,hp=>oc(hp,465829888)&&Gr(Fa,kd(hp)||Nt)?Pa([hp,Fa]):yn):yu});return La.flags&131072?LE(Nn,Ut)?Nn:sa(Ut,Nn)?Ut:sa(Nn,Ut)?Nn:Pa([Ut,Nn]):La}function RW(Ut,Nn,$n){if(t6e(Nn,n)){const hr=$n||!QE(Nn)?N5(Nn):void 0,Gr=hr&&am(hr);if(Gr&&(Gr.kind===0||Gr.kind===1))return YL(Ut,Gr,Nn,$n)}if($8(Ut)&&Ys(n)&&qr(Nn.expression)){const hr=Nn.expression;if(Id(n.expression,wE(hr.expression))&&Je(hr.name)&&hr.name.escapedText==="hasOwnProperty"&&Nn.arguments.length===1){const Gr=Nn.arguments[0];if(ds(Gr)&&wA(n)===Pl(Gr.text))return cm(Ut,$n?524288:65536)}}return Ut}function YL(Ut,Nn,$n,hr){if(Nn.type&&!(wr(Ut)&&(Nn.type===qt||Nn.type===er))){const Gr=_ft(Nn,$n);if(Gr){if(Id(n,Gr))return pm(Ut,Nn.type,hr,!1);oe&&OA(Gr,n)&&(hr&&!kh(Nn.type,65536)||!hr&&xp(Nn.type,B5))&&(Ut=WA(Ut,2097152));const gi=io(Gr,Ut);if(gi)return ii(Ut,gi,La=>pm(La,Nn.type,hr,!1))}}return Ut}function cf(Ut,Nn,$n){if(EF(Nn)||Nr(Nn.parent)&&(Nn.parent.operatorToken.kind===61||Nn.parent.operatorToken.kind===78)&&Nn.parent.left===Nn)return DW(Ut,Nn,$n);switch(Nn.kind){case 80:if(!Id(n,Nn)&&A<5){const hr=_u(Nn);if(fR(hr)){const Gr=hr.valueDeclaration;if(Gr&&yi(Gr)&&!Gr.type&&Gr.initializer&&bge(n)){A++;const gi=cf(Ut,Gr.initializer,$n);return A--,gi}}}case 110:case 108:case 212:case 213:return ms(Ut,Nn,$n);case 214:return RW(Ut,Nn,$n);case 218:case 236:case 239:return cf(Ut,Nn.expression,$n);case 227:return gu(Ut,Nn,$n);case 225:if(Nn.operator===54)return cf(Ut,Nn.operand,!$n);break}return Ut}function DW(Ut,Nn,$n){if(Id(n,Nn))return WA(Ut,$n?2097152:262144);const hr=io(Nn,Ut);return hr?ii(Ut,hr,Gr=>cm(Gr,$n?2097152:262144)):Ut}}function yft(n,a){if(n=Et(n),(a.kind===80||a.kind===81)&&(vM(a)&&(a=a.parent),k_(a)&&(!xb(a)||PI(a)))){const c=JY(PI(a)&&a.kind===212?E$(a,void 0,!0):Od(a));if(Et(Vr(a).resolvedSymbol)===n)return c}return w_(a)&&Hh(a.parent)&&IE(a.parent)?aY(a.parent.symbol):RV(a)&&PI(a.parent)?zv(n):Ch(n)}function zL(n){return Dn(n.parent,a=>$o(a)&&!zT(a)||a.kind===269||a.kind===308||a.kind===173)}function vft(n){return(n.lastAssignmentPos!==void 0||nW(n)&&n.lastAssignmentPos!==void 0)&&n.lastAssignmentPos<0}function nW(n){return!_6e(n,void 0)}function _6e(n,a){const c=Dn(n.valueDeclaration,l$);if(!c)return!1;const p=Vr(c);return p.flags&131072||(p.flags|=131072,bft(c)||y6e(c)),!n.lastAssignmentPos||a&&Math.abs(n.lastAssignmentPos)a.kind!==233&&g6e(a.name))}function bft(n){return!!Dn(n.parent,a=>l$(a)&&!!(Vr(a).flags&131072))}function l$(n){return Ls(n)||Xi(n)}function y6e(n){switch(n.kind){case 80:const a=Ib(n);if(a!==0){const m=_u(n),v=a===1||m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0;if(rW(m)){if(m.lastAssignmentPos===void 0||Math.abs(m.lastAssignmentPos)!==Number.MAX_VALUE){const I=Dn(n,l$),w=Dn(m.valueDeclaration,l$);m.lastAssignmentPos=I===w?Tft(n,m.valueDeclaration):Number.MAX_VALUE}v&&m.lastAssignmentPos>0&&(m.lastAssignmentPos*=-1)}}return;case 282:const c=n.parent.parent,p=n.propertyName||n.name;if(!n.isTypeOnly&&!c.isTypeOnly&&!c.moduleSpecifier&&p.kind!==11){const m=Ul(p,111551,!0,!0);if(m&&rW(m)){const v=m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0?-1:1;m.lastAssignmentPos=v*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}Ci(n)||Jo(n,y6e)}function Tft(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:c=n.end}n=n.parent}return c}function fR(n){return n.flags&3&&(zge(n)&6)!==0}function rW(n){const a=n.valueDeclaration&&Yh(n.valueDeclaration);return!!a&&(Zi(a)||yi(a)&&(KS(a.parent)||v6e(a)))}function v6e(n){return!!(n.parent.flags&1)&&!(kT(n)&32||n.parent.parent.kind===244&&nv(n.parent.parent.parent))}function Sft(n){const a=Vr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!b_(n,8))return SA(n.symbol),!0;const c=!!kh(GL(n,0),16777216);if(!rt())return SA(n.symbol),!0;a.parameterInitializerContainsUndefined??(a.parameterInitializerContainsUndefined=c)}return a.parameterInitializerContainsUndefined}function Eft(n,a){return oe&&a.kind===170&&a.initializer&&kh(n,16777216)&&!Sft(a)?cm(n,524288):n}function Aft(n,a){const c=a.parent;return c.kind===212||c.kind===167||c.kind===214&&c.expression===a||c.kind===215&&c.expression===a||c.kind===213&&c.expression===a&&!(dm(n,T6e)&&NA(Od(c.argumentExpression)))}function b6e(n){return n.flags&2097152?vt(n.types,b6e):!!(n.flags&465829888&&S_(n).flags&1146880)}function T6e(n){return n.flags&2097152?vt(n.types,T6e):!!(n.flags&465829888&&!oc(S_(n),98304))}function Ift(n,a){const c=(Je(n)||qr(n)||zs(n))&&!((hh(n.parent)||C1(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Ku(n,8):Ku(n,void 0));return c&&!$0(c)}function Sge(n,a,c){return XC(n)&&(n=n.baseType),!(c&&c&2)&&dm(n,b6e)&&(Aft(n,a)||Ift(a,c))?El(n,S_):n}function S6e(n){return!!Dn(n,a=>{const c=a.parent;return c===void 0?"quit":dl(c)?c.expression===a&&Ns(a):lu(c)?c.name===a||c.propertyName===a:!1})}function mR(n,a,c,p){if(We&&!(n.flags&33554432&&!Iu(n)&&!Mo(n)))switch(a){case 1:return c$(n);case 2:return E6e(n,c,p);case 3:return A6e(n);case 4:return Ege(n);case 5:return I6e(n);case 6:return x6e(n);case 7:return R6e(n);case 8:return D6e(n);case 0:{if(Je(n)&&(k_(n)||Jd(n.parent)||Gc(n.parent)&&n.parent.moduleReference===n)&&P6e(n)){if(X2(n.parent)&&(qr(n.parent)?n.parent.expression:n.parent.left)!==n)return;c$(n);return}if(X2(n)){let m=n;for(;X2(m);){if(Kh(m))return;m=m.parent}return E6e(n)}return dl(n)?A6e(n):au(n)||Km(n)?Ege(n):Gc(n)?s1(n)||X$(n)?x6e(n):void 0:lu(n)?R6e(n):((Ls(n)||qm(n))&&I6e(n),!W.emitDecoratorMetadata||!YS(n)||!mf(n)||!n.modifiers||!_k(J,n,n.parent,n.parent.parent)?void 0:D6e(n))}default:C.assertNever(a,`Unhandled reference hint: ${a}`)}}function c$(n){const a=_u(n);a&&a!==ye&&a!==ne&&!kS(n)&&L5(a,n)}function E6e(n,a,c){const p=qr(n)?n.expression:n.left;if(Db(p)||!Je(p))return;const m=_u(p);if(!m||m===ne)return;if(Am(W)||Nb(W)&&S6e(n)){L5(m,n);return}const v=c||Hl(p);if(wr(v)||v===wt){L5(m,n);return}let I=a;if(!I&&!c){const w=qr(n)?n.name:n.right,U=Qi(w)&&G5(w.escapedText,w),H=Ib(n),Q=Mu(H!==0||jge(n)?ef(v):v);I=Qi(w)?U&&I$(Q,U)||void 0:Ea(Q,w.escapedText)}I&&(AW(I)||I.flags&8&&n.parent.kind===307)||L5(m,n)}function A6e(n){if(Je(n.expression)){const a=n.expression,c=Et(Ul(a,-1,!0,!0,n));c&&L5(c,a)}}function Ege(n){if(!T$(n)){const a=rs&&W.jsx===2?f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,c=$m(n),p=au(n)?n.tagName:n,m=W.jsx!==1&&W.jsx!==3;let v;if(Km(n)&&c==="null"||(v=gt(p,c,m?111551:111167,a,!0)),v&&(v.isReferenced=-1,We&&v.flags&2097152&&!Rh(v)&&d$(v)),Km(n)){const I=zn(n),w=$ye(I);if(w){const U=Ou(w).escapedText;gt(p,U,m?111551:111167,a,!0)}}}}function I6e(n){if(G<2&&pc(n)&2){const a=Wp(n);xft(a)}}function x6e(n){di(n,32)&&C6e(n)}function R6e(n){if(!n.parent.parent.moduleSpecifier&&!n.isTypeOnly&&!n.parent.parent.isTypeOnly){const a=n.propertyName||n.name;if(a.kind===11)return;const c=gt(a,a.escapedText,2998271,void 0,!0);if(!(c&&(c===ce||c===Ce||c.declarations&&nv(Pt(c.declarations[0]))))){const p=c&&(c.flags&2097152?pd(c):c);(!p||fp(p)&111551)&&(C6e(n),c$(a))}return}}function D6e(n){if(W.emitDecoratorMetadata){const a=mn(n.modifiers,Bc);if(!a)return;switch(Zc(a,16),n.kind){case 264:const c=Eg(n);if(c)for(const I of c.parameters)nN(V$(I));break;case 178:case 179:const p=n.kind===178?179:178,m=ll(Wr(n),p);nN(IE(n)||m&&IE(m));break;case 175:for(const I of n.parameters)nN(V$(I));nN(Wp(n));break;case 173:nN(Cc(n));break;case 170:nN(V$(n));const v=n.parent;for(const I of v.parameters)nN(V$(I));nN(Wp(v));break}}}function L5(n,a){if(We&&lA(n,111551)&&!DI(a)){const c=pd(n);fp(n,!0)&1160127&&(Am(W)||Nb(W)&&S6e(a)||!AW(Et(c)))&&d$(n)}}function d$(n){C.assert(We);const a=Jr(n);if(!a.referenced){a.referenced=!0;const c=pp(n);if(!c)return C.fail();if(s1(c)&&fp(gc(n))&111551){const p=Ou(c.moduleReference);c$(p)}}}function C6e(n){const a=Wr(n),c=pd(a);c&&(c===ne||fp(a,!0)&111551&&!AW(c))&&d$(a)}function N6e(n,a){if(!n)return;const c=Ou(n),p=(n.kind===80?788968:1920)|2097152,m=gt(c,c.escapedText,p,void 0,!0);if(m&&m.flags&2097152){if(We&&An(m)&&!AW(pd(m))&&!Rh(m))d$(m);else if(a&&Am(W)&&Eu(W)>=5&&!An(m)&&!vt(m.declarations,ev)){const v=Ze(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),I=mn(m.declarations||ie,Nv);I&&pa(v,Ar(I,f._0_was_imported_here,Kr(c)))}}}function xft(n){N6e(n&&hk(n),!1)}function nN(n){const a=Cye(n);a&&ku(a)&&N6e(a,!0)}function Rft(n,a){var c;const p=_r(n),m=n.valueDeclaration;if(m){if(qa(m)&&!m.initializer&&!m.dotDotDotToken&&m.parent.elements.length>=2){const v=m.parent.parent,I=Yh(v);if(I.kind===261&&zE(I)&6||I.kind===170){const w=Vr(v);if(!(w.flags&4194304)){w.flags|=4194304;const U=Ai(v,0),H=U&&El(U,S_);if(w.flags&=-4194305,H&&H.flags&1048576&&!(I.kind===170&&Tge(I))){const Q=m.parent,xe=qy(Q,H,H,void 0,a.flowNode);return xe.flags&131072?yn:pT(m,xe,!0)}}}}if(Zi(m)&&!m.type&&!m.initializer&&!m.dotDotDotToken){const v=m.parent;if(v.parameters.length>=2&&wY(v)){const I=oW(v);if(I&&I.parameters.length===1&&du(I)){const w=IL(ro(_r(I.parameters[0]),(c=OE(v))==null?void 0:c.nonFixingMapper));if(w.flags&1048576&&xp(w,Xa)&&!vt(v.parameters,Tge)){const U=qy(v,w,w,void 0,a.flowNode),H=v.parameters.indexOf(m)-(LS(v)?1:0);return Qp(U,Ph(H))}}}}}return p}function M6e(n,a){if(kS(n))return;if(a===ye){if(qge(n,!0)){Ze(n,f.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let v=pf(n);if(v)for(G<2&&(v.kind===220?Ze(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):di(v,1024)&&Ze(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Vr(v).flags|=512;v&&$s(v);)v=pf(v),v&&(Vr(v).flags|=512);return}const c=Et(a),p=Vye(c,n);Cu(p)&&v_e(n,p)&&p.declarations&&wm(n,p.declarations,n.escapedText);const m=c.valueDeclaration;if(m&&c.flags&32&&ui(m)&&m.name!==n){let v=Su(n,!1,!1);for(;v.kind!==308&&v.parent!==m;)v=Su(v,!1,!1);v.kind!==308&&(Vr(m).flags|=262144,Vr(v).flags|=262144,Vr(n).flags|=536870912)}Pft(n,a)}function Dft(n,a){if(kS(n))return k5(n);const c=_u(n);if(c===ne)return nt;if(M6e(n,c),c===ye)return qge(n)?nt:_r(c);P6e(n)&&mR(n,1);const p=Et(c);let m=p.valueDeclaration;const v=m;if(m&&m.kind===209&&jn(Lm,m.parent)&&Dn(n,vn=>vn===m.parent))return Tr;let I=Rft(p,n);const w=Ib(n);if(w){if(!(p.flags&3)&&!(Ir(n)&&p.flags&512)){const vn=p.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:p.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:p.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:p.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:p.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return Ze(n,vn,co(c)),nt}if(Fh(p))return p.flags&3?Ze(n,f.Cannot_assign_to_0_because_it_is_a_constant,co(c)):Ze(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,co(c)),nt}const U=p.flags&2097152;if(p.flags&3){if(w===1)return QG(n)?jy(I):I}else if(U)m=pp(c);else return I;if(!m)return I;I=Sge(I,n,a);const H=Yh(m).kind===170,Q=zL(m);let xe=zL(n);const Se=xe!==Q,et=n.parent&&n.parent.parent&&Mg(n.parent)&&yge(n.parent.parent),Tt=c.flags&134217728,Dt=I===Rt||I===cd,$t=Dt&&n.parent.kind===236;for(;xe!==Q&&(xe.kind===219||xe.kind===220||ZF(xe))&&(fR(p)&&I!==cd||rW(p)&&_6e(p,n));)xe=zL(xe);const Tn=v&&yi(v)&&!v.initializer&&!v.exclamationToken&&v6e(v)&&!vft(c),nr=H||U||Se&&!Tn||et||Tt||Cft(n,m)||I!==Rt&&I!==cd&&(!oe||(I.flags&16387)!==0||DI(n)||uge(n)||n.parent.kind===282)||n.parent.kind===236||m.kind===261&&m.exclamationToken||m.flags&33554432,yr=$t?ge:nr?H?Eft(I,m):I:Dt?ge:bT(I),Sn=$t?Uy(qy(n,I,yr,xe)):qy(n,I,yr,xe);if(!m6e(n)&&(I===Rt||I===cd)){if(Sn===Rt||Sn===cd)return be&&(Ze(wo(m),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,co(c),sr(Sn)),Ze(n,f.Variable_0_implicitly_has_an_1_type,co(c),sr(Sn))),SW(Sn)}else if(!nr&&!QC(I)&&QC(Sn))return Ze(n,f.Variable_0_is_used_before_being_assigned,co(c)),I;return w?jy(Sn):Sn}function Cft(n,a){if(qa(a)){const c=Dn(n,qa);return c&&Yh(c)===Yh(a)}}function P6e(n){var a;const c=n.parent;if(c){if(qr(c)&&c.expression===n||lu(c)&&c.isTypeOnly)return!1;const p=(a=c.parent)==null?void 0:a.parent;if(p&&hc(p)&&p.isTypeOnly)return!1}return!0}function Nft(n,a){return!!Dn(n,c=>c===a?"quit":$o(c)||c.parent&&Mo(c.parent)&&!Fc(c.parent)&&c.parent.initializer===c)}function Mft(n,a){return Dn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function Age(n){return Dn(n,a=>!a||sV(a)?"quit":vb(a,!1))}function Pft(n,a){if(G>=2||(a.flags&34)===0||!a.valueDeclaration||Xi(a.valueDeclaration)||a.valueDeclaration.parent.kind===300)return;const c=dh(a.valueDeclaration),p=Nft(n,c),m=Age(c);if(m){if(p){let v=!0;if(e0(c)){const I=UT(a.valueDeclaration,262);if(I&&I.parent===c){const w=Mft(n.parent,c);if(w){const U=Vr(w);U.flags|=8192;const H=U.capturedBlockScopeBindings||(U.capturedBlockScopeBindings=[]);Ff(H,a),w===c.initializer&&(v=!1)}}}v&&(Vr(m).flags|=4096)}if(e0(c)){const v=UT(a.valueDeclaration,262);v&&v.parent===c&&kft(n,c)&&(Vr(a.valueDeclaration).flags|=65536)}Vr(a.valueDeclaration).flags|=32768}p&&(Vr(a.valueDeclaration).flags|=16384)}function Lft(n,a){const c=Vr(n);return!!c&&jn(c.capturedBlockScopeBindings,Wr(a))}function kft(n,a){let c=n;for(;c.parent.kind===218;)c=c.parent;let p=!1;if(xb(c))p=!0;else if(c.parent.kind===225||c.parent.kind===226){const m=c.parent;p=m.operator===46||m.operator===47}return p?!!Dn(c,m=>m===a?"quit":m===a.statement):!1}function Ige(n,a){if(Vr(n).flags|=2,a.kind===173||a.kind===177){const c=a.parent;Vr(c).flags|=4}else Vr(a).flags|=4}function L6e(n){return a1(n)?n:$o(n)?void 0:Jo(n,L6e)}function xge(n){const a=Wr(n),c=Ks(a);return Oy(c)===Le}function k6e(n,a,c){const p=a.parent;MS(p)&&!xge(p)&&aD(n)&&n.flowNode&&!s$(n.flowNode,!1)&&Ze(n,c)}function wft(n,a){Mo(a)&&Fc(a)&&J&&a.initializer&&O2(a.initializer,n.pos)&&mf(a.parent)&&Ze(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function k5(n){const a=DI(n);let c=Su(n,!0,!0),p=!1,m=!1;for(c.kind===177&&k6e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===220&&(c=Su(c,!1,!m),p=!0),c.kind===168){c=Su(c,!p,!1),m=!0;continue}break}if(wft(n,c),m)Ze(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 268:Ze(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:Ze(n,f.this_cannot_be_referenced_in_current_location);break}!a&&p&&G<2&&Ige(n,c);const v=Rge(n,!0,c);if(De){const I=_r(Ce);if(v===I&&p)Ze(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!v){const w=Ze(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Xi(c)){const U=Rge(c);U&&U!==I&&pa(w,Ar(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return v||He}function Rge(n,a=!0,c=Su(n,!1,!1)){const p=Ir(n);if($o(c)&&(!Nge(n)||LS(c))){let m=oY(c)||p&&Fft(c);if(!m){const v=Wft(c);if(p&&v){const I=_o(v).symbol;I&&I.members&&I.flags&16&&(m=Ks(I).thisType)}else x_(c)&&(m=Ks(as(c.symbol)).thisType);m||(m=Dge(c))}if(m)return qy(n,m)}if(ui(c.parent)){const m=Wr(c.parent),v=ua(c)?_r(m):Ks(m).thisType;return qy(n,v)}if(Xi(c))if(c.commonJsModuleIndicator){const m=Wr(c);return m&&_r(m)}else{if(c.externalModuleIndicator)return ge;if(a)return _r(Ce)}}function Oft(n){const a=Su(n,!1,!1);if($o(a)){const c=Nf(a);if(c.thisParameter)return o$(c.thisParameter)}if(ui(a.parent)){const c=Wr(a.parent);return ua(a)?_r(c):Ks(c).thisType}}function Wft(n){if(n.kind===219&&Nr(n.parent)&&lc(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===175&&n.parent.kind===211&&Nr(n.parent.parent)&&lc(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===219&&n.parent.kind===304&&n.parent.parent.kind===211&&Nr(n.parent.parent.parent)&&lc(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===219&&Pc(n.parent)&&Je(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&za(n.parent.parent)&&ea(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&lc(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Ll(n)&&Je(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&za(n.parent)&&ea(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&lc(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function Fft(n){const a=vF(n);if(a&&a.typeExpression)return Ji(a.typeExpression);const c=RL(n);if(c)return X0(c)}function zft(n,a){return!!Dn(n,c=>Ls(c)?"quit":c.kind===170&&c.parent===a)}function u$(n){const a=n.parent.kind===214&&n.parent.expression===n,c=fk(n,!0);let p=c,m=!1,v=!1;if(!a){for(;p&&p.kind===220;)di(p,1024)&&(v=!0),p=fk(p,!0),m=G<2;p&&di(p,1024)&&(v=!0)}let I=0;if(!p||!Q(p)){const xe=Dn(n,Se=>Se===p?"quit":Se.kind===168);return xe&&xe.kind===168?Ze(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?Ze(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!p||!p.parent||!(ui(p.parent)||p.parent.kind===211)?Ze(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Ze(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),nt}if(!a&&c.kind===177&&k6e(n,p,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),ua(p)||a?(I=32,!a&&G>=2&&G<=8&&(Mo(p)||nc(p))&&lne(n.parent,xe=>{(!Xi(xe)||wp(xe))&&(Vr(xe).flags|=2097152)})):I=16,Vr(n).flags|=I,p.kind===175&&v&&(gp(n.parent)&&xb(n.parent)?Vr(p).flags|=256:Vr(p).flags|=128),m&&Ige(n.parent,p),p.parent.kind===211)return G<2?(Ze(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),nt):He;const w=p.parent;if(!MS(w))return Ze(n,f.super_can_only_be_referenced_in_a_derived_class),nt;if(xge(w))return a?nt:Le;const U=Ks(Wr(w)),H=U&&ih(U)[0];if(!H)return nt;if(p.kind===177&&zft(n,p))return Ze(n,f.super_cannot_be_referenced_in_constructor_arguments),nt;return I===32?Oy(U):$p(H,U.thisType);function Q(xe){return a?xe.kind===177:ui(xe.parent)||xe.parent.kind===211?ua(xe)?xe.kind===175||xe.kind===174||xe.kind===178||xe.kind===179||xe.kind===173||xe.kind===176:xe.kind===175||xe.kind===174||xe.kind===178||xe.kind===179||xe.kind===173||xe.kind===172||xe.kind===177:!1}}function w6e(n){return(n.kind===175||n.kind===178||n.kind===179)&&n.parent.kind===211?n.parent:n.kind===219&&n.parent.kind===304?n.parent.parent:void 0}function O6e(n){return Hr(n)&4&&n.target===sf?ol(n)[0]:void 0}function Bft(n){return El(n,a=>a.flags&2097152?qe(a.types,O6e):O6e(a))}function W6e(n,a){let c=n,p=a;for(;p;){const m=Bft(p);if(m)return m;if(c.parent.kind!==304)break;c=c.parent.parent,p=iS(c,void 0)}}function Dge(n){if(n.kind===220)return;if(wY(n)){const c=oW(n);if(c){const p=c.thisParameter;if(p)return _r(p)}}const a=Ir(n);if(De||a){const c=w6e(n);if(c){const m=iS(c,void 0),v=W6e(c,m);return v?ro(v,nge(OE(c))):ef(m?Uy(m):Hl(c))}const p=Um(n.parent);if(od(p)){const m=p.left;if(Ys(m)){const{expression:v}=m;if(a&&Je(v)){const I=zn(p);if(I.commonJsModuleIndicator&&_u(v)===I.symbol)return}return ef(Hl(v))}}}}function F6e(n){const a=n.parent;if(!wY(a))return;const c=zT(a);if(c&&c.arguments){const m=C$(c),v=a.parameters.indexOf(n);if(n.dotDotDotToken)return eye(m,v,m.length,He,void 0,0);const I=Vr(c),w=I.resolvedSignature;I.resolvedSignature=ur;const U=v0)return vL(c.name,!0,!1)}}function Uft(n,a){const c=pf(n);if(c){let p=p$(c,a);if(p){const m=pc(c);if(m&1){const v=(m&2)!==0;p.flags&1048576&&(p=Ic(p,w=>!!Kv(1,w,v)));const I=Kv(1,p,(m&2)!==0);if(!I)return;p=I}if(m&2){const v=El(p,Jy);return v&&pi([v,i3e(v)])}return p}}}function Hft(n,a){const c=Ku(n,a);if(c){const p=Jy(c);return p&&pi([p,i3e(p)])}}function qft(n,a){const c=pf(n);if(c){const p=pc(c);let m=p$(c,a);if(m){const v=(p&2)!==0;if(!n.asteriskToken&&m.flags&1048576&&(m=Ic(m,I=>!!Kv(1,I,v))),n.asteriskToken){const I=Bye(m,v),w=I?.yieldType??wt,U=Ku(n,a)??wt,H=I?.nextType??Nt,Q=k$(w,U,H,!1);if(v){const xe=k$(w,U,H,!0);return pi([Q,xe])}return Q}return Kv(0,m,v)}}}function Nge(n){let a=!1;for(;n.parent&&!$o(n.parent);){if(Zi(n.parent)&&(a||n.parent.initializer===n))return!0;qa(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function z6e(n,a){const c=!!(pc(a)&2),p=p$(a,void 0);if(p)return Kv(n,p,c)||void 0}function p$(n,a){const c=qC(n);if(c)return c;const p=g$(n);if(p&&!hY(p)){const v=fs(p),I=pc(n);return I&1?Ic(v,w=>!!(w.flags&58998787)||Aye(w,I,void 0)):I&2?Ic(v,w=>!!(w.flags&58998787)||!!UL(w)):v}const m=zT(n);if(m)return Ku(m,a)}function B6e(n,a){const p=C$(n).indexOf(a);return p===-1?void 0:Mge(n,p)}function Mge(n,a){if(tp(n))return a===0?yt:a===1?_We(!1):He;const c=Vr(n).resolvedSignature===Dr?Dr:oN(n);if(au(n)&&a===0)return _$(c,n);const p=c.parameters.length-1;return du(c)&&a>=p?Qp(_r(c.parameters[p]),Ph(a-p),256):Oh(c,a)}function Jft(n){const a=mye(n);return a?IA(a):void 0}function Kft(n,a){if(n.parent.kind===216)return B6e(n.parent,a)}function Xft(n,a){const c=n.parent,{left:p,operatorToken:m,right:v}=c;switch(m.kind){case 64:case 77:case 76:case 78:return n===v?$ft(c):void 0;case 57:case 61:const I=Ku(c,a);return n===v&&(I&&I.pattern||!I&&!Nne(c))?Od(p):I;case 56:case 28:return n===v?Ku(c,a):void 0;default:return}}function Yft(n){if(ch(n)&&n.symbol)return n.symbol;if(Je(n))return _u(n);if(qr(n)){const c=Od(n.expression);return Qi(n.name)?a(c,n.name):Ea(c,n.name.escapedText)}if(zs(n)){const c=Hl(n.argumentExpression);if(!Jf(c))return;const p=Od(n.expression);return Ea(p,Kf(c))}return;function a(c,p){const m=G5(p.escapedText,p);return m&&I$(c,m)}}function $ft(n){var a,c;const p=lc(n);switch(p){case 0:case 4:const m=Yft(n.left),v=m&&m.valueDeclaration;if(v&&(Mo(v)||Iu(v))){const U=Cc(v);return U&&ro(Ji(U),Jr(m).mapper)||(Mo(v)?v.initializer&&Od(n.left):void 0)}return p===0?Od(n.left):G6e(n);case 5:if(f$(n,p))return G6e(n);if(!ch(n.left)||!n.left.symbol)return Od(n.left);{const U=n.left.symbol.valueDeclaration;if(!U)return;const H=ma(n.left,Ys),Q=Cc(U);if(Q)return Ji(Q);if(Je(H.expression)){const xe=H.expression,Se=gt(xe,xe.escapedText,111551,void 0,!0);if(Se){const et=Se.valueDeclaration&&Cc(Se.valueDeclaration);if(et){const Tt=ly(H);if(Tt!==void 0)return rS(Ji(et),Tt)}return}}return Ir(U)||U===n.left?void 0:Od(n.left)}case 1:case 6:case 3:case 2:let I;p!==2&&(I=ch(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),I||(I=(c=n.symbol)==null?void 0:c.valueDeclaration);const w=I&&Cc(I);return w?Ji(w):void 0;case 7:case 8:case 9:return C.fail("Does not apply");default:return C.assertNever(p)}}function f$(n,a=lc(n)){if(a===4)return!0;if(!Ir(n)||a!==5||!Je(n.left.expression))return!1;const c=n.left.expression.escapedText,p=gt(n.left,c,111551,void 0,!0,!0);return i6(p?.valueDeclaration)}function G6e(n){if(!n.symbol)return Od(n.left);if(n.symbol.valueDeclaration){const m=Cc(n.symbol.valueDeclaration);if(m){const v=Ji(m);if(v)return v}}const a=ma(n.left,Ys);if(!bm(Su(a.expression,!1,!1)))return;const c=k5(a.expression),p=ly(a);return p!==void 0&&rS(c,p)||void 0}function Qft(n){return!!(Bl(n)&262144&&!n.links.type&&ee(n,0)>=0)}function Pge(n,a){if(n.flags&16777216){const c=n;return!!(Fm(gT(c)).flags&131072)&&By(yT(c))===By(c.checkType)&&sa(a,c.extendsType)}return n.flags&2097152?vt(n.types,c=>Pge(c,a)):!1}function rS(n,a,c){return El(n,p=>{if(p.flags&2097152){let m,v,I=!1;for(const w of p.types){if(!(w.flags&524288))continue;if(mp(w)&&k8(w)!==2){const H=V6e(w,a,c);m=Lge(m,H);continue}const U=j6e(w,a);if(!U){I||(v=Vn(v,w));continue}I=!0,v=void 0,m=Lge(m,U)}if(v)for(const w of v){const U=U6e(w,a,c);m=Lge(m,U)}return m?m.length===1?m[0]:Pa(m):void 0}if(p.flags&524288)return mp(p)&&k8(p)!==2?V6e(p,a,c):j6e(p,a)??U6e(p,a,c)},!0)}function Lge(n,a){return a?Vn(n,a.flags&1?Nt:a):n}function V6e(n,a,c){const p=c||Ip(Vi(a)),m=Cf(n);if(n.nameType&&Pge(n.nameType,p)||Pge(m,p))return;const v=kd(m)||m;if(sa(p,v))return CY(n,p)}function j6e(n,a){const c=Ea(n,a);if(!(!c||Qft(c)))return Hy(_r(c),!!(c.flags&16777216))}function U6e(n,a,c){var p;if(Xa(n)&&Dg(a)&&+a>=0){const m=wL(n,n.target.fixedLength,0,!1,!0);if(m)return m}return(p=qhe(Jhe(n),c||Ip(Vi(a))))==null?void 0:p.type}function H6e(n,a){if(C.assert(bm(n)),!(n.flags&67108864))return kge(n,a)}function kge(n,a){const c=n.parent,p=Pc(n)&&Cge(n,a);if(p)return p;const m=iS(c,a);if(m){if(UC(n)){const v=Wr(n);return rS(m,v.escapedName,Jr(v).nameType)}if(cy(n)){const v=wo(n);if(v&&va(v)){const I=_o(v.expression),w=Jf(I)&&rS(m,Kf(I));if(w)return w}}if(n.name){const v=Fy(n.name);return El(m,I=>{var w;return(w=qhe(Jhe(I),v))==null?void 0:w.type},!0)}}}function Zft(n){let a,c;for(let p=0;p{if(Xa(v)){if((p===void 0||am)?c-a:0,w=I>0&&v.target.combinedFlags&12?B8(v.target,3):0;return I>0&&I<=w?ol(v)[jv(v)-I]:wL(v,p===void 0?v.target.fixedLength:Math.min(v.target.fixedLength,p),c===void 0||m===void 0?w:Math.min(w,c-m),!1,!0)}return(!p||aHv(U)?Qp(U,Ph(I)):U,!0))}function nmt(n,a){const c=n.parent;return MF(c)?Ku(n,a):a_(c)?tmt(c,n,a):void 0}function q6e(n,a){if(s_(n)){const c=iS(n.parent,a);return!c||wr(c)?void 0:rS(c,FM(n.name))}else return Ku(n.parent,a)}function w5(n){switch(n.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return w5(n.expression);case 295:return!n.expression||w5(n.expression)}return!1}function rmt(n,a){const c=`D${ls(n)},${fd(a)}`;return Uu(c)??km(c,Jpt(a,n)??B_e(a,ao(Yt(Un(n.properties,p=>p.symbol?p.kind===304?w5(p.initializer)&&OL(a,p.symbol.escapedName):p.kind===305?OL(a,p.symbol.escapedName):!1:!1),p=>[()=>tB(p.kind===304?p.initializer:p.name),p.symbol.escapedName]),Yt(Un(Ts(a),p=>{var m;return!!(p.flags&16777216)&&!!((m=n?.symbol)!=null&&m.members)&&!n.symbol.members.has(p.escapedName)&&OL(a,p.escapedName)}),p=>[()=>ge,p.escapedName])),sa))}function imt(n,a){const c=`D${ls(n)},${fd(a)}`,p=Uu(c);if(p)return p;const m=F5(BA(n));return km(c,B_e(a,ao(Yt(Un(n.properties,v=>!!v.symbol&&v.kind===292&&OL(a,v.symbol.escapedName)&&(!v.initializer||w5(v.initializer))),v=>[v.initializer?()=>tB(v.initializer):()=>mt,v.symbol.escapedName]),Yt(Un(Ts(a),v=>{var I;if(!(v.flags&16777216)||!((I=n?.symbol)!=null&&I.members))return!1;const w=n.parent.parent;return v.escapedName===m&&a_(w)&&dD(w.children).length?!1:!n.symbol.members.has(v.escapedName)&&OL(a,v.escapedName)}),v=>[()=>ge,v.escapedName])),sa))}function iS(n,a){const c=bm(n)?H6e(n,a):Ku(n,a),p=m$(c,n,a);if(p&&!(a&&a&2&&p.flags&8650752)){const m=El(p,v=>Hr(v)&32?v:Mu(v),!0);return m.flags&1048576&&za(n)?rmt(n,m):m.flags&1048576&&JS(n)?imt(n,m):m}}function m$(n,a,c){if(n&&oc(n,465829888)){const p=OE(a);if(p&&c&1&&vt(p.inferences,egt))return h$(n,p.nonFixingMapper);if(p?.returnMapper){const m=h$(n,p.returnMapper);return m.flags&1048576&&Xg(m.types,Jn)&&Xg(m.types,Mt)?Ic(m,v=>v!==Jn&&v!==Mt):m}}return n}function h$(n,a){return n.flags&465829888?ro(n,a):n.flags&1048576?pi(Yt(n.types,c=>h$(c,a)),0):n.flags&2097152?Pa(Yt(n.types,c=>h$(c,a))):n}function Ku(n,a){var c;if(n.flags&67108864)return;const p=K6e(n,!a);if(p>=0)return dp[p];const{parent:m}=n;switch(m.kind){case 261:case 170:case 173:case 172:case 209:return jft(n,a);case 220:case 254:return Uft(n,a);case 230:return qft(m,a);case 224:return Hft(m,a);case 214:case 215:return B6e(m,n);case 171:return Jft(m);case 217:case 235:return Gm(m.type)?Ku(m,a):Ji(m.type);case 227:return Xft(n,a);case 304:case 305:return kge(m,a);case 306:return Ku(m.parent,a);case 210:{const v=m,I=iS(v,a),w=YR(v.elements,n),U=(c=Vr(v)).spreadIndices??(c.spreadIndices=Zft(v.elements));return wge(I,w,v.elements.length,U.first,U.last)}case 228:return emt(n,a);case 240:return C.assert(m.parent.kind===229),Kft(m.parent,n);case 218:{if(Ir(m)){if(aj(m))return Ji(sj(m));const v=wT(m);if(v&&!Gm(v.typeExpression.type))return Ji(v.typeExpression.type)}return Ku(m,a)}case 236:return Ku(m,a);case 239:return Ji(m.type);case 278:return mT(m);case 295:return nmt(m,a);case 292:case 294:return q6e(m,a);case 287:case 286:return pmt(m,a);case 302:return umt(m)}}function J6e(n){O5(n,Ku(n,void 0),!0)}function O5(n,a,c){gl[Sd]=n,dp[Sd]=a,Pm[Sd]=c,Sd++}function iW(){Sd--,gl[Sd]=void 0,dp[Sd]=void 0,Pm[Sd]=void 0}function K6e(n,a){for(let c=Sd-1;c>=0;c--)if(n===gl[c]&&(a||!Pm[c]))return c;return-1}function omt(n,a){Kp[__]=n,S0[__]=a,__++}function amt(){__--,Kp[__]=void 0,S0[__]=void 0}function OE(n){for(let a=__-1;a>=0;a--)if(NS(n,Kp[a]))return S0[a]}function smt(n){H_[q_]=n,E0[q_]??(E0[q_]=new Map),q_++}function lmt(){q_--,H_[q_]=void 0,E0[q_].clear()}function cmt(n){for(let a=q_-1;a>=0;a--)if(n===H_[a])return a;return-1}function dmt(){for(let n=q_-1;n>=0;n--)E0[n].clear()}function umt(n){return rS(o_e(!1),d4(n))}function pmt(n,a){if(hh(n)&&a!==4){const c=K6e(n.parent,!a);if(c>=0)return dp[c]}return Mge(n,0)}function _$(n,a){return Km(a)||P4e(a)!==0?fmt(n,a):_mt(n,a)}function fmt(n,a){let c=pye(n,Nt);c=X6e(a,BA(a),c);const p=WE(yf.IntrinsicAttributes,a);return pr(p)||(c=$z(p,c)),c}function mmt(n,a){if(n.compositeSignatures){const p=[];for(const m of n.compositeSignatures){const v=fs(m);if(wr(v))return v;const I=_n(v,a);if(!I)return;p.push(I)}return Pa(p)}const c=fs(n);return wr(c)?c:_n(c,a)}function hmt(n){if(Km(n))return V4e(n);if(_R(n.tagName)){const c=o4e(n),p=N$(n,c);return IA(p)}const a=Hl(n.tagName);if(a.flags&128){const c=i4e(a,n);if(!c)return nt;const p=N$(n,c);return IA(p)}return a}function X6e(n,a,c){const p=zmt(a);if(p){const m=hmt(n),v=l4e(p,Ir(n),m,c);if(v)return v}return c}function _mt(n,a){const c=BA(a),p=Gmt(c);let m=p===void 0?pye(n,Nt):p===""?fs(n):mmt(n,p);if(!m)return p&&Qe(a.attributes.properties)&&Ze(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Vi(p)),Nt;if(m=X6e(a,c,m),wr(m))return m;{let v=m;const I=WE(yf.IntrinsicClassAttributes,a);if(!pr(I)){const U=Ma(I.symbol),H=fs(n);let Q;if(U){const xe=Vv([H],U,tg(U),Ir(a));Q=ro(I,Zp(U,xe))}else Q=I;v=$z(Q,v)}const w=WE(yf.IntrinsicAttributes,a);return pr(w)||(v=$z(w,v)),v}}function gmt(n){return Hd(W,"noImplicitAny")?bu(n,(a,c)=>a===c||!a?a:N8e(a.typeParameters,c.typeParameters)?bmt(a,c):void 0):void 0}function ymt(n,a,c){if(!n||!a)return n||a;const p=pi([_r(n),ro(_r(a),c)]);return kA(n,p)}function vmt(n,a,c){const p=Rp(n),m=Rp(a),v=p>=m?n:a,I=v===n?a:n,w=v===n?p:m,U=ig(n)||ig(a),H=U&&!ig(v),Q=new Array(w+(H?1:0));for(let xe=0;xe=Wh(v)&&xe>=Wh(I),Tn=xe>=p?void 0:BL(n,xe),nr=xe>=m?void 0:BL(a,xe),yr=Tn===nr?Tn:Tn?nr?void 0:Tn:nr,Sn=Ua(1|($t&&!Dt?16777216:0),yr||`arg${xe}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Zd(Tt):Tt,Q[xe]=Sn}if(H){const xe=Ua(1,"args",32768);xe.links.type=Zd(Oh(I,w)),I===a&&(xe.links.type=ro(xe.links.type,c)),Q[w]=xe}return Q}function bmt(n,a){const c=n.typeParameters||a.typeParameters;let p;n.typeParameters&&a.typeParameters&&(p=Zp(a.typeParameters,n.typeParameters));let m=(n.flags|a.flags)&166;const v=n.declaration,I=vmt(n,a,p),w=tl(I);w&&Bl(w)&32768&&(m|=1);const U=ymt(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=T_(v,c,U,I,void 0,void 0,H,m);return Q.compositeKind=2097152,Q.compositeSignatures=ao(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),p&&(Q.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?Q0(n.mapper,p):p),Q}function Oge(n,a){const c=ra(n,0),p=Un(c,m=>!Tmt(m,a));return p.length===1?p[0]:gmt(p)}function Tmt(n,a){let c=0;for(;c{const I=o.getTokenEnd();if(p.category===3&&c&&I===c.start&&m===c.length){const w=kI(a.fileName,a.text,I,m,p,v);pa(c,w)}else(!c||I!==c.start)&&(c=zc(a,I,m,p,v),rs.add(c))}),o.setText(a.text,n.pos,n.end-n.pos);try{return o.scan(),C.assert(o.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!c}finally{o.setText(""),o.setOnError(void 0)}}return!1}function Emt(n){const a=Vr(n);return a.flags&1||(a.flags|=1,r(()=>Smt(n))),Yl}function Amt(n,a){GkL(Se)||mp(Se)&&!Se.nameType&&!!U8(Se.target||Se));let xe=!1;for(let Se=0;SeI[et]&8?_T(Se,Bt)||He:Se),2):oe?En:B,U))}function $6e(n){if(!(Hr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=rWe(n),a.objectFlags|=147456),a}function Rmt(n){switch(n.kind){case 168:return Dmt(n);case 80:return Dg(n.escapedText);case 9:case 11:return Dg(n.text);default:return!1}}function Dmt(n){return wd(ah(n),296)}function ah(n){const a=Vr(n.expression);if(!a.resolvedType){if((Fu(n.parent.parent)||ui(n.parent.parent)||yd(n.parent.parent))&&Nr(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==178&&n.parent.kind!==179)return a.resolvedType=nt;if(a.resolvedType=_o(n.expression),Mo(n.parent)&&!Fc(n.parent)&&fc(n.parent.parent)){const c=dh(n.parent.parent),p=Age(c);p&&(Vr(p).flags|=4096,Vr(n).flags|=32768,Vr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!wd(a.resolvedType,402665900)&&!sa(a.resolvedType,Ri))&&Ze(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function Cmt(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return Dg(n.escapedName)||c&&rd(c)&&Rmt(c.name)}function Q6e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return fM(n)||c&&rd(c)&&va(c.name)&&wd(ah(c.name),4096)}function Nmt(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return c&&rd(c)&&va(c.name)}function aW(n,a,c,p){var m;const v=[];let I;for(let U=a;U0&&(I=NE(I,Sn(),n.symbol,Tt,H),v=[],m=da(),$t=!1,Tn=!1,nr=!1);const io=Fm(_o(vn.expression,a&2));if(W5(io)){const ii=I_e(io,H);if(p&&t4e(ii,p,vn),yr=v.length,pr(I))continue;I=NE(I,ii,n.symbol,Tt,H)}else Ze(vn,f.Spread_types_may_only_be_created_from_object_types),I=nt;continue}else C.assert(vn.kind===178||vn.kind===179),yR(vn);mi&&!(mi.flags&8576)?sa(mi,Ri)&&(sa(mi,Bt)?Tn=!0:sa(mi,Qt)?nr=!0:$t=!0,c&&(Dt=!0)):m.set(Sr.escapedName,Sr),v.push(Sr)}if(iW(),pr(I))return nt;if(I!==Da)return v.length>0&&(I=NE(I,Sn(),n.symbol,Tt,H),v=[],m=da(),$t=!1,Tn=!1),El(I,vn=>vn===Da?Sn():vn);return Sn();function Sn(){const vn=[],Sr=VL(n);$t&&vn.push(aW(Sr,yr,v,yt)),Tn&&vn.push(aW(Sr,yr,v,Bt)),nr&&vn.push(aW(Sr,yr,v,Qt));const mi=Sl(n.symbol,m,ie,ie,vn);return mi.objectFlags|=Tt|128|131072,et&&(mi.objectFlags|=4096),Dt&&(mi.objectFlags|=512),c&&(mi.pattern=n),mi}}function W5(n){const a=OFe(El(n,S_));return!!(a.flags&126615553||a.flags&3145728&&Hn(a.types,W5))}function Pmt(n){Fge(n)}function Lmt(n,a){return yR(n),z5(n)||He}function kmt(n){Fge(n.openingElement),_R(n.closingElement.tagName)?b$(n.closingElement):_o(n.closingElement.tagName),v$(n)}function wmt(n,a){return yR(n),z5(n)||He}function Omt(n){Fge(n.openingFragment);const a=zn(n);J6(W)&&(W.jsxFactory||a.pragmas.has("jsx"))&&!W.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Ze(n,W.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),v$(n);const c=z5(n);return pr(c)?He:c}function Wge(n){return n.includes("-")}function _R(n){return Je(n)&&uD(n.escapedText)||_h(n)}function Z6e(n,a){return n.initializer?jL(n.initializer,a):mt}function e4e(n,a=0){const c=oe?da():void 0;let p=da(),m=ic,v=!1,I,w=!1,U=2048;const H=F5(BA(n)),Q=Km(n);let xe,Se=n;if(!Q){const Dt=n.attributes;xe=Dt.symbol,Se=Dt;const $t=Ku(Dt,0);for(const Tn of Dt.properties){const nr=Tn.symbol;if(s_(Tn)){const yr=Z6e(Tn,a);U|=Hr(yr)&458752;const Sn=Ua(4|nr.flags,nr.escapedName);if(Sn.declarations=nr.declarations,Sn.parent=nr.parent,nr.valueDeclaration&&(Sn.valueDeclaration=nr.valueDeclaration),Sn.links.type=yr,Sn.links.target=nr,p.set(Sn.escapedName,Sn),c?.set(Sn.escapedName,Sn),FM(Tn.name)===H&&(w=!0),$t){const vn=Ea($t,nr.escapedName);vn&&vn.declarations&&Cu(vn)&&Je(Tn.name)&&wm(Tn.name,vn.declarations,Tn.name.escapedText)}if($t&&a&2&&!(a&4)&&Mf(Tn)){const vn=OE(Dt);C.assert(vn);const Sr=Tn.initializer.expression;ege(vn,Sr,yr)}}else{C.assert(Tn.kind===294),p.size>0&&(m=NE(m,Tt(),Dt.symbol,U,!1),p=da());const yr=Fm(_o(Tn.expression,a&2));wr(yr)&&(v=!0),W5(yr)?(m=NE(m,yr,Dt.symbol,U,!1),c&&t4e(yr,c,Tn)):(Ze(Tn.expression,f.Spread_types_may_only_be_created_from_object_types),I=I?Pa([I,yr]):yr)}}v||p.size>0&&(m=NE(m,Tt(),Dt.symbol,U,!1))}const et=n.parent;if((a_(et)&&et.openingElement===n||n0(et)&&et.openingFragment===n)&&dD(et.children).length>0){const Dt=v$(et,a);if(!v&&H&&H!==""){w&&Ze(Se,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Vi(H));const $t=hh(n)?iS(n.attributes,void 0):void 0,Tn=$t&&rS($t,H),nr=Ua(4,H);nr.links.type=Dt.length===1?Dt[0]:Tn&&dm(Tn,kL)?ng(Dt):Zd(pi(Dt)),nr.valueDeclaration=L.createPropertySignature(void 0,Vi(H),void 0,void 0),ps(nr.valueDeclaration,Se),nr.valueDeclaration.symbol=nr;const yr=da();yr.set(H,nr),m=NE(m,Sl(xe,yr,ie,ie,ie),xe,U,!1)}}if(v)return He;if(I&&m!==ic)return Pa([I,m]);return I||(m===ic?Tt():m);function Tt(){return U|=8192,Wmt(U,xe,p)}}function Wmt(n,a,c){const p=Sl(a,c,ie,ie,ie);return p.objectFlags|=n|8192|128|131072,p}function v$(n,a){const c=[];for(const p of n.children)if(p.kind===12)p.containsOnlyTriviaWhiteSpaces||c.push(yt);else{if(p.kind===295&&!p.expression)continue;c.push(jL(p,a))}return c}function t4e(n,a,c){for(const p of Ts(n))if(!(p.flags&16777216)){const m=a.get(p.escapedName);if(m){const v=Ze(m.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Vi(m.escapedName));pa(v,Ar(c,f.This_spread_always_overwrites_this_property))}}}function Fmt(n,a){return e4e(n.parent,a)}function WE(n,a){const c=BA(a),p=c&&Xp(c),m=p&&Ed(p,n,788968);return m?Ks(m):nt}function b$(n){const a=Vr(n);if(!a.resolvedSymbol){const c=WE(yf.IntrinsicElements,n);if(pr(c))return be&&Ze(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Vi(yf.IntrinsicElements)),a.resolvedSymbol=ne;{if(!Je(n.tagName)&&!_h(n.tagName))return C.fail();const p=_h(n.tagName)?GI(n.tagName):n.tagName.escapedText,m=Ea(c,p);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;const v=R7e(c,Ip(Vi(p)));return v?(a.jsxFlags|=2,a.resolvedSymbol=v):ei(c,p)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Ze(n,f.Property_0_does_not_exist_on_type_1,lj(n.tagName),"JSX."+yf.IntrinsicElements),a.resolvedSymbol=ne)}}return a.resolvedSymbol}function T$(n){const a=n&&zn(n),c=a&&Vr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const p=K6(tw(W,a),W);if(!p)return;const v=su(W)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,I=bTt(a,p),w=dA(I||n,p,v,n),U=w&&w!==ne?as(gc(w)):void 0;return c&&(c.jsxImplicitImportContainer=U||!1),U}function BA(n){const a=n&&Vr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let p=T$(n);if(!p||p===ne){const m=$m(n);p=gt(n,m,1920,void 0,!1)}if(p){const m=gc(Ed(Xp(gc(p)),yf.JSX,1920));if(m&&m!==ne)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}const c=gc(YC(yf.JSX,1920,void 0));if(c!==ne)return c}function n4e(n,a){const c=a&&Ed(a.exports,n,788968),p=c&&Ks(c),m=p&&Ts(p);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&c.declarations&&Ze(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Vi(n))}}function zmt(n){return n&&Ed(n.exports,yf.LibraryManagedAttributes,788968)}function Bmt(n){return n&&Ed(n.exports,yf.ElementType,788968)}function Gmt(n){return n4e(yf.ElementAttributesPropertyNameContainer,n)}function F5(n){return W.jsx===4||W.jsx===5?"children":n4e(yf.ElementChildrenAttributeNameContainer,n)}function r4e(n,a){if(n.flags&4)return[ur];if(n.flags&128){const m=i4e(n,a);return m?[N$(a,m)]:(Ze(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+yf.IntrinsicElements),ie)}const c=Mu(n);let p=ra(c,1);return p.length===0&&(p=ra(c,0)),p.length===0&&c.flags&1048576&&(p=Ohe(Yt(c.types,m=>r4e(m,a)))),p}function i4e(n,a){const c=WE(yf.IntrinsicElements,a);if(!pr(c)){const p=n.value,m=Ea(c,Pl(p));if(m)return _r(m);const v=K0(c,yt);return v||void 0}return He}function Vmt(n,a,c){if(n===1){const m=s4e(c);m&&sm(a,m,Xd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,p)}else if(n===0){const m=a4e(c);m&&sm(a,m,Xd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,p)}else{const m=s4e(c),v=a4e(c);if(!m||!v)return;const I=pi([m,v]);sm(a,I,Xd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,p)}function p(){const m=Rl(c.tagName);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,m)}}function o4e(n){var a;C.assert(_R(n.tagName));const c=Vr(n);if(!c.resolvedJsxElementAttributesType){const p=b$(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=_r(p)||nt;if(c.jsxFlags&2){const m=_h(n.tagName)?GI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=aR(WE(yf.IntrinsicElements,n),m))==null?void 0:a.type)||nt}else return c.resolvedJsxElementAttributesType=nt}return c.resolvedJsxElementAttributesType}function a4e(n){const a=WE(yf.ElementClass,n);if(!pr(a))return a}function z5(n){return WE(yf.Element,n)}function s4e(n){const a=z5(n);if(a)return pi([a,Kt])}function jmt(n){const a=BA(n);if(!a)return;const c=Bmt(a);if(!c)return;const p=l4e(c,Ir(n));if(!(!p||pr(p)))return p}function l4e(n,a,...c){const p=Ks(n);if(n.flags&524288){const m=Jr(n).typeParameters;if(Qe(m)>=c.length){const v=Vv(c,m,c.length,a);return Qe(v)===0?p:KC(n,v)}}if(Qe(p.typeParameters)>=c.length){const m=Vv(c,p.typeParameters,c.length,a);return Wy(p,m)}}function Umt(n){const a=WE(yf.IntrinsicElements,n);return a?Ts(a):ie}function Hmt(n){(W.jsx||0)===0&&Ze(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),z5(n)===void 0&&be&&Ze(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Fge(n){const a=au(n);a&&Hbt(n),Hmt(n),Ege(n);const c=oN(n);if(P$(c,n),a){const p=n,m=jmt(p);if(m!==void 0){const v=p.tagName,I=_R(v)?Ip(lj(v)):_o(v);sm(I,m,Xd,v,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const w=Rl(v);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,w)})}else Vmt(P4e(p),fs(c),p)}}function S$(n,a,c){if(n.flags&524288&&(xE(n,a)||aR(n,a)||P8(a)&&Jg(n,yt)||c&&Wge(a)))return!0;if(n.flags&33554432)return S$(n.baseType,a,c);if(n.flags&3145728&&sW(n)){for(const p of n.types)if(S$(p,a,c))return!0}return!1}function sW(n){return!!(n.flags&524288&&!(Hr(n)&512)||n.flags&67108864||n.flags&33554432&&sW(n.baseType)||n.flags&1048576&&vt(n.types,sW)||n.flags&2097152&&Hn(n.types,sW))}function qmt(n,a){if(Jbt(n),n.expression){const c=_o(n.expression,a);return n.dotDotDotToken&&c!==He&&!lm(c)&&Ze(n,f.JSX_spread_child_must_be_an_array_type),c}else return nt}function zge(n){return n.valueDeclaration?zE(n.valueDeclaration):0}function Bge(n){if(n.flags&8192||Bl(n)&4)return!0;if(Ir(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&Nr(a)&&lc(a)===3}}function Gge(n,a,c,p,m,v=!0){const I=v?n.kind===167?n.right:n.kind===206?n:n.kind===209&&n.propertyName?n.propertyName:n.name:void 0;return c4e(n,a,c,p,m,I)}function c4e(n,a,c,p,m,v){var I;const w=qf(m,c);if(a){if(G<2&&d4e(m))return v&&Ze(v,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(w&64)return v&&Ze(v,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,co(m),sr(uR(m))),!1;if(!(w&256)&&((I=m.declarations)!=null&&I.some(Rte)))return v&&Ze(v,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,co(m)),!1}if(w&64&&d4e(m)&&(mk(n)||Rne(n)||hf(n.parent)&&i6(n.parent.parent))){const H=fy(Qc(m));if(H&&jvt(n))return v&&Ze(v,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,co(m),jf(H.name)),!1}if(!(w&6))return!0;if(w&2){const H=fy(Qc(m));return qye(n,H)?!0:(v&&Ze(v,f.Property_0_is_private_and_only_accessible_within_class_1,co(m),sr(uR(m))),!1)}if(a)return!0;let U=I7e(n,H=>{const Q=Ks(Wr(H));return xFe(Q,m,c)});return!U&&(U=Jmt(n),U=U&&xFe(U,m,c),w&256||!U)?(v&&Ze(v,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,co(m),sr(uR(m)||p)),!1):w&256?!0:(p.flags&262144&&(p=p.isThisType?Ju(p):kd(p)),!p||!Ur(p,U)?(v&&Ze(v,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,co(m),sr(U),sr(p)),!1):!0)}function Jmt(n){const a=Kmt(n);let c=a?.type&&Ji(a.type);if(c)c.flags&262144&&(c=Ju(c));else{const p=Su(n,!1,!1);$o(p)&&(c=Dge(p))}if(c&&Hr(c)&7)return Gn(c)}function Kmt(n){const a=Su(n,!1,!1);return a&&$o(a)?LS(a):void 0}function d4e(n){return!!v5(n,a=>!(a.flags&8192))}function rN(n){return I_(_o(n),n)}function B5(n){return kh(n,50331648)}function Vge(n){return B5(n)?Uy(n):n}function Xmt(n,a){const c=Ns(n)?kp(n):void 0;if(n.kind===106){Ze(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Je(n)&&c==="undefined"){Ze(n,f.The_value_0_cannot_be_used_here,"undefined");return}Ze(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else Ze(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Ymt(n,a){Ze(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function u4e(n,a,c){if(oe&&n.flags&2){if(Ns(a)){const m=kp(a);if(m.length<100)return Ze(a,f._0_is_of_type_unknown,m),nt}return Ze(a,f.Object_is_of_type_unknown),nt}const p=ZC(n,50331648);if(p&50331648){c(a,p);const m=Uy(n);return m.flags&229376?nt:m}return n}function I_(n,a){return u4e(n,a,Xmt)}function p4e(n,a){const c=I_(n,a);if(c.flags&16384){if(Ns(a)){const p=kp(a);if(Je(a)&&p==="undefined")return Ze(a,f.The_value_0_cannot_be_used_here,p),c;if(p.length<100)return Ze(a,f._0_is_possibly_undefined,p),c}Ze(a,f.Object_is_possibly_undefined)}return c}function E$(n,a,c){return n.flags&64?$mt(n,a):Uge(n,n.expression,rN(n.expression),n.name,a,c)}function $mt(n,a){const c=_o(n.expression),p=Y8(c,n.expression);return KY(Uge(n,n.expression,I_(p,n.expression),n.name,a),n,p!==c)}function f4e(n,a){const c=s6(n)&&Db(n.left)?I_(k5(n.left),n.left):rN(n.left);return Uge(n,n.left,c,n.right,a)}function jge(n){for(;n.parent.kind===218;)n=n.parent;return Uh(n.parent)&&n.parent.expression===n}function G5(n,a){for(let c=n6(a);c;c=_d(c)){const{symbol:p}=c,m=wk(p,n),v=p.members&&p.members.get(m)||p.exports&&p.exports.get(m);if(v)return v}}function Qmt(n){if(!_d(n))return Cn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!C4(n.parent)){if(!k_(n))return Cn(n,f.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=Nr(n.parent)&&n.parent.operatorToken.kind===103;if(!A$(n)&&!a)return Cn(n,f.Cannot_find_name_0,Kr(n))}return!1}function Zmt(n){Qmt(n);const a=A$(n);return a&&j5(a,void 0,!1),He}function A$(n){if(!k_(n))return;const a=Vr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=G5(n.escapedText,n)),a.resolvedSymbol}function I$(n,a){return Ea(n,a.escapedName)}function eht(n,a,c){let p;const m=Ts(n);m&&qe(m,I=>{const w=I.valueDeclaration;if(w&&rd(w)&&Qi(w.name)&&w.name.escapedText===a.escapedText)return p=I,!0});const v=Sp(a);if(p){const I=C.checkDefined(p.valueDeclaration),w=C.checkDefined(_d(I));if(c?.valueDeclaration){const U=c.valueDeclaration,H=_d(U);if(C.assert(!!H),Dn(H,Q=>w===Q)){const Q=Ze(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,v,sr(n));return pa(Q,Ar(U,f.The_shadowing_declaration_of_0_is_defined_here,v),Ar(I,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,v)),!0}}return Ze(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,v,Sp(w.name||UU)),!0}return!1}function m4e(n,a){return(Ug(a)||mk(n)&&Q_(a))&&Su(n,!0,!1)===br(a)}function Uge(n,a,c,p,m,v){const I=Vr(a).resolvedSymbol,w=Ib(n),U=Mu(w!==0||jge(n)?ef(c):c),H=wr(U)||U===wt;let Q;if(Qi(p)){(G{switch(c.kind){case 173:case 176:return!0;case 187:case 288:return"quit";case 220:return a?!1:"quit";case 242:return Ls(c.parent)&&c.parent.kind!==220?"quit":!1;default:return!1}})}function nht(n){if(!(n.parent.flags&32))return!1;let a=_r(n.parent);for(;;){if(a=a.symbol&&rht(a),!a)return!1;const c=Ea(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function rht(n){const a=ih(n);if(a.length!==0)return Pa(a)}function _4e(n,a,c){const p=Vr(n),m=p.nonExistentPropCheckCache||(p.nonExistentPropCheckCache=new Set),v=`${fd(a)}|${c}`;if(m.has(v))return;m.add(v);let I,w;if(!Qi(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const H of a.types)if(!Ea(H,n.escapedText)&&!aR(H,n.escapedText)){I=qo(I,f.Property_0_does_not_exist_on_type_1,Ws(n),sr(H));break}}if(g4e(n.escapedText,a)){const H=Ws(n),Q=sr(a);I=qo(I,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,H,Q,Q+"."+H)}else{const H=yW(a);if(H&&Ea(H,n.escapedText))I=qo(I,f.Property_0_does_not_exist_on_type_1,Ws(n),sr(a)),w=Ar(n,f.Did_you_forget_to_use_await);else{const Q=Ws(n),xe=sr(a),Se=aht(Q,a);if(Se!==void 0)I=qo(I,f.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,Q,xe,Se);else{const et=Jge(n,a);if(et!==void 0){const Tt=Fl(et),Dt=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;I=qo(I,Dt,Q,xe,Tt),w=et.valueDeclaration&&Ar(et.valueDeclaration,f._0_is_declared_here,Tt)}else{const Tt=iht(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;I=qo(Hhe(I,a),Tt,Q,xe)}}}}const U=bg(zn(n),n,I);w&&pa(U,w),Wg(!c||I.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,U)}function iht(n){return W.lib&&!W.lib.includes("lib.dom.d.ts")&&lft(n,a=>a.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Vi(a.symbol.escapedName)))&&Vy(n)}function g4e(n,a){const c=a.symbol&&Ea(_r(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&ua(c.valueDeclaration)}function oht(n){const a=Sp(n),p=xG().get(a);return p&&$B(p.keys())}function aht(n,a){const c=Mu(a).symbol;if(!c)return;const p=Fl(c),v=xG().get(p);if(v){for(const[I,w]of v)if(jn(w,n))return I}}function y4e(n,a){return V5(n,Ts(a),106500)}function Jge(n,a){let c=Ts(a);if(typeof n!="string"){const p=n.parent;qr(p)&&(c=Un(c,m=>E4e(p,a,m))),n=Kr(n)}return V5(n,c,111551)}function v4e(n,a){const c=Bo(n)?n:Kr(n),p=Ts(a);return(c==="for"?mn(p,v=>Fl(v)==="htmlFor"):c==="class"?mn(p,v=>Fl(v)==="className"):void 0)??V5(c,p,111551)}function b4e(n,a){const c=Jge(n,a);return c&&Fl(c)}function sht(n,a,c){const p=Ed(n,a,c);if(p)return p;let m;return n===lt?m=Ei(["string","number","boolean","object","bigint","symbol"],I=>n.has(I.charAt(0).toUpperCase()+I.slice(1))?Ua(524288,I):void 0).concat(Do(n.values())):m=Do(n.values()),V5(Vi(a),m,c)}function T4e(n,a,c){return C.assert(a!==void 0,"outername should always be defined"),en(n,a,c,void 0,!1,!1)}function Kge(n,a){return a.exports&&V5(Kr(n),Kx(a),2623475)}function lht(n,a,c){function p(I){const w=xE(n,I);if(w){const U=VA(_r(w));return!!U&&Wh(U)>=1&&sa(c,Oh(U,0))}return!1}const m=xb(a)?"set":"get";if(!p(m))return;let v=Hk(a.expression);return v===void 0?v=m:v+="."+m,v}function cht(n,a){const c=a.types.filter(p=>!!(p.flags&128));return gS(n.value,c,p=>p.value)}function V5(n,a,c){return gS(n,a,p);function p(m){const v=Fl(m);if(!po(v,'"')){if(m.flags&c)return v;if(m.flags&2097152){const I=Ux(m);if(I&&I.flags&c)return v}}}}function j5(n,a,c){const p=n&&n.flags&106500&&n.valueDeclaration;if(!p)return;const m=Fp(p,2),v=n.valueDeclaration&&rd(n.valueDeclaration)&&Qi(n.valueDeclaration.name);if(!(!m&&!v)&&!(a&&W6(a)&&!(n.flags&65536))){if(c){const I=Dn(a,Ls);if(I&&I.symbol===n)return}(Bl(n)&1?Jr(n).target:n).isReferenced=-1}}function S4e(n,a){return n.kind===110||!!a&&Ns(n)&&a===_u(Ou(n))}function dht(n,a){switch(n.kind){case 212:return Xge(n,n.expression.kind===108,a,ef(_o(n.expression)));case 167:return Xge(n,!1,a,ef(_o(n.left)));case 206:return Xge(n,!1,a,Ji(n))}}function E4e(n,a,c){return Yge(n,n.kind===212&&n.expression.kind===108,!1,a,c)}function Xge(n,a,c,p){if(wr(p))return!0;const m=Ea(p,c);return!!m&&Yge(n,a,!1,p,m)}function Yge(n,a,c,p,m){if(wr(p))return!0;if(m.valueDeclaration&&ou(m.valueDeclaration)){const v=_d(m.valueDeclaration);return!iu(n)&&!!Dn(n,I=>I===v)}return c4e(n,a,c,p,m)}function uht(n){const a=n.initializer;if(a.kind===262){const c=a.declarations[0];if(c&&!Zo(c.name))return Wr(c)}else if(a.kind===80)return _u(a)}function pht(n){return Qd(n).length===1&&!!Jg(n,Bt)}function fht(n){const a=us(n);if(a.kind===80){const c=_u(a);if(c.flags&3){let p=n,m=n.parent;for(;m;){if(m.kind===250&&p===m.statement&&uht(m)===c&&pht(Od(m.expression)))return!0;p=m,m=m.parent}}}return!1}function mht(n,a){return n.flags&64?hht(n,a):A4e(n,rN(n.expression),a)}function hht(n,a){const c=_o(n.expression),p=Y8(c,n.expression);return KY(A4e(n,I_(p,n.expression),a),n,p!==c)}function A4e(n,a,c){const p=Ib(n)!==0||jge(n)?ef(a):a,m=n.argumentExpression,v=_o(m);if(pr(p)||p===wt)return p;if(O$(p)&&!ds(m))return Ze(m,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),nt;const I=fht(m)?Bt:v,w=Ib(n);let U;w===0?U=32:(U=4|(CA(p)&&!WM(p)?2:0),w===2&&(U|=32));const H=_T(p,I,U,n)||nt;return L3e(h4e(n,Vr(n).resolvedSymbol,H,m,c),n)}function I4e(n){return Uh(n)||$T(n)||au(n)}function GA(n){return I4e(n)&&qe(n.typeArguments,Wa),n.kind===216?_o(n.template):au(n)?_o(n.attributes):Nr(n)?_o(n.left):Uh(n)&&qe(n.arguments,a=>{_o(a)}),ur}function wh(n){return GA(n),si}function _ht(n,a,c){let p,m,v=0,I,w=-1,U;C.assert(!a.length);for(const H of n){const Q=H.declaration&&Wr(H.declaration),xe=H.declaration&&H.declaration.parent;!m||Q===m?p&&xe===p?I=I+1:(p=xe,I=v):(I=v=a.length,p=xe),m=Q,vAe(H)?(w++,U=w,v++):U=I,a.splice(U,0,c?Zlt(H,c):H)}}function x$(n){return!!n&&(n.kind===231||n.kind===238&&n.isSpread)}function $ge(n){return ho(n,x$)}function x4e(n){return!!(n.flags&16384)}function ght(n){return!!(n.flags&49155)}function R$(n,a,c,p=!1){if(Km(n))return!0;let m,v=!1,I=Rp(c),w=Wh(c);if(n.kind===216)if(m=a.length,n.template.kind===229){const U=Ga(n.template.templateSpans);v=zl(U.literal)||!!U.literal.isUnterminated}else{const U=n.template;C.assert(U.kind===15),v=!!U.isUnterminated}else if(n.kind===171)m=k4e(n,c);else if(n.kind===227)m=1;else if(au(n)){if(v=n.attributes.end===n.end,v)return!0;m=w===0?a.length:1,I=a.length===0?I:1,w=Math.min(w,1)}else if(n.arguments){m=p?a.length+1:a.length,v=n.arguments.end===n.end;const U=$ge(a);if(U>=0)return U>=Wh(c)&&(ig(c)||UI)return!1;if(v||m>=w)return!0;for(let U=m;U=p&&a.length<=c}function R4e(n,a){let c;return!!(n.target&&(c=FE(n.target,a))&&$0(c))}function VA(n){return lW(n,0,!1)}function D4e(n){return lW(n,0,!1)||lW(n,1,!1)}function lW(n,a,c){if(n.flags&524288){const p=Mh(n);if(c||p.properties.length===0&&p.indexInfos.length===0){if(a===0&&p.callSignatures.length===1&&p.constructSignatures.length===0)return p.callSignatures[0];if(a===1&&p.constructSignatures.length===1&&p.callSignatures.length===0)return p.constructSignatures[0]}}}function C4e(n,a,c,p){const m=Z8(Z8e(n),n,0,p),v=uW(a),I=c&&(v&&v.flags&262144?c.nonFixingMapper:c.mapper),w=I?PA(a,I):a;return $_e(w,n,(U,H)=>{$g(m.inferences,U,H)}),c||Q_e(a,n,(U,H)=>{$g(m.inferences,U,H,128)}),F8(n,dge(m),Ir(a.declaration))}function yht(n,a,c,p){const m=_$(a,n),v=aN(n.attributes,m,p,c);return $g(p.inferences,v,m),dge(p)}function N4e(n){if(!n)return In;const a=_o(n);return cre(n)?a:FN(n.parent)?Uy(a):iu(n.parent)?JY(a):a}function Zge(n,a,c,p,m){if(au(n))return yht(n,a,p,m);if(n.kind!==171&&n.kind!==227){const U=Hn(a.typeParameters,Q=>!!RE(Q)),H=Ku(n,U?8:0);if(H){const Q=fs(a);if(TT(Q)){const xe=OE(n);if(!(!U&&Ku(n,8)!==H)){const Dt=nge(BFe(xe,1)),$t=ro(H,Dt),Tn=VA($t),nr=Tn&&Tn.typeParameters?IA($he(Tn,Tn.typeParameters)):$t;$g(m.inferences,nr,Q,128)}const et=Z8(a.typeParameters,a,m.flags),Tt=ro(H,xe&&gut(xe));$g(et.inferences,Tt,Q),m.returnMapper=vt(et.inferences,sN)?nge(Rpt(et)):void 0}}}const v=pW(a),I=v?Math.min(Rp(a)-1,c.length):c.length;if(v&&v.flags&262144){const U=mn(m.inferences,H=>H.typeParameter===v);U&&(U.impliedArity=ho(c,x$,I)<0?c.length-I:void 0)}const w=X0(a);if(w&&TT(w)){const U=L4e(n);$g(m.inferences,N4e(U),w)}for(let U=0;U=c-1){const Q=n[c-1];if(x$(Q)){const xe=Q.kind===238?Q.type:aN(Q.expression,p,m,v);return Hv(xe)?M4e(xe):Zd(Jv(33,xe,ge,Q.kind===231?Q.expression:Q),I)}}const w=[],U=[],H=[];for(let Q=a;Qqo(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,xe=p||f.Type_0_does_not_satisfy_the_constraint_1;w||(w=Zp(v,I));const Se=I[U];if(!eu(Se,$p(ro(H,w),Se),c?a[U]:void 0,xe,Q))return}}return I}function P4e(n){if(_R(n.tagName))return 2;const a=Mu(_o(n.tagName));return Qe(ra(a,1))?0:Qe(ra(a,0))?1:2}function vht(n,a,c,p,m,v,I){const w=_$(a,n),U=Km(n)?e4e(n):aN(n.attributes,w,void 0,p),H=p&4?Q8(U):U;return Q()&&w_e(H,w,c,m?Km(n)?n:n.tagName:void 0,Km(n)?void 0:n.attributes,void 0,v,I);function Q(){var xe;if(T$(n))return!0;const Se=(hh(n)||C1(n))&&!(_R(n.tagName)||_h(n.tagName))?_o(n.tagName):void 0;if(!Se)return!0;const et=ra(Se,0);if(!Qe(et))return!0;const Tt=$ye(n);if(!Tt)return!0;const Dt=Ul(Tt,111551,!0,!1,n);if(!Dt)return!0;const $t=_r(Dt),Tn=ra($t,0);if(!Qe(Tn))return!0;let nr=!1,yr=0;for(const vn of Tn){const Sr=Oh(vn,0),mi=ra(Sr,0);if(Qe(mi))for(const io of mi){if(nr=!0,ig(io))return!0;const ii=Rp(io);ii>yr&&(yr=ii)}}if(!nr)return!0;let Sn=1/0;for(const vn of et){const Sr=Wh(vn);Sr{m.push(v.expression)}),m}if(n.kind===171)return bht(n);if(n.kind===227)return[n.left];if(au(n))return n.attributes.properties.length>0||hh(n)&&n.parent.children.length>0?[n.attributes]:ie;const a=n.arguments||ie,c=$ge(a);if(c>=0){const p=a.slice(0,c);for(let m=c;m{var H;const Q=I.target.elementFlags[U],xe=cW(v,Q&4?Zd(w):w,!!(Q&12),(H=I.target.labeledElementDeclarations)==null?void 0:H[U]);p.push(xe)}):p.push(v)}return p}return a}function bht(n){const a=n.expression,c=mye(n);if(c){const p=[];for(const m of c.parameters){const v=_r(m);p.push(cW(a,v))}return p}return C.fail()}function k4e(n,a){return W.experimentalDecorators?Tht(n,a):Math.min(Math.max(Rp(a),1),2)}function Tht(n,a){switch(n.parent.kind){case 264:case 232:return 1;case 173:return $h(n.parent)?3:2;case 175:case 178:case 179:return a.parameters.length<=2?2:3;case 170:return 3;default:return C.fail()}}function w4e(n){const a=zn(n),{start:c,length:p}=o1(a,qr(n.expression)?n.expression.name:n.expression);return{start:c,length:p,sourceFile:a}}function dW(n,a,...c){if(ea(n)){const{sourceFile:p,start:m,length:v}=w4e(n);return"message"in a?zc(p,m,v,a,...c):WG(p,a)}else return"message"in a?Ar(n,a,...c):bg(zn(n),n,a)}function Sht(n){return Uh(n)?qr(n.expression)?n.expression.name:n.expression:$T(n)?qr(n.tag)?n.tag.name:n.tag:au(n)?n.tagName:n}function Eht(n){if(!ea(n)||!Je(n.expression))return!1;const a=gt(n.expression,n.expression.escapedText,111551,void 0,!1),c=a?.valueDeclaration;if(!c||!Zi(c)||!Pb(c.parent)||!HS(c.parent.parent)||!Je(c.parent.parent.expression))return!1;const p=a_e(!1);return p?um(c.parent.parent.expression,!0)===p:!1}function O4e(n,a,c,p){var m;const v=$ge(c);if(v>-1)return Ar(c[v],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let I=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,U=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,Q;for(const Dt of a){const $t=Wh(Dt),Tn=Rp(Dt);$tU&&(U=$t),c.lengthm?I=Math.min(I,U):H1&&(Dt=io(Tn,J_,Sn,vn)),Dt||(Dt=io(Tn,Xd,Sn,vn));const Sr=Vr(n);if(Sr.resolvedSignature!==Dr&&!c)return C.assert(Sr.resolvedSignature),Sr.resolvedSignature;if(Dt)return Dt;if(Dt=Iht(n,Tn,yr,!!c,p),Sr.resolvedSignature=Dt,xe){if(!v&&Q&&(v=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Se)if(Se.length===1||Se.length>3){const ii=Se[Se.length-1];let Bi;Se.length>3&&(Bi=qo(Bi,f.The_last_overload_gave_the_following_error),Bi=qo(Bi,f.No_overload_matches_this_call)),v&&(Bi=qo(Bi,v));const Ko=U5(n,yr,ii,Xd,0,!0,()=>Bi);if(Ko)for(const ms of Ko)ii.declaration&&Se.length>3&&pa(ms,Ar(ii.declaration,f.The_last_overload_is_declared_here)),mi(ii,ms),rs.add(ms);else C.fail("No error for last overload signature")}else{const ii=[];let Bi=0,Ko=Number.MAX_VALUE,ms=0,fo=0;for(const ir of Se){const vr=U5(n,yr,ir,Xd,0,!0,()=>qo(void 0,f.Overload_0_of_1_2_gave_the_following_error,fo+1,Tn.length,uT(ir)));vr?(vr.length<=Ko&&(Ko=vr.length,ms=fo),Bi=Math.max(Bi,vr.length),ii.push(vr)):C.fail("No error for 3 or fewer overload signatures"),fo++}const pl=Bi>1?ii[ms]:Yo(ii);C.assert(pl.length>0,"No errors reported for 3 or fewer overload signatures");let Ql=qo(Yt(pl,une),f.No_overload_matches_this_call);v&&(Ql=qo(Ql,v));const gu=[...fi(pl,ir=>ir.relatedInformation)];let qn;if(Hn(pl,ir=>ir.start===pl[0].start&&ir.length===pl[0].length&&ir.file===pl[0].file)){const{file:ir,start:Hi,length:vr}=pl[0];qn={file:ir,start:Hi,length:vr,code:Ql.code,category:Ql.category,messageText:Ql,relatedInformation:gu}}else qn=bg(zn(n),Sht(n),Ql,gu);mi(Se[0],qn),rs.add(qn)}else if(et)rs.add(O4e(n,[et],yr,v));else if(Tt)tye(Tt,n.typeArguments,!0,v);else if(!H){const ii=Un(a,Bi=>Qge(Bi,nr));ii.length===0?rs.add(Aht(n,a,nr,v)):rs.add(O4e(n,ii,yr,v))}}return Dt;function mi(ii,Bi){var Ko,ms;const fo=Se,pl=et,Ql=Tt,gu=((ms=(Ko=ii.declaration)==null?void 0:Ko.symbol)==null?void 0:ms.declarations)||ie,ir=gu.length>1?mn(gu,Hi=>Ls(Hi)&&vm(Hi.body)):void 0;if(ir){const Hi=Nf(ir),vr=!Hi.typeParameters;io([Hi],Xd,vr)&&pa(Bi,Ar(ir,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Se=fo,et=pl,Tt=Ql}function io(ii,Bi,Ko,ms=!1){if(Se=void 0,et=void 0,Tt=void 0,Ko){const fo=ii[0];if(vt(nr)||!R$(n,yr,fo,ms))return;if(U5(n,yr,fo,Bi,0,!1,void 0)){Se=[fo];return}return fo}for(let fo=0;fo0),yR(n),p||a.length===1||a.some(v=>!!v.typeParameters)?Dht(n,a,c,m):xht(a)}function xht(n){const a=Ei(n,U=>U.thisParameter);let c;a.length&&(c=W4e(a,a.map(J5)));const{min:p,max:m}=Jre(n,Rht),v=[];for(let U=0;Udu(Q)?UFE(Q,U))))}const I=Ei(n,U=>du(U)?Ga(U.parameters):void 0);let w=128;if(I.length!==0){const U=Zd(pi(Ei(n,Q8e),2));v.push(F4e(I,U)),w|=1}return n.some(vAe)&&(w|=2),T_(n[0].declaration,void 0,c,v,Pa(n.map(fs)),void 0,p,w)}function Rht(n){const a=n.parameters.length;return du(n)?a-1:a}function W4e(n,a){return F4e(n,pi(a,2))}function F4e(n,a){return kA(Qa(n),a)}function Dht(n,a,c,p){const m=Mht(a,at===void 0?c.length:at),v=a[m],{typeParameters:I}=v;if(!I)return v;const w=I4e(n)?n.typeArguments:void 0,U=w?_Y(v,Cht(w,I,Ir(n))):Nht(n,I,v,c,p);return a[m]=U,U}function Cht(n,a,c){const p=n.map(vR);for(;p.length>a.length;)p.pop();for(;p.length=a)return m;I>p&&(p=I,c=m)}return c}function Pht(n,a,c){if(n.expression.kind===108){const U=u$(n.expression);if(wr(U)){for(const H of n.arguments)_o(H);return ur}if(!pr(U)){const H=uh(_d(n));if(H){const Q=Hg(U,H.typeArguments,H);return iN(n,Q,a,c,0)}}return GA(n)}let p,m=_o(n.expression);if(QE(n)){const U=Y8(m,n.expression);p=U===m?0:zN(n)?16:8,m=U}else p=0;if(m=u4e(m,n.expression,Ymt),m===wt)return Bn;const v=Mu(m);if(pr(v))return wh(n);const I=ra(v,0),w=ra(v,1).length;if(H5(m,v,I.length,w))return!pr(m)&&n.typeArguments&&Ze(n,f.Untyped_function_calls_may_not_accept_type_arguments),GA(n);if(!I.length){if(w)Ze(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sr(m));else{let U;if(n.arguments.length===1){const H=zn(n).text;ru(H.charCodeAt(wa(H,n.expression.end,!0)-1))&&(U=Ar(n.expression,f.Are_you_missing_a_semicolon))}rye(n.expression,v,0,U)}return wh(n)}return c&8&&!n.typeArguments&&I.some(Lht)?(S3e(n,c),Dr):I.some(U=>Ir(U.declaration)&&!!Q9(U.declaration))?(Ze(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sr(m)),wh(n)):iN(n,I,a,c,p)}function Lht(n){return!!(n.typeParameters&&Xye(fs(n)))}function H5(n,a,c,p){return wr(n)||wr(a)&&!!(n.flags&262144)||!c&&!p&&!(a.flags&1048576)&&!(Fm(a).flags&131072)&&sa(n,er)}function kht(n,a,c){let p=rN(n.expression);if(p===wt)return Bn;if(p=Mu(p),pr(p))return wh(n);if(wr(p))return n.typeArguments&&Ze(n,f.Untyped_function_calls_may_not_accept_type_arguments),GA(n);const m=ra(p,1);if(m.length){if(!wht(n,m[0]))return wh(n);if(z4e(m,w=>!!(w.flags&4)))return Ze(n,f.Cannot_create_an_instance_of_an_abstract_class),wh(n);const I=p.symbol&&fy(p.symbol);return I&&di(I,64)?(Ze(n,f.Cannot_create_an_instance_of_an_abstract_class),wh(n)):iN(n,m,a,c,0)}const v=ra(p,0);if(v.length){const I=iN(n,v,a,c,0);return be||(I.declaration&&!x_(I.declaration)&&fs(I)!==In&&Ze(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),X0(I)===In&&Ze(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return rye(n.expression,p,1),wh(n)}function z4e(n,a){return No(n)?vt(n,c=>z4e(c,a)):n.compositeKind===1048576?vt(n.compositeSignatures,a):a(n)}function nye(n,a){const c=ih(a);if(!Qe(c))return!1;const p=c[0];if(p.flags&2097152){const m=p.types,v=P8e(m);let I=0;for(const w of p.types){if(!v[I]&&Hr(w)&3&&(w.symbol===n||nye(n,w)))return!0;I++}return!1}return p.symbol===n?!0:nye(n,p)}function wht(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,p=CI(c,6);if(!p||c.kind!==177)return!0;const m=fy(c.parent.symbol),v=Ks(c.parent.symbol);if(!qye(n,m)){const I=_d(n);if(I&&p&4){const w=vR(I);if(nye(c.parent.symbol,w))return!0}return p&2&&Ze(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,sr(v)),p&4&&Ze(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,sr(v)),!1}return!0}function B4e(n,a,c){let p;const m=c===0,v=gR(a),I=v&&ra(v,c).length>0;if(a.flags&1048576){const U=a.types;let H=!1;for(const Q of U)if(ra(Q,c).length!==0){if(H=!0,p)break}else if(p||(p=qo(p,m?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,sr(Q)),p=qo(p,m?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,sr(a))),H)break;H||(p=qo(void 0,m?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,sr(a))),p||(p=qo(p,m?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,sr(a)))}else p=qo(p,m?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,sr(a));let w=m?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(ea(n.parent)&&n.parent.arguments.length===0){const{resolvedSymbol:U}=Vr(n);U&&U.flags&32768&&(w=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:qo(p,w),relatedMessage:I?f.Did_you_forget_to_use_await:void 0}}function rye(n,a,c,p){const{messageChain:m,relatedMessage:v}=B4e(n,a,c),I=bg(zn(n),n,m);if(v&&pa(I,Ar(n,v)),ea(n.parent)){const{start:w,length:U}=w4e(n.parent);I.start=w,I.length=U}rs.add(I),G4e(a,c,p?pa(I,p):I)}function G4e(n,a,c){if(!n.symbol)return;const p=Jr(n.symbol).originatingImport;if(p&&!tp(p)){const m=ra(_r(Jr(n.symbol).target),a);if(!m||!m.length)return;pa(c,Ar(p,f.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 Oht(n,a,c){const p=_o(n.tag),m=Mu(p);if(pr(m))return wh(n);const v=ra(m,0),I=ra(m,1).length;if(H5(p,m,v.length,I))return GA(n);if(!v.length){if(Nd(n.parent)){const w=Ar(n.tag,f.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 rs.add(w),wh(n)}return rye(n.tag,m,0),wh(n)}return iN(n,v,a,c,0)}function Wht(n){switch(n.parent.kind){case 264:case 232:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return C.fail()}}function Fht(n,a,c){const p=_o(n.expression),m=Mu(p);if(pr(m))return wh(n);const v=ra(m,0),I=ra(m,1).length;if(H5(p,m,v.length,I))return GA(n);if(Ght(n,v)&&!zu(n.expression)){const U=Rl(n.expression,!1);return Ze(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,U),wh(n)}const w=Wht(n);if(!v.length){const U=B4e(n.expression,m,0),H=qo(U.messageChain,w),Q=bg(zn(n.expression),n.expression,H);return U.relatedMessage&&pa(Q,Ar(n.expression,U.relatedMessage)),rs.add(Q),G4e(m,0,Q),wh(n)}return iN(n,v,a,c,0,w)}function N$(n,a){const c=BA(n),p=c&&Xp(c),m=p&&Ed(p,yf.Element,788968),v=m&&Te.symbolToEntityName(m,788968,n),I=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,Te.typeToTypeNode(a,n))],v?L.createTypeReferenceNode(v,void 0):L.createKeywordTypeNode(133)),w=Ua(1,"props");return w.links.type=a,T_(I,void 0,void 0,[w],m?Ks(m):nt,void 0,1,0)}function V4e(n){const a=Vr(zn(n));if(a.jsxFragmentType!==void 0)return a.jsxFragmentType;const c=$m(n);if(!((W.jsx===2||W.jsxFragmentFactory!==void 0)&&c!=="null"))return a.jsxFragmentType=He;const m=W.jsx!==1&&W.jsx!==3,v=rs?f.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,I=T$(n)??gt(n,c,m?111551:111167,v,!0);if(I===void 0)return a.jsxFragmentType=nt;if(I.escapedName===YU.Fragment)return a.jsxFragmentType=_r(I);const w=(I.flags&2097152)===0?I:pd(I),U=I&&Xp(w),H=U&&Ed(U,YU.Fragment,2),Q=H&&_r(H);return a.jsxFragmentType=Q===void 0?nt:Q}function zht(n,a,c){const p=Km(n);let m;if(p)m=V4e(n);else{if(_R(n.tagName)){const w=o4e(n),U=N$(n,w);return kE(aN(n.attributes,_$(U,n),void 0,0),w,n.tagName,n.attributes),Qe(n.typeArguments)&&(qe(n.typeArguments,Wa),rs.add(QR(zn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Qe(n.typeArguments)))),U}m=_o(n.tagName)}const v=Mu(m);if(pr(v))return wh(n);const I=r4e(m,n);return H5(m,v,I.length,0)?GA(n):I.length===0?(p?Ze(n,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Rl(n)):Ze(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Rl(n.tagName)),wh(n)):iN(n,I,a,c,0)}function Bht(n,a,c){const p=_o(n.right);if(!wr(p)){const m=vye(p);if(m){const v=Mu(m);if(pr(v))return wh(n);const I=ra(v,0),w=ra(v,1);if(H5(m,v,I.length,w.length))return GA(n);if(I.length)return iN(n,I,a,c,0)}else if(!(nQ(p)||LE(p,er)))return Ze(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),wh(n)}return ur}function Ght(n,a){return a.length&&Hn(a,c=>c.minArgumentCount===0&&!du(c)&&c.parameters.length1?Hl(n.arguments[1]):void 0;for(let v=2;v{const I=ef(m);OY(v,I)||vFe(m,v,c,f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Yht(n){const a=_o(n.expression),c=Y8(a,n.expression);return KY(Uy(c),n,c!==a)}function $ht(n){return n.flags&64?Yht(n):Uy(_o(n.expression))}function X4e(n){if(G7e(n),qe(n.typeArguments,Wa),n.kind===234){const c=Um(n.parent);c.kind===227&&c.operatorToken.kind===104&&NS(n,c.right)&&Ze(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===234?_o(n.expression):Db(n.exprName)?k5(n.exprName):_o(n.exprName);return Y4e(a,n)}function Y4e(n,a){const c=a.typeArguments;if(n===wt||pr(n)||!vt(c))return n;const p=Vr(a);if(p.instantiationExpressionTypes||(p.instantiationExpressionTypes=new Map),p.instantiationExpressionTypes.has(n.id))return p.instantiationExpressionTypes.get(n.id);let m=!1,v;const I=U(n);p.instantiationExpressionTypes.set(n.id,I);const w=m?v:n;return w&&rs.add(QR(zn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,sr(w))),I;function U(Q){let xe=!1,Se=!1;const et=Tt(Q);return m||(m=Se),xe&&!Se&&(v??(v=Q)),et;function Tt(Dt){if(Dt.flags&524288){const $t=Mh(Dt),Tn=H($t.callSignatures),nr=H($t.constructSignatures);if(xe||(xe=$t.callSignatures.length!==0||$t.constructSignatures.length!==0),Se||(Se=Tn.length!==0||nr.length!==0),Tn!==$t.callSignatures||nr!==$t.constructSignatures){const yr=Sl(Ua(0,"__instantiationExpression"),$t.members,Tn,nr,$t.indexInfos);return yr.objectFlags|=8388608,yr.node=a,yr}}else if(Dt.flags&58982400){const $t=kd(Dt);if($t){const Tn=Tt($t);if(Tn!==$t)return Tn}}else{if(Dt.flags&1048576)return El(Dt,U);if(Dt.flags&2097152)return Pa(to(Dt.types,Tt))}return Dt}}function H(Q){const xe=Un(Q,Se=>!!Se.typeParameters&&Qge(Se,c));return to(xe,Se=>{const et=tye(Se,c,!0);return et?F8(Se,et,Ir(Se.declaration)):Se})}}function Qht(n){return Wa(n.type),sye(n.expression,n.type)}function sye(n,a,c){const p=_o(n,c),m=Ji(a);if(pr(m))return m;const v=Dn(a.parent,I=>I.kind===239||I.kind===351);return kE(p,m,v,n,f.Type_0_does_not_satisfy_the_expected_type_1),p}function Zht(n){return rTt(n),n.keywordToken===105?lye(n):n.keywordToken===102?n.name.escapedText==="defer"?(C.assert(!ea(n.parent)||n.parent.expression!==n,"Trying to get the type of `import.defer` in `import.defer(...)`"),nt):e_t(n):C.assertNever(n.keywordToken)}function $4e(n){switch(n.keywordToken){case 102:return hWe();case 105:const a=lye(n);return pr(a)?nt:g_t(a);default:C.assertNever(n.keywordToken)}}function lye(n){const a=xne(n);if(a)if(a.kind===177){const c=Wr(a.parent);return _r(c)}else{const c=Wr(a);return _r(c)}else return Ze(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),nt}function e_t(n){100<=j&&j<=199?zn(n).impliedNodeFormat!==99&&Ze(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):j<6&&j!==4&&Ze(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);const a=zn(n);return C.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?mWe():nt}function J5(n){const a=n.valueDeclaration;return hu(_r(n),!1,!!a&&(tv(a)||BI(a)))}function cye(n,a,c){switch(n.name.kind){case 80:{const p=n.name.escapedText;return n.dotDotDotToken?c&12?p:`${p}_${a}`:c&3?p:`${p}_n`}case 208:{if(n.dotDotDotToken){const p=n.name.elements,m=ni(tl(p),qa),v=p.length-(m?.dotDotDotToken?1:0);if(a=p-1)return a===p-1?v:Zd(Qp(v,Bt));const I=[],w=[],U=[];for(let H=a;H!(U&1)),w=I<0?v.target.fixedLength:I;w>0&&(m=n.parameters.length-1+w)}}if(m===void 0){if(!c&&n.flags&32)return 0;m=n.minArgumentCount}if(p)return m;for(let v=m-1;v>=0;v--){const I=Oh(n,v);if(Ic(I,x4e).flags&131072)break;m=v}n.resolvedMinArgumentCount=m}return n.resolvedMinArgumentCount}function ig(n){if(du(n)){const a=_r(n.parameters[n.parameters.length-1]);return!Xa(a)||!!(a.target.combinedFlags&12)}return!1}function uW(n){if(du(n)){const a=_r(n.parameters[n.parameters.length-1]);if(!Xa(a))return wr(a)?Td:a;if(a.target.combinedFlags&12)return ML(a,a.target.fixedLength)}}function pW(n){const a=uW(n);return a&&!lm(a)&&!wr(a)?a:void 0}function uye(n){return pye(n,yn)}function pye(n,a){return n.parameters.length>0?Oh(n,0):a}function t3e(n,a,c){const p=n.parameters.length-(du(n)?1:0);for(let v=0;v=0);const v=kl(p.parent)?_r(Wr(p.parent.parent)):C7e(p.parent),I=kl(p.parent)?ge:N7e(p.parent),w=Ph(m),U=If("target",v),H=If("propertyKey",I),Q=If("parameterIndex",w);c.decoratorSignature=vW(void 0,void 0,[U,H,Q],In);break}case 175:case 178:case 179:case 173:{const p=a;if(!ui(p.parent))break;const m=C7e(p),v=If("target",m),I=N7e(p),w=If("propertyKey",I),U=Mo(p)?In:AWe(vR(p));if(!Mo(a)||$h(a)){const Q=AWe(vR(p)),xe=If("descriptor",Q);c.decoratorSignature=vW(void 0,void 0,[v,w,xe],pi([U,In]))}else c.decoratorSignature=vW(void 0,void 0,[v,w],pi([U,In]));break}}return c.decoratorSignature===ur?void 0:c.decoratorSignature}function mye(n){return J?__t(n):h_t(n)}function Y5(n){const a=o5(!0);return a!==Zt?(n=Jy(HL(n))||Nt,Wy(a,[n])):Nt}function i3e(n){const a=vWe(!0);return a!==Zt?(n=Jy(HL(n))||Nt,Wy(a,[n])):Nt}function $5(n,a){const c=Y5(a);return c===Nt?(Ze(n,tp(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),nt):(a_e(!0)||Ze(n,tp(n)?f.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function g_t(n){const a=Ua(0,"NewTargetExpression"),c=Ua(4,"target",8);c.parent=a,c.links.type=n;const p=da([c]);return a.members=p,Sl(a,p,ie,ie,ie)}function L$(n,a){if(!n.body)return nt;const c=pc(n),p=(c&2)!==0,m=(c&1)!==0;let v,I,w,U=In;if(n.body.kind!==242)v=Hl(n.body,a&&a&-9),p&&(v=HL(rB(v,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(m){const H=l3e(n,a);H?H.length>0&&(v=pi(H,2)):U=yn;const{yieldTypes:Q,nextTypes:xe}=y_t(n,a);I=vt(Q)?pi(Q,2):void 0,w=vt(xe)?Pa(xe):void 0}else{const H=l3e(n,a);if(!H)return c&2?$5(n,yn):yn;if(H.length===0){const Q=p$(n,void 0),xe=Q&&(cB(Q,c)||In).flags&32768?ge:In;return c&2?$5(n,xe):xe}v=pi(H,2)}if(v||I||w){if(I&&QY(n,I,3),v&&QY(n,v,1),w&&QY(n,w,2),v&&Lh(v)||I&&Lh(I)||w&&Lh(w)){const H=g$(n),Q=H?H===Nf(n)?m?void 0:v:m$(fs(H),n,void 0):void 0;m?(I=X_e(I,Q,0,p),v=X_e(v,Q,1,p),w=X_e(w,Q,2,p)):v=upt(v,Q,p)}I&&(I=ef(I)),v&&(v=ef(v)),w&&(w=ef(w))}return m?k$(I||yn,v||U,w||z6e(2,n)||Nt,p):p?Y5(v||U):v||U}function k$(n,a,c,p){const m=p?_c:Js,v=m.getGlobalGeneratorType(!1);if(n=m.resolveIterationType(n,void 0)||Nt,a=m.resolveIterationType(a,void 0)||Nt,v===Zt){const I=m.getGlobalIterableIteratorType(!1);return I!==Zt?NL(I,[n,a,c]):(m.getGlobalIterableIteratorType(!0),Da)}return NL(v,[n,a,c])}function y_t(n,a){const c=[],p=[],m=(pc(n)&2)!==0;return _ne(n.body,v=>{const I=v.expression?_o(v.expression,a):B;Ff(c,o3e(v,I,He,m));let w;if(v.asteriskToken){const U=q$(I,m?19:17,v.expression);w=U&&U.nextType}else w=Ku(v,void 0);w&&Ff(p,w)}),{yieldTypes:c,nextTypes:p}}function o3e(n,a,c,p){if(a===wt)return wt;const m=n.expression||n,v=n.asteriskToken?Jv(p?19:17,a,c,m):a;return p?gR(v,m,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):v}function a3e(n,a,c){let p=0;for(let m=0;m=a?c[m]:void 0;p|=v!==void 0?Cae.get(v)||32768:0}return p}function s3e(n){const a=Vr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=v_t(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function v_t(n){if(n.expression.kind===222){const p=d6e(n);if(!p)return!1;const m=S_(Hl(n.expression.expression)),v=a3e(0,0,p);return m.flags&3?(556800&v)===556800:!dm(m,I=>ZC(I,v)===v)}const a=S_(Hl(n.expression));if(!X8(a))return!1;const c=r$(n);return!c.length||vt(c,lpt)?!1:aft(El(a,Pu),c)}function hye(n){return n.endFlowNode&&M5(n.endFlowNode)}function l3e(n,a){const c=pc(n),p=[];let m=hye(n),v=!1;if(Ab(n.body,I=>{let w=I.expression;if(w){if(w=us(w,!0),c&2&&w.kind===224&&(w=us(w.expression,!0)),w.kind===214&&w.expression.kind===80&&Hl(w.expression).symbol===as(n.symbol)&&(!Pb(n.symbol.valueDeclaration)||bge(w.expression))){v=!0;return}let U=Hl(w,a&&a&-9);c&2&&(U=HL(rB(U,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),U.flags&131072&&(v=!0),Ff(p,U)}else m=!0}),!(p.length===0&&!m&&(v||b_t(n))))return oe&&p.length&&m&&!(x_(n)&&p.some(I=>I.symbol===n.symbol))&&Ff(p,ge),p}function b_t(n){switch(n.kind){case 219:case 220:return!0;case 175:return n.parent.kind===211;default:return!1}}function T_t(n){switch(n.kind){case 177:case 178:case 179:return}if(pc(n)!==0)return;let c;if(n.body&&n.body.kind!==242)c=n.body;else if(Ab(n.body,m=>{if(c||!m.expression)return!0;c=m.expression})||!c||hye(n))return;return S_t(n,c)}function S_t(n,a){if(a=us(a,!0),!!(Hl(a).flags&16))return qe(n.parameters,(p,m)=>{const v=_r(p.symbol);if(!v||v.flags&16||!Je(p.name)||nW(p.symbol)||M_(p))return;const I=E_t(n,a,p,v);if(I)return W8(1,Vi(p.name.escapedText),m,I)})}function E_t(n,a,c,p){const m=aD(a)&&a.flowNode||a.parent.kind===254&&a.parent.flowNode||B_(2,void 0,void 0),v=B_(32,a,m),I=qy(c.name,p,p,n,v);if(I===p)return;const w=B_(64,a,m);return Fm(qy(c.name,p,I,n,w)).flags&131072?I:void 0}function _ye(n,a){r(c);return;function c(){const p=pc(n),m=a&&cB(a,p);if(m&&(oc(m,16384)||m.flags&32769)||n.kind===174||zl(n.body)||n.body.kind!==242||!hye(n))return;const v=n.flags&1024,I=Wp(n)||n;if(m&&m.flags&131072)Ze(I,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!v)Ze(I,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&oe&&!sa(ge,m))Ze(I,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(W.noImplicitReturns){if(!m){if(!v)return;const w=fs(Nf(n));if(n7e(n,w))return}Ze(I,f.Not_all_code_paths_return_a_value)}}}function c3e(n,a){if(C.assert(n.kind!==175||bm(n)),yR(n),qs(n)&&qL(n,n.name),a&&a&4&&Mf(n)){if(!Wp(n)&&!a4(n)){const p=oW(n);if(p&&TT(fs(p))){const m=Vr(n);if(m.contextFreeType)return m.contextFreeType;const v=L$(n,a),I=T_(void 0,void 0,void 0,ie,v,void 0,0,64),w=Sl(n.symbol,k,[I],ie,ie);return w.objectFlags|=262144,m.contextFreeType=w}}return xs}return!aQ(n)&&n.kind===219&&eve(n),A_t(n,a),_r(Wr(n))}function A_t(n,a){const c=Vr(n);if(!(c.flags&64)){const p=oW(n);if(!(c.flags&64)){c.flags|=64;const m=Rc(ra(_r(Wr(n)),0));if(!m)return;if(Mf(n))if(p){const v=OE(n);let I;if(a&&a&2){t3e(m,p,v);const w=uW(p);w&&w.flags&262144&&(I=PA(p,v.nonFixingMapper))}I||(I=v?PA(p,v.mapper):p),r_t(m,I)}else i_t(m);else if(p&&!n.typeParameters&&p.parameters.length>n.parameters.length){const v=OE(n);a&&a&2&&t3e(m,p,v)}if(p&&!qC(n)&&!m.resolvedReturnType){const v=L$(n,a);m.resolvedReturnType||(m.resolvedReturnType=v)}hW(n)}}}function I_t(n){C.assert(n.kind!==175||bm(n));const a=pc(n),c=qC(n);if(_ye(n,c),n.body)if(Wp(n)||fs(Nf(n)),n.body.kind===242)Wa(n.body);else{const p=_o(n.body),m=c&&cB(c,a);m&&J$(n,m,n.body,n.body,p)}}function w$(n,a,c,p=!1){if(!sa(a,ia)){const m=p&&UL(a);return Rv(n,!!m&&sa(m,ia),c),!1}return!0}function x_t(n){if(!ea(n)||!c1(n))return!1;const a=Hl(n.arguments[2]);if(_n(a,"value")){const m=Ea(a,"writable"),v=m&&_r(m);if(!v||v===tr||v===Jn)return!0;if(m&&m.valueDeclaration&&Pc(m.valueDeclaration)){const I=m.valueDeclaration.initializer,w=_o(I);if(w===tr||w===Jn)return!0}return!1}return!Ea(a,"set")}function Fh(n){return!!(Bl(n)&8||n.flags&4&&qf(n)&8||n.flags&3&&zge(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||vt(n.declarations,x_t))}function d3e(n,a,c){var p,m;if(c===0)return!1;if(Fh(a)){if(a.flags&4&&Ys(n)&&n.expression.kind===110){const v=zL(n);if(!(v&&(v.kind===177||x_(v))))return!0;if(a.valueDeclaration){const I=Nr(a.valueDeclaration),w=v.parent===a.valueDeclaration.parent,U=v===a.valueDeclaration.parent,H=I&&((p=a.parent)==null?void 0:p.valueDeclaration)===v.parent,Q=I&&((m=a.parent)==null?void 0:m.valueDeclaration)===v;return!(w||U||H||Q)}}return!0}if(Ys(n)){const v=us(n.expression);if(v.kind===80){const I=Vr(v).resolvedSymbol;if(I.flags&2097152){const w=pp(I);return!!w&&w.kind===275}}}return!1}function fW(n,a,c){const p=Kl(n,39);return p.kind!==80&&!Ys(p)?(Ze(n,a),!1):p.flags&64?(Ze(n,c),!1):!0}function R_t(n){_o(n.expression);const a=us(n.expression);if(!Ys(a))return Ze(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),Vt;qr(a)&&Qi(a.name)&&Ze(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Vr(a),p=Et(c.resolvedSymbol);return p&&(Fh(p)?Ze(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):D_t(a,p)),Vt}function D_t(n,a){const c=_r(a);oe&&!(c.flags&131075)&&!(Ne?a.flags&16777216:kh(c,16777216))&&Ze(n,f.The_operand_of_a_delete_operator_must_be_optional)}function C_t(n){return _o(n.expression),NC}function N_t(n){return yR(n),B}function u3e(n){let a=!1;const c=t6(n);if(c&&nc(c)){const p=Wb(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;Ze(n,p),a=!0}else if(!(n.flags&65536))if(r6(n)){const p=zn(n);if(!AT(p)){let m;if(!$R(p,W)){m??(m=qh(p,n.pos));const v=Wb(n)?f.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:f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,I=zc(p,m.start,m.length,v);rs.add(I),a=!0}switch(j){case 100:case 101:case 102:case 199:if(p.impliedNodeFormat===1){m??(m=qh(p,n.pos)),rs.add(zc(p,m.start,m.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(G>=4)break;default:m??(m=qh(p,n.pos));const v=Wb(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;rs.add(zc(p,m.start,m.length,v)),a=!0;break}}}else{const p=zn(n);if(!AT(p)){const m=qh(p,n.pos),v=Wb(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,I=zc(p,m.start,m.length,v);if(c&&c.kind!==177&&(pc(c)&2)===0){const w=Ar(c,f.Did_you_mean_to_mark_this_function_as_async);pa(I,w)}rs.add(I),a=!0}}return Wb(n)&&Nge(n)&&(Ze(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function M_t(n){r(()=>u3e(n));const a=_o(n.expression),c=rB(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!pr(c)&&!(a.flags&3)&&Wg(!1,Ar(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function P_t(n){const a=_o(n.operand);if(a===wt)return wt;switch(n.operand.kind){case 9:switch(n.operator){case 41:return dR(Ph(-n.operand.text));case 40:return dR(Ph(+n.operand.text))}break;case 10:if(n.operator===41)return dR(u5({negative:!0,base10Value:LM(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return I_(a,n.operand),Q5(a,12288)&&Ze(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(n.operator)),n.operator===40?(Q5(a,2112)&&Ze(n.operand,f.Operator_0_cannot_be_applied_to_type_1,_a(n.operator),sr(jy(a))),Bt):gye(a);case 54:Lye(a,n.operand);const c=ZC(a,12582912);return c===4194304?tr:c===8388608?mt:Vt;case 46:case 47:return w$(n.operand,I_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&fW(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),gye(a)}return nt}function L_t(n){const a=_o(n.operand);return a===wt?wt:(w$(n.operand,I_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&fW(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),gye(a))}function gye(n){return oc(n,2112)?wd(n,3)||oc(n,296)?ia:gr:Bt}function Q5(n,a){if(oc(n,a))return!0;const c=S_(n);return!!c&&oc(c,a)}function oc(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const p of c)if(oc(p,a))return!0}return!1}function wd(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&sa(n,Bt)||!!(a&2112)&&sa(n,gr)||!!(a&402653316)&&sa(n,yt)||!!(a&528)&&sa(n,Vt)||!!(a&16384)&&sa(n,In)||!!(a&131072)&&sa(n,yn)||!!(a&65536)&&sa(n,Kt)||!!(a&32768)&&sa(n,ge)||!!(a&4096)&&sa(n,Qt)||!!(a&67108864)&&sa(n,wn)}function mW(n,a,c){return n.flags&1048576?Hn(n.types,p=>mW(p,a,c)):wd(n,a,c)}function O$(n){return!!(Hr(n)&16)&&!!n.symbol&&yye(n.symbol)}function yye(n){return(n.flags&128)!==0}function vye(n){const a=Q3e("hasInstance");if(mW(n,67108864)){const c=Ea(n,a);if(c){const p=_r(c);if(p&&ra(p,0).length!==0)return p}}}function k_t(n,a,c,p,m){if(c===wt||p===wt)return wt;!wr(c)&&mW(c,402784252)&&Ze(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),C.assert(L6(n.parent));const v=oN(n.parent,void 0,m);if(v===Dr)return wt;const I=fs(v);return eu(I,Vt,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Vt}function w_t(n){return dm(n,a=>a===os||!!(a.flags&2097152)&&rg(S_(a)))}function O_t(n,a,c,p){if(c===wt||p===wt)return wt;if(Qi(n)){if((GML(H,c)):Zd(p);return jA(w,U,m)}}}}function jA(n,a,c,p){let m;if(n.kind===305){const v=n;v.objectAssignmentInitializer&&(oe&&!kh(_o(v.objectAssignmentInitializer),16777216)&&(a=cm(a,524288)),H_t(v.name,v.equalsToken,v.objectAssignmentInitializer,c)),m=n.name}else m=n;return m.kind===227&&m.operatorToken.kind===64&&(Ee(m,c),m=m.left,oe&&(a=cm(a,524288))),m.kind===211?W_t(m,a,p):m.kind===210?F_t(m,a,c):z_t(m,a,c)}function z_t(n,a,c){const p=_o(n,c),m=n.parent.kind===306?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,v=n.parent.kind===306?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return fW(n,m,v)&&kE(a,p,n,n),HR(n)&&Zc(n.parent,1048576),a}function Z5(n){switch(n=us(n),n.kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return Z5(n.whenTrue)&&Z5(n.whenFalse);case 227:return uy(n.operatorToken.kind)?!1:Z5(n.left)&&Z5(n.right);case 225:case 226:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function bye(n,a){return(a.flags&98304)!==0||OY(n,a)}function B_t(){const n=V4(a,c,p,m,v,I);return(Se,et)=>{const Tt=n(Se,et);return C.assertIsDefined(Tt),Tt};function a(Se,et,Tt){return et?(et.stackIndex++,et.skip=!1,H(et,void 0),xe(et,void 0)):et={checkMode:Tt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Ir(Se)&&TI(Se)?(et.skip=!0,xe(et,_o(Se.right,Tt)),et):(G_t(Se),Se.operatorToken.kind===64&&(Se.left.kind===211||Se.left.kind===210)&&(et.skip=!0,xe(et,jA(Se.left,_o(Se.right,Tt),Tt,Se.right.kind===110))),et)}function c(Se,et,Tt){if(!et.skip)return w(et,Se)}function p(Se,et,Tt){if(!et.skip){const Dt=Q(et);C.assertIsDefined(Dt),H(et,Dt),xe(et,void 0);const $t=Se.kind;if(M6($t)){let Tn=Tt.parent;for(;Tn.kind===218||Vk(Tn);)Tn=Tn.parent;($t===56||ZT(Tn))&&Pye(Tt.left,Dt,ZT(Tn)?Tn.thenStatement:void 0),Gk($t)&&Lye(Dt,Tt.left)}}}function m(Se,et,Tt){if(!et.skip)return w(et,Se)}function v(Se,et){let Tt;if(et.skip)Tt=Q(et);else{const Dt=U(et);C.assertIsDefined(Dt);const $t=Q(et);C.assertIsDefined($t),Tt=m3e(Se.left,Se.operatorToken,Se.right,Dt,$t,et.checkMode,Se)}return et.skip=!1,H(et,void 0),xe(et,void 0),et.stackIndex--,Tt}function I(Se,et,Tt){return xe(Se,et),Se}function w(Se,et){if(Nr(et))return et;xe(Se,_o(et,Se.checkMode))}function U(Se){return Se.typeStack[Se.stackIndex]}function H(Se,et){Se.typeStack[Se.stackIndex]=et}function Q(Se){return Se.typeStack[Se.stackIndex+1]}function xe(Se,et){Se.typeStack[Se.stackIndex+1]=et}}function G_t(n){if(n.operatorToken.kind===61){if(Nr(n.parent)){const{left:a,operatorToken:c}=n.parent;Nr(a)&&c.kind===57&&Cn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(61),_a(c.kind))}else if(Nr(n.left)){const{operatorToken:a}=n.left;(a.kind===57||a.kind===56)&&Cn(n.left,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(a.kind),_a(61))}else if(Nr(n.right)){const{operatorToken:a}=n.right;a.kind===56&&Cn(n.right,f._0_and_1_operations_cannot_be_mixed_without_parentheses,_a(61),_a(a.kind))}V_t(n),j_t(n)}}function V_t(n){const a=Kl(n.left,63),c=eB(a);c!==3&&(c===1?Ze(a,f.This_expression_is_always_nullish):Ze(a,f.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function j_t(n){const a=Kl(n.right,63),c=eB(a);U_t(n)||(c===1?Ze(a,f.This_expression_is_always_nullish):c===2&&Ze(a,f.This_expression_is_never_nullish))}function U_t(n){return!Nr(n.parent)||n.parent.operatorToken.kind!==61}function eB(n){switch(n=Kl(n),n.kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(n.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return eB(n.right)}return 2;case 228:return eB(n.whenTrue)|eB(n.whenFalse);case 106:return 1;case 80:return _u(n)===ce?1:3}return 2}function H_t(n,a,c,p,m){const v=a.kind;if(v===64&&(n.kind===211||n.kind===210))return jA(n,_o(c,p),p,c.kind===110);let I;Gk(v)?I=EW(n,p):I=_o(n,p);const w=_o(c,p);return m3e(n,a,c,I,w,p,m)}function m3e(n,a,c,p,m,v,I){const w=a.kind;switch(w){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(p===wt||m===wt)return wt;p=I_(p,n),m=I_(m,c);let Sn;if(p.flags&528&&m.flags&528&&(Sn=Se(a.kind))!==void 0)return Ze(I||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,_a(a.kind),_a(Sn)),Bt;{const mi=w$(n,p,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),io=w$(c,m,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let ii;if(wd(p,3)&&wd(m,3)||!(oc(p,2112)||oc(m,2112)))ii=Bt;else if(U(p,m)){switch(w){case 50:case 73:$t();break;case 43:case 68:G<3&&Ze(I,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ii=gr}else $t(U),ii=nt;if(mi&&io)switch(et(ii),w){case 48:case 71:case 49:case 72:case 50:case 73:const Bi=Be(c);typeof Bi.value=="number"&&Math.abs(Bi.value)>=32&&Qm(_y(Um(c.parent.parent)),I||a,f.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Rl(n),_a(w),Bi.value%32);break}return ii}case 40:case 65:if(p===wt||m===wt)return wt;!wd(p,402653316)&&!wd(m,402653316)&&(p=I_(p,n),m=I_(m,c));let vn;return wd(p,296,!0)&&wd(m,296,!0)?vn=Bt:wd(p,2112,!0)&&wd(m,2112,!0)?vn=gr:wd(p,402653316,!0)||wd(m,402653316,!0)?vn=yt:(wr(p)||wr(m))&&(vn=pr(p)||pr(m)?nt:He),vn&&!xe(w)?vn:vn?(w===65&&et(vn),vn):($t((io,ii)=>wd(io,402655727)&&wd(ii,402655727)),He);case 30:case 32:case 33:case 34:return xe(w)&&(p=J_e(I_(p,n)),m=J_e(I_(m,c)),Dt((mi,io)=>{if(wr(mi)||wr(io))return!0;const ii=sa(mi,ia),Bi=sa(io,ia);return ii&&Bi||!ii&&!Bi&&h5(mi,io)})),Vt;case 35:case 36:case 37:case 38:if(!(v&&v&64)){if((aG(n)||aG(c))&&(!Ir(n)||w===37||w===38)){const mi=w===35||w===37;Ze(I,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,mi?"false":"true")}nr(I,w,n,c),Dt((mi,io)=>bye(mi,io)||bye(io,mi))}return Vt;case 104:return k_t(n,c,p,m,v);case 103:return O_t(n,c,p,m);case 56:case 77:{const mi=kh(p,4194304)?pi([mpt(oe?p:jy(m)),m]):p;return w===77&&et(m),mi}case 57:case 76:{const mi=kh(p,8388608)?pi([Uy(OFe(p)),m],2):p;return w===76&&et(m),mi}case 61:case 78:{const mi=kh(p,262144)?pi([Uy(p),m],2):p;return w===78&&et(m),mi}case 64:const Sr=Nr(n.parent)?lc(n.parent):0;return H(Sr,m),Tt(Sr)?((!(m.flags&524288)||Sr!==2&&Sr!==6&&!Vy(m)&&!mge(m)&&!(Hr(m)&1))&&et(m),p):(et(m),m);case 28:if(!W.allowUnreachableCode&&Z5(n)&&!Q(n.parent)){const mi=zn(n),io=mi.text,ii=wa(io,n.pos);mi.parseDiagnostics.some(Ko=>Ko.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:q9(Ko,ii))||Ze(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return m;default:return C.fail()}function U(Sn,vn){return wd(Sn,2112)&&wd(vn,2112)}function H(Sn,vn){if(Sn===2)for(const Sr of Gv(vn)){const mi=_r(Sr);if(mi.symbol&&mi.symbol.flags&32){const io=Sr.escapedName,ii=gt(Sr.valueDeclaration,io,788968,void 0,!1);ii?.declarations&&ii.declarations.some(M1)&&(Fg(ii,f.Duplicate_identifier_0,Vi(io),Sr),Fg(Sr,f.Duplicate_identifier_0,Vi(io),ii))}}}function Q(Sn){return Sn.parent.kind===218&&op(Sn.left)&&Sn.left.text==="0"&&(ea(Sn.parent.parent)&&Sn.parent.parent.expression===Sn.parent||Sn.parent.parent.kind===216)&&(Ys(Sn.right)||Je(Sn.right)&&Sn.right.escapedText==="eval")}function xe(Sn){const vn=Q5(p,12288)?n:Q5(m,12288)?c:void 0;return vn?(Ze(vn,f.The_0_operator_cannot_be_applied_to_type_symbol,_a(Sn)),!1):!0}function Se(Sn){switch(Sn){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function et(Sn){uy(w)&&r(vn);function vn(){let Sr=p;if(hP(a.kind)&&n.kind===212&&(Sr=E$(n,void 0,!0)),fW(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let mi;if(Ne&&qr(n)&&oc(Sn,32768)){const io=_n(Od(n.expression),n.name.escapedText);FY(Sn,io)&&(mi=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}kE(Sn,Sr,n,c,mi)}}}function Tt(Sn){var vn;switch(Sn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Sr=Rf(n),mi=TI(c);return!!mi&&za(mi)&&!!((vn=Sr?.exports)!=null&&vn.size);default:return!1}}function Dt(Sn){return Sn(p,m)?!1:($t(Sn),!0)}function $t(Sn){let vn=!1;const Sr=I||a;if(Sn){const Ko=Jy(p),ms=Jy(m);vn=!(Ko===p&&ms===m)&&!!(Ko&&ms)&&Sn(Ko,ms)}let mi=p,io=m;!vn&&Sn&&([mi,io]=q_t(p,m,Sn));const[ii,Bi]=_L(mi,io);Tn(Sr,vn,ii,Bi)||Rv(Sr,vn,f.Operator_0_cannot_be_applied_to_types_1_and_2,_a(a.kind),ii,Bi)}function Tn(Sn,vn,Sr,mi){switch(a.kind){case 37:case 35:case 38:case 36:return Rv(Sn,vn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Sr,mi);default:return}}function nr(Sn,vn,Sr,mi){const io=yr(us(Sr)),ii=yr(us(mi));if(io||ii){const Bi=Ze(Sn,f.This_condition_will_always_return_0,_a(vn===37||vn===35?97:112));if(io&&ii)return;const Ko=vn===38||vn===36?_a(54):"",ms=io?mi:Sr,fo=us(ms);pa(Bi,Ar(ms,f.Did_you_mean_0,`${Ko}Number.isNaN(${Ns(fo)?kp(fo):"..."})`))}}function yr(Sn){if(Je(Sn)&&Sn.escapedText==="NaN"){const vn=vdt();return!!vn&&vn===_u(Sn)}return!1}}function q_t(n,a,c){let p=n,m=a;const v=jy(n),I=jy(a);return c(v,I)||(p=v,m=I),[p,m]}function J_t(n){r(xe);const a=pf(n);if(!a)return He;const c=pc(a);if(!(c&1))return He;const p=(c&2)!==0;n.asteriskToken&&(p&&GAye(Se,c,void 0)));const v=m&&Bye(m,p),I=v&&v.yieldType||He,w=v&&v.nextType||He,U=n.expression?_o(n.expression):B,H=o3e(n,U,w,p);if(m&&H&&kE(H,I,n.expression||n,n.expression),n.asteriskToken)return Oye(p?19:17,1,U,n.expression)||He;if(m)return Kv(2,m,p)||He;let Q=z6e(2,a);return Q||(Q=He,r(()=>{if(be&&!Zre(n)){const Se=Ku(n,void 0);(!Se||wr(Se))&&Ze(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Q;function xe(){n.flags&16384||md(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),Nge(n)&&Ze(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function K_t(n,a){const c=EW(n.condition,a);Pye(n.condition,c,n.whenTrue);const p=_o(n.whenTrue,a),m=_o(n.whenFalse,a);return pi([p,m],2)}function h3e(n){const a=n.parent;return zu(a)&&h3e(a)||zs(a)&&a.argumentExpression===n}function X_t(n){const a=[n.head.text],c=[];for(const m of n.templateSpans){const v=_o(m.expression);Q5(v,12288)&&Ze(m.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(m.literal.text),c.push(sa(v,la)?v:yt)}const p=n.parent.kind!==216&&Be(n).value;return p?dR(Ip(p)):VL(n)||h3e(n)||dm(Ku(n,void 0)||Nt,Y_t)?RA(a,c):yt}function Y_t(n){return!!(n.flags&134217856||n.flags&58982400&&oc(kd(n)||Nt,402653316))}function $_t(n){return JS(n)&&!C1(n.parent)?n.parent.parent:n}function aN(n,a,c,p){const m=$_t(n);O5(m,a,!1),omt(m,c);const v=_o(n,p|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const I=oc(v,2944)&&W$(v,m$(a,n,void 0))?Pu(v):v;return amt(),iW(),I}function Hl(n,a){if(a)return _o(n,a);const c=Vr(n);if(!c.resolvedType){const p=Lr,m=$i;Lr=Yn,$i=void 0,c.resolvedType=_o(n,a),$i=m,Lr=p}return c.resolvedType}function _3e(n){return n=us(n,!0),n.kind===217||n.kind===235||XS(n)}function GL(n,a,c){const p=Tk(n);if(Ir(n)){const v=c4(n);if(v)return sye(p,v,a)}const m=Eye(p)||(c?aN(p,c,void 0,a||0):Hl(p,a));if(Zi(qa(n)?YE(n):n)){if(n.name.kind===207&&qv(m))return Q_t(m,n.name);if(n.name.kind===208&&Xa(m))return Z_t(m,n.name)}return m}function Q_t(n,a){let c;for(const v of a.elements)if(v.initializer){const I=g3e(v);I&&!Ea(n,I)&&(c=Vn(c,v))}if(!c)return n;const p=da();for(const v of Gv(n))p.set(v.escapedName,v);for(const v of c){const I=Ua(16777220,g3e(v));I.links.type=Dh(v,!1,!1),p.set(I.escapedName,I)}const m=Sl(n.symbol,p,ie,ie,Qd(n));return m.objectFlags=n.objectFlags,m}function g3e(n){const a=Fy(n.propertyName||n.name);return Jf(a)?Kf(a):void 0}function Z_t(n,a){if(n.target.combinedFlags&12||jv(n)>=a.elements.length)return n;const c=a.elements,p=CE(n).slice(),m=n.target.elementFlags.slice();for(let v=jv(n);vW$(n,p))}if(a.flags&58982400){const c=kd(a)||Nt;return oc(c,4)&&oc(n,128)||oc(c,8)&&oc(n,256)||oc(c,64)&&oc(n,2048)||oc(c,4096)&&oc(n,8192)||W$(n,c)}return!!(a.flags&406847616&&oc(n,128)||a.flags&256&&oc(n,256)||a.flags&2048&&oc(n,2048)||a.flags&512&&oc(n,512)||a.flags&8192&&oc(n,8192))}return!1}function VL(n){const a=n.parent;return SS(a)&&Gm(a.type)||XS(a)&&Gm(WD(a))||aye(n)&&AA(Ku(n,0))||(zu(a)||Nd(a)||Yf(a))&&VL(a)||(Pc(a)||Jd(a)||ND(a))&&VL(a.parent)}function jL(n,a,c){const p=_o(n,a,c);return VL(n)||yne(n)?Pu(p):_3e(n)?p:K_e(p,m$(Ku(n,void 0),n,void 0))}function v3e(n,a){return n.name.kind===168&&ah(n.name),jL(n.initializer,a)}function b3e(n,a){U7e(n),n.name.kind===168&&ah(n.name);const c=c3e(n,a);return T3e(n,c,a)}function T3e(n,a,c){if(c&&c&10){const p=lW(a,0,!0),m=lW(a,1,!0),v=p||m;if(v&&v.typeParameters){const I=iS(n,2);if(I){const w=lW(Uy(I),p?0:1,!1);if(w&&!w.typeParameters){if(c&8)return S3e(n,c),xs;const U=OE(n),H=U.signature&&fs(U.signature),Q=H&&D4e(H);if(Q&&!Q.typeParameters&&!Hn(U.inferences,sN)){const xe=rgt(U,v.typeParameters),Se=$he(v,xe),et=Yt(U.inferences,Tt=>tge(Tt.typeParameter));if($_e(Se,w,(Tt,Dt)=>{$g(et,Tt,Dt,0,!0)}),vt(et,sN)&&(Q_e(Se,w,(Tt,Dt)=>{$g(et,Tt,Dt)}),!tgt(U.inferences,et)))return ngt(U.inferences,et),U.inferredTypeParameters=ao(U.inferredTypeParameters,xe),IA(Se)}return IA(C4e(v,w,U))}}}}return a}function S3e(n,a){if(a&2){const c=OE(n);c.flags|=4}}function sN(n){return!!(n.candidates||n.contraCandidates)}function egt(n){return!!(n.candidates||n.contraCandidates||B8e(n.typeParameter))}function tgt(n,a){for(let c=0;cc.symbol.escapedName===a)}function igt(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;const p=a.slice(0,c);for(let m=1;;m++){const v=p+m;if(!Sye(n,v))return v}}function E3e(n){const a=VA(n);if(a&&!a.typeParameters)return fs(a)}function ogt(n){const a=_o(n.expression),c=Y8(a,n.expression),p=E3e(a);return p&&KY(p,n,c!==a)}function Od(n){const a=Eye(n);if(a)return a;if(n.flags&268435456&&$i){const m=$i[ls(n)];if(m)return m}const c=xo,p=_o(n,64);if(xo!==c){const m=$i||($i=[]);m[ls(n)]=p,Qre(n,n.flags|268435456)}return p}function Eye(n){let a=us(n,!0);if(XS(a)){const c=WD(a);if(!Gm(c))return Ji(c)}if(a=us(n),Wb(a)){const c=Eye(a.expression);return c?gR(c):void 0}if(ea(a)&&a.expression.kind!==108&&!np(a,!0)&&!j4e(a)&&!tp(a))return QE(a)?ogt(a):E3e(rN(a.expression));if(SS(a)&&!Gm(a.type))return Ji(a.type);if(ZE(n)||UN(n))return _o(n)}function tB(n){const a=Vr(n);if(a.contextFreeType)return a.contextFreeType;O5(n,He,!1);const c=a.contextFreeType=_o(n,4);return iW(),c}function _o(n,a,c){var p,m;(p=xr)==null||p.push(xr.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const v=R;R=n,y=0;const I=lgt(n,a,c),w=T3e(n,I,a);return O$(w)&&agt(n,w),R=v,(m=xr)==null||m.pop(),w}function agt(n,a){var c;const p=n.parent.kind===212&&n.parent.expression===n||n.parent.kind===213&&n.parent.expression===n||(n.kind===80||n.kind===167)&&eQ(n)||n.parent.kind===187&&n.parent.exprName===n||n.parent.kind===282;if(p||Ze(n,f.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),W.isolatedModules||W.verbatimModuleSyntax&&p&&!gt(n,Ou(n),2097152,void 0,!1,!0)){C.assert(!!(a.symbol.flags&128));const m=a.symbol.valueDeclaration,v=(c=e.getRedirectFromOutput(zn(m).resolvedPath))==null?void 0:c.resolvedRef;m.flags&33554432&&!JT(n)&&(!v||!Nb(v.commandLine.options))&&Ze(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}function sgt(n,a){if(rf(n)){if(aj(n))return sye(n.expression,sj(n),a);if(XS(n))return J4e(n,a)}return _o(n.expression,a)}function lgt(n,a,c){const p=n.kind;if(i)switch(p){case 232:case 219:case 220:i.throwIfCancellationRequested()}switch(p){case 80:return Dft(n,a);case 81:return Zmt(n);case 110:return k5(n);case 108:return u$(n);case 106:return Le;case 15:case 11:return age(n)?Ot:dR(Ip(n.text));case 9:return Y7e(n),dR(Ph(+n.text));case 10:return dTt(n),dR(u5({negative:!1,base10Value:LM(n.text)}));case 112:return mt;case 97:return tr;case 229:return X_t(n);case 14:return Emt(n);case 210:return Y6e(n,a,c);case 211:return Mmt(n,a);case 212:return E$(n,a);case 167:return f4e(n,a);case 213:return mht(n,a);case 214:if(tp(n))return qht(n);case 215:return Hht(n,a);case 216:return Jht(n);case 218:return sgt(n,a);case 232:return Qyt(n);case 219:case 220:return c3e(n,a);case 222:return C_t(n);case 217:case 235:return Kht(n,a);case 236:return $ht(n);case 234:return X4e(n);case 239:return Qht(n);case 237:return Zht(n);case 221:return R_t(n);case 223:return N_t(n);case 224:return M_t(n);case 225:return P_t(n);case 226:return L_t(n);case 227:return Ee(n,a);case 228:return K_t(n,a);case 231:return Amt(n,a);case 233:return B;case 230:return J_t(n);case 238:return Imt(n);case 295:return qmt(n,a);case 285:return wmt(n);case 286:return Lmt(n);case 289:return Omt(n);case 293:return Fmt(n,a);case 287:C.fail("Shouldn't ever directly check a JsxOpeningElement")}return nt}function A3e(n){Zg(n),n.expression&&md(n.expression,f.Type_expected),Wa(n.constraint),Wa(n.default);const a=q0(Wr(n));kd(a),Act(a)||Ze(n.default,f.Type_parameter_0_has_a_circular_default,sr(a));const c=Ju(a),p=RE(a);c&&p&&eu(p,$p(ro(c,PE(a,p)),p),n.default,f.Type_0_does_not_satisfy_the_constraint_1),yR(n),r(()=>JL(n.name,f.Type_parameter_name_cannot_be_0))}function cgt(n){var a,c;if(yd(n.parent)||ui(n.parent)||Im(n.parent)){const p=q0(Wr(n)),m=j_e(p)&24576;if(m){const v=Wr(n.parent);if(Im(n.parent)&&!(Hr(Ks(v))&48))Ze(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(m===8192||m===16384){(a=xr)==null||a.push(xr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:fd(Ks(v)),id:fd(p)});const I=y5(v,p,m===16384?Ht:ft),w=y5(v,p,m===16384?ft:Ht),U=p;N=p,eu(I,w,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),N=U,(c=xr)==null||c.pop()}}}}function I3e(n){Zg(n),sB(n);const a=pf(n);di(n,31)&&(W.erasableSyntaxOnly&&Ze(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a.kind===177&&vm(a.body)||Ze(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===177&&Je(n.name)&&n.name.escapedText==="constructor"&&Ze(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&BI(n)&&Zo(n.name)&&a.body&&Ze(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Je(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Ze(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===177||a.kind===181||a.kind===186)&&Ze(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===220&&Ze(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===178||a.kind===179)&&Ze(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Zo(n.name)&&!sa(Fm(_r(n.symbol)),qp)&&Ze(n,f.A_rest_parameter_must_be_of_an_array_type)}function dgt(n){const a=ugt(n);if(!a){Ze(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=Nf(a),p=am(c);if(!p)return;Wa(n.type);const{parameterName:m}=n;if(p.kind!==0&&p.kind!==2){if(p.parameterIndex>=0){if(du(c)&&p.parameterIndex===c.parameters.length-1)Ze(m,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(p.type){const v=()=>qo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);eu(p.type,_r(c.parameters[p.parameterIndex]),n.type,void 0,v)}}else if(m){let v=!1;for(const{name:I}of a.parameters)if(Zo(I)&&x3e(I,m,p.parameterName)){v=!0;break}v||Ze(n.parameterName,f.Cannot_find_parameter_0,p.parameterName)}}}function ugt(n){switch(n.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:const a=n.parent;if(n===a.type)return a}}function x3e(n,a,c){for(const p of n.elements){if(Xc(p))continue;const m=p.name;if(m.kind===80&&m.escapedText===c)return Ze(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((m.kind===208||m.kind===207)&&x3e(m,a,c))return!0}}function hW(n){n.kind===182?zbt(n):(n.kind===185||n.kind===263||n.kind===186||n.kind===180||n.kind===177||n.kind===181)&&aQ(n);const a=pc(n);a&4||((a&3)===3&&G0&&c.declarations[0]!==n)return}const a=gY(Wr(n));if(a?.declarations){const c=new Map;for(const p of a.declarations)Ob(p)&&p.parameters.length===1&&p.parameters[0].type&&FA(Ji(p.parameters[0].type),m=>{const v=c.get(fd(m));v?v.declarations.push(p):c.set(fd(m),{type:m,declarations:[p]})});c.forEach(p=>{if(p.declarations.length>1)for(const m of p.declarations)Ze(m,f.Duplicate_index_signature_for_type_0,sr(p.type))})}}function D3e(n){!Zg(n)&&!sTt(n)&&sQ(n.name),sB(n),F$(n),di(n,64)&&n.kind===173&&n.initializer&&Ze(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ws(n.name))}function mgt(n){return Qi(n.name)&&Ze(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),D3e(n)}function hgt(n){U7e(n)||sQ(n.name),Ll(n)&&n.asteriskToken&&Je(n.name)&&Kr(n.name)==="constructor"&&Ze(n.name,f.Class_constructor_may_not_be_a_generator),B3e(n),di(n,64)&&n.kind===175&&n.body&&Ze(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ws(n.name)),Qi(n.name)&&!_d(n)&&Ze(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),F$(n)}function F$(n){if(Qi(n.name)&&(Gdi(H,31))))if(!ygt(w,n.body))Ze(w,f.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 H;for(const Q of n.body.statements){if(ad(Q)&&a1(Kl(Q.expression))){H=Q;break}if(C3e(Q))break}H===void 0&&Ze(n,f.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 I||Ze(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function ygt(n,a){const c=Um(n.parent);return ad(c)&&c.parent===a}function C3e(n){return n.kind===108||n.kind===110?!0:Ine(n)?!1:!!Jo(n,C3e)}function N3e(n){Je(n.name)&&Kr(n.name)==="constructor"&&ui(n.parent)&&Ze(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Wa(n.body),F$(n);function a(){if(!aQ(n)&&!Kbt(n)&&sQ(n.name),iB(n),hW(n),n.kind===178&&!(n.flags&33554432)&&vm(n.body)&&n.flags&512&&(n.flags&1024||Ze(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===168&&ah(n.name),UC(n)){const p=Wr(n),m=ll(p,178),v=ll(p,179);if(m&&v&&!(bR(m)&1)){Vr(m).flags|=1;const I=Ud(m),w=Ud(v);(I&64)!==(w&64)&&(Ze(m.name,f.Accessors_must_both_be_abstract_or_non_abstract),Ze(v.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(w&6)||I&2&&!(w&2))&&(Ze(m.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ze(v.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=TL(Wr(n));n.kind===178&&_ye(n,c)}}function vgt(n){iB(n)}function bgt(n,a,c){return n.typeArguments&&c{const p=xye(n);p&&M3e(n,p)});const c=Vr(n).resolvedSymbol;c&&vt(c.declarations,p=>zI(p)&&!!(p.flags&536870912))&&wm(q5(n),c.declarations,c.escapedName)}}function Sgt(n){const a=ni(n.parent,wF);if(!a)return;const c=xye(a);if(!c)return;const p=Ju(c[a.typeArguments.indexOf(n)]);return p&&ro(p,Zp(c,z$(a,c)))}function Egt(n){uWe(n)}function Agt(n){qe(n.members,Wa),r(a);function a(){const c=tFe(n);K$(c,c.symbol),Iye(n),R3e(n)}}function Igt(n){Wa(n.elementType)}function xgt(n){let a=!1,c=!1;for(const p of n.elements){let m=c_e(p);if(m&8){const v=Ji(p.type);if(!Hv(v)){Ze(p,f.A_rest_element_type_must_be_an_array_type);break}(lm(v)||Xa(v)&&v.target.combinedFlags&4)&&(m|=4)}if(m&4){if(c){Cn(p,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(m&2){if(c){Cn(p,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(m&1&&a){Cn(p,f.A_required_element_cannot_follow_an_optional_element);break}}qe(n.elements,Wa),Ji(n)}function Rgt(n){qe(n.types,Wa),Ji(n)}function L3e(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,p=n.indexType,m=mp(c)&&k8(c)===2?zWe(c,0):E_(c,0),v=!!Jg(c,Bt);if(xp(p,I=>sa(I,m)||v&&oR(I,Bt)))return a.kind===213&&xb(a)&&Hr(c)&32&&eg(c)&1&&Ze(a,f.Index_signature_in_type_0_only_permits_reading,sr(c)),n;if(CA(c)){const I=DY(p,a);if(I){const w=FA(Mu(c),U=>Ea(U,I));if(w&&qf(w)&6)return Ze(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Vi(I)),nt}}return Ze(a,f.Type_0_cannot_be_used_to_index_type_1,sr(p),sr(c)),nt}function Dgt(n){Wa(n.objectType),Wa(n.indexType),L3e(XWe(n),n)}function Cgt(n){Ngt(n),Wa(n.typeParameter),Wa(n.nameType),Wa(n.type),n.type||nS(n,He);const a=T_e(n),c=Bv(a);if(c)eu(c,Ri,n.nameType);else{const p=Cf(a);eu(p,Ri,jR(n.typeParameter))}}function Ngt(n){var a;if((a=n.members)!=null&&a.length)return Cn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function Mgt(n){D_e(n)}function Pgt(n){Ybt(n),Wa(n.type)}function Lgt(n){Jo(n,Wa)}function kgt(n){Dn(n,c=>c.parent&&c.parent.kind===195&&c.parent.extendsType===c)||Cn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Wa(n.typeParameter);const a=Wr(n.typeParameter);if(a.declarations&&a.declarations.length>1){const c=Jr(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;const p=q0(a),m=Hte(a,169);if(!o7e(m,[p],v=>[v])){const v=co(a);for(const I of m)Ze(I.name,f.All_declarations_of_0_must_have_identical_constraints,v)}}}ST(n)}function wgt(n){for(const a of n.templateSpans){Wa(a.type);const c=Ji(a.type);eu(c,la,a.type)}Ji(n)}function Ogt(n){Wa(n.argument),n.attributes&&$D(n.attributes,Cn),P3e(n)}function Wgt(n){n.dotDotDotToken&&n.questionToken&&Cn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===191&&Cn(n.type,f.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===192&&Cn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Wa(n.type),Ji(n)}function nB(n){return(Fp(n,2)||ou(n))&&!!(n.flags&33554432)}function _W(n,a){let c=cQ(n);if(n.parent.kind!==265&&n.parent.kind!==264&&n.parent.kind!==232&&n.flags&33554432){const p=JF(n);p&&p.flags&128&&!(c&128)&&!(i_(n.parent)&&mc(n.parent.parent)&&L_(n.parent.parent))&&(c|=32),c|=128}return c&a}function B$(n){r(()=>Fgt(n))}function Fgt(n){function a(Sn,vn){return vn!==void 0&&vn.parent===Sn[0].parent?vn:Sn[0]}function c(Sn,vn,Sr,mi,io){if((mi^io)!==0){const Bi=_W(a(Sn,vn),Sr);MR(Sn,Ko=>zn(Ko).fileName).forEach(Ko=>{const ms=_W(a(Ko,vn),Sr);for(const fo of Ko){const pl=_W(fo,Sr)^Bi,Ql=_W(fo,Sr)^ms;Ql&32?Ze(wo(fo),f.Overload_signatures_must_all_be_exported_or_non_exported):Ql&128?Ze(wo(fo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):pl&6?Ze(wo(fo)||fo,f.Overload_signatures_must_all_be_public_private_or_protected):pl&64&&Ze(wo(fo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function p(Sn,vn,Sr,mi){if(Sr!==mi){const io=AI(a(Sn,vn));qe(Sn,ii=>{AI(ii)!==io&&Ze(wo(ii),f.Overload_signatures_must_all_be_optional_or_required)})}}const m=230;let v=0,I=m,w=!1,U=!0,H=!1,Q,xe,Se;const et=n.declarations,Tt=(n.flags&16384)!==0;function Dt(Sn){if(Sn.name&&zl(Sn.name))return;let vn=!1;const Sr=Jo(Sn.parent,io=>{if(vn)return io;vn=io===Sn});if(Sr&&Sr.pos===Sn.end&&Sr.kind===Sn.kind){const io=Sr.name||Sr,ii=Sr.name;if(Sn.name&&ii&&(Qi(Sn.name)&&Qi(ii)&&Sn.name.escapedText===ii.escapedText||va(Sn.name)&&va(ii)&&Yg(ah(Sn.name),ah(ii))||Xh(Sn.name)&&Xh(ii)&&pM(Sn.name)===pM(ii))){if((Sn.kind===175||Sn.kind===174)&&ua(Sn)!==ua(Sr)){const Ko=ua(Sn)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;Ze(io,Ko)}return}if(vm(Sr.body)){Ze(io,f.Function_implementation_name_must_be_0,Ws(Sn.name));return}}const mi=Sn.name||Sn;Tt?Ze(mi,f.Constructor_implementation_is_missing):di(Sn,64)?Ze(mi,f.All_declarations_of_an_abstract_method_must_be_consecutive):Ze(mi,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let $t=!1,Tn=!1,nr=!1;const yr=[];if(et)for(const Sn of et){const vn=Sn,Sr=vn.flags&33554432,mi=vn.parent&&(vn.parent.kind===265||vn.parent.kind===188)||Sr;if(mi&&(Se=void 0),(vn.kind===264||vn.kind===232)&&!Sr&&(nr=!0),vn.kind===263||vn.kind===175||vn.kind===174||vn.kind===177){yr.push(vn);const io=_W(vn,m);v|=io,I&=io,w=w||AI(vn),U=U&&AI(vn);const ii=vm(vn.body);ii&&Q?Tt?Tn=!0:$t=!0:Se?.parent===vn.parent&&Se.end!==vn.pos&&Dt(Se),ii?Q||(Q=vn):H=!0,Se=vn,mi||(xe=vn)}Ir(Sn)&&$o(Sn)&&Sn.jsDoc&&(H=Qe($G(Sn))>0)}if(Tn&&qe(yr,Sn=>{Ze(Sn,f.Multiple_constructor_implementations_are_not_allowed)}),$t&&qe(yr,Sn=>{Ze(wo(Sn)||Sn,f.Duplicate_function_implementation)}),nr&&!Tt&&n.flags&16&&et){const Sn=Un(et,vn=>vn.kind===264).map(vn=>Ar(vn,f.Consider_adding_a_declare_modifier_to_this_class));qe(et,vn=>{const Sr=vn.kind===264?f.Class_declaration_cannot_implement_overload_list_for_0:vn.kind===263?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Sr&&pa(Ze(wo(vn)||vn,Sr,Fl(n)),...Sn)})}if(xe&&!xe.body&&!di(xe,64)&&!xe.questionToken&&Dt(xe),H&&(et&&(c(et,Q,m,v,I),p(et,Q,w,U)),Q)){const Sn=DE(n),vn=Nf(Q);for(const Sr of Sn)if(!But(vn,Sr)){const mi=Sr.declaration&&hv(Sr.declaration)?Sr.declaration.parent.tagName:Sr.declaration;pa(Ze(mi,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Ar(Q,f.The_implementation_signature_is_declared_here));break}}}function gW(n){r(()=>zgt(n))}function zgt(n){let a=n.localSymbol;if(!a&&(a=Wr(n),!a.exportSymbol)||ll(a,n.kind)!==n)return;let c=0,p=0,m=0;for(const H of a.declarations){const Q=U(H),xe=_W(H,2080);xe&32?xe&2048?m|=Q:c|=Q:p|=Q}const v=c|p,I=c&p,w=m&v;if(I||w)for(const H of a.declarations){const Q=U(H),xe=wo(H);Q&w?Ze(xe,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ws(xe)):Q&I&&Ze(xe,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ws(xe))}function U(H){let Q=H;switch(Q.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return Tu(Q)||yy(Q)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:const xe=Q,Se=dl(xe)?xe.expression:xe.right;if(!Ns(Se))return 1;Q=Se;case 272:case 275:case 274:let et=0;const Tt=pd(Wr(Q));return qe(Tt.declarations,Dt=>{et|=U(Dt)}),et;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return C.failBadSyntaxKind(Q)}}}function UL(n,a,c,...p){const m=yW(n,a);return m&&gR(m,a,c,...p)}function yW(n,a,c){if(wr(n))return;const p=n;if(p.promisedTypeOfPromise)return p.promisedTypeOfPromise;if(Yp(n,o5(!1)))return p.promisedTypeOfPromise=ol(n)[0];if(mW(S_(n),402915324))return;const m=_n(n,"then");if(wr(m))return;const v=m?ra(m,0):ie;if(v.length===0){a&&Ze(a,f.A_promise_must_have_a_then_method);return}let I,w;for(const Q of v){const xe=X0(Q);xe&&xe!==In&&!A_(n,xe,J_)?I=xe:w=Vn(w,Q)}if(!w){C.assertIsDefined(I),c&&(c.value=I),a&&Ze(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,sr(n),sr(I));return}const U=cm(pi(Yt(w,uye)),2097152);if(wr(U))return;const H=ra(U,0);if(H.length===0){a&&Ze(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return p.promisedTypeOfPromise=pi(Yt(H,uye),2)}function rB(n,a,c,p,...m){return(a?gR(n,c,p,...m):Jy(n,c,p,...m))||nt}function k3e(n){if(mW(S_(n),402915324))return!1;const a=_n(n,"then");return!!a&&ra(cm(a,2097152),0).length>0}function G$(n){var a;if(n.flags&16777216){const c=l_e(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function HL(n){return n.flags&1048576?El(n,HL):G$(n)?n.aliasTypeArguments[0]:n}function w3e(n){if(wr(n)||G$(n))return!1;if(CA(n)){const a=kd(n);if(a?a.flags&3||Vy(a)||dm(a,k3e):oc(n,8650752))return!0}return!1}function Bgt(n){const a=l_e(!0);if(a)return KC(a,[HL(n)])}function Ggt(n){return w3e(n)?Bgt(n)??n:(C.assert(G$(n)||yW(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n)}function gR(n,a,c,...p){const m=Jy(n,a,c,...p);return m&&Ggt(m)}function Jy(n,a,c,...p){if(wr(n)||G$(n))return n;const m=n;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(n.flags&1048576){if(Zb.lastIndexOf(n.id)>=0){a&&Ze(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const w=a?H=>Jy(H,a,c,...p):Jy;Zb.push(n.id);const U=El(n,w);return Zb.pop(),m.awaitedTypeOfType=U}if(w3e(n))return m.awaitedTypeOfType=n;const v={value:void 0},I=yW(n,void 0,v);if(I){if(n.id===I.id||Zb.lastIndexOf(I.id)>=0){a&&Ze(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Zb.push(n.id);const w=Jy(I,a,c,...p);return Zb.pop(),w?m.awaitedTypeOfType=w:void 0}if(k3e(n)){if(a){C.assertIsDefined(c);let w;v.value&&(w=qo(w,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,sr(n),sr(v.value))),w=qo(w,c,...p),rs.add(bg(zn(a),a,w))}return}return m.awaitedTypeOfType=n}function Vgt(n,a,c){const p=Ji(a);if(G>=2){if(pr(p))return;const v=o5(!0);if(v!==Zt&&!Yp(p,v)){m(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,sr(Jy(p)||In));return}}else{if(mR(n,5),pr(p))return;const v=hk(a);if(v===void 0){m(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,sr(p));return}const I=Ul(v,111551,!0),w=I?_r(I):nt;if(pr(w)){v.kind===80&&v.escapedText==="Promise"&&Gn(p)===o5(!1)?Ze(c,f.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):m(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,kp(v));return}const U=Yct(!0);if(U===Da){m(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,kp(v));return}const H=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!eu(w,U,c,H,()=>a===c?void 0:qo(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const xe=v&&Ou(v),Se=Ed(n.locals,xe.escapedText,111551);if(Se){Ze(Se.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Kr(xe),kp(v));return}}rB(p,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function m(v,I,w,U){if(I===w)Ze(w,v,U);else{const H=Ze(w,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);pa(H,Ar(I,v,U))}}}function jgt(n){const a=zn(n);if(!AT(a)){let c=n.expression;if(zu(c))return!1;let p=!0,m;for(;;){if(my(c)||ex(c)){c=c.expression;continue}if(ea(c)){p||(m=c),c.questionDotToken&&(m=c.questionDotToken),c=c.expression,p=!1;continue}if(qr(c)){c.questionDotToken&&(m=c.questionDotToken),c=c.expression,p=!1;continue}Je(c)||(m=c);break}if(m)return pa(Ze(n.expression,f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Ar(m,f.Invalid_syntax_in_decorator)),!0}return!1}function Ugt(n){jgt(n);const a=oN(n);P$(a,n);const c=fs(a);if(c.flags&1)return;const p=mye(n);if(!p?.resolvedReturnType)return;let m;const v=p.resolvedReturnType;switch(n.parent.kind){case 264:case 232:m=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!J){m=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:m=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:m=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return C.failBadSyntaxKind(n.parent)}eu(c,v,n.expression,m)}function vW(n,a,c,p,m,v=c.length,I=0){const w=L.createFunctionTypeNode(void 0,ie,L.createKeywordTypeNode(133));return T_(w,n,a,c,p,m,v,I)}function Dye(n,a,c,p,m,v,I){const w=vW(n,a,c,p,m,v,I);return IA(w)}function O3e(n){return Dye(void 0,void 0,ie,n)}function W3e(n){const a=If("value",n);return Dye(void 0,void 0,[a],In)}function Cye(n){if(n)switch(n.kind){case 194:case 193:return F3e(n.types);case 195:return F3e([n.trueType,n.falseType]);case 197:case 203:return Cye(n.type);case 184:return n.typeName}}function F3e(n){let a;for(let c of n){for(;c.kind===197||c.kind===203;)c=c.type;if(c.kind===146||!oe&&(c.kind===202&&c.literal.kind===106||c.kind===157))continue;const p=Cye(c);if(!p)return;if(a){if(!Je(a)||!Je(p)||a.escapedText!==p.escapedText)return}else a=p}return a}function V$(n){const a=Cc(n);return M_(n)?BG(a):a}function iB(n){if(!YS(n)||!mf(n)||!n.modifiers||!_k(J,n,n.parent,n.parent.parent))return;const a=mn(n.modifiers,Bc);if(a){J?(Zc(a,8),n.kind===170&&Zc(a,32)):G1)for(let p=1;p0),c.length>1&&Ze(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const p=z3e(n.class.expression),m=MS(a);if(m){const v=z3e(m.expression);v&&p.escapedText!==v.escapedText&&Ze(p,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Kr(n.tagName),Kr(p),Kr(v))}}function iyt(n){const a=CS(n);a&&ou(a)&&Ze(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function z3e(n){switch(n.kind){case 80:return n;case 212:return n.name;default:return}}function B3e(n){var a;iB(n),hW(n);const c=pc(n);if(n.name&&n.name.kind===168&&ah(n.name),UC(n)){const v=Wr(n),I=n.localSymbol||v,w=(a=I.declarations)==null?void 0:a.find(U=>U.kind===n.kind&&!(U.flags&524288));n===w&&B$(I),v.parent&&B$(v)}const p=n.kind===174?void 0:n.body;if(Wa(p),_ye(n,qC(n)),r(m),Ir(n)){const v=wT(n);v&&v.typeExpression&&!Oge(Ji(v.typeExpression),n)&&Ze(v.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){Wp(n)||(zl(p)&&!nB(n)&&nS(n,He),c&1&&vm(p)&&fs(Nf(n)))}}function ST(n){r(a);function a(){const c=zn(n);let p=Qn.get(c.path);p||(p=[],Qn.set(c.path,p)),p.push(n)}}function G3e(n,a){for(const c of n)switch(c.kind){case 264:case 232:oyt(c,a),Nye(c,a);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:U3e(c,a);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:c.body&&U3e(c,a),Nye(c,a);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:Nye(c,a);break;case 196:ayt(c,a);break;default:C.assertNever(c,"Node should not have been registered for unused identifiers check")}}function V3e(n,a,c){const p=wo(n)||n,m=zI(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,Ar(p,m,a))}function bW(n){return Je(n)&&Kr(n).charCodeAt(0)===95}function oyt(n,a){for(const c of n.members)switch(c.kind){case 175:case 173:case 178:case 179:if(c.kind===179&&c.symbol.flags&32768)break;const p=Wr(c);!p.isReferenced&&(Fp(c,2)||rd(c)&&Qi(c.name))&&!(c.flags&33554432)&&a(c,0,Ar(c.name,f._0_is_declared_but_its_value_is_never_read,co(p)));break;case 177:for(const m of c.parameters)!m.symbol.isReferenced&&di(m,2)&&a(m,0,Ar(m.name,f.Property_0_is_declared_but_its_value_is_never_read,Fl(m.symbol)));break;case 182:case 241:case 176:break;default:C.fail("Unexpected class member")}}function ayt(n,a){const{typeParameter:c}=n;Mye(c)&&a(n,1,Ar(n,f._0_is_declared_but_its_value_is_never_read,Kr(c.name)))}function Nye(n,a){const c=Wr(n).declarations;if(!c||Ga(c)!==n)return;const p=mb(n),m=new Set;for(const v of p){if(!Mye(v))continue;const I=Kr(v.name),{parent:w}=v;if(w.kind!==196&&w.typeParameters.every(Mye)){if(Wf(m,w)){const U=zn(w),H=xm(w)?ej(w):tj(U,w.typeParameters),xe=w.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,I]:[f.All_type_parameters_are_unused];a(v,1,zc(U,H.pos,H.end-H.pos,...xe))}}else a(v,1,Ar(v,f._0_is_declared_but_its_value_is_never_read,I))}}function Mye(n){return!(as(n.symbol).isReferenced&262144)&&!bW(n.name)}function oB(n,a,c,p){const m=String(p(a)),v=n.get(m);v?v[1].push(c):n.set(m,[a,[c]])}function j3e(n){return ni(Yh(n),Zi)}function syt(n){return qa(n)?hf(n.parent)?!!(n.propertyName&&bW(n.name)):bW(n.name):Tu(n)||(yi(n)&&n1(n.parent.parent)||H3e(n))&&bW(n.name)}function U3e(n,a){const c=new Map,p=new Map,m=new Map;n.locals.forEach(v=>{if(!(v.flags&262144?!(v.flags&3&&!(v.isReferenced&3)):v.isReferenced||v.exportSymbol)&&v.declarations){for(const I of v.declarations)if(!syt(I))if(H3e(I))oB(c,cyt(I),I,ls);else if(qa(I)&&hf(I.parent)){const w=Ga(I.parent.elements);(I===w||!Ga(I.parent.elements).dotDotDotToken)&&oB(p,I.parent,I,ls)}else if(yi(I)){const w=zE(I)&7,U=wo(I);(w!==4&&w!==6||!U||!bW(U))&&oB(m,I.parent,I,ls)}else{const w=v.valueDeclaration&&j3e(v.valueDeclaration),U=v.valueDeclaration&&wo(v.valueDeclaration);w&&U?!Lp(w,w.parent)&&!Rb(w)&&!bW(U)&&(qa(I)&&mv(I.parent)?oB(p,I.parent,I,ls):a(w,1,Ar(U,f._0_is_declared_but_its_value_is_never_read,Fl(v)))):V3e(I,Fl(v),a)}}}),c.forEach(([v,I])=>{const w=v.parent;if((v.name?1:0)+(v.namedBindings?v.namedBindings.kind===275?1:v.namedBindings.elements.length:0)===I.length)a(w,0,I.length===1?Ar(w,f._0_is_declared_but_its_value_is_never_read,Kr(Qa(I).name)):Ar(w,f.All_imports_in_import_declaration_are_unused));else for(const H of I)V3e(H,Kr(H.name),a)}),p.forEach(([v,I])=>{const w=j3e(v.parent)?1:0;if(v.elements.length===I.length)I.length===1&&v.parent.kind===261&&v.parent.parent.kind===262?oB(m,v.parent.parent,v.parent,ls):a(v,w,I.length===1?Ar(v,f._0_is_declared_but_its_value_is_never_read,aB(Qa(I).name)):Ar(v,f.All_destructured_elements_are_unused));else for(const U of I)a(U,w,Ar(U,f._0_is_declared_but_its_value_is_never_read,aB(U.name)))}),m.forEach(([v,I])=>{if(v.declarations.length===I.length)a(v,0,I.length===1?Ar(Qa(I).name,f._0_is_declared_but_its_value_is_never_read,aB(Qa(I).name)):Ar(v.parent.kind===244?v.parent:v,f.All_variables_are_unused));else for(const w of I)a(w,0,Ar(w,f._0_is_declared_but_its_value_is_never_read,aB(w.name)))})}function lyt(){var n;for(const a of Dy)if(!((n=Wr(a))!=null&&n.isReferenced)){const c=YE(a);C.assert(HT(c),"Only parameter declaration should be checked here");const p=Ar(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ws(a.name),Ws(a.propertyName));c.type||pa(p,zc(zn(c),c.end,0,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ws(a.propertyName))),rs.add(p)}}function aB(n){switch(n.kind){case 80:return Kr(n);case 208:case 207:return aB(ma(Qa(n.elements),qa).name);default:return C.assertNever(n)}}function H3e(n){return n.kind===274||n.kind===277||n.kind===275}function cyt(n){return n.kind===274?n:n.kind===275?n.parent:n.parent.parent}function j$(n){if(n.kind===242&&Ky(n),cG(n)){const a=Wi;qe(n.statements,Wa),Wi=a}else qe(n.statements,Wa);n.locals&&ST(n)}function dyt(n){G>=2||!gG(n)||n.flags&33554432||zl(n.body)||qe(n.parameters,a=>{a.name&&!Zo(a.name)&&a.name.escapedText===ye.escapedName&&xv("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function TW(n,a,c){if(a?.escapedText!==c||n.kind===173||n.kind===172||n.kind===175||n.kind===174||n.kind===178||n.kind===179||n.kind===304||n.flags&33554432||(Jm(n)||Gc(n)||xu(n))&&ev(n))return!1;const p=Yh(n);return!(Zi(p)&&zl(p.parent.body))}function uyt(n){Dn(n,a=>bR(a)&4?(n.kind!==80?Ze(wo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ze(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function pyt(n){Dn(n,a=>bR(a)&8?(n.kind!==80?Ze(wo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ze(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function fyt(n,a){if(e.getEmitModuleFormatOfFile(zn(n))>=5||!a||!TW(n,a,"require")&&!TW(n,a,"exports")||mc(n)&&yy(n)!==1)return;const c=Pt(n);c.kind===308&&wp(c)&&xv("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ws(a),Ws(a))}function myt(n,a){if(!a||G>=4||!TW(n,a,"Promise")||mc(n)&&yy(n)!==1)return;const c=Pt(n);c.kind===308&&wp(c)&&c.flags&4096&&xv("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ws(a),Ws(a))}function hyt(n,a){G<=8&&(TW(n,a,"WeakMap")||TW(n,a,"WeakSet"))&&xy.push(n)}function _yt(n){const a=dh(n);bR(a)&1048576&&(C.assert(rd(n)&&Je(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),xv("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function gyt(n,a){a&&G>=2&&G<=8&&TW(n,a,"Reflect")&&Ry.push(n)}function yyt(n){let a=!1;if(fc(n)){for(const c of n.members)if(bR(c)&2097152){a=!0;break}}else if(qs(n))bR(n)&2097152&&(a=!0);else{const c=dh(n);c&&bR(c)&2097152&&(a=!0)}a&&(C.assert(rd(n)&&Je(n.name),"The target of a Reflect collision check should be an identifier"),xv("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ws(n.name),"Reflect"))}function qL(n,a){a&&(fyt(n,a),myt(n,a),hyt(n,a),gyt(n,a),ui(n)?(JL(a,f.Class_name_cannot_be_0),n.flags&33554432||Kyt(a)):t0(n)&&JL(a,f.Enum_name_cannot_be_0))}function vyt(n){if((zE(n)&7)!==0||HT(n))return;const a=Wr(n);if(a.flags&1){if(!Je(n.name))return C.fail();const c=gt(n,n.name.escapedText,3,void 0,!1);if(c&&c!==a&&c.flags&2&&zge(c)&7){const p=UT(c.valueDeclaration,262),m=p.parent.kind===244&&p.parent.parent?p.parent.parent:void 0;if(!(m&&(m.kind===242&&$o(m.parent)||m.kind===269||m.kind===268||m.kind===308))){const I=co(c);Ze(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function SW(n){return n===Rt?He:n===cd?Td:n}function sB(n){var a;if(iB(n),qa(n)||Wa(n.type),!n.name)return;if(n.name.kind===168&&(ah(n.name),r1(n)&&n.initializer&&Hl(n.initializer)),qa(n)){if(n.propertyName&&Je(n.name)&&HT(n)&&zl(pf(n).body)){Dy.push(n);return}hf(n.parent)&&n.dotDotDotToken&&G1&&vt(c.declarations,v=>v!==n&&$N(v)&&!J3e(v,n))&&Ze(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ws(n.name))}else{const m=SW(rR(n));!pr(p)&&!pr(m)&&!Yg(p,m)&&!(c.flags&67108864)&&q3e(c.valueDeclaration,p,n,m),r1(n)&&n.initializer&&kE(Hl(n.initializer),m,n,n.initializer,void 0),c.valueDeclaration&&!J3e(n,c.valueDeclaration)&&Ze(n.name,f.All_declarations_of_0_must_have_identical_modifiers,Ws(n.name))}n.kind!==173&&n.kind!==172&&(gW(n),(n.kind===261||n.kind===209)&&vyt(n),qL(n,n.name))}function q3e(n,a,c,p){const m=wo(c),v=c.kind===173||c.kind===172?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,I=Ws(m),w=Ze(m,v,I,sr(a),sr(p));n&&pa(w,Ar(n,f._0_was_also_declared_here,I))}function J3e(n,a){if(n.kind===170&&a.kind===261||n.kind===261&&a.kind===170)return!0;if(AI(n)!==AI(a))return!1;const c=1358;return CI(n,c)===CI(a,c)}function byt(n){var a,c;(a=xr)==null||a.push(xr.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),tTt(n),sB(n),(c=xr)==null||c.pop()}function Tyt(n){return Qbt(n),sB(n)}function U$(n){const a=oy(n)&7;(a===4||a===6)&&G=2,w=!I&&W.downlevelIteration,U=W.noUncheckedIndexedAccess&&!!(n&128);if(I||w||v){const et=q$(a,n,I?p:void 0);if(m&&et){const Tt=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.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;Tt&&eu(c,et.nextType,p,Tt)}if(et||I)return U?tW(et&&et.yieldType):et&&et.yieldType}let H=a,Q=!1;if(n&4){if(H.flags&1048576){const et=a.types,Tt=Un(et,Dt=>!(Dt.flags&402653316));Tt!==et&&(H=pi(Tt,2))}else H.flags&402653316&&(H=yn);if(Q=H!==a,Q&&H.flags&131072)return U?tW(yt):yt}if(!Hv(H)){if(p){const et=!!(n&4)&&!Q,[Tt,Dt]=Se(et,w);Rv(p,Dt&&!!UL(H),Tt,sr(H))}return Q?U?tW(yt):yt:void 0}const xe=K0(H,Bt);if(Q&&xe)return xe.flags&402653316&&!W.noUncheckedIndexedAccess?yt:pi(U?[xe,yt,ge]:[xe,yt],2);return n&128?tW(xe):xe;function Se(et,Tt){var Dt;return Tt?et?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Oye(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Pyt((Dt=a.symbol)==null?void 0:Dt.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:et?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function Pyt(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 Oye(n,a,c,p){if(wr(c))return;const m=q$(c,n,p);return m&&m[yAe(a)]}function ET(n=yn,a=yn,c=Nt){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const p=zm([n,a,c]);let m=Ps.get(p);return m||(m={yieldType:n,returnType:a,nextType:c},Ps.set(p,m)),m}return{yieldType:n,returnType:a,nextType:c}}function K3e(n){let a,c,p;for(const m of n)if(!(m===void 0||m===Ca)){if(m===el)return el;a=Vn(a,m.yieldType),c=Vn(c,m.returnType),p=Vn(p,m.nextType)}return a||c||p?ET(a&&pi(a),c&&pi(c),p&&Pa(p)):Ca}function H$(n,a){return n[a]}function Qg(n,a,c){return n[a]=c}function q$(n,a,c){var p,m;if(n===wt)return Ac;if(wr(n))return el;if(!(n.flags&1048576)){const H=c?{errors:void 0,skipLogging:!0}:void 0,Q=X3e(n,a,c,H);if(Q===Ca){if(c){const xe=Fye(c,n,!!(a&2));H?.errors&&pa(xe,...H.errors)}return}else if((p=H?.errors)!=null&&p.length)for(const xe of H.errors)rs.add(xe);return Q}const v=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=H$(n,v);if(I)return I===Ca?void 0:I;let w;for(const H of n.types){const Q=c?{errors:void 0}:void 0,xe=X3e(H,a,c,Q);if(xe===Ca){if(c){const Se=Fye(c,n,!!(a&2));Q?.errors&&pa(Se,...Q.errors)}Qg(n,v,Ca);return}else if((m=Q?.errors)!=null&&m.length)for(const Se of Q.errors)rs.add(Se);w=Vn(w,xe)}const U=w?K3e(w):Ca;return Qg(n,v,U),U===Ca?void 0:U}function Wye(n,a){if(n===Ca)return Ca;if(n===el)return el;const{yieldType:c,returnType:p,nextType:m}=n;return a&&l_e(!0),ET(gR(c,a)||He,gR(p,a)||He,m)}function X3e(n,a,c,p){if(wr(n))return el;let m=!1;if(a&2){const v=Y3e(n,_c)||$3e(n,_c);if(v)if(v===Ca&&c)m=!0;else return a&8?Wye(v,c):v}if(a&1){let v=Y3e(n,Js)||$3e(n,Js);if(v)if(v===Ca&&c)m=!0;else if(a&2){if(v!==Ca)return v=Wye(v,c),m?v:Qg(n,"iterationTypesOfAsyncIterable",v)}else return v}if(a&2){const v=Z3e(n,_c,c,p,m);if(v!==Ca)return v}if(a&1){let v=Z3e(n,Js,c,p,m);if(v!==Ca)return a&2?(v=Wye(v,c),m?v:Qg(n,"iterationTypesOfAsyncIterable",v)):v}return Ca}function Y3e(n,a){return H$(n,a.iterableCacheKey)}function $3e(n,a){if(Yp(n,a.getGlobalIterableType(!1))||Yp(n,a.getGlobalIteratorObjectType(!1))||Yp(n,a.getGlobalIterableIteratorType(!1))||Yp(n,a.getGlobalGeneratorType(!1))){const[c,p,m]=ol(n);return Qg(n,a.iterableCacheKey,ET(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,m))}if(dY(n,a.getGlobalBuiltinIteratorTypes())){const[c]=ol(n),p=s_e(),m=Nt;return Qg(n,a.iterableCacheKey,ET(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,m))}}function Q3e(n){const a=gWe(!1),c=a&&_n(_r(a),Pl(n));return c&&Jf(c)?Kf(c):`__@${n}`}function Z3e(n,a,c,p,m){const v=Ea(n,Q3e(a.iteratorSymbolName)),I=v&&!(v.flags&16777216)?_r(v):void 0;if(wr(I))return m?el:Qg(n,a.iterableCacheKey,el);const w=I?ra(I,0):void 0,U=Un(w,xe=>Wh(xe)===0);if(!vt(U))return c&&vt(w)&&eu(n,a.getGlobalIterableType(!0),c,void 0,void 0,p),m?Ca:Qg(n,a.iterableCacheKey,Ca);const H=Pa(Yt(U,fs)),Q=e7e(H,a,c,p,m)??Ca;return m?Q:Qg(n,a.iterableCacheKey,Q)}function Fye(n,a,c){const p=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,m=!!UL(a)||!c&&Ew(n.parent)&&n.parent.expression===n&&a5(!1)!==Zt&&sa(a,NL(a5(!1),[He,He,He]));return Rv(n,m,p,sr(a))}function Lyt(n,a,c,p){return e7e(n,a,c,p,!1)}function e7e(n,a,c,p,m){if(wr(n))return el;let v=kyt(n,a)||wyt(n,a);return v===Ca&&c&&(v=void 0,m=!0),v??(v=zyt(n,a,c,p,m)),v===Ca?void 0:v}function kyt(n,a){return H$(n,a.iteratorCacheKey)}function wyt(n,a){if(Yp(n,a.getGlobalIterableIteratorType(!1))||Yp(n,a.getGlobalIteratorType(!1))||Yp(n,a.getGlobalIteratorObjectType(!1))||Yp(n,a.getGlobalGeneratorType(!1))){const[c,p,m]=ol(n);return Qg(n,a.iteratorCacheKey,ET(c,p,m))}if(dY(n,a.getGlobalBuiltinIteratorTypes())){const[c]=ol(n),p=s_e(),m=Nt;return Qg(n,a.iteratorCacheKey,ET(c,p,m))}}function t7e(n,a){const c=_n(n,"done")||tr;return sa(a===0?tr:mt,c)}function Oyt(n){return t7e(n,0)}function Wyt(n){return t7e(n,1)}function Fyt(n){if(wr(n))return el;const a=H$(n,"iterationTypesOfIteratorResult");if(a)return a;if(Yp(n,odt(!1))){const I=ol(n)[0];return Qg(n,"iterationTypesOfIteratorResult",ET(I,void 0,void 0))}if(Yp(n,adt(!1))){const I=ol(n)[0];return Qg(n,"iterationTypesOfIteratorResult",ET(void 0,I,void 0))}const c=Ic(n,Oyt),p=c!==yn?_n(c,"value"):void 0,m=Ic(n,Wyt),v=m!==yn?_n(m,"value"):void 0;return!p&&!v?Qg(n,"iterationTypesOfIteratorResult",Ca):Qg(n,"iterationTypesOfIteratorResult",ET(p,v||In,void 0))}function zye(n,a,c,p,m){var v,I,w,U;const H=Ea(n,c);if(!H&&c!=="next")return;const Q=H&&!(c==="next"&&H.flags&16777216)?c==="next"?_r(H):cm(_r(H),2097152):void 0;if(wr(Q))return el;const xe=Q?ra(Q,0):ie;if(xe.length===0){if(p){const Sn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(Ar(p,Sn,c))):Ze(p,Sn,c)}return c==="next"?Ca:void 0}if(Q?.symbol&&xe.length===1){const Sn=a.getGlobalGeneratorType(!1),vn=a.getGlobalIteratorType(!1),Sr=((I=(v=Sn.symbol)==null?void 0:v.members)==null?void 0:I.get(c))===Q.symbol,mi=!Sr&&((U=(w=vn.symbol)==null?void 0:w.members)==null?void 0:U.get(c))===Q.symbol;if(Sr||mi){const io=Sr?Sn:vn,{mapper:ii}=Q;return ET(Uv(io.typeParameters[0],ii),Uv(io.typeParameters[1],ii),c==="next"?Uv(io.typeParameters[2],ii):void 0)}}let Se,et;for(const Sn of xe)c!=="throw"&&vt(Sn.parameters)&&(Se=Vn(Se,Oh(Sn,0))),et=Vn(et,fs(Sn));let Tt,Dt;if(c!=="throw"){const Sn=Se?pi(Se):Nt;if(c==="next")Dt=Sn;else if(c==="return"){const vn=a.resolveIterationType(Sn,p)||He;Tt=Vn(Tt,vn)}}let $t;const Tn=et?Pa(et):yn,nr=a.resolveIterationType(Tn,p)||He,yr=Fyt(nr);return yr===Ca?(p&&(m?(m.errors??(m.errors=[]),m.errors.push(Ar(p,a.mustHaveAValueDiagnostic,c))):Ze(p,a.mustHaveAValueDiagnostic,c)),$t=He,Tt=Vn(Tt,He)):($t=yr.yieldType,Tt=Vn(Tt,yr.returnType)),ET($t,pi(Tt),Dt)}function zyt(n,a,c,p,m){const v=K3e([zye(n,a,"next",c,p),zye(n,a,"return",c,p),zye(n,a,"throw",c,p)]);return m?v:Qg(n,a.iteratorCacheKey,v)}function Kv(n,a,c){if(wr(a))return;const p=Bye(a,c);return p&&p[yAe(n)]}function Bye(n,a){if(wr(n))return el;const c=a?2:1,p=a?_c:Js;return q$(n,c,void 0)||Lyt(n,p,void 0,void 0)}function Byt(n){Ky(n)||$bt(n)}function cB(n,a){const c=!!(a&1),p=!!(a&2);if(c){const m=Kv(1,n,p);return m?p?Jy(HL(m)):m:nt}return p?Jy(n)||nt:n}function n7e(n,a){const c=cB(a,pc(n));return!!(c&&(oc(c,16384)||c.flags&32769))}function Gyt(n){if(Ky(n))return;const a=t6(n);if(a&&nc(a)){md(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){md(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}const c=Nf(a),p=fs(c);if(oe||n.expression||p.flags&131072){const m=n.expression?Hl(n.expression):ge;if(a.kind===179)n.expression&&Ze(n,f.Setters_cannot_return_a_value);else if(a.kind===177){const v=n.expression?Hl(n.expression):ge;n.expression&&!kE(v,p,n,n.expression)&&Ze(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(qC(a)){const v=cB(p,pc(a))??p;J$(a,v,n,n.expression,m)}}else a.kind!==177&&W.noImplicitReturns&&!n7e(a,p)&&Ze(n,f.Not_all_code_paths_return_a_value)}function J$(n,a,c,p,m,v=!1){const I=Ir(c),w=pc(n);if(p){const Se=us(p,I);if(I1(Se)){J$(n,a,c,Se.whenTrue,_o(Se.whenTrue),!0),J$(n,a,c,Se.whenFalse,_o(Se.whenFalse),!0);return}}const U=c.kind===254,H=w&2?rB(m,!1,c,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):m,Q=p&&D$(p);kE(H,a,U&&!v?c:Q,Q)}function Vyt(n){Ky(n)||n.flags&65536&&md(n,f.with_statements_are_not_allowed_in_an_async_function_block),_o(n.expression);const a=zn(n);if(!AT(a)){const c=qh(a,n.pos).start,p=n.statement.pos;oS(a,c,p-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function jyt(n){Ky(n);let a,c=!1;const p=_o(n.expression);qe(n.caseBlock.clauses,m=>{m.kind===298&&!c&&(a===void 0?a=m:(Cn(m,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),m.kind===297&&r(v(m)),qe(m.statements,Wa),W.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&M5(m.fallthroughFlowNode)&&Ze(m,f.Fallthrough_case_in_switch);function v(I){return()=>{const w=_o(I.expression);bye(p,w)||vFe(w,p,I.expression,void 0)}}}),n.caseBlock.locals&&ST(n.caseBlock)}function Uyt(n){Ky(n)||Dn(n.parent,a=>$o(a)?"quit":a.kind===257&&a.label.escapedText===n.label.escapedText?(Cn(n.label,f.Duplicate_label_0,Rl(n.label)),!0):!1),Wa(n.statement)}function Hyt(n){Ky(n)||Je(n.expression)&&!n.expression.escapedText&&uTt(n,f.Line_break_not_permitted_here),n.expression&&_o(n.expression)}function qyt(n){Ky(n),j$(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;sB(c);const p=Cc(c);if(p){const m=Ji(p);m&&!(m.flags&3)&&md(p,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)md(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{const m=a.block.locals;m&&yg(a.locals,v=>{const I=m.get(v);I?.valueDeclaration&&(I.flags&2)!==0&&Cn(I.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Vi(v))})}}j$(a.block)}n.finallyBlock&&j$(n.finallyBlock)}function K$(n,a,c){const p=Qd(n);if(p.length===0)return;for(const v of Gv(n))c&&v.flags&4194304||r7e(n,v,sR(v,8576,!0),Ch(v));const m=a.valueDeclaration;if(m&&ui(m)){for(const v of m.members)if((!c&&!ua(v)||c&&ua(v))&&!UC(v)){const I=Wr(v);r7e(n,I,Od(v.name.expression),Ch(I))}}if(p.length>1)for(const v of p)Jyt(n,v)}function r7e(n,a,c,p){const m=a.valueDeclaration,v=wo(m);if(v&&Qi(v))return;const I=Khe(n,c),w=Hr(n)&2?ll(n.symbol,265):void 0,U=m&&m.kind===227||v&&v.kind===168?m:void 0,H=Qc(a)===n.symbol?m:void 0;for(const Q of I){const xe=Q.declaration&&Qc(Wr(Q.declaration))===n.symbol?Q.declaration:void 0,Se=H||xe||(w&&!vt(ih(n),et=>!!xE(et,a.escapedName)&&!!K0(et,Q.keyType))?w:void 0);if(Se&&!sa(p,Q.type)){const et=mE(Se,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,co(a),sr(p),sr(Q.keyType),sr(Q.type));U&&Se!==U&&pa(et,Ar(U,f._0_is_declared_here,co(a))),rs.add(et)}}}function Jyt(n,a){const c=a.declaration,p=Khe(n,a.keyType),m=Hr(n)&2?ll(n.symbol,265):void 0,v=c&&Qc(Wr(c))===n.symbol?c:void 0;for(const I of p){if(I===a)continue;const w=I.declaration&&Qc(Wr(I.declaration))===n.symbol?I.declaration:void 0,U=v||w||(m&&!vt(ih(n),H=>!!Jg(H,a.keyType)&&!!K0(H,I.keyType))?m:void 0);U&&!sa(a.type,I.type)&&Ze(U,f._0_index_type_1_is_not_assignable_to_2_index_type_3,sr(a.keyType),sr(a.type),sr(I.keyType),sr(I.type))}}function JL(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":case"undefined":Ze(n,a,n.escapedText)}}function Kyt(n){G>=1&&n.escapedText==="Object"&&e.getEmitModuleFormatOfFile(zn(n))<5&&Ze(n,f.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,wR[j])}function Xyt(n){const a=Un(OT(n),_f);if(!Qe(a))return;const c=Ir(n),p=new Set,m=new Set;if(qe(n.parameters,({name:I},w)=>{Je(I)&&p.add(I.escapedText),Zo(I)&&m.add(w)}),Yhe(n)){const I=a.length-1,w=a[I];c&&w&&Je(w.name)&&w.typeExpression&&w.typeExpression.type&&!p.has(w.name.escapedText)&&!m.has(I)&&!lm(Ji(w.typeExpression.type))&&Ze(w.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Kr(w.name))}else qe(a,({name:I,isNameFirst:w},U)=>{m.has(U)||Je(I)&&p.has(I.escapedText)||(Wu(I)?c&&Ze(I,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,kp(I),kp(I.left)):w||Qm(c,I,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Kr(I)))})}function dB(n){let a=!1;if(n)for(let p=0;p{p.default?(a=!0,Yyt(p.default,n,m)):a&&Ze(p,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let v=0;vp)return!1;for(let U=0;UFc(c)&&ou(c))&&Cn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!di(n,2048)&&md(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),s7e(n),qe(n.members,Wa),ST(n)}function s7e(n){Obt(n),iB(n),qL(n,n.name),dB(mb(n)),gW(n);const a=Wr(n),c=Ks(a),p=$p(c),m=_r(a);i7e(a),B$(a),pgt(n),n.flags&33554432||fgt(n);const I=uh(n);if(I){qe(I.typeArguments,Wa),G{const xe=Q[0],Se=Oy(c),et=Mu(Se);if(nvt(et,I),Wa(I.expression),vt(I.typeArguments)){qe(I.typeArguments,Wa);for(const Dt of rh(et,I.typeArguments,I))if(!M3e(I,Dt.typeParameters))break}const Tt=$p(xe,c.thisType);if(eu(p,Tt,void 0)?eu(m,fFe(et),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):d7e(n,p,Tt,f.Class_0_incorrectly_extends_base_class_1),Se.flags&8650752&&(Ad(m)?ra(Se,1).some($t=>$t.flags&4)&&!di(n,64)&&Ze(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Ze(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(et.symbol&&et.symbol.flags&32)&&!(Se.flags&8650752)){const Dt=Hg(et,I.typeArguments,I);qe(Dt,$t=>!x_($t.declaration)&&!Yg(fs($t),xe))&&Ze(I.expression,f.Base_constructors_must_all_have_the_same_return_type)}ovt(c,xe)})}tvt(n,c,p,m);const w=lD(n);if(w)for(const H of w)(!Ns(H.expression)||iu(H.expression))&&Ze(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Rye(H),r(U(H));r(()=>{K$(c,a),K$(m,a,!0),Iye(n),lvt(n)});function U(H){return()=>{const Q=Fm(Ji(H));if(!pr(Q))if(Xz(Q)){const xe=Q.symbol&&Q.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,Se=$p(Q,c.thisType);eu(p,Se,void 0)||d7e(n,p,Se,xe)}else Ze(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function tvt(n,a,c,p){const v=uh(n)&&ih(a),I=v?.length?$p(Qa(v),a.thisType):void 0,w=Oy(a);for(const U of n.members)SV(U)||(kl(U)&&qe(U.parameters,H=>{Lp(H,U)&&l7e(n,p,w,I,a,c,H,!0)}),l7e(n,p,w,I,a,c,U,!1))}function l7e(n,a,c,p,m,v,I,w,U=!0){const H=I.name&&um(I.name)||um(I);return H?c7e(n,a,c,p,m,v,N6(I),OS(I),ua(I),w,H,U?I:void 0):0}function c7e(n,a,c,p,m,v,I,w,U,H,Q,xe){const Se=Ir(n),et=!!(n.flags&33554432);if(I&&Q?.valueDeclaration&&Sc(Q.valueDeclaration)&&Q.valueDeclaration.name&&I8e(Q.valueDeclaration.name))return Ze(xe,Se?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:f.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(p&&(I||W.noImplicitOverride)){const Tt=U?a:v,Dt=U?c:p,$t=Ea(Tt,Q.escapedName),Tn=Ea(Dt,Q.escapedName),nr=sr(p);if($t&&!Tn&&I){if(xe){const yr=y4e(Fl(Q),Dt);yr?Ze(xe,Se?f.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:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,nr,co(yr)):Ze(xe,Se?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,nr)}return 2}else if($t&&Tn?.declarations&&W.noImplicitOverride&&!et){const yr=vt(Tn.declarations,OS);if(I)return 0;if(yr){if(w&&yr)return xe&&Ze(xe,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,nr),1}else{if(xe){const Sn=H?Se?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Se?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Ze(xe,Sn,nr)}return 1}}}else if(I){if(xe){const Tt=sr(m);Ze(xe,Se?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Tt)}return 2}return 0}function d7e(n,a,c,p){let m=!1;for(const v of n.members){if(ua(v))continue;const I=v.name&&um(v.name)||um(v);if(I){const w=Ea(a,I.escapedName),U=Ea(c,I.escapedName);if(w&&U){const H=()=>qo(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,co(I),sr(a),sr(c));eu(_r(w),_r(U),v.name||v,void 0,H)||(m=!0)}}}m||eu(a,c,n.name||n,p)}function nvt(n,a){const c=ra(n,1);if(c.length){const p=c[0].declaration;if(p&&Fp(p,2)){const m=fy(n.symbol);qye(a,m)||Ze(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Pv(n.symbol))}}}function rvt(n,a,c){if(!a.name)return 0;const p=Wr(n),m=Ks(p),v=$p(m),I=_r(p),U=uh(n)&&ih(m),H=U?.length?$p(Qa(U),m.thisType):void 0,Q=Oy(m),xe=a.parent?N6(a):di(a,16);return c7e(n,I,Q,H,m,v,xe,OS(a),ua(a),!1,c)}function lN(n){return Bl(n)&1?n.links.target:n}function ivt(n){return Un(n.declarations,a=>a.kind===264||a.kind===265)}function ovt(n,a){var c,p,m,v,I;const w=Ts(a),U=new Map;e:for(const H of w){const Q=lN(H);if(Q.flags&4194304)continue;const xe=xE(n,Q.escapedName);if(!xe)continue;const Se=lN(xe),et=qf(Q);if(C.assert(!!Se,"derived should point to something, even if it is the base class' declaration."),Se===Q){const Tt=fy(n.symbol);if(et&64&&(!Tt||!di(Tt,64))){for(const yr of ih(n)){if(yr===a)continue;const Sn=xE(yr,Q.escapedName),vn=Sn&&lN(Sn);if(vn&&vn!==Q)continue e}const Dt=sr(a),$t=sr(n),Tn=co(H),nr=Vn((c=U.get(Tt))==null?void 0:c.missedProperties,Tn);U.set(Tt,{baseTypeName:Dt,typeName:$t,missedProperties:nr})}}else{const Tt=qf(Se);if(et&2||Tt&2)continue;let Dt;const $t=Q.flags&98308,Tn=Se.flags&98308;if($t&&Tn){if((Bl(Q)&6?(p=Q.declarations)!=null&&p.some(Sn=>u7e(Sn,et)):(m=Q.declarations)!=null&&m.every(Sn=>u7e(Sn,et)))||Bl(Q)&262144||Se.valueDeclaration&&Nr(Se.valueDeclaration))continue;const nr=$t!==4&&Tn===4;if(nr||$t===4&&Tn!==4){const Sn=nr?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ze(wo(Se.valueDeclaration)||Se.valueDeclaration,Sn,co(Q),sr(a),sr(n))}else if(Z){const Sn=(v=Se.declarations)==null?void 0:v.find(vn=>vn.kind===173&&!vn.initializer);if(Sn&&!(Se.flags&33554432)&&!(et&64)&&!(Tt&64)&&!((I=Se.declarations)!=null&&I.some(vn=>!!(vn.flags&33554432)))){const vn=uw(fy(n.symbol)),Sr=Sn.name;if(Sn.exclamationToken||!vn||!Je(Sr)||!oe||!f7e(Sr,n,vn)){const mi=f.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;Ze(wo(Se.valueDeclaration)||Se.valueDeclaration,mi,co(Q),sr(a))}}}continue}else if(Bge(Q)){if(Bge(Se)||Se.flags&4)continue;C.assert(!!(Se.flags&98304)),Dt=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else Q.flags&98304?Dt=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Dt=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ze(wo(Se.valueDeclaration)||Se.valueDeclaration,Dt,sr(a),co(Q),sr(n))}}for(const[H,Q]of U)if(Qe(Q.missedProperties)===1)fc(H)?Ze(H,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Qa(Q.missedProperties),Q.baseTypeName):Ze(H,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Q.typeName,Qa(Q.missedProperties),Q.baseTypeName);else if(Qe(Q.missedProperties)>5){const xe=Yt(Q.missedProperties.slice(0,4),et=>`'${et}'`).join(", "),Se=Qe(Q.missedProperties)-4;fc(H)?Ze(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,Q.baseTypeName,xe,Se):Ze(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,Q.typeName,Q.baseTypeName,xe,Se)}else{const xe=Yt(Q.missedProperties,Se=>`'${Se}'`).join(", ");fc(H)?Ze(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,Q.baseTypeName,xe):Ze(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,Q.typeName,Q.baseTypeName,xe)}}function u7e(n,a){return a&64&&(!Mo(n)||!n.initializer)||yd(n.parent)}function avt(n,a,c){if(!Qe(a))return c;const p=new Map;qe(c,m=>{p.set(m.escapedName,m)});for(const m of a){const v=Ts($p(m,n.thisType));for(const I of v){const w=p.get(I.escapedName);w&&I.parent===w.parent&&p.delete(I.escapedName)}}return Do(p.values())}function svt(n,a){const c=ih(n);if(c.length<2)return!0;const p=new Map;qe(Lhe(n).declaredProperties,v=>{p.set(v.escapedName,{prop:v,containingType:n})});let m=!0;for(const v of c){const I=Ts($p(v,n.thisType));for(const w of I){const U=p.get(w.escapedName);if(!U)p.set(w.escapedName,{prop:w,containingType:v});else if(U.containingType!==n&&!ept(U.prop,w)){m=!1;const Q=sr(U.containingType),xe=sr(v);let Se=qo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,co(w),Q,xe);Se=qo(Se,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,sr(n),Q,xe),rs.add(bg(zn(a),a,Se))}}}return m}function lvt(n){if(!oe||!ue||n.flags&33554432)return;const a=uw(n);for(const c of n.members)if(!(Ud(c)&128)&&!ua(c)&&p7e(c)){const p=c.name;if(Je(p)||Qi(p)||va(p)){const m=_r(Wr(c));m.flags&3||QC(m)||(!a||!f7e(p,m,a))&&Ze(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ws(p))}}}function p7e(n){return n.kind===173&&!OS(n)&&!n.exclamationToken&&!n.initializer}function cvt(n,a,c,p,m){for(const v of c)if(v.pos>=p&&v.pos<=m){const I=L.createPropertyAccessExpression(L.createThis(),n);ps(I.expression,I),ps(I,v),I.flowNode=v.returnFlowNode;const w=qy(I,a,bT(a));if(!QC(w))return!0}return!1}function f7e(n,a,c){const p=va(n)?L.createElementAccessExpression(L.createThis(),n.expression):L.createPropertyAccessExpression(L.createThis(),n);ps(p.expression,p),ps(p,c),p.flowNode=c.returnFlowNode;const m=qy(p,a,bT(a));return!QC(m)}function dvt(n){Zg(n)||jbt(n),lQ(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"interface"),dB(n.typeParameters),r(()=>{JL(n.name,f.Interface_name_cannot_be_0),gW(n);const a=Wr(n);i7e(a);const c=ll(a,265);if(n===c){const p=Ks(a),m=$p(p);if(svt(p,n.name)){for(const v of ih(p))eu(m,$p(v,p.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);K$(p,a)}}R3e(n)}),qe(dM(n),a=>{(!Ns(a.expression)||iu(a.expression))&&Ze(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Rye(a)}),qe(n.members,Wa),r(()=>{Iye(n),ST(n)})}function uvt(n){if(Zg(n),JL(n.name,f.Type_alias_name_cannot_be_0),lQ(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"type"),gW(n),dB(n.typeParameters),n.type.kind===141){const a=Qe(n.typeParameters);(a===0?n.name.escapedText==="BuiltinIteratorReturn":a===1&&KU.has(n.name.escapedText))||Ze(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else Wa(n.type),ST(n)}function m7e(n){const a=Vr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0,p;for(const m of n.members){const v=pvt(m,c,p);Vr(m).enumMemberValue=v,c=typeof v.value=="number"?v.value+1:void 0,p=m}}}function pvt(n,a,c){if(ak(n.name))Ze(n.name,f.Computed_property_names_are_not_allowed_in_enums);else if(AD(n.name))Ze(n.name,f.An_enum_member_cannot_have_a_numeric_name);else{const p=bI(n.name);Dg(p)&&!OM(p)&&Ze(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return fvt(n);if(n.parent.flags&33554432&&!FT(n.parent))return Kc(void 0);if(a===void 0)return Ze(n.name,f.Enum_member_must_have_initializer),Kc(void 0);if(Am(W)&&c?.initializer){const p=UA(c);typeof p.value=="number"&&!p.resolvedOtherFiles||Ze(n.name,f.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return Kc(a)}function fvt(n){const a=FT(n.parent),c=n.initializer,p=Be(c,n);return p.value!==void 0?a&&typeof p.value=="number"&&!isFinite(p.value)?Ze(c,isNaN(p.value)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):Am(W)&&typeof p.value=="string"&&!p.isSyntacticallyString&&Ze(c,f._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Kr(n.parent.name)}.${bI(n.name)}`):a?Ze(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Ze(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):eu(_o(c),Bt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),p}function h7e(n,a){const c=Ul(n,111551,!0);if(!c)return Kc(void 0);if(n.kind===80){const p=n;if(OM(p.escapedText)&&c===YC(p.escapedText,111551,void 0))return Kc(+p.escapedText,!1)}if(c.flags&8)return a?_7e(n,c,a):UA(c.valueDeclaration);if(fR(c)){const p=c.valueDeclaration;if(p&&yi(p)&&!p.type&&p.initializer&&(!a||p!==a&&Py(p,a))){const m=Be(p.initializer,p);return a&&zn(a)!==zn(p)?Kc(m.value,!1,!0,!0):Kc(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0)}}return Kc(void 0)}function mvt(n,a){const c=n.expression;if(Ns(c)&&ds(n.argumentExpression)){const p=Ul(c,111551,!0);if(p&&p.flags&384){const m=Pl(n.argumentExpression.text),v=p.exports.get(m);if(v)return C.assert(zn(v.valueDeclaration)===zn(p.valueDeclaration)),a?_7e(n,v,a):UA(v.valueDeclaration)}}return Kc(void 0)}function _7e(n,a,c){const p=a.valueDeclaration;if(!p||p===c)return Ze(n,f.Property_0_is_used_before_being_assigned,co(a)),Kc(void 0);if(!Py(p,c))return Ze(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),Kc(0);const m=UA(p);return c.parent!==p.parent?Kc(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0):m}function hvt(n){r(()=>_vt(n))}function _vt(n){Zg(n),qL(n,n.name),gW(n),n.members.forEach(Wa),W.erasableSyntaxOnly&&!(n.flags&33554432)&&Ze(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),m7e(n);const a=Wr(n),c=ll(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const m=FT(n);qe(a.declarations,v=>{t0(v)&&FT(v)!==m&&Ze(wo(v),f.Enum_declarations_must_all_be_const_or_non_const)})}let p=!1;qe(a.declarations,m=>{if(m.kind!==267)return!1;const v=m;if(!v.members.length)return!1;const I=v.members[0];I.initializer||(p?Ze(I.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):p=!0)})}}function gvt(n){Qi(n.name)&&Ze(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&_o(n.initializer)}function yvt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===264||c.kind===263&&vm(c.body))&&!(c.flags&33554432))return c}}function vvt(n,a){const c=dh(n),p=dh(a);return nv(c)?nv(p):nv(p)?!1:c===p}function bvt(n){n.body&&(Wa(n.body),L_(n)||ST(n)),r(a);function a(){var c,p;const m=L_(n),v=n.flags&33554432;m&&!v&&Ze(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const I=Tu(n),w=I?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(uB(n,w))return;if(Zg(n)||!v&&n.name.kind===11&&Cn(n.name,f.Only_ambient_modules_can_use_quoted_names),Je(n.name)&&(qL(n,n.name),!(n.flags&2080))){const H=zn(n),Q=Zte(n),xe=qh(H,Q);tA.add(zc(H,xe.start,xe.length,f.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}gW(n);const U=Wr(n);if(U.flags&512&&!v&&XU(n,Nb(W))){if(W.erasableSyntaxOnly&&Ze(n.name,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),Am(W)&&!zn(n).externalModuleIndicator&&Ze(n.name,f.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,Ge),((c=U.declarations)==null?void 0:c.length)>1){const H=yvt(U);H&&(zn(n)!==zn(H)?Ze(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.posQ.kind===95);H&&Ze(H,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(I)if(IS(n)){if((m||Wr(n).flags&33554432)&&n.body)for(const Q of n.body.statements)Gye(Q,m)}else nv(n.parent)?m?Ze(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):nd(jf(n.name))&&Ze(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):m?Ze(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ze(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Gye(n,a){switch(n.kind){case 244:for(const p of n.declarationList.declarations)Gye(p,a);break;case 278:case 279:md(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(s1(n))break;case 273:md(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:const c=n.name;if(Zo(c)){for(const p of c.elements)Gye(p,a);break}case 264:case 267:case 263:case 265:case 268:case 266:if(a)return;break}}function Tvt(n){switch(n.kind){case 80:return n;case 167:do n=n.left;while(n.kind!==80);return n;case 212:do{if(Sg(n.expression)&&!Qi(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function X$(n){const a=EI(n);if(!a||zl(a))return!1;if(!Oa(a))return Ze(a,f.String_literal_expected),!1;const c=n.parent.kind===269&&Tu(n.parent.parent);if(n.parent.kind!==308&&!c)return Ze(a,n.kind===279?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&nd(a.text)&&!gL(n))return Ze(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Gc(n)&&n.attributes){const p=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions;let m=!1;for(const v of n.attributes.elements)Oa(v.value)||(m=!0,Ze(v.value,p));return!m}return!0}function Y$(n,a=!0){n===void 0||n.kind!==11||(a?(j===5||j===6)&&Cn(n,f.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):Cn(n,f.Identifier_expected))}function $$(n){var a,c,p,m,v;let I=Wr(n);const w=pd(I);if(w!==ne){if(I=as(I.exportSymbol||I),Ir(n)&&!(w.flags&111551)&&!ev(n)){const Q=_b(n)?n.propertyName||n.name:rd(n)?n.name:n;if(C.assert(n.kind!==281),n.kind===282){const xe=Ze(Q,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Se=(c=(a=zn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get(AS(n.propertyName||n.name));if(Se===w){const et=(p=Se.declarations)==null?void 0:p.find(JR);et&&pa(xe,Ar(et,f._0_is_automatically_exported_here,Vi(Se.escapedName)))}}else{C.assert(n.kind!==261);const xe=Dn(n,Np(Tl,Gc)),Se=(xe&&((m=SI(xe))==null?void 0:m.text))??"...",et=Vi(Je(Q)?Q.escapedText:I.escapedName);Ze(Q,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,et,`import("${Se}").${et}`)}return}const U=fp(w),H=(I.flags&1160127?111551:0)|(I.flags&788968?788968:0)|(I.flags&1920?1920:0);if(U&H){const Q=n.kind===282?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;Ze(n,Q,co(I))}else n.kind!==282&&W.isolatedModules&&!Dn(n,ev)&&I.flags&1160127&&Ze(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,co(I),Ge);if(Am(W)&&!ev(n)&&!(n.flags&33554432)){const Q=Rh(I),xe=!(U&111551);if(xe||Q)switch(n.kind){case 274:case 277:case 272:{if(W.verbatimModuleSyntax){C.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Se=W.verbatimModuleSyntax&&s1(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:xe?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,et=Eb(n.kind===277&&n.propertyName||n.name);Oo(Ze(n,Se,et),xe?void 0:Q,et)}xe&&n.kind===272&&Fp(n,32)&&Ze(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ge);break}case 282:if(W.verbatimModuleSyntax||zn(Q)!==zn(n)){const Se=Eb(n.propertyName||n.name),et=xe?Ze(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ge):Ze(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Se,Ge);Oo(et,xe?void 0:Q,Se);break}}if(W.verbatimModuleSyntax&&n.kind!==272&&!Ir(n)&&e.getEmitModuleFormatOfFile(zn(n))===1?Ze(n,nA(n)):j===200&&n.kind!==272&&n.kind!==261&&e.getEmitModuleFormatOfFile(zn(n))===1&&Ze(n,f.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),W.verbatimModuleSyntax&&!ev(n)&&!(n.flags&33554432)&&U&128){const Se=w.valueDeclaration,et=(v=e.getRedirectFromOutput(zn(Se).resolvedPath))==null?void 0:v.resolvedRef;Se.flags&33554432&&(!et||!Nb(et.commandLine.options))&&Ze(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}if(xu(n)){const Q=Vye(I,n);Cu(Q)&&Q.declarations&&wm(n,Q.declarations,Q.escapedName)}}}function Vye(n,a){if(!(n.flags&2097152)||Cu(n)||!pp(n))return n;const c=pd(n);if(c===ne)return c;for(;n.flags&2097152;){const p=y$(n);if(p){if(p===c)break;if(p.declarations&&Qe(p.declarations))if(Cu(p)){wm(a,p.declarations,p.escapedName);break}else{if(n===c)break;n=p}}else break}return c}function Q$(n){qL(n,n.name),$$(n),n.kind===277&&(Y$(n.propertyName),P_(n.propertyName||n.name)&&e_(W)&&e.getEmitModuleFormatOfFile(zn(n))<4&&Zc(n,131072))}function jye(n){var a;const c=n.attributes;if(c){const p=o_e(!0);p!==Da&&eu(Ahe(c),E5(p,32768),c);const m=PH(n),v=$D(c,m?Cn:void 0),I=n.attributes.token===118;if(m&&v)return;if(!Pre(j))return Cn(c,I?f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=j&&j<=199&&!I)return md(c,f.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(n.moduleSpecifier&&Ly(n.moduleSpecifier)===1)return Cn(c,I?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(l_(n)||(Tl(n)?(a=n.importClause)==null?void 0:a.isTypeOnly:n.isTypeOnly))return Cn(c,I?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(v)return Cn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function Svt(n){return Pu(Hl(n.value))}function Evt(n){if(!uB(n,Ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Zg(n)&&n.modifiers&&md(n,f.An_import_declaration_cannot_have_modifiers),X$(n)){let a;const c=n.importClause;c&&!fTt(c)?(c.name&&Q$(c),c.namedBindings&&(c.namedBindings.kind===275?(Q$(c.namedBindings),e.getEmitModuleFormatOfFile(zn(n))<4&&e_(W)&&Zc(n,65536)):(a=mu(n,n.moduleSpecifier),a&&qe(c.namedBindings.elements,Q$))),!c.isTypeOnly&&101<=j&&j<=199&&oT(n.moduleSpecifier,a)&&!Avt(n)&&Ze(n.moduleSpecifier,f.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,wR[j])):Xe&&!c&&mu(n,n.moduleSpecifier)}jye(n)}}function Avt(n){return!!n.attributes&&n.attributes.elements.some(a=>{var c;return jf(a.name)==="type"&&((c=ni(a.value,ds))==null?void 0:c.text)==="json"})}function Ivt(n){if(!uB(n,Ir(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Zg(n),W.erasableSyntaxOnly&&!(n.flags&33554432)&&Ze(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),s1(n)||X$(n)))if(Q$(n),mR(n,6),n.moduleReference.kind!==284){const a=pd(Wr(n));if(a!==ne){const c=fp(a);if(c&111551){const p=Ou(n.moduleReference);Ul(p,112575).flags&1920||Ze(p,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ws(p))}c&788968&&JL(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&Cn(n,f.An_import_alias_cannot_use_import_type)}else 5<=j&&j<=99&&!n.isTypeOnly&&!(n.flags&33554432)&&Cn(n,f.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 xvt(n){if(!uB(n,Ir(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Zg(n)&&nre(n)&&md(n,f.An_export_declaration_cannot_have_modifiers),Rvt(n),!n.moduleSpecifier||X$(n))if(n.exportClause&&!F_(n.exportClause)){qe(n.exportClause.elements,Dvt);const a=n.parent.kind===269&&Tu(n.parent.parent),c=!a&&n.parent.kind===269&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==308&&!a&&!c&&Ze(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=mu(n,n.moduleSpecifier);a&&th(a)?Ze(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,co(a)):n.exportClause&&($$(n.exportClause),Y$(n.exportClause.name)),e.getEmitModuleFormatOfFile(zn(n))<4&&(n.exportClause?e_(W)&&Zc(n,65536):Zc(n,32768))}jye(n)}}function Rvt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===280?$7e(n.exportClause):!1}function uB(n,a){const c=n.parent.kind===308||n.parent.kind===269||n.parent.kind===268;return c||md(n,a),!c}function Dvt(n){$$(n);const a=n.parent.parent.moduleSpecifier!==void 0;if(Y$(n.propertyName,a),Y$(n.name),vp(W)&&GC(n.propertyName||n.name,!0),a)e_(W)&&e.getEmitModuleFormatOfFile(zn(n))<4&&P_(n.propertyName||n.name)&&Zc(n,131072);else{const c=n.propertyName||n.name;if(c.kind===11)return;const p=gt(c,c.escapedText,2998271,void 0,!0);p&&(p===ce||p===Ce||p.declarations&&nv(Pt(p.declarations[0])))?Ze(c,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Kr(c)):mR(n,7)}}function Cvt(n){const a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(uB(n,a))return;W.erasableSyntaxOnly&&n.isExportEquals&&!(n.flags&33554432)&&Ze(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);const c=n.parent.kind===308?n.parent:n.parent.parent;if(c.kind===268&&!Tu(c)){n.isExportEquals?Ze(n,f.An_export_assignment_cannot_be_used_in_a_namespace):Ze(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Zg(n)&&TV(n)&&md(n,f.An_export_assignment_cannot_have_modifiers);const p=Cc(n);p&&eu(Hl(n.expression),Ji(p),n.expression);const m=!n.isExportEquals&&!(n.flags&33554432)&&W.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(zn(n))===1;if(n.expression.kind===80){const v=n.expression,I=Et(Ul(v,-1,!0,!0,n));if(I){mR(n,3);const w=Rh(I,111551);if(fp(I)&111551?(Hl(v),!m&&!(n.flags&33554432)&&W.verbatimModuleSyntax&&w&&Ze(v,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Kr(v))):!m&&!(n.flags&33554432)&&W.verbatimModuleSyntax&&Ze(v,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Kr(v)),!m&&!(n.flags&33554432)&&Am(W)&&!(I.flags&111551)){const U=fp(I,!1,!0);I.flags&2097152&&U&788968&&!(U&111551)&&(!w||zn(w)!==zn(n))?Ze(v,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Kr(v),Ge):w&&zn(w)!==zn(n)&&Oo(Ze(v,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Kr(v),Ge),w,Kr(v))}}else Hl(v);vp(W)&&GC(v,!0)}else Hl(n.expression);m&&Ze(n,nA(n)),g7e(c),n.flags&33554432&&!Ns(n.expression)&&Cn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(j>=5&&j!==200&&(n.flags&33554432&&e.getImpliedNodeFormatForEmit(zn(n))===99||!(n.flags&33554432)&&e.getImpliedNodeFormatForEmit(zn(n))!==1)?Cn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===4&&!(n.flags&33554432)&&Cn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Nvt(n){return Jc(n.exports,(a,c)=>c!=="export=")}function g7e(n){const a=Wr(n),c=Jr(a);if(!c.exportsChecked){const p=a.exports.get("export=");if(p&&Nvt(a)){const v=pp(p)||p.valueDeclaration;v&&!gL(v)&&!Ir(v)&&Ze(v,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const m=v_(a);m&&m.forEach(({declarations:v,flags:I},w)=>{if(w==="__export"||I&1920)return;const U=Ao(v,$W(tqe,QW(yd)));if(!(I&524288&&U<=2)&&U>1&&!Z$(v))for(const H of v)_Ae(H)&&rs.add(Ar(H,f.Cannot_redeclare_exported_variable_0,Vi(w)))}),c.exportsChecked=!0}}function Z$(n){return n&&n.length>1&&n.every(a=>Ir(a)&&Ys(a)&&(l1(a.expression)||Sg(a.expression)))}function Wa(n){if(n){const a=R;R=n,y=0,Mvt(n),R=a}}function Mvt(n){if(bR(n)&8388608)return;Ck(n)&&qe(n.jsDoc,({comment:c,tags:p})=>{y7e(c),qe(p,m=>{y7e(m.comment),Ir(n)&&Wa(m)})});const a=n.kind;if(i)switch(a){case 268:case 264:case 265:case 263:i.throwIfCancellationRequested()}switch(a>=244&&a<=260&&aD(n)&&n.flowNode&&!M5(n.flowNode)&&Qm(W.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 169:return A3e(n);case 170:return I3e(n);case 173:return D3e(n);case 172:return mgt(n);case 186:case 185:case 180:case 181:case 182:return hW(n);case 175:case 174:return hgt(n);case 176:return _gt(n);case 177:return ggt(n);case 178:case 179:return N3e(n);case 184:return Rye(n);case 183:return dgt(n);case 187:return Egt(n);case 188:return Agt(n);case 189:return Igt(n);case 190:return xgt(n);case 193:case 194:return Rgt(n);case 197:case 191:case 192:return Wa(n.type);case 198:return Mgt(n);case 199:return Pgt(n);case 195:return Lgt(n);case 196:return kgt(n);case 204:return wgt(n);case 206:return Ogt(n);case 203:return Wgt(n);case 329:return ryt(n);case 330:return nyt(n);case 347:case 339:case 341:return qgt(n);case 346:return Jgt(n);case 345:return Kgt(n);case 325:case 326:case 327:return Ygt(n);case 342:return $gt(n);case 349:return Qgt(n);case 318:Zgt(n);case 316:case 315:case 313:case 314:case 323:v7e(n),Jo(n,Wa);return;case 319:Pvt(n);return;case 310:return Wa(n.type);case 334:case 336:case 335:return iyt(n);case 351:return Xgt(n);case 344:return eyt(n);case 352:return tyt(n);case 200:return Dgt(n);case 201:return Cgt(n);case 263:return Hgt(n);case 242:case 269:return j$(n);case 244:return Syt(n);case 245:return Eyt(n);case 246:return Ayt(n);case 247:return Ryt(n);case 248:return Dyt(n);case 249:return Cyt(n);case 250:return Myt(n);case 251:return Nyt(n);case 252:case 253:return Byt(n);case 254:return Gyt(n);case 255:return Vyt(n);case 256:return jyt(n);case 257:return Uyt(n);case 258:return Hyt(n);case 259:return qyt(n);case 261:return byt(n);case 209:return Tyt(n);case 264:return evt(n);case 265:return dvt(n);case 266:return uvt(n);case 267:return hvt(n);case 307:return gvt(n);case 268:return bvt(n);case 273:return Evt(n);case 272:return Ivt(n);case 279:return xvt(n);case 278:return Cvt(n);case 243:case 260:Ky(n);return;case 283:return vgt(n)}}function y7e(n){No(n)&&qe(n,a=>{mI(a)&&Wa(a)})}function v7e(n){if(!Ir(n))if(M4(n)||LD(n)){const a=_a(M4(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,p=n.type,m=Ji(p);Cn(n,c,a,sr(LD(n)&&!(m===yn||m===In)?pi(Vn([m,ge],n.postfix?void 0:Kt)):m))}else Cn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Pvt(n){v7e(n),Wa(n.type);const{parent:a}=n;if(Zi(a)&&kD(a.parent)){Ga(a.parent.parameters)!==a&&Ze(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}r0(a)||Ze(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!_f(c)){Ze(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const p=Nk(c);if(!p)return;const m=VT(c);(!m||Ga(m.parameters).symbol!==p)&&Ze(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function Lvt(n){const a=Ji(n.type),{parent:c}=n,p=n.parent.parent;if(r0(n.parent)&&_f(p)){const m=VT(p),v=Fj(p.parent.parent);if(m||v){const I=tl(v?p.parent.parent.typeExpression.parameters:m.parameters),w=Nk(p);if(!I||w&&I.symbol===w&&M_(I))return Zd(a)}}return Zi(c)&&kD(c.parent)?Zd(a):hu(a)}function yR(n){const a=zn(n),c=Vr(a);c.flags&1?C.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function b7e(n){const a=Vr(n);a.deferredNodes&&a.deferredNodes.forEach(kvt),a.deferredNodes=void 0}function kvt(n){var a,c;(a=xr)==null||a.push(xr.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const p=R;switch(R=n,y=0,n.kind){case 214:case 215:case 216:case 171:case 287:GA(n);break;case 219:case 220:case 175:case 174:I_t(n);break;case 178:case 179:N3e(n);break;case 232:Zyt(n);break;case 169:cgt(n);break;case 286:Pmt(n);break;case 285:kmt(n);break;case 217:case 235:case 218:Xht(n);break;case 223:_o(n.expression);break;case 227:L6(n)&&GA(n);break}R=p,(c=xr)==null||c.pop()}function wvt(n,a){var c,p;(c=xr)==null||c.push(xr.Phase.Check,a?"checkSourceFileNodes":"checkSourceFile",{path:n.path},!0);const m=a?"beforeCheckNodes":"beforeCheck",v=a?"afterCheckNodes":"afterCheck";Nl(m),a?Wvt(n,a):Ovt(n),Nl(v),zf("Check",m,v),(p=xr)==null||p.pop()}function T7e(n,a){if(a)return!1;switch(n){case 0:return!!W.noUnusedLocals;case 1:return!!W.noUnusedParameters;default:return C.assertNever(n)}}function S7e(n){return Qn.get(n.path)||ie}function Ovt(n){const a=Vr(n);if(!(a.flags&1)){if(bD(n,W,e))return;X7e(n),Ra(Qb),Ra(Iv),Ra(xy),Ra(Ry),Ra(Dy),a.flags&8388608&&(Qb=a.potentialThisCollisions,Iv=a.potentialNewTargetCollisions,xy=a.potentialWeakMapSetCollisions,Ry=a.potentialReflectCollisions,Dy=a.potentialUnusedRenamedBindingElementsInTypes),qe(n.statements,Wa),Wa(n.endOfFileToken),b7e(n),wp(n)&&ST(n),r(()=>{!n.isDeclarationFile&&(W.noUnusedLocals||W.noUnusedParameters)&&G3e(S7e(n),(c,p,m)=>{!yI(c)&&T7e(p,!!(c.flags&33554432))&&rs.add(m)}),n.isDeclarationFile||lyt()}),wp(n)&&g7e(n),Qb.length&&(qe(Qb,uyt),Ra(Qb)),Iv.length&&(qe(Iv,pyt),Ra(Iv)),xy.length&&(qe(xy,_yt),Ra(xy)),Ry.length&&(qe(Ry,yyt),Ra(Ry)),a.flags|=1}}function Wvt(n,a){const c=Vr(n);if(!(c.flags&1)){if(bD(n,W,e))return;X7e(n),Ra(Qb),Ra(Iv),Ra(xy),Ra(Ry),Ra(Dy),qe(a,Wa),b7e(n),(c.potentialThisCollisions||(c.potentialThisCollisions=[])).push(...Qb),(c.potentialNewTargetCollisions||(c.potentialNewTargetCollisions=[])).push(...Iv),(c.potentialWeakMapSetCollisions||(c.potentialWeakMapSetCollisions=[])).push(...xy),(c.potentialReflectCollisions||(c.potentialReflectCollisions=[])).push(...Ry),(c.potentialUnusedRenamedBindingElementsInTypes||(c.potentialUnusedRenamedBindingElementsInTypes=[])).push(...Dy),c.flags|=8388608;for(const p of a){const m=Vr(p);m.flags|=8388608}}}function E7e(n,a,c){try{return i=a,Fvt(n,c)}finally{i=void 0}}function Uye(){for(const n of t)n();t=[]}function Hye(n,a){Uye();const c=r;r=p=>p(),wvt(n,a),r=c}function Fvt(n,a){if(n){Uye();const c=rs.getGlobalDiagnostics(),p=c.length;Hye(n,a);const m=rs.getDiagnostics(n.fileName);if(a)return m;const v=rs.getGlobalDiagnostics();if(v!==c){const I=lZ(c,v,IM);return ao(I,m)}else if(p===0&&v.length>0)return ao(v,m);return m}return qe(e.getSourceFiles(),c=>Hye(c)),rs.getDiagnostics()}function zvt(){return Uye(),rs.getGlobalDiagnostics()}function Bvt(n,a){if(n.flags&67108864)return[];const c=da();let p=!1;return m(),c.delete("this"),Xhe(c);function m(){for(;n;){switch(N_(n)&&n.locals&&!nv(n)&&I(n.locals,a),n.kind){case 308:if(!Vc(n))break;case 268:w(Wr(n).exports,a&2623475);break;case 267:I(Wr(n).exports,a&8);break;case 232:n.name&&v(n.symbol,a);case 264:case 265:p||I(Z_(Wr(n)),a&788968);break;case 219:n.name&&v(n.symbol,a);break}bne(n)&&v(ye,a),p=ua(n),n=n.parent}I(lt,a)}function v(U,H){if(hD(U)&H){const Q=U.escapedName;c.has(Q)||c.set(Q,U)}}function I(U,H){H&&U.forEach(Q=>{v(Q,H)})}function w(U,H){H&&U.forEach(Q=>{!ll(Q,282)&&!ll(Q,281)&&Q.escapedName!=="default"&&v(Q,H)})}}function Gvt(n){return n.kind===80&&zI(n.parent)&&wo(n.parent)===n}function A7e(n){for(;n.parent.kind===167;)n=n.parent;return n.parent.kind===184}function Vvt(n){for(;n.parent.kind===212;)n=n.parent;return n.parent.kind===234}function I7e(n,a){let c,p=_d(n);for(;p&&!(c=a(p));)p=_d(p);return c}function jvt(n){return!!Dn(n,a=>kl(a)&&vm(a.body)||Mo(a)?!0:ui(a)||Ls(a)?"quit":!1)}function qye(n,a){return!!I7e(n,c=>c===a)}function Uvt(n){for(;n.parent.kind===167;)n=n.parent;if(n.parent.kind===272)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===278)return n.parent.expression===n?n.parent:void 0}function eQ(n){return Uvt(n)!==void 0}function Hvt(n){switch(lc(n.parent.parent)){case 1:case 3:return Rf(n.parent);case 5:if(qr(n.parent)&&_D(n.parent)===n)return;case 4:case 2:return Wr(n.parent.parent)}}function qvt(n){let a=n.parent;for(;Wu(a);)n=a,a=a.parent;if(a&&a.kind===206&&a.qualifier===n)return a}function Jvt(n){if(n.expression.kind===110){const a=Su(n,!1,!1);if($o(a)){const c=w6e(a);if(c){const p=iS(c,void 0),m=W6e(c,p);return m&&!wr(m)}}}}function x7e(n){if(w_(n))return Rf(n.parent);if(Ir(n)&&n.parent.kind===212&&n.parent===n.parent.parent.left&&!Qi(n)&&!i0(n)&&!Jvt(n.parent)){const a=Hvt(n);if(a)return a}if(n.parent.kind===278&&Ns(n)){const a=Ul(n,2998271,!0);if(a&&a!==ne)return a}else if(ku(n)&&eQ(n)){const a=UT(n,272);return C.assert(a!==void 0),lT(n,!0)}if(ku(n)){const a=qvt(n);if(a){Ji(a);const c=Vr(n).resolvedSymbol;return c===ne?void 0:c}}for(;lre(n);)n=n.parent;if(Vvt(n)){let a=0;n.parent.kind===234?(a=Kh(n)?788968:111551,P6(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Ns(n)?Ul(n,a,!0):void 0;if(c)return c}if(n.parent.kind===342)return Nk(n.parent);if(n.parent.kind===169&&n.parent.parent.kind===346){C.assert(!Ir(n));const a=One(n.parent);return a&&a.symbol}if(k_(n)){if(zl(n))return;const a=Dn(n,Np(mI,ZM,i0)),c=a?901119:111551;if(n.kind===80){if(rD(n)&&_R(n)){const m=b$(n.parent);return m===ne?void 0:m}const p=Ul(n,c,!0,!0,VT(n));if(!p&&a){const m=Dn(n,Np(ui,yd));if(m)return pB(n,!0,Wr(m))}if(p&&a){const m=CS(n);if(m&&_y(m)&&m===p.valueDeclaration)return Ul(n,c,!0,!0,zn(m))||p}return p}else{if(Qi(n))return A$(n);if(n.kind===212||n.kind===167){const p=Vr(n);return p.resolvedSymbol?p.resolvedSymbol:(n.kind===212?(E$(n,0),p.resolvedSymbol||(p.resolvedSymbol=R7e(Hl(n.expression),Fy(n.name)))):f4e(n,0),!p.resolvedSymbol&&a&&Wu(n)?pB(n):p.resolvedSymbol)}else if(i0(n))return pB(n)}}else if(ku(n)&&A7e(n)){const a=n.parent.kind===184?788968:1920,c=Ul(n,a,!0,!0);return c&&c!==ne?c:SY(n)}if(n.parent.kind===183)return Ul(n,1,!0)}function R7e(n,a){const c=Khe(n,a);if(c.length&&n.members){const p=yY(Mh(n).members);if(c===Qd(n))return p;if(p){const m=Jr(p),v=Ei(c,w=>w.declaration),I=Yt(v,ls).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(I))return m.filteredIndexSymbolCache.get(I);{const w=Ua(131072,"__index");return w.declarations=Ei(c,U=>U.declaration),w.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:um(w.declarations[0].parent),m.filteredIndexSymbolCache.set(I,w),w}}}}function pB(n,a,c){if(ku(n)){let I=Ul(n,901119,a,!0,VT(n));if(!I&&Je(n)&&c&&(I=as(Ed(Xp(c),n.escapedText,901119))),I)return I}const p=Je(n)?c:pB(n.left,a,c),m=Je(n)?n.escapedText:n.right.escapedText;if(p){const v=p.flags&111551&&Ea(_r(p),"prototype"),I=v?_r(v):Ks(p);return Ea(I,m)}}function um(n,a){if(Xi(n))return Vc(n)?as(n.symbol):void 0;const{parent:c}=n,p=c.parent;if(!(n.flags&67108864)){if(gAe(n)){const m=Wr(c);return _b(n.parent)&&n.parent.propertyName===n?y$(m):m}else if(Pk(n))return Wr(c.parent);if(n.kind===80){if(eQ(n))return x7e(n);if(c.kind===209&&p.kind===207&&n===c.propertyName){const m=vR(p),v=Ea(m,n.escapedText);if(v)return v}else if(x1(c)&&c.name===n)return c.keywordToken===105&&Kr(n)==="target"?lye(c).symbol:c.keywordToken===102&&Kr(n)==="meta"?hWe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 212:case 167:if(!kS(n))return x7e(n);case 110:const m=Su(n,!1,!1);if($o(m)){const w=Nf(m);if(w.thisParameter)return w.thisParameter}if(a6(n))return _o(n).symbol;case 198:return D_e(n).symbol;case 108:return _o(n).symbol;case 137:const v=n.parent;return v&&v.kind===177?v.parent.symbol:void 0;case 11:case 15:if(BT(n.parent.parent)&&tM(n.parent.parent)===n||(n.parent.kind===273||n.parent.kind===279)&&n.parent.moduleSpecifier===n||Ir(n)&&l_(n.parent)&&n.parent.moduleSpecifier===n||Ir(n)&&np(n.parent,!1)||tp(n.parent)||fv(n.parent)&&sy(n.parent.parent)&&n.parent.parent.argument===n.parent)return mu(n,n,a);if(ea(c)&&c1(c)&&c.arguments[1]===n)return Wr(c);case 9:const I=zs(c)?c.argumentExpression===n?Od(c.expression):void 0:fv(c)&&US(p)?Ji(p.objectType):void 0;return I&&Ea(I,Pl(n.text));case 90:case 100:case 39:case 86:return Rf(n.parent);case 206:return sy(n)?um(n.argument.literal,a):void 0;case 95:return dl(n.parent)?C.checkDefined(n.parent.symbol):void 0;case 102:if(x1(n.parent)&&n.parent.name.escapedText==="defer")return;case 105:return x1(n.parent)?$4e(n.parent).symbol:void 0;case 104:if(Nr(n.parent)){const w=Od(n.parent.right),U=vye(w);return U?.symbol??w.symbol}return;case 237:return _o(n).symbol;case 296:if(rD(n)&&_R(n)){const w=b$(n.parent);return w===ne?void 0:w}default:return}}}function Kvt(n){if(Je(n)&&qr(n.parent)&&n.parent.name===n){const a=Fy(n),c=Od(n.parent.expression),p=c.flags&1048576?c.types:[c];return fi(p,m=>Un(Qd(m),v=>oR(a,v.keyType)))}}function Xvt(n){if(n&&n.kind===305)return Ul(n.name,2208703,!0)}function Yvt(n){if(lu(n)){const a=n.propertyName||n.name;return n.parent.parent.moduleSpecifier?W0(n.parent.parent,n):a.kind===11?void 0:Ul(a,2998271,!0)}else return Ul(n,2998271,!0)}function vR(n){if(Xi(n)&&!Vc(n)||n.flags&67108864)return nt;const a=xV(n),c=a&&om(Wr(a.class));if(Kh(n)){const p=Ji(n);return c?$p(p,c.thisType):p}if(k_(n))return D7e(n);if(c&&!a.isImplements){const p=Rc(ih(c));return p?$p(p,c.thisType):nt}if(zI(n)){const p=Wr(n);return Ks(p)}if(Gvt(n)){const p=um(n);return p?Ks(p):nt}if(qa(n))return tR(n,!0,0)||nt;if(id(n)){const p=Wr(n);return p?_r(p):nt}if(gAe(n)){const p=um(n);return p?_r(p):nt}if(Zo(n))return tR(n.parent,!0,0)||nt;if(eQ(n)){const p=um(n);if(p){const m=Ks(p);return pr(m)?_r(p):m}}return x1(n.parent)&&n.parent.keywordToken===n.kind?$4e(n.parent):D1(n)?o_e(!1):nt}function tQ(n){if(C.assert(n.kind===211||n.kind===210),n.parent.kind===251){const m=lB(n.parent);return jA(n,m||nt)}if(n.parent.kind===227){const m=Od(n.parent.right);return jA(n,m||nt)}if(n.parent.kind===304){const m=ma(n.parent.parent,za),v=tQ(m)||nt,I=YR(m.properties,n.parent);return p3e(m,v,I)}const a=ma(n.parent,Nd),c=tQ(a)||nt,p=Jv(65,c,ge,n.parent)||nt;return f3e(a,c,a.elements.indexOf(n),p)}function $vt(n){const a=tQ(ma(n.parent.parent,HN));return a&&Ea(a,n.escapedText)}function D7e(n){return vM(n)&&(n=n.parent),Pu(Od(n))}function C7e(n){const a=Rf(n.parent);return ua(n)?_r(a):Ks(a)}function N7e(n){const a=n.name;switch(a.kind){case 80:return Ip(Kr(a));case 9:case 11:return Ip(a.text);case 168:const c=ah(a);return wd(c,12288)?c:yt;default:return C.fail("Unsupported property name.")}}function Jye(n){n=Mu(n);const a=da(Ts(n)),c=ra(n,0).length?go:ra(n,1).length?es:void 0;return c&&qe(Ts(c),p=>{a.has(p.escapedName)||a.set(p.escapedName,p)}),qu(a)}function nQ(n){return ra(n,0).length!==0||ra(n,1).length!==0}function M7e(n){const a=Qvt(n);return a?fi(a,M7e):[n]}function Qvt(n){if(Bl(n)&6)return Ei(Jr(n).containingType.types,a=>Ea(a,n.escapedName));if(n.flags&33554432){const{links:{leftSpread:a,rightSpread:c,syntheticOrigin:p}}=n;return a?[a,c]:p?[p]:oI(Zvt(n))}}function Zvt(n){let a,c=n;for(;c=Jr(c).target;)a=c;return a}function ebt(n){if(ml(n))return!1;const a=jo(n,Je);if(!a)return!1;const c=a.parent;return c?!((qr(c)||Pc(c))&&c.name===a)&&IW(a)===ye:!1}function tbt(n){return $2(n.parent)&&n===n.parent.name}function nbt(n,a){var c;const p=jo(n,Je);if(p){let m=IW(p,tbt(p));if(m){if(m.flags&1048576){const I=as(m.exportSymbol);if(!a&&I.flags&944&&!(I.flags&3))return;m=I}const v=Qc(m);if(v){if(v.flags&512&&((c=v.valueDeclaration)==null?void 0:c.kind)===308){const I=v.valueDeclaration,w=zn(p);return I!==w?void 0:I}return Dn(p.parent,I=>$2(I)&&Wr(I)===v)}}}}function rbt(n){const a=Cie(n);if(a)return a;const c=jo(n,Je);if(c){const p=ybt(c);if(lA(p,111551)&&!Rh(p,111551))return pp(p)}}function ibt(n){return n.valueDeclaration&&qa(n.valueDeclaration)&&YE(n.valueDeclaration).parent.kind===300}function P7e(n){if(n.flags&418&&n.valueDeclaration&&!Xi(n.valueDeclaration)){const a=Jr(n);if(a.isDeclarationWithCollidingName===void 0){const c=dh(n.valueDeclaration);if(Yte(c)||ibt(n))if(gt(c.parent,n.escapedName,111551,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(Kye(n.valueDeclaration,16384)){const p=Kye(n.valueDeclaration,32768),m=vb(c,!1),v=c.kind===242&&vb(c.parent,!1);a.isDeclarationWithCollidingName=!ine(c)&&(!p||!m&&!v)}else a.isDeclarationWithCollidingName=!1}return a.isDeclarationWithCollidingName}return!1}function obt(n){if(!ml(n)){const a=jo(n,Je);if(a){const c=IW(a);if(c&&P7e(c))return c.valueDeclaration}}}function abt(n){const a=jo(n,id);if(a){const c=Wr(a);if(c)return P7e(c)}return!1}function L7e(n){switch(C.assert(We),n.kind){case 272:return rQ(Wr(n));case 274:case 275:case 277:case 282:const a=Wr(n);return!!a&&rQ(a,!0);case 279:const c=n.exportClause;return!!c&&(F_(c)||vt(c.elements,L7e));case 278:return n.expression&&n.expression.kind===80?rQ(Wr(n),!0):!0}return!1}function sbt(n){const a=jo(n,Gc);return a===void 0||a.parent.kind!==308||!s1(a)?!1:rQ(Wr(a))&&a.moduleReference&&!zl(a.moduleReference)}function rQ(n,a){if(!n)return!1;const c=zn(n.valueDeclaration),p=c&&Wr(c);Ap(p);const m=Et(pd(n));return m===ne?!a||!Rh(n):!!(fp(n,a,!0)&111551)&&(Nb(W)||!AW(m))}function AW(n){return yye(n)||!!n.constEnumOnlyModule}function k7e(n,a){if(C.assert(We),Nv(n)){const c=Wr(n),p=c&&Jr(c);if(p?.referenced)return!0;const m=Jr(c).aliasTarget;if(m&&Ud(n)&32&&fp(m)&111551&&(Nb(W)||!AW(m)))return!0}return a?!!Jo(n,c=>k7e(c,a)):!1}function w7e(n){if(vm(n.body)){if(_g(n)||Hh(n))return!1;const a=Wr(n),c=DE(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function lbt(n){const a=F7e(n);if(!a)return!1;const c=Ji(a);return pr(c)||QC(c)}function fB(n,a){return(cbt(n,a)||dbt(n))&&!lbt(n)}function cbt(n,a){return!oe||O8(n)||_f(n)||!n.initializer?!1:di(n,31)?!!a&&Ls(a):!0}function dbt(n){return oe&&O8(n)&&(_f(n)||!n.initializer)&&di(n,31)}function O7e(n){const a=jo(n,p=>rc(p)||yi(p));if(!a)return!1;let c;if(yi(a)){if(a.type||!Ir(a)&&!xW(a))return!1;const p=iM(a);if(!p||!ch(p))return!1;c=Wr(p)}else c=Wr(a);return!c||!(c.flags&16|3)?!1:!!Jc(Xp(c),p=>p.flags&111551&&VI(p.valueDeclaration))}function ubt(n){const a=jo(n,rc);if(!a)return ie;const c=Wr(a);return c&&Ts(_r(c))||ie}function bR(n){var a;const c=n.id||0;return c<0||c>=I0.length?0:((a=I0[c])==null?void 0:a.flags)||0}function Kye(n,a){return pbt(n,a),!!(bR(n)&a)}function pbt(n,a){if(!W.noCheck&&PM(zn(n),W)||Vr(n).calculatedFlags&a)return;switch(a){case 16:case 32:return I(n);case 128:case 256:case 2097152:return v(n);case 512:case 8192:case 65536:case 262144:return U(n);case 536870912:return Q(n);case 4096:case 32768:case 16384:return Se(n);default:return C.assertNever(a,`Unhandled node check flag calculation: ${C.formatNodeCheckFlags(a)}`)}function p(Tt,Dt){const $t=Dt(Tt,Tt.parent);if($t!=="skip")return $t||ox(Tt,Dt)}function m(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=2097536,I(Tt)}function v(Tt){p(Tt,m)}function I(Tt){const Dt=Vr(Tt);Dt.calculatedFlags|=48,Tt.kind===108&&u$(Tt)}function w(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=336384,Q(Tt)}function U(Tt){p(Tt,w)}function H(Tt){return k_(Tt)||Jd(Tt.parent)&&(Tt.parent.objectAssignmentInitializer??Tt.parent.name)===Tt}function Q(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags|=536870912,Je(Tt)&&(Dt.calculatedFlags|=49152,H(Tt)&&!(qr(Tt.parent)&&Tt.parent.name===Tt))){const $t=_u(Tt);$t&&$t!==ne&&M6e(Tt,$t)}}function xe(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=53248,et(Tt)}function Se(Tt){const Dt=dh(w_(Tt)?Tt.parent:Tt);p(Dt,xe)}function et(Tt){Q(Tt),va(Tt)&&ah(Tt),Qi(Tt)&&Sc(Tt.parent)&&F$(Tt.parent)}}function UA(n){return m7e(n.parent),Vr(n).enumMemberValue??Kc(void 0)}function W7e(n){switch(n.kind){case 307:case 212:case 213:return!0}return!1}function iQ(n){if(n.kind===307)return UA(n).value;Vr(n).resolvedSymbol||Hl(n);const a=Vr(n).resolvedSymbol||(Ns(n)?Ul(n,111551,!0):void 0);if(a&&a.flags&8){const c=a.valueDeclaration;if(FT(c.parent))return UA(c).value}}function Xye(n){return!!(n.flags&524288)&&ra(n,0).length>0}function fbt(n,a){var c;const p=jo(n,ku);if(!p||a&&(a=jo(a),!a))return 0;let m=!1;if(Wu(p)){const Q=Ul(Ou(p),111551,!0,!0,a);m=!!((c=Q?.declarations)!=null&&c.every(ev))}const v=Ul(p,111551,!0,!0,a),I=v&&v.flags&2097152?pd(v):v;m||(m=!!(v&&Rh(v,111551)));const w=Ul(p,788968,!0,!0,a),U=w&&w.flags&2097152?pd(w):w;if(v||m||(m=!!(w&&Rh(w,788968))),I&&I===U){const Q=a_e(!1);if(Q&&I===Q)return 9;const xe=_r(I);if(xe&&Nh(xe))return m?10:1}if(!U)return m?11:0;const H=Ks(U);return pr(H)?m?11:0:H.flags&3?11:wd(H,245760)?2:wd(H,528)?6:wd(H,296)?3:wd(H,2112)?4:wd(H,402653316)?5:Xa(H)?7:wd(H,12288)?8:Xye(H)?10:lm(H)?7:11}function mbt(n,a,c,p,m){const v=jo(n,p4);if(!v)return L.createToken(133);const I=Wr(v);return Te.serializeTypeForDeclaration(v,I,a,c|1024,p,m)}function Yye(n){n=jo(n,j2);const a=n.kind===179?178:179,c=ll(Wr(n),a),p=c&&c.pos{switch(p.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function Tbt(n){return lk(n)||yi(n)&&xW(n)?ME(_r(Wr(n))):!1}function Sbt(n,a,c){const p=n.flags&1056?Te.symbolToExpression(n.symbol,111551,a,void 0,void 0,c):n===mt?L.createTrue():n===tr&&L.createFalse();if(p)return p;const m=n.value;return typeof m=="object"?L.createBigIntLiteral(m):typeof m=="string"?L.createStringLiteral(m):m<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-m)):L.createNumericLiteral(m)}function Ebt(n,a){const c=_r(Wr(n));return Sbt(c,n,a)}function $ye(n){return n?($m(n),zn(n).localJsxFactory||Ny):Ny}function Qye(n){if(n){const a=zn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),p=No(c)?c[0]:c;if(p)return a.localJsxFragmentFactory=sx(p.arguments.factory,G),a.localJsxFragmentFactory}}if(W.jsxFragmentFactory)return sx(W.jsxFragmentFactory,G)}function F7e(n){const a=Cc(n);if(a)return a;if(n.kind===170&&n.parent.kind===179){const c=Yye(n.parent).getAccessor;if(c)return Wp(c)}}function Abt(){return{getReferencedExportContainer:nbt,getReferencedImportDeclaration:rbt,getReferencedDeclarationWithCollidingName:obt,isDeclarationWithCollidingName:abt,isValueAliasDeclaration:a=>{const c=jo(a);return c&&We?L7e(c):!0},hasGlobalName:gbt,isReferencedAliasDeclaration:(a,c)=>{const p=jo(a);return p&&We?k7e(p,c):!0},hasNodeCheckFlag:(a,c)=>{const p=jo(a);return p?Kye(p,c):!1},isTopLevelValueImportEqualsWithEntityName:sbt,isDeclarationVisible:$_,isImplementationOfOverload:w7e,requiresAddingImplicitUndefined:fB,isExpandoFunctionDeclaration:O7e,getPropertiesOfContainerFunction:ubt,createTypeOfDeclaration:mbt,createReturnTypeOfSignatureDeclaration:hbt,createTypeOfExpression:_bt,createLiteralConstValue:Ebt,isSymbolAccessible:dT,isEntityNameVisible:eR,getConstantValue:a=>{const c=jo(a,W7e);return c?iQ(c):void 0},getEnumMemberValue:a=>{const c=jo(a,_y);return c?UA(c):void 0},collectLinkedAliases:GC,markLinkedReferences:a=>{const c=jo(a);return c&&mR(c,0)},getReferencedValueDeclaration:vbt,getReferencedValueDeclarations:bbt,getTypeReferenceSerializationKind:fbt,isOptionalParameter:O8,isArgumentsLocalBinding:ebt,getExternalModuleFileFromDeclaration:a=>{const c=jo(a,sne);return c&&Zye(c)},isLiteralConstDeclaration:Tbt,isLateBound:a=>{const c=jo(a,id),p=c&&Wr(c);return!!(p&&Bl(p)&4096)},getJsxFactoryEntity:$ye,getJsxFragmentFactoryEntity:Qye,isBindingCapturedByNode:(a,c)=>{const p=jo(a),m=jo(c);return!!p&&!!m&&(yi(m)||qa(m))&&Lft(p,m)},getDeclarationStatementsForSourceFile:(a,c,p,m)=>{const v=jo(a);C.assert(v&&v.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");const I=Wr(a);return I?(Ap(I),I.exports?Te.symbolTableToDeclarationStatements(I.exports,a,c,p,m):[]):a.locals?Te.symbolTableToDeclarationStatements(a.locals,a,c,p,m):[]},isImportRequiredByAugmentation:n,isDefinitelyReferenceToGlobalSymbolObject:K_,createLateBoundIndexSignatures:(a,c,p,m,v)=>{const I=a.symbol,w=Qd(_r(I)),U=gY(I),H=U&&vY(U,Do(Z_(I).values()));let Q;for(const Se of[w,H])if(Qe(Se)){Q||(Q=[]);for(const et of Se){if(et.declaration||et===To)continue;if(et.components&&Hn(et.components,$t=>{var Tn;return!!($t.name&&va($t.name)&&Ns($t.name.expression)&&c&&((Tn=eR($t.name.expression,c,!1))==null?void 0:Tn.accessibility)===0)})){const $t=Un(et.components,Tn=>!jC(Tn));Q.push(...Yt($t,Tn=>{xe(Tn.name.expression);const nr=Se===w?[L.createModifier(126)]:void 0;return L.createPropertyDeclaration(Vn(nr,et.isReadonly?L.createModifier(148):void 0),Tn.name,(Iu(Tn)||Mo(Tn)||qm(Tn)||Ll(Tn)||_g(Tn)||Hh(Tn))&&Tn.questionToken?L.createToken(58):void 0,Te.typeToTypeNode(_r(Tn.symbol),c,p,m,v),void 0)}));continue}const Tt=Te.indexInfoToIndexSignatureDeclaration(et,c,p,m,v);Tt&&Se===w&&(Tt.modifiers||(Tt.modifiers=L.createNodeArray())).unshift(L.createModifier(126)),Tt&&Q.push(Tt)}}return Q;function xe(Se){if(!v.trackSymbol)return;const et=Ou(Se),Tt=gt(et,et.escapedText,1160127,void 0,!0);Tt&&v.trackSymbol(Tt,c,111551)}},symbolToDeclarations:(a,c,p,m,v,I)=>Te.symbolToDeclarations(a,c,p,m,v,I)};function n(a){const c=zn(a);if(!c.symbol)return!1;const p=Zye(a);if(!p||p===c)return!1;const m=v_(c.symbol);for(const v of Do(m.values()))if(v.mergeId){const I=as(v);if(I.declarations){for(const w of I.declarations)if(zn(w)===p)return!0}}return!1}}function Zye(n){const a=n.kind===268?ni(n.name,Oa):EI(n),c=Ep(a,a,void 0);if(c)return ll(c,308)}function Ibt(){for(const a of e.getSourceFiles())Sae(a,W);wl=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!wp(a)){const c=a.locals.get("globalThis");if(c?.declarations)for(const p of c.declarations)rs.add(Ar(p,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));g_(lt,a.locals)}a.jsGlobalAugmentations&&g_(lt,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(lp=ao(lp,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((p,m)=>{lt.has(m)||lt.set(m,p)})}if(n)for(const a of n)for(const c of a)L_(c.parent)&&_E(c);if(L0(),Jr(ce).type=B,Jr(ye).type=$l("IArguments",0,!0),Jr(ne).type=nt,Jr(Ce).type=yc(16,Ce),ts=$l("Array",1,!0),qt=$l("Object",0,!0),er=$l("Function",0,!0),go=fe&&$l("CallableFunction",0,!0)||er,es=fe&&$l("NewableFunction",0,!0)||er,kc=$l("String",0,!0),rl=$l("Number",0,!0),Ol=$l("Boolean",0,!0),Yl=$l("RegExp",0,!0),Td=Zd(He),cd=Zd(Rt),cd===Da&&(cd=Sl(void 0,k,ie,ie,ie)),ja=EWe("ReadonlyArray",1)||ts,qp=ja?NL(ja,[He]):Td,sf=EWe("ThisType",1),n)for(const a of n)for(const c of a)L_(c.parent)||_E(c);wl.forEach(({firstFile:a,secondFile:c,conflictingSymbols:p})=>{if(p.size<8)p.forEach(({isBlockScoped:m,firstFileLocations:v,secondFileLocations:I},w)=>{const U=m?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(const H of v)P0(H,U,w,I);for(const H of I)P0(H,U,w,v)});else{const m=Do(p.keys()).join(", ");rs.add(pa(Ar(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),Ar(c,f.Conflicts_are_in_this_file))),rs.add(pa(Ar(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),Ar(a,f.Conflicts_are_in_this_file)))}}),wl=void 0}function Zc(n,a){if(W.importHelpers){const c=zn(n);if($R(c,W)&&!(n.flags&33554432)){const p=Rbt(c,n);if(p!==ne){const m=Jr(p);if(m.requestedExternalEmitHelpers??(m.requestedExternalEmitHelpers=0),(m.requestedExternalEmitHelpers&a)!==a){const v=a&~m.requestedExternalEmitHelpers;for(let I=1;I<=16777216;I<<=1)if(v&I)for(const w of xbt(I)){const U=gc(Ed(v_(p),Pl(w),111551));U?I&524288?vt(DE(U),H=>Rp(H)>3)||Ze(n,f.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,bb,w,4):I&1048576?vt(DE(U),H=>Rp(H)>4)||Ze(n,f.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,bb,w,5):I&1024&&(vt(DE(U),H=>Rp(H)>2)||Ze(n,f.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,bb,w,3)):Ze(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,bb,w)}}m.requestedExternalEmitHelpers|=a}}}}function xbt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return J?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];case 33554432:return["__rewriteRelativeImportExtension"];default:return C.fail("Unrecognized helper")}}function Rbt(n,a){const c=Vr(n);return c.externalHelpersModule||(c.externalHelpersModule=dA(TTt(n),bb,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ne),c.externalHelpersModule}function Zg(n){var a;const c=Nbt(n)||Dbt(n);if(c!==void 0)return c;if(Zi(n)&&Rb(n))return md(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const p=cc(n)?n.declarationList.flags&7:0;let m,v,I,w,U,H=0,Q=!1,xe=!1;for(const Se of n.modifiers)if(Bc(Se)){if(_k(J,n,n.parent,n.parent.parent)){if(J&&(n.kind===178||n.kind===179)){const et=Yye(n);if(mf(et.firstAccessor)&&n===et.secondAccessor)return md(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===175&&!vm(n.body)?md(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):md(n,f.Decorators_are_not_valid_here);if(H&-34849)return Cn(Se,f.Decorators_are_not_valid_here);if(xe&&H&98303){C.assertIsDefined(U);const et=zn(Se);return AT(et)?!1:(pa(Ze(Se,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Ar(U,f.Decorator_used_before_export_here)),!0)}H|=32768,H&98303?H&32&&(Q=!0):xe=!0,U??(U=Se)}else{if(Se.kind!==148){if(n.kind===172||n.kind===174)return Cn(Se,f._0_modifier_cannot_appear_on_a_type_member,_a(Se.kind));if(n.kind===182&&(Se.kind!==126||!ui(n.parent)))return Cn(Se,f._0_modifier_cannot_appear_on_an_index_signature,_a(Se.kind))}if(Se.kind!==103&&Se.kind!==147&&Se.kind!==87&&n.kind===169)return Cn(Se,f._0_modifier_cannot_appear_on_a_type_parameter,_a(Se.kind));switch(Se.kind){case 87:{if(n.kind!==267&&n.kind!==169)return Cn(n,f.A_class_member_cannot_have_the_0_keyword,_a(87));const Dt=xm(n.parent)&&jT(n.parent)||n.parent;if(n.kind===169&&!(Ls(Dt)||ui(Dt)||W_(Dt)||ID(Dt)||XI(Dt)||JM(Dt)||qm(Dt)))return Cn(Se,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,_a(Se.kind));break}case 164:if(H&16)return Cn(Se,f._0_modifier_already_seen,"override");if(H&128)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return Cn(Se,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return Cn(Se,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return Cn(Se,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,w=Se;break;case 125:case 124:case 123:const et=U0(NI(Se.kind));if(H&7)return Cn(Se,f.Accessibility_modifier_already_seen);if(H&16)return Cn(Se,f._0_modifier_must_precede_1_modifier,et,"override");if(H&256)return Cn(Se,f._0_modifier_must_precede_1_modifier,et,"static");if(H&512)return Cn(Se,f._0_modifier_must_precede_1_modifier,et,"accessor");if(H&8)return Cn(Se,f._0_modifier_must_precede_1_modifier,et,"readonly");if(H&1024)return Cn(Se,f._0_modifier_must_precede_1_modifier,et,"async");if(n.parent.kind===269||n.parent.kind===308)return Cn(Se,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,et);if(H&64)return Se.kind===123?Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,et,"abstract"):Cn(Se,f._0_modifier_must_precede_1_modifier,et,"abstract");if(ou(n))return Cn(Se,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=NI(Se.kind);break;case 126:if(H&256)return Cn(Se,f._0_modifier_already_seen,"static");if(H&8)return Cn(Se,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return Cn(Se,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return Cn(Se,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===269||n.parent.kind===308)return Cn(Se,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===170)return Cn(Se,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return Cn(Se,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,m=Se;break;case 129:if(H&512)return Cn(Se,f._0_modifier_already_seen,"accessor");if(H&8)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==173)return Cn(Se,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return Cn(Se,f._0_modifier_already_seen,"readonly");if(n.kind!==173&&n.kind!==172&&n.kind!==182&&n.kind!==170)return Cn(Se,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=8;break;case 95:if(W.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==266&&n.kind!==265&&n.kind!==268&&n.parent.kind===308&&e.getEmitModuleFormatOfFile(zn(n))===1)return Cn(Se,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(H&32)return Cn(Se,f._0_modifier_already_seen,"export");if(H&128)return Cn(Se,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return Cn(Se,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return Cn(Se,f._0_modifier_must_precede_1_modifier,"export","async");if(ui(n.parent))return Cn(Se,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===170)return Cn(Se,f._0_modifier_cannot_appear_on_a_parameter,"export");if(p===4)return Cn(Se,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(p===6)return Cn(Se,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");H|=32;break;case 90:const Tt=n.parent.kind===308?n.parent:n.parent.parent;if(Tt.kind===268&&!Tu(Tt))return Cn(Se,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(p===4)return Cn(Se,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(p===6)return Cn(Se,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(H&32){if(Q)return Cn(U,f.Decorators_are_not_valid_here)}else return Cn(Se,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return Cn(Se,f._0_modifier_already_seen,"declare");if(H&1024)return Cn(Se,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return Cn(Se,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ui(n.parent)&&!Mo(n))return Cn(Se,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===170)return Cn(Se,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(p===4)return Cn(Se,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(p===6)return Cn(Se,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===269)return Cn(Se,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ou(n))return Cn(Se,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,v=Se;break;case 128:if(H&64)return Cn(Se,f._0_modifier_already_seen,"abstract");if(n.kind!==264&&n.kind!==186){if(n.kind!==175&&n.kind!==173&&n.kind!==178&&n.kind!==179)return Cn(Se,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===264&&di(n.parent,64))){const Dt=n.kind===173?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return Cn(Se,Dt)}if(H&256)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(H&1024&&I)return Cn(I,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(H&16)return Cn(Se,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return Cn(Se,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(rd(n)&&n.name.kind===81)return Cn(Se,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return Cn(Se,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return Cn(Se,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===170)return Cn(Se,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return Cn(Se,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,I=Se;break;case 103:case 147:{const Dt=Se.kind===103?8192:16384,$t=Se.kind===103?"in":"out",Tn=xm(n.parent)&&(jT(n.parent)||mn((a=sD(n.parent))==null?void 0:a.tags,M1))||n.parent;if(n.kind!==169||Tn&&!(yd(Tn)||ui(Tn)||Im(Tn)||M1(Tn)))return Cn(Se,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,$t);if(H&Dt)return Cn(Se,f._0_modifier_already_seen,$t);if(Dt&8192&&H&16384)return Cn(Se,f._0_modifier_must_precede_1_modifier,"in","out");H|=Dt;break}}}return n.kind===177?H&256?Cn(m,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):H&16?Cn(w,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):H&1024?Cn(I,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===273||n.kind===272)&&H&128?Cn(v,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===170&&H&31&&Zo(n.name)?Cn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===170&&H&31&&n.dotDotDotToken?Cn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):H&1024?Pbt(n,I):!1}function Dbt(n){if(!n.modifiers)return!1;const a=Cbt(n);return a&&md(a,f.Modifiers_cannot_appear_here)}function oQ(n,a){const c=mn(n.modifiers,Aa);return c&&c.kind!==a?c:void 0}function Cbt(n){switch(n.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return mn(n.modifiers,Aa);default:if(n.parent.kind===269||n.parent.kind===308)return;switch(n.kind){case 263:return oQ(n,134);case 264:case 186:return oQ(n,128);case 232:case 265:case 266:return mn(n.modifiers,Aa);case 244:return n.declarationList.flags&4?oQ(n,135):mn(n.modifiers,Aa);case 267:return oQ(n,87);default:C.assertNever(n)}}}function Nbt(n){const a=Mbt(n);return a&&md(a,f.Decorators_are_not_valid_here)}function Mbt(n){return tU(n)?mn(n.modifiers,Bc):void 0}function Pbt(n,a){switch(n.kind){case 175:case 263:case 219:case 220:return!1}return Cn(a,f._0_modifier_cannot_be_used_here,"async")}function TR(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?oS(n[0],n.end-1,1,a):!1}function z7e(n,a){if(n&&n.length===0){const c=n.pos-1,p=wa(a.text,n.end)+1;return oS(a,c,p-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Lbt(n){let a=!1;const c=n.length;for(let p=0;p!!a.initializer||Zo(a.name)||M_(a))}function wbt(n){if(G>=3){const a=n.body&&ta(n.body)&&$j(n.body.statements);if(a){const c=kbt(n.parameters);if(Qe(c)){qe(c,m=>{pa(Ze(m,f.This_parameter_is_not_allowed_with_use_strict_directive),Ar(a,f.use_strict_directive_used_here))});const p=c.map((m,v)=>v===0?Ar(m,f.Non_simple_parameter_declared_here):Ar(m,f.and_here));return pa(Ze(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...p),!0}}}return!1}function aQ(n){const a=zn(n);return Zg(n)||z7e(n.typeParameters,a)||Lbt(n.parameters)||Wbt(n,a)||Ls(n)&&wbt(n)}function Obt(n){const a=zn(n);return Vbt(n)||z7e(n.typeParameters,a)}function Wbt(n,a){if(!$s(n))return!1;n.typeParameters&&!(Qe(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&tc(a.fileName,[".mts",".cts"])&&Cn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:c}=n,p=ca(a,c.pos).line,m=ca(a,c.end).line;return p!==m&&Cn(c,f.Line_terminator_not_permitted_before_arrow)}function Fbt(n){const a=n.parameters[0];if(n.parameters.length!==1)return Cn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(TR(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return Cn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(TV(a))return Cn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return Cn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return Cn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return Cn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);const c=Ji(a.type);return dm(c,p=>!!(p.flags&8576))||$0(c)?Cn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):xp(c,bY)?n.type?!1:Cn(n,f.An_index_signature_must_have_a_type_annotation):Cn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function zbt(n){return Zg(n)||Fbt(n)}function Bbt(n,a){if(a&&a.length===0){const c=zn(n),p=a.pos-1,m=wa(c.text,a.end)+1;return oS(c,p,m-p,f.Type_argument_list_cannot_be_empty)}return!1}function mB(n,a){return TR(a)||Bbt(n,a)}function Gbt(n){return n.questionDotToken||n.flags&64?Cn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function B7e(n){const a=n.types;if(TR(a))return!0;if(a&&a.length===0){const c=_a(n.token);return oS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return vt(a,G7e)}function G7e(n){return my(n)&&qM(n.expression)&&n.typeArguments?Cn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):mB(n,n.typeArguments)}function Vbt(n){let a=!1,c=!1;if(!Zg(n)&&n.heritageClauses)for(const p of n.heritageClauses){if(p.token===96){if(a)return md(p,f.extends_clause_already_seen);if(c)return md(p,f.extends_clause_must_precede_implements_clause);if(p.types.length>1)return md(p.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(C.assert(p.token===119),c)return md(p,f.implements_clause_already_seen);c=!0}B7e(p)}}function jbt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return md(c,f.extends_clause_already_seen);a=!0}else return C.assert(c.token===119),md(c,f.Interface_declaration_cannot_have_implements_clause);B7e(c)}return!1}function sQ(n){if(n.kind!==168)return!1;const a=n;return a.expression.kind===227&&a.expression.operatorToken.kind===28?Cn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function eve(n){if(n.asteriskToken){if(C.assert(n.kind===263||n.kind===219||n.kind===175),n.flags&33554432)return Cn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return Cn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function tve(n,a){return!!n&&Cn(n,a)}function V7e(n,a){return!!n&&Cn(n,a)}function Ubt(n,a){const c=new Map;for(const p of n.properties){if(p.kind===306){if(a){const I=us(p.expression);if(Nd(I)||za(I))return Cn(p.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}const m=p.name;if(m.kind===168&&sQ(m),p.kind===305&&!a&&p.objectAssignmentInitializer&&Cn(p.equalsToken,f.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),m.kind===81&&Cn(m,f.Private_identifiers_are_not_allowed_outside_class_bodies),Rm(p)&&p.modifiers)for(const I of p.modifiers)Aa(I)&&(I.kind!==134||p.kind!==175)&&Cn(I,f._0_modifier_cannot_be_used_here,Rl(I));else if(hoe(p)&&p.modifiers)for(const I of p.modifiers)Aa(I)&&Cn(I,f._0_modifier_cannot_be_used_here,Rl(I));let v;switch(p.kind){case 305:case 304:V7e(p.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),tve(p.questionToken,f.An_object_member_cannot_be_declared_optional),m.kind===9&&Y7e(m),m.kind===10&&Wg(!0,Ar(m,f.A_bigint_literal_cannot_be_used_as_a_property_name)),v=4;break;case 175:v=8;break;case 178:v=1;break;case 179:v=2;break;default:C.assertNever(p,"Unexpected syntax kind:"+p.kind)}if(!a){const I=ive(m);if(I===void 0)continue;const w=c.get(I);if(!w)c.set(I,v);else if(v&8&&w&8)Cn(m,f.Duplicate_identifier_0,Rl(m));else if(v&4&&w&4)Cn(m,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Rl(m));else if(v&3&&w&3)if(w!==3&&v!==w)c.set(I,v|w);else return Cn(m,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Cn(m,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Hbt(n){qbt(n.tagName),mB(n,n.typeArguments);const a=new Map;for(const c of n.attributes.properties){if(c.kind===294)continue;const{name:p,initializer:m}=c,v=FM(p);if(!a.get(v))a.set(v,!0);else return Cn(p,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(m&&m.kind===295&&!m.expression)return Cn(m,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function qbt(n){if(qr(n)&&_h(n.expression))return Cn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(_h(n)&&J6(W)&&!uD(n.namespace.escapedText))return Cn(n,f.React_components_cannot_include_JSX_namespace_names)}function Jbt(n){if(n.expression&&nP(n.expression))return Cn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function j7e(n){if(Ky(n))return!0;if(n.kind===251&&n.awaitModifier&&!(n.flags&65536)){const a=zn(n);if(r6(n)){if(!AT(a))switch($R(a,W)||rs.add(Ar(n.awaitModifier,f.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)),j){case 100:case 101:case 102:case 199:if(a.impliedNodeFormat===1){rs.add(Ar(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(G>=4)break;default:rs.add(Ar(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!AT(a)){const c=Ar(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),p=pf(n);if(p&&p.kind!==177){C.assert((pc(p)&2)===0,"Enclosing function should never be an async function.");const m=Ar(p,f.Did_you_mean_to_mark_this_function_as_async);pa(c,m)}return rs.add(c),!0}}if(Ew(n)&&!(n.flags&65536)&&Je(n.initializer)&&n.initializer.escapedText==="async")return Cn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===262){const a=n.initializer;if(!rve(a)){const c=a.declarations;if(!c.length)return!1;if(c.length>1){const m=n.kind===250?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return md(a.declarations[1],m)}const p=c[0];if(p.initializer){const m=n.kind===250?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Cn(p.name,m)}if(p.type){const m=n.kind===250?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Cn(p,m)}}}return!1}function Kbt(n){if(!(n.flags&33554432)&&n.parent.kind!==188&&n.parent.kind!==265){if(G<2&&Qi(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!di(n,64))return oS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(di(n,64))return Cn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===188||n.parent.kind===265)return Cn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Cn(n.name,f.An_accessor_cannot_have_type_parameters);if(!Xbt(n))return Cn(n.name,n.kind===178?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===179){if(n.type)return Cn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);const a=C.checkDefined(gM(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return Cn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return Cn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return Cn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Xbt(n){return nve(n)||n.parameters.length===(n.kind===178?0:1)}function nve(n){if(n.parameters.length===(n.kind===178?1:2))return LS(n)}function Ybt(n){if(n.operator===158){if(n.type.kind!==155)return Cn(n.type,f._0_expected,_a(155));let a=Mk(n.parent);if(Ir(a)&&r0(a)){const c=CS(a);c&&(a=xI(c)||c)}switch(a.kind){case 261:const c=a;if(c.name.kind!==80)return Cn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!QN(c))return Cn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return Cn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!ua(a)||!h1(a))return Cn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!di(a,8))return Cn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Cn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==189&&n.type.kind!==190)return md(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,_a(155))}function KL(n,a){if(I8e(n)&&!Ns(zs(n)?us(n.argumentExpression):n.expression))return Cn(n,a)}function U7e(n){if(aQ(n))return!0;if(n.kind===175){if(n.parent.kind===211){if(n.modifiers&&!(n.modifiers.length===1&&Qa(n.modifiers).kind===134))return md(n,f.Modifiers_cannot_appear_here);if(tve(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(V7e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return oS(n,n.end-1,1,f._0_expected,"{")}if(eve(n))return!0}if(ui(n.parent)){if(G<2&&Qi(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return KL(n.name,f.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===175&&!n.body)return KL(n.name,f.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===265)return KL(n.name,f.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===188)return KL(n.name,f.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 $bt(n){let a=n;for(;a;){if(qR(a))return Cn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 257:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===252&&!vb(a.statement,!0)?Cn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 256:if(n.kind===253&&!n.label)return!1;break;default:if(vb(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){const c=n.kind===253?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Cn(n,c)}else{const c=n.kind===253?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Cn(n,c)}}function Qbt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Ga(a))return Cn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(TR(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Cn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return oS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function H7e(n){return ff(n)||n.kind===225&&n.operator===41&&n.operand.kind===9}function Zbt(n){return n.kind===10||n.kind===225&&n.operator===41&&n.operand.kind===10}function eTt(n){if((qr(n)||zs(n)&&H7e(n.argumentExpression))&&Ns(n.expression))return!!(Hl(n).flags&1056)}function q7e(n){const a=n.initializer;if(a){const c=!(H7e(a)||eTt(a)||a.kind===112||a.kind===97||Zbt(a));if((lk(n)||yi(n)&&xW(n))&&!n.type){if(c)return Cn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Cn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function tTt(n){const a=zE(n),c=a&7;if(Zo(n.name))switch(c){case 6:return Cn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Cn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==250&&n.parent.parent.kind!==251){if(a&33554432)q7e(n);else if(!n.initializer){if(Zo(n.name)&&!Zo(n.parent))return Cn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return Cn(n,f._0_declarations_must_be_initialized,"await using");case 4:return Cn(n,f._0_declarations_must_be_initialized,"using");case 2:return Cn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==244||!n.type||n.initializer||a&33554432)){const p=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Cn(n.exclamationToken,p)}return e.getEmitModuleFormatOfFile(zn(n))<4&&!(n.parent.parent.flags&33554432)&&di(n.parent.parent,32)&&J7e(n.name),!!c&&K7e(n.name)}function J7e(n){if(n.kind===80){if(Kr(n)==="__esModule")return iTt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=n.elements;for(const c of a)if(!Xc(c))return J7e(c.name)}return!1}function K7e(n){if(n.kind===80){if(n.escapedText==="let")return Cn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=n.elements;for(const c of a)Xc(c)||K7e(c.name)}return!1}function rve(n){const a=n.declarations;if(TR(n.declarations))return!0;if(!n.declarations.length)return oS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);const c=n.flags&7;if(c===4||c===6){if(C4(n.parent))return Cn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(n.flags&33554432)return Cn(n,c===4?f.using_declarations_are_not_allowed_in_ambient_contexts:f.await_using_declarations_are_not_allowed_in_ambient_contexts);if(c===6)return u3e(n)}return!1}function lQ(n){switch(n.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return lQ(n.parent)}return!0}function nTt(n){if(!lQ(n.parent)){const a=zE(n.declarationList)&7;if(a){const c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":C.fail("Unknown BlockScope flag");Ze(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function rTt(n){const a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),_a(n.keywordToken),"target");break;case 102:if(a!=="meta"){const c=ea(n.parent)&&n.parent.expression===n;if(a==="defer"){if(!c)return oS(n,n.end,0,f._0_expected,"(")}else return c?Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,Vi(n.name.escapedText)):Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Vi(n.name.escapedText),_a(n.keywordToken),"meta")}break}}function AT(n){return n.parseDiagnostics.length>0}function md(n,a,...c){const p=zn(n);if(!AT(p)){const m=qh(p,n.pos);return rs.add(zc(p,m.start,m.length,a,...c)),!0}return!1}function oS(n,a,c,p,...m){const v=zn(n);return AT(v)?!1:(rs.add(zc(v,a,c,p,...m)),!0)}function iTt(n,a,c,...p){const m=zn(a);return AT(m)?!1:(xv(n,a,c,...p),!0)}function Cn(n,a,...c){const p=zn(n);return AT(p)?!1:(Ze(n,a,...c),!0)}function oTt(n){const a=Ir(n)?C6(n):void 0,c=n.typeParameters||a&&Rc(a);if(c){const p=c.pos===c.end?c.pos:wa(zn(n).text,c.pos);return oS(n,p,c.end-p,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function aTt(n){const a=n.type||Wp(n);if(a)return Cn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function sTt(n){if(va(n.name)&&Nr(n.name.expression)&&n.name.expression.operatorToken.kind===103)return Cn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(ui(n.parent)){if(Oa(n.name)&&n.name.text==="constructor")return Cn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(KL(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(G<2&&Qi(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(G<2&&Zu(n)&&!(n.flags&33554432))return Cn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Zu(n)&&tve(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===265){if(KL(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(C.assertNode(n,Iu),n.initializer)return Cn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(Fu(n.parent)){if(KL(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(C.assertNode(n,Iu),n.initializer)return Cn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&q7e(n),Mo(n)&&n.exclamationToken&&(!ui(n.parent)||!n.type||n.initializer||n.flags&33554432||ua(n)||OS(n))){const a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Cn(n.exclamationToken,a)}}function lTt(n){return n.kind===265||n.kind===266||n.kind===273||n.kind===272||n.kind===279||n.kind===278||n.kind===271||di(n,2208)?!1:md(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function cTt(n){for(const a of n.statements)if((id(a)||a.kind===244)&&lTt(a))return!0;return!1}function X7e(n){return!!(n.flags&33554432)&&cTt(n)}function Ky(n){if(n.flags&33554432){if(!Vr(n).hasReportedStatementInAmbientContext&&($o(n.parent)||yb(n.parent)))return Vr(n).hasReportedStatementInAmbientContext=md(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===242||n.parent.kind===269||n.parent.kind===308){const c=Vr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=md(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Y7e(n){const a=Rl(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||Wg(!1,Ar(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function dTt(n){return!!(!(fv(n.parent)||QT(n.parent)&&fv(n.parent.parent))&&!(n.flags&33554432)&&G<7&&Cn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function uTt(n,a,...c){const p=zn(n);if(!AT(p)){const m=qh(p,n.pos);return rs.add(zc(p,Ml(m),0,a,...c)),!0}return!1}function pTt(){return af||(af=[],lt.forEach((n,a)=>{Dae.test(a)&&af.push(n)})),af}function fTt(n){var a,c;if(n.phaseModifier===156){if(n.name&&n.namedBindings)return Cn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(((a=n.namedBindings)==null?void 0:a.kind)===276)return $7e(n.namedBindings)}else if(n.phaseModifier===166){if(n.name)return Cn(n,f.Default_imports_are_not_allowed_in_a_deferred_import);if(((c=n.namedBindings)==null?void 0:c.kind)===276)return Cn(n,f.Named_imports_are_not_allowed_in_a_deferred_import);if(j!==99&&j!==200)return Cn(n,f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}function $7e(n){return!!qe(n.elements,a=>{if(a.isTypeOnly)return md(a,a.kind===277?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function mTt(n){if(W.verbatimModuleSyntax&&j===1)return Cn(n,nA(n));if(n.expression.kind===237){if(j!==99&&j!==200)return Cn(n,f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(j===5)return Cn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(n.typeArguments)return Cn(n,f.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(!(100<=j&&j<=199)&&j!==99&&j!==200&&(TR(a),a.length>1)){const p=a[1];return Cn(p,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(a.length===0||a.length>2)return Cn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const c=mn(a,Yf);return c?Cn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function hTt(n,a){const c=Hr(n);if(c&20&&a.flags&1048576)return mn(a.types,p=>{if(p.flags&524288){const m=c&Hr(p);if(m&4)return n.target===p.target;if(m&16)return!!n.aliasSymbol&&n.aliasSymbol===p.aliasSymbol}return!1})}function _Tt(n,a){if(Hr(n)&128&&dm(a,Hv))return mn(a.types,c=>!Hv(c))}function gTt(n,a){let c=0;if(ra(n,c).length>0||(c=1,ra(n,c).length>0))return mn(a.types,m=>ra(m,c).length>0)}function yTt(n,a){let c;if(!(n.flags&406978556)){let p=0;for(const m of a.types)if(!(m.flags&406978556)){const v=Pa([E_(n),E_(m)]);if(v.flags&4194304)return m;if(Lh(v)||v.flags&1048576){const I=v.flags&1048576?Ao(v.types,Lh):1;I>=p&&(c=m,p=I)}}}return c}function vTt(n){if(oc(n,67108864)){const a=Ic(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function Q7e(n,a,c){if(a.flags&1048576&&n.flags&2621440){const p=ZFe(a,n);if(p)return p;const m=Ts(n);if(m){const v=QFe(m,a);if(v){const I=B_e(a,Yt(v,w=>[()=>_r(w),w.escapedName]),c);if(I!==a)return I}}}}function ive(n){const a=f1(n);return a||(va(n)?pge(Od(n.expression)):void 0)}function cQ(n){return gn===n||(gn=n,Kn=kT(n)),Kn}function zE(n){return Wt===n||(Wt=n,cn=oy(n)),cn}function xW(n){const a=zE(n)&7;return a===2||a===4||a===6}function bTt(n,a){const c=W.importHelpers?1:0,p=n?.imports[c];return p&&C.assert(Fs(p)&&p.text===a,`Expected sourceFile.imports[${c}] to be the synthesized JSX runtime import`),p}function TTt(n){C.assert(W.importHelpers,"Expected importHelpers to be enabled");const a=n.imports[0];return C.assert(a&&Fs(a)&&a.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),a}}function rqe(e){return!yb(e)}function _Ae(e){return e.kind!==263&&e.kind!==175||!!e.body}function gAe(e){switch(e.parent.kind){case 277:case 282:return Je(e)||e.kind===11;default:return w_(e)}}var yf;(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(yf||(yf={}));var YU;(e=>{e.Fragment="Fragment"})(YU||(YU={}));function yAe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function du(e){return!!(e.flags&1)}function vAe(e){return!!(e.flags&2)}function iqe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:oa(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,r)=>e.getModeForResolutionAtIndex(t,r),getGlobalTypingsCacheLocation:oa(e,e.getGlobalTypingsCacheLocation)}}var Mae=class oze{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof oze;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(t){var r;(r=this.inner)!=null&&r.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(t))}pushErrorFallbackNode(t){var r,i;return(i=(r=this.inner)==null?void 0:r.pushErrorFallbackNode)==null?void 0:i.call(r,t)}popErrorFallbackNode(){var t,r;return(r=(t=this.inner)==null?void 0:t.popErrorFallbackNode)==null?void 0:r.call(t)}};function st(e,t,r,i){if(e===void 0)return e;const o=t(e);let s;if(o!==void 0)return No(o)?s=(i||dqe)(o):s=o,C.assertNode(s,r),s}function Xn(e,t,r,i,o){if(e===void 0)return e;const s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,u=-1,d=-1;i>0||os-i)&&(o=s-i),bAe(e,t,r,i,o)}function bAe(e,t,r,i,o){let s;const l=e.length;(i>0||o=2&&(o=oqe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function oqe(e,t){let r;for(let i=0;i{const l=iu,addSource:be,setSourceContent:De,addName:Y,addMapping:Ee,appendSourceMap:re,toJSON:ce,toString:()=>JSON.stringify(ce())};function be(ye){s();const Ue=FR(i,ye,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let Ge=_.get(Ue);return Ge===void 0&&(Ge=d.length,d.push(Ue),u.push(ye),_.set(Ue,Ge)),l(),Ge}function De(ye,Ue){if(s(),Ue!==null){for(h||(h=[]);h.lengthUe||ve===Ue&&oe>Ge)}function Ee(ye,Ue,Ge,We,at,Wt){C.assert(ye>=J,"generatedLine cannot backtrack"),C.assert(Ue>=0,"generatedCharacter cannot be negative"),C.assert(Ge===void 0||Ge>=0,"sourceIndex cannot be negative"),C.assert(We===void 0||We>=0,"sourceLine cannot be negative"),C.assert(at===void 0||at>=0,"sourceCharacter cannot be negative"),s(),(Ne(ye,Ue)||Xe(Ge,We,at))&&(Be(),J=ye,Z=Ue,ue=!1,me=!1,fe=!0),Ge!==void 0&&We!==void 0&&at!==void 0&&(q=Ge,ve=We,oe=at,ue=!0,Wt!==void 0&&(K=Wt,me=!0)),l()}function re(ye,Ue,Ge,We,at,Wt){C.assert(ye>=J,"generatedLine cannot backtrack"),C.assert(Ue>=0,"generatedCharacter cannot be negative"),s();const cn=[];let gn;const Kn=tH(Ge.mappings);for(const gt of Kn){if(Wt&&(gt.generatedLine>Wt.line||gt.generatedLine===Wt.line&>.generatedCharacter>Wt.character))break;if(at&&(gt.generatedLine=1024&<()}function Be(){if(!(!fe||!Te())){if(s(),N0&&(R+=String.fromCharCode.apply(void 0,A),A.length=0)}function ce(){return Be(),lt(),{version:3,file:t,sourceRoot:r,sources:d,names:y,mappings:R,sourcesContent:h}}function Ce(ye){ye<0?ye=(-ye<<1)+1:ye=ye<<1;do{let Ue=ye&31;ye=ye>>5,ye>0&&(Ue=Ue|32),Me(fqe(Ue))}while(ye>0)}}var Lae=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,QU=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,ZU=/^\s*(\/\/[@#] .*)?$/;function eH(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function kae(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=QU.exec(r);if(i)return i[1].trimEnd();if(!r.match(ZU))break}}function uqe(e){return typeof e=="string"||e===null}function pqe(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&No(e.sources)&&Hn(e.sources,Bo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||No(e.sourcesContent)&&Hn(e.sourcesContent,uqe))&&(e.names===void 0||e.names===null||No(e.names)&&Hn(e.names,Bo))}function wae(e){try{const t=JSON.parse(e);if(pqe(t))return t}catch{}}function tH(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,d=0,_;return{get pos(){return r},get error(){return _},get state(){return h(!0,!0)},next(){for(;!t&&r=e.length)return E("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const G=mqe(e.charCodeAt(r));if(G===-1)return E("Invalid character in VLQ"),-1;k=(G&32)!==0,W=W|(G&31)<>1:(W=W>>1,W=-W),W}}function TAe(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 Oae(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function fqe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:C.fail(`${e}: not a base64 value`)}function mqe(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 SAe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function EAe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function hqe(e,t){return C.assert(e.sourceIndex===t.sourceIndex),Hs(e.sourcePosition,t.sourcePosition)}function _qe(e,t){return Hs(e.generatedPosition,t.generatedPosition)}function gqe(e){return e.sourcePosition}function yqe(e){return e.generatedPosition}function Wae(e,t,r){const i=ci(r),o=t.sourceRoot?bo(t.sourceRoot,i):i,s=bo(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(F=>bo(F,o)),d=new Map(u.map((F,W)=>[e.getCanonicalFileName(F),W]));let _,h,y;return{getSourcePosition:k,getGeneratedPosition:P};function E(F){const W=l!==void 0?N2(l,F.generatedLine,F.generatedCharacter,!0):-1;let G,j;if(Oae(F)){const J=e.getSourceFileLike(u[F.sourceIndex]);G=t.sources[F.sourceIndex],j=J!==void 0?N2(J,F.sourceLine,F.sourceCharacter,!0):-1}return{generatedPosition:W,source:G,sourceIndex:F.sourceIndex,sourcePosition:j,nameIndex:F.nameIndex}}function A(){if(_===void 0){const F=tH(t.mappings),W=Do(F,E);F.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${F.error}`),_=ie):_=W}return _}function R(F){if(y===void 0){const W=[];for(const G of A()){if(!SAe(G))continue;let j=W[G.sourceIndex];j||(W[G.sourceIndex]=j=[]),j.push(G)}y=W.map(G=>vN(G,hqe,EAe))}return y[F]}function N(){if(h===void 0){const F=[];for(const W of A())F.push(W);h=vN(F,_qe,EAe)}return h}function P(F){const W=d.get(e.getCanonicalFileName(F.fileName));if(W===void 0)return F;const G=R(W);if(!vt(G))return F;let j=tI(G,F.pos,gqe,Hs);j<0&&(j=~j);const J=G[j];return J===void 0||J.sourceIndex!==W?F:{fileName:s,pos:J.generatedPosition}}function k(F){const W=N();if(!vt(W))return F;let G=tI(W,F.pos,yqe,Hs);G<0&&(G=~G);const j=W[G];return j===void 0||!SAe(j)?F:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var nH={getSourcePosition:Us,getGeneratedPosition:Us};function Gu(e){return e=bl(e),e?ls(e):0}function AAe(e){return!e||!o_(e)&&!$f(e)?!1:vt(e.elements,IAe)}function IAe(e){return P_(e.propertyName||e.name)}function yh(e,t){return r;function r(o){return o.kind===308?t(o):i(o)}function i(o){return e.factory.createBundle(Yt(o.sourceFiles,t))}}function Fae(e){return!!oD(e)}function S3(e){if(oD(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!o_(t))return!1;let r=0;for(const i of t.elements)IAe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&u1(e)}function rH(e){return!S3(e)&&(u1(e)||!!e.importClause&&o_(e.importClause.namedBindings)&&AAe(e.importClause.namedBindings))}function iH(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new vqe,l=[],u=new Map,d=new Set;let _,h=!1,y,E=!1,A=!1,R=!1;for(const F of t.statements)switch(F.kind){case 273:o.push(F),!A&&S3(F)&&(A=!0),!R&&rH(F)&&(R=!0);break;case 272:F.moduleReference.kind===284&&o.push(F);break;case 279:if(F.moduleSpecifier)if(!F.exportClause)o.push(F),E=!0;else if(o.push(F),$f(F.exportClause))P(F),R||(R=AAe(F.exportClause));else{const W=F.exportClause.name,G=Eb(W);u.get(G)||(mP(l,Gu(F),W),u.set(G,!0),_=Vn(_,W)),A=!0}else P(F);break;case 278:F.isExportEquals&&!y&&(y=F);break;case 244:if(di(F,32))for(const W of F.declarationList.declarations)_=xAe(W,u,_,l);break;case 263:di(F,32)&&k(F,void 0,di(F,2048));break;case 264:if(di(F,32))if(di(F,2048))h||(mP(l,Gu(F),e.factory.getDeclarationName(F)),h=!0);else{const W=F.name;W&&!u.get(Kr(W))&&(mP(l,Gu(F),W),u.set(Kr(W),!0),_=Vn(_,W))}break}const N=Qj(e.factory,e.getEmitHelperFactory(),t,i,E,A,R);return N&&o.unshift(N),{externalImports:o,exportSpecifiers:s,exportEquals:y,hasExportStarsToExportValues:E,exportedBindings:l,exportedNames:_,exportedFunctions:d,externalHelpersImportDeclaration:N};function P(F){for(const W of ma(F.exportClause,$f).elements){const G=Eb(W.name);if(!u.get(G)){const j=W.propertyName||W.name;if(j.kind!==11){F.moduleSpecifier||s.add(j,W);const J=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);if(J){if(J.kind===263){k(J,W.name,P_(W.name));continue}mP(l,Gu(J),W.name)}}u.set(G,!0),_=Vn(_,W.name)}}}function k(F,W,G){if(d.add(bl(F,rc)),G)h||(mP(l,Gu(F),W??e.factory.getDeclarationName(F)),h=!0);else{W??(W=F.name);const j=Eb(W);u.get(j)||(mP(l,Gu(F),W),u.set(j,!0))}}}function xAe(e,t,r,i){if(Zo(e.name))for(const o of e.name.elements)Xc(o)||(r=xAe(o,t,r,i));else if(!ml(e.name)){const o=Kr(e.name);t.get(o)||(t.set(o,!0),r=Vn(r,e.name),gy(e.name)&&mP(i,Gu(e),e.name))}return r}function mP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}var XD=class dN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(dN.toKey(t))}get(t){return this._map.get(dN.toKey(t))}set(t,r){return this._map.set(dN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(dN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(e1(t)||ml(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=Lw(t),o=hg(i)&&i!==t?dN.toKey(i):`(generated@${ls(i)})`;return o0(!1,r.prefix,o,r.suffix,dN.toKey)}else{const i=`(auto@${r.id})`;return o0(!1,r.prefix,i,r.suffix,dN.toKey)}}return Qi(t)?Kr(t).slice(1):Kr(t)}},vqe=class extends XD{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){const r=this.get(e);r&&(iI(r,t),r.length||this.delete(e))}};function QS(e){return ds(e)||e.kind===9||rp(e.kind)||Je(e)}function G_(e){return!Je(e)&&QS(e)}function hP(e){return e>=65&&e<=79}function _P(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function E3(e){if(!ad(e))return;const t=us(e.expression);return a1(t)?t:void 0}function RAe(e,t,r){for(let i=t;iTqe(i,t,r))}function bqe(e){return Sqe(e)||nc(e)}function I3(e){return Un(e.members,bqe)}function Tqe(e,t,r){return Mo(e)&&(!!e.initializer||!t)&&Fc(e)===r}function Sqe(e){return Mo(e)&&Fc(e)}function $w(e){return e.kind===173&&e.initializer!==void 0}function zae(e){return!ua(e)&&(pI(e)||Zu(e))&&Qi(e.name)}function Bae(e){let t;if(e){const r=e.parameters,i=r.length>0&&Rb(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lsH(r.privateEnv,t))}function xqe(e){return!e.initializer&&Je(e.name)}function Qw(e){return Hn(e,xqe)}function ux(e,t){if(!e||!Oa(e)||!Rk(e.text,t))return e;const r=lv(e.text,oO(e.text,t));return r!==e.text?jr(bt(L.createStringLiteral(r,e.singleQuote),e),e):e}var jae=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(jae||{});function F1(e,t,r,i,o,s){let l=e,u;if(ov(e))for(u=e.right;dre(e.left)||DV(e.left);)if(ov(u))l=e=u,u=e.right;else return C.checkDefined(st(u,t,St));let d;const _={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:h,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>kqe(r.factory,E),createObjectBindingOrAssignmentPattern:E=>Oqe(r.factory,E),createArrayBindingOrAssignmentElement:Fqe,visitor:t};if(u&&(u=st(u,t,St),C.assert(u),Je(u)&&Uae(e,u.escapedText)||Hae(e)?u=px(_,u,!1,l):o?u=px(_,u,!0,l):Fs(e)&&(l=u)),gP(_,e,u,l,ov(e)),u&&o){if(!vt(d))return u;d.push(u)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function h(E){d=Vn(d,E)}function y(E,A,R,N){C.assertNode(E,s?Je:St);const P=s?s(E,A,R):bt(r.factory.createAssignment(C.checkDefined(st(E,t,St)),A),R);P.original=N,h(P)}}function Uae(e,t){const r=zb(e);return q2(r)?Rqe(r,t):Je(r)?r.escapedText===t:!1}function Rqe(e,t){const r=zD(e);for(const i of r)if(Uae(i,t))return!0;return!1}function Hae(e){const t=G4(e);if(t&&va(t)&&!ZE(t.expression))return!0;const r=zb(e);return!!r&&q2(r)&&Dqe(r)}function Dqe(e){return!!qe(zD(e),Hae)}function ZS(e,t,r,i,o,s=!1,l){let u;const d=[],_=[],h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:A=>Lqe(r.factory,A),createObjectBindingOrAssignmentPattern:A=>wqe(r.factory,A),createArrayBindingOrAssignmentElement:A=>Wqe(r.factory,A),visitor:t};if(yi(e)){let A=Mw(e);A&&(Je(A)&&Uae(e,A.escapedText)||Hae(e))&&(A=px(h,C.checkDefined(st(A,h.visitor,St)),!1,A),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,A))}if(gP(h,e,o,e,l),u){const A=r.factory.createTempVariable(void 0);if(s){const R=r.factory.inlineExpressions(u);u=void 0,E(A,R,void 0,void 0)}else{r.hoistVariableDeclaration(A);const R=Ga(d);R.pendingExpressions=Vn(R.pendingExpressions,r.factory.createAssignment(A,R.value)),Xr(R.pendingExpressions,u),R.value=A}}for(const{pendingExpressions:A,name:R,value:N,location:P,original:k}of d){const F=r.factory.createVariableDeclaration(R,void 0,void 0,A?r.factory.inlineExpressions(Vn(A,N)):N);F.original=k,bt(F,P),_.push(F)}return _;function y(A){u=Vn(u,A)}function E(A,R,N,P){C.assertNode(A,t1),u&&(R=r.factory.inlineExpressions(Vn(u,R)),u=void 0),d.push({pendingExpressions:u,name:A,value:R,location:N,original:P})}}function gP(e,t,r,i,o){const s=zb(t);if(!o){const l=st(Mw(t),e.visitor,St);l?r?(r=Mqe(e,r,l,i),!G_(l)&&q2(s)&&(r=px(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}dG(s)?Cqe(e,t,s,r,i):uG(s)?Nqe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function Cqe(e,t,r,i,o){const s=zD(r),l=s.length;if(l!==1){const _=!H2(t)||l!==0;i=px(e,i,_,o)}let u,d;for(let _=0;_=1&&!(h.transformFlags&98304)&&!(zb(h).transformFlags&98304)&&!va(y))u=Vn(u,st(h,e.visitor,Cte));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const E=Pqe(e,i,y);va(y)&&(d=Vn(d,E.argumentExpression)),gP(e,h,E,h)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function Nqe(e,t,r,i,o){const s=zD(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=px(e,bt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&B4(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Hn(s,Xc)){const _=!H2(t)||l!==0;i=px(e,i,_,o)}let u,d;for(let _=0;_=1)if(h.transformFlags&65536||e.hasTransformedPriorElement&&!CAe(h)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),d=Vn(d,[y,h]),u=Vn(u,e.createArrayBindingOrAssignmentElement(y))}else u=Vn(u,h);else{if(Xc(h))continue;if(B4(h)){if(_===l-1){const y=e.context.factory.createArraySliceCall(i,_);gP(e,h,y,h)}}else{const y=e.context.factory.createElementAccessExpression(i,_);gP(e,h,y,h)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),d)for(const[_,h]of d)gP(e,h,_,h)}function CAe(e){const t=zb(e);if(!t||Xc(t))return!0;const r=G4(e);if(r&&!Xh(r))return!1;const i=Mw(e);return i&&!G_(i)?!1:q2(t)?Hn(zD(t),CAe):Je(t)}function Mqe(e,t,r,i){return t=px(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function Pqe(e,t,r){const{factory:i}=e.context;if(va(r)){const o=px(e,C.checkDefined(st(r.expression,e.visitor,St)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(ff(r)||AD(r)){const o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{const o=e.context.factory.createIdentifier(Kr(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function px(e,t,r,i){if(Je(t)&&r)return t;{const o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(bt(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function Lqe(e,t){return C.assertEachNode(t,DF),e.createArrayBindingPattern(t)}function kqe(e,t){return C.assertEachNode(t,K2),e.createArrayLiteralExpression(Yt(t,e.converters.convertToArrayAssignmentElement))}function wqe(e,t){return C.assertEachNode(t,qa),e.createObjectBindingPattern(t)}function Oqe(e,t){return C.assertEachNode(t,J2),e.createObjectLiteralExpression(Yt(t,e.converters.convertToObjectAssignmentElement))}function Wqe(e,t){return e.createBindingElement(void 0,void 0,t)}function Fqe(e){return e}function zqe(e,t,r=e.createThis()){const i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return qd(l).classThis=t,l}function yP(e){var t;if(!nc(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ad(r)&&od(r.expression,!0)&&Je(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function lH(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&vt(e.members,yP)}function qae(e,t,r,i){if(lH(t))return t;const o=zqe(e,r,i);t.name&&Ha(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);bt(s,t.members);const l=Mc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return qd(l).classThis=r,l}function R3(e,t,r){const i=bl(Kl(r));return(Mc(i)||rc(i))&&!i.name&&di(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function NAe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(Xh(t)||Qi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Xh(t.expression)&&!Je(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);const s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),u=i.updateComputedPropertyName(t,l);return{assignedName:o,name:u}}function Bqe(e,t,r=e.factory.createThis()){const{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),u=i.createClassStaticBlockDeclaration(l);return qd(u).assignedName=t,u}function fx(e){var t;if(!nc(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return ad(r)&&jM(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function D3(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&vt(e.members,fx)}function cH(e){return!!e.name||D3(e)}function C3(e,t,r,i){if(D3(t))return t;const{factory:o}=e,s=Bqe(e,r,i);t.name&&Ha(s.body.statements[0],t.name);const l=ho(t.members,yP)+1,u=t.members.slice(0,l),d=t.members.slice(l),_=o.createNodeArray([...u,s,...d]);return bt(_,t.members),t=Mc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,_):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,_),qd(t).assignedName=r,t}function YD(e,t,r,i){if(i&&Oa(r)&&jG(r))return t;const{factory:o}=e,s=Kl(t),l=fc(s)?ma(C3(e,s,r),fc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function Gqe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=NAe(e,t.name,i),u=YD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function Vqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):R3(o,t.name,t.objectAssignmentInitializer),l=YD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function jqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):R3(o,t.name,t.initializer),l=YD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function Uqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):R3(o,t.name,t.initializer),l=YD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function Hqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):R3(o,t.name,t.initializer),l=YD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function qqe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=NAe(e,t.name,i),u=YD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function Jqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):R3(o,t.left,t.right),l=YD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function Kqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=YD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function Vp(e,t,r,i){switch(t.kind){case 304:return Gqe(e,t,r,i);case 305:return Vqe(e,t,r,i);case 261:return jqe(e,t,r,i);case 170:return Uqe(e,t,r,i);case 209:return Hqe(e,t,r,i);case 173:return qqe(e,t,r,i);case 227:return Jqe(e,t,r,i);case 278:return Kqe(e,t,r,i)}}var Jae=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Jae||{});function dH(e,t,r,i,o,s){const l=st(t.tag,r,St);C.assert(l);const u=[void 0],d=[],_=[],h=t.template;if(s===0&&!uV(h))return On(t,r,e);const{factory:y}=e;if(T1(h))d.push(Kae(y,h)),_.push(Xae(y,h,i));else{d.push(Kae(y,h.head)),_.push(Xae(y,h.head,i));for(const A of h.templateSpans)d.push(Kae(y,A.literal)),_.push(Xae(y,A.literal,i)),u.push(C.checkDefined(st(A.expression,r,St)))}const E=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(d),y.createArrayLiteralExpression(_));if(Vc(i)){const A=y.createUniqueName("templateObject");o(A),u[0]=y.createLogicalOr(A,y.createAssignment(A,E))}else u[0]=E;return y.createCallExpression(l,void 0,u)}function Kae(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Xae(e,t,r){let i=t.rawText;if(i===void 0){C.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=ES(r,t);const o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,` `),bt(e.createStringLiteral(i),t)}function Yae(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),d=e.getCompilerOptions(),_=Va(d),h=Eu(d),y=!!d.experimentalDecorators,E=d.emitDecoratorMetadata?Qae(e):void 0,A=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=ic,e.onSubstituteNode=Sf,e.enableSubstitution(212),e.enableSubstitution(213);let N,P,k,F,W,G=0,j;return J;function J(Ae){return Ae.kind===309?Z(Ae):q(Ae)}function Z(Ae){return t.createBundle(Ae.sourceFiles.map(q))}function q(Ae){if(Ae.isDeclarationFile)return Ae;N=Ae;const $=ve(Ae,Ce);return Cg($,e.readEmitHelpers()),N=void 0,$}function ve(Ae,$){const ft=F,Ht=W;oe(Ae);const fn=$(Ae);return F!==ft&&(W=Ht),F=ft,fn}function oe(Ae){switch(Ae.kind){case 308:case 270:case 269:case 242:F=Ae,W=void 0;break;case 264:case 263:if(di(Ae,128))break;Ae.name?B(Ae):C.assert(Ae.kind===264||di(Ae,2048));break}}function K(Ae){return ve(Ae,fe)}function fe(Ae){return Ae.transformFlags&1?ce(Ae):Ae}function ue(Ae){return ve(Ae,me)}function me(Ae){switch(Ae.kind){case 273:case 272:case 278:case 279:return De(Ae);default:return fe(Ae)}}function be(Ae){const $=jo(Ae);if($===Ae||dl(Ae))return!1;if(!$||$.kind!==Ae.kind)return!0;switch(Ae.kind){case 273:if(C.assertNode($,Tl),Ae.importClause!==$.importClause||Ae.attributes!==$.attributes)return!0;break;case 272:if(C.assertNode($,Gc),Ae.name!==$.name||Ae.isTypeOnly!==$.isTypeOnly||Ae.moduleReference!==$.moduleReference&&(ku(Ae.moduleReference)||ku($.moduleReference)))return!0;break;case 279:if(C.assertNode($,hc),Ae.exportClause!==$.exportClause||Ae.attributes!==$.attributes)return!0;break}return!1}function De(Ae){if(be(Ae))return Ae.transformFlags&1?On(Ae,K,e):Ae;switch(Ae.kind){case 273:return Bt(Ae);case 272:return En(Ae);case 278:return mt(Ae);case 279:return Mt(Ae);default:C.fail("Unhandled ellided statement")}}function Y(Ae){return ve(Ae,Ne)}function Ne(Ae){if(!(Ae.kind===279||Ae.kind===273||Ae.kind===274||Ae.kind===272&&Ae.moduleReference.kind===284))return Ae.transformFlags&1||di(Ae,32)?ce(Ae):Ae}function Xe(Ae){return $=>ve($,ft=>Ee(ft,Ae))}function Ee(Ae,$){switch(Ae.kind){case 177:return $e(Ae);case 173:return Mi(Ae,$);case 178:return qi(Ae,$);case 179:return Qo(Ae,$);case 175:return ri(Ae,$);case 176:return On(Ae,K,e);case 241:return Ae;case 182:return;default:return C.failBadSyntaxKind(Ae)}}function re(Ae){return $=>ve($,ft=>Te(ft,Ae))}function Te(Ae,$){switch(Ae.kind){case 304:case 305:case 306:return K(Ae);case 178:return qi(Ae,$);case 179:return Qo(Ae,$);case 175:return ri(Ae,$);default:return C.failBadSyntaxKind(Ae)}}function Me(Ae){return Bc(Ae)?void 0:K(Ae)}function Be(Ae){return Aa(Ae)?void 0:K(Ae)}function lt(Ae){if(!Bc(Ae)&&!(NI(Ae.kind)&28895)&&!(P&&Ae.kind===95))return Ae}function ce(Ae){if(ji(Ae)&&di(Ae,128))return t.createNotEmittedStatement(Ae);switch(Ae.kind){case 95:case 90:return P?void 0:Ae;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:return;case 266:return t.createNotEmittedStatement(Ae);case 271:return;case 265:return t.createNotEmittedStatement(Ae);case 264:return at(Ae);case 232:return Wt(Ae);case 299:return xi(Ae);case 234:return Pi(Ae);case 211:return ye(Ae);case 177:case 173:case 175:case 178:case 179:case 176:return C.fail("Class and object literal elements must be visited with their respective visitors");case 263:return Ia(Ae);case 219:return Pn(Ae);case 220:return Uo(Ae);case 170:return ot(Ae);case 218:return ne(Ae);case 217:case 235:return Fe(Ae);case 239:return dt(Ae);case 214:return Lt(Ae);case 215:return He(Ae);case 216:return Rt(Ae);case 236:return it(Ae);case 267:return Jt(Ae);case 244:return Ft(Ae);case 261:return _t(Ae);case 268:return Kt(Ae);case 272:return En(Ae);case 286:return It(Ae);case 287:return Ot(Ae);default:return On(Ae,K,e)}}function Ce(Ae){const $=Hd(d,"alwaysStrict")&&!(Vc(Ae)&&h>=5)&&!Vf(Ae);return t.updateSourceFile(Ae,$U(Ae.statements,ue,e,0,$))}function ye(Ae){return t.updateObjectLiteralExpression(Ae,Xn(Ae.properties,re(Ae),ay))}function Ue(Ae){let $=0;vt(oH(Ae,!0,!0))&&($|=1);const ft=uh(Ae);return ft&&Kl(ft.expression).kind!==106&&($|=64),rv(y,Ae)&&($|=2),eM(y,Ae)&&($|=4),xn(Ae)?$|=8:Ri(Ae)?$|=32:ln(Ae)&&($|=16),$}function Ge(Ae){return!!(Ae.transformFlags&8192)}function We(Ae){return mf(Ae)||vt(Ae.typeParameters)||vt(Ae.heritageClauses,Ge)||vt(Ae.members,Ge)}function at(Ae){const $=Ue(Ae),ft=_<=1&&!!($&7);if(!We(Ae)&&!rv(y,Ae)&&!xn(Ae))return t.updateClassDeclaration(Ae,Xn(Ae.modifiers,lt,Aa),Ae.name,void 0,Xn(Ae.heritageClauses,K,Gp),Xn(Ae.members,Xe(Ae),Sc));ft&&e.startLexicalEnvironment();const Ht=ft||$&8;let fn=Ht?Xn(Ae.modifiers,Be,hl):Xn(Ae.modifiers,K,hl);$&2&&(fn=gn(fn,Ae));const si=Ht&&!Ae.name||$&4||$&1?Ae.name??t.getGeneratedNameForNode(Ae):Ae.name,Dr=t.updateClassDeclaration(Ae,fn,si,void 0,Xn(Ae.heritageClauses,K,Gp),cn(Ae));let Bn=Za(Ae);$&1&&(Bn|=64),Cr(Dr,Bn);let no;if(ft){const To=[Dr],Ps=NV(wa(N.text,Ae.members.end),20),Ca=t.getInternalName(Ae),el=t.createPartiallyEmittedExpression(Ca);TD(el,Ps.end),Cr(el,3072);const Ac=t.createReturnStatement(el);kM(Ac,Ps.pos),Cr(Ac,3840),To.push(Ac),vg(To,e.endLexicalEnvironment());const _c=t.createImmediatelyInvokedArrowFunction(To);_w(_c,1);const Js=t.createVariableDeclaration(t.getLocalName(Ae,!1,!1),void 0,void 0,_c);jr(Js,Ae);const wl=t.createVariableStatement(void 0,t.createVariableDeclarationList([Js],1));jr(wl,Ae),Nc(wl,Ae),Ha(wl,py(Ae)),cu(wl),no=wl}else no=Dr;if(Ht){if($&8)return[no,ia(Ae)];if($&32)return[no,t.createExportDefault(t.getLocalName(Ae,!1,!0))];if($&16)return[no,t.createExternalModuleExport(t.getDeclarationName(Ae,!1,!0))]}return no}function Wt(Ae){let $=Xn(Ae.modifiers,Be,hl);return rv(y,Ae)&&($=gn($,Ae)),t.updateClassExpression(Ae,$,Ae.name,void 0,Xn(Ae.heritageClauses,K,Gp),cn(Ae))}function cn(Ae){const $=Xn(Ae.members,Xe(Ae),Sc);let ft;const Ht=Eg(Ae),fn=Ht&&Un(Ht.parameters,ur=>Lp(ur,Ht));if(fn)for(const ur of fn){const si=t.createPropertyDeclaration(void 0,ur.name,void 0,void 0,void 0);jr(si,ur),ft=Vn(ft,si)}return ft?(ft=Xr(ft,$),bt(t.createNodeArray(ft),Ae.members)):$}function gn(Ae,$){const ft=gt($,$);if(vt(ft)){const Ht=[];Xr(Ht,u9(Ae,Pw)),Xr(Ht,Un(Ae,Bc)),Xr(Ht,ft),Xr(Ht,Un(EZ(Ae,Pw),Aa)),Ae=bt(t.createNodeArray(Ht),Ae)}return Ae}function Kn(Ae,$,ft){if(ui(ft)&&VG(y,$,ft)){const Ht=gt($,ft);if(vt(Ht)){const fn=[];Xr(fn,Un(Ae,Bc)),Xr(fn,Ht),Xr(fn,Un(Ae,Aa)),Ae=bt(t.createNodeArray(fn),Ae)}}return Ae}function gt(Ae,$){if(y)return en(Ae,$)}function en(Ae,$){if(E){let ft;if(or(Ae)){const Ht=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:$},Ae,$));ft=Vn(ft,t.createDecorator(Ht))}if(so(Ae)){const Ht=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:$},Ae,$));ft=Vn(ft,t.createDecorator(Ht))}if(Ni(Ae)){const Ht=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:$},Ae));ft=Vn(ft,t.createDecorator(Ht))}return ft}}function or(Ae){const $=Ae.kind;return $===175||$===178||$===179||$===173}function Ni(Ae){return Ae.kind===175}function so(Ae){switch(Ae.kind){case 264:case 232:return Eg(Ae)!==void 0;case 175:case 178:case 179:return!0}return!1}function zt(Ae,$){const ft=Ae.name;return Qi(ft)?t.createIdentifier(""):va(ft)?ft.expression:Je(ft)?t.createStringLiteral(Kr(ft)):t.cloneNode(ft)}function Zr(Ae){const $=Ae.name;if(y&&va($)&&mf(Ae)){const ft=st($.expression,K,St);C.assert(ft);const Ht=Vm(ft);if(!G_(Ht)){const fn=t.getGeneratedNameForNode($);return l(fn),t.updateComputedPropertyName($,t.createAssignment(fn,ft))}}return C.checkDefined(st($,K,Tc))}function xi(Ae){if(Ae.token!==119)return On(Ae,K,e)}function Pi(Ae){return t.updateExpressionWithTypeArguments(Ae,C.checkDefined(st(Ae.expression,K,ep)),void 0)}function Pr(Ae){return!zl(Ae.body)}function Mi(Ae,$){const ft=Ae.flags&33554432||di(Ae,64);if(ft&&!(y&&mf(Ae)))return;let Ht=ui($)?ft?Xn(Ae.modifiers,Be,hl):Xn(Ae.modifiers,K,hl):Xn(Ae.modifiers,Me,hl);return Ht=Kn(Ht,Ae,$),ft?t.updatePropertyDeclaration(Ae,ao(Ht,t.createModifiersFromModifierFlags(128)),C.checkDefined(st(Ae.name,K,Tc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Ae,Ht,Zr(Ae),void 0,void 0,st(Ae.initializer,K,St))}function $e(Ae){if(Pr(Ae))return t.updateConstructorDeclaration(Ae,void 0,Gl(Ae.parameters,K,e),hn(Ae.body,Ae))}function At(Ae,$,ft,Ht,fn,ur){const si=Ht[fn],Dr=$[si];if(Xr(Ae,Xn($,K,ji,ft,si-ft)),R1(Dr)){const Bn=[];At(Bn,Dr.tryBlock.statements,0,Ht,fn+1,ur);const no=t.createNodeArray(Bn);bt(no,Dr.tryBlock.statements),Ae.push(t.updateTryStatement(Dr,t.updateBlock(Dr.tryBlock,Bn),st(Dr.catchClause,K,KS),st(Dr.finallyBlock,K,ta)))}else Xr(Ae,Xn($,K,ji,si,1)),Xr(Ae,ur);Xr(Ae,Xn($,K,ji,si+1))}function hn(Ae,$){const ft=$&&Un($.parameters,Bn=>Lp(Bn,$));if(!vt(ft))return vf(Ae,K,e);let Ht=[];o();const fn=t.copyPrologue(Ae.statements,Ht,!1,K),ur=A3(Ae.statements,fn),si=Ei(ft,dr);ur.length?At(Ht,Ae.statements,fn,ur,0,si):(Xr(Ht,si),Xr(Ht,Xn(Ae.statements,K,ji,fn))),Ht=t.mergeLexicalEnvironment(Ht,s());const Dr=t.createBlock(bt(t.createNodeArray(Ht),Ae.statements),!0);return bt(Dr,Ae),jr(Dr,Ae),Dr}function dr(Ae){const $=Ae.name;if(!Je($))return;const ft=ps(bt(t.cloneNode($),$),$.parent);Cr(ft,3168);const Ht=ps(bt(t.cloneNode($),$),$.parent);return Cr(Ht,3072),cu(hw(bt(jr(t.createExpressionStatement(t.createAssignment(bt(t.createPropertyAccessExpression(t.createThis(),ft),Ae.name),Ht)),Ae),qT(Ae,-1))))}function ri(Ae,$){if(!(Ae.transformFlags&1))return Ae;if(!Pr(Ae))return;let ft=ui($)?Xn(Ae.modifiers,K,hl):Xn(Ae.modifiers,Me,hl);return ft=Kn(ft,Ae,$),t.updateMethodDeclaration(Ae,ft,Ae.asteriskToken,Zr(Ae),void 0,void 0,Gl(Ae.parameters,K,e),void 0,vf(Ae.body,K,e))}function ai(Ae){return!(zl(Ae.body)&&di(Ae,64))}function qi(Ae,$){if(!(Ae.transformFlags&1))return Ae;if(!ai(Ae))return;let ft=ui($)?Xn(Ae.modifiers,K,hl):Xn(Ae.modifiers,Me,hl);return ft=Kn(ft,Ae,$),t.updateGetAccessorDeclaration(Ae,ft,Zr(Ae),Gl(Ae.parameters,K,e),void 0,vf(Ae.body,K,e)||t.createBlock([]))}function Qo(Ae,$){if(!(Ae.transformFlags&1))return Ae;if(!ai(Ae))return;let ft=ui($)?Xn(Ae.modifiers,K,hl):Xn(Ae.modifiers,Me,hl);return ft=Kn(ft,Ae,$),t.updateSetAccessorDeclaration(Ae,ft,Zr(Ae),Gl(Ae.parameters,K,e),vf(Ae.body,K,e)||t.createBlock([]))}function Ia(Ae){if(!Pr(Ae))return t.createNotEmittedStatement(Ae);const $=t.updateFunctionDeclaration(Ae,Xn(Ae.modifiers,lt,Aa),Ae.asteriskToken,Ae.name,void 0,Gl(Ae.parameters,K,e),void 0,vf(Ae.body,K,e)||t.createBlock([]));if(xn(Ae)){const ft=[$];return la(ft,Ae),ft}return $}function Pn(Ae){return Pr(Ae)?t.updateFunctionExpression(Ae,Xn(Ae.modifiers,lt,Aa),Ae.asteriskToken,Ae.name,void 0,Gl(Ae.parameters,K,e),void 0,vf(Ae.body,K,e)||t.createBlock([])):t.createOmittedExpression()}function Uo(Ae){return t.updateArrowFunction(Ae,Xn(Ae.modifiers,lt,Aa),void 0,Gl(Ae.parameters,K,e),void 0,Ae.equalsGreaterThanToken,vf(Ae.body,K,e))}function ot(Ae){if(Rb(Ae))return;const $=t.updateParameterDeclaration(Ae,Xn(Ae.modifiers,ft=>Bc(ft)?K(ft):void 0,hl),Ae.dotDotDotToken,C.checkDefined(st(Ae.name,K,t1)),void 0,void 0,st(Ae.initializer,K,St));return $!==Ae&&(Nc($,Ae),bt($,Zh(Ae)),Ha($,Zh(Ae)),Cr($.name,64)),$}function Ft(Ae){if(xn(Ae)){const $=SM(Ae.declarationList);return $.length===0?void 0:bt(t.createExpressionStatement(t.inlineExpressions(Yt($,le))),Ae)}else return On(Ae,K,e)}function le(Ae){const $=Ae.name;return Zo($)?F1(Ae,K,e,0,!1,jl):bt(t.createAssignment(Cl($),C.checkDefined(st(Ae.initializer,K,St))),Ae)}function _t(Ae){const $=t.updateVariableDeclaration(Ae,C.checkDefined(st(Ae.name,K,t1)),void 0,void 0,st(Ae.initializer,K,St));return Ae.type&&xie($.name,Ae.type),$}function ne(Ae){const $=Kl(Ae.expression,-55);if(SS($)||CD($)){const ft=st(Ae.expression,K,St);return C.assert(ft),t.createPartiallyEmittedExpression(ft,Ae)}return On(Ae,K,e)}function Fe(Ae){const $=st(Ae.expression,K,St);return C.assert($),t.createPartiallyEmittedExpression($,Ae)}function it(Ae){const $=st(Ae.expression,K,ep);return C.assert($),t.createPartiallyEmittedExpression($,Ae)}function dt(Ae){const $=st(Ae.expression,K,St);return C.assert($),t.createPartiallyEmittedExpression($,Ae)}function Lt(Ae){return t.updateCallExpression(Ae,C.checkDefined(st(Ae.expression,K,St)),void 0,Xn(Ae.arguments,K,St))}function He(Ae){return t.updateNewExpression(Ae,C.checkDefined(st(Ae.expression,K,St)),void 0,Xn(Ae.arguments,K,St))}function Rt(Ae){return t.updateTaggedTemplateExpression(Ae,C.checkDefined(st(Ae.tag,K,St)),void 0,C.checkDefined(st(Ae.template,K,fI)))}function It(Ae){return t.updateJsxSelfClosingElement(Ae,C.checkDefined(st(Ae.tagName,K,qN)),void 0,C.checkDefined(st(Ae.attributes,K,JS)))}function Ot(Ae){return t.updateJsxOpeningElement(Ae,C.checkDefined(st(Ae.tagName,K,qN)),void 0,C.checkDefined(st(Ae.attributes,K,JS)))}function nt(Ae){return!FT(Ae)||Nb(d)}function Jt(Ae){if(!nt(Ae))return t.createNotEmittedStatement(Ae);const $=[];let ft=4;const Ht=xt($,Ae);Ht&&(h!==4||F!==N)&&(ft|=1024);const fn=ks(Ae),ur=lo(Ae),si=xn(Ae)?t.getExternalModuleOrNamespaceExportName(k,Ae,!1,!0):t.getDeclarationName(Ae,!1,!0);let Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ae)){const no=t.getLocalName(Ae,!1,!0);Dr=t.createAssignment(no,Dr)}const Bn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Tr(Ae,ur)),void 0,[Dr]));return jr(Bn,Ae),Ht&&(XT(Bn,void 0),jI(Bn,void 0)),bt(Bn,Ae),t_(Bn,ft),$.push(Bn),$}function Tr(Ae,$){const ft=k;k=$;const Ht=[];i();const fn=Yt(Ae.members,Oe);return vg(Ht,s()),Xr(Ht,fn),k=ft,t.createBlock(bt(t.createNodeArray(Ht),Ae.members),!0)}function Oe(Ae){const $=zt(Ae),ft=u.getEnumMemberValue(Ae),Ht=Nt(Ae,ft?.value),fn=t.createAssignment(t.createElementAccessExpression(k,$),Ht),ur=typeof ft?.value=="string"||ft?.isSyntacticallyString?fn:t.createAssignment(t.createElementAccessExpression(k,fn),$);return bt(t.createExpressionStatement(bt(ur,Ae)),Ae)}function Nt(Ae,$){return $!==void 0?typeof $=="string"?t.createStringLiteral($):$<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-$)):t.createNumericLiteral($):(Go(),Ae.initializer?C.checkDefined(st(Ae.initializer,K,St)):t.createVoidZero())}function ge(Ae){const $=jo(Ae,mc);return $?XU($,Nb(d)):!0}function B(Ae){W||(W=new Map);const $=te(Ae);W.has($)||W.set($,Ae)}function Ie(Ae){if(W){const $=te(Ae);return W.get($)===Ae}return!0}function te(Ae){return C.assertNode(Ae.name,Je),Ae.name.escapedText}function xt(Ae,$){const ft=t.createVariableDeclaration(t.getLocalName($,!1,!0)),Ht=F.kind===308?0:1,fn=t.createVariableStatement(Xn($.modifiers,lt,Aa),t.createVariableDeclarationList([ft],Ht));return jr(ft,$),XT(ft,void 0),jI(ft,void 0),jr(fn,$),B($),Ie($)?($.kind===267?Ha(fn.declarationList,$):Ha(fn,$),Nc(fn,$),t_(fn,2048),Ae.push(fn),!0):!1}function Kt(Ae){if(!ge(Ae))return t.createNotEmittedStatement(Ae);C.assertNode(Ae.name,Je,"A TypeScript namespace should have an Identifier name."),Ec();const $=[];let ft=4;const Ht=xt($,Ae);Ht&&(h!==4||F!==N)&&(ft|=1024);const fn=ks(Ae),ur=lo(Ae),si=xn(Ae)?t.getExternalModuleOrNamespaceExportName(k,Ae,!1,!0):t.getDeclarationName(Ae,!1,!0);let Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ae)){const no=t.getLocalName(Ae,!1,!0);Dr=t.createAssignment(no,Dr)}const Bn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Le(Ae,ur)),void 0,[Dr]));return jr(Bn,Ae),Ht&&(XT(Bn,void 0),jI(Bn,void 0)),bt(Bn,Ae),t_(Bn,ft),$.push(Bn),$}function Le(Ae,$){const ft=k,Ht=P,fn=W;k=$,P=Ae,W=void 0;const ur=[];i();let si,Dr;if(Ae.body)if(Ae.body.kind===269)ve(Ae.body,no=>Xr(ur,Xn(no.statements,Y,ji))),si=Ae.body.statements,Dr=Ae.body;else{const no=Kt(Ae.body);no&&(No(no)?Xr(ur,no):ur.push(no));const To=yt(Ae).body;si=qT(To.statements,-1)}vg(ur,s()),k=ft,P=Ht,W=fn;const Bn=t.createBlock(bt(t.createNodeArray(ur),si),!0);return bt(Bn,Dr),(!Ae.body||Ae.body.kind!==269)&&Cr(Bn,Za(Bn)|3072),Bn}function yt(Ae){if(Ae.body.kind===268)return yt(Ae.body)||Ae.body}function Bt(Ae){if(!Ae.importClause)return Ae;if(Ae.importClause.isTypeOnly)return;const $=st(Ae.importClause,gr,Jm);return $?t.updateImportDeclaration(Ae,void 0,$,Ae.moduleSpecifier,Ae.attributes):void 0}function gr(Ae){C.assert(Ae.phaseModifier!==156);const $=Bs(Ae)?Ae.name:void 0,ft=st(Ae.namedBindings,tr,hG);return $||ft?t.updateImportClause(Ae,Ae.phaseModifier,$,ft):void 0}function tr(Ae){if(Ae.kind===275)return Bs(Ae)?Ae:void 0;{const $=d.verbatimModuleSyntax,ft=Xn(Ae.elements,Jn,xu);return $||vt(ft)?t.updateNamedImports(Ae,ft):void 0}}function Jn(Ae){return!Ae.isTypeOnly&&Bs(Ae)?Ae:void 0}function mt(Ae){return d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ae)?On(Ae,K,e):void 0}function Mt(Ae){if(Ae.isTypeOnly)return;if(!Ae.exportClause||F_(Ae.exportClause))return t.updateExportDeclaration(Ae,Ae.modifiers,Ae.isTypeOnly,Ae.exportClause,Ae.moduleSpecifier,Ae.attributes);const $=!!d.verbatimModuleSyntax,ft=st(Ae.exportClause,Ht=>In(Ht,$),iG);return ft?t.updateExportDeclaration(Ae,void 0,Ae.isTypeOnly,ft,Ae.moduleSpecifier,Ae.attributes):void 0}function Vt(Ae,$){const ft=Xn(Ae.elements,yn,lu);return $||vt(ft)?t.updateNamedExports(Ae,ft):void 0}function Qt(Ae){return t.updateNamespaceExport(Ae,C.checkDefined(st(Ae.name,K,Je)))}function In(Ae,$){return F_(Ae)?Qt(Ae):Vt(Ae,$)}function yn(Ae){return!Ae.isTypeOnly&&(d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ae))?Ae:void 0}function wt(Ae){return Bs(Ae)||!Vc(N)&&u.isTopLevelValueImportEqualsWithEntityName(Ae)}function En(Ae){if(Ae.isTypeOnly)return;if(BT(Ae))return Bs(Ae)?On(Ae,K,e):void 0;if(!wt(Ae))return;const $=Rw(t,Ae.moduleReference);return Cr($,7168),ln(Ae)||!xn(Ae)?jr(bt(t.createVariableStatement(Xn(Ae.modifiers,lt,Aa),t.createVariableDeclarationList([jr(t.createVariableDeclaration(Ae.name,void 0,void 0,$),Ae)])),Ae),Ae):jr(zo(Ae.name,$,Ae),Ae)}function xn(Ae){return P!==void 0&&di(Ae,32)}function wn(Ae){return P===void 0&&di(Ae,32)}function ln(Ae){return wn(Ae)&&!di(Ae,2048)}function Ri(Ae){return wn(Ae)&&di(Ae,2048)}function ia(Ae){const $=t.createAssignment(t.getExternalModuleOrNamespaceExportName(k,Ae,!1,!0),t.getLocalName(Ae));Ha($,Uf(Ae.name?Ae.name.pos:Ae.pos,Ae.end));const ft=t.createExpressionStatement($);return Ha(ft,Uf(-1,Ae.end)),ft}function la(Ae,$){Ae.push(ia($))}function zo(Ae,$,ft){return bt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(k,Ae,!1,!0),$)),ft)}function jl(Ae,$,ft){return bt(t.createAssignment(Cl(Ae),$),ft)}function Cl(Ae){return t.getNamespaceMemberName(k,Ae,!1,!0)}function ks(Ae){const $=t.getGeneratedNameForNode(Ae);return Ha($,Ae.name),$}function lo(Ae){return t.getGeneratedNameForNode(Ae)}function Go(){(G&8)===0&&(G|=8,e.enableSubstitution(80))}function Ec(){(G&2)===0&&(G|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268))}function Zs(Ae){return bl(Ae).kind===268}function Da(Ae){return bl(Ae).kind===267}function ic(Ae,$,ft){const Ht=j,fn=N;Xi($)&&(N=$),G&2&&Zs($)&&(j|=2),G&8&&Da($)&&(j|=8),A(Ae,$,ft),j=Ht,N=fn}function Sf(Ae,$){return $=R(Ae,$),Ae===1?fa($):Jd($)?Po($):$}function Po(Ae){if(G&2){const $=Ae.name,ft=Ja($);if(ft){if(Ae.objectAssignmentInitializer){const Ht=t.createAssignment(ft,Ae.objectAssignmentInitializer);return bt(t.createPropertyAssignment($,Ht),Ae)}return bt(t.createPropertyAssignment($,ft),Ae)}}return Ae}function fa(Ae){switch(Ae.kind){case 80:return os(Ae);case 212:return Zt(Ae);case 213:return xs(Ae)}return Ae}function os(Ae){return Ja(Ae)||Ae}function Ja(Ae){if(G&j&&!ml(Ae)&&!gy(Ae)){const $=u.getReferencedExportContainer(Ae,!1);if($&&$.kind!==308&&(j&2&&$.kind===268||j&8&&$.kind===267))return bt(t.createPropertyAccessExpression(t.getGeneratedNameForNode($),Ae),Ae)}}function Zt(Ae){return dc(Ae)}function xs(Ae){return dc(Ae)}function Xl(Ae){return Ae.replace(/\*\//g,"*_/")}function dc(Ae){const $=bd(Ae);if($!==void 0){Aie(Ae,$);const ft=typeof $=="string"?t.createStringLiteral($):$<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-$)):t.createNumericLiteral($);if(!d.removeComments){const Ht=bl(Ae,Ys);VM(ft,3,` ${Xl(Rl(Ht))} `)}return ft}return Ae}function bd(Ae){if(!Am(d))return qr(Ae)||zs(Ae)?u.getConstantValue(Ae):void 0}function Bs(Ae){return d.verbatimModuleSyntax||Ir(Ae)||u.isReferencedAliasDeclaration(Ae)}}function $ae(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,d=e.getEmitResolver(),_=e.getCompilerOptions(),h=Va(_),y=Zk(_),E=!!_.experimentalDecorators,A=!y,R=y&&h<9,N=A||R,P=h<9,k=h<99?-1:y?0:3,F=h<9,W=F&&h>=2,G=N||P||k===-1,j=e.onSubstituteNode;e.onSubstituteNode=Xl;const J=e.onEmitNode;e.onEmitNode=xs;let Z=!1,q=0,ve,oe,K,fe;const ue=new Map,me=new Set;let be,De,Y=!1,Ne=!1;return yh(e,Xe);function Xe($){if($.isDeclarationFile||(fe=void 0,Z=!!(jm($)&32),!G&&!Z))return $;const ft=On($,re,e);return Cg(ft,e.readEmitHelpers()),ft}function Ee($){return $.kind===129?At()?void 0:$:ni($,Aa)}function re($){if(!($.transformFlags&16777216)&&!($.transformFlags&134234112))return $;switch($.kind){case 264:return Jt($);case 232:return Oe($);case 176:case 173:return C.fail("Use `classElementVisitor` instead.");case 304:return We($);case 244:return at($);case 261:return Wt($);case 170:return cn($);case 209:return gn($);case 278:return Kn($);case 81:return Ue($);case 212:return Qo($);case 213:return Ia($);case 225:case 226:return Pn($,!1);case 227:return it($,!1);case 218:return Lt($,!1);case 214:return le($);case 245:return ot($);case 216:return _t($);case 249:return Uo($);case 110:return B($);case 263:case 219:return zt(void 0,Te,$);case 177:case 175:case 178:case 179:return zt($,Te,$);default:return Te($)}}function Te($){return On($,re,e)}function Me($){switch($.kind){case 225:case 226:return Pn($,!0);case 227:return it($,!0);case 357:return dt($);case 218:return Lt($,!0);default:return re($)}}function Be($){switch($.kind){case 299:return On($,Be,e);case 234:return Ot($);default:return re($)}}function lt($){switch($.kind){case 211:case 210:return Zt($);default:return re($)}}function ce($){switch($.kind){case 177:return zt($,or,$);case 178:case 179:case 175:return zt($,so,$);case 173:return zt($,hn,$);case 176:return zt($,ge,$);case 168:return en($);case 241:return $;default:return hl($)?Ee($):re($)}}function Ce($){return $.kind===168?en($):re($)}function ye($){switch($.kind){case 173:return $e($);case 178:case 179:return ce($);default:C.assertMissingNode($,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Ue($){return!P||ji($.parent)?$:jr(t.createIdentifier(""),$)}function Ge($){const ft=Go($.left);if(ft){const Ht=st($.right,re,St);return jr(r().createClassPrivateFieldInHelper(ft.brandCheckIdentifier,Ht),$)}return On($,re,e)}function We($){return Op($,Fe)&&($=Vp(e,$)),On($,re,e)}function at($){const ft=K;K=[];const Ht=On($,re,e),fn=vt(K)?[Ht,...K]:Ht;return K=ft,fn}function Wt($){return Op($,Fe)&&($=Vp(e,$)),On($,re,e)}function cn($){return Op($,Fe)&&($=Vp(e,$)),On($,re,e)}function gn($){return Op($,Fe)&&($=Vp(e,$)),On($,re,e)}function Kn($){return Op($,Fe)&&($=Vp(e,$,!0,$.isExportEquals?"":"default")),On($,re,e)}function gt($){return vt(oe)&&(zu($)?(oe.push($.expression),$=t.updateParenthesizedExpression($,t.inlineExpressions(oe))):(oe.push($),$=t.inlineExpressions(oe)),oe=void 0),$}function en($){const ft=st($.expression,re,St);return t.updateComputedPropertyName($,gt(ft))}function or($){return be?xt($,be):Te($)}function Ni($){return!!(P||Fc($)&&jm($)&32)}function so($){if(C.assert(!mf($)),!ou($)||!Ni($))return On($,ce,e);const ft=Go($.name);if(C.assert(ft,"Undeclared private name for property declaration."),!ft.isValid)return $;const Ht=Zr($);Ht&&wn().push(t.createAssignment(Ht,t.createFunctionExpression(Un($.modifiers,fn=>Aa(fn)&&!KI(fn)&&!Mj(fn)),$.asteriskToken,Ht,void 0,Gl($.parameters,re,e),void 0,vf($.body,re,e))))}function zt($,ft,Ht){if($!==De){const fn=De;De=$;const ur=ft(Ht);return De=fn,ur}return ft(Ht)}function Zr($){C.assert(Qi($.name));const ft=Go($.name);if(C.assert(ft,"Undeclared private name for property declaration."),ft.kind==="m")return ft.methodName;if(ft.kind==="a"){if(_g($))return ft.getterName;if(Hh($))return ft.setterName}}function xi(){const $=En();return $.classThis??$.classConstructor??be?.name}function Pi($){const ft=n_($),Ht=dv($),fn=$.name;let ur=fn,si=fn;if(va(fn)&&!G_(fn.expression)){const el=j4(fn);if(el)ur=t.updateComputedPropertyName(fn,st(fn.expression,re,St)),si=t.updateComputedPropertyName(fn,el.left);else{const Ac=t.createTempVariable(i);Ha(Ac,fn.expression);const _c=st(fn.expression,re,St),Js=t.createAssignment(Ac,_c);Ha(Js,fn.expression),ur=t.updateComputedPropertyName(fn,Js),si=t.updateComputedPropertyName(fn,Ac)}}const Dr=Xn($.modifiers,Ee,Aa),Bn=iU(t,$,Dr,$.initializer);jr(Bn,$),Cr(Bn,3072),Ha(Bn,Ht);const no=ua($)?xi()??t.createThis():t.createThis(),To=Eoe(t,$,Dr,ur,no);jr(To,$),Nc(To,ft),Ha(To,Ht);const Ps=t.createModifiersFromModifierFlags(Qh(Dr)),Ca=Aoe(t,$,Ps,si,no);return jr(Ca,$),Cr(Ca,3072),Ha(Ca,Ht),fP([Bn,To,Ca],ye,Sc)}function Pr($){if(Ni($)){const ft=Go($.name);if(C.assert(ft,"Undeclared private name for property declaration."),!ft.isValid)return $;if(ft.isStatic&&!P){const Ht=Bt($,t.createThis());if(Ht)return t.createClassStaticBlockDeclaration(t.createBlock([Ht],!0))}return}return A&&!ua($)&&fe?.data&&fe.data.facts&16?t.updatePropertyDeclaration($,Xn($.modifiers,re,hl),$.name,void 0,void 0,void 0):(Op($,Fe)&&($=Vp(e,$)),t.updatePropertyDeclaration($,Xn($.modifiers,Ee,Aa),st($.name,Ce,Tc),void 0,void 0,st($.initializer,re,St)))}function Mi($){if(N&&!Zu($)){const ft=In($.name,!!$.initializer||y);if(ft&&wn().push(...Ioe(ft)),ua($)&&!P){const Ht=Bt($,t.createThis());if(Ht){const fn=t.createClassStaticBlockDeclaration(t.createBlock([Ht]));return jr(fn,$),Nc(fn,$),Nc(Ht,{pos:-1,end:-1}),XT(Ht,void 0),jI(Ht,void 0),fn}}return}return t.updatePropertyDeclaration($,Xn($.modifiers,Ee,Aa),st($.name,Ce,Tc),void 0,void 0,st($.initializer,re,St))}function $e($){return C.assert(!mf($),"Decorators should already have been transformed and elided."),ou($)?Pr($):Mi($)}function At(){return k===-1||k===3&&!!fe?.data&&!!(fe.data.facts&16)}function hn($){return Zu($)&&(At()||Fc($)&&jm($)&32)?Pi($):$e($)}function dr(){return!!De&&Fc(De)&&yb(De)&&Zu(bl(De))}function ri($){if(dr()){const ft=Kl($);ft.kind===110&&me.add(ft)}}function ai($,ft){return ft=st(ft,re,St),ri(ft),qi($,ft)}function qi($,ft){switch(Nc(ft,qT(ft,-1)),$.kind){case"a":return r().createClassPrivateFieldGetHelper(ft,$.brandCheckIdentifier,$.kind,$.getterName);case"m":return r().createClassPrivateFieldGetHelper(ft,$.brandCheckIdentifier,$.kind,$.methodName);case"f":return r().createClassPrivateFieldGetHelper(ft,$.brandCheckIdentifier,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever($,"Unknown private element type")}}function Qo($){if(Qi($.name)){const ft=Go($.name);if(ft)return bt(jr(ai(ft,$.expression),$),$)}if(W&&De&&gp($)&&Je($.name)&&vP(De)&&fe?.data){const{classConstructor:ft,superClassReference:Ht,facts:fn}=fe.data;if(fn&1)return Qt($);if(ft&&Ht){const ur=t.createReflectGetCall(Ht,t.createStringLiteralFromNode($.name),ft);return jr(ur,$.expression),bt(ur,$.expression),ur}}return On($,re,e)}function Ia($){if(W&&De&&gp($)&&vP(De)&&fe?.data){const{classConstructor:ft,superClassReference:Ht,facts:fn}=fe.data;if(fn&1)return Qt($);if(ft&&Ht){const ur=t.createReflectGetCall(Ht,st($.argumentExpression,re,St),ft);return jr(ur,$.expression),bt(ur,$.expression),ur}}return On($,re,e)}function Pn($,ft){if($.operator===46||$.operator===47){const Ht=us($.operand);if(HR(Ht)){let fn;if(fn=Go(Ht.name)){const ur=st(Ht.expression,re,St);ri(ur);const{readExpression:si,initializeExpression:Dr}=Ft(ur);let Bn=ai(fn,si);const no=QT($)||ft?void 0:t.createTempVariable(i);return Bn=W4(t,$,Bn,i,no),Bn=He(fn,Dr||si,Bn,64),jr(Bn,$),bt(Bn,$),no&&(Bn=t.createComma(Bn,no),bt(Bn,$)),Bn}}else if(W&&De&&gp(Ht)&&vP(De)&&fe?.data){const{classConstructor:fn,superClassReference:ur,facts:si}=fe.data;if(si&1){const Dr=Qt(Ht);return QT($)?t.updatePrefixUnaryExpression($,Dr):t.updatePostfixUnaryExpression($,Dr)}if(fn&&ur){let Dr,Bn;if(qr(Ht)?Je(Ht.name)&&(Bn=Dr=t.createStringLiteralFromNode(Ht.name)):G_(Ht.argumentExpression)?Bn=Dr=Ht.argumentExpression:(Bn=t.createTempVariable(i),Dr=t.createAssignment(Bn,st(Ht.argumentExpression,re,St))),Dr&&Bn){let no=t.createReflectGetCall(ur,Bn,fn);bt(no,Ht);const To=ft?void 0:t.createTempVariable(i);return no=W4(t,$,no,i,To),no=t.createReflectSetCall(ur,Dr,no,fn),jr(no,$),bt(no,$),To&&(no=t.createComma(no,To),bt(no,$)),no}}}}return On($,re,e)}function Uo($){return t.updateForStatement($,st($.initializer,Me,Bf),st($.condition,re,St),st($.incrementor,Me,St),Bu($.statement,re,e))}function ot($){return t.updateExpressionStatement($,st($.expression,Me,St))}function Ft($){const ft=Fs($)?$:t.cloneNode($);if($.kind===110&&me.has($)&&me.add(ft),G_($))return{readExpression:ft,initializeExpression:void 0};const Ht=t.createTempVariable(i),fn=t.createAssignment(Ht,ft);return{readExpression:Ht,initializeExpression:fn}}function le($){var ft;if(HR($.expression)&&Go($.expression.name)){const{thisArg:Ht,target:fn}=t.createCallBinding($.expression,i,h);return QE($)?t.updateCallChain($,t.createPropertyAccessChain(st(fn,re,St),$.questionDotToken,"call"),void 0,void 0,[st(Ht,re,St),...Xn($.arguments,re,St)]):t.updateCallExpression($,t.createPropertyAccessExpression(st(fn,re,St),"call"),void 0,[st(Ht,re,St),...Xn($.arguments,re,St)])}if(W&&De&&gp($.expression)&&vP(De)&&((ft=fe?.data)!=null&&ft.classConstructor)){const Ht=t.createFunctionCallCall(st($.expression,re,St),fe.data.classConstructor,Xn($.arguments,re,St));return jr(Ht,$),bt(Ht,$),Ht}return On($,re,e)}function _t($){var ft;if(HR($.tag)&&Go($.tag.name)){const{thisArg:Ht,target:fn}=t.createCallBinding($.tag,i,h);return t.updateTaggedTemplateExpression($,t.createCallExpression(t.createPropertyAccessExpression(st(fn,re,St),"bind"),void 0,[st(Ht,re,St)]),void 0,st($.template,re,fI))}if(W&&De&&gp($.tag)&&vP(De)&&((ft=fe?.data)!=null&&ft.classConstructor)){const Ht=t.createFunctionBindCall(st($.tag,re,St),fe.data.classConstructor,[]);return jr(Ht,$),bt(Ht,$),t.updateTaggedTemplateExpression($,Ht,void 0,st($.template,re,fI))}return On($,re,e)}function ne($){if(fe&&ue.set(bl($),fe),P){if(yP($)){const fn=st($.body.statements[0].expression,re,St);return od(fn,!0)&&fn.left===fn.right?void 0:fn}if(fx($))return st($.body.statements[0].expression,re,St);s();let ft=zt($,fn=>Xn(fn,re,ji),$.body.statements);ft=t.mergeLexicalEnvironment(ft,o());const Ht=t.createImmediatelyInvokedArrowFunction(ft);return jr(us(Ht.expression),$),t_(us(Ht.expression),4),jr(Ht,$),bt(Ht,$),Ht}}function Fe($){if(fc($)&&!$.name){const ft=I3($);return vt(ft,fx)?!1:(P||!!jm($))&&vt(ft,fn=>nc(fn)||ou(fn)||N&&$w(fn))}return!1}function it($,ft){if(ov($)){const Ht=oe;oe=void 0,$=t.updateBinaryExpression($,st($.left,lt,St),$.operatorToken,st($.right,re,St));const fn=vt(oe)?t.inlineExpressions(b2([...oe,$])):$;return oe=Ht,fn}if(od($)){Op($,Fe)&&($=Vp(e,$),C.assertNode($,od));const Ht=Kl($.left,9);if(HR(Ht)){const fn=Go(Ht.name);if(fn)return bt(jr(He(fn,Ht.expression,$.right,$.operatorToken.kind),$),$)}else if(W&&De&&gp($.left)&&vP(De)&&fe?.data){const{classConstructor:fn,superClassReference:ur,facts:si}=fe.data;if(si&1)return t.updateBinaryExpression($,Qt($.left),$.operatorToken,st($.right,re,St));if(fn&&ur){let Dr=zs($.left)?st($.left.argumentExpression,re,St):Je($.left.name)?t.createStringLiteralFromNode($.left.name):void 0;if(Dr){let Bn=st($.right,re,St);if(hP($.operatorToken.kind)){let To=Dr;G_(Dr)||(To=t.createTempVariable(i),Dr=t.createAssignment(To,Dr));const Ps=t.createReflectGetCall(ur,To,fn);jr(Ps,$.left),bt(Ps,$.left),Bn=t.createBinaryExpression(Ps,_P($.operatorToken.kind),Bn),bt(Bn,$)}const no=ft?void 0:t.createTempVariable(i);return no&&(Bn=t.createAssignment(no,Bn),bt(no,$)),Bn=t.createReflectSetCall(ur,Dr,Bn,fn),jr(Bn,$),bt(Bn,$),no&&(Bn=t.createComma(Bn,no),bt(Bn,$)),Bn}}}}return Zqe($)?Ge($):On($,re,e)}function dt($,ft){const Ht=T3($.elements,Me);return t.updateCommaListExpression($,Ht)}function Lt($,ft){const Ht=ft?Me:re,fn=st($.expression,Ht,St);return t.updateParenthesizedExpression($,fn)}function He($,ft,Ht,fn){if(ft=st(ft,re,St),Ht=st(Ht,re,St),ri(ft),hP(fn)){const{readExpression:ur,initializeExpression:si}=Ft(ft);ft=si||ur,Ht=t.createBinaryExpression(qi($,ur),_P(fn),Ht)}switch(Nc(ft,qT(ft,-1)),$.kind){case"a":return r().createClassPrivateFieldSetHelper(ft,$.brandCheckIdentifier,Ht,$.kind,$.setterName);case"m":return r().createClassPrivateFieldSetHelper(ft,$.brandCheckIdentifier,Ht,$.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(ft,$.brandCheckIdentifier,Ht,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever($,"Unknown private element type")}}function Rt($){return Un($.members,zae)}function It($){var ft;let Ht=0;const fn=bl($);ui(fn)&&rv(E,fn)&&(Ht|=1),P&&(lH($)||D3($))&&(Ht|=2);let ur=!1,si=!1,Dr=!1,Bn=!1;for(const To of $.members)ua(To)?((To.name&&(Qi(To.name)||Zu(To))&&P||Zu(To)&&k===-1&&!$.name&&!((ft=$.emitNode)!=null&&ft.classThis))&&(Ht|=2),(Mo(To)||nc(To))&&(F&&To.transformFlags&16384&&(Ht|=8,Ht&1||(Ht|=2)),W&&To.transformFlags&134217728&&(Ht&1||(Ht|=6)))):OS(bl(To))||(Zu(To)?(Bn=!0,Dr||(Dr=ou(To))):ou(To)?(Dr=!0,d.hasNodeCheckFlag(To,262144)&&(Ht|=2)):Mo(To)&&(ur=!0,si||(si=!!To.initializer)));return(R&&ur||A&&si||P&&Dr||P&&Bn&&k===-1)&&(Ht|=16),Ht}function Ot($){var ft;if((((ft=fe?.data)==null?void 0:ft.facts)||0)&4){const fn=t.createTempVariable(i,!0);return En().superClassReference=fn,t.updateExpressionWithTypeArguments($,t.createAssignment(fn,st($.expression,re,St)),void 0)}return On($,re,e)}function nt($,ft){var Ht;const fn=be,ur=oe,si=fe;be=$,oe=void 0,yn();const Dr=jm($)&32;if(P||Dr){const To=wo($);if(To&&Je(To))xn().data.className=To;else if((Ht=$.emitNode)!=null&&Ht.assignedName&&Oa($.emitNode.assignedName)){if($.emitNode.assignedName.textSourceNode&&Je($.emitNode.assignedName.textSourceNode))xn().data.className=$.emitNode.assignedName.textSourceNode;else if(_p($.emitNode.assignedName.text,h)){const Ps=t.createIdentifier($.emitNode.assignedName.text);xn().data.className=Ps}}}if(P){const To=Rt($);vt(To)&&(xn().data.weakSetName=ks("instances",To[0].name))}const Bn=It($);Bn&&(En().facts=Bn),Bn&8&&Mt();const no=ft($,Bn);return wt(),C.assert(fe===si),be=fn,oe=ur,no}function Jt($){return nt($,Tr)}function Tr($,ft){var Ht,fn;let ur;if(ft&2)if(P&&((Ht=$.emitNode)!=null&&Ht.classThis))En().classConstructor=$.emitNode.classThis,ur=t.createAssignment($.emitNode.classThis,t.getInternalName($));else{const Js=t.createTempVariable(i,!0);En().classConstructor=t.cloneNode(Js),ur=t.createAssignment(Js,t.getInternalName($))}(fn=$.emitNode)!=null&&fn.classThis&&(En().classThis=$.emitNode.classThis);const si=d.hasNodeCheckFlag($,262144),Dr=di($,32),Bn=di($,2048);let no=Xn($.modifiers,Ee,Aa);const To=Xn($.heritageClauses,Be,Gp),{members:Ps,prologue:Ca}=Ie($),el=[];if(ur&&wn().unshift(ur),vt(oe)&&el.push(t.createExpressionStatement(t.inlineExpressions(oe))),A||P||jm($)&32){const Js=I3($);vt(Js)&&yt(el,Js,t.getInternalName($))}el.length>0&&Dr&&Bn&&(no=Xn(no,Js=>Pw(Js)?void 0:Js,Aa),el.push(t.createExportAssignment(void 0,!1,t.getLocalName($,!1,!0))));const Ac=En().classConstructor;si&&Ac&&(mt(),ve[Gu($)]=Ac);const _c=t.updateClassDeclaration($,no,$.name,void 0,To,Ps);return el.unshift(_c),Ca&&el.unshift(t.createExpressionStatement(Ca)),el}function Oe($){return nt($,Nt)}function Nt($,ft){var Ht,fn,ur;const si=!!(ft&1),Dr=I3($),Bn=d.hasNodeCheckFlag($,262144),no=d.hasNodeCheckFlag($,32768);let To;function Ps(){var Ld;if(P&&((Ld=$.emitNode)!=null&&Ld.classThis))return En().classConstructor=$.emitNode.classThis;const af=t.createTempVariable(no?u:i,!0);return En().classConstructor=t.cloneNode(af),af}(Ht=$.emitNode)!=null&&Ht.classThis&&(En().classThis=$.emitNode.classThis),ft&2&&(To??(To=Ps()));const Ca=Xn($.modifiers,Ee,Aa),el=Xn($.heritageClauses,Be,Gp),{members:Ac,prologue:_c}=Ie($),Js=t.updateClassExpression($,Ca,$.name,void 0,el,Ac),wl=[];if(_c&&wl.push(_c),(P||jm($)&32)&&vt(Dr,Ld=>nc(Ld)||ou(Ld)||N&&$w(Ld))||vt(oe))if(si)C.assertIsDefined(K,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),vt(oe)&&Xr(K,Yt(oe,t.createExpressionStatement)),vt(Dr)&&yt(K,Dr,((fn=$.emitNode)==null?void 0:fn.classThis)??t.getInternalName($)),To?wl.push(t.createAssignment(To,Js)):P&&((ur=$.emitNode)!=null&&ur.classThis)?wl.push(t.createAssignment($.emitNode.classThis,Js)):wl.push(Js);else{if(To??(To=Ps()),Bn){mt();const Ld=t.cloneNode(To);Ld.emitNode.autoGenerate.flags&=-9,ve[Gu($)]=Ld}wl.push(t.createAssignment(To,Js)),Xr(wl,oe),Xr(wl,gr(Dr,To)),wl.push(t.cloneNode(To))}else wl.push(Js);return wl.length>1&&(t_(Js,131072),wl.forEach(cu)),t.inlineExpressions(wl)}function ge($){if(!P)return On($,re,e)}function B($){if(F&&De&&nc(De)&&fe?.data){const{classThis:ft,classConstructor:Ht}=fe.data;return ft??Ht??$}return $}function Ie($){const ft=!!(jm($)&32);if(P||Z){for(const Dr of $.members)if(ou(Dr))if(Ni(Dr))Cl(Dr,Dr.name,ln);else{const Bn=xn();W1(Bn,Dr.name,{kind:"untransformed"})}if(P&&vt(Rt($))&&te(),At()){for(const Dr of $.members)if(Zu(Dr)){const Bn=t.getGeneratedPrivateNameForNode(Dr.name,void 0,"_accessor_storage");if(P||ft&&Fc(Dr))Cl(Dr,Bn,Ri);else{const no=xn();W1(no,Bn,{kind:"untransformed"})}}}}let Ht=Xn($.members,ce,Sc),fn;vt(Ht,kl)||(fn=xt(void 0,$));let ur,si;if(!P&&vt(oe)){let Dr=t.createExpressionStatement(t.inlineExpressions(oe));if(Dr.transformFlags&134234112){const no=t.createTempVariable(i),To=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Dr]));ur=t.createAssignment(no,To),Dr=t.createExpressionStatement(t.createCallExpression(no,void 0,[]))}const Bn=t.createBlock([Dr]);si=t.createClassStaticBlockDeclaration(Bn),oe=void 0}if(fn||si){let Dr;const Bn=mn(Ht,yP),no=mn(Ht,fx);Dr=Vn(Dr,Bn),Dr=Vn(Dr,no),Dr=Vn(Dr,fn),Dr=Vn(Dr,si);const To=Bn||no?Un(Ht,Ps=>Ps!==Bn&&Ps!==no):Ht;Dr=Xr(Dr,To),Ht=bt(t.createNodeArray(Dr),$.members)}return{members:Ht,prologue:ur}}function te(){const{weakSetName:$}=xn().data;C.assert($,"weakSetName should be set in private identifier environment"),wn().push(t.createAssignment($,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function xt($,ft){if($=st($,re,kl),!fe?.data||!(fe.data.facts&16))return $;const Ht=uh(ft),fn=!!(Ht&&Kl(Ht.expression).kind!==106),ur=Gl($?$.parameters:void 0,re,e),si=Le(ft,$,fn);return si?$?(C.assert(ur),t.updateConstructorDeclaration($,void 0,ur,si)):cu(jr(bt(t.createConstructorDeclaration(void 0,ur??[],si),$||ft),$)):$}function Kt($,ft,Ht,fn,ur,si,Dr){const Bn=fn[ur],no=ft[Bn];if(Xr($,Xn(ft,re,ji,Ht,Bn-Ht)),Ht=Bn+1,R1(no)){const To=[];Kt(To,no.tryBlock.statements,0,fn,ur+1,si,Dr);const Ps=t.createNodeArray(To);bt(Ps,no.tryBlock.statements),$.push(t.updateTryStatement(no,t.updateBlock(no.tryBlock,To),st(no.catchClause,re,KS),st(no.finallyBlock,re,ta)))}else{for(Xr($,Xn(ft,re,ji,Bn,1));Ht!!_c.initializer||Qi(_c.name)||$h(_c)));const Dr=Rt($),Bn=vt(si)||vt(Dr);if(!ft&&!Bn)return vf(void 0,re,e);l();const no=!ft&&Ht;let To=0,Ps=[];const Ca=[],el=t.createThis();if(Vt(Ca,Dr,el),ft){const _c=Un(ur,wl=>Lp(bl(wl),ft)),Js=Un(si,wl=>!Lp(bl(wl),ft));yt(Ca,_c,el),yt(Ca,Js,el)}else yt(Ca,si,el);if(ft?.body){To=t.copyPrologue(ft.body.statements,Ps,!1,re);const _c=A3(ft.body.statements,To);if(_c.length)Kt(Ps,ft.body.statements,To,_c,0,Ca,ft);else{for(;To=Ps.length?ft.body.multiLine??Ps.length>0:Ps.length>0;return bt(t.createBlock(bt(t.createNodeArray(Ps),((fn=ft?.body)==null?void 0:fn.statements)??$.members),Ac),ft?.body)}function yt($,ft,Ht){for(const fn of ft){if(ua(fn)&&!P)continue;const ur=Bt(fn,Ht);ur&&$.push(ur)}}function Bt($,ft){const Ht=nc($)?zt($,ne,$):tr($,ft);if(!Ht)return;const fn=t.createExpressionStatement(Ht);jr(fn,$),t_(fn,Za($)&3072),Nc(fn,$);const ur=bl($);return Zi(ur)?(Ha(fn,ur),hw(fn)):Ha(fn,Zh($)),XT(Ht,void 0),jI(Ht,void 0),$h(ur)&&t_(fn,3072),fn}function gr($,ft){const Ht=[];for(const fn of $){const ur=nc(fn)?zt(fn,ne,fn):zt(fn,()=>tr(fn,ft),void 0);ur&&(cu(ur),jr(ur,fn),t_(ur,Za(fn)&3072),Ha(ur,Zh(fn)),Nc(ur,fn),Ht.push(ur))}return Ht}function tr($,ft){var Ht;const fn=De,ur=Jn($,ft);return ur&&Fc($)&&((Ht=fe?.data)!=null&&Ht.facts)&&(jr(ur,$),t_(ur,4),Ha(ur,dv($.name)),ue.set(bl($),fe)),De=fn,ur}function Jn($,ft){const Ht=!y;Op($,Fe)&&($=Vp(e,$));const fn=$h($)?t.getGeneratedPrivateNameForNode($.name):va($.name)&&!G_($.name.expression)?t.updateComputedPropertyName($.name,t.getGeneratedNameForNode($.name)):$.name;if(Fc($)&&(De=$),Qi(fn)&&Ni($)){const Dr=Go(fn);if(Dr)return Dr.kind==="f"?Dr.isStatic?Xqe(t,Dr.variableName,st($.initializer,re,St)):Yqe(t,ft,st($.initializer,re,St),Dr.brandCheckIdentifier):void 0;C.fail("Undeclared private name for property declaration.")}if((Qi(fn)||Fc($))&&!$.initializer)return;const ur=bl($);if(di(ur,64))return;let si=st($.initializer,re,St);if(Lp(ur,ur.parent)&&Je(fn)){const Dr=t.cloneNode(fn);si?(zu(si)&&Dw(si.expression)&&jM(si.expression.left,"___runInitializers")&&ZI(si.expression.right)&&op(si.expression.right.expression)&&(si=si.expression.left),si=t.inlineExpressions([si,Dr])):si=Dr,Cr(fn,3168),Ha(Dr,ur.name),Cr(Dr,3072)}else si??(si=t.createVoidZero());if(Ht||Qi(fn)){const Dr=P1(t,ft,fn,fn);return t_(Dr,1024),t.createAssignment(Dr,si)}else{const Dr=va(fn)?fn.expression:Je(fn)?t.createStringLiteral(Vi(fn.escapedText)):fn,Bn=t.createPropertyDescriptor({value:si,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(ft,Dr,Bn)}}function mt(){(q&1)===0&&(q|=1,e.enableSubstitution(80),ve=[])}function Mt(){(q&2)===0&&(q|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168))}function Vt($,ft,Ht){if(!P||!vt(ft))return;const{weakSetName:fn}=xn().data;C.assert(fn,"weakSetName should be set in private identifier environment"),$.push(t.createExpressionStatement($qe(t,Ht,fn)))}function Qt($){return qr($)?t.updatePropertyAccessExpression($,t.createVoidZero(),$.name):t.updateElementAccessExpression($,t.createVoidZero(),st($.argumentExpression,re,St))}function In($,ft){if(va($)){const Ht=j4($),fn=st($.expression,re,St),ur=Vm(fn),si=G_(ur);if(!(!!Ht||od(ur)&&ml(ur.left))&&!si&&ft){const Bn=t.getGeneratedNameForNode($);return d.hasNodeCheckFlag($,32768)?u(Bn):i(Bn),t.createAssignment(Bn,fn)}return si||Je(ur)?void 0:fn}}function yn(){fe={previous:fe,data:void 0}}function wt(){fe=fe?.previous}function En(){return C.assert(fe),fe.data??(fe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function xn(){return C.assert(fe),fe.privateEnv??(fe.privateEnv=Gae({className:void 0,weakSetName:void 0}))}function wn(){return oe??(oe=[])}function ln($,ft,Ht,fn,ur,si,Dr){Zu($)?jl($,ft,Ht,fn,ur,si):Mo($)?Ri($,ft,Ht,fn,ur,si):Ll($)?ia($,ft,Ht,fn,ur,si):Xf($)?la($,ft,Ht,fn,ur,si,Dr):bp($)&&zo($,ft,Ht,fn,ur,si,Dr)}function Ri($,ft,Ht,fn,ur,si,Dr){if(ur){const Bn=C.checkDefined(Ht.classThis??Ht.classConstructor,"classConstructor should be set in private identifier environment"),no=lo(ft);W1(fn,ft,{kind:"f",isStatic:!0,brandCheckIdentifier:Bn,variableName:no,isValid:si})}else{const Bn=lo(ft);W1(fn,ft,{kind:"f",isStatic:!1,brandCheckIdentifier:Bn,isValid:si}),wn().push(t.createAssignment(Bn,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function ia($,ft,Ht,fn,ur,si,Dr){const Bn=lo(ft),no=ur?C.checkDefined(Ht.classThis??Ht.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");W1(fn,ft,{kind:"m",methodName:Bn,brandCheckIdentifier:no,isStatic:ur,isValid:si})}function la($,ft,Ht,fn,ur,si,Dr){const Bn=lo(ft,"_get"),no=ur?C.checkDefined(Ht.classThis??Ht.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");Dr?.kind==="a"&&Dr.isStatic===ur&&!Dr.getterName?Dr.getterName=Bn:W1(fn,ft,{kind:"a",getterName:Bn,setterName:void 0,brandCheckIdentifier:no,isStatic:ur,isValid:si})}function zo($,ft,Ht,fn,ur,si,Dr){const Bn=lo(ft,"_set"),no=ur?C.checkDefined(Ht.classThis??Ht.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");Dr?.kind==="a"&&Dr.isStatic===ur&&!Dr.setterName?Dr.setterName=Bn:W1(fn,ft,{kind:"a",getterName:void 0,setterName:Bn,brandCheckIdentifier:no,isStatic:ur,isValid:si})}function jl($,ft,Ht,fn,ur,si,Dr){const Bn=lo(ft,"_get"),no=lo(ft,"_set"),To=ur?C.checkDefined(Ht.classThis??Ht.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");W1(fn,ft,{kind:"a",getterName:Bn,setterName:no,brandCheckIdentifier:To,isStatic:ur,isValid:si})}function Cl($,ft,Ht){const fn=En(),ur=xn(),si=sH(ur,ft),Dr=Fc($),Bn=!Qqe(ft)&&si===void 0;Ht($,ft,fn,ur,Dr,Bn,si)}function ks($,ft,Ht){const{className:fn}=xn().data,ur=fn?{prefix:"_",node:fn,suffix:"_"}:"_",si=typeof $=="object"?t.getGeneratedNameForNode($,24,ur,Ht):typeof $=="string"?t.createUniqueName($,16,ur,Ht):t.createTempVariable(void 0,!0,ur,Ht);return d.hasNodeCheckFlag(ft,32768)?u(si):i(si),si}function lo($,ft){const Ht=YN($);return ks(Ht?.substring(1)??$,$,ft)}function Go($){const ft=Vae(fe,$);return ft?.kind==="untransformed"?void 0:ft}function Ec($){const ft=t.getGeneratedNameForNode($),Ht=Go($.name);if(!Ht)return On($,re,e);let fn=$.expression;return(mk($)||gp($)||!QS($.expression))&&(fn=t.createTempVariable(i,!0),wn().push(t.createBinaryExpression(fn,64,st($.expression,re,St)))),t.createAssignmentTargetWrapper(ft,He(Ht,fn,ft,64))}function Zs($){if(za($)||Nd($))return Zt($);if(HR($))return Ec($);if(W&&De&&gp($)&&vP(De)&&fe?.data){const{classConstructor:ft,superClassReference:Ht,facts:fn}=fe.data;if(fn&1)return Qt($);if(ft&&Ht){const ur=zs($)?st($.argumentExpression,re,St):Je($.name)?t.createStringLiteralFromNode($.name):void 0;if(ur){const si=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(si,t.createReflectSetCall(Ht,ur,si,ft))}}}return On($,re,e)}function Da($){if(Op($,Fe)&&($=Vp(e,$)),od($,!0)){const ft=Zs($.left),Ht=st($.right,re,St);return t.updateBinaryExpression($,ft,$.operatorToken,Ht)}return Zs($)}function ic($){if(ep($.expression)){const ft=Zs($.expression);return t.updateSpreadElement($,ft)}return On($,re,e)}function Sf($){if(K2($)){if(Yf($))return ic($);if(!Xc($))return Da($)}return On($,re,e)}function Po($){const ft=st($.name,re,Tc);if(od($.initializer,!0)){const Ht=Da($.initializer);return t.updatePropertyAssignment($,ft,Ht)}if(ep($.initializer)){const Ht=Zs($.initializer);return t.updatePropertyAssignment($,ft,Ht)}return On($,re,e)}function fa($){return Op($,Fe)&&($=Vp(e,$)),On($,re,e)}function os($){if(ep($.expression)){const ft=Zs($.expression);return t.updateSpreadAssignment($,ft)}return On($,re,e)}function Ja($){return C.assertNode($,J2),Mg($)?os($):Jd($)?fa($):Pc($)?Po($):On($,re,e)}function Zt($){return Nd($)?t.updateArrayLiteralExpression($,Xn($.elements,Sf,St)):t.updateObjectLiteralExpression($,Xn($.properties,Ja,ay))}function xs($,ft,Ht){const fn=bl(ft),ur=ue.get(fn);if(ur){const si=fe,Dr=Ne;fe=ur,Ne=Y,Y=!nc(fn)||!(jm(fn)&32),J($,ft,Ht),Y=Ne,Ne=Dr,fe=si;return}switch(ft.kind){case 219:if($s(fn)||Za(ft)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{const si=fe,Dr=Ne;fe=void 0,Ne=Y,Y=!1,J($,ft,Ht),Y=Ne,Ne=Dr,fe=si;return}case 168:{const si=fe,Dr=Y;fe=fe?.previous,Y=Ne,J($,ft,Ht),Y=Dr,fe=si;return}}J($,ft,Ht)}function Xl($,ft){return ft=j($,ft),$===1?dc(ft):ft}function dc($){switch($.kind){case 80:return Bs($);case 110:return bd($)}return $}function bd($){if(q&2&&fe?.data&&!me.has($)){const{facts:ft,classConstructor:Ht,classThis:fn}=fe.data,ur=Y?fn??Ht:Ht;if(ur)return bt(jr(t.cloneNode(ur),$),$);if(ft&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return $}function Bs($){return Ae($)||$}function Ae($){if(q&1&&d.hasNodeCheckFlag($,536870912)){const ft=d.getReferencedValueDeclaration($);if(ft){const Ht=ve[ft.id];if(Ht){const fn=t.cloneNode(Ht);return Ha(fn,$),Nc(fn,$),fn}}}}}function Xqe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function Yqe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function $qe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function Qqe(e){return!e1(e)&&e.escapedText==="#constructor"}function Zqe(e){return Qi(e.left)&&e.operatorToken.kind===103}function eJe(e){return Mo(e)&&Fc(e)}function vP(e){return nc(e)||eJe(e)}function Qae(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=Va(o),l=Hd(o,"strictNullChecks");let u,d;return{serializeTypeNode:(oe,K)=>_(oe,N,K),serializeTypeOfNode:(oe,K,fe)=>_(oe,y,K,fe),serializeParameterTypesOfNode:(oe,K,fe)=>_(oe,E,K,fe),serializeReturnTypeOfNode:(oe,K)=>_(oe,R,K)};function _(oe,K,fe,ue){const me=u,be=d;u=oe.currentLexicalScope,d=oe.currentNameScope;const De=ue===void 0?K(fe):K(fe,ue);return u=me,d=be,De}function h(oe,K){const fe=wS(K.members,oe);return fe.setAccessor&&Qne(fe.setAccessor)||fe.getAccessor&&Wp(fe.getAccessor)}function y(oe,K){switch(oe.kind){case 173:case 170:return N(oe.type);case 179:case 178:return N(h(oe,K));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(oe,K){const fe=ui(oe)?Eg(oe):$o(oe)&&vm(oe.body)?oe:void 0,ue=[];if(fe){const me=A(fe,K),be=me.length;for(let De=0;Deme.parent&&jS(me.parent)&&(me.parent.trueType===me||me.parent.falseType===me)))return t.createIdentifier("Object");const fe=j(oe.typeName),ue=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(ue,fe),"function"),void 0,ue,void 0,t.createIdentifier("Object"));case 1:return J(oe.typeName);case 2:return t.createVoidZero();case 4:return ve("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return ve("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return C.assertNever(K)}}function G(oe,K){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(oe),t.createStringLiteral("undefined")),K)}function j(oe){if(oe.kind===80){const ue=J(oe);return G(ue,ue)}if(oe.left.kind===80)return G(J(oe.left),J(oe));const K=j(oe.left),fe=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(K.left,t.createStrictInequality(t.createAssignment(fe,K.right),t.createVoidZero())),t.createPropertyAccessExpression(fe,oe.right))}function J(oe){switch(oe.kind){case 80:const K=ps(bt(a0.cloneNode(oe),oe),oe.parent);return K.original=void 0,ps(K,jo(u)),K;case 167:return Z(oe)}}function Z(oe){return t.createPropertyAccessExpression(J(oe.left),oe.right)}function q(oe){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(oe),"function"),void 0,t.createIdentifier(oe),void 0,t.createIdentifier("Object"))}function ve(oe,K){return sPw(At)||Bc(At)?void 0:At,hl),Kn=Zh(We),gt=Be(We),en=l<2?t.getInternalName(We,!1,!0):t.getLocalName(We,!1,!0),or=Xn(We.heritageClauses,y,Gp);let Ni=Xn(We.members,y,Sc),so=[];({members:Ni,decorationStatements:so}=P(We,Ni));const zt=l>=9&&!!gt&&vt(Ni,At=>Mo(At)&&di(At,256)||nc(At));zt&&(Ni=bt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(gt,t.createThis()))])),...Ni]),Ni));const Zr=t.createClassExpression(gn,at&&ml(at)?void 0:at,void 0,or,Ni);jr(Zr,We),bt(Zr,Kn);const xi=gt&&!zt?t.createAssignment(gt,Zr):Zr,Pi=t.createVariableDeclaration(en,void 0,void 0,xi);jr(Pi,We);const Pr=t.createVariableDeclarationList([Pi],1),Mi=t.createVariableStatement(void 0,Pr);jr(Mi,We),bt(Mi,Kn),Nc(Mi,We);const $e=[Mi];if(Xr($e,so),Ne($e,We),Wt)if(cn){const At=t.createExportDefault(en);$e.push(At)}else{const At=t.createExternalModuleExport(t.getDeclarationName(We));$e.push(At)}return $e}function W(We){return t.updateClassExpression(We,Xn(We.modifiers,h,Aa),We.name,void 0,Xn(We.heritageClauses,y,Gp),Xn(We.members,y,Sc))}function G(We){return t.updateConstructorDeclaration(We,Xn(We.modifiers,h,Aa),Xn(We.parameters,y,Zi),st(We.body,y,ta))}function j(We,at){return We!==at&&(Nc(We,at),Ha(We,Zh(at))),We}function J(We){return j(t.updateMethodDeclaration(We,Xn(We.modifiers,h,Aa),We.asteriskToken,C.checkDefined(st(We.name,y,Tc)),void 0,void 0,Xn(We.parameters,y,Zi),void 0,st(We.body,y,ta)),We)}function Z(We){return j(t.updateGetAccessorDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,Tc)),Xn(We.parameters,y,Zi),void 0,st(We.body,y,ta)),We)}function q(We){return j(t.updateSetAccessorDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,Tc)),Xn(We.parameters,y,Zi),st(We.body,y,ta)),We)}function ve(We){if(!(We.flags&33554432||di(We,128)))return j(t.updatePropertyDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,Tc)),void 0,void 0,st(We.initializer,y,St)),We)}function oe(We){const at=t.updateParameterDeclaration(We,Soe(t,We.modifiers),We.dotDotDotToken,C.checkDefined(st(We.name,y,t1)),void 0,void 0,st(We.initializer,y,St));return at!==We&&(Nc(at,We),bt(at,Zh(We)),Ha(at,Zh(We)),Cr(at.name,64)),at}function K(We){return jM(We.expression,"___metadata")}function fe(We){if(!We)return;const{false:at,true:Wt}=e9(We.decorators,K),cn=[];return Xr(cn,Yt(at,Ee)),Xr(cn,fi(We.parameters,re)),Xr(cn,Yt(Wt,Ee)),cn}function ue(We,at,Wt){Xr(We,Yt(De(at,Wt),cn=>t.createExpressionStatement(cn)))}function me(We,at,Wt){return gk(!0,We,Wt)&&at===ua(We)}function be(We,at){return Un(We.members,Wt=>me(Wt,at,We))}function De(We,at){const Wt=be(We,at);let cn;for(const gn of Wt)cn=Vn(cn,Y(We,gn));return cn}function Y(We,at){const Wt=x3(at,We,!0),cn=fe(Wt);if(!cn)return;const gn=ce(We,at),Kn=Te(at,!di(at,128)),gt=Mo(at)&&!$h(at)?t.createVoidZero():t.createNull(),en=r().createDecorateHelper(cn,gn,Kn,gt);return Cr(en,3072),Ha(en,Zh(at)),en}function Ne(We,at){const Wt=Xe(at);Wt&&We.push(jr(t.createExpressionStatement(Wt),at))}function Xe(We){const at=aH(We,!0),Wt=fe(at);if(!Wt)return;const cn=d&&d[Gu(We)],gn=l<2?t.getInternalName(We,!1,!0):t.getDeclarationName(We,!1,!0),Kn=r().createDecorateHelper(Wt,gn),gt=t.createAssignment(gn,cn?t.createAssignment(cn,Kn):Kn);return Cr(gt,3072),Ha(gt,Zh(We)),gt}function Ee(We){return C.checkDefined(st(We.expression,y,St))}function re(We,at){let Wt;if(We){Wt=[];for(const cn of We){const gn=r().createParamHelper(Ee(cn),at);bt(gn,cn.expression),Cr(gn,3072),Wt.push(gn)}}return Wt}function Te(We,at){const Wt=We.name;return Qi(Wt)?t.createIdentifier(""):va(Wt)?at&&!G_(Wt.expression)?t.getGeneratedNameForNode(Wt):Wt.expression:Je(Wt)?t.createStringLiteral(Kr(Wt)):t.cloneNode(Wt)}function Me(){d||(e.enableSubstitution(80),d=[])}function Be(We){if(o.hasNodeCheckFlag(We,262144)){Me();const at=t.createUniqueName(We.name&&!ml(We.name)?Kr(We.name):"default");return d[Gu(We)]=at,i(at),at}}function lt(We){return t.createPropertyAccessExpression(t.getDeclarationName(We),"prototype")}function ce(We,at){return ua(at)?t.getDeclarationName(We):lt(We)}function Ce(We,at){return at=u(We,at),We===1?ye(at):at}function ye(We){return We.kind===80?Ue(We):We}function Ue(We){return Ge(We)??We}function Ge(We){if(d&&o.hasNodeCheckFlag(We,536870912)){const at=o.getReferencedValueDeclaration(We);if(at){const Wt=d[at.id];if(Wt){const cn=t.cloneNode(Wt);return Ha(cn,We),Nc(cn,We),cn}}}}}function ese(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=Va(e.getCompilerOptions());let u,d,_,h,y,E;return yh(e,A);function A(B){u=void 0,E=!1;const Ie=On(B,q,e);return Cg(Ie,e.readEmitHelpers()),E&&(v1(Ie,32),E=!1),Ie}function R(){switch(d=void 0,_=void 0,h=void 0,u?.kind){case"class":d=u.classInfo;break;case"class-element":d=u.next.classInfo,_=u.classThis,h=u.classSuper;break;case"name":const B=u.next.next.next;B?.kind==="class-element"&&(d=B.next.classInfo,_=B.classThis,h=B.classSuper);break}}function N(B){u={kind:"class",next:u,classInfo:B,savedPendingExpressions:y},y=void 0,R()}function P(){C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,R()}function k(B){var Ie,te;C.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),u={kind:"class-element",next:u},(nc(B)||Mo(B)&&Fc(B))&&(u.classThis=(Ie=u.next.classInfo)==null?void 0:Ie.classThis,u.classSuper=(te=u.next.classInfo)==null?void 0:te.classSuper),R()}function F(){var B;C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),C.assert(((B=u.next)==null?void 0:B.kind)==="class","Incorrect value for top.next.kind.",()=>{var Ie;return`Expected top.next.kind to be 'class' but got '${(Ie=u.next)==null?void 0:Ie.kind}' instead.`}),u=u.next,R()}function W(){C.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),u={kind:"name",next:u},R()}function G(){C.assert(u?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u?.kind}' instead.`),u=u.next,R()}function j(){u?.kind==="other"?(C.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,R())}function J(){C.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(C.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,R())}function Z(B){return!!(B.transformFlags&33554432)||!!_&&!!(B.transformFlags&16384)||!!_&&!!h&&!!(B.transformFlags&134217728)}function q(B){if(!Z(B))return B;switch(B.kind){case 171:return C.fail("Use `modifierVisitor` instead.");case 264:return Xe(B);case 232:return Ee(B);case 177:case 173:case 176:return C.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 170:return Kn(B);case 227:return so(B,!1);case 304:return Mi(B);case 261:return $e(B);case 209:return At(B);case 278:return ot(B);case 110:return We(B);case 249:return or(B);case 245:return Ni(B);case 357:return Zr(B,!1);case 218:return Ft(B,!1);case 356:return le(B);case 214:return at(B);case 216:return Wt(B);case 225:case 226:return zt(B,!1);case 212:return cn(B);case 213:return gn(B);case 168:return Pr(B);case 175:case 179:case 178:case 219:case 263:{j();const Ie=On(B,ve,e);return J(),Ie}default:return On(B,ve,e)}}function ve(B){if(B.kind!==171)return q(B)}function oe(B){if(B.kind!==171)return B}function K(B){switch(B.kind){case 177:return Me(B);case 175:return ce(B);case 178:return Ce(B);case 179:return ye(B);case 173:return Ge(B);case 176:return Ue(B);default:return q(B)}}function fe(B){switch(B.kind){case 225:case 226:return zt(B,!0);case 227:return so(B,!0);case 357:return Zr(B,!0);case 218:return Ft(B,!0);default:return q(B)}}function ue(B){let Ie=B.name&&Je(B.name)&&!ml(B.name)?Kr(B.name):B.name&&Qi(B.name)&&!ml(B.name)?Kr(B.name).slice(1):B.name&&Oa(B.name)&&_p(B.name.text,99)?B.name.text:ui(B)?"class":"member";return _g(B)&&(Ie=`get_${Ie}`),Hh(B)&&(Ie=`set_${Ie}`),B.name&&Qi(B.name)&&(Ie=`private_${Ie}`),ua(B)&&(Ie=`static_${Ie}`),"_"+Ie}function me(B,Ie){return t.createUniqueName(`${ue(B)}_${Ie}`,24)}function be(B,Ie){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(B,void 0,void 0,Ie)],1))}function De(B){const Ie=t.createUniqueName("_metadata",48);let te,xt,Kt=!1,Le=!1,yt=!1,Bt,gr,tr;if(nD(!1,B)){const Jn=vt(B.members,mt=>(ou(mt)||Zu(mt))&&Fc(mt));Bt=t.createUniqueName("_classThis",Jn?24:48)}for(const Jn of B.members){if(pI(Jn)&&gk(!1,Jn,B))if(Fc(Jn)){if(!xt){xt=t.createUniqueName("_staticExtraInitializers",48);const mt=r().createRunInitializersHelper(Bt??t.createThis(),xt);Ha(mt,B.name??py(B)),gr??(gr=[]),gr.push(mt)}}else{if(!te){te=t.createUniqueName("_instanceExtraInitializers",48);const mt=r().createRunInitializersHelper(t.createThis(),te);Ha(mt,B.name??py(B)),tr??(tr=[]),tr.push(mt)}te??(te=t.createUniqueName("_instanceExtraInitializers",48))}if(nc(Jn)?fx(Jn)||(Kt=!0):Mo(Jn)&&(Fc(Jn)?Kt||(Kt=!!Jn.initializer||mf(Jn)):Le||(Le=!LG(Jn))),(ou(Jn)||Zu(Jn))&&Fc(Jn)&&(yt=!0),xt&&te&&Kt&&Le&&yt)break}return{class:B,classThis:Bt,metadataReference:Ie,instanceMethodExtraInitializersName:te,staticMethodExtraInitializersName:xt,hasStaticInitializers:Kt,hasNonAmbientInstanceFields:Le,hasStaticPrivateClassElements:yt,pendingStaticInitializers:gr,pendingInstanceInitializers:tr}}function Y(B){i(),!cH(B)&&rv(!1,B)&&(B=C3(e,B,t.createStringLiteral("")));const Ie=t.getLocalName(B,!1,!1,!0),te=De(B),xt=[];let Kt,Le,yt,Bt,gr=!1;const tr=it(aH(B,!1));tr&&(te.classDecoratorsName=t.createUniqueName("_classDecorators",48),te.classDescriptorName=t.createUniqueName("_classDescriptor",48),te.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),C.assertIsDefined(te.classThis),xt.push(be(te.classDecoratorsName,t.createArrayLiteralExpression(tr)),be(te.classDescriptorName),be(te.classExtraInitializersName,t.createArrayLiteralExpression()),be(te.classThis)),te.hasStaticPrivateClassElements&&(gr=!0,E=!0));const Jn=kk(B.heritageClauses,96),mt=Jn&&Rc(Jn.types),Mt=mt&&st(mt.expression,q,St);if(Mt){te.classSuper=t.createUniqueName("_classSuper",48);const xn=Kl(Mt),wn=fc(xn)&&!xn.name||qs(xn)&&!xn.name||$s(xn)?t.createComma(t.createNumericLiteral(0),Mt):Mt;xt.push(be(te.classSuper,wn));const ln=t.updateExpressionWithTypeArguments(mt,te.classSuper,void 0),Ri=t.updateHeritageClause(Jn,[ln]);Bt=t.createNodeArray([Ri])}const Vt=te.classThis??t.createThis();N(te),Kt=Vn(Kt,Oe(te.metadataReference,te.classSuper));let Qt=B.members;if(Qt=Xn(Qt,xn=>kl(xn)?xn:K(xn),Sc),Qt=Xn(Qt,xn=>kl(xn)?K(xn):xn,Sc),y){let xn;for(let wn of y){wn=st(wn,function Ri(ia){return ia.transformFlags&16384?ia.kind===110?(xn||(xn=t.createUniqueName("_outerThis",16),xt.unshift(be(xn,t.createThis()))),xn):On(ia,Ri,e):ia},St);const ln=t.createExpressionStatement(wn);Kt=Vn(Kt,ln)}y=void 0}if(P(),vt(te.pendingInstanceInitializers)&&!Eg(B)){const xn=re(B,te);if(xn){const wn=uh(B),ln=!!(wn&&Kl(wn.expression).kind!==106),Ri=[];if(ln){const la=t.createSpreadElement(t.createIdentifier("arguments")),zo=t.createCallExpression(t.createSuper(),void 0,[la]);Ri.push(t.createExpressionStatement(zo))}Xr(Ri,xn);const ia=t.createBlock(Ri,!0);yt=t.createConstructorDeclaration(void 0,[],ia)}}if(te.staticMethodExtraInitializersName&&xt.push(be(te.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),te.instanceMethodExtraInitializersName&&xt.push(be(te.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),te.memberInfos&&Jc(te.memberInfos,(xn,wn)=>{ua(wn)&&(xt.push(be(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(be(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(be(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(be(xn.memberDescriptorName)))}),te.memberInfos&&Jc(te.memberInfos,(xn,wn)=>{ua(wn)||(xt.push(be(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(be(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(be(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(be(xn.memberDescriptorName)))}),Kt=Xr(Kt,te.staticNonFieldDecorationStatements),Kt=Xr(Kt,te.nonStaticNonFieldDecorationStatements),Kt=Xr(Kt,te.staticFieldDecorationStatements),Kt=Xr(Kt,te.nonStaticFieldDecorationStatements),te.classDescriptorName&&te.classDecoratorsName&&te.classExtraInitializersName&&te.classThis){Kt??(Kt=[]);const xn=t.createPropertyAssignment("value",Vt),wn=t.createObjectLiteralExpression([xn]),ln=t.createAssignment(te.classDescriptorName,wn),Ri=t.createPropertyAccessExpression(Vt,"name"),ia=r().createESDecorateHelper(t.createNull(),ln,te.classDecoratorsName,{kind:"class",name:Ri,metadata:te.metadataReference},t.createNull(),te.classExtraInitializersName),la=t.createExpressionStatement(ia);Ha(la,py(B)),Kt.push(la);const zo=t.createPropertyAccessExpression(te.classDescriptorName,"value"),jl=t.createAssignment(te.classThis,zo),Cl=t.createAssignment(Ie,jl);Kt.push(t.createExpressionStatement(Cl))}if(Kt.push(Nt(Vt,te.metadataReference)),vt(te.pendingStaticInitializers)){for(const xn of te.pendingStaticInitializers){const wn=t.createExpressionStatement(xn);Ha(wn,dv(xn)),Le=Vn(Le,wn)}te.pendingStaticInitializers=void 0}if(te.classExtraInitializersName){const xn=r().createRunInitializersHelper(Vt,te.classExtraInitializersName),wn=t.createExpressionStatement(xn);Ha(wn,B.name??py(B)),Le=Vn(Le,wn)}Kt&&Le&&!te.hasStaticInitializers&&(Xr(Kt,Le),Le=void 0);const In=Kt&&t.createClassStaticBlockDeclaration(t.createBlock(Kt,!0));In&&gr&&_w(In,32);const yn=Le&&t.createClassStaticBlockDeclaration(t.createBlock(Le,!0));if(In||yt||yn){const xn=[],wn=Qt.findIndex(fx);In?(Xr(xn,Qt,0,wn+1),xn.push(In),Xr(xn,Qt,wn+1)):Xr(xn,Qt),yt&&xn.push(yt),yn&&xn.push(yn),Qt=bt(t.createNodeArray(xn),Qt)}const wt=o();let En;if(tr){En=t.createClassExpression(void 0,void 0,void 0,Bt,Qt),te.classThis&&(En=qae(t,En,te.classThis));const xn=t.createVariableDeclaration(Ie,void 0,void 0,En),wn=t.createVariableDeclarationList([xn]),ln=te.classThis?t.createAssignment(Ie,te.classThis):Ie;xt.push(t.createVariableStatement(void 0,wn),t.createReturnStatement(ln))}else En=t.createClassExpression(void 0,B.name,void 0,Bt,Qt),xt.push(t.createReturnStatement(En));if(gr){v1(En,32);for(const xn of En.members)(ou(xn)||Zu(xn))&&Fc(xn)&&v1(xn,32)}return jr(En,B),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(xt,wt))}function Ne(B){return rv(!1,B)||eM(!1,B)}function Xe(B){if(Ne(B)){const Ie=[],te=bl(B,ui)??B,xt=te.name?t.createStringLiteralFromNode(te.name):t.createStringLiteral("default"),Kt=di(B,32),Le=di(B,2048);if(B.name||(B=C3(e,B,xt)),Kt&&Le){const yt=Y(B);if(B.name){const Bt=t.createVariableDeclaration(t.getLocalName(B),void 0,void 0,yt);jr(Bt,B);const gr=t.createVariableDeclarationList([Bt],1),tr=t.createVariableStatement(void 0,gr);Ie.push(tr);const Jn=t.createExportDefault(t.getDeclarationName(B));jr(Jn,B),Nc(Jn,n_(B)),Ha(Jn,py(B)),Ie.push(Jn)}else{const Bt=t.createExportDefault(yt);jr(Bt,B),Nc(Bt,n_(B)),Ha(Bt,py(B)),Ie.push(Bt)}}else{C.assertIsDefined(B.name,"A class declaration that is not a default export must have a name.");const yt=Y(B),Bt=Kt?Vt=>JI(Vt)?void 0:oe(Vt):oe,gr=Xn(B.modifiers,Bt,Aa),tr=t.getLocalName(B,!1,!0),Jn=t.createVariableDeclaration(tr,void 0,void 0,yt);jr(Jn,B);const mt=t.createVariableDeclarationList([Jn],1),Mt=t.createVariableStatement(gr,mt);if(jr(Mt,B),Nc(Mt,n_(B)),Ie.push(Mt),Kt){const Vt=t.createExternalModuleExport(tr);jr(Vt,B),Ie.push(Vt)}}return R_(Ie)}else{const Ie=Xn(B.modifiers,oe,Aa),te=Xn(B.heritageClauses,q,Gp);N(void 0);const xt=Xn(B.members,K,Sc);return P(),t.updateClassDeclaration(B,Ie,B.name,void 0,te,xt)}}function Ee(B){if(Ne(B)){const Ie=Y(B);return jr(Ie,B),Ie}else{const Ie=Xn(B.modifiers,oe,Aa),te=Xn(B.heritageClauses,q,Gp);N(void 0);const xt=Xn(B.members,K,Sc);return P(),t.updateClassExpression(B,Ie,B.name,void 0,te,xt)}}function re(B,Ie){if(vt(Ie.pendingInstanceInitializers)){const te=[];return te.push(t.createExpressionStatement(t.inlineExpressions(Ie.pendingInstanceInitializers))),Ie.pendingInstanceInitializers=void 0,te}}function Te(B,Ie,te,xt,Kt,Le){const yt=xt[Kt],Bt=Ie[yt];if(Xr(B,Xn(Ie,q,ji,te,yt-te)),R1(Bt)){const gr=[];Te(gr,Bt.tryBlock.statements,0,xt,Kt+1,Le);const tr=t.createNodeArray(gr);bt(tr,Bt.tryBlock.statements),B.push(t.updateTryStatement(Bt,t.updateBlock(Bt.tryBlock,gr),st(Bt.catchClause,q,KS),st(Bt.finallyBlock,q,ta)))}else Xr(B,Xn(Ie,q,ji,yt,1)),Xr(B,Le);Xr(B,Xn(Ie,q,ji,yt+1))}function Me(B){k(B);const Ie=Xn(B.modifiers,oe,Aa),te=Xn(B.parameters,q,Zi);let xt;if(B.body&&d){const Kt=re(d.class,d);if(Kt){const Le=[],yt=t.copyPrologue(B.body.statements,Le,!1,q),Bt=A3(B.body.statements,yt);Bt.length>0?Te(Le,B.body.statements,yt,Bt,0,Kt):(Xr(Le,Kt),Xr(Le,Xn(B.body.statements,q,ji))),xt=t.createBlock(Le,!0),jr(xt,B.body),bt(xt,B.body)}}return xt??(xt=st(B.body,q,ta)),F(),t.updateConstructorDeclaration(B,Ie,te,xt)}function Be(B,Ie){return B!==Ie&&(Nc(B,Ie),Ha(B,py(Ie))),B}function lt(B,Ie,te){let xt,Kt,Le,yt,Bt,gr;if(!Ie){const mt=Xn(B.modifiers,oe,Aa);return W(),Kt=Pi(B.name),G(),{modifiers:mt,referencedName:xt,name:Kt,initializersName:Le,descriptorName:gr,thisArg:Bt}}const tr=it(x3(B,Ie.class,!1)),Jn=Xn(B.modifiers,oe,Aa);if(tr){const mt=me(B,"decorators"),Mt=t.createArrayLiteralExpression(tr),Vt=t.createAssignment(mt,Mt),Qt={memberDecoratorsName:mt};Ie.memberInfos??(Ie.memberInfos=new Map),Ie.memberInfos.set(B,Qt),y??(y=[]),y.push(Vt);const In=pI(B)||Zu(B)?ua(B)?Ie.staticNonFieldDecorationStatements??(Ie.staticNonFieldDecorationStatements=[]):Ie.nonStaticNonFieldDecorationStatements??(Ie.nonStaticNonFieldDecorationStatements=[]):Mo(B)&&!Zu(B)?ua(B)?Ie.staticFieldDecorationStatements??(Ie.staticFieldDecorationStatements=[]):Ie.nonStaticFieldDecorationStatements??(Ie.nonStaticFieldDecorationStatements=[]):C.fail(),yn=Xf(B)?"getter":bp(B)?"setter":Ll(B)?"method":Zu(B)?"accessor":Mo(B)?"field":C.fail();let wt;if(Je(B.name)||Qi(B.name))wt={computed:!1,name:B.name};else if(Xh(B.name))wt={computed:!0,name:t.createStringLiteralFromNode(B.name)};else{const xn=B.name.expression;Xh(xn)&&!Je(xn)?wt={computed:!0,name:t.createStringLiteralFromNode(xn)}:(W(),{referencedName:xt,name:Kt}=xi(B.name),wt={computed:!0,name:xt},G())}const En={kind:yn,name:wt,static:ua(B),private:Qi(B.name),access:{get:Mo(B)||Xf(B)||Ll(B),set:Mo(B)||bp(B)},metadata:Ie.metadataReference};if(pI(B)){const xn=ua(B)?Ie.staticMethodExtraInitializersName:Ie.instanceMethodExtraInitializersName;C.assertIsDefined(xn);let wn;ou(B)&&te&&(wn=te(B,Xn(Jn,ia=>ni(ia,UM),Aa)),Qt.memberDescriptorName=gr=me(B,"descriptor"),wn=t.createAssignment(gr,wn));const ln=r().createESDecorateHelper(t.createThis(),wn??t.createNull(),mt,En,t.createNull(),xn),Ri=t.createExpressionStatement(ln);Ha(Ri,py(B)),In.push(Ri)}else if(Mo(B)){Le=Qt.memberInitializersName??(Qt.memberInitializersName=me(B,"initializers")),yt=Qt.memberExtraInitializersName??(Qt.memberExtraInitializersName=me(B,"extraInitializers")),ua(B)&&(Bt=Ie.classThis);let xn;ou(B)&&$h(B)&&te&&(xn=te(B,void 0),Qt.memberDescriptorName=gr=me(B,"descriptor"),xn=t.createAssignment(gr,xn));const wn=r().createESDecorateHelper(Zu(B)?t.createThis():t.createNull(),xn??t.createNull(),mt,En,Le,yt),ln=t.createExpressionStatement(wn);Ha(ln,py(B)),In.push(ln)}}return Kt===void 0&&(W(),Kt=Pi(B.name),G()),!vt(Jn)&&(Ll(B)||Mo(B))&&Cr(Kt,1024),{modifiers:Jn,referencedName:xt,name:Kt,initializersName:Le,extraInitializersName:yt,descriptorName:gr,thisArg:Bt}}function ce(B){k(B);const{modifiers:Ie,name:te,descriptorName:xt}=lt(B,d,He);if(xt)return F(),Be(nt(Ie,te,xt),B);{const Kt=Xn(B.parameters,q,Zi),Le=st(B.body,q,ta);return F(),Be(t.updateMethodDeclaration(B,Ie,B.asteriskToken,te,void 0,void 0,Kt,void 0,Le),B)}}function Ce(B){k(B);const{modifiers:Ie,name:te,descriptorName:xt}=lt(B,d,Rt);if(xt)return F(),Be(Jt(Ie,te,xt),B);{const Kt=Xn(B.parameters,q,Zi),Le=st(B.body,q,ta);return F(),Be(t.updateGetAccessorDeclaration(B,Ie,te,Kt,void 0,Le),B)}}function ye(B){k(B);const{modifiers:Ie,name:te,descriptorName:xt}=lt(B,d,It);if(xt)return F(),Be(Tr(Ie,te,xt),B);{const Kt=Xn(B.parameters,q,Zi),Le=st(B.body,q,ta);return F(),Be(t.updateSetAccessorDeclaration(B,Ie,te,Kt,Le),B)}}function Ue(B){k(B);let Ie;if(fx(B))Ie=On(B,q,e);else if(yP(B)){const te=_;_=void 0,Ie=On(B,q,e),_=te}else if(B=On(B,q,e),Ie=B,d&&(d.hasStaticInitializers=!0,vt(d.pendingStaticInitializers))){const te=[];for(const Le of d.pendingStaticInitializers){const yt=t.createExpressionStatement(Le);Ha(yt,dv(Le)),te.push(yt)}const xt=t.createBlock(te,!0);Ie=[t.createClassStaticBlockDeclaration(xt),Ie],d.pendingStaticInitializers=void 0}return F(),Ie}function Ge(B){Op(B,gt)&&(B=Vp(e,B,en(B.initializer))),k(B),C.assert(!LG(B),"Not yet implemented.");const{modifiers:Ie,name:te,initializersName:xt,extraInitializersName:Kt,descriptorName:Le,thisArg:yt}=lt(B,d,$h(B)?Ot:void 0);i();let Bt=st(B.initializer,q,St);xt&&(Bt=r().createRunInitializersHelper(yt??t.createThis(),xt,Bt??t.createVoidZero())),ua(B)&&d&&Bt&&(d.hasStaticInitializers=!0);const gr=o();if(vt(gr)&&(Bt=t.createImmediatelyInvokedArrowFunction([...gr,t.createReturnStatement(Bt)])),d&&(ua(B)?(Bt=Fe(d,!0,Bt),Kt&&(d.pendingStaticInitializers??(d.pendingStaticInitializers=[]),d.pendingStaticInitializers.push(r().createRunInitializersHelper(d.classThis??t.createThis(),Kt)))):(Bt=Fe(d,!1,Bt),Kt&&(d.pendingInstanceInitializers??(d.pendingInstanceInitializers=[]),d.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Kt))))),F(),$h(B)&&Le){const tr=n_(B),Jn=dv(B),mt=B.name;let Mt=mt,Vt=mt;if(va(mt)&&!G_(mt.expression)){const En=j4(mt);if(En)Mt=t.updateComputedPropertyName(mt,st(mt.expression,q,St)),Vt=t.updateComputedPropertyName(mt,En.left);else{const xn=t.createTempVariable(s);Ha(xn,mt.expression);const wn=st(mt.expression,q,St),ln=t.createAssignment(xn,wn);Ha(ln,mt.expression),Mt=t.updateComputedPropertyName(mt,ln),Vt=t.updateComputedPropertyName(mt,xn)}}const Qt=Xn(Ie,En=>En.kind!==129?En:void 0,Aa),In=iU(t,B,Qt,Bt);jr(In,B),Cr(In,3072),Ha(In,Jn),Ha(In.name,B.name);const yn=Jt(Qt,Mt,Le);jr(yn,B),Nc(yn,tr),Ha(yn,Jn);const wt=Tr(Qt,Vt,Le);return jr(wt,B),Cr(wt,3072),Ha(wt,Jn),[In,yn,wt]}return Be(t.updatePropertyDeclaration(B,Ie,te,void 0,void 0,Bt),B)}function We(B){return _??B}function at(B){if(gp(B.expression)&&_){const Ie=st(B.expression,q,St),te=Xn(B.arguments,q,St),xt=t.createFunctionCallCall(Ie,_,te);return jr(xt,B),bt(xt,B),xt}return On(B,q,e)}function Wt(B){if(gp(B.tag)&&_){const Ie=st(B.tag,q,St),te=t.createFunctionBindCall(Ie,_,[]);jr(te,B),bt(te,B);const xt=st(B.template,q,fI);return t.updateTaggedTemplateExpression(B,te,void 0,xt)}return On(B,q,e)}function cn(B){if(gp(B)&&Je(B.name)&&_&&h){const Ie=t.createStringLiteralFromNode(B.name),te=t.createReflectGetCall(h,Ie,_);return jr(te,B.expression),bt(te,B.expression),te}return On(B,q,e)}function gn(B){if(gp(B)&&_&&h){const Ie=st(B.argumentExpression,q,St),te=t.createReflectGetCall(h,Ie,_);return jr(te,B.expression),bt(te,B.expression),te}return On(B,q,e)}function Kn(B){Op(B,gt)&&(B=Vp(e,B,en(B.initializer)));const Ie=t.updateParameterDeclaration(B,void 0,B.dotDotDotToken,st(B.name,q,t1),void 0,void 0,st(B.initializer,q,St));return Ie!==B&&(Nc(Ie,B),bt(Ie,Zh(B)),Ha(Ie,Zh(B)),Cr(Ie.name,64)),Ie}function gt(B){return fc(B)&&!B.name&&Ne(B)}function en(B){const Ie=Kl(B);return fc(Ie)&&!Ie.name&&!rv(!1,Ie)}function or(B){return t.updateForStatement(B,st(B.initializer,fe,Bf),st(B.condition,q,St),st(B.incrementor,fe,St),Bu(B.statement,q,e))}function Ni(B){return On(B,fe,e)}function so(B,Ie){if(ov(B)){const te=Uo(B.left),xt=st(B.right,q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}if(od(B)){if(Op(B,gt))return B=Vp(e,B,en(B.right)),On(B,q,e);if(gp(B.left)&&_&&h){let te=zs(B.left)?st(B.left.argumentExpression,q,St):Je(B.left.name)?t.createStringLiteralFromNode(B.left.name):void 0;if(te){let xt=st(B.right,q,St);if(hP(B.operatorToken.kind)){let Le=te;G_(te)||(Le=t.createTempVariable(s),te=t.createAssignment(Le,te));const yt=t.createReflectGetCall(h,Le,_);jr(yt,B.left),bt(yt,B.left),xt=t.createBinaryExpression(yt,_P(B.operatorToken.kind),xt),bt(xt,B)}const Kt=Ie?void 0:t.createTempVariable(s);return Kt&&(xt=t.createAssignment(Kt,xt),bt(Kt,B)),xt=t.createReflectSetCall(h,te,xt,_),jr(xt,B),bt(xt,B),Kt&&(xt=t.createComma(xt,Kt),bt(xt,B)),xt}}}if(B.operatorToken.kind===28){const te=st(B.left,fe,St),xt=st(B.right,Ie?fe:q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}return On(B,q,e)}function zt(B,Ie){if(B.operator===46||B.operator===47){const te=us(B.operand);if(gp(te)&&_&&h){let xt=zs(te)?st(te.argumentExpression,q,St):Je(te.name)?t.createStringLiteralFromNode(te.name):void 0;if(xt){let Kt=xt;G_(xt)||(Kt=t.createTempVariable(s),xt=t.createAssignment(Kt,xt));let Le=t.createReflectGetCall(h,Kt,_);jr(Le,B),bt(Le,B);const yt=Ie?void 0:t.createTempVariable(s);return Le=W4(t,B,Le,s,yt),Le=t.createReflectSetCall(h,xt,Le,_),jr(Le,B),bt(Le,B),yt&&(Le=t.createComma(Le,yt),bt(Le,B)),Le}}}return On(B,q,e)}function Zr(B,Ie){const te=Ie?T3(B.elements,fe):T3(B.elements,q,fe);return t.updateCommaListExpression(B,te)}function xi(B){if(Xh(B)||Qi(B)){const Le=t.createStringLiteralFromNode(B),yt=st(B,q,Tc);return{referencedName:Le,name:yt}}if(Xh(B.expression)&&!Je(B.expression)){const Le=t.createStringLiteralFromNode(B.expression),yt=st(B,q,Tc);return{referencedName:Le,name:yt}}const Ie=t.getGeneratedNameForNode(B);s(Ie);const te=r().createPropKeyHelper(st(B.expression,q,St)),xt=t.createAssignment(Ie,te),Kt=t.updateComputedPropertyName(B,ne(xt));return{referencedName:Ie,name:Kt}}function Pi(B){return va(B)?Pr(B):st(B,q,Tc)}function Pr(B){let Ie=st(B.expression,q,St);return G_(Ie)||(Ie=ne(Ie)),t.updateComputedPropertyName(B,Ie)}function Mi(B){return Op(B,gt)&&(B=Vp(e,B,en(B.initializer))),On(B,q,e)}function $e(B){return Op(B,gt)&&(B=Vp(e,B,en(B.initializer))),On(B,q,e)}function At(B){return Op(B,gt)&&(B=Vp(e,B,en(B.initializer))),On(B,q,e)}function hn(B){if(za(B)||Nd(B))return Uo(B);if(gp(B)&&_&&h){const Ie=zs(B)?st(B.argumentExpression,q,St):Je(B.name)?t.createStringLiteralFromNode(B.name):void 0;if(Ie){const te=t.createTempVariable(void 0),xt=t.createAssignmentTargetWrapper(te,t.createReflectSetCall(h,Ie,te,_));return jr(xt,B),bt(xt,B),xt}}return On(B,q,e)}function dr(B){if(od(B,!0)){Op(B,gt)&&(B=Vp(e,B,en(B.right)));const Ie=hn(B.left),te=st(B.right,q,St);return t.updateBinaryExpression(B,Ie,B.operatorToken,te)}else return hn(B)}function ri(B){if(ep(B.expression)){const Ie=hn(B.expression);return t.updateSpreadElement(B,Ie)}return On(B,q,e)}function ai(B){return C.assertNode(B,K2),Yf(B)?ri(B):Xc(B)?On(B,q,e):dr(B)}function qi(B){const Ie=st(B.name,q,Tc);if(od(B.initializer,!0)){const te=dr(B.initializer);return t.updatePropertyAssignment(B,Ie,te)}if(ep(B.initializer)){const te=hn(B.initializer);return t.updatePropertyAssignment(B,Ie,te)}return On(B,q,e)}function Qo(B){return Op(B,gt)&&(B=Vp(e,B,en(B.objectAssignmentInitializer))),On(B,q,e)}function Ia(B){if(ep(B.expression)){const Ie=hn(B.expression);return t.updateSpreadAssignment(B,Ie)}return On(B,q,e)}function Pn(B){return C.assertNode(B,J2),Mg(B)?Ia(B):Jd(B)?Qo(B):Pc(B)?qi(B):On(B,q,e)}function Uo(B){if(Nd(B)){const Ie=Xn(B.elements,ai,St);return t.updateArrayLiteralExpression(B,Ie)}else{const Ie=Xn(B.properties,Pn,ay);return t.updateObjectLiteralExpression(B,Ie)}}function ot(B){return Op(B,gt)&&(B=Vp(e,B,en(B.expression))),On(B,q,e)}function Ft(B,Ie){const te=Ie?fe:q,xt=st(B.expression,te,St);return t.updateParenthesizedExpression(B,xt)}function le(B,Ie){const te=q,xt=st(B.expression,te,St);return t.updatePartiallyEmittedExpression(B,xt)}function _t(B,Ie){return vt(B)&&(Ie?zu(Ie)?(B.push(Ie.expression),Ie=t.updateParenthesizedExpression(Ie,t.inlineExpressions(B))):(B.push(Ie),Ie=t.inlineExpressions(B)):Ie=t.inlineExpressions(B)),Ie}function ne(B){const Ie=_t(y,B);return C.assertIsDefined(Ie),Ie!==B&&(y=void 0),Ie}function Fe(B,Ie,te){const xt=_t(Ie?B.pendingStaticInitializers:B.pendingInstanceInitializers,te);return xt!==te&&(Ie?B.pendingStaticInitializers=void 0:B.pendingInstanceInitializers=void 0),xt}function it(B){if(!B)return;const Ie=[];return Xr(Ie,Yt(B.decorators,dt)),Ie}function dt(B){const Ie=st(B.expression,q,St);Cr(Ie,3072);const te=Kl(Ie);if(Ys(te)){const{target:xt,thisArg:Kt}=t.createCallBinding(Ie,s,l,!0);return t.restoreOuterExpressions(Ie,t.createFunctionBindCall(xt,Kt,[]))}return Ie}function Lt(B,Ie,te,xt,Kt,Le,yt){const Bt=t.createFunctionExpression(te,xt,void 0,void 0,Le,void 0,yt??t.createBlock([]));jr(Bt,B),Ha(Bt,py(B)),Cr(Bt,3072);const gr=Kt==="get"||Kt==="set"?Kt:void 0,tr=t.createStringLiteralFromNode(Ie,void 0),Jn=r().createSetFunctionNameHelper(Bt,tr,gr),mt=t.createPropertyAssignment(t.createIdentifier(Kt),Jn);return jr(mt,B),Ha(mt,py(B)),Cr(mt,3072),mt}function He(B,Ie){return t.createObjectLiteralExpression([Lt(B,B.name,Ie,B.asteriskToken,"value",Xn(B.parameters,q,Zi),st(B.body,q,ta))])}function Rt(B,Ie){return t.createObjectLiteralExpression([Lt(B,B.name,Ie,void 0,"get",[],st(B.body,q,ta))])}function It(B,Ie){return t.createObjectLiteralExpression([Lt(B,B.name,Ie,void 0,"set",Xn(B.parameters,q,Zi),st(B.body,q,ta))])}function Ot(B,Ie){return t.createObjectLiteralExpression([Lt(B,B.name,Ie,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)))])),Lt(B,B.name,Ie,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)),t.createIdentifier("value")))]))])}function nt(B,Ie,te){return B=Xn(B,xt=>KI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ie,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(te,t.createIdentifier("value")))]))}function Jt(B,Ie,te){return B=Xn(B,xt=>KI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ie,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(te,t.createIdentifier("get")),t.createThis(),[]))]))}function Tr(B,Ie,te){return B=Xn(B,xt=>KI(xt)?xt:void 0,Aa),t.createSetAccessorDeclaration(B,Ie,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(te,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Oe(B,Ie){const te=t.createVariableDeclaration(B,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[Ie?ge(Ie):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([te],2))}function Nt(B,Ie){const te=t.createObjectDefinePropertyCall(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:Ie},!0));return Cr(t.createIfStatement(Ie,t.createExpressionStatement(te)),1)}function ge(B){return t.createBinaryExpression(t.createElementAccessExpression(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function tse(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Va(u);let _=0,h=0,y,E,A,R;const N=[];let P=0;const k=e.onEmitNode,F=e.onSubstituteNode;return e.onEmitNode=Ni,e.onSubstituteNode=so,yh(e,W);function W($e){if($e.isDeclarationFile)return $e;G(1,!1),G(2,!PG($e,u));const At=On($e,K,e);return Cg(At,e.readEmitHelpers()),At}function G($e,At){P=At?P|$e:P&~$e}function j($e){return(P&$e)!==0}function J(){return!j(1)}function Z(){return j(2)}function q($e,At,hn){const dr=$e&~P;if(dr){G(dr,!0);const ri=At(hn);return G(dr,!1),ri}return At(hn)}function ve($e){return On($e,K,e)}function oe($e){switch($e.kind){case 219:case 263:case 175:case 178:case 179:case 177:return $e;case 170:case 209:case 261:break;case 80:if(R&&l.isArgumentsLocalBinding($e))return R;break}return On($e,oe,e)}function K($e){if(($e.transformFlags&256)===0)return R?oe($e):$e;switch($e.kind){case 134:return;case 224:return Ne($e);case 175:return q(3,Ee,$e);case 263:return q(3,Me,$e);case 219:return q(3,Be,$e);case 220:return q(1,lt,$e);case 212:return E&&qr($e)&&$e.expression.kind===108&&E.add($e.name.escapedText),On($e,K,e);case 213:return E&&$e.expression.kind===108&&(A=!0),On($e,K,e);case 178:return q(3,re,$e);case 179:return q(3,Te,$e);case 177:return q(3,Xe,$e);case 264:case 232:return q(3,ve,$e);default:return On($e,K,e)}}function fe($e){if(zne($e))switch($e.kind){case 244:return me($e);case 249:return Y($e);case 250:return be($e);case 251:return De($e);case 300:return ue($e);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return On($e,fe,e);default:return C.assertNever($e,"Unhandled node.")}return K($e)}function ue($e){const At=new Set;ce($e.variableDeclaration,At);let hn;if(At.forEach((dr,ri)=>{y.has(ri)&&(hn||(hn=new Set(y)),hn.delete(ri))}),hn){const dr=y;y=hn;const ri=On($e,fe,e);return y=dr,ri}else return On($e,fe,e)}function me($e){if(Ce($e.declarationList)){const At=ye($e.declarationList,!1);return At?t.createExpressionStatement(At):void 0}return On($e,K,e)}function be($e){return t.updateForInStatement($e,Ce($e.initializer)?ye($e.initializer,!0):C.checkDefined(st($e.initializer,K,Bf)),C.checkDefined(st($e.expression,K,St)),Bu($e.statement,fe,e))}function De($e){return t.updateForOfStatement($e,st($e.awaitModifier,K,Nj),Ce($e.initializer)?ye($e.initializer,!0):C.checkDefined(st($e.initializer,K,Bf)),C.checkDefined(st($e.expression,K,St)),Bu($e.statement,fe,e))}function Y($e){const At=$e.initializer;return t.updateForStatement($e,Ce(At)?ye(At,!1):st($e.initializer,K,Bf),st($e.condition,K,St),st($e.incrementor,K,St),Bu($e.statement,fe,e))}function Ne($e){return J()?On($e,K,e):jr(bt(t.createYieldExpression(void 0,st($e.expression,K,St)),$e),$e)}function Xe($e){const At=R;R=void 0;const hn=t.updateConstructorDeclaration($e,Xn($e.modifiers,K,Aa),Gl($e.parameters,K,e),Wt($e));return R=At,hn}function Ee($e){let At;const hn=pc($e),dr=R;R=void 0;const ri=t.updateMethodDeclaration($e,Xn($e.modifiers,K,hl),$e.asteriskToken,$e.name,void 0,void 0,At=hn&2?gn($e):Gl($e.parameters,K,e),void 0,hn&2?Kn($e,At):Wt($e));return R=dr,ri}function re($e){const At=R;R=void 0;const hn=t.updateGetAccessorDeclaration($e,Xn($e.modifiers,K,hl),$e.name,Gl($e.parameters,K,e),void 0,Wt($e));return R=At,hn}function Te($e){const At=R;R=void 0;const hn=t.updateSetAccessorDeclaration($e,Xn($e.modifiers,K,hl),$e.name,Gl($e.parameters,K,e),Wt($e));return R=At,hn}function Me($e){let At;const hn=R;R=void 0;const dr=pc($e),ri=t.updateFunctionDeclaration($e,Xn($e.modifiers,K,hl),$e.asteriskToken,$e.name,void 0,At=dr&2?gn($e):Gl($e.parameters,K,e),void 0,dr&2?Kn($e,At):vf($e.body,K,e));return R=hn,ri}function Be($e){let At;const hn=R;R=void 0;const dr=pc($e),ri=t.updateFunctionExpression($e,Xn($e.modifiers,K,Aa),$e.asteriskToken,$e.name,void 0,At=dr&2?gn($e):Gl($e.parameters,K,e),void 0,dr&2?Kn($e,At):vf($e.body,K,e));return R=hn,ri}function lt($e){let At;const hn=pc($e);return t.updateArrowFunction($e,Xn($e.modifiers,K,Aa),void 0,At=hn&2?gn($e):Gl($e.parameters,K,e),void 0,$e.equalsGreaterThanToken,hn&2?Kn($e,At):vf($e.body,K,e))}function ce({name:$e},At){if(Je($e))At.add($e.escapedText);else for(const hn of $e.elements)Xc(hn)||ce(hn,At)}function Ce($e){return!!$e&&gd($e)&&!($e.flags&7)&&$e.declarations.some(at)}function ye($e,At){Ue($e);const hn=SM($e);return hn.length===0?At?st(t.converters.convertToAssignmentElementTarget($e.declarations[0].name),K,St):void 0:t.inlineExpressions(Yt(hn,We))}function Ue($e){qe($e.declarations,Ge)}function Ge({name:$e}){if(Je($e))s($e);else for(const At of $e.elements)Xc(At)||Ge(At)}function We($e){const At=Ha(t.createAssignment(t.converters.convertToAssignmentElementTarget($e.name),$e.initializer),$e);return C.checkDefined(st(At,K,St))}function at({name:$e}){if(Je($e))return y.has($e.escapedText);for(const At of $e.elements)if(!Xc(At)&&at(At))return!0;return!1}function Wt($e){C.assertIsDefined($e.body);const At=E,hn=A;E=new Set,A=!1;let dr=vf($e.body,K,e);const ri=bl($e,Ls);if(d>=2&&(l.hasNodeCheckFlag($e,256)||l.hasNodeCheckFlag($e,128))&&(pc(ri)&3)!==3){if(or(),E.size){const qi=N3(t,l,$e,E);N[ls(qi)]=!0;const Qo=dr.statements.slice();vg(Qo,[qi]),dr=t.updateBlock(dr,Qo)}A&&(l.hasNodeCheckFlag($e,256)?UI(dr,b4):l.hasNodeCheckFlag($e,128)&&UI(dr,v4))}return E=At,A=hn,dr}function cn(){C.assert(R);const $e=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),At=t.createVariableStatement(void 0,[$e]);return cu(At),t_(At,2097152),At}function gn($e){if(Qw($e.parameters))return Gl($e.parameters,K,e);const At=[];for(const dr of $e.parameters){if(dr.initializer||dr.dotDotDotToken){if($e.kind===220){const ai=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));At.push(ai)}break}const ri=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(dr.name,8));At.push(ri)}const hn=t.createNodeArray(At);return bt(hn,$e.parameters),hn}function Kn($e,At){const hn=Qw($e.parameters)?void 0:Gl($e.parameters,K,e);i();const ri=bl($e,$o).type,ai=d<2?en(ri):void 0,qi=$e.kind===220,Qo=R,Pn=l.hasNodeCheckFlag($e,512)&&!R;Pn&&(R=t.createUniqueName("arguments"));let Uo;if(hn)if(qi){const it=[];C.assert(At.length<=$e.parameters.length);for(let dt=0;dt<$e.parameters.length;dt++){C.assert(dt=2&&(l.hasNodeCheckFlag($e,256)||l.hasNodeCheckFlag($e,128));if(dt&&(or(),E.size)){const He=N3(t,l,$e,E);N[ls(He)]=!0,vg(it,[He])}Pn&&vg(it,[cn()]);const Lt=t.createBlock(it,!0);bt(Lt,$e.body),dt&&A&&(l.hasNodeCheckFlag($e,256)?UI(Lt,b4):l.hasNodeCheckFlag($e,128)&&UI(Lt,v4)),Fe=Lt}return y=ot,qi||(E=Ft,A=le,R=Qo),Fe}function gt($e,At){return ta($e)?t.updateBlock($e,Xn($e.statements,fe,ji,At)):t.converters.convertToFunctionBlock(C.checkDefined(st($e,fe,NF)))}function en($e){const At=$e&&hk($e);if(At&&ku(At)){const hn=l.getTypeReferenceSerializationKind(At);if(hn===1||hn===0)return At}}function or(){(_&1)===0&&(_|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function Ni($e,At,hn){if(_&1&&Pr(At)){const dr=(l.hasNodeCheckFlag(At,128)?128:0)|(l.hasNodeCheckFlag(At,256)?256:0);if(dr!==h){const ri=h;h=dr,k($e,At,hn),h=ri;return}}else if(_&&N[ls(At)]){const dr=h;h=0,k($e,At,hn),h=dr;return}k($e,At,hn)}function so($e,At){return At=F($e,At),$e===1&&h?zt(At):At}function zt($e){switch($e.kind){case 212:return Zr($e);case 213:return xi($e);case 214:return Pi($e)}return $e}function Zr($e){return $e.expression.kind===108?bt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),$e.name),$e):$e}function xi($e){return $e.expression.kind===108?Mi($e.argumentExpression,$e):$e}function Pi($e){const At=$e.expression;if(gp(At)){const hn=qr(At)?Zr(At):xi(At);return t.createCallExpression(t.createPropertyAccessExpression(hn,"call"),void 0,[t.createThis(),...$e.arguments])}return $e}function Pr($e){const At=$e.kind;return At===264||At===177||At===175||At===178||At===179}function Mi($e,At){return h&256?bt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),"value"),At):bt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[$e]),At)}}function N3(e,t,r,i){const o=t.hasNodeCheckFlag(r,256),s=[];return i.forEach((l,u)=>{const d=Vi(u),_=[];_.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Cr(e.createPropertyAccessExpression(Cr(e.createSuper(),8),d),8)))),o&&_.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(Cr(e.createPropertyAccessExpression(Cr(e.createSuper(),8),d),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(_)))}),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))}function nse(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Va(u),_=e.onEmitNode;e.onEmitNode=Qo;const h=e.onSubstituteNode;e.onSubstituteNode=Ia;let y=!1,E=0,A,R,N=0,P=0,k,F,W,G;const j=[];return yh(e,oe);function J(ne,Fe){return P!==(P&~ne|Fe)}function Z(ne,Fe){const it=P;return P=(P&~ne|Fe)&3,it}function q(ne){P=ne}function ve(ne){F=Vn(F,t.createVariableDeclaration(ne))}function oe(ne){if(ne.isDeclarationFile)return ne;k=ne;const Fe=lt(ne);return Cg(Fe,e.readEmitHelpers()),k=void 0,F=void 0,Fe}function K(ne){return De(ne,!1)}function fe(ne){return De(ne,!0)}function ue(ne){if(ne.kind!==134)return ne}function me(ne,Fe,it,dt){if(J(it,dt)){const Lt=Z(it,dt),He=ne(Fe);return q(Lt),He}return ne(Fe)}function be(ne){return On(ne,K,e)}function De(ne,Fe){if((ne.transformFlags&128)===0)return ne;switch(ne.kind){case 224:return Y(ne);case 230:return Ne(ne);case 254:return Xe(ne);case 257:return Ee(ne);case 211:return Te(ne);case 227:return Ce(ne,Fe);case 357:return ye(ne,Fe);case 300:return Ue(ne);case 244:return Ge(ne);case 261:return We(ne);case 247:case 248:case 250:return me(be,ne,0,2);case 251:return gn(ne,void 0);case 249:return me(Wt,ne,0,2);case 223:return cn(ne);case 177:return me(Zr,ne,2,1);case 175:return me(Pr,ne,2,1);case 178:return me(xi,ne,2,1);case 179:return me(Pi,ne,2,1);case 263:return me(Mi,ne,2,1);case 219:return me(At,ne,2,1);case 220:return me($e,ne,2,0);case 170:return so(ne);case 245:return Me(ne);case 218:return Be(ne,Fe);case 216:return ce(ne);case 212:return W&&qr(ne)&&ne.expression.kind===108&&W.add(ne.name.escapedText),On(ne,K,e);case 213:return W&&ne.expression.kind===108&&(G=!0),On(ne,K,e);case 264:case 232:return me(be,ne,2,1);default:return On(ne,K,e)}}function Y(ne){return A&2&&A&1?jr(bt(t.createYieldExpression(void 0,r().createAwaitHelper(st(ne.expression,K,St))),ne),ne):On(ne,K,e)}function Ne(ne){if(A&2&&A&1){if(ne.asteriskToken){const Fe=st(C.checkDefined(ne.expression),K,St);return jr(bt(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ne,ne.asteriskToken,bt(r().createAsyncDelegatorHelper(bt(r().createAsyncValuesHelper(Fe),Fe)),Fe)))),ne),ne)}return jr(bt(t.createYieldExpression(void 0,en(ne.expression?st(ne.expression,K,St):t.createVoidZero())),ne),ne)}return On(ne,K,e)}function Xe(ne){return A&2&&A&1?t.updateReturnStatement(ne,en(ne.expression?st(ne.expression,K,St):t.createVoidZero())):On(ne,K,e)}function Ee(ne){if(A&2){const Fe=GG(ne);return Fe.kind===251&&Fe.awaitModifier?gn(Fe,ne):t.restoreEnclosingLabel(st(Fe,K,ji,t.liftToBlock),ne)}return On(ne,K,e)}function re(ne){let Fe;const it=[];for(const dt of ne)if(dt.kind===306){Fe&&(it.push(t.createObjectLiteralExpression(Fe)),Fe=void 0);const Lt=dt.expression;it.push(st(Lt,K,St))}else Fe=Vn(Fe,dt.kind===304?t.createPropertyAssignment(dt.name,st(dt.initializer,K,St)):st(dt,K,ay));return Fe&&it.push(t.createObjectLiteralExpression(Fe)),it}function Te(ne){if(ne.transformFlags&65536){const Fe=re(ne.properties);Fe.length&&Fe[0].kind!==211&&Fe.unshift(t.createObjectLiteralExpression());let it=Fe[0];if(Fe.length>1){for(let dt=1;dt=2&&(l.hasNodeCheckFlag(ne,256)||l.hasNodeCheckFlag(ne,128));if(It){qi();const nt=N3(t,l,ne,W);j[ls(nt)]=!0,vg(Lt,[nt])}Lt.push(Rt);const Ot=t.updateBlock(ne.body,Lt);return It&&G&&(l.hasNodeCheckFlag(ne,256)?UI(Ot,b4):l.hasNodeCheckFlag(ne,128)&&UI(Ot,v4)),W=it,G=dt,Ot}function ri(ne){i();let Fe=0;const it=[],dt=st(ne.body,K,NF)??t.createBlock([]);ta(dt)&&(Fe=t.copyPrologue(dt.statements,it,!1,K)),Xr(it,ai(void 0,ne));const Lt=o();if(Fe>0||vt(it)||vt(Lt)){const He=t.converters.convertToFunctionBlock(dt,!0);return vg(it,Lt),Xr(it,He.statements.slice(Fe)),t.updateBlock(He,bt(t.createNodeArray(it),He.statements))}return dt}function ai(ne,Fe){let it=!1;for(const dt of Fe.parameters)if(it){if(Zo(dt.name)){if(dt.name.elements.length>0){const Lt=ZS(dt,K,e,0,t.getGeneratedNameForNode(dt));if(vt(Lt)){const He=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,He);Cr(Rt,2097152),ne=Vn(ne,Rt)}}else if(dt.initializer){const Lt=t.getGeneratedNameForNode(dt),He=st(dt.initializer,K,St),Rt=t.createAssignment(Lt,He),It=t.createExpressionStatement(Rt);Cr(It,2097152),ne=Vn(ne,It)}}else if(dt.initializer){const Lt=t.cloneNode(dt.name);bt(Lt,dt.name),Cr(Lt,96);const He=st(dt.initializer,K,St);t_(He,3168);const Rt=t.createAssignment(Lt,He);bt(Rt,dt),Cr(Rt,3072);const It=t.createBlock([t.createExpressionStatement(Rt)]);bt(It,dt),Cr(It,3905);const Ot=t.createTypeCheck(t.cloneNode(dt.name),"undefined"),nt=t.createIfStatement(Ot,It);cu(nt),bt(nt,dt),Cr(nt,2101056),ne=Vn(ne,nt)}}else if(dt.transformFlags&65536){it=!0;const Lt=ZS(dt,K,e,1,t.getGeneratedNameForNode(dt),!1,!0);if(vt(Lt)){const He=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,He);Cr(Rt,2097152),ne=Vn(ne,Rt)}}return ne}function qi(){(E&1)===0&&(E|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function Qo(ne,Fe,it){if(E&1&&le(Fe)){const dt=(l.hasNodeCheckFlag(Fe,128)?128:0)|(l.hasNodeCheckFlag(Fe,256)?256:0);if(dt!==N){const Lt=N;N=dt,_(ne,Fe,it),N=Lt;return}}else if(E&&j[ls(Fe)]){const dt=N;N=0,_(ne,Fe,it),N=dt;return}_(ne,Fe,it)}function Ia(ne,Fe){return Fe=h(ne,Fe),ne===1&&N?Pn(Fe):Fe}function Pn(ne){switch(ne.kind){case 212:return Uo(ne);case 213:return ot(ne);case 214:return Ft(ne)}return ne}function Uo(ne){return ne.expression.kind===108?bt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ne.name),ne):ne}function ot(ne){return ne.expression.kind===108?_t(ne.argumentExpression,ne):ne}function Ft(ne){const Fe=ne.expression;if(gp(Fe)){const it=qr(Fe)?Uo(Fe):ot(Fe);return t.createCallExpression(t.createPropertyAccessExpression(it,"call"),void 0,[t.createThis(),...ne.arguments])}return ne}function le(ne){const Fe=ne.kind;return Fe===264||Fe===177||Fe===175||Fe===178||Fe===179}function _t(ne,Fe){return N&256?bt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),"value"),Fe):bt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),Fe)}}function rse(e){const t=e.factory;return yh(e,r);function r(s){return s.isDeclarationFile?s:On(s,i,e)}function i(s){return(s.transformFlags&64)===0?s:s.kind===300?o(s):On(s,i,e)}function o(s){return s.variableDeclaration?On(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),st(s.block,i,ta))}}function ise(e){const{factory:t,hoistVariableDeclaration:r}=e;return yh(e,i);function i(R){return R.isDeclarationFile?R:On(R,o,e)}function o(R){if((R.transformFlags&32)===0)return R;switch(R.kind){case 214:{const N=d(R,!1);return C.assertNotNode(N,tx),N}case 212:case 213:if(iu(R)){const N=h(R,!1,!1);return C.assertNotNode(N,tx),N}return On(R,o,e);case 227:return R.operatorToken.kind===61?E(R):On(R,o,e);case 221:return A(R);default:return On(R,o,e)}}function s(R){C.assertNotNode(R,AF);const N=[R];for(;!R.questionDotToken&&!$T(R);)R=ma(Vm(R.expression),iu),C.assertNotNode(R,AF),N.unshift(R);return{expression:R.expression,chain:N}}function l(R,N,P){const k=_(R.expression,N,P);return tx(k)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,k.expression),k.thisArg):t.updateParenthesizedExpression(R,k)}function u(R,N,P){if(iu(R))return h(R,N,P);let k=st(R.expression,o,St);C.assertNotNode(k,tx);let F;return N&&(QS(k)?F=k:(F=t.createTempVariable(r),k=t.createAssignment(F,k))),k=R.kind===212?t.updatePropertyAccessExpression(R,k,st(R.name,o,Je)):t.updateElementAccessExpression(R,k,st(R.argumentExpression,o,St)),F?t.createSyntheticReferenceExpression(k,F):k}function d(R,N){if(iu(R))return h(R,N,!1);if(zu(R.expression)&&iu(us(R.expression))){const P=l(R.expression,!0,!1),k=Xn(R.arguments,o,St);return tx(P)?bt(t.createFunctionCallCall(P.expression,P.thisArg,k),R):t.updateCallExpression(R,P,void 0,k)}return On(R,o,e)}function _(R,N,P){switch(R.kind){case 218:return l(R,N,P);case 212:case 213:return u(R,N,P);case 214:return d(R,N);default:return st(R,o,St)}}function h(R,N,P){const{expression:k,chain:F}=s(R),W=_(Vm(k),QE(F[0]),!1);let G=tx(W)?W.thisArg:void 0,j=tx(W)?W.expression:W,J=t.restoreOuterExpressions(k,j,8);QS(j)||(j=t.createTempVariable(r),J=t.createAssignment(j,J));let Z=j,q;for(let oe=0;oeDe&&Xr(Y,Xn(me.statements,y,ji,De,Ne-De));break}Ne++}C.assert(NeP(Y,De))))],De,be===2)}return On(me,y,e)}function F(me,be,De,Y,Ne){const Xe=[];for(let Te=be;Tet&&(t=i)}return t}function nJe(e){let t=0;for(const r of e){const i=uH(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}function cse(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return yh(e,y);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;const ce=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=ce,s.filenameDeclaration.name}function u(ce){return i.jsx===5?"jsxDEV":ce?"jsxs":"jsx"}function d(ce){const Ce=u(ce);return h(Ce)}function _(){return h("Fragment")}function h(ce){var Ce,ye;const Ue=ce==="createElement"?s.importSpecifier:K6(s.importSpecifier,i),Ge=(ye=(Ce=s.utilizedImplicitRuntimeImports)==null?void 0:Ce.get(Ue))==null?void 0:ye.get(ce);if(Ge)return Ge.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let We=s.utilizedImplicitRuntimeImports.get(Ue);We||(We=new Map,s.utilizedImplicitRuntimeImports.set(Ue,We));const at=t.createUniqueName(`_${ce}`,112),Wt=t.createImportSpecifier(!1,t.createIdentifier(ce),at);return Die(at,Wt),We.set(ce,Wt),at}function y(ce){if(ce.isDeclarationFile)return ce;o=ce,s={},s.importSpecifier=tw(i,ce);let Ce=On(ce,E,e);Cg(Ce,e.readEmitHelpers());let ye=Ce.statements;if(s.filenameDeclaration&&(ye=i1(ye.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[Ue,Ge]of Do(s.utilizedImplicitRuntimeImports.entries()))if(Vc(ce)){const We=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(Do(Ge.values()))),t.createStringLiteral(Ue),void 0);KT(We,!1),ye=i1(ye.slice(),We)}else if(wp(ce)){const We=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Do(Ge.values(),at=>t.createBindingElement(void 0,at.propertyName,at.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Ue)]))],2));KT(We,!1),ye=i1(ye.slice(),We)}}return ye!==Ce.statements&&(Ce=t.updateSourceFile(Ce,ye)),s=void 0,Ce}function E(ce){return ce.transformFlags&2?A(ce):ce}function A(ce){switch(ce.kind){case 285:return F(ce,!1);case 286:return W(ce,!1);case 289:return G(ce,!1);case 295:return lt(ce);default:return On(ce,E,e)}}function R(ce){switch(ce.kind){case 12:return Ne(ce);case 295:return lt(ce);case 285:return F(ce,!0);case 286:return W(ce,!0);case 289:return G(ce,!0);default:return C.failBadSyntaxKind(ce)}}function N(ce){return ce.properties.some(Ce=>Pc(Ce)&&(Je(Ce.name)&&Kr(Ce.name)==="__proto__"||Oa(Ce.name)&&Ce.name.text==="__proto__"))}function P(ce){let Ce=!1;for(const ye of ce.attributes.properties)if(nx(ye)&&(!za(ye.expression)||ye.expression.properties.some(Mg)))Ce=!0;else if(Ce&&s_(ye)&&Je(ye.name)&&ye.name.escapedText==="key")return!0;return!1}function k(ce){return s.importSpecifier===void 0||P(ce)}function F(ce,Ce){return(k(ce.openingElement)?ve:Z)(ce.openingElement,ce.children,Ce,ce)}function W(ce,Ce){return(k(ce)?ve:Z)(ce,void 0,Ce,ce)}function G(ce,Ce){return(s.importSpecifier===void 0?K:oe)(ce.openingFragment,ce.children,Ce,ce)}function j(ce){const Ce=J(ce);return Ce&&t.createObjectLiteralExpression([Ce])}function J(ce){const Ce=dD(ce);if(Qe(Ce)===1&&!Ce[0].dotDotDotToken){const Ue=R(Ce[0]);return Ue&&t.createPropertyAssignment("children",Ue)}const ye=Ei(ce,R);return Qe(ye)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(ye)):void 0}function Z(ce,Ce,ye,Ue){const Ge=Me(ce),We=Ce&&Ce.length?J(Ce):void 0,at=mn(ce.attributes.properties,gn=>!!gn.name&&Je(gn.name)&&gn.name.escapedText==="key"),Wt=at?Un(ce.attributes.properties,gn=>gn!==at):ce.attributes.properties,cn=Qe(Wt)?ue(Wt,We):t.createObjectLiteralExpression(We?[We]:ie);return q(Ge,cn,at,Ce||ie,ye,Ue)}function q(ce,Ce,ye,Ue,Ge,We){var at;const Wt=dD(Ue),cn=Qe(Wt)>1||!!((at=Wt[0])!=null&&at.dotDotDotToken),gn=[ce,Ce];if(ye&&gn.push(Y(ye.initializer)),i.jsx===5){const gt=bl(o);if(gt&&Xi(gt)){ye===void 0&&gn.push(t.createVoidZero()),gn.push(cn?t.createTrue():t.createFalse());const en=ca(gt,We.pos);gn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(en.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(en.character+1))])),gn.push(t.createThis())}}const Kn=bt(t.createCallExpression(d(cn),void 0,gn),We);return Ge&&cu(Kn),Kn}function ve(ce,Ce,ye,Ue){const Ge=Me(ce),We=ce.attributes.properties,at=Qe(We)?ue(We):t.createNull(),Wt=s.importSpecifier===void 0?Jj(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,ce):h("createElement"),cn=loe(t,Wt,Ge,at,Ei(Ce,R),Ue);return ye&&cu(cn),cn}function oe(ce,Ce,ye,Ue){let Ge;if(Ce&&Ce.length){const We=j(Ce);We&&(Ge=We)}return q(_(),Ge||t.createObjectLiteralExpression([]),void 0,Ce,ye,Ue)}function K(ce,Ce,ye,Ue){const Ge=coe(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Ei(Ce,R),ce,Ue);return ye&&cu(Ge),Ge}function fe(ce){return za(ce.expression)&&!N(ce.expression)?to(ce.expression.properties,Ce=>C.checkDefined(st(Ce,E,ay))):t.createSpreadAssignment(C.checkDefined(st(ce.expression,E,St)))}function ue(ce,Ce){const ye=Va(i);return ye&&ye>=5?t.createObjectLiteralExpression(me(ce,Ce)):be(ce,Ce)}function me(ce,Ce){const ye=Yo(v2(ce,nx,(Ue,Ge)=>Yo(Yt(Ue,We=>Ge?fe(We):De(We)))));return Ce&&ye.push(Ce),ye}function be(ce,Ce){const ye=[];let Ue=[];for(const We of ce){if(nx(We)){if(za(We.expression)&&!N(We.expression)){for(const at of We.expression.properties){if(Mg(at)){Ge(),ye.push(C.checkDefined(st(at.expression,E,St)));continue}Ue.push(C.checkDefined(st(at,E)))}continue}Ge(),ye.push(C.checkDefined(st(We.expression,E,St)));continue}Ue.push(De(We))}return Ce&&Ue.push(Ce),Ge(),ye.length&&!za(ye[0])&&ye.unshift(t.createObjectLiteralExpression()),dg(ye)||r().createAssignHelper(ye);function Ge(){Ue.length&&(ye.push(t.createObjectLiteralExpression(Ue)),Ue=[])}}function De(ce){const Ce=Be(ce),ye=Y(ce.initializer);return t.createPropertyAssignment(Ce,ye)}function Y(ce){if(ce===void 0)return t.createTrue();if(ce.kind===11){const Ce=ce.singleQuote!==void 0?ce.singleQuote:!u6(ce,o),ye=t.createStringLiteral(Te(ce.text)||ce.text,Ce);return bt(ye,ce)}return ce.kind===295?ce.expression===void 0?t.createTrue():C.checkDefined(st(ce.expression,E,St)):a_(ce)?F(ce,!1):C1(ce)?W(ce,!1):n0(ce)?G(ce,!1):C.failBadSyntaxKind(ce)}function Ne(ce){const Ce=Xe(ce.text);return Ce===void 0?void 0:t.createStringLiteral(Ce)}function Xe(ce){let Ce,ye=0,Ue=-1;for(let Ge=0;Ge{if(We)return wN(parseInt(We,10));if(at)return wN(parseInt(at,16));{const cn=rJe.get(Wt);return cn?wN(cn):Ce}})}function Te(ce){const Ce=re(ce);return Ce===ce?void 0:Ce}function Me(ce){if(ce.kind===285)return Me(ce.openingElement);{const Ce=ce.tagName;return Je(Ce)&&uD(Ce.escapedText)?t.createStringLiteral(Kr(Ce)):_h(Ce)?t.createStringLiteral(Kr(Ce.namespace)+":"+Kr(Ce.name)):Rw(t,Ce)}}function Be(ce){const Ce=ce.name;if(Je(Ce)){const ye=Kr(Ce);return/^[A-Z_]\w*$/i.test(ye)?Ce:t.createStringLiteral(ye)}return t.createStringLiteral(Kr(Ce.namespace)+":"+Kr(Ce.name))}function lt(ce){const Ce=st(ce.expression,E,St);return ce.dotDotDotToken?t.createSpreadElement(Ce):Ce}}var rJe=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 dse(e){const{factory:t,hoistVariableDeclaration:r}=e;return yh(e,i);function i(d){return d.isDeclarationFile?d:On(d,o,e)}function o(d){return(d.transformFlags&512)===0?d:d.kind===227?s(d):On(d,o,e)}function s(d){switch(d.operatorToken.kind){case 68:return l(d);case 43:return u(d);default:return On(d,o,e)}}function l(d){let _,h;const y=st(d.left,o,St),E=st(d.right,o,St);if(zs(y)){const A=t.createTempVariable(r),R=t.createTempVariable(r);_=bt(t.createElementAccessExpression(bt(t.createAssignment(A,y.expression),y.expression),bt(t.createAssignment(R,y.argumentExpression),y.argumentExpression)),y),h=bt(t.createElementAccessExpression(A,R),y)}else if(qr(y)){const A=t.createTempVariable(r);_=bt(t.createPropertyAccessExpression(bt(t.createAssignment(A,y.expression),y.expression),y.name),y),h=bt(t.createPropertyAccessExpression(A,y.name),y)}else _=y,h=y;return bt(t.createAssignment(_,bt(t.createGlobalMethodCall("Math","pow",[h,E]),d)),d)}function u(d){const _=st(d.left,o,St),h=st(d.right,o,St);return bt(t.createGlobalMethodCall("Math","pow",[_,h]),d)}}function LAe(e,t){return{kind:e,expression:t}}function use(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=e.getEmitResolver(),_=e.onSubstituteNode,h=e.onEmitNode;e.onEmitNode=cd,e.onSubstituteNode=Zf;let y,E,A,R;function N(ae){R=Vn(R,t.createVariableDeclaration(ae))}let P,k=0;return yh(e,F);function F(ae){if(ae.isDeclarationFile)return ae;y=ae,E=ae.text;const pt=ue(ae);return Cg(pt,e.readEmitHelpers()),y=void 0,E=void 0,R=void 0,A=0,pt}function W(ae,pt){const tn=A;return A=(A&~ae|pt)&32767,tn}function G(ae,pt,tn){A=(A&~pt|tn)&-32768|ae}function j(ae){return(A&8192)!==0&&ae.kind===254&&!ae.expression}function J(ae){return ae.transformFlags&4194304&&(of(ae)||ZT(ae)||qie(ae)||YM(ae)||$M(ae)||PD(ae)||QM(ae)||R1(ae)||KS(ae)||Fb(ae)||vb(ae,!1)||ta(ae))}function Z(ae){return(ae.transformFlags&1024)!==0||P!==void 0||A&8192&&J(ae)||vb(ae,!1)&&lo(ae)||(jm(ae)&1)!==0}function q(ae){return Z(ae)?fe(ae,!1):ae}function ve(ae){return Z(ae)?fe(ae,!0):ae}function oe(ae){if(Z(ae)){const pt=bl(ae);if(Mo(pt)&&Fc(pt)){const tn=W(32670,16449),an=fe(ae,!1);return G(tn,229376,0),an}return fe(ae,!1)}return ae}function K(ae){return ae.kind===108?sf(ae,!0):q(ae)}function fe(ae,pt){switch(ae.kind){case 126:return;case 264:return Me(ae);case 232:return Be(ae);case 170:return Ia(ae);case 263:return Jt(ae);case 220:return Ot(ae);case 219:return nt(ae);case 261:return tr(ae);case 80:return re(ae);case 262:return Le(ae);case 256:return me(ae);case 270:return be(ae);case 242:return Nt(ae);case 253:case 252:return Te(ae);case 257:return Mt(ae);case 247:case 248:return In(ae,void 0);case 249:return yn(ae,void 0);case 250:return En(ae,void 0);case 251:return xn(ae,void 0);case 245:return ge(ae);case 211:return la(ae);case 300:return no(ae);case 305:return el(ae);case 168:return Ac(ae);case 210:return Js(ae);case 214:return wl(ae);case 215:return af(ae);case 218:return B(ae,pt);case 227:return Ie(ae,pt);case 357:return te(ae,pt);case 15:case 16:case 17:case 18:return ts(ae);case 11:return ja(ae);case 9:return kc(ae);case 216:return rl(ae);case 229:return Ol(ae);case 230:return _c(ae);case 231:return es(ae);case 108:return sf(ae,!1);case 110:return Xe(ae);case 237:return Td(ae);case 175:return Ps(ae);case 178:case 179:return Ca(ae);case 244:return Kt(ae);case 254:return Ne(ae);case 223:return Ee(ae);default:return On(ae,q,e)}}function ue(ae){const pt=W(8064,64),tn=[],an=[];i();const Wn=t.copyPrologue(ae.statements,tn,!1,q);return Xr(an,Xn(ae.statements,q,ji,Wn)),R&&an.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(tn,s()),ne(tn,ae),G(pt,0,0),t.updateSourceFile(ae,bt(t.createNodeArray(ao(tn,an)),ae.statements))}function me(ae){if(P!==void 0){const pt=P.allowedNonLabeledJumps;P.allowedNonLabeledJumps|=2;const tn=On(ae,q,e);return P.allowedNonLabeledJumps=pt,tn}return On(ae,q,e)}function be(ae){const pt=W(7104,0),tn=On(ae,q,e);return G(pt,0,0),tn}function De(ae){return jr(t.createReturnStatement(Y()),ae)}function Y(){return t.createUniqueName("_this",48)}function Ne(ae){return P?(P.nonLocalJumps|=8,j(ae)&&(ae=De(ae)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),ae.expression?C.checkDefined(st(ae.expression,q,St)):t.createVoidZero())]))):j(ae)?De(ae):On(ae,q,e)}function Xe(ae){return A|=65536,A&2&&!(A&16384)&&(A|=131072),P?A&2?(P.containsLexicalThis=!0,ae):P.thisName||(P.thisName=t.createUniqueName("this")):ae}function Ee(ae){return On(ae,ve,e)}function re(ae){return P&&d.isArgumentsLocalBinding(ae)?P.argumentsName||(P.argumentsName=t.createUniqueName("arguments")):ae.flags&256?jr(bt(t.createIdentifier(Vi(ae.escapedText)),ae),ae):ae}function Te(ae){if(P){const pt=ae.kind===253?2:4;if(!(ae.label&&P.labels&&P.labels.get(Kr(ae.label))||!ae.label&&P.allowedNonLabeledJumps&pt)){let an;const Wn=ae.label;Wn?ae.kind===253?(an=`break-${Wn.escapedText}`,ft(P,!0,Kr(Wn),an)):(an=`continue-${Wn.escapedText}`,ft(P,!1,Kr(Wn),an)):ae.kind===253?(P.nonLocalJumps|=2,an="break"):(P.nonLocalJumps|=4,an="continue");let ar=t.createStringLiteral(an);if(P.loopOutParameters.length){const ti=P.loopOutParameters;let Si;for(let Yi=0;YiJe(pt.name)&&!pt.initializer)}function at(ae){if(a1(ae))return!0;if(!(ae.transformFlags&134217728))return!1;switch(ae.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{const pt=ae;return va(pt.name)?!!Jo(pt.name,at):!1}}return!!Jo(ae,at)}function Wt(ae,pt,tn,an){const Wn=!!tn&&Kl(tn.expression).kind!==106;if(!ae)return Ge(pt,Wn);const ar=[],ti=[];o();const Si=t.copyStandardPrologue(ae.body.statements,ar,0);(an||at(ae.body))&&(A|=8192),Xr(ti,Xn(ae.body.statements,q,ji,Si));const Yi=Wn||A&8192;Uo(ar,ae),_t(ar,ae,an),it(ar,ae),Yi?Fe(ar,ae,qi()):ne(ar,ae),t.mergeLexicalEnvironment(ar,s()),Yi&&!ai(ae.body)&&ti.push(t.createReturnStatement(Y()));const z=t.createBlock(bt(t.createNodeArray([...ar,...ti]),ae.body.statements),!0);return bt(z,ae.body),ri(z,ae.body,an)}function cn(ae){return ml(ae)&&Kr(ae)==="_this"}function gn(ae){return ml(ae)&&Kr(ae)==="_super"}function Kn(ae){return cc(ae)&&ae.declarationList.declarations.length===1&>(ae.declarationList.declarations[0])}function gt(ae){return yi(ae)&&cn(ae.name)&&!!ae.initializer}function en(ae){return od(ae,!0)&&cn(ae.left)}function or(ae){return ea(ae)&&qr(ae.expression)&&gn(ae.expression.expression)&&Je(ae.expression.name)&&(Kr(ae.expression.name)==="call"||Kr(ae.expression.name)==="apply")&&ae.arguments.length>=1&&ae.arguments[0].kind===110}function Ni(ae){return Nr(ae)&&ae.operatorToken.kind===57&&ae.right.kind===110&&or(ae.left)}function so(ae){return Nr(ae)&&ae.operatorToken.kind===56&&Nr(ae.left)&&ae.left.operatorToken.kind===38&&gn(ae.left.left)&&ae.left.right.kind===106&&or(ae.right)&&Kr(ae.right.expression.name)==="apply"}function zt(ae){return Nr(ae)&&ae.operatorToken.kind===57&&ae.right.kind===110&&so(ae.left)}function Zr(ae){return en(ae)&&Ni(ae.right)}function xi(ae){return en(ae)&&zt(ae.right)}function Pi(ae){return or(ae)||Ni(ae)||Zr(ae)||so(ae)||zt(ae)||xi(ae)}function Pr(ae){for(let pt=0;pt0;an--){const Wn=ae.statements[an];if(of(Wn)&&Wn.expression&&cn(Wn.expression)){const ar=ae.statements[an-1];let ti;if(ad(ar)&&Zr(Kl(ar.expression)))ti=ar.expression;else if(tn&&Kn(ar)){const z=ar.declarationList.declarations[0];Pi(Kl(z.initializer))&&(ti=t.createAssignment(Y(),z.initializer))}if(!ti)break;const Si=t.createReturnStatement(ti);jr(Si,ar),bt(Si,ar);const Yi=t.createNodeArray([...ae.statements.slice(0,an-1),Si,...ae.statements.slice(an+1)]);return bt(Yi,ae.statements),t.updateBlock(ae,Yi)}}return ae}function $e(ae){if(Kn(ae)){if(ae.declarationList.declarations[0].initializer.kind===110)return}else if(en(ae))return t.createPartiallyEmittedExpression(ae.right,ae);switch(ae.kind){case 220:case 219:case 263:case 177:case 176:return ae;case 178:case 179:case 175:case 173:{const pt=ae;return va(pt.name)?t.replacePropertyName(pt,On(pt.name,$e,void 0)):ae}}return On(ae,$e,void 0)}function At(ae,pt){if(pt.transformFlags&16384||A&65536||A&131072)return ae;for(const tn of pt.statements)if(tn.transformFlags&134217728&&!E3(tn))return ae;return t.updateBlock(ae,Xn(ae.statements,$e,ji))}function hn(ae){if(or(ae)&&ae.arguments.length===2&&Je(ae.arguments[1])&&Kr(ae.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Yl(),t.createNull()),ae);switch(ae.kind){case 220:case 219:case 263:case 177:case 176:return ae;case 178:case 179:case 175:case 173:{const pt=ae;return va(pt.name)?t.replacePropertyName(pt,On(pt.name,hn,void 0)):ae}}return On(ae,hn,void 0)}function dr(ae){return t.updateBlock(ae,Xn(ae.statements,hn,ji))}function ri(ae,pt,tn){const an=ae;return ae=Pr(ae),ae=Mi(ae,pt),ae!==an&&(ae=At(ae,pt)),tn&&(ae=dr(ae)),ae}function ai(ae){if(ae.kind===254)return!0;if(ae.kind===246){const pt=ae;if(pt.elseStatement)return ai(pt.thenStatement)&&ai(pt.elseStatement)}else if(ae.kind===242){const pt=tl(ae.statements);if(pt&&ai(pt))return!0}return!1}function qi(){return Cr(t.createThis(),8)}function Qo(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Yl(),t.createNull()),t.createFunctionApplyCall(Yl(),qi(),t.createIdentifier("arguments"))),qi())}function Ia(ae){if(!ae.dotDotDotToken)return Zo(ae.name)?jr(bt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ae),void 0,void 0,void 0),ae),ae):ae.initializer?jr(bt(t.createParameterDeclaration(void 0,void 0,ae.name,void 0,void 0,void 0),ae),ae):ae}function Pn(ae){return ae.initializer!==void 0||Zo(ae.name)}function Uo(ae,pt){if(!vt(pt.parameters,Pn))return!1;let tn=!1;for(const an of pt.parameters){const{name:Wn,initializer:ar,dotDotDotToken:ti}=an;ti||(Zo(Wn)?tn=ot(ae,an,Wn,ar)||tn:ar&&(Ft(ae,an,Wn,ar),tn=!0))}return tn}function ot(ae,pt,tn,an){return tn.elements.length>0?(i1(ae,Cr(t.createVariableStatement(void 0,t.createVariableDeclarationList(ZS(pt,q,e,0,t.getGeneratedNameForNode(pt)))),2097152)),!0):an?(i1(ae,Cr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(pt),C.checkDefined(st(an,q,St)))),2097152)),!0):!1}function Ft(ae,pt,tn,an){an=C.checkDefined(st(an,q,St));const Wn=t.createIfStatement(t.createTypeCheck(t.cloneNode(tn),"undefined"),Cr(bt(t.createBlock([t.createExpressionStatement(Cr(bt(t.createAssignment(Cr(ps(bt(t.cloneNode(tn),tn),tn.parent),96),Cr(an,96|Za(an)|3072)),pt),3072))]),pt),3905));cu(Wn),bt(Wn,pt),Cr(Wn,2101056),i1(ae,Wn)}function le(ae,pt){return!!(ae&&ae.dotDotDotToken&&!pt)}function _t(ae,pt,tn){const an=[],Wn=tl(pt.parameters);if(!le(Wn,tn))return!1;const ar=Wn.name.kind===80?ps(bt(t.cloneNode(Wn.name),Wn.name),Wn.name.parent):t.createTempVariable(void 0);Cr(ar,96);const ti=Wn.name.kind===80?t.cloneNode(Wn.name):ar,Si=pt.parameters.length-1,Yi=t.createLoopVariable();an.push(Cr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ar,void 0,void 0,t.createArrayLiteralExpression([]))])),Wn),2097152));const z=t.createForStatement(bt(t.createVariableDeclarationList([t.createVariableDeclaration(Yi,void 0,void 0,t.createNumericLiteral(Si))]),Wn),bt(t.createLessThan(Yi,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Wn),bt(t.createPostfixIncrement(Yi),Wn),t.createBlock([cu(bt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ti,Si===0?Yi:t.createSubtract(Yi,t.createNumericLiteral(Si))),t.createElementAccessExpression(t.createIdentifier("arguments"),Yi))),Wn))]));return Cr(z,2097152),cu(z),an.push(z),Wn.name.kind!==80&&an.push(Cr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList(ZS(Wn,q,e,0,ti))),Wn),2097152)),EG(ae,an),!0}function ne(ae,pt){return A&131072&&pt.kind!==220?(Fe(ae,pt,t.createThis()),!0):!1}function Fe(ae,pt,tn){Ru();const an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Y(),void 0,void 0,tn)]));Cr(an,2100224),Ha(an,pt),i1(ae,an)}function it(ae,pt){if(A&32768){let tn;switch(pt.kind){case 220:return ae;case 175:case 178:case 179:tn=t.createVoidZero();break;case 177:tn=t.createPropertyAccessExpression(Cr(t.createThis(),8),"constructor");break;case 263:case 219:tn=t.createConditionalExpression(t.createLogicalAnd(Cr(t.createThis(),8),t.createBinaryExpression(Cr(t.createThis(),8),104,t.getLocalName(pt))),void 0,t.createPropertyAccessExpression(Cr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return C.failBadSyntaxKind(pt)}const an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,tn)]));Cr(an,2100224),i1(ae,an)}return ae}function dt(ae,pt){for(const tn of pt.members)switch(tn.kind){case 241:ae.push(Lt(tn));break;case 175:ae.push(He(Ef(pt,tn),tn,pt));break;case 178:case 179:const an=wS(pt.members,tn);tn===an.firstAccessor&&ae.push(Rt(Ef(pt,tn),an,pt));break;case 177:case 176:break;default:C.failBadSyntaxKind(tn,y&&y.fileName);break}}function Lt(ae){return bt(t.createEmptyStatement(),ae)}function He(ae,pt,tn){const an=n_(pt),Wn=dv(pt),ar=Tr(pt,pt,void 0,tn),ti=st(pt.name,q,Tc);C.assert(ti);let Si;if(!Qi(ti)&&Zk(e.getCompilerOptions())){const z=va(ti)?ti.expression:Je(ti)?t.createStringLiteral(Vi(ti.escapedText)):ti;Si=t.createObjectDefinePropertyCall(ae,z,t.createPropertyDescriptor({value:ar,enumerable:!1,writable:!0,configurable:!0}))}else{const z=P1(t,ae,ti,pt.name);Si=t.createAssignment(z,ar)}Cr(ar,3072),Ha(ar,Wn);const Yi=bt(t.createExpressionStatement(Si),pt);return jr(Yi,pt),Nc(Yi,an),Cr(Yi,96),Yi}function Rt(ae,pt,tn){const an=t.createExpressionStatement(It(ae,pt,tn,!1));return Cr(an,3072),Ha(an,dv(pt.firstAccessor)),an}function It(ae,{firstAccessor:pt,getAccessor:tn,setAccessor:an},Wn,ar){const ti=ps(bt(t.cloneNode(ae),ae),ae.parent);Cr(ti,3136),Ha(ti,pt.name);const Si=st(pt.name,q,Tc);if(C.assert(Si),Qi(Si))return C.failBadSyntaxKind(Si,"Encountered unhandled private identifier while transforming ES2015.");const Yi=Xj(t,Si);Cr(Yi,3104),Ha(Yi,pt.name);const z=[];if(tn){const kt=Tr(tn,void 0,void 0,Wn);Ha(kt,dv(tn)),Cr(kt,1024);const Fn=t.createPropertyAssignment("get",kt);Nc(Fn,n_(tn)),z.push(Fn)}if(an){const kt=Tr(an,void 0,void 0,Wn);Ha(kt,dv(an)),Cr(kt,1024);const Fn=t.createPropertyAssignment("set",kt);Nc(Fn,n_(an)),z.push(Fn)}z.push(t.createPropertyAssignment("enumerable",tn||an?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const je=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[ti,Yi,t.createObjectLiteralExpression(z,!0)]);return ar&&cu(je),je}function Ot(ae){ae.transformFlags&16384&&!(A&16384)&&(A|=131072);const pt=P;P=void 0;const tn=W(15232,66),an=t.createFunctionExpression(void 0,void 0,void 0,void 0,Gl(ae.parameters,q,e),void 0,Oe(ae));return bt(an,ae),jr(an,ae),Cr(an,16),G(tn,0,0),P=pt,an}function nt(ae){const pt=Za(ae)&524288?W(32662,69):W(32670,65),tn=P;P=void 0;const an=Gl(ae.parameters,q,e),Wn=Oe(ae),ar=A&32768?t.getLocalName(ae):ae.name;return G(pt,229376,0),P=tn,t.updateFunctionExpression(ae,void 0,ae.asteriskToken,ar,void 0,an,void 0,Wn)}function Jt(ae){const pt=P;P=void 0;const tn=W(32670,65),an=Gl(ae.parameters,q,e),Wn=Oe(ae),ar=A&32768?t.getLocalName(ae):ae.name;return G(tn,229376,0),P=pt,t.updateFunctionDeclaration(ae,Xn(ae.modifiers,q,Aa),ae.asteriskToken,ar,void 0,an,void 0,Wn)}function Tr(ae,pt,tn,an){const Wn=P;P=void 0;const ar=an&&ui(an)&&!ua(ae)?W(32670,73):W(32670,65),ti=Gl(ae.parameters,q,e),Si=Oe(ae);return A&32768&&!tn&&(ae.kind===263||ae.kind===219)&&(tn=t.getGeneratedNameForNode(ae)),G(ar,229376,0),P=Wn,jr(bt(t.createFunctionExpression(void 0,ae.asteriskToken,tn,void 0,ti,void 0,Si),pt),ae)}function Oe(ae){let pt=!1,tn=!1,an,Wn;const ar=[],ti=[],Si=ae.body;let Yi;if(o(),ta(Si)&&(Yi=t.copyStandardPrologue(Si.statements,ar,0,!1),Yi=t.copyCustomPrologue(Si.statements,ti,Yi,q,YF),Yi=t.copyCustomPrologue(Si.statements,ti,Yi,q,$F)),pt=Uo(ti,ae)||pt,pt=_t(ti,ae,!1)||pt,ta(Si))Yi=t.copyCustomPrologue(Si.statements,ti,Yi,q),an=Si.statements,Xr(ti,Xn(Si.statements,q,ji,Yi)),!pt&&Si.multiLine&&(pt=!0);else{C.assert(ae.kind===220),an=w6(Si,-1);const je=ae.equalsGreaterThanToken;!Fs(je)&&!Fs(Si)&&(Jk(je,Si,y)?tn=!0:pt=!0);const kt=st(Si,q,St),Fn=t.createReturnStatement(kt);bt(Fn,Si),Sie(Fn,Si),Cr(Fn,2880),ti.push(Fn),Wn=Si}if(t.mergeLexicalEnvironment(ar,s()),it(ar,ae),ne(ar,ae),vt(ar)&&(pt=!0),ti.unshift(...ar),ta(Si)&&tf(ti,Si.statements))return Si;const z=t.createBlock(bt(t.createNodeArray(ti),an),pt);return bt(z,ae.body),!pt&&tn&&Cr(z,1),Wn&&Tie(z,20,Wn),jr(z,ae.body),z}function Nt(ae,pt){const tn=A&256?W(7104,512):W(6976,128),an=On(ae,q,e);return G(tn,0,0),an}function ge(ae){return On(ae,ve,e)}function B(ae,pt){return On(ae,pt?ve:q,e)}function Ie(ae,pt){return ov(ae)?F1(ae,q,e,0,!pt):ae.operatorToken.kind===28?t.updateBinaryExpression(ae,C.checkDefined(st(ae.left,ve,St)),ae.operatorToken,C.checkDefined(st(ae.right,pt?ve:q,St))):On(ae,q,e)}function te(ae,pt){if(pt)return On(ae,ve,e);let tn;for(let Wn=0;WnYi.name)),Si=an?t.createYieldExpression(t.createToken(42),Cr(ti,8388608)):ti;if(ar)Wn.push(t.createExpressionStatement(Si)),Bs(pt.loopOutParameters,1,0,Wn);else{const Yi=t.createUniqueName("state"),z=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Yi,void 0,void 0,Si)]));if(Wn.push(z),Bs(pt.loopOutParameters,1,0,Wn),pt.nonLocalJumps&8){let je;tn?(tn.nonLocalJumps|=8,je=t.createReturnStatement(Yi)):je=t.createReturnStatement(t.createPropertyAccessExpression(Yi,"value")),Wn.push(t.createIfStatement(t.createTypeCheck(Yi,"object"),je))}if(pt.nonLocalJumps&2&&Wn.push(t.createIfStatement(t.createStrictEquality(Yi,t.createStringLiteral("break")),t.createBreakStatement())),pt.labeledNonLocalBreaks||pt.labeledNonLocalContinues){const je=[];Ht(pt.labeledNonLocalBreaks,!0,Yi,tn,je),Ht(pt.labeledNonLocalContinues,!1,Yi,tn,je),Wn.push(t.createSwitchStatement(Yi,t.createCaseBlock(je)))}}return Wn}function ft(ae,pt,tn,an){pt?(ae.labeledNonLocalBreaks||(ae.labeledNonLocalBreaks=new Map),ae.labeledNonLocalBreaks.set(tn,an)):(ae.labeledNonLocalContinues||(ae.labeledNonLocalContinues=new Map),ae.labeledNonLocalContinues.set(tn,an))}function Ht(ae,pt,tn,an,Wn){ae&&ae.forEach((ar,ti)=>{const Si=[];if(!an||an.labels&&an.labels.get(ti)){const Yi=t.createIdentifier(ti);Si.push(pt?t.createBreakStatement(Yi):t.createContinueStatement(Yi))}else ft(an,pt,ti,ar),Si.push(t.createReturnStatement(tn));Wn.push(t.createCaseClause(t.createStringLiteral(ar),Si))})}function fn(ae,pt,tn,an,Wn){const ar=pt.name;if(Zo(ar))for(const ti of ar.elements)Xc(ti)||fn(ae,ti,tn,an,Wn);else{tn.push(t.createParameterDeclaration(void 0,void 0,ar));const ti=d.hasNodeCheckFlag(pt,65536);if(ti||Wn){const Si=t.createUniqueName("out_"+Kr(ar));let Yi=0;ti&&(Yi|=1),e0(ae)&&(ae.initializer&&d.isBindingCapturedByNode(ae.initializer,pt)&&(Yi|=2),(ae.condition&&d.isBindingCapturedByNode(ae.condition,pt)||ae.incrementor&&d.isBindingCapturedByNode(ae.incrementor,pt))&&(Yi|=1)),an.push({flags:Yi,originalName:ar,outParamName:Si})}}}function ur(ae,pt,tn,an){const Wn=pt.properties,ar=Wn.length;for(let ti=an;ticc(Na)&&!!Qa(Na.declarationList.declarations).initializer,an=P;P=void 0;const Wn=Xn(pt.statements,oe,ji);P=an;const ar=Un(Wn,tn),ti=Un(Wn,Na=>!tn(Na)),Yi=ma(Qa(ar),cc).declarationList.declarations[0],z=Kl(Yi.initializer);let je=ni(z,od);!je&&Nr(z)&&z.operatorToken.kind===28&&(je=ni(z.left,od));const kt=ma(je?Kl(je.right):z,ea),Fn=ma(Kl(kt.expression),qs),yo=Fn.body.statements;let na=0,So=-1;const Vo=[];if(je){const Na=ni(yo[na],ad);Na&&(Vo.push(Na),na++),Vo.push(yo[na]),na++,Vo.push(t.createExpressionStatement(t.createAssignment(je.left,ma(Yi.name,Je))))}for(;!of(rb(yo,So));)So--;Xr(Vo,yo,na,So),So<-1&&Xr(Vo,yo,So+1);const _l=ni(rb(yo,So),of);for(const Na of ti)of(Na)&&_l?.expression&&!Je(_l.expression)?Vo.push(_l):Vo.push(Na);return Xr(Vo,ar,1),t.restoreOuterExpressions(ae.expression,t.restoreOuterExpressions(Yi.initializer,t.restoreOuterExpressions(je&&je.right,t.updateCallExpression(kt,t.restoreOuterExpressions(kt.expression,t.updateFunctionExpression(Fn,void 0,void 0,void 0,void 0,Fn.parameters,void 0,t.updateBlock(Fn.body,Vo))),void 0,kt.arguments))))}function Ld(ae,pt){if(ae.transformFlags&32768||ae.expression.kind===108||gp(Kl(ae.expression))){const{target:tn,thisArg:an}=t.createCallBinding(ae.expression,l);ae.expression.kind===108&&Cr(an,8);let Wn;if(ae.transformFlags&32768?Wn=t.createFunctionApplyCall(C.checkDefined(st(tn,K,St)),ae.expression.kind===108?an:C.checkDefined(st(an,q,St)),lp(ae.arguments,!0,!1,!1)):Wn=bt(t.createFunctionCallCall(C.checkDefined(st(tn,K,St)),ae.expression.kind===108?an:C.checkDefined(st(an,q,St)),Xn(ae.arguments,q,St)),ae),ae.expression.kind===108){const ar=t.createLogicalOr(Wn,qi());Wn=t.createAssignment(Y(),ar)}return jr(Wn,ae)}return a1(ae)&&(A|=131072),On(ae,q,e)}function af(ae){if(vt(ae.arguments,Yf)){const{target:pt,thisArg:tn}=t.createCallBinding(t.createPropertyAccessExpression(ae.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(C.checkDefined(st(pt,q,St)),tn,lp(t.createNodeArray([t.createVoidZero(),...ae.arguments]),!0,!1,!1)),void 0,[])}return On(ae,q,e)}function lp(ae,pt,tn,an){const Wn=ae.length,ar=Yo(v2(ae,ze,(z,je,kt,Fn)=>je(z,tn,an&&Fn===Wn)));if(ar.length===1){const z=ar[0];if(pt&&!u.downlevelIteration||ij(z.expression)||jM(z.expression,"___spreadArray"))return z.expression}const ti=r(),Si=ar[0].kind!==0;let Yi=Si?t.createArrayLiteralExpression():ar[0].expression;for(let z=Si?0:1;z0&&an.push(t.createStringLiteral(tn.literal.text)),pt=t.createCallExpression(t.createPropertyAccessExpression(pt,"concat"),void 0,an)}return bt(pt,ae)}function Yl(){return t.createUniqueName("_super",48)}function sf(ae,pt){const tn=A&8&&!pt?t.createPropertyAccessExpression(jr(Yl(),ae),"prototype"):Yl();return jr(tn,ae),Nc(tn,ae),Ha(tn,ae),tn}function Td(ae){return ae.keywordToken===105&&ae.name.escapedText==="target"?(A|=32768,t.createUniqueName("_newTarget",48)):ae}function cd(ae,pt,tn){if(k&1&&$o(pt)){const an=W(32670,Za(pt)&16?81:65);h(ae,pt,tn),G(an,0,0);return}h(ae,pt,tn)}function qp(){(k&2)===0&&(k|=2,e.enableSubstitution(80))}function Ru(){(k&1)===0&&(k|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263))}function Zf(ae,pt){return pt=_(ae,pt),ae===1?wg(pt):Je(pt)?j_(pt):pt}function j_(ae){if(k&2&&!Yj(ae)){const pt=jo(ae,Je);if(pt&&kg(pt))return bt(t.getGeneratedNameForNode(pt),ae)}return ae}function kg(ae){switch(ae.parent.kind){case 209:case 264:case 267:case 261:return ae.parent.name===ae&&d.isDeclarationWithCollidingName(ae.parent)}return!1}function wg(ae){switch(ae.kind){case 80:return cp(ae);case 110:return Eh(ae)}return ae}function cp(ae){if(k&2&&!Yj(ae)){const pt=d.getReferencedDeclarationWithCollidingName(ae);if(pt&&!(ui(pt)&&$c(pt,ae)))return bt(t.getGeneratedNameForNode(wo(pt)),ae)}return ae}function $c(ae,pt){let tn=jo(pt);if(!tn||tn===ae||tn.end<=ae.pos||tn.pos>=ae.end)return!1;const an=dh(ae);for(;tn;){if(tn===an||tn===ae)return!1;if(Sc(tn)&&tn.parent===ae)return!0;tn=tn.parent}return!1}function Eh(ae){return k&1&&A&16?bt(Y(),ae):ae}function Ef(ae,pt){return ua(pt)?t.getInternalName(ae):t.createPropertyAccessExpression(t.getInternalName(ae),"prototype")}function h_(ae,pt){if(!ae||!pt||vt(ae.parameters))return!1;const tn=Rc(ae.body.statements);if(!tn||!Fs(tn)||tn.kind!==245)return!1;const an=tn.expression;if(!Fs(an)||an.kind!==214)return!1;const Wn=an.expression;if(!Fs(Wn)||Wn.kind!==108)return!1;const ar=dg(an.arguments);if(!ar||!Fs(ar)||ar.kind!==231)return!1;const ti=ar.expression;return Je(ti)&&ti.escapedText==="arguments"}}function iJe(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 pse(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=Va(u),_=e.getEmitResolver(),h=e.onSubstituteNode;e.onSubstituteNode=ge;let y,E,A,R,N,P,k,F,W,G,j=1,J,Z,q,ve,oe=0,K=0,fe,ue,me,be,De,Y,Ne,Xe;return yh(e,Ee);function Ee(ze){if(ze.isDeclarationFile||(ze.transformFlags&2048)===0)return ze;const qt=On(ze,re,e);return Cg(qt,e.readEmitHelpers()),qt}function re(ze){const qt=ze.transformFlags;return R?Te(ze):A?Me(ze):Ls(ze)&&ze.asteriskToken?lt(ze):qt&2048?On(ze,re,e):ze}function Te(ze){switch(ze.kind){case 247:return Qo(ze);case 248:return Pn(ze);case 256:return It(ze);case 257:return nt(ze);default:return Me(ze)}}function Me(ze){switch(ze.kind){case 263:return ce(ze);case 219:return Ce(ze);case 178:case 179:return ye(ze);case 244:return Ge(ze);case 249:return ot(ze);case 250:return le(ze);case 253:return it(ze);case 252:return ne(ze);case 254:return Lt(ze);default:return ze.transformFlags&1048576?Be(ze):ze.transformFlags&4196352?On(ze,re,e):ze}}function Be(ze){switch(ze.kind){case 227:return We(ze);case 357:return gn(ze);case 228:return gt(ze);case 230:return en(ze);case 210:return or(ze);case 211:return so(ze);case 213:return zt(ze);case 214:return Zr(ze);case 215:return xi(ze);default:return On(ze,re,e)}}function lt(ze){switch(ze.kind){case 263:return ce(ze);case 219:return Ce(ze);default:return C.failBadSyntaxKind(ze)}}function ce(ze){if(ze.asteriskToken)ze=jr(bt(t.createFunctionDeclaration(ze.modifiers,void 0,ze.name,void 0,Gl(ze.parameters,re,e),void 0,Ue(ze.body)),ze),ze);else{const qt=A,er=R;A=!1,R=!1,ze=On(ze,re,e),A=qt,R=er}if(A){s(ze);return}else return ze}function Ce(ze){if(ze.asteriskToken)ze=jr(bt(t.createFunctionExpression(void 0,void 0,ze.name,void 0,Gl(ze.parameters,re,e),void 0,Ue(ze.body)),ze),ze);else{const qt=A,er=R;A=!1,R=!1,ze=On(ze,re,e),A=qt,R=er}return ze}function ye(ze){const qt=A,er=R;return A=!1,R=!1,ze=On(ze,re,e),A=qt,R=er,ze}function Ue(ze){const qt=[],er=A,go=R,es=N,ts=P,ja=k,kc=F,rl=W,Ol=G,Yl=j,sf=J,Td=Z,cd=q,qp=ve;A=!0,R=!1,N=void 0,P=void 0,k=void 0,F=void 0,W=void 0,G=void 0,j=1,J=void 0,Z=void 0,q=void 0,ve=t.createTempVariable(void 0),i();const Ru=t.copyPrologue(ze.statements,qt,!1,re);Pi(ze.statements,Ru);const Zf=ft();return vg(qt,o()),qt.push(t.createReturnStatement(Zf)),A=er,R=go,N=es,P=ts,k=ja,F=kc,W=rl,G=Ol,j=Yl,J=sf,Z=Td,q=cd,ve=qp,bt(t.createBlock(qt,ze.multiLine),ze)}function Ge(ze){if(ze.transformFlags&1048576){dr(ze.declarationList);return}else{if(Za(ze)&2097152)return ze;for(const er of ze.declarationList.declarations)l(er.name);const qt=SM(ze.declarationList);return qt.length===0?void 0:Ha(t.createExpressionStatement(t.inlineExpressions(Yt(qt,ri))),ze)}}function We(ze){const qt=lV(ze);switch(qt){case 0:return Wt(ze);case 1:return at(ze);default:return C.assertNever(qt)}}function at(ze){const{left:qt,right:er}=ze;if(Oe(er)){let go;switch(qt.kind){case 212:go=t.updatePropertyAccessExpression(qt,te(C.checkDefined(st(qt.expression,re,ep))),qt.name);break;case 213:go=t.updateElementAccessExpression(qt,te(C.checkDefined(st(qt.expression,re,ep))),te(C.checkDefined(st(qt.argumentExpression,re,St))));break;default:go=C.checkDefined(st(qt,re,St));break}const es=ze.operatorToken.kind;return hP(es)?bt(t.createAssignment(go,bt(t.createBinaryExpression(te(go),_P(es),C.checkDefined(st(er,re,St))),ze)),ze):t.updateBinaryExpression(ze,go,ze.operatorToken,C.checkDefined(st(er,re,St)))}return On(ze,re,e)}function Wt(ze){return Oe(ze.right)?sre(ze.operatorToken.kind)?Kn(ze):ze.operatorToken.kind===28?cn(ze):t.updateBinaryExpression(ze,te(C.checkDefined(st(ze.left,re,St))),ze.operatorToken,C.checkDefined(st(ze.right,re,St))):On(ze,re,e)}function cn(ze){let qt=[];return er(ze.left),er(ze.right),t.inlineExpressions(qt);function er(go){Nr(go)&&go.operatorToken.kind===28?(er(go.left),er(go.right)):(Oe(go)&&qt.length>0&&($(1,[t.createExpressionStatement(t.inlineExpressions(qt))]),qt=[]),qt.push(C.checkDefined(st(go,re,St))))}}function gn(ze){let qt=[];for(const er of ze.elements)Nr(er)&&er.operatorToken.kind===28?qt.push(cn(er)):(Oe(er)&&qt.length>0&&($(1,[t.createExpressionStatement(t.inlineExpressions(qt))]),qt=[]),qt.push(C.checkDefined(st(er,re,St))));return t.inlineExpressions(qt)}function Kn(ze){const qt=Kt(),er=xt();return os(er,C.checkDefined(st(ze.left,re,St)),ze.left),ze.operatorToken.kind===56?xs(qt,er,ze.left):Zt(qt,er,ze.left),os(er,C.checkDefined(st(ze.right,re,St)),ze.right),Le(qt),er}function gt(ze){if(Oe(ze.whenTrue)||Oe(ze.whenFalse)){const qt=Kt(),er=Kt(),go=xt();return xs(qt,C.checkDefined(st(ze.condition,re,St)),ze.condition),os(go,C.checkDefined(st(ze.whenTrue,re,St)),ze.whenTrue),Ja(er),Le(qt),os(go,C.checkDefined(st(ze.whenFalse,re,St)),ze.whenFalse),Le(er),go}return On(ze,re,e)}function en(ze){const qt=Kt(),er=st(ze.expression,re,St);if(ze.asteriskToken){const go=(Za(ze.expression)&8388608)===0?bt(r().createValuesHelper(er),ze):er;Xl(go,ze)}else dc(er,ze);return Le(qt),Sf(ze)}function or(ze){return Ni(ze.elements,void 0,void 0,ze.multiLine)}function Ni(ze,qt,er,go){const es=Nt(ze);let ts;if(es>0){ts=xt();const rl=Xn(ze,re,St,0,es);os(ts,t.createArrayLiteralExpression(qt?[qt,...rl]:rl)),qt=void 0}const ja=bu(ze,kc,[],es);return ts?t.createArrayConcatCall(ts,[t.createArrayLiteralExpression(ja,go)]):bt(t.createArrayLiteralExpression(qt?[qt,...ja]:ja,go),er);function kc(rl,Ol){if(Oe(Ol)&&rl.length>0){const Yl=ts!==void 0;ts||(ts=xt()),os(ts,Yl?t.createArrayConcatCall(ts,[t.createArrayLiteralExpression(rl,go)]):t.createArrayLiteralExpression(qt?[qt,...rl]:rl,go)),qt=void 0,rl=[]}return rl.push(C.checkDefined(st(Ol,re,St))),rl}}function so(ze){const qt=ze.properties,er=ze.multiLine,go=Nt(qt),es=xt();os(es,t.createObjectLiteralExpression(Xn(qt,re,ay,0,go),er));const ts=bu(qt,ja,[],go);return ts.push(er?cu(ps(bt(t.cloneNode(es),es),es.parent)):es),t.inlineExpressions(ts);function ja(kc,rl){Oe(rl)&&kc.length>0&&(fa(t.createExpressionStatement(t.inlineExpressions(kc))),kc=[]);const Ol=doe(t,ze,rl,es),Yl=st(Ol,re,St);return Yl&&(er&&cu(Yl),kc.push(Yl)),kc}}function zt(ze){return Oe(ze.argumentExpression)?t.updateElementAccessExpression(ze,te(C.checkDefined(st(ze.expression,re,ep))),C.checkDefined(st(ze.argumentExpression,re,St))):On(ze,re,e)}function Zr(ze){if(!tp(ze)&&qe(ze.arguments,Oe)){const{target:qt,thisArg:er}=t.createCallBinding(ze.expression,l,d,!0);return jr(bt(t.createFunctionApplyCall(te(C.checkDefined(st(qt,re,ep))),er,Ni(ze.arguments)),ze),ze)}return On(ze,re,e)}function xi(ze){if(qe(ze.arguments,Oe)){const{target:qt,thisArg:er}=t.createCallBinding(t.createPropertyAccessExpression(ze.expression,"bind"),l);return jr(bt(t.createNewExpression(t.createFunctionApplyCall(te(C.checkDefined(st(qt,re,St))),er,Ni(ze.arguments,t.createVoidZero())),void 0,[]),ze),ze)}return On(ze,re,e)}function Pi(ze,qt=0){const er=ze.length;for(let go=qt;go0)break;es.push(ri(ja))}es.length&&(fa(t.createExpressionStatement(t.inlineExpressions(es))),go+=es.length,es=[])}}function ri(ze){return Ha(t.createAssignment(Ha(t.cloneNode(ze.name),ze.name),C.checkDefined(st(ze.initializer,re,St))),ze)}function ai(ze){if(Oe(ze))if(Oe(ze.thenStatement)||Oe(ze.elseStatement)){const qt=Kt(),er=ze.elseStatement?Kt():void 0;xs(ze.elseStatement?er:qt,C.checkDefined(st(ze.expression,re,St)),ze.expression),Pr(ze.thenStatement),ze.elseStatement&&(Ja(qt),Le(er),Pr(ze.elseStatement)),Le(qt)}else fa(st(ze,re,ji));else fa(st(ze,re,ji))}function qi(ze){if(Oe(ze)){const qt=Kt(),er=Kt();wt(qt),Le(er),Pr(ze.statement),Le(qt),Zt(er,C.checkDefined(st(ze.expression,re,St))),En()}else fa(st(ze,re,ji))}function Qo(ze){return R?(yn(),ze=On(ze,re,e),En(),ze):On(ze,re,e)}function Ia(ze){if(Oe(ze)){const qt=Kt(),er=wt(qt);Le(qt),xs(er,C.checkDefined(st(ze.expression,re,St))),Pr(ze.statement),Ja(qt),En()}else fa(st(ze,re,ji))}function Pn(ze){return R?(yn(),ze=On(ze,re,e),En(),ze):On(ze,re,e)}function Uo(ze){if(Oe(ze)){const qt=Kt(),er=Kt(),go=wt(er);if(ze.initializer){const es=ze.initializer;gd(es)?dr(es):fa(bt(t.createExpressionStatement(C.checkDefined(st(es,re,St))),es))}Le(qt),ze.condition&&xs(go,C.checkDefined(st(ze.condition,re,St))),Pr(ze.statement),Le(er),ze.incrementor&&fa(bt(t.createExpressionStatement(C.checkDefined(st(ze.incrementor,re,St))),ze.incrementor)),Ja(qt),En()}else fa(st(ze,re,ji))}function ot(ze){R&&yn();const qt=ze.initializer;if(qt&&gd(qt)){for(const go of qt.declarations)l(go.name);const er=SM(qt);ze=t.updateForStatement(ze,er.length>0?t.inlineExpressions(Yt(er,ri)):void 0,st(ze.condition,re,St),st(ze.incrementor,re,St),Bu(ze.statement,re,e))}else ze=On(ze,re,e);return R&&En(),ze}function Ft(ze){if(Oe(ze)){const qt=xt(),er=xt(),go=xt(),es=t.createLoopVariable(),ts=ze.initializer;l(es),os(qt,C.checkDefined(st(ze.expression,re,St))),os(er,t.createArrayLiteralExpression()),fa(t.createForInStatement(go,qt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(er,"push"),void 0,[go])))),os(es,t.createNumericLiteral(0));const ja=Kt(),kc=Kt(),rl=wt(kc);Le(ja),xs(rl,t.createLessThan(es,t.createPropertyAccessExpression(er,"length"))),os(go,t.createElementAccessExpression(er,es)),xs(kc,t.createBinaryExpression(go,103,qt));let Ol;if(gd(ts)){for(const Yl of ts.declarations)l(Yl.name);Ol=t.cloneNode(ts.declarations[0].name)}else Ol=C.checkDefined(st(ts,re,St)),C.assert(ep(Ol));os(Ol,go),Pr(ze.statement),Le(kc),fa(t.createExpressionStatement(t.createPostfixIncrement(es))),Ja(ja),En()}else fa(st(ze,re,ji))}function le(ze){R&&yn();const qt=ze.initializer;if(gd(qt)){for(const er of qt.declarations)l(er.name);ze=t.updateForInStatement(ze,qt.declarations[0].name,C.checkDefined(st(ze.expression,re,St)),C.checkDefined(st(ze.statement,re,ji,t.liftToBlock)))}else ze=On(ze,re,e);return R&&En(),ze}function _t(ze){const qt=Go(ze.label?Kr(ze.label):void 0);qt>0?Ja(qt,ze):fa(ze)}function ne(ze){if(R){const qt=Go(ze.label&&Kr(ze.label));if(qt>0)return Da(qt,ze)}return On(ze,re,e)}function Fe(ze){const qt=lo(ze.label?Kr(ze.label):void 0);qt>0?Ja(qt,ze):fa(ze)}function it(ze){if(R){const qt=lo(ze.label&&Kr(ze.label));if(qt>0)return Da(qt,ze)}return On(ze,re,e)}function dt(ze){bd(st(ze.expression,re,St),ze)}function Lt(ze){return ic(st(ze.expression,re,St),ze)}function He(ze){Oe(ze)?(Jn(te(C.checkDefined(st(ze.expression,re,St)))),Pr(ze.statement),mt()):fa(st(ze,re,ji))}function Rt(ze){if(Oe(ze.caseBlock)){const qt=ze.caseBlock,er=qt.clauses.length,go=wn(),es=te(C.checkDefined(st(ze.expression,re,St))),ts=[];let ja=-1;for(let Ol=0;Ol0)break;rl.push(t.createCaseClause(C.checkDefined(st(sf.expression,re,St)),[Da(ts[Yl],sf.expression)]))}else Ol++}rl.length&&(fa(t.createSwitchStatement(es,t.createCaseBlock(rl))),kc+=rl.length,rl=[]),Ol>0&&(kc+=Ol,Ol=0)}ja>=0?Ja(ts[ja]):Ja(go);for(let Ol=0;Ol=0;er--){const go=F[er];if(jl(go)){if(go.labelText===ze)return!0}else break}return!1}function lo(ze){if(F)if(ze)for(let qt=F.length-1;qt>=0;qt--){const er=F[qt];if(jl(er)&&er.labelText===ze)return er.breakLabel;if(zo(er)&&ks(ze,qt-1))return er.breakLabel}else for(let qt=F.length-1;qt>=0;qt--){const er=F[qt];if(zo(er))return er.breakLabel}return 0}function Go(ze){if(F)if(ze)for(let qt=F.length-1;qt>=0;qt--){const er=F[qt];if(Cl(er)&&ks(ze,qt-1))return er.continueLabel}else for(let qt=F.length-1;qt>=0;qt--){const er=F[qt];if(Cl(er))return er.continueLabel}return 0}function Ec(ze){if(ze!==void 0&&ze>0){G===void 0&&(G=[]);const qt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return G[ze]===void 0?G[ze]=[qt]:G[ze].push(qt),qt}return t.createOmittedExpression()}function Zs(ze){const qt=t.createNumericLiteral(ze);return VM(qt,3,iJe(ze)),qt}function Da(ze,qt){return C.assertLessThan(0,ze,"Invalid label"),bt(t.createReturnStatement(t.createArrayLiteralExpression([Zs(3),Ec(ze)])),qt)}function ic(ze,qt){return bt(t.createReturnStatement(t.createArrayLiteralExpression(ze?[Zs(2),ze]:[Zs(2)])),qt)}function Sf(ze){return bt(t.createCallExpression(t.createPropertyAccessExpression(ve,"sent"),void 0,[]),ze)}function Po(){$(0)}function fa(ze){ze?$(1,[ze]):Po()}function os(ze,qt,er){$(2,[ze,qt],er)}function Ja(ze,qt){$(3,[ze],qt)}function Zt(ze,qt,er){$(4,[ze,qt],er)}function xs(ze,qt,er){$(5,[ze,qt],er)}function Xl(ze,qt){$(7,[ze],qt)}function dc(ze,qt){$(6,[ze],qt)}function bd(ze,qt){$(8,[ze],qt)}function Bs(ze,qt){$(9,[ze],qt)}function Ae(){$(10)}function $(ze,qt,er){J===void 0&&(J=[],Z=[],q=[]),W===void 0&&Le(Kt());const go=J.length;J[go]=ze,Z[go]=qt,q[go]=er}function ft(){oe=0,K=0,fe=void 0,ue=!1,me=!1,be=void 0,De=void 0,Y=void 0,Ne=void 0,Xe=void 0;const ze=Ht();return r().createGeneratorHelper(Cr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ve)],void 0,t.createBlock(ze,ze.length>0)),1048576))}function Ht(){if(J){for(let ze=0;ze=0;qt--){const er=Xe[qt];De=[t.createWithStatement(er.expression,t.createBlock(De))]}if(Ne){const{startLabel:qt,catchLabel:er,finallyLabel:go,endLabel:es}=Ne;De.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ve,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Ec(qt),Ec(er),Ec(go),Ec(es)])]))),Ne=void 0}ze&&De.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ve,"label"),t.createNumericLiteral(K+1))))}be.push(t.createCaseClause(t.createNumericLiteral(K),De||[])),De=void 0}function Bn(ze){if(W)for(let qt=0;qt{(!ds(te.arguments[0])||Rk(te.arguments[0].text,u))&&(k=Vn(k,te))});const Ie=t(y)(ge);return N=void 0,P=void 0,W=!1,Ie}function j(){return xg(N.fileName)&&N.commonJsModuleIndicator&&(!N.externalModuleIndicator||N.externalModuleIndicator===!0)?!1:!!(!P.exportEquals&&Vc(N))}function J(ge){o();const B=[],Ie=Hd(u,"alwaysStrict")||Vc(N),te=r.copyPrologue(ge.statements,B,Ie&&!Vf(ge),ue);if(j()&&Vn(B,Fe()),vt(P.exportedNames))for(let Le=0;LeBt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Bt.text)),yt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Bt))),yt),r.createVoidZero())));for(const Kt of P.exportedFunctions)le(B,Kt);Vn(B,st(P.externalHelpersImportDeclaration,ue,ji)),Xr(B,Xn(ge.statements,ue,ji,te)),fe(B,!1),vg(B,s());const xt=r.updateSourceFile(ge,bt(r.createNodeArray(B),ge.statements));return Cg(xt,e.readEmitHelpers()),xt}function Z(ge){const B=r.createIdentifier("define"),Ie=Nw(r,ge,_,u),te=Vf(ge)&&ge,{aliasedModuleNames:xt,unaliasedModuleNames:Kt,importAliasNames:Le}=ve(ge,!0),yt=r.updateSourceFile(ge,bt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(B,void 0,[...Ie?[Ie]:[],r.createArrayLiteralExpression(te?ie:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...xt,...Kt]),te?te.statements.length?te.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"),...Le],void 0,K(ge))]))]),ge.statements));return Cg(yt,e.readEmitHelpers()),yt}function q(ge){const{aliasedModuleNames:B,unaliasedModuleNames:Ie,importAliasNames:te}=ve(ge,!1),xt=Nw(r,ge,_,u),Kt=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,bt(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")]))]),Cr(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,[...xt?[xt]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...B,...Ie]),r.createIdentifier("factory")]))])))],!0),void 0)),Le=r.updateSourceFile(ge,bt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Kt,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"),...te],void 0,K(ge))]))]),ge.statements));return Cg(Le,e.readEmitHelpers()),Le}function ve(ge,B){const Ie=[],te=[],xt=[];for(const Kt of ge.amdDependencies)Kt.name?(Ie.push(r.createStringLiteral(Kt.path)),xt.push(r.createParameterDeclaration(void 0,void 0,Kt.name))):te.push(r.createStringLiteral(Kt.path));for(const Kt of P.externalImports){const Le=ix(r,Kt,N,_,d,u),yt=FD(r,Kt,N);Le&&(B&&yt?(Cr(yt,8),Ie.push(Le),xt.push(r.createParameterDeclaration(void 0,void 0,yt))):te.push(Le))}return{aliasedModuleNames:Ie,unaliasedModuleNames:te,importAliasNames:xt}}function oe(ge){if(Gc(ge)||hc(ge)||!ix(r,ge,N,_,d,u))return;const B=FD(r,ge,N),Ie=Pi(ge,B);if(Ie!==B)return r.createExpressionStatement(r.createAssignment(B,Ie))}function K(ge){o();const B=[],Ie=r.copyPrologue(ge.statements,B,!0,ue);j()&&Vn(B,Fe()),vt(P.exportedNames)&&Vn(B,r.createExpressionStatement(bu(P.exportedNames,(xt,Kt)=>Kt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Kt.text)),xt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Kt))),xt),r.createVoidZero())));for(const xt of P.exportedFunctions)le(B,xt);Vn(B,st(P.externalHelpersImportDeclaration,ue,ji)),y===2&&Xr(B,Ei(P.externalImports,oe)),Xr(B,Xn(ge.statements,ue,ji,Ie)),fe(B,!0),vg(B,s());const te=r.createBlock(B,!0);return W&&UI(te,oJe),te}function fe(ge,B){if(P.exportEquals){const Ie=st(P.exportEquals.expression,De,St);if(Ie)if(B){const te=r.createReturnStatement(Ie);bt(te,P.exportEquals),Cr(te,3840),ge.push(te)}else{const te=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Ie));bt(te,P.exportEquals),Cr(te,3072),ge.push(te)}}}function ue(ge){switch(ge.kind){case 273:return Pr(ge);case 272:return $e(ge);case 279:return At(ge);case 278:return hn(ge);default:return me(ge)}}function me(ge){switch(ge.kind){case 244:return ai(ge);case 263:return dr(ge);case 264:return ri(ge);case 249:return Ee(ge,!0);case 250:return re(ge);case 251:return Te(ge);case 247:return Me(ge);case 248:return Be(ge);case 257:return lt(ge);case 255:return ce(ge);case 246:return Ce(ge);case 256:return ye(ge);case 270:return Ue(ge);case 297:return Ge(ge);case 298:return We(ge);case 259:return at(ge);case 300:return Wt(ge);case 242:return cn(ge);default:return De(ge)}}function be(ge,B){if(!(ge.transformFlags&276828160)&&!k?.length)return ge;switch(ge.kind){case 249:return Ee(ge,!1);case 245:return gn(ge);case 218:return Kn(ge,B);case 356:return gt(ge,B);case 214:const Ie=ge===Rc(k);if(Ie&&k.shift(),tp(ge)&&_.shouldTransformImportCall(N))return Ni(ge,Ie);if(Ie)return or(ge);break;case 227:if(ov(ge))return Xe(ge,B);break;case 225:case 226:return en(ge,B)}return On(ge,De,e)}function De(ge){return be(ge,!1)}function Y(ge){return be(ge,!0)}function Ne(ge){if(za(ge))for(const B of ge.properties)switch(B.kind){case 304:if(Ne(B.initializer))return!0;break;case 305:if(Ne(B.name))return!0;break;case 306:if(Ne(B.expression))return!0;break;case 175:case 178:case 179:return!1;default:C.assertNever(B,"Unhandled object member kind")}else if(Nd(ge)){for(const B of ge.elements)if(Yf(B)){if(Ne(B.expression))return!0}else if(Ne(B))return!0}else if(Je(ge))return Qe(Nt(ge))>(F4(ge)?1:0);return!1}function Xe(ge,B){return Ne(ge.left)?F1(ge,De,e,0,!B,qi):On(ge,De,e)}function Ee(ge,B){if(B&&ge.initializer&&gd(ge.initializer)&&!(ge.initializer.flags&7)){const Ie=ot(void 0,ge.initializer,!1);if(Ie){const te=[],xt=st(ge.initializer,Y,gd),Kt=r.createVariableStatement(void 0,xt);te.push(Kt),Xr(te,Ie);const Le=st(ge.condition,De,St),yt=st(ge.incrementor,Y,St),Bt=Bu(ge.statement,B?me:De,e);return te.push(r.updateForStatement(ge,void 0,Le,yt,Bt)),te}}return r.updateForStatement(ge,st(ge.initializer,Y,Bf),st(ge.condition,De,St),st(ge.incrementor,Y,St),Bu(ge.statement,B?me:De,e))}function re(ge){if(gd(ge.initializer)&&!(ge.initializer.flags&7)){const B=ot(void 0,ge.initializer,!0);if(vt(B)){const Ie=st(ge.initializer,Y,Bf),te=st(ge.expression,De,St),xt=Bu(ge.statement,me,e),Kt=ta(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0);return r.updateForInStatement(ge,Ie,te,Kt)}}return r.updateForInStatement(ge,st(ge.initializer,Y,Bf),st(ge.expression,De,St),Bu(ge.statement,me,e))}function Te(ge){if(gd(ge.initializer)&&!(ge.initializer.flags&7)){const B=ot(void 0,ge.initializer,!0),Ie=st(ge.initializer,Y,Bf),te=st(ge.expression,De,St);let xt=Bu(ge.statement,me,e);return vt(B)&&(xt=ta(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0)),r.updateForOfStatement(ge,ge.awaitModifier,Ie,te,xt)}return r.updateForOfStatement(ge,ge.awaitModifier,st(ge.initializer,Y,Bf),st(ge.expression,De,St),Bu(ge.statement,me,e))}function Me(ge){return r.updateDoStatement(ge,Bu(ge.statement,me,e),st(ge.expression,De,St))}function Be(ge){return r.updateWhileStatement(ge,st(ge.expression,De,St),Bu(ge.statement,me,e))}function lt(ge){return r.updateLabeledStatement(ge,ge.label,st(ge.statement,me,ji,r.liftToBlock)??bt(r.createEmptyStatement(),ge.statement))}function ce(ge){return r.updateWithStatement(ge,st(ge.expression,De,St),C.checkDefined(st(ge.statement,me,ji,r.liftToBlock)))}function Ce(ge){return r.updateIfStatement(ge,st(ge.expression,De,St),st(ge.thenStatement,me,ji,r.liftToBlock)??r.createBlock([]),st(ge.elseStatement,me,ji,r.liftToBlock))}function ye(ge){return r.updateSwitchStatement(ge,st(ge.expression,De,St),C.checkDefined(st(ge.caseBlock,me,$M)))}function Ue(ge){return r.updateCaseBlock(ge,Xn(ge.clauses,me,PF))}function Ge(ge){return r.updateCaseClause(ge,st(ge.expression,De,St),Xn(ge.statements,me,ji))}function We(ge){return On(ge,me,e)}function at(ge){return On(ge,me,e)}function Wt(ge){return r.updateCatchClause(ge,ge.variableDeclaration,C.checkDefined(st(ge.block,me,ta)))}function cn(ge){return ge=On(ge,me,e),ge}function gn(ge){return r.updateExpressionStatement(ge,st(ge.expression,Y,St))}function Kn(ge,B){return r.updateParenthesizedExpression(ge,st(ge.expression,B?Y:De,St))}function gt(ge,B){return r.updatePartiallyEmittedExpression(ge,st(ge.expression,B?Y:De,St))}function en(ge,B){if((ge.operator===46||ge.operator===47)&&Je(ge.operand)&&!ml(ge.operand)&&!gy(ge.operand)&&!LV(ge.operand)){const Ie=Nt(ge.operand);if(Ie){let te,xt=st(ge.operand,De,St);QT(ge)?xt=r.updatePrefixUnaryExpression(ge,xt):(xt=r.updatePostfixUnaryExpression(ge,xt),B||(te=r.createTempVariable(l),xt=r.createAssignment(te,xt),bt(xt,ge)),xt=r.createComma(xt,r.cloneNode(ge.operand)),bt(xt,ge));for(const Kt of Ie)F[ls(xt)]=!0,xt=dt(Kt,xt),bt(xt,ge);return te&&(F[ls(xt)]=!0,xt=r.createComma(xt,te),bt(xt,ge)),xt}}return On(ge,De,e)}function or(ge){return r.updateCallExpression(ge,ge.expression,void 0,Xn(ge.arguments,B=>B===ge.arguments[0]?ds(B)?ux(B,u):i().createRewriteRelativeImportExtensionsHelper(B):De(B),St))}function Ni(ge,B){if(y===0&&h>=7)return On(ge,De,e);const Ie=ix(r,ge,N,_,d,u),te=st(Rc(ge.arguments),De,St),xt=Ie&&(!te||!Oa(te)||te.text!==Ie.text)?Ie:te&&B?Oa(te)?ux(te,u):i().createRewriteRelativeImportExtensionsHelper(te):te,Kt=!!(ge.transformFlags&16384);switch(u.module){case 2:return zt(xt,Kt);case 3:return so(xt??r.createVoidZero(),Kt);default:return Zr(xt)}}function so(ge,B){if(W=!0,QS(ge)){const Ie=ml(ge)?ge:Oa(ge)?r.createStringLiteralFromNode(ge):Cr(bt(r.cloneNode(ge),ge),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(ge),void 0,zt(Ie,B))}else{const Ie=r.createTempVariable(l);return r.createComma(r.createAssignment(Ie,ge),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(Ie,!0),void 0,zt(Ie,B)))}}function zt(ge,B){const Ie=r.createUniqueName("resolve"),te=r.createUniqueName("reject"),xt=[r.createParameterDeclaration(void 0,void 0,Ie),r.createParameterDeclaration(void 0,void 0,te)],Kt=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([ge||r.createOmittedExpression()]),Ie,te]))]);let Le;h>=2?Le=r.createArrowFunction(void 0,void 0,xt,void 0,void 0,Kt):(Le=r.createFunctionExpression(void 0,void 0,void 0,void 0,xt,void 0,Kt),B&&Cr(Le,16));const yt=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Le]);return e_(u)?r.createCallExpression(r.createPropertyAccessExpression(yt,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):yt}function Zr(ge,B){const Ie=ge&&!G_(ge)&&!B,te=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Ie?h>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(ge,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[ge])]:[]);let xt=r.createCallExpression(r.createIdentifier("require"),void 0,Ie?[r.createIdentifier("s")]:ge?[ge]:[]);e_(u)&&(xt=i().createImportStarHelper(xt));const Kt=Ie?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let Le;return h>=2?Le=r.createArrowFunction(void 0,void 0,Kt,void 0,void 0,xt):Le=r.createFunctionExpression(void 0,void 0,void 0,void 0,Kt,void 0,r.createBlock([r.createReturnStatement(xt)])),r.createCallExpression(r.createPropertyAccessExpression(te,"then"),void 0,[Le])}function xi(ge,B){return!e_(u)||jm(ge)&2?B:Fae(ge)?i().createImportStarHelper(B):B}function Pi(ge,B){return!e_(u)||jm(ge)&2?B:S3(ge)?i().createImportStarHelper(B):rH(ge)?i().createImportDefaultHelper(B):B}function Pr(ge){let B;const Ie=oD(ge);if(y!==2)if(ge.importClause){const te=[];Ie&&!u1(ge)?te.push(r.createVariableDeclaration(r.cloneNode(Ie.name),void 0,void 0,Pi(ge,Mi(ge)))):(te.push(r.createVariableDeclaration(r.getGeneratedNameForNode(ge),void 0,void 0,Pi(ge,Mi(ge)))),Ie&&u1(ge)&&te.push(r.createVariableDeclaration(r.cloneNode(Ie.name),void 0,void 0,r.getGeneratedNameForNode(ge)))),B=Vn(B,jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList(te,h>=2?2:0)),ge),ge))}else return jr(bt(r.createExpressionStatement(Mi(ge)),ge),ge);else Ie&&u1(ge)&&(B=Vn(B,r.createVariableStatement(void 0,r.createVariableDeclarationList([jr(bt(r.createVariableDeclaration(r.cloneNode(Ie.name),void 0,void 0,r.getGeneratedNameForNode(ge)),ge),ge)],h>=2?2:0))));return B=Ia(B,ge),R_(B)}function Mi(ge){const B=ix(r,ge,N,_,d,u),Ie=[];return B&&Ie.push(ux(B,u)),r.createCallExpression(r.createIdentifier("require"),void 0,Ie)}function $e(ge){C.assert(BT(ge),"import= for internal module references should be handled in an earlier transformer.");let B;return y!==2?di(ge,32)?B=Vn(B,jr(bt(r.createExpressionStatement(dt(ge.name,Mi(ge))),ge),ge)):B=Vn(B,jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(ge.name),void 0,void 0,Mi(ge))],h>=2?2:0)),ge),ge)):di(ge,32)&&(B=Vn(B,jr(bt(r.createExpressionStatement(dt(r.getExportName(ge),r.getLocalName(ge))),ge),ge))),B=Pn(B,ge),R_(B)}function At(ge){if(!ge.moduleSpecifier)return;const B=r.getGeneratedNameForNode(ge);if(ge.exportClause&&$f(ge.exportClause)){const Ie=[];y!==2&&Ie.push(jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(B,void 0,void 0,Mi(ge))])),ge),ge));for(const te of ge.exportClause.elements){const xt=te.propertyName||te.name,Le=!!e_(u)&&!(jm(ge)&2)&&P_(xt)?i().createImportDefaultHelper(B):B,yt=xt.kind===11?r.createElementAccessExpression(Le,xt):r.createPropertyAccessExpression(Le,xt);Ie.push(jr(bt(r.createExpressionStatement(dt(te.name.kind===11?r.cloneNode(te.name):r.getExportName(te),yt,void 0,!0)),te),te))}return R_(Ie)}else if(ge.exportClause){const Ie=[];return Ie.push(jr(bt(r.createExpressionStatement(dt(r.cloneNode(ge.exportClause.name),xi(ge,y!==2?Mi(ge):UF(ge)||ge.exportClause.name.kind===11?B:r.createIdentifier(Kr(ge.exportClause.name))))),ge),ge)),R_(Ie)}else return jr(bt(r.createExpressionStatement(i().createExportStarHelper(y!==2?Mi(ge):B)),ge),ge)}function hn(ge){if(!ge.isExportEquals)return it(r.createIdentifier("default"),st(ge.expression,De,St),ge,!0)}function dr(ge){let B;return di(ge,32)?B=Vn(B,jr(bt(r.createFunctionDeclaration(Xn(ge.modifiers,Lt,Aa),ge.asteriskToken,r.getDeclarationName(ge,!0,!0),void 0,Xn(ge.parameters,De,Zi),void 0,On(ge.body,De,e)),ge),ge)):B=Vn(B,On(ge,De,e)),R_(B)}function ri(ge){let B;return di(ge,32)?B=Vn(B,jr(bt(r.createClassDeclaration(Xn(ge.modifiers,Lt,hl),r.getDeclarationName(ge,!0,!0),void 0,Xn(ge.heritageClauses,De,Gp),Xn(ge.members,De,Sc)),ge),ge)):B=Vn(B,On(ge,De,e)),B=le(B,ge),R_(B)}function ai(ge){let B,Ie,te;if(di(ge,32)){let xt,Kt=!1;for(const Le of ge.declarationList.declarations)if(Je(Le.name)&&gy(Le.name))if(xt||(xt=Xn(ge.modifiers,Lt,Aa)),Le.initializer){const yt=r.updateVariableDeclaration(Le,Le.name,void 0,void 0,dt(Le.name,st(Le.initializer,De,St)));Ie=Vn(Ie,yt)}else Ie=Vn(Ie,Le);else if(Le.initializer)if(!Zo(Le.name)&&($s(Le.initializer)||qs(Le.initializer)||fc(Le.initializer))){const yt=r.createAssignment(bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),Le.name),Le.name),r.createIdentifier(jf(Le.name))),Bt=r.createVariableDeclaration(Le.name,Le.exclamationToken,Le.type,st(Le.initializer,De,St));Ie=Vn(Ie,Bt),te=Vn(te,yt),Kt=!0}else te=Vn(te,Qo(Le));if(Ie&&(B=Vn(B,r.updateVariableStatement(ge,xt,r.updateVariableDeclarationList(ge.declarationList,Ie)))),te){const Le=jr(bt(r.createExpressionStatement(r.inlineExpressions(te)),ge),ge);Kt&&hw(Le),B=Vn(B,Le)}}else B=Vn(B,On(ge,De,e));return B=Uo(B,ge),R_(B)}function qi(ge,B,Ie){const te=Nt(ge);if(te){let xt=F4(ge)?B:r.createAssignment(ge,B);for(const Kt of te)Cr(xt,8),xt=dt(Kt,xt,Ie);return xt}return r.createAssignment(ge,B)}function Qo(ge){return Zo(ge.name)?F1(st(ge,De,Kk),De,e,0,!1,qi):r.createAssignment(bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),ge.name),ge.name),ge.initializer?st(ge.initializer,De,St):r.createVoidZero())}function Ia(ge,B){if(P.exportEquals)return ge;const Ie=B.importClause;if(!Ie)return ge;const te=new XD;Ie.name&&(ge=_t(ge,te,Ie));const xt=Ie.namedBindings;if(xt)switch(xt.kind){case 275:ge=_t(ge,te,xt);break;case 276:for(const Kt of xt.elements)ge=_t(ge,te,Kt,!0);break}return ge}function Pn(ge,B){return P.exportEquals?ge:_t(ge,new XD,B)}function Uo(ge,B){return ot(ge,B.declarationList,!1)}function ot(ge,B,Ie){if(P.exportEquals)return ge;for(const te of B.declarations)ge=Ft(ge,te,Ie);return ge}function Ft(ge,B,Ie){if(P.exportEquals)return ge;if(Zo(B.name))for(const te of B.name.elements)Xc(te)||(ge=Ft(ge,te,Ie));else!ml(B.name)&&(!yi(B)||B.initializer||Ie)&&(ge=_t(ge,new XD,B));return ge}function le(ge,B){if(P.exportEquals)return ge;const Ie=new XD;if(di(B,32)){const te=di(B,2048)?r.createIdentifier("default"):r.getDeclarationName(B);ge=ne(ge,Ie,te,r.getLocalName(B),B)}return B.name&&(ge=_t(ge,Ie,B)),ge}function _t(ge,B,Ie,te){const xt=r.getDeclarationName(Ie),Kt=P.exportSpecifiers.get(xt);if(Kt)for(const Le of Kt)ge=ne(ge,B,Le.name,xt,Le.name,void 0,te);return ge}function ne(ge,B,Ie,te,xt,Kt,Le){if(Ie.kind!==11){if(B.has(Ie))return ge;B.set(Ie,!0)}return ge=Vn(ge,it(Ie,te,xt,Kt,Le)),ge}function Fe(){const ge=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())])]));return Cr(ge,2097152),ge}function it(ge,B,Ie,te,xt){const Kt=bt(r.createExpressionStatement(dt(ge,B,void 0,xt)),Ie);return cu(Kt),te||Cr(Kt,3072),Kt}function dt(ge,B,Ie,te){return bt(te?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(ge),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(B)])))])]):r.createAssignment(ge.kind===11?r.createElementAccessExpression(r.createIdentifier("exports"),r.cloneNode(ge)):r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ge)),B),Ie)}function Lt(ge){switch(ge.kind){case 95:case 90:return}return ge}function He(ge,B,Ie){B.kind===308?(N=B,P=R[Gu(N)],A(ge,B,Ie),N=void 0,P=void 0):A(ge,B,Ie)}function Rt(ge,B){return B=E(ge,B),B.id&&F[B.id]?B:ge===1?Ot(B):Jd(B)?It(B):B}function It(ge){const B=ge.name,Ie=Tr(B);if(Ie!==B){if(ge.objectAssignmentInitializer){const te=r.createAssignment(Ie,ge.objectAssignmentInitializer);return bt(r.createPropertyAssignment(B,te),ge)}return bt(r.createPropertyAssignment(B,Ie),ge)}return ge}function Ot(ge){switch(ge.kind){case 80:return Tr(ge);case 214:return nt(ge);case 216:return Jt(ge);case 227:return Oe(ge)}return ge}function nt(ge){if(Je(ge.expression)){const B=Tr(ge.expression);if(F[ls(B)]=!0,!Je(B)&&!(Za(ge.expression)&8192))return v1(r.updateCallExpression(ge,B,void 0,ge.arguments),16)}return ge}function Jt(ge){if(Je(ge.tag)){const B=Tr(ge.tag);if(F[ls(B)]=!0,!Je(B)&&!(Za(ge.tag)&8192))return v1(r.updateTaggedTemplateExpression(ge,B,void 0,ge.template),16)}return ge}function Tr(ge){var B,Ie;if(Za(ge)&8192){const te=Cw(N);return te?r.createPropertyAccessExpression(te,ge):ge}else if(!(ml(ge)&&!(ge.emitNode.autoGenerate.flags&64))&&!gy(ge)){const te=d.getReferencedExportContainer(ge,F4(ge));if(te&&te.kind===308)return bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(ge)),ge);const xt=d.getReferencedImportDeclaration(ge);if(xt){if(Jm(xt))return bt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(xt.parent),r.createIdentifier("default")),ge);if(xu(xt)){const Kt=xt.propertyName||xt.name,Le=r.getGeneratedNameForNode(((Ie=(B=xt.parent)==null?void 0:B.parent)==null?void 0:Ie.parent)||xt);return bt(Kt.kind===11?r.createElementAccessExpression(Le,r.cloneNode(Kt)):r.createPropertyAccessExpression(Le,r.cloneNode(Kt)),ge)}}}return ge}function Oe(ge){if(uy(ge.operatorToken.kind)&&Je(ge.left)&&(!ml(ge.left)||U2(ge.left))&&!gy(ge.left)){const B=Nt(ge.left);if(B){let Ie=ge;for(const te of B)F[ls(Ie)]=!0,Ie=dt(te,Ie,ge);return Ie}}return ge}function Nt(ge){if(ml(ge)){if(U2(ge)){const B=P?.exportSpecifiers.get(ge);if(B){const Ie=[];for(const te of B)Ie.push(te.name);return Ie}}}else{const B=d.getReferencedImportDeclaration(ge);if(B)return P?.exportedBindings[Gu(B)];const Ie=new Set,te=d.getReferencedValueDeclarations(ge);if(te){for(const xt of te){const Kt=P?.exportedBindings[Gu(xt)];if(Kt)for(const Le of Kt)Ie.add(Le)}if(Ie.size)return Do(Ie)}}}}var oJe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function fse(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),d=e.onSubstituteNode,_=e.onEmitNode;e.onSubstituteNode=Fe,e.onEmitNode=ne,e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);const h=[],y=[],E=[],A=[];let R,N,P,k,F,W,G;return yh(e,j);function j(Oe){if(Oe.isDeclarationFile||!($R(Oe,s)||Oe.transformFlags&8388608))return Oe;const Nt=Gu(Oe);R=Oe,W=Oe,N=h[Nt]=iH(e,Oe),P=t.createUniqueName("exports"),y[Nt]=P,k=A[Nt]=t.createUniqueName("context");const ge=J(N.externalImports),B=Z(Oe,ge),Ie=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,P),t.createParameterDeclaration(void 0,void 0,k)],void 0,B),te=Nw(t,Oe,u,s),xt=t.createArrayLiteralExpression(Yt(ge,Le=>Le.name)),Kt=Cr(t.updateSourceFile(Oe,bt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,te?[te,xt,Ie]:[xt,Ie]))]),Oe.statements)),2048);return s.outFile||Iie(Kt,B,Le=>!Le.scoped),G&&(E[Nt]=G,G=void 0),R=void 0,N=void 0,P=void 0,k=void 0,F=void 0,W=void 0,Kt}function J(Oe){const Nt=new Map,ge=[];for(const B of Oe){const Ie=ix(t,B,R,u,l,s);if(Ie){const te=Ie.text,xt=Nt.get(te);xt!==void 0?ge[xt].externalImports.push(B):(Nt.set(te,ge.length),ge.push({name:Ie,externalImports:[B]}))}}return ge}function Z(Oe,Nt){const ge=[];r();const B=Hd(s,"alwaysStrict")||Vc(R),Ie=t.copyPrologue(Oe.statements,ge,B,K);ge.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(k,t.createPropertyAccessExpression(k,"id")))]))),st(N.externalHelpersImportDeclaration,K,ji);const te=Xn(Oe.statements,K,ji,Ie);Xr(ge,F),vg(ge,i());const xt=q(ge),Kt=Oe.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Le=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",oe(xt,Nt)),t.createPropertyAssignment("execute",t.createFunctionExpression(Kt,void 0,void 0,void 0,[],void 0,t.createBlock(te,!0)))],!0);return ge.push(t.createReturnStatement(Le)),t.createBlock(ge,!0)}function q(Oe){if(!N.hasExportStarsToExportValues)return;if(!vt(N.exportedNames)&&N.exportedFunctions.size===0&&N.exportSpecifiers.size===0){let Ie=!1;for(const te of N.externalImports)if(te.kind===279&&te.exportClause){Ie=!0;break}if(!Ie){const te=ve(void 0);return Oe.push(te),te.name}}const Nt=[];if(N.exportedNames)for(const Ie of N.exportedNames)P_(Ie)||Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ie),t.createTrue()));for(const Ie of N.exportedFunctions)di(Ie,2048)||(C.assert(!!Ie.name),Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ie.name),t.createTrue())));const ge=t.createUniqueName("exportedNames");Oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ge,void 0,void 0,t.createObjectLiteralExpression(Nt,!0))])));const B=ve(ge);return Oe.push(B),B.name}function ve(Oe){const Nt=t.createUniqueName("exportStar"),ge=t.createIdentifier("m"),B=t.createIdentifier("n"),Ie=t.createIdentifier("exports");let te=t.createStrictInequality(B,t.createStringLiteral("default"));return Oe&&(te=t.createLogicalAnd(te,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(Oe,"hasOwnProperty"),void 0,[B])))),t.createFunctionDeclaration(void 0,void 0,Nt,void 0,[t.createParameterDeclaration(void 0,void 0,ge)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ie,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(B)]),ge,t.createBlock([Cr(t.createIfStatement(te,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Ie,B),t.createElementAccessExpression(ge,B)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[Ie]))],!0))}function oe(Oe,Nt){const ge=[];for(const B of Nt){const Ie=qe(B.externalImports,Kt=>FD(t,Kt,R)),te=Ie?t.getGeneratedNameForNode(Ie):t.createUniqueName(""),xt=[];for(const Kt of B.externalImports){const Le=FD(t,Kt,R);switch(Kt.kind){case 273:if(!Kt.importClause)break;case 272:C.assert(Le!==void 0),xt.push(t.createExpressionStatement(t.createAssignment(Le,te))),di(Kt,32)&&xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(Kr(Le)),te])));break;case 279:if(C.assert(Le!==void 0),Kt.exportClause)if($f(Kt.exportClause)){const yt=[];for(const Bt of Kt.exportClause.elements)yt.push(t.createPropertyAssignment(t.createStringLiteral(Eb(Bt.name)),t.createElementAccessExpression(te,t.createStringLiteral(Eb(Bt.propertyName||Bt.name)))));xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createObjectLiteralExpression(yt,!0)])))}else xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(Eb(Kt.exportClause.name)),te])));else xt.push(t.createExpressionStatement(t.createCallExpression(Oe,void 0,[te])));break}}ge.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,te)],void 0,t.createBlock(xt,!0)))}return t.createArrayLiteralExpression(ge,!0)}function K(Oe){switch(Oe.kind){case 273:return fe(Oe);case 272:return me(Oe);case 279:return ue(Oe);case 278:return be(Oe);default:return cn(Oe)}}function fe(Oe){let Nt;return Oe.importClause&&o(FD(t,Oe,R)),R_(lt(Nt,Oe))}function ue(Oe){C.assertIsDefined(Oe)}function me(Oe){C.assert(BT(Oe),"import= for internal module references should be handled in an earlier transformer.");let Nt;return o(FD(t,Oe,R)),R_(ce(Nt,Oe))}function be(Oe){if(Oe.isExportEquals)return;const Nt=st(Oe.expression,ai,St);return at(t.createIdentifier("default"),Nt,!0)}function De(Oe){di(Oe,32)?F=Vn(F,t.updateFunctionDeclaration(Oe,Xn(Oe.modifiers,_t,hl),Oe.asteriskToken,t.getDeclarationName(Oe,!0,!0),void 0,Xn(Oe.parameters,ai,Zi),void 0,st(Oe.body,ai,ta))):F=Vn(F,On(Oe,ai,e)),F=Ue(F,Oe)}function Y(Oe){let Nt;const ge=t.getLocalName(Oe);return o(ge),Nt=Vn(Nt,bt(t.createExpressionStatement(t.createAssignment(ge,bt(t.createClassExpression(Xn(Oe.modifiers,_t,hl),Oe.name,void 0,Xn(Oe.heritageClauses,ai,Gp),Xn(Oe.members,ai,Sc)),Oe))),Oe)),Nt=Ue(Nt,Oe),R_(Nt)}function Ne(Oe){if(!Ee(Oe.declarationList))return st(Oe,ai,ji);let Nt;if(dk(Oe.declarationList)||ck(Oe.declarationList)){const ge=Xn(Oe.modifiers,_t,hl),B=[];for(const te of Oe.declarationList.declarations)B.push(t.updateVariableDeclaration(te,t.getGeneratedNameForNode(te.name),void 0,void 0,re(te,!1)));const Ie=t.updateVariableDeclarationList(Oe.declarationList,B);Nt=Vn(Nt,t.updateVariableStatement(Oe,ge,Ie))}else{let ge;const B=di(Oe,32);for(const Ie of Oe.declarationList.declarations)Ie.initializer?ge=Vn(ge,re(Ie,B)):Xe(Ie);ge&&(Nt=Vn(Nt,bt(t.createExpressionStatement(t.inlineExpressions(ge)),Oe)))}return Nt=Ce(Nt,Oe,!1),R_(Nt)}function Xe(Oe){if(Zo(Oe.name))for(const Nt of Oe.name.elements)Xc(Nt)||Xe(Nt);else o(t.cloneNode(Oe.name))}function Ee(Oe){return(Za(Oe)&4194304)===0&&(W.kind===308||(bl(Oe).flags&7)===0)}function re(Oe,Nt){const ge=Nt?Te:Me;return Zo(Oe.name)?F1(Oe,ai,e,0,!1,ge):Oe.initializer?ge(Oe.name,st(Oe.initializer,ai,St)):Oe.name}function Te(Oe,Nt,ge){return Be(Oe,Nt,ge,!0)}function Me(Oe,Nt,ge){return Be(Oe,Nt,ge,!1)}function Be(Oe,Nt,ge,B){return o(t.cloneNode(Oe)),B?Wt(Oe,Jt(bt(t.createAssignment(Oe,Nt),ge))):Jt(bt(t.createAssignment(Oe,Nt),ge))}function lt(Oe,Nt){if(N.exportEquals)return Oe;const ge=Nt.importClause;if(!ge)return Oe;ge.name&&(Oe=Ge(Oe,ge));const B=ge.namedBindings;if(B)switch(B.kind){case 275:Oe=Ge(Oe,B);break;case 276:for(const Ie of B.elements)Oe=Ge(Oe,Ie);break}return Oe}function ce(Oe,Nt){return N.exportEquals?Oe:Ge(Oe,Nt)}function Ce(Oe,Nt,ge){if(N.exportEquals)return Oe;for(const B of Nt.declarationList.declarations)(B.initializer||ge)&&(Oe=ye(Oe,B));return Oe}function ye(Oe,Nt,ge){if(N.exportEquals)return Oe;if(Zo(Nt.name))for(const B of Nt.name.elements)Xc(B)||(Oe=ye(Oe,B));else ml(Nt.name)||(Oe=Ge(Oe,Nt,void 0));return Oe}function Ue(Oe,Nt){if(N.exportEquals)return Oe;let ge;if(di(Nt,32)){const B=di(Nt,2048)?t.createStringLiteral("default"):Nt.name;Oe=We(Oe,B,t.getLocalName(Nt)),ge=jf(B)}return Nt.name&&(Oe=Ge(Oe,Nt,ge)),Oe}function Ge(Oe,Nt,ge){if(N.exportEquals)return Oe;const B=t.getDeclarationName(Nt),Ie=N.exportSpecifiers.get(B);if(Ie)for(const te of Ie)Eb(te.name)!==ge&&(Oe=We(Oe,te.name,B));return Oe}function We(Oe,Nt,ge,B){return Oe=Vn(Oe,at(Nt,ge,B)),Oe}function at(Oe,Nt,ge){const B=t.createExpressionStatement(Wt(Oe,Nt));return cu(B),ge||Cr(B,3072),B}function Wt(Oe,Nt){const ge=Je(Oe)?t.createStringLiteralFromNode(Oe):Oe;return Cr(Nt,Za(Nt)|3072),Nc(t.createCallExpression(P,void 0,[ge,Nt]),Nt)}function cn(Oe){switch(Oe.kind){case 244:return Ne(Oe);case 263:return De(Oe);case 264:return Y(Oe);case 249:return gn(Oe,!0);case 250:return Kn(Oe);case 251:return gt(Oe);case 247:return Ni(Oe);case 248:return so(Oe);case 257:return zt(Oe);case 255:return Zr(Oe);case 246:return xi(Oe);case 256:return Pi(Oe);case 270:return Pr(Oe);case 297:return Mi(Oe);case 298:return $e(Oe);case 259:return At(Oe);case 300:return hn(Oe);case 242:return dr(Oe);default:return ai(Oe)}}function gn(Oe,Nt){const ge=W;return W=Oe,Oe=t.updateForStatement(Oe,st(Oe.initializer,Nt?or:qi,Bf),st(Oe.condition,ai,St),st(Oe.incrementor,qi,St),Bu(Oe.statement,Nt?cn:ai,e)),W=ge,Oe}function Kn(Oe){const Nt=W;return W=Oe,Oe=t.updateForInStatement(Oe,or(Oe.initializer),st(Oe.expression,ai,St),Bu(Oe.statement,cn,e)),W=Nt,Oe}function gt(Oe){const Nt=W;return W=Oe,Oe=t.updateForOfStatement(Oe,Oe.awaitModifier,or(Oe.initializer),st(Oe.expression,ai,St),Bu(Oe.statement,cn,e)),W=Nt,Oe}function en(Oe){return gd(Oe)&&Ee(Oe)}function or(Oe){if(en(Oe)){let Nt;for(const ge of Oe.declarations)Nt=Vn(Nt,re(ge,!1)),ge.initializer||Xe(ge);return Nt?t.inlineExpressions(Nt):t.createOmittedExpression()}else return st(Oe,qi,Bf)}function Ni(Oe){return t.updateDoStatement(Oe,Bu(Oe.statement,cn,e),st(Oe.expression,ai,St))}function so(Oe){return t.updateWhileStatement(Oe,st(Oe.expression,ai,St),Bu(Oe.statement,cn,e))}function zt(Oe){return t.updateLabeledStatement(Oe,Oe.label,st(Oe.statement,cn,ji,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function Zr(Oe){return t.updateWithStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.statement,cn,ji,t.liftToBlock)))}function xi(Oe){return t.updateIfStatement(Oe,st(Oe.expression,ai,St),st(Oe.thenStatement,cn,ji,t.liftToBlock)??t.createBlock([]),st(Oe.elseStatement,cn,ji,t.liftToBlock))}function Pi(Oe){return t.updateSwitchStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.caseBlock,cn,$M)))}function Pr(Oe){const Nt=W;return W=Oe,Oe=t.updateCaseBlock(Oe,Xn(Oe.clauses,cn,PF)),W=Nt,Oe}function Mi(Oe){return t.updateCaseClause(Oe,st(Oe.expression,ai,St),Xn(Oe.statements,cn,ji))}function $e(Oe){return On(Oe,cn,e)}function At(Oe){return On(Oe,cn,e)}function hn(Oe){const Nt=W;return W=Oe,Oe=t.updateCatchClause(Oe,Oe.variableDeclaration,C.checkDefined(st(Oe.block,cn,ta))),W=Nt,Oe}function dr(Oe){const Nt=W;return W=Oe,Oe=On(Oe,cn,e),W=Nt,Oe}function ri(Oe,Nt){if(!(Oe.transformFlags&276828160))return Oe;switch(Oe.kind){case 249:return gn(Oe,!1);case 245:return Qo(Oe);case 218:return Ia(Oe,Nt);case 356:return Pn(Oe,Nt);case 227:if(ov(Oe))return ot(Oe,Nt);break;case 214:if(tp(Oe))return Uo(Oe);break;case 225:case 226:return le(Oe,Nt)}return On(Oe,ai,e)}function ai(Oe){return ri(Oe,!1)}function qi(Oe){return ri(Oe,!0)}function Qo(Oe){return t.updateExpressionStatement(Oe,st(Oe.expression,qi,St))}function Ia(Oe,Nt){return t.updateParenthesizedExpression(Oe,st(Oe.expression,Nt?qi:ai,St))}function Pn(Oe,Nt){return t.updatePartiallyEmittedExpression(Oe,st(Oe.expression,Nt?qi:ai,St))}function Uo(Oe){const Nt=ix(t,Oe,R,u,l,s),ge=st(Rc(Oe.arguments),ai,St),B=Nt&&(!ge||!Oa(ge)||ge.text!==Nt.text)?Nt:ge;return t.createCallExpression(t.createPropertyAccessExpression(k,t.createIdentifier("import")),void 0,B?[B]:[])}function ot(Oe,Nt){return Ft(Oe.left)?F1(Oe,ai,e,0,!Nt):On(Oe,ai,e)}function Ft(Oe){if(od(Oe,!0))return Ft(Oe.left);if(Yf(Oe))return Ft(Oe.expression);if(za(Oe))return vt(Oe.properties,Ft);if(Nd(Oe))return vt(Oe.elements,Ft);if(Jd(Oe))return Ft(Oe.name);if(Pc(Oe))return Ft(Oe.initializer);if(Je(Oe)){const Nt=l.getReferencedExportContainer(Oe);return Nt!==void 0&&Nt.kind===308}else return!1}function le(Oe,Nt){if((Oe.operator===46||Oe.operator===47)&&Je(Oe.operand)&&!ml(Oe.operand)&&!gy(Oe.operand)&&!LV(Oe.operand)){const ge=Ot(Oe.operand);if(ge){let B,Ie=st(Oe.operand,ai,St);QT(Oe)?Ie=t.updatePrefixUnaryExpression(Oe,Ie):(Ie=t.updatePostfixUnaryExpression(Oe,Ie),Nt||(B=t.createTempVariable(o),Ie=t.createAssignment(B,Ie),bt(Ie,Oe)),Ie=t.createComma(Ie,t.cloneNode(Oe.operand)),bt(Ie,Oe));for(const te of ge)Ie=Wt(te,Jt(Ie));return B&&(Ie=t.createComma(Ie,B),bt(Ie,Oe)),Ie}}return On(Oe,ai,e)}function _t(Oe){switch(Oe.kind){case 95:case 90:return}return Oe}function ne(Oe,Nt,ge){if(Nt.kind===308){const B=Gu(Nt);R=Nt,N=h[B],P=y[B],G=E[B],k=A[B],G&&delete E[B],_(Oe,Nt,ge),R=void 0,N=void 0,P=void 0,k=void 0,G=void 0}else _(Oe,Nt,ge)}function Fe(Oe,Nt){return Nt=d(Oe,Nt),Tr(Nt)?Nt:Oe===1?Lt(Nt):Oe===4?it(Nt):Nt}function it(Oe){return Oe.kind===305?dt(Oe):Oe}function dt(Oe){var Nt,ge;const B=Oe.name;if(!ml(B)&&!gy(B)){const Ie=l.getReferencedImportDeclaration(B);if(Ie){if(Jm(Ie))return bt(t.createPropertyAssignment(t.cloneNode(B),t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ie.parent),t.createIdentifier("default"))),Oe);if(xu(Ie)){const te=Ie.propertyName||Ie.name,xt=t.getGeneratedNameForNode(((ge=(Nt=Ie.parent)==null?void 0:Nt.parent)==null?void 0:ge.parent)||Ie);return bt(t.createPropertyAssignment(t.cloneNode(B),te.kind===11?t.createElementAccessExpression(xt,t.cloneNode(te)):t.createPropertyAccessExpression(xt,t.cloneNode(te))),Oe)}}}return Oe}function Lt(Oe){switch(Oe.kind){case 80:return He(Oe);case 227:return Rt(Oe);case 237:return It(Oe)}return Oe}function He(Oe){var Nt,ge;if(Za(Oe)&8192){const B=Cw(R);return B?t.createPropertyAccessExpression(B,Oe):Oe}if(!ml(Oe)&&!gy(Oe)){const B=l.getReferencedImportDeclaration(Oe);if(B){if(Jm(B))return bt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(B.parent),t.createIdentifier("default")),Oe);if(xu(B)){const Ie=B.propertyName||B.name,te=t.getGeneratedNameForNode(((ge=(Nt=B.parent)==null?void 0:Nt.parent)==null?void 0:ge.parent)||B);return bt(Ie.kind===11?t.createElementAccessExpression(te,t.cloneNode(Ie)):t.createPropertyAccessExpression(te,t.cloneNode(Ie)),Oe)}}}return Oe}function Rt(Oe){if(uy(Oe.operatorToken.kind)&&Je(Oe.left)&&(!ml(Oe.left)||U2(Oe.left))&&!gy(Oe.left)){const Nt=Ot(Oe.left);if(Nt){let ge=Oe;for(const B of Nt)ge=Wt(B,Jt(ge));return ge}}return Oe}function It(Oe){return eD(Oe)?t.createPropertyAccessExpression(k,t.createIdentifier("meta")):Oe}function Ot(Oe){let Nt;const ge=nt(Oe);if(ge){const B=l.getReferencedExportContainer(Oe,!1);B&&B.kind===308&&(Nt=Vn(Nt,t.getDeclarationName(ge))),Nt=Xr(Nt,N?.exportedBindings[Gu(ge)])}else if(ml(Oe)&&U2(Oe)){const B=N?.exportSpecifiers.get(Oe);if(B){const Ie=[];for(const te of B)Ie.push(te.name);return Ie}}return Nt}function nt(Oe){if(!ml(Oe)){const Nt=l.getReferencedImportDeclaration(Oe);if(Nt)return Nt;const ge=l.getReferencedValueDeclaration(Oe);if(ge&&N?.exportedBindings[Gu(ge)])return ge;const B=l.getReferencedValueDeclarations(Oe);if(B){for(const Ie of B)if(Ie!==ge&&N?.exportedBindings[Gu(Ie)])return Ie}return ge}}function Jt(Oe){return G===void 0&&(G=[]),G[ls(Oe)]=!0,Oe}function Tr(Oe){return G&&Oe.id&&G[Oe.id]}}function fH(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Va(s),u=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=q,e.onSubstituteNode=ve,e.enableEmitNotification(308),e.enableSubstitution(80);const _=new Set;let h,y,E,A;return yh(e,R);function R(K){if(K.isDeclarationFile)return K;if(Vc(K)||Am(s)){E=K,A=void 0,s.rewriteRelativeImportExtensions&&(E.flags&4194304||Ir(K))&&m4(K,!1,!1,ue=>{(!ds(ue.arguments[0])||Rk(ue.arguments[0].text,s))&&(h=Vn(h,ue))});let fe=N(K);return Cg(fe,e.readEmitHelpers()),E=void 0,A&&(fe=t.updateSourceFile(fe,bt(t.createNodeArray(EG(fe.statements.slice(),A)),fe.statements))),!Vc(K)||Eu(s)===200||vt(fe.statements,Y2)?fe:t.updateSourceFile(fe,bt(t.createNodeArray([...fe.statements,xw(t)]),fe.statements))}return K}function N(K){const fe=Qj(t,r(),K,s);if(fe){const ue=[],me=t.copyPrologue(K.statements,ue);return Xr(ue,fP([fe],P,ji)),Xr(ue,Xn(K.statements,P,ji,me)),t.updateSourceFile(K,bt(t.createNodeArray(ue),K.statements))}else return On(K,P,e)}function P(K){switch(K.kind){case 272:return Eu(s)>=100?G(K):void 0;case 278:return J(K);case 279:return Z(K);case 273:return k(K);case 214:if(K===h?.[0])return F(h.shift());default:if(h?.length&&ip(K,h[0]))return On(K,P,e)}return K}function k(K){if(!s.rewriteRelativeImportExtensions)return K;const fe=ux(K.moduleSpecifier,s);return fe===K.moduleSpecifier?K:t.updateImportDeclaration(K,K.modifiers,K.importClause,fe,K.attributes)}function F(K){return t.updateCallExpression(K,K.expression,K.typeArguments,[ds(K.arguments[0])?ux(K.arguments[0],s):r().createRewriteRelativeImportExtensionsHelper(K.arguments[0]),...K.arguments.slice(1)])}function W(K){const fe=ix(t,K,C.checkDefined(E),i,o,s),ue=[];if(fe&&ue.push(ux(fe,s)),Eu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,ue);if(!A){const be=t.createUniqueName("_createRequire",48),De=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),be)])),t.createStringLiteral("module"),void 0),Y=t.createUniqueName("__require",48),Ne=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Y,void 0,void 0,t.createCallExpression(t.cloneNode(be),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));A=[De,Ne]}const me=A[1].declarationList.declarations[0].name;return C.assertNode(me,Je),t.createCallExpression(t.cloneNode(me),void 0,ue)}function G(K){C.assert(BT(K),"import= for internal module references should be handled in an earlier transformer.");let fe;return fe=Vn(fe,jr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(K.name),void 0,void 0,W(K))],l>=2?2:0)),K),K)),fe=j(fe,K),R_(fe)}function j(K,fe){return di(fe,32)&&(K=Vn(K,t.createExportDeclaration(void 0,fe.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Kr(fe.name))])))),K}function J(K){return K.isExportEquals?Eu(s)===200?jr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),K.expression)),K):void 0:K}function Z(K){const fe=ux(K.moduleSpecifier,s);if(s.module!==void 0&&s.module>5||!K.exportClause||!F_(K.exportClause)||!K.moduleSpecifier)return!K.moduleSpecifier||fe===K.moduleSpecifier?K:t.updateExportDeclaration(K,K.modifiers,K.isTypeOnly,K.exportClause,fe,K.attributes);const ue=K.exportClause.name,me=t.getGeneratedNameForNode(ue),be=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(me)),fe,K.attributes);jr(be,K.exportClause);const De=UF(K)?t.createExportDefault(me):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,me,ue)]));return jr(De,K),[be,De]}function q(K,fe,ue){Xi(fe)?((Vc(fe)||Am(s))&&s.importHelpers&&(y=new Map),E=fe,u(K,fe,ue),E=void 0,y=void 0):u(K,fe,ue)}function ve(K,fe){return fe=d(K,fe),fe.id&&_.has(fe.id)?fe:Je(fe)&&Za(fe)&8192?oe(fe):fe}function oe(K){const fe=E&&Cw(E);if(fe)return _.add(ls(K)),t.createPropertyAccessExpression(fe,K);if(y){const ue=Kr(K);let me=y.get(ue);return me||y.set(ue,me=t.createUniqueName(ue,48)),me}return K}}function mse(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=fH(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=pH(e),u=e.onSubstituteNode,d=e.onEmitNode,_=k=>e.getEmitHost().getEmitModuleFormatOfFile(k);e.onSubstituteNode=y,e.onEmitNode=E,e.enableSubstitution(308),e.enableEmitNotification(308);let h;return N;function y(k,F){return Xi(F)?(h=F,t(k,F)):h?_(h)>=5?o(k,F):u(k,F):t(k,F)}function E(k,F,W){return Xi(F)&&(h=F),h?_(h)>=5?s(k,F,W):d(k,F,W):r(k,F,W)}function A(k){return _(k)>=5?i:l}function R(k){if(k.isDeclarationFile)return k;h=k;const F=A(k)(k);return h=void 0,C.assert(Xi(F)),F}function N(k){return k.kind===308?R(k):P(k)}function P(k){return e.factory.createBundle(Yt(k.sourceFiles,R))}}function Zw(e){return yi(e)||Mo(e)||Iu(e)||qa(e)||Hh(e)||_g(e)||JM(e)||XI(e)||Ll(e)||qm(e)||rc(e)||Zi(e)||cl(e)||my(e)||Gc(e)||Im(e)||kl(e)||Ob(e)||qr(e)||zs(e)||Nr(e)||Tm(e)}function hse(e){if(Hh(e)||_g(e))return t;return qm(e)||Ll(e)?i:d0(e);function t(s){const l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return ua(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){const l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return ua(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function d0(e){if(yi(e)||Mo(e)||Iu(e)||qr(e)||zs(e)||Nr(e)||qa(e)||kl(e))return r;return Hh(e)||_g(e)?i:JM(e)||XI(e)||Ll(e)||qm(e)||rc(e)||Ob(e)?o:Zi(e)?Lp(e,e.parent)&&di(e.parent,2)?r:s:cl(e)?u:my(e)?d:Gc(e)?_:Im(e)||Tm(e)?h:C.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${C.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===261||e.kind===209)return y.errorModuleName?y.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===173||e.kind===212||e.kind===213||e.kind===227||e.kind===172||e.kind===170&&di(e.parent,2))return ua(e)?y.errorModuleName?y.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264||e.kind===170?y.errorModuleName?y.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(y){const E=t(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function i(y){let E;return e.kind===179?ua(e)?E=y.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:ua(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e.name,typeName:e.name}}function o(y){let E;switch(e.kind){case 181:E=y.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:E=y.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:E=y.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:ua(e)?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===264?E=y.errorModuleName?y.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=y.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:E=y.errorModuleName?y.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return C.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:E,errorNode:e.name||e}}function s(y){const E=l(y);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function l(y){switch(e.parent.kind){case 177:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return y.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return y.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return y.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return ua(e.parent)?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?y.errorModuleName?y.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return y.errorModuleName?y.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return C.fail(`Unknown parent for parameter: ${C.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 264:y=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:y=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:y=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:y=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:y=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:ua(e.parent)?y=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?y=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:y=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:y=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:y=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return C.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function d(){let y;return Mc(e.parent.parent)?y=Gp(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:wo(e.parent.parent)}}function _(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function h(y){return{diagnosticMessage:y.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Tm(e)?C.checkDefined(e.typeExpression):e.type,typeName:Tm(e)?wo(e):e.name}}}function _se(e){const t={220:f.Add_a_return_type_to_the_function_expression,219:f.Add_a_return_type_to_the_function_expression,175:f.Add_a_return_type_to_the_method,178:f.Add_a_return_type_to_the_get_accessor_declaration,179:f.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:f.Add_a_return_type_to_the_function_declaration,181:f.Add_a_return_type_to_the_function_declaration,170:f.Add_a_type_annotation_to_the_parameter_0,261:f.Add_a_type_annotation_to_the_variable_0,173:f.Add_a_type_annotation_to_the_property_0,172:f.Add_a_type_annotation_to_the_property_0,278:f.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},r={219:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:f.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:f.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:f.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:f.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:f.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return i;function i(P){if(Dn(P,Gp))return Ar(P,f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Kh(P)||VS(P.parent))&&(ku(P)||Ns(P)))return R(P);switch(C.type(P),P.kind){case 178:case 179:return s(P);case 168:case 305:case 306:return u(P);case 210:case 231:return d(P);case 175:case 181:case 219:case 220:case 263:return _(P);case 209:return h(P);case 173:case 261:return y(P);case 170:return E(P);case 304:return N(P.initializer);case 232:return A(P);default:return N(P)}}function o(P){const k=Dn(P,F=>dl(F)||ji(F)||yi(F)||Mo(F)||Zi(F));if(k)return dl(k)?k:of(k)?Dn(k,F=>Ls(F)&&!kl(F)):ji(k)?void 0:k}function s(P){const{getAccessor:k,setAccessor:F}=wS(P.symbol.declarations,P),W=(Hh(P)?P.parameters[0]:P)??P,G=Ar(W,r[P.kind]);return F&&pa(G,Ar(F,t[F.kind])),k&&pa(G,Ar(k,t[k.kind])),G}function l(P,k){const F=o(P);if(F){const W=dl(F)||!F.name?"":Rl(F.name,!1);pa(k,Ar(F,t[F.kind],W))}return k}function u(P){const k=Ar(P,r[P.kind]);return l(P,k),k}function d(P){const k=Ar(P,r[P.kind]);return l(P,k),k}function _(P){const k=Ar(P,r[P.kind]);return l(P,k),pa(k,Ar(P,t[P.kind])),k}function h(P){return Ar(P,f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function y(P){const k=Ar(P,r[P.kind]),F=Rl(P.name,!1);return pa(k,Ar(P,t[P.kind],F)),k}function E(P){if(Hh(P.parent))return s(P.parent);const k=e.requiresAddingImplicitUndefined(P,P.parent);if(!k&&P.initializer)return N(P.initializer);const F=k?f.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:r[P.kind],W=Ar(P,F),G=Rl(P.name,!1);return pa(W,Ar(P,t[P.kind],G)),W}function A(P){return N(P,f.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function R(P){const k=Ar(P,f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Rl(P,!1));return l(P,k),k}function N(P,k){const F=o(P);let W;if(F){const G=dl(F)||!F.name?"":Rl(F.name,!1),j=Dn(P.parent,J=>dl(J)||(ji(J)?"quit":!zu(J)&&!R4(J)&&!DD(J)));F===j?(W=Ar(P,k??r[F.kind]),pa(W,Ar(F,t[F.kind],G))):(W=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations),pa(W,Ar(F,t[F.kind],G)),pa(W,Ar(P,f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else W=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return W}}function gse(e,t,r){const i=e.getCompilerOptions(),o=Un(x6(e,r),c6);return jn(o,r)?rO(t,e,L,i,[r],[mH],!1).diagnostics:void 0}var eO=531469,tO=8;function mH(e){const t=()=>C.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,d,_,h,y;const{factory:E}=e,A=e.getEmitHost();let R=()=>{};const N={trackSymbol:me,reportInaccessibleThisError:Xe,reportInaccessibleUniqueSymbolError:Y,reportCyclicStructureError:Ne,reportPrivateInBaseOfClassExpression:be,reportLikelyUnsafeImportRequiredError:Ee,reportTruncationError:re,moduleResolverHost:A,reportNonlocalAugmentation:Te,reportNonSerializableProperty:Me,reportInferenceFallback:fe,pushErrorFallbackNode(le){const _t=k,ne=R;R=()=>{R=ne,k=_t},k=le},popErrorFallbackNode(){R()}};let P,k,F,W,G,j;const J=e.getEmitResolver(),Z=e.getCompilerOptions(),q=_se(J),{stripInternal:ve,isolatedDeclarations:oe}=Z;return lt;function K(le){J.getPropertiesOfContainerFunction(le).forEach(_t=>{if(VI(_t.valueDeclaration)){const ne=Nr(_t.valueDeclaration)?_t.valueDeclaration.left:_t.valueDeclaration;e.addDiagnostic(Ar(ne,f.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function fe(le){!oe||wu(F)||zn(le)===F&&(yi(le)&&J.isExpandoFunctionDeclaration(le)?K(le):e.addDiagnostic(q(le)))}function ue(le){if(le.accessibility===0){if(le.aliasesToMakeVisible)if(!_)_=le.aliasesToMakeVisible;else for(const _t of le.aliasesToMakeVisible)Ff(_,_t)}else if(le.accessibility!==3){const _t=r(le);if(_t)return _t.typeName?e.addDiagnostic(Ar(le.errorNode||_t.errorNode,_t.diagnosticMessage,Rl(_t.typeName),le.errorSymbolName,le.errorModuleName)):e.addDiagnostic(Ar(le.errorNode||_t.errorNode,_t.diagnosticMessage,le.errorSymbolName,le.errorModuleName)),!0}return!1}function me(le,_t,ne){return le.flags&262144?!1:ue(J.isSymbolAccessible(le,_t,ne,!0))}function be(le){(P||k)&&e.addDiagnostic(pa(Ar(P||k,f.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,le),...yi((P||k).parent)?[Ar(P||k,f.Add_a_type_annotation_to_the_variable_0,De())]:[]))}function De(){return P?Ws(P):k&&wo(k)?Ws(wo(k)):k&&dl(k)?k.isExportEquals?"export=":"default":"(Missing)"}function Y(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,De(),"unique symbol"))}function Ne(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,De()))}function Xe(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,De(),"this"))}function Ee(le){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,De(),le))}function re(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Te(le,_t,ne){var Fe;const it=(Fe=_t.declarations)==null?void 0:Fe.find(Lt=>zn(Lt)===le),dt=Un(ne.declarations,Lt=>zn(Lt)!==le);if(it&&dt)for(const Lt of dt)e.addDiagnostic(pa(Ar(Lt,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Ar(it,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Me(le){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,le))}function Be(le){const _t=r;r=Fe=>Fe.errorNode&&Zw(Fe.errorNode)?d0(Fe.errorNode)(Fe):{diagnosticMessage:Fe.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Fe.errorNode||le};const ne=J.getDeclarationStatementsForSourceFile(le,eO,tO,N);return r=_t,ne}function lt(le){if(le.kind===308&&le.isDeclarationFile)return le;if(le.kind===309){o=!0,W=[],G=[],j=[];let Rt=!1;const It=E.createBundle(Yt(le.sourceFiles,nt=>{if(nt.isDeclarationFile)return;if(Rt=Rt||nt.hasNoDefaultLib,F=nt,d=nt,_=void 0,y=!1,h=new Map,r=t,l=!1,u=!1,Fe(nt),wp(nt)||Vf(nt)){s=!1,i=!1;const Tr=wu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Mi,ji);return E.updateSourceFile(nt,[E.createModuleDeclaration([E.createModifier(138)],E.createStringLiteral(mV(e.getEmitHost(),nt)),E.createModuleBlock(bt(E.createNodeArray(xi(Tr)),nt.statements)))],!0,[],[],!1,[])}i=!0;const Jt=wu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Mi,ji);return E.updateSourceFile(nt,xi(Jt),!0,[],[],!1,[])})),Ot=ci(jd(TP(le,A,!0).declarationFilePath));return It.syntheticFileReferences=He(Ot),It.syntheticTypeReferences=dt(),It.syntheticLibReferences=Lt(),It.hasNoDefaultLib=Rt,It}i=!0,l=!1,u=!1,d=le,F=le,r=t,o=!1,s=!1,y=!1,_=void 0,h=new Map,W=[],G=[],j=[],Fe(F);let _t;if(wu(F))_t=E.createNodeArray(Be(le));else{const Rt=Xn(le.statements,Mi,ji);_t=bt(E.createNodeArray(xi(Rt)),le.statements),Vc(le)&&(!s||l&&!u)&&(_t=bt(E.createNodeArray([..._t,xw(E)]),_t))}const ne=ci(jd(TP(le,A,!0).declarationFilePath));return E.updateSourceFile(le,_t,!0,He(ne),dt(),le.hasNoDefaultLib,Lt());function Fe(Rt){W=ao(W,Yt(Rt.referencedFiles,It=>[Rt,It])),G=ao(G,Rt.typeReferenceDirectives),j=ao(j,Rt.libReferenceDirectives)}function it(Rt){const It={...Rt};return It.pos=-1,It.end=-1,It}function dt(){return Ei(G,Rt=>{if(Rt.preserve)return it(Rt)})}function Lt(){return Ei(j,Rt=>{if(Rt.preserve)return it(Rt)})}function He(Rt){return Ei(W,([It,Ot])=>{if(!Ot.preserve)return;const nt=A.getSourceFileFromReference(It,Ot);if(!nt)return;let Jt;if(nt.isDeclarationFile)Jt=nt.fileName;else{if(o&&jn(le.sourceFiles,nt))return;const Nt=TP(nt,A,!0);Jt=Nt.declarationFilePath||Nt.jsFilePath||nt.fileName}if(!Jt)return;const Tr=FR(Rt,Jt,A.getCurrentDirectory(),A.getCanonicalFileName,!1),Oe=it(Ot);return Oe.fileName=Tr,Oe})}}function ce(le){if(le.kind===80)return le;return le.kind===208?E.updateArrayBindingPattern(le,Xn(le.elements,_t,DF)):E.updateObjectBindingPattern(le,Xn(le.elements,_t,qa));function _t(ne){return ne.kind===233?ne:(ne.propertyName&&va(ne.propertyName)&&Ns(ne.propertyName.expression)&&en(ne.propertyName.expression,d),E.updateBindingElement(ne,ne.dotDotDotToken,ne.propertyName,ce(ne.name),void 0))}}function Ce(le,_t){let ne;y||(ne=r,r=d0(le));const Fe=E.updateParameterDeclaration(le,sJe(E,le,_t),le.dotDotDotToken,ce(le.name),J.isOptionalParameter(le)?le.questionToken||E.createToken(58):void 0,Ge(le,!0),Ue(le));return y||(r=ne),Fe}function ye(le){return wAe(le)&&!!le.initializer&&J.isLiteralConstDeclaration(jo(le))}function Ue(le){if(ye(le)){const _t=lie(le.initializer);return u4(_t)||fe(le),J.createLiteralConstValue(jo(le,wAe),N)}}function Ge(le,_t){if(!_t&&Fp(le,2)||ye(le))return;if(!dl(le)&&!qa(le)&&le.type&&(!Zi(le)||!J.requiresAddingImplicitUndefined(le,d)))return st(le.type,Pi,Ci);const ne=P;P=le.name;let Fe;y||(Fe=r,Zw(le)&&(r=d0(le)));let it;return p4(le)?it=J.createTypeOfDeclaration(le,d,eO,tO,N):$o(le)?it=J.createReturnTypeOfSignatureDeclaration(le,d,eO,tO,N):C.assertNever(le),P=ne,y||(r=Fe),it??E.createKeywordTypeNode(133)}function We(le){switch(le=jo(le),le.kind){case 263:case 268:case 265:case 264:case 266:case 267:return!J.isDeclarationVisible(le);case 261:return!Wt(le);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function at(le){var _t;if(le.body)return!0;const ne=(_t=le.symbol.declarations)==null?void 0:_t.filter(Fe=>rc(Fe)&&!Fe.body);return!ne||ne.indexOf(le)===ne.length-1}function Wt(le){return Xc(le)?!1:Zo(le.name)?vt(le.name.elements,Wt):J.isDeclarationVisible(le)}function cn(le,_t,ne){if(Fp(le,2))return E.createNodeArray();const Fe=Yt(_t,it=>Ce(it,ne));return Fe?E.createNodeArray(Fe,_t.hasTrailingComma):E.createNodeArray()}function gn(le,_t){let ne;if(!_t){const Fe=LS(le);Fe&&(ne=[Ce(Fe)])}if(bp(le)){let Fe;if(!_t){const it=gM(le);it&&(Fe=Ce(it))}Fe||(Fe=E.createParameterDeclaration(void 0,void 0,"value")),ne=Vn(ne,Fe)}return E.createNodeArray(ne||ie)}function Kn(le,_t){return Fp(le,2)?void 0:Xn(_t,Pi,cl)}function gt(le){return Xi(le)||Im(le)||mc(le)||Mc(le)||yd(le)||$o(le)||Ob(le)||A1(le)}function en(le,_t){const ne=J.isEntityNameVisible(le,_t);ue(ne)}function or(le,_t){return rf(le)&&rf(_t)&&(le.jsDoc=_t.jsDoc),Nc(le,n_(_t))}function Ni(le,_t){if(_t){if(s=s||le.kind!==268&&le.kind!==206,ds(_t)&&o){const ne=Kne(e.getEmitHost(),J,le);if(ne)return E.createStringLiteral(ne)}return _t}}function so(le){if(J.isDeclarationVisible(le))if(le.moduleReference.kind===284){const _t=tM(le);return E.updateImportEqualsDeclaration(le,le.modifiers,le.isTypeOnly,le.name,E.updateExternalModuleReference(le.moduleReference,Ni(le,_t)))}else{const _t=r;return r=d0(le),en(le.moduleReference,d),r=_t,le}}function zt(le){if(!le.importClause)return E.updateImportDeclaration(le,le.modifiers,le.importClause,Ni(le,le.moduleSpecifier),Zr(le.attributes));const _t=le.importClause.phaseModifier===166?void 0:le.importClause.phaseModifier,ne=le.importClause&&le.importClause.name&&J.isDeclarationVisible(le.importClause)?le.importClause.name:void 0;if(!le.importClause.namedBindings)return ne&&E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,_t,ne,void 0),Ni(le,le.moduleSpecifier),Zr(le.attributes));if(le.importClause.namedBindings.kind===275){const it=J.isDeclarationVisible(le.importClause.namedBindings)?le.importClause.namedBindings:void 0;return ne||it?E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,_t,ne,it),Ni(le,le.moduleSpecifier),Zr(le.attributes)):void 0}const Fe=Ei(le.importClause.namedBindings.elements,it=>J.isDeclarationVisible(it)?it:void 0);if(Fe&&Fe.length||ne)return E.updateImportDeclaration(le,le.modifiers,E.updateImportClause(le.importClause,_t,ne,Fe&&Fe.length?E.updateNamedImports(le.importClause.namedBindings,Fe):void 0),Ni(le,le.moduleSpecifier),Zr(le.attributes));if(J.isImportRequiredByAugmentation(le))return oe&&e.addDiagnostic(Ar(le,f.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),E.updateImportDeclaration(le,le.modifiers,void 0,Ni(le,le.moduleSpecifier),Zr(le.attributes))}function Zr(le){const _t=$D(le);return le&&_t!==void 0?le:void 0}function xi(le){for(;Qe(_);){const ne=_.shift();if(!qF(ne))return C.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${C.formatSyntaxKind(ne.kind)}`);const Fe=i;i=ne.parent&&Xi(ne.parent)&&!(Vc(ne.parent)&&o);const it=hn(ne);i=Fe,h.set(Gu(ne),it)}return Xn(le,_t,ji);function _t(ne){if(qF(ne)){const Fe=Gu(ne);if(h.has(Fe)){const it=h.get(Fe);return h.delete(Fe),it&&((No(it)?vt(it,CF):CF(it))&&(l=!0),Xi(ne.parent)&&(No(it)?vt(it,Y2):Y2(it))&&(s=!0)),it}}return ne}}function Pi(le){if(Qo(le))return;if(id(le)){if(We(le))return;if(cy(le)){if(oe){if(!J.isDefinitelyReferenceToGlobalSymbolObject(le.name.expression)){if(Mc(le.parent)||za(le.parent)){e.addDiagnostic(Ar(le,f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((yd(le.parent)||Fu(le.parent))&&!Ns(le.name.expression)){e.addDiagnostic(Ar(le,f.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!J.isLateBound(jo(le))||!Ns(le.name.expression))return}}if($o(le)&&J.isImplementationOfOverload(le)||Hie(le))return;let _t;gt(le)&&(_t=d,d=le);const ne=r,Fe=Zw(le),it=y;let dt=(le.kind===188||le.kind===201)&&le.parent.kind!==266;if((Ll(le)||qm(le))&&Fp(le,2))return le.symbol&&le.symbol.declarations&&le.symbol.declarations[0]!==le?void 0:Lt(E.createPropertyDeclaration(Uo(le),le.name,void 0,void 0,void 0));if(Fe&&!y&&(r=d0(le)),VS(le)&&en(le.exprName,d),dt&&(y=!0),cJe(le))switch(le.kind){case 234:{(ku(le.expression)||Ns(le.expression))&&en(le.expression,d);const He=On(le,Pi,e);return Lt(E.updateExpressionWithTypeArguments(He,He.expression,He.typeArguments))}case 184:{en(le.typeName,d);const He=On(le,Pi,e);return Lt(E.updateTypeReferenceNode(He,He.typeName,He.typeArguments))}case 181:return Lt(E.updateConstructSignature(le,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 177:{const He=E.createConstructorDeclaration(Uo(le),cn(le,le.parameters,0),void 0);return Lt(He)}case 175:{if(Qi(le.name))return Lt(void 0);const He=E.createMethodDeclaration(Uo(le),void 0,le.name,le.questionToken,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le),void 0);return Lt(He)}case 178:return Qi(le.name)?Lt(void 0):Lt(E.updateGetAccessorDeclaration(le,Uo(le),le.name,gn(le,Fp(le,2)),Ge(le),void 0));case 179:return Qi(le.name)?Lt(void 0):Lt(E.updateSetAccessorDeclaration(le,Uo(le),le.name,gn(le,Fp(le,2)),void 0));case 173:return Qi(le.name)?Lt(void 0):Lt(E.updatePropertyDeclaration(le,Uo(le),le.name,le.questionToken,Ge(le),Ue(le)));case 172:return Qi(le.name)?Lt(void 0):Lt(E.updatePropertySignature(le,Uo(le),le.name,le.questionToken,Ge(le)));case 174:return Qi(le.name)?Lt(void 0):Lt(E.updateMethodSignature(le,Uo(le),le.name,le.questionToken,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 180:return Lt(E.updateCallSignature(le,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 182:return Lt(E.updateIndexSignature(le,Uo(le),cn(le,le.parameters),st(le.type,Pi,Ci)||E.createKeywordTypeNode(133)));case 261:return Zo(le.name)?ri(le.name):(dt=!0,y=!0,Lt(E.updateVariableDeclaration(le,le.name,void 0,Ge(le),Ue(le))));case 169:return Pr(le)&&(le.default||le.constraint)?Lt(E.updateTypeParameterDeclaration(le,le.modifiers,le.name,void 0,void 0)):Lt(On(le,Pi,e));case 195:{const He=st(le.checkType,Pi,Ci),Rt=st(le.extendsType,Pi,Ci),It=d;d=le.trueType;const Ot=st(le.trueType,Pi,Ci);d=It;const nt=st(le.falseType,Pi,Ci);return C.assert(He),C.assert(Rt),C.assert(Ot),C.assert(nt),Lt(E.updateConditionalTypeNode(le,He,Rt,Ot,nt))}case 185:return Lt(E.updateFunctionTypeNode(le,Xn(le.typeParameters,Pi,cl),cn(le,le.parameters),C.checkDefined(st(le.type,Pi,Ci))));case 186:return Lt(E.updateConstructorTypeNode(le,Uo(le),Xn(le.typeParameters,Pi,cl),cn(le,le.parameters),C.checkDefined(st(le.type,Pi,Ci))));case 206:return sy(le)?Lt(E.updateImportTypeNode(le,E.updateLiteralTypeNode(le.argument,Ni(le,le.argument.literal)),le.attributes,le.qualifier,Xn(le.typeArguments,Pi,Ci),le.isTypeOf)):Lt(le);default:C.assertNever(le,`Attempted to process unhandled node kind: ${C.formatSyntaxKind(le.kind)}`)}return $I(le)&&ca(F,le.pos).line===ca(F,le.end).line&&Cr(le,1),Lt(On(le,Pi,e));function Lt(He){return He&&Fe&&cy(le)&&qi(le),gt(le)&&(d=_t),Fe&&!y&&(r=ne),dt&&(y=it),He===le?He:He&&jr(or(He,le),le)}}function Pr(le){return le.parent.kind===175&&Fp(le.parent,2)}function Mi(le){if(!lJe(le)||Qo(le))return;switch(le.kind){case 279:return Xi(le.parent)&&(s=!0),u=!0,E.updateExportDeclaration(le,le.modifiers,le.isTypeOnly,le.exportClause,Ni(le,le.moduleSpecifier),Zr(le.attributes));case 278:{if(Xi(le.parent)&&(s=!0),u=!0,le.expression.kind===80)return le;{const ne=E.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:le}),k=le;const Fe=Ge(le),it=E.createVariableDeclaration(ne,void 0,Fe,void 0);k=void 0;const dt=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([it],2));return or(dt,le),hw(le),[dt,E.updateExportAssignment(le,le.modifiers,ne)]}}}const _t=hn(le);return h.set(Gu(le),_t),le}function $e(le){if(Gc(le)||Fp(le,2048)||!Rm(le))return le;const _t=E.createModifiersFromModifierFlags(Ud(le)&131039);return E.replaceModifiers(le,_t)}function At(le,_t,ne,Fe){const it=E.updateModuleDeclaration(le,_t,ne,Fe);if(Tu(it)||it.flags&32)return it;const dt=E.createModuleDeclaration(it.modifiers,it.name,it.body,it.flags|32);return jr(dt,it),bt(dt,it),dt}function hn(le){if(_)for(;bN(_,le););if(Qo(le))return;switch(le.kind){case 272:return so(le);case 273:return zt(le)}if(id(le)&&We(le)||l_(le)||$o(le)&&J.isImplementationOfOverload(le))return;let _t;gt(le)&&(_t=d,d=le);const ne=Zw(le),Fe=r;ne&&(r=d0(le));const it=i;switch(le.kind){case 266:{i=!1;const Lt=dt(E.updateTypeAliasDeclaration(le,Uo(le),le.name,Xn(le.typeParameters,Pi,cl),C.checkDefined(st(le.type,Pi,Ci))));return i=it,Lt}case 265:return dt(E.updateInterfaceDeclaration(le,Uo(le),le.name,Kn(le,le.typeParameters),Ft(le.heritageClauses),Xn(le.members,Pi,bS)));case 263:{const Lt=dt(E.updateFunctionDeclaration(le,Uo(le),void 0,le.name,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le),void 0));if(Lt&&J.isExpandoFunctionDeclaration(le)&&at(le)){const He=J.getPropertiesOfContainerFunction(le);oe&&K(le);const Rt=a0.createModuleDeclaration(void 0,Lt.name||E.createIdentifier("_default"),E.createModuleBlock([]),32);ps(Rt,d),Rt.locals=da(He),Rt.symbol=He[0].parent;const It=[];let Ot=Ei(He,ge=>{if(!VI(ge.valueDeclaration))return;const B=Vi(ge.escapedName);if(!_p(B,99))return;r=d0(ge.valueDeclaration);const Ie=J.createTypeOfDeclaration(ge.valueDeclaration,Rt,eO,tO|2,N);r=Fe;const te=RI(B),xt=te?E.getGeneratedNameForNode(ge.valueDeclaration):E.createIdentifier(B);te&&It.push([xt,B]);const Kt=E.createVariableDeclaration(xt,void 0,Ie,void 0);return E.createVariableStatement(te?void 0:[E.createToken(95)],E.createVariableDeclarationList([Kt]))});It.length?Ot.push(E.createExportDeclaration(void 0,!1,E.createNamedExports(Yt(It,([ge,B])=>E.createExportSpecifier(!1,ge,B))))):Ot=Ei(Ot,ge=>E.replaceModifiers(ge,0));const nt=E.createModuleDeclaration(Uo(le),le.name,E.createModuleBlock(Ot),32);if(!Fp(Lt,2048))return[Lt,nt];const Jt=E.createModifiersFromModifierFlags(Ud(Lt)&-2081|128),Tr=E.updateFunctionDeclaration(Lt,Jt,void 0,Lt.name,Lt.typeParameters,Lt.parameters,Lt.type,void 0),Oe=E.updateModuleDeclaration(nt,Jt,nt.name,nt.body),Nt=E.createExportAssignment(void 0,!1,nt.name);return Xi(le.parent)&&(s=!0),u=!0,[Tr,Oe,Nt]}else return Lt}case 268:{i=!1;const Lt=le.body;if(Lt&&Lt.kind===269){const He=l,Rt=u;u=!1,l=!1;const It=Xn(Lt.statements,Mi,ji);let Ot=xi(It);le.flags&33554432&&(l=!1),!L_(le)&&!Pn(Ot)&&!u&&(l?Ot=E.createNodeArray([...Ot,xw(E)]):Ot=Xn(Ot,$e,ji));const nt=E.updateModuleBlock(Lt,Ot);i=it,l=He,u=Rt;const Jt=Uo(le);return dt(At(le,Jt,IS(le)?Ni(le,le.name):le.name,nt))}else{i=it;const He=Uo(le);i=!1,st(Lt,Mi);const Rt=Gu(Lt),It=h.get(Rt);return h.delete(Rt),dt(At(le,He,le.name,It))}}case 264:{P=le.name,k=le;const Lt=E.createNodeArray(Uo(le)),He=Kn(le,le.typeParameters),Rt=Eg(le);let It;if(Rt){const ge=r;It=b2(fi(Rt.parameters,B=>{if(!di(B,31)||Qo(B))return;if(r=d0(B),B.name.kind===80)return or(E.createPropertyDeclaration(Uo(B),B.name,B.questionToken,Ge(B),Ue(B)),B);return Ie(B.name);function Ie(te){let xt;for(const Kt of te.elements)Xc(Kt)||(Zo(Kt.name)&&(xt=ao(xt,Ie(Kt.name))),xt=xt||[],xt.push(E.createPropertyDeclaration(Uo(B),Kt.name,void 0,Ge(Kt),void 0)));return xt}})),r=ge}const nt=vt(le.members,ge=>!!ge.name&&Qi(ge.name))?[E.createPropertyDeclaration(void 0,E.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Jt=J.createLateBoundIndexSignatures(le,d,eO,tO,N),Tr=ao(ao(ao(nt,Jt),It),Xn(le.members,Pi,Sc)),Oe=E.createNodeArray(Tr),Nt=uh(le);if(Nt&&!Ns(Nt.expression)&&Nt.expression.kind!==106){const ge=le.name?Vi(le.name.escapedText):"default",B=E.createUniqueName(`${ge}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Nt,typeName:le.name});const Ie=E.createVariableDeclaration(B,void 0,J.createTypeOfExpression(Nt.expression,le,eO,tO,N),void 0),te=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([Ie],2)),xt=E.createNodeArray(Yt(le.heritageClauses,Kt=>{if(Kt.token===96){const Le=r;r=d0(Kt.types[0]);const yt=E.updateHeritageClause(Kt,Yt(Kt.types,Bt=>E.updateExpressionWithTypeArguments(Bt,B,Xn(Bt.typeArguments,Pi,Ci))));return r=Le,yt}return E.updateHeritageClause(Kt,Xn(E.createNodeArray(Un(Kt.types,Le=>Ns(Le.expression)||Le.expression.kind===106)),Pi,my))}));return[te,dt(E.updateClassDeclaration(le,Lt,le.name,He,xt,Oe))]}else{const ge=Ft(le.heritageClauses);return dt(E.updateClassDeclaration(le,Lt,le.name,He,ge,Oe))}}case 244:return dt(dr(le));case 267:return dt(E.updateEnumDeclaration(le,E.createNodeArray(Uo(le)),le.name,E.createNodeArray(Ei(le.members,Lt=>{if(Qo(Lt))return;const He=J.getEnumMemberValue(Lt),Rt=He?.value;oe&&Lt.initializer&&He?.hasExternalReferences&&!va(Lt.name)&&e.addDiagnostic(Ar(Lt,f.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));const It=Rt===void 0?void 0:typeof Rt=="string"?E.createStringLiteral(Rt):Rt<0?E.createPrefixUnaryExpression(41,E.createNumericLiteral(-Rt)):E.createNumericLiteral(Rt);return or(E.updateEnumMember(Lt,Lt.name,It),Lt)}))))}return C.assertNever(le,`Unhandled top-level node in declaration emit: ${C.formatSyntaxKind(le.kind)}`);function dt(Lt){return gt(le)&&(d=_t),ne&&(r=Fe),le.kind===268&&(i=it),Lt===le?Lt:(k=void 0,P=void 0,Lt&&jr(or(Lt,le),le))}}function dr(le){if(!qe(le.declarationList.declarations,Wt))return;const _t=Xn(le.declarationList.declarations,Pi,yi);if(!Qe(_t))return;const ne=E.createNodeArray(Uo(le));let Fe;return dk(le.declarationList)||ck(le.declarationList)?(Fe=E.createVariableDeclarationList(_t,2),jr(Fe,le.declarationList),bt(Fe,le.declarationList),Nc(Fe,le.declarationList)):Fe=E.updateVariableDeclarationList(le.declarationList,_t),E.updateVariableStatement(le,ne,Fe)}function ri(le){return Yo(Ei(le.elements,_t=>ai(_t)))}function ai(le){if(le.kind!==233&&le.name)return Wt(le)?Zo(le.name)?ri(le.name):E.createVariableDeclaration(le.name,void 0,Ge(le),void 0):void 0}function qi(le){let _t;y||(_t=r,r=hse(le)),P=le.name,C.assert(cy(le));const Fe=le.name.expression;en(Fe,d),y||(r=_t),P=void 0}function Qo(le){return!!ve&&!!le&&jte(le,F)}function Ia(le){return dl(le)||hc(le)}function Pn(le){return vt(le,Ia)}function Uo(le){const _t=Ud(le),ne=ot(le);return _t===ne?fP(le.modifiers,Fe=>ni(Fe,Aa),Aa):E.createModifiersFromModifierFlags(ne)}function ot(le){let _t=130030,ne=i&&!aJe(le)?128:0;const Fe=le.parent.kind===308;return(!Fe||o&&Fe&&Vc(le.parent))&&(_t^=128,ne=0),kAe(le,_t,ne)}function Ft(le){return E.createNodeArray(Un(Yt(le,_t=>E.updateHeritageClause(_t,Xn(E.createNodeArray(Un(_t.types,ne=>Ns(ne.expression)||_t.token===96&&ne.expression.kind===106)),Pi,my))),_t=>_t.types&&!!_t.types.length))}}function aJe(e){return e.kind===265}function sJe(e,t,r,i){return e.createModifiersFromModifierFlags(kAe(t,r,i))}function kAe(e,t=131070,r=0){let i=Ud(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function wAe(e){switch(e.kind){case 173:case 172:return!Fp(e,2);case 170:case 261:return!0}return!1}function lJe(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}function cJe(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}function dJe(e){switch(e){case 200:return fH;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return mse;case 4:return fse;default:return pH}}var yse={scriptTransformers:ie,declarationTransformers:ie};function vse(e,t,r){return{scriptTransformers:uJe(e,t,r),declarationTransformers:pJe(t)}}function uJe(e,t,r){if(r)return ie;const i=Va(e),o=Eu(e),s=Zk(e),l=[];return Xr(l,t&&Yt(t.before,WAe)),l.push(Yae),e.experimentalDecorators&&l.push(Zae),J6(e)&&l.push(cse),i<99&&l.push(ase),!e.experimentalDecorators&&(i<99||!s)&&l.push(ese),l.push($ae),i<8&&l.push(ose),i<7&&l.push(ise),i<6&&l.push(rse),i<5&&l.push(nse),i<4&&l.push(tse),i<3&&l.push(dse),i<2&&(l.push(use),l.push(pse)),l.push(dJe(o)),Xr(l,t&&Yt(t.after,WAe)),l}function pJe(e){const t=[];return t.push(mH),Xr(t,e&&Yt(e.afterDeclarations,mJe)),t}function fJe(e){return t=>$ie(t)?e.transformBundle(t):e.transformSourceFile(t)}function OAe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):fJe(i)}}function WAe(e){return OAe(e,yh)}function mJe(e){return OAe(e,(t,r)=>r)}function bP(e,t){return t}function nO(e,t,r){r(e,t)}function rO(e,t,r,i,o,s,l){var u,d;const _=new Array(359);let h,y,E,A=0,R=[],N=[],P=[],k=[],F=0,W=!1,G=[],j=0,J,Z,q=bP,ve=nO,oe=0;const K=[],fe={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Lu(()=>Mie(fe)),startLexicalEnvironment:ce,suspendLexicalEnvironment:Ce,resumeLexicalEnvironment:ye,endLexicalEnvironment:Ue,setLexicalEnvironmentFlags:Ge,getLexicalEnvironmentFlags:We,hoistVariableDeclaration:Me,hoistFunctionDeclaration:Be,addInitializationStatement:lt,startBlockScope:at,endBlockScope:Wt,addBlockScopedVariable:cn,requestEmitHelper:gn,readEmitHelpers:Kn,enableSubstitution:Y,enableEmitNotification:Ee,isSubstitutionEnabled:Ne,isEmitNotificationEnabled:re,get onSubstituteNode(){return q},set onSubstituteNode(en){C.assert(oe<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),q=en},get onEmitNode(){return ve},set onEmitNode(en){C.assert(oe<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),ve=en},addDiagnostic(en){K.push(en)}};for(const en of o)Tj(zn(jo(en)));Nl("beforeTransform");const ue=s.map(en=>en(fe)),me=en=>{for(const or of ue)en=or(en);return en};oe=1;const be=[];for(const en of o)(u=xr)==null||u.push(xr.Phase.Emit,"transformNodes",en.kind===308?{path:en.path}:{kind:en.kind,pos:en.pos,end:en.end}),be.push((l?me:De)(en)),(d=xr)==null||d.pop();return oe=2,Nl("afterTransform"),zf("transformTime","beforeTransform","afterTransform"),{transformed:be,substituteNode:Xe,emitNodeWithNotification:Te,isEmitNotificationEnabled:re,dispose:gt,diagnostics:K};function De(en){return en&&(!Xi(en)||!en.isDeclarationFile)?me(en):en}function Y(en){C.assert(oe<2,"Cannot modify the transformation context after transformation has completed."),_[en]|=1}function Ne(en){return(_[en.kind]&1)!==0&&(Za(en)&8)===0}function Xe(en,or){return C.assert(oe<3,"Cannot substitute a node after the result is disposed."),or&&Ne(or)&&q(en,or)||or}function Ee(en){C.assert(oe<2,"Cannot modify the transformation context after transformation has completed."),_[en]|=2}function re(en){return(_[en.kind]&2)!==0||(Za(en)&4)!==0}function Te(en,or,Ni){C.assert(oe<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),or&&(re(or)?ve(en,or,Ni):Ni(en,or))}function Me(en){C.assert(oe>0,"Cannot modify the lexical environment during initialization."),C.assert(oe<2,"Cannot modify the lexical environment after transformation has completed.");const or=Cr(r.createVariableDeclaration(en),128);h?h.push(or):h=[or],A&1&&(A|=2)}function Be(en){C.assert(oe>0,"Cannot modify the lexical environment during initialization."),C.assert(oe<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),y?y.push(en):y=[en]}function lt(en){C.assert(oe>0,"Cannot modify the lexical environment during initialization."),C.assert(oe<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),E?E.push(en):E=[en]}function ce(){C.assert(oe>0,"Cannot modify the lexical environment during initialization."),C.assert(oe<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!W,"Lexical environment is suspended."),R[F]=h,N[F]=y,P[F]=E,k[F]=A,F++,h=void 0,y=void 0,E=void 0,A=0}function Ce(){C.assert(oe>0,"Cannot modify the lexical environment during initialization."),C.assert(oe<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!W,"Lexical environment is already suspended."),W=!0}function ye(){C.assert(oe>0,"Cannot modify the lexical environment during initialization."),C.assert(oe<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(W,"Lexical environment is not suspended."),W=!1}function Ue(){C.assert(oe>0,"Cannot modify the lexical environment during initialization."),C.assert(oe<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!W,"Lexical environment is suspended.");let en;if(h||y||E){if(y&&(en=[...y]),h){const or=r.createVariableStatement(void 0,r.createVariableDeclarationList(h));Cr(or,2097152),en?en.push(or):en=[or]}E&&(en?en=[...en,...E]:en=[...E])}return F--,h=R[F],y=N[F],E=P[F],A=k[F],F===0&&(R=[],N=[],P=[],k=[]),en}function Ge(en,or){A=or?A|en:A&~en}function We(){return A}function at(){C.assert(oe>0,"Cannot start a block scope during initialization."),C.assert(oe<2,"Cannot start a block scope after transformation has completed."),G[j]=J,j++,J=void 0}function Wt(){C.assert(oe>0,"Cannot end a block scope during initialization."),C.assert(oe<2,"Cannot end a block scope after transformation has completed.");const en=vt(J)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(J.map(or=>r.createVariableDeclaration(or)),1))]:void 0;return j--,J=G[j],j===0&&(G=[]),en}function cn(en){C.assert(j>0,"Cannot add a block scoped variable outside of an iteration body."),(J||(J=[])).push(en)}function gn(en){if(C.assert(oe>0,"Cannot modify the transformation context during initialization."),C.assert(oe<2,"Cannot modify the transformation context after transformation has completed."),C.assert(!en.scoped,"Cannot request a scoped emit helper."),en.dependencies)for(const or of en.dependencies)gn(or);Z=Vn(Z,en)}function Kn(){C.assert(oe>0,"Cannot modify the transformation context during initialization."),C.assert(oe<2,"Cannot modify the transformation context after transformation has completed.");const en=Z;return Z=void 0,en}function gt(){if(oe<3){for(const en of o)Tj(zn(jo(en)));h=void 0,R=void 0,y=void 0,N=void 0,q=void 0,ve=void 0,Z=void 0,oe=3}}}var iO={factory:L,getCompilerOptions:()=>({}),getEmitResolver:ha,getEmitHost:ha,getEmitHelperFactory:ha,startLexicalEnvironment:gs,resumeLexicalEnvironment:gs,suspendLexicalEnvironment:gs,endLexicalEnvironment:hS,setLexicalEnvironmentFlags:gs,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:gs,hoistFunctionDeclaration:gs,addInitializationStatement:gs,startBlockScope:gs,endBlockScope:hS,addBlockScopedVariable:gs,requestEmitHelper:gs,readEmitHelpers:ha,enableSubstitution:gs,enableEmitNotification:gs,isSubstitutionEnabled:ha,isEmitNotificationEnabled:ha,onSubstituteNode:bP,onEmitNode:nO,addDiagnostic:gs},FAe=_Je();function bse(e){return xl(e,".tsbuildinfo")}function hH(e,t,r,i=!1,o,s){const l=No(r)?r:x6(e,r,i),u=e.getCompilerOptions();if(!o)if(u.outFile){if(l.length){const d=L.createBundle(l),_=t(TP(d,e,i),d);if(_)return _}}else for(const d of l){const _=t(TP(d,e,i),d);if(_)return _}if(s){const d=u0(u);if(d)return t({buildInfoPath:d},void 0)}}function u0(e){const t=e.configFilePath;if(!hJe(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=e.outFile;let i;if(r)i=Au(r);else{if(!t)return;const o=Au(t);i=e.outDir?e.rootDir?ub(e.outDir,uf(e.rootDir,o,!0)):Qr(e.outDir,Dc(o)):o}return i+".tsbuildinfo"}function hJe(e){return FS(e)||!!e.tscBuild}function Tse(e,t){const r=e.outFile,i=e.emitDeclarationOnly?void 0:r,o=i&&zAe(i,e),s=t||vp(e)?Au(r)+".d.ts":void 0,l=s&&j6(e)?s+".map":void 0;return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l}}function TP(e,t,r){const i=t.getCompilerOptions();if(e.kind===309)return Tse(i,r);{const o=Xne(e.fileName,t,oO(e.fileName,i)),s=Vf(e),l=s&&ry(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,d=!u||Vf(e)?void 0:zAe(u,i),_=r||vp(i)&&!s?Yne(e.fileName,t):void 0,h=_&&j6(i)?_+".map":void 0;return{jsFilePath:u,sourceMapFilePath:d,declarationFilePath:_,declarationMapPath:h}}}function zAe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function oO(e,t){return xl(e,".json")?".json":t.jsx===1&&tc(e,[".jsx",".tsx"])?".jsx":tc(e,[".mts",".mjs"])?".mjs":tc(e,[".cts",".cjs"])?".cjs":".js"}function BAe(e,t,r,i){return r?ub(r,uf(i(),e,t)):e}function SP(e,t,r,i=()=>z1(t,r)){return _H(e,t.options,r,i)}function _H(e,t,r,i){return lv(BAe(e,r,t.declarationDir||t.outDir,i),A6(e))}function GAe(e,t,r,i=()=>z1(t,r)){if(t.options.emitDeclarationOnly)return;const o=xl(e,".json"),s=gH(e,t.options,r,i);return!o||ry(e,s,C.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function gH(e,t,r,i){return lv(BAe(e,r,t.outDir,i),oO(e,t))}function VAe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||ie}}function jAe(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s}=Tse(e.options,!1);t(r),t(i),t(o),t(s)}function UAe(e,t,r,i,o){if(sd(t))return;const s=GAe(t,e,r,o);if(i(s),!xl(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),vp(e.options))){const l=SP(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function EP(e,t,r,i,o){let s;return e.rootDir?(s=bo(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=ci(jd(e.configFilePath)),o?.(s)):s=Cse(t(),r,i),s&&s[s.length-1]!==Xs&&(s+=Xs),s}function z1({options:e,fileNames:t},r){return EP(e,()=>Un(t,i=>!(e.noEmitForJsFiles&&tc(i,vD))&&!sd(i)),ci(jd(C.checkDefined(e.configFilePath))),Gd(!r))}function M3(e,t){const{addOutput:r,getOutputs:i}=VAe();if(e.options.outFile)jAe(e,r);else{const o=Lu(()=>z1(e,t));for(const s of e.fileNames)UAe(e,s,t,r,o)}return r(u0(e.options)),i()}function HAe(e,t,r){t=ya(t),C.assert(jn(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=VAe();return e.options.outFile?jAe(e,i):UAe(e,t,r,i),o()}function yH(e,t){if(e.options.outFile){const{jsFilePath:o,declarationFilePath:s}=Tse(e.options,!1);return C.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}const r=Lu(()=>z1(e,t));for(const o of e.fileNames){if(sd(o))continue;const s=GAe(o,e,t,r);if(s)return s;if(!xl(o,".json")&&vp(e.options))return SP(o,e,t,r)}const i=u0(e.options);return i||C.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function vH(e,t){return!!t&&!!e}function bH(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u,d){var _=t.getCompilerOptions(),h=_.sourceMap||_.inlineSourceMap||j6(_)?[]:void 0,y=_.listEmittedFiles?[]:void 0,E=hM(),A=av(_),R=Bk(A),{enter:N,exit:P}=f9("printTime","beforePrint","afterPrint"),k=!1;return N(),hH(t,F,x6(t,r,u),u,l,!r&&!d),P(),{emitSkipped:k,diagnostics:E.getDiagnostics(),emittedFiles:y,sourceMaps:h};function F({jsFilePath:ue,sourceMapFilePath:me,declarationFilePath:be,declarationMapPath:De,buildInfoPath:Y},Ne){var Xe,Ee,re,Te,Me,Be;(Xe=xr)==null||Xe.push(xr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:ue}),G(Ne,ue,me),(Ee=xr)==null||Ee.pop(),(re=xr)==null||re.push(xr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:be}),j(Ne,be,De),(Te=xr)==null||Te.pop(),(Me=xr)==null||Me.push(xr.Phase.Emit,"emitBuildInfo",{buildInfoPath:Y}),W(Y),(Be=xr)==null||Be.pop()}function W(ue){if(!ue||r)return;if(t.isEmitBlocked(ue)){k=!0;return}const me=t.getBuildInfo()||{version:Re};D6(t,E,ue,Sse(me),!1,void 0,{buildInfo:me}),y?.push(ue)}function G(ue,me,be){if(!ue||s||!me)return;if(t.isEmitBlocked(me)||_.noEmit){k=!0;return}(Xi(ue)?[ue]:Un(ue.sourceFiles,c6)).forEach(Xe=>{(_.noCheck||!PM(Xe,_))&&Z(Xe)});const De=rO(e,t,L,_,[ue],i,!1),Y={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:Eu(_),moduleResolution:su(_),target:Va(_),sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics},Ne=Ub(Y,{hasGlobalName:e.hasGlobalName,onEmitNode:De.emitNodeWithNotification,isEmitNotificationEnabled:De.isEmitNotificationEnabled,substituteNode:De.substituteNode});C.assert(De.transformed.length===1,"Should only see one output from the transform"),q(me,be,De,Ne,_),De.dispose(),y&&(y.push(me),be&&y.push(be))}function j(ue,me,be){if(!ue||s===0)return;if(!me){(s||_.emitDeclarationOnly)&&(k=!0);return}const De=Xi(ue)?[ue]:ue.sourceFiles,Y=u?De:Un(De,c6),Ne=_.outFile?[L.createBundle(Y)]:Y;Y.forEach(re=>{(s&&!vp(_)||_.noCheck||vH(s,u)||!PM(re,_))&&J(re)});const Xe=rO(e,t,L,_,Ne,o,!1);if(Qe(Xe.diagnostics))for(const re of Xe.diagnostics)E.add(re);const Ee=!!Xe.diagnostics&&!!Xe.diagnostics.length||!!t.isEmitBlocked(me)||!!_.noEmit;if(k=k||Ee,!Ee||u){C.assert(Xe.transformed.length===1,"Should only see one output from the decl transform");const re={removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,moduleResolution:_.moduleResolution,target:_.target,sourceMap:s!==2&&_.declarationMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},Te=Ub(re,{hasGlobalName:e.hasGlobalName,onEmitNode:Xe.emitNodeWithNotification,isEmitNotificationEnabled:Xe.isEmitNotificationEnabled,substituteNode:Xe.substituteNode}),Me=q(me,be,Xe,Te,{sourceMap:re.sourceMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics});y&&(Me&&y.push(me),be&&y.push(be))}Xe.dispose()}function J(ue){if(dl(ue)){ue.expression.kind===80&&e.collectLinkedAliases(ue.expression,!0);return}else if(lu(ue)){e.collectLinkedAliases(ue.propertyName||ue.name,!0);return}Jo(ue,J)}function Z(ue){wu(ue)||ox(ue,me=>{if(Gc(me)&&!(iv(me)&32)||Tl(me))return"skip";e.markLinkedReferences(me)})}function q(ue,me,be,De,Y){const Ne=be.transformed[0],Xe=Ne.kind===309?Ne:void 0,Ee=Ne.kind===308?Ne:void 0,re=Xe?Xe.sourceFiles:[Ee];let Te;ve(Y,Ne)&&(Te=Pae(t,Dc(jd(ue)),oe(Y),K(Y,ue,Ee),Y)),Xe?De.writeBundle(Xe,R,Te):De.writeFile(Ee,R,Te);let Me;if(Te){h&&h.push({inputSourceFileNames:Te.getSources(),sourceMap:Te.toJSON()});const ce=fe(Y,Te,ue,me,Ee);if(ce&&(R.isAtStartOfLine()||R.rawWrite(A),Me=R.getTextPos(),R.writeComment(`//# sourceMappingURL=${ce}`)),me){const Ce=Te.toString();D6(t,E,me,Ce,!1,re)}}else R.writeLine();const Be=R.getText(),lt={sourceMapUrlPos:Me,diagnostics:be.diagnostics};return D6(t,E,ue,Be,!!_.emitBOM,re,lt),R.clear(),!lt.skippedDtsWrite}function ve(ue,me){return(ue.sourceMap||ue.inlineSourceMap)&&(me.kind!==308||!xl(me.fileName,".json"))}function oe(ue){const me=jd(ue.sourceRoot||"");return me&&qc(me)}function K(ue,me,be){if(ue.sourceRoot)return t.getCommonSourceDirectory();if(ue.mapRoot){let De=jd(ue.mapRoot);return be&&(De=ci(R6(be.fileName,t,De))),Vh(De)===0&&(De=Qr(t.getCommonSourceDirectory(),De)),De}return ci(ya(me))}function fe(ue,me,be,De,Y){if(ue.inlineSourceMap){const Xe=me.toString();return`data:application/json;base64,${pre(Hc,Xe)}`}const Ne=Dc(jd(C.checkDefined(De)));if(ue.mapRoot){let Xe=jd(ue.mapRoot);return Y&&(Xe=ci(R6(Y.fileName,t,Xe))),Vh(Xe)===0?(Xe=Qr(t.getCommonSourceDirectory(),Xe),encodeURI(FR(ci(ya(be)),Qr(Xe,Ne),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Qr(Xe,Ne))}return encodeURI(Ne)}}function Sse(e){return JSON.stringify(e)}function TH(e,t){return CV(e,t)}var Ese={hasGlobalName:ha,getReferencedExportContainer:ha,getReferencedImportDeclaration:ha,getReferencedDeclarationWithCollidingName:ha,isDeclarationWithCollidingName:ha,isValueAliasDeclaration:ha,isReferencedAliasDeclaration:ha,isTopLevelValueImportEqualsWithEntityName:ha,hasNodeCheckFlag:ha,isDeclarationVisible:ha,isLateBound:e=>!1,collectLinkedAliases:ha,markLinkedReferences:ha,isImplementationOfOverload:ha,requiresAddingImplicitUndefined:ha,isExpandoFunctionDeclaration:ha,getPropertiesOfContainerFunction:ha,createTypeOfDeclaration:ha,createReturnTypeOfSignatureDeclaration:ha,createTypeOfExpression:ha,createLiteralConstValue:ha,isSymbolAccessible:ha,isEntityNameVisible:ha,getConstantValue:ha,getEnumMemberValue:ha,getReferencedValueDeclaration:ha,getReferencedValueDeclarations:ha,getTypeReferenceSerializationKind:ha,isOptionalParameter:ha,isArgumentsLocalBinding:ha,getExternalModuleFileFromDeclaration:ha,isLiteralConstDeclaration:ha,getJsxFactoryEntity:ha,getJsxFragmentFactoryEntity:ha,isBindingCapturedByNode:ha,getDeclarationStatementsForSourceFile:ha,isImportRequiredByAugmentation:ha,isDefinitelyReferenceToGlobalSymbolObject:ha,createLateBoundIndexSignatures:ha,symbolToDeclarations:ha},Ase=Lu(()=>Ub({})),eE=Lu(()=>Ub({removeComments:!0})),Ise=Lu(()=>Ub({removeComments:!0,neverAsciiEscape:!0})),SH=Lu(()=>Ub({removeComments:!0,omitTrailingSemicolon:!0}));function Ub(e={},t={}){var{hasGlobalName:r,onEmitNode:i=nO,isEmitNotificationEnabled:o,substituteNode:s=bP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:_,onBeforeEmitToken:h,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,A=!!e.omitBraceSourceMapPositions,R=av(e),N=Eu(e),P=new Map,k,F,W,G,j,J,Z,q,ve,oe,K,fe,ue,me,be,De=e.preserveSourceNewlines,Y,Ne,Xe,Ee=PC,re,Te=!0,Me,Be,lt=-1,ce,Ce=-1,ye=-1,Ue=-1,Ge=-1,We,at,Wt=!1,cn=!!e.removeComments,gn,Kn,{enter:gt,exit:en}=XTe(E,"commentTime","beforeComment","afterComment"),or=L.parenthesizer,Ni={select:D=>D===0?or.parenthesizeLeadingTypeArgument:void 0},so=kc();return Qo(),{printNode:zt,printList:Zr,printFile:Pi,printBundle:xi,writeNode:Pr,writeList:Mi,writeFile:At,writeBundle:$e};function zt(D,he,Et){switch(D){case 0:C.assert(Xi(he),"Expected a SourceFile node.");break;case 2:C.assert(Je(he),"Expected an Identifier node.");break;case 1:C.assert(St(he),"Expected an Expression node.");break}switch(he.kind){case 308:return Pi(he);case 309:return xi(he)}return Pr(D,he,Et,hn()),dr()}function Zr(D,he,Et){return Mi(D,he,Et,hn()),dr()}function xi(D){return $e(D,hn(),void 0),dr()}function Pi(D){return At(D,hn(),void 0),dr()}function Pr(D,he,Et,An){const vi=Ne;qi(An,void 0),ri(D,he,Et),Qo(),Ne=vi}function Mi(D,he,Et,An){const vi=Ne;qi(An,void 0),Et&&ai(Et),Jr(void 0,he,D),Qo(),Ne=vi}function $e(D,he,Et){re=!1;const An=Ne;qi(he,Et),Rv(D),Qm(D),Jt(D),cL(D);for(const vi of D.sourceFiles)ri(0,vi,vi);Qo(),Ne=An}function At(D,he,Et){re=!0;const An=Ne;qi(he,Et),Rv(D),Qm(D),ri(0,D,D),Qo(),Ne=An}function hn(){return Xe||(Xe=Bk(R))}function dr(){const D=Xe.getText();return Xe.clear(),D}function ri(D,he,Et){Et&&ai(Et),ne(D,he,void 0)}function ai(D){k=D,We=void 0,at=void 0,D&&TE(D)}function qi(D,he){D&&e.omitTrailingSemicolon&&(D=fV(D)),Ne=D,Me=he,Te=!Ne||!Me}function Qo(){F=[],W=[],G=[],j=new Set,J=[],Z=new Map,q=[],ve=0,oe=[],K=0,fe=[],ue=void 0,me=[],be=void 0,k=void 0,We=void 0,at=void 0,qi(void 0,void 0)}function Ia(){return We||(We=ug(C.checkDefined(k)))}function Pn(D,he){D!==void 0&&ne(4,D,he)}function Uo(D){D!==void 0&&ne(2,D,void 0)}function ot(D,he){D!==void 0&&ne(1,D,he)}function Ft(D){ne(Oa(D)?6:4,D)}function le(D){De&&jm(D)&4&&(De=!1)}function _t(D){De=D}function ne(D,he,Et){Kn=Et,dt(0,D,he)(D,he),Kn=void 0}function Fe(D){return!cn&&!Xi(D)}function it(D){return!Te&&!Xi(D)&&!l6(D)}function dt(D,he,Et){switch(D){case 0:if(i!==nO&&(!o||o(Et)))return He;case 1:if(s!==bP&&(gn=s(he,Et)||Et)!==Et)return Kn&&(gn=Kn(gn)),nt;case 2:if(Fe(Et))return vE;case 3:if(it(Et))return hA;case 4:return Rt;default:return C.assertNever(D)}}function Lt(D,he,Et){return dt(D+1,he,Et)}function He(D,he){const Et=Lt(0,D,he);i(D,he,Et)}function Rt(D,he){if(l?.(he),De){const Et=De;le(he),It(D,he),_t(Et)}else It(D,he);u?.(he),Kn=void 0}function It(D,he,Et=!0){if(Et){const An=Ej(he);if(An)return ge(D,he,An)}if(D===0)return N0(ma(he,Xi));if(D===2)return te(ma(he,Je));if(D===6)return Nt(ma(he,Oa),!0);if(D===3)return Ot(ma(he,cl));if(D===7)return __(ma(he,D1));if(D===5)return C.assertNode(he,kj),Eh(!0);if(D===4){switch(he.kind){case 16:case 17:case 18:return Nt(he,!1);case 80:return te(he);case 81:return xt(he);case 167:return Kt(he);case 168:return yt(he);case 169:return Bt(he);case 170:return gr(he);case 171:return tr(he);case 172:return Jn(he);case 173:return mt(he);case 174:return Mt(he);case 175:return Vt(he);case 176:return Qt(he);case 177:return In(he);case 178:case 179:return yn(he);case 180:return wt(he);case 181:return En(he);case 182:return xn(he);case 183:return Ri(he);case 184:return ia(he);case 185:return la(he);case 186:return Ec(he);case 187:return Zs(he);case 188:return Da(he);case 189:return ic(he);case 190:return Po(he);case 191:return os(he);case 193:return Ja(he);case 194:return Zt(he);case 195:return xs(he);case 196:return Xl(he);case 197:return dc(he);case 234:return cd(he);case 198:return bd();case 199:return Bs(he);case 200:return Ae(he);case 201:return $(he);case 202:return ft(he);case 203:return fa(he);case 204:return Ht(he);case 205:return wn(he);case 206:return fn(he);case 207:return ur(he);case 208:return si(he);case 209:return Dr(he);case 240:return kg(he);case 241:return ln();case 242:return wg(he);case 244:return $c(he);case 243:return Eh(!1);case 245:return Ef(he);case 246:return h_(he);case 247:return pt(he);case 248:return tn(he);case 249:return an(he);case 250:return Wn(he);case 251:return ar(he);case 252:return Si(he);case 253:return Yi(he);case 254:return na(he);case 255:return So(he);case 256:return Vo(he);case 257:return _l(he);case 258:return Na(he);case 259:return dd(he);case 260:return Jp(he);case 261:return Af(he);case 262:return em(he);case 263:return Iy(he);case 264:return Rn(he);case 265:return Lr(he);case 266:return Yn(he);case 267:return cr(he);case 268:return Wi(he);case 269:return xo(he);case 270:return _i(he);case 271:return q_(he);case 272:return Ro(he);case 273:return gl(he);case 274:return dp(he);case 275:return Pm(he);case 281:return RC(he);case 276:return Sd(he);case 277:return Lm(he);case 278:return Kp(he);case 279:return S0(he);case 280:return sL(he);case 282:return DC(he);case 301:return H_(he);case 302:return E0(he);case 283:return;case 284:return Y1(he);case 12:return Q1(he);case 287:case 290:return lL(he);case 288:case 291:return kx(he);case 292:return CC(he);case 293:return I0(he);case 294:return Z1(he);case 295:return Ox(he);case 296:return Wx(he);case 297:return Qb(he);case 298:return Iv(he);case 299:return Ry(he);case 300:return Dy(he);case 304:return Zb(he);case 305:return x0(he);case 306:return eA(he);case 307:return R0(he);case 308:return N0(he);case 309:return C.fail("Bundles should be printed using printBundle");case 310:return C0(he);case 311:return Ny(he);case 313:return zr("*");case 314:return zr("?");case 315:return ks(he);case 316:return lo(he);case 317:return Go(he);case 318:return Cl(he);case 192:case 319:return Sf(he);case 320:return;case 321:return rs(he);case 323:return Du(he);case 324:return K_(he);case 328:case 333:case 338:return D0(he);case 329:case 330:return J_(he);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return up(he);case 340:return Yd(he);case 342:case 349:return Uu(he);case 341:case 343:case 344:case 345:case 350:case 351:return tA(he);case 346:return ul(he);case 347:return Xd(he);case 348:return NC(he);case 352:return Cy(he);case 354:case 355:return}if(St(he)&&(D=1,s!==bP)){const An=s(D,he)||he;An!==he&&(he=An,Kn&&(he=Kn(he)))}}if(D===1)switch(he.kind){case 9:case 10:return Oe(he);case 11:case 14:case 15:return Nt(he,!1);case 80:return te(he);case 81:return xt(he);case 210:return Bn(he);case 211:return no(he);case 212:return To(he);case 213:return Ca(he);case 214:return el(he);case 215:return Ac(he);case 216:return _c(he);case 217:return Js(he);case 218:return wl(he);case 219:return Sh(he);case 220:return Ld(he);case 221:return ze(he);case 222:return qt(he);case 223:return er(he);case 224:return go(he);case 225:return es(he);case 226:return ja(he);case 227:return so(he);case 228:return rl(he);case 229:return Ol(he);case 230:return Yl(he);case 231:return sf(he);case 232:return Td(he);case 233:return;case 235:return qp(he);case 236:return Ru(he);case 234:return cd(he);case 239:return Zf(he);case 237:return j_(he);case 238:return C.fail("SyntheticExpression should never be printed.");case 283:return;case 285:return Av(he);case 286:return $1(he);case 289:return Lx(he);case 353:return C.fail("SyntaxList should not be printed");case 354:return;case 356:return Ze(he);case 357:return nA(he);case 358:return C.fail("SyntheticReferenceExpression should not be printed")}if(rp(he.kind))return aA(he,Oo);if(oG(he.kind))return aA(he,zr);C.fail(`Unhandled SyntaxKind: ${C.formatSyntaxKind(he.kind)}.`)}function Ot(D){Pn(D.name),Mr(),Oo("in"),Mr(),Pn(D.constraint)}function nt(D,he){const Et=Lt(1,D,he);C.assertIsDefined(gn),he=gn,gn=void 0,Et(D,he)}function Jt(D){let he=!1;const Et=D.kind===309?D:void 0;if(Et&&N===0)return;const An=Et?Et.sourceFiles.length:1;for(let vi=0;vi")}function jl(D){Mr(),Pn(D.type)}function Cl(D){Oo("function"),P0(D,D.parameters),zr(":"),Pn(D.type)}function ks(D){zr("?"),Pn(D.type)}function lo(D){zr("!"),Pn(D.type)}function Go(D){Pn(D.type),zr("=")}function Ec(D){Ih(D,D.modifiers),Oo("new"),Mr(),ju(D,zo,jl)}function Zs(D){Oo("typeof"),Mr(),Pn(D.exprName),tm(D,D.typeArguments)}function Da(D){eh(D),qe(D.members,yE),zr("{");const he=Za(D)&1?768:32897;Jr(D,D.members,he|524288),zr("}"),ky(D)}function ic(D){Pn(D.elementType,or.parenthesizeNonArrayTypeOfPostfixType),zr("["),zr("]")}function Sf(D){zr("..."),Pn(D.type)}function Po(D){z(23,D.pos,zr,D);const he=Za(D)&1?528:657;Jr(D,D.elements,he|524288,or.parenthesizeElementTypeOfTupleType),z(24,D.elements.end,zr,D)}function fa(D){Pn(D.dotDotDotToken),Pn(D.name),Pn(D.questionToken),z(59,D.name.end,zr,D),Mr(),Pn(D.type)}function os(D){Pn(D.type,or.parenthesizeTypeOfOptionalType),zr("?")}function Ja(D){Jr(D,D.types,516,or.parenthesizeConstituentTypeOfUnionType)}function Zt(D){Jr(D,D.types,520,or.parenthesizeConstituentTypeOfIntersectionType)}function xs(D){Pn(D.checkType,or.parenthesizeCheckTypeOfConditionalType),Mr(),Oo("extends"),Mr(),Pn(D.extendsType,or.parenthesizeExtendsTypeOfConditionalType),Mr(),zr("?"),Mr(),Pn(D.trueType),Mr(),zr(":"),Mr(),Pn(D.falseType)}function Xl(D){Oo("infer"),Mr(),Pn(D.typeParameter)}function dc(D){zr("("),Pn(D.type),zr(")")}function bd(){Oo("this")}function Bs(D){rT(D.operator,Oo),Mr();const he=D.operator===148?or.parenthesizeOperandOfReadonlyTypeOperator:or.parenthesizeOperandOfTypeOperator;Pn(D.type,he)}function Ae(D){Pn(D.objectType,or.parenthesizeNonArrayTypeOfPostfixType),zr("["),Pn(D.indexType),zr("]")}function $(D){const he=Za(D);zr("{"),he&1?Mr():(fu(),X_()),D.readonlyToken&&(Pn(D.readonlyToken),D.readonlyToken.kind!==148&&Oo("readonly"),Mr()),zr("["),ne(3,D.typeParameter),D.nameType&&(Mr(),Oo("as"),Mr(),Pn(D.nameType)),zr("]"),D.questionToken&&(Pn(D.questionToken),D.questionToken.kind!==58&&zr("?")),zr(":"),Mr(),Pn(D.type),Nu(),he&1?Mr():(fu(),xh()),Jr(D,D.members,2),zr("}")}function ft(D){ot(D.literal)}function Ht(D){Pn(D.head),Jr(D,D.templateSpans,262144)}function fn(D){D.isTypeOf&&(Oo("typeof"),Mr()),Oo("import"),zr("("),Pn(D.argument),D.attributes&&(zr(","),Mr(),ne(7,D.attributes)),zr(")"),D.qualifier&&(zr("."),Pn(D.qualifier)),tm(D,D.typeArguments)}function ur(D){zr("{"),Jr(D,D.elements,525136),zr("}")}function si(D){zr("["),Jr(D,D.elements,524880),zr("]")}function Dr(D){Pn(D.dotDotDotToken),D.propertyName&&(Pn(D.propertyName),zr(":"),Mr()),Pn(D.name),M0(D.initializer,D.name.end,D,or.parenthesizeExpressionForDisallowedComma)}function Bn(D){const he=D.elements,Et=D.multiLine?65536:0;Vr(D,he,8914|Et,or.parenthesizeExpressionForDisallowedComma)}function no(D){eh(D),qe(D.properties,yE);const he=Za(D)&131072;he&&X_();const Et=D.multiLine?65536:0,An=k&&k.languageVersion>=1&&!Vf(k)?64:0;Jr(D,D.properties,526226|An|Et),he&&xh(),ky(D)}function To(D){ot(D.expression,or.parenthesizeLeftSideOfAccess);const he=D.questionDotToken||mh(L.createToken(25),D.expression.end,D.name.pos),Et=y_(D,D.expression,he),An=y_(D,he,D.name);nm(Et,!1),he.kind!==29&&Ps(D.expression)&&!Ne.hasTrailingComment()&&!Ne.hasTrailingWhitespace()&&zr("."),D.questionDotToken?Pn(he):z(he.kind,D.expression.end,zr,D),nm(An,!1),Pn(D.name),pp(Et,An)}function Ps(D){if(D=Vm(D),op(D)){const he=aT(D,void 0,!0,!1);return!(D.numericLiteralFlags&448)&&!he.includes(_a(25))&&!he.includes("E")&&!he.includes("e")}else if(Ys(D)){const he=Eie(D);return typeof he=="number"&&isFinite(he)&&he>=0&&Math.floor(he)===he}}function Ca(D){ot(D.expression,or.parenthesizeLeftSideOfAccess),Pn(D.questionDotToken),z(23,D.expression.end,zr,D),ot(D.argumentExpression),z(24,D.argumentExpression.end,zr,D)}function el(D){const he=jm(D)&16;he&&(zr("("),Py("0"),zr(","),Mr()),ot(D.expression,or.parenthesizeLeftSideOfAccess),he&&zr(")"),Pn(D.questionDotToken),tm(D,D.typeArguments),Vr(D,D.arguments,2576,or.parenthesizeExpressionForDisallowedComma)}function Ac(D){z(105,D.pos,Oo,D),Mr(),ot(D.expression,or.parenthesizeExpressionOfNew),tm(D,D.typeArguments),Vr(D,D.arguments,18960,or.parenthesizeExpressionForDisallowedComma)}function _c(D){const he=jm(D)&16;he&&(zr("("),Py("0"),zr(","),Mr()),ot(D.tag,or.parenthesizeLeftSideOfAccess),he&&zr(")"),tm(D,D.typeArguments),Mr(),ot(D.template)}function Js(D){zr("<"),Pn(D.type),zr(">"),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function wl(D){const he=z(21,D.pos,zr,D),Et=iT(D.expression,D);ot(D.expression,void 0),Bx(D.expression,D),pp(Et),z(22,D.expression?D.expression.end:he,zr,D)}function Sh(D){Bg(D.name),Ev(D)}function Ld(D){Ih(D,D.modifiers),ju(D,af,lp)}function af(D){Fg(D,D.typeParameters),g_(D,D.parameters),wm(D.type),Mr(),Pn(D.equalsGreaterThanToken)}function lp(D){ta(D.body)?Ye(D.body):(Mr(),ot(D.body,or.parenthesizeConciseBodyOfArrowFunction))}function ze(D){z(91,D.pos,Oo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function qt(D){z(114,D.pos,Oo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function er(D){z(116,D.pos,Oo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function go(D){z(135,D.pos,Oo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function es(D){rT(D.operator,Sp),ts(D)&&Mr(),ot(D.operand,or.parenthesizeOperandOfPrefixUnary)}function ts(D){const he=D.operand;return he.kind===225&&(D.operator===40&&(he.operator===40||he.operator===46)||D.operator===41&&(he.operator===41||he.operator===47))}function ja(D){ot(D.operand,or.parenthesizeOperandOfPostfixUnary),rT(D.operator,Sp)}function kc(){return V4(D,he,Et,An,vi,void 0);function D(Eo,wi){if(wi){wi.stackIndex++,wi.preserveSourceNewlinesStack[wi.stackIndex]=De,wi.containerPosStack[wi.stackIndex]=ye,wi.containerEndStack[wi.stackIndex]=Ue,wi.declarationListContainerEndStack[wi.stackIndex]=Ge;const Ka=wi.shouldEmitCommentsStack[wi.stackIndex]=Fe(Eo),yc=wi.shouldEmitSourceMapsStack[wi.stackIndex]=it(Eo);l?.(Eo),Ka&&Rh(Eo),yc&&as(Eo),le(Eo)}else wi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return wi}function he(Eo,wi,Ka){return Oi(Eo,Ka,"left")}function Et(Eo,wi,Ka){const yc=Eo.kind!==28,$d=y_(Ka,Ka.left,Eo),Hu=y_(Ka,Eo,Ka.right);nm($d,yc),Vg(Eo.pos),aA(Eo,Eo.kind===103?Oo:Sp),th(Eo.end,!0),nm(Hu,!0)}function An(Eo,wi,Ka){return Oi(Eo,Ka,"right")}function vi(Eo,wi){const Ka=y_(Eo,Eo.left,Eo.operatorToken),yc=y_(Eo,Eo.operatorToken,Eo.right);if(pp(Ka,yc),wi.stackIndex>0){const $d=wi.preserveSourceNewlinesStack[wi.stackIndex],Hu=wi.containerPosStack[wi.stackIndex],j0=wi.containerEndStack[wi.stackIndex],qu=wi.declarationListContainerEndStack[wi.stackIndex],cT=wi.shouldEmitCommentsStack[wi.stackIndex],$x=wi.shouldEmitSourceMapsStack[wi.stackIndex];_t($d),$x&&Wr(Eo),cT&&lT(Eo,Hu,j0,qu),u?.(Eo),wi.stackIndex--}}function Oi(Eo,wi,Ka){const yc=Ka==="left"?or.getParenthesizeLeftSideOfBinaryForOperator(wi.operatorToken.kind):or.getParenthesizeRightSideOfBinaryForOperator(wi.operatorToken.kind);let $d=dt(0,1,Eo);if($d===nt&&(C.assertIsDefined(gn),Eo=yc(ma(gn,St)),$d=Lt(1,1,Eo),gn=void 0),($d===vE||$d===hA||$d===Rt)&&Nr(Eo))return Eo;Kn=yc,$d(1,Eo)}}function rl(D){const he=y_(D,D.condition,D.questionToken),Et=y_(D,D.questionToken,D.whenTrue),An=y_(D,D.whenTrue,D.colonToken),vi=y_(D,D.colonToken,D.whenFalse);ot(D.condition,or.parenthesizeConditionOfConditionalExpression),nm(he,!0),Pn(D.questionToken),nm(Et,!0),ot(D.whenTrue,or.parenthesizeBranchOfConditionalExpression),pp(he,Et),nm(An,!0),Pn(D.colonToken),nm(vi,!0),ot(D.whenFalse,or.parenthesizeBranchOfConditionalExpression),pp(An,vi)}function Ol(D){Pn(D.head),Jr(D,D.templateSpans,262144)}function Yl(D){z(127,D.pos,Oo,D),Pn(D.asteriskToken),Dv(D.expression&&Fn(D.expression),yo)}function sf(D){z(26,D.pos,zr,D),ot(D.expression,or.parenthesizeExpressionForDisallowedComma)}function Td(D){Bg(D.name),Qn(D)}function cd(D){ot(D.expression,or.parenthesizeLeftSideOfAccess),tm(D,D.typeArguments)}function qp(D){ot(D.expression,void 0),D.type&&(Mr(),Oo("as"),Mr(),Pn(D.type))}function Ru(D){ot(D.expression,or.parenthesizeLeftSideOfAccess),Sp("!")}function Zf(D){ot(D.expression,void 0),D.type&&(Mr(),Oo("satisfies"),Mr(),Pn(D.type))}function j_(D){nT(D.keywordToken,D.pos,zr),zr("."),Pn(D.name)}function kg(D){ot(D.expression),Pn(D.literal)}function wg(D){cp(D,!D.multiLine&&oT(D))}function cp(D,he){z(19,D.pos,zr,D);const Et=he||Za(D)&1?768:129;Jr(D,D.statements,Et),z(20,D.statements.end,zr,D,!!(Et&1))}function $c(D){Cu(D,D.modifiers,!1),Pn(D.declarationList),Nu()}function Eh(D){D?zr(";"):Nu()}function Ef(D){ot(D.expression,or.parenthesizeExpressionOfExpressionStatement),(!k||!Vf(k)||Fs(D.expression))&&Nu()}function h_(D){const he=z(101,D.pos,Oo,D);Mr(),z(21,he,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),My(D,D.thenStatement),D.elseStatement&&(xf(D,D.thenStatement,D.elseStatement),z(93,D.thenStatement.end,Oo,D),D.elseStatement.kind===246?(Mr(),Pn(D.elseStatement)):My(D,D.elseStatement))}function ae(D,he){const Et=z(117,he,Oo,D);Mr(),z(21,Et,zr,D),ot(D.expression),z(22,D.expression.end,zr,D)}function pt(D){z(92,D.pos,Oo,D),My(D,D.statement),ta(D.statement)&&!De?Mr():xf(D,D.statement,D.expression),ae(D,D.statement.end),Nu()}function tn(D){ae(D,D.pos),My(D,D.statement)}function an(D){const he=z(99,D.pos,Oo,D);Mr();let Et=z(21,he,zr,D);ti(D.initializer),Et=z(27,D.initializer?D.initializer.end:Et,zr,D),Dv(D.condition),Et=z(27,D.condition?D.condition.end:Et,zr,D),Dv(D.incrementor),z(22,D.incrementor?D.incrementor.end:Et,zr,D),My(D,D.statement)}function Wn(D){const he=z(99,D.pos,Oo,D);Mr(),z(21,he,zr,D),ti(D.initializer),Mr(),z(103,D.initializer.end,Oo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),My(D,D.statement)}function ar(D){const he=z(99,D.pos,Oo,D);Mr(),rA(D.awaitModifier),z(21,he,zr,D),ti(D.initializer),Mr(),z(165,D.initializer.end,Oo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),My(D,D.statement)}function ti(D){D!==void 0&&(D.kind===262?Pn(D):ot(D))}function Si(D){z(88,D.pos,Oo,D),If(D.label),Nu()}function Yi(D){z(83,D.pos,Oo,D),If(D.label),Nu()}function z(D,he,Et,An,vi){const Oi=jo(An),Eo=Oi&&Oi.kind===An.kind,wi=he;if(Eo&&k&&(he=wa(k.text,he)),Eo&&An.pos!==wi){const Ka=vi&&k&&!Hf(wi,he,k);Ka&&X_(),Vg(wi),Ka&&xh()}if(!A&&(D===19||D===20)?he=nT(D,he,Et,An):he=rT(D,Et,he),Eo&&An.end!==he){const Ka=An.kind===295;th(he,!Ka,Ka)}return he}function je(D){return D.kind===2||!!D.hasTrailingNewLine}function kt(D){if(!k)return!1;const he=fg(k.text,D.pos);if(he){const Et=jo(D);if(Et&&zu(Et.parent))return!0}return vt(he,je)||vt(ED(D),je)?!0:Uie(D)?D.pos!==D.expression.pos&&vt(pb(k.text,D.expression.pos),je)?!0:kt(D.expression):!1}function Fn(D){if(!cn)switch(D.kind){case 356:if(kt(D)){const he=jo(D);if(he&&zu(he)){const Et=L.createParenthesizedExpression(D.expression);return jr(Et,D),bt(Et,he),Et}return L.createParenthesizedExpression(D)}return L.updatePartiallyEmittedExpression(D,Fn(D.expression));case 212:return L.updatePropertyAccessExpression(D,Fn(D.expression),D.name);case 213:return L.updateElementAccessExpression(D,Fn(D.expression),D.argumentExpression);case 214:return L.updateCallExpression(D,Fn(D.expression),D.typeArguments,D.arguments);case 216:return L.updateTaggedTemplateExpression(D,Fn(D.tag),D.typeArguments,D.template);case 226:return L.updatePostfixUnaryExpression(D,Fn(D.operand));case 227:return L.updateBinaryExpression(D,Fn(D.left),D.operatorToken,D.right);case 228:return L.updateConditionalExpression(D,Fn(D.condition),D.questionToken,D.whenTrue,D.colonToken,D.whenFalse);case 235:return L.updateAsExpression(D,Fn(D.expression),D.type);case 239:return L.updateSatisfiesExpression(D,Fn(D.expression),D.type);case 236:return L.updateNonNullExpression(D,Fn(D.expression))}return D}function yo(D){return Fn(or.parenthesizeExpressionForDisallowedComma(D))}function na(D){z(107,D.pos,Oo,D),Dv(D.expression&&Fn(D.expression),Fn),Nu()}function So(D){const he=z(118,D.pos,Oo,D);Mr(),z(21,he,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),My(D,D.statement)}function Vo(D){const he=z(109,D.pos,Oo,D);Mr(),z(21,he,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Mr(),Pn(D.caseBlock)}function _l(D){Pn(D.label),z(59,D.label.end,zr,D),Mr(),Pn(D.statement)}function Na(D){z(111,D.pos,Oo,D),Dv(Fn(D.expression),Fn),Nu()}function dd(D){z(113,D.pos,Oo,D),Mr(),Pn(D.tryBlock),D.catchClause&&(xf(D,D.tryBlock,D.catchClause),Pn(D.catchClause)),D.finallyBlock&&(xf(D,D.catchClause||D.tryBlock,D.finallyBlock),z(98,(D.catchClause||D.tryBlock).end,Oo,D),Mr(),Pn(D.finallyBlock))}function Jp(D){nT(89,D.pos,Oo),Nu()}function Af(D){var he,Et,An;Pn(D.name),Pn(D.exclamationToken),wm(D.type),M0(D.initializer,((he=D.type)==null?void 0:he.end)??((An=(Et=D.name.emitNode)==null?void 0:Et.typeNode)==null?void 0:An.end)??D.name.end,D,or.parenthesizeExpressionForDisallowedComma)}function em(D){if(ck(D))Oo("await"),Mr(),Oo("using");else{const he=XF(D)?"let":ZR(D)?"const":dk(D)?"using":"var";Oo(he)}Mr(),Jr(D,D.declarations,528)}function Iy(D){Ev(D)}function Ev(D){Cu(D,D.modifiers,!1),Oo("function"),Pn(D.asteriskToken),Mr(),Uo(D.name),ju(D,Mm,U_)}function ju(D,he,Et){const An=Za(D)&131072;An&&X_(),eh(D),qe(D.parameters,ud),he(D),Et(D),ky(D),An&&xh()}function U_(D){const he=D.body;he?Ye(he):Nu()}function Ah(D){Nu()}function Mm(D){Fg(D,D.typeParameters),P0(D,D.parameters),wm(D.type)}function Yb(D){if(Za(D)&1)return!0;if(D.multiLine||!Fs(D)&&k&&!_1(D,k)||Nv(D,Rc(D.statements),2)||zx(D,tl(D.statements),2,D.statements))return!1;let he;for(const Et of D.statements){if(k0(he,Et,2)>0)return!1;he=Et}return!0}function Ye(D){ud(D),l?.(D),Mr(),zr("{"),X_();const he=Yb(D)?ht:Xt;bE(D,D.statements,he),xh(),nT(20,D.statements.end,zr,D),u?.(D)}function ht(D){Xt(D,!0)}function Xt(D,he){const Et=Wg(D.statements),An=Ne.getTextPos();Jt(D),Et===0&&An===Ne.getTextPos()&&he?(xh(),Jr(D,D.statements,768),X_()):Jr(D,D.statements,1,void 0,Et)}function Rn(D){Qn(D)}function Qn(D){Cu(D,D.modifiers,!0),z(86,Zh(D).pos,Oo,D),D.name&&(Mr(),Uo(D.name));const he=Za(D)&131072;he&&X_(),Fg(D,D.typeParameters),Jr(D,D.heritageClauses,0),Mr(),zr("{"),eh(D),qe(D.members,yE),Jr(D,D.members,129),ky(D),zr("}"),he&&xh()}function Lr(D){Cu(D,D.modifiers,!1),Oo("interface"),Mr(),Pn(D.name),Fg(D,D.typeParameters),Jr(D,D.heritageClauses,512),Mr(),zr("{"),eh(D),qe(D.members,yE),Jr(D,D.members,129),ky(D),zr("}")}function Yn(D){Cu(D,D.modifiers,!1),Oo("type"),Mr(),Pn(D.name),Fg(D,D.typeParameters),Mr(),zr("="),Mr(),Pn(D.type),Nu()}function cr(D){Cu(D,D.modifiers,!1),Oo("enum"),Mr(),Pn(D.name),Mr(),zr("{"),Jr(D,D.members,145),zr("}")}function Wi(D){Cu(D,D.modifiers,!1),~D.flags&2048&&(Oo(D.flags&32?"namespace":"module"),Mr()),Pn(D.name);let he=D.body;if(!he)return Nu();for(;he&&mc(he);)zr("."),Pn(he.name),he=he.body;Mr(),Pn(he)}function xo(D){eh(D),qe(D.statements,ud),cp(D,oT(D)),ky(D)}function _i(D){z(19,D.pos,zr,D),Jr(D,D.clauses,129),z(20,D.clauses.end,zr,D,!0)}function Ro(D){Cu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Oo,D),Mr(),D.isTypeOnly&&(z(156,D.pos,Oo,D),Mr()),Pn(D.name),Mr(),z(64,D.name.end,zr,D),Mr(),$i(D.moduleReference),Nu()}function $i(D){D.kind===80?ot(D):Pn(D)}function gl(D){Cu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Oo,D),Mr(),D.importClause&&(Pn(D.importClause),Mr(),z(161,D.importClause.end,Oo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&If(D.attributes),Nu()}function dp(D){D.phaseModifier!==void 0&&(z(D.phaseModifier,D.pos,Oo,D),Mr()),Pn(D.name),D.name&&D.namedBindings&&(z(28,D.name.end,zr,D),Mr()),Pn(D.namedBindings)}function Pm(D){const he=z(42,D.pos,zr,D);Mr(),z(130,he,Oo,D),Mr(),Pn(D.name)}function Sd(D){Og(D)}function Lm(D){A0(D)}function Kp(D){const he=z(95,D.pos,Oo,D);Mr(),D.isExportEquals?z(64,he,Sp,D):z(90,he,Oo,D),Mr(),ot(D.expression,D.isExportEquals?or.getParenthesizeRightSideOfBinaryForOperator(64):or.parenthesizeExpressionOfExportDefault),Nu()}function S0(D){Cu(D,D.modifiers,!1);let he=z(95,D.pos,Oo,D);if(Mr(),D.isTypeOnly&&(he=z(156,he,Oo,D),Mr()),D.exportClause?Pn(D.exportClause):he=z(42,he,zr,D),D.moduleSpecifier){Mr();const Et=D.exportClause?D.exportClause.end:he;z(161,Et,Oo,D),Mr(),ot(D.moduleSpecifier)}D.attributes&&If(D.attributes),Nu()}function __(D){zr("{"),Mr(),Oo(D.token===132?"assert":"with"),zr(":"),Mr();const he=D.elements;Jr(D,he,526226),Mr(),zr("}")}function H_(D){z(D.token,D.pos,Oo,D),Mr();const he=D.elements;Jr(D,he,526226)}function E0(D){Pn(D.name),zr(":"),Mr();const he=D.value;if((Za(he)&1024)===0){const Et=n_(he);th(Et.pos)}Pn(he)}function q_(D){let he=z(95,D.pos,Oo,D);Mr(),he=z(130,he,Oo,D),Mr(),he=z(145,he,Oo,D),Mr(),Pn(D.name),Nu()}function RC(D){const he=z(42,D.pos,zr,D);Mr(),z(130,he,Oo,D),Mr(),Pn(D.name)}function sL(D){Og(D)}function DC(D){A0(D)}function Og(D){zr("{"),Jr(D,D.elements,525136),zr("}")}function A0(D){D.isTypeOnly&&(Oo("type"),Mr()),D.propertyName&&(Pn(D.propertyName),Mr(),z(130,D.propertyName.end,Oo,D),Mr()),Pn(D.name)}function Y1(D){Oo("require"),zr("("),ot(D.expression),zr(")")}function Av(D){Pn(D.openingElement),Jr(D,D.children,262144),Pn(D.closingElement)}function $1(D){zr("<"),fE(D.tagName),tm(D,D.typeArguments),Mr(),Pn(D.attributes),zr("/>")}function Lx(D){Pn(D.openingFragment),Jr(D,D.children,262144),Pn(D.closingFragment)}function lL(D){if(zr("<"),hh(D)){const he=iT(D.tagName,D);fE(D.tagName),tm(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&Mr(),Pn(D.attributes),Bx(D.attributes,D),pp(he)}zr(">")}function Q1(D){Ne.writeLiteral(D.text)}function kx(D){zr("")}function I0(D){Jr(D,D.properties,262656)}function CC(D){Pn(D.name),Ua("=",zr,D.initializer,Ft)}function Z1(D){zr("{..."),ot(D.expression),zr("}")}function wx(D){let he=!1;return L2(k?.text||"",D+1,()=>he=!0),he}function pE(D){let he=!1;return P2(k?.text||"",D+1,()=>he=!0),he}function $b(D){return wx(D)||pE(D)}function Ox(D){var he;if(D.expression||!cn&&!Fs(D)&&$b(D.pos)){const Et=k&&!Fs(D)&&ca(k,D.pos).line!==ca(k,D.end).line;Et&&Ne.increaseIndent();const An=z(19,D.pos,zr,D);Pn(D.dotDotDotToken),ot(D.expression),z(20,((he=D.expression)==null?void 0:he.end)||An,zr,D),Et&&Ne.decreaseIndent()}}function Wx(D){Uo(D.namespace),zr(":"),Uo(D.name)}function fE(D){D.kind===80?ot(D):Pn(D)}function Qb(D){z(84,D.pos,Oo,D),Mr(),ot(D.expression,or.parenthesizeExpressionForDisallowedComma),xy(D,D.statements,D.expression.end)}function Iv(D){const he=z(90,D.pos,Oo,D);xy(D,D.statements,he)}function xy(D,he,Et){const An=he.length===1&&(!k||Fs(D)||Fs(he[0])||O6(D,he[0],k));let vi=163969;An?(nT(59,Et,zr,D),Mr(),vi&=-130):z(59,Et,zr,D),Jr(D,he,vi)}function Ry(D){Mr(),rT(D.token,Oo),Mr(),Jr(D,D.types,528)}function Dy(D){const he=z(85,D.pos,Oo,D);Mr(),D.variableDeclaration&&(z(21,he,zr,D),Pn(D.variableDeclaration),z(22,D.variableDeclaration.end,zr,D),Mr()),Pn(D.block)}function Zb(D){Pn(D.name),zr(":"),Mr();const he=D.initializer;if((Za(he)&1024)===0){const Et=n_(he);th(Et.pos)}ot(he,or.parenthesizeExpressionForDisallowedComma)}function x0(D){Pn(D.name),D.objectAssignmentInitializer&&(Mr(),zr("="),Mr(),ot(D.objectAssignmentInitializer,or.parenthesizeExpressionForDisallowedComma))}function eA(D){D.expression&&(z(26,D.pos,zr,D),ot(D.expression,or.parenthesizeExpressionForDisallowedComma))}function R0(D){Pn(D.name),M0(D.initializer,D.name.end,D,or.parenthesizeExpressionForDisallowedComma)}function rs(D){if(Ee("/**"),D.comment){const he=V2(D.comment);if(he){const Et=he.split(/\r\n?|\n/);for(const An of Et)fu(),Mr(),zr("*"),Mr(),Ee(An)}}D.tags&&(D.tags.length===1&&D.tags[0].kind===345&&!D.comment?(Mr(),Pn(D.tags[0])):Jr(D,D.tags,33)),Mr(),Ee("*/")}function tA(D){km(D.tagName),C0(D.typeExpression),$m(D.comment)}function NC(D){km(D.tagName),Pn(D.name),$m(D.comment)}function Cy(D){km(D.tagName),Mr(),D.importClause&&(Pn(D.importClause),Mr(),z(161,D.importClause.end,Oo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&If(D.attributes),$m(D.comment)}function Ny(D){Mr(),zr("{"),Pn(D.name),zr("}")}function J_(D){km(D.tagName),Mr(),zr("{"),Pn(D.class),zr("}"),$m(D.comment)}function ul(D){km(D.tagName),C0(D.constraint),Mr(),Jr(D,D.typeParameters,528),$m(D.comment)}function Xd(D){km(D.tagName),D.typeExpression&&(D.typeExpression.kind===310?C0(D.typeExpression):(Mr(),zr("{"),Ee("Object"),D.typeExpression.isArrayType&&(zr("["),zr("]")),zr("}"))),D.fullName&&(Mr(),Pn(D.fullName)),$m(D.comment),D.typeExpression&&D.typeExpression.kind===323&&Du(D.typeExpression)}function up(D){km(D.tagName),D.name&&(Mr(),Pn(D.name)),$m(D.comment),K_(D.typeExpression)}function Yd(D){$m(D.comment),K_(D.typeExpression)}function D0(D){km(D.tagName),$m(D.comment)}function Du(D){Jr(D,L.createNodeArray(D.jsDocPropertyTags),33)}function K_(D){D.typeParameters&&Jr(D,L.createNodeArray(D.typeParameters),33),D.parameters&&Jr(D,L.createNodeArray(D.parameters),33),D.type&&(fu(),Mr(),zr("*"),Mr(),Pn(D.type))}function Uu(D){km(D.tagName),C0(D.typeExpression),Mr(),D.isBracketed&&zr("["),Pn(D.name),D.isBracketed&&zr("]"),$m(D.comment)}function km(D){zr("@"),Pn(D)}function $m(D){const he=V2(D);he&&(Mr(),Ee(he))}function C0(D){D&&(Mr(),zr("{"),Pn(D.type),zr("}"))}function N0(D){fu();const he=D.statements;if(he.length===0||!Jh(he[0])||Fs(he[0])){bE(D,he,mE);return}mE(D)}function cL(D){xv(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[])}function MC(D){D.isDeclarationFile&&xv(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function xv(D,he,Et,An){if(D&&(tT('/// '),fu()),k&&k.moduleName&&(tT(`/// `),fu()),k&&k.amdDependencies)for(const Oi of k.amdDependencies)Oi.name?tT(`/// `):tT(`/// `),fu();function vi(Oi,Eo){for(const wi of Eo){const Ka=wi.resolutionMode?`resolution-mode="${wi.resolutionMode===99?"import":"require"}" `:"",yc=wi.preserve?'preserve="true" ':"";tT(`/// `),fu()}}vi("path",he),vi("types",Et),vi("lib",An)}function mE(D){const he=D.statements;eh(D),qe(D.statements,ud),Jt(D);const Et=ho(he,An=>!Jh(An));MC(D),Jr(D,he,1,void 0,Et===-1?he.length:Et),ky(D)}function Ze(D){const he=Za(D);!(he&1024)&&D.pos!==D.expression.pos&&th(D.expression.pos),ot(D.expression),!(he&2048)&&D.end!==D.expression.end&&Vg(D.expression.end)}function nA(D){Vr(D,D.elements,528,void 0)}function Wg(D,he,Et){let An=!!he;for(let vi=0;vi=Et.length||Eo===0;if(Ka&&An&32768){d?.(Et),_?.(Et);return}An&15360&&(zr(gJe(An)),Ka&&Et&&th(Et.pos,!0)),d?.(Et),Ka?An&1&&!(De&&(!he||k&&_1(he,k)))?fu():An&256&&!(An&524288)&&Mr():iA(D,he,Et,An,vi,Oi,Eo,Et.hasTrailingComma,Et),_?.(Et),An&15360&&(Ka&&Et&&Vg(Et.end),zr(yJe(An)))}function iA(D,he,Et,An,vi,Oi,Eo,wi,Ka){const yc=(An&262144)===0;let $d=yc;const Hu=Nv(he,Et[Oi],An);Hu?(fu(Hu),$d=!1):An&256&&Mr(),An&128&&X_();const j0=SJe(D,vi);let qu,cT=!1;for(let kv=0;kv0){if((An&131)===0&&(X_(),cT=!0),$d&&An&60&&!fh(nh.pos)){const SE=n_(nh);th(SE.pos,!!(An&512),!0)}fu(wv),$d=!1}else qu&&An&512&&Mr()}if($d){const wv=n_(nh);th(wv.pos)}else $d=yc;Y=nh.pos,j0(nh,D,vi,kv),cT&&(xh(),cT=!1),qu=nh}const $x=qu?Za(qu):0,Om=cn||!!($x&2048),Sl=wi&&An&64&&An&16;Sl&&(qu&&!Om?z(28,qu.end,zr,qu):zr(",")),qu&&(he?he.end:-1)!==qu.end&&An&60&&!Om&&Vg(Sl&&Ka?.end?Ka.end:qu.end),An&128&&xh();const yA=zx(he,Et[Oi+Eo-1],An,Ka);yA?fu(yA):An&2097408&&Mr()}function Py(D){Ne.writeLiteral(D)}function gE(D){Ne.writeStringLiteral(D)}function PC(D){Ne.write(D)}function dL(D,he){Ne.writeSymbol(D,he)}function zr(D){Ne.writePunctuation(D)}function Nu(){Ne.writeTrailingSemicolon(";")}function Oo(D){Ne.writeKeyword(D)}function Sp(D){Ne.writeOperator(D)}function oA(D){Ne.writeParameter(D)}function tT(D){Ne.writeComment(D)}function Mr(){Ne.writeSpace(" ")}function LC(D){Ne.writeProperty(D)}function Fx(D){Ne.nonEscapingWrite?Ne.nonEscapingWrite(D):Ne.write(D)}function fu(D=1){for(let he=0;he0)}function X_(){Ne.increaseIndent()}function xh(){Ne.decreaseIndent()}function nT(D,he,Et,An){return Te?rT(D,Et,he):_A(An,D,Et,he,rT)}function aA(D,he){h&&h(D),he(_a(D.kind)),y&&y(D)}function rT(D,he,Et){const An=_a(D);return he(An),Et<0?Et:Et+An.length}function xf(D,he,Et){if(Za(D)&1)Mr();else if(De){const An=y_(D,he,Et);An?fu(An):Mr()}else fu()}function Zm(D){const he=D.split(/\r\n?|\n/),Et=Vte(he);for(const An of he){const vi=Et?An.slice(Et):An;vi.length&&(fu(),Ee(vi))}}function nm(D,he){D?(X_(),fu(D)):he&&Mr()}function pp(D,he){D&&xh(),he&&xh()}function Nv(D,he,Et){if(Et&2||De){if(Et&65536)return 1;if(he===void 0)return!D||k&&_1(D,k)?0:1;if(he.pos===Y||he.kind===12)return 0;if(k&&D&&!fh(D.pos)&&!Fs(he)&&(!he.parent||bl(he.parent)===bl(D)))return De?w0(An=>gre(he.pos,D.pos,k,An)):O6(D,he,k)?0:1;if(Ly(he,Et))return 1}return Et&1?1:0}function k0(D,he,Et){if(Et&2||De){if(D===void 0||he===void 0||he.kind===12)return 0;if(k&&!Fs(D)&&!Fs(he))return De&&mu(D,he)?w0(An=>MV(D,he,k,An)):!De&&qx(D,he)?Jk(D,he,k)?0:1:Et&65536?1:0;if(Ly(D,Et)||Ly(he,Et))return 1}else if(GM(he))return 1;return Et&1?1:0}function zx(D,he,Et,An){if(Et&2||De){if(Et&65536)return 1;if(he===void 0)return!D||k&&_1(D,k)?0:1;if(k&&D&&!fh(D.pos)&&!Fs(he)&&(!he.parent||he.parent===D)){if(De){const vi=An&&!fh(An.end)?An.end:he.end;return w0(Oi=>yre(vi,D.end,k,Oi))}return mre(D,he,k)?0:1}if(Ly(he,Et))return 1}return Et&1&&!(Et&131072)?1:0}function w0(D){C.assert(!!De);const he=D(!0);return he===0?D(!1):he}function iT(D,he){const Et=De&&Nv(he,D,0);return Et&&nm(Et,!1),!!Et}function Bx(D,he){const Et=De&&zx(he,D,0,void 0);Et&&fu(Et)}function Ly(D,he){if(Fs(D)){const Et=GM(D);return Et===void 0?(he&65536)!==0:Et}return(he&65536)!==0}function y_(D,he,Et){return Za(D)&262144?0:(D=O0(D),he=O0(he),Et=O0(Et),GM(Et)?1:k&&!Fs(D)&&!Fs(he)&&!Fs(Et)?De?w0(An=>MV(he,Et,k,An)):Jk(he,Et,k)?0:1:0)}function oT(D){return D.statements.length===0&&(!k||Jk(D,D,k))}function O0(D){for(;D.kind===218&&Fs(D);)D=D.expression;return D}function Mv(D,he){if(ml(D)||e1(D))return W0(D);if(Oa(D)&&D.textSourceNode)return Mv(D.textSourceNode,he);const Et=k,An=!!Et&&!!D.parent&&!Fs(D);if(hg(D)){if(!An||zn(D)!==bl(Et))return Kr(D)}else if(_h(D)){if(!An||zn(D)!==bl(Et))return zM(D)}else if(C.assertNode(D,ZE),!An)return D.text;return ES(Et,D,he)}function aT(D,he=k,Et,An){if(D.kind===11&&D.textSourceNode){const Oi=D.textSourceNode;if(Je(Oi)||Qi(Oi)||op(Oi)||_h(Oi)){const Eo=op(Oi)?Oi.text:Mv(Oi);return An?`"${pV(Eo)}"`:Et||Za(D)&16777216?`"${O_(Eo)}"`:`"${T6(Eo)}"`}else return aT(Oi,zn(Oi),Et,An)}const vi=(Et?1:0)|(An?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return tne(D,he,vi)}function eh(D){q.push(ve),ve=0,me.push(be),!(D&&Za(D)&1048576)&&(oe.push(K),K=0,J.push(Z),Z=void 0,fe.push(ue))}function ky(D){ve=q.pop(),be=me.pop(),!(D&&Za(D)&1048576)&&(K=oe.pop(),Z=J.pop(),ue=fe.pop())}function zg(D){(!ue||ue===tl(fe))&&(ue=new Set),ue.add(D)}function sT(D){(!be||be===tl(me))&&(be=new Set),be.add(D)}function ud(D){if(D)switch(D.kind){case 242:qe(D.statements,ud);break;case 257:case 255:case 247:case 248:ud(D.statement);break;case 246:ud(D.thenStatement),ud(D.elseStatement);break;case 249:case 251:case 250:ud(D.initializer),ud(D.statement);break;case 256:ud(D.caseBlock);break;case 270:qe(D.clauses,ud);break;case 297:case 298:qe(D.statements,ud);break;case 259:ud(D.tryBlock),ud(D.catchClause),ud(D.finallyBlock);break;case 300:ud(D.variableDeclaration),ud(D.block);break;case 244:ud(D.declarationList);break;case 262:qe(D.declarations,ud);break;case 261:case 170:case 209:case 264:Bg(D.name);break;case 263:Bg(D.name),Za(D)&1048576&&(qe(D.parameters,ud),ud(D.body));break;case 207:case 208:qe(D.elements,ud);break;case 273:ud(D.importClause);break;case 274:Bg(D.name),ud(D.namedBindings);break;case 275:Bg(D.name);break;case 281:Bg(D.name);break;case 276:qe(D.elements,ud);break;case 277:Bg(D.propertyName||D.name);break}}function yE(D){if(D)switch(D.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:Bg(D.name);break}}function Bg(D){D&&(ml(D)||e1(D)?W0(D):Zo(D)&&ud(D))}function W0(D){const he=D.emitNode.autoGenerate;if((he.flags&7)===4)return sA(Lw(D),Qi(D),he.flags,he.prefix,he.suffix);{const Et=he.id;return G[Et]||(G[Et]=rm(D))}}function sA(D,he,Et,An,vi){const Oi=ls(D),Eo=he?W:F;return Eo[Oi]||(Eo[Oi]=fp(D,he,Et??0,BD(An,W0),BD(vi)))}function Gg(D,he){return Gx(D)&&!kC(D,he)&&!j.has(D)}function kC(D,he){let Et,An;if(he?(Et=be,An=me):(Et=ue,An=fe),Et?.has(D))return!0;for(let vi=An.length-1;vi>=0;vi--)if(Et!==An[vi]&&(Et=An[vi],Et?.has(D)))return!0;return!1}function Gx(D,he){return k?VF(k,D,r):!0}function Vx(D,he){for(let Et=he;Et&&NS(Et,he);Et=Et.nextContainer)if(N_(Et)&&Et.locals){const An=Et.locals.get(Pl(D));if(An&&An.flags&3257279)return!1}return!0}function uL(D){switch(D){case"":return K;case"#":return ve;default:return Z?.get(D)??0}}function jx(D,he){switch(D){case"":K=he;break;case"#":ve=he;break;default:Z??(Z=new Map),Z.set(D,he);break}}function F0(D,he,Et,An,vi){An.length>0&&An.charCodeAt(0)===35&&(An=An.slice(1));const Oi=o0(Et,An,"",vi);let Eo=uL(Oi);if(D&&!(Eo&D)){const Ka=o0(Et,An,D===268435456?"_i":"_n",vi);if(Gg(Ka,Et))return Eo|=D,Et?sT(Ka):he&&zg(Ka),jx(Oi,Eo),Ka}for(;;){const wi=Eo&268435455;if(Eo++,wi!==8&&wi!==13){const Ka=wi<26?"_"+String.fromCharCode(97+wi):"_"+(wi-26),yc=o0(Et,An,Ka,vi);if(Gg(yc,Et))return Et?sT(yc):he&&zg(yc),jx(Oi,Eo),yc}}}function wy(D,he=Gg,Et,An,vi,Oi,Eo){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),Oi.length>0&&Oi.charCodeAt(0)===35&&(Oi=Oi.slice(1)),Et){const Ka=o0(vi,Oi,D,Eo);if(he(Ka,vi))return vi?sT(Ka):An?zg(Ka):j.add(Ka),Ka}D.charCodeAt(D.length-1)!==95&&(D+="_");let wi=1;for(;;){const Ka=o0(vi,Oi,D+wi,Eo);if(he(Ka,vi))return vi?sT(Ka):An?zg(Ka):j.add(Ka),Ka;wi++}}function wC(D){return wy(D,Gx,!0,!1,!1,"","")}function z0(D){const he=Mv(D.name);return Vx(he,ni(D,N_))?he:wy(he,Gg,!1,!1,!1,"","")}function lA(D){const he=EI(D),Et=Oa(he)?rne(he.text):"module";return wy(Et,Gg,!1,!1,!1,"","")}function gc(){return wy("default",Gg,!1,!1,!1,"","")}function pd(){return wy("class",Gg,!1,!1,!1,"","")}function Ux(D,he,Et,An){return Je(D.name)?sA(D.name,he):F0(0,!1,he,Et,An)}function fp(D,he,Et,An,vi){switch(D.kind){case 80:case 81:return wy(Mv(D),Gg,!!(Et&16),!!(Et&8),he,An,vi);case 268:case 267:return C.assert(!An&&!vi&&!he),z0(D);case 273:case 279:return C.assert(!An&&!vi&&!he),lA(D);case 263:case 264:{C.assert(!An&&!vi&&!he);const Oi=D.name;return Oi&&!ml(Oi)?fp(Oi,!1,Et,An,vi):gc()}case 278:return C.assert(!An&&!vi&&!he),gc();case 232:return C.assert(!An&&!vi&&!he),pd();case 175:case 178:case 179:return Ux(D,he,An,vi);case 168:return F0(0,!0,he,An,vi);default:return F0(0,!1,he,An,vi)}}function rm(D){const he=D.emitNode.autoGenerate,Et=BD(he.prefix,W0),An=BD(he.suffix);switch(he.flags&7){case 1:return F0(0,!!(he.flags&8),Qi(D),Et,An);case 2:return C.assertNode(D,Je),F0(268435456,!!(he.flags&8),!1,Et,An);case 3:return wy(Kr(D),he.flags&32?Gx:Gg,!!(he.flags&16),!!(he.flags&8),Qi(D),Et,An)}return C.fail(`Unsupported GeneratedIdentifierKind: ${C.formatEnum(he.flags&7,b9,!0)}.`)}function vE(D,he){const Et=Lt(2,D,he),An=ye,vi=Ue,Oi=Ge;Rh(he),Et(D,he),lT(he,An,vi,Oi)}function Rh(D){const he=Za(D),Et=n_(D);Pv(D,he,Et.pos,Et.end),he&4096&&(cn=!0)}function lT(D,he,Et,An){const vi=Za(D),Oi=n_(D);vi&4096&&(cn=!1),Hx(D,vi,Oi.pos,Oi.end,he,Et,An);const Eo=Rie(D);Eo&&Hx(D,vi,Eo.pos,Eo.end,he,Et,An)}function Pv(D,he,Et,An){gt(),Wt=!1;const vi=Et<0||(he&1024)!==0||D.kind===12,Oi=An<0||(he&2048)!==0||D.kind===12;(Et>0||An>0)&&Et!==An&&(vi||Ep(Et,D.kind!==354),(!vi||Et>=0&&(he&1024)!==0)&&(ye=Et),(!Oi||An>=0&&(he&2048)!==0)&&(Ue=An,D.kind===262&&(Ge=An))),qe(ED(D),pL),en()}function Hx(D,he,Et,An,vi,Oi,Eo){gt();const wi=An<0||(he&2048)!==0||D.kind===12;qe(gw(D),Ul),(Et>0||An>0)&&Et!==An&&(ye=vi,Ue=Oi,Ge=Eo,!wi&&D.kind!==354&&Jx(An)),en()}function pL(D){(D.hasLeadingNewline||D.kind===2)&&Ne.writeLine(),OC(D),D.hasTrailingNewLine||D.kind===2?Ne.writeLine():Ne.writeSpace(" ")}function Ul(D){Ne.isAtStartOfLine()||Ne.writeSpace(" "),OC(D),D.hasTrailingNewLine&&Ne.writeLine()}function OC(D){const he=cA(D),Et=D.kind===3?cI(he):void 0;fD(he,Et,Ne,0,he.length,R)}function cA(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function bE(D,he,Et){gt();const{pos:An,end:vi}=he,Oi=Za(D),Eo=An<0||(Oi&1024)!==0,wi=cn||vi<0||(Oi&2048)!==0;Eo||Xp(he),en(),Oi&4096&&!cn?(cn=!0,Et(D),cn=!1):Et(D),gt(),wi||(Ep(he.end,!0),Wt&&!Ne.isAtStartOfLine()&&Ne.writeLine()),en()}function qx(D,he){return D=bl(D),D.parent&&D.parent===bl(he).parent}function mu(D,he){if(he.pos-1&&An.indexOf(he)===vi+1}function Ep(D,he){Wt=!1,he?D===0&&k?.isDeclarationFile?Xx(D,B0):Xx(D,uA):D===0&&Xx(D,dA)}function dA(D,he,Et,An,vi){mA(D,he)&&uA(D,he,Et,An,vi)}function B0(D,he,Et,An,vi){mA(D,he)||uA(D,he,Et,An,vi)}function Ap(D,he){return e.onlyPrintJsDocStyle?oU(D,he)||jF(D,he):!0}function uA(D,he,Et,An,vi){!k||!Ap(k.text,D)||(Wt||(ere(Ia(),Ne,vi,D),Wt=!0),Qc(D),fD(k.text,Ia(),Ne,D,he,R),Qc(he),An?Ne.writeLine():Et===3&&Ne.writeSpace(" "))}function Vg(D){cn||D===-1||Ep(D,!0)}function Jx(D){fA(D,pA)}function pA(D,he,Et,An){!k||!Ap(k.text,D)||(Ne.isAtStartOfLine()||Ne.writeSpace(" "),Qc(D),fD(k.text,Ia(),Ne,D,he,R),Qc(he),An&&Ne.writeLine())}function th(D,he,Et){cn||(gt(),fA(D,he?pA:Et?Kx:WC),en())}function Kx(D,he,Et){k&&(Qc(D),fD(k.text,Ia(),Ne,D,he,R),Qc(he),Et===2&&Ne.writeLine())}function WC(D,he,Et,An){k&&(Qc(D),fD(k.text,Ia(),Ne,D,he,R),Qc(he),An?Ne.writeLine():Ne.writeSpace(" "))}function Xx(D,he){k&&(ye===-1||D!==ye)&&(Yx(D)?Lv(he):P2(k.text,D,he,D))}function fA(D,he){k&&(Ue===-1||D!==Ue&&D!==Ge)&&L2(k.text,D,he)}function Yx(D){return at!==void 0&&Ga(at).nodePos===D}function Lv(D){if(!k)return;const he=Ga(at).detachedCommentEndPos;at.length-1?at.pop():at=void 0,P2(k.text,he,D,he)}function Xp(D){const he=k&&tre(k.text,Ia(),Ne,v_,D,R,cn);he&&(at?at.push(he):at=[he])}function v_(D,he,Et,An,vi,Oi){!k||!Ap(k.text,An)||(Qc(An),fD(D,he,Et,An,vi,Oi),Qc(vi))}function mA(D,he){return!!k&&AG(k.text,D,he)}function hA(D,he){const Et=Lt(3,D,he);as(he),Et(D,he),Wr(he)}function as(D){const he=Za(D),Et=dv(D),An=Et.source||Be;D.kind!==354&&(he&32)===0&&Et.pos>=0&&G0(Et.source||Be,Rf(An,Et.pos)),he&128&&(Te=!0)}function Wr(D){const he=Za(D),Et=dv(D);he&128&&(Te=!1),D.kind!==354&&(he&64)===0&&Et.end>=0&&G0(Et.source||Be,Et.end)}function Rf(D,he){return D.skipTrivia?D.skipTrivia(he):wa(D.text,he)}function Qc(D){if(Te||fh(D)||gA(Be))return;const{line:he,character:Et}=ca(Be,D);Me.addMapping(Ne.getLine(),Ne.getColumn(),lt,he,Et,void 0)}function G0(D,he){if(D!==Be){const Et=Be,An=lt;TE(D),Qc(he),V0(Et,An)}else Qc(he)}function _A(D,he,Et,An,vi){if(Te||D&&l6(D))return vi(he,Et,An);const Oi=D&&D.emitNode,Eo=Oi&&Oi.flags||0,wi=Oi&&Oi.tokenSourceMapRanges&&Oi.tokenSourceMapRanges[he],Ka=wi&&wi.source||Be;return An=Rf(Ka,wi?wi.pos:An),(Eo&256)===0&&An>=0&&G0(Ka,An),An=vi(he,Et,An),wi&&(An=wi.end),(Eo&512)===0&&An>=0&&G0(Ka,An),An}function TE(D){if(!Te){if(Be=D,D===ce){lt=Ce;return}gA(D)||(lt=Me.addSource(D.fileName),e.inlineSources&&Me.setSourceContent(lt,D.text),ce=D,Ce=lt)}}function V0(D,he){Be=D,lt=he}function gA(D){return xl(D.fileName,".json")}}function _Je(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function gJe(e){return FAe[e&15360][0]}function yJe(e){return FAe[e&15360][1]}function vJe(e,t,r,i){t(e)}function bJe(e,t,r,i){t(e,r.select(i))}function TJe(e,t,r,i){t(e,r)}function SJe(e,t){return e.length===1?vJe:typeof t=="object"?bJe:TJe}function P3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=Gd(r);return{useCaseSensitiveFileNames:r,fileExists:A,readFile:(q,ve)=>e.readFile(q,ve),directoryExists:e.directoryExists&&R,getDirectories:P,readDirectory:k,createDirectory:e.createDirectory&&N,writeFile:e.writeFile&&E,addOrDeleteFileOrDirectory:G,addOrDeleteFile:j,clearCache:Z,realpath:e.realpath&&F};function s(q){return Os(q,t,o)}function l(q){return i.get(qc(q))}function u(q){const ve=l(ci(q));return ve&&(ve.sortedAndCanonicalizedFiles||(ve.sortedAndCanonicalizedFiles=ve.files.map(o).sort(),ve.sortedAndCanonicalizedDirectories=ve.directories.map(o).sort()),ve)}function d(q){return Dc(ya(q))}function _(q,ve){var oe;if(!e.realpath||qc(s(e.realpath(q)))===ve){const K={files:Yt(e.readDirectory(q,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(q)||[]};return i.set(qc(ve),K),K}if((oe=e.directoryExists)!=null&&oe.call(e,q))return i.set(ve,!1),!1}function h(q,ve){ve=qc(ve);const oe=l(ve);if(oe)return oe;try{return _(q,ve)}catch{C.assert(!i.has(qc(ve)));return}}function y(q,ve){return ib(q,ve,Us,Bd)>=0}function E(q,ve,oe){const K=s(q),fe=u(K);return fe&&J(fe,d(q),!0),e.writeFile(q,ve,oe)}function A(q){const ve=s(q),oe=u(ve);return oe&&y(oe.sortedAndCanonicalizedFiles,o(d(q)))||e.fileExists(q)}function R(q){const ve=s(q);return i.has(qc(ve))||e.directoryExists(q)}function N(q){const ve=s(q),oe=u(ve);if(oe){const K=d(q),fe=o(K),ue=oe.sortedAndCanonicalizedDirectories;nb(ue,fe,Bd)&&oe.directories.push(K)}e.createDirectory(q)}function P(q){const ve=s(q),oe=h(q,ve);return oe?oe.directories.slice():e.getDirectories(q)}function k(q,ve,oe,K,fe){const ue=s(q),me=h(q,ue);let be;if(me!==void 0)return Bre(q,ve,oe,K,r,t,fe,De,F);return e.readDirectory(q,ve,oe,K,fe);function De(Ne){const Xe=s(Ne);if(Xe===ue)return me||Y(Ne,Xe);const Ee=h(Ne,Xe);return Ee!==void 0?Ee||Y(Ne,Xe):qre}function Y(Ne,Xe){if(be&&Xe===ue)return be;const Ee={files:Yt(e.readDirectory(Ne,void 0,void 0,["*.*"]),d)||ie,directories:e.getDirectories(Ne)||ie};return Xe===ue&&(be=Ee),Ee}}function F(q){return e.realpath?e.realpath(q):q}function W(q){NN(ci(q),ve=>i.delete(qc(ve))?!0:void 0)}function G(q,ve){if(l(ve)!==void 0){Z();return}const K=u(ve);if(!K){W(ve);return}if(!e.directoryExists){Z();return}const fe=d(q),ue={fileExists:e.fileExists(q),directoryExists:e.directoryExists(q)};return ue.directoryExists||y(K.sortedAndCanonicalizedDirectories,o(fe))?Z():J(K,fe,ue.fileExists),ue}function j(q,ve,oe){if(oe===1)return;const K=u(ve);K?J(K,d(q),oe===0):W(ve)}function J(q,ve,oe){const K=q.sortedAndCanonicalizedFiles,fe=o(ve);if(oe)nb(K,fe,Bd)&&q.files.push(ve);else{const ue=ib(K,fe,Us,Bd);if(ue>=0){K.splice(ue,1);const me=q.files.findIndex(be=>o(be)===fe);q.files.splice(me,1)}}}function Z(){i.clear()}}var xse=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(xse||{});function L3(e,t,r,i,o){var s;const l=NR(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||ie,o);r.forEach((u,d)=>{l.has(d)||(u.projects.delete(e),u.close())}),l.forEach((u,d)=>{const _=r.get(d);_?_.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(u,d),close:()=>{const h=r.get(d);!h||h.projects.size!==0||(h.watcher.close(),r.delete(d))}})})}function EH(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function k3(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&k3(e,o,r)})}function AH(e,t,r){AM(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Hm})}function aO(e,t,r){t?AM(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Qf,onExistingValue:o}):yp(e,Qf);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,u){s.flags!==l&&(s.watcher.close(),e.set(u,i(u,l)))}}function sO({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:d,writeLog:_,toPath:h,getScriptKind:y}){const E=J3(r);if(!E)return _(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(OR(r)&&!($V(t,o,l)||k()))return _(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Yoe(t,o.configFile.configFileSpecs,bo(ci(i),u),d,u))return _(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||o.outFile||o.outDir)return!1;if(sd(r)){if(o.declarationDir)return!1}else if(!tc(r,vD))return!1;const A=Au(r),R=No(s)?void 0:eq(s)?s.getProgramOrUndefined():s,N=!R&&!No(s)?s:void 0;if(P(A+".ts")||P(A+".tsx"))return _(`Project: ${i} Detected output file: ${t}`),!0;return!1;function P(F){return R?!!R.getSourceFileByPath(F):N?N.state.fileInfos.has(F):!!mn(s,W=>h(W)===F)}function k(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Mb(o);case 6:return WS(o);case 0:return!1}}}function Rse(e,t){return e?e.isEmittedFile(t):!1}var Dse=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Dse||{});function IH(e,t,r,i){Oee(t===2?r:gs);const o={watchFile:(N,P,k,F)=>e.watchFile(N,P,k,F),watchDirectory:(N,P,k,F)=>e.watchDirectory(N,P,(k&1)!==0,F)},s=t!==0?{watchFile:A("watchFile"),watchDirectory:A("watchDirectory")}:void 0,l=t===2?{watchFile:y,watchDirectory:E}:s||o,u=t===2?h:DP;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(N){return(P,k,F,W,G,j)=>{var J;return o3(P,N==="watchFile"?W?.excludeFiles:W?.excludeDirectories,_(),((J=e.getCurrentDirectory)==null?void 0:J.call(e))||"")?u(P,F,W,G,j):l[N].call(void 0,P,k,F,W,G,j)}}function _(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function h(N,P,k,F,W){return r(`ExcludeWatcher:: Added:: ${R(N,P,k,F,W,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(N,P,k,F,W,i)}`)}}function y(N,P,k,F,W,G){r(`FileWatcher:: Added:: ${R(N,k,F,W,G,i)}`);const j=s.watchFile(N,P,k,F,W,G);return{close:()=>{r(`FileWatcher:: Close:: ${R(N,k,F,W,G,i)}`),j.close()}}}function E(N,P,k,F,W,G){const j=`DirectoryWatcher:: Added:: ${R(N,k,F,W,G,i)}`;r(j);const J=ws(),Z=s.watchDirectory(N,P,k,F,W,G),q=ws()-J;return r(`Elapsed:: ${q}ms ${j}`),{close:()=>{const ve=`DirectoryWatcher:: Close:: ${R(N,k,F,W,G,i)}`;r(ve);const oe=ws();Z.close();const K=ws()-oe;r(`Elapsed:: ${K}ms ${ve}`)}}}function A(N){return(P,k,F,W,G,j)=>o[N].call(void 0,P,(...J)=>{const Z=`${N==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${J[0]} ${J[1]!==void 0?J[1]:""}:: ${R(P,F,W,G,j,i)}`;r(Z);const q=ws();k.call(void 0,...J);const ve=ws()-q;r(`Elapsed:: ${ve}ms ${Z}`)},F,W,G,j)}function R(N,P,k,F,W,G){return`WatchInfo: ${N} ${P} ${JSON.stringify(k)} ${G?G(F,W):W===void 0?F:`${F} ${W}`}`}}function lO(e){const t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Qf(e){e.watcher.close()}function xH(e,t,r="tsconfig.json"){return NN(e,i=>{const o=Qr(i,r);return t(o)?o:void 0})}function RH(e,t){const r=ci(t),i=Pp(e)?e:Qr(r,e);return ya(i)}function Cse(e,t,r){let i;return qe(e,s=>{const l=cF(s,t);if(l.pop(),!i){i=l;return}const u=Math.min(i.length,l.length);for(let d=0;d{let s;try{Nl("beforeIORead"),s=e(r),Nl("afterIORead"),zf("I/O Read","beforeIORead","afterIORead")}catch(l){o&&o(l.message),s=""}return s!==void 0?ax(r,s,i,t):void 0}}function CH(e,t,r){return(i,o,s,l)=>{try{Nl("beforeIOWrite"),yV(i,o,s,e,t,r),Nl("afterIOWrite"),zf("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function w3(e,t,r=Hc){const i=new Map,o=Gd(r.useCaseSensitiveFileNames);function s(h){return i.has(h)?!0:(_.directoryExists||r.directoryExists)(h)?(i.set(h,!0),!0):!1}function l(){return ci(ya(r.getExecutingFilePath()))}const u=av(e),d=r.realpath&&(h=>r.realpath(h)),_={getSourceFile:DH(h=>_.readFile(h),t),getDefaultLibLocation:l,getDefaultLibFileName:h=>Qr(l(),w2(h)),writeFile:CH((h,y,E)=>r.writeFile(h,y,E),h=>(_.createDirectory||r.createDirectory)(h),h=>s(h)),getCurrentDirectory:Lu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>u,fileExists:h=>r.fileExists(h),readFile:h=>r.readFile(h),trace:h=>r.write(h+u),directoryExists:h=>r.directoryExists(h),getEnvironmentVariable:h=>r.getEnvironmentVariable?r.getEnvironmentVariable(h):"",getDirectories:h=>r.getDirectories(h),realpath:d,readDirectory:(h,y,E,A,R)=>r.readDirectory(h,y,E,A,R),createDirectory:h=>r.createDirectory(h),createHash:oa(r,r.createHash)};return _}function AP(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,d=new Map,_=new Map,h=new Map,y=new Map,E=N=>{const P=t(N),k=d.get(P);return k!==void 0?k!==!1?k:void 0:A(P,N)},A=(N,P)=>{const k=i.call(e,P);return d.set(N,k!==void 0?k:!1),k};e.readFile=N=>{const P=t(N),k=d.get(P);return k!==void 0?k!==!1?k:void 0:!xl(N,".json")&&!bse(N)?i.call(e,N):A(P,N)};const R=r?(N,P,k,F)=>{const W=t(N),G=typeof P=="object"?P.impliedNodeFormat:void 0,j=y.get(G),J=j?.get(W);if(J)return J;const Z=r(N,P,k,F);return Z&&(sd(N)||xl(N,".json"))&&y.set(G,(j||new Map).set(W,Z)),Z}:void 0;return e.fileExists=N=>{const P=t(N),k=_.get(P);if(k!==void 0)return k;const F=o.call(e,N);return _.set(P,!!F),F},u&&(e.writeFile=(N,P,...k)=>{const F=t(N);_.delete(F);const W=d.get(F);W!==void 0&&W!==P?(d.delete(F),y.forEach(G=>G.delete(F))):R&&y.forEach(G=>{const j=G.get(F);j&&j.text!==P&&G.delete(F)}),u.call(e,N,P,...k)}),s&&(e.directoryExists=N=>{const P=t(N),k=h.get(P);if(k!==void 0)return k;const F=s.call(e,N);return h.set(P,!!F),F},l&&(e.createDirectory=N=>{const P=t(N);h.delete(P),l.call(e,N)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:u,getSourceFileWithCache:R,readFileWithCache:E}}function qAe(e,t,r){let i;return i=Xr(i,e.getConfigFileParsingDiagnostics()),i=Xr(i,e.getOptionsDiagnostics(r)),i=Xr(i,e.getSyntacticDiagnostics(t,r)),i=Xr(i,e.getGlobalDiagnostics(r)),i=Xr(i,e.getSemanticDiagnostics(t,r)),vp(e.getCompilerOptions())&&(i=Xr(i,e.getDeclarationDiagnostics(t,r))),GR(i||ie)}function JAe(e,t){let r="";for(const i of e)r+=NH(i,t);return r}function NH(e,t){const r=`${JE(e)} TS${e.code}: ${c_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=ca(e.file,e.start),s=e.file.fileName;return`${CN(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}var Mse=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Mse||{}),Pse="\x1B[7m",Lse=" ",KAe="\x1B[0m",XAe="...",EJe=" ",YAe=" ";function $Ae(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return C.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function tE(e,t){return t+e+KAe}function QAe(e,t,r,i,o,s){const{line:l,character:u}=ca(e,t),{line:d,character:_}=ca(e,t+r),h=ca(e,e.text.length).line,y=d-l>=4;let E=(d+1+"").length;y&&(E=Math.max(XAe.length,E));let A="";for(let R=l;R<=d;R++){A+=s.getNewLine(),y&&l+1r.getCanonicalFileName(d)):e.fileName;let u="";return u+=i(l,"\x1B[96m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u}function kse(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=MH(o,s,t),r+=" - "}if(r+=tE(JE(i),$Ae(i.category)),r+=tE(` TS${i.code}: `,"\x1B[90m"),r+=c_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=QAe(i.file,i.start,i.length,"",$Ae(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(const{file:o,start:s,length:l,messageText:u}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=EJe+MH(o,s,t),r+=QAe(o,s,l,YAe,"\x1B[96m",t)),r+=t.getNewLine(),r+=YAe+c_(u,t.getNewLine())}r+=t.getNewLine()}return r}function c_(e,t,r=0){if(Bo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;oLH(t,e,r)};function kH(e,t,r,i,o){return{nameAndMode:W3,resolve:(s,l)=>w1(s,e,r,i,o,t,l)}}function Wse(e){return Bo(e)?e:e.fileName}var nIe={getName:Wse,getMode:(e,t,r)=>wse(e,t&&G3(t,r))};function F3(e,t,r,i,o){return{nameAndMode:nIe,resolve:(s,l)=>oae(s,e,r,i,t,o,l)}}function cO(e,t,r,i,o,s,l,u){if(e.length===0)return ie;const d=[],_=new Map,h=u(t,r,i,s,l);for(const y of e){const E=h.nameAndMode.getName(y),A=h.nameAndMode.getMode(y,o,r?.commandLine.options||i),R=cP(E,A);let N=_.get(R);N||_.set(R,N=h.resolve(E,A)),d.push(N)}return d}var IP="__inferred type names__.ts";function z3(e,t,r){const i=e.configFilePath?ci(e.configFilePath):t;return Qr(i,`__lib_node_modules_lookup_${r}__.ts`)}function wH(e){const t=e.split(".");let r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function p0(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function QD(e){return e.pos!==void 0}function xP(e,t){var r,i,o,s;const l=C.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:d}=t;let _,h,y;switch(u){case 3:const E=pO(l,d);if(y=(i=(r=e.getResolvedModuleFromModuleSpecifier(E,l))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,E.pos===-1)return{file:l,packageId:y,text:E.text};_=wa(l.text,E.pos),h=E.end;break;case 4:({pos:_,end:h}=l.referencedFiles[d]);break;case 5:({pos:_,end:h}=l.typeReferenceDirectives[d]),y=(s=(o=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l.typeReferenceDirectives[d],l))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:_,end:h}=l.libReferenceDirectives[d]);break;default:return C.assertNever(u)}return{file:l,pos:_,end:h,packageId:y}}function OH(e,t,r,i,o,s,l,u,d,_){if(!e||u?.()||!tf(e.getRootFileNames(),t))return!1;let h;if(!tf(e.getProjectReferences(),_,N)||e.getSourceFiles().some(A))return!1;const y=e.getMissingFilePaths();if(y&&Jc(y,o))return!1;const E=e.getCompilerOptions();if(!wV(E,r)||e.resolvedLibReferences&&Jc(e.resolvedLibReferences,(k,F)=>l(F)))return!1;if(E.configFile&&r.configFile)return E.configFile.text===r.configFile.text;return!0;function A(k){return!R(k)||s(k.path)}function R(k){return k.version===i(k.resolvedPath,k.fileName)}function N(k,F,W){return bG(k,F)&&P(e.getResolvedProjectReferences()[W],k)}function P(k,F){if(k){if(jn(h,k))return!0;const G=mx(F),j=d(G);return!j||k.commandLine.options.configFile!==j.options.configFile||!tf(k.commandLine.fileNames,j.fileNames)?!1:((h||(h=[])).push(k),!qe(k.references,(J,Z)=>!P(J,k.commandLine.projectReferences[Z])))}const W=mx(F);return!d(W)}}function nE(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function dO(e,t,r,i){const o=B3(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function B3(e,t,r,i){const o=su(i),s=3<=o&&o<=99||Vb(e);return tc(e,[".d.mts",".mts",".mjs"])?99:tc(e,[".d.cts",".cts",".cjs"])?1:s&&tc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?l():void 0;function l(){const u=dP(t,r,i),d=[];u.failedLookupLocations=d,u.affectingLocations=d;const _=uP(ci(e),u);return{impliedNodeFormat:_?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:d,packageJsonScope:_}}}var rIe=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.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,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.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,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.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,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function AJe(e,t){return e?_I(e.getCompilerOptions(),t,fU):!1}function IJe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function uO(e,t,r,i,o){var s,l,u,d,_,h,y,E,A,R,N,P,k,F,W,G;let j=No(e)?IJe(e,t,r,i,o):e;const{rootNames:J,options:Z,configFileParsingDiagnostics:q,projectReferences:ve,typeScriptVersion:oe,host:K}=j;let{oldProgram:fe}=j;j=void 0,e=void 0;for(const Ye of Foe)if(Cs(Z,Ye.name)&&typeof Z[Ye.name]=="string")throw new Error(`${Ye.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const ue=Lu(()=>kt("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations));let me,be,De,Y,Ne,Xe,Ee,re,Te;const Me=Fse(So);let Be,lt,ce,Ce,ye,Ue,Ge,We,at;const Wt=typeof Z.maxNodeModuleJsDepth=="number"?Z.maxNodeModuleJsDepth:0;let cn=0;const gn=new Map,Kn=new Map;(s=xr)==null||s.push(xr.Phase.Program,"createProgram",{configFilePath:Z.configFilePath,rootDir:Z.rootDir},!0),Nl("beforeProgram");const gt=K||Nse(Z),en=j3(gt);let or=Z.noLib;const Ni=Lu(()=>gt.getDefaultLibFileName(Z)),so=gt.getDefaultLibLocation?gt.getDefaultLibLocation():ci(Ni());let zt=!1;const Zr=gt.getCurrentDirectory(),xi=DM(Z),Pi=rw(Z,xi),Pr=new Map;let Mi,$e,At,hn;const dr=gt.hasInvalidatedResolutions||ny;gt.resolveModuleNameLiterals?(hn=gt.resolveModuleNameLiterals.bind(gt),At=(l=gt.getModuleResolutionCache)==null?void 0:l.call(gt)):gt.resolveModuleNames?(hn=(Ye,ht,Xt,Rn,Qn,Lr)=>gt.resolveModuleNames(Ye.map(Ose),ht,Lr?.map(Ose),Xt,Rn,Qn).map(Yn=>Yn?Yn.extension!==void 0?{resolvedModule:Yn}:{resolvedModule:{...Yn,extension:NM(Yn.resolvedFileName)}}:tIe),At=(u=gt.getModuleResolutionCache)==null?void 0:u.call(gt)):(At=HD(Zr,$c,Z),hn=(Ye,ht,Xt,Rn,Qn)=>cO(Ye,ht,Xt,Rn,Qn,gt,At,kH));let ri;if(gt.resolveTypeReferenceDirectiveReferences)ri=gt.resolveTypeReferenceDirectiveReferences.bind(gt);else if(gt.resolveTypeReferenceDirectives)ri=(Ye,ht,Xt,Rn,Qn)=>gt.resolveTypeReferenceDirectives(Ye.map(Wse),ht,Xt,Rn,Qn?.impliedNodeFormat).map(Lr=>({resolvedTypeReferenceDirective:Lr}));else{const Ye=u3(Zr,$c,void 0,At?.getPackageJsonInfoCache(),At?.optionsToRedirectsKey);ri=(ht,Xt,Rn,Qn,Lr)=>cO(ht,Xt,Rn,Qn,Lr,gt,Ye,F3)}const ai=gt.hasInvalidatedLibResolutions||ny;let qi;if(gt.resolveLibrary)qi=gt.resolveLibrary.bind(gt);else{const Ye=HD(Zr,$c,Z,At?.getPackageJsonInfoCache());qi=(ht,Xt,Rn)=>p3(ht,Xt,Rn,gt,Ye)}const Qo=new Map;let Ia=new Map,Pn=hm(),Uo;const ot=new Map;let Ft=new Map;const le=gt.useCaseSensitiveFileNames()?new Map:void 0;let _t,ne,Fe,it;const dt=!!((d=gt.useSourceOfProjectReferenceRedirect)!=null&&d.call(gt))&&!Z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Lt,fileExists:He,directoryExists:Rt}=xJe({compilerHost:gt,getSymlinkCache:Af,useSourceOfProjectReferenceRedirect:dt,toPath:Vt,getResolvedProjectReferences:la,getRedirectFromOutput:Yl,forEachResolvedProjectReference:Ol}),It=gt.readFile.bind(gt);(_=xr)==null||_.push(xr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!fe});const Ot=AJe(fe,Z);(h=xr)==null||h.pop();let nt;if((y=xr)==null||y.push(xr.Phase.Program,"tryReuseStructureFromOldProgram",{}),nt=wn(),(E=xr)==null||E.pop(),nt!==2){if(me=[],be=[],ve&&(_t||(_t=ve.map(h_)),J.length&&_t?.forEach((Ye,ht)=>{if(!Ye)return;const Xt=Ye.commandLine.options.outFile;if(dt){if(Xt||Eu(Ye.commandLine.options)===0)for(const Rn of Ye.commandLine.fileNames)lp(Rn,{kind:1,index:ht})}else if(Xt)lp(lv(Xt,".d.ts"),{kind:2,index:ht});else if(Eu(Ye.commandLine.options)===0){const Rn=Lu(()=>z1(Ye.commandLine,!gt.useCaseSensitiveFileNames()));for(const Qn of Ye.commandLine.fileNames)!sd(Qn)&&!xl(Qn,".json")&&lp(SP(Qn,Ye.commandLine,!gt.useCaseSensitiveFileNames(),Rn),{kind:2,index:ht})}})),(A=xr)==null||A.push(xr.Phase.Program,"processRootFiles",{count:J.length}),qe(J,(Ye,ht)=>Ca(Ye,!1,!1,{kind:0,index:ht})),(R=xr)==null||R.pop(),Be??(Be=J.length?c3(Z,gt):ie),lt=UD(),Be.length){(N=xr)==null||N.push(xr.Phase.Program,"processTypeReferences",{count:Be.length});const Ye=Z.configFilePath?ci(Z.configFilePath):Zr,ht=Qr(Ye,IP),Xt=wt(Be,ht);for(let Rn=0;Rn{Ca(kg(ht),!0,!1,{kind:6,index:Xt})})}De=Cp(me,mt).concat(be),me=void 0,be=void 0,Ee=void 0}if(fe&>.onReleaseOldSourceFile){const Ye=fe.getSourceFiles();for(const ht of Ye){const Xt=Da(ht.resolvedPath);(Ot||!Xt||Xt.impliedNodeFormat!==ht.impliedNodeFormat||ht.resolvedPath===ht.path&&Xt.resolvedPath!==ht.path)&>.onReleaseOldSourceFile(ht,fe.getCompilerOptions(),!!Da(ht.path),Xt)}gt.getParsedCommandLine||fe.forEachResolvedProjectReference(ht=>{Td(ht.sourceFile.path)||gt.onReleaseOldSourceFile(ht.sourceFile,fe.getCompilerOptions(),!1,void 0)})}fe&>.onReleaseParsedCommandLine&&BM(fe.getProjectReferences(),fe.getResolvedProjectReferences(),(Ye,ht,Xt)=>{const Rn=ht?.commandLine.projectReferences[Xt]||fe.getProjectReferences()[Xt],Qn=mx(Rn);ne?.has(Vt(Qn))||gt.onReleaseParsedCommandLine(Qn,Ye,fe.getCompilerOptions())}),fe=void 0,Ce=void 0,Ue=void 0,We=void 0;const Jt={getRootFileNames:()=>J,getSourceFile:Zs,getSourceFileByPath:Da,getSourceFiles:()=>De,getMissingFilePaths:()=>Ft,getModuleResolutionCache:()=>At,getFilesByNameMap:()=>ot,getCompilerOptions:()=>Z,getSyntacticDiagnostics:Sf,getOptionsDiagnostics:Bn,getGlobalDiagnostics:To,getSemanticDiagnostics:Po,getCachedSemanticDiagnostics:fa,getSuggestionDiagnostics:ft,getDeclarationDiagnostics:Zt,getBindAndCheckDiagnostics:os,getProgramDiagnostics:Ja,getTypeChecker:ks,getClassifiableNames:In,getCommonSourceDirectory:Qt,emit:lo,getCurrentDirectory:()=>Zr,getNodeCount:()=>ks().getNodeCount(),getIdentifierCount:()=>ks().getIdentifierCount(),getSymbolCount:()=>ks().getSymbolCount(),getTypeCount:()=>ks().getTypeCount(),getInstantiationCount:()=>ks().getInstantiationCount(),getRelationCacheSizes:()=>ks().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Me.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Be,getAutomaticTypeDirectiveResolutions:()=>lt,isSourceFileFromExternalLibrary:jl,isSourceFileDefaultLibrary:Cl,getModeForUsageLocation:em,getEmitSyntaxForUsageLocation:Iy,getModeForResolutionAtIndex:Ev,getSourceFileFromReference:Sh,getLibFileFromReference:wl,sourceFileToPackageName:Ia,redirectTargetsMap:Pn,usesUriStyleNodeCoreModules:Uo,resolvedModules:ye,resolvedTypeReferenceDirectiveNames:Ge,resolvedLibReferences:ce,getProgramDiagnosticsContainer:()=>Me,getResolvedModule:Tr,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Nt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:ge,forEachResolvedModule:B,forEachResolvedTypeReferenceDirective:Ie,getCurrentPackagesMap:()=>at,typesPackageExists:Kt,packageBundlesTypes:Le,isEmittedFile:dd,getConfigFileParsingDiagnostics:Ps,getProjectReferences:zo,getResolvedProjectReferences:la,getRedirectFromSourceFile:rl,getResolvedProjectReferenceByPath:Td,forEachResolvedProjectReference:Ol,isSourceOfProjectReferenceRedirect:sf,getRedirectFromOutput:Yl,getCompilerOptionsForFile:Ru,getDefaultResolutionModeForFile:ju,getEmitModuleFormatOfFile:Ah,getImpliedNodeFormatForEmit:U_,shouldTransformImportCall:Mm,emitBuildInfo:ia,fileExists:He,readFile:It,directoryExists:Rt,getSymlinkCache:Af,realpath:(W=gt.realpath)==null?void 0:W.bind(gt),useCaseSensitiveFileNames:()=>gt.useCaseSensitiveFileNames(),getCanonicalFileName:$c,getFileIncludeReasons:()=>Me.getFileReasons(),structureIsReused:nt,writeFile:Ri,getGlobalTypingsCacheLocation:oa(gt,gt.getGlobalTypingsCacheLocation)};return Lt(),zt||ae(),Nl("afterProgram"),zf("Program","beforeProgram","afterProgram"),(G=xr)==null||G.pop(),Jt;function Tr(Ye,ht,Xt){var Rn;return(Rn=ye?.get(Ye.path))==null?void 0:Rn.get(ht,Xt)}function Oe(Ye,ht){return ht??(ht=zn(Ye)),C.assertIsDefined(ht,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),Tr(ht,Ye.text,em(ht,Ye))}function Nt(Ye,ht,Xt){var Rn;return(Rn=Ge?.get(Ye.path))==null?void 0:Rn.get(ht,Xt)}function ge(Ye,ht){return Nt(ht,Ye.fileName,Yb(Ye,ht))}function B(Ye,ht){te(ye,Ye,ht)}function Ie(Ye,ht){te(Ge,Ye,ht)}function te(Ye,ht,Xt){var Rn;Xt?(Rn=Ye?.get(Xt.path))==null||Rn.forEach((Qn,Lr,Yn)=>ht(Qn,Lr,Yn,Xt.path)):Ye?.forEach((Qn,Lr)=>Qn.forEach((Yn,cr,Wi)=>ht(Yn,cr,Wi,Lr)))}function xt(){return at||(at=new Map,B(({resolvedModule:Ye})=>{Ye?.packageId&&at.set(Ye.packageId.name,Ye.extension===".d.ts"||!!at.get(Ye.packageId.name))}),at)}function Kt(Ye){return xt().has(h3(Ye))}function Le(Ye){return!!xt().get(Ye)}function yt(Ye){var ht;(ht=Ye.resolutionDiagnostics)!=null&&ht.length&&Me.addFileProcessingDiagnostic({kind:2,diagnostics:Ye.resolutionDiagnostics})}function Bt(Ye,ht,Xt,Rn){if(gt.resolveModuleNameLiterals||!gt.resolveModuleNames)return yt(Xt);if(!At||nd(ht))return;const Qn=bo(Ye.originalFileName,Zr),Lr=ci(Qn),Yn=Jn(Ye),cr=At.getFromNonRelativeNameCache(ht,Rn,Lr,Yn);cr&&yt(cr)}function gr(Ye,ht,Xt){var Rn,Qn;const Lr=bo(ht.originalFileName,Zr),Yn=Jn(ht);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Lr}),Nl("beforeResolveModule");const cr=hn(Ye,Lr,Yn,Z,ht,Xt);return Nl("afterResolveModule"),zf("ResolveModule","beforeResolveModule","afterResolveModule"),(Qn=xr)==null||Qn.pop(),cr}function tr(Ye,ht,Xt){var Rn,Qn;const Lr=Bo(ht)?void 0:ht,Yn=Bo(ht)?ht:bo(ht.originalFileName,Zr),cr=Lr&&Jn(Lr);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Yn}),Nl("beforeResolveTypeReference");const Wi=ri(Ye,Yn,cr,Z,Lr,Xt);return Nl("afterResolveTypeReference"),zf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Qn=xr)==null||Qn.pop(),Wi}function Jn(Ye){var ht,Xt;const Rn=rl(Ye.originalFileName);if(Rn||!sd(Ye.originalFileName))return Rn?.resolvedRef;const Qn=(ht=Yl(Ye.path))==null?void 0:ht.resolvedRef;if(Qn)return Qn;if(!gt.realpath||!Z.preserveSymlinks||!Ye.originalFileName.includes(Pg))return;const Lr=Vt(gt.realpath(Ye.originalFileName));return Lr===Ye.path||(Xt=Yl(Lr))==null?void 0:Xt.resolvedRef}function mt(Ye,ht){return Hs(Mt(Ye),Mt(ht))}function Mt(Ye){if(gm(so,Ye.fileName,!1)){const ht=Dc(Ye.fileName);if(ht==="lib.d.ts"||ht==="lib.es6.d.ts")return 0;const Xt=LR(TN(ht,"lib."),".d.ts"),Rn=q4.indexOf(Xt);if(Rn!==-1)return Rn+1}return q4.length+2}function Vt(Ye){return Os(Ye,Zr,$c)}function Qt(){let Ye=Me.getCommonSourceDirectory();if(Ye!==void 0)return Ye;const ht=Un(De,Xt=>PS(Xt,Jt));return Ye=EP(Z,()=>Ei(ht,Xt=>Xt.isDeclarationFile?void 0:Xt.fileName),Zr,$c,Xt=>Ef(ht,Xt)),Me.setCommonSourceDirectory(Ye),Ye}function In(){var Ye;if(!Xe){ks(),Xe=new Set;for(const ht of De)(Ye=ht.classifiableNames)==null||Ye.forEach(Xt=>Xe.add(Xt))}return Xe}function yn(Ye,ht){return En({entries:Ye,containingFile:ht,containingSourceFile:ht,redirectedReference:Jn(ht),nameAndModeGetter:W3,resolutionWorker:gr,getResolutionFromOldProgram:(Xt,Rn)=>fe?.getResolvedModule(ht,Xt,Rn),getResolved:gI,canReuseResolutionsInFile:()=>ht===fe?.getSourceFile(ht.fileName)&&!dr(ht.path),resolveToOwnAmbientModule:!0})}function wt(Ye,ht){const Xt=Bo(ht)?void 0:ht;return En({entries:Ye,containingFile:ht,containingSourceFile:Xt,redirectedReference:Xt&&Jn(Xt),nameAndModeGetter:nIe,resolutionWorker:tr,getResolutionFromOldProgram:(Rn,Qn)=>{var Lr;return Xt?fe?.getResolvedTypeReferenceDirective(Xt,Rn,Qn):(Lr=fe?.getAutomaticTypeDirectiveResolutions())==null?void 0:Lr.get(Rn,Qn)},getResolved:zF,canReuseResolutionsInFile:()=>Xt?Xt===fe?.getSourceFile(Xt.fileName)&&!dr(Xt.path):!dr(Vt(ht))})}function En({entries:Ye,containingFile:ht,containingSourceFile:Xt,redirectedReference:Rn,nameAndModeGetter:Qn,resolutionWorker:Lr,getResolutionFromOldProgram:Yn,getResolved:cr,canReuseResolutionsInFile:Wi,resolveToOwnAmbientModule:xo}){if(!Ye.length)return ie;if(nt===0&&(!xo||!Xt.ambientModuleNames.length))return Lr(Ye,ht,void 0);let _i,Ro,$i,gl;const dp=Wi();for(let Sd=0;Sd$i[Ro[Lm]]=Sd),$i):Pm}function xn(){return!BM(fe.getProjectReferences(),fe.getResolvedProjectReferences(),(Ye,ht,Xt)=>{const Rn=(ht?ht.commandLine.projectReferences:ve)[Xt],Qn=h_(Rn);return Ye?!Qn||Qn.sourceFile!==Ye.sourceFile||!tf(Ye.commandLine.fileNames,Qn.commandLine.fileNames):Qn!==void 0},(Ye,ht)=>{const Xt=ht?Td(ht.sourceFile.path).commandLine.projectReferences:ve;return!tf(Ye,Xt,bG)})}function wn(){var Ye;if(!fe)return 0;const ht=fe.getCompilerOptions();if(WF(ht,Z))return 0;const Xt=fe.getRootFileNames();if(!tf(Xt,J)||!xn())return 0;ve&&(_t=ve.map(h_));const Rn=[],Qn=[];if(nt=2,Jc(fe.getMissingFilePaths(),_i=>gt.fileExists(_i)))return 0;const Lr=fe.getSourceFiles();let Yn;(_i=>{_i[_i.Exists=0]="Exists",_i[_i.Modified=1]="Modified"})(Yn||(Yn={}));const cr=new Map;for(const _i of Lr){const Ro=go(_i.fileName,At,gt,Z);let $i=gt.getSourceFileByPath?gt.getSourceFileByPath(_i.fileName,_i.resolvedPath,Ro,void 0,Ot):gt.getSourceFile(_i.fileName,Ro,void 0,Ot);if(!$i)return 0;$i.packageJsonLocations=(Ye=Ro.packageJsonLocations)!=null&&Ye.length?Ro.packageJsonLocations:void 0,$i.packageJsonScope=Ro.packageJsonScope,C.assert(!$i.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let gl;if(_i.redirectInfo){if($i!==_i.redirectInfo.unredirected)return 0;gl=!1,$i=_i}else if(fe.redirectTargetsMap.has(_i.path)){if($i!==_i)return 0;gl=!1}else gl=$i!==_i;$i.path=_i.path,$i.originalFileName=_i.originalFileName,$i.resolvedPath=_i.resolvedPath,$i.fileName=_i.fileName;const dp=fe.sourceFileToPackageName.get(_i.path);if(dp!==void 0){const Pm=cr.get(dp),Sd=gl?1:0;if(Pm!==void 0&&Sd===1||Pm===1)return 0;cr.set(dp,Sd)}gl?(_i.impliedNodeFormat!==$i.impliedNodeFormat?nt=1:tf(_i.libReferenceDirectives,$i.libReferenceDirectives,el)?_i.hasNoDefaultLib!==$i.hasNoDefaultLib?nt=1:tf(_i.referencedFiles,$i.referencedFiles,el)?(Js($i),tf(_i.imports,$i.imports,Ac)&&tf(_i.moduleAugmentations,$i.moduleAugmentations,Ac)?(_i.flags&12582912)!==($i.flags&12582912)?nt=1:tf(_i.typeReferenceDirectives,$i.typeReferenceDirectives,el)||(nt=1):nt=1):nt=1:nt=1,Qn.push($i)):dr(_i.path)&&(nt=1,Qn.push($i)),Rn.push($i)}if(nt!==2)return nt;for(const _i of Qn){const Ro=oIe(_i),$i=yn(Ro,_i);(Ue??(Ue=new Map)).set(_i.path,$i);const gl=Ru(_i);SG(Ro,$i,Kp=>fe.getResolvedModule(_i,Kp.text,O3(_i,Kp,gl)),Kte)&&(nt=1);const Pm=_i.typeReferenceDirectives,Sd=wt(Pm,_i);(We??(We=new Map)).set(_i.path,Sd),SG(Pm,Sd,Kp=>fe.getResolvedTypeReferenceDirective(_i,Wse(Kp),Yb(Kp,_i)),Xte)&&(nt=1)}if(nt!==2)return nt;if(qte(ht,Z)||fe.resolvedLibReferences&&Jc(fe.resolvedLibReferences,(_i,Ro)=>wg(Ro).actual!==_i.actual))return 1;if(gt.hasChangedAutomaticTypeDirectiveNames){if(gt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Be=c3(Z,gt),!tf(fe.getAutomaticTypeDirectiveNames(),Be))return 1;Ft=fe.getMissingFilePaths(),C.assert(Rn.length===fe.getSourceFiles().length);for(const _i of Rn)ot.set(_i.path,_i);fe.getFilesByNameMap().forEach((_i,Ro)=>{if(!_i){ot.set(Ro,_i);return}if(_i.path===Ro){fe.isSourceFileFromExternalLibrary(_i)&&Kn.set(_i.path,!0);return}ot.set(Ro,ot.get(_i.path))});const xo=ht.configFile&&ht.configFile===Z.configFile||!ht.configFile&&!Z.configFile&&!_I(ht,Z,Xm);return Me.reuseStateFromOldProgram(fe.getProgramDiagnosticsContainer(),xo),zt=xo,De=Rn,Be=fe.getAutomaticTypeDirectiveNames(),lt=fe.getAutomaticTypeDirectiveResolutions(),Ia=fe.sourceFileToPackageName,Pn=fe.redirectTargetsMap,Uo=fe.usesUriStyleNodeCoreModules,ye=fe.resolvedModules,Ge=fe.resolvedTypeReferenceDirectiveNames,ce=fe.resolvedLibReferences,at=fe.getCurrentPackagesMap(),2}function ln(Ye){return{getCanonicalFileName:$c,getCommonSourceDirectory:Jt.getCommonSourceDirectory,getCompilerOptions:Jt.getCompilerOptions,getCurrentDirectory:()=>Zr,getSourceFile:Jt.getSourceFile,getSourceFileByPath:Jt.getSourceFileByPath,getSourceFiles:Jt.getSourceFiles,isSourceFileFromExternalLibrary:jl,getRedirectFromSourceFile:rl,isSourceOfProjectReferenceRedirect:sf,getSymlinkCache:Af,writeFile:Ye||Ri,isEmitBlocked:Go,shouldTransformImportCall:Mm,getEmitModuleFormatOfFile:Ah,getDefaultResolutionModeForFile:ju,getModeForResolutionAtIndex:Ev,readFile:ht=>gt.readFile(ht),fileExists:ht=>{const Xt=Vt(ht);return Da(Xt)?!0:Ft.has(Xt)?!1:gt.fileExists(ht)},realpath:oa(gt,gt.realpath),useCaseSensitiveFileNames:()=>gt.useCaseSensitiveFileNames(),getBuildInfo:()=>{var ht;return(ht=Jt.getBuildInfo)==null?void 0:ht.call(Jt)},getSourceFileFromReference:(ht,Xt)=>Jt.getSourceFileFromReference(ht,Xt),redirectTargetsMap:Pn,getFileIncludeReasons:Jt.getFileIncludeReasons,createHash:oa(gt,gt.createHash),getModuleResolutionCache:()=>Jt.getModuleResolutionCache(),trace:oa(gt,gt.trace),getGlobalTypingsCacheLocation:Jt.getGlobalTypingsCacheLocation}}function Ri(Ye,ht,Xt,Rn,Qn,Lr){gt.writeFile(Ye,ht,Xt,Rn,Qn,Lr)}function ia(Ye){var ht,Xt;(ht=xr)==null||ht.push(xr.Phase.Emit,"emitBuildInfo",{},!0),Nl("beforeEmit");const Rn=bH(Ese,ln(Ye),void 0,yse,!1,!0);return Nl("afterEmit"),zf("Emit","beforeEmit","afterEmit"),(Xt=xr)==null||Xt.pop(),Rn}function la(){return _t}function zo(){return ve}function jl(Ye){return!!Kn.get(Ye.path)}function Cl(Ye){if(!Ye.isDeclarationFile)return!1;if(Ye.hasNoDefaultLib)return!0;if(Z.noLib)return!1;const ht=gt.useCaseSensitiveFileNames()?_S:lb;return Z.lib?vt(Z.lib,Xt=>{const Rn=ce.get(Xt);return!!Rn&&ht(Ye.fileName,Rn.actual)}):ht(Ye.fileName,Ni())}function ks(){return Ne||(Ne=Nae(Jt))}function lo(Ye,ht,Xt,Rn,Qn,Lr,Yn){var cr,Wi;(cr=xr)==null||cr.push(xr.Phase.Emit,"emit",{path:Ye?.path},!0);const xo=Xl(()=>Ec(Jt,Ye,ht,Xt,Rn,Qn,Lr,Yn));return(Wi=xr)==null||Wi.pop(),xo}function Go(Ye){return Pr.has(Vt(Ye))}function Ec(Ye,ht,Xt,Rn,Qn,Lr,Yn,cr){if(!Yn){const Ro=FH(Ye,ht,Xt,Rn);if(Ro)return Ro}const Wi=ks(),xo=Wi.getEmitResolver(Z.outFile?void 0:ht,Rn,vH(Qn,Yn));Nl("beforeEmit");const _i=Wi.runWithCancellationToken(Rn,()=>bH(xo,ln(Xt),ht,vse(Z,Lr,Qn),Qn,!1,Yn,cr));return Nl("afterEmit"),zf("Emit","beforeEmit","afterEmit"),_i}function Zs(Ye){return Da(Vt(Ye))}function Da(Ye){return ot.get(Ye)||void 0}function ic(Ye,ht,Xt){return GR(Ye?ht(Ye,Xt):fi(Jt.getSourceFiles(),Rn=>(Xt&&Xt.throwIfCancellationRequested(),ht(Rn,Xt))))}function Sf(Ye,ht){return ic(Ye,xs,ht)}function Po(Ye,ht,Xt){return ic(Ye,(Rn,Qn)=>dc(Rn,Qn,Xt),ht)}function fa(Ye){return re?.get(Ye.path)}function os(Ye,ht){return bd(Ye,ht,void 0)}function Ja(Ye){var ht;if(bD(Ye,Z,Jt))return ie;const Xt=Me.getCombinedDiagnostics(Jt).getDiagnostics(Ye.fileName);return(ht=Ye.commentDirectives)!=null&&ht.length?$(Ye,Ye.commentDirectives,Xt).diagnostics:Xt}function Zt(Ye,ht){return ic(Ye,Dr,ht)}function xs(Ye){return wu(Ye)?(Ye.additionalSyntacticDiagnostics||(Ye.additionalSyntacticDiagnostics=fn(Ye)),ao(Ye.additionalSyntacticDiagnostics,Ye.parseDiagnostics)):Ye.parseDiagnostics}function Xl(Ye){try{return Ye()}catch(ht){throw ht instanceof RN&&(Ne=void 0),ht}}function dc(Ye,ht,Xt){return ao(V3(bd(Ye,ht,Xt),Z),Ja(Ye))}function bd(Ye,ht,Xt){if(Xt)return Bs(Ye,ht,Xt);let Rn=re?.get(Ye.path);return Rn||(re??(re=new Map)).set(Ye.path,Rn=Bs(Ye,ht)),Rn}function Bs(Ye,ht,Xt){return Xl(()=>{if(bD(Ye,Z,Jt))return ie;const Rn=ks();C.assert(!!Ye.bindDiagnostics);const Qn=Ye.scriptKind===1||Ye.scriptKind===2,Lr=KN(Ye,Z.checkJs),Yn=Qn&&MM(Ye,Z);let cr=Ye.bindDiagnostics,Wi=Rn.getDiagnostics(Ye,ht,Xt);return Lr&&(cr=Un(cr,xo=>rIe.has(xo.code)),Wi=Un(Wi,xo=>rIe.has(xo.code))),Ae(Ye,!Lr,!!Xt,cr,Wi,Yn?Ye.jsDocDiagnostics:void 0)})}function Ae(Ye,ht,Xt,...Rn){var Qn;const Lr=Yo(Rn);if(!ht||!((Qn=Ye.commentDirectives)!=null&&Qn.length))return Lr;const{diagnostics:Yn,directives:cr}=$(Ye,Ye.commentDirectives,Lr);if(Xt)return Yn;for(const Wi of cr.getUnusedExpectations())Yn.push(pne(Ye,Wi.range,f.Unused_ts_expect_error_directive));return Yn}function $(Ye,ht,Xt){const Rn=Qte(Ye,ht);return{diagnostics:Xt.filter(Lr=>Ht(Lr,Rn)===-1),directives:Rn}}function ft(Ye,ht){return Xl(()=>ks().getSuggestionDiagnostics(Ye,ht))}function Ht(Ye,ht){const{file:Xt,start:Rn}=Ye;if(!Xt)return-1;const Qn=ug(Xt);let Lr=zR(Qn,Rn).line-1;for(;Lr>=0;){if(ht.markUsed(Lr))return Lr;const Yn=Xt.text.slice(Qn[Lr],Qn[Lr+1]).trim();if(Yn!==""&&!/^\s*\/\/.*$/.test(Yn))return-1;Lr--}return-1}function fn(Ye){return Xl(()=>{const ht=[];return Xt(Ye,Ye),ox(Ye,Xt,Rn),ht;function Xt(cr,Wi){switch(Wi.kind){case 170:case 173:case 175:if(Wi.questionToken===cr)return ht.push(Yn(cr,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(Wi.type===cr)return ht.push(Yn(cr,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(cr.kind){case 274:if(cr.isTypeOnly)return ht.push(Yn(Wi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(cr.isTypeOnly)return ht.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 277:case 282:if(cr.isTypeOnly)return ht.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,xu(cr)?"import...type":"export...type")),"skip";break;case 272:return ht.push(Yn(cr,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(cr.isExportEquals)return ht.push(Yn(cr,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(cr.token===119)return ht.push(Yn(cr,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:const _i=_a(120);return C.assertIsDefined(_i),ht.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,_i)),"skip";case 268:const Ro=cr.flags&32?_a(145):_a(144);return C.assertIsDefined(Ro),ht.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,Ro)),"skip";case 266:return ht.push(Yn(cr,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 177:case 175:case 263:return cr.body?void 0:(ht.push(Yn(cr,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:const $i=C.checkDefined(_a(94));return ht.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,$i)),"skip";case 236:return ht.push(Yn(cr,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return ht.push(Yn(cr.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return ht.push(Yn(cr.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:C.fail()}}function Rn(cr,Wi){if(tU(Wi)){const xo=mn(Wi.modifiers,Bc);xo&&ht.push(Yn(xo,f.Decorators_are_not_valid_here))}else if(YS(Wi)&&Wi.modifiers){const xo=ho(Wi.modifiers,Bc);if(xo>=0){if(Zi(Wi)&&!Z.experimentalDecorators)ht.push(Yn(Wi.modifiers[xo],f.Decorators_are_not_valid_here));else if(Mc(Wi)){const _i=ho(Wi.modifiers,JI);if(_i>=0){const Ro=ho(Wi.modifiers,A4);if(xo>_i&&Ro>=0&&xo=0&&xo<_i){const $i=ho(Wi.modifiers,Bc,_i);$i>=0&&ht.push(pa(Yn(Wi.modifiers[$i],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Yn(Wi.modifiers[xo],f.Decorator_used_before_export_here)))}}}}}switch(Wi.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(cr===Wi.typeParameters)return ht.push(Lr(cr,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(cr===Wi.modifiers)return Qn(Wi.modifiers,Wi.kind===244),"skip";break;case 173:if(cr===Wi.modifiers){for(const xo of cr)Aa(xo)&&xo.kind!==126&&xo.kind!==129&&ht.push(Yn(xo,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(xo.kind)));return"skip"}break;case 170:if(cr===Wi.modifiers&&vt(cr,Aa))return ht.push(Lr(cr,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 214:case 215:case 234:case 286:case 287:case 216:if(cr===Wi.typeArguments)return ht.push(Lr(cr,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Qn(cr,Wi){for(const xo of cr)switch(xo.kind){case 87:if(Wi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:ht.push(Yn(xo,f.The_0_modifier_can_only_be_used_in_TypeScript_files,_a(xo.kind)));break;case 126:case 95:case 90:case 129:}}function Lr(cr,Wi,...xo){const _i=cr.pos;return zc(Ye,_i,cr.end-_i,Wi,...xo)}function Yn(cr,Wi,...xo){return Gf(Ye,cr,Wi,...xo)}})}function ur(Ye,ht){let Xt=Te?.get(Ye.path);return Xt||(Te??(Te=new Map)).set(Ye.path,Xt=si(Ye,ht)),Xt}function si(Ye,ht){return Xl(()=>{const Xt=ks().getEmitResolver(Ye,ht);return gse(ln(gs),Xt,Ye)||ie})}function Dr(Ye,ht){return Ye.isDeclarationFile?ie:ur(Ye,ht)}function Bn(){return GR(ao(Me.getCombinedDiagnostics(Jt).getGlobalDiagnostics(),no()))}function no(){if(!Z.configFile)return ie;let Ye=Me.getCombinedDiagnostics(Jt).getDiagnostics(Z.configFile.fileName);return Ol(ht=>{Ye=ao(Ye,Me.getCombinedDiagnostics(Jt).getDiagnostics(ht.sourceFile.fileName))}),Ye}function To(){return J.length?GR(ks().getGlobalDiagnostics().slice()):ie}function Ps(){return q||ie}function Ca(Ye,ht,Xt,Rn){af(ya(Ye),ht,Xt,void 0,Rn)}function el(Ye,ht){return Ye.fileName===ht.fileName}function Ac(Ye,ht){return Ye.kind===80?ht.kind===80&&Ye.escapedText===ht.escapedText:ht.kind===11&&Ye.text===ht.text}function _c(Ye,ht){const Xt=L.createStringLiteral(Ye),Rn=L.createImportDeclaration(void 0,void 0,Xt);return v1(Rn,2),ps(Xt,Rn),ps(Rn,ht),Xt.flags&=-17,Rn.flags&=-17,Xt}function Js(Ye){if(Ye.imports)return;const ht=wu(Ye),Xt=Vc(Ye);let Rn,Qn,Lr;if(ht||!Ye.isDeclarationFile&&(Am(Z)||Vc(Ye))){Z.importHelpers&&(Rn=[_c(bb,Ye)]);const cr=K6(tw(Z,Ye),Z);cr&&(Rn||(Rn=[])).push(_c(cr,Ye))}for(const cr of Ye.statements)Yn(cr,!1);(Ye.flags&4194304||ht)&&m4(Ye,!0,!0,(cr,Wi)=>{KT(cr,!1),Rn=Vn(Rn,Wi)}),Ye.imports=Rn||ie,Ye.moduleAugmentations=Qn||ie,Ye.ambientModuleNames=Lr||ie;return;function Yn(cr,Wi){if(ok(cr)){const xo=EI(cr);xo&&Oa(xo)&&xo.text&&(!Wi||!nd(xo.text))&&(KT(cr,!1),Rn=Vn(Rn,xo),!Uo&&cn===0&&!Ye.isDeclarationFile&&(po(xo.text,"node:")&&!f4.has(xo.text)?Uo=!0:Uo===void 0&&die.has(xo.text)&&(Uo=!1)))}else if(mc(cr)&&Tu(cr)&&(Wi||di(cr,128)||Ye.isDeclarationFile)){cr.name.parent=cr;const xo=jf(cr.name);if(Xt||Wi&&!nd(xo))(Qn||(Qn=[])).push(cr.name);else if(!Wi){Ye.isDeclarationFile&&(Lr||(Lr=[])).push(xo);const _i=cr.body;if(_i)for(const Ro of _i.statements)Yn(Ro,!0)}}}}function wl(Ye){var ht;const Xt=fj(Ye),Rn=Xt&&((ht=ce?.get(Xt))==null?void 0:ht.actual);return Rn!==void 0?Zs(Rn):void 0}function Sh(Ye,ht){return Ld(RH(ht.fileName,Ye.fileName),Zs)}function Ld(Ye,ht,Xt,Rn){if(OR(Ye)){const Qn=gt.getCanonicalFileName(Ye);if(!Z.allowNonTsExtensions&&!qe(Yo(Pi),Yn=>xl(Qn,Yn))){Xt&&(xg(Qn)?Xt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ye):Xt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ye,"'"+Yo(xi).join("', '")+"'"));return}const Lr=ht(Ye);if(Xt)if(Lr)p0(Rn)&&Qn===gt.getCanonicalFileName(Da(Rn.file).fileName)&&Xt(f.A_file_cannot_have_a_reference_to_itself);else{const Yn=rl(Ye);Yn?.outputDts?Xt(f.Output_file_0_has_not_been_built_from_source_file_1,Yn.outputDts,Ye):Xt(f.File_0_not_found,Ye)}return Lr}else{const Qn=Z.allowNonTsExtensions&&ht(Ye);if(Qn)return Qn;if(Xt&&Z.allowNonTsExtensions){Xt(f.File_0_not_found,Ye);return}const Lr=qe(xi[0],Yn=>ht(Ye+Yn));return Xt&&!Lr&&Xt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ye,"'"+Yo(xi).join("', '")+"'"),Lr}}function af(Ye,ht,Xt,Rn,Qn){Ld(Ye,Lr=>er(Lr,ht,Xt,Qn,Rn),(Lr,...Yn)=>ar(void 0,Qn,Lr,Yn),Qn)}function lp(Ye,ht){return af(Ye,!1,!1,void 0,ht)}function ze(Ye,ht,Xt){!p0(Xt)&&vt(Me.getFileReasons().get(ht.path),p0)?ar(ht,Xt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[ht.fileName,Ye]):ar(ht,Xt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ye,ht.fileName])}function qt(Ye,ht,Xt,Rn,Qn,Lr,Yn){var cr;const Wi=a0.createRedirectedSourceFile({redirectTarget:Ye,unredirected:ht});return Wi.fileName=Xt,Wi.path=Rn,Wi.resolvedPath=Qn,Wi.originalFileName=Lr,Wi.packageJsonLocations=(cr=Yn.packageJsonLocations)!=null&&cr.length?Yn.packageJsonLocations:void 0,Wi.packageJsonScope=Yn.packageJsonScope,Kn.set(Rn,cn>0),Wi}function er(Ye,ht,Xt,Rn,Qn){var Lr,Yn;(Lr=xr)==null||Lr.push(xr.Phase.Program,"findSourceFile",{fileName:Ye,isDefaultLib:ht||void 0,fileIncludeKind:T9[Rn.kind]});const cr=es(Ye,ht,Xt,Rn,Qn);return(Yn=xr)==null||Yn.pop(),cr}function go(Ye,ht,Xt,Rn){const Qn=B3(bo(Ye,Zr),ht?.getPackageJsonInfoCache(),Xt,Rn),Lr=Va(Rn),Yn=Yk(Rn);return typeof Qn=="object"?{...Qn,languageVersion:Lr,setExternalModuleIndicator:Yn,jsDocParsingMode:Xt.jsDocParsingMode}:{languageVersion:Lr,impliedNodeFormat:Qn,setExternalModuleIndicator:Yn,jsDocParsingMode:Xt.jsDocParsingMode}}function es(Ye,ht,Xt,Rn,Qn){var Lr,Yn;const cr=Vt(Ye);if(dt){let $i=Yl(cr);if(!$i&>.realpath&&Z.preserveSymlinks&&sd(Ye)&&Ye.includes(Pg)){const gl=Vt(gt.realpath(Ye));gl!==cr&&($i=Yl(gl))}if($i?.source){const gl=er($i.source,ht,Xt,Rn,Qn);return gl&&ja(gl,cr,Ye,void 0),gl}}const Wi=Ye;if(ot.has(cr)){const $i=ot.get(cr),gl=ts($i||void 0,Rn,!0);if($i&&gl&&Z.forceConsistentCasingInFileNames!==!1){const dp=$i.fileName;Vt(dp)!==Vt(Ye)&&(Ye=((Lr=rl(Ye))==null?void 0:Lr.outputDts)||Ye);const Sd=z9(dp,Zr),Lm=z9(Ye,Zr);Sd!==Lm&&ze(Ye,$i,Rn)}return $i&&Kn.get($i.path)&&cn===0?(Kn.set($i.path,!1),Z.noResolve||(cd($i,ht),qp($i)),Z.noLib||cp($i),gn.set($i.path,!1),Eh($i)):$i&&gn.get($i.path)&&cnar(void 0,Rn,f.Cannot_read_file_0_Colon_1,[Ye,$i]),Ot);if(Qn){const $i=WT(Qn),gl=Qo.get($i);if(gl){const dp=qt(gl,Ro,Ye,cr,Vt(Ye),Wi,_i);return Pn.add(gl.path,Ye),ja(dp,cr,Ye,xo),ts(dp,Rn,!1),Ia.set(cr,GF(Qn)),be.push(dp),dp}else Ro&&(Qo.set($i,Ro),Ia.set(cr,GF(Qn)))}if(ja(Ro,cr,Ye,xo),Ro){if(Kn.set(cr,cn>0),Ro.fileName=Ye,Ro.path=cr,Ro.resolvedPath=Vt(Ye),Ro.originalFileName=Wi,Ro.packageJsonLocations=(Yn=_i.packageJsonLocations)!=null&&Yn.length?_i.packageJsonLocations:void 0,Ro.packageJsonScope=_i.packageJsonScope,ts(Ro,Rn,!1),gt.useCaseSensitiveFileNames()){const $i=ab(cr),gl=le.get($i);gl?ze(Ye,gl,Rn):le.set($i,Ro)}or=or||Ro.hasNoDefaultLib&&!Xt,Z.noResolve||(cd(Ro,ht),qp(Ro)),Z.noLib||cp(Ro),Eh(Ro),ht?me.push(Ro):be.push(Ro),(Ee??(Ee=new Set)).add(Ro.path)}return Ro}function ts(Ye,ht,Xt){return Ye&&(!Xt||!p0(ht)||!Ee?.has(ht.file))?(Me.getFileReasons().add(Ye.path,ht),!0):!1}function ja(Ye,ht,Xt,Rn){Rn?(kc(Xt,Rn,Ye),kc(Xt,ht,Ye||!1)):kc(Xt,ht,Ye)}function kc(Ye,ht,Xt){ot.set(ht,Xt),Xt!==void 0?Ft.delete(ht):Ft.set(ht,Ye)}function rl(Ye){return Fe?.get(Vt(Ye))}function Ol(Ye){return mj(_t,Ye)}function Yl(Ye){return it?.get(Ye)}function sf(Ye){return dt&&!!rl(Ye)}function Td(Ye){if(ne)return ne.get(Ye)||void 0}function cd(Ye,ht){qe(Ye.referencedFiles,(Xt,Rn)=>{af(RH(Xt.fileName,Ye.fileName),ht,!1,void 0,{kind:4,file:Ye.path,index:Rn})})}function qp(Ye){const ht=Ye.typeReferenceDirectives;if(!ht.length)return;const Xt=We?.get(Ye.path)||wt(ht,Ye),Rn=UD();(Ge??(Ge=new Map)).set(Ye.path,Rn);for(let Qn=0;Qn{const Rn=fj(ht);Rn?Ca(kg(Rn),!0,!0,{kind:7,file:Ye.path,index:Xt}):Me.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:Ye.path,index:Xt}})})}function $c(Ye){return gt.getCanonicalFileName(Ye)}function Eh(Ye){if(Js(Ye),Ye.imports.length||Ye.moduleAugmentations.length){const ht=oIe(Ye),Xt=Ue?.get(Ye.path)||yn(ht,Ye);C.assert(Xt.length===ht.length);const Rn=Ru(Ye),Qn=UD();(ye??(ye=new Map)).set(Ye.path,Qn);for(let Lr=0;LrWt,dp=$i&&!zH(Rn,Yn,Ye)&&!Rn.noResolve&&Lrz1(Yn.commandLine,!gt.useCaseSensitiveFileNames()));Qn.fileNames.forEach(xo=>{const _i=Vt(xo);let Ro;!sd(xo)&&!xl(xo,".json")&&(Qn.options.outFile?Ro=cr:(Ro=SP(xo,Yn.commandLine,!gt.useCaseSensitiveFileNames(),Wi),it.set(Vt(Ro),{resolvedRef:Yn,source:xo}))),Fe.set(_i,{resolvedRef:Yn,outputDts:Ro})})}return Qn.projectReferences&&(Yn.references=Qn.projectReferences.map(h_)),Yn}function ae(){Z.strictPropertyInitialization&&!Hd(Z,"strictNullChecks")&&je(f.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),Z.exactOptionalPropertyTypes&&!Hd(Z,"strictNullChecks")&&je(f.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(Z.isolatedModules||Z.verbatimModuleSyntax)&&Z.outFile&&je(f.Option_0_cannot_be_specified_with_option_1,"outFile",Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),Z.isolatedDeclarations&&(Mb(Z)&&je(f.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),vp(Z)||je(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),Z.inlineSourceMap&&(Z.sourceMap&&je(f.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),Z.mapRoot&&je(f.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),Z.composite&&(Z.declaration===!1&&je(f.Composite_projects_may_not_disable_declaration_emit,"declaration"),Z.incremental===!1&&je(f.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const Ye=Z.outFile;if(!Z.tsBuildInfoFile&&Z.incremental&&!Ye&&!Z.configFilePath&&Me.addConfigDiagnostic(Dl(f.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),an(),ti(),Z.composite){const Yn=new Set(J.map(Vt));for(const cr of De)PS(cr,Jt)&&!Yn.has(cr.path)&&Me.addLazyConfigDiagnostic(cr,f.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,cr.fileName,Z.configFilePath||"")}if(Z.paths){for(const Yn in Z.paths)if(Cs(Z.paths,Yn))if(UV(Yn)||Yi(!0,Yn,f.Pattern_0_can_have_at_most_one_Asterisk_character,Yn),No(Z.paths[Yn])){const cr=Z.paths[Yn].length;cr===0&&Yi(!1,Yn,f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Yn);for(let Wi=0;WiVc(Yn)&&!Yn.isDeclarationFile);if(Z.isolatedModules||Z.verbatimModuleSyntax)Z.module===0&&ht<2&&Z.isolatedModules&&je(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),Z.preserveConstEnums===!1&&je(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Xt&&ht<2&&Z.module===0){const Yn=o1(Xt,typeof Xt.externalModuleIndicator=="boolean"?Xt:Xt.externalModuleIndicator);Me.addConfigDiagnostic(zc(Xt,Yn.start,Yn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ye&&!Z.emitDeclarationOnly){if(Z.module&&!(Z.module===2||Z.module===4))je(f.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(Z.module===void 0&&Xt){const Yn=o1(Xt,typeof Xt.externalModuleIndicator=="boolean"?Xt:Xt.externalModuleIndicator);Me.addConfigDiagnostic(zc(Xt,Yn.start,Yn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(WS(Z)&&(su(Z)===1?je(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):U6(Z)||je(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),Z.outDir||Z.rootDir||Z.sourceRoot||Z.mapRoot||vp(Z)&&Z.declarationDir){const Yn=Qt();Z.outDir&&Yn===""&&De.some(cr=>Vh(cr.fileName)>1)&&je(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}Z.checkJs&&!Mb(Z)&&je(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),Z.emitDeclarationOnly&&(vp(Z)||je(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),Z.emitDecoratorMetadata&&!Z.experimentalDecorators&&je(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Z.jsxFactory?(Z.reactNamespace&&je(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&je(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",Ww.get(""+Z.jsx)),sx(Z.jsxFactory,ht)||kt("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Z.jsxFactory)):Z.reactNamespace&&!_p(Z.reactNamespace,ht)&&kt("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Z.reactNamespace),Z.jsxFragmentFactory&&(Z.jsxFactory||je(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&je(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",Ww.get(""+Z.jsx)),sx(Z.jsxFragmentFactory,ht)||kt("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,Z.jsxFragmentFactory)),Z.reactNamespace&&(Z.jsx===4||Z.jsx===5)&&je(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",Ww.get(""+Z.jsx)),Z.jsxImportSource&&Z.jsx===2&&je(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",Ww.get(""+Z.jsx));const Rn=Eu(Z);Z.verbatimModuleSyntax&&(Rn===2||Rn===3||Rn===4)&&je(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),Z.allowImportingTsExtensions&&!(Z.noEmit||Z.emitDeclarationOnly||Z.rewriteRelativeImportExtensions)&&kt("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const Qn=su(Z);if(Z.resolvePackageJsonExports&&!yD(Qn)&&je(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),Z.resolvePackageJsonImports&&!yD(Qn)&&je(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),Z.customConditions&&!yD(Qn)&&je(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Qn===100&&!ew(Rn)&&Rn!==200&&kt("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),wR[Rn]&&100<=Rn&&Rn<=199&&!(3<=Qn&&Qn<=99)){const Yn=wR[Rn],cr=kR[Yn]?Yn:"Node16";kt("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,cr,Yn)}else if(kR[Qn]&&3<=Qn&&Qn<=99&&!(100<=Rn&&Rn<=199)){const Yn=kR[Qn];kt("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,Yn,Yn)}if(!Z.noEmit&&!Z.suppressOutputPathCheck){const Yn=ln(),cr=new Set;hH(Yn,Wi=>{Z.emitDeclarationOnly||Lr(Wi.jsFilePath,cr),Lr(Wi.declarationFilePath,cr)})}function Lr(Yn,cr){if(Yn){const Wi=Vt(Yn);if(ot.has(Wi)){let _i;Z.configFilePath||(_i=qo(void 0,f.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)),_i=qo(_i,f.Cannot_write_file_0_because_it_would_overwrite_input_file,Yn),Na(Yn,G6(_i))}const xo=gt.useCaseSensitiveFileNames()?Wi:ab(Wi);cr.has(xo)?Na(Yn,Dl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Yn)):cr.add(xo)}}}function pt(){const Ye=Z.ignoreDeprecations;if(Ye){if(Ye==="5.0")return new sh(Ye);ue()}return sh.zero}function tn(Ye,ht,Xt,Rn){const Qn=new sh(Ye),Lr=new sh(ht),Yn=new sh(oe||de),cr=pt(),Wi=Lr.compareTo(Yn)!==1,xo=!Wi&&cr.compareTo(Qn)===-1;(Wi||xo)&&Rn((_i,Ro,$i)=>{Wi?Ro===void 0?Xt(_i,Ro,$i,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,_i):Xt(_i,Ro,$i,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,_i,Ro):Ro===void 0?Xt(_i,Ro,$i,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,_i,ht,Ye):Xt(_i,Ro,$i,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,_i,Ro,ht,Ye)})}function an(){function Ye(ht,Xt,Rn,Qn,...Lr){if(Rn){const Yn=qo(void 0,f.Use_0_instead,Rn),cr=qo(Yn,Qn,...Lr);yo(!Xt,ht,void 0,cr)}else yo(!Xt,ht,void 0,Qn,...Lr)}tn("5.0","5.5",Ye,ht=>{Z.target===0&&ht("target","ES3"),Z.noImplicitUseStrict&&ht("noImplicitUseStrict"),Z.keyofStringsOnly&&ht("keyofStringsOnly"),Z.suppressExcessPropertyErrors&&ht("suppressExcessPropertyErrors"),Z.suppressImplicitAnyIndexErrors&&ht("suppressImplicitAnyIndexErrors"),Z.noStrictGenericChecks&&ht("noStrictGenericChecks"),Z.charset&&ht("charset"),Z.out&&ht("out",void 0,"outFile"),Z.importsNotUsedAsValues&&ht("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),Z.preserveValueImports&&ht("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Wn(Ye,ht,Xt){function Rn(Qn,Lr,Yn,cr,...Wi){Fn(ht,Xt,cr,...Wi)}tn("5.0","5.5",Rn,Qn=>{Ye.prepend&&Qn("prepend")})}function ar(Ye,ht,Xt,Rn){Me.addFileProcessingDiagnostic({kind:1,file:Ye&&Ye.path,fileProcessingReason:ht,diagnostic:Xt,args:Rn})}function ti(){const Ye=Z.suppressOutputPathCheck?void 0:u0(Z);BM(ve,_t,(ht,Xt,Rn)=>{const Qn=(Xt?Xt.commandLine.projectReferences:ve)[Rn],Lr=Xt&&Xt.sourceFile;if(Wn(Qn,Lr,Rn),!ht){Fn(Lr,Rn,f.File_0_not_found,Qn.path);return}const Yn=ht.commandLine.options;(!Yn.composite||Yn.noEmit)&&(Xt?Xt.commandLine.fileNames:J).length&&(Yn.composite||Fn(Lr,Rn,f.Referenced_project_0_must_have_setting_composite_Colon_true,Qn.path),Yn.noEmit&&Fn(Lr,Rn,f.Referenced_project_0_may_not_disable_emit,Qn.path)),!Xt&&Ye&&Ye===u0(Yn)&&(Fn(Lr,Rn,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ye,Qn.path),Pr.set(Vt(Ye),!0))})}function Si(Ye,ht,Xt,...Rn){let Qn=!0;z(Lr=>{za(Lr.initializer)&&tD(Lr.initializer,Ye,Yn=>{const cr=Yn.initializer;Nd(cr)&&cr.elements.length>ht&&(Me.addConfigDiagnostic(Gf(Z.configFile,cr.elements[ht],Xt,...Rn)),Qn=!1)})}),Qn&&na(Xt,...Rn)}function Yi(Ye,ht,Xt,...Rn){let Qn=!0;z(Lr=>{za(Lr.initializer)&&_l(Lr.initializer,Ye,ht,void 0,Xt,...Rn)&&(Qn=!1)}),Qn&&na(Xt,...Rn)}function z(Ye){return _j(So(),"paths",Ye)}function je(Ye,ht,Xt,Rn){yo(!0,ht,Xt,Ye,ht,Xt,Rn)}function kt(Ye,ht,...Xt){yo(!1,Ye,void 0,ht,...Xt)}function Fn(Ye,ht,Xt,...Rn){const Qn=pk(Ye||Z.configFile,"references",Lr=>Nd(Lr.initializer)?Lr.initializer:void 0);Qn&&Qn.elements.length>ht?Me.addConfigDiagnostic(Gf(Ye||Z.configFile,Qn.elements[ht],Xt,...Rn)):Me.addConfigDiagnostic(Dl(Xt,...Rn))}function yo(Ye,ht,Xt,Rn,...Qn){const Lr=So();(!Lr||!_l(Lr,Ye,ht,Xt,Rn,...Qn))&&na(Rn,...Qn)}function na(Ye,...ht){const Xt=Vo();Xt?"messageText"in Ye?Me.addConfigDiagnostic(bg(Z.configFile,Xt.name,Ye)):Me.addConfigDiagnostic(Gf(Z.configFile,Xt.name,Ye,...ht)):"messageText"in Ye?Me.addConfigDiagnostic(G6(Ye)):Me.addConfigDiagnostic(Dl(Ye,...ht))}function So(){if(Mi===void 0){const Ye=Vo();Mi=Ye&&ni(Ye.initializer,za)||!1}return Mi||void 0}function Vo(){return $e===void 0&&($e=tD(ZN(Z.configFile),"compilerOptions",Us)||!1),$e||void 0}function _l(Ye,ht,Xt,Rn,Qn,...Lr){let Yn=!1;return tD(Ye,Xt,cr=>{"messageText"in Qn?Me.addConfigDiagnostic(bg(Z.configFile,ht?cr.name:cr.initializer,Qn)):Me.addConfigDiagnostic(Gf(Z.configFile,ht?cr.name:cr.initializer,Qn,...Lr)),Yn=!0},Rn),Yn}function Na(Ye,ht){Pr.set(Vt(Ye),!0),Me.addConfigDiagnostic(ht)}function dd(Ye){if(Z.noEmit)return!1;const ht=Vt(Ye);if(Da(ht))return!1;const Xt=Z.outFile;if(Xt)return Jp(ht,Xt)||Jp(ht,Au(Xt)+".d.ts");if(Z.declarationDir&&gm(Z.declarationDir,ht,Zr,!gt.useCaseSensitiveFileNames()))return!0;if(Z.outDir)return gm(Z.outDir,ht,Zr,!gt.useCaseSensitiveFileNames());if(tc(ht,vD)||sd(ht)){const Rn=Au(ht);return!!Da(Rn+".ts")||!!Da(Rn+".tsx")}return!1}function Jp(Ye,ht){return ry(Ye,ht,Zr,!gt.useCaseSensitiveFileNames())===0}function Af(){return gt.getSymlinkCache?gt.getSymlinkCache():(Y||(Y=HV(Zr,$c)),De&&!Y.hasProcessedResolutions()&&Y.setSymlinksFromResolutions(B,Ie,lt),Y)}function em(Ye,ht){return O3(Ye,ht,Ru(Ye))}function Iy(Ye,ht){return eIe(Ye,ht,Ru(Ye))}function Ev(Ye,ht){return em(Ye,pO(Ye,ht))}function ju(Ye){return G3(Ye,Ru(Ye))}function U_(Ye){return B1(Ye,Ru(Ye))}function Ah(Ye){return RP(Ye,Ru(Ye))}function Mm(Ye){return iIe(Ye,Ru(Ye))}function Yb(Ye,ht){return Ye.resolutionMode||ju(ht)}}function iIe(e,t){const r=Eu(t);return 100<=r&&r<=199||r===200?!1:RP(e,t)<5}function RP(e,t){return B1(e,t)??Eu(t)}function B1(e,t){var r,i;const o=Eu(t);if(100<=o&&o<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((r=e.packageJsonScope)==null?void 0:r.contents.packageJsonContent.type)==="commonjs"||tc(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((i=e.packageJsonScope)==null?void 0:i.contents.packageJsonContent.type)==="module"||tc(e.fileName,[".mjs",".mts"])))return 99}function G3(e,t){return VV(t)?B1(e,t):void 0}function xJe(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:gs,fileExists:d};e.compilerHost.fileExists=d;let l;return i&&(l=e.compilerHost.directoryExists=A=>i.call(e.compilerHost,A)?(y(A),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{const N=R.commandLine.options.outFile;if(N)t.add(ci(e.toPath(N)));else{const P=R.commandLine.options.declarationDir||R.commandLine.options.outDir;P&&t.add(e.toPath(P))}})),E(A,!1)):!1),o&&(e.compilerHost.getDirectories=A=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,A)?o.call(e.compilerHost,A):[]),s&&(e.compilerHost.realpath=A=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(A)))||s.call(e.compilerHost,A)}),{onProgramCreateComplete:u,fileExists:d,directoryExists:l};function u(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function d(A){return r.call(e.compilerHost,A)?!0:!e.getResolvedProjectReferences()||!sd(A)?!1:E(A,!0)}function _(A){const R=e.getRedirectFromOutput(e.toPath(A));return R!==void 0?Bo(R.source)?r.call(e.compilerHost,R.source):!0:void 0}function h(A){const R=e.toPath(A),N=`${R}${Xs}`;return yg(t,P=>R===P||po(P,N)||po(R,`${P}/`))}function y(A){var R;if(!e.getResolvedProjectReferences()||wM(A)||!s||!A.includes(Pg))return;const N=e.getSymlinkCache(),P=qc(e.toPath(A));if((R=N.getSymlinkedDirectories())!=null&&R.has(P))return;const k=ya(s.call(e.compilerHost,A));let F;if(k===A||(F=qc(e.toPath(k)))===P){N.setSymlinkedDirectory(P,!1);return}N.setSymlinkedDirectory(A,{real:qc(k),realPath:F})}function E(A,R){var N;const P=R?_:h,k=P(A);if(k!==void 0)return k;const F=e.getSymlinkCache(),W=F.getSymlinkedDirectories();if(!W)return!1;const G=e.toPath(A);return G.includes(Pg)?R&&((N=F.getSymlinkedFiles())!=null&&N.has(G))?!0:rr(W.entries(),([j,J])=>{if(!J||!po(G,j))return;const Z=P(G.replace(j,J.realPath));if(R&&Z){const q=bo(A,e.compilerHost.getCurrentDirectory());F.setSymlinkedFile(G,`${J.real}${q.replace(new RegExp(j,"i"),"")}`)}return Z})||!1:!1}}var WH={diagnostics:ie,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function FH(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return t?WH: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&&vp(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t){const u=e.emitBuildInfo(r,i);u.diagnostics&&(s=[...s,...u.diagnostics]),l=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function V3(e,t){return Un(e,r=>!r.skippedOn||!t[r.skippedOn])}function j3(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return C.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:oa(t,t.directoryExists),getDirectories:oa(t,t.getDirectories),realpath:oa(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||hS,trace:e.trace?r=>e.trace(r):void 0}}function mx(e){return mq(e.path)}function zH(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:f.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return Mb(e)||!Hd(e,"noImplicitAny")?void 0:f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return WS(e)?void 0:f.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:f.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function oIe({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===11&&r.push(i);return r}function pO({imports:e,moduleAugmentations:t},r){if(rt.add(R)),i?.forEach(R=>{switch(R.kind){case 1:return t.add(h(A,R.file&&A.getSourceFileByPath(R.file),R.fileProcessingReason,R.diagnostic,R.args||ie));case 0:return t.add(_(A,R));case 2:return R.diagnostics.forEach(N=>t.add(N));default:C.assertNever(R)}}),l?.forEach(({file:R,diagnostic:N,args:P})=>t.add(h(A,R,void 0,N,P))),u=void 0,d=void 0,t)}};function _(A,{reason:R}){const{file:N,pos:P,end:k}=xP(A,R),F=N.libReferenceDirectives[R.index],W=pj(F),G=LR(TN(W,"lib."),".d.ts"),j=gS(G,q4,Us);return zc(N,C.checkDefined(P),C.checkDefined(k)-P,j?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,W,j)}function h(A,R,N,P,k){let F,W,G,j,J,Z;const q=R&&r.get(R.path);let ve=p0(N)?N:void 0,oe=R&&u?.get(R.path);oe?(oe.fileIncludeReasonDetails?(F=new Set(q),q?.forEach(me)):q?.forEach(ue),J=oe.redirectInfo):(q?.forEach(ue),J=R&&nq(R,A.getCompilerOptionsForFile(R))),N&&ue(N);const K=F?.size!==q?.length;ve&&F?.size===1&&(F=void 0),F&&oe&&(oe.details&&!K?Z=qo(oe.details,P,...k??ie):oe.fileIncludeReasonDetails&&(K?be()?W=Vn(oe.fileIncludeReasonDetails.next.slice(0,q.length),W[0]):W=[...oe.fileIncludeReasonDetails.next,W[0]]:be()?W=oe.fileIncludeReasonDetails.next.slice(0,q.length):j=oe.fileIncludeReasonDetails)),Z||(j||(j=F&&qo(W,f.The_file_is_in_the_program_because_Colon)),Z=qo(J?j?[j,...J]:J:j,P,...k||ie)),R&&(oe?(!oe.fileIncludeReasonDetails||!K&&j)&&(oe.fileIncludeReasonDetails=j):(u??(u=new Map)).set(R.path,oe={fileIncludeReasonDetails:j,redirectInfo:J}),!oe.details&&!K&&(oe.details=Z.next));const fe=ve&&xP(A,ve);return fe&&QD(fe)?KF(fe.file,fe.pos,fe.end-fe.pos,Z,G):G6(Z,G);function ue(De){F?.has(De)||((F??(F=new Set)).add(De),(W??(W=[])).push(oq(A,De)),me(De))}function me(De){!ve&&p0(De)?ve=De:ve!==De&&(G=Vn(G,y(A,De)))}function be(){var De;return((De=oe.fileIncludeReasonDetails.next)==null?void 0:De.length)!==q?.length}}function y(A,R){let N=d?.get(R);return N===void 0&&(d??(d=new Map)).set(R,N=E(A,R)??!1),N||void 0}function E(A,R){if(p0(R)){const G=xP(A,R);let j;switch(R.kind){case 3:j=f.File_is_included_via_import_here;break;case 4:j=f.File_is_included_via_reference_here;break;case 5:j=f.File_is_included_via_type_library_reference_here;break;case 7:j=f.File_is_included_via_library_reference_here;break;default:C.assertNever(R)}return QD(G)?zc(G.file,G.pos,G.end-G.pos,j):void 0}const N=A.getCurrentDirectory(),P=A.getRootFileNames(),k=A.getCompilerOptions();if(!k.configFile)return;let F,W;switch(R.kind){case 0:if(!k.configFile.configFileSpecs)return;const G=bo(P[R.index],N),j=rq(A,G);if(j){F=e6(k.configFile,"files",j),W=f.File_is_matched_by_files_list_specified_here;break}const J=iq(A,G);if(!J||!Bo(J))return;F=e6(k.configFile,"include",J),W=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Z=A.getResolvedProjectReferences(),q=A.getProjectReferences(),ve=C.checkDefined(Z?.[R.index]),oe=BM(q,Z,(be,De,Y)=>be===ve?{sourceFile:De?.sourceFile||k.configFile,index:Y}:void 0);if(!oe)return;const{sourceFile:K,index:fe}=oe,ue=pk(K,"references",be=>Nd(be.initializer)?be.initializer:void 0);return ue&&ue.elements.length>fe?Gf(K,ue.elements[fe],R.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!k.types)return;F=hj(e(),"types",R.typeReference),W=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(R.index!==void 0){F=hj(e(),"lib",k.lib[R.index]),W=f.File_is_library_specified_here;break}const me=H6(Va(k));F=me?pie(e(),"target",me):void 0,W=f.File_is_default_library_for_target_specified_here;break;default:C.assertNever(R)}return F&&Gf(k.configFile,F,W)}}function zse(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:d}=e.emit(t,_,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:d};function _(h,y,E){l.push({name:h,writeByteOrderMark:E,text:y})}}var Bse=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(Bse||{}),vh;(e=>{function t(){function oe(K,fe,ue){const me={getKeys:be=>fe.get(be),getValues:be=>K.get(be),keys:()=>K.keys(),size:()=>K.size,deleteKey:be=>{(ue||(ue=new Set)).add(be);const De=K.get(be);return De?(De.forEach(Y=>i(fe,Y,be)),K.delete(be),!0):!1},set:(be,De)=>{ue?.delete(be);const Y=K.get(be);return K.set(be,De),Y?.forEach(Ne=>{De.has(Ne)||i(fe,Ne,be)}),De.forEach(Ne=>{Y?.has(Ne)||r(fe,Ne,be)}),me}};return me}return oe(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(oe,K,fe){let ue=oe.get(K);ue||(ue=new Set,oe.set(K,ue)),ue.add(fe)}function i(oe,K,fe){const ue=oe.get(K);return ue?.delete(fe)?(ue.size||oe.delete(K),!0):!1}function o(oe){return Ei(oe.declarations,K=>{var fe;return(fe=zn(K))==null?void 0:fe.resolvedPath})}function s(oe,K){const fe=oe.getSymbolAtLocation(K);return fe&&o(fe)}function l(oe,K,fe,ue){var me;return Os(((me=oe.getRedirectFromSourceFile(K))==null?void 0:me.outputDts)||K,fe,ue)}function u(oe,K,fe){let ue;if(K.imports&&K.imports.length>0){const Y=oe.getTypeChecker();for(const Ne of K.imports){const Xe=s(Y,Ne);Xe?.forEach(De)}}const me=ci(K.resolvedPath);if(K.referencedFiles&&K.referencedFiles.length>0)for(const Y of K.referencedFiles){const Ne=l(oe,Y.fileName,me,fe);De(Ne)}if(oe.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:Y})=>{if(!Y)return;const Ne=Y.resolvedFileName,Xe=l(oe,Ne,me,fe);De(Xe)},K),K.moduleAugmentations.length){const Y=oe.getTypeChecker();for(const Ne of K.moduleAugmentations){if(!Oa(Ne))continue;const Xe=Y.getSymbolAtLocation(Ne);Xe&&be(Xe)}}for(const Y of oe.getTypeChecker().getAmbientModules())Y.declarations&&Y.declarations.length>1&&be(Y);return ue;function be(Y){if(Y.declarations)for(const Ne of Y.declarations){const Xe=zn(Ne);Xe&&Xe!==K&&De(Xe.resolvedPath)}}function De(Y){(ue||(ue=new Set)).add(Y)}}function d(oe,K){return K&&!K.referencedMap==!oe}e.canReuseOldState=d;function _(oe){return oe.module!==0&&!oe.outFile?t():void 0}e.createReferencedMap=_;function h(oe,K,fe){var ue,me;const be=new Map,De=oe.getCompilerOptions(),Y=_(De),Ne=d(Y,K);oe.getTypeChecker();for(const Xe of oe.getSourceFiles()){const Ee=C.checkDefined(Xe.version,"Program intended to be used with Builder should have source files with versions set"),re=Ne?(ue=K.oldSignatures)==null?void 0:ue.get(Xe.resolvedPath):void 0,Te=re===void 0?Ne?(me=K.fileInfos.get(Xe.resolvedPath))==null?void 0:me.signature:void 0:re||void 0;if(Y){const Me=u(oe,Xe,oe.getCanonicalFileName);Me&&Y.set(Xe.resolvedPath,Me)}be.set(Xe.resolvedPath,{version:Ee,signature:Te,affectsGlobalScope:De.outFile?void 0:J(Xe)||void 0,impliedFormat:Xe.impliedNodeFormat})}return{fileInfos:be,referencedMap:Y,useFileVersionAsSignature:!fe&&!Ne}}e.create=h;function y(oe){oe.allFilesExcludingDefaultLibraryFile=void 0,oe.allFileNames=void 0}e.releaseCache=y;function E(oe,K,fe,ue,me){var be;const De=A(oe,K,fe,ue,me);return(be=oe.oldSignatures)==null||be.clear(),De}e.getFilesAffectedBy=E;function A(oe,K,fe,ue,me){const be=K.getSourceFileByPath(fe);return be?P(oe,K,be,ue,me)?(oe.referencedMap?ve:q)(oe,K,be,ue,me):[be]:ie}e.getFilesAffectedByWithOldState=A;function R(oe,K,fe){oe.fileInfos.get(fe).signature=K,(oe.hasCalledUpdateShapeSignature||(oe.hasCalledUpdateShapeSignature=new Set)).add(fe)}e.updateSignatureOfFile=R;function N(oe,K,fe,ue,me){oe.emit(K,(be,De,Y,Ne,Xe,Ee)=>{C.assert(sd(be),`File extension for signature expected to be dts: Got:: ${be}`),me(VH(oe,K,De,ue,Ee),Xe)},fe,2,void 0,!0)}e.computeDtsSignature=N;function P(oe,K,fe,ue,me,be=oe.useFileVersionAsSignature){var De;if((De=oe.hasCalledUpdateShapeSignature)!=null&&De.has(fe.resolvedPath))return!1;const Y=oe.fileInfos.get(fe.resolvedPath),Ne=Y.signature;let Xe;return!fe.isDeclarationFile&&!be&&N(K,fe,ue,me,Ee=>{Xe=Ee,me.storeSignatureInfo&&(oe.signatureInfo??(oe.signatureInfo=new Map)).set(fe.resolvedPath,0)}),Xe===void 0&&(Xe=fe.version,me.storeSignatureInfo&&(oe.signatureInfo??(oe.signatureInfo=new Map)).set(fe.resolvedPath,2)),(oe.oldSignatures||(oe.oldSignatures=new Map)).set(fe.resolvedPath,Ne||!1),(oe.hasCalledUpdateShapeSignature||(oe.hasCalledUpdateShapeSignature=new Set)).add(fe.resolvedPath),Y.signature=Xe,Xe!==Ne}e.updateShapeSignature=P;function k(oe,K,fe){if(K.getCompilerOptions().outFile||!oe.referencedMap||J(fe))return F(oe,K);const me=new Set,be=[fe.resolvedPath];for(;be.length;){const De=be.pop();if(!me.has(De)){me.add(De);const Y=oe.referencedMap.getValues(De);if(Y)for(const Ne of Y.keys())be.push(Ne)}}return Do(zd(me.keys(),De=>{var Y;return((Y=K.getSourceFileByPath(De))==null?void 0:Y.fileName)??De}))}e.getAllDependencies=k;function F(oe,K){if(!oe.allFileNames){const fe=K.getSourceFiles();oe.allFileNames=fe===ie?ie:fe.map(ue=>ue.fileName)}return oe.allFileNames}function W(oe,K){const fe=oe.referencedMap.getKeys(K);return fe?Do(fe.keys()):[]}e.getReferencedByPaths=W;function G(oe){for(const K of oe.statements)if(!HF(K))return!1;return!0}function j(oe){return vt(oe.moduleAugmentations,K=>L_(K.parent))}function J(oe){return j(oe)||!wp(oe)&&!Vf(oe)&&!G(oe)}function Z(oe,K,fe){if(oe.allFilesExcludingDefaultLibraryFile)return oe.allFilesExcludingDefaultLibraryFile;let ue;fe&&me(fe);for(const be of K.getSourceFiles())be!==fe&&me(be);return oe.allFilesExcludingDefaultLibraryFile=ue||ie,oe.allFilesExcludingDefaultLibraryFile;function me(be){K.isSourceFileDefaultLibrary(be)||(ue||(ue=[])).push(be)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function q(oe,K,fe){const ue=K.getCompilerOptions();return ue&&ue.outFile?[fe]:Z(oe,K,fe)}function ve(oe,K,fe,ue,me){if(J(fe))return Z(oe,K,fe);const be=K.getCompilerOptions();if(be&&(Am(be)||be.outFile))return[fe];const De=new Map;De.set(fe.resolvedPath,fe);const Y=W(oe,fe.resolvedPath);for(;Y.length>0;){const Ne=Y.pop();if(!De.has(Ne)){const Xe=K.getSourceFileByPath(Ne);De.set(Ne,Xe),Xe&&P(oe,K,Xe,ue,me)&&Y.push(...W(oe,Xe.resolvedPath))}}return Do(zd(De.values(),Ne=>Ne))}})(vh||(vh={}));var Gse=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.DtsErrors=8]="DtsErrors",e[e.DtsEmit=16]="DtsEmit",e[e.DtsMap=32]="DtsMap",e[e.Dts=24]="Dts",e[e.AllJs=7]="AllJs",e[e.AllDtsEmit=48]="AllDtsEmit",e[e.AllDts=56]="AllDts",e[e.All=63]="All",e))(Gse||{});function ZD(e){return e.program!==void 0}function RJe(e){return C.assert(ZD(e)),e}function Hb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),vp(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function U3(e,t){const r=t&&(ob(t)?t:Hb(t)),i=ob(e)?e:Hb(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&8&&(s=s|i&8),o&48&&(s=s|i&48),s}function DJe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!yg(e,r=>!t.has(r))}function CJe(e,t){var r,i;const o=vh.create(e,t,!1);o.program=e;const s=e.getCompilerOptions();o.compilerOptions=s;const l=s.outFile;o.semanticDiagnosticsPerFile=new Map,l&&s.composite&&t?.outSignature&&l===t.compilerOptions.outFile&&(o.outSignature=t.outSignature&&aIe(s,t.compilerOptions,t.outSignature)),o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0,o.checkPending=o.compilerOptions.noCheck?!0:void 0;const u=vh.canReuseOldState(o.referencedMap,t),d=u?t.compilerOptions:void 0;let _=u&&!Lre(s,d);const h=s.composite&&t?.emitSignatures&&!l&&!wre(s,t.compilerOptions);let y=!0;u?((r=t.changedFilesSet)==null||r.forEach(k=>o.changedFilesSet.add(k)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending,l&&o.changedFilesSet.size&&(_=!1,y=!1),o.hasErrorsFromOldState=t.hasErrors):o.buildInfoEmitPending=FS(s);const E=o.referencedMap,A=u?t.referencedMap:void 0,R=_&&!s.skipLibCheck==!d.skipLibCheck,N=R&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((k,F)=>{var W;let G,j;if(!u||!(G=t.fileInfos.get(F))||G.version!==k.version||G.impliedFormat!==k.impliedFormat||!DJe(j=E&&E.getValues(F),A&&A.getValues(F))||j&&yg(j,J=>!o.fileInfos.has(J)&&t.fileInfos.has(J)))P(F);else{const J=e.getSourceFileByPath(F),Z=y?(W=t.emitDiagnosticsPerFile)==null?void 0:W.get(F):void 0;if(Z&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(F,t.hasReusableDiagnostic?lIe(Z,F,e):sIe(Z,e)),_){if(J.isDeclarationFile&&!R||J.hasNoDefaultLib&&!N)return;const q=t.semanticDiagnosticsPerFile.get(F);q&&(o.semanticDiagnosticsPerFile.set(F,t.hasReusableDiagnostic?lIe(q,F,e):sIe(q,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(F))}}if(h){const J=t.emitSignatures.get(F);J&&(o.emitSignatures??(o.emitSignatures=new Map)).set(F,aIe(s,t.compilerOptions,J))}}),u&&Jc(t.fileInfos,(k,F)=>o.fileInfos.has(F)?!1:k.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!!l)))vh.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(k=>P(k.resolvedPath));else if(d){const k=kre(s,d)?Hb(s):U3(s,d);k!==0&&(l?o.changedFilesSet.size||(o.programEmitPending=o.programEmitPending?o.programEmitPending|k:k):(e.getSourceFiles().forEach(F=>{o.changedFilesSet.has(F.resolvedPath)||UH(o,F.resolvedPath,k)}),C.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set),o.buildInfoEmitPending=!0)}return u&&o.semanticDiagnosticsPerFile.size!==o.fileInfos.size&&t.checkPending!==o.checkPending&&(o.buildInfoEmitPending=!0),o;function P(k){o.changedFilesSet.add(k),l&&(_=!1,y=!1,o.semanticDiagnosticsFromOldState=void 0,o.semanticDiagnosticsPerFile.clear(),o.emitDiagnosticsPerFile=void 0),o.buildInfoEmitPending=!0,o.programEmitPending=void 0}}function aIe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Bo(r)?[r]:r[0]}function sIe(e,t){return e.length?to(e,r=>{if(Bo(r.messageText))return r;const i=Vse(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function Vse(e,t,r,i){const o=i(e);if(o===!0)return{...TG(t),next:jse(e.next,t,r,i)};if(o)return{...BF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:jse(e.next,t,r,i)};const s=jse(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function jse(e,t,r,i){return to(e,o=>Vse(o,t,r,i))}function lIe(e,t,r){if(!e.length)return ie;let i;return e.map(s=>{const l=cIe(s,t,r,o);l.reportsUnnecessary=s.reportsUnnecessary,l.reportsDeprecated=s.reportDeprecated,l.source=s.source,l.skippedOn=s.skippedOn;const{relatedInformation:u}=s;return l.relatedInformation=u?u.length?u.map(d=>cIe(d,t,r,o)):[]:void 0,l});function o(s){return i??(i=ci(bo(u0(r.getCompilerOptions()),r.getCurrentDirectory()))),Os(s,i,r.getCanonicalFileName)}}function cIe(e,t,r,i){const{file:o}=e,s=o!==!1?r.getSourceFileByPath(o?i(o):t):void 0;return{...e,file:s,messageText:Bo(e.messageText)?e.messageText:Vse(e.messageText,s,r,l=>l.info)}}function NJe(e){vh.releaseCache(e),e.program=void 0}function Use(e,t){C.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function dIe(e,t,r){for(var i;;){const{affectedFiles:o}=e;if(o){const u=e.seenAffectedFiles;let d=e.affectedFilesIndex;for(;d{const u=r?s&55:s&7;u?e.affectedFilesPendingEmit.set(l,u):e.affectedFilesPendingEmit.delete(l)}),e.programEmitPending)){const s=r?e.programEmitPending&55:e.programEmitPending&7;s?e.programEmitPending=s:e.programEmitPending=void 0}}function H3(e,t,r,i){let o=U3(e,t);return r&&(o=o&56),i&&(o=o&8),o}function BH(e){return e?8:56}function MJe(e,t,r){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Jc(e.affectedFilesPendingEmit,(o,s)=>{var l;const u=e.program.getSourceFileByPath(s);if(!u||!PS(u,e.program)){e.affectedFilesPendingEmit.delete(s);return}const d=(l=e.seenEmittedFiles)==null?void 0:l.get(u.resolvedPath),_=H3(o,d,t,r);if(_)return{affectedFile:u,emitKind:_}})}function PJe(e,t){var r;if((r=e.emitDiagnosticsPerFile)!=null&&r.size)return Jc(e.emitDiagnosticsPerFile,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!PS(l,e.program)){e.emitDiagnosticsPerFile.delete(o);return}const u=((s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath))||0;if(!(u&BH(t)))return{affectedFile:l,diagnostics:i,seenKind:u}})}function pIe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();qe(e.program.getSourceFiles(),r=>e.program.isSourceFileDefaultLibrary(r)&&!Kre(r,t,e.program)&&qse(e,r.resolvedPath))}}function LJe(e,t,r,i){if(qse(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){pIe(e),vh.updateShapeSignature(e,e.program,t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||kJe(e,t,r,i)}function Hse(e,t,r,i,o){if(qse(e,t),!e.changedFilesSet.has(t)){const s=e.program.getSourceFileByPath(t);s&&(vh.updateShapeSignature(e,e.program,s,i,o,!0),r?UH(e,t,Hb(e.compilerOptions)):vp(e.compilerOptions)&&UH(e,t,e.compilerOptions.declarationMap?56:24))}}function qse(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function fIe(e,t){const r=C.checkDefined(e.oldSignatures).get(t)||void 0;return C.checkDefined(e.fileInfos.get(t)).signature!==r}function Jse(e,t,r,i,o){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(vh.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(l=>Hse(e,l.resolvedPath,r,i,o)),pIe(e),!0):!1}function kJe(e,t,r,i){var o,s;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!fIe(e,t.resolvedPath))return;if(Am(e.compilerOptions)){const d=new Map;d.set(t.resolvedPath,!0);const _=vh.getReferencedByPaths(e,t.resolvedPath);for(;_.length>0;){const h=_.pop();if(!d.has(h)){if(d.set(h,!0),Jse(e,h,!1,r,i))return;if(Hse(e,h,!1,r,i),fIe(e,h)){const y=e.program.getSourceFileByPath(h);_.push(...vh.getReferencedByPaths(e,y.resolvedPath))}}}}const l=new Set,u=!!((o=t.symbol)!=null&&o.exports)&&!!Jc(t.symbol.exports,d=>{if((d.flags&128)!==0)return!0;const _=Rd(d,e.program.getTypeChecker());return _===d?!1:(_.flags&128)!==0&&vt(_.declarations,h=>zn(h)===t)});(s=e.referencedMap.getKeys(t.resolvedPath))==null||s.forEach(d=>{if(Jse(e,d,u,r,i))return!0;const _=e.referencedMap.getKeys(d);return _&&yg(_,h=>mIe(e,h,u,l,r,i))})}function mIe(e,t,r,i,o,s){var l;if(Wf(i,t)){if(Jse(e,t,r,o,s))return!0;Hse(e,t,r,o,s),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>mIe(e,u,r,i,o,s))}}function GH(e,t,r,i){return e.compilerOptions.noCheck?ie:ao(wJe(e,t,r,i),e.program.getProgramDiagnostics(t))}function wJe(e,t,r,i){i??(i=e.semanticDiagnosticsPerFile);const o=t.resolvedPath,s=i.get(o);if(s)return V3(s,e.compilerOptions);const l=e.program.getBindAndCheckDiagnostics(t,r);return i.set(o,l),e.buildInfoEmitPending=!0,V3(l,e.compilerOptions)}function Kse(e){var t;return!!((t=e.options)!=null&&t.outFile)}function fO(e){return!!e.fileNames}function OJe(e){return!fO(e)&&!!e.root}function hIe(e){e.hasErrors===void 0&&(FS(e.compilerOptions)?e.hasErrors=!vt(e.program.getSourceFiles(),t=>{var r,i;const o=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return o===void 0||!!o.length||!!((i=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&i.length)})&&(_Ie(e)||vt(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=vt(e.program.getSourceFiles(),t=>{var r,i;const o=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return!!o?.length||!!((i=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&i.length)})||_Ie(e))}function _Ie(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function gIe(e){return hIe(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function WJe(e){var t,r;const i=e.program.getCurrentDirectory(),o=ci(bo(u0(e.compilerOptions),i)),s=e.latestChangedDtsFile?F(e.latestChangedDtsFile):void 0,l=[],u=new Map,d=new Set(e.program.getRootFileNames().map(Y=>Os(Y,i,e.program.getCanonicalFileName)));if(hIe(e),!FS(e.compilerOptions))return{root:Do(d,Ne=>W(Ne)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Re};const _=[];if(e.compilerOptions.outFile){const Y=Do(e.fileInfos.entries(),([Xe,Ee])=>{const re=G(Xe);return J(Xe,re),Ee.impliedFormat?{version:Ee.version,impliedFormat:Ee.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ee.version});return{fileNames:l,fileInfos:Y,root:_,resolvedRoot:Z(),options:q(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:oe(),emitDiagnosticsPerFile:K(),changeFileSet:De(),outSignature:e.outSignature,latestChangedDtsFile:s,pendingEmit:e.programEmitPending?e.programEmitPending===Hb(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Re}}let h,y,E;const A=Do(e.fileInfos.entries(),([Y,Ne])=>{var Xe,Ee;const re=G(Y);J(Y,re),C.assert(l[re-1]===W(Y));const Te=(Xe=e.oldSignatures)==null?void 0:Xe.get(Y),Me=Te!==void 0?Te||void 0:Ne.signature;if(e.compilerOptions.composite){const Be=e.program.getSourceFileByPath(Y);if(!Vf(Be)&&PS(Be,e.program)){const lt=(Ee=e.emitSignatures)==null?void 0:Ee.get(Y);lt!==Me&&(E=Vn(E,lt===void 0?re:[re,!Bo(lt)&<[0]===Me?ie:lt]))}}return Ne.version===Me?Ne.affectsGlobalScope||Ne.impliedFormat?{version:Ne.version,signature:void 0,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:Ne.version:Me!==void 0?Te===void 0?Ne:{version:Ne.version,signature:Me,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}:{version:Ne.version,signature:!1,affectsGlobalScope:Ne.affectsGlobalScope,impliedFormat:Ne.impliedFormat}});let R;(t=e.referencedMap)!=null&&t.size()&&(R=Do(e.referencedMap.keys()).sort(Bd).map(Y=>[G(Y),j(e.referencedMap.getValues(Y))]));const N=oe();let P;if((r=e.affectedFilesPendingEmit)!=null&&r.size){const Y=Hb(e.compilerOptions),Ne=new Set;for(const Xe of Do(e.affectedFilesPendingEmit.keys()).sort(Bd))if(Wf(Ne,Xe)){const Ee=e.program.getSourceFileByPath(Xe);if(!Ee||!PS(Ee,e.program))continue;const re=G(Xe),Te=e.affectedFilesPendingEmit.get(Xe);P=Vn(P,Te===Y?re:Te===24?[re]:[re,Te])}}return{fileNames:l,fileIdsList:h,fileInfos:A,root:_,resolvedRoot:Z(),options:q(e.compilerOptions),referencedMap:R,semanticDiagnosticsPerFile:N,emitDiagnosticsPerFile:K(),changeFileSet:De(),affectedFilesPendingEmit:P,emitSignatures:E,latestChangedDtsFile:s,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Re};function F(Y){return W(bo(Y,i))}function W(Y){return KE(uf(o,Y,e.program.getCanonicalFileName))}function G(Y){let Ne=u.get(Y);return Ne===void 0&&(l.push(W(Y)),u.set(Y,Ne=l.length)),Ne}function j(Y){const Ne=Do(Y.keys(),G).sort(Hs),Xe=Ne.join();let Ee=y?.get(Xe);return Ee===void 0&&(h=Vn(h,Ne),(y??(y=new Map)).set(Xe,Ee=h.length)),Ee}function J(Y,Ne){const Xe=e.program.getSourceFile(Y);if(!e.program.getFileIncludeReasons().get(Xe.path).some(Me=>Me.kind===0))return;if(!_.length)return _.push(Ne);const Ee=_[_.length-1],re=No(Ee);if(re&&Ee[1]===Ne-1)return Ee[1]=Ne;if(re||_.length===1||Ee!==Ne-1)return _.push(Ne);const Te=_[_.length-2];return!ob(Te)||Te!==Ee-1?_.push(Ne):(_[_.length-2]=[Te,Ne],_.length=_.length-1)}function Z(){let Y;return d.forEach(Ne=>{const Xe=e.program.getSourceFileByPath(Ne);Xe&&Ne!==Xe.resolvedPath&&(Y=Vn(Y,[G(Xe.resolvedPath),G(Ne)]))}),Y}function q(Y){let Ne;const{optionsNameMap:Xe}=VD();for(const Ee of Bh(Y).sort(Bd)){const re=Xe.get(Ee.toLowerCase());re?.affectsBuildInfo&&((Ne||(Ne={}))[Ee]=ve(re,Y[Ee]))}return Ne}function ve(Y,Ne){if(Y){if(C.assert(Y.type!=="listOrElement"),Y.type==="list"){const Xe=Ne;if(Y.element.isFilePath&&Xe.length)return Xe.map(F)}else if(Y.isFilePath)return F(Ne)}return Ne}function oe(){let Y;return e.fileInfos.forEach((Ne,Xe)=>{const Ee=e.semanticDiagnosticsPerFile.get(Xe);Ee?Ee.length&&(Y=Vn(Y,[G(Xe),fe(Ee,Xe)])):e.changedFilesSet.has(Xe)||(Y=Vn(Y,G(Xe)))}),Y}function K(){var Y;let Ne;if(!((Y=e.emitDiagnosticsPerFile)!=null&&Y.size))return Ne;for(const Xe of Do(e.emitDiagnosticsPerFile.keys()).sort(Bd)){const Ee=e.emitDiagnosticsPerFile.get(Xe);Ne=Vn(Ne,[G(Xe),fe(Ee,Xe)])}return Ne}function fe(Y,Ne){return C.assert(!!Y.length),Y.map(Xe=>{const Ee=ue(Xe,Ne);Ee.reportsUnnecessary=Xe.reportsUnnecessary,Ee.reportDeprecated=Xe.reportsDeprecated,Ee.source=Xe.source,Ee.skippedOn=Xe.skippedOn;const{relatedInformation:re}=Xe;return Ee.relatedInformation=re?re.length?re.map(Te=>ue(Te,Ne)):[]:void 0,Ee})}function ue(Y,Ne){const{file:Xe}=Y;return{...Y,file:Xe?Xe.resolvedPath===Ne?void 0:W(Xe.resolvedPath):!1,messageText:Bo(Y.messageText)?Y.messageText:me(Y.messageText)}}function me(Y){if(Y.repopulateInfo)return{info:Y.repopulateInfo(),next:be(Y.next)};const Ne=be(Y.next);return Ne===Y.next?Y:{...Y,next:Ne}}function be(Y){return Y&&(qe(Y,(Ne,Xe)=>{const Ee=me(Ne);if(Ne===Ee)return;const re=Xe>0?Y.slice(0,Xe-1):[];re.push(Ee);for(let Te=Xe+1;Te(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Xse||{});function q3(e,t,r,i,o,s){let l,u,d;return e===void 0?(C.assert(t===void 0),l=r,d=i,C.assert(!!d),u=d.getProgram()):No(e)?(d=i,u=uO({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(u=e,l=t,d=r,o=i),{host:l,newProgram:u,oldProgram:d,configFileParsingDiagnostics:o||ie}}function yIe(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function VH(e,t,r,i,o){var s;r=yIe(r,o);let l;return(s=o?.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(_=>`${d(_)}${nF[_.category]}${_.code}: ${u(_.messageText)}`).join(` `)),(i.createHash??D2)(r);function u(_){return Bo(_)?_:_===void 0?"":_.next?_.messageText+_.next.map(u).join(` `):_.messageText}function d(_){return _.file.resolvedPath===t.resolvedPath?`(${_.start},${_.length})`:(l===void 0&&(l=ci(t.resolvedPath)),`${KE(uf(l,_.file.resolvedPath,e.getCanonicalFileName))}(${_.start},${_.length})`)}}function FJe(e,t,r){return(t.createHash??D2)(yIe(e,r))}function jH(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.state;if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;const l=CJe(t,s);t.getBuildInfo=()=>WJe(RJe(l)),t=void 0,i=void 0,s=void 0;const u=qH(l,o);return u.state=l,u.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,u.getAllDependencies=F=>vh.getAllDependencies(l,C.checkDefined(l.program),F),u.getSemanticDiagnostics=k,u.getDeclarationDiagnostics=N,u.emit=A,u.releaseProgram=()=>NJe(l),e===0?u.getSemanticDiagnosticsOfNextAffectedFile=P:e===1?(u.getSemanticDiagnosticsOfNextAffectedFile=P,u.emitNextAffectedFile=y,u.emitBuildInfo=d):ha(),u;function d(F,W){if(C.assert(ZD(l)),gIe(l)){const G=l.program.emitBuildInfo(F||oa(r,r.writeFile),W);return l.buildInfoEmitPending=!1,G}return WH}function _(F,W,G,j,J){var Z,q,ve,oe;C.assert(ZD(l));let K=dIe(l,W,r);const fe=Hb(l.compilerOptions);let ue=J?8:G?fe&56:fe;if(!K){if(l.compilerOptions.outFile){if(l.programEmitPending&&(ue=H3(l.programEmitPending,l.seenProgramEmit,G,J),ue&&(K=l.program)),!K&&((Z=l.emitDiagnosticsPerFile)!=null&&Z.size)){const De=l.seenProgramEmit||0;if(!(De&BH(J))){l.seenProgramEmit=BH(J)|De;const Y=[];return l.emitDiagnosticsPerFile.forEach(Ne=>Xr(Y,Ne)),{result:{emitSkipped:!0,diagnostics:Y},affected:l.program}}}}else{const De=MJe(l,G,J);if(De)({affectedFile:K,emitKind:ue}=De);else{const Y=PJe(l,J);if(Y)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(Y.affectedFile.resolvedPath,Y.seenKind|BH(J)),{result:{emitSkipped:!0,diagnostics:Y.diagnostics},affected:Y.affectedFile}}}if(!K){if(J||!gIe(l))return;const De=l.program,Y=De.emitBuildInfo(F||oa(r,r.writeFile),W);return l.buildInfoEmitPending=!1,{result:Y,affected:De}}}let me;ue&7&&(me=0),ue&56&&(me=me===void 0?1:void 0);const be=J?{emitSkipped:!0,diagnostics:l.program.getDeclarationDiagnostics(K===l.program?void 0:K,W)}:l.program.emit(K===l.program?void 0:K,E(F,j),W,me,j,void 0,!0);if(K!==l.program){const De=K;l.seenAffectedFiles.add(De.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const Y=((q=l.seenEmittedFiles)==null?void 0:q.get(De.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(De.resolvedPath,ue|Y);const Ne=((ve=l.affectedFilesPendingEmit)==null?void 0:ve.get(De.resolvedPath))||fe,Xe=U3(Ne,ue|Y);Xe?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(De.resolvedPath,Xe):(oe=l.affectedFilesPendingEmit)==null||oe.delete(De.resolvedPath),be.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(De.resolvedPath,be.diagnostics)}else l.changedFilesSet.clear(),l.programEmitPending=l.changedFilesSet.size?U3(fe,ue):l.programEmitPending?U3(l.programEmitPending,ue):void 0,l.seenProgramEmit=ue|(l.seenProgramEmit||0),h(be.diagnostics),l.buildInfoEmitPending=!0;return{result:be,affected:K}}function h(F){let W;F.forEach(G=>{if(!G.file)return;let j=W?.get(G.file.resolvedPath);j||(W??(W=new Map)).set(G.file.resolvedPath,j=[]),j.push(G)}),W&&(l.emitDiagnosticsPerFile=W)}function y(F,W,G,j){return _(F,W,G,j,!1)}function E(F,W){return C.assert(ZD(l)),vp(l.compilerOptions)?(G,j,J,Z,q,ve)=>{var oe,K,fe;if(sd(G))if(l.compilerOptions.outFile){if(l.compilerOptions.composite){const me=ue(l.outSignature,void 0);if(!me)return ve.skippedDtsWrite=!0;l.outSignature=me}}else{C.assert(q?.length===1);let me;if(!W){const be=q[0],De=l.fileInfos.get(be.resolvedPath);if(De.signature===be.version){const Y=VH(l.program,be,j,r,ve);(oe=ve?.diagnostics)!=null&&oe.length||(me=Y),Y!==be.version&&(r.storeSignatureInfo&&(l.signatureInfo??(l.signatureInfo=new Map)).set(be.resolvedPath,1),l.affectedFiles&&((K=l.oldSignatures)==null?void 0:K.get(be.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(be.resolvedPath,De.signature||!1),De.signature=Y)}}if(l.compilerOptions.composite){const be=q[0].resolvedPath;if(me=ue((fe=l.emitSignatures)==null?void 0:fe.get(be),me),!me)return ve.skippedDtsWrite=!0;(l.emitSignatures??(l.emitSignatures=new Map)).set(be,me)}}F?F(G,j,J,Z,q,ve):r.writeFile?r.writeFile(G,j,J,Z,q,ve):l.program.writeFile(G,j,J,Z,q,ve);function ue(me,be){const De=!me||Bo(me)?me:me[0];if(be??(be=FJe(j,r,ve)),be===De){if(me===De)return;ve?ve.differsOnlyInMap=!0:ve={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=G;return be}}:F||oa(r,r.writeFile)}function A(F,W,G,j,J){C.assert(ZD(l)),e===1&&Use(l,F);const Z=FH(u,F,W,G);if(Z)return Z;if(!F)if(e===1){let ve=[],oe=!1,K,fe=[],ue;for(;ue=y(W,G,j,J);)oe=oe||ue.result.emitSkipped,K=Xr(K,ue.result.diagnostics),fe=Xr(fe,ue.result.emittedFiles),ve=Xr(ve,ue.result.sourceMaps);return{emitSkipped:oe,diagnostics:K||ie,emittedFiles:fe,sourceMaps:ve}}else uIe(l,j,!1);const q=l.program.emit(F,E(W,J),G,j,J);return R(F,j,!1,q.diagnostics),q}function R(F,W,G,j){!F&&e!==1&&(uIe(l,W,G),h(j))}function N(F,W){var G;if(C.assert(ZD(l)),e===1){Use(l,F);let j,J;for(;j=_(void 0,W,void 0,void 0,!0);)F||(J=Xr(J,j.result.diagnostics));return(F?(G=l.emitDiagnosticsPerFile)==null?void 0:G.get(F.resolvedPath):J)||ie}else{const j=l.program.getDeclarationDiagnostics(F,W);return R(F,void 0,!0,j),j}}function P(F,W){for(C.assert(ZD(l));;){const G=dIe(l,F,r);let j;if(G)if(G!==l.program){const J=G;if((!W||!W(J))&&(j=GH(l,J,F)),l.seenAffectedFiles.add(J.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!j)continue}else{let J;const Z=new Map;l.program.getSourceFiles().forEach(q=>J=Xr(J,GH(l,q,F,Z))),l.semanticDiagnosticsPerFile=Z,j=J||ie,l.changedFilesSet.clear(),l.programEmitPending=Hb(l.compilerOptions),l.compilerOptions.noCheck||(l.checkPending=void 0),l.buildInfoEmitPending=!0}else{l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0);return}return{result:j,affected:G}}}function k(F,W){if(C.assert(ZD(l)),Use(l,F),F)return GH(l,F,W);for(;;){const j=P(W);if(!j)break;if(j.affected===l.program)return j.result}let G;for(const j of l.program.getSourceFiles())G=Xr(G,GH(l,j,W));return l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0),G||ie}}function UH(e,t,r){var i,o;const s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function Yse(e){return Bo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Bo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function $se(e,t){return ob(e)?t:e[1]||24}function Qse(e,t){return e||Hb(t||{})}function Zse(e,t,r){var i,o,s,l;const u=ci(bo(t,r.getCurrentDirectory())),d=Gd(r.useCaseSensitiveFileNames());let _;const h=(i=e.fileNames)==null?void 0:i.map(N);let y;const E=e.latestChangedDtsFile?P(e.latestChangedDtsFile):void 0,A=new Map,R=new Set(Yt(e.changeFileSet,k));if(Kse(e))e.fileInfos.forEach((J,Z)=>{const q=k(Z+1);A.set(q,Bo(J)?{version:J,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:J)}),_={fileInfos:A,compilerOptions:e.options?t3(e.options,P):{},semanticDiagnosticsPerFile:G(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:j(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,latestChangedDtsFile:E,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:Qse(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{y=(o=e.fileIdsList)==null?void 0:o.map(q=>new Set(q.map(k)));const J=(s=e.options)!=null&&s.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((q,ve)=>{const oe=k(ve+1),K=Yse(q);A.set(oe,K),J&&K.signature&&J.set(oe,K.signature)}),(l=e.emitSignatures)==null||l.forEach(q=>{if(ob(q))J.delete(k(q));else{const ve=k(q[0]);J.set(ve,!Bo(q[1])&&!q[1].length?[J.get(ve)]:q[1])}});const Z=e.affectedFilesPendingEmit?Hb(e.options||{}):void 0;_={fileInfos:A,compilerOptions:e.options?t3(e.options,P):{},referencedMap:W(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:G(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:j(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&NR(e.affectedFilesPendingEmit,q=>k(ob(q)?q:q[0]),q=>$se(q,Z)),latestChangedDtsFile:E,emitSignatures:J?.size?J:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:_,getProgram:ha,getProgramOrUndefined:hS,releaseProgram:gs,getCompilerOptions:()=>_.compilerOptions,getSourceFile:ha,getSourceFiles:ha,getOptionsDiagnostics:ha,getGlobalDiagnostics:ha,getConfigFileParsingDiagnostics:ha,getSyntacticDiagnostics:ha,getDeclarationDiagnostics:ha,getSemanticDiagnostics:ha,emit:ha,getAllDependencies:ha,getCurrentDirectory:ha,emitNextAffectedFile:ha,getSemanticDiagnosticsOfNextAffectedFile:ha,emitBuildInfo:ha,close:gs,hasChangedEmitSignature:ny};function N(J){return Os(J,u,d)}function P(J){return bo(J,u)}function k(J){return h[J-1]}function F(J){return y[J-1]}function W(J,Z){const q=vh.createReferencedMap(Z);return!q||!J||J.forEach(([ve,oe])=>q.set(k(ve),F(oe))),q}function G(J){const Z=new Map(zd(A.keys(),q=>R.has(q)?void 0:[q,ie]));return J?.forEach(q=>{ob(q)?Z.delete(k(q)):Z.set(k(q[0]),q[1])}),Z}function j(J){return J&&NR(J,Z=>k(Z[0]),Z=>Z[1])}}function HH(e,t,r){const i=ci(bo(t,r.getCurrentDirectory())),o=Gd(r.useCaseSensitiveFileNames()),s=new Map;let l=0;const u=new Map,d=new Map(e.resolvedRoot);return e.fileInfos.forEach((h,y)=>{const E=Os(e.fileNames[y],i,o),A=Bo(h)?h:h.version;if(s.set(E,A),lOs(s,i,o))}function qH(e,t){return{state:void 0,getProgram:r,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,u)=>r().emit(i,o,s,l,u),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:ha,getCurrentDirectory:()=>r().getCurrentDirectory(),close:gs};function r(){return C.checkDefined(e.program)}}function vIe(e,t,r,i,o,s){return jH(0,q3(e,t,r,i,o,s))}function JH(e,t,r,i,o,s){return jH(1,q3(e,t,r,i,o,s))}function bIe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=q3(e,t,r,i,o,s);return qH({program:l,compilerOptions:l.getCompilerOptions()},u)}function J3(e){return nl(e,"/node_modules/.staging")?LR(e,"/.staging"):vt(oF,t=>e.includes(t))?void 0:e}function tle(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-z]:/i)===0;if(e[0]!==Xs&&!i&&e[1].search(/[a-z]\$$/i)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function KH(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=tle(e,t);return t>r+1}function mO(e){return KH(Vd(e))}function nle(e){return SIe(ci(e))}function TIe(e,t){if(t.lengtho.length+1?ile(_,d,Math.max(o.length+1,h+1),E):{dir:r,dirPath:i,nonRecursive:!0}:EIe(_,d,d.length-1,h,y,o,E,u)}function EIe(e,t,r,i,o,s,l,u){if(o!==-1)return ile(e,t,o+1,l);let d=!0,_=r;if(!u){for(let h=0;h=r&&i+2zJe(i,o,s,e,r,t,l)}}function zJe(e,t,r,i,o,s,l){const u=K3(e),d=w1(r,i,o,u,t,s,l);if(!e.getGlobalTypingsCacheLocation)return d;const _=e.getGlobalTypingsCacheLocation();if(_!==void 0&&!nd(r)&&!(d.resolvedModule&&r4(d.resolvedModule.extension))){const{resolvedModule:h,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:A}=yae(C.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,_,t);if(h)return d.resolvedModule=h,d.failedLookupLocations=jD(d.failedLookupLocations,y),d.affectingLocations=jD(d.affectingLocations,E),d.resolutionDiagnostics=jD(d.resolutionDiagnostics,A),d}return d}function YH(e,t,r){let i,o,s;const l=new Set,u=new Set,d=new Set,_=new Map,h=new Map;let y=!1,E,A,R,N,P,k=!1;const F=Lu(()=>e.getCurrentDirectory()),W=e.getCachedDirectoryStructureHost(),G=new Map,j=HD(F(),e.getCanonicalFileName,e.getCompilationSettings()),J=new Map,Z=u3(F(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache(),j.optionsToRedirectsKey),q=new Map,ve=HD(F(),e.getCanonicalFileName,MU(e.getCompilationSettings()),j.getPackageJsonInfoCache()),oe=new Map,K=new Map,fe=ale(t,F),ue=e.toPath(fe),me=Vd(ue),be=KH(me),De=new Map,Y=new Map,Ne=new Map,Xe=new Map;return{rootDirForResolution:t,resolvedModuleNames:G,resolvedTypeReferenceDirectives:J,resolvedLibraries:q,resolvedFileToResolution:_,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:d,directoryWatchesOfFailedLookups:oe,fileWatchesOfAffectingLocations:K,packageDirWatchers:Y,dirPathToSymlinkPackageRefCount:Ne,watchFailedLookupLocationsOfExternalModuleResolutions:en,getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:Te,finishRecordingFilesWithChangedResolutions:Me,startCachingPerDirectoryResolution:ce,finishCachingPerDirectoryResolution:ye,resolveModuleNameLiterals:cn,resolveTypeReferenceDirectiveReferences:Wt,resolveLibrary:gn,resolveSingleModuleNameWithoutWatching:Kn,removeResolutionsFromProjectReferenceRedirects:ai,removeResolutionsOfFile:qi,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:Ia,invalidateResolutionsOfFailedLookupLocations:Ft,setFilesWithInvalidatedNonRelativeUnresolvedImports:Pn,createHasInvalidatedResolutions:lt,isFileWithInvalidatedNonRelativeUnresolvedImports:Be,updateTypeRootsWatch:dt,closeTypeRootsWatch:Fe,clear:Ee,onChangesAffectModuleResolution:re};function Ee(){yp(oe,Qf),yp(K,Qf),De.clear(),Y.clear(),Ne.clear(),l.clear(),Fe(),G.clear(),J.clear(),_.clear(),u.clear(),d.clear(),R=void 0,N=void 0,P=void 0,A=void 0,E=void 0,k=!1,j.clear(),Z.clear(),j.update(e.getCompilationSettings()),Z.update(e.getCompilationSettings()),ve.clear(),h.clear(),q.clear(),y=!1}function re(){k=!0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),Z.update(e.getCompilationSettings())}function Te(){i=[]}function Me(){const He=i;return i=void 0,He}function Be(He){if(!s)return!1;const Rt=s.get(He);return!!Rt&&!!Rt.length}function lt(He,Rt){Ft();const It=o;return o=void 0,{hasInvalidatedResolutions:Ot=>He(Ot)||k||!!It?.has(Ot)||Be(Ot),hasInvalidatedLibResolutions:Ot=>{var nt;return Rt(Ot)||!!((nt=q?.get(Ot))!=null&&nt.isInvalidated)}}}function ce(){j.isReadonly=void 0,Z.isReadonly=void 0,ve.isReadonly=void 0,j.getPackageJsonInfoCache().isReadonly=void 0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),ve.clearAllExceptPackageJsonInfoCache(),xi(),De.clear()}function Ce(He){q.forEach((Rt,It)=>{var Ot;(Ot=He?.resolvedLibReferences)!=null&&Ot.has(It)||(At(Rt,e.toPath(z3(e.getCompilationSettings(),F(),It)),gI),q.delete(It))})}function ye(He,Rt){s=void 0,k=!1,xi(),He!==Rt&&(Ce(He),He?.getSourceFiles().forEach(It=>{var Ot;const nt=((Ot=It.packageJsonLocations)==null?void 0:Ot.length)??0,Jt=h.get(It.resolvedPath)??ie;for(let Tr=Jt.length;Trnt)for(let Tr=nt;Tr{const nt=He?.getSourceFileByPath(Ot);(!nt||nt.resolvedPath!==Ot)&&(It.forEach(Jt=>K.get(Jt).files--),h.delete(Ot))})),oe.forEach(Ge),K.forEach(We),Y.forEach(Ue),y=!1,j.isReadonly=!0,Z.isReadonly=!0,ve.isReadonly=!0,j.getPackageJsonInfoCache().isReadonly=!0,De.clear()}function Ue(He,Rt){He.dirPathToWatcher.size===0&&Y.delete(Rt)}function Ge(He,Rt){He.refCount===0&&(oe.delete(Rt),He.watcher.close())}function We(He,Rt){var It;He.files===0&&He.resolutions===0&&!((It=He.symlinks)!=null&&It.size)&&(K.delete(Rt),He.watcher.close())}function at({entries:He,containingFile:Rt,containingSourceFile:It,redirectedReference:Ot,options:nt,perFileCache:Jt,reusedNames:Tr,loader:Oe,getResolutionWithResolvedFileName:Nt,deferWatchingNonRelativeResolution:ge,shouldRetryResolution:B,logChanges:Ie}){var te;const xt=e.toPath(Rt),Kt=Jt.get(xt)||Jt.set(xt,UD()).get(xt),Le=[],yt=Ie&&Be(xt),Bt=e.getCurrentProgram(),gr=Bt&&((te=Bt.getRedirectFromSourceFile(Rt))==null?void 0:te.resolvedRef),tr=gr?!Ot||Ot.sourceFile.path!==gr.sourceFile.path:!!Ot,Jn=UD();for(const Mt of He){const Vt=Oe.nameAndMode.getName(Mt),Qt=Oe.nameAndMode.getMode(Mt,It,Ot?.commandLine.options||nt);let In=Kt.get(Vt,Qt);if(!Jn.has(Vt,Qt)&&(k||tr||!In||In.isInvalidated||yt&&!nd(Vt)&&B(In))){const yn=In;In=Oe.resolve(Vt,Qt),e.onDiscoveredSymlink&&BJe(In)&&e.onDiscoveredSymlink(),Kt.set(Vt,Qt,In),In!==yn&&(en(Vt,In,xt,Nt,ge),yn&&At(yn,xt,Nt)),Ie&&i&&!mt(yn,In)&&(i.push(xt),Ie=!1)}else{const yn=K3(e);if(Bb(nt,yn)&&!Jn.has(Vt,Qt)){const wt=Nt(In);Io(yn,Jt===G?wt?.resolvedFileName?wt.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:wt?.resolvedFileName?wt.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Vt,Rt,wt?.resolvedFileName,wt?.packageId&&WT(wt.packageId))}}C.assert(In!==void 0&&!In.isInvalidated),Jn.set(Vt,Qt,!0),Le.push(In)}return Tr?.forEach(Mt=>Jn.set(Oe.nameAndMode.getName(Mt),Oe.nameAndMode.getMode(Mt,It,Ot?.commandLine.options||nt),!0)),Kt.size()!==Jn.size()&&Kt.forEach((Mt,Vt,Qt)=>{Jn.has(Vt,Qt)||(At(Mt,xt,Nt),Kt.delete(Vt,Qt))}),Le;function mt(Mt,Vt){if(Mt===Vt)return!0;if(!Mt||!Vt)return!1;const Qt=Nt(Mt),In=Nt(Vt);return Qt===In?!0:!Qt||!In?!1:Qt.resolvedFileName===In.resolvedFileName}}function Wt(He,Rt,It,Ot,nt,Jt){return at({entries:He,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Jt,perFileCache:J,loader:F3(Rt,It,Ot,K3(e),Z),getResolutionWithResolvedFileName:zF,shouldRetryResolution:Tr=>Tr.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function cn(He,Rt,It,Ot,nt,Jt){return at({entries:He,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Jt,perFileCache:G,loader:sle(Rt,It,Ot,e,j),getResolutionWithResolvedFileName:gI,shouldRetryResolution:Tr=>!Tr.resolvedModule||!CM(Tr.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function gn(He,Rt,It,Ot){const nt=K3(e);let Jt=q?.get(Ot);if(!Jt||Jt.isInvalidated){const Tr=Jt;Jt=p3(He,Rt,It,nt,ve);const Oe=e.toPath(Rt);en(He,Jt,Oe,gI,!1),q.set(Ot,Jt),Tr&&At(Tr,Oe,gI)}else if(Bb(It,nt)){const Tr=gI(Jt);Io(nt,Tr?.resolvedFileName?Tr.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,He,Rt,Tr?.resolvedFileName,Tr?.packageId&&WT(Tr.packageId))}return Jt}function Kn(He,Rt){var It,Ot;const nt=e.toPath(Rt),Jt=G.get(nt),Tr=Jt?.get(He,void 0);if(Tr&&!Tr.isInvalidated)return Tr;const Oe=(It=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:It.call(e,j),Nt=K3(e),ge=w1(He,Rt,e.getCompilationSettings(),Nt,j);return(Ot=e.afterResolveSingleModuleNameWithoutWatching)==null||Ot.call(e,j,He,Rt,ge,Oe),ge}function gt(He){return nl(He,"/node_modules/@types")}function en(He,Rt,It,Ot,nt){if((Rt.files??(Rt.files=new Set)).add(It),Rt.files.size!==1)return;!nt||nd(He)?Ni(Rt):l.add(Rt);const Jt=Ot(Rt);if(Jt&&Jt.resolvedFileName){const Tr=e.toPath(Jt.resolvedFileName);let Oe=_.get(Tr);Oe||_.set(Tr,Oe=new Set),Oe.add(Rt)}}function or(He,Rt){const It=e.toPath(He),Ot=XH(He,It,fe,ue,me,be,F,e.preferNonRecursiveWatch);if(Ot){const{dir:nt,dirPath:Jt,nonRecursive:Tr,packageDir:Oe,packageDirPath:Nt}=Ot;Jt===ue?(C.assert(Tr),C.assert(!Oe),Rt=!0):Pr(nt,Jt,Oe,Nt,Tr)}return Rt}function Ni(He){var Rt;C.assert(!!((Rt=He.files)!=null&&Rt.size));const{failedLookupLocations:It,affectingLocations:Ot,alternateResult:nt}=He;if(!It?.length&&!Ot?.length&&!nt)return;(It?.length||nt)&&u.add(He);let Jt=!1;if(It)for(const Tr of It)Jt=or(Tr,Jt);nt&&(Jt=or(nt,Jt)),Jt&&Pr(fe,ue,void 0,void 0,!0),so(He,!It?.length&&!nt)}function so(He,Rt){var It;C.assert(!!((It=He.files)!=null&&It.size));const{affectingLocations:Ot}=He;if(Ot?.length){Rt&&d.add(He);for(const nt of Ot)zt(nt,!0)}}function zt(He,Rt){const It=K.get(He);if(It){Rt?It.resolutions++:It.files++;return}let Ot=He,nt=!1,Jt;e.realpath&&(Ot=e.realpath(He),He!==Ot&&(nt=!0,Jt=K.get(Ot)));const Tr=Rt?1:0,Oe=Rt?0:1;if(!nt||!Jt){const Nt={watcher:rle(e.toPath(Ot))?e.watchAffectingFileLocation(Ot,(ge,B)=>{W?.addOrDeleteFile(ge,e.toPath(Ot),B),Zr(Ot,j.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):tC,resolutions:nt?0:Tr,files:nt?0:Oe,symlinks:void 0};K.set(Ot,Nt),nt&&(Jt=Nt)}if(nt){C.assert(!!Jt);const Nt={watcher:{close:()=>{var ge;const B=K.get(Ot);(ge=B?.symlinks)!=null&&ge.delete(He)&&!B.symlinks.size&&!B.resolutions&&!B.files&&(K.delete(Ot),B.watcher.close())}},resolutions:Tr,files:Oe,symlinks:void 0};K.set(He,Nt),(Jt.symlinks??(Jt.symlinks=new Set)).add(He)}}function Zr(He,Rt){var It;const Ot=K.get(He);Ot?.resolutions&&(A??(A=new Set)).add(He),Ot?.files&&(E??(E=new Set)).add(He),(It=Ot?.symlinks)==null||It.forEach(nt=>Zr(nt,Rt)),Rt?.delete(e.toPath(He))}function xi(){l.forEach(Ni),l.clear()}function Pi(He,Rt,It,Ot,nt){C.assert(!nt);let Jt=De.get(Ot),Tr=Y.get(Ot);if(Jt===void 0){const ge=e.realpath(It);Jt=ge!==It&&e.toPath(ge)!==Ot,De.set(Ot,Jt),Tr?Tr.isSymlink!==Jt&&(Tr.dirPathToWatcher.forEach(B=>{hn(Tr.isSymlink?Ot:Rt),B.watcher=Nt()}),Tr.isSymlink=Jt):Y.set(Ot,Tr={dirPathToWatcher:new Map,isSymlink:Jt})}else C.assertIsDefined(Tr),C.assert(Jt===Tr.isSymlink);const Oe=Tr.dirPathToWatcher.get(Rt);Oe?Oe.refCount++:(Tr.dirPathToWatcher.set(Rt,{watcher:Nt(),refCount:1}),Jt&&Ne.set(Rt,(Ne.get(Rt)??0)+1));function Nt(){return Jt?Mi(It,Ot,nt):Mi(He,Rt,nt)}}function Pr(He,Rt,It,Ot,nt){!Ot||!e.realpath?Mi(He,Rt,nt):Pi(He,Rt,It,Ot,nt)}function Mi(He,Rt,It){let Ot=oe.get(Rt);return Ot?(C.assert(!!It==!!Ot.nonRecursive),Ot.refCount++):oe.set(Rt,Ot={watcher:dr(He,Rt,It),refCount:1,nonRecursive:It}),Ot}function $e(He,Rt){const It=e.toPath(He),Ot=XH(He,It,fe,ue,me,be,F,e.preferNonRecursiveWatch);if(Ot){const{dirPath:nt,packageDirPath:Jt}=Ot;if(nt===ue)Rt=!0;else if(Jt&&e.realpath){const Tr=Y.get(Jt),Oe=Tr.dirPathToWatcher.get(nt);if(Oe.refCount--,Oe.refCount===0&&(hn(Tr.isSymlink?Jt:nt),Tr.dirPathToWatcher.delete(nt),Tr.isSymlink)){const Nt=Ne.get(nt)-1;Nt===0?Ne.delete(nt):Ne.set(nt,Nt)}}else hn(nt)}return Rt}function At(He,Rt,It){if(C.checkDefined(He.files).delete(Rt),He.files.size)return;He.files=void 0;const Ot=It(He);if(Ot&&Ot.resolvedFileName){const Oe=e.toPath(Ot.resolvedFileName),Nt=_.get(Oe);Nt?.delete(He)&&!Nt.size&&_.delete(Oe)}const{failedLookupLocations:nt,affectingLocations:Jt,alternateResult:Tr}=He;if(u.delete(He)){let Oe=!1;if(nt)for(const Nt of nt)Oe=$e(Nt,Oe);Tr&&(Oe=$e(Tr,Oe)),Oe&&hn(ue)}else Jt?.length&&d.delete(He);if(Jt)for(const Oe of Jt){const Nt=K.get(Oe);Nt.resolutions--}}function hn(He){const Rt=oe.get(He);Rt.refCount--}function dr(He,Rt,It){return e.watchDirectoryOfFailedLookupLocation(He,Ot=>{const nt=e.toPath(Ot);W&&W.addOrDeleteFileOrDirectory(Ot,nt),Uo(nt,Rt===nt)},It?0:1)}function ri(He,Rt,It){const Ot=He.get(Rt);Ot&&(Ot.forEach(nt=>At(nt,Rt,It)),He.delete(Rt))}function ai(He){if(!xl(He,".json"))return;const Rt=e.getCurrentProgram();if(!Rt)return;const It=Rt.getResolvedProjectReferenceByPath(He);It&&It.commandLine.fileNames.forEach(Ot=>qi(e.toPath(Ot)))}function qi(He){ri(G,He,gI),ri(J,He,zF)}function Qo(He,Rt){if(!He)return!1;let It=!1;return He.forEach(Ot=>{if(!(Ot.isInvalidated||!Rt(Ot))){Ot.isInvalidated=It=!0;for(const nt of C.checkDefined(Ot.files))(o??(o=new Set)).add(nt),y=y||nl(nt,IP)}}),It}function Ia(He){qi(He);const Rt=y;Qo(_.get(He),mS)&&y&&!Rt&&e.onChangedAutomaticTypeDirectiveNames()}function Pn(He){C.assert(s===He||s===void 0),s=He}function Uo(He,Rt){if(Rt)(P||(P=new Set)).add(He);else{const It=J3(He);if(!It||(He=It,e.fileIsOpen(He)))return!1;const Ot=ci(He);if(gt(He)||uF(He)||gt(Ot)||uF(Ot))(R||(R=new Set)).add(He),(N||(N=new Set)).add(He);else{if(Rse(e.getCurrentProgram(),He)||xl(He,".map"))return!1;(R||(R=new Set)).add(He),(N||(N=new Set)).add(He);const nt=qw(He,!0);nt&&(N||(N=new Set)).add(nt)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ot(){const He=j.getPackageJsonInfoCache().getInternalMap();He&&(R||N||P)&&He.forEach((Rt,It)=>_t(It)?He.delete(It):void 0)}function Ft(){var He;if(k)return E=void 0,ot(),(R||N||P||A)&&Qo(q,le),R=void 0,N=void 0,P=void 0,A=void 0,!0;let Rt=!1;return E&&((He=e.getCurrentProgram())==null||He.getSourceFiles().forEach(It=>{vt(It.packageJsonLocations,Ot=>E.has(Ot))&&((o??(o=new Set)).add(It.path),Rt=!0)}),E=void 0),!R&&!N&&!P&&!A||(Rt=Qo(u,le)||Rt,ot(),R=void 0,N=void 0,P=void 0,Rt=Qo(d,ne)||Rt,A=void 0),Rt}function le(He){var Rt;return ne(He)?!0:!R&&!N&&!P?!1:((Rt=He.failedLookupLocations)==null?void 0:Rt.some(It=>_t(e.toPath(It))))||!!He.alternateResult&&_t(e.toPath(He.alternateResult))}function _t(He){return R?.has(He)||rr(N?.keys()||[],Rt=>po(He,Rt)?!0:void 0)||rr(P?.keys()||[],Rt=>He.length>Rt.length&&po(He,Rt)&&(W9(Rt)||He[Rt.length]===Xs)?!0:void 0)}function ne(He){var Rt;return!!A&&((Rt=He.affectingLocations)==null?void 0:Rt.some(It=>A.has(It)))}function Fe(){yp(Xe,Hm)}function it(He){return Lt(He)?e.watchTypeRootsDirectory(He,Rt=>{const It=e.toPath(Rt);W&&W.addOrDeleteFileOrDirectory(Rt,It),y=!0,e.onChangedAutomaticTypeDirectiveNames();const Ot=ole(He,e.toPath(He),ue,me,be,F,e.preferNonRecursiveWatch,nt=>oe.has(nt)||Ne.has(nt));Ot&&Uo(It,Ot===It)},1):tC}function dt(){const He=e.getCompilationSettings();if(He.types){Fe();return}const Rt=lP(He,{getCurrentDirectory:F});Rt?AM(Xe,new Set(Rt),{createNewValue:it,onDeleteValue:Hm}):Fe()}function Lt(He){return e.getCompilationSettings().typeRoots?!0:nle(e.toPath(He))}}function BJe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var AIe=Hc?{getCurrentDirectory:()=>Hc.getCurrentDirectory(),getNewLine:()=>Hc.newLine,getCanonicalFileName:Gd(Hc.useCaseSensitiveFileNames)}:void 0;function hx(e,t){const r=e===Hc&&AIe?AIe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Gd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(NH(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(kse(i,r)+r.getNewLine()),i[0]=void 0}}function IIe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&jn(xIe,t.code)?(e.clearScreen(),!0):!1}var xIe=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code];function GJe(e,t){return jn(xIe,e.code)?t+t:t}function hO(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function $H(e,t){return t?(r,i,o)=>{IIe(e,r,o);let s=`[${tE(hO(e),"\x1B[90m")}] `;s+=`${c_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";IIe(e,r,o)||(s+=i),s+=`${hO(e)} - `,s+=`${c_(r.messageText,e.newLine)}${GJe(r,i)}`,e.write(s)}}function lle(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=d=>CIe(o,s,d);const u=zw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function X3(e){return Ao(e,t=>t.category===1)}function Y3(e){return Un(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=mn(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){const{line:o}=ca(i.file,i.start);return{fileName:r,line:o+1}}})}function QH(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function RIe(e,t){const r=tE(":"+e.line,"\x1B[90m");return DN(e.fileName)&&DN(t)?uf(t,e.fileName,!1)+r:e.fileName+r}function ZH(e,t,r,i){if(e===0)return"";const o=t.filter(h=>h!==void 0),s=o.map(h=>`${h.fileName}:${h.line}`).filter((h,y,E)=>E.indexOf(h)===y),l=o[0]&&RIe(o[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:u=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];const d=Dl(...u),_=s.length>1?VJe(o,i):"";return`${r}${c_(d.messageText,r)}${r}${r}${_}`}function VJe(e,t){const r=e.filter((y,E,A)=>E===A.findIndex(R=>R?.fileName===y?.fileName));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,Ao(e,E=>E.fileName===y.fileName)]),s=i9(o,0,y=>y[1]),l=f.Errors_Files.message,u=l.split(" ")[0].length,d=Math.max(u,i(s)),_=Math.max(i(s)-u,0);let h="";return h+=" ".repeat(_)+l+` `,o.forEach(y=>{const[E,A]=y,R=Math.log(A)*Math.LOG10E+1|0,N=R{t(i.fileName)})}function tq(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>CN(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${eC(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${oq(e,u,s).messageText}`)),(i=nq(l,e.getCompilerOptionsForFile(l),s))==null||i.forEach(u=>t(` ${u.messageText}`))}function nq(e,t,r){var i;let o;if(e.path!==e.resolvedPath&&(o??(o=[])).push(qo(void 0,f.File_is_output_of_project_reference_source_0,eC(e.originalFileName,r))),e.redirectInfo&&(o??(o=[])).push(qo(void 0,f.File_redirects_to_file_0,eC(e.redirectInfo.redirectTarget,r))),wp(e))switch(B1(e,t)){case 99:e.packageJsonScope&&(o??(o=[])).push(qo(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,eC(Ga(e.packageJsonLocations),r)));break;case 1:e.packageJsonScope?(o??(o=[])).push(qo(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,eC(Ga(e.packageJsonLocations),r))):(i=e.packageJsonLocations)!=null&&i.length&&(o??(o=[])).push(qo(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return o}function rq(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=ci(bo(i.fileName,e.getCurrentDirectory())),l=ho(i.configFileSpecs.validatedFilesSpec,u=>e.getCanonicalFileName(bo(u,s))===o);return l!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[l]:void 0}function iq(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=xl(t,".json"),l=ci(bo(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames(),d=ho((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,_=>{if(s&&!nl(_,".json"))return!1;const h=KV(_,l,"files");return!!h&&sv(`(?:${h})$`,u).test(t)});return d!==-1?o.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[d]:void 0}function oq(e,t,r){var i,o;const s=e.getCompilerOptions();if(p0(t)){const l=xP(e,t),u=QD(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`;let d;switch(C.assert(QD(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:QD(l)?d=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===bb?d=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:d=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:C.assert(!l.packageId),d=f.Referenced_via_0_from_file_1;break;case 5:d=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:C.assert(!l.packageId),d=f.Library_referenced_via_0_from_file_1;break;default:C.assertNever(t)}return qo(void 0,d,u,eC(l.file,r),l.packageId&&WT(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return qo(void 0,f.Root_file_specified_for_compilation);const l=bo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(rq(e,l))return qo(void 0,f.Part_of_files_list_in_tsconfig_json);const d=iq(e,l);return Bo(d)?qo(void 0,f.Matched_by_include_pattern_0_in_1,d,eC(s.configFile,r)):qo(void 0,d?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:const _=t.kind===2,h=C.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return qo(void 0,s.outFile?_?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:_?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,eC(h.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{const y=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,WT(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,WT(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return qo(void 0,...y)}case 6:{if(t.index!==void 0)return qo(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);const y=H6(Va(s)),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return qo(void 0,...E)}default:C.assertNever(t)}}function eC(e,t){const r=Bo(e)?e:e.fileName;return t?t(r):r}function $3(e,t,r,i,o,s,l,u){const d=e.getCompilerOptions(),_=e.getConfigFileParsingDiagnostics().slice(),h=_.length;Xr(_,e.getSyntacticDiagnostics(void 0,s)),_.length===h&&(Xr(_,e.getOptionsDiagnostics(s)),d.listFilesOnly||(Xr(_,e.getGlobalDiagnostics(s)),_.length===h&&Xr(_,e.getSemanticDiagnostics(void 0,s)),d.noEmit&&vp(d)&&_.length===h&&Xr(_,e.getDeclarationDiagnostics(void 0,s))));const y=d.listFilesOnly?{emitSkipped:!0,diagnostics:ie}:e.emit(void 0,o,s,l,u);Xr(_,y.diagnostics);const E=GR(_);if(E.forEach(t),r){const A=e.getCurrentDirectory();qe(y.emittedFiles,R=>{const N=bo(R,A);r(`TSFILE: ${N}`)}),jJe(e,r)}return i&&i(X3(E),Y3(E)),{emitResult:y,diagnostics:E}}function aq(e,t,r,i,o,s,l,u){const{emitResult:d,diagnostics:_}=$3(e,t,r,i,o,s,l,u);return d.emitSkipped&&_.length>0?1:_.length>0?2:0}var tC={close:gs},DP=()=>tC;function sq(e=Hc,t){return{onWatchStatusChange:t||$H(e),watchFile:oa(e,e.watchFile)||DP,watchDirectory:oa(e,e.watchDirectory)||DP,setTimeout:oa(e,e.setTimeout)||gs,clearTimeout:oa(e,e.clearTimeout)||gs,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var ld={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function lq(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):gs,o=IH(e,r,i);return o.writeLog=i,o}function cq(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:DH((s,l)=>l?e.readFile(s,l):o.readFile(s),void 0),getDefaultLibLocation:oa(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:CH((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Lu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Gd(i),getNewLine:()=>av(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:oa(e,e.trace),directoryExists:oa(r,r.directoryExists),getDirectories:oa(r,r.getDirectories),realpath:oa(e,e.realpath),getEnvironmentVariable:oa(e,e.getEnvironmentVariable)||(()=>""),createHash:oa(e,e.createHash),readDirectory:oa(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return o}function Q3(e,t){if(t.match(Lae)){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||!ru(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(QU)){t=t.substring(0,i);break}else if(!l.match(ZU))break;r=i}}return(e.createHash||D2)(t)}function Z3(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=Q3(e,i.text)),i}}function dq(e,t){const r=Lu(()=>ci(ya(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Lu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Qr(r(),w2(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,u)=>e.readDirectory(i,o,s,l,u),realpath:oa(e,e.realpath),getEnvironmentVariable:oa(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:oa(e,e.createHash),createProgram:t||JH,storeSignatureInfo:e.storeSignatureInfo,now:oa(e,e.now)}}function DIe(e=Hc,t,r,i){const o=l=>e.write(l+e.newLine),s=dq(e,t);return n9(s,sq(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),d=av(u);$3(l,r,o,_=>s.onWatchStatusChange(Dl(QH(_),_),d,u,_))},s}function CIe(e,t,r){t(r),e.exit(1)}function uq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const d=l||hx(o),_=DIe(o,s,d,u);return _.onUnRecoverableConfigFileDiagnostic=h=>CIe(o,d,h),_.configFileName=e,_.optionsToExtend=t,_.watchOptionsToExtend=r,_.extraFileExtensions=i,_}function pq({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const d=DIe(o,s,l||hx(o),u);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function cle(e){const t=e.system||Hc,r=e.host||(e.host=t7(e.options,t)),i=dle(e),o=aq(i,e.reportDiagnostic||hx(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(ZH(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}function e7(e,t){const r=u0(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=TH(r,o)}if(!(!i||i.version!==Re||!fO(i)))return Zse(i,r,t)}function t7(e,t=Hc){const r=w3(e,void 0,t);return r.createHash=oa(t,t.createHash),r.storeSignatureInfo=t.storeSignatureInfo,Z3(r),AP(r,i=>Os(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function dle({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||t7(t),s=s||JH;const l=e7(t,o);return s(e,t,o,l,r,i)}function NIe(e,t,r,i,o,s,l,u){return No(e)?pq({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):uq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function fq(e){let t,r,i,o,s=new Map([[void 0,void 0]]),l,u,d,_,h=e.extendedConfigCache,y=!1;const E=new Map;let A,R=!1;const N=e.useCaseSensitiveFileNames(),P=e.getCurrentDirectory(),{configFileName:k,optionsToExtend:F={},watchOptionsToExtend:W,extraFileExtensions:G,createProgram:j}=e;let{rootFiles:J,options:Z,watchOptions:q,projectReferences:ve}=e,oe,K,fe=!1,ue=!1;const me=k===void 0?void 0:P3(e,P,N),be=me||e,De=j3(e,be);let Y=Kn();k&&e.configFileParsingResult&&(Pn(e.configFileParsingResult),Y=Kn()),Pi(f.Starting_compilation_in_watch_mode),k&&!e.configFileParsingResult&&(Y=av(F),C.assert(!J),Ia(),Y=Kn()),C.assert(Z),C.assert(J);const{watchFile:Ne,watchDirectory:Xe,writeLog:Ee}=lq(e,Z),re=Gd(N);Ee(`Current directory: ${P} CaseSensitiveFileNames: ${N}`);let Te;k&&(Te=Ne(k,dr,2e3,q,ld.ConfigFile));const Me=cq(e,()=>Z,be);Z3(Me);const Be=Me.getSourceFile;Me.getSourceFile=(It,...Ot)=>so(It,gt(It),...Ot),Me.getSourceFileByPath=so,Me.getNewLine=()=>Y,Me.fileExists=Ni,Me.onReleaseOldSourceFile=xi,Me.onReleaseParsedCommandLine=Ft,Me.toPath=gt,Me.getCompilationSettings=()=>Z,Me.useSourceOfProjectReferenceRedirect=oa(e,e.useSourceOfProjectReferenceRedirect),Me.preferNonRecursiveWatch=e.preferNonRecursiveWatch,Me.watchDirectoryOfFailedLookupLocation=(It,Ot,nt)=>Xe(It,Ot,nt,q,ld.FailedLookupLocations),Me.watchAffectingFileLocation=(It,Ot)=>Ne(It,Ot,2e3,q,ld.AffectingFileLocation),Me.watchTypeRootsDirectory=(It,Ot,nt)=>Xe(It,Ot,nt,q,ld.TypeRoots),Me.getCachedDirectoryStructureHost=()=>me,Me.scheduleInvalidateResolutionsOfFailedLookupLocations=$e,Me.onInvalidatedResolution=hn,Me.onChangedAutomaticTypeDirectiveNames=hn,Me.fileIsOpen=ny,Me.getCurrentProgram=at,Me.writeLog=Ee,Me.getParsedCommandLine=Uo;const lt=YH(Me,k?ci(bo(k,P)):P,!1);Me.resolveModuleNameLiterals=oa(e,e.resolveModuleNameLiterals),Me.resolveModuleNames=oa(e,e.resolveModuleNames),!Me.resolveModuleNameLiterals&&!Me.resolveModuleNames&&(Me.resolveModuleNameLiterals=lt.resolveModuleNameLiterals.bind(lt)),Me.resolveTypeReferenceDirectiveReferences=oa(e,e.resolveTypeReferenceDirectiveReferences),Me.resolveTypeReferenceDirectives=oa(e,e.resolveTypeReferenceDirectives),!Me.resolveTypeReferenceDirectiveReferences&&!Me.resolveTypeReferenceDirectives&&(Me.resolveTypeReferenceDirectiveReferences=lt.resolveTypeReferenceDirectiveReferences.bind(lt)),Me.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):lt.resolveLibrary.bind(lt),Me.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?oa(e,e.getModuleResolutionCache):()=>lt.getModuleResolutionCache();const Ce=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?oa(e,e.hasInvalidatedResolutions)||mS:ny,ye=e.resolveLibrary?oa(e,e.hasInvalidatedLibResolutions)||mS:ny;return t=e7(Z,Me),Wt(),k?{getCurrentProgram:We,getProgram:ai,close:Ue,getResolutionCache:Ge}:{getCurrentProgram:We,getProgram:ai,updateRootFileNames:gn,close:Ue,getResolutionCache:Ge};function Ue(){Mi(),lt.clear(),yp(E,It=>{It&&It.fileWatcher&&(It.fileWatcher.close(),It.fileWatcher=void 0)}),Te&&(Te.close(),Te=void 0),h?.clear(),h=void 0,_&&(yp(_,Qf),_=void 0),o&&(yp(o,Qf),o=void 0),i&&(yp(i,Hm),i=void 0),d&&(yp(d,It=>{var Ot;(Ot=It.watcher)==null||Ot.close(),It.watcher=void 0,It.watchedDirectories&&yp(It.watchedDirectories,Qf),It.watchedDirectories=void 0}),d=void 0),t=void 0}function Ge(){return lt}function We(){return t}function at(){return t&&t.getProgramOrUndefined()}function Wt(){Ee("Synchronizing program"),C.assert(Z),C.assert(J),Mi();const It=We();R&&(Y=Kn(),It&&WF(It.getCompilerOptions(),Z)&<.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Ot,hasInvalidatedLibResolutions:nt}=lt.createHasInvalidatedResolutions(Ce,ye),{originalReadFile:Jt,originalFileExists:Tr,originalDirectoryExists:Oe,originalCreateDirectory:Nt,originalWriteFile:ge,readFileWithCache:B}=AP(Me,gt);return OH(at(),J,Z,Ie=>Zr(Ie,B),Ie=>Me.fileExists(Ie),Ot,nt,Pr,Uo,ve)?ue&&(y&&Pi(f.File_change_detected_Starting_incremental_compilation),t=j(void 0,void 0,Me,t,K,ve),ue=!1):(y&&Pi(f.File_change_detected_Starting_incremental_compilation),cn(Ot,nt)),y=!1,e.afterProgramCreate&&It!==t&&e.afterProgramCreate(t),Me.readFile=Jt,Me.fileExists=Tr,Me.directoryExists=Oe,Me.createDirectory=Nt,Me.writeFile=ge,s?.forEach((Ie,te)=>{if(!te)dt(),k&&He(gt(k),Z,q,ld.ExtendedConfigFile);else{const xt=d?.get(te);xt&&Rt(Ie,te,xt)}}),s=void 0,t}function cn(It,Ot){Ee("CreatingProgramWith::"),Ee(` roots: ${JSON.stringify(J)}`),Ee(` options: ${JSON.stringify(Z)}`),ve&&Ee(` projectReferences: ${JSON.stringify(ve)}`);const nt=R||!at();R=!1,ue=!1,lt.startCachingPerDirectoryResolution(),Me.hasInvalidatedResolutions=It,Me.hasInvalidatedLibResolutions=Ot,Me.hasChangedAutomaticTypeDirectiveNames=Pr;const Jt=at();if(t=j(J,Z,Me,t,K,ve),lt.finishCachingPerDirectoryResolution(t.getProgram(),Jt),AH(t.getProgram(),i||(i=new Map),Fe),nt&<.updateTypeRootsWatch(),A){for(const Tr of A)i.has(Tr)||E.delete(Tr);A=void 0}}function gn(It){C.assert(!k,"Cannot update root file names with config file watch mode"),J=It,hn()}function Kn(){return av(Z||F)}function gt(It){return Os(It,P,re)}function en(It){return typeof It=="boolean"}function or(It){return typeof It.version=="boolean"}function Ni(It){const Ot=gt(It);return en(E.get(Ot))?!1:be.fileExists(It)}function so(It,Ot,nt,Jt,Tr){const Oe=E.get(Ot);if(en(Oe))return;const Nt=typeof nt=="object"?nt.impliedNodeFormat:void 0;if(Oe===void 0||Tr||or(Oe)||Oe.sourceFile.impliedNodeFormat!==Nt){const ge=Be(It,nt,Jt);if(Oe)ge?(Oe.sourceFile=ge,Oe.version=ge.version,Oe.fileWatcher||(Oe.fileWatcher=le(Ot,It,_t,250,q,ld.SourceFile))):(Oe.fileWatcher&&Oe.fileWatcher.close(),E.set(Ot,!1));else if(ge){const B=le(Ot,It,_t,250,q,ld.SourceFile);E.set(Ot,{sourceFile:ge,version:ge.version,fileWatcher:B})}else E.set(Ot,!1);return ge}return Oe.sourceFile}function zt(It){const Ot=E.get(It);Ot!==void 0&&(en(Ot)?E.set(It,{version:!1}):Ot.version=!1)}function Zr(It,Ot){const nt=E.get(It);if(!nt)return;if(nt.version)return nt.version;const Jt=Ot(It);return Jt!==void 0?Q3(Me,Jt):void 0}function xi(It,Ot,nt){const Jt=E.get(It.resolvedPath);Jt!==void 0&&(en(Jt)?(A||(A=[])).push(It.path):Jt.sourceFile===It&&(Jt.fileWatcher&&Jt.fileWatcher.close(),E.delete(It.resolvedPath),nt||lt.removeResolutionsOfFile(It.path)))}function Pi(It){e.onWatchStatusChange&&e.onWatchStatusChange(Dl(It),Y,Z||F)}function Pr(){return lt.hasChangedAutomaticTypeDirectiveNames()}function Mi(){return u?(e.clearTimeout(u),u=void 0,!0):!1}function $e(){if(!e.setTimeout||!e.clearTimeout)return lt.invalidateResolutionsOfFailedLookupLocations();const It=Mi();Ee(`Scheduling invalidateFailedLookup${It?", Cancelled earlier one":""}`),u=e.setTimeout(At,250,"timerToInvalidateFailedLookupResolutions")}function At(){u=void 0,lt.invalidateResolutionsOfFailedLookupLocations()&&hn()}function hn(){!e.setTimeout||!e.clearTimeout||(l&&e.clearTimeout(l),Ee("Scheduling update"),l=e.setTimeout(ri,250,"timerToUpdateProgram"))}function dr(){C.assert(!!k),r=2,hn()}function ri(){l=void 0,y=!0,ai()}function ai(){switch(r){case 1:qi();break;case 2:Qo();break;default:Wt();break}return We()}function qi(){Ee("Reloading new file names and options"),C.assert(Z),C.assert(k),r=0,J=aP(Z.configFile.configFileSpecs,bo(ci(k),P),Z,De,G),i3(J,bo(k,P),Z.configFile.configFileSpecs,K,fe)&&(ue=!0),Wt()}function Qo(){C.assert(k),Ee(`Reloading config file: ${k}`),r=0,me&&me.clearCache(),Ia(),R=!0,(s??(s=new Map)).set(void 0,void 0),Wt()}function Ia(){C.assert(k),Pn(zw(k,F,De,h||(h=new Map),W,G))}function Pn(It){J=It.fileNames,Z=It.options,q=It.watchOptions,ve=It.projectReferences,oe=It.wildcardDirectories,K=nE(It).slice(),fe=Uw(It.raw),ue=!0}function Uo(It){const Ot=gt(It);let nt=d?.get(Ot);if(nt){if(!nt.updateLevel)return nt.parsedCommandLine;if(nt.parsedCommandLine&&nt.updateLevel===1&&!e.getParsedCommandLine){Ee("Reloading new file names and options"),C.assert(Z);const Tr=aP(nt.parsedCommandLine.options.configFile.configFileSpecs,bo(ci(It),P),Z,De);return nt.parsedCommandLine={...nt.parsedCommandLine,fileNames:Tr},nt.updateLevel=void 0,nt.parsedCommandLine}}Ee(`Loading config file: ${It}`);const Jt=e.getParsedCommandLine?e.getParsedCommandLine(It):ot(It);return nt?(nt.parsedCommandLine=Jt,nt.updateLevel=void 0):(d||(d=new Map)).set(Ot,nt={parsedCommandLine:Jt}),(s??(s=new Map)).set(Ot,It),Jt}function ot(It){const Ot=De.onUnRecoverableConfigFileDiagnostic;De.onUnRecoverableConfigFileDiagnostic=gs;const nt=zw(It,void 0,De,h||(h=new Map),W);return De.onUnRecoverableConfigFileDiagnostic=Ot,nt}function Ft(It){var Ot;const nt=gt(It),Jt=d?.get(nt);Jt&&(d.delete(nt),Jt.watchedDirectories&&yp(Jt.watchedDirectories,Qf),(Ot=Jt.watcher)==null||Ot.close(),EH(nt,_))}function le(It,Ot,nt,Jt,Tr,Oe){return Ne(Ot,(Nt,ge)=>nt(Nt,ge,It),Jt,Tr,Oe)}function _t(It,Ot,nt){ne(It,nt,Ot),Ot===2&&E.has(nt)&<.invalidateResolutionOfFile(nt),zt(nt),hn()}function ne(It,Ot,nt){me&&me.addOrDeleteFile(It,Ot,nt)}function Fe(It,Ot){return d?.has(It)?tC:le(It,Ot,it,500,q,ld.MissingFile)}function it(It,Ot,nt){ne(It,nt,Ot),Ot===0&&i.has(nt)&&(i.get(nt).close(),i.delete(nt),zt(nt),hn())}function dt(){aO(o||(o=new Map),oe,Lt)}function Lt(It,Ot){return Xe(It,nt=>{C.assert(k),C.assert(Z);const Jt=gt(nt);me&&me.addOrDeleteFileOrDirectory(nt,Jt),zt(Jt),!sO({watchedDirPath:gt(It),fileOrDirectory:nt,fileOrDirectoryPath:Jt,configFileName:k,extraFileExtensions:G,options:Z,program:We()||J,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Ee,toPath:gt})&&r!==2&&(r=1,hn())},Ot,q,ld.WildcardDirectory)}function He(It,Ot,nt,Jt){L3(It,Ot,_||(_=new Map),(Tr,Oe)=>Ne(Tr,(Nt,ge)=>{var B;ne(Tr,Oe,ge),h&&k3(h,Oe,gt);const Ie=(B=_.get(Oe))==null?void 0:B.projects;Ie?.size&&Ie.forEach(te=>{if(k&>(k)===te)r=2;else{const xt=d?.get(te);xt&&(xt.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(te)}hn()})},2e3,nt,Jt),gt)}function Rt(It,Ot,nt){var Jt,Tr,Oe,Nt;nt.watcher||(nt.watcher=Ne(It,(ge,B)=>{ne(It,Ot,B);const Ie=d?.get(Ot);Ie&&(Ie.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(Ot),hn()},2e3,((Jt=nt.parsedCommandLine)==null?void 0:Jt.watchOptions)||q,ld.ConfigFileOfReferencedProject)),aO(nt.watchedDirectories||(nt.watchedDirectories=new Map),(Tr=nt.parsedCommandLine)==null?void 0:Tr.wildcardDirectories,(ge,B)=>{var Ie;return Xe(ge,te=>{const xt=gt(te);me&&me.addOrDeleteFileOrDirectory(te,xt),zt(xt);const Kt=d?.get(Ot);Kt?.parsedCommandLine&&(sO({watchedDirPath:gt(ge),fileOrDirectory:te,fileOrDirectoryPath:xt,configFileName:It,options:Kt.parsedCommandLine.options,program:Kt.parsedCommandLine.fileNames,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Ee,toPath:gt})||Kt.updateLevel!==2&&(Kt.updateLevel=1,hn()))},B,((Ie=nt.parsedCommandLine)==null?void 0:Ie.watchOptions)||q,ld.WildcardDirectoryOfReferencedProject)}),He(Ot,(Oe=nt.parsedCommandLine)==null?void 0:Oe.options,((Nt=nt.parsedCommandLine)==null?void 0:Nt.watchOptions)||q,ld.ExtendedConfigOfReferencedProject)}}var ule=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfoWithPendingEmit=7]="OutOfDateBuildInfoWithPendingEmit",e[e.OutOfDateBuildInfoWithErrors=8]="OutOfDateBuildInfoWithErrors",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(ule||{});function mq(e){return xl(e,".json")?e:Qr(e,"tsconfig.json")}var UJe=new Date(-864e13);function HJe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function ple(e,t){return HJe(e,t,()=>new Map)}function hq(e){return e.now?e.now():new Date}function _x(e){return!!e&&!!e.buildOrder}function _O(e){return _x(e)?e.buildOrder:e}function n7(e,t){return r=>{let i=t?`[${tE(hO(e),"\x1B[90m")}] `:`${hO(e)} - `;i+=`${c_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function MIe(e,t,r,i){const o=dq(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):hS,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):gs,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):gs,o.reportDiagnostic=r||hx(e),o.reportSolutionBuilderStatus=i||n7(e),o.now=oa(e,e.now),o}function fle(e=Hc,t,r,i,o){const s=MIe(e,t,r,i);return s.reportErrorSummary=o,s}function mle(e=Hc,t,r,i,o){const s=MIe(e,t,r,i),l=sq(e,o);return n9(s,l),s}function qJe(e){const t={};return J4.forEach(r=>{Cs(e,r.name)&&(t[r.name]=e[r.name])}),t.tscBuild=!0,t}function hle(e,t,r){return QIe(!1,e,t,r)}function _le(e,t,r,i){return QIe(!0,e,t,r,i)}function JJe(e,t,r,i,o){const s=t,l=t,u=qJe(i),d=cq(s,()=>N.projectCompilerOptions);Z3(d),d.getParsedCommandLine=P=>nC(N,P,V_(N,P)),d.resolveModuleNameLiterals=oa(s,s.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=oa(s,s.resolveTypeReferenceDirectiveReferences),d.resolveLibrary=oa(s,s.resolveLibrary),d.resolveModuleNames=oa(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=oa(s,s.resolveTypeReferenceDirectives),d.getModuleResolutionCache=oa(s,s.getModuleResolutionCache);let _,h;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(_=HD(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(P,k,F,W,G)=>cO(P,k,F,W,G,s,_,kH),d.getModuleResolutionCache=()=>_),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(h=u3(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,_?.getPackageJsonInfoCache(),_?.optionsToRedirectsKey),d.resolveTypeReferenceDirectiveReferences=(P,k,F,W,G)=>cO(P,k,F,W,G,s,h,F3));let y;d.resolveLibrary||(y=HD(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,_?.getPackageJsonInfoCache()),d.resolveLibrary=(P,k,F)=>p3(P,k,F,s,y)),d.getBuildInfo=(P,k)=>jIe(N,P,V_(N,k),void 0);const{watchFile:E,watchDirectory:A,writeLog:R}=lq(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:j3(s),write:oa(s,s.trace),options:i,baseCompilerOptions:u,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:d,moduleResolutionCache:_,typeReferenceDirectiveResolutionCache:h,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:P=>s.readFile(P),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:E,watchDirectory:A,writeLog:R};return N}function Ym(e,t){return Os(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function V_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=Ym(e,t);return r.set(t,o),o}function PIe(e){return!!e.options}function KJe(e,t){const r=e.configFileCache.get(t);return r&&PIe(r)?r:void 0}function nC(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return PIe(o)?o:void 0;Nl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:d,extendedConfigCache:_,host:h}=e;let y;return h.getParsedCommandLine?(y=h.getParsedCommandLine(t),y||(s=Dl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=zw(t,u,l,_,d),l.onUnRecoverableConfigFileDiagnostic=gs),i.set(r,y||s),Nl("SolutionBuilder::afterConfigFileParsing"),zf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function gO(e,t){return mq(ub(e.compilerHost.getCurrentDirectory(),t))}function LIe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const d of t)u(d);return l?{buildOrder:s||ie,circularDiagnostics:l}:s||ie;function u(d,_){const h=V_(e,d);if(i.has(h))return;if(r.has(h)){_||(l||(l=[])).push(Dl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r `)));return}r.set(h,!0),o.push(d);const y=nC(e,d,h);if(y&&y.projectReferences)for(const E of y.projectReferences){const A=gO(e,E.path);u(A,_||E.circular)}o.pop(),i.set(h,!0),(s||(s=[])).push(d)}}function r7(e){return e.buildOrder||XJe(e)}function XJe(e){const t=LIe(e,e.rootNames.map(o=>gO(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(_O(t).map(o=>V_(e,o))),i={onDeleteValue:gs};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),Ag(e.lastCachedPackageJsonLookups,r,i),e.watch&&(Ag(e.allWatchedConfigFiles,r,{onDeleteValue:Hm}),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(Qf)}),Ag(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Hm)}),Ag(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Hm)})),e.buildOrder=t}function kIe(e,t,r){const i=t&&gO(e,t),o=r7(e);if(_x(o))return o;if(i){const l=V_(e,i);if(ho(o,d=>V_(e,d)===l)===-1)return}const s=i?LIe(e,[i]):o;return C.assert(!_x(s)),C.assert(!r||i!==void 0),C.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function wIe(e){e.cache&&gle(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:_,getSourceFileWithCache:h,readFileWithCache:y}=AP(r,E=>Ym(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=y,t.getSourceFile=h,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:_,originalReadFileWithCache:i,originalGetSourceFile:o}}function gle(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),u?.clear(),e.cache=void 0}function OIe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function WIe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(V_(e,i),0)),t&&t.throwIfCancellationRequested()}var yle=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(yle||{});function zIe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function YJe(e,t,r,i,o){let s=!0;return{kind:1,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{HIe(e,i,r),s=!1},done:()=>(s&&HIe(e,i,r),Nl("SolutionBuilder::Timestamps only updates"),zIe(e,r))}}function $Je(e,t,r,i,o,s,l){let u=0,d,_;return{kind:0,project:t,projectPath:r,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>y(Us),getProgram:()=>y(P=>P.getProgramOrUndefined()),getSourceFile:P=>y(k=>k.getSourceFile(P)),getSourceFiles:()=>E(P=>P.getSourceFiles()),getOptionsDiagnostics:P=>E(k=>k.getOptionsDiagnostics(P)),getGlobalDiagnostics:P=>E(k=>k.getGlobalDiagnostics(P)),getConfigFileParsingDiagnostics:()=>E(P=>P.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(P,k)=>E(F=>F.getSyntacticDiagnostics(P,k)),getAllDependencies:P=>E(k=>k.getAllDependencies(P)),getSemanticDiagnostics:(P,k)=>E(F=>F.getSemanticDiagnostics(P,k)),getSemanticDiagnosticsOfNextAffectedFile:(P,k)=>y(F=>F.getSemanticDiagnosticsOfNextAffectedFile&&F.getSemanticDiagnosticsOfNextAffectedFile(P,k)),emit:(P,k,F,W,G)=>P||W?y(j=>{var J,Z;return j.emit(P,k,F,W,G||((Z=(J=e.host).getCustomTransformers)==null?void 0:Z.call(J,t)))}):(N(0,F),R(k,F,G)),done:h};function h(P,k,F){return N(3,P,k,F),Nl("SolutionBuilder::Projects built"),zIe(e,r)}function y(P){return N(0),d&&P(d)}function E(P){return y(P)||ie}function A(){var P,k,F;if(C.assert(d===void 0),e.options.dry){jp(e,f.A_non_dry_build_would_build_project_0,t),_=1,u=2;return}if(e.options.verbose&&jp(e,f.Building_project_0,t),o.fileNames.length===0){yO(e,r,nE(o)),_=0,u=2;return}const{host:W,compilerHost:G}=e;if(e.projectCompilerOptions=o.options,(P=e.moduleResolutionCache)==null||P.update(o.options),(k=e.typeReferenceDirectiveResolutionCache)==null||k.update(o.options),d=W.createProgram(o.fileNames,o.options,G,QJe(e,r,o),nE(o),o.projectReferences),e.watch){const j=(F=e.moduleResolutionCache)==null?void 0:F.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(r,j&&new Set(Do(j.values(),J=>e.host.realpath&&(d3(J)||J.directoryExists)?e.host.realpath(Qr(J.packageDirectory,"package.json")):Qr(J.packageDirectory,"package.json")))),e.builderPrograms.set(r,d)}u++}function R(P,k,F){var W,G,j;C.assertIsDefined(d),C.assert(u===1);const{host:J,compilerHost:Z}=e,q=new Map,ve=d.getCompilerOptions(),oe=FS(ve);let K,fe;const{emitResult:ue,diagnostics:me}=$3(d,be=>J.reportDiagnostic(be),e.write,void 0,(be,De,Y,Ne,Xe,Ee)=>{var re;const Te=Ym(e,be);if(q.set(Ym(e,be),be),Ee?.buildInfo){fe||(fe=hq(e.host));const Be=(re=d.hasChangedEmitSignature)==null?void 0:re.call(d),lt=yq(e,be,r);lt?(lt.buildInfo=Ee.buildInfo,lt.modifiedTime=fe,Be&&(lt.latestChangedDtsTime=fe)):e.buildInfoCache.set(r,{path:Ym(e,be),buildInfo:Ee.buildInfo,modifiedTime:fe,latestChangedDtsTime:Be?fe:void 0})}const Me=Ee?.differsOnlyInMap?aI(e.host,be):void 0;(P||Z.writeFile)(be,De,Y,Ne,Xe,Ee),Ee?.differsOnlyInMap?e.host.setModifiedTime(be,Me):!oe&&e.watch&&(K||(K=ble(e,r))).set(Te,fe||(fe=hq(e.host)))},k,void 0,F||((G=(W=e.host).getCustomTransformers)==null?void 0:G.call(W,t)));return(!ve.noEmitOnError||!me.length)&&(q.size||s.type!==8)&&UIe(e,o,r,f.Updating_unchanged_output_timestamps_of_project_0,q),e.projectErrorsReported.set(r,!0),_=(j=d.hasChangedEmitSignature)!=null&&j.call(d)?0:2,me.length?(e.diagnostics.set(r,me),e.projectStatus.set(r,{type:0,reason:"it had errors"}),_|=4):(e.diagnostics.delete(r),e.projectStatus.set(r,{type:1,oldestOutputFileName:KW(q.values())??yH(o,!J.useCaseSensitiveFileNames())})),ZJe(e,d),u=2,ue}function N(P,k,F,W){for(;u<=P&&u<3;){const G=u;switch(u){case 0:A();break;case 1:R(F,k,W);break;case 2:rKe(e,t,r,i,o,l,C.checkDefined(_)),u++;break}C.assert(u>G)}}}function BIe(e,t,r){if(!e.projectPendingBuild.size||_x(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s{const A=C.checkDefined(e.filesWatched.get(u));C.assert(_q(A)),A.modifiedTime=E,A.callbacks.forEach(R=>R(h,y,E))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:_,modifiedTime:d})}return{close:()=>{const _=C.checkDefined(e.filesWatched.get(u));C.assert(_q(_)),_.callbacks.length===1?(e.filesWatched.delete(u),Qf(_)):iI(_.callbacks,r)}}}function ble(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function yq(e,t,r){const i=Ym(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function jIe(e,t,r,i){const o=Ym(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;const l=e.readFileWithCache(t),u=l?TH(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||Mp}),u}function Tle(e,t,r,i){const o=VIe(e,t);if(rG&&(W=me,G=be),J.add(De)}let q;if(P?(Z||(Z=HH(P,y,h)),q=Jc(Z.roots,(me,be)=>J.has(be)?void 0:be)):q=qe(ele(N,y,h),me=>J.has(me)?void 0:me),q)return{type:10,buildInfoFile:y,inputFile:q};if(!E){const me=M3(t,!h.useCaseSensitiveFileNames()),be=ble(e,r);for(const De of me){if(De===y)continue;const Y=Ym(e,De);let Ne=be?.get(Y);if(Ne||(Ne=aI(e.host,De),be?.set(Y,Ne)),Ne===Mp)return{type:3,missingOutputFileName:De};if(NeTle(e,me,k,F));if(K)return K;const fe=e.lastCachedPackageJsonLookups.get(r),ue=fe&&yg(fe,me=>Tle(e,me,k,F));return ue||{type:ve?2:j?15:1,newestInputFileTime:G,newestInputFileName:W,oldestOutputFileName:F}}function tKe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function Sle(e,t,r){if(t===void 0)return{type:0,reason:"config file deleted mid-build"};const i=e.projectStatus.get(r);if(i!==void 0)return i;Nl("SolutionBuilder::beforeUpToDateCheck");const o=eKe(e,t,r);return Nl("SolutionBuilder::afterUpToDateCheck"),zf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function UIe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=u0(t.options),u=FS(t.options);if(l&&u){o?.has(Ym(e,l))||(e.options.verbose&&jp(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=hq(e.host)),yq(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:d}=e,_=M3(t,!d.useCaseSensitiveFileNames()),h=ble(e,r),y=h?new Set:void 0;if(!o||_.length!==o.size){let E=!!e.options.verbose;for(const A of _){const R=Ym(e,A);o?.has(R)||(E&&(E=!1,jp(e,i,t.options.configFilePath)),d.setModifiedTime(A,s||(s=hq(e.host))),A===l?yq(e,l,r).modifiedTime=s:h&&(h.set(R,s),y.add(R)))}}h?.forEach((E,A)=>{!o?.has(A)&&!y.has(A)&&h.delete(A)})}function nKe(e,t,r){if(!t.composite)return;const i=C.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const o=i.buildInfo&&fO(i.buildInfo)&&i.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(bo(i.buildInfo.latestChangedDtsFile,ci(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function HIe(e,t,r){if(e.options.dry)return jp(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);UIe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:yH(t,!e.host.useCaseSensitiveFileNames())})}function rKe(e,t,r,i,o,s,l){if(!(e.options.stopBuildOnErrors&&l&4)&&o.options.composite)for(let u=i+1;ue.diagnostics.has(V_(e,_)))?d?2:1:0}function JIe(e,t,r){Nl("SolutionBuilder::beforeClean");const i=oKe(e,t,r);return Nl("SolutionBuilder::afterClean"),zf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function oKe(e,t,r){const i=kIe(e,t,r);if(!i)return 3;if(_x(i))return vq(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const d=V_(e,u),_=nC(e,u,d);if(_===void 0){ZIe(e,d);continue}const h=M3(_,!s.useCaseSensitiveFileNames());if(!h.length)continue;const y=new Set(_.fileNames.map(E=>Ym(e,E)));for(const E of h)y.has(Ym(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),Ele(e,d,0)))}return l&&jp(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r * ${u}`).join("")),0}function Ele(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,OIe(e,t),WIe(e,t,r),wIe(e)}function i7(e,t,r){e.reportFileChangeDetected=!0,Ele(e,t,r),KIe(e,250,!0)}function KIe(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(aKe,t,"timerToBuildInvalidatedProject",e,r))}function aKe(e,t,r){Nl("SolutionBuilder::beforeBuild");const i=sKe(t,r);Nl("SolutionBuilder::afterBuild"),zf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&exe(t,i)}function sKe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),xle(e,f.File_change_detected_Starting_incremental_compilation));let r=0;const i=r7(e),o=vle(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=BIe(e,i,!1);if(!s)break;if(s.kind!==1&&(t||r===5)){KIe(e,100,!1);return}GIe(e,s,i).done(),s.kind!==1&&r++}return gle(e),i}function XIe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,gq(e,t,()=>i7(e,r,2),2e3,i?.watchOptions,ld.ConfigFile,t))}function YIe(e,t,r){L3(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>gq(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>i7(e,l,2))},2e3,r?.watchOptions,ld.ExtendedConfigFile),i=>Ym(e,i))}function $Ie(e,t,r,i){e.watch&&aO(ple(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;sO({watchedDirPath:Ym(e,o),fileOrDirectory:l,fileOrDirectoryPath:Ym(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=KJe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>Ym(e,d)})||i7(e,r,1)},s,i?.watchOptions,ld.WildcardDirectory,t))}function Ale(e,t,r,i){e.watch&&AM(ple(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>gq(e,o,()=>i7(e,r,0),250,i?.watchOptions,ld.SourceFile,t),onDeleteValue:Hm})}function Ile(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||AM(ple(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>gq(e,o,()=>i7(e,r,0),2e3,i?.watchOptions,ld.PackageJson,t),onDeleteValue:Hm})}function lKe(e,t){if(e.watchAllProjectsPending){Nl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of _O(t)){const i=V_(e,r),o=nC(e,r,i);XIe(e,r,i,o),YIe(e,i,o),o&&($Ie(e,r,i,o),Ale(e,r,i,o),Ile(e,r,i,o))}Nl("SolutionBuilder::afterWatcherCreation"),zf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function cKe(e){yp(e.allWatchedConfigFiles,Hm),yp(e.allWatchedExtendedConfigFiles,Qf),yp(e.allWatchedWildcardDirectories,t=>yp(t,Qf)),yp(e.allWatchedInputFiles,t=>yp(t,Hm)),yp(e.allWatchedPackageJsonFiles,t=>yp(t,Hm))}function QIe(e,t,r,i,o){const s=JJe(e,t,r,i,o);return{build:(l,u,d,_)=>qIe(s,l,u,d,_),clean:l=>JIe(s,l),buildReferences:(l,u,d,_)=>qIe(s,l,u,d,_,!0),cleanReferences:l=>JIe(s,l,!0),getNextInvalidatedProject:l=>(FIe(s,l),vle(s,r7(s),!1)),getBuildOrder:()=>r7(s),getUpToDateStatusOfProject:l=>{const u=gO(s,l),d=V_(s,u);return Sle(s,nC(s,u,d),d)},invalidateProject:(l,u)=>Ele(s,l,u||0),close:()=>cKe(s)}}function Md(e,t){return CN(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function jp(e,t,...r){e.host.reportSolutionBuilderStatus(Dl(t,...r))}function xle(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Dl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function vq({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function yO(e,t,r){vq(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ZIe(e,t){yO(e,t,[e.configFileCache.get(t)])}function exe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];_x(t)?(txe(e,t.buildOrder),vq(e,t.circularDiagnostics),r&&(o+=X3(t.circularDiagnostics)),r&&(s=[...s,...Y3(t.circularDiagnostics)])):(t.forEach(l=>{const u=V_(e,l);e.projectErrorsReported.has(u)||vq(e,i.get(u)||ie)}),r&&i.forEach(l=>o+=X3(l)),r&&i.forEach(l=>[...s,...Y3(l)])),e.watch?xle(e,QH(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function txe(e,t){e.options.verbose&&jp(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+Md(e,r)).join(""))}function dKe(e,t,r){switch(r.type){case 5:return jp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Md(e,t),Md(e,r.outOfDateOutputFileName),Md(e,r.newerInputFileName));case 6:return jp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Md(e,t),Md(e,r.outOfDateOutputFileName),Md(e,r.newerProjectName));case 3:return jp(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Md(e,t),Md(e,r.missingOutputFileName));case 4:return jp(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Md(e,t),Md(e,r.fileName));case 7:return jp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Md(e,t),Md(e,r.buildInfoFile));case 8:return jp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,Md(e,t),Md(e,r.buildInfoFile));case 9:return jp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Md(e,t),Md(e,r.buildInfoFile));case 10:return jp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Md(e,t),Md(e,r.buildInfoFile),Md(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return jp(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Md(e,t),Md(e,r.newestInputFileName||""),Md(e,r.oldestOutputFileName||""));break;case 2:return jp(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Md(e,t));case 15:return jp(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Md(e,t));case 11:return jp(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Md(e,t),Md(e,r.upstreamProjectName));case 12:return jp(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Md(e,t),Md(e,r.upstreamProjectName));case 0:return jp(e,f.Project_0_is_out_of_date_because_1,Md(e,t),r.reason);case 14:return jp(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Md(e,t),r.version,Re);case 17:return jp(e,f.Project_0_is_being_forcibly_rebuilt,Md(e,t))}}function bq(e,t,r){e.options.verbose&&dKe(e,t,r)}var Rle=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(Rle||{});function uKe(e){const t=pKe();return qe(e.getSourceFiles(),r=>{const i=fKe(e,r),o=ug(r).length;t.set(i,t.get(i)+o)}),t}function pKe(){const e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function fKe(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const r=t.path;return tc(r,XV)?"TypeScript":tc(r,vD)?"JavaScript":xl(r,".json")?"JSON":"Other"}function Tq(e,t,r){return o7(e,r)?hx(e,!0):t}function nxe(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function o7(e,t){return!t||typeof t.pretty>"u"?nxe(e):t.pretty}function rxe(e){return e.options.all?Cp(Xm.concat(L1),(t,r)=>A2(t.name,r.name)):Un(Xm.concat(L1),t=>!!t.showInSimplifiedHelpView)}function Sq(e){e.write(ap(f.Version_0,Re)+e.newLine)}function Eq(e){if(!nxe(e))return{bold:h=>h,blue:h=>h,blueBackground:h=>h,brightWhite:h=>h};function r(h){return`\x1B[1m${h}\x1B[22m`}const i=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),o=e.getEnvironmentVariable("WT_SESSION"),s=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function l(h){return i&&!o&&!s?_(h):`\x1B[94m${h}\x1B[39m`}const u=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function d(h){return u?`\x1B[48;5;68m${h}\x1B[39;49m`:`\x1B[44m${h}\x1B[39;49m`}function _(h){return`\x1B[97m${h}\x1B[39m`}return{bold:r,blue:l,brightWhite:_,blueBackground:d}}function ixe(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function mKe(e,t,r,i){var o;const s=[],l=Eq(e),u=ixe(t),d=R(t),_=typeof t.defaultValueDescription=="object"?ap(t.defaultValueDescription):y(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),h=((o=e.getWidthOfTerminal)==null?void 0:o.call(e))??0;if(h>=80){let N="";t.description&&(N=ap(t.description)),s.push(...A(u,N,r,i,h,!0),e.newLine),E(d,t)&&(d&&s.push(...A(d.valueType,d.possibleValues,r,i,h,!1),e.newLine),_&&s.push(...A(ap(f.default_Colon),_,r,i,h,!1),e.newLine)),s.push(e.newLine)}else{if(s.push(l.blue(u),e.newLine),t.description){const N=ap(t.description);s.push(N)}if(s.push(e.newLine),E(d,t)){if(d&&s.push(`${d.valueType} ${d.possibleValues}`),_){d&&s.push(e.newLine);const N=ap(f.default_Colon);s.push(`${N} ${_}`)}s.push(e.newLine)}s.push(e.newLine)}return s;function y(N,P){return N!==void 0&&typeof P=="object"?Do(P.entries()).filter(([,k])=>k===N).map(([k])=>k).join("/"):String(N)}function E(N,P){const k=["string"],F=[void 0,"false","n/a"],W=P.defaultValueDescription;return!(P.category===f.Command_line_Options||jn(k,N?.possibleValues)&&jn(F,W))}function A(N,P,k,F,W,G){const j=[];let J=!0,Z=P;const q=W-F;for(;Z.length>0;){let ve="";J?(ve=N.padStart(k),ve=ve.padEnd(F),ve=G?l.blue(ve):ve):ve="".padStart(F);const oe=Z.substr(0,q);Z=Z.slice(q),j.push(`${ve}${oe}`),J=!1}return j}function R(N){if(N.type==="object")return;return{valueType:P(N),possibleValues:k(N)};function P(F){switch(C.assert(F.type!=="listOrElement"),F.type){case"string":case"number":case"boolean":return ap(f.type_Colon);case"list":return ap(f.one_or_more_Colon);default:return ap(f.one_of_Colon)}}function k(F){let W;switch(F.type){case"string":case"number":case"boolean":W=F.type;break;case"list":case"listOrElement":W=k(F.element);break;case"object":W="";break;default:const G={};return F.type.forEach((j,J)=>{var Z;(Z=F.deprecatedKeys)!=null&&Z.has(J)||(G[j]||(G[j]=[])).push(J)}),Object.entries(G).map(([,j])=>j.join("/")).join(", ")}return W}}}function oxe(e,t){let r=0;for(const l of t){const u=ixe(l).length;r=r>u?r:u}const i=r+2,o=i+2;let s=[];for(const l of t){const u=mKe(e,l,i,o);s=[...s,...u]}return s[s.length-2]!==e.newLine&&s.push(e.newLine),s}function vO(e,t,r,i,o,s){let l=[];if(l.push(Eq(e).bold(t)+e.newLine+e.newLine),o&&l.push(o+e.newLine+e.newLine),!i)return l=[...l,...oxe(e,r)],s&&l.push(s+e.newLine+e.newLine),l;const u=new Map;for(const d of r){if(!d.category)continue;const _=ap(d.category),h=u.get(_)??[];h.push(d),u.set(_,h)}return u.forEach((d,_)=>{l.push(`### ${_}${e.newLine}${e.newLine}`),l=[...l,...oxe(e,d)]}),s&&l.push(s+e.newLine+e.newLine),l}function hKe(e,t){const r=Eq(e);let i=[...Aq(e,`${ap(f.tsc_Colon_The_TypeScript_Compiler)} - ${ap(f.Version_0,Re)}`)];i.push(r.bold(ap(f.COMMON_COMMANDS))+e.newLine+e.newLine),l("tsc",f.Compiles_the_current_project_tsconfig_json_in_the_working_directory),l("tsc app.ts util.ts",f.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),l("tsc -b",f.Build_a_composite_project_in_the_working_directory),l("tsc --init",f.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),l("tsc -p ./path/to/tsconfig.json",f.Compiles_the_TypeScript_project_located_at_the_specified_path),l("tsc --help --all",f.An_expanded_version_of_this_information_showing_all_possible_compiler_options),l(["tsc --noEmit","tsc --target esnext"],f.Compiles_the_current_project_with_additional_settings);const o=t.filter(u=>u.isCommandLineOnly||u.category===f.Command_line_Options),s=t.filter(u=>!jn(o,u));i=[...i,...vO(e,ap(f.COMMAND_LINE_FLAGS),o,!1,void 0,void 0),...vO(e,ap(f.COMMON_COMPILER_OPTIONS),s,!1,void 0,OI(f.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(const u of i)e.write(u);function l(u,d){const _=typeof u=="string"?[u]:u;for(const h of _)i.push(" "+r.blue(h)+e.newLine);i.push(" "+ap(d)+e.newLine+e.newLine)}}function _Ke(e,t,r,i){let o=[...Aq(e,`${ap(f.tsc_Colon_The_TypeScript_Compiler)} - ${ap(f.Version_0,Re)}`)];o=[...o,...vO(e,ap(f.ALL_COMPILER_OPTIONS),t,!0,void 0,OI(f.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],o=[...o,...vO(e,ap(f.WATCH_OPTIONS),i,!1,ap(f.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],o=[...o,...vO(e,ap(f.BUILD_OPTIONS),Un(r,s=>s!==L1),!1,OI(f.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const s of o)e.write(s)}function axe(e,t){let r=[...Aq(e,`${ap(f.tsc_Colon_The_TypeScript_Compiler)} - ${ap(f.Version_0,Re)}`)];r=[...r,...vO(e,ap(f.BUILD_OPTIONS),Un(t,i=>i!==L1),!1,OI(f.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(const i of r)e.write(i)}function Aq(e,t){var r;const i=Eq(e),o=[],s=((r=e.getWidthOfTerminal)==null?void 0:r.call(e))??0,l=5,u=i.blueBackground("".padStart(l)),d=i.blueBackground(i.brightWhite("TS ".padStart(l)));if(s>=t.length+l){const h=(s>120?120:s)-l;o.push(t.padEnd(h)+u+e.newLine),o.push("".padStart(h)+d+e.newLine)}else o.push(t+e.newLine),o.push(e.newLine);return o}function sxe(e,t){t.options.all?_Ke(e,rxe(t),mU,lx):hKe(e,rxe(t))}function lxe(e,t,r){let i=hx(e),o;if(r.options.locale&&Y9(r.options.locale,e,r.errors),r.errors.length>0)return r.errors.forEach(i),e.exit(1);if(r.options.init)return bKe(e,i,r.options),e.exit(0);if(r.options.version)return Sq(e),e.exit(0);if(r.options.help||r.options.all)return sxe(e,r),e.exit(0);if(r.options.watch&&r.options.listFilesOnly)return i(Dl(f.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(r.options.project){if(r.fileNames.length!==0)return i(Dl(f.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);const u=ya(r.options.project);if(!u||e.directoryExists(u)){if(o=Qr(u,"tsconfig.json"),!e.fileExists(o))return i(Dl(f.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,r.options.project)),e.exit(1)}else if(o=u,!e.fileExists(o))return i(Dl(f.The_specified_path_does_not_exist_Colon_0,r.options.project)),e.exit(1)}else if(r.fileNames.length===0){const u=ya(e.getCurrentDirectory());o=xH(u,d=>e.fileExists(d))}if(r.fileNames.length===0&&!o)return r.options.showConfig?i(Dl(f.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,ya(e.getCurrentDirectory()))):(Sq(e),sxe(e,r)),e.exit(1);const s=e.getCurrentDirectory(),l=t3(r.options,u=>bo(u,s));if(o){const u=new Map,d=lle(o,l,u,r.watchOptions,e,i);if(l.showConfig)return d.errors.length!==0?(i=Tq(e,i,d.options),d.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(TU(d,o,e),null,4)+e.newLine),e.exit(0));if(i=Tq(e,i,d.options),kV(d.options))return Cle(e,i)?void 0:gKe(e,t,i,d,l,r.watchOptions,u);FS(d.options)?pxe(e,t,i,d):uxe(e,t,i,d)}else{if(l.showConfig)return e.write(JSON.stringify(TU(r,Qr(s,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=Tq(e,i,l),kV(l))return Cle(e,i)?void 0:yKe(e,t,i,r.fileNames,l,r.watchOptions);FS(l)?pxe(e,t,i,{...r,options:l}):uxe(e,t,i,{...r,options:l})}}function Dle(e){if(e.length>0&&e[0].charCodeAt(0)===45){const t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t===L1.name||t===L1.shortName}return!1}function cxe(e,t,r){if(Dle(r)){const{buildOptions:o,watchOptions:s,projects:l,errors:u}=Uoe(r);if(o.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(o.generateCpuProfile,()=>dxe(e,t,o,s,l,u));else return dxe(e,t,o,s,l,u)}const i=Voe(r,o=>e.readFile(o));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>lxe(e,t,i));else return lxe(e,t,i)}function Cle(e,t){return!e.watchFile||!e.watchDirectory?(t(Dl(f.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var a7=2;function dxe(e,t,r,i,o,s){const l=Tq(e,hx(e),r);if(r.locale&&Y9(r.locale,e,s),s.length>0)return s.forEach(l),e.exit(1);if(r.help||o.length===0)return Sq(e),axe(e,Fw),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||r.clean&&!e.deleteFile)return l(Dl(f.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(r.watch){if(Cle(e,l))return;const y=mle(e,void 0,l,n7(e,o7(e,r)),Mle(e,r));y.jsDocParsingMode=a7;const E=_xe(e,r);fxe(e,t,y,E);const A=y.onWatchStatusChange;let R=!1;y.onWatchStatusChange=(P,k,F,W)=>{A?.(P,k,F,W),R&&(P.code===f.Found_0_errors_Watching_for_file_changes.code||P.code===f.Found_1_error_Watching_for_file_changes.code)&&Ple(N,E)};const N=_le(y,o,r,i);return N.build(),Ple(N,E),R=!0,N}const u=fle(e,void 0,l,n7(e,o7(e,r)),Nle(e,r));u.jsDocParsingMode=a7;const d=_xe(e,r);fxe(e,t,u,d);const _=hle(u,o,r),h=r.clean?_.clean():_.build();return Ple(_,d),kZ(),e.exit(h)}function Nle(e,t){return o7(e,t)?(r,i)=>e.write(ZH(r,i,e.newLine,e)):void 0}function uxe(e,t,r,i){const{fileNames:o,options:s,projectReferences:l}=i,u=w3(s,void 0,e);u.jsDocParsingMode=a7;const d=u.getCurrentDirectory(),_=Gd(u.useCaseSensitiveFileNames());AP(u,A=>Os(A,d,_)),Lle(e,s,!1);const h={rootNames:o,options:s,projectReferences:l,host:u,configFileParsingDiagnostics:nE(i)},y=uO(h),E=aq(y,r,A=>e.write(A+e.newLine),Nle(e,s));return xq(e,y,void 0),t(y),e.exit(E)}function pxe(e,t,r,i){const{options:o,fileNames:s,projectReferences:l}=i;Lle(e,o,!1);const u=t7(o,e);u.jsDocParsingMode=a7;const d=cle({host:u,system:e,rootNames:s,options:o,configFileParsingDiagnostics:nE(i),projectReferences:l,reportDiagnostic:r,reportErrorSummary:Nle(e,o),afterProgramEmitAndDiagnostics:_=>{xq(e,_.getProgram(),void 0),t(_)}});return e.exit(d)}function fxe(e,t,r,i){mxe(e,r,!0),r.afterProgramEmitAndDiagnostics=o=>{xq(e,o.getProgram(),i),t(o)}}function mxe(e,t,r){const i=t.createProgram;t.createProgram=(o,s,l,u,d,_)=>(C.assert(o!==void 0||s===void 0&&!!u),s!==void 0&&Lle(e,s,r),i(o,s,l,u,d,_))}function hxe(e,t,r){r.jsDocParsingMode=a7,mxe(e,r,!1);const i=r.afterProgramCreate;r.afterProgramCreate=o=>{i(o),xq(e,o.getProgram(),void 0),t(o)}}function Mle(e,t){return $H(e,o7(e,t))}function gKe(e,t,r,i,o,s,l){const u=uq({configFileName:i.options.configFilePath,optionsToExtend:o,watchOptionsToExtend:s,system:e,reportDiagnostic:r,reportWatchStatus:Mle(e,i.options)});return hxe(e,t,u),u.configFileParsingResult=i,u.extendedConfigCache=l,fq(u)}function yKe(e,t,r,i,o,s){const l=pq({rootFiles:i,options:o,watchOptions:s,system:e,reportDiagnostic:r,reportWatchStatus:Mle(e,o)});return hxe(e,t,l),fq(l)}function _xe(e,t){if(e===Hc&&t.extendedDiagnostics)return h9(),vKe()}function vKe(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:r,clear:i};function t(o){const s=e?.get(o.name);s?s.type===2?s.value=Math.max(s.value,o.value):s.value+=o.value:(e??(e=new Map)).set(o.name,o)}function r(o){e?.forEach(o)}function i(){e=void 0}}function Ple(e,t){if(!t)return;if(!MZ()){Hc.write(f.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` `);return}const r=[];r.push({name:"Projects in scope",value:_O(e.getBuildOrder()).length,type:1}),i("SolutionBuilder::Projects built"),i("SolutionBuilder::Timestamps only updates"),i("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(s=>{s.name=`Aggregate ${s.name}`,r.push(s)}),m9((s,l)=>{Iq(s)&&r.push({name:`${o(s)} time`,value:l,type:0})}),PZ(),h9(),t.clear(),vxe(Hc,r);function i(s){const l=$Te(s);l&&r.push({name:o(s),value:l,type:1})}function o(s){return s.replace("SolutionBuilder::","")}}function gxe(e,t){return e===Hc&&(t.diagnostics||t.extendedDiagnostics)}function yxe(e,t){return e===Hc&&t.generateTrace}function Lle(e,t,r){gxe(e,t)&&h9(e),yxe(e,t)&&LZ(r?"build":"project",t.generateTrace,t.configFilePath)}function Iq(e){return po(e,"SolutionBuilder::")}function xq(e,t,r){var i;const o=t.getCompilerOptions();yxe(e,o)&&((i=xr)==null||i.stopTracing());let s;if(gxe(e,o)){s=[];const _=e.getMemoryUsage?e.getMemoryUsage():-1;u("Files",t.getSourceFiles().length);const h=uKe(t);if(o.extendedDiagnostics)for(const[P,k]of h.entries())u("Lines of "+P,k);else u("Lines",kn(h.values(),(P,k)=>P+k,0));u("Identifiers",t.getIdentifierCount()),u("Symbols",t.getSymbolCount()),u("Types",t.getTypeCount()),u("Instantiations",t.getInstantiationCount()),_>=0&&l({name:"Memory used",value:_,type:2},!0);const y=MZ(),E=y?xN("Program"):0,A=y?xN("Bind"):0,R=y?xN("Check"):0,N=y?xN("Emit"):0;if(o.extendedDiagnostics){const P=t.getRelationCacheSizes();u("Assignability cache size",P.assignable),u("Identity cache size",P.identity),u("Subtype cache size",P.subtype),u("Strict subtype cache size",P.strictSubtype),y&&m9((k,F)=>{Iq(k)||d(`${k} time`,F,!0)})}else y&&(d("I/O read",xN("I/O Read"),!0),d("I/O write",xN("I/O Write"),!0),d("Parse time",E,!0),d("Bind time",A,!0),d("Check time",R,!0),d("Emit time",N,!0));y&&d("Total time",E+A+R+N,!1),vxe(e,s),y?r?(m9(P=>{Iq(P)||ZTe(P)}),QTe(P=>{Iq(P)||e0e(P)})):PZ():e.write(f.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` `)}function l(_,h){s.push(_),h&&r?.addAggregateStatistic(_)}function u(_,h){l({name:_,value:h,type:1},!0)}function d(_,h,y){l({name:_,value:h,type:0},y)}}function vxe(e,t){let r=0,i=0;for(const o of t){o.name.length>r&&(r=o.name.length);const s=bxe(o);s.length>i&&(i=s.length)}for(const o of t)e.write(`${o.name}:`.padEnd(r+2)+bxe(o).toString().padStart(i)+e.newLine)}function bxe(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:C.assertNever(e.type)}}function bKe(e,t,r){const i=e.getCurrentDirectory(),o=ya(Qr(i,"tsconfig.json"));if(e.fileExists(o))t(Dl(f.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,Koe(r,e.newLine));const s=[e.newLine,...Aq(e,"Created a new tsconfig.json")];s.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(const l of s)e.write(l)}}function d_(e,t=!0){return{type:e,reportFallback:t}}var Txe=d_(void 0,!1),Sxe=d_(void 0,!1),CP=d_(void 0,!0);function kle(e,t){const r=Hd(e,"strictNullChecks");return{serializeTypeOfDeclaration:h,serializeReturnTypeForSignature:E,serializeTypeOfExpression:_,serializeTypeOfAccessor:d,tryReuseExistingTypeNode(ye,Ue){if(t.canReuseTypeNode(ye,Ue))return o(ye,Ue)}};function i(ye,Ue,Ge=Ue){return Ue===void 0?void 0:t.markNodeReuse(ye,Ue.flags&16?Ue:L.cloneNode(Ue),Ge??Ue)}function o(ye,Ue){const{finalizeBoundary:Ge,startRecoveryScope:We,hadError:at,markError:Wt}=t.createRecoveryBoundary(ye),cn=st(Ue,gn,Ci);if(!Ge())return;return ye.approximateLength+=Ue.end-Ue.pos,cn;function gn(zt){if(at())return zt;const Zr=We(),xi=uie(zt)?t.enterNewScope(ye,zt):void 0,Pi=so(zt);return xi?.(),at()?Ci(zt)&&!YI(zt)?(Zr(),t.serializeExistingTypeNode(ye,zt)):zt:Pi?t.markNodeReuse(ye,Pi,zt):void 0}function Kn(zt){const Zr=sM(zt);switch(Zr.kind){case 184:return Ni(Zr);case 187:return or(Zr);case 200:return gt(Zr);case 199:const xi=Zr;if(xi.operator===143)return en(xi)}return st(zt,gn,Ci)}function gt(zt){const Zr=Kn(zt.objectType);if(Zr!==void 0)return L.updateIndexedAccessTypeNode(zt,Zr,st(zt.indexType,gn,Ci))}function en(zt){C.assertEqual(zt.operator,143);const Zr=Kn(zt.type);if(Zr!==void 0)return L.updateTypeOperatorNode(zt,Zr)}function or(zt){const{introducesError:Zr,node:xi}=t.trackExistingEntityName(ye,zt.exprName);if(!Zr)return L.updateTypeQueryNode(zt,xi,Xn(zt.typeArguments,gn,Ci));const Pi=t.serializeTypeName(ye,zt.exprName,!0);if(Pi)return t.markNodeReuse(ye,Pi,zt.exprName)}function Ni(zt){if(t.canReuseTypeNode(ye,zt)){const{introducesError:Zr,node:xi}=t.trackExistingEntityName(ye,zt.typeName),Pi=Xn(zt.typeArguments,gn,Ci);if(Zr){const Pr=t.serializeTypeName(ye,zt.typeName,!1,Pi);if(Pr)return t.markNodeReuse(ye,Pr,zt.typeName)}else{const Pr=L.updateTypeReferenceNode(zt,xi,Pi);return t.markNodeReuse(ye,Pr,zt)}}}function so(zt){var Zr;if(r0(zt))return st(zt.type,gn,Ci);if(eoe(zt)||zt.kind===320)return L.createKeywordTypeNode(133);if(toe(zt))return L.createKeywordTypeNode(159);if(LD(zt))return L.createUnionTypeNode([st(zt.type,gn,Ci),L.createLiteralTypeNode(L.createNull())]);if(Wj(zt))return L.createUnionTypeNode([st(zt.type,gn,Ci),L.createKeywordTypeNode(157)]);if(M4(zt))return st(zt.type,gn);if(P4(zt))return L.createArrayTypeNode(st(zt.type,gn,Ci));if(N1(zt))return L.createTypeLiteralNode(Yt(zt.jsDocPropertyTags,At=>{const hn=st(Je(At.name)?At.name:At.name.right,gn,Je),dr=t.getJsDocPropertyOverride(ye,zt,At);return L.createPropertySignature(void 0,hn,At.isBracketed||At.typeExpression&&Wj(At.typeExpression.type)?L.createToken(58):void 0,dr||At.typeExpression&&st(At.typeExpression.type,gn,Ci)||L.createKeywordTypeNode(133))}));if(Bp(zt)&&Je(zt.typeName)&&zt.typeName.escapedText==="")return jr(L.createKeywordTypeNode(133),zt);if((my(zt)||Bp(zt))&&d6(zt))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,st(zt.typeArguments[0],gn,Ci))],st(zt.typeArguments[1],gn,Ci))]);if(kD(zt))if(II(zt)){let At;return L.createConstructorTypeNode(void 0,Xn(zt.typeParameters,gn,cl),Ei(zt.parameters,(hn,dr)=>hn.name&&Je(hn.name)&&hn.name.escapedText==="new"?(At=hn.type,void 0):L.createParameterDeclaration(void 0,Pr(hn),t.markNodeReuse(ye,L.createIdentifier(Mi(hn,dr)),hn),L.cloneNode(hn.questionToken),st(hn.type,gn,Ci),void 0)),st(At||zt.type,gn,Ci)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(Xn(zt.typeParameters,gn,cl),Yt(zt.parameters,(At,hn)=>L.createParameterDeclaration(void 0,Pr(At),t.markNodeReuse(ye,L.createIdentifier(Mi(At,hn)),At),L.cloneNode(At.questionToken),st(At.type,gn,Ci),void 0)),st(zt.type,gn,Ci)||L.createKeywordTypeNode(133));if(KM(zt))return t.canReuseTypeNode(ye,zt)||Wt(),zt;if(cl(zt)){const{node:At}=t.trackExistingEntityName(ye,zt.name);return L.updateTypeParameterDeclaration(zt,Xn(zt.modifiers,gn,Aa),At,st(zt.constraint,gn,Ci),st(zt.default,gn,Ci))}if(US(zt)){const At=gt(zt);return At||(Wt(),zt)}if(Bp(zt)){const At=Ni(zt);return At||(Wt(),zt)}if(sy(zt)){if(((Zr=zt.attributes)==null?void 0:Zr.token)===132)return Wt(),zt;if(!t.canReuseTypeNode(ye,zt))return t.serializeExistingTypeNode(ye,zt);const At=$e(zt,zt.argument.literal),hn=At===zt.argument.literal?i(ye,zt.argument.literal):At;return L.updateImportTypeNode(zt,hn===zt.argument.literal?i(ye,zt.argument):L.createLiteralTypeNode(hn),st(zt.attributes,gn,D1),st(zt.qualifier,gn,ku),Xn(zt.typeArguments,gn,Ci),zt.isTypeOf)}if(rd(zt)&&zt.name.kind===168&&!t.hasLateBindableName(zt)){if(!cy(zt))return xi(zt,gn);if(t.shouldRemoveDeclaration(ye,zt))return}if($o(zt)&&!zt.type||Mo(zt)&&!zt.type&&!zt.initializer||Iu(zt)&&!zt.type&&!zt.initializer||Zi(zt)&&!zt.type&&!zt.initializer){let At=xi(zt,gn);return At===zt&&(At=t.markNodeReuse(ye,L.cloneNode(zt),zt)),At.type=L.createKeywordTypeNode(133),Zi(zt)&&(At.modifiers=void 0),At}if(VS(zt)){const At=or(zt);return At||(Wt(),zt)}if(va(zt)&&Ns(zt.expression)){const{node:At,introducesError:hn}=t.trackExistingEntityName(ye,zt.expression);if(hn){const dr=t.serializeTypeOfExpression(ye,zt.expression);let ri;if(fv(dr))ri=dr.literal;else{const ai=t.evaluateEntityNameExpression(zt.expression),qi=typeof ai.value=="string"?L.createStringLiteral(ai.value,void 0):typeof ai.value=="number"?L.createNumericLiteral(ai.value,0):void 0;if(!qi)return r_(dr)&&t.trackComputedName(ye,zt.expression),zt;ri=qi}return ri.kind===11&&_p(ri.text,Va(e))?L.createIdentifier(ri.text):ri.kind===9&&!ri.text.startsWith("-")?ri:L.updateComputedPropertyName(zt,ri)}else return L.updateComputedPropertyName(zt,At)}if(YI(zt)){let At;if(Je(zt.parameterName)){const{node:hn,introducesError:dr}=t.trackExistingEntityName(ye,zt.parameterName);dr&&Wt(),At=hn}else At=L.cloneNode(zt.parameterName);return L.updateTypePredicateNode(zt,L.cloneNode(zt.assertsModifier),At,st(zt.type,gn,Ci))}if($I(zt)||Fu(zt)||A1(zt)){const At=xi(zt,gn),hn=t.markNodeReuse(ye,At===zt?L.cloneNode(zt):At,zt),dr=Za(hn);return Cr(hn,dr|(ye.flags&1024&&Fu(zt)?0:1)),hn}if(Oa(zt)&&ye.flags&268435456&&!zt.singleQuote){const At=L.cloneNode(zt);return At.singleQuote=!0,At}if(jS(zt)){const At=st(zt.checkType,gn,Ci),hn=t.enterNewScope(ye,zt),dr=st(zt.extendsType,gn,Ci),ri=st(zt.trueType,gn,Ci);hn();const ai=st(zt.falseType,gn,Ci);return L.updateConditionalTypeNode(zt,At,dr,ri,ai)}if(YT(zt)){if(zt.operator===158&&zt.type.kind===155){if(!t.canReuseTypeNode(ye,zt))return Wt(),zt}else if(zt.operator===143){const At=en(zt);return At||(Wt(),zt)}}return xi(zt,gn);function xi(At,hn){const dr=!ye.enclosingFile||ye.enclosingFile!==zn(At);return On(At,hn,void 0,dr?Pi:void 0)}function Pi(At,hn,dr,ri,ai){let qi=Xn(At,hn,dr,ri,ai);return qi&&(qi.pos!==-1||qi.end!==-1)&&(qi===At&&(qi=L.createNodeArray(At.slice(),At.hasTrailingComma)),mh(qi,-1,-1)),qi}function Pr(At){return At.dotDotDotToken||(At.type&&P4(At.type)?L.createToken(26):void 0)}function Mi(At,hn){return At.name&&Je(At.name)&&At.name.escapedText==="this"?"this":Pr(At)?"args":`arg${hn}`}function $e(At,hn){const dr=t.getModuleSpecifierOverride(ye,At,hn);return dr?jr(L.createStringLiteral(dr),hn):hn}}}function s(ye,Ue,Ge){if(!ye)return;let We;return(!Ge||Be(ye))&&t.canReuseTypeNode(Ue,ye)&&(We=o(Ue,ye),We!==void 0&&(We=Me(We,Ge,void 0,Ue))),We}function l(ye,Ue,Ge,We,at,Wt=at!==void 0){if(!ye||!t.canReuseTypeNodeAnnotation(Ue,Ge,ye,We,at)&&(!at||!t.canReuseTypeNodeAnnotation(Ue,Ge,ye,We,!1)))return;let cn;return(!at||Be(ye))&&(cn=s(ye,Ue,at)),cn!==void 0||!Wt?cn:(Ue.tracker.reportInferenceFallback(Ge),t.serializeExistingTypeNode(Ue,ye,at)??L.createKeywordTypeNode(133))}function u(ye,Ue,Ge,We){if(!ye)return;const at=s(ye,Ue,Ge);return at!==void 0?at:(Ue.tracker.reportInferenceFallback(ye),t.serializeExistingTypeNode(Ue,ye,Ge)??L.createKeywordTypeNode(133))}function d(ye,Ue,Ge){return N(ye,Ue,Ge)??Z(ye,t.getAllAccessorDeclarations(ye),Ge,Ue)}function _(ye,Ue,Ge,We){const at=oe(ye,Ue,!1,Ge,We);return at.type!==void 0?at.type:j(ye,Ue,at.reportFallback)}function h(ye,Ue,Ge){switch(ye.kind){case 170:case 342:return k(ye,Ue,Ge);case 261:return P(ye,Ue,Ge);case 172:case 349:case 173:return W(ye,Ue,Ge);case 209:return G(ye,Ue,Ge);case 278:return _(ye.expression,Ge,void 0,!0);case 212:case 213:case 227:return F(ye,Ue,Ge);case 304:case 305:return y(ye,Ue,Ge);default:C.assertNever(ye,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(ye.kind)}`)}}function y(ye,Ue,Ge){const We=Cc(ye);let at;if(We&&t.canReuseTypeNodeAnnotation(Ge,ye,We,Ue)&&(at=s(We,Ge)),!at&&ye.kind===304){const Wt=ye.initializer,cn=XS(Wt)?WD(Wt):Wt.kind===235||Wt.kind===217?Wt.type:void 0;cn&&!Gm(cn)&&t.canReuseTypeNodeAnnotation(Ge,ye,cn,Ue)&&(at=s(cn,Ge))}return at??G(ye,Ue,Ge,!1)}function E(ye,Ue,Ge){switch(ye.kind){case 178:return d(ye,Ue,Ge);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return lt(ye,Ue,Ge);default:C.assertNever(ye,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(ye.kind)}`)}}function A(ye){if(ye)return ye.kind===178?Ir(ye)&&Zy(ye)||Wp(ye):bV(ye)}function R(ye,Ue){let Ge=A(ye);return!Ge&&ye!==Ue.firstAccessor&&(Ge=A(Ue.firstAccessor)),!Ge&&Ue.secondAccessor&&ye!==Ue.secondAccessor&&(Ge=A(Ue.secondAccessor)),Ge}function N(ye,Ue,Ge){const We=t.getAllAccessorDeclarations(ye),at=R(ye,We);if(at&&!YI(at))return q(Ge,ye,()=>l(at,Ge,ye,Ue)??G(ye,Ue,Ge));if(We.getAccessor)return q(Ge,We.getAccessor,()=>lt(We.getAccessor,Ue,Ge))}function P(ye,Ue,Ge){var We;const at=Cc(ye);let Wt=CP;return at?Wt=d_(l(at,Ge,ye,Ue)):ye.initializer&&(((We=Ue.declarations)==null?void 0:We.length)===1||Ao(Ue.declarations,yi)===1)&&!t.isExpandoFunctionDeclaration(ye)&&!Ce(ye)&&(Wt=oe(ye.initializer,Ge,void 0,void 0,hne(ye))),Wt.type!==void 0?Wt.type:G(ye,Ue,Ge,Wt.reportFallback)}function k(ye,Ue,Ge){const We=ye.parent;if(We.kind===179)return d(We,void 0,Ge);const at=Cc(ye),Wt=t.requiresAddingImplicitUndefined(ye,Ue,Ge.enclosingDeclaration);let cn=CP;return at?cn=d_(l(at,Ge,ye,Ue,Wt)):Zi(ye)&&ye.initializer&&Je(ye.name)&&!Ce(ye)&&(cn=oe(ye.initializer,Ge,void 0,Wt)),cn.type!==void 0?cn.type:G(ye,Ue,Ge,cn.reportFallback)}function F(ye,Ue,Ge){const We=Cc(ye);let at;We&&(at=l(We,Ge,ye,Ue));const Wt=Ge.suppressReportInferenceFallback;Ge.suppressReportInferenceFallback=!0;const cn=at??G(ye,Ue,Ge,!1);return Ge.suppressReportInferenceFallback=Wt,cn}function W(ye,Ue,Ge){const We=Cc(ye),at=t.requiresAddingImplicitUndefined(ye,Ue,Ge.enclosingDeclaration);let Wt=CP;if(We)Wt=d_(l(We,Ge,ye,Ue,at));else{const cn=Mo(ye)?ye.initializer:void 0;if(cn&&!Ce(ye)){const gn=lk(ye);Wt=oe(cn,Ge,void 0,at,gn)}}return Wt.type!==void 0?Wt.type:G(ye,Ue,Ge,Wt.reportFallback)}function G(ye,Ue,Ge,We=!0){return We&&Ge.tracker.reportInferenceFallback(ye),Ge.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(Ge,ye,Ue)}function j(ye,Ue,Ge=!0,We){return C.assert(!We),Ge&&Ue.tracker.reportInferenceFallback(ye),Ue.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfExpression(Ue,ye)??L.createKeywordTypeNode(133)}function J(ye,Ue,Ge,We){return We&&Ue.tracker.reportInferenceFallback(ye),Ue.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(Ue,ye,Ge)??L.createKeywordTypeNode(133)}function Z(ye,Ue,Ge,We,at=!0){return ye.kind===178?lt(ye,We,Ge,at):(at&&Ge.tracker.reportInferenceFallback(ye),(Ue.getAccessor&<(Ue.getAccessor,We,Ge,at))??t.serializeTypeOfDeclaration(Ge,ye,We)??L.createKeywordTypeNode(133))}function q(ye,Ue,Ge){const We=t.enterNewScope(ye,Ue),at=Ge();return We(),at}function ve(ye,Ue,Ge,We){return Gm(Ue)?oe(ye,Ge,!0,We):d_(u(Ue,Ge,We))}function oe(ye,Ue,Ge=!1,We=!1,at=!1){switch(ye.kind){case 218:return XS(ye)?ve(ye.expression,WD(ye),Ue,We):oe(ye.expression,Ue,Ge,We);case 80:if(t.isUndefinedIdentifierExpression(ye))return d_(re());break;case 106:return d_(r?Me(L.createLiteralTypeNode(L.createNull()),We,ye,Ue):L.createKeywordTypeNode(133));case 220:case 219:return C.type(ye),q(Ue,ye,()=>K(ye,Ue));case 217:case 235:const Wt=ye;return ve(Wt.expression,Wt.type,Ue,We);case 225:const cn=ye;if(u4(cn))return Te(cn.operator===40?cn.operand:cn,cn.operand.kind===10?163:150,Ue,Ge||at,We);break;case 210:return ue(ye,Ue,Ge,We);case 211:return be(ye,Ue,Ge,We);case 232:return d_(j(ye,Ue,!0,We));case 229:if(!Ge&&!at)return d_(L.createKeywordTypeNode(154));break;default:let gn,Kn=ye;switch(ye.kind){case 9:gn=150;break;case 15:Kn=L.createStringLiteral(ye.text),gn=154;break;case 11:gn=154;break;case 10:gn=163;break;case 112:case 97:gn=136;break}if(gn)return Te(Kn,gn,Ue,Ge||at,We)}return CP}function K(ye,Ue){const Ge=lt(ye,void 0,Ue),We=Ne(ye.typeParameters,Ue),at=ye.parameters.map(Wt=>Y(Wt,Ue));return d_(L.createFunctionTypeNode(We,at,Ge))}function fe(ye,Ue,Ge){if(!Ge)return Ue.tracker.reportInferenceFallback(ye),!1;for(const We of ye.elements)if(We.kind===231)return Ue.tracker.reportInferenceFallback(We),!1;return!0}function ue(ye,Ue,Ge,We){if(!fe(ye,Ue,Ge))return We||id(Um(ye).parent)?Sxe:d_(j(ye,Ue,!1,We));const at=Ue.noInferenceFallback;Ue.noInferenceFallback=!0;const Wt=[];for(const gn of ye.elements)if(C.assert(gn.kind!==231),gn.kind===233)Wt.push(re());else{const Kn=oe(gn,Ue,Ge),gt=Kn.type!==void 0?Kn.type:j(gn,Ue,Kn.reportFallback);Wt.push(gt)}const cn=L.createTupleTypeNode(Wt);return cn.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},Ue.noInferenceFallback=at,Txe}function me(ye,Ue){let Ge=!0;for(const We of ye.properties){if(We.flags&262144){Ge=!1;break}if(We.kind===305||We.kind===306)Ue.tracker.reportInferenceFallback(We),Ge=!1;else if(We.name.flags&262144){Ge=!1;break}else if(We.name.kind===81)Ge=!1;else if(We.name.kind===168){const at=We.name.expression;!u4(at,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(at)&&(Ue.tracker.reportInferenceFallback(We.name),Ge=!1)}}return Ge}function be(ye,Ue,Ge,We){if(!me(ye,Ue))return We||id(Um(ye).parent)?Sxe:d_(j(ye,Ue,!1,We));const at=Ue.noInferenceFallback;Ue.noInferenceFallback=!0;const Wt=[],cn=Ue.flags;Ue.flags|=4194304;for(const Kn of ye.properties){C.assert(!Jd(Kn)&&!Mg(Kn));const gt=Kn.name;let en;switch(Kn.kind){case 175:en=q(Ue,Kn,()=>Xe(Kn,gt,Ue,Ge));break;case 304:en=De(Kn,gt,Ue,Ge);break;case 179:case 178:en=Ee(Kn,gt,Ue);break}en&&(Nc(en,Kn),Wt.push(en))}Ue.flags=cn;const gn=L.createTypeLiteralNode(Wt);return Ue.flags&1024||Cr(gn,1),Ue.noInferenceFallback=at,Txe}function De(ye,Ue,Ge,We){const at=We?[L.createModifier(148)]:[],Wt=oe(ye.initializer,Ge,We),cn=Wt.type!==void 0?Wt.type:G(ye,void 0,Ge,Wt.reportFallback);return L.createPropertySignature(at,i(Ge,Ue),void 0,cn)}function Y(ye,Ue){return L.updateParameterDeclaration(ye,void 0,i(Ue,ye.dotDotDotToken),t.serializeNameOfParameter(Ue,ye),t.isOptionalParameter(ye)?L.createToken(58):void 0,k(ye,void 0,Ue),void 0)}function Ne(ye,Ue){return ye?.map(Ge=>{var We;const{node:at}=t.trackExistingEntityName(Ue,Ge.name);return L.updateTypeParameterDeclaration(Ge,(We=Ge.modifiers)==null?void 0:We.map(Wt=>i(Ue,Wt)),at,u(Ge.constraint,Ue),u(Ge.default,Ue))})}function Xe(ye,Ue,Ge,We){const at=lt(ye,void 0,Ge),Wt=Ne(ye.typeParameters,Ge),cn=ye.parameters.map(gn=>Y(gn,Ge));return We?L.createPropertySignature([L.createModifier(148)],i(Ge,Ue),i(Ge,ye.questionToken),L.createFunctionTypeNode(Wt,cn,at)):(Je(Ue)&&Ue.escapedText==="new"&&(Ue=L.createStringLiteral("new")),L.createMethodSignature([],i(Ge,Ue),i(Ge,ye.questionToken),Wt,cn,at))}function Ee(ye,Ue,Ge){const We=t.getAllAccessorDeclarations(ye),at=We.getAccessor&&A(We.getAccessor),Wt=We.setAccessor&&A(We.setAccessor);if(at!==void 0&&Wt!==void 0)return q(Ge,ye,()=>{const cn=ye.parameters.map(gn=>Y(gn,Ge));return _g(ye)?L.updateGetAccessorDeclaration(ye,[],i(Ge,Ue),cn,u(at,Ge),void 0):L.updateSetAccessorDeclaration(ye,[],i(Ge,Ue),cn,void 0)});if(We.firstAccessor===ye){const gn=(at?q(Ge,We.getAccessor,()=>u(at,Ge)):Wt?q(Ge,We.setAccessor,()=>u(Wt,Ge)):void 0)??Z(ye,We,Ge,void 0);return L.createPropertySignature(We.setAccessor===void 0?[L.createModifier(148)]:[],i(Ge,Ue),void 0,gn)}}function re(){return r?L.createKeywordTypeNode(157):L.createKeywordTypeNode(133)}function Te(ye,Ue,Ge,We,at){let Wt;return We?(ye.kind===225&&ye.operator===40&&(Wt=L.createLiteralTypeNode(i(Ge,ye.operand))),Wt=L.createLiteralTypeNode(i(Ge,ye))):Wt=L.createKeywordTypeNode(Ue),d_(Me(Wt,at,ye,Ge))}function Me(ye,Ue,Ge,We){const at=Ge&&Um(Ge).parent,Wt=at&&id(at)&&BI(at);return!r||!(Ue||Wt)?ye:(Be(ye)||We.tracker.reportInferenceFallback(ye),pv(ye)?L.createUnionTypeNode([...ye.types,L.createKeywordTypeNode(157)]):L.createUnionTypeNode([ye,L.createKeywordTypeNode(157)]))}function Be(ye){return!r||rp(ye.kind)||ye.kind===202||ye.kind===185||ye.kind===186||ye.kind===189||ye.kind===190||ye.kind===188||ye.kind===204||ye.kind===198?!0:ye.kind===197?Be(ye.type):ye.kind===193||ye.kind===194?ye.types.every(Be):!1}function lt(ye,Ue,Ge,We=!0){let at=CP;const Wt=II(ye)?Cc(ye.parameters[0]):Wp(ye);return Wt?at=d_(l(Wt,Ge,ye,Ue)):p1(ye)&&(at=ce(ye,Ge)),at.type!==void 0?at.type:J(ye,Ge,Ue,We&&at.reportFallback&&!Wt)}function ce(ye,Ue){let Ge;if(ye&&!zl(ye.body)){if(pc(ye)&3)return CP;const at=ye.body;at&&ta(at)?Ab(at,Wt=>{if(Wt.parent!==at)return Ge=void 0,!0;if(!Ge)Ge=Wt.expression;else return Ge=void 0,!0}):Ge=at}if(Ge)if(Ce(Ge)){const We=XS(Ge)?WD(Ge):DD(Ge)||R4(Ge)?Ge.type:void 0;if(We&&!Gm(We))return d_(s(We,Ue))}else return oe(Ge,Ue);return CP}function Ce(ye){return Dn(ye.parent,Ue=>ea(Ue)||!Ls(Ue)&&!!Cc(Ue)||a_(Ue)||MD(Ue))}}var qb={};x(qb,{NameValidationResult:()=>Cxe,discoverTypings:()=>EKe,isTypingUpToDate:()=>Rxe,loadSafeList:()=>TKe,loadTypesMap:()=>SKe,nonRelativeModuleNameForTypingCache:()=>Dxe,renderPackageNameValidationFailure:()=>IKe,validatePackageName:()=>AKe});var s7="action::set",l7="action::invalidate",c7="action::packageInstalled",Rq="event::typesRegistry",Dq="event::beginInstallTypes",Cq="event::endInstallTypes",wle="event::initializationFailed",bO="action::watchTypingLocations",Nq;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(Nq||(Nq={}));function Exe(e){return Hc.args.includes(e)}function Axe(e){const t=Hc.args.indexOf(e);return t>=0&&te.readFile(i));return new Map(Object.entries(r.config))}function SKe(e,t){var r;const i=Bw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function EKe(e,t,r,i,o,s,l,u,d,_){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const h=new Map;r=Ei(r,G=>{const j=ya(G);if(xg(j))return j});const y=[];l.include&&k(l.include,"Explicitly included types");const E=l.exclude||[];if(!_.types){const G=new Set(r.map(ci));G.add(i),G.forEach(j=>{F(j,"bower.json","bower_components",y),F(j,"package.json","node_modules",y)})}if(l.disableFilenameBasedTypeAcquisition||W(r),u){const G=fS(u.map(Dxe),_S,Bd);k(G,"Inferred typings from unresolved imports")}for(const G of E)h.delete(G)&&t&&t(`Typing for ${G} is in exclude list, will be ignored.`);s.forEach((G,j)=>{const J=d.get(j);h.get(j)===!1&&J!==void 0&&Rxe(G,J)&&h.set(j,G.typingLocation)});const A=[],R=[];h.forEach((G,j)=>{G?R.push(G):A.push(j)});const N={cachedTypingPaths:R,newTypingNames:A,filesToWatch:y};return t&&t(`Finished typings discovery:${f0(N)}`),N;function P(G){h.has(G)||h.set(G,!1)}function k(G,j){t&&t(`${j}: ${JSON.stringify(G)}`),qe(G,P)}function F(G,j,J,Z){const q=Qr(G,j);let ve,oe;e.fileExists(q)&&(Z.push(q),ve=Bw(q,me=>e.readFile(me)).config,oe=fi([ve.dependencies,ve.devDependencies,ve.optionalDependencies,ve.peerDependencies],Bh),k(oe,`Typing names in '${q}' dependencies`));const K=Qr(G,J);if(Z.push(K),!e.directoryExists(K))return;const fe=[],ue=oe?oe.map(me=>Qr(K,me,j)):e.readDirectory(K,[".json"],void 0,void 0,3).filter(me=>{if(Dc(me)!==j)return!1;const be=Vd(ya(me)),De=be[be.length-3][0]==="@";return De&&ab(be[be.length-4])===J||!De&&ab(be[be.length-3])===J});t&&t(`Searching for typing names in ${K}; all files: ${JSON.stringify(ue)}`);for(const me of ue){const be=ya(me),Y=Bw(be,Xe=>e.readFile(Xe)).config;if(!Y.name)continue;const Ne=Y.types||Y.typings;if(Ne){const Xe=bo(Ne,ci(be));e.fileExists(Xe)?(t&&t(` Package '${Y.name}' provides its own types.`),h.set(Y.name,Xe)):t&&t(` Package '${Y.name}' provides its own types but they are missing.`)}else fe.push(Y.name)}k(fe," Found package names")}function W(G){const j=Ei(G,Z=>{if(!xg(Z))return;const q=Au(ab(Dc(Z))),ve=l9(q);return o.get(ve)});j.length&&k(j,"Inferred typings from file names"),vt(G,Z=>xl(Z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),P("react"))}}var Cxe=(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))(Cxe||{}),Nxe=214;function AKe(e){return Ole(e,!0)}function Ole(e,t){if(!e)return 1;if(e.length>Nxe)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=Ole(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=Ole(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function IKe(e,t){return typeof e=="object"?Mxe(t,e.result,e.name,e.isScopeName):Mxe(t,e,t,!1)}function Mxe(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 ${Nxe} 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 C.fail();default:C.assertNever(t)}}var d7;(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})(d7||(d7={}));var Wle=(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))(Wle||{}),Fle=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(Fle||{}),zle=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(zle||{}),Dm={},Ble=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(Ble||{}),Mq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Mq||{}),Pq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Pq||{}),Gle=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(Gle||{}),Vle=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(Vle||{}),jle=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(jle||{}),Lq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Lq||{});function u7(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,indentSwitchCase:!0}}var Pxe=u7(` `),p7=(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))(p7||{}),Ule=(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))(Ule||{}),Hle=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(Hle||{}),qle=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(qle||{}),Jle=(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))(Jle||{}),Kle=(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))(Kle||{}),Xle=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(Xle||{}),Yle=(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))(Yle||{}),$le=(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))($le||{}),kq=(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))(kq||{}),vd=mg(99,!0),Qle=(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))(Qle||{});function f7(e){switch(e.kind){case 261:return Ir(e)&&eG(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return e.name===void 0?3:2;case 307:case 264:return 3;case 268:return Tu(e)||yy(e)===1?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function G1(e){e=Jq(e);const t=e.parent;return e.kind===308?1:dl(t)||lu(t)||hy(t)||xu(t)||Jm(t)||Gc(t)&&e===t.name?7:m7(e)?xKe(e):w_(e)?f7(t):ku(e)&&Dn(e,Np(ZM,mI,i0))?7:NKe(e)?2:RKe(e)?4:cl(t)?(C.assert(xm(t.parent)),2):fv(t)?3:1}function xKe(e){const t=e.kind===167?e:Wu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===272?7:4}function m7(e){if(!e.parent)return!1;for(;e.parent.kind===167;)e=e.parent;return s1(e.parent)&&e.parent.moduleReference===e}function RKe(e){return DKe(e)||CKe(e)}function DKe(e){let t=e,r=!0;if(t.parent.kind===167){for(;t.parent&&t.parent.kind===167;)t=t.parent;r=t.right===e}return t.parent.kind===184&&!r}function CKe(e){let t=e,r=!0;if(t.parent.kind===212){for(;t.parent&&t.parent.kind===212;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===234&&t.parent.parent.kind===299){const i=t.parent.parent.parent;return i.kind===264&&t.parent.parent.token===119||i.kind===265&&t.parent.parent.token===96}return!1}function NKe(e){switch(vM(e)&&(e=e.parent),e.kind){case 110:return!k_(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return Kh(e.parent)}return!1}function wq(e,t=!1,r=!1){return TO(e,ea,Wq,t,r)}function MP(e,t=!1,r=!1){return TO(e,HS,Wq,t,r)}function Oq(e,t=!1,r=!1){return TO(e,Uh,Wq,t,r)}function Zle(e,t=!1,r=!1){return TO(e,$T,MKe,t,r)}function ece(e,t=!1,r=!1){return TO(e,Bc,Wq,t,r)}function tce(e,t=!1,r=!1){return TO(e,au,PKe,t,r)}function Wq(e){return e.expression}function MKe(e){return e.tag}function PKe(e){return e.tagName}function TO(e,t,r,i,o){let s=i?LKe(e):h7(e);return o&&(s=Kl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function h7(e){return rC(e)?e.parent:e}function LKe(e){return rC(e)||Gq(e)?e.parent:e}function _7(e,t){for(;e;){if(e.kind===257&&e.label.escapedText===t)return e.label;e=e.parent}}function SO(e,t){return qr(e.expression)?e.expression.name.text===t:!1}function EO(e){var t;return Je(e)&&((t=ni(e.parent,BN))==null?void 0:t.label)===e}function Fq(e){var t;return Je(e)&&((t=ni(e.parent,Fb))==null?void 0:t.label)===e}function zq(e){return Fq(e)||EO(e)}function Bq(e){var t;return((t=ni(e.parent,KR))==null?void 0:t.tagName)===e}function nce(e){var t;return((t=ni(e.parent,Wu))==null?void 0:t.right)===e}function rC(e){var t;return((t=ni(e.parent,qr))==null?void 0:t.name)===e}function Gq(e){var t;return((t=ni(e.parent,zs))==null?void 0:t.argumentExpression)===e}function Vq(e){var t;return((t=ni(e.parent,mc))==null?void 0:t.name)===e}function jq(e){var t;return Je(e)&&((t=ni(e.parent,$o))==null?void 0:t.name)===e}function g7(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return wo(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return e.parent.parent.kind===200;default:return!1}}function rce(e){return BT(e.parent.parent)&&tM(e.parent.parent)===e}function V1(e){for(Tm(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function rE(e){switch(e.kind){case 308:return Vc(e)?"module":"script";case 268:return"module";case 264:case 232:return"class";case 265:return"interface";case 266:case 339:case 347:return"type";case 267:return"enum";case 261:return t(e);case 209:return t(Yh(e));case 220:case 263:case 219:return"function";case 178:return"getter";case 179:return"setter";case 175:case 174:return"method";case 304:const{initializer:r}=e;return $o(r)?"method":"property";case 173:case 172:case 305:case 306:return"property";case 182:return"index";case 181:return"construct";case 180:return"call";case 177:case 176:return"constructor";case 169:return"type parameter";case 307:return"enum member";case 170:return di(e,31)?"property":"parameter";case 272:case 277:case 282:case 275:case 281:return"alias";case 227:const i=lc(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=rE(o);return l===""?"const":l;case 3:return qs(o)?"method":"property";case 4:return"property";case 5:return qs(o)?"method":"property";case 6:return"local class";default:return""}case 80:return Jm(e.parent)?"alias":"";case 278:const s=rE(e.expression);return s===""?"const":s;default:return""}function t(r){return ZR(r)?"const":XF(r)?"let":"var"}}function iC(e){switch(e.kind){case 110:return!0;case 80:return vV(e)&&e.parent.kind===170;default:return!1}}var kKe=/^\/\/\/\s*=r}function PP(e,t,r){return v7(e.pos,e.end,t,r)}function y7(e,t,r,i){return v7(e.getStart(t),e.end,r,i)}function v7(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function b7(e){const t=mn(e.parent.getChildren(),r=>OD(r)&&ip(r,e));return C.assert(!t||jn(t.getChildren(),e)),t}function Lxe(e){return e.kind===90}function wKe(e){return e.kind===86}function OKe(e){return e.kind===100}function WKe(e){if(rd(e))return e.name;if(Mc(e)){const t=e.modifiers&&mn(e.modifiers,Lxe);if(t)return t}if(fc(e)){const t=mn(e.getChildren(),wKe);if(t)return t}}function FKe(e){if(rd(e))return e.name;if(rc(e)){const t=mn(e.modifiers,Lxe);if(t)return t}if(qs(e)){const t=mn(e.getChildren(),OKe);if(t)return t}}function zKe(e){let t;return Dn(e,r=>(Ci(r)&&(t=r),!Wu(r.parent)&&!Ci(r.parent)&&!bS(r.parent))),t}function T7(e,t){if(e.flags&16777216)return;const r=W7(e,t);if(r)return r;const i=zKe(e);return i&&t.getTypeAtLocation(i)}function BKe(e,t){if(!t)switch(e.kind){case 264:case 232:return WKe(e);case 263:case 219:return FKe(e);case 177:return e}if(rd(e))return e.name}function kxe(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(o_(e.importClause.namedBindings)){const r=dg(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(Ng(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function wxe(e,t){if(e.exportClause){if($f(e.exportClause))return dg(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(F_(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function GKe(e){if(e.types.length===1)return e.types[0].expression}function Oxe(e,t){const{parent:r}=e;if(Aa(e)&&(t||e.kind!==90)?Rm(r)&&jn(r.modifiers,e):e.kind===86?Mc(r)||fc(e):e.kind===100?rc(r)||qs(e):e.kind===120?yd(r):e.kind===94?t0(r):e.kind===156?Im(r):e.kind===145||e.kind===144?mc(r):e.kind===102?Gc(r):e.kind===139?Xf(r):e.kind===153&&bp(r)){const i=BKe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&gd(r)&&r.declarations.length===1){const i=r.declarations[0];if(Je(i.name))return i.name}if(e.kind===156){if(Jm(r)&&r.isTypeOnly){const i=kxe(r.parent,t);if(i)return i}if(hc(r)&&r.isTypeOnly){const i=wxe(r,t);if(i)return i}}if(e.kind===130){if(xu(r)&&r.propertyName||lu(r)&&r.propertyName||Ng(r)||F_(r))return r.name;if(hc(r)&&r.exportClause&&F_(r.exportClause))return r.exportClause.name}if(e.kind===102&&Tl(r)){const i=kxe(r,t);if(i)return i}if(e.kind===95){if(hc(r)){const i=wxe(r,t);if(i)return i}if(dl(r))return Kl(r.expression)}if(e.kind===149&&hy(r))return r.expression;if(e.kind===161&&(Tl(r)||hc(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Gp(r)&&r.token===e.kind){const i=GKe(r);if(i)return i}if(e.kind===96){if(cl(r)&&r.constraint&&Bp(r.constraint))return r.constraint.typeName;if(jS(r)&&Bp(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&S1(r))return r.typeParameter.name;if(e.kind===103&&cl(r)&&A1(r.parent))return r.name;if(e.kind===143&&YT(r)&&r.operator===143&&Bp(r.type))return r.type.typeName;if(e.kind===148&&YT(r)&&r.operator===148&&Tw(r.type)&&Bp(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&HS(r)||e.kind===116&&ZI(r)||e.kind===114&&RD(r)||e.kind===135&&Wb(r)||e.kind===127&&Sw(r)||e.kind===91&&jie(r))&&r.expression)return Kl(r.expression);if((e.kind===103||e.kind===104)&&Nr(r)&&r.operatorToken===e)return Kl(r.right);if(e.kind===130&&DD(r)&&Bp(r.type))return r.type.typeName;if(e.kind===103&&C4(r)||e.kind===165&&Ew(r))return Kl(r.expression)}return e}function Jq(e){return Oxe(e,!1)}function S7(e){return Oxe(e,!0)}function sp(e,t){return aC(e,t,r=>Xh(r)||rp(r.kind)||Qi(r))}function aC(e,t,r){return Wxe(e,t,!1,r,!1)}function zi(e,t){return Wxe(e,t,!0,void 0,!1)}function Wxe(e,t,r,i,o){let s=e,l;e:for(;;){const d=s.getChildren(e),_=tI(d,t,(h,y)=>y,(h,y)=>{const E=d[h].getEnd();if(Et?1:u(d[h],A,E)?d[h-1]&&u(d[h-1])?1:0:i&&A===t&&d[h-1]&&d[h-1].getEnd()===t&&u(d[h-1])?1:-1});if(l)return l;if(_>=0&&d[_]){s=d[_];continue e}return s}function u(d,_,h){if(h??(h=d.getEnd()),ht))return!1;if(tr.getStart(e)&&t(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&pce(s,r)?i(s):void 0)}}function jc(e,t,r,i){const o=s(r||t);return C.assert(!(o&&E7(o))),o;function s(l){if(Fxe(l)&&l.kind!==1)return l;const u=l.getChildren(t),d=tI(u,e,(h,y)=>y,(h,y)=>e=u[h-1].end?0:1:-1);if(d>=0&&u[d]){const h=u[d];if(e=e||!pce(h,t)||E7(h)){const A=lce(u,d,t,l.kind);return A?!i&&LF(A)&&A.getChildren(t).length?s(A):sce(A,t):void 0}else return s(h)}C.assert(r!==void 0||l.kind===308||l.kind===1||LF(l));const _=lce(u,u.length,t,l.kind);return _&&sce(_,t)}}function Fxe(e){return dI(e)&&!E7(e)}function sce(e,t){if(Fxe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=lce(r,r.length,t,e.kind);return i&&sce(i,t)}function lce(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(E7(s))o===0&&(i===12||i===286)&&C.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(pce(e[o],r))return e[o]}}function gx(e,t,r=jc(t,e)){if(r&&sG(r)){const i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function dce(e,t){const r=zi(e,t);return!!(HI(r)||r.kind===19&&MD(r.parent)&&a_(r.parent.parent)||r.kind===30&&au(r.parent)&&a_(r.parent.parent))}function A7(e,t){function r(i){for(;i;)if(i.kind>=286&&i.kind<=295||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===285){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(zi(e,t))}function I7(e,t,r){const i=_a(e.kind),o=_a(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)!!s.typeParameters&&s.typeParameters.length>=t)}function Yq(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=jc(r.getFullStart(),t),r&&r.kind===29&&(r=jc(r.getFullStart(),t)),!r||!Je(r))return;if(!i)return w_(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=I7(r,19,t),!r)return;break;case 22:if(r=I7(r,21,t),!r)return;break;case 24:if(r=I7(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Ci(r))break;return}r=jc(r.getFullStart(),t)}}function _v(e,t,r){return Lc.getRangeOfEnclosingComment(e,t,void 0,r)}function uce(e,t){const r=zi(e,t);return!!Dn(r,gh)}function pce(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function kP(e,t=0){const r=[],i=id(e)?X9(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||nc(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===278&&r.push("export"),r.length>0?r.join(","):""}function fce(e){if(e.kind===184||e.kind===214)return e.typeArguments;if($o(e)||e.kind===264||e.kind===265)return e.typeParameters}function x7(e){return e===2||e===3}function $q(e){return!!(e===11||e===14||hb(e))}function zxe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function mce(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(zxe(r,t[0],t[1])||zxe(r,t[1],t[0]))}function RO(e,t,r){return hb(e.kind)&&e.getStart(r){const r=ls(t);return!e[r]&&(e[r]=!0)}}function yx(e){return e.getText(0,e.getLength())}function CO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function yce(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function oJ(e){return!!e.module||Va(e)>=2||!!e.noEmit}function m0(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:oa(t,t.readFile),useCaseSensitiveFileNames:oa(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:oa(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:oa(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:oa(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:r=>e.getRedirectFromSourceFile(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:oa(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:r=>e.getDefaultResolutionModeForFile(r),getModeForResolutionAtIndex:(r,i)=>e.getModeForResolutionAtIndex(r,i)}}function aJ(e,t){return{...m0(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function N7(e){return e===2||e>=3&&e<=99||e===100}function Jb(e,t,r,i,o){return L.createImportDeclaration(void 0,e||t?L.createImportClause(o?156:void 0,e,t&&t.length?L.createNamedImports(t):void 0):void 0,typeof r=="string"?OP(r,i):r,void 0)}function OP(e,t){return L.createStringLiteral(e,t===0)}var vce=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(vce||{});function sJ(e,t){return u6(e,t)?1:0}function Up(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=Tg(e)&&e.imports&&mn(e.imports,i=>Oa(i)&&!Fs(i.parent));return r?sJ(r,e):1}}function lJ(e){switch(e){case 0:return"'";case 1:return'"';default:return C.assertNever(e)}}function cJ(e){const t=M7(e);return t===void 0?void 0:Vi(t)}function M7(e){return e.escapedName!=="default"?e.escapedName:Ln(e.declarations,t=>{const r=wo(t);return r&&r.kind===80?r.escapedText:void 0})}function P7(e){return ds(e)&&(hy(e.parent)||Tl(e.parent)||l_(e.parent)||np(e.parent,!1)&&e.parent.arguments[0]===e||tp(e.parent)&&e.parent.arguments[0]===e)}function MO(e){return qa(e)&&hf(e.parent)&&Je(e.name)&&!e.propertyName}function L7(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function PO(e,t,r){if(e)for(;e.parent;){if(Xi(e.parent)||!jKe(r,e.parent,t))return e;e=e.parent}}function jKe(e,t,r){return q9(e,t.getStart(r))&&t.getEnd()<=Ml(e)}function lC(e,t){return Rm(e)?mn(e.modifiers,r=>r.kind===t):void 0}function dJ(e,t,r,i,o){var s;const u=(No(r)?r[0]:r).kind===244?vk:vI,d=Un(t.statements,u),{comparer:_,isSorted:h}=T0.getOrganizeImportsStringComparerWithDetection(d,o),y=No(r)?Cp(r,(E,A)=>T0.compareImportsOrRequireStatements(E,A,_)):[r];if(!d?.length){if(Tg(t))e.insertNodesAtTopOfFile(t,y,i);else for(const E of y)e.insertStatementsInNewFile(t.fileName,[E],(s=bl(E))==null?void 0:s.getSourceFile());return}if(C.assert(Tg(t)),d&&h)for(const E of y){const A=T0.getImportDeclarationInsertionIndex(d,E,_);if(A===0){const R=d[0]===t.statements[0]?{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,R)}else{const R=d[A-1];e.insertNodeAfter(t,R,E)}}else{const E=tl(d);E?e.insertNodesAfter(t,E,y):e.insertNodesAtTopOfFile(t,y,i)}}function uJ(e,t){return C.assert(e.isTypeOnly),ma(e.getChildAt(0,t),Gxe)}function cC(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function pJ(e,t,r){return(r?_S:lb)(e.fileName,t.fileName)&&cC(e.textSpan,t.textSpan)}function fJ(e){return(t,r)=>pJ(t,r,e)}function mJ(e,t){if(e){for(let r=0;rZi(r)?!0:qa(r)||hf(r)||mv(r)?!1:"quit")}var Tce=new Map;function UKe(e){return e=e||JN,Tce.has(e)||Tce.set(e,HKe(e)),Tce.get(e)}function HKe(e){const t=e*10;let r,i,o,s;y();const l=E=>d(E,17);return{displayParts:()=>{const E=r.length&&r[r.length-1].text;return s>t&&E&&E!=="..."&&(pg(E.charCodeAt(E.length-1))||r.push(Tp(" ",16)),r.push(Tp("...",15))),r},writeKeyword:E=>d(E,5),writeOperator:E=>d(E,12),writePunctuation:E=>d(E,15),writeTrailingSemicolon:E=>d(E,15),writeSpace:E=>d(E,16),writeStringLiteral:E=>d(E,8),writeParameter:E=>d(E,13),writeProperty:E=>d(E,14),writeLiteral:E=>d(E,8),writeSymbol:_,writeLine:h,write:l,writeComment:l,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ha,getIndent:()=>o,increaseIndent:()=>{o++},decreaseIndent:()=>{o--},clear:y};function u(){if(!(s>t)&&i){const E=S6(o);E&&(s+=E.length,r.push(Tp(E,16))),i=!1}}function d(E,A){s>t||(u(),s+=E.length,r.push(Tp(E,A)))}function _(E,A){s>t||(u(),s+=E.length,r.push(qKe(E,A)))}function h(){s>t||(s+=1,r.push(dC()),i=!0)}function y(){r=[],i=!0,o=0,s=0}}function qKe(e,t){return Tp(e,r(t));function r(i){const o=i.flags;return o&3?_J(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 Tp(e,t){return{text:e,kind:p7[t]}}function Vl(){return Tp(" ",16)}function Hp(e){return Tp(_a(e),5)}function uu(e){return Tp(_a(e),15)}function FP(e){return Tp(_a(e),12)}function Sce(e){return Tp(e,13)}function Ece(e){return Tp(e,14)}function gJ(e){const t=XE(e);return t===void 0?bf(e):Hp(t)}function bf(e){return Tp(e,17)}function Ace(e){return Tp(e,0)}function Ice(e){return Tp(e,18)}function xce(e){return Tp(e,24)}function JKe(e,t){return{text:e,kind:p7[23],target:{fileName:zn(t).fileName,textSpan:Vu(t)}}}function Vxe(e){return Tp(e,22)}function Rce(e,t){var r;const i=Qie(e)?"link":Zie(e)?"linkcode":"linkplain",o=[Vxe(`{@${i} `)];if(!e.name)e.text&&o.push(xce(e.text));else{const s=t?.getSymbolAtLocation(e.name),l=s&&t?bJ(s,t):void 0,u=XKe(e.text),d=Rl(e.name)+e.text.slice(0,u),_=KKe(e.text.slice(u)),h=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(h)o.push(JKe(d,h)),_&&o.push(xce(_));else{const y=u===0||e.text.charCodeAt(u)===124&&d.charCodeAt(d.length-1)!==32?" ":"";o.push(xce(d+y+_))}}return o.push(Vxe("}")),o}function KKe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}var YKe=` `;function by(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||YKe}function dC(){return Tp(` `,6)}function Kb(e,t){const r=UKe(t);try{return e(r),r.displayParts()}finally{r.clear()}}function LO(e,t,r,i=0,o,s,l){return Kb(u=>{e.writeType(t,r,i|1024|16384,u,o,s,l)},o)}function zP(e,t,r,i,o=0){return Kb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function yJ(e,t,r,i=0,o,s,l){return i|=25632,Kb(u=>{e.writeSignature(t,r,i,void 0,u,o,s,l)},o)}function Dce(e){return!!e.parent&&_b(e.parent)&&e.parent.propertyName===e}function vJ(e,t){return Q6(e,t.getScriptKind&&t.getScriptKind(e))}function bJ(e,t){let r=e;for(;$Ke(r)||gg(r)&&r.links.target;)gg(r)&&r.links.target?r=r.links.target:r=Rd(r,t);return r}function $Ke(e){return(e.flags&2097152)!==0}function Cce(e,t){return Ta(Rd(e,t))}function Nce(e,t){for(;pg(e.charCodeAt(t));)t+=1;return t}function w7(e,t){for(;t>-1&&jh(e.charCodeAt(t));)t-=1;return t+1}function j1(e,t){const r=e.getSourceFile(),i=r.text;QKe(e,i)?uC(e,t,r):wO(e,t,r),BP(e,t,r)}function QKe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o=0),s}function uC(e,t,r,i,o){P2(r.text,e.pos,Mce(t,r,i,o,kb))}function BP(e,t,r,i,o){L2(r.text,e.end,Mce(t,r,i,o,VM))}function wO(e,t,r,i,o){L2(r.text,e.pos,Mce(t,r,i,o,kb))}function Mce(e,t,r,i,o){return(s,l,u,d)=>{u===3?(s+=2,l-=2):s+=2,o(e,r||u,t.text.slice(s,l),i!==void 0?i:d)}}function ZKe(e,t){if(po(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function O7(e){return Nr(e)&&e.operatorToken.kind===28||za(e)||(DD(e)||CD(e))&&za(e.expression)}function W7(e,t,r){const i=Um(e.parent);switch(i.kind){case 215:return t.getContextualType(i,r);case 227:{const{left:o,operatorToken:s,right:l}=i;return F7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 297:return SJ(i,t);default:return t.getContextualType(e,r)}}function GP(e,t,r){const i=Up(e,t),o=JSON.stringify(r);return i===0?`'${Sm(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function F7(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function Pce(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function TJ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function SJ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var EJ="anonymous function";function VP(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,8,{trackSymbol:(d,_,h)=>(s=s&&o.isSymbolAccessible(d,_,h,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:aJ(r,i)});return s?u:void 0}function Lce(e){return e===180||e===181||e===182||e===172||e===174}function jxe(e){return e===263||e===177||e===175||e===178||e===179}function Uxe(e){return e===268}function kce(e){return e===244||e===245||e===247||e===252||e===253||e===254||e===258||e===260||e===173||e===266||e===273||e===272||e===279||e===271||e===278}var eXe=Np(Lce,jxe,Uxe,kce);function tXe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(Lce(e.kind)){if(r&&r.kind===28)return!1}else if(Uxe(e.kind)){const u=Ga(e.getChildren(t));if(u&&i_(u))return!1}else if(jxe(e.kind)){const u=Ga(e.getChildren(t));if(u&&xS(u))return!1}else if(!kce(e.kind))return!1;if(e.kind===247)return!0;const i=Dn(e,u=>!u.parent),o=iE(e,i,t);if(!o||o.kind===20)return!0;const s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function z7(e,t,r){const i=Dn(t,o=>o.end!==e?"quit":eXe(o.kind));return!!i&&tXe(i,r)}function OO(e){let t=0,r=0;const i=5;return Jo(e,function o(s){if(kce(s.kind)){const l=s.getLastToken(e);l?.kind===27?t++:r++}else if(Lce(s.kind)){const l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){const u=ca(e,l.getStart(e)).line,d=ca(e,qh(e,l.end).start).line;u!==d&&r++}}return t+r>=i?!0:Jo(s,o)}),t===0&&r<=1?!0:t/r>1/i}function B7(e,t){return wce(e,e.getDirectories,t)||[]}function AJ(e,t,r,i,o){return wce(e,e.readDirectory,t,r,i,o)||ie}function jP(e,t){return wce(e,e.fileExists,t)}function G7(e,t){return V7(()=>ph(t,e))||!1}function V7(e){try{return e()}catch{return}}function wce(e,t,...r){return V7(()=>t&&t.apply(e,r))}function IJ(e,t){const r=[];return z_(t,e,i=>{const o=Qr(i,"package.json");jP(t,o)&&r.push(o)}),r}function Oce(e,t){let r;return z_(t,e,i=>{if(i==="node_modules"||(r=xH(i,o=>jP(t,o),"package.json"),r))return!0}),r}function nXe(e,t){if(!t.fileExists)return[];const r=[];return z_(t,ci(e),i=>{const o=Qr(i,"package.json");if(t.fileExists(o)){const s=xJ(o,t);s&&r.push(s)}}),r}function xJ(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=qk(i),s={};if(o)for(const d of r){const _=o[d];if(!_)continue;const h=new Map;for(const y in _)h.set(y,_[y]);s[d]=h}const l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:u,has(d,_){return!!u(d,_)}};function u(d,_=15){for(const[h,y]of l)if(y&&_&h){const E=y.get(d);if(E!==void 0)return E}}}function pC(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||nXe(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:d,getSourceFileInfo:_,allowsImportingSpecifier:h};function u(R){const N=A(R);for(const P of i)if(P.has(N)||P.has(h3(N)))return!0;return!1}function d(R,N){if(!i.length||!R.valueDeclaration)return!0;if(!s)s=new Map;else{const G=s.get(R);if(G!==void 0)return G}const P=Sm(R.getName());if(y(P))return s.set(R,!0),!0;const k=R.valueDeclaration.getSourceFile(),F=E(k.fileName,N);if(typeof F>"u")return s.set(R,!0),!0;const W=u(F)||u(P);return s.set(R,W),W}function _(R,N){if(!i.length)return{importable:!0,packageName:void 0};if(!l)l=new Map;else{const W=l.get(R);if(W!==void 0)return W}const P=E(R.fileName,N);if(!P){const W={importable:!0,packageName:P};return l.set(R,W),W}const F={importable:u(P),packageName:P};return l.set(R,F),F}function h(R){return!i.length||y(R)||nf(R)||Pp(R)?!0:u(R)}function y(R){return!!(Tg(e)&&wu(e)&&SD.has(R)&&(o===void 0&&(o=j7(e)),o))}function E(R,N){if(!R.includes("node_modules"))return;const P=vy.getNodeModulesPackageName(r.getCompilationSettings(),e,R,N,t);if(P&&!nf(P)&&!Pp(P))return A(P)}function A(R){const N=Vd(pP(R)).slice(1);return po(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function j7(e){return vt(e.imports,({text:t})=>SD.has(t))}function WO(e){return jn(Vd(e),"node_modules")}function Hxe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function Wce(e,t){const r=Vu(e),i=tI(t,r,Us,XW);if(i>=0){const o=t[i];return C.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ma(o,Hxe)}}function Fce(e,t){var r;let i=tI(t,e.start,l=>l.start,Hs);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=Ml(e);for(;;){const l=ni(t[i],Hxe);if(!l||l.start>s)break;Yee(e,l)&&o.push(l),i++}return o}function vx({startPosition:e,endPosition:t}){return sc(e,t===void 0?e:t)}function RJ(e,t){const r=zi(e,t.start);return Dn(r,o=>o.getStart(e)Ml(t)?"quit":St(o)&&cC(t,Vu(o,e)))}function DJ(e,t,r=Us){return e?No(e)?r(Yt(e,t)):t(e,0):void 0}function CJ(e){return No(e)?Qa(e):e}function U7(e,t,r){return e.escapedName==="export="||e.escapedName==="default"?NJ(e)||FO(rXe(e),t,!!r):e.name}function NJ(e){return Ln(e.declarations,t=>{var r,i,o;if(dl(t))return(r=ni(Kl(t.expression),Je))==null?void 0:r.text;if(lu(t)&&t.symbol.flags===2097152)return(i=ni(t.propertyName,Je))==null?void 0:i.text;const s=(o=ni(wo(t),Je))==null?void 0:o.text;if(s)return s;if(e.parent&&!hI(e.parent))return e.parent.getName()})}function rXe(e){var t;return C.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${C.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{const i=C.formatSyntaxKind(r.kind),o=Ir(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${C.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function FO(e,t,r){return zO(Au(Sm(e.name)),t,r)}function zO(e,t,r){const i=Dc(LR(Au(e),"/index"));let o="",s=!0;const l=i.charCodeAt(0);C_(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let u=1;ue.length)return!1;for(let o=0;o(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(Bce||{}),Gce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e[e.Module=4]="Module",e))(Gce||{});function kJ(e){let t=1;const r=hm(),i=new Map,o=new Map;let s;const l={isUsableByFile:A=>A===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(A,R,N,P,k,F,W,G)=>{A!==s&&(l.clear(),s=A);let j;if(k){const De=s4(k.fileName);if(De){const{topLevelNodeModulesIndex:Y,topLevelPackageNameIndex:Ne,packageRootIndex:Xe}=De;if(j=Kw(pP(k.fileName.substring(Ne+1,Xe))),po(A,k.path.substring(0,Y))){const Ee=o.get(j),re=k.fileName.substring(0,Ne+1);if(Ee){const Te=Ee.indexOf(Pg);Y>Te&&o.set(j,re)}else o.set(j,re)}}}const Z=F===1&&bM(R)||R,q=F===0||hI(Z)?Vi(N):oXe(Z,G,void 0),ve=typeof q=="string"?q:q[0],oe=typeof q=="string"?void 0:q[1],K=Sm(P.name),fe=t++,ue=Rd(R,G),me=R.flags&33554432?void 0:R,be=P.flags&33554432?void 0:P;(!me||!be)&&i.set(fe,[R,P]),r.add(d(ve,R,nd(K)?void 0:K,G),{id:fe,symbolTableKey:N,symbolName:ve,capitalizedSymbolName:oe,moduleName:K,moduleFile:k,moduleFileName:k?.fileName,packageName:j,exportKind:F,targetFlags:ue.flags,isFromPackageJson:W,symbol:me,moduleSymbol:be})},get:(A,R)=>{if(A!==s)return;const N=r.get(R);return N?.map(u)},search:(A,R,N,P)=>{if(A===s)return Jc(r,(k,F)=>{const{symbolName:W,ambientModuleName:G}=_(F),j=R&&k[0].capitalizedSymbolName||W;if(N(j,k[0].targetFlags)){const Z=k.map(u).filter((q,ve)=>E(q,k[ve].packageName));if(Z.length){const q=P(Z,j,!!G,F);if(q!==void 0)return q}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(A,R,N)=>h(A)&&h(R)?!1:s&&s!==R.path||N&&j7(A)!==j7(R)||!tf(A.moduleAugmentations,R.moduleAugmentations)||!y(A,R)?(l.clear(),!0):(s=R.path,!1)};return C.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function u(A){if(A.symbol&&A.moduleSymbol)return A;const{id:R,exportKind:N,targetFlags:P,isFromPackageJson:k,moduleFileName:F}=A,[W,G]=i.get(R)||ie;if(W&&G)return{symbol:W,moduleSymbol:G,moduleFileName:F,exportKind:N,targetFlags:P,isFromPackageJson:k};const j=(k?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),J=A.moduleSymbol||G||C.checkDefined(A.moduleFile?j.getMergedSymbol(A.moduleFile.symbol):j.tryFindAmbientModule(A.moduleName)),Z=A.symbol||W||C.checkDefined(N===2?j.resolveExternalModuleSymbol(J):j.tryGetMemberInModuleExportsAndProperties(Vi(A.symbolTableKey),J),`Could not find symbol '${A.symbolName}' by key '${A.symbolTableKey}' in module ${J.name}`);return i.set(R,[Z,J]),{symbol:Z,moduleSymbol:J,moduleFileName:F,exportKind:N,targetFlags:P,isFromPackageJson:k}}function d(A,R,N,P){const k=N||"";return`${A.length} ${Ta(Rd(R,P))} ${A} ${k}`}function _(A){const R=A.indexOf(" "),N=A.indexOf(" ",R+1),P=parseInt(A.substring(0,R),10),k=A.substring(N+1),F=k.substring(0,P),W=k.substring(P+1);return{symbolName:F,ambientModuleName:W===""?void 0:W}}function h(A){return!A.commonJsModuleIndicator&&!A.externalModuleIndicator&&!A.moduleAugmentations&&!A.ambientModuleNames}function y(A,R){if(!tf(A.ambientModuleNames,R.ambientModuleNames))return!1;let N=-1,P=-1;for(const k of R.ambientModuleNames){const F=W=>CG(W)&&W.name.text===k;if(N=ho(A.statements,F,N+1),P=ho(R.statements,F,P+1),A.statements[N]!==R.statements[P])return!1}return!0}function E(A,R){if(!R||!A.moduleFileName)return!0;const N=e.getGlobalTypingsCacheLocation();if(N&&po(A.moduleFileName,N))return!0;const P=o.get(R);return!P||po(A.moduleFileName,P)}}function wJ(e,t,r,i,o,s,l,u){var d;if(!r){let A;const R=Sm(i.name);return SD.has(R)&&(A=q7(t,e))!==void 0?A===po(R,"node:"):!s||s.allowsImportingAmbientModule(i,l)||Vce(t,R)}if(C.assertIsDefined(r),t===r)return!1;const _=u?.get(t.path,r.path,o,{});if(_?.isBlockedByPackageJsonDependencies!==void 0)return!_.isBlockedByPackageJsonDependencies||!!_.packageName&&Vce(t,_.packageName);const h=dy(l),y=(d=l.getGlobalTypingsCacheLocation)==null?void 0:d.call(l),E=!!vy.forEachFileNameOfModule(t.fileName,r.fileName,l,!1,A=>{const R=e.getSourceFile(A);return(R===r||!R)&&iXe(t.fileName,A,h,y,l)});if(s){const A=E?s.getSourceFileInfo(r,l):void 0;return u?.setBlockedByPackageJsonDependencies(t.path,r.path,o,{},A?.packageName,!A?.importable),!!A?.importable||E&&!!A?.packageName&&Vce(t,A.packageName)}return E}function Vce(e,t){return e.imports&&e.imports.some(r=>r.text===t||r.text.startsWith(t+"/"))}function iXe(e,t,r,i,o){const s=z_(o,t,u=>Dc(u)==="node_modules"?u:void 0),l=s&&ci(r(s));return l===void 0||po(r(e),l)||!!i&&po(r(i),l)}function OJ(e,t,r,i,o){var s,l;const u=m1(t),d=r.autoImportFileExcludePatterns&&qxe(r,u);Jxe(e.getTypeChecker(),e.getSourceFiles(),d,t,(h,y)=>o(h,y,e,!1));const _=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(_){const h=ws(),y=e.getTypeChecker();Jxe(_.getTypeChecker(),_.getSourceFiles(),d,t,(E,A)=>{(A&&!e.getSourceFile(A.fileName)||!A&&!y.resolveName(E.name,void 0,1536,!1))&&o(E,A,_,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${ws()-h}`)}}function qxe(e,t){return Ei(e.autoImportFileExcludePatterns,r=>{const i=Y6(r,"","exclude");return i?sv(i,t):void 0})}function Jxe(e,t,r,i,o){var s;const l=r&&Kxe(r,i);for(const u of e.getAmbientModules())!u.name.includes("*")&&!(r&&((s=u.declarations)!=null&&s.every(d=>l(d.getSourceFile()))))&&o(u,void 0);for(const u of t)wp(u)&&!l?.(u)&&o(e.getMergedSymbol(u.symbol),u)}function Kxe(e,t){var r;const i=(r=t.getSymlinkCache)==null?void 0:r.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:o,path:s})=>{if(e.some(l=>l.test(o)))return!0;if(i?.size&&Vb(o)){let l=ci(o);return z_(t,ci(s),u=>{const d=i.get(qc(u));if(d)return d.some(_=>e.some(h=>h.test(o.replace(l,_))));l=ci(l)})??!1}return!1}}function jce(e,t){return t.autoImportFileExcludePatterns?Kxe(qxe(t,m1(e)),e):()=>!1}function GO(e,t,r,i,o){var s,l,u,d,_;const h=ws();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||kJ({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let E=0;try{OJ(r,t,i,!0,(A,R,N,P)=>{++E%100===0&&o?.throwIfCancellationRequested();const k=new Set,F=N.getTypeChecker(),W=Y7(A,F);W&&Xxe(W.symbol,F)&&y.add(e.path,W.symbol,W.exportKind===1?"default":"export=",A,R,W.exportKind,P,F),F.forEachExportAndPropertyOfModule(A,(G,j)=>{G!==W?.symbol&&Xxe(G,F)&&Em(k,j)&&y.add(e.path,G,j,A,R,0,P,F)})})}catch(A){throw y.clear(),A}return(_=t.log)==null||_.call(t,`getExportInfoMap: done in ${ws()-h} ms`),y}function Y7(e,t){const r=t.resolveExternalModuleSymbol(e);if(r!==e){const o=t.tryGetMemberInModuleExports("default",r);return o?{symbol:o,exportKind:1}:{symbol:r,exportKind:2}}const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function Xxe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!fM(e)&&!Une(e)}function oXe(e,t,r){let i;return $7(e,t,r,(o,s)=>(i=s?[o,s]:o,!0)),C.checkDefined(i)}function $7(e,t,r,i){let o,s=e;const l=new Set;for(;s;){const u=NJ(s);if(u){const d=i(u);if(d)return d}if(s.escapedName!=="default"&&s.escapedName!=="export="){const d=i(s.name);if(d)return d}if(o=Vn(o,s),!Em(l,s))break;s=s.flags&2097152?t.getImmediateAliasedSymbol(s):void 0}for(const u of o??ie)if(u.parent&&hI(u.parent)){const d=i(FO(u.parent,r,!1),FO(u.parent,r,!0));if(d)return d}}function Yxe(){const e=mg(99,!1);function t(i,o,s){return cXe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const d=[],{prefix:_,pushTemplate:h}=pXe(o);i=_+i;const y=_.length;h&&d.push(16),e.setText(i);let E=0;const A=[];let R=0;do{l=e.scan(),cD(l)||(N(),u=l);const P=e.getTokenEnd();if(lXe(e.getTokenStart(),P,y,hXe(l),A),P>=i.length){const k=sXe(e,l,tl(d));k!==void 0&&(E=k)}}while(l!==1);function N(){switch(l){case 44:case 69:!aXe[u]&&e.reScanSlashToken()===14&&(l=14);break;case 30:u===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!s&&(l=80);break;case 16:d.push(l);break;case 19:d.length>0&&d.push(l);break;case 20:if(d.length>0){const P=tl(d);P===16?(l=e.reScanTemplateToken(!1),l===18?d.pop():C.assertEqual(l,17,"Should have been a template middle.")):(C.assertEqual(P,19,"Should have been an open brace"),d.pop())}break;default:if(!rp(l))break;(u===25||rp(u)&&rp(l)&&!uXe(u,l))&&(l=80)}}return{endOfLineState:E,spans:A}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}var aXe=pZ([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function sXe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),o=i.length-1;let s=0;for(;i.charCodeAt(o-s)===92;)s++;return(s&1)===0?void 0:i.charCodeAt(0)===34?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(hb(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return C.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function lXe(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 cXe(e,t){const r=[],i=e.spans;let o=0;for(let l=0;l=0){const h=u-o;h>0&&r.push({length:h,classification:4})}r.push({length:d,classification:dXe(_)}),o=u+d}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function dXe(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 uXe(e,t){if(!Qq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function pXe(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 C.assertNever(e)}}function fXe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function mXe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function hXe(e){if(rp(e))return 3;if(fXe(e)||mXe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return hb(e)?6:2}}function Uce(e,t,r,i,o){return Zxe(WJ(e,t,r,i,o))}function $xe(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function WJ(e,t,r,i,o){const s=[];return r.forEachChild(function u(d){if(!(!d||!W2(o,d.pos,d.getFullWidth()))){if($xe(t,d.kind),Je(d)&&!zl(d)&&i.has(d.escapedText)){const _=e.getSymbolAtLocation(d),h=_&&Qxe(_,G1(d),e);h&&l(d.getStart(r),d.getEnd(),h)}d.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,d,_){const h=d-u;C.assert(h>0,`Classification had non-positive length of ${h}`),s.push(u),s.push(h),s.push(_)}}function Qxe(e,t,r){const i=e.getFlags();if((i&2885600)!==0)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&_Xe(e)?14:void 0:i&2097152?Qxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function _Xe(e){return vt(e.declarations,t=>mc(t)&&yy(t)===1)}function gXe(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 Zxe(e){C.assert(e.spans.length%3===0);const t=e.spans,r=[];for(let i=0;i])*)(\/>)?)?/m,q=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,ve=t.text.substr(j,J),oe=Z.exec(ve);if(!oe||!oe[3]||!(oe[3]in rF))return!1;let K=j;y(K,oe[1].length),K+=oe[1].length,d(K,oe[2].length,10),K+=oe[2].length,d(K,oe[3].length,21),K+=oe[3].length;const fe=oe[4];let ue=K;for(;;){const be=q.exec(fe);if(!be)break;const De=K+be.index+be[1].length;De>ue&&(y(ue,De-ue),ue=De),d(ue,be[2].length,22),ue+=be[2].length,be[3].length&&(y(ue,be[3].length),ue+=be[3].length),d(ue,be[4].length,5),ue+=be[4].length,be[5].length&&(y(ue,be[5].length),ue+=be[5].length),d(ue,be[6].length,24),ue+=be[6].length}K+=oe[4].length,K>ue&&y(ue,K-ue),oe[5]&&(d(K,oe[5].length,10),K+=oe[5].length);const me=j+J;return K=0),q>0){const ve=J||W(j.kind,j);ve&&d(Z,q,ve)}return!0}function F(j){switch(j.parent&&j.parent.kind){case 287:if(j.parent.tagName===j)return 19;break;case 288:if(j.parent.tagName===j)return 20;break;case 286:if(j.parent.tagName===j)return 21;break;case 292:if(j.parent.name===j)return 22;break}}function W(j,J){if(rp(j))return 3;if((j===30||j===32)&&J&&fce(J.parent))return 10;if(nV(j)){if(J){const Z=J.parent;if(j===64&&(Z.kind===261||Z.kind===173||Z.kind===170||Z.kind===292)||Z.kind===227||Z.kind===225||Z.kind===226||Z.kind===228)return 5}return 10}else{if(j===9)return 4;if(j===10)return 25;if(j===11)return J&&J.parent.kind===292?24:6;if(j===14)return 6;if(hb(j))return 6;if(j===12)return 23;if(j===80){if(J){switch(J.parent.kind){case 264:return J.parent.name===J?11:void 0;case 169:return J.parent.name===J?15:void 0;case 265:return J.parent.name===J?13:void 0;case 267:return J.parent.name===J?12:void 0;case 268:return J.parent.name===J?14:void 0;case 170:return J.parent.name===J?Db(J)?3:17:void 0}if(Gm(J.parent))return 3}return 2}}}function G(j){if(j&&F2(i,o,j.pos,j.getFullWidth())){$xe(e,j.kind);for(const J of j.getChildren(t))k(J)||G(J)}}}var Q7;(e=>{function t(K,fe,ue,me,be){const De=sp(ue,me);if(De.parent&&(hh(De.parent)&&De.parent.tagName===De||qS(De.parent))){const{openingElement:Y,closingElement:Ne}=De.parent.parent,Xe=[Y,Ne].map(({tagName:Ee})=>r(Ee,ue));return[{fileName:ue.fileName,highlightSpans:Xe}]}return i(me,De,K,fe,be)||o(De,ue)}e.getDocumentHighlights=t;function r(K,fe){return{fileName:fe.fileName,textSpan:Vu(K,fe),kind:"none"}}function i(K,fe,ue,me,be){const De=new Set(be.map(Ee=>Ee.fileName)),Y=Qs.getReferenceEntriesForNode(K,fe,ue,be,me,void 0,De);if(!Y)return;const Ne=S2(Y.map(Qs.toHighlightSpan),Ee=>Ee.fileName,Ee=>Ee.span),Xe=Gd(ue.useCaseSensitiveFileNames());return Do(zd(Ne.entries(),([Ee,re])=>{if(!De.has(Ee)){if(!ue.redirectTargetsMap.has(Os(Ee,ue.getCurrentDirectory(),Xe)))return;const Te=ue.getSourceFile(Ee);Ee=mn(be,Be=>!!Be.redirectInfo&&Be.redirectInfo.redirectTarget===Te).fileName,C.assert(De.has(Ee))}return{fileName:Ee,highlightSpans:re}}))}function o(K,fe){const ue=s(K,fe);return ue&&[{fileName:fe.fileName,highlightSpans:ue}]}function s(K,fe){switch(K.kind){case 101:case 93:return ZT(K.parent)?q(K.parent,fe):void 0;case 107:return me(K.parent,of,G);case 111:return me(K.parent,Oj,W);case 113:case 85:case 98:const De=K.kind===85?K.parent.parent:K.parent;return me(De,R1,F);case 109:return me(K.parent,YM,k);case 84:case 90:return QM(K.parent)||PD(K.parent)?me(K.parent.parent.parent,YM,k):void 0;case 83:case 88:return me(K.parent,BN,P);case 99:case 117:case 92:return me(K.parent,Y=>vb(Y,!0),N);case 137:return ue(kl,[137]);case 139:case 153:return ue(yb,[139,153]);case 135:return me(K.parent,Wb,j);case 134:return be(j(K));case 127:return be(J(K));case 103:case 147:return;default:return gb(K.kind)&&(id(K.parent)||cc(K.parent))?be(E(K.kind,K.parent)):void 0}function ue(De,Y){return me(K.parent,De,Ne=>{var Xe;return Ei((Xe=ni(Ne,ch))==null?void 0:Xe.symbol.declarations,Ee=>De(Ee)?mn(Ee.getChildren(fe),re=>jn(Y,re.kind)):void 0)})}function me(De,Y,Ne){return Y(De)?be(Ne(De,fe)):void 0}function be(De){return De&&De.map(Y=>r(Y,fe))}}function l(K){return Oj(K)?[K]:R1(K)?ao(K.catchClause?l(K.catchClause):K.tryBlock&&l(K.tryBlock),K.finallyBlock&&l(K.finallyBlock)):$o(K)?void 0:_(K,l)}function u(K){let fe=K;for(;fe.parent;){const ue=fe.parent;if(xS(ue)||ue.kind===308)return ue;if(R1(ue)&&ue.tryBlock===fe&&ue.catchClause)return fe;fe=ue}}function d(K){return BN(K)?[K]:$o(K)?void 0:_(K,d)}function _(K,fe){const ue=[];return K.forEachChild(me=>{const be=fe(me);be!==void 0&&ue.push(...rI(be))}),ue}function h(K,fe){const ue=y(fe);return!!ue&&ue===K}function y(K){return Dn(K,fe=>{switch(fe.kind){case 256:if(K.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!K.label||oe(fe,K.label.escapedText);default:return $o(fe)&&"quit"}})}function E(K,fe){return Ei(A(fe,NI(K)),ue=>lC(ue,K))}function A(K,fe){const ue=K.parent;switch(ue.kind){case 269:case 308:case 242:case 297:case 298:return fe&64&&Mc(K)?[...K.members,K]:ue.statements;case 177:case 175:case 263:return[...ue.parameters,...ui(ue.parent)?ue.parent.members:[]];case 264:case 232:case 265:case 188:const me=ue.members;if(fe&15){const be=mn(ue.members,kl);if(be)return[...me,...be.parameters]}else if(fe&64)return[...me,ue];return me;default:return}}function R(K,fe,...ue){return fe&&jn(ue,fe.kind)?(K.push(fe),!0):!1}function N(K){const fe=[];if(R(fe,K.getFirstToken(),99,117,92)&&K.kind===247){const ue=K.getChildren();for(let me=ue.length-1;me>=0&&!R(fe,ue[me],117);me--);}return qe(d(K.statement),ue=>{h(K,ue)&&R(fe,ue.getFirstToken(),83,88)}),fe}function P(K){const fe=y(K);if(fe)switch(fe.kind){case 249:case 250:case 251:case 247:case 248:return N(fe);case 256:return k(fe)}}function k(K){const fe=[];return R(fe,K.getFirstToken(),109),qe(K.caseBlock.clauses,ue=>{R(fe,ue.getFirstToken(),84,90),qe(d(ue),me=>{h(K,me)&&R(fe,me.getFirstToken(),83)})}),fe}function F(K,fe){const ue=[];if(R(ue,K.getFirstToken(),113),K.catchClause&&R(ue,K.catchClause.getFirstToken(),85),K.finallyBlock){const me=Is(K,98,fe);R(ue,me,98)}return ue}function W(K,fe){const ue=u(K);if(!ue)return;const me=[];return qe(l(ue),be=>{me.push(Is(be,111,fe))}),xS(ue)&&Ab(ue,be=>{me.push(Is(be,107,fe))}),me}function G(K,fe){const ue=pf(K);if(!ue)return;const me=[];return Ab(ma(ue.body,ta),be=>{me.push(Is(be,107,fe))}),qe(l(ue.body),be=>{me.push(Is(be,111,fe))}),me}function j(K){const fe=pf(K);if(!fe)return;const ue=[];return fe.modifiers&&fe.modifiers.forEach(me=>{R(ue,me,134)}),Jo(fe,me=>{Z(me,be=>{Wb(be)&&R(ue,be.getFirstToken(),135)})}),ue}function J(K){const fe=pf(K);if(!fe)return;const ue=[];return Jo(fe,me=>{Z(me,be=>{Sw(be)&&R(ue,be.getFirstToken(),127)})}),ue}function Z(K,fe){fe(K),!$o(K)&&!ui(K)&&!yd(K)&&!mc(K)&&!Im(K)&&!Ci(K)&&Jo(K,ue=>Z(ue,fe))}function q(K,fe){const ue=ve(K,fe),me=[];for(let be=0;be=De.end;Xe--)if(!jh(fe.text.charCodeAt(Xe))){Ne=!1;break}if(Ne){me.push({fileName:fe.fileName,textSpan:sc(De.getStart(),Y.end),kind:"reference"}),be++;continue}}me.push(r(ue[be],fe))}return me}function ve(K,fe){const ue=[];for(;ZT(K.parent)&&K.parent.elseStatement===K;)K=K.parent;for(;;){const me=K.getChildren(fe);R(ue,me[0],101);for(let be=me.length-1;be>=0&&!R(ue,me[be],93);be--);if(!K.elseStatement||!ZT(K.elseStatement))break;K=K.elseStatement}return ue}function oe(K,fe){return!!Dn(K.parent,ue=>Fb(ue)?ue.label.escapedText===fe:"quit")}})(Q7||(Q7={}));function VO(e){return!!e.sourceFile}function qce(e,t,r){return zJ(e,t,r)}function zJ(e,t="",r,i){const o=new Map,s=Gd(!!e);function l(){const P=Do(o.keys()).filter(k=>k&&k.charAt(0)==="_").map(k=>{const F=o.get(k),W=[];return F.forEach((G,j)=>{VO(G)?W.push({name:j,scriptKind:G.sourceFile.scriptKind,refCount:G.languageServiceRefCount}):G.forEach((J,Z)=>W.push({name:j,scriptKind:Z,refCount:J.languageServiceRefCount}))}),W.sort((G,j)=>j.refCount-G.refCount),{bucket:k,sourceFiles:W}});return JSON.stringify(P,void 0,2)}function u(P){return typeof P.getCompilationSettings=="function"?P.getCompilationSettings():P}function d(P,k,F,W,G,j){const J=Os(P,t,s),Z=BJ(u(k));return _(P,J,k,Z,F,W,G,j)}function _(P,k,F,W,G,j,J,Z){return A(P,k,F,W,G,j,!0,J,Z)}function h(P,k,F,W,G,j){const J=Os(P,t,s),Z=BJ(u(k));return y(P,J,k,Z,F,W,G,j)}function y(P,k,F,W,G,j,J,Z){return A(P,k,u(F),W,G,j,!1,J,Z)}function E(P,k){const F=VO(P)?P:P.get(C.checkDefined(k,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return C.assert(k===void 0||!F||F.sourceFile.scriptKind===k,`Script kind should match provided ScriptKind:${k} and sourceFile.scriptKind: ${F?.sourceFile.scriptKind}, !entry: ${!F}`),F}function A(P,k,F,W,G,j,J,Z,q){var ve,oe,K,fe;Z=Q6(P,Z);const ue=u(F),me=F===ue?void 0:F,be=Z===6?100:Va(ue),De=typeof q=="object"?q:{languageVersion:be,impliedNodeFormat:me&&dO(k,(fe=(K=(oe=(ve=me.getCompilerHost)==null?void 0:ve.call(me))==null?void 0:oe.getModuleResolutionCache)==null?void 0:K.call(oe))==null?void 0:fe.getPackageJsonInfoCache(),me,ue),setExternalModuleIndicator:Yk(ue),jsDocParsingMode:r};De.languageVersion=be,C.assertEqual(r,De.jsDocParsingMode);const Y=o.size,Ne=Jce(W,De.impliedNodeFormat),Xe=Of(o,Ne,()=>new Map);if(xr){o.size>Y&&xr.instant(xr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ue.configFilePath,key:Ne});const Me=!sd(k)&&Jc(o,(Be,lt)=>lt!==Ne&&Be.has(k)&<);Me&&xr.instant(xr.Phase.Session,"documentRegistryBucketOverlap",{path:k,key1:Me,key2:Ne})}const Ee=Xe.get(k);let re=Ee&&E(Ee,Z);if(!re&&i){const Me=i.getDocument(Ne,k);Me&&Me.scriptKind===Z&&Me.text===yx(G)&&(C.assert(J),re={sourceFile:Me,languageServiceRefCount:0},Te())}if(re)re.sourceFile.version!==j&&(re.sourceFile=vK(re.sourceFile,G,j,G.getChangeRange(re.sourceFile.scriptSnapshot)),i&&i.setDocument(Ne,k,re.sourceFile)),J&&re.languageServiceRefCount++;else{const Me=mz(P,G,De,j,!1,Z);i&&i.setDocument(Ne,k,Me),re={sourceFile:Me,languageServiceRefCount:1},Te()}return C.assert(re.languageServiceRefCount!==0),re.sourceFile;function Te(){if(!Ee)Xe.set(k,re);else if(VO(Ee)){const Me=new Map;Me.set(Ee.sourceFile.scriptKind,Ee),Me.set(Z,re),Xe.set(k,Me)}else Ee.set(Z,re)}}function R(P,k,F,W){const G=Os(P,t,s),j=BJ(k);return N(G,j,F,W)}function N(P,k,F,W){const G=C.checkDefined(o.get(Jce(k,W))),j=G.get(P),J=E(j,F);J.languageServiceRefCount--,C.assert(J.languageServiceRefCount>=0),J.languageServiceRefCount===0&&(VO(j)?G.delete(P):(j.delete(F),j.size===1&&G.set(P,rr(j.values(),Us))))}return{acquireDocument:d,acquireDocumentWithKey:_,updateDocument:h,updateDocumentWithKey:y,releaseDocument:R,releaseDocumentWithKey:N,getKeyForCompilationSettings:BJ,getDocumentRegistryBucketKeyWithMode:Jce,reportStats:l,getBuckets:()=>o}}function BJ(e){return NU(e,fU)}function Jce(e,t){return t?`${e}|${t}`:e}function Kce(e,t,r,i,o,s,l){const u=m1(i),d=Gd(u),_=GJ(t,r,d,l),h=GJ(r,t,d,l);return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{vXe(e,y,_,t,r,i.getCurrentDirectory(),u),bXe(e,y,_,h,i,d)})}function GJ(e,t,r,i){const o=r(e);return l=>{const u=i&&i.tryGetSourcePosition({fileName:l,pos:0}),d=s(u?u.fileName:l);return u?d===void 0?void 0:yXe(u.fileName,d,l,r):d};function s(l){if(r(l)===o)return t;const u=qV(l,o,r);return u===void 0?void 0:t+"/"+u}}function yXe(e,t,r,i){const o=WR(e,t,i);return Xce(ci(r),o)}function vXe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const d=ci(u.fileName),_=ZN(u);if(!_)return;Yce(_,(A,R)=>{switch(R){case"files":case"include":case"exclude":{if(h(A)||R!=="include"||!Nd(A.initializer))return;const P=Ei(A.initializer.elements,F=>Oa(F)?F.text:void 0);if(P.length===0)return;const k=$6(d,[],P,l,s);sv(C.checkDefined(k.includeFilePattern),l).test(i)&&!sv(C.checkDefined(k.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Ga(A.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Yce(A.initializer,(N,P)=>{const k=_U(P);C.assert(k?.type!=="listOrElement"),k&&(k.isFilePath||k.type==="list"&&k.element.isFilePath)?h(N):P==="paths"&&Yce(N.initializer,F=>{if(Nd(F.initializer))for(const W of F.initializer.elements)y(W)})});return}});function h(A){const R=Nd(A.initializer)?A.initializer.elements:[A.initializer];let N=!1;for(const P of R)N=y(P)||N;return N}function y(A){if(!Oa(A))return!1;const R=Xce(d,A.text),N=r(R);return N!==void 0?(t.replaceRangeWithText(u,tRe(A,u),E(N)),!0):!1}function E(A){return uf(d,A,!l)}}function bXe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const d=r(u.fileName),_=d??u.fileName,h=ci(_),y=i(u.fileName),E=y||u.fileName,A=ci(E),R=d!==void 0||y!==void 0;EXe(u,t,N=>{if(!nf(N))return;const P=Xce(A,N),k=r(P);return k===void 0?void 0:KE(uf(h,k,s))},N=>{const P=e.getTypeChecker().getSymbolAtLocation(N);if(P?.declarations&&P.declarations.some(F=>Tu(F)))return;const k=y!==void 0?eRe(N,w1(N.text,E,e.getCompilerOptions(),o),r,l):SXe(P,N,u,e,o,r);return k!==void 0&&(k.updated||R&&nf(N.text))?vy.updateModuleSpecifier(e.getCompilerOptions(),u,_,k.newFileName,m0(e,o),N.text):void 0})}}function TXe(e,t){return ya(Qr(e,t))}function Xce(e,t){return KE(TXe(e,t))}function SXe(e,t,r,i,o,s){if(e){const l=mn(e.declarations,Xi).fileName,u=s(l);return u===void 0?{newFileName:l,updated:!1}:{newFileName:u,updated:!0}}else{const l=i.getModeForUsageLocation(r,t),u=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t,r):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return eRe(t,u,s,i.getSourceFiles())}}function eRe(e,t,r,i){if(!t)return;if(t.resolvedModule){const d=u(t.resolvedModule.resolvedFileName);if(d)return d}const o=qe(t.failedLookupLocations,s)||nf(e.text)&&qe(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){const _=r(d);return _&&mn(i,h=>h.fileName===_)?l(d):void 0}function l(d){return nl(d,"/package.json")?void 0:u(d)}function u(d){const _=r(d);return _&&{newFileName:_,updated:!0}}}function EXe(e,t,r,i){for(const o of e.referencedFiles||ie){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,tRe(o,e),s)}}function tRe(e,t){return Uf(e.getStart(t)+1,e.end-1)}function Yce(e,t){if(za(e))for(const r of e.properties)Pc(r)&&Oa(r.name)&&t(r,r.name.text)}var VJ=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(VJ||{});function UP(e,t){return{kind:e,isCaseSensitive:t}}function $ce(e){const t=new Map,r=e.trim().split(".").map(i=>RXe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>UP(2,!0),getFullMatch:()=>UP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>AXe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Qce(i,Ga(r),t),patternContainsDots:r.length>1}}function AXe(e,t,r,i){if(!Qce(t,Ga(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,u=e.length-1;l>=0;l-=1,u-=1)s=iRe(s,Qce(e[u],r[l],i));return s}function nRe(e,t){let r=t.get(e);return r||t.set(e,r=ide(e)),r}function rRe(e,t,r){const i=DXe(e,t.textLowerCase);if(i===0)return UP(t.text.length===e.length?0:1,po(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=nRe(e,r);for(const s of o)if(Zce(e,s,t.text,!0))return UP(2,Zce(e,s,t.text,!1));if(t.text.length0)return UP(2,!0);if(t.characterSpans.length>0){const o=nRe(e,r),s=oRe(e,o,t,!1)?!0:oRe(e,o,t,!0)?!1:void 0;if(s!==void 0)return UP(3,s)}}}function Qce(e,t,r){if(jJ(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=rRe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=iRe(o,rRe(e,s,r));return o}function iRe(e,t){return o9([e,t],IXe)}function IXe(e,t){return e===void 0?1:t===void 0?-1:Hs(e.kind,t.kind)||PT(!e.isCaseSensitive,!t.isCaseSensitive)}function Zce(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&cRe(0,o.length,s=>xXe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function xXe(e,t,r){return r?ede(e)===ede(t):e===t}function oRe(e,t,r,i){const o=r.characterSpans;let s=0,l=0;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let u=t[s],d=!1;for(;l=65&&e<=90)return!0;if(e<127||!fF(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function aRe(e){if(e>=97&&e<=122)return!0;if(e<127||!fF(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function DXe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(jJ(t,(o,s)=>ede(e.charCodeAt(s+i))===o))return i;return-1}function ede(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function tde(e){return e>=48&&e<=57}function CXe(e){return mC(e)||aRe(e)||tde(e)||e===95||e===36}function NXe(e){const t=[];let r=0,i=0;for(let o=0;o0&&(t.push(nde(e.substr(r,i))),i=0)}return i>0&&t.push(nde(e.substr(r,i))),t}function nde(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:rde(e)}}function rde(e){return sRe(e,!1)}function ide(e){return sRe(e,!0)}function sRe(e,t){const r=[];let i=0;for(let o=1;oode(i)&&i!==95,t,r)}function MXe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}function dRe(e,t=!0,r=!1){const i={pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[];let s,l,u,d=0,_=!1;function h(){return l=u,u=vd.scan(),u===19?d++:u===20&&d--,u}function y(){const j=vd.getTokenValue(),J=vd.getTokenStart();return{fileName:j,pos:J,end:J+j.length}}function E(){s||(s=[]),s.push({ref:y(),depth:d})}function A(){o.push(y()),R()}function R(){d===0&&(_=!0)}function N(){let j=vd.getToken();return j===138?(j=h(),j===144&&(j=h(),j===11&&E()),!0):!1}function P(){if(l===25)return!1;let j=vd.getToken();if(j===102){if(j=h(),j===21){if(j=h(),j===11||j===15)return A(),!0}else{if(j===11)return A(),!0;if(j===156&&vd.lookAhead(()=>{const Z=vd.scan();return Z!==161&&(Z===42||Z===19||Z===80||rp(Z))})&&(j=h()),j===80||rp(j))if(j=h(),j===161){if(j=h(),j===11)return A(),!0}else if(j===64){if(F(!0))return!0}else if(j===28)j=h();else return!0;if(j===19){for(j=h();j!==20&&j!==1;)j=h();j===20&&(j=h(),j===161&&(j=h(),j===11&&A()))}else j===42&&(j=h(),j===130&&(j=h(),(j===80||rp(j))&&(j=h(),j===161&&(j=h(),j===11&&A()))))}return!0}return!1}function k(){let j=vd.getToken();if(j===95){if(R(),j=h(),j===156&&vd.lookAhead(()=>{const Z=vd.scan();return Z===42||Z===19})&&(j=h()),j===19){for(j=h();j!==20&&j!==1;)j=h();j===20&&(j=h(),j===161&&(j=h(),j===11&&A()))}else if(j===42)j=h(),j===161&&(j=h(),j===11&&A());else if(j===102&&(j=h(),j===156&&vd.lookAhead(()=>{const Z=vd.scan();return Z===80||rp(Z)})&&(j=h()),(j===80||rp(j))&&(j=h(),j===64&&F(!0))))return!0;return!0}return!1}function F(j,J=!1){let Z=j?h():vd.getToken();return Z===149?(Z=h(),Z===21&&(Z=h(),(Z===11||J&&Z===15)&&A()),!0):!1}function W(){let j=vd.getToken();if(j===80&&vd.getTokenValue()==="define"){if(j=h(),j!==21)return!0;if(j=h(),j===11||j===15)if(j=h(),j===28)j=h();else return!0;if(j!==23)return!0;for(j=h();j!==24&&j!==1;)(j===11||j===15)&&A(),j=h();return!0}return!1}function G(){for(vd.setText(e),h();vd.getToken()!==1;){if(vd.getToken()===16){const j=[vd.getToken()];e:for(;Qe(j);){const J=vd.scan();switch(J){case 1:break e;case 102:P();break;case 16:j.push(J);break;case 19:Qe(j)&&j.push(J);break;case 20:Qe(j)&&(tl(j)===16?vd.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}h()}N()||P()||k()||r&&(F(!1,!0)||W())||h()}vd.setText(void 0)}if(t&&G(),lU(i,e),cU(i,gs),_){if(s)for(const j of s)o.push(j.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let j;if(s)for(const J of s)J.depth===0?(j||(j=[]),j.push(J.ref.fileName)):o.push(J.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:j}}}var LXe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function ade(e){const t=Gd(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:d,toLineColumnOffset:E,clearCache:A,documentPositionMappers:o};function s(R){return Os(R,r,t)}function l(R,N){const P=s(R),k=o.get(P);if(k)return k;let F;if(e.getDocumentPositionMapper)F=e.getDocumentPositionMapper(R,N);else if(e.readFile){const W=y(R);F=W&&UJ({getSourceFileLike:y,getCanonicalFileName:t,log:G=>e.log(G)},R,eH(W.text,ug(W)),G=>!e.fileExists||e.fileExists(G)?e.readFile(G):void 0)}return o.set(P,F||nH),F||nH}function u(R){if(!sd(R.fileName)||!_(R.fileName))return;const P=l(R.fileName).getSourcePosition(R);return!P||P===R?void 0:u(P)||P}function d(R){if(sd(R.fileName))return;const N=_(R.fileName);if(!N)return;const P=e.getProgram();if(P.isSourceOfProjectReferenceRedirect(N.fileName))return;const F=P.getCompilerOptions().outFile,W=F?Au(F)+".d.ts":E6(R.fileName,P.getCompilerOptions(),P);if(W===void 0)return;const G=l(W,R.fileName).getGeneratedPosition(R);return G===R?void 0:G}function _(R){const N=e.getProgram();if(!N)return;const P=s(R),k=N.getSourceFileByPath(P);return k&&k.resolvedPath===P?k:void 0}function h(R){const N=s(R),P=i.get(N);if(P!==void 0)return P||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(N,!1);return}const k=e.readFile(R),F=k?kXe(k):!1;return i.set(N,F),F||void 0}function y(R){return e.getSourceFileLike?e.getSourceFileLike(R):_(R)||h(R)}function E(R,N){return y(R).getLineAndCharacterOfPosition(N)}function A(){i.clear(),o.clear()}}function UJ(e,t,r,i){let o=kae(r);if(o){const u=LXe.exec(o);if(u){if(u[1]){const d=u[1];return uRe(e,fre(Hc,d),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&bo(o,ci(t));for(const u of s){const d=bo(u,ci(t)),_=i(d,l);if(Bo(_))return uRe(e,_,d);if(_!==void 0)return _||void 0}}function uRe(e,t,r){const i=wae(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Bo)))return Wae(e,i,r)}function kXe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return zR(ug(this),r)}}}var sde=new Map;function HJ(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||tc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(yce(t)||oJ(t.getCompilerOptions()))&&wXe(e)&&o.push(Ar(zXe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=wu(e);if(sde.clear(),d(e),WI(t.getCompilerOptions()))for(const _ of e.imports){const h=aM(_);if(Gc(h)&&di(h,32))continue;const y=OXe(h);if(!y)continue;const E=(i=t.getResolvedModuleFromModuleSpecifier(_,e))==null?void 0:i.resolvedModule,A=E&&t.getSourceFile(E.resolvedFileName);A&&A.externalModuleIndicator&&A.externalModuleIndicator!==!0&&dl(A.externalModuleIndicator)&&A.externalModuleIndicator.isExportEquals&&o.push(Ar(y,f.Import_may_be_converted_to_a_default_import))}return Xr(o,e.bindSuggestionDiagnostics),Xr(o,t.getSuggestionDiagnostics(e,r)),o.sort((_,h)=>_.start-h.start),o;function d(_){if(u)GXe(_,s)&&o.push(Ar(yi(_.parent)?_.parent.name:_,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(cc(_)&&_.parent===e&&_.declarationList.flags&2&&_.declarationList.declarations.length===1){const y=_.declarationList.declarations[0].initializer;y&&np(y,!0)&&o.push(Ar(y,f.require_call_may_be_converted_to_an_import))}const h=pu.getJSDocTypedefNodes(_);for(const y of h)o.push(Ar(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));pu.parameterShouldGetTypeFromJSDoc(_)&&o.push(Ar(_.name||_,f.JSDoc_types_may_be_moved_to_TypeScript_types))}KJ(_)&&WXe(_,s,o),_.forEachChild(d)}}function wXe(e){return e.statements.some(t=>{switch(t.kind){case 244:return t.declarationList.declarations.some(r=>!!r.initializer&&np(pRe(r.initializer),!0));case 245:{const{expression:r}=t;if(!Nr(r))return np(r,!0);const i=lc(r);return i===1||i===2}default:return!1}})}function pRe(e){return qr(e)?pRe(e.expression):e}function OXe(e){switch(e.kind){case 273:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===275&&Oa(r)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function WXe(e,t,r){FXe(e,t)&&!sde.has(_Re(e))&&r.push(Ar(!e.name&&yi(e.parent)&&Je(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function FXe(e,t){return!uM(e)&&e.body&&ta(e.body)&&BXe(e.body,t)&&qJ(e,t)}function qJ(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function zXe(e){return Nr(e)?e.left:e}function BXe(e,t){return!!Ab(e,r=>Z7(r,t))}function Z7(e,t){return of(e)&&!!e.expression&&JJ(e.expression,t)}function JJ(e,t){if(!fRe(e)||!mRe(e)||!e.arguments.every(i=>hRe(i,t)))return!1;let r=e.expression.expression;for(;fRe(r)||qr(r);)if(ea(r)){if(!mRe(r)||!r.arguments.every(i=>hRe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function fRe(e){return ea(e)&&(SO(e,"then")||SO(e,"catch")||SO(e,"finally"))}function mRe(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.lengthi.kind===106||Je(i)&&i.text==="undefined")}function hRe(e,t){switch(e.kind){case 263:case 219:if(pc(e)&1)return!1;case 220:sde.set(_Re(e),!0);case 106:return!0;case 80:case 212:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||vt(Rd(i,t).declarations,o=>$o(o)||tv(o)&&!!o.initializer&&$o(o.initializer)):!1}default:return!1}}function _Re(e){return`${e.pos.toString()}:${e.end.toString()}`}function GXe(e,t){var r,i,o,s;if(qs(e)){if(yi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;const l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return rc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function KJ(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var VXe=new Set(["isolatedModules"]);function lde(e,t){return yRe(e,t,!1)}function gRe(e,t){return yRe(e,t,!0)}var jXe=`/// interface Boolean {} interface Function {} interface CallableFunction {} interface NewableFunction {} interface IArguments {} interface Number {} interface Object {} interface RegExp {} interface String {} interface Array { length: number; [n: number]: T; } interface SymbolConstructor { (desc?: string | number): symbol; for(name: string): symbol; readonly toStringTag: symbol; } declare var Symbol: SymbolConstructor; interface Symbol { readonly [Symbol.toStringTag]: string; }`,ez="lib.d.ts",cde;function yRe(e,t,r){cde??(cde=ax(ez,jXe,{languageVersion:99}));const i=[],o=t.compilerOptions?XJ(t.compilerOptions,i):{},s=fz();for(const N in s)Cs(s,N)&&o[N]===void 0&&(o[N]=s[N]);for(const N of Woe)o.verbatimModuleSyntax&&VXe.has(N.name)||(o[N.name]=N.transpileOptionValue);o.suppressOutputPathCheck=!0,o.allowNonTsExtensions=!0,r?(o.declaration=!0,o.emitDeclarationOnly=!0,o.isolatedDeclarations=!0):(o.declaration=!1,o.declarationMap=!1);const l=av(o),u={getSourceFile:N=>N===ya(d)?_:N===ya(ez)?cde:void 0,writeFile:(N,P)=>{xl(N,".map")?(C.assertEqual(y,void 0,"Unexpected multiple source map outputs, file:",N),y=P):(C.assertEqual(h,void 0,"Unexpected multiple outputs, file:",N),h=P)},getDefaultLibFileName:()=>ez,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:N=>N,getCurrentDirectory:()=>"",getNewLine:()=>l,fileExists:N=>N===d||!!r&&N===ez,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),_=ax(d,e,{languageVersion:Va(o),impliedNodeFormat:dO(Os(d,"",u.getCanonicalFileName),void 0,u,o),setExternalModuleIndicator:Yk(o),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(_.moduleName=t.moduleName),t.renamedDependencies&&(_.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,y;const A=uO(r?[d,ez]:[d],o,u);t.reportDiagnostics&&(Xr(i,A.getSyntacticDiagnostics(_)),Xr(i,A.getOptionsDiagnostics()));const R=A.emit(void 0,void 0,void 0,r,t.transformers,r);return Xr(i,R.diagnostics),h===void 0?C.fail("Output generation failed"):{outputText:h,diagnostics:i,sourceMapText:y}}function vRe(e,t,r,i,o){const s=lde(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Xr(i,s.diagnostics),s.outputText}var dde;function XJ(e,t){dde=dde||Un(Xm,r=>typeof r.type=="object"&&!Jc(r.type,i=>typeof i!="number")),e=Zq(e);for(const r of dde){if(!Cs(e,r.name))continue;const i=e[r.name];Bo(i)?e[r.name]=Y4(r,i,t):Jc(r.type,o=>o===i)||t.push(zoe(r))}return e}var ude={};x(ude,{getNavigateToItems:()=>bRe});function bRe(e,t,r,i,o,s,l){const u=$ce(i);if(!u)return ie;const d=[],_=e.length===1?e[0]:void 0;for(const h of e)r.throwIfCancellationRequested(),!(s&&h.isDeclarationFile)&&(TRe(h,!!l,_)||h.getNamedDeclarations().forEach((y,E)=>{UXe(u,E,y,t,h.fileName,!!l,_,d)}));return d.sort(KXe),(o===void 0?d:d.slice(0,o)).map(XXe)}function TRe(e,t,r){return e!==r&&t&&(WO(e.path)||e.hasNoDefaultLib)}function UXe(e,t,r,i,o,s,l,u){const d=e.getMatchForLastSegmentOfPattern(t);if(d){for(const _ of r)if(HXe(_,i,s,l))if(e.patternContainsDots){const h=e.getFullMatch(JXe(_),t);h&&u.push({name:t,fileName:o,matchKind:h.kind,isCaseSensitive:h.isCaseSensitive,declaration:_})}else u.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:_})}}function HXe(e,t,r,i){var o;switch(e.kind){case 274:case 277:case 272:const s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(u=>TRe(u.getSourceFile(),r,i)));default:return!0}}function qXe(e,t){const r=wo(e);return!!r&&(SRe(r,t)||r.kind===168&&pde(r.expression,t))}function pde(e,t){return SRe(e,t)||qr(e)&&(t.push(e.name.text),!0)&&pde(e.expression,t)}function SRe(e,t){return Xh(e)&&(t.push(jf(e)),!0)}function JXe(e){const t=[],r=wo(e);if(r&&r.kind===168&&!pde(r.expression,t))return ie;t.shift();let i=V1(e);for(;i;){if(!qXe(i,t))return ie;i=V1(i)}return t.reverse(),t}function KXe(e,t){return Hs(e.matchKind,t.matchKind)||I2(e.name,t.name)}function XXe(e){const t=e.declaration,r=V1(t),i=r&&wo(r);return{name:e.name,kind:rE(t),kindModifiers:kP(t),matchKind:VJ[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Vu(t),containerName:i?i.text:"",containerKind:i?rE(r):""}}var fde={};x(fde,{getNavigationBarItems:()=>ARe,getNavigationTree:()=>IRe});var YXe=/\s+/g,mde=150,YJ,jO,tz=[],vv,ERe=[],hC,hde=[];function ARe(e,t){YJ=t,jO=e;try{return Yt(tYe(DRe(e)),nYe)}finally{xRe()}}function IRe(e,t){YJ=t,jO=e;try{return WRe(DRe(e))}finally{xRe()}}function xRe(){jO=void 0,YJ=void 0,tz=[],vv=void 0,hde=[]}function nz(e){return HP(e.getText(jO))}function $J(e){return e.node.kind}function RRe(e,t){e.children?e.children.push(t):e.children=[t]}function DRe(e){C.assert(!tz.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};vv=t;for(const r of e.statements)Tx(r);return h0(),C.assert(!vv&&!tz.length),t}function aE(e,t){RRe(vv,_de(e,t))}function _de(e,t){return{node:e,name:t||(id(e)||St(e)?wo(e):void 0),additionalNodes:void 0,parent:vv,children:void 0,indent:vv.indent+1}}function CRe(e){hC||(hC=new Map),hC.set(e,!0)}function NRe(e){for(let t=0;t0;i--){const o=r[i];sE(e,o)}return[r.length-1,r[0]]}function sE(e,t){const r=_de(e,t);RRe(vv,r),tz.push(vv),ERe.push(hC),hC=void 0,vv=r}function h0(){vv.children&&(QJ(vv.children,vv),vde(vv.children)),vv=tz.pop(),hC=ERe.pop()}function _0(e,t,r){sE(e,r),Tx(t),h0()}function PRe(e){e.initializer&&iYe(e.initializer)?(sE(e),Jo(e.initializer,Tx),h0()):_0(e,e.initializer)}function gde(e){const t=wo(e);if(t===void 0)return!1;if(va(t)){const r=t.expression;return Ns(r)||op(r)||ff(r)}return!!t}function Tx(e){if(YJ.throwIfCancellationRequested(),!(!e||dI(e)))switch(e.kind){case 177:const t=e;_0(t,t.body);for(const l of t.parameters)Lp(l,t)&&aE(l);break;case 175:case 178:case 179:case 174:gde(e)&&_0(e,e.body);break;case 173:gde(e)&&PRe(e);break;case 172:gde(e)&&aE(e);break;case 274:const r=e;r.name&&aE(r.name);const{namedBindings:i}=r;if(i)if(i.kind===275)aE(i);else for(const l of i.elements)aE(l);break;case 305:_0(e,e.name);break;case 306:const{expression:o}=e;Je(o)?aE(e,o):aE(e);break;case 209:case 304:case 261:{const l=e;Zo(l.name)?Tx(l.name):PRe(l);break}case 263:const s=e.name;s&&Je(s)&&CRe(s.text),_0(e,e.body);break;case 220:case 219:_0(e,e.body);break;case 267:sE(e);for(const l of e.members)rYe(l)||aE(l);h0();break;case 264:case 232:case 265:sE(e);for(const l of e.members)Tx(l);h0();break;case 268:_0(e,zRe(e).body);break;case 278:{const l=e.expression,u=za(l)||ea(l)?l:$s(l)||qs(l)?l.body:void 0;u?(sE(e),Tx(u),h0()):aE(e);break}case 282:case 272:case 182:case 180:case 181:case 266:aE(e);break;case 214:case 227:{const l=lc(e);switch(l){case 1:case 2:_0(e,e.right);return;case 6:case 3:{const u=e,d=u.left,_=l===3?d.expression:d;let h=0,y;Je(_.expression)?(CRe(_.expression.text),y=_.expression):[h,y]=MRe(u,_.expression),l===6?za(u.right)&&u.right.properties.length>0&&(sE(u,y),Jo(u.right,Tx),h0()):qs(u.right)||$s(u.right)?_0(e,u.right,y):(sE(u,y),_0(e,u.right,d.name),h0()),NRe(h);return}case 7:case 9:{const u=e,d=l===7?u.arguments[0]:u.arguments[0].expression,_=u.arguments[1],[h,y]=MRe(e,d);sE(e,y),sE(e,bt(L.createIdentifier(_.text),_)),Tx(e.arguments[2]),h0(),h0(),NRe(h);return}case 5:{const u=e,d=u.left,_=d.expression;if(Je(_)&&ly(d)!=="prototype"&&hC&&hC.has(_.text)){qs(u.right)||$s(u.right)?_0(e,u.right,_):DS(d)&&(sE(u,_),_0(u.left,u.right,Ek(d)),h0());return}break}case 4:case 0:case 8:break;default:C.assertNever(l)}}default:rf(e)&&qe(e.jsDoc,l=>{qe(l.tags,u=>{Tm(u)&&aE(u)})}),Jo(e,Tx)}}function QJ(e,t){const r=new Map;fl(e,(i,o)=>{const s=i.name||wo(i.node),l=s&&nz(s);if(!l)return!0;const u=r.get(l);if(!u)return r.set(l,i),!0;if(u instanceof Array){for(const d of u)if(LRe(d,i,o,t))return!1;return u.push(i),!0}else{const d=u;return LRe(d,i,o,t)?!1:(r.set(l,[d,i]),!0)}})}var UO={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function $Xe(e,t,r,i){function o(u){return qs(u)||rc(u)||yi(u)}const s=Nr(t.node)||ea(t.node)?lc(t.node):0,l=Nr(e.node)||ea(e.node)?lc(e.node):0;if(UO[s]&&UO[l]||o(e.node)&&UO[s]||o(t.node)&&UO[l]||Mc(e.node)&&yde(e.node)&&UO[s]||Mc(t.node)&&UO[l]||Mc(e.node)&&yde(e.node)&&o(t.node)||Mc(t.node)&&o(e.node)&&yde(e.node)){let u=e.additionalNodes&&tl(e.additionalNodes)||e.node;if(!Mc(e.node)&&!Mc(t.node)||o(e.node)||o(t.node)){const _=o(e.node)?e.node:o(t.node)?t.node:void 0;if(_!==void 0){const h=bt(L.createConstructorDeclaration(void 0,[],void 0),_),y=_de(h);y.indent=e.indent+1,y.children=e.node===_?e.children:t.children,e.children=e.node===_?ao([y],t.children||[t]):ao(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=ao(e.children||[{...e}],t.children||[t]),e.children&&(QJ(e.children,e),vde(e.children)));u=e.node=bt(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ao(e.children,t.children),e.children&&QJ(e.children,e);const d=t.node;return i.children[r-1].node.end===u.end?bt(u,{pos:u.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(bt(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function LRe(e,t,r,i){return $Xe(e,t,r,i)?!0:QXe(e.node,t.node,i)?(ZXe(e,t),!0):!1}function QXe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(kRe(e,r)&&kRe(t,r)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return ua(e)===ua(t);case 268:return wRe(e,t)&&Sde(e)===Sde(t);default:return!0}}function yde(e){return!!(e.flags&16)}function kRe(e,t){if(e.parent===void 0)return!1;const r=i_(e.parent)?e.parent.parent:e.parent;return r===t.node||jn(t.additionalNodes,r)}function wRe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==268||wRe(e.body,t.body))}function ZXe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=ao(e.children,t.children),e.children&&(QJ(e.children,e),vde(e.children))}function vde(e){e.sort(eYe)}function eYe(e,t){return I2(ORe(e.node),ORe(t.node))||Hs($J(e),$J(t))}function ORe(e){if(e.kind===268)return FRe(e);const t=wo(e);if(t&&Tc(t)){const r=f1(t);return r&&Vi(r)}switch(e.kind){case 219:case 220:case 232:return GRe(e);default:return}}function bde(e,t){if(e.kind===268)return HP(FRe(e));if(t){const r=Je(t)?t.text:zs(t)?`[${nz(t.argumentExpression)}]`:nz(t);if(r.length>0)return HP(r)}switch(e.kind){case 308:const r=e;return Vc(r)?`"${O_(Dc(Au(ya(r.fileName))))}"`:"";case 278:return dl(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return iv(e)&2048?"default":GRe(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function tYe(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($J(o)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch($J(l.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function WRe(e){return{text:bde(e.node,e.name),kind:rE(e.node),kindModifiers:BRe(e.node),spans:Tde(e),nameSpan:e.name&&Ede(e.name),childItems:Yt(e.children,WRe)}}function nYe(e){return{text:bde(e.node,e.name),kind:rE(e.node),kindModifiers:BRe(e.node),spans:Tde(e),childItems:Yt(e.children,t)||hde,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:bde(r.node,r.name),kind:rE(r.node),kindModifiers:kP(r.node),spans:Tde(r),childItems:hde,indent:0,bolded:!1,grayed:!1}}}function Tde(e){const t=[Ede(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(Ede(r));return t}function FRe(e){return Tu(e)?Rl(e.name):Sde(e)}function Sde(e){const t=[jf(e.name)];for(;e.body&&e.body.kind===268;)e=e.body,t.push(jf(e.name));return t.join(".")}function zRe(e){return e.body&&mc(e.body)?zRe(e.body):e}function rYe(e){return!e.name||e.name.kind===168}function Ede(e){return e.kind===308?yv(e):Vu(e,jO)}function BRe(e){return e.parent&&e.parent.kind===261&&(e=e.parent),kP(e)}function GRe(e){const{parent:t}=e;if(e.name&&ek(e.name)>0)return HP(Ws(e.name));if(yi(t))return HP(Ws(t.name));if(Nr(t)&&t.operatorToken.kind===64)return nz(t.left).replace(YXe,"");if(Pc(t))return nz(t.name);if(iv(e)&2048)return"default";if(ui(e))return"";if(ea(t)){let r=VRe(t.expression);if(r!==void 0){if(r=HP(r),r.length>mde)return`${r} callback`;const i=HP(Ei(t.arguments,o=>ds(o)||fI(o)?o.getText(jO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function VRe(e){if(Je(e))return e.text;if(qr(e)){const t=VRe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function iYe(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}function HP(e){return e=e.length>mde?e.substring(0,mde)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var Sx={};x(Sx,{addExportsInOldFile:()=>kde,addImportsForMovedSymbols:()=>wde,addNewFileToTsconfig:()=>Lde,addOrRemoveBracesToArrowFunction:()=>ZYe,addTargetFileImports:()=>Ude,containsJsx:()=>Fde,convertArrowFunctionOrFunctionExpression:()=>i$e,convertParamsToDestructuredObject:()=>h$e,convertStringOrTemplateLiteral:()=>L$e,convertToOptionalChainExpression:()=>j$e,createNewFileName:()=>Wde,doChangeNamedToNamespaceOrDefault:()=>KRe,extractSymbol:()=>BDe,generateGetAccessorAndSetAccessor:()=>xQe,getApplicableRefactors:()=>oYe,getEditsForRefactor:()=>aYe,getExistingLocals:()=>Vde,getIdentifierForNode:()=>jde,getNewStatementsAndRemoveFromOldFile:()=>Pde,getStatementsToMove:()=>HO,getUsageInfo:()=>rz,inferFunctionReturnType:()=>RQe,isInImport:()=>sK,isRefactorErrorInfo:()=>Ty,refactorKindBeginsWith:()=>g0,registerRefactor:()=>Lg});var Ade=new Map;function Lg(e,t){Ade.set(e,t)}function oYe(e,t){return Do(Il(Ade.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>g0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function aYe(e,t,r,i){const o=Ade.get(t);return o&&o.getEditsForAction(e,r,i)}var Ide="Convert export",ZJ={name:"Convert default export to named export",description:Ho(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},eK={name:"Convert named export to default export",description:Ho(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};Lg(Ide,{kinds:[ZJ.kind,eK.kind],getAvailableActions:function(t){const r=jRe(t,t.triggerReason==="invoked");if(!r)return ie;if(!Ty(r)){const i=r.wasDefault?ZJ:eK;return[{name:Ide,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:Ide,description:Ho(f.Convert_default_export_to_named_export),actions:[{...ZJ,notApplicableReason:r.error},{...eK,notApplicableReason:r.error}]}]:ie},getEditsForAction:function(t,r){C.assert(r===ZJ.name||r===eK.name,"Unexpected action name");const i=jRe(t);return C.assert(i&&!Ty(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>sYe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function jRe(e,t=!0){const{file:r,program:i}=e,o=vx(e),s=zi(r,o.start),l=s.parent&&iv(s.parent)&32&&t?s.parent:PO(s,r,o);if(!l||!Xi(l.parent)&&!(i_(l.parent)&&Tu(l.parent.parent)))return{error:Ho(f.Could_not_find_export_statement)};const u=i.getTypeChecker(),d=pYe(l.parent,u),_=iv(l)||(dl(l)&&!l.isExportEquals?2080:0),h=!!(_&2048);if(!(_&32)||!h&&d.exports.has("default"))return{error:Ho(f.This_file_already_has_a_default_export)};const y=E=>Je(E)&&u.getSymbolAtLocation(E)?void 0:{error:Ho(f.Can_only_convert_named_export)};switch(l.kind){case 263:case 264:case 265:case 267:case 266:case 268:{const E=l;return E.name?y(E.name)||{exportNode:E,exportName:E.name,wasDefault:h,exportingModuleSymbol:d}:void 0}case 244:{const E=l;if(!(E.declarationList.flags&2)||E.declarationList.declarations.length!==1)return;const A=Qa(E.declarationList.declarations);return A.initializer?(C.assert(!h,"Can't have a default flag here"),y(A.name)||{exportNode:E,exportName:A.name,wasDefault:h,exportingModuleSymbol:d}):void 0}case 278:{const E=l;return E.isExportEquals?void 0:y(E.expression)||{exportNode:E,exportName:E.expression,wasDefault:h,exportingModuleSymbol:d}}default:return}}function sYe(e,t,r,i,o){lYe(e,r,i,t.getTypeChecker()),cYe(t,r,i,o)}function lYe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(dl(r)&&!r.isExportEquals){const l=r.expression,u=URe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([u])))}else o.delete(e,C.checkDefined(lC(r,90),"Should find a default keyword in modifier list"));else{const l=C.checkDefined(lC(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 263:case 264:case 265:o.insertNodeAfter(e,l,L.createToken(90));break;case 244:const u=Qa(r.declarationList.declarations);if(!Qs.Core.isSymbolReferencedInFile(i,s,e)&&!u.type){o.replaceNode(e,r,L.createExportDefault(C.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 267:case 266:case 268:o.deleteModifier(e,l),o.insertNodeAfter(e,r,L.createExportDefault(L.createIdentifier(i.text)));break;default:C.fail(`Unexpected exportNode kind ${r.kind}`)}}}function cYe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){const l=e.getTypeChecker(),u=C.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");Qs.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,d=>{if(r===d)return;const _=d.getSourceFile();t?dYe(_,d,o,r.text):uYe(_,d,o)})}function dYe(e,t,r,i){const{parent:o}=t;switch(o.kind){case 212:r.replaceNode(e,t,L.createIdentifier(i));break;case 277:case 282:{const l=o;r.replaceNode(e,l,xde(i,l.name.text));break}case 274:{const l=o;C.assert(l.name===t,"Import clause name should match provided ref");const u=xde(i,t.text),{namedBindings:d}=l;if(!d)r.replaceNode(e,t,L.createNamedImports([u]));else if(d.kind===275){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});const _=Oa(l.parent.moduleSpecifier)?sJ(l.parent.moduleSpecifier,e):1,h=Jb(void 0,[xde(i,t.text)],l.parent.moduleSpecifier,_);r.insertNodeAfter(e,l.parent,h)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,u);break}case 206:const s=o;r.replaceNode(e,o,L.createImportTypeNode(s.argument,s.attributes,L.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:C.failBadSyntaxKind(o)}}function uYe(e,t,r){const i=t.parent;switch(i.kind){case 212:r.replaceNode(e,t,L.createIdentifier("default"));break;case 277:{const o=L.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 282:{r.replaceNode(e,i,URe("default",i.name.text));break}default:C.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function xde(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function URe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function pYe(e,t){if(Xi(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&IS(r.valueDeclaration)?t.getMergedSymbol(r):r}var Rde="Convert import",tK={0:{name:"Convert namespace import to named imports",description:Ho(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Ho(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Ho(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};Lg(Rde,{kinds:nI(tK).map(e=>e.kind),getAvailableActions:function(t){const r=HRe(t,t.triggerReason==="invoked");if(!r)return ie;if(!Ty(r)){const i=tK[r.convertTo];return[{name:Rde,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?nI(tK).map(i=>({name:Rde,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):ie},getEditsForAction:function(t,r){C.assert(vt(nI(tK),s=>s.name===r),"Unexpected action name");const i=HRe(t);return C.assert(i&&!Ty(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>fYe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}});function HRe(e,t=!0){const{file:r}=e,i=vx(e),o=zi(r,i.start),s=t?Dn(o,Np(Tl,l_)):PO(o,r,i);if(s===void 0||!(Tl(s)||l_(s)))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=iE(s,s.parent,r);if(u&&l>u.getStart())return;const{importClause:d}=s;return d?d.namedBindings?d.namedBindings.kind===275?{convertTo:0,import:d.namedBindings}:qRe(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:Ho(f.Could_not_find_namespace_import_or_named_imports)}:{error:Ho(f.Could_not_find_import_clause)}}function qRe(e,t){return WI(e.getCompilerOptions())&&_Ye(t.parent.moduleSpecifier,e.getTypeChecker())}function fYe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?mYe(e,o,r,i.import,WI(t.getCompilerOptions())):KRe(e,t,r,i.import,i.convertTo===1)}function mYe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Qs.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!X2(y.parent))s=!0;else{const E=JRe(y.parent).text;t.resolveName(E,y,-1,!0)&&u.set(E,!0),C.assert(hYe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const d=new Map;for(const y of l){const E=JRe(y).text;let A=d.get(E);A===void 0&&d.set(E,A=u.has(E)?U1(E,e):E),r.replaceNode(e,y,L.createIdentifier(A))}const _=[];d.forEach((y,E)=>{_.push(L.createImportSpecifier(!1,y===E?void 0:L.createIdentifier(E),L.createIdentifier(y)))});const h=i.parent.parent;if(s&&!o&&Tl(h))r.insertNodeAfter(e,h,XRe(h,void 0,_));else{const y=s?L.createIdentifier(i.name.text):void 0;r.replaceNode(e,i.parent,YRe(y,_))}}function JRe(e){return qr(e)?e.name:e.right}function hYe(e){return qr(e)?e.expression:e.left}function KRe(e,t,r,i,o=qRe(t,i.parent)){const s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:u}=l,d=new Set;i.elements.forEach(R=>{const N=s.getSymbolAtLocation(R.name);N&&d.add(N)});const _=u&&Oa(u)?zO(u.text,99):"module";function h(R){return!!Qs.Core.eachSymbolReferenceInFile(R.name,s,e,N=>{const P=s.resolveName(_,N,-1,!0);return P?d.has(P)?lu(N.parent):!0:!1})}const E=i.elements.some(h)?U1(_,e):_,A=new Set;for(const R of i.elements){const N=R.propertyName||R.name;Qs.Core.eachSymbolReferenceInFile(R.name,s,e,P=>{const k=N.kind===11?L.createElementAccessExpression(L.createIdentifier(E),L.cloneNode(N)):L.createPropertyAccessExpression(L.createIdentifier(E),L.cloneNode(N));Jd(P.parent)?r.replaceNode(e,P.parent,L.createPropertyAssignment(P.text,k)):lu(P.parent)?A.add(R):r.replaceNode(e,P,k)})}if(r.replaceNode(e,i,o?L.createIdentifier(E):L.createNamespaceImport(L.createIdentifier(E))),A.size&&Tl(l)){const R=Do(A.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.cloneNode(N.propertyName),L.cloneNode(N.name)));r.insertNodeAfter(e,i.parent.parent,XRe(l,void 0,R))}}function _Ye(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function XRe(e,t,r){return L.createImportDeclaration(void 0,YRe(t,r),e.moduleSpecifier,void 0)}function YRe(e,t){return L.createImportClause(void 0,e,t&&t.length?L.createNamedImports(t):void 0)}var Dde="Extract type",nK={name:"Extract to type alias",description:Ho(f.Extract_to_type_alias),kind:"refactor.extract.type"},rK={name:"Extract to interface",description:Ho(f.Extract_to_interface),kind:"refactor.extract.interface"},iK={name:"Extract to typedef",description:Ho(f.Extract_to_typedef),kind:"refactor.extract.typedef"};Lg(Dde,{kinds:[nK.kind,rK.kind,iK.kind],getAvailableActions:function(t){const{info:r,affectedTextRange:i}=$Re(t,t.triggerReason==="invoked");return r?Ty(r)?t.preferences.provideRefactorNotApplicableReason?[{name:Dde,description:Ho(f.Extract_type),actions:[{...iK,notApplicableReason:r.error},{...nK,notApplicableReason:r.error},{...rK,notApplicableReason:r.error}]}]:ie:[{name:Dde,description:Ho(f.Extract_type),actions:r.isJS?[iK]:Vn([nK],r.typeElements&&rK)}].map(s=>({...s,actions:s.actions.map(l=>({...l,range:i?{start:{line:ca(t.file,i.pos).line,offset:ca(t.file,i.pos).character},end:{line:ca(t.file,i.end).line,offset:ca(t.file,i.end).character}}:void 0}))})):ie},getEditsForAction:function(t,r){const{file:i}=t,{info:o}=$Re(t);C.assert(o&&!Ty(o),"Expected to find a range to extract");const s=U1("NewType",i),l=Rr.ChangeTracker.with(t,_=>{switch(r){case nK.name:return C.assert(!o.isJS,"Invalid actionName/JS combo"),vYe(_,i,s,o);case iK.name:return C.assert(o.isJS,"Invalid actionName/JS combo"),TYe(_,t,i,s,o);case rK.name:return C.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),bYe(_,i,s,o);default:C.fail("Unexpected action name")}}),u=i.fileName,d=kO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:d}}});function $Re(e,t=!0){const{file:r,startPosition:i}=e,o=wu(r),s=R7(vx(e)),l=s.pos===s.end&&t,u=gYe(r,i,s,l);if(!u||!Ci(u))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=e.program.getTypeChecker(),_=SYe(u,o);if(_===void 0)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const h=EYe(u,_);if(!Ci(h))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const y=[];(pv(h.parent)||QI(h.parent))&&s.end>u.end&&Xr(y,h.parent.types.filter(P=>y7(P,r,s.pos,s.end)));const E=y.length>1?y:h,{typeParameters:A,affectedTextRange:R}=yYe(d,E,_,r);if(!A)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const N=oK(d,E);return{info:{isJS:o,selection:E,enclosingNode:_,typeParameters:A,typeElements:N},affectedTextRange:R}}function gYe(e,t,r,i){const o=[()=>zi(e,t),()=>aC(e,t,()=>!0)];for(const s of o){const l=s(),u=y7(l,e,r.pos,r.end),d=Dn(l,_=>_.parent&&Ci(_)&&!lE(r,_.parent,e)&&(i||u));if(d)return d}}function oK(e,t){if(t){if(No(t)){const r=[];for(const i of t){const o=oK(e,i);if(!o)return;Xr(r,o)}return r}if(QI(t)){const r=[],i=new Set;for(const o of t.types){const s=oK(e,o);if(!s||!s.every(l=>l.name&&Em(i,NO(l.name))))return;Xr(r,s)}return r}else{if(E1(t))return oK(e,t.type);if(Fu(t))return t.members}}}function lE(e,t,r){return IO(e,wa(r.text,t.pos),t.end)}function yYe(e,t,r,i){const o=[],s=rI(t),l={pos:s[0].getStart(i),end:s[s.length-1].end};for(const d of s)if(u(d))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:o,affectedTextRange:l};function u(d){if(Bp(d)){if(Je(d.typeName)){const _=d.typeName,h=e.resolveName(_.text,_,262144,!0);for(const y of h?.declarations||ie)if(cl(y)&&y.getSourceFile()===i){if(y.name.escapedText===_.escapedText&&lE(y,l,i))return!0;if(lE(r,y,i)&&!lE(l,y,i)){Ff(o,y);break}}}}else if(S1(d)){const _=Dn(d,h=>jS(h)&&lE(h.extendsType,d,i));if(!_||!lE(l,_,i))return!0}else if(YI(d)||KM(d)){const _=Dn(d.parent,$o);if(_&&_.type&&lE(_.type,d,i)&&!lE(l,_,i))return!0}else if(VS(d)){if(Je(d.exprName)){const _=e.resolveName(d.exprName.text,d.exprName,111551,!1);if(_?.valueDeclaration&&lE(r,_.valueDeclaration,i)&&!lE(l,_.valueDeclaration,i))return!0}else if(Db(d.exprName.left)&&!lE(l,d.parent,i))return!0}return i&&$I(d)&&ca(i,d.pos).line===ca(i,d.end).line&&Cr(d,1),Jo(d,u)}}function vYe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:d}=Cde(i),_=L.createTypeAliasDeclaration(void 0,r,s.map(h=>L.updateTypeParameterDeclaration(h,h.modifiers,h.name,h.constraint,void 0)),d);e.insertNodeBefore(t,o,Ij(_),!0),e.replaceNodeRange(t,l,u,L.createTypeReferenceNode(r,s.map(h=>L.createTypeReferenceNode(h.name,void 0))),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.ExcludeWhitespace})}function bYe(e,t,r,i){var o;const{enclosingNode:s,typeParameters:l,typeElements:u}=i,d=L.createInterfaceDeclaration(void 0,r,l,void 0,u);bt(d,(o=u[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,Ij(d),!0);const{firstTypeNode:_,lastTypeNode:h}=Cde(i);e.replaceNodeRange(t,_,h,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.ExcludeWhitespace})}function TYe(e,t,r,i,o){var s;rI(o.selection).forEach(R=>{Cr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:d,lastTypeNode:_,newTypeNode:h}=Cde(o),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(h),L.createIdentifier(i)),E=[];qe(u,R=>{const N=jR(R),P=L.createTypeParameterDeclaration(void 0,R.name),k=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&ma(N,r0),[P]);E.push(k)});const A=L.createJSDocComment(void 0,L.createNodeArray(ao(E,[y])));if(gh(l)){const R=l.getStart(r),N=by(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),A,{suffix:N+N+r.text.slice(w7(r.text,R-1),R)})}else e.insertNodeBefore(r,l,A,!0);e.replaceNodeRange(r,d,_,L.createTypeReferenceNode(i,u.map(R=>L.createTypeReferenceNode(R.name,void 0))))}function Cde(e){return No(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:pv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function SYe(e,t){return Dn(e,ji)||(t?Dn(e,gh):void 0)}function EYe(e,t){return Dn(e,r=>r===t?"quit":!!(pv(r.parent)||QI(r.parent)))??e}var aK="Move to file",Nde=Ho(f.Move_to_file),Mde={name:"Move to file",description:Nde,kind:"refactor.move.file"};Lg(aK,{kinds:[Mde.kind],getAvailableActions:function(t,r){const i=t.file,o=HO(t);if(!r)return ie;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){const s=Dn(zi(i,t.startPosition),bx),l=Dn(zi(i,t.endPosition),bx);if(s&&!Xi(s)&&l&&!Xi(l))return ie}if(t.preferences.allowTextChangesInNewFiles&&o){const s={start:{line:ca(i,o.all[0].getStart(i)).line,offset:ca(i,o.all[0].getStart(i)).character},end:{line:ca(i,Ga(o.all).end).line,offset:ca(i,Ga(o.all).end).character}};return[{name:aK,description:Nde,actions:[{...Mde,range:s}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:aK,description:Nde,actions:[{...Mde,notApplicableReason:Ho(f.Selection_is_not_a_valid_statement_or_statements)}]}]:ie},getEditsForAction:function(t,r,i){C.assert(r===aK,"Wrong refactor invoked");const o=C.checkDefined(HO(t)),{host:s,program:l}=t;C.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return xg(u)||g1(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?QRe(Ho(f.Cannot_move_statements_to_the_selected_file)):{edits:Rr.ChangeTracker.with(t,_=>AYe(t,t.file,i.targetFile,t.program,o,_,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:QRe(Ho(f.Cannot_move_to_file_selected_file_is_invalid))}});function QRe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function AYe(e,t,r,i,o,s,l,u){const d=i.getTypeChecker(),_=!l.fileExists(r),h=_?X7(r,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,l):C.checkDefined(i.getSourceFile(r)),y=pu.createImportAdder(t,e.program,e.preferences,e.host),E=pu.createImportAdder(h,e.program,e.preferences,e.host);Pde(t,h,rz(t,o.all,d,_?void 0:Vde(h,o.all,d)),s,o,i,l,u,E,y),_&&Lde(i,s,t.fileName,r,dy(l))}function Pde(e,t,r,i,o,s,l,u,d,_){const h=s.getTypeChecker(),y=u9(e.statements,Jh),E=!LJ(t.fileName,s,l,!!e.commonJsModuleIndicator),A=Up(e,u);wde(r.oldFileImportsFromTargetFile,t.fileName,_,s),xYe(e,o.all,r.unusedImportsFromOldFile,_),_.writeFixes(i,A),IYe(e,o.ranges,i),RYe(i,s,l,e,r.movedSymbols,t.fileName,A),kde(e,r.targetFileImportsFromOldFile,i,E),Ude(e,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,h,s,d),!Tg(t)&&y.length&&i.insertStatementsInNewFile(t.fileName,y,e),d.writeFixes(i,A);const R=LYe(e,o.all,Do(r.oldFileImportsFromTargetFile.keys()),E);Tg(t)&&t.statements.length>0?XYe(i,s,R,t,o):Tg(t)?i.insertNodesAtEndOfFile(t,R,!1):i.insertStatementsInNewFile(t.fileName,d.hasFixes()?[4,...R]:R,e)}function Lde(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=ya(Qr(r,"..",i)),u=WR(s.fileName,l,o),d=s.statements[0]&&ni(s.statements[0].expression,za),_=d&&mn(d.properties,h=>Pc(h)&&Oa(h.name)&&h.name.text==="files");_&&Nd(_.initializer)&&t.insertNodeInListAfter(s,Ga(_.initializer.elements),L.createStringLiteral(u),_.initializer.elements)}function IYe(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function xYe(e,t,r,i){for(const o of e.statements)jn(t,o)||eDe(o,s=>{tDe(s,l=>{r.has(l.symbol)&&i.removeExistingImport(l)})})}function kde(e,t,r,i){const o=sC();t.forEach((s,l)=>{if(l.declarations)for(const u of l.declarations){if(!Gde(u))continue;const d=GYe(u);if(!d)continue;const _=oDe(u);o(_)&&VYe(e,_,d,r,i)}})}function RYe(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const d of t.getSourceFiles())if(d!==i)for(const _ of d.statements)eDe(_,h=>{if(u.getSymbolAtLocation(MYe(h))!==i.symbol)return;const y=P=>{const k=qa(P.parent)?L7(u,P.parent):Rd(u.getSymbolAtLocation(P),u);return!!k&&o.has(k)};kYe(d,h,e,y);const E=ub(ci(bo(i.fileName,t.getCurrentDirectory())),s);if(PR(!t.useCaseSensitiveFileNames())(E,d.fileName)===0)return;const A=vy.getModuleSpecifier(t.getCompilerOptions(),d,d.fileName,E,m0(t,r)),R=FYe(h,OP(A,l),y);R&&e.insertNodeAfter(d,_,R);const N=DYe(h);N&&CYe(e,d,u,o,A,N,h,l)})}function DYe(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===275?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return ni(e.name,Je);default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function CYe(e,t,r,i,o,s,l,u){const d=zO(o,99);let _=!1;const h=[];if(Qs.Core.eachSymbolReferenceInFile(s,r,t,y=>{qr(y.parent)&&(_=_||!!r.resolveName(d,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&h.push(y))}),h.length){const y=_?U1(d,t):d;for(const E of h)e.replaceNode(t,E,L.createIdentifier(y));e.insertNodeAfter(t,l,NYe(l,d,o,u))}}function NYe(e,t,r,i){const o=L.createIdentifier(t),s=OP(r,i);switch(e.kind){case 273:return L.createImportDeclaration(void 0,L.createImportClause(void 0,void 0,L.createNamespaceImport(o)),s,void 0);case 272:return L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(s));case 261:return L.createVariableDeclaration(o,void 0,void 0,ZRe(s));default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function ZRe(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function MYe(e){return e.kind===273?e.moduleSpecifier:e.kind===272?e.moduleReference.expression:e.initializer.arguments[0]}function eDe(e,t){if(Tl(e))Oa(e.moduleSpecifier)&&t(e);else if(Gc(e))hy(e.moduleReference)&&ds(e.moduleReference.expression)&&t(e);else if(cc(e))for(const r of e.declarationList.declarations)r.initializer&&np(r.initializer,!0)&&t(r)}function tDe(e,t){var r,i,o,s,l;if(e.kind===273){if((r=e.importClause)!=null&&r.name&&t(e.importClause),((o=(i=e.importClause)==null?void 0:i.namedBindings)==null?void 0:o.kind)===275&&t(e.importClause.namedBindings),((l=(s=e.importClause)==null?void 0:s.namedBindings)==null?void 0:l.kind)===276)for(const u of e.importClause.namedBindings.elements)t(u)}else if(e.kind===272)t(e);else if(e.kind===261){if(e.name.kind===80)t(e);else if(e.name.kind===207)for(const u of e.name.elements)Je(u.name)&&t(u)}}function wde(e,t,r,i){for(const[o,s]of e){const l=U7(o,Va(i.getCompilerOptions())),u=o.name==="default"&&o.parent?1:0;r.addImportForNonExistentExport(l,t,u,o.flags,s)}}function PYe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function LYe(e,t,r,i){return fi(t,o=>{if(rDe(o)&&!nDe(e,o,i)&&Bde(o,s=>{var l;return r.includes(C.checkDefined((l=ni(s,ch))==null?void 0:l.symbol))})){const s=wYe(_s(o),i);if(s)return s}return _s(o)})}function nDe(e,t,r,i){var o;return r?!ad(t)&&di(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&Ode(t).some(s=>e.symbol.exports.has(Pl(s)))}function kYe(e,t,r,i){if(t.kind===273&&t.importClause){const{name:o,namedBindings:s}=t.importClause;if((!o||i(o))&&(!s||s.kind===276&&s.elements.length!==0&&s.elements.every(l=>i(l.name))))return r.delete(e,t)}tDe(t,o=>{o.name&&Je(o.name)&&i(o.name)&&r.delete(e,o)})}function rDe(e){return C.assert(Xi(e.parent),"Node parent should be a SourceFile"),lDe(e)||cc(e)}function wYe(e,t){return t?[OYe(e)]:WYe(e)}function OYe(e){const t=Rm(e)?ao([L.createModifier(95)],yS(e)):void 0;switch(e.kind){case 263:return L.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:const r=YS(e)?fb(e):void 0;return L.updateClassDeclaration(e,ao(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return L.updateVariableStatement(e,t,e.declarationList);case 268:return L.updateModuleDeclaration(e,t,e.name,e.body);case 267:return L.updateEnumDeclaration(e,t,e.name,e.members);case 266:return L.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return L.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return L.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return C.fail();default:return C.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function WYe(e){return[e,...Ode(e).map(iDe)]}function iDe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function Ode(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return Ei(e.declarationList.declarations,t=>Je(t.name)?t.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return ie;case 245:return C.fail("Can't export an ExpressionStatement");default:return C.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function FYe(e,t,r){switch(e.kind){case 273:{const i=e.importClause;if(!i)return;const o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&zYe(i.namedBindings,r);return o||s?L.createImportDeclaration(void 0,L.createImportClause(i.phaseModifier,o,s),_s(t),void 0):void 0}case 272:return r(e.name)?e:void 0;case 261:{const i=BYe(e.name,r);return i?PYe(i,e.type,ZRe(t),e.parent.flags):void 0}default:return C.assertNever(e,`Unexpected import kind ${e.kind}`)}}function zYe(e,t){if(e.kind===275)return t(e.name)?e:void 0;{const r=e.elements.filter(i=>t(i.name));return r.length?L.createNamedImports(r):void 0}}function BYe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{const r=e.elements.filter(i=>i.propertyName||!Je(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function GYe(e){return ad(e)?ni(e.expression.left.name,Je):ni(e.name,Je)}function oDe(e){switch(e.kind){case 261:return e.parent.parent;case 209:return oDe(ma(e.parent.parent,t=>yi(t)||qa(t)));default:return e}}function VYe(e,t,r,i,o){if(!nDe(e,t,o,r))if(o)ad(t)||i.insertExportModifier(e,t);else{const s=Ode(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(iDe))}}function Wde(e,t,r,i){const o=t.getTypeChecker();if(i){const s=rz(e,i.all,o),l=ci(e.fileName),u=NM(e.fileName);return Qr(l,qYe(JYe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function jYe(e){const{file:t}=e,r=R7(vx(e)),{statements:i}=t;let o=ho(i,_=>_.end>r.pos);if(o===-1)return;const s=i[o],l=cDe(t,s);l&&(o=l.start);let u=ho(i,_=>_.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const d=cDe(t,i[u]);return d&&(u=d.end),{toMove:i.slice(o,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function HO(e){const t=jYe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return JB(o,UYe,(l,u)=>{for(let d=l;d!!(t.transformFlags&2))}function UYe(e){return!HYe(e)&&!Jh(e)}function HYe(e){switch(e.kind){case 273:return!0;case 272:return!di(e,32);case 244:return e.declarationList.declarations.every(t=>!!t.initializer&&np(t.initializer,!0));default:return!1}}function rz(e,t,r,i=new Set,o){var s;const l=new Set,u=new Map,d=new Map,_=E(Fde(t));_&&u.set(_,[!1,ni((s=_.declarations)==null?void 0:s[0],A=>xu(A)||Jm(A)||Ng(A)||Gc(A)||qa(A)||yi(A))]);for(const A of t)Bde(A,R=>{l.add(C.checkDefined(ad(R)?r.getSymbolAtLocation(R.expression.left):R.symbol,"Need a symbol here"))});const h=new Set;for(const A of t)zde(A,r,o,(R,N)=>{if(!vt(R.declarations))return;if(i.has(Rd(R,r))){h.add(R);return}const P=mn(R.declarations,sK);if(P){const k=u.get(R);u.set(R,[(k===void 0||k)&&N,ni(P,F=>xu(F)||Jm(F)||Ng(F)||Gc(F)||qa(F)||yi(F))])}else!l.has(R)&&Hn(R.declarations,k=>Gde(k)&&KYe(k)===e)&&d.set(R,N)});for(const A of u.keys())h.add(A);const y=new Map;for(const A of e.statements)jn(t,A)||(_&&A.transformFlags&2&&h.delete(_),zde(A,r,o,(R,N)=>{l.has(R)&&y.set(R,N),h.delete(R)}));return{movedSymbols:l,targetFileImportsFromOldFile:d,oldFileImportsFromTargetFile:y,oldImportsNeededByTargetFile:u,unusedImportsFromOldFile:h};function E(A){if(A===void 0)return;const R=r.getJsxNamespace(A),N=r.resolveName(R,A,1920,!0);return N&&vt(N.declarations,sK)?N:void 0}}function qYe(e,t,r,i){let o=e;for(let s=1;;s++){const l=Qr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function JYe(e,t){return yg(e,cJ)||yg(t,cJ)||"newFile"}function zde(e,t,r,i){e.forEachChild(function o(s){if(Je(s)&&!w_(s)){if(r&&!ip(r,s))return;const l=t.getSymbolAtLocation(s);l&&i(l,JT(s))}else s.forEachChild(o)})}function Bde(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return Ln(e.declarationList.declarations,r=>sDe(r.name,t));case 245:{const{expression:r}=e;return Nr(r)&&lc(r)===1?t(e):void 0}}}function sK(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return aDe(e);case 209:return yi(e.parent.parent)&&aDe(e.parent.parent);default:return!1}}function aDe(e){return Xi(e.parent.parent.parent)&&!!e.initializer&&np(e.initializer,!0)}function Gde(e){return lDe(e)&&Xi(e.parent)||yi(e)&&Xi(e.parent.parent.parent)}function KYe(e){return yi(e)?e.parent.parent.parent:e.parent}function sDe(e,t){switch(e.kind){case 80:return t(ma(e.parent,r=>yi(r)||qa(r)));case 208:case 207:return Ln(e.elements,r=>Xc(r)?void 0:sDe(r.name,t));default:return C.assertNever(e,`Unexpected name kind ${e.kind}`)}}function lDe(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function XYe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const _=t.getTypeChecker(),h=new Map;for(const y of o.all)rDe(y)&&di(y,32)&&Bde(y,E=>{var A;const R=ch(E)?(A=u.get(E.symbol.escapedName))==null?void 0:A.declarations:void 0,N=Ln(R,P=>hc(P)?P:lu(P)?ni(P.parent.parent,hc):void 0);N&&N.moduleSpecifier&&h.set(N,(h.get(N)||new Set).add(E))});for(const[y,E]of Do(h))if(y.exportClause&&$f(y.exportClause)&&Qe(y.exportClause.elements)){const A=y.exportClause.elements,R=Un(A,N=>mn(Rd(N.symbol,_).declarations,P=>Gde(P)&&E.has(P))===void 0);if(Qe(R)===0){e.deleteNode(i,y),l.add(y);continue}Qe(R)hc(_)&&!!_.moduleSpecifier&&!l.has(_));d?e.insertNodesBefore(i,d,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function cDe(e,t){if(Ls(t)){const r=t.symbol.declarations;if(r===void 0||Qe(r)<=1||!jn(r,t))return;const i=r[0],o=r[Qe(r)-1],s=Ei(r,d=>zn(d)===e&&ji(d)?d:void 0),l=ho(e.statements,d=>d.end>=o.end),u=ho(e.statements,d=>d.end>=i.end);return{toMove:s,start:u,end:l}}}function Vde(e,t,r){const i=new Set;for(const o of e.imports){const s=aM(o);if(Tl(s)&&s.importClause&&s.importClause.namedBindings&&o_(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Rd(u,r))}if(yk(s.parent)&&hf(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(Rd(u,r))}}for(const o of t)zde(o,r,void 0,s=>{const l=Rd(s,r);l.valueDeclaration&&zn(l.valueDeclaration).path===e.path&&i.add(l)});return i}function Ty(e){return e.error!==void 0}function g0(e,t){return t?e.substr(0,t.length)===t:!0}function jde(e,t,r,i){return qr(e)&&!ui(t)&&!r.resolveName(e.name.text,e,111551,!1)&&!Qi(e.name)&&!$E(e.name)?e.name.text:U1(ui(t)?"newProperty":"newLocal",i)}function Ude(e,t,r,i,o,s){t.forEach(([l,u],d)=>{var _;const h=Rd(d,i);i.isUnknownSymbol(h)?s.addVerbatimImport(C.checkDefined(u??Dn((_=d.declarations)==null?void 0:_[0],ane))):h.parent===void 0?(C.assert(u!==void 0,"expected module symbol to have a declaration"),s.addImportForModuleSymbol(d,l,u)):s.addImportFromExportedSymbol(h,l,u)}),wde(r,e.fileName,s,o)}var iz="Inline variable",Hde=Ho(f.Inline_variable),qde={name:iz,description:Hde,kind:"refactor.inline.variable"};Lg(iz,{kinds:[qde.kind],getAvailableActions(e){const{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=dDe(t,o,s==="invoked",r);return l?Sx.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:iz,description:Hde,actions:[{...qde,notApplicableReason:l.error}]}]:ie:[{name:iz,description:Hde,actions:[qde]}]:ie},getEditsForAction(e,t){C.assert(t===iz,"Unexpected refactor invoked");const{file:r,program:i,startPosition:o}=e,s=dDe(r,o,!0,i);if(!s||Sx.isRefactorErrorInfo(s))return;const{references:l,declaration:u,replacement:d}=s;return{edits:Rr.ChangeTracker.with(e,h=>{for(const y of l){const E=Oa(d)&&Je(y)&&Um(y.parent);E&&ND(E)&&!$T(E.parent.parent)?$Ye(h,r,E,d):h.replaceNode(r,y,YYe(y,d))}h.delete(r,u)})}}});function dDe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=sp(e,t),d=u.parent;if(Je(u)){if(Kk(d)&&QN(d)&&Je(d.name)){if(((o=l.getMergedSymbol(d.symbol).declarations)==null?void 0:o.length)!==1)return{error:Ho(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(uDe(d))return;const _=pDe(d,l,e);return _&&{references:_,declaration:d,replacement:d.initializer}}if(r){let _=l.resolveName(u.text,u,111551,!1);if(_=_&&l.getMergedSymbol(_),((s=_?.declarations)==null?void 0:s.length)!==1)return{error:Ho(f.Variables_with_multiple_declarations_cannot_be_inlined)};const h=_.declarations[0];if(!Kk(h)||!QN(h)||!Je(h.name)||uDe(h))return;const y=pDe(h,l,e);return y&&{references:y,declaration:h,replacement:h.initializer}}return{error:Ho(f.Could_not_find_variable_to_inline)}}}function uDe(e){const t=ma(e.parent.parent,cc);return vt(t.modifiers,JI)}function pDe(e,t,r){const i=[],o=Qs.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Qs.isWriteAccessForReference(s)&&!Jd(s.parent)||lu(s.parent)||dl(s.parent)||VS(s.parent)||O2(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function YYe(e,t){t=_s(t);const{parent:r}=e;return St(r)&&(mM(t)QYe(t.file,t.program,i,s,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function QYe(e,t,r,i,o,s,l){const u=t.getTypeChecker(),d=rz(e,r.all,u),_=Wde(e,t,o,r),h=X7(_,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,o),y=pu.createImportAdder(e,s.program,s.preferences,s.host),E=pu.createImportAdder(h,s.program,s.preferences,s.host);Pde(e,h,d,i,r,t,o,l,E,y),Lde(t,i,e.fileName,_,dy(o))}var ZYe={},Xde="Convert overload list to single signature",fDe=Ho(f.Convert_overload_list_to_single_signature),mDe={name:Xde,description:fDe,kind:"refactor.rewrite.function.overloadList"};Lg(Xde,{kinds:[mDe.kind],getEditsForAction:t$e,getAvailableActions:e$e});function e$e(e){const{file:t,startPosition:r,program:i}=e;return _De(t,r,i)?[{name:Xde,description:fDe,actions:[mDe]}]:ie}function t$e(e){const{file:t,startPosition:r,program:i}=e,o=_De(t,r,i);if(!o)return;const s=i.getTypeChecker(),l=o[o.length-1];let u=l;switch(l.kind){case 174:{u=L.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,_(o),l.type);break}case 175:{u=L.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,_(o),l.type,l.body);break}case 180:{u=L.updateCallSignature(l,l.typeParameters,_(o),l.type);break}case 177:{u=L.updateConstructorDeclaration(l,l.modifiers,_(o),l.body);break}case 181:{u=L.updateConstructSignature(l,l.typeParameters,_(o),l.type);break}case 263:{u=L.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,_(o),l.type,l.body);break}default:return C.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(u===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],u)})};function _(E){const A=E[E.length-1];return Ls(A)&&A.body&&(E=E.slice(0,E.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(Yt(E,h)))])}function h(E){const A=Yt(E.parameters,y);return Cr(L.createTupleTypeNode(A),vt(A,R=>!!Qe(ED(R)))?0:1)}function y(E){C.assert(Je(E.name));const A=bt(L.createNamedTupleMember(E.dotDotDotToken,E.name,E.questionToken,E.type||L.createKeywordTypeNode(133)),E),R=E.symbol&&E.symbol.getDocumentationComment(s);if(R){const N=KO(R);N.length&&XT(A,[{text:`* ${N.split(` `).map(P=>` * ${P}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return A}}function hDe(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function _De(e,t,r){const i=zi(e,t),o=Dn(i,hDe);if(!o||Ls(o)&&o.body&&oC(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Qe(u)<=1||!Hn(u,E=>zn(E)===e)||!hDe(u[0]))return;const d=u[0].kind;if(!Hn(u,E=>E.kind===d))return;const _=u;if(vt(_,E=>!!E.typeParameters||vt(E.parameters,A=>!!A.modifiers||!Je(A.name))))return;const h=Ei(_,E=>s.getSignatureFromDeclaration(E));if(Qe(h)!==Qe(u))return;const y=s.getReturnTypeOfSignature(h[0]);if(Hn(h,E=>s.getReturnTypeOfSignature(E)===y))return _}var Yde="Add or remove braces in an arrow function",gDe=Ho(f.Add_or_remove_braces_in_an_arrow_function),lK={name:"Add braces to arrow function",description:Ho(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},az={name:"Remove braces from arrow function",description:Ho(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};Lg(Yde,{kinds:[az.kind],getEditsForAction:r$e,getAvailableActions:n$e});function n$e(e){const{file:t,startPosition:r,triggerReason:i}=e,o=yDe(t,r,i==="invoked");return o?Ty(o)?e.preferences.provideRefactorNotApplicableReason?[{name:Yde,description:gDe,actions:[{...lK,notApplicableReason:o.error},{...az,notApplicableReason:o.error}]}]:ie:[{name:Yde,description:gDe,actions:[o.addBraces?lK:az]}]:ie}function r$e(e,t){const{file:r,startPosition:i}=e,o=yDe(r,i);C.assert(o&&!Ty(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let d;if(t===lK.name){const h=L.createReturnStatement(s);d=L.createBlock([h],!0),uC(s,h,r,3,!0)}else if(t===az.name&&l){const h=s||L.createVoidZero();d=O7(h)?L.createParenthesizedExpression(h):h,wO(l,d,r,3,!1),uC(l,d,r,3,!1),BP(l,d,r,3,!1)}else C.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,h=>{h.replaceNode(r,u.body,d)})}}function yDe(e,t,r=!0,i){const o=zi(e,t),s=pf(o);if(!s)return{error:Ho(f.Could_not_find_a_containing_arrow_function)};if(!$s(s))return{error:Ho(f.Containing_function_is_not_an_arrow_function)};if(!(!ip(s,o)||ip(s.body,o)&&!r)){if(g0(lK.kind,i)&&St(s.body))return{func:s,addBraces:!0,expression:s.body};if(g0(az.kind,i)&&ta(s.body)&&s.body.statements.length===1){const l=Qa(s.body.statements);if(of(l)){const u=l.expression&&za(gD(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var i$e={},vDe="Convert arrow function or function expression",o$e=Ho(f.Convert_arrow_function_or_function_expression),sz={name:"Convert to anonymous function",description:Ho(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},lz={name:"Convert to named function",description:Ho(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},cz={name:"Convert to arrow function",description:Ho(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};Lg(vDe,{kinds:[sz.kind,lz.kind,cz.kind],getEditsForAction:s$e,getAvailableActions:a$e});function a$e(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=TDe(t,r,i);if(!s)return ie;const{selectedVariableDeclaration:l,func:u}=s,d=[],_=[];if(g0(lz.kind,o)){const h=l||$s(u)&&yi(u.parent)?void 0:Ho(f.Could_not_convert_to_named_function);h?_.push({...lz,notApplicableReason:h}):d.push(lz)}if(g0(sz.kind,o)){const h=!l&&$s(u)?void 0:Ho(f.Could_not_convert_to_anonymous_function);h?_.push({...sz,notApplicableReason:h}):d.push(sz)}if(g0(cz.kind,o)){const h=qs(u)?void 0:Ho(f.Could_not_convert_to_arrow_function);h?_.push({...cz,notApplicableReason:h}):d.push(cz)}return[{name:vDe,description:o$e,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?_:d}]}function s$e(e,t){const{file:r,startPosition:i,program:o}=e,s=TDe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case sz.name:u.push(...u$e(e,l));break;case lz.name:const d=d$e(l);if(!d)return;u.push(...p$e(e,l,d));break;case cz.name:if(!qs(l))return;u.push(...f$e(e,l));break;default:return C.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function bDe(e){let t=!1;return e.forEachChild(function r(i){if(iC(i)){t=!0;return}!ui(i)&&!rc(i)&&!qs(i)&&Jo(i,r)}),t}function TDe(e,t,r){const i=zi(e,t),o=r.getTypeChecker(),s=c$e(e,o,i.parent);if(s&&!bDe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=pf(i);if(l&&(qs(l)||$s(l))&&!ip(l.body,i)&&!bDe(l.body)&&!o.containsArgumentsReference(l))return qs(l)&&EDe(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function l$e(e){return yi(e)||gd(e)&&e.declarations.length===1}function c$e(e,t,r){if(!l$e(r))return;const o=(yi(r)?r:Qa(r.declarations)).initializer;if(o&&($s(o)||qs(o)&&!EDe(e,t,o)))return o}function SDe(e){if(St(e)){const t=L.createReturnStatement(e),r=e.getSourceFile();return bt(t,e),zp(t),wO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function d$e(e){const t=e.parent;if(!yi(t)||!QN(t))return;const r=t.parent,i=r.parent;if(!(!gd(r)||!cc(i)||!Je(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function u$e(e,t){const{file:r}=e,i=SDe(t.body),o=L.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return Rr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function p$e(e,t,r){const{file:i}=e,o=SDe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:d}=r;yj(u);const _=kT(s)&32|Ud(t),h=L.createModifiersFromModifierFlags(_),y=L.createFunctionDeclaration(Qe(h)?h:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?Rr.ChangeTracker.with(e,E=>E.replaceNode(i,u,y)):Rr.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,u,y)})}function f$e(e,t){const{file:r}=e,o=t.body.statements[0];let s;m$e(t.body,o)?(s=o.expression,zp(s),j1(o,s)):s=t.body;const l=L.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,L.createToken(39),s);return Rr.ChangeTracker.with(e,u=>u.replaceNode(r,t,l))}function m$e(e,t){return e.statements.length===1&&of(t)&&!!t.expression}function EDe(e,t,r){return!!r.name&&Qs.Core.isSymbolReferencedInFile(r.name,t,e)}var h$e={},cK="Convert parameters to destructured object",_$e=1,ADe=Ho(f.Convert_parameters_to_destructured_object),IDe={name:cK,description:ADe,kind:"refactor.rewrite.parameters.toDestructured"};Lg(cK,{kinds:[IDe.kind],getEditsForAction:y$e,getAvailableActions:g$e});function g$e(e){const{file:t,startPosition:r}=e;return wu(t)||!DDe(t,r,e.program.getTypeChecker())?ie:[{name:cK,description:ADe,actions:[IDe]}]}function y$e(e,t){C.assert(t===cK,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=DDe(r,i,o.getTypeChecker());if(!u||!s)return;const d=b$e(u,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,h=>v$e(r,o,l,h,u,d))}:{edits:[]}}function v$e(e,t,r,i,o,s){const l=s.signature,u=Yt(PDe(o,t,r),h=>_s(h));if(l){const h=Yt(PDe(l,t,r),y=>_s(y));_(l,h)}_(o,u);const d=vN(s.functionCalls,(h,y)=>Hs(h.pos,y.pos));for(const h of d)if(h.arguments&&h.arguments.length){const y=_s(N$e(o,h.arguments),!0);i.replaceNodeRange(zn(h),Qa(h.arguments),Ga(h.arguments),y,{leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}function _(h,y){i.replaceNodeRangeWithNodes(e,Qa(h.parameters),Ga(h.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}}function b$e(e,t,r){const i=P$e(e),o=kl(e)?M$e(e):[],s=fS([...i,...o],sb),l=t.getTypeChecker(),u=fi(s,y=>Qs.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),d=_(u);return Hn(d.declarations,y=>jn(s,y))||(d.valid=!1),d;function _(y){const E={accessExpressions:[],typeUsages:[]},A={functionCalls:[],declarations:[],classReferences:E,valid:!0},R=Yt(i,h),N=Yt(o,h),P=kl(e),k=Yt(i,F=>$de(F,l));for(const F of y){if(F.kind===Qs.EntryKind.Span){A.valid=!1;continue}if(jn(k,h(F.node))){if(A$e(F.node.parent)){A.signature=F.node.parent;continue}const G=RDe(F);if(G){A.functionCalls.push(G);continue}}const W=$de(F.node,l);if(W&&jn(k,W)){const G=Qde(F);if(G){A.declarations.push(G);continue}}if(jn(R,h(F.node))||MP(F.node)){if(xDe(F))continue;const j=Qde(F);if(j){A.declarations.push(j);continue}const J=RDe(F);if(J){A.functionCalls.push(J);continue}}if(P&&jn(N,h(F.node))){if(xDe(F))continue;const j=Qde(F);if(j){A.declarations.push(j);continue}const J=T$e(F);if(J){E.accessExpressions.push(J);continue}if(Mc(e.parent)){const Z=S$e(F);if(Z){E.typeUsages.push(Z);continue}}}A.valid=!1}return A}function h(y){const E=l.getSymbolAtLocation(y);return E&&bJ(E,l)}}function $de(e,t){const r=XO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(Bl(o)&6))return o}}function xDe(e){const t=e.node;if(xu(t.parent)||Jm(t.parent)||Gc(t.parent)||Ng(t.parent)||lu(t.parent)||dl(t.parent))return t}function Qde(e){if(id(e.node.parent))return e.node}function RDe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 214:case 215:const i=ni(r,Uh);if(i&&i.expression===t)return i;break;case 212:const o=ni(r,qr);if(o&&o.parent&&o.name===t){const l=ni(o.parent,Uh);if(l&&l.expression===o)return l}break;case 213:const s=ni(r,zs);if(s&&s.parent&&s.argumentExpression===t){const l=ni(s.parent,Uh);if(l&&l.expression===s)return l}break}}}function T$e(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 212:const i=ni(r,qr);if(i&&i.expression===t)return i;break;case 213:const o=ni(r,zs);if(o&&o.expression===t)return o;break}}}function S$e(e){const t=e.node;if(G1(t)===2||P6(t.parent))return t}function DDe(e,t,r){const i=aC(e,t),o=Ene(i);if(!E$e(i)&&o&&I$e(o,r)&&ip(o,i)&&!(o.body&&ip(o.body,i)))return o}function E$e(e){const t=Dn(e,JR);if(t){const r=Dn(t,i=>!JR(i));return!!r&&Ls(r)}return!1}function A$e(e){return qm(e)&&(yd(e.parent)||Fu(e.parent))}function I$e(e,t){var r;if(!x$e(e.parameters,t))return!1;switch(e.kind){case 263:return CDe(e)&&dz(e,t);case 175:if(za(e.parent)){const i=$de(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&dz(e,t)}return dz(e,t);case 177:return Mc(e.parent)?CDe(e.parent)&&dz(e,t):NDe(e.parent.parent)&&dz(e,t);case 219:case 220:return NDe(e.parent)}return!1}function dz(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function CDe(e){return e.name?!0:!!lC(e,90)}function x$e(e,t){return D$e(e)>=_$e&&Hn(e,r=>R$e(r,t))}function R$e(e,t){if(M_(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Je(e.name)}function NDe(e){return yi(e)&&ZR(e)&&Je(e.name)&&!e.type}function Zde(e){return e.length>0&&iC(e[0].name)}function D$e(e){return Zde(e)?e.length-1:e.length}function MDe(e){return Zde(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function C$e(e,t){return Je(t)&&jf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function N$e(e,t){const r=MDe(e.parameters),i=M_(Ga(r)),o=i?t.slice(0,r.length-1):t,s=Yt(o,(u,d)=>{const _=dK(r[d]),h=C$e(_,u);return zp(h.name),Pc(h)&&zp(h.initializer),j1(u,h),h});if(i&&t.length>=r.length){const u=t.slice(r.length-1),d=L.createPropertyAssignment(dK(Ga(r)),L.createArrayLiteralExpression(u));s.push(d)}return L.createObjectLiteralExpression(s,!1)}function PDe(e,t,r){const i=t.getTypeChecker(),o=MDe(e.parameters),s=Yt(o,h),l=L.createObjectBindingPattern(s),u=y(o);let d;Hn(o,R)&&(d=L.createObjectLiteralExpression());const _=L.createParameterDeclaration(void 0,void 0,l,void 0,u,d);if(Zde(e.parameters)){const N=e.parameters[0],P=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return zp(P.name),j1(N.name,P.name),N.type&&(zp(P.type),j1(N.type,P.type)),L.createNodeArray([P,_])}return L.createNodeArray([_]);function h(N){const P=L.createBindingElement(void 0,void 0,dK(N),M_(N)&&R(N)?L.createArrayLiteralExpression():N.initializer);return zp(P),N.initializer&&P.initializer&&j1(N.initializer,P.initializer),P}function y(N){const P=Yt(N,E);return t_(L.createTypeLiteralNode(P),1)}function E(N){let P=N.type;!P&&(N.initializer||M_(N))&&(P=A(N));const k=L.createPropertySignature(void 0,dK(N),R(N)?L.createToken(58):N.questionToken,P);return zp(k),j1(N.name,k.name),N.type&&k.type&&j1(N.type,k.type),k}function A(N){const P=i.getTypeAtLocation(N);return VP(P,N,t,r)}function R(N){if(M_(N)){const P=i.getTypeAtLocation(N);return!i.isTupleType(P)}return i.isOptionalParameter(N)}}function dK(e){return jf(e.name)}function M$e(e){switch(e.parent.kind){case 264:const t=e.parent;return t.name?[t.name]:[C.checkDefined(lC(t,90),"Nameless class declaration should be a default export")];case 232:const i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function P$e(e){switch(e.kind){case 263:return e.name?[e.name]:[C.checkDefined(lC(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:const r=C.checkDefined(Is(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===232?[e.parent.parent.name,r]:[r];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return C.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var L$e={},eue="Convert to template string",tue=Ho(f.Convert_to_template_string),nue={name:eue,description:tue,kind:"refactor.rewrite.string"};Lg(eue,{kinds:[nue.kind],getEditsForAction:w$e,getAvailableActions:k$e});function k$e(e){const{file:t,startPosition:r}=e,i=LDe(t,r),o=rue(i),s=Oa(o),l={name:eue,description:tue,actions:[]};return s&&e.triggerReason!=="invoked"?ie:k_(o)&&(s||Nr(o)&&iue(o).isValidConcatenation)?(l.actions.push(nue),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...nue,notApplicableReason:Ho(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):ie}function LDe(e,t){const r=zi(e,t),i=rue(r);return!iue(i).isValidConcatenation&&zu(i.parent)&&Nr(i.parent.parent)?i.parent.parent:r}function w$e(e,t){const{file:r,startPosition:i}=e,o=LDe(r,i);return t===tue?{edits:O$e(e,o)}:C.fail("invalid action")}function O$e(e,t){const r=rue(t),i=e.file,o=G$e(iue(r),i),s=pb(i.text,r.end);if(s){const l=s[s.length-1],u={pos:s[0].pos,end:l.end};return Rr.ChangeTracker.with(e,d=>{d.deleteRange(i,u),d.replaceNode(i,r,o)})}else return Rr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function W$e(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function rue(e){return Dn(e.parent,r=>{switch(r.kind){case 212:case 213:return!1;case 229:case 227:return!(Nr(r.parent)&&W$e(r.parent));default:return"quit"}})||e}function iue(e){const t=l=>{if(!Nr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:Oa(l)||T1(l)};const{nodes:u,operators:d,hasString:_,validOperators:h}=t(l.left);if(!(_||Oa(l.right)||D4(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};const y=l.operatorToken.kind===40,E=h&&y;return u.push(l.right),d.push(l.operatorToken),{nodes:u,operators:d,hasString:!0,validOperators:E}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}var F$e=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){const s=i.shift();BP(e[s],o,t,3,!1),r(s,o)}};function B$e(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function kDe(e){const t=qI(e)||Rj(e)?-2:-1;return Rl(e).slice(1,t)}function wDe(e,t){const r=[];let i="",o="";for(;e{ODe(W);const j=G===E.templateSpans.length-1,J=W.literal.text+(j?R:""),Z=kDe(W.literal)+(j?N:"");return L.createTemplateSpan(W.expression,k&&j?L.createTemplateTail(J,Z):L.createTemplateMiddle(J,Z))});_.push(...F)}else{const F=k?L.createTemplateTail(R,N):L.createTemplateMiddle(R,N);o(P,F),_.push(L.createTemplateSpan(E,F))}}return L.createTemplateExpression(h,_)}function ODe(e){const t=e.getSourceFile();BP(e,e.expression,t,3,!1),wO(e.expression,e.expression,t,3,!1)}function V$e(e){return zu(e)&&(ODe(e),e=e.expression),e}var j$e={},uK="Convert to optional chain expression",oue=Ho(f.Convert_to_optional_chain_expression),aue={name:uK,description:oue,kind:"refactor.rewrite.expression.optionalChain"};Lg(uK,{kinds:[aue.kind],getEditsForAction:H$e,getAvailableActions:U$e});function U$e(e){const t=WDe(e,e.triggerReason==="invoked");return t?Ty(t)?e.preferences.provideRefactorNotApplicableReason?[{name:uK,description:oue,actions:[{...aue,notApplicableReason:t.error}]}]:ie:[{name:uK,description:oue,actions:[aue]}]:ie}function H$e(e,t){const r=WDe(e);return C.assert(r&&!Ty(r),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(e,o=>Z$e(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function pK(e){return Nr(e)||I1(e)}function q$e(e){return ad(e)||of(e)||cc(e)}function fK(e){return pK(e)||q$e(e)}function WDe(e,t=!0){const{file:r,program:i}=e,o=vx(e),s=o.length===0;if(s&&!t)return;const l=zi(r,o.start),u=LP(r,o.start+o.length),d=sc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),_=s?$$e(l):Y$e(l,d),h=_&&fK(_)?Q$e(_):void 0;if(!h)return{error:Ho(f.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return I1(h)?J$e(h,y):K$e(h)}function J$e(e,t){const r=e.condition,i=lue(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Ho(f.Could_not_find_convertible_access_expression)};if((qr(r)||Je(r))&&sue(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(Nr(r)){const o=FDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}}function K$e(e){if(e.operatorToken.kind!==56)return{error:Ho(f.Can_only_convert_logical_AND_access_chains)};const t=lue(e.right);if(!t)return{error:Ho(f.Could_not_find_convertible_access_expression)};const r=FDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}function FDe(e,t){const r=[];for(;Nr(t)&&t.operatorToken.kind===56;){const o=sue(us(e),us(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=sue(e,t);return i&&r.push(i),r.length>0?r:void 0}function sue(e,t){if(!(!Je(t)&&!qr(t)&&!zs(t)))return X$e(e,t)?t:void 0}function X$e(e,t){for(;(ea(e)||qr(e)||zs(e))&&qO(e)!==qO(t);)e=e.expression;for(;qr(e)&&qr(t)||zs(e)&&zs(t);){if(qO(e)!==qO(t))return!1;e=e.expression,t=t.expression}return Je(e)&&Je(t)&&e.getText()===t.getText()}function qO(e){if(Je(e)||ff(e))return e.getText();if(qr(e))return qO(e.name);if(zs(e))return qO(e.argumentExpression)}function Y$e(e,t){for(;e.parent;){if(fK(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function $$e(e){for(;e.parent;){if(fK(e)&&!fK(e.parent))return e;e=e.parent}}function Q$e(e){if(pK(e))return e;if(cc(e)){const t=xI(e),r=t?.initializer;return r&&pK(r)?r:void 0}return e.expression&&pK(e.expression)?e.expression:void 0}function lue(e){if(e=us(e),Nr(e))return lue(e.left);if((qr(e)||zs(e)||ea(e))&&!iu(e))return e}function zDe(e,t,r){if(qr(t)||zs(t)||ea(t)){const i=zDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),ea(t))return s?L.createCallChain(i,L.createToken(29),t.typeArguments,t.arguments):L.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(qr(t))return s?L.createPropertyAccessChain(i,L.createToken(29),t.name):L.createPropertyAccessChain(i,t.questionDotToken,t.name);if(zs(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function Z$e(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,d=l[l.length-1],_=zDe(t,s,l);_&&(qr(_)||zs(_)||ea(_))&&(Nr(u)?r.replaceNodeRange(e,d,s,_):I1(u)&&r.replaceNode(e,u,L.createBinaryExpression(_,L.createToken(61),u.whenFalse)))}var BDe={};x(BDe,{Messages:()=>Pd,RangeFacts:()=>jDe,getRangeToExtract:()=>cue,getRefactorActionsToExtractSymbol:()=>GDe,getRefactorEditsToExtractSymbol:()=>VDe});var qP="Extract Symbol",JP={name:"Extract Constant",description:Ho(f.Extract_constant),kind:"refactor.extract.constant"},KP={name:"Extract Function",description:Ho(f.Extract_function),kind:"refactor.extract.function"};Lg(qP,{kinds:[JP.kind,KP.kind],getEditsForAction:VDe,getAvailableActions:GDe});function GDe(e){const t=e.kind,r=cue(e.file,vx(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return ie;const N=[];return g0(KP.kind,t)&&N.push({name:qP,description:KP.description,actions:[{...KP,notApplicableReason:R(r.errors)}]}),g0(JP.kind,t)&&N.push({name:qP,description:JP.description,actions:[{...JP,notApplicableReason:R(r.errors)}]}),N}const{affectedTextRange:o,extractions:s}=oQe(i,e);if(s===void 0)return ie;const l=[],u=new Map;let d;const _=[],h=new Map;let y,E=0;for(const{functionExtraction:N,constantExtraction:P}of s){if(g0(KP.kind,t)){const k=N.description;N.errors.length===0?u.has(k)||(u.set(k,!0),l.push({description:k,name:`function_scope_${E}`,kind:KP.kind,range:{start:{line:ca(e.file,o.pos).line,offset:ca(e.file,o.pos).character},end:{line:ca(e.file,o.end).line,offset:ca(e.file,o.end).character}}})):d||(d={description:k,name:`function_scope_${E}`,notApplicableReason:R(N.errors),kind:KP.kind})}if(g0(JP.kind,t)){const k=P.description;P.errors.length===0?h.has(k)||(h.set(k,!0),_.push({description:k,name:`constant_scope_${E}`,kind:JP.kind,range:{start:{line:ca(e.file,o.pos).line,offset:ca(e.file,o.pos).character},end:{line:ca(e.file,o.end).line,offset:ca(e.file,o.end).character}}})):y||(y={description:k,name:`constant_scope_${E}`,notApplicableReason:R(P.errors),kind:JP.kind})}E++}const A=[];return l.length?A.push({name:qP,description:Ho(f.Extract_function),actions:l}):e.preferences.provideRefactorNotApplicableReason&&d&&A.push({name:qP,description:Ho(f.Extract_function),actions:[d]}),_.length?A.push({name:qP,description:Ho(f.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&y&&A.push({name:qP,description:Ho(f.Extract_constant),actions:[y]}),A.length?A:ie;function R(N){let P=N[0].messageText;return typeof P!="string"&&(P=P.messageText),P}}function VDe(e,t){const i=cue(e.file,vx(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){const l=+o[1];return C.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),rQe(i,e,l)}const s=/^constant_scope_(\d+)$/.exec(t);if(s){const l=+s[1];return C.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),iQe(i,e,l)}C.fail("Unrecognized action name")}var Pd;(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")})(Pd||(Pd={}));var jDe=(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))(jDe||{});function cue(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[zc(e,t.start,i,Pd.cannotExtractEmpty)]};const o=i===0&&r,s=ace(e,t.start),l=LP(e,Ml(t)),u=s&&l&&r?eQe(s,l,e):t,d=o?IQe(s):PO(s,e,u),_=o?d:PO(l,e,u);let h=0,y;if(!d||!_)return{errors:[zc(e,t.start,i,Pd.cannotExtractRange)]};if(d.flags&16777216)return{errors:[zc(e,t.start,i,Pd.cannotExtractJSDoc)]};if(d.parent!==_.parent)return{errors:[zc(e,t.start,i,Pd.cannotExtractRange)]};if(d!==_){if(!bx(d.parent))return{errors:[zc(e,t.start,i,Pd.cannotExtractRange)]};const F=[];for(const W of d.parent.statements){if(W===d||F.length){const G=k(W);if(G)return{errors:G};F.push(W)}if(W===_)break}return F.length?{targetRange:{range:F,facts:h,thisNode:y}}:{errors:[zc(e,t.start,i,Pd.cannotExtractRange)]}}if(of(d)&&!d.expression)return{errors:[zc(e,t.start,i,Pd.cannotExtractRange)]};const E=R(d),A=N(E)||k(E);if(A)return{errors:A};return{targetRange:{range:tQe(E),facts:h,thisNode:y}};function R(F){if(of(F)){if(F.expression)return F.expression}else if(cc(F)||gd(F)){const W=cc(F)?F.declarationList.declarations:F.declarations;let G=0,j;for(const J of W)J.initializer&&(G++,j=J.initializer);if(G===1)return j}else if(yi(F)&&F.initializer)return F.initializer;return F}function N(F){if(Je(ad(F)?F.expression:F))return[Ar(F,Pd.cannotExtractIdentifier)]}function P(F,W){let G=F;for(;G!==W;){if(G.kind===173){ua(G)&&(h|=32);break}else if(G.kind===170){pf(G).kind===177&&(h|=32);break}else G.kind===175&&ua(G)&&(h|=32);G=G.parent}}function k(F){let W;if((ve=>{ve[ve.None=0]="None",ve[ve.Break=1]="Break",ve[ve.Continue=2]="Continue",ve[ve.Return=4]="Return"})(W||(W={})),C.assert(F.pos<=F.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),C.assert(!fh(F.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!ji(F)&&!(k_(F)&&UDe(F))&&!mue(F))return[Ar(F,Pd.statementOrExpressionExpected)];if(F.flags&33554432)return[Ar(F,Pd.cannotExtractAmbientBlock)];const G=_d(F);G&&P(F,G);let j,J=4,Z;if(q(F),h&8){const ve=Su(F,!1,!1);(ve.kind===263||ve.kind===175&&ve.parent.kind===211||ve.kind===219)&&(h|=16)}return j;function q(ve){if(j)return!0;if(id(ve)){const K=ve.kind===261?ve.parent.parent:ve;if(di(K,32))return(j||(j=[])).push(Ar(ve,Pd.cannotExtractExportedEntity)),!0}switch(ve.kind){case 273:return(j||(j=[])).push(Ar(ve,Pd.cannotExtractImport)),!0;case 278:return(j||(j=[])).push(Ar(ve,Pd.cannotExtractExportedEntity)),!0;case 108:if(ve.parent.kind===214){const K=_d(ve);if(K===void 0||K.pos=t.start+t.length)return(j||(j=[])).push(Ar(ve,Pd.cannotExtractSuper)),!0}else h|=8,y=ve;break;case 220:Jo(ve,function K(fe){if(iC(fe))h|=8,y=ve;else{if(ui(fe)||$o(fe)&&!$s(fe))return!1;Jo(fe,K)}});case 264:case 263:Xi(ve.parent)&&ve.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(Ar(ve,Pd.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}const oe=J;switch(ve.kind){case 246:J&=-5;break;case 259:J=0;break;case 242:ve.parent&&ve.parent.kind===259&&ve.parent.finallyBlock===ve&&(J=4);break;case 298:case 297:J|=1;break;default:vb(ve,!1)&&(J|=3);break}switch(ve.kind){case 198:case 110:h|=8,y=ve;break;case 257:{const K=ve.label;(Z||(Z=[])).push(K.escapedText),Jo(ve,q),Z.pop();break}case 253:case 252:{const K=ve.label;K?jn(Z,K.escapedText)||(j||(j=[])).push(Ar(ve,Pd.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):J&(ve.kind===253?1:2)||(j||(j=[])).push(Ar(ve,Pd.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:h|=4;break;case 230:h|=2;break;case 254:J&4?h|=1:(j||(j=[])).push(Ar(ve,Pd.cannotExtractRangeContainingConditionalReturnStatement));break;default:Jo(ve,q);break}J=oe}}}function eQe(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 tQe(e){if(ji(e))return[e];if(k_(e))return ad(e.parent)?[e.parent]:e;if(mue(e))return e}function due(e){return $s(e)?mG(e.body):Ls(e)||Xi(e)||i_(e)||ui(e)}function nQe(e){let t=bv(e.range)?Qa(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=_d(t);if(i){const o=Dn(t,Ls);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===170&&(t=Dn(t,i=>Ls(i)).parent),due(t)&&(r.push(t),t.kind===308))return r}function rQe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=uue(e,t);return C.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),uQe(o,i[r],s[r],u,e,t)}function iQe(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=uue(e,t);C.assert(!l[r].length,"The extraction went missing? How?"),C.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const d=St(o)?o:o.statements[0].expression;return pQe(d,i[r],s[r],e.facts,t)}function oQe(e,t){const{scopes:r,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:o,constantErrorsPerScope:s}}=uue(e,t),l=r.map((u,d)=>{const _=aQe(u),h=sQe(u),y=Ls(u)?lQe(u):ui(u)?cQe(u):dQe(u);let E,A;return y===1?(E=Ig(Ho(f.Extract_to_0_in_1_scope),[_,"global"]),A=Ig(Ho(f.Extract_to_0_in_1_scope),[h,"global"])):y===0?(E=Ig(Ho(f.Extract_to_0_in_1_scope),[_,"module"]),A=Ig(Ho(f.Extract_to_0_in_1_scope),[h,"module"])):(E=Ig(Ho(f.Extract_to_0_in_1),[_,y]),A=Ig(Ho(f.Extract_to_0_in_1),[h,y])),d===0&&!ui(u)&&(A=Ig(Ho(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:E,errors:o[d]},constantExtraction:{description:A,errors:s[d]}}});return{affectedTextRange:i,extractions:l}}function uue(e,t){const{file:r}=t,i=nQe(e),o=EQe(e,r),s=AQe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:o,readsAndWrites:s}}function aQe(e){return Ls(e)?"inner function":ui(e)?"method":"function"}function sQe(e){return ui(e)?"readonly field":"constant"}function lQe(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:EJ;case 220:return"arrow function";case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:C.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function cQe(e){return e.kind===264?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function dQe(e){return e.kind===269?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function uQe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const d=u.program.getTypeChecker(),_=Va(u.program.getCompilerOptions()),h=pu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),E=U1(ui(t)?"newMethod":"newFunction",y),A=Ir(t),R=L.createIdentifier(E);let N;const P=[],k=[];let F;r.forEach((re,Te)=>{let Me;if(!A){let lt=d.getTypeOfSymbolAtLocation(re.symbol,re.node);lt=d.getBaseTypeOfLiteralType(lt),Me=pu.typeToAutoImportableTypeNode(d,h,lt,t,_,1,8)}const Be=L.createParameterDeclaration(void 0,void 0,Te,void 0,Me);P.push(Be),re.usage===2&&(F||(F=[])).push(re),k.push(L.createIdentifier(Te))});const W=Do(i.values(),re=>({type:re,declaration:mQe(re,u.startPosition)}));W.sort(hQe);const G=W.length===0?void 0:Ei(W,({declaration:re})=>re),j=G!==void 0?G.map(re=>L.createTypeReferenceNode(re.name,void 0)):void 0;if(St(e)&&!A){const re=d.getContextualType(e);N=d.typeToTypeNode(re,t,1,8)}const{body:J,returnValueProperty:Z}=gQe(e,s,F,o,!!(l.facts&1));zp(J);let q;const ve=!!(l.facts&16);if(ui(t)){const re=A?[]:[L.createModifier(123)];l.facts&32&&re.push(L.createModifier(126)),l.facts&4&&re.push(L.createModifier(134)),q=L.createMethodDeclaration(re.length?re:void 0,l.facts&2?L.createToken(42):void 0,R,void 0,G,P,N,J)}else ve&&P.unshift(L.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(l.thisNode),t,1,8),void 0)),q=L.createFunctionDeclaration(l.facts&4?[L.createToken(134)]:void 0,l.facts&2?L.createToken(42):void 0,R,G,P,N,J);const oe=Rr.ChangeTracker.fromContext(u),K=(bv(l.range)?Ga(l.range):l.range).end,fe=bQe(K,t);fe?oe.insertNodeBefore(u.file,fe,q,!0):oe.insertNodeAtEndOfScope(u.file,t,q),h.writeFixes(oe);const ue=[],me=_Qe(t,l,E);ve&&k.unshift(L.createIdentifier("this"));let be=L.createCallExpression(ve?L.createPropertyAccessExpression(me,"call"):me,j,k);if(l.facts&2&&(be=L.createYieldExpression(L.createToken(42),be)),l.facts&4&&(be=L.createAwaitExpression(be)),fue(e)&&(be=L.createJsxExpression(void 0,be)),s.length&&!F)if(C.assert(!Z,"Expected no returnValueProperty"),C.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){const re=s[0];ue.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(re.name),void 0,_s(re.type),be)],re.parent.flags)))}else{const re=[],Te=[];let Me=s[0].parent.flags,Be=!1;for(const ce of s){re.push(L.createBindingElement(void 0,void 0,_s(ce.name)));const Ce=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(ce)),t,1,8);Te.push(L.createPropertySignature(void 0,ce.symbol.name,void 0,Ce)),Be=Be||ce.type!==void 0,Me=Me&ce.parent.flags}const lt=Be?L.createTypeLiteralNode(Te):void 0;lt&&Cr(lt,1),ue.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(re),void 0,lt,be)],Me)))}else if(s.length||F){if(s.length)for(const Te of s){let Me=Te.parent.flags;Me&2&&(Me=Me&-3|1),ue.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Te.symbol.name,void 0,Ee(Te.type))],Me)))}Z&&ue.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z,void 0,Ee(N))],1)));const re=pue(s,F);Z&&re.unshift(L.createShorthandPropertyAssignment(Z)),re.length===1?(C.assert(!Z,"Shouldn't have returnValueProperty here"),ue.push(L.createExpressionStatement(L.createAssignment(re[0].name,be))),l.facts&1&&ue.push(L.createReturnStatement())):(ue.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(re),be))),Z&&ue.push(L.createReturnStatement(L.createIdentifier(Z))))}else l.facts&1?ue.push(L.createReturnStatement(be)):bv(l.range)?ue.push(L.createExpressionStatement(be)):ue.push(be);bv(l.range)?oe.replaceNodeRangeWithNodes(u.file,Qa(l.range),Ga(l.range),ue):oe.replaceNodeWithNodes(u.file,l.range,ue);const De=oe.getChanges(),Ne=(bv(l.range)?Qa(l.range):l.range).getSourceFile().fileName,Xe=kO(De,Ne,E,!1);return{renameFilename:Ne,renameLocation:Xe,edits:De};function Ee(re){if(re===void 0)return;const Te=_s(re);let Me=Te;for(;E1(Me);)Me=Me.type;return pv(Me)&&mn(Me.types,Be=>Be.kind===157)?Te:L.createUnionTypeNode([Te,L.createKeywordTypeNode(157)])}}function pQe(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=jde(e,t,s,l),d=Ir(t);let _=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1,8),h=yQe(us(e),r);({variableType:_,initializer:h}=N(_,h)),zp(h);const y=Rr.ChangeTracker.fromContext(o);if(ui(t)){C.assert(!d,"Cannot extract to a JS class");const P=[];P.push(L.createModifier(123)),i&32&&P.push(L.createModifier(126)),P.push(L.createModifier(148));const k=L.createPropertyDeclaration(P,u,void 0,_,h);let F=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(u));fue(e)&&(F=L.createJsxExpression(void 0,F));const W=e.pos,G=TQe(W,t);y.insertNodeBefore(o.file,G,k,!0),y.replaceNode(o.file,e,F)}else{const P=L.createVariableDeclaration(u,void 0,_,h),k=fQe(e,t);if(k){y.insertNodeBefore(o.file,k,P);const F=L.createIdentifier(u);y.replaceNode(o.file,e,F)}else if(e.parent.kind===245&&t===Dn(e,due)){const F=L.createVariableStatement(void 0,L.createVariableDeclarationList([P],2));y.replaceNode(o.file,e.parent,F)}else{const F=L.createVariableStatement(void 0,L.createVariableDeclarationList([P],2)),W=SQe(e,t);if(W.pos===0?y.insertNodeAtTopOfFile(o.file,F,!1):y.insertNodeBefore(o.file,W,F,!1),e.parent.kind===245)y.delete(o.file,e.parent);else{let G=L.createIdentifier(u);fue(e)&&(G=L.createJsxExpression(void 0,G)),y.replaceNode(o.file,e,G)}}}const E=y.getChanges(),A=e.getSourceFile().fileName,R=kO(E,A,u,!0);return{renameFilename:A,renameLocation:R,edits:E};function N(P,k){if(P===void 0)return{variableType:P,initializer:k};if(!qs(k)&&!$s(k)||k.typeParameters)return{variableType:P,initializer:k};const F=s.getTypeAtLocation(e),W=dg(s.getSignaturesOfType(F,0));if(!W)return{variableType:P,initializer:k};if(W.getTypeParameters())return{variableType:P,initializer:k};const G=[];let j=!1;for(const J of k.parameters)if(J.type)G.push(J);else{const Z=s.getTypeAtLocation(J);Z===s.getAnyType()&&(j=!0),G.push(L.updateParameterDeclaration(J,J.modifiers,J.dotDotDotToken,J.name,J.questionToken,J.type||s.typeToTypeNode(Z,t,1,8),J.initializer))}if(j)return{variableType:P,initializer:k};if(P=void 0,$s(k))k=L.updateArrowFunction(k,Rm(e)?yS(e):void 0,k.typeParameters,G,k.type||s.typeToTypeNode(W.getReturnType(),t,1,8),k.equalsGreaterThanToken,k.body);else{if(W&&W.thisParameter){const J=Rc(G);if(!J||Je(J.name)&&J.name.escapedText!=="this"){const Z=s.getTypeOfSymbolAtLocation(W.thisParameter,e);G.splice(0,0,L.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(Z,t,1,8)))}}k=L.updateFunctionExpression(k,Rm(e)?yS(e):void 0,k.asteriskToken,k.name,k.typeParameters,G,k.type||s.typeToTypeNode(W.getReturnType(),t,1),k.body)}return{variableType:P,initializer:k}}}function fQe(e,t){let r;for(;e!==void 0&&e!==t;){if(yi(e)&&e.initializer===r&&gd(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function mQe(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos0;if(ta(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const d=L.createNodeArray(ta(e)?e.statements.slice(0):[ji(e)?e:L.createReturnStatement(us(e))]);if(s||i.size){const h=Xn(d,_,ji).slice();if(s&&!o&&ji(e)){const y=pue(t,r);y.length===1?h.push(L.createReturnStatement(y[0].name)):h.push(L.createReturnStatement(L.createObjectLiteralExpression(y)))}return{body:L.createBlock(h,!0),returnValueProperty:l}}else return{body:L.createBlock(d,!0),returnValueProperty:void 0};function _(h){if(!u&&of(h)&&s){const y=pue(t,r);return h.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,st(h.expression,_,St)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{const y=u;u=u||Ls(h)||ui(h);const E=i.get(ls(h).toString()),A=E?_s(E):On(h,_,void 0);return u=y,A}}}function yQe(e,t){return t.size?r(e):e;function r(i){const o=t.get(ls(i).toString());return o?_s(o):On(i,r,void 0)}}function vQe(e){if(Ls(e)){const t=e.body;if(ta(t))return t.statements}else{if(i_(e)||Xi(e))return e.statements;if(ui(e))return e.members}return ie}function bQe(e,t){return mn(vQe(t),r=>r.pos>=e&&Ls(r)&&!kl(r))}function TQe(e,t){const r=t.members;C.assert(r.length>0,"Found no members");let i,o=!0;for(const s of r){if(s.pos>e)return i||r[0];if(o&&!Mo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?C.fail():i}function SQe(e,t){C.assert(!ui(t));let r;for(let i=e;i!==t;i=i.parent)due(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(bx(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&PD(i)?(C.assert(YM(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):C.checkDefined(o,"prevStatement failed to get set")}C.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function pue(e,t){const r=Yt(e,o=>L.createShorthandPropertyAssignment(o.symbol.name)),i=Yt(t,o=>L.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function bv(e){return No(e)}function EQe(e,t){return bv(e.range)?{pos:Qa(e.range).getStart(t),end:Ga(e.range).getEnd()}:e.range}function AQe(e,t,r,i,o,s){const l=new Map,u=[],d=[],_=[],h=[],y=[],E=new Map,A=[];let R;const N=bv(e.range)?e.range.length===1&&ad(e.range[0])?e.range[0].expression:void 0:e.range;let P;if(N===void 0){const ue=e.range,me=Qa(ue).getStart(),be=Ga(ue).end;P=zc(i,me,be-me,Pd.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(P=Ar(N,Pd.uselessConstantType));for(const ue of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),_.push([]);const me=[];P&&me.push(P),ui(ue)&&Ir(ue)&&me.push(Ar(ue,Pd.cannotExtractToJSClass)),$s(ue)&&!ta(ue.body)&&me.push(Ar(ue,Pd.cannotExtractToExpressionArrowFunction)),h.push(me)}const k=new Map,F=bv(e.range)?L.createBlock(e.range):e.range,W=bv(e.range)?Qa(e.range):e.range,G=j(W);if(Z(F),G&&!bv(e.range)&&!s_(e.range)){const ue=o.getContextualType(e.range);J(ue)}if(l.size>0){const ue=new Map;let me=0;for(let be=W;be!==void 0&&me{u[me].typeParameterUsages.set(Y,De)}),me++),wG(be))for(const De of mb(be)){const Y=o.getTypeAtLocation(De);l.has(Y.id.toString())&&ue.set(Y.id.toString(),Y)}C.assert(me===t.length,"Should have iterated all scopes")}if(y.length){const ue=kG(t[0],t[0].parent)?t[0]:dh(t[0]);Jo(ue,oe)}for(let ue=0;ue0&&(me.usages.size>0||me.typeParameterUsages.size>0)){const Y=bv(e.range)?e.range[0]:e.range;h[ue].push(Ar(Y,Pd.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ui(t[ue])&&_[ue].push(Ar(e.thisNode,Pd.cannotExtractFunctionsContainingThisToMethod));let be=!1,De;if(u[ue].usages.forEach(Y=>{Y.usage===2&&(be=!0,Y.symbol.flags&106500&&Y.symbol.valueDeclaration&&Fp(Y.symbol.valueDeclaration,8)&&(De=Y.symbol.valueDeclaration))}),C.assert(bv(e.range)||A.length===0,"No variable declarations expected if something was extracted"),be&&!bv(e.range)){const Y=Ar(e.range,Pd.cannotWriteInExpression);_[ue].push(Y),h[ue].push(Y)}else if(De&&ue>0){const Y=Ar(De,Pd.cannotExtractReadonlyPropertyInitializerOutsideConstructor);_[ue].push(Y),h[ue].push(Y)}else if(R){const Y=Ar(R,Pd.cannotExtractExportedEntity);_[ue].push(Y),h[ue].push(Y)}}return{target:F,usagesPerScope:u,functionErrorsPerScope:_,constantErrorsPerScope:h,exposedVariableDeclarations:A};function j(ue){return!!Dn(ue,me=>wG(me)&&mb(me).length!==0)}function J(ue){const me=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:be}=me.walkType(ue);for(const De of be)De.isTypeParameter()&&l.set(De.id.toString(),De)}function Z(ue,me=1){if(G){const be=o.getTypeAtLocation(ue);J(be)}if(id(ue)&&ue.symbol&&y.push(ue),od(ue))Z(ue.left,2),Z(ue.right);else if(Mte(ue))Z(ue.operand,2);else if(qr(ue)||zs(ue))Jo(ue,Z);else if(Je(ue)){if(!ue.parent||Wu(ue.parent)&&ue!==ue.parent.left||qr(ue.parent)&&ue!==ue.parent.expression)return;q(ue,me,Kh(ue))}else Jo(ue,Z)}function q(ue,me,be){const De=ve(ue,me,be);if(De)for(let Y=0;Y=me)return Y;if(k.set(Y,me),Ne){for(const re of u)re.usages.get(ue.text)&&re.usages.set(ue.text,{usage:me,symbol:De,node:ue});return Y}const Xe=De.getDeclarations(),Ee=Xe&&mn(Xe,re=>re.getSourceFile()===i);if(Ee&&!IO(r,Ee.getStart(),Ee.end)){if(e.facts&2&&me===2){const re=Ar(ue,Pd.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Te of _)Te.push(re);for(const Te of h)Te.push(re)}for(let re=0;reDe.symbol===me);if(be)if(yi(be)){const De=be.symbol.id.toString();E.has(De)||(A.push(be),E.set(De,!0))}else R=R||be}Jo(ue,oe)}function K(ue){return ue.parent&&Jd(ue.parent)&&ue.parent.name===ue?o.getShorthandAssignmentValueSymbol(ue.parent):o.getSymbolAtLocation(ue)}function fe(ue,me,be){if(!ue)return;const De=ue.getDeclarations();if(De&&De.some(Ne=>Ne.parent===me))return L.createIdentifier(ue.name);const Y=fe(ue.parent,me,be);if(Y!==void 0)return be?L.createQualifiedName(Y,L.createIdentifier(ue.name)):L.createPropertyAccessExpression(Y,ue.name)}}function IQe(e){return Dn(e,t=>t.parent&&UDe(t)&&!Nr(t.parent))}function UDe(e){const{parent:t}=e;if(t.kind===307)return!1;switch(e.kind){case 11:return t.kind!==273&&t.kind!==277;case 231:case 207:case 209:return!1;case 80:return t.kind!==209&&t.kind!==277&&t.kind!==282}return!0}function fue(e){return mue(e)||(a_(e)||C1(e)||n0(e))&&(a_(e.parent)||n0(e.parent))}function mue(e){return Oa(e)&&e.parent&&s_(e.parent)}var xQe={},mK="Generate 'get' and 'set' accessors",hue=Ho(f.Generate_get_and_set_accessors),_ue={name:mK,description:hue,kind:"refactor.rewrite.property.generateAccessors"};Lg(mK,{kinds:[_ue.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=pu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);C.assert(i&&!Ty(i),"Expected applicable refactor info");const o=pu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;const s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,d=(Je(l)?0:-1)+kO(o,s,l.text,Zi(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return ie;const t=pu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?Ty(t)?e.preferences.provideRefactorNotApplicableReason?[{name:mK,description:hue,actions:[{..._ue,notApplicableReason:t.error}]}]:ie:[{name:mK,description:hue,actions:[_ue]}]:ie}});var RQe={},hK="Infer function return type",gue=Ho(f.Infer_function_return_type),_K={name:hK,description:gue,kind:"refactor.rewrite.function.returnType"};Lg(hK,{kinds:[_K.kind],getEditsForAction:DQe,getAvailableActions:CQe});function DQe(e){const t=HDe(e);if(t&&!Ty(t))return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,i=>NQe(e.file,i,t.declaration,t.returnTypeNode))}}function CQe(e){const t=HDe(e);return t?Ty(t)?e.preferences.provideRefactorNotApplicableReason?[{name:hK,description:gue,actions:[{..._K,notApplicableReason:t.error}]}]:ie:[{name:hK,description:gue,actions:[_K]}]:ie}function NQe(e,t,r,i){const o=Is(r,22,e),s=$s(r)&&o===void 0,l=s?Qa(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,L.createToken(21)),t.insertNodeAfter(e,l,L.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function HDe(e){if(Ir(e.file)||!g0(_K.kind,e.kind))return;const t=sp(e.file,e.startPosition),r=Dn(t,l=>ta(l)||l.parent&&$s(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":MQe(l));if(!r||!r.body||r.type)return{error:Ho(f.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker();let o;if(i.isImplementationOfOverload(r)){const l=i.getTypeAtLocation(r).getCallSignatures();l.length>1&&(o=i.getUnionType(Ei(l,u=>u.getReturnType())))}if(!o){const l=i.getSignatureFromDeclaration(r);if(l){const u=i.getTypePredicateOfSignature(l);if(u&&u.type){const d=i.typePredicateToTypePredicateNode(u,r,1,8);if(d)return{declaration:r,returnTypeNode:d}}else o=i.getReturnTypeOfSignature(l)}}if(!o)return{error:Ho(f.Could_not_determine_function_return_type)};const s=i.typeToTypeNode(o,r,1,8);if(s)return{declaration:r,returnTypeNode:s}}function MQe(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var qDe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(qDe||{}),JDe=(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))(JDe||{}),KDe=(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))(KDe||{});function XDe(e,t,r,i){const o=yue(e,t,r,i);C.assert(o.spans.length%3===0);const s=o.spans,l=[];for(let u=0;u{o.push(l.getStart(t),l.getWidth(t),(u+1<<8)+d)},i),o}function LQe(e,t,r,i,o){const s=e.getTypeChecker();let l=!1;function u(d){switch(d.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:o.throwIfCancellationRequested()}if(!d||!W2(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;const _=l;if((a_(d)||C1(d))&&(l=!0),MD(d)&&(l=!1),Je(d)&&!l&&!WQe(d)&&!OM(d.escapedText)){let h=s.getSymbolAtLocation(d);if(h){h.flags&2097152&&(h=s.getAliasedSymbol(h));let y=kQe(h,G1(d));if(y!==void 0){let E=0;d.parent&&(qa(d.parent)||QDe.get(d.parent.kind)===y)&&d.parent.name===d&&(E=1),y===6&&$De(d)&&(y=9),y=wQe(s,d,y);const A=h.valueDeclaration;if(A){const R=kT(A),N=oy(A);R&256&&(E|=2),R&1024&&(E|=4),y!==0&&y!==2&&(R&8||N&2||h.getFlags()&8)&&(E|=8),(y===7||y===10)&&OQe(A,t)&&(E|=32),e.isSourceFileDefaultLibrary(A.getSourceFile())&&(E|=16)}else h.declarations&&h.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(E|=16);i(d,y,E)}}}Jo(d,u),l=_}u(t)}function kQe(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&&qa(i)&&(i=YDe(i)),i&&QDe.get(i.kind)}function wQe(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)||FQe(t))return r===9?11:10}}return r}function OQe(e,t){return qa(e)&&(e=YDe(e)),yi(e)?(!Xi(e.parent.parent.parent)||KS(e.parent))&&e.getSourceFile()===t:rc(e)?!Xi(e.parent)&&e.getSourceFile()===t:!1}function YDe(e){for(;;)if(qa(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function WQe(e){const t=e.parent;return t&&(Jm(t)||xu(t)||Ng(t))}function FQe(e){for(;$De(e);)e=e.parent;return ea(e.parent)&&e.parent.expression===e}function $De(e){return Wu(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e}var QDe=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),ZDe="0.8";function eCe(e,t,r,i){const o=IF(e)?new vue(e,t,r):e===80?new nCe(80,t,r):e===81?new rCe(81,t,r):new tCe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}var vue=class{constructor(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}assertHasRealPosition(e){C.assert(!fh(this.pos)&&!fh(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return zn(this)}getStart(e,t){return this.assertHasRealPosition(),Sb(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=zn(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),Hj(this,e)??ioe(this,e,zQe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=mn(t,i=>i.kind<310||i.kind>352);return r.kind<167?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),r=tl(t);if(r)return r.kind<167?r:r.getLastToken(e)}forEachChild(e,t){return Jo(this,e,t)}};function zQe(e,t){const r=[];if(LF(e))return e.forEachChild(l=>{r.push(l)}),r;vd.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{uz(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{uz(r,i,l.pos,e),r.push(BQe(l,e)),i=l.end};return qe(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),uz(r,i,e.end,e),vd.setText(void 0),r}function uz(e,t,r,i){for(vd.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function gK(e,t){if(!e)return ie;let r=b0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(iCe))){const i=new Set;for(const o of e){const s=oCe(t,o,l=>{var u;if(!i.has(l))return i.add(l),o.kind===178||o.kind===179?l.getContextualJsDocTags(o,t):((u=l.declarations)==null?void 0:u.length)===1?l.getJsDocTags(t):void 0});s&&(r=[...s,...r])}}return r}function pz(e,t){if(!e)return ie;let r=b0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(iCe))){const i=new Set;for(const o of e){const s=oCe(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===178||o.kind===179?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(dC(),r))}}return r}function oCe(e,t,r){var i;const o=((i=t.parent)==null?void 0:i.kind)===177?t.parent.parent:t.parent;if(!o)return;const s=Fc(t);return Ln(cM(o),l=>{const u=e.getTypeAtLocation(l),d=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,_=e.getPropertyOfType(d,t.symbol.name);return _?r(_):void 0})}var UQe=class extends vue{constructor(e,t,r){super(e,t,r)}update(e,t){return aU(this,e,t)}getLineAndCharacterOfPosition(e){return ca(this,e)}getLineStarts(){return ug(this)}getPositionOfLineAndCharacter(e,t,r){return mF(ug(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=hm();return this.forEachChild(o),e;function t(s){const l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){const l=gF(s);return l&&(va(l)&&qr(l.expression)?l.expression.name.text:Tc(l)?NO(l):void 0)}function o(s){switch(s.kind){case 263:case 219:case 175:case 174:const l=s,u=i(l);if(u){const h=r(u),y=tl(h);y&&l.parent===y.parent&&l.symbol===y.symbol?l.body&&!y.body&&(h[h.length-1]=l):h.push(l)}Jo(s,o);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(s),Jo(s,o);break;case 170:if(!di(s,31))break;case 261:case 209:{const h=s;if(Zo(h.name)){Jo(h.name,o);break}h.initializer&&o(h.initializer)}case 307:case 173:case 172:t(s);break;case 279:const d=s;d.exportClause&&($f(d.exportClause)?qe(d.exportClause.elements,o):o(d.exportClause.name));break;case 273:const _=s.importClause;_&&(_.name&&t(_.name),_.namedBindings&&(_.namedBindings.kind===275?t(_.namedBindings):qe(_.namedBindings.elements,o)));break;case 227:lc(s)!==0&&t(s);default:Jo(s,o)}}}},HQe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}getLineAndCharacterOfPosition(e){return ca(this,e)}};function qQe(){return{getNodeConstructor:()=>vue,getTokenConstructor:()=>tCe,getIdentifierConstructor:()=>nCe,getPrivateIdentifierConstructor:()=>rCe,getSourceFileConstructor:()=>UQe,getSymbolConstructor:()=>GQe,getTypeConstructor:()=>VQe,getSignatureConstructor:()=>jQe,getSourceMapSourceConstructor:()=>HQe}}function JO(e){let t=!0;for(const i in e)if(Cs(e,i)&&!aCe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Cs(e,i)){const o=aCe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function aCe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function KO(e){return e?Yt(e,t=>t.text).join(""):""}function fz(){return{target:1,jsx:1}}function yK(){return pu.getSupportedErrorCodes()}var JQe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,d;const _=this.host.getScriptSnapshot(e);if(!_)throw new Error("Could not find file: '"+e+"'.");const h=vJ(e,this.host),y=this.host.getScriptVersion(e);let E;if(this.currentFileName!==e){const A={languageVersion:99,impliedNodeFormat:dO(Os(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||dy(this.host)),(d=(u=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:u.call(l))==null?void 0:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Yk(this.host.getCompilationSettings()),jsDocParsingMode:0};E=mz(e,_,A,y,!0,h)}else if(this.currentFileVersion!==y){const A=_.getChangeRange(this.currentFileScriptSnapshot);E=vK(this.currentSourceFile,_,y,A)}return E&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=_,this.currentSourceFile=E),this.currentSourceFile}};function sCe(e,t,r){e.version=r,e.scriptSnapshot=t}function mz(e,t,r,i,o,s){const l=ax(e,yx(t),r,o,s);return sCe(l,t,i),l}function vK(e,t,r,i,o){if(i&&r!==e.version){let l;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",d=Ml(i.span)!==e.text.length?e.text.substr(Ml(i.span)):"";if(i.newLength===0)l=u&&d?u+d:u||d;else{const h=t.getText(i.span.start,i.span.start+i.newLength);l=u&&d?u+h+d:u?u+h:h+d}const _=aU(e,l,i,o);return sCe(_,t,r),_.nameTable=void 0,e!==_&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),_}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return mz(e.fileName,t,s,r,!0,e.scriptKind)}var KQe={isCancellationRequested:ny,throwIfCancellationRequested:gs},XQe=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xr)==null||e.instant(xr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new RN}},Tue=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=ws();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=xr)==null||e.instant(xr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new RN}},lCe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],YQe=[...lCe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function Sue(e,t=qce(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;const s=new JQe(e);let l,u,d=0;const _=e.getCancellationToken?new XQe(e.getCancellationToken()):KQe,h=e.getCurrentDirectory();Ire((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(mt){e.log&&e.log(mt)}const E=m1(e),A=Gd(E),R=ade({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>h,getProgram:F,fileExists:oa(e,e.fileExists),readFile:oa(e,e.readFile),getDocumentPositionMapper:oa(e,e.getDocumentPositionMapper),getSourceFileLike:oa(e,e.getSourceFileLike),log:y});function N(mt){const Mt=l.getSourceFile(mt);if(!Mt){const Vt=new Error(`Could not find source file: '${mt}'.`);throw Vt.ProgramFiles=l.getSourceFiles().map(Qt=>Qt.fileName),Vt}return Mt}function P(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():k()}function k(){var mt,Mt,Vt;if(C.assert(o!==2),e.getProjectVersion){const Po=e.getProjectVersion();if(Po){if(u===Po&&!((mt=e.hasChangedAutomaticTypeDirectiveNames)!=null&&mt.call(e)))return;u=Po}}const Qt=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==Qt&&(y("TypeRoots version has changed; provide new program"),l=void 0,d=Qt);const In=e.getScriptFileNames().slice(),yn=e.getCompilationSettings()||fz(),wt=e.hasInvalidatedResolutions||ny,En=oa(e,e.hasInvalidatedLibResolutions)||ny,xn=oa(e,e.hasChangedAutomaticTypeDirectiveNames),wn=(Mt=e.getProjectReferences)==null?void 0:Mt.call(e);let ln,Ri={getSourceFile:ic,getSourceFileByPath:Sf,getCancellationToken:()=>_,getCanonicalFileName:A,useCaseSensitiveFileNames:()=>E,getNewLine:()=>av(yn),getDefaultLibFileName:Po=>e.getDefaultLibFileName(Po),writeFile:gs,getCurrentDirectory:()=>h,fileExists:Po=>e.fileExists(Po),readFile:Po=>e.readFile&&e.readFile(Po),getSymlinkCache:oa(e,e.getSymlinkCache),realpath:oa(e,e.realpath),directoryExists:Po=>ph(Po,e),getDirectories:Po=>e.getDirectories?e.getDirectories(Po):[],readDirectory:(Po,fa,os,Ja,Zt)=>(C.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Po,fa,os,Ja,Zt)),onReleaseOldSourceFile:Da,onReleaseParsedCommandLine:Ec,hasInvalidatedResolutions:wt,hasInvalidatedLibResolutions:En,hasChangedAutomaticTypeDirectiveNames:xn,trace:oa(e,e.trace),resolveModuleNames:oa(e,e.resolveModuleNames),getModuleResolutionCache:oa(e,e.getModuleResolutionCache),createHash:oa(e,e.createHash),resolveTypeReferenceDirectives:oa(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:oa(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:oa(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:oa(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:oa(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:lo,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:oa(e,e.getGlobalTypingsCacheLocation)};const ia=Ri.getSourceFile,{getSourceFileWithCache:la}=AP(Ri,Po=>Os(Po,h,A),(...Po)=>ia.call(Ri,...Po));Ri.getSourceFile=la,(Vt=e.setCompilerHost)==null||Vt.call(e,Ri);const zo={useCaseSensitiveFileNames:E,fileExists:Po=>Ri.fileExists(Po),readFile:Po=>Ri.readFile(Po),directoryExists:Po=>Ri.directoryExists(Po),getDirectories:Po=>Ri.getDirectories(Po),realpath:Ri.realpath,readDirectory:(...Po)=>Ri.readDirectory(...Po),trace:Ri.trace,getCurrentDirectory:Ri.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:gs},jl=t.getKeyForCompilationSettings(yn);let Cl=new Set;if(OH(l,In,yn,(Po,fa)=>e.getScriptVersion(fa),Po=>Ri.fileExists(Po),wt,En,xn,lo,wn)){Ri=void 0,ln=void 0,Cl=void 0;return}l=uO({rootNames:In,options:yn,host:Ri,oldProgram:l,projectReferences:wn}),Ri=void 0,ln=void 0,Cl=void 0,R.clearCache(),l.getTypeChecker();return;function lo(Po){const fa=Os(Po,h,A),os=ln?.get(fa);if(os!==void 0)return os||void 0;const Ja=e.getParsedCommandLine?e.getParsedCommandLine(Po):Go(Po);return(ln||(ln=new Map)).set(fa,Ja||!1),Ja}function Go(Po){const fa=ic(Po,100);if(fa)return fa.path=Os(Po,h,A),fa.resolvedPath=fa.path,fa.originalFileName=fa.fileName,Vw(fa,zo,bo(ci(Po),h),void 0,bo(Po,h))}function Ec(Po,fa,os){var Ja;e.getParsedCommandLine?(Ja=e.onReleaseParsedCommandLine)==null||Ja.call(e,Po,fa,os):fa&&Zs(fa.sourceFile,os)}function Zs(Po,fa){const os=t.getKeyForCompilationSettings(fa);t.releaseDocumentWithKey(Po.resolvedPath,os,Po.scriptKind,Po.impliedNodeFormat)}function Da(Po,fa,os,Ja){var Zt;Zs(Po,fa),(Zt=e.onReleaseOldSourceFile)==null||Zt.call(e,Po,fa,os,Ja)}function ic(Po,fa,os,Ja){return Sf(Po,Os(Po,h,A),fa,os,Ja)}function Sf(Po,fa,os,Ja,Zt){C.assert(Ri,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const xs=e.getScriptSnapshot(Po);if(!xs)return;const Xl=vJ(Po,e),dc=e.getScriptVersion(Po);if(!Zt){const bd=l&&l.getSourceFileByPath(fa);if(bd){if(Xl===bd.scriptKind||Cl.has(bd.resolvedPath))return t.updateDocumentWithKey(Po,fa,e,jl,xs,dc,Xl,os);t.releaseDocumentWithKey(bd.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),bd.scriptKind,bd.impliedNodeFormat),Cl.add(bd.resolvedPath)}}return t.acquireDocumentWithKey(Po,fa,e,jl,xs,dc,Xl,os)}}function F(){if(o===2){C.assert(l===void 0);return}return P(),l}function W(){var mt;return(mt=e.getPackageJsonAutoImportProvider)==null?void 0:mt.call(e)}function G(mt,Mt){const Vt=l.getTypeChecker(),Qt=In();if(!Qt)return!1;for(const wt of mt)for(const En of wt.references){const xn=yn(En);if(C.assertIsDefined(xn),Mt.has(En)||Qs.isDeclarationOfSymbol(xn,Qt)){Mt.add(En),En.isDefinition=!0;const wn=k7(En,R,oa(e,e.fileExists));wn&&Mt.add(wn)}else En.isDefinition=!1}return!0;function In(){for(const wt of mt)for(const En of wt.references){if(Mt.has(En)){const wn=yn(En);return C.assertIsDefined(wn),Vt.getSymbolAtLocation(wn)}const xn=k7(En,R,oa(e,e.fileExists));if(xn&&Mt.has(xn)){const wn=yn(xn);if(wn)return Vt.getSymbolAtLocation(wn)}}}function yn(wt){const En=l.getSourceFile(wt.fileName);if(!En)return;const xn=sp(En,wt.textSpan.start);return Qs.Core.getAdjustedNode(xn,{use:Qs.FindReferencesUse.References})}}function j(){if(l){const mt=t.getKeyForCompilationSettings(l.getCompilerOptions());qe(l.getSourceFiles(),Mt=>t.releaseDocumentWithKey(Mt.resolvedPath,mt,Mt.scriptKind,Mt.impliedNodeFormat)),l=void 0}}function J(){j(),e=void 0}function Z(mt){return P(),l.getSyntacticDiagnostics(N(mt),_).slice()}function q(mt){P();const Mt=N(mt),Vt=l.getSemanticDiagnostics(Mt,_);if(!vp(l.getCompilerOptions()))return Vt.slice();const Qt=l.getDeclarationDiagnostics(Mt,_);return[...Vt,...Qt]}function ve(mt,Mt){P();const Vt=N(mt),Qt=l.getCompilerOptions();if(bD(Vt,Qt,l)||!PM(Vt,Qt)||l.getCachedSemanticDiagnostics(Vt))return;const In=oe(Vt,Mt);if(!In)return;const yn=K9(In.map(En=>sc(En.getFullStart(),En.getEnd())));return{diagnostics:l.getSemanticDiagnostics(Vt,_,In).slice(),spans:yn}}function oe(mt,Mt){const Vt=[],Qt=K9(Mt.map(In=>yv(In)));for(const In of Qt){const yn=K(mt,In);if(!yn)return;Vt.push(...yn)}if(Vt.length)return Vt}function K(mt,Mt){if(J9(Mt,mt))return;const Vt=LP(mt,Ml(Mt))||mt,Qt=Dn(Vt,yn=>$ee(yn,Mt)),In=[];if(fe(Mt,Qt,In),mt.end===Mt.start+Mt.length&&In.push(mt.endOfFileToken),!vt(In,Xi))return In}function fe(mt,Mt,Vt){return ue(Mt,mt)?J9(mt,Mt)?(me(Mt,Vt),!0):bx(Mt)?be(mt,Mt,Vt):ui(Mt)?De(mt,Mt,Vt):(me(Mt,Vt),!0):!1}function ue(mt,Mt){const Vt=Mt.start+Mt.length;return mt.posMt.start}function me(mt,Mt){for(;mt.parent&&!aie(mt);)mt=mt.parent;Mt.push(mt)}function be(mt,Mt,Vt){const Qt=[];return Mt.statements.filter(yn=>fe(mt,yn,Qt)).length===Mt.statements.length?(me(Mt,Vt),!0):(Vt.push(...Qt),!1)}function De(mt,Mt,Vt){var Qt,In,yn;const wt=wn=>tte(wn,mt);if((Qt=Mt.modifiers)!=null&&Qt.some(wt)||Mt.name&&wt(Mt.name)||(In=Mt.typeParameters)!=null&&In.some(wt)||(yn=Mt.heritageClauses)!=null&&yn.some(wt))return me(Mt,Vt),!0;const En=[];return Mt.members.filter(wn=>fe(mt,wn,En)).length===Mt.members.length?(me(Mt,Vt),!0):(Vt.push(...En),!1)}function Y(mt){return P(),HJ(N(mt),l,_)}function Ne(){return P(),[...l.getOptionsDiagnostics(_),...l.getGlobalDiagnostics(_)]}function Xe(mt,Mt,Vt=Dm,Qt){const In={...Vt,includeCompletionsForModuleExports:Vt.includeCompletionsForModuleExports||Vt.includeExternalModuleExports,includeCompletionsWithInsertText:Vt.includeCompletionsWithInsertText||Vt.includeInsertTextCompletions};return P(),Dx.getCompletionsAtPosition(e,l,y,N(mt),Mt,In,Vt.triggerCharacter,Vt.triggerKind,_,Qt&&Lc.getFormatContext(Qt,e),Vt.includeSymbol)}function Ee(mt,Mt,Vt,Qt,In,yn=Dm,wt){return P(),Dx.getCompletionEntryDetails(l,y,N(mt),Mt,{name:Vt,source:In,data:wt},e,Qt&&Lc.getFormatContext(Qt,e),yn,_)}function re(mt,Mt,Vt,Qt,In=Dm){return P(),Dx.getCompletionEntrySymbol(l,y,N(mt),Mt,{name:Vt,source:Qt},e,In)}function Te(mt,Mt,Vt,Qt){P();const In=N(mt),yn=sp(In,Mt);if(yn===In)return;const wt=l.getTypeChecker(),En=lt(yn),xn=eZe(En,wt);if(!xn||wt.isUnknownSymbol(xn)){const zo=ce(In,En,Mt)?wt.getTypeAtLocation(En):void 0;return zo&&{kind:"",kindModifiers:"",textSpan:Vu(En,In),displayParts:wt.runWithCancellationToken(_,jl=>LO(jl,zo,V1(En),void 0,Qt)),documentation:zo.symbol?zo.symbol.getDocumentationComment(wt):void 0,tags:zo.symbol?zo.symbol.getJsDocTags(wt):void 0}}const{symbolKind:wn,displayParts:ln,documentation:Ri,tags:ia,canIncreaseVerbosityLevel:la}=wt.runWithCancellationToken(_,zo=>Tv.getSymbolDisplayPartsDocumentationAndSymbolKind(zo,xn,In,V1(En),En,void 0,void 0,Vt??Ute,Qt));return{kind:wn,kindModifiers:Tv.getSymbolModifiers(wt,xn),textSpan:Vu(En,In),displayParts:ln,documentation:Ri,tags:ia,canIncreaseVerbosityLevel:la}}function Me(mt,Mt){return P(),NX.preparePasteEdits(N(mt),Mt,l.getTypeChecker())}function Be(mt,Mt){return P(),MX.pasteEditsProvider(N(mt.targetFile),mt.pastedText,mt.pasteLocations,mt.copiedFrom?{file:N(mt.copiedFrom.file),range:mt.copiedFrom.range}:void 0,e,mt.preferences,Lc.getFormatContext(Mt,e),_)}function lt(mt){return HS(mt.parent)&&mt.pos===mt.parent.pos?mt.parent.expression:xD(mt.parent)&&mt.pos===mt.parent.pos||eD(mt.parent)&&mt.parent.name===mt||_h(mt.parent)?mt.parent:mt}function ce(mt,Mt,Vt){switch(Mt.kind){case 80:return Mt.flags&16777216&&!Ir(Mt)&&(Mt.parent.kind===172&&Mt.parent.name===Mt||Dn(Mt,Qt=>Qt.kind===170))?!1:!zq(Mt)&&!Bq(Mt)&&!Gm(Mt.parent);case 212:case 167:return!_v(mt,Vt);case 110:case 198:case 108:case 203:return!0;case 237:return eD(Mt);default:return!1}}function Ce(mt,Mt,Vt,Qt){return P(),vC.getDefinitionAtPosition(l,N(mt),Mt,Vt,Qt)}function ye(mt,Mt){return P(),vC.getDefinitionAndBoundSpan(l,N(mt),Mt)}function Ue(mt,Mt){return P(),vC.getTypeDefinitionAtPosition(l.getTypeChecker(),N(mt),Mt)}function Ge(mt,Mt){return P(),Qs.getImplementationsAtPosition(l,_,l.getSourceFiles(),N(mt),Mt)}function We(mt,Mt,Vt){const Qt=ya(mt);C.assert(Vt.some(wt=>ya(wt)===Qt)),P();const In=Ei(Vt,wt=>l.getSourceFile(wt)),yn=N(mt);return Q7.getDocumentHighlights(l,_,yn,Mt,In)}function at(mt,Mt,Vt,Qt,In){P();const yn=N(mt),wt=S7(sp(yn,Mt));if(wz.nodeIsEligibleForRename(wt))if(Je(wt)&&(hh(wt.parent)||qS(wt.parent))&&uD(wt.escapedText)){const{openingElement:En,closingElement:xn}=wt.parent.parent;return[En,xn].map(wn=>{const ln=Vu(wn.tagName,yn);return{fileName:yn.fileName,textSpan:ln,...Qs.toContextSpan(ln,yn,wn.parent)}})}else{const En=Up(yn,In??Dm),xn=typeof In=="boolean"?In:In?.providePrefixAndSuffixTextForRename;return cn(wt,Mt,{findInStrings:Vt,findInComments:Qt,providePrefixAndSuffixTextForRename:xn,use:Qs.FindReferencesUse.Rename},(wn,ln,Ri)=>Qs.toRenameLocation(wn,ln,Ri,xn||!1,En))}}function Wt(mt,Mt){return P(),cn(sp(N(mt),Mt),Mt,{use:Qs.FindReferencesUse.References},Qs.toReferenceEntry)}function cn(mt,Mt,Vt,Qt){P();const In=Vt&&Vt.use===Qs.FindReferencesUse.Rename?l.getSourceFiles().filter(yn=>!l.isSourceFileDefaultLibrary(yn)):l.getSourceFiles();return Qs.findReferenceOrRenameEntries(l,_,In,mt,Mt,Vt,Qt)}function gn(mt,Mt){return P(),Qs.findReferencedSymbols(l,_,l.getSourceFiles(),N(mt),Mt)}function Kn(mt){return P(),Qs.Core.getReferencesForFileName(mt,l,l.getSourceFiles()).map(Qs.toReferenceEntry)}function gt(mt,Mt,Vt,Qt=!1,In=!1){P();const yn=Vt?[N(Vt)]:l.getSourceFiles();return bRe(yn,l.getTypeChecker(),_,mt,Mt,Qt,In)}function en(mt,Mt,Vt){P();const Qt=N(mt),In=e.getCustomTransformers&&e.getCustomTransformers();return zse(l,Qt,!!Mt,_,In,Vt)}function or(mt,Mt,{triggerReason:Vt}=Dm){P();const Qt=N(mt);return d8.getSignatureHelpItems(l,Qt,Mt,Vt,_)}function Ni(mt){return s.getCurrentSourceFile(mt)}function so(mt,Mt,Vt){const Qt=s.getCurrentSourceFile(mt),In=sp(Qt,Mt);if(In===Qt)return;switch(In.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let yn=In;for(;;)if(rC(yn)||nce(yn))yn=yn.parent;else if(Vq(yn))if(yn.parent.parent.kind===268&&yn.parent.parent.body===yn.parent)yn=yn.parent.parent.name;else break;else break;return sc(yn.getStart(),In.getEnd())}function zt(mt,Mt){const Vt=s.getCurrentSourceFile(mt);return TK.spanInSourceFileAtLocation(Vt,Mt)}function Zr(mt){return ARe(s.getCurrentSourceFile(mt),_)}function xi(mt){return IRe(s.getCurrentSourceFile(mt),_)}function Pi(mt,Mt,Vt){return P(),(Vt||"original")==="2020"?XDe(l,_,N(mt),Mt):Uce(l.getTypeChecker(),_,N(mt),l.getClassifiableNames(),Mt)}function Pr(mt,Mt,Vt){return P(),(Vt||"original")==="original"?WJ(l.getTypeChecker(),_,N(mt),l.getClassifiableNames(),Mt):yue(l,_,N(mt),Mt)}function Mi(mt,Mt){return Hce(_,s.getCurrentSourceFile(mt),Mt)}function $e(mt,Mt){return FJ(_,s.getCurrentSourceFile(mt),Mt)}function At(mt){const Mt=s.getCurrentSourceFile(mt);return hX.collectElements(Mt,_)}const hn=new Map(Object.entries({19:20,21:22,23:24,32:30}));hn.forEach((mt,Mt)=>hn.set(mt.toString(),Number(Mt)));function dr(mt,Mt){const Vt=s.getCurrentSourceFile(mt),Qt=aC(Vt,Mt),In=Qt.getStart(Vt)===Mt?hn.get(Qt.kind.toString()):void 0,yn=In&&Is(Qt.parent,In,Vt);return yn?[Vu(Qt,Vt),Vu(yn,Vt)].sort((wt,En)=>wt.start-En.start):ie}function ri(mt,Mt,Vt){let Qt=ws();const In=JO(Vt),yn=s.getCurrentSourceFile(mt);y("getIndentationAtPosition: getCurrentSourceFile: "+(ws()-Qt)),Qt=ws();const wt=Lc.SmartIndenter.getIndentation(Mt,yn,In);return y("getIndentationAtPosition: computeIndentation : "+(ws()-Qt)),wt}function ai(mt,Mt,Vt,Qt){const In=s.getCurrentSourceFile(mt);return Lc.formatSelection(Mt,Vt,In,Lc.getFormatContext(JO(Qt),e))}function qi(mt,Mt){return Lc.formatDocument(s.getCurrentSourceFile(mt),Lc.getFormatContext(JO(Mt),e))}function Qo(mt,Mt,Vt,Qt){const In=s.getCurrentSourceFile(mt),yn=Lc.getFormatContext(JO(Qt),e);if(!_v(In,Mt))switch(Vt){case"{":return Lc.formatOnOpeningCurly(Mt,In,yn);case"}":return Lc.formatOnClosingCurly(Mt,In,yn);case";":return Lc.formatOnSemicolon(Mt,In,yn);case` `:return Lc.formatOnEnter(Mt,In,yn)}return[]}function Ia(mt,Mt,Vt,Qt,In,yn=Dm){P();const wt=N(mt),En=sc(Mt,Vt),xn=Lc.getFormatContext(In,e);return fi(fS(Qt,sb,Hs),wn=>(_.throwIfCancellationRequested(),pu.getFixes({errorCode:wn,sourceFile:wt,span:En,program:l,host:e,cancellationToken:_,formatContext:xn,preferences:yn})))}function Pn(mt,Mt,Vt,Qt=Dm){P(),C.assert(mt.type==="file");const In=N(mt.fileName),yn=Lc.getFormatContext(Vt,e);return pu.getAllFixes({fixId:Mt,sourceFile:In,program:l,host:e,cancellationToken:_,formatContext:yn,preferences:Qt})}function Uo(mt,Mt,Vt=Dm){P(),C.assert(mt.type==="file");const Qt=N(mt.fileName);if(yI(Qt))return ie;const In=Lc.getFormatContext(Mt,e),yn=mt.mode??(mt.skipDestructiveCodeActions?"SortAndCombine":"All");return T0.organizeImports(Qt,In,e,l,Vt,yn)}function ot(mt,Mt,Vt,Qt=Dm){return Kce(F(),mt,Mt,e,Lc.getFormatContext(Vt,e),Qt,R)}function Ft(mt,Mt){const Vt=typeof mt=="string"?Mt:mt;return No(Vt)?Promise.all(Vt.map(Qt=>le(Qt))):le(Vt)}function le(mt){const Mt=Vt=>Os(Vt,h,A);return C.assertEqual(mt.type,"install package"),e.installPackage?e.installPackage({fileName:Mt(mt.file),packageName:mt.packageName}):Promise.reject("Host does not implement `installPackage`")}function _t(mt,Mt,Vt,Qt){const In=Qt?Lc.getFormatContext(Qt,e).options:void 0;return b0.getDocCommentTemplateAtPosition(by(e,In),s.getCurrentSourceFile(mt),Mt,Vt)}function ne(mt,Mt,Vt){if(Vt===60)return!1;const Qt=s.getCurrentSourceFile(mt);if(gx(Qt,Mt))return!1;if(cce(Qt,Mt))return Vt===123;if(Kq(Qt,Mt))return!1;switch(Vt){case 39:case 34:case 96:return!_v(Qt,Mt)}return!0}function Fe(mt,Mt){const Vt=s.getCurrentSourceFile(mt),Qt=jc(Mt,Vt);if(!Qt)return;const In=Qt.kind===32&&hh(Qt.parent)?Qt.parent.parent:HI(Qt)&&a_(Qt.parent)?Qt.parent:void 0;if(In&&Ot(In))return{newText:``};const yn=Qt.kind===32&&Km(Qt.parent)?Qt.parent.parent:HI(Qt)&&n0(Qt.parent)?Qt.parent:void 0;if(yn&&nt(yn))return{newText:""}}function it(mt,Mt){const Vt=s.getCurrentSourceFile(mt),Qt=jc(Mt,Vt);if(!Qt||Qt.parent.kind===308)return;const In="[a-zA-Z0-9:\\-\\._$]*";if(n0(Qt.parent.parent)){const yn=Qt.parent.parent.openingFragment,wt=Qt.parent.parent.closingFragment;if(yI(yn)||yI(wt))return;const En=yn.getStart(Vt)+1,xn=wt.getStart(Vt)+2;return Mt!==En&&Mt!==xn?void 0:{ranges:[{start:En,length:0},{start:xn,length:0}],wordPattern:In}}else{const yn=Dn(Qt.parent,la=>!!(hh(la)||qS(la)));if(!yn)return;C.assert(hh(yn)||qS(yn),"tag should be opening or closing element");const wt=yn.parent.openingElement,En=yn.parent.closingElement,xn=wt.tagName.getStart(Vt),wn=wt.tagName.end,ln=En.tagName.getStart(Vt),Ri=En.tagName.end;return xn===wt.getStart(Vt)||ln===En.getStart(Vt)||wn===wt.getEnd()||Ri===En.getEnd()||!(xn<=Mt&&Mt<=wn||ln<=Mt&&Mt<=Ri)||wt.tagName.getText(Vt)!==En.tagName.getText(Vt)?void 0:{ranges:[{start:xn,length:wn-xn},{start:ln,length:Ri-ln}],wordPattern:In}}}function dt(mt,Mt){return{lineStarts:mt.getLineStarts(),firstLine:mt.getLineAndCharacterOfPosition(Mt.pos).line,lastLine:mt.getLineAndCharacterOfPosition(Mt.end).line}}function Lt(mt,Mt,Vt){const Qt=s.getCurrentSourceFile(mt),In=[],{lineStarts:yn,firstLine:wt,lastLine:En}=dt(Qt,Mt);let xn=Vt||!1,wn=Number.MAX_VALUE;const ln=new Map,Ri=new RegExp(/\S/),ia=A7(Qt,yn[wt]),la=ia?"{/*":"//";for(let zo=wt;zo<=En;zo++){const jl=Qt.text.substring(yn[zo],Qt.getLineEndOfPosition(yn[zo])),Cl=Ri.exec(jl);Cl&&(wn=Math.min(wn,Cl.index),ln.set(zo.toString(),Cl.index),jl.substr(Cl.index,la.length)!==la&&(xn=Vt===void 0||Vt))}for(let zo=wt;zo<=En;zo++){if(wt!==En&&yn[zo]===Mt.end)continue;const jl=ln.get(zo.toString());jl!==void 0&&(ia?In.push(...He(mt,{pos:yn[zo]+wn,end:Qt.getLineEndOfPosition(yn[zo])},xn,ia)):xn?In.push({newText:la,span:{length:0,start:yn[zo]+wn}}):Qt.text.substr(yn[zo]+jl,la.length)===la&&In.push({newText:"",span:{length:la.length,start:yn[zo]+jl}}))}return In}function He(mt,Mt,Vt,Qt){var In;const yn=s.getCurrentSourceFile(mt),wt=[],{text:En}=yn;let xn=!1,wn=Vt||!1;const ln=[];let{pos:Ri}=Mt;const ia=Qt!==void 0?Qt:A7(yn,Ri),la=ia?"{/*":"/*",zo=ia?"*/}":"*/",jl=ia?"\\{\\/\\*":"\\/\\*",Cl=ia?"\\*\\/\\}":"\\*\\/";for(;Ri<=Mt.end;){const ks=En.substr(Ri,la.length)===la?la.length:0,lo=_v(yn,Ri+ks);if(lo)ia&&(lo.pos--,lo.end++),ln.push(lo.pos),lo.kind===3&&ln.push(lo.end),xn=!0,Ri=lo.end+1;else{const Go=En.substring(Ri,Mt.end).search(`(${jl})|(${Cl})`);wn=Vt!==void 0?Vt:wn||!bce(En,Ri,Go===-1?Mt.end:Ri+Go),Ri=Go===-1?Mt.end+1:Ri+Go+zo.length}}if(wn||!xn){((In=_v(yn,Mt.pos))==null?void 0:In.kind)!==2&&nb(ln,Mt.pos,Hs),nb(ln,Mt.end,Hs);const ks=ln[0];En.substr(ks,la.length)!==la&&wt.push({newText:la,span:{length:0,start:ks}});for(let lo=1;lo0?ks-zo.length:0,Go=En.substr(lo,zo.length)===zo?zo.length:0;wt.push({newText:"",span:{length:la.length,start:ks-Go}})}return wt}function Rt(mt,Mt){const Vt=s.getCurrentSourceFile(mt),{firstLine:Qt,lastLine:In}=dt(Vt,Mt);return Qt===In&&Mt.pos!==Mt.end?He(mt,Mt,!0):Lt(mt,Mt,!0)}function It(mt,Mt){const Vt=s.getCurrentSourceFile(mt),Qt=[],{pos:In}=Mt;let{end:yn}=Mt;In===yn&&(yn+=A7(Vt,In)?2:1);for(let wt=In;wt<=yn;wt++){const En=_v(Vt,wt);if(En){switch(En.kind){case 2:Qt.push(...Lt(mt,{end:En.end,pos:En.pos+1},!1));break;case 3:Qt.push(...He(mt,{end:En.end,pos:En.pos+1},!1))}wt=En.end+1}}return Qt}function Ot({openingElement:mt,closingElement:Mt,parent:Vt}){return!l0(mt.tagName,Mt.tagName)||a_(Vt)&&l0(mt.tagName,Vt.openingElement.tagName)&&Ot(Vt)}function nt({closingFragment:mt,parent:Mt}){return!!(mt.flags&262144)||n0(Mt)&&nt(Mt)}function Jt(mt,Mt,Vt){const Qt=s.getCurrentSourceFile(mt),In=Lc.getRangeOfEnclosingComment(Qt,Mt);return In&&(!Vt||In.kind===3)?yv(In):void 0}function Tr(mt,Mt){P();const Vt=N(mt);_.throwIfCancellationRequested();const Qt=Vt.text,In=[];if(Mt.length>0&&!xn(Vt.fileName)){const wn=wt();let ln;for(;ln=wn.exec(Qt);){_.throwIfCancellationRequested();const Ri=3;C.assert(ln.length===Mt.length+Ri);const ia=ln[1],la=ln.index+ia.length;if(!_v(Vt,la))continue;let zo;for(let Cl=0;Cl"("+yn(lo.text)+")").join("|")+")",zo=/(?:$|\*\/)/.source,jl=/(?:.*?)/.source,Cl="("+la+jl+")",ks=ia+Cl+zo;return new RegExp(ks,"gim")}function En(wn){return wn>=97&&wn<=122||wn>=65&&wn<=90||wn>=48&&wn<=57}function xn(wn){return wn.includes("/node_modules/")}}function Oe(mt,Mt,Vt){return P(),wz.getRenameInfo(l,N(mt),Mt,Vt||{})}function Nt(mt,Mt,Vt,Qt,In,yn){const[wt,En]=typeof Mt=="number"?[Mt,void 0]:[Mt.pos,Mt.end];return{file:mt,startPosition:wt,endPosition:En,program:F(),host:e,formatContext:Lc.getFormatContext(Qt,e),cancellationToken:_,preferences:Vt,triggerReason:In,kind:yn}}function ge(mt,Mt,Vt){return{file:mt,program:F(),host:e,span:Mt,preferences:Vt,cancellationToken:_}}function B(mt,Mt){return yX.getSmartSelectionRange(Mt,s.getCurrentSourceFile(mt))}function Ie(mt,Mt,Vt=Dm,Qt,In,yn){P();const wt=N(mt);return Sx.getApplicableRefactors(Nt(wt,Mt,Vt,Dm,Qt,In),yn)}function te(mt,Mt,Vt=Dm){P();const Qt=N(mt),In=C.checkDefined(l.getSourceFiles()),yn=NM(mt),wt=HO(Nt(Qt,Mt,Vt,Dm)),En=Fde(wt?.all),xn=Ei(In,wn=>{const ln=NM(wn.fileName);return!l?.isSourceFileFromExternalLibrary(Qt)&&!(Qt===N(wn.fileName)||yn===".ts"&&ln===".d.ts"||yn===".d.ts"&&po(Dc(wn.fileName),"lib.")&&ln===".d.ts")&&(yn===ln||(yn===".tsx"&&ln===".ts"||yn===".jsx"&&ln===".js")&&!En)?wn.fileName:void 0});return{newFileName:Wde(Qt,l,e,wt),files:xn}}function xt(mt,Mt,Vt,Qt,In,yn=Dm,wt){P();const En=N(mt);return Sx.getEditsForRefactor(Nt(En,Vt,yn,Mt),Qt,In,wt)}function Kt(mt,Mt){return Mt===0?{line:0,character:0}:R.toLineColumnOffset(mt,Mt)}function Le(mt,Mt){P();const Vt=Ex.resolveCallHierarchyDeclaration(l,sp(N(mt),Mt));return Vt&&DJ(Vt,Qt=>Ex.createCallHierarchyItem(l,Qt))}function yt(mt,Mt){P();const Vt=N(mt),Qt=CJ(Ex.resolveCallHierarchyDeclaration(l,Mt===0?Vt:sp(Vt,Mt)));return Qt?Ex.getIncomingCalls(l,Qt,_):[]}function Bt(mt,Mt){P();const Vt=N(mt),Qt=CJ(Ex.resolveCallHierarchyDeclaration(l,Mt===0?Vt:sp(Vt,Mt)));return Qt?Ex.getOutgoingCalls(l,Qt):[]}function gr(mt,Mt,Vt=Dm){P();const Qt=N(mt);return pX.provideInlayHints(ge(Qt,Mt,Vt))}function tr(mt,Mt,Vt,Qt,In){return fX.mapCode(s.getCurrentSourceFile(mt),Mt,Vt,e,Lc.getFormatContext(Qt,e),In)}const Jn={dispose:J,cleanupSemanticCache:j,getSyntacticDiagnostics:Z,getSemanticDiagnostics:q,getRegionSemanticDiagnostics:ve,getSuggestionDiagnostics:Y,getCompilerOptionsDiagnostics:Ne,getSyntacticClassifications:Mi,getSemanticClassifications:Pi,getEncodedSyntacticClassifications:$e,getEncodedSemanticClassifications:Pr,getCompletionsAtPosition:Xe,getCompletionEntryDetails:Ee,getCompletionEntrySymbol:re,getSignatureHelpItems:or,getQuickInfoAtPosition:Te,getDefinitionAtPosition:Ce,getDefinitionAndBoundSpan:ye,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:Ue,getReferencesAtPosition:Wt,findReferences:gn,getFileReferences:Kn,getDocumentHighlights:We,getNameOrDottedNameSpan:so,getBreakpointStatementAtPosition:zt,getNavigateToItems:gt,getRenameInfo:Oe,getSmartSelectionRange:B,findRenameLocations:at,getNavigationBarItems:Zr,getNavigationTree:xi,getOutliningSpans:At,getTodoComments:Tr,getBraceMatchingAtPosition:dr,getIndentationAtPosition:ri,getFormattingEditsForRange:ai,getFormattingEditsForDocument:qi,getFormattingEditsAfterKeystroke:Qo,getDocCommentTemplateAtPosition:_t,isValidBraceCompletionAtPosition:ne,getJsxClosingTagAtPosition:Fe,getLinkedEditingRangeAtPosition:it,getSpanOfEnclosingComment:Jt,getCodeFixesAtPosition:Ia,getCombinedCodeFix:Pn,applyCodeActionCommand:Ft,organizeImports:Uo,getEditsForFileRename:ot,getEmitOutput:en,getNonBoundSourceFile:Ni,getProgram:F,getCurrentProgram:()=>l,getAutoImportProvider:W,updateIsDefinitionOfReferencedSymbols:G,getApplicableRefactors:Ie,getEditsForRefactor:xt,getMoveToRefactoringFileSuggestions:te,toLineColumnOffset:Kt,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:Le,provideCallHierarchyIncomingCalls:yt,provideCallHierarchyOutgoingCalls:Bt,toggleLineComment:Lt,toggleMultilineComment:He,commentSelection:Rt,uncommentSelection:It,provideInlayHints:gr,getSupportedCodeFixes:yK,preparePasteEditsForFile:Me,getPasteEdits:Be,mapCode:tr};switch(o){case 0:break;case 1:lCe.forEach(mt=>Jn[mt]=()=>{throw new Error(`LanguageService Operation: ${mt} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:YQe.forEach(mt=>Jn[mt]=()=>{throw new Error(`LanguageService Operation: ${mt} not allowed in LanguageServiceMode.Syntactic`)});break;default:C.assertNever(o)}return Jn}function bK(e){return e.nameTable||$Qe(e),e.nameTable}function $Qe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(Je(i)&&!Bq(i)&&i.escapedText||ff(i)&&QQe(i)){const o=pM(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Qi(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Jo(i,r),rf(i))for(const o of i.jsDoc)Jo(o,r)})}function QQe(e){return w_(e)||e.parent.kind===284||tZe(e)||Pk(e)}function XO(e){const t=ZQe(e);return t&&(za(t.parent)||JS(t.parent))?t:void 0}function ZQe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===168)return _G(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return _G(e.parent)&&(e.parent.parent.kind===211||e.parent.parent.kind===293)&&e.parent.name===e?e.parent:void 0}}function eZe(e,t){const r=XO(e);if(r){const i=t.getContextualType(r.parent),o=i&&hz(r,t,i,!1);if(o&&o.length===1)return Qa(o)}return t.getSymbolAtLocation(e)}function hz(e,t,r,i){const o=NO(e.name);if(!o)return ie;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:ie}const s=za(e.parent)||JS(e.parent)?Un(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=Ei(s,u=>u.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){const u=r.getProperty(o);if(u)return[u]}return!s.length&&!l.length?Ei(r.types,u=>u.getProperty(o)):fS(l,sb)}function tZe(e){return e&&e.parent&&e.parent.kind===213&&e.parent.argumentExpression===e}function Eue(e){if(Hc)return Qr(ci(ya(Hc.getExecutingFilePath())),w2(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}Ere(qQe());function cCe(e,t,r){const i=[];r=XJ(r,i);const o=No(e)?e:[e],s=rO(void 0,void 0,L,r,o,t,!0);return s.diagnostics=ao(s.diagnostics,i),s}var TK={};x(TK,{spanInSourceFileAtLocation:()=>nZe});function nZe(e,t){if(e.isDeclarationFile)return;let r=zi(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const y=jc(r.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;r=y}if(r.flags&33554432)return;return h(r);function o(y,E){const A=YS(y)?ga(y.modifiers,Bc):void 0,R=A?wa(e.text,A.end):y.getStart(e);return sc(R,(E||y).getEnd())}function s(y,E){return o(y,iE(E,E.parent,e))}function l(y,E){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?h(y):h(E)}function u(y,E,A){if(y){const R=y.indexOf(E);if(R>=0){let N=R,P=R+1;for(;N>0&&A(y[N-1]);)N--;for(;P0)return h(Ne.declarations[0])}else return h(Y.initializer)}function j(Y){if(Y.initializer)return G(Y);if(Y.condition)return o(Y.condition);if(Y.incrementor)return o(Y.incrementor)}function J(Y){const Ne=qe(Y.elements,Xe=>Xe.kind!==233?Xe:void 0);return Ne?h(Ne):Y.parent.kind===209?o(Y.parent):E(Y.parent)}function Z(Y){C.assert(Y.kind!==208&&Y.kind!==207);const Ne=Y.kind===210?Y.elements:Y.properties,Xe=qe(Ne,Ee=>Ee.kind!==233?Ee:void 0);return Xe?h(Xe):o(Y.parent.kind===227?Y.parent:Y)}function q(Y){switch(Y.parent.kind){case 267:const Ne=Y.parent;return l(jc(Y.pos,e,Y.parent),Ne.members.length?Ne.members[0]:Ne.getLastToken(e));case 264:const Xe=Y.parent;return l(jc(Y.pos,e,Y.parent),Xe.members.length?Xe.members[0]:Xe.getLastToken(e));case 270:return l(Y.parent.parent,Y.parent.clauses[0])}return h(Y.parent)}function ve(Y){switch(Y.parent.kind){case 269:if(yy(Y.parent.parent)!==1)return;case 267:case 264:return o(Y);case 242:if(xS(Y.parent))return o(Y);case 300:return h(tl(Y.parent.statements));case 270:const Ne=Y.parent,Xe=tl(Ne.clauses);return Xe?h(tl(Xe.statements)):void 0;case 207:const Ee=Y.parent;return h(tl(Ee.elements)||Ee);default:if(gv(Y.parent)){const re=Y.parent;return o(tl(re.properties)||re)}return h(Y.parent)}}function oe(Y){switch(Y.parent.kind){case 208:const Ne=Y.parent;return o(tl(Ne.elements)||Ne);default:if(gv(Y.parent)){const Xe=Y.parent;return o(tl(Xe.elements)||Xe)}return h(Y.parent)}}function K(Y){return Y.parent.kind===247||Y.parent.kind===214||Y.parent.kind===215?d(Y):Y.parent.kind===218?_(Y):h(Y.parent)}function fe(Y){switch(Y.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return d(Y);default:return h(Y.parent)}}function ue(Y){return $o(Y.parent)||Y.parent.kind===304||Y.parent.kind===170?d(Y):h(Y.parent)}function me(Y){return Y.parent.kind===217?_(Y):h(Y.parent)}function be(Y){return Y.parent.kind===247?s(Y,Y.parent.expression):h(Y.parent)}function De(Y){return Y.parent.kind===251?_(Y):h(Y.parent)}}}var Ex={};x(Ex,{createCallHierarchyItem:()=>Aue,getIncomingCalls:()=>dZe,getOutgoingCalls:()=>bZe,resolveCallHierarchyDeclaration:()=>gCe});function rZe(e){return(qs(e)||fc(e))&&rd(e)}function dCe(e){return Mo(e)||yi(e)}function YO(e){return(qs(e)||$s(e)||fc(e))&&dCe(e.parent)&&e===e.parent.initializer&&Je(e.parent.name)&&(!!(oy(e.parent)&2)||Mo(e.parent))}function uCe(e){return Xi(e)||mc(e)||rc(e)||qs(e)||Mc(e)||fc(e)||nc(e)||Ll(e)||qm(e)||Xf(e)||bp(e)}function _C(e){return Xi(e)||mc(e)&&Je(e.name)||rc(e)||Mc(e)||nc(e)||Ll(e)||qm(e)||Xf(e)||bp(e)||rZe(e)||YO(e)}function pCe(e){return Xi(e)?e:rd(e)?e.name:YO(e)?e.parent.name:C.checkDefined(e.modifiers&&mn(e.modifiers,fCe))}function fCe(e){return e.kind===90}function mCe(e,t){const r=pCe(t);return r&&e.getSymbolAtLocation(r)}function iZe(e,t){if(Xi(t))return{text:t.fileName,pos:0,end:0};if((rc(t)||Mc(t))&&!rd(t)){const o=t.modifiers&&mn(t.modifiers,fCe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(nc(t)){const o=t.getSourceFile(),s=wa(o.text,Zh(t).pos),l=s+6,u=e.getTypeChecker(),d=u.getSymbolAtLocation(t.parent);return{text:`${d?`${u.symbolToString(d,t.parent)} `:""}static {}`,pos:s,end:l}}const r=YO(t)?t.parent.name:C.checkDefined(wo(t),"Expected call hierarchy item to have a name");let i=Je(r)?Kr(r):ff(r)?r.text:va(r)&&ff(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=SH();i=XR(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function oZe(e){var t,r,i,o;if(YO(e))return Mo(e.parent)&&ui(e.parent.parent)?fc(e.parent.parent)?(t=yF(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():i_(e.parent.parent.parent.parent)&&Je(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return e.parent.kind===211?(i=yF(e.parent))==null?void 0:i.getText():(o=wo(e.parent))==null?void 0:o.getText();case 263:case 264:case 268:if(i_(e.parent)&&Je(e.parent.parent.name))return e.parent.parent.name.getText()}}function hCe(e,t){if(t.body)return t;if(kl(t))return Eg(t.parent);if(rc(t)||Ll(t)){const r=mCe(e,t);return r&&r.valueDeclaration&&Ls(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function _Ce(e,t){const r=mCe(e,t);let i;if(r&&r.declarations){const o=JW(r.declarations),s=Yt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,_)=>Bd(s[d].file,s[_].file)||s[d].pos-s[_].pos);const l=Yt(o,d=>r.declarations[d]);let u;for(const d of l)_C(d)&&((!u||u.parent!==d.parent||u.end!==d.pos)&&(i=Vn(i,d)),u=d)}return i}function SK(e,t){return nc(t)?t:Ls(t)?hCe(e,t)??_Ce(e,t)??t:_Ce(e,t)??t}function gCe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(_C(t))return SK(r,t);if(uCe(t)){const o=Dn(t,_C);return o&&SK(r,o)}if(w_(t)){if(_C(t.parent))return SK(r,t.parent);if(uCe(t.parent)){const o=Dn(t.parent,_C);return o&&SK(r,o)}return dCe(t.parent)&&t.parent.initializer&&YO(t.parent.initializer)?t.parent.initializer:void 0}if(kl(t))return _C(t.parent)?t.parent:void 0;if(t.kind===126&&nc(t.parent)){t=t.parent;continue}if(yi(t)&&t.initializer&&YO(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 Aue(e,t){const r=t.getSourceFile(),i=iZe(e,t),o=oZe(t),s=rE(t),l=kP(t),u=sc(wa(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=sc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:d}}function aZe(e){return e!==void 0}function sZe(e){if(e.kind===Qs.EntryKind.Node){const{node:t}=e;if(Oq(t,!0,!0)||Zle(t,!0,!0)||ece(t,!0,!0)||tce(t,!0,!0)||rC(t)||Gq(t)){const r=t.getSourceFile();return{declaration:Dn(t,_C)||r,range:nJ(t,r)}}}}function yCe(e){return ls(e.declaration)}function lZe(e,t){return{from:e,fromSpans:t}}function cZe(e,t){return lZe(Aue(e,t[0].declaration),Yt(t,r=>yv(r.range)))}function dZe(e,t,r){if(Xi(t)||mc(t)||nc(t))return[];const i=pCe(t),o=Un(Qs.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Qs.FindReferencesUse.References},sZe),aZe);return o?MR(o,yCe,s=>cZe(e,s)):[]}function uZe(e,t){function r(o){const s=$T(o)?o.tag:au(o)?o.tagName:Ys(o)||nc(o)?o:o.expression,l=gCe(e,s);if(l){const u=nJ(s,o.getSourceFile());if(No(l))for(const d of l)t.push({declaration:d,range:u});else t.push({declaration:l,range:u})}}function i(o){if(o&&!(o.flags&33554432)){if(_C(o)){if(ui(o))for(const s of o.members)s.name&&va(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:r(o);return;case 217:case 235:i(o.expression);return;case 261:case 170:i(o.name),i(o.initializer);return;case 214:r(o),i(o.expression),qe(o.arguments,i);return;case 215:r(o),i(o.expression),qe(o.arguments,i);return;case 216:r(o),i(o.tag),i(o.template);return;case 287:case 286:r(o),i(o.tagName),i(o.attributes);return;case 171:r(o),i(o.expression);return;case 212:case 213:r(o),Jo(o,i);break;case 239:i(o.expression);return}Kh(o)||Jo(o,i)}}return i}function pZe(e,t){qe(e.statements,t)}function fZe(e,t){!di(e,128)&&e.body&&i_(e.body)&&qe(e.body.statements,t)}function mZe(e,t,r){const i=hCe(e,t);i&&(qe(i.parameters,r),r(i.body))}function hZe(e,t){t(e.body)}function _Ze(e,t){qe(e.modifiers,t);const r=MS(e);r&&t(r.expression);for(const i of e.members)Rm(i)&&qe(i.modifiers,t),Mo(i)?t(i.initializer):kl(i)&&i.body?(qe(i.parameters,t),t(i.body)):nc(i)&&t(i)}function gZe(e,t){const r=[],i=uZe(e,r);switch(t.kind){case 308:pZe(t,i);break;case 268:fZe(t,i);break;case 263:case 219:case 220:case 175:case 178:case 179:mZe(e.getTypeChecker(),t,i);break;case 264:case 232:_Ze(t,i);break;case 176:hZe(t,i);break;default:C.assertNever(t)}return r}function yZe(e,t){return{to:e,fromSpans:t}}function vZe(e,t){return yZe(Aue(e,t[0].declaration),Yt(t,r=>yv(r.range)))}function bZe(e,t){return t.flags&33554432||qm(t)?[]:MR(gZe(e,t),yCe,r=>vZe(e,r))}var Iue={};x(Iue,{v2020:()=>vCe});var vCe={};x(vCe,{TokenEncodingConsts:()=>qDe,TokenModifier:()=>KDe,TokenType:()=>JDe,getEncodedSemanticClassifications:()=>yue,getSemanticClassifications:()=>XDe});var pu={};x(pu,{PreserveOptionalFlags:()=>LLe,addNewNodeForMemberSymbol:()=>kLe,codeFixAll:()=>As,createCodeFixAction:()=>aa,createCodeFixActionMaybeFixAll:()=>Due,createCodeFixActionWithoutFixAll:()=>Th,createCombinedCodeActions:()=>Ax,createFileTextChanges:()=>bCe,createImportAdder:()=>dE,createImportSpecifierResolver:()=>Met,createMissingMemberNodes:()=>Xpe,createSignatureDeclarationFromCallExpression:()=>Ype,createSignatureDeclarationFromSignature:()=>KK,createStubbedBody:()=>Sz,eachDiagnostic:()=>Ix,findAncestorMatchingSpan:()=>rfe,generateAccessorFromProperty:()=>VLe,getAccessorConvertiblePropertyAtPosition:()=>HLe,getAllFixes:()=>AZe,getFixes:()=>EZe,getImportCompletionAction:()=>Pet,getImportKind:()=>LK,getJSDocTypedefNodes:()=>Cet,getNoopSymbolTrackerWithResolver:()=>yC,getPromoteTypeOnlyCompletionAction:()=>Let,getSupportedErrorCodes:()=>TZe,importFixName:()=>VNe,importSymbols:()=>H1,parameterShouldGetTypeFromJSDoc:()=>$Ce,registerCodeFix:()=>Sa,setJsonCompilerOptionValue:()=>tfe,setJsonCompilerOptionValues:()=>efe,tryGetAutoImportableReferenceFromTypeNode:()=>uE,typeNodeToAutoImportableTypeNode:()=>$pe,typePredicateToAutoImportableTypeNode:()=>WLe,typeToAutoImportableTypeNode:()=>XK,typeToMinimizedReferenceType:()=>OLe});var xue=hm(),Rue=new Map;function Th(e,t,r){return Cue(e,oE(r),t,void 0,void 0)}function aa(e,t,r,i,o,s){return Cue(e,oE(r),t,i,oE(o),s)}function Due(e,t,r,i,o,s){return Cue(e,oE(r),t,i,o&&oE(o),s)}function Cue(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function Sa(e){for(const t of e.errorCodes)Nue=void 0,xue.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)C.assert(!Rue.has(t)),Rue.set(t,e)}var Nue;function TZe(){return Nue??(Nue=Do(xue.keys()))}function SZe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(jn(r,s.code)&&i++,i>1)break;const o=i<2;return({fixId:s,fixAllDescription:l,...u})=>o?u:{...u,fixId:s,fixAllDescription:l}}function EZe(e){const t=TCe(e),r=xue.get(String(e.errorCode));return fi(r,i=>Yt(i.getCodeActions(e),SZe(i,t)))}function AZe(e){return Rue.get(ma(e.fixId,Bo)).getAllCodeActions(e)}function Ax(e,t){return{changes:e,commands:t}}function bCe(e,t){return{fileName:e,textChanges:t}}function As(e,t,r){const i=[],o=Rr.ChangeTracker.with(e,s=>Ix(e,t,l=>r(s,l,i)));return Ax(o,i.length===0?void 0:i)}function Ix(e,t,r){for(const i of TCe(e))jn(t,i.code)&&r(i)}function TCe({program:e,sourceFile:t,cancellationToken:r}){const i=[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...HJ(t,e,r)];return vp(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,r)),i}var Mue="addConvertToUnknownForNonOverlappingTypes",SCe=[f.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];Sa({errorCodes:SCe,getCodeActions:function(t){const r=ACe(t.sourceFile,t.span.start);if(r===void 0)return;const i=Rr.ChangeTracker.with(t,o=>ECe(o,t.sourceFile,r));return[aa(Mue,i,f.Add_unknown_conversion_for_non_overlapping_types,Mue,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Mue],getAllCodeActions:e=>As(e,SCe,(t,r)=>{const i=ACe(r.file,r.start);i&&ECe(t,r.file,i)})});function ECe(e,t,r){const i=DD(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function ACe(e,t){if(!Ir(e))return Dn(zi(e,t),r=>DD(r)||R4(r))}Sa({errorCodes:[f.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,f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.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=Rr.ChangeTracker.with(t,o=>{const s=L.createExportDeclaration(void 0,!1,L.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Th("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}});var Pue="addMissingAsync",ICe=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code];Sa({fixIds:[Pue],errorCodes:ICe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=mn(s.getTypeChecker().getDiagnostics(r,o),xZe(l,i)),d=u&&u.relatedInformation&&mn(u.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),_=RCe(r,d);return _?[xCe(t,_,y=>Rr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return As(e,ICe,(i,o)=>{const s=o.relatedInformation&&mn(o.relatedInformation,d=>d.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=RCe(t,s);return l?xCe(e,l,d=>(d(i),[]),r):void 0})}});function xCe(e,t,r,i){const o=r(s=>IZe(s,e.sourceFile,t,i));return aa(Pue,o,f.Add_async_modifier_to_containing_function,Pue,f.Add_all_missing_async_modifiers)}function IZe(e,t,r,i){if(i&&i.has(ls(r)))return;i?.add(ls(r));const o=L.replaceModifiers(_s(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(iv(r)|1024)));e.replaceNode(t,r,o)}function RCe(e,t){if(!t)return;const r=zi(e,t.start);return Dn(r,o=>o.getStart(e)Ml(t)?"quit":($s(o)||Ll(o)||qs(o)||rc(o))&&cC(t,Vu(o,e)))}function xZe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>ob(r)&&ob(i)&&cC({start:r,length:i},e)&&s===t&&!!o&&vt(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var Lue="addMissingAwait",DCe=f.Property_0_does_not_exist_on_type_1.code,CCe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],kue=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,DCe,...CCe];Sa({fixIds:[Lue],errorCodes:kue,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=NCe(r,i,o,s,l);if(!u)return;const d=t.program.getTypeChecker(),_=h=>Rr.ChangeTracker.with(t,h);return b2([MCe(t,u,i,d,_),PCe(t,u,i,d,_)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return As(e,kue,(l,u)=>{const d=NCe(t,u.code,u,i,r);if(!d)return;const _=h=>(h(l),[]);return MCe(e,d,u.code,o,_,s)||PCe(e,d,u.code,o,_,s)})}});function NCe(e,t,r,i,o){const s=RJ(e,r);return s&&RZe(e,t,r,i,o)&&LCe(s)?s:void 0}function MCe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:d}=e,_=DZe(t,l,d,u,i);if(_){const h=o(y=>{qe(_.initializers,({expression:E})=>wue(y,r,l,i,E,s)),s&&_.needsSecondPassForFixAll&&wue(y,r,l,i,t,s)});return Th("addMissingAwaitToInitializer",h,_.initializers.length===1?[f.Add_await_to_initializer_for_0,_.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function PCe(e,t,r,i,o,s){const l=o(u=>wue(u,r,e.sourceFile,i,t,s));return aa(Lue,l,f.Add_await,Lue,f.Fix_all_expressions_possibly_missing_await)}function RZe(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return vt(l,({start:u,length:d,relatedInformation:_,code:h})=>ob(u)&&ob(d)&&cC({start:u,length:d},r)&&h===t&&!!_&&vt(_,y=>y.code===f.Did_you_forget_to_use_await.code))}function DZe(e,t,r,i,o){const s=CZe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const d of s.identifiers){const _=o.getSymbolAtLocation(d);if(!_)continue;const h=ni(_.valueDeclaration,yi),y=h&&ni(h.name,Je),E=UT(h,244);if(!h||!E||h.type||!h.initializer||E.getSourceFile()!==t||di(E,32)||!y||!LCe(h.initializer)){l=!1;continue}const A=i.getSemanticDiagnostics(t,r);if(Qs.Core.eachSymbolReferenceInFile(y,o,t,N=>d!==N&&!NZe(N,A,t,o))){l=!1;continue}(u||(u=[])).push({expression:h.initializer,declarationSymbol:_})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function CZe(e,t){if(qr(e.parent)&&Je(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Je(e))return{identifiers:[e],isCompleteFix:!0};if(Nr(e)){let r,i=!0;for(const o of[e.left,e.right]){const s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Je(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function NZe(e,t,r,i){const o=qr(e.parent)?e.parent.name:Nr(e.parent)?e.parent:e,s=mn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&jn(kue,s.code)||i.getTypeAtLocation(o).flags&1}function LCe(e){return e.flags&65536||!!Dn(e,t=>t.parent&&$s(t.parent)&&t.parent.body===t||ta(t)&&(t.parent.kind===263||t.parent.kind===219||t.parent.kind===220||t.parent.kind===175))}function wue(e,t,r,i,o,s){if(Ew(o.parent)&&!o.parent.awaitModifier){const l=i.getTypeAtLocation(o),u=i.getAnyAsyncIterableType();if(u&&i.isTypeAssignableTo(l,u)){const d=o.parent;e.replaceNode(r,d,L.updateForOfStatement(d,L.createToken(135),d.initializer,d.expression,d.statement));return}}if(Nr(o))for(const l of[o.left,o.right]){if(s&&Je(l)){const _=i.getSymbolAtLocation(l);if(_&&s.has(Ta(_)))continue}const u=i.getTypeAtLocation(l),d=i.getPromisedTypeOfPromise(u)?L.createAwaitExpression(l):l;e.replaceNode(r,l,d)}else if(t===DCe&&qr(o.parent)){if(s&&Je(o.parent.expression)){const l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o.parent.expression,L.createParenthesizedExpression(L.createAwaitExpression(o.parent.expression))),kCe(e,o.parent.expression,r)}else if(jn(CCe,t)&&Uh(o.parent)){if(s&&Je(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),kCe(e,o,r)}else{if(s&&yi(o.parent)&&Je(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!Wf(s,Ta(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function kCe(e,t,r){const i=jc(t.pos,r);i&&z7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var Oue="addMissingConst",wCe=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];Sa({errorCodes:wCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>OCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[aa(Oue,r,f.Add_const_to_unresolved_variable,Oue,f.Add_const_to_all_unresolved_variables)]},fixIds:[Oue],getAllCodeActions:e=>{const t=new Set;return As(e,wCe,(r,i)=>OCe(r,i.file,i.start,e.program,t))}});function OCe(e,t,r,i,o){const s=zi(t,r),l=Dn(s,_=>n1(_.parent)?_.parent.initializer===_:MZe(_)?!1:"quit");if(l)return EK(e,l,t,o);const u=s.parent;if(Nr(u)&&u.operatorToken.kind===64&&ad(u.parent))return EK(e,s,t,o);if(Nd(u)){const _=i.getTypeChecker();return Hn(u.elements,h=>PZe(h,_))?EK(e,u,t,o):void 0}const d=Dn(s,_=>ad(_.parent)?!0:LZe(_)?!1:"quit");if(d){const _=i.getTypeChecker();return WCe(d,_)?EK(e,d,t,o):void 0}}function EK(e,t,r,i){(!i||Wf(i,t))&&e.insertModifierBefore(r,87,t)}function MZe(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function PZe(e,t){const r=Je(e)?e:od(e,!0)&&Je(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function LZe(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}function WCe(e,t){return Nr(e)?e.operatorToken.kind===28?Hn([e.left,e.right],r=>WCe(r,t)):e.operatorToken.kind===64&&Je(e.left)&&!t.getSymbolAtLocation(e.left):!1}var Wue="addMissingDeclareProperty",FCe=[f.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];Sa({errorCodes:FCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>zCe(i,t.sourceFile,t.span.start));if(r.length>0)return[aa(Wue,r,f.Prefix_with_declare,Wue,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[Wue],getAllCodeActions:e=>{const t=new Set;return As(e,FCe,(r,i)=>zCe(r,i.file,i.start,t))}});function zCe(e,t,r,i){const o=zi(t,r);if(!Je(o))return;const s=o.parent;s.kind===173&&(!i||Wf(i,s))&&e.insertModifierBefore(t,138,s)}var Fue="addMissingInvocationForDecorator",BCe=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];Sa({errorCodes:BCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>GCe(i,t.sourceFile,t.span.start));return[aa(Fue,r,f.Call_decorator_expression,Fue,f.Add_to_all_uncalled_decorators)]},fixIds:[Fue],getAllCodeActions:e=>As(e,BCe,(t,r)=>GCe(t,r.file,r.start))});function GCe(e,t,r){const i=zi(t,r),o=Dn(i,Bc);C.assert(!!o,"Expected position to be owned by a decorator.");const s=L.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var zue="addMissingResolutionModeImportAttribute",VCe=[f.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,f.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];Sa({errorCodes:VCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>jCe(i,t.sourceFile,t.span.start,t.program,t.host,t.preferences));return[aa(zue,r,f.Add_resolution_mode_import_attribute,zue,f.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[zue],getAllCodeActions:e=>As(e,VCe,(t,r)=>jCe(t,r.file,r.start,e.program,e.host,e.preferences))});function jCe(e,t,r,i,o,s){var l,u,d;const _=zi(t,r),h=Dn(_,Np(Tl,r_));C.assert(!!h,"Expected position to be owned by an ImportDeclaration or ImportType.");const y=Up(t,s)===0,E=SI(h),A=!E||((l=w1(E.text,t.fileName,i.getCompilerOptions(),o,i.getModuleResolutionCache(),void 0,99).resolvedModule)==null?void 0:l.resolvedFileName)===((d=(u=i.getResolvedModuleFromModuleSpecifier(E,t))==null?void 0:u.resolvedModule)==null?void 0:d.resolvedFileName),R=h.attributes?L.updateImportAttributes(h.attributes,L.createNodeArray([...h.attributes.elements,L.createImportAttribute(L.createStringLiteral("resolution-mode",y),L.createStringLiteral(A?"import":"require",y))],h.attributes.elements.hasTrailingComma),h.attributes.multiLine):L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode",y),L.createStringLiteral(A?"import":"require",y))]));h.kind===273?e.replaceNode(t,h,L.updateImportDeclaration(h,h.modifiers,h.importClause,h.moduleSpecifier,R)):e.replaceNode(t,h,L.updateImportTypeNode(h,h.argument,R,h.qualifier,h.typeArguments))}var Bue="addNameToNamelessParameter",UCe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];Sa({errorCodes:UCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>HCe(i,t.sourceFile,t.span.start));return[aa(Bue,r,f.Add_parameter_name,Bue,f.Add_names_to_all_parameters_without_names)]},fixIds:[Bue],getAllCodeActions:e=>As(e,UCe,(t,r)=>HCe(t,r.file,r.start))});function HCe(e,t,r){const i=zi(t,r),o=i.parent;if(!Zi(o))return C.fail("Tried to add a parameter name to a non-parameter: "+C.formatSyntaxKind(i.kind));const s=o.parent.parameters.indexOf(o);C.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),C.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),u=L.createTypeReferenceNode(o.name,void 0),d=qCe(t,o);for(;d;)u=L.createArrayTypeNode(u),l=d.getEnd(),d=qCe(t,d);const _=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!Tw(u)?L.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Uf(o.getStart(t),l),_)}function qCe(e,t){const r=iE(t.name,t.parent,e);if(r&&r.kind===23&&mv(r.parent)&&Zi(r.parent.parent))return r.parent.parent}var JCe="addOptionalPropertyUndefined",kZe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.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];Sa({errorCodes:kZe,getCodeActions(e){const t=e.program.getTypeChecker(),r=wZe(e.sourceFile,e.span,t);if(!r.length)return;const i=Rr.ChangeTracker.with(e,o=>WZe(o,r));return[Th(JCe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[JCe]});function wZe(e,t,r){var i,o;const s=KCe(RJ(e,t),r);if(!s)return ie;const{source:l,target:u}=s,d=OZe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(_=>zn(_).fileName.match(/\.d\.ts$/))?ie:r.getExactOptionalProperties(d)}function OZe(e,t,r){return qr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function KCe(e,t){var r;if(e){if(Nr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(yi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(ea(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!uI(i.valueDeclaration.kind)||!St(e))return;const o=e.parent.arguments.indexOf(e);if(o===-1)return;const s=i.valueDeclaration.parameters[o].name;if(Je(s))return{source:e,target:s}}else if(Pc(e.parent)&&Je(e.parent.name)||Jd(e.parent)){const i=KCe(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:Pc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function WZe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Iu(i)||Mo(i))&&i.type){const o=L.createUnionTypeNode([...i.type.kind===193?i.type.types:[i.type],L.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var Gue="annotateWithTypeFromJSDoc",XCe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code];Sa({errorCodes:XCe,getCodeActions(e){const t=YCe(e.sourceFile,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>ZCe(i,e.sourceFile,t));return[aa(Gue,r,f.Annotate_with_type_from_JSDoc,Gue,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[Gue],getAllCodeActions:e=>As(e,XCe,(t,r)=>{const i=YCe(r.file,r.start);i&&ZCe(t,r.file,i)})});function YCe(e,t){const r=zi(e,t);return ni(Zi(r.parent)?r.parent.parent:r.parent,$Ce)}function $Ce(e){return FZe(e)&&QCe(e)}function QCe(e){return Ls(e)?e.parameters.some(QCe)||!e.type&&!!G2(e):!e.type&&!!Zy(e)}function ZCe(e,t,r){if(Ls(r)&&(G2(r)||r.parameters.some(i=>!!Zy(i)))){if(!r.typeParameters){const o=C6(r);o.length&&e.insertTypeParameters(t,r,o)}const i=$s(r)&&!Is(r,21,t);i&&e.insertNodeBefore(t,Qa(r.parameters),L.createToken(21));for(const o of r.parameters)if(!o.type){const s=Zy(o);s&&e.tryInsertTypeAnnotation(t,o,st(s,cE,Ci))}if(i&&e.insertNodeAfter(t,Ga(r.parameters),L.createToken(22)),!r.type){const o=G2(r);o&&e.tryInsertTypeAnnotation(t,r,st(o,cE,Ci))}}else{const i=C.checkDefined(Zy(r),"A JSDocType for this declaration should exist");C.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,st(i,cE,Ci))}}function FZe(e){return Ls(e)||e.kind===261||e.kind===172||e.kind===173}function cE(e){switch(e.kind){case 313:case 314:return L.createTypeReferenceNode("any",ie);case 317:return BZe(e);case 316:return cE(e.type);case 315:return GZe(e);case 319:return VZe(e);case 318:return jZe(e);case 184:return HZe(e);case 323:return zZe(e);default:const t=On(e,cE,void 0);return Cr(t,1),t}}function zZe(e){const t=L.createTypeLiteralNode(Yt(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,Je(r.name)?r.name:r.name.right,cw(r)?L.createToken(58):void 0,r.typeExpression&&st(r.typeExpression.type,cE,Ci)||L.createKeywordTypeNode(133))));return Cr(t,1),t}function BZe(e){return L.createUnionTypeNode([st(e.type,cE,Ci),L.createTypeReferenceNode("undefined",ie)])}function GZe(e){return L.createUnionTypeNode([st(e.type,cE,Ci),L.createTypeReferenceNode("null",ie)])}function VZe(e){return L.createArrayTypeNode(st(e.type,cE,Ci))}function jZe(e){return L.createFunctionTypeNode(ie,e.parameters.map(UZe),e.type??L.createKeywordTypeNode(133))}function UZe(e){const t=e.parent.parameters.indexOf(e),r=e.type.kind===319&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?L.createToken(26):e.dotDotDotToken;return L.createParameterDeclaration(e.modifiers,o,i,e.questionToken,st(e.type,cE,Ci),e.initializer)}function HZe(e){let t=e.typeName,r=e.typeArguments;if(Je(e.typeName)){if(d6(e))return qZe(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=L.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=L.createNodeArray([L.createTypeReferenceNode("any",ie)]):r=Xn(e.typeArguments,cE,Ci)}return L.createTypeReferenceNode(t,r)}function qZe(e){const t=L.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,L.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=L.createTypeLiteralNode([L.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Cr(r,1),r}var Vue="convertFunctionToEs6Class",eNe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code];Sa({errorCodes:eNe,getCodeActions(e){const t=Rr.ChangeTracker.with(e,r=>tNe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[aa(Vue,t,f.Convert_function_to_an_ES2015_class,Vue,f.Convert_all_constructor_functions_to_classes)]},fixIds:[Vue],getAllCodeActions:e=>As(e,eNe,(t,r)=>tNe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function tNe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(zi(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(rc(u)||qs(u))e.replaceNode(t,u,h(u));else if(yi(u)){const y=_(u);if(!y)return;const E=u.parent.parent;gd(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,E,y)):e.replaceNode(t,E,y)}function d(y){const E=[];return y.exports&&y.exports.forEach(N=>{if(N.name==="prototype"&&N.declarations){const P=N.declarations[0];if(N.declarations.length===1&&qr(P)&&Nr(P.parent)&&P.parent.operatorToken.kind===64&&za(P.parent.right)){const k=P.parent.right;R(k.symbol,void 0,E)}}else R(N,[L.createToken(126)],E)}),y.members&&y.members.forEach((N,P)=>{var k,F,W,G;if(P==="constructor"&&N.valueDeclaration){const j=(G=(W=(F=(k=y.exports)==null?void 0:k.get("prototype"))==null?void 0:F.declarations)==null?void 0:W[0])==null?void 0:G.parent;j&&Nr(j)&&za(j.right)&&vt(j.right.properties,IK)||e.delete(t,N.valueDeclaration.parent);return}R(N,void 0,E)}),E;function A(N,P){return Ys(N)?qr(N)&&IK(N)?!0:$o(P):Hn(N.properties,k=>!!(Ll(k)||j2(k)||Pc(k)&&qs(k.initializer)&&k.name||IK(k)))}function R(N,P,k){if(!(N.flags&8192)&&!(N.flags&4096))return;const F=N.valueDeclaration,W=F.parent,G=W.right;if(!A(F,G)||vt(k,ve=>{const oe=wo(ve);return!!(oe&&Je(oe)&&Kr(oe)===Fl(N))}))return;const j=W.parent&&W.parent.kind===245?W.parent:W;if(e.delete(t,j),!G){k.push(L.createPropertyDeclaration(P,N.name,void 0,void 0,void 0));return}if(Ys(F)&&(qs(G)||$s(G))){const ve=Up(t,o),oe=JZe(F,s,ve);oe&&J(k,G,oe);return}else if(za(G)){qe(G.properties,ve=>{(Ll(ve)||j2(ve))&&k.push(ve),Pc(ve)&&qs(ve.initializer)&&J(k,ve.initializer,ve.name),IK(ve)});return}else{if(wu(t)||!qr(F))return;const ve=L.createPropertyDeclaration(P,F.name,void 0,void 0,G);uC(W.parent,ve,t),k.push(ve);return}function J(ve,oe,K){return qs(oe)?Z(ve,oe,K):q(ve,oe,K)}function Z(ve,oe,K){const fe=ao(P,AK(oe,134)),ue=L.createMethodDeclaration(fe,void 0,K,void 0,void 0,oe.parameters,void 0,oe.body);uC(W,ue,t),ve.push(ue)}function q(ve,oe,K){const fe=oe.body;let ue;fe.kind===242?ue=fe:ue=L.createBlock([L.createReturnStatement(fe)]);const me=ao(P,AK(oe,134)),be=L.createMethodDeclaration(me,void 0,K,void 0,void 0,oe.parameters,void 0,ue);uC(W,be,t),ve.push(be)}}}function _(y){const E=y.initializer;if(!E||!qs(E)||!Je(y.name))return;const A=d(y.symbol);E.body&&A.unshift(L.createConstructorDeclaration(void 0,E.parameters,E.body));const R=AK(y.parent.parent,95);return L.createClassDeclaration(R,y.name,void 0,void 0,A)}function h(y){const E=d(l);y.body&&E.unshift(L.createConstructorDeclaration(void 0,y.parameters,y.body));const A=AK(y,95);return L.createClassDeclaration(A,y.name,void 0,void 0,E)}}function AK(e,t){return Rm(e)?Un(e.modifiers,r=>r.kind===t):void 0}function IK(e){return e.name?!!(Je(e.name)&&e.name.text==="constructor"):!1}function JZe(e,t,r){if(qr(e))return e.name;const i=e.argumentExpression;if(op(i))return i;if(ds(i))return _p(i.text,Va(t))?L.createIdentifier(i.text):T1(i)?L.createStringLiteral(i.text,r===0):i}var jue="convertToAsyncFunction",nNe=[f.This_may_be_converted_to_an_async_function.code],xK=!0;Sa({errorCodes:nNe,getCodeActions(e){xK=!0;const t=Rr.ChangeTracker.with(e,r=>rNe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return xK?[aa(jue,t,f.Convert_to_async_function,jue,f.Convert_all_to_async_functions)]:[]},fixIds:[jue],getAllCodeActions:e=>As(e,nNe,(t,r)=>rNe(t,r.file,r.start,e.program.getTypeChecker()))});function rNe(e,t,r,i){const o=zi(t,r);let s;if(Je(o)&&yi(o.parent)&&o.parent.initializer&&Ls(o.parent.initializer)?s=o.parent.initializer:s=ni(pf(zi(t,r)),KJ),!s)return;const l=new Map,u=Ir(s),d=XZe(s,i),_=YZe(s,i,l);if(!qJ(_,i))return;const h=_.body&&ta(_.body)?KZe(_.body,i):ie,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:d,isInJSFile:u};if(!h.length)return;const E=wa(t.text,Zh(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(const A of h)if(Jo(A,function R(N){if(ea(N)){const P=gC(N,N,y,!1);if(xx())return!0;e.replaceNodeWithNodes(t,A,P)}else if(!$o(N)&&(Jo(N,R),xx()))return!0}),xx())return}function KZe(e,t){const r=[];return Ab(e,i=>{Z7(i,t)&&r.push(i)}),r}function XZe(e,t){if(!e.body)return new Set;const r=new Set;return Jo(e.body,function i(o){$O(o,t,"then")?(r.add(ls(o)),qe(o.arguments,i)):$O(o,t,"catch")||$O(o,t,"finally")?(r.add(ls(o)),Jo(o,i)):oNe(o,t)?r.add(ls(o)):Jo(o,i)}),r}function $O(e,t,r){if(!ea(e))return!1;const o=SO(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function iNe(e,t){return(Hr(e)&4)!==0&&e.target===t}function RK(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(iNe(i,r.getPromiseType())||iNe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===rb(e.arguments,0))return rb(e.typeArguments,0);if(t===rb(e.arguments,1))return rb(e.typeArguments,1)}else return rb(e.typeArguments,0)}function oNe(e,t){return St(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function YZe(e,t,r){const i=new Map,o=hm();return Jo(e,function s(l){if(!Je(l)){Jo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const d=t.getTypeAtLocation(l),_=uNe(d,t),h=Ta(u).toString();if(_&&!Zi(l.parent)&&!Ls(l.parent)&&!r.has(h)){const y=Rc(_.parameters),E=y?.valueDeclaration&&Zi(y.valueDeclaration)&&ni(y.valueDeclaration.name,Je)||L.createUniqueName("result",16),A=aNe(E,o);r.set(h,A),o.add(E.text,u)}else if(l.parent&&(Zi(l.parent)||yi(l.parent)||qa(l.parent))){const y=l.text,E=o.get(y);if(E&&E.some(A=>A!==u)){const A=aNe(l,o);i.set(h,A.identifier),r.set(h,A),o.add(y,u)}else{const A=_s(l);r.set(h,XP(A)),o.add(y,u)}}}}),pw(e,!0,s=>{if(qa(s)&&Je(s.name)&&hf(s.parent)){const l=t.getSymbolAtLocation(s.name),u=l&&i.get(String(Ta(l)));if(u&&u.text!==(s.name||s.propertyName).getText())return L.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,u,s.initializer)}else if(Je(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return L.createIdentifier(u.text)}})}function aNe(e,t){const r=(t.get(e.text)||ie).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return XP(i)}function xx(){return!xK}function y0(){return xK=!1,ie}function gC(e,t,r,i,o){if($O(t,r.checker,"then"))return ZZe(t,rb(t.arguments,0),rb(t.arguments,1),r,i,o);if($O(t,r.checker,"catch"))return cNe(t,rb(t.arguments,0),r,i,o);if($O(t,r.checker,"finally"))return QZe(t,rb(t.arguments,0),r,i,o);if(qr(t))return gC(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(C.assertNode(bl(t).parent,qr),eet(e,t,r,i,o)):y0()}function DK({checker:e},t){if(t.kind===106)return!0;if(Je(t)&&!ml(t)&&Kr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function $Ze(e){const t=L.createUniqueName(e.identifier.text,16);return XP(t)}function sNe(e,t,r){let i;return r&&!ZO(e,t)&&(QO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=$Ze(r);t.synthNamesMap.set(s,l)}})):i=XP(L.createUniqueName("result",16),r.types),Jue(i)),i}function lNe(e,t,r,i,o){const s=[];let l;if(i&&!ZO(e,t)){l=_s(Jue(i));const u=i.types,d=t.checker.getUnionType(u,2),_=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),h=[L.createVariableDeclaration(l,void 0,_)],y=L.createVariableStatement(void 0,L.createVariableDeclarationList(h,1));s.push(y)}return s.push(r),o&&l&&ret(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(hNe(o)),void 0,void 0,l)],2))),s}function QZe(e,t,r,i,o){if(!t||DK(r,t))return gC(e,e.expression.expression,r,i,o);const s=sNe(e,r,o),l=gC(e,e.expression.expression,r,!0,s);if(xx())return y0();const u=Hue(t,i,void 0,void 0,e,r);if(xx())return y0();const d=L.createBlock(l),_=L.createBlock(u),h=L.createTryStatement(d,void 0,_);return lNe(e,r,h,s,o)}function cNe(e,t,r,i,o){if(!t||DK(r,t))return gC(e,e.expression.expression,r,i,o);const s=fNe(t,r),l=sNe(e,r,o),u=gC(e,e.expression.expression,r,!0,l);if(xx())return y0();const d=Hue(t,i,l,s,e,r);if(xx())return y0();const _=L.createBlock(u),h=L.createCatchClause(s&&_s(_z(s)),L.createBlock(d)),y=L.createTryStatement(_,h,void 0);return lNe(e,r,y,l,o)}function ZZe(e,t,r,i,o,s){if(!t||DK(i,t))return cNe(e,r,i,o,s);if(r&&!DK(i,r))return y0();const l=fNe(t,i),u=gC(e.expression.expression,e.expression.expression,i,!0,l);if(xx())return y0();const d=Hue(t,o,s,l,e,i);return xx()?y0():ao(u,d)}function eet(e,t,r,i,o){if(ZO(e,r)){let s=_s(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return CK(o,L.createAwaitExpression(t),void 0)}function CK(e,t,r){return!e||mNe(e)?[L.createExpressionStatement(t)]:QO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(_s(que(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(_z(e)),void 0,r,t)],2))]}function Uue(e,t){if(t&&e){const r=L.createUniqueName("result",16);return[...CK(XP(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function Hue(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 212:case 80:if(!i)break;const u=L.createCallExpression(_s(e),void 0,QO(i)?[que(i)]:[]);if(ZO(o,s))return Uue(u,RK(o,e,s.checker));const d=s.checker.getTypeAtLocation(e),_=s.checker.getSignaturesOfType(d,0);if(!_.length)return y0();const h=_[0].getReturnType(),y=CK(r,L.createAwaitExpression(u),RK(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(h)||h),y;case 219:case 220:{const E=e.body,A=(l=uNe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(ta(E)){let R=[],N=!1;for(const P of E.statements)if(of(P))if(N=!0,Z7(P,s.checker))R=R.concat(pNe(s,P,t,r));else{const k=A&&P.expression?dNe(s.checker,A,P.expression):P.expression;R.push(...Uue(k,RK(o,e,s.checker)))}else{if(t&&Ab(P,mS))return y0();R.push(P)}return ZO(o,s)?R.map(P=>_s(P)):tet(R,r,s,N)}else{const R=JJ(E,s.checker)?pNe(s,L.createReturnStatement(E),t,r):ie;if(R.length>0)return R;if(A){const N=dNe(s.checker,A,E);if(ZO(o,s))return Uue(N,RK(o,e,s.checker));{const P=CK(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(A)||A),P}}else return y0()}}default:return y0()}return ie}function dNe(e,t,r){const i=_s(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function uNe(e,t){const r=t.getSignaturesOfType(e,0);return tl(r)}function tet(e,t,r,i){const o=[];for(const s of e)if(of(s)){if(s.expression){const l=oNe(s.expression,r.checker)?L.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(L.createExpressionStatement(l)):QO(t)&&t.hasBeenDeclared?o.push(L.createExpressionStatement(L.createAssignment(que(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_z(t),void 0,void 0,l)],2)))}}else o.push(_s(s));return!i&&t!==void 0&&o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_z(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function pNe(e,t,r,i){let o=[];return Jo(t,function s(l){if(ea(l)){const u=gC(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else $o(l)||Jo(l,s)}),o}function fNe(e,t){const r=[];let i;if(Ls(e)){if(e.parameters.length>0){const d=e.parameters[0].name;i=o(d)}}else Je(e)?i=s(e):qr(e)&&Je(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(d){if(Je(d))return s(d);const _=fi(d.elements,h=>Xc(h)?[]:[o(h.name)]);return net(d,_)}function s(d){const _=u(d),h=l(_);return h&&t.synthNamesMap.get(Ta(h).toString())||XP(d,r)}function l(d){var _;return((_=ni(d,ch))==null?void 0:_.symbol)??t.checker.getSymbolAtLocation(d)}function u(d){return d.original?d.original:d}}function mNe(e){return e?QO(e)?!e.identifier.text:Hn(e.elements,mNe):!0}function XP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function net(e,t=ie,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function que(e){return e.hasBeenReferenced=!0,e.identifier}function _z(e){return QO(e)?Jue(e):hNe(e)}function hNe(e){for(const t of e.elements)_z(t);return e.bindingPattern}function Jue(e){return e.hasBeenDeclared=!0,e.identifier}function QO(e){return e.kind===0}function ret(e){return e.kind===1}function ZO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(ls(e.original))}Sa({errorCodes:[f.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=Rr.ChangeTracker.with(e,s=>{if(oet(t,r.getTypeChecker(),s,Va(r.getCompilerOptions()),Up(t,i)))for(const u of r.getSourceFiles())iet(u,t,r,s,Up(u,i))});return[Th("convertToEsModule",o,f.Convert_to_ES_module)]}});function iet(e,t,r,i,o){var s;for(const l of e.imports){const u=(s=r.getResolvedModuleFromModuleSpecifier(l,e))==null?void 0:s.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const d=aM(l);switch(d.kind){case 272:i.replaceNode(e,d,Jb(d.name,void 0,l,o));break;case 214:np(d,!1)&&i.replaceNode(e,d,L.createPropertyAccessExpression(_s(d),"default"));break}}}function oet(e,t,r,i,o){const s={original:vet(e),additional:new Set},l=aet(e,t,s);set(e,l,r);let u=!1,d;for(const _ of Un(e.statements,cc)){const h=gNe(e,_,r,t,s,i,o);h&&FF(h,d??(d=new Map))}for(const _ of Un(e.statements,h=>!cc(h))){const h=cet(e,_,t,r,s,i,l,d,o);u=u||h}return d?.forEach((_,h)=>{r.replaceNode(e,h,_)}),u}function aet(e,t,r){const i=new Map;return _Ne(e,o=>{const{text:s}=o.name;!i.has(s)&&(iV(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,NK(`_${s}`,r))}),i}function set(e,t,r){_Ne(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function _Ne(e,t){e.forEachChild(function r(i){if(qr(i)&&$S(e,i.expression)&&Je(i.name)){const{parent:o}=i;t(i,Nr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function cet(e,t,r,i,o,s,l,u,d){switch(t.kind){case 244:return gNe(e,t,i,r,o,s,d),!1;case 245:{const{expression:_}=t;switch(_.kind){case 214:return np(_,!0)&&i.replaceNode(e,t,Jb(void 0,void 0,_.arguments[0],d)),!1;case 227:{const{operatorToken:h}=_;return h.kind===64&&uet(e,r,_,i,l,u)}}}default:return!1}}function gNe(e,t,r,i,o,s,l){const{declarationList:u}=t;let d=!1;const _=Yt(u.declarations,h=>{const{name:y,initializer:E}=h;if(E){if($S(e,E))return d=!0,YP([]);if(np(E,!0))return d=!0,get(y,E.arguments[0],i,o,s,l);if(qr(E)&&np(E.expression,!0))return d=!0,det(y,E.name.text,E.expression.arguments[0],o,l)}return YP([L.createVariableStatement(void 0,L.createVariableDeclarationList([h],u.flags))])});if(d){r.replaceNodeWithNodes(e,t,fi(_,y=>y.newImports));let h;return qe(_,y=>{y.useSitesToUnqualify&&FF(y.useSitesToUnqualify,h??(h=new Map))}),h}}function det(e,t,r,i,o){switch(e.kind){case 207:case 208:{const s=NK(t,i);return YP([TNe(s,t,r,o),MK(void 0,e,L.createIdentifier(s))])}case 80:return YP([TNe(e.text,t,r,o)]);default:return C.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function uet(e,t,r,i,o,s){const{left:l,right:u}=r;if(!qr(l))return!1;if($S(e,l))if($S(e,u))i.delete(e,r.parent);else{const d=za(u)?pet(u,s):np(u,!0)?met(u.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,Uf(l.getStart(e),u.pos),"export default"),!0)}else $S(e,l.expression)&&fet(e,r,i,o);return!1}function pet(e,t){const r=Fd(e.properties,i=>{switch(i.kind){case 178:case 179:case 305:case 306:return;case 304:return Je(i.name)?_et(i.name.text,i.initializer,t):void 0;case 175:return Je(i.name)?bNe(i.name.text,[L.createToken(95)],i,t):void 0;default:C.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function fet(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[MK(void 0,s,t.right),Yue([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else het(t,e,r)}function met(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:ut;return o.has("export=")?[[Kue(r)],!0]:o.has("default")?o.size>1?[[yNe(r),Kue(r)],!0]:[[Kue(r)],!0]:[[yNe(r)],!1]}function yNe(e){return Yue(void 0,e)}function Kue(e){return Yue([L.createExportSpecifier(!1,void 0,"default")],e)}function het({left:e,right:t,parent:r},i,o){const s=e.name.text;if((qs(t)||$s(t)||fc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},L.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);const l=Is(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Is(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function _et(e,t,r){const i=[L.createToken(95)];switch(t.kind){case 219:{const{name:s}=t;if(s&&s.text!==e)return o()}case 220:return bNe(e,i,t,r);case 232:return Tet(e,i,t,r);default:return o()}function o(){return MK(i,L.createIdentifier(e),Xue(t,r))}}function Xue(e,t){if(!t||!vt(Do(t.keys()),i=>ip(e,i)))return e;return No(e)?gj(e,!0,r):pw(e,!0,r);function r(i){if(i.kind===212){const o=t.get(i);return t.delete(i),o}}}function get(e,t,r,i,o,s){switch(e.kind){case 207:{const l=Fd(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Je(u.propertyName)||!Je(u.name)?void 0:SNe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return YP([Jb(void 0,l,t,s)])}case 208:{const l=NK(zO(t.text,o),i);return YP([Jb(L.createIdentifier(l),void 0,t,s),MK(void 0,_s(e),L.createIdentifier(l))])}case 80:return yet(e,t,r,i,s);default:return C.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function yet(e,t,r,i,o){const s=r.getSymbolAtLocation(e),l=new Map;let u=!1,d;for(const h of i.original.get(e.text)){if(r.getSymbolAtLocation(h)!==s||h===e)continue;const{parent:y}=h;if(qr(y)){const{name:{text:E}}=y;if(E==="default"){u=!0;const A=h.getText();(d??(d=new Map)).set(y,L.createIdentifier(A))}else{C.assert(y.expression===h,"Didn't expect expression === use");let A=l.get(E);A===void 0&&(A=NK(E,i),l.set(E,A)),(d??(d=new Map)).set(y,L.createIdentifier(A))}}else u=!0}const _=l.size===0?void 0:Do(Fo(l.entries(),([h,y])=>L.createImportSpecifier(!1,h===y?void 0:L.createIdentifier(h),L.createIdentifier(y))));return _||(u=!0),YP([Jb(u?_s(e):void 0,_,t,o)],d)}function NK(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function vet(e){const t=hm();return vNe(e,r=>t.add(r.text,r)),t}function vNe(e,t){Je(e)&&bet(e)&&t(e),e.forEachChild(r=>vNe(r,t))}function bet(e){const{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:return t.propertyName!==e;case 277:return t.propertyName!==e;default:return!0}}function bNe(e,t,r,i){return L.createFunctionDeclaration(ao(t,GS(r.modifiers)),_s(r.asteriskToken),e,GS(r.typeParameters),GS(r.parameters),_s(r.type),L.converters.convertToFunctionBlock(Xue(r.body,i)))}function Tet(e,t,r,i){return L.createClassDeclaration(ao(t,GS(r.modifiers)),e,GS(r.typeParameters),GS(r.heritageClauses),Xue(r.members,i))}function TNe(e,t,r,i){return t==="default"?Jb(L.createIdentifier(e),void 0,r,i):Jb(void 0,[SNe(t,e)],r,i)}function SNe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function MK(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function Yue(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function YP(e,t){return{newImports:e,useSitesToUnqualify:t}}var $ue="correctQualifiedNameToIndexedAccessType",ENe=[f.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];Sa({errorCodes:ENe,getCodeActions(e){const t=ANe(e.sourceFile,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,o=>INe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[aa($ue,r,[f.Rewrite_as_the_indexed_access_type_0,i],$ue,f.Rewrite_all_as_indexed_access_types)]},fixIds:[$ue],getAllCodeActions:e=>As(e,ENe,(t,r)=>{const i=ANe(r.file,r.start);i&&INe(t,r.file,i)})});function ANe(e,t){const r=Dn(zi(e,t),Wu);return C.assert(!!r,"Expected position to be owned by a qualified name."),Je(r.left)?r:void 0}function INe(e,t,r){const i=r.right.text,o=L.createIndexedAccessTypeNode(L.createTypeReferenceNode(r.left,void 0),L.createLiteralTypeNode(L.createStringLiteral(i)));e.replaceNode(t,r,o)}var Que=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Zue="convertToTypeOnlyExport";Sa({errorCodes:Que,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>RNe(i,xNe(t.span,t.sourceFile),t));if(r.length)return[aa(Zue,r,f.Convert_to_type_only_export,Zue,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Zue],getAllCodeActions:function(t){const r=new Set;return As(t,Que,(i,o)=>{const s=xNe(o,t.sourceFile);s&&Em(r,ls(s.parent.parent))&&RNe(i,s,t)})}});function xNe(e,t){return ni(zi(t,e.start).parent,lu)}function RNe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=Eet(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{const l=L.updateExportDeclaration(o,o.modifiers,!1,L.updateNamedExports(i,Un(i.elements,d=>!jn(s,d))),o.moduleSpecifier,void 0),u=L.createExportDeclaration(void 0,!0,L.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,u)}}function Eet(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=Fce(Vu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Un(r.elements,o=>{var s;return o===e||((s=Wce(o,i))==null?void 0:s.code)===Que[0]})}var DNe=[f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],PK="convertToTypeOnlyImport";Sa({errorCodes:DNe,getCodeActions:function(t){var r;const i=CNe(t.sourceFile,t.span.start);if(i){const o=Rr.ChangeTracker.with(t,u=>gz(u,t.sourceFile,i)),s=i.kind===277&&Tl(i.parent.parent.parent)&&NNe(i,t.sourceFile,t.program)?Rr.ChangeTracker.with(t,u=>gz(u,t.sourceFile,i.parent.parent.parent)):void 0,l=aa(PK,o,i.kind===277?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,PK,f.Fix_all_with_type_only_imports);return vt(s)?[Th(PK,s,f.Use_import_type),l]:[l]}},fixIds:[PK],getAllCodeActions:function(t){const r=new Set;return As(t,DNe,(i,o)=>{const s=CNe(o.file,o.start);s?.kind===273&&!r.has(s)?(gz(i,o.file,s),r.add(s)):s?.kind===277&&Tl(s.parent.parent.parent)&&!r.has(s.parent.parent.parent)&&NNe(s,o.file,t.program)?(gz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===277&&gz(i,o.file,s)})}});function CNe(e,t){const{parent:r}=zi(e,t);return xu(r)||Tl(r)&&r.importClause?r:void 0}function NNe(e,t,r){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;const o=r.getTypeChecker();for(const s of i)if(Qs.Core.eachSymbolReferenceInFile(s.name,o,t,u=>{const d=o.getSymbolAtLocation(u);return!!d&&o.symbolIsValue(d)||!JT(u)}))return!1;return!0}function gz(e,t,r){var i;if(xu(r))e.replaceNode(t,r,L.updateImportSpecifier(r,!0,r.propertyName,r.name));else{const o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[L.createImportDeclaration(GS(r.modifiers,!0),L.createImportClause(156,_s(o.name,!0),void 0),_s(r.moduleSpecifier,!0),_s(r.attributes,!0)),L.createImportDeclaration(GS(r.modifiers,!0),L.createImportClause(156,void 0,_s(o.namedBindings,!0)),_s(r.moduleSpecifier,!0),_s(r.attributes,!0))]);else{const s=((i=o.namedBindings)==null?void 0:i.kind)===276?L.updateNamedImports(o.namedBindings,to(o.namedBindings.elements,u=>L.updateImportSpecifier(u,!1,u.propertyName,u.name))):o.namedBindings,l=L.updateImportDeclaration(r,r.modifiers,L.updateImportClause(o,156,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var epe="convertTypedefToType",MNe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];Sa({fixIds:[epe],errorCodes:MNe,getCodeActions(e){const t=by(e.host,e.formatContext.options),r=zi(e.sourceFile,e.span.start);if(!r)return;const i=Rr.ChangeTracker.with(e,o=>PNe(o,r,e.sourceFile,t));if(i.length>0)return[aa(epe,i,f.Convert_typedef_to_TypeScript_type,epe,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>As(e,MNe,(t,r)=>{const i=by(e.host,e.formatContext.options),o=zi(r.file,r.start);o&&PNe(t,o,r.file,i,!0)})});function PNe(e,t,r,i,o=!1){if(!M1(t))return;const s=Iet(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:d}=Aet(t);let _=l.getStart(),h="";!u&&l.comment&&(_=LNe(l,l.getStart(),t.getStart()),h=`${i} */${i}`),u&&(o&&M1(u)?(_=t.getStart(),h=""):(_=LNe(l,u.getStart(),t.getStart()),h=`${i} */${i}`));let y=l.getEnd(),E="";d&&(o&&M1(d)?(y=d.getStart(),E=`${i}${i}`):(y=d.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:_,end:y},s,{prefix:h,suffix:E})}function Aet(e){const t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i0;o--)if(!/[*/\s]/.test(i.substring(o-1,o)))return t+o;return r}function Iet(e){var t;const{typeExpression:r}=e;if(!r)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===323)return xet(i,r);if(r.kind===310)return Ret(i,r)}}function xet(e,t){const r=kNe(t);if(vt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function Ret(e,t){const r=_s(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function kNe(e){const t=e.jsDocPropertyTags;return vt(t)?Ei(t,i=>{var o;const s=Det(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let d;if(l&&N1(l)){const _=kNe(l);d=L.createTypeLiteralNode(_)}else l&&(d=_s(l));if(d&&s){const _=u?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,_,d)}}):void 0}function Det(e){return e.name.kind===80?e.name.text:e.name.right.text}function Cet(e){return rf(e)?fi(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>M1(i))}):[]}var tpe="convertLiteralTypeToMappedType",wNe=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];Sa({errorCodes:wNe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=ONe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=Rr.ChangeTracker.with(t,d=>WNe(d,r,o));return[aa(tpe,u,[f.Convert_0_to_1_in_0,l,s],tpe,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[tpe],getAllCodeActions:e=>As(e,wNe,(t,r)=>{const i=ONe(r.file,r.start);i&&WNe(t,r.file,i)})});function ONe(e,t){const r=zi(e,t);if(Je(r)){const i=ma(r.parent.parent,Iu),o=r.getText(e);return{container:ma(i.parent,Fu),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function WNe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,L.createMappedTypeNode(void 0,L.createTypeParameterDeclaration(void 0,s,L.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var FNe=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],npe="fixClassIncorrectlyImplementsInterface";Sa({errorCodes:FNe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=zNe(t,r.start);return Ei(lD(i),o=>{const s=Rr.ChangeTracker.with(e,l=>GNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:aa(npe,s,[f.Implement_interface_0,o.getText(t)],npe,f.Implement_all_unimplemented_interfaces)})},fixIds:[npe],getAllCodeActions(e){const t=new Set;return As(e,FNe,(r,i)=>{const o=zNe(i.file,i.start);if(Em(t,ls(o)))for(const s of lD(o))GNe(e,s,i.file,o,r,e.preferences)})}});function zNe(e,t){return C.checkDefined(_d(zi(e,t)),"There should be a containing class")}function BNe(e){return!e.valueDeclaration||!(Ud(e.valueDeclaration)&2)}function GNe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=Net(i,l),d=l.getTypeAtLocation(t),h=l.getPropertiesOfType(d).filter($W(BNe,P=>!u.has(P.escapedName))),y=l.getTypeAtLocation(i),E=mn(i.members,P=>kl(P));y.getNumberIndexType()||R(d,1),y.getStringIndexType()||R(d,0);const A=dE(r,e.program,s,e.host);Xpe(i,h,r,e,s,A,P=>N(r,i,P)),A.writeFixes(o);function R(P,k){const F=l.getIndexInfoOfType(P,k);F&&N(r,i,l.indexInfoToIndexSignatureDeclaration(F,i,void 0,void 0,yC(e)))}function N(P,k,F){E?o.insertNodeAfter(P,E,F):o.insertMemberAtStart(P,k,F)}}function Net(e,t){const r=uh(e);if(!r)return da();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return da(o.filter(BNe))}var VNe="import",jNe="fixMissingImport",UNe=[f.Cannot_find_name_0.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f.Cannot_find_namespace_0.code,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_extend_an_interface_0_Did_you_mean_implements.code,f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];Sa({errorCodes:UNe,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=YNe(e,t,o.start,!0);if(l)return l.map(({fix:u,symbolName:d,errorIdentifierText:_})=>ope(e,i,d,u,d!==_,s,r))},fixIds:[jNe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=HNe(t,r,!0,i,o,s);return Ix(e,UNe,u=>l.addImportFromDiagnostic(u,e)),Ax(Rr.ChangeTracker.with(e,l.writeFixes))}});function dE(e,t,r,i,o){return HNe(e,t,!1,r,i,o)}function HNe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],d=[],_=new Map,h=new Set,y=new Set,E=new Map;return{addImportFromDiagnostic:N,addImportFromExportedSymbol:P,addImportForModuleSymbol:k,writeFixes:j,hasFixes:Z,addImportForUnresolvedIdentifier:R,addImportForNonExistentExport:F,removeExistingImport:W,addVerbatimImport:A};function A(q){y.add(q)}function R(q,ve,oe){const K=Get(q,ve,oe);!K||!K.length||G(Qa(K))}function N(q,ve){const oe=YNe(ve,q.code,q.start,r);!oe||!oe.length||G(Qa(oe))}function P(q,ve,oe){var K,fe;const ue=C.checkDefined(q.parent,"Expected exported symbol to have module symbol as parent"),me=U7(q,Va(l)),be=t.getTypeChecker(),De=be.getMergedSymbol(Rd(q,be)),Y=JNe(e,De,me,ue,!1,t,o,i,s);if(!Y){C.assert((K=i.autoImportFileExcludePatterns)==null?void 0:K.length);return}const Ne=e8(e,t);let Xe=rpe(e,Y,t,void 0,!!ve,Ne,o,i);if(Xe){const Ee=((fe=ni(oe?.name,Je))==null?void 0:fe.text)??me;let re,Te;oe&&UR(oe)&&(Xe.kind===3||Xe.kind===2)&&Xe.addAsTypeOnly===1&&(re=2),q.name!==Ee&&(Te=q.name),Xe={...Xe,...re===void 0?{}:{addAsTypeOnly:re},...Te===void 0?{}:{propertyName:Te}},G({fix:Xe,symbolName:Ee??me})}}function k(q,ve,oe){var K,fe,ue;const me=t.getTypeChecker(),be=me.getAliasedSymbol(q);C.assert(be.flags&1536,"Expected symbol to be a module");const De=m0(t,o),Y=vy.getModuleSpecifiersWithCacheInfo(be,me,l,e,De,i,void 0,!0),Ne=e8(e,t);let Xe=vz(ve,!0,void 0,q.flags,t.getTypeChecker(),l);Xe=Xe===1&&UR(oe)?2:1;const Ee=Tl(oe)?u1(oe)?1:2:xu(oe)?0:Jm(oe)&&oe.name?1:2,re=[{symbol:q,moduleSymbol:be,moduleFileName:(ue=(fe=(K=be.declarations)==null?void 0:K[0])==null?void 0:fe.getSourceFile())==null?void 0:ue.fileName,exportKind:4,targetFlags:q.flags,isFromPackageJson:!1}],Te=rpe(e,re,t,void 0,!!ve,Ne,o,i);let Me;Te&&Ee!==2&&Te.kind!==0&&Te.kind!==1?Me={...Te,addAsTypeOnly:Xe,importKind:Ee}:Me={kind:3,moduleSpecifierKind:Te!==void 0?Te.moduleSpecifierKind:Y.kind,moduleSpecifier:Te!==void 0?Te.moduleSpecifier:Qa(Y.moduleSpecifiers),importKind:Ee,addAsTypeOnly:Xe,useRequire:Ne},G({fix:Me,symbolName:q.name})}function F(q,ve,oe,K,fe){const ue=t.getSourceFile(ve),me=e8(e,t);if(ue&&ue.symbol){const{fixes:be}=yz([{exportKind:oe,isFromPackageJson:!1,moduleFileName:ve,moduleSymbol:ue.symbol,targetFlags:K}],void 0,fe,me,t,e,o,i);be.length&&G({fix:be[0],symbolName:q})}else{const be=X7(ve,99,t,o),De=vy.getLocalModuleSpecifierBetweenFileNames(e,ve,l,m0(t,o),i),Y=LK(be,oe,t),Ne=vz(fe,!0,void 0,K,t.getTypeChecker(),l);G({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:De,importKind:Y,addAsTypeOnly:Ne,useRequire:me},symbolName:q})}}function W(q){q.kind===274&&C.assertIsDefined(q.name,"ImportClause should have a name if it's being removed"),h.add(q)}function G(q){var ve,oe,K;const{fix:fe,symbolName:ue}=q;switch(fe.kind){case 0:u.push(fe);break;case 1:d.push(fe);break;case 2:{const{importClauseOrBindingPattern:Y,importKind:Ne,addAsTypeOnly:Xe,propertyName:Ee}=fe;let re=_.get(Y);if(re||_.set(Y,re={importClauseOrBindingPattern:Y,defaultImport:void 0,namedImports:new Map}),Ne===0){const Te=(ve=re?.namedImports.get(ue))==null?void 0:ve.addAsTypeOnly;re.namedImports.set(ue,{addAsTypeOnly:me(Te,Xe),propertyName:Ee})}else C.assert(re.defaultImport===void 0||re.defaultImport.name===ue,"(Add to Existing) Default import should be missing or match symbolName"),re.defaultImport={name:ue,addAsTypeOnly:me((oe=re.defaultImport)==null?void 0:oe.addAsTypeOnly,Xe)};break}case 3:{const{moduleSpecifier:Y,importKind:Ne,useRequire:Xe,addAsTypeOnly:Ee,propertyName:re}=fe,Te=be(Y,Ne,Xe,Ee);switch(C.assert(Te.useRequire===Xe,"(Add new) Tried to add an `import` and a `require` for the same module"),Ne){case 1:C.assert(Te.defaultImport===void 0||Te.defaultImport.name===ue,"(Add new) Default import should be missing or match symbolName"),Te.defaultImport={name:ue,addAsTypeOnly:me((K=Te.defaultImport)==null?void 0:K.addAsTypeOnly,Ee)};break;case 0:const Me=(Te.namedImports||(Te.namedImports=new Map)).get(ue);Te.namedImports.set(ue,[me(Me,Ee),re]);break;case 3:if(l.verbatimModuleSyntax){const Be=(Te.namedImports||(Te.namedImports=new Map)).get(ue);Te.namedImports.set(ue,[me(Be,Ee),re])}else C.assert(Te.namespaceLikeImport===void 0||Te.namespaceLikeImport.name===ue,"Namespacelike import shoudl be missing or match symbolName"),Te.namespaceLikeImport={importKind:Ne,name:ue,addAsTypeOnly:Ee};break;case 2:C.assert(Te.namespaceLikeImport===void 0||Te.namespaceLikeImport.name===ue,"Namespacelike import shoudl be missing or match symbolName"),Te.namespaceLikeImport={importKind:Ne,name:ue,addAsTypeOnly:Ee};break}break}case 4:break;default:C.assertNever(fe,`fix wasn't never - got kind ${fe.kind}`)}function me(Y,Ne){return Math.max(Y??0,Ne)}function be(Y,Ne,Xe,Ee){const re=De(Y,!0),Te=De(Y,!1),Me=E.get(re),Be=E.get(Te),lt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Xe};return Ne===1&&Ee===2?Me||(E.set(re,lt),lt):Ee===1&&(Me||Be)?Me||Be:Be||(E.set(Te,lt),lt)}function De(Y,Ne){return`${Ne?1:0}|${Y}`}}function j(q,ve){var oe,K;let fe;e.imports!==void 0&&e.imports.length===0&&ve!==void 0?fe=ve:fe=Up(e,i);for(const be of u)ape(q,e,be);for(const be of d)oMe(q,e,be,fe);let ue;if(h.size){C.assert(Tg(e),"Cannot remove imports from a future source file");const be=new Set(Ei([...h],Ee=>Dn(Ee,Tl))),De=new Set(Ei([...h],Ee=>Dn(Ee,yk))),Y=[...be].filter(Ee=>{var re,Te,Me;return!_.has(Ee.importClause)&&(!((re=Ee.importClause)!=null&&re.name)||h.has(Ee.importClause))&&(!ni((Te=Ee.importClause)==null?void 0:Te.namedBindings,Ng)||h.has(Ee.importClause.namedBindings))&&(!ni((Me=Ee.importClause)==null?void 0:Me.namedBindings,o_)||Hn(Ee.importClause.namedBindings.elements,Be=>h.has(Be)))}),Ne=[...De].filter(Ee=>(Ee.name.kind!==207||!_.has(Ee.name))&&(Ee.name.kind!==207||Hn(Ee.name.elements,re=>h.has(re)))),Xe=[...be].filter(Ee=>{var re,Te;return((re=Ee.importClause)==null?void 0:re.namedBindings)&&Y.indexOf(Ee)===-1&&!((Te=_.get(Ee.importClause))!=null&&Te.namedImports)&&(Ee.importClause.namedBindings.kind===275||Hn(Ee.importClause.namedBindings.elements,Me=>h.has(Me)))});for(const Ee of[...Y,...Ne])q.delete(e,Ee);for(const Ee of Xe)q.replaceNode(e,Ee.importClause,L.updateImportClause(Ee.importClause,Ee.importClause.phaseModifier,Ee.importClause.name,void 0));for(const Ee of h){const re=Dn(Ee,Tl);re&&Y.indexOf(re)===-1&&Xe.indexOf(re)===-1?Ee.kind===274?q.delete(e,Ee.name):(C.assert(Ee.kind===277,"NamespaceImport should have been handled earlier"),(oe=_.get(re.importClause))!=null&&oe.namedImports?(ue??(ue=new Set)).add(Ee):q.delete(e,Ee)):Ee.kind===209?(K=_.get(Ee.parent))!=null&&K.namedImports?(ue??(ue=new Set)).add(Ee):q.delete(e,Ee):Ee.kind===272&&q.delete(e,Ee)}}_.forEach(({importClauseOrBindingPattern:be,defaultImport:De,namedImports:Y})=>{iMe(q,e,be,De,Do(Y.entries(),([Ne,{addAsTypeOnly:Xe,propertyName:Ee}])=>({addAsTypeOnly:Xe,propertyName:Ee,name:Ne})),ue,i)});let me;E.forEach(({useRequire:be,defaultImport:De,namedImports:Y,namespaceLikeImport:Ne},Xe)=>{const Ee=Xe.slice(2),Te=(be?lMe:sMe)(Ee,fe,De,Y&&Do(Y.entries(),([Me,[Be,lt]])=>({addAsTypeOnly:Be,propertyName:lt,name:Me})),Ne,l,i);me=eI(me,Te)}),me=eI(me,J()),me&&dJ(q,e,me,!0,i)}function J(){if(!y.size)return;const q=new Set(Ei([...y],oe=>Dn(oe,Tl))),ve=new Set(Ei([...y],oe=>Dn(oe,vk)));return[...Ei([...y],oe=>oe.kind===272?_s(oe,!0):void 0),...[...q].map(oe=>{var K;return y.has(oe)?_s(oe,!0):_s(L.updateImportDeclaration(oe,oe.modifiers,oe.importClause&&L.updateImportClause(oe.importClause,oe.importClause.phaseModifier,y.has(oe.importClause)?oe.importClause.name:void 0,y.has(oe.importClause.namedBindings)?oe.importClause.namedBindings:(K=ni(oe.importClause.namedBindings,o_))!=null&&K.elements.some(fe=>y.has(fe))?L.updateNamedImports(oe.importClause.namedBindings,oe.importClause.namedBindings.elements.filter(fe=>y.has(fe))):void 0),oe.moduleSpecifier,oe.attributes),!0)}),...[...ve].map(oe=>y.has(oe)?_s(oe,!0):_s(L.updateVariableStatement(oe,oe.modifiers,L.updateVariableDeclarationList(oe.declarationList,Ei(oe.declarationList.declarations,K=>y.has(K)?K:L.updateVariableDeclaration(K,K.name.kind===207?L.updateObjectBindingPattern(K.name,K.name.elements.filter(fe=>y.has(fe))):K.name,K.exclamationToken,K.type,K.initializer)))),!0))]}function Z(){return u.length>0||d.length>0||_.size>0||E.size>0||y.size>0||h.size>0}}function Met(e,t,r,i){const o=pC(e,i,r),s=KNe(e,t);return{getModuleSpecifierForBestExportInfo:l};function l(u,d,_,h){const{fixes:y,computedWithoutCacheCount:E}=yz(u,d,_,!1,t,e,r,i,s,h),A=QNe(y,e,t,o,r,i);return A&&{...A,computedWithoutCacheCount:E}}}function Pet(e,t,r,i,o,s,l,u,d,_,h,y){let E;r?(E=GO(i,l,u,h,y).get(i.path,r),C.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=F9(Sm(t.name))?[ket(e,o,t,u,l)]:JNe(i,e,o,t,s,u,l,h,y),C.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));const A=e8(i,u),R=JT(zi(i,_)),N=C.checkDefined(rpe(i,E,u,_,R,A,l,h));return{moduleSpecifier:N.moduleSpecifier,codeAction:qNe(ope({host:l,formatContext:d,preferences:h},i,o,N,!1,u,h))}}function Let(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=QB(ipe(e,r.getTypeChecker(),t,l)),d=nMe(e,t,u,r),_=u!==t.text;return d&&qNe(ope({host:i,formatContext:o,preferences:s},e,u,d,_,r,s))}function rpe(e,t,r,i,o,s,l,u){const d=pC(e,u,l);return QNe(yz(t,i,o,s,r,e,l,u).fixes,e,r,d,l,u)}function qNe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function JNe(e,t,r,i,o,s,l,u,d){const _=XNe(s,l),h=u.autoImportFileExcludePatterns&&jce(l,u),y=s.getTypeChecker().getMergedSymbol(i),E=h&&y.declarations&&ll(y,308),A=E&&h(E);return GO(e,l,s,u,d).search(e.path,o,R=>R===r,R=>{const N=_(R[0].isFromPackageJson);if(N.getMergedSymbol(Rd(R[0].symbol,N))===t&&(A||R.some(P=>N.getMergedSymbol(P.moduleSymbol)===i||P.symbol.parent===i)))return R})}function ket(e,t,r,i,o){var s,l;const u=_(i.getTypeChecker(),!1);if(u)return u;const d=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return C.checkDefined(d&&_(d,!0),"Could not find symbol in specified module for code actions");function _(h,y){const E=Y7(r,h);if(E&&Rd(E.symbol,h)===e)return{symbol:E.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:E.exportKind,targetFlags:Rd(e,h).flags,isFromPackageJson:y};const A=h.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&Rd(A,h)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:Rd(e,h).flags,isFromPackageJson:y}}}function yz(e,t,r,i,o,s,l,u,d=Tg(s)?KNe(s,o):void 0,_){const h=o.getTypeChecker(),y=d?fi(e,d.getImportsForExportInfo):ie,E=t!==void 0&&wet(y,t),A=Wet(y,r,h,o.getCompilerOptions());if(A)return{computedWithoutCacheCount:0,fixes:[...E?[E]:ie,A]};const{fixes:R,computedWithoutCacheCount:N=0}=zet(e,y,o,s,t,r,i,l,u,_);return{computedWithoutCacheCount:N,fixes:[...E?[E]:ie,...R]}}function wet(e,t){return Ln(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=Oet(r),l=s&&((o=SI(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:l}})}function Oet(e){var t,r,i;switch(e.kind){case 261:return(t=ni(e.name,Je))==null?void 0:t.text;case 272:return e.name.text;case 352:case 273:return(i=ni((r=e.importClause)==null?void 0:r.namedBindings,Ng))==null?void 0:i.name.text;default:return C.assertNever(e)}}function vz(e,t,r,i,o,s){return e?r&&s.verbatimModuleSyntax&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function Wet(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const d=UR(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&d||u.addAsTypeOnly===4&&!d)return u;o??(o=u)}return o;function s({declaration:l,importKind:u,symbol:d,targetFlags:_}){if(u===3||u===2||l.kind===272)return;if(l.kind===261)return(u===0||u===1)&&l.name.kind===207?{kind:2,importClauseOrBindingPattern:l.name,importKind:u,moduleSpecifierKind:void 0,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:h}=l;if(!h||!ds(l.moduleSpecifier))return;const{name:y,namedBindings:E}=h;if(h.isTypeOnly&&!(u===0&&E))return;const A=vz(t,!1,d,_,r,i);if(!(u===1&&(y||A===2&&E))&&!(u===0&&E?.kind===275))return{kind:2,importClauseOrBindingPattern:h,importKind:u,moduleSpecifierKind:void 0,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:A}}}function KNe(e,t){const r=t.getTypeChecker();let i;for(const o of e.imports){const s=aM(o);if(yk(s.parent)){const l=r.resolveExternalModuleName(o);l&&(i||(i=hm())).add(Ta(l),s.parent)}else if(s.kind===273||s.kind===272||s.kind===352){const l=r.getSymbolAtLocation(o);l&&(i||(i=hm())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{const d=i?.get(Ta(o));if(!d||wu(e)&&!(l&111551)&&!Hn(d,l_))return ie;const _=LK(e,s,t);return d.map(h=>({declaration:h,importKind:_,symbol:u,targetFlags:l}))}}}function e8(e,t){if(!xg(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const r=t.getCompilerOptions();if(r.configFile)return Eu(r)<5;if(lpe(e,t)===1)return!0;if(lpe(e,t)===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!wu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function XNe(e,t){return Gh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function Fet(e,t,r,i,o,s,l,u,d){const _=xg(t.fileName),h=e.getCompilerOptions(),y=m0(e,l),E=XNe(e,l),A=su(h),R=N7(A),N=d?F=>vy.tryGetModuleSpecifiersFromCache(F.moduleSymbol,t,y,u):(F,W)=>vy.getModuleSpecifiersWithCacheInfo(F.moduleSymbol,W,h,t,y,u,void 0,!0);let P=0;const k=fi(s,(F,W)=>{const G=E(F.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:J,kind:Z}=N(F,G)??{},q=!!(F.targetFlags&111551),ve=vz(i,!0,F.symbol,F.targetFlags,G,h);return P+=j?1:0,Ei(J,oe=>{if(R&&Vb(oe))return;if(!q&&_&&r!==void 0)return{kind:1,moduleSpecifierKind:Z,moduleSpecifier:oe,usagePosition:r,exportInfo:F,isReExport:W>0};const K=LK(t,F.exportKind,e);let fe;if(r!==void 0&&K===3&&F.exportKind===0){const ue=G.resolveExternalModuleSymbol(F.moduleSymbol);let me;ue!==F.moduleSymbol&&(me=$7(ue,G,Va(h),Us)),me||(me=FO(F.moduleSymbol,Va(h),!1)),fe={namespacePrefix:me,usagePosition:r}}return{kind:3,moduleSpecifierKind:Z,moduleSpecifier:oe,importKind:K,useRequire:o,addAsTypeOnly:ve,exportInfo:F,isReExport:W>0,qualification:fe}})});return{computedWithoutCacheCount:P,fixes:k}}function zet(e,t,r,i,o,s,l,u,d,_){const h=Ln(t,y=>Bet(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return h?{fixes:[h]}:Fet(r,i,o,s,l,e,u,d,_)}function Bet({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var d;const _=(d=SI(e))==null?void 0:d.text;if(_){const h=s?4:vz(o,!0,r,i,l,u);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:_,importKind:t,addAsTypeOnly:h,useRequire:s}}}function YNe(e,t,r,i){const o=zi(e.sourceFile,r);let s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=Het(e,o);else if(Je(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=QB(ipe(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=nMe(e.sourceFile,o,u,e.program);return d&&[{fix:d,symbolName:u,errorIdentifierText:o.text}]}else s=tMe(e,o,i);else return;const l=pC(e.sourceFile,e.preferences,e.host);return s&&$Ne(s,e.sourceFile,e.program,l,e.host,e.preferences)}function $Ne(e,t,r,i,o,s){const l=u=>Os(u,o.getCurrentDirectory(),dy(o));return Cp(e,(u,d)=>PT(!!u.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||Hs(u.fix.kind,d.fix.kind)||ZNe(u.fix,d.fix,t,r,s,i.allowsImportingSpecifier,l))}function Get(e,t,r){const i=tMe(e,t,r),o=pC(e.sourceFile,e.preferences,e.host);return i&&$Ne(i,e.sourceFile,e.program,o,e.host,e.preferences)}function QNe(e,t,r,i,o,s){if(vt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((l,u)=>ZNe(u,l,t,r,s,i.allowsImportingSpecifier,d=>Os(d,o.getCurrentDirectory(),dy(o)))===-1?u:l)}function ZNe(e,t,r,i,o,s,l){return e.kind!==0&&t.kind!==0?PT(t.moduleSpecifierKind!=="node_modules"||s(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||s(e.moduleSpecifier))||Vet(e,t,o)||Uet(e.moduleSpecifier,t.moduleSpecifier,r,i)||PT(eMe(e,r.path,l),eMe(t,r.path,l))||iw(e.moduleSpecifier,t.moduleSpecifier):0}function Vet(e,t,r){return r.importModuleSpecifierPreference==="non-relative"||r.importModuleSpecifierPreference==="project-relative"?PT(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function eMe(e,t,r){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&jet(e.exportInfo.moduleFileName)){const o=r(ci(e.exportInfo.moduleFileName));return po(t,o)}return!1}function jet(e){return Dc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Uet(e,t,r,i){return po(e,"node:")&&!po(t,"node:")?q7(r,i)?-1:1:po(t,"node:")&&!po(e,"node:")?q7(r,i)?1:-1:0}function Het({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=qet(o,s);if(!l)return;const u=s.getAliasedSymbol(l),d=l.name,_=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],h=e8(e,t);return yz(_,void 0,!1,h,t,e,r,i).fixes.map(E=>{var A;return{fix:E,symbolName:d,errorIdentifierText:(A=ni(o,Je))==null?void 0:A.text}})}function qet(e,t){const r=Je(e)?t.getSymbolAtLocation(e):void 0;if(F6(r))return r;const{parent:i}=e;if(au(i)&&i.tagName===e||Km(i)){const o=t.resolveName(t.getJsxNamespace(i),au(i)?e:i,111551,!1);if(F6(o))return o}}function LK(e,t,r,i){if(r.getCompilerOptions().verbatimModuleSyntax&&Zet(e,r)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return Yet(e,r.getCompilerOptions(),!!i);case 3:return Jet(e,r,!!i);case 4:return 2;default:return C.assertNever(t)}}function Jet(e,t,r){if(WI(t.getCompilerOptions()))return 1;const i=Eu(t.getCompilerOptions());switch(i){case 2:case 1:case 3:return xg(e.fileName)&&(e.externalModuleIndicator||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return lpe(e,t)===99?2:3;default:return C.assertNever(i,`Unexpected moduleKind ${i}`)}}function tMe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),d=t.getCompilerOptions();return fi(ipe(e,u,s,d),_=>{if(_==="default")return;const h=JT(s),y=e8(e,t),E=Xet(_,rD(s),G1(s),r,e,t,l,i,o);return Do(Il(E.values(),A=>yz(A,s.getStart(e),h,y,t,e,i,o).fixes),A=>({fix:A,symbolName:_,errorIdentifierText:s.text,isJsxNamespaceFix:_!==s.text}))})}function nMe(e,t,r,i){const o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;const l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||zn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function ipe(e,t,r,i){const o=r.parent;if((au(o)||qS(o))&&o.tagName===r&&PJ(i.jsx)){const s=t.getJsxNamespace(e);if(Ket(s,r,t))return!uD(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function Ket(e,t,r){if(uD(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||vt(i.declarations,ev)&&!(i.flags&111551)}function Xet(e,t,r,i,o,s,l,u,d){var _;const h=hm(),y=pC(o,d,u),E=(_=u.getModuleSpecifierCache)==null?void 0:_.call(u),A=Gh(N=>m0(N?u.getPackageJsonAutoImportProvider():s,u));function R(N,P,k,F,W,G){const j=A(G);if(wJ(W,o,P,N,d,y,j,E)){const J=W.getTypeChecker();h.add(Cce(k,J).toString(),{symbol:k,moduleSymbol:N,moduleFileName:P?.fileName,exportKind:F,targetFlags:Rd(k,J).flags,isFromPackageJson:G})}}return OJ(s,u,d,l,(N,P,k,F)=>{const W=k.getTypeChecker();i.throwIfCancellationRequested();const G=k.getCompilerOptions(),j=Y7(N,W);j&&dMe(W.getSymbolFlags(j.symbol),r)&&$7(j.symbol,W,Va(G),(Z,q)=>(t?q??Z:Z)===e)&&R(N,P,j.symbol,j.exportKind,k,F);const J=W.tryGetMemberInModuleExportsAndProperties(e,N);J&&dMe(W.getSymbolFlags(J),r)&&R(N,P,J,0,k,F)}),h}function Yet(e,t,r){const i=WI(t),o=xg(e.fileName);if(!o&&Eu(t)>=5)return i?1:2;if(o)return e.externalModuleIndicator||r?i?1:2:3;for(const s of e.statements??ie)if(Gc(s)&&!zl(s.moduleReference))return 3;return i?1:3}function ope(e,t,r,i,o,s,l){let u;const d=Rr.ChangeTracker.with(e,_=>{u=$et(_,t,r,i,o,s,l)});return aa(VNe,d,u,jNe,f.Add_all_missing_imports)}function $et(e,t,r,i,o,s,l){const u=Up(t,l);switch(i.kind){case 0:return ape(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return oMe(e,t,i,u),[f.Change_0_to_1,r,aMe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:d,importKind:_,addAsTypeOnly:h,moduleSpecifier:y}=i;iMe(e,t,d,_===1?{name:r,addAsTypeOnly:h}:void 0,_===0?[{name:r,addAsTypeOnly:h}]:ie,void 0,l);const E=Sm(y);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{const{importKind:d,moduleSpecifier:_,addAsTypeOnly:h,useRequire:y,qualification:E}=i,A=y?lMe:sMe,R=d===1?{name:r,addAsTypeOnly:h}:void 0,N=d===0?[{name:r,addAsTypeOnly:h}]:void 0,P=d===2||d===3?{importKind:d,name:E?.namespacePrefix||r,addAsTypeOnly:h}:void 0;return dJ(e,t,A(_,u,R,N,P,s.getCompilerOptions(),l),!0,l),E&&ape(e,t,E),o?[f.Import_0_from_1,r,_]:[f.Add_import_from_0,_]}case 4:{const{typeOnlyAliasDeclaration:d}=i,_=Qet(e,d,s,t,l);return _.kind===277?[f.Remove_type_from_import_of_0_from_1,r,rMe(_.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,rMe(_)]}default:return C.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function rMe(e){var t,r;return e.kind===272?((r=ni((t=ni(e.moduleReference,hy))==null?void 0:t.expression,ds))==null?void 0:r.text)||e.moduleReference.getText():ma(e.parent.moduleSpecifier,Oa).text}function Qet(e,t,r,i,o){const s=r.getCompilerOptions(),l=s.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){const d=L.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:_}=T0.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,o,i),h=T0.getImportSpecifierInsertionIndex(t.parent.elements,d,_);if(h!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,d,t.parent,h),t}return e.deleteRange(i,{pos:Sb(t.getFirstToken()),end:Sb(t.propertyName??t.name)}),t}else return C.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 274:return u(t),t;case 275:return u(t.parent),t.parent;case 272:return e.deleteRange(i,t.getChildAt(1)),t;default:C.failBadSyntaxKind(t)}function u(d){var _;if(e.delete(i,uJ(d,i)),!s.allowImportingTsExtensions){const h=SI(d.parent),y=h&&((_=r.getResolvedModuleFromModuleSpecifier(h,i))==null?void 0:_.resolvedModule);if(y?.resolvedUsingTsExtension){const E=C2(h.text,oO(h.text,s));e.replaceNode(i,h,L.createStringLiteral(E))}}if(l){const h=ni(d.namedBindings,o_);if(h&&h.elements.length>1){T0.getNamedImportSpecifierComparerWithDetection(d.parent,o,i).isSorted!==!1&&t.kind===277&&h.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,h,0));for(const E of h.elements)E!==t&&!E.isTypeOnly&&e.insertModifierBefore(i,156,E)}}}}function iMe(e,t,r,i,o,s,l){var u;if(r.kind===207){if(s&&r.elements.some(y=>s.has(y))){e.replaceNode(t,r,L.createObjectBindingPattern([...r.elements.filter(y=>!s.has(y)),...i?[L.createBindingElement(void 0,"default",i.name)]:ie,...o.map(y=>L.createBindingElement(void 0,y.propertyName,y.name))]));return}i&&h(r,i.name,"default");for(const y of o)h(r,y.name,y.propertyName);return}const d=r.isTypeOnly&&vt([i,...o],y=>y?.addAsTypeOnly===4),_=r.namedBindings&&((u=ni(r.namedBindings,o_))==null?void 0:u.elements);if(i&&(C.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),L.createIdentifier(i.name),{suffix:", "})),o.length){const{specifierComparer:y,isSorted:E}=T0.getNamedImportSpecifierComparerWithDetection(r.parent,l,t),A=Cp(o.map(R=>L.createImportSpecifier((!r.isTypeOnly||d)&&kK(R,l),R.propertyName===void 0?void 0:L.createIdentifier(R.propertyName),L.createIdentifier(R.name))),y);if(s)e.replaceNode(t,r.namedBindings,L.updateNamedImports(r.namedBindings,Cp([..._.filter(R=>!s.has(R)),...A],y)));else if(_?.length&&E!==!1){const R=d&&_?L.updateNamedImports(r.namedBindings,to(_,N=>L.updateImportSpecifier(N,!0,N.propertyName,N.name))).elements:_;for(const N of A){const P=T0.getImportSpecifierInsertionIndex(R,N,y);e.insertImportSpecifierAtIndex(t,N,r.namedBindings,P)}}else if(_?.length)for(const R of A)e.insertNodeInListAfter(t,Ga(_),R,_);else if(A.length){const R=L.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,R):e.insertNodeAfter(t,C.checkDefined(r.name,"Import clause must have either named imports or a default import"),R)}}if(d&&(e.delete(t,uJ(r,t)),_))for(const y of _)e.insertModifierBefore(t,156,y);function h(y,E,A){const R=L.createBindingElement(void 0,A,E);y.elements.length?e.insertNodeInListAfter(t,Ga(y.elements),R):e.replaceNode(t,y,L.createObjectBindingPattern([R]))}}function ape(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function oMe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,aMe(r,o))}function aMe(e,t){const r=lJ(t);return`import(${r}${e}${r}).`}function spe({addAsTypeOnly:e}){return e===2}function kK(e,t){return spe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function sMe(e,t,r,i,o,s,l){const u=OP(e,t);let d;if(r!==void 0||i?.length){const _=(!r||spe(r))&&Hn(i,spe)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!vt(i,h=>h.addAsTypeOnly===4);d=eI(d,Jb(r&&L.createIdentifier(r.name),i?.map(h=>L.createImportSpecifier(!_&&kK(h,l),h.propertyName===void 0?void 0:L.createIdentifier(h.propertyName),L.createIdentifier(h.name))),e,t,_))}if(o){const _=o.importKind===3?L.createImportEqualsDeclaration(void 0,kK(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(kK(o,l)?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(o.name))),u,void 0);d=eI(d,_)}return C.checkDefined(d)}function lMe(e,t,r,i,o){const s=OP(e,t);let l;if(r||i?.length){const u=i?.map(({name:_,propertyName:h})=>L.createBindingElement(void 0,h,_))||[];r&&u.unshift(L.createBindingElement(void 0,"default",r.name));const d=cMe(L.createObjectBindingPattern(u),s);l=eI(l,d)}if(o){const u=cMe(o.name,s);l=eI(l,u)}return C.checkDefined(l)}function cMe(e,t){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(typeof e=="string"?L.createIdentifier(e):e,void 0,void 0,L.createCallExpression(L.createIdentifier("require"),void 0,[t]))],2))}function dMe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function lpe(e,t){return Tg(e)?t.getImpliedNodeFormatForEmit(e):B1(e,t.getCompilerOptions())}function Zet(e,t){return Tg(e)?t.getEmitModuleFormatOfFile(e):RP(e,t.getCompilerOptions())}var cpe="addMissingConstraint",uMe=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.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,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code];Sa({errorCodes:uMe,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=pMe(i,t,r);if(l===void 0)return;const u=Rr.ChangeTracker.with(e,d=>fMe(d,i,o,s,t,l));return[aa(cpe,u,f.Add_extends_constraint,cpe,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[cpe],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Set;return Ax(Rr.ChangeTracker.with(e,s=>{Ix(e,uMe,l=>{const u=pMe(t,l.file,xd(l.start,l.length));if(u&&Em(o,ls(u.declaration)))return fMe(s,t,r,i,l.file,u)})}))}});function pMe(e,t,r){const i=mn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=mn(i.relatedInformation,l=>l.code===f.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=rfe(o.file,xd(o.start,o.length));if(s!==void 0&&(Je(s)&&cl(s.parent)&&(s=s.parent),cl(s))){if(A1(s.parent))return;const l=zi(t,r.start),u=e.getTypeChecker();return{constraint:ttt(u,l)||ett(o.messageText),declaration:s,token:l}}}function fMe(e,t,r,i,o,s){const{declaration:l,constraint:u}=s,d=t.getTypeChecker();if(Bo(u))e.insertText(o,l.name.end,` extends ${u}`);else{const _=Va(t.getCompilerOptions()),h=yC({program:t,host:i}),y=dE(o,t,r,i),E=XK(d,y,u,void 0,_,void 0,void 0,h);E&&(e.replaceNode(o,l,L.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),y.writeFixes(e))}}function ett(e){const[,t]=c_(e,` `,0).match(/`extends (.*)`/)||[];return t}function ttt(e,t){return Ci(t.parent)?e.getTypeArgumentConstraint(t.parent):(St(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var mMe="fixOverrideModifier",t8="fixAddOverrideModifier",bz="fixRemoveOverrideModifier",hMe=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],_Me={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:t8,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:t8,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:bz,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:bz,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:t8,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:t8,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:t8,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:bz,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:bz,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}};Sa({errorCodes:hMe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=_Me[r];if(!o)return ie;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,d=Rr.ChangeTracker.with(t,_=>gMe(_,t,r,i.start));return[Due(mMe,d,s,l,u)]},fixIds:[mMe,t8,bz],getAllCodeActions:e=>As(e,hMe,(t,r)=>{const{code:i,start:o}=r,s=_Me[i];!s||s.fixId!==e.fixId||gMe(t,e,i,o)})});function gMe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return ntt(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return rtt(e,t.sourceFile,i);default:C.fail("Unexpected error code: "+r)}}function ntt(e,t,r){const i=vMe(t,r);if(wu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}const o=i.modifiers||ie,s=mn(o,KI),l=mn(o,zie),u=mn(o,y=>Qq(y.kind)),d=ga(o,Bc),_=l?l.end:s?s.end:u?u.end:d?wa(t.text,d.end):i.getStart(t),h=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,h)}function rtt(e,t,r){const i=vMe(t,r);if(wu(t)){e.filterJSDocTags(t,i,QW(L4));return}const o=mn(i.modifiers,Bie);C.assertIsDefined(o),e.deleteModifier(t,o)}function yMe(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return Lp(e,e.parent);default:return!1}}function vMe(e,t){const r=zi(e,t),i=Dn(r,o=>ui(o)?"quit":yMe(o));return C.assert(i&&yMe(i)),i}var dpe="fixNoPropertyAccessFromIndexSignature",bMe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];Sa({errorCodes:bMe,fixIds:[dpe],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=SMe(t,r.start),s=Rr.ChangeTracker.with(e,l=>TMe(l,e.sourceFile,o,i));return[aa(dpe,s,[f.Use_element_access_for_0,o.name.text],dpe,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>As(e,bMe,(t,r)=>TMe(t,r.file,SMe(r.file,r.start),e.preferences))});function TMe(e,t,r,i){const o=Up(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,SF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function SMe(e,t){return ma(zi(e,t).parent,qr)}var upe="fixImplicitThis",EMe=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];Sa({errorCodes:EMe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=Rr.ChangeTracker.with(t,u=>{s=AMe(u,r,o.start,i.getTypeChecker())});return s?[aa(upe,l,s,upe,f.Fix_all_implicit_this_errors)]:ie},fixIds:[upe],getAllCodeActions:e=>As(e,EMe,(t,r)=>{AMe(t,r.file,r.start,e.program.getTypeChecker())})});function AMe(e,t,r,i){const o=zi(t,r);if(!iC(o))return;const s=Su(o,!1,!1);if(!(!rc(s)&&!qs(s))&&!Xi(Su(s,!1,!1))){const l=C.checkDefined(Is(s,100,t)),{name:u}=s,d=C.checkDefined(s.body);return qs(s)?u&&Qs.Core.isSymbolReferencedInFile(u,i,t,d)?void 0:(e.delete(t,l),u&&e.delete(t,u),e.insertText(t,d.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,u?u.text:EJ]):(e.replaceNode(t,l,L.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,d.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,u.text])}}var ppe="fixImportNonExportedMember",IMe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code];Sa({errorCodes:IMe,fixIds:[ppe],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=xMe(t,r.start,i);if(o===void 0)return;const s=Rr.ChangeTracker.with(e,l=>itt(l,i,o));return[aa(ppe,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],ppe,f.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return Ax(Rr.ChangeTracker.with(e,r=>{const i=new Map;Ix(e,IMe,o=>{const s=xMe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:d}=s;if(wK(d,l.isTypeOnly)===void 0&&lw(u))r.insertExportModifier(d,u);else{const _=i.get(d)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?_.typeOnlyExports.push(l):_.exports.push(l),i.set(d,_)}}),i.forEach((o,s)=>{const l=wK(s,!0);l&&l.isTypeOnly?(fpe(r,t,s,o.typeOnlyExports,l),fpe(r,t,s,o.exports,wK(s,!1))):fpe(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}});function xMe(e,t,r){var i,o;const s=zi(e,t);if(Je(s)){const l=Dn(s,Tl);if(l===void 0)return;const u=Oa(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(u===void 0)return;const d=(i=r.getResolvedModuleFromModuleSpecifier(u,e))==null?void 0:i.resolvedModule;if(d===void 0)return;const _=r.getSourceFile(d.resolvedFileName);if(_===void 0||fC(r,_))return;const h=_.symbol,y=(o=ni(h.valueDeclaration,N_))==null?void 0:o.locals;if(y===void 0)return;const E=y.get(s.escapedText);if(E===void 0)return;const A=ott(E);return A===void 0?void 0:{exportName:{node:s,isTypeOnly:zI(A)},node:A,moduleSourceFile:_,moduleSpecifier:u.text}}}function itt(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=wK(o,r.isTypeOnly);s?RMe(e,t,o,s,[r]):lw(i)?e.insertExportModifier(o,i):DMe(e,t,o,[r])}function fpe(e,t,r,i,o){Qe(i)&&(o?RMe(e,t,r,o,i):DMe(e,t,r,i))}function wK(e,t){const r=i=>hc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return ga(e.statements,r)}function RMe(e,t,r,i,o){const s=i.exportClause&&$f(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(Am(t.getCompilerOptions())||mn(s,u=>u.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...CMe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function DMe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(CMe(i,Am(t.getCompilerOptions()))),void 0,void 0))}function CMe(e,t){return L.createNodeArray(Yt(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function ott(e){if(e.valueDeclaration===void 0)return Rc(e.declarations);const t=e.valueDeclaration,r=yi(t)?ni(t.parent.parent,cc):void 0;return r&&Qe(r.declarationList.declarations)===1?r:t}var mpe="fixIncorrectNamedTupleSyntax",att=[f.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,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];Sa({errorCodes:att,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=stt(r,i.start),s=Rr.ChangeTracker.with(t,l=>ltt(l,r,o));return[aa(mpe,s,f.Move_labeled_tuple_element_modifiers_to_labels,mpe,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[mpe]});function stt(e,t){const r=zi(e,t);return Dn(r,i=>i.kind===203)}function ltt(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===191||i.kind===192||i.kind===197;)i.kind===191?o=!0:i.kind===192&&(s=!0),i=i.type;const l=L.updateNamedTupleMember(r,r.dotDotDotToken||(s?L.createToken(26):void 0),r.name,r.questionToken||(o?L.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var NMe="fixSpelling",MMe=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.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,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code];Sa({errorCodes:MMe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=PMe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=Va(e.host.getCompilationSettings()),u=Rr.ChangeTracker.with(e,d=>LMe(d,t,o,s,l));return[aa("spelling",u,[f.Change_spelling_to_0,Fl(s)],NMe,f.Fix_all_detected_spelling_errors)]},fixIds:[NMe],getAllCodeActions:e=>As(e,MMe,(t,r)=>{const i=PMe(r.file,r.start,e,r.code),o=Va(e.host.getCompilationSettings());i&&LMe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})});function PMe(e,t,r,i){const o=zi(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!s_(s))return;const l=r.program.getTypeChecker();let u;if(qr(s)&&s.name===o){C.assert(hg(o),"Expected an identifier for spelling (property access)");let d=l.getTypeAtLocation(s.expression);s.flags&64&&(d=l.getNonNullableType(d)),u=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Nr(s)&&s.operatorToken.kind===103&&s.left===o&&Qi(o)){const d=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Wu(s)&&s.right===o){const d=l.getSymbolAtLocation(s.left);d&&d.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,d))}else if(xu(s)&&s.name===o){C.assertNode(o,Je,"Expected an identifier for spelling (import)");const d=Dn(o,Tl),_=dtt(r,d,e);_&&_.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,_.symbol))}else if(s_(s)&&s.name===o){C.assertNode(o,Je,"Expected an identifier for JSX attribute");const d=Dn(o,au),_=l.getContextualTypeForArgumentAtIndex(d,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,_)}else if(N6(s)&&Sc(s)&&s.name===o){const d=Dn(o,ui),_=d?uh(d):void 0,h=_?l.getTypeAtLocation(_):void 0;h&&(u=l.getSuggestedSymbolForNonexistentClassMember(Rl(o),h))}else{const d=G1(o),_=Rl(o);C.assert(_!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,_,ctt(d))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function LMe(e,t,r,i,o){const s=Fl(i);if(!_p(s,o)&&qr(r.parent)){const l=i.valueDeclaration;l&&rd(l)&&Qi(l.name)?e.replaceNode(t,r,L.createIdentifier(s)):e.replaceNode(t,r.parent,L.createElementAccessExpression(r.parent.expression,L.createStringLiteral(s)))}else e.replaceNode(t,r,L.createIdentifier(s))}function ctt(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function dtt(e,t,r){var i;if(!t||!ds(t.moduleSpecifier))return;const o=(i=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,r))==null?void 0:i.resolvedModule;if(o)return e.program.getSourceFile(o.resolvedFileName)}var hpe="returnValueCorrect",_pe="fixAddReturnStatement",gpe="fixRemoveBracesFromArrowFunctionBody",ype="fixWrapTheBlockWithParen",kMe=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];Sa({errorCodes:kMe,fixIds:[_pe,gpe,ype],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=OMe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Vn([ptt(t,l.expression,l.statement)],$s(l.declaration)?ftt(t,l.declaration,l.expression,l.commentSource):void 0):[mtt(t,l.declaration,l.expression)]},getAllCodeActions:e=>As(e,kMe,(t,r)=>{const i=OMe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case _pe:WMe(t,r.file,i.expression,i.statement);break;case gpe:if(!$s(i.declaration))return;FMe(t,r.file,i.declaration,i.expression,i.commentSource);break;case ype:if(!$s(i.declaration))return;zMe(t,r.file,i.declaration,i.expression);break;default:C.fail(JSON.stringify(e.fixId))}})});function wMe(e,t,r){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);const o=da([i]);return e.createAnonymousType(void 0,o,[],[],[])}function vpe(e,t,r,i){if(!t.body||!ta(t.body)||Qe(t.body.statements)!==1)return;const o=Qa(t.body.statements);if(ad(o)&&bpe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(Fb(o)&&ad(o.statement)){const s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=wMe(e,o.label,o.statement.expression);if(bpe(e,t,l,r,i))return $s(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(ta(o)&&Qe(o.statements)===1){const s=Qa(o.statements);if(Fb(s)&&ad(s.statement)){const l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),u=wMe(e,s.label,s.statement.expression);if(bpe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function bpe(e,t,r,i,o){if(o){const s=e.getSignatureFromDeclaration(t);if(s){di(t,1024)&&(r=e.createPromiseType(r));const l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,da(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function OMe(e,t,r,i){const o=zi(t,r);if(!o.parent)return;const s=Dn(o.parent,Ls);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!ip(s.type,o)?void 0:vpe(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!ea(s.parent)||!s.body)return;const l=s.parent.arguments.indexOf(s);if(l===-1)return;const u=e.getContextualTypeForArgumentAtIndex(s.parent,l);return u?vpe(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!w_(o)||!$N(o.parent)&&!s_(o.parent))return;const d=utt(o.parent);return!d||!Ls(d)||!d.body?void 0:vpe(e,d,e.getTypeAtLocation(o.parent),!0)}}function utt(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(MD(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function WMe(e,t,r,i){zp(r);const o=OO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function FMe(e,t,r,i,o,s){const l=O7(i)?L.createParenthesizedExpression(i):i;zp(o),j1(o,l),e.replaceNode(t,r.body,l)}function zMe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function ptt(e,t,r){const i=Rr.ChangeTracker.with(e,o=>WMe(o,e.sourceFile,t,r));return aa(hpe,i,f.Add_a_return_statement,_pe,f.Add_all_missing_return_statement)}function ftt(e,t,r,i){const o=Rr.ChangeTracker.with(e,s=>FMe(s,e.sourceFile,t,r,i));return aa(hpe,o,f.Remove_braces_from_arrow_function_body,gpe,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function mtt(e,t,r){const i=Rr.ChangeTracker.with(e,o=>zMe(o,e.sourceFile,t,r));return aa(hpe,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,ype,f.Wrap_all_object_literal_with_parentheses)}var v0="fixMissingMember",OK="fixMissingProperties",WK="fixMissingAttributes",FK="fixMissingFunctionDeclaration",BMe=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code,f.Type_0_does_not_satisfy_the_expected_type_1.code];Sa({errorCodes:BMe,getCodeActions(e){const t=e.program.getTypeChecker(),r=GMe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=Rr.ChangeTracker.with(e,o=>$Me(o,e,r));return[aa(OK,i,f.Add_missing_properties,OK,f.Add_all_missing_properties)]}if(r.kind===4){const i=Rr.ChangeTracker.with(e,o=>YMe(o,e,r));return[aa(WK,i,f.Add_missing_attributes,WK,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=Rr.ChangeTracker.with(e,o=>XMe(o,e,r));return[aa(FK,i,[f.Add_missing_function_declaration_0,r.token.text],FK,f.Add_all_missing_function_declarations)]}if(r.kind===1){const i=Rr.ChangeTracker.with(e,o=>KMe(o,e.program.getTypeChecker(),r));return[aa(v0,i,[f.Add_missing_enum_member_0,r.token.text],v0,f.Add_all_missing_members)]}return ao(vtt(e,r),htt(e,r))}},fixIds:[v0,FK,OK,WK],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Set,s=new Map;return Ax(Rr.ChangeTracker.with(e,l=>{Ix(e,BMe,u=>{const d=GMe(u.file,u.start,u.code,i,e.program);if(d===void 0)return;const _=ls(d.parentDeclaration)+"#"+(d.kind===3?d.identifier||ls(d.token):d.token.text);if(Em(o,_)){if(r===FK&&(d.kind===2||d.kind===5))XMe(l,e,d);else if(r===OK&&d.kind===3)$Me(l,e,d);else if(r===WK&&d.kind===4)YMe(l,e,d);else if(d.kind===1&&KMe(l,i,d),d.kind===0){const{parentDeclaration:h,token:y}=d,E=Of(s,h,()=>[]);E.some(A=>A.token.text===y.text)||E.push(d)}}}),s.forEach((u,d)=>{const _=Fu(d)?void 0:Att(d,i);for(const h of u){if(_?.some(k=>{const F=s.get(k);return!!F&&F.some(({token:W})=>W.text===h.token.text)}))continue;const{parentDeclaration:y,declSourceFile:E,modifierFlags:A,token:R,call:N,isJSFile:P}=h;if(N&&!Qi(R))JMe(e,l,N,R,A&256,y,E);else if(P&&!yd(y)&&!Fu(y))VMe(l,E,y,R,!!(A&256));else{const k=UMe(i,y,R);HMe(l,E,y,R.text,k,A&256)}}})}))}});function GMe(e,t,r,i,o){var s,l;const u=zi(e,t),d=u.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(u.kind===19&&za(d)&&ea(d.parent)))return;const R=ho(d.parent.arguments,F=>F===d);if(R<0)return;const N=i.getResolvedSignature(d.parent);if(!(N&&N.declaration&&N.parameters[R]))return;const P=N.parameters[R].valueDeclaration;if(!(P&&Zi(P)&&Je(P.name)))return;const k=Do(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(N,R).getNonNullableType(),!1,!1));return Qe(k)?{kind:3,token:P.name,identifier:P.name.text,properties:k,parentDeclaration:d}:void 0}if(u.kind===19||CD(d)||of(d)){const R=(CD(d)||of(d))&&d.expression?d.expression:d;if(za(R)){const N=CD(d)?i.getTypeFromTypeNode(d.type):i.getContextualType(R)||i.getTypeAtLocation(R),P=Do(i.getUnmatchedProperties(i.getTypeAtLocation(d),N.getNonNullableType(),!1,!1));return Qe(P)?{kind:3,token:d,identifier:void 0,properties:P,parentDeclaration:R,indentation:of(R.parent)||Sw(R.parent)?0:void 0}:void 0}}if(!hg(u))return;if(Je(u)&&tv(d)&&d.initializer&&za(d.initializer)){const R=(s=i.getContextualType(u)||i.getTypeAtLocation(u))==null?void 0:s.getNonNullableType(),N=Do(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),R,!1,!1));return Qe(N)?{kind:3,token:u,identifier:u.text,properties:N,parentDeclaration:d.initializer}:void 0}if(Je(u)&&au(u.parent)){const R=Va(o.getCompilerOptions()),N=Ttt(i,R,u.parent);return Qe(N)?{kind:4,token:u,attributes:N,parentDeclaration:u.parent}:void 0}if(Je(u)){const R=(l=i.getContextualType(u))==null?void 0:l.getNonNullableType();if(R&&Hr(R)&16){const N=Rc(i.getSignaturesOfType(R,0));return N===void 0?void 0:{kind:5,token:u,signature:N,sourceFile:e,parentDeclaration:QMe(u)}}if(ea(d)&&d.expression===u)return{kind:2,token:u,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:QMe(u)}}if(!qr(d))return;const _=iJ(i.getTypeAtLocation(d.expression)),h=_.symbol;if(!h||!h.declarations)return;if(Je(u)&&ea(d.parent)){const R=mn(h.declarations,mc),N=R?.getSourceFile();if(R&&N&&!fC(o,N))return{kind:2,token:u,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:R};const P=mn(h.declarations,Xi);if(e.commonJsModuleIndicator)return;if(P&&!fC(o,P))return{kind:2,token:u,call:d.parent,sourceFile:P,modifierFlags:32,parentDeclaration:P}}const y=mn(h.declarations,ui);if(!y&&Qi(u))return;const E=y||mn(h.declarations,R=>yd(R)||Fu(R));if(E&&!fC(o,E.getSourceFile())){const R=!Fu(E)&&(_.target||_)!==i.getDeclaredTypeOfSymbol(h);if(R&&(Qi(u)||yd(E)))return;const N=E.getSourceFile(),P=Fu(E)?0:(R?256:0)|(MJ(u.text)?2:0),k=wu(N),F=ni(d.parent,ea);return{kind:0,token:u,call:F,modifierFlags:P,parentDeclaration:E,declSourceFile:N,isJSFile:k}}const A=mn(h.declarations,t0);if(A&&!(_.flags&1056)&&!Qi(u)&&!fC(o,A.getSourceFile()))return{kind:1,token:u,parentDeclaration:A}}function htt(e,t){return t.isJSFile?oI(_tt(e,t)):gtt(e,t)}function _tt(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(yd(t)||Fu(t))return;const s=Rr.ChangeTracker.with(e,u=>VMe(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?f.Initialize_static_property_0:Qi(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return aa(v0,s,[l,o.text],v0,f.Add_all_missing_members)}function VMe(e,t,r,i,o){const s=i.text;if(o){if(r.kind===232)return;const l=r.name.getText(),u=jMe(L.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(Qi(i)){const l=L.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=qMe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=Eg(r);if(!l)return;const u=jMe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function jMe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),Rx()))}function gtt(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=UMe(e.program.getTypeChecker(),t,o),d=h=>Rr.ChangeTracker.with(e,y=>HMe(y,r,t,s,u,h)),_=[aa(v0,d(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],v0,f.Add_all_missing_members)];return l||Qi(o)||(i&2&&_.unshift(Th(v0,d(2),[f.Declare_private_property_0,s])),_.push(ytt(e,r,t,o.text,u))),_}function UMe(e,t,r){let i;if(r.parent.parent.kind===227){const o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1,8)}else{const o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1,8):void 0}return i||L.createKeywordTypeNode(133)}function HMe(e,t,r,i,o,s){const l=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,u=ui(r)?L.createPropertyDeclaration(l,i,void 0,o,void 0):L.createPropertySignature(void 0,i,void 0,o),d=qMe(r);d?e.insertNodeAfter(t,d,u):e.insertMemberAtStart(t,r,u)}function qMe(e){let t;for(const r of e.members){if(!Mo(r))break;t=r}return t}function ytt(e,t,r,i,o){const s=L.createKeywordTypeNode(154),l=L.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),u=L.createIndexSignature(void 0,[l],o),d=Rr.ChangeTracker.with(e,_=>_.insertMemberAtStart(t,r,u));return Th(v0,d,[f.Add_index_signature_for_property_0,i])}function vtt(e,t){const{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;const u=s.text,d=h=>Rr.ChangeTracker.with(e,y=>JMe(e,y,l,s,h,r,i)),_=[aa(v0,d(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],v0,f.Add_all_missing_members)];return o&2&&_.unshift(Th(v0,d(2),[f.Declare_private_method_0,u])),_}function JMe(e,t,r,i,o,s,l){const u=dE(l,e.program,e.preferences,e.host),d=ui(s)?175:174,_=Ype(d,e,u,r,i,o,s),h=Stt(s,r);h?t.insertNodeAfter(l,h,_):t.insertMemberAtStart(l,s,_),u.writeFixes(t)}function KMe(e,t,{token:r,parentDeclaration:i}){const o=vt(i.members,d=>{const _=t.getTypeAtLocation(d);return!!(_&&_.flags&402653316)}),s=i.getSourceFile(),l=L.createEnumMember(r,o?L.createStringLiteral(r.text):void 0),u=tl(i.members);u?e.insertNodeInListAfter(s,u,l,i.members):e.insertMemberAtStart(s,i,l)}function XMe(e,t,r){const i=Up(t.sourceFile,t.preferences),o=dE(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Ype(263,t,o,r.call,Kr(r.token),r.modifierFlags,r.parentDeclaration):KK(263,t,i,r.signature,Sz(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&C.fail("fixMissingFunctionDeclaration codefix got unexpected error."),of(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function YMe(e,t,r){const i=dE(t.sourceFile,t.program,t.preferences,t.host),o=Up(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=vt(l.properties,nx),d=Yt(r.attributes,y=>{const E=zK(t,s,i,o,s.getTypeOfSymbol(y),r.parentDeclaration),A=L.createIdentifier(y.name),R=L.createJsxAttribute(A,L.createJsxExpression(void 0,E));return ps(A,R),R}),_=L.createJsxAttributes(u?[...d,...l.properties]:[...l.properties,...d]),h={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,_,h),i.writeFixes(e)}function $Me(e,t,r){const i=dE(t.sourceFile,t.program,t.preferences,t.host),o=Up(t.sourceFile,t.preferences),s=Va(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Yt(r.properties,_=>{const h=zK(t,l,i,o,l.getTypeOfSymbol(_),r.parentDeclaration);return L.createPropertyAssignment(Ett(_,s,o,l),h)}),d={leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,L.createObjectLiteralExpression([...r.parentDeclaration.properties,...u],!0),d),i.writeFixes(e)}function zK(e,t,r,i,o,s){if(o.flags&3)return Rx();if(o.flags&134217732)return L.createStringLiteral("",i===0);if(o.flags&8)return L.createNumericLiteral(0);if(o.flags&64)return L.createBigIntLiteral("0n");if(o.flags&16)return L.createFalse();if(o.flags&1056){const l=o.symbol.exports?KW(o.symbol.exports.values()):o.symbol,u=o.symbol.parent&&o.symbol.parent.flags&256?o.symbol.parent:o.symbol,d=t.symbolToExpression(u,111551,void 0,64);return l===void 0||d===void 0?L.createNumericLiteral(0):L.createPropertyAccessExpression(d,t.symbolToString(l))}if(o.flags&256)return L.createNumericLiteral(o.value);if(o.flags&2048)return L.createBigIntLiteral(o.value);if(o.flags&128)return L.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?L.createFalse():L.createTrue();if(o.flags&65536)return L.createNull();if(o.flags&1048576)return Ln(o.types,u=>zK(e,t,r,i,u,s))??Rx();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(btt(o)){const l=Yt(t.getPropertiesOfType(o),u=>{const d=zK(e,t,r,i,t.getTypeOfSymbol(u),s);return L.createPropertyAssignment(u.name,d)});return L.createObjectLiteralExpression(l,!0)}if(Hr(o)&16){if(mn(o.symbol.declarations||ie,Np(W_,qm,Ll))===void 0)return Rx();const u=t.getSignaturesOfType(o,0);return u===void 0?Rx():KK(219,e,i,u[0],Sz(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??Rx()}if(Hr(o)&1){const l=fy(o.symbol);if(l===void 0||OS(l))return Rx();const u=Eg(l);return u&&Qe(u.parameters)?Rx():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return Rx()}function Rx(){return L.createIdentifier("undefined")}function btt(e){return e.flags&524288&&(Hr(e)&128||e.symbol&&ni(dg(e.symbol.declarations),Fu))}function Ttt(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return ie;const o=i.getProperties();if(!Qe(o))return ie;const s=new Set;for(const l of r.attributes.properties)if(s_(l)&&s.add(FM(l.name)),nx(l)){const u=e.getTypeAtLocation(l.expression);for(const d of u.getProperties())s.add(d.escapedName)}return Un(o,l=>_p(l.name,t,1)&&!(l.flags&16777216||Bl(l)&48||s.has(l.escapedName)))}function Stt(e,t){if(Fu(e))return;const r=Dn(t,i=>Ll(i)||kl(i));return r&&r.parent===e?r:void 0}function Ett(e,t,r,i){if(gg(e)){const o=i.symbolToNode(e,111551,void 0,void 0,1);if(o&&va(o))return o}return sw(e.name,t,r===0,!1,!1)}function QMe(e){if(Dn(e,MD)){const t=Dn(e.parent,of);if(t)return t}return zn(e)}function Att(e,t){const r=[];for(;e;){const i=MS(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&mn(s.declarations,ui);if(!l)break;r.push(l),e=l}return r}var Tpe="addMissingNewOperator",ZMe=[f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];Sa({errorCodes:ZMe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=Rr.ChangeTracker.with(e,o=>ePe(o,t,r));return[aa(Tpe,i,f.Add_missing_new_operator_to_call,Tpe,f.Add_missing_new_operator_to_all_calls)]},fixIds:[Tpe],getAllCodeActions:e=>As(e,ZMe,(t,r)=>ePe(t,e.sourceFile,r))});function ePe(e,t,r){const i=ma(Itt(t,r),ea),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function Itt(e,t){let r=zi(e,t.start);const i=Ml(t);for(;r.endVK(u,e.program,e.preferences,e.host,i,o)),[Qe(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],BK,f.Add_all_missing_parameters)),Qe(s)&&Vn(l,aa(GK,Rr.ChangeTracker.with(e,u=>VK(u,e.program,e.preferences,e.host,i,s)),[Qe(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],GK,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>As(e,tPe,(t,r)=>{const i=nPe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===BK&&VK(t,e.program,e.preferences,e.host,o,s),e.fixId===GK&&VK(t,e.program,e.preferences,e.host,o,l)}})});function nPe(e,t,r){const i=zi(e,r),o=Dn(i,ea);if(o===void 0||Qe(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=Un(l.symbol.declarations,rPe);if(u===void 0)return;const d=tl(u);if(d===void 0||d.body===void 0||fC(t,d.getSourceFile()))return;const _=xtt(d);if(_===void 0)return;const h=[],y=[],E=Qe(d.parameters),A=Qe(o.arguments);if(E>A)return;const R=[d,...Dtt(d,u)];for(let N=0,P=0,k=0;N{const d=zn(u),_=dE(d,t,r,i);Qe(u.parameters)?e.replaceNodeRangeWithNodes(d,Qa(u.parameters),Ga(u.parameters),iPe(_,l,u,s),{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include}):qe(iPe(_,l,u,s),(h,y)=>{Qe(u.parameters)===0&&y===0?e.insertNodeAt(d,u.parameters.end,h):e.insertNodeAtEndOfList(d,u.parameters,h)}),_.writeFixes(e)})}function rPe(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function iPe(e,t,r,i){const o=Yt(r.parameters,s=>L.createParameterDeclaration(s.modifiers,s.dotDotDotToken,s.name,s.questionToken,s.type,s.initializer));for(const{pos:s,declaration:l}of i){const u=s>0?o[s-1]:void 0;o.splice(s,0,L.updateParameterDeclaration(l,l.modifiers,l.dotDotDotToken,l.name,u&&u.questionToken?L.createToken(58):l.questionToken,Mtt(e,l.type,t),l.initializer))}return o}function Dtt(e,t){const r=[];for(const i of t)if(Ctt(i)){if(Qe(i.parameters)===Qe(e.parameters)){r.push(i);continue}if(Qe(i.parameters)>Qe(e.parameters))return[]}return r}function Ctt(e){return rPe(e)&&e.body===void 0}function oPe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function Ntt(e,t){return Qe(e)&&vt(e,r=>tAs(e,lPe,(t,r,i)=>{const o=dPe(r.file,r.start);if(o!==void 0)if(e.fixId===Spe){const s=uPe(o,e.host,r.code);s&&i.push(cPe(r.file.fileName,s))}else C.fail(`Bad fixId: ${e.fixId}`)})});function cPe(e,t){return{type:"install package",file:e,packageName:t}}function dPe(e,t){const r=ni(zi(e,t),Oa);if(!r)return;const i=r.text,{packageName:o}=f3(i);return nd(o)?void 0:o}function uPe(e,t,r){var i;return r===aPe?SD.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?h3(e):void 0}var pPe=[f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Epe="fixClassDoesntImplementInheritedAbstractMember";Sa({errorCodes:pPe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Rr.ChangeTracker.with(t,s=>mPe(fPe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[aa(Epe,o,f.Implement_inherited_abstract_class,Epe,f.Implement_all_inherited_abstract_classes)]},fixIds:[Epe],getAllCodeActions:function(t){const r=new Set;return As(t,pPe,(i,o)=>{const s=fPe(o.file,o.start);Em(r,ls(s))&&mPe(s,t.sourceFile,t,i,t.preferences)})}});function fPe(e,t){const r=zi(e,t);return ma(r.parent,ui)}function mPe(e,t,r,i,o){const s=uh(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),d=l.getPropertiesOfType(u).filter(Ltt),_=dE(t,r.program,o,r.host);Xpe(e,d,t,r,o,_,h=>i.insertMemberAtStart(t,e,h)),_.writeFixes(i)}function Ltt(e){const t=iv(Qa(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Ape="classSuperMustPrecedeThisAccess",hPe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];Sa({errorCodes:hPe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=gPe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=Rr.ChangeTracker.with(e,u=>_Pe(u,t,o,s));return[aa(Ape,l,f.Make_super_call_the_first_statement_in_the_constructor,Ape,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Ape],getAllCodeActions(e){const{sourceFile:t}=e,r=new Set;return As(e,hPe,(i,o)=>{const s=gPe(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;Em(r,ls(l.parent))&&_Pe(i,t,l,u)})}});function _Pe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function gPe(e,t){const r=zi(e,t);if(r.kind!==110)return;const i=pf(r),o=yPe(i.body);return o&&!o.expression.arguments.some(s=>qr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function yPe(e){return ad(e)&&a1(e.expression)?e:$o(e)?void 0:Jo(e,yPe)}var Ipe="constructorForDerivedNeedSuperCall",vPe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code];Sa({errorCodes:vPe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=bPe(t,r.start),o=Rr.ChangeTracker.with(e,s=>TPe(s,t,i));return[aa(Ipe,o,f.Add_missing_super_call,Ipe,f.Add_all_missing_super_calls)]},fixIds:[Ipe],getAllCodeActions:e=>As(e,vPe,(t,r)=>TPe(t,e.sourceFile,bPe(r.file,r.start)))});function bPe(e,t){const r=zi(e,t);return C.assert(kl(r.parent),"token should be at the constructor declaration"),r.parent}function TPe(e,t,r){const i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,ie));e.insertNodeAtConstructorStart(t,r,i)}var SPe="fixEnableJsxFlag",EPe=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];Sa({errorCodes:EPe,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=Rr.ChangeTracker.with(t,o=>APe(o,r));return[Th(SPe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[SPe],getAllCodeActions:e=>As(e,EPe,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&APe(t,r)})});function APe(e,t){tfe(e,t,"jsx",L.createStringLiteral("react"))}var xpe="fixNaNEquality",IPe=[f.This_condition_will_always_return_0.code];Sa({errorCodes:IPe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=xPe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,d=Rr.ChangeTracker.with(e,_=>RPe(_,t,u,l));return[aa(xpe,d,[f.Use_0,s],xpe,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[xpe],getAllCodeActions:e=>As(e,IPe,(t,r)=>{const i=xPe(e.program,r.file,xd(r.start,r.length));i&&RPe(t,r.file,i.arg,i.expression)})});function xPe(e,t,r){const i=mn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=mn(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;const s=rfe(o.file,xd(o.start,o.length));if(s!==void 0&&St(s)&&Nr(s.parent))return{suggestion:ktt(o.messageText),expression:s.parent,arg:s}}function RPe(e,t,r,i){const o=L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Number"),L.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?L.createPrefixUnaryExpression(54,o):o)}function ktt(e){const[,t]=c_(e,` `,0).match(/'(.*)'/)||[];return t}Sa({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){const r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;const o=[],s=Eu(r);if(s>=5&&s<99){const _=Rr.ChangeTracker.with(t,h=>{tfe(h,i,"module",L.createStringLiteral("esnext"))});o.push(Th("fixModuleOption",_,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=Va(r);if(u<4||u>99){const _=Rr.ChangeTracker.with(t,h=>{if(!ZN(i))return;const E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),efe(h,i,E)});o.push(Th("fixTargetOption",_,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}});var Rpe="fixPropertyAssignment",DPe=[f.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];Sa({errorCodes:DPe,fixIds:[Rpe],getCodeActions(e){const{sourceFile:t,span:r}=e,i=NPe(t,r.start),o=Rr.ChangeTracker.with(e,s=>CPe(s,e.sourceFile,i));return[aa(Rpe,o,[f.Change_0_to_1,"=",":"],Rpe,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>As(e,DPe,(t,r)=>CPe(t,r.file,NPe(r.file,r.start)))});function CPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function NPe(e,t){return ma(zi(e,t).parent,Jd)}var Dpe="extendsInterfaceBecomesImplements",MPe=[f.Cannot_extend_an_interface_0_Did_you_mean_implements.code];Sa({errorCodes:MPe,getCodeActions(e){const{sourceFile:t}=e,r=PPe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=Rr.ChangeTracker.with(e,l=>LPe(l,t,i,o));return[aa(Dpe,s,f.Change_extends_to_implements,Dpe,f.Change_all_extended_interfaces_to_implements)]},fixIds:[Dpe],getAllCodeActions:e=>As(e,MPe,(t,r)=>{const i=PPe(r.file,r.start);i&&LPe(t,r.file,i.extendsToken,i.heritageClauses)})});function PPe(e,t){const r=zi(e,t),i=_d(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function LPe(e,t,r,i){if(e.replaceNode(t,r,L.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},L.createToken(28));const l=t.text;let u=o.end;for(;uWPe(o,t,r));return[aa(Cpe,i,[f.Add_0_to_unresolved_variable,r.className||"this"],Cpe,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[Cpe],getAllCodeActions:e=>As(e,wPe,(t,r)=>{const i=OPe(r.file,r.start,r.code);i&&WPe(t,e.sourceFile,i)})});function OPe(e,t,r){const i=zi(e,t);if(Je(i)||Qi(i))return{node:i,className:r===kPe?_d(i).name.text:void 0}}function WPe(e,t,{node:r,className:i}){zp(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var Npe="fixInvalidJsxCharacters_expression",jK="fixInvalidJsxCharacters_htmlEntity",FPe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code];Sa({errorCodes:FPe,fixIds:[Npe,jK],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=Rr.ChangeTracker.with(e,l=>Mpe(l,r,t,i.start,!1)),s=Rr.ChangeTracker.with(e,l=>Mpe(l,r,t,i.start,!0));return[aa(Npe,o,f.Wrap_invalid_character_in_an_expression_container,Npe,f.Wrap_all_invalid_characters_in_an_expression_container),aa(jK,s,f.Convert_invalid_character_to_its_html_entity_code,jK,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return As(e,FPe,(t,r)=>Mpe(t,e.preferences,r.file,r.start,e.fixId===jK))}});var zPe={">":">","}":"}"};function wtt(e){return Cs(zPe,e)}function Mpe(e,t,r,i,o){const s=r.getText()[i];if(!wtt(s))return;const l=o?zPe[s]:`{${GP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var UK="deleteUnmatchedParameter",BPe="renameUnmatchedParameter",GPe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];Sa({fixIds:[UK,BPe],errorCodes:GPe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=VPe(r,i.start);if(s)return Vn(o,Ott(t,s)),Vn(o,Wtt(t,s)),o},getAllCodeActions:function(t){const r=new Map;return Ax(Rr.ChangeTracker.with(t,i=>{Ix(t,GPe,({file:o,start:s})=>{const l=VPe(o,s);l&&r.set(l.signature,Vn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===UK){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}});function Ott(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=Rr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return aa(UK,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],UK,f.Delete_all_unused_param_tags)}function Wtt(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Qe(i.parameters))return;const s=e.sourceFile,l=OT(i),u=new Set;for(const y of l)_f(y)&&Je(y.name)&&u.add(y.name.escapedText);const d=Ln(i.parameters,y=>Je(y.name)&&!u.has(y.name.escapedText)?y.name.getText(s):void 0);if(d===void 0)return;const _=L.updateJSDocParameterTag(o,o.tagName,L.createIdentifier(d),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),h=Rr.ChangeTracker.with(e,y=>y.replaceJSDocComment(s,r,Yt(l,E=>E===o?_:E)));return Th(BPe,h,[f.Rename_param_tag_name_0_to_1,t.getText(s),d])}function VPe(e,t){const r=zi(e,t);if(r.parent&&_f(r.parent)&&Je(r.parent.name)){const i=r.parent,o=CS(i),s=VT(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var Ppe="fixUnreferenceableDecoratorMetadata",Ftt=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];Sa({errorCodes:Ftt,getCodeActions:e=>{const t=ztt(e.sourceFile,e.program,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,s=>t.kind===277&&Gtt(s,e.sourceFile,t,e.program)),i=Rr.ChangeTracker.with(e,s=>Btt(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Vn(o,Th(Ppe,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Vn(o,Th(Ppe,i,f.Use_import_type))),o},fixIds:[Ppe]});function ztt(e,t,r){const i=ni(zi(e,r),Je);if(!i||i.parent.kind!==184)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return mn(s?.declarations||ie,Np(Jm,xu,Gc))}function Btt(e,t,r,i){if(r.kind===272){e.insertModifierBefore(t,156,r.name);return}const o=r.kind===274?r:r.parent.parent;if(o.name&&o.namedBindings)return;const s=i.getTypeChecker();wne(o,u=>{if(Rd(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function Gtt(e,t,r,i){Sx.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var Tz="unusedIdentifier",Lpe="unusedIdentifier_prefix",kpe="unusedIdentifier_delete",HK="unusedIdentifier_deleteImports",wpe="unusedIdentifier_infer",jPe=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code];Sa({errorCodes:jPe,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=zi(r,e.span.start);if(xm(u))return[$P(Rr.ChangeTracker.with(e,y=>y.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){const y=Rr.ChangeTracker.with(e,E=>HPe(E,r,u));return[$P(y,f.Remove_type_parameters)]}const d=qPe(u);if(d){const y=Rr.ChangeTracker.with(e,E=>E.delete(r,d));return[aa(Tz,y,[f.Remove_import_from_0,bre(d)],HK,f.Delete_all_unused_imports)]}else if(Ope(u)){const y=Rr.ChangeTracker.with(e,E=>qK(r,u,E,s,l,i,o,!1));if(y.length)return[aa(Tz,y,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],HK,f.Delete_all_unused_imports)]}if(hf(u.parent)||mv(u.parent)){if(Zi(u.parent.parent)){const y=u.parent.elements,E=[y.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,Yt(y,A=>A.getText(r)).join(", ")];return[$P(Rr.ChangeTracker.with(e,A=>Vtt(A,r,u.parent)),E)]}return[$P(Rr.ChangeTracker.with(e,y=>jtt(e,y,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(JPe(r,u))return[$P(Rr.ChangeTracker.with(e,y=>KPe(y,r,u.parent)),f.Remove_variable_statement)];if(Je(u)&&rc(u.parent))return[$P(Rr.ChangeTracker.with(e,y=>QPe(y,r,u.parent)),[f.Remove_unused_declaration_for_Colon_0,u.getText(r)])];const _=[];if(u.kind===140){const y=Rr.ChangeTracker.with(e,A=>UPe(A,r,u)),E=ma(u.parent,S1).typeParameter.name.text;_.push(aa(Tz,y,[f.Replace_infer_0_with_unknown,E],wpe,f.Replace_all_unused_infer_with_unknown))}else{const y=Rr.ChangeTracker.with(e,E=>qK(r,u,E,s,l,i,o,!1));if(y.length){const E=va(u.parent)?u.parent:u;_.push($P(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}const h=Rr.ChangeTracker.with(e,y=>XPe(y,t,r,u));return h.length&&_.push(aa(Tz,h,[f.Prefix_0_with_an_underscore,u.getText(r)],Lpe,f.Prefix_all_unused_declarations_with_where_possible)),_},fixIds:[Lpe,kpe,HK,wpe],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return As(e,jPe,(l,u)=>{const d=zi(t,u.start);switch(e.fixId){case Lpe:XPe(l,u.code,t,d);break;case HK:{const _=qPe(d);_?l.delete(t,_):Ope(d)&&qK(t,d,l,o,s,r,i,!0);break}case kpe:{if(d.kind===140||Ope(d))break;if(xm(d))l.delete(t,d);else if(d.kind===30)HPe(l,t,d);else if(hf(d.parent)){if(d.parent.parent.initializer)break;(!Zi(d.parent.parent)||YPe(d.parent.parent,o,s))&&l.delete(t,d.parent.parent)}else{if(mv(d.parent.parent)&&d.parent.parent.parent.initializer)break;JPe(t,d)?KPe(l,t,d.parent):Je(d)&&rc(d.parent)?QPe(l,t,d.parent):qK(t,d,l,o,s,r,i,!0)}break}case wpe:d.kind===140&&UPe(l,t,d);break;default:C.fail(JSON.stringify(e.fixId))}})}});function UPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function $P(e,t){return aa(Tz,e,t,kpe,f.Delete_all_unused_declarations)}function HPe(e,t,r){e.delete(t,C.checkDefined(ma(r.parent,OG).typeParameters,"The type parameter to delete should exist"))}function Ope(e){return e.kind===102||e.kind===80&&(e.parent.kind===277||e.parent.kind===274)}function qPe(e){return e.kind===102?ni(e.parent,Tl):void 0}function JPe(e,t){return gd(t.parent)&&Qa(t.parent.getChildren(e))===t}function KPe(e,t,r){e.delete(t,r.parent.kind===244?r.parent:r)}function Vtt(e,t,r){qe(r.elements,i=>e.delete(t,i))}function jtt(e,t,r,{parent:i}){if(yi(i)&&i.initializer&&TS(i.initializer))if(gd(i.parent)&&Qe(i.parent.declarations)>1){const o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:by(e.host,e.formatContext.options)+r.text.slice(w7(r.text,s-1),s),suffix:OO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function XPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ma(i.parent,S1).typeParameter.name),Je(i)&&Utt(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),Zi(i.parent)&&VR(i.parent).forEach(o=>{Je(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function Utt(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}function qK(e,t,r,i,o,s,l,u){Htt(t,r,e,i,o,s,l,u),Je(t)&&Qs.Core.eachSymbolReferenceInFile(t,i,e,d=>{qr(d.parent)&&d.parent.name===d&&(d=d.parent),!u&&Xtt(d)&&r.delete(e,d.parent.parent)})}function Htt(e,t,r,i,o,s,l,u){const{parent:d}=e;if(Zi(d))qtt(t,r,d,i,o,s,l,u);else if(!(u&&Je(e)&&Qs.Core.isSymbolReferencedInFile(e,i,r))){const _=Jm(d)?e:va(d)?d.parent:d;C.assert(_!==r,"should not delete whole source file"),t.delete(r,_)}}function qtt(e,t,r,i,o,s,l,u=!1){if(Jtt(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!Je(r.name)||Qs.Core.isSymbolReferencedInFile(r.name,i,t)))for(const d of r.modifiers)Aa(d)&&e.deleteModifier(t,d);else!r.initializer&&YPe(r,i,o)&&e.delete(t,r)}function YPe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Qs.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function Jtt(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 175:case 177:const d=u.parameters.indexOf(r),_=Ll(u)?u.name:u,h=Qs.Core.getReferencedSymbolsForNode(u.pos,_,o,i,s);if(h){for(const y of h)for(const E of y.references)if(E.kind===Qs.EntryKind.Node){const A=HM(E.node)&&ea(E.node.parent)&&E.node.parent.arguments.length>d,R=qr(E.node.parent)&&HM(E.node.parent.expression)&&ea(E.node.parent.parent)&&E.node.parent.parent.arguments.length>d,N=(Ll(E.node.parent)||qm(E.node.parent))&&E.node.parent!==r.parent&&E.node.parent.parameters.length>d;if(A||R||N)return!1}}return!0;case 263:return u.name&&Ktt(e,t,u.name)?$Pe(u,r,l):!0;case 219:case 220:return $Pe(u,r,l);case 179:return!1;case 178:return!0;default:return C.failBadSyntaxKind(u)}}function Ktt(e,t,r){return!!Qs.Core.eachSymbolReferenceInFile(r,e,t,i=>Je(i)&&ea(i.parent)&&i.parent.arguments.includes(i))}function $Pe(e,t,r){const i=e.parameters,o=i.indexOf(t);return C.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Je(s.name)&&!s.symbol.isReferenced):o===i.length-1}function Xtt(e){return(Nr(e.parent)&&e.parent.left===e||(Lj(e.parent)||QT(e.parent))&&e.parent.operand===e)&&ad(e.parent.parent)}function QPe(e,t,r){const i=r.symbol.declarations;if(i)for(const o of i)e.delete(t,o)}var Wpe="fixUnreachableCode",ZPe=[f.Unreachable_code_detected.code];Sa({errorCodes:ZPe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=Rr.ChangeTracker.with(e,i=>eLe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[aa(Wpe,r,f.Remove_unreachable_code,Wpe,f.Remove_all_unreachable_code)]},fixIds:[Wpe],getAllCodeActions:e=>As(e,ZPe,(t,r)=>eLe(t,r.file,r.start,r.length,r.code))});function eLe(e,t,r,i,o){const s=zi(t,r),l=Dn(s,ji);if(l.getStart(t)!==s.getStart(t)){const d=JSON.stringify({statementKind:C.formatSyntaxKind(l.kind),tokenKind:C.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});C.fail("Token and statement should start at the same point. "+d)}const u=(ta(l.parent)?l.parent:l).parent;if(!ta(l.parent)||l===Qa(l.parent.statements))switch(u.kind){case 246:if(u.elseStatement){if(ta(l.parent))break;e.replaceNode(t,l,L.createBlock(ie));return}case 248:case 249:e.delete(t,u);return}if(ta(l.parent)){const d=r+i,_=C.checkDefined(Ytt(ZV(l.parent.statements,l),h=>h.posnLe(r,e.sourceFile,e.span.start));return[aa(Fpe,t,f.Remove_unused_label,Fpe,f.Remove_all_unused_labels)]},fixIds:[Fpe],getAllCodeActions:e=>As(e,tLe,(t,r)=>nLe(t,r.file,r.start))});function nLe(e,t,r){const i=zi(t,r),o=ma(i.parent,Fb),s=i.getStart(t),l=o.statement.getStart(t),u=Hf(s,l,t)?l:wa(t.text,Is(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var rLe="fixJSDocTypes_plain",zpe="fixJSDocTypes_nullable",iLe=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];Sa({errorCodes:iLe,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=aLe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[d(s,rLe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===315&&u.push(d(s,zpe,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function d(_,h,y){const E=Rr.ChangeTracker.with(e,A=>oLe(A,t,o,_,r));return aa("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(_)],h,y)}},fixIds:[rLe,zpe],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return As(e,iLe,(s,l)=>{const u=aLe(l.file,l.start,o);if(!u)return;const{typeNode:d,type:_}=u,h=d.kind===315&&t===zpe?o.getNullableType(_,32768):_;oLe(s,i,d,h,o)})}});function oLe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function aLe(e,t,r){const i=Dn(zi(e,t),$tt),o=i&&i.type;return o&&{typeNode:o,type:Qtt(r,o)}}function $tt(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function Qtt(e,t){if(LD(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Vn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Bpe="fixMissingCallParentheses",sLe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];Sa({errorCodes:sLe,fixIds:[Bpe],getCodeActions(e){const{sourceFile:t,span:r}=e,i=cLe(t,r.start);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>lLe(s,e.sourceFile,i));return[aa(Bpe,o,f.Add_missing_call_parentheses,Bpe,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>As(e,sLe,(t,r)=>{const i=cLe(r.file,r.start);i&&lLe(t,r.file,i)})});function lLe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function cLe(e,t){const r=zi(e,t);if(qr(r.parent)){let i=r.parent;for(;qr(i.parent);)i=i.parent;return i.name}if(Je(r))return r}var dLe="fixMissingTypeAnnotationOnExports",Gpe="add-annotation",Vpe="add-type-assertion",Ztt="extract-expression",uLe=[f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,f.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,f.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,f.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,f.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,f.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,f.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,f.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,f.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],ent=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),pLe=531469,fLe=1;Sa({errorCodes:uLe,fixIds:[dLe],getCodeActions(e){const t=[];return QP(Gpe,t,e,0,r=>r.addTypeAnnotation(e.span)),QP(Gpe,t,e,1,r=>r.addTypeAnnotation(e.span)),QP(Gpe,t,e,2,r=>r.addTypeAnnotation(e.span)),QP(Vpe,t,e,0,r=>r.addInlineAssertion(e.span)),QP(Vpe,t,e,1,r=>r.addInlineAssertion(e.span)),QP(Vpe,t,e,2,r=>r.addInlineAssertion(e.span)),QP(Ztt,t,e,0,r=>r.extractAsVariable(e.span)),t},getAllCodeActions:e=>{const t=mLe(e,0,r=>{Ix(e,uLe,i=>{r.addTypeAnnotation(i)})});return Ax(t.textChanges)}});function QP(e,t,r,i,o){const s=mLe(r,i,o);s.result&&s.textChanges.length&&t.push(aa(e,s.textChanges,s.result,dLe,f.Add_all_missing_type_annotations))}function mLe(e,t,r){const i={typeNode:void 0,mutatedTarget:!1},o=Rr.ChangeTracker.fromContext(e),s=e.sourceFile,l=e.program,u=l.getTypeChecker(),d=Va(l.getCompilerOptions()),_=dE(e.sourceFile,e.program,e.preferences,e.host),h=new Set,y=new Set,E=Ub({preserveSourceNewlines:!1}),A=r({addTypeAnnotation:R,addInlineAssertion:W,extractAsVariable:G});return _.writeFixes(o),{result:A,textChanges:o.getChanges()};function R(Ce){e.cancellationToken.throwIfCancellationRequested();const ye=zi(s,Ce.start),Ue=j(ye);if(Ue)return rc(Ue)?N(Ue):J(Ue);const Ge=lt(ye);if(Ge)return J(Ge)}function N(Ce){var ye;if(y?.has(Ce))return;y?.add(Ce);const Ue=u.getTypeAtLocation(Ce),Ge=u.getPropertiesOfType(Ue);if(!Ce.name||Ge.length===0)return;const We=[];for(const cn of Ge)_p(cn.name,Va(l.getCompilerOptions()))&&(cn.valueDeclaration&&yi(cn.valueDeclaration)||We.push(L.createVariableStatement([L.createModifier(95)],L.createVariableDeclarationList([L.createVariableDeclaration(cn.name,void 0,re(u.getTypeOfSymbol(cn),Ce),void 0)]))));if(We.length===0)return;const at=[];(ye=Ce.modifiers)!=null&&ye.some(cn=>cn.kind===95)&&at.push(L.createModifier(95)),at.push(L.createModifier(138));const Wt=L.createModuleDeclaration(at,Ce.name,L.createModuleBlock(We),101441696);return o.insertNodeAfter(s,Ce,Wt),[f.Annotate_types_of_properties_expando_function_in_a_namespace]}function P(Ce){return!Ns(Ce)&&!ea(Ce)&&!za(Ce)&&!Nd(Ce)}function k(Ce,ye){return P(Ce)&&(Ce=L.createParenthesizedExpression(Ce)),L.createAsExpression(Ce,ye)}function F(Ce,ye){return P(Ce)&&(Ce=L.createParenthesizedExpression(Ce)),L.createAsExpression(L.createSatisfiesExpression(Ce,_s(ye)),ye)}function W(Ce){e.cancellationToken.throwIfCancellationRequested();const ye=zi(s,Ce.start);if(j(ye))return;const Ge=ce(ye,Ce);if(!Ge||p1(Ge)||p1(Ge.parent))return;const We=St(Ge),at=Jd(Ge);if(!at&&id(Ge)||Dn(Ge,Zo)||Dn(Ge,_y)||We&&(Dn(Ge,Gp)||Dn(Ge,Ci))||Yf(Ge))return;const Wt=Dn(Ge,yi),cn=Wt&&u.getTypeAtLocation(Wt);if(cn&&cn.flags&8192||!(We||at))return;const{typeNode:gn,mutatedTarget:Kn}=me(Ge,cn);if(!(!gn||Kn))return at?o.insertNodeAt(s,Ge.end,k(_s(Ge.name),gn),{prefix:": "}):We?o.replaceNode(s,Ge,F(_s(Ge),gn)):C.assertNever(Ge),[f.Add_satisfies_and_an_inline_type_assertion_with_0,Be(gn)]}function G(Ce){e.cancellationToken.throwIfCancellationRequested();const ye=zi(s,Ce.start),Ue=ce(ye,Ce);if(!Ue||p1(Ue)||p1(Ue.parent)||!St(Ue))return;if(Nd(Ue))return o.replaceNode(s,Ue,k(Ue,L.createTypeReferenceNode("const"))),[f.Mark_array_literal_as_const];const We=Dn(Ue,Pc);if(We){if(We===Ue.parent&&Ns(Ue))return;const at=L.createUniqueName(jde(Ue,s,u,s),16);let Wt=Ue,cn=Ue;if(Yf(Wt)&&(Wt=Um(Wt.parent),Xe(Wt.parent)?cn=Wt=Wt.parent:cn=k(Wt,L.createTypeReferenceNode("const"))),Ns(Wt))return;const gn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(at,void 0,void 0,cn)],2)),Kn=Dn(Ue,ji);return o.insertNodeBefore(s,Kn,gn),o.replaceNode(s,Wt,L.createAsExpression(L.cloneNode(at),L.createTypeQueryNode(L.cloneNode(at)))),[f.Extract_to_variable_and_replace_with_0_as_typeof_0,Be(at)]}}function j(Ce){const ye=Dn(Ce,Ue=>ji(Ue)?"quit":VI(Ue));if(ye&&VI(ye)){let Ue=ye;if(Nr(Ue)&&(Ue=Ue.left,!VI(Ue)))return;const Ge=u.getTypeAtLocation(Ue.expression);if(!Ge)return;const We=u.getPropertiesOfType(Ge);if(vt(We,at=>at.valueDeclaration===ye||at.valueDeclaration===ye.parent)){const at=Ge.symbol.valueDeclaration;if(at){if(Pb(at)&&yi(at.parent))return at.parent;if(rc(at))return at}}}}function J(Ce){if(!h?.has(Ce))switch(h?.add(Ce),Ce.kind){case 170:case 173:case 261:return Me(Ce);case 220:case 219:case 263:case 175:case 178:return Z(Ce,s);case 278:return q(Ce);case 264:return ve(Ce);case 207:case 208:return oe(Ce);default:throw new Error(`Cannot find a fix for the given node ${Ce.kind}`)}}function Z(Ce,ye){if(Ce.type)return;const{typeNode:Ue}=me(Ce);if(Ue)return o.tryInsertTypeAnnotation(ye,Ce,Ue),[f.Add_return_type_0,Be(Ue)]}function q(Ce){if(Ce.isExportEquals)return;const{typeNode:ye}=me(Ce.expression);if(!ye)return;const Ue=L.createUniqueName("_default");return o.replaceNodeWithNodes(s,Ce,[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Ue,void 0,ye,Ce.expression)],2)),L.updateExportAssignment(Ce,Ce?.modifiers,Ue)]),[f.Extract_default_export_to_variable]}function ve(Ce){var ye,Ue;const Ge=(ye=Ce.heritageClauses)==null?void 0:ye.find(gt=>gt.token===96),We=Ge?.types[0];if(!We)return;const{typeNode:at}=me(We.expression);if(!at)return;const Wt=L.createUniqueName(Ce.name?Ce.name.text+"Base":"Anonymous",16),cn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Wt,void 0,at,We.expression)],2));o.insertNodeBefore(s,Ce,cn);const gn=pb(s.text,We.end),Kn=((Ue=gn?.[gn.length-1])==null?void 0:Ue.end)??We.end;return o.replaceRange(s,{pos:We.getFullStart(),end:Kn},Wt,{prefix:" "}),[f.Extract_base_class_to_variable]}function oe(Ce){var ye;const Ue=Ce.parent,Ge=Ce.parent.parent.parent;if(!Ue.initializer)return;let We;const at=[];if(Je(Ue.initializer))We={expression:{kind:3,identifier:Ue.initializer}};else{const gn=L.createUniqueName("dest",16);We={expression:{kind:3,identifier:gn}},at.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(gn,void 0,void 0,Ue.initializer)],2)))}const Wt=[];mv(Ce)?K(Ce,Wt,We):fe(Ce,Wt,We);const cn=new Map;for(const gn of Wt){if(gn.element.propertyName&&va(gn.element.propertyName)){const gt=gn.element.propertyName.expression,en=L.getGeneratedNameForNode(gt),or=L.createVariableDeclaration(en,void 0,void 0,gt),Ni=L.createVariableDeclarationList([or],2),so=L.createVariableStatement(void 0,Ni);at.push(so),cn.set(gt,en)}const Kn=gn.element.name;if(mv(Kn))K(Kn,Wt,gn);else if(hf(Kn))fe(Kn,Wt,gn);else{const{typeNode:gt}=me(Kn);let en=ue(gn,cn);if(gn.element.initializer){const Ni=(ye=gn.element)==null?void 0:ye.propertyName,so=L.createUniqueName(Ni&&Je(Ni)?Ni.text:"temp",16);at.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(so,void 0,void 0,en)],2))),en=L.createConditionalExpression(L.createBinaryExpression(so,L.createToken(37),L.createIdentifier("undefined")),L.createToken(58),gn.element.initializer,L.createToken(59),en)}const or=di(Ge,32)?[L.createToken(95)]:void 0;at.push(L.createVariableStatement(or,L.createVariableDeclarationList([L.createVariableDeclaration(Kn,void 0,gt,en)],2)))}}return Ge.declarationList.declarations.length>1&&at.push(L.updateVariableStatement(Ge,Ge.modifiers,L.updateVariableDeclarationList(Ge.declarationList,Ge.declarationList.declarations.filter(gn=>gn!==Ce.parent)))),o.replaceNodeWithNodes(s,Ge,at),[f.Extract_binding_expressions_to_variable]}function K(Ce,ye,Ue){for(let Ge=0;Ge=0;--We){const at=Ue[We].expression;at.kind===0?Ge=L.createPropertyAccessChain(Ge,void 0,L.createIdentifier(at.text)):at.kind===1?Ge=L.createElementAccessExpression(Ge,ye.get(at.computed)):at.kind===2&&(Ge=L.createElementAccessExpression(Ge,at.arrayIndex))}return Ge}function me(Ce,ye){if(t===1)return Ee(Ce);let Ue;if(p1(Ce)){const at=u.getSignatureFromDeclaration(Ce);if(at){const Wt=u.getTypePredicateOfSignature(at);if(Wt)return Wt.type?{typeNode:Te(Wt,Dn(Ce,id)??s,We(Wt.type)),mutatedTarget:!1}:i;Ue=u.getReturnTypeOfSignature(at)}}else Ue=u.getTypeAtLocation(Ce);if(!Ue)return i;if(t===2){ye&&(Ue=ye);const at=u.getWidenedLiteralType(Ue);if(u.isTypeAssignableTo(at,Ue))return i;Ue=at}const Ge=Dn(Ce,id)??s;return Zi(Ce)&&u.requiresAddingImplicitUndefined(Ce,Ge)&&(Ue=u.getUnionType([u.getUndefinedType(),Ue],0)),{typeNode:re(Ue,Ge,We(Ue)),mutatedTarget:!1};function We(at){return(yi(Ce)||Mo(Ce)&&di(Ce,264))&&at.flags&8192?1048576:0}}function be(Ce){return L.createTypeQueryNode(_s(Ce))}function De(Ce,ye="temp"){const Ue=!!Dn(Ce,Xe);return Ue?Ne(Ce,ye,Ue,Ge=>Ge.elements,Yf,L.createSpreadElement,Ge=>L.createArrayLiteralExpression(Ge,!0),Ge=>L.createTupleTypeNode(Ge.map(L.createRestTypeNode))):i}function Y(Ce,ye="temp"){const Ue=!!Dn(Ce,Xe);return Ne(Ce,ye,Ue,Ge=>Ge.properties,Mg,L.createSpreadAssignment,Ge=>L.createObjectLiteralExpression(Ge,!0),L.createIntersectionTypeNode)}function Ne(Ce,ye,Ue,Ge,We,at,Wt,cn){const gn=[],Kn=[];let gt;const en=Dn(Ce,ji);for(const so of Ge(Ce))We(so)?(Ni(),Ns(so.expression)?(gn.push(be(so.expression)),Kn.push(so)):or(so.expression)):(gt??(gt=[])).push(so);if(Kn.length===0)return i;return Ni(),o.replaceNode(s,Ce,Wt(Kn)),{typeNode:cn(gn),mutatedTarget:!0};function or(so){const zt=L.createUniqueName(ye+"_Part"+(Kn.length+1),16),Zr=Ue?L.createAsExpression(so,L.createTypeReferenceNode("const")):so,xi=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(zt,void 0,void 0,Zr)],2));o.insertNodeBefore(s,en,xi),gn.push(be(zt)),Kn.push(at(zt))}function Ni(){gt&&(or(Wt(gt)),gt=void 0)}}function Xe(Ce){return SS(Ce)&&Gm(Ce.type)}function Ee(Ce){if(Zi(Ce))return i;if(Jd(Ce))return{typeNode:be(Ce.name),mutatedTarget:!1};if(Ns(Ce))return{typeNode:be(Ce),mutatedTarget:!1};if(Xe(Ce))return Ee(Ce.expression);if(Nd(Ce)){const ye=Dn(Ce,yi),Ue=ye&&Je(ye.name)?ye.name.text:void 0;return De(Ce,Ue)}if(za(Ce)){const ye=Dn(Ce,yi),Ue=ye&&Je(ye.name)?ye.name.text:void 0;return Y(Ce,Ue)}if(yi(Ce)&&Ce.initializer)return Ee(Ce.initializer);if(I1(Ce)){const{typeNode:ye,mutatedTarget:Ue}=Ee(Ce.whenTrue);if(!ye)return i;const{typeNode:Ge,mutatedTarget:We}=Ee(Ce.whenFalse);return Ge?{typeNode:L.createUnionTypeNode([ye,Ge]),mutatedTarget:Ue||We}:i}return i}function re(Ce,ye,Ue=0){let Ge=!1;const We=OLe(u,Ce,ye,pLe|Ue,fLe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});if(!We)return;const at=$pe(We,_,d);return Ge?L.createKeywordTypeNode(133):at}function Te(Ce,ye,Ue=0){let Ge=!1;const We=WLe(u,_,Ce,ye,d,pLe|Ue,fLe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});return Ge?L.createKeywordTypeNode(133):We}function Me(Ce){const{typeNode:ye}=me(Ce);if(ye)return Ce.type?o.replaceNode(zn(Ce),Ce.type,ye):o.tryInsertTypeAnnotation(zn(Ce),Ce,ye),[f.Add_annotation_of_type_0,Be(ye)]}function Be(Ce){Cr(Ce,1);const ye=E.printNode(4,Ce,s);return ye.length>JN?ye.substring(0,JN-3)+"...":(Cr(Ce,0),ye)}function lt(Ce){return Dn(Ce,ye=>ent.has(ye.kind)&&(!hf(ye)&&!mv(ye)||yi(ye.parent)))}function ce(Ce,ye){for(;Ce&&Ce.endgLe(s,t,i));return[aa(jpe,o,f.Add_async_modifier_to_containing_function,jpe,f.Add_all_missing_async_modifiers)]},fixIds:[jpe],getAllCodeActions:function(t){const r=new Set;return As(t,hLe,(i,o)=>{const s=_Le(o.file,o.start);!s||!Em(r,ls(s.insertBefore))||gLe(i,t.sourceFile,s)})}});function tnt(e){if(e.type)return e.type;if(yi(e.parent)&&e.parent.type&&W_(e.parent.type))return e.parent.type.type}function _Le(e,t){const r=zi(e,t),i=pf(r);if(!i)return;let o;switch(i.kind){case 175:o=i.name;break;case 263:case 219:o=Is(i,100,e);break;case 220:const s=i.typeParameters?30:21;o=Is(i,s,e)||Qa(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:tnt(i)}}function gLe(e,t,{insertBefore:r,returnType:i}){if(i){const o=hk(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var yLe=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],Upe="fixPropertyOverrideAccessor";Sa({errorCodes:yLe,getCodeActions(e){const t=vLe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[aa(Upe,t,f.Generate_get_and_set_accessors,Upe,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Upe],getAllCodeActions:e=>As(e,yLe,(t,r)=>{const i=vLe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})});function vLe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=o.program.getTypeChecker(),d=zi(e,t).parent;if(va(d))return;C.assert(yb(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");const _=d.parent;C.assert(ui(_),"erroneous accessors should only be inside classes");const h=uh(_);if(!h)return;const y=us(h.expression),E=fc(y)?y.symbol:u.getSymbolAtLocation(y);if(!E)return;const A=u.getDeclaredTypeOfSymbol(E),R=u.getPropertyOfType(A,Vi(bI(d.name)));if(!R||!R.valueDeclaration)return;s=R.valueDeclaration.pos,l=R.valueDeclaration.end,e=zn(R.valueDeclaration)}else C.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return VLe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Hpe="inferFromUsage",bLe=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];Sa({errorCodes:bLe,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,d=zi(t,i);let _;const h=Rr.ChangeTracker.with(e,E=>{_=TLe(E,t,d,o,r,s,mS,l,u)}),y=_&&wo(_);return!y||h.length===0?void 0:[aa(Hpe,h,[nnt(o,d),Rl(y)],Hpe,f.Infer_all_types_from_usage)]},fixIds:[Hpe],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=sC();return As(e,bLe,(u,d)=>{TLe(u,t,zi(d.file,d.start),d.code,r,i,l,o,s)})}});function nnt(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return bp(pf(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function rnt(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function TLe(e,t,r,i,o,s,l,u,d){if(!jN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:_}=r,h=dE(t,o,d,u);switch(i=rnt(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(yi(_)&&l(_)||Mo(_)||Iu(_))return SLe(e,h,t,_,o,u,s),h.writeFixes(e),_;if(qr(_)){const A=n8(_.name,o,s),R=VP(A,_,o,u);if(R){const N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,ma(_.parent.parent,ad),[N])}return h.writeFixes(e),_}return;case f.Variable_0_implicitly_has_an_1_type.code:{const A=o.getTypeChecker().getSymbolAtLocation(r);return A&&A.valueDeclaration&&yi(A.valueDeclaration)&&l(A.valueDeclaration)?(SLe(e,h,zn(A.valueDeclaration),A.valueDeclaration,o,u,s),h.writeFixes(e),A.valueDeclaration):void 0}}const y=pf(r);if(y===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(bp(y)){ELe(e,h,t,y,o,u,s),E=y;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(y)){const A=ma(_,Zi);int(e,h,t,A,y,o,u,s),E=A}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Xf(y)&&Je(y.name)&&(JK(e,h,t,y,n8(y.name,o,s),o,u),E=y);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:bp(y)&&(ELe(e,h,t,y,o,u,s),E=y);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Rr.isThisTypeAnnotatable(y)&&l(y)&&(ont(e,t,y,o,u,s),E=y);break;default:return C.fail(String(i))}return h.writeFixes(e),E}function SLe(e,t,r,i,o,s,l){Je(i.name)&&JK(e,t,r,i,n8(i.name,o,l),o,s)}function int(e,t,r,i,o,s,l,u){if(!Je(i.name))return;const d=lnt(o,r,s,u);if(C.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),Ir(o))ALe(e,r,d,s,l);else{const _=$s(o)&&!Is(o,21,r);_&&e.insertNodeBefore(r,Qa(o.parameters),L.createToken(21));for(const{declaration:h,type:y}of d)h&&!h.type&&!h.initializer&&JK(e,t,r,h,y,s,l);_&&e.insertNodeAfter(r,Ga(o.parameters),L.createToken(22))}}function ont(e,t,r,i,o,s){const l=ILe(r,t,i,s);if(!l||!l.length)return;const u=Jpe(i,l,s).thisParameter(),d=VP(u,r,i,o);d&&(Ir(r)?ant(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function ant(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function ELe(e,t,r,i,o,s,l){const u=Rc(i.parameters);if(u&&Je(i.name)&&Je(u.name)){let d=n8(i.name,o,l);d===o.getTypeChecker().getAnyType()&&(d=n8(u.name,o,l)),Ir(i)?ALe(e,r,[{declaration:u,type:d}],o,s):JK(e,t,r,u,d,o,s)}}function JK(e,t,r,i,o,s,l){const u=VP(o,i,s,l);if(u)if(Ir(r)&&i.kind!==172){const d=yi(i)?ni(i.parent.parent,cc):i;if(!d)return;const _=L.createJSDocTypeExpression(u),h=Xf(i)?L.createJSDocReturnTag(void 0,_,void 0):L.createJSDocTypeTag(void 0,_,void 0);e.addJSDocTags(r,d,[h])}else snt(u,i,r,e,t,Va(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function snt(e,t,r,i,o,s){const l=uE(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(qe(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function ALe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=Ei(r,u=>{const d=u.declaration;if(d.initializer||Zy(d)||!Je(d.name))return;const _=u.type&&VP(u.type,d,i,o);if(_){const h=L.cloneNode(d.name);return Cr(h,7168),{name:L.cloneNode(d.name),param:d,isOptional:!!u.isOptional,typeNode:_}}});if(l.length)if($s(s)||qs(s)){const u=$s(s)&&!Is(s,21,t);u&&e.insertNodeBefore(t,Qa(s.parameters),L.createToken(21)),qe(l,({typeNode:d,param:_})=>{const h=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(d)),y=L.createJSDocComment(void 0,[h]);e.insertNodeAt(t,_.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,Ga(s.parameters),L.createToken(22))}else{const u=Yt(l,({name:d,typeNode:_,isOptional:h})=>L.createJSDocParameterTag(void 0,d,!!h,L.createJSDocTypeExpression(_),!1,void 0));e.addJSDocTags(t,s,u)}}function qpe(e,t,r){return Ei(Qs.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Qs.EntryKind.Span?ni(i.node,Je):void 0)}function n8(e,t,r){const i=qpe(e,t,r);return Jpe(t,i,r).single()}function lnt(e,t,r,i){const o=ILe(e,t,r,i);return o&&Jpe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Je(s.name)?n8(s.name,r,i):r.getTypeChecker().getAnyType()}))}function ILe(e,t,r,i){let o;switch(e.kind){case 177:o=Is(e,137,t);break;case 220:case 219:const s=e.parent;o=(yi(s)||Mo(s))&&Je(s.name)?s.name:e.name;break;case 263:case 175:case 174:o=e.name;break}if(o)return qpe(o,r,i)}function Jpe(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Te=>i.createArrayType(Te),Promise:Te=>i.createPromiseType(Te)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:_,thisParameter:h};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(Te){const Me=new Map;for(const lt of Te)lt.properties&<.properties.forEach((ce,Ce)=>{Me.has(Ce)||Me.set(Ce,[]),Me.get(Ce).push(ce)});const Be=new Map;return Me.forEach((lt,ce)=>{Be.set(ce,u(lt))}),{isNumber:Te.some(lt=>lt.isNumber),isString:Te.some(lt=>lt.isString),isNumberOrString:Te.some(lt=>lt.isNumberOrString),candidateTypes:fi(Te,lt=>lt.candidateTypes),properties:Be,calls:fi(Te,lt=>lt.calls),constructs:fi(Te,lt=>lt.constructs),numberIndex:qe(Te,lt=>lt.numberIndex),stringIndex:qe(Te,lt=>lt.stringIndex),candidateThisTypes:fi(Te,lt=>lt.candidateThisTypes),inferredTypes:void 0}}function d(){return ve(y(t))}function _(Te){if(t.length===0||!Te.parameters)return;const Me=l();for(const lt of t)r.throwIfCancellationRequested(),E(lt,Me);const Be=[...Me.constructs||[],...Me.calls||[]];return Te.parameters.map((lt,ce)=>{const Ce=[],ye=M_(lt);let Ue=!1;for(const We of Be)if(We.argumentTypes.length<=ce)Ue=Ir(Te),Ce.push(i.getUndefinedType());else if(ye)for(let at=ce;atBe.every(ce=>!ce(lt)))}function q(Te){return ve(K(Te))}function ve(Te){if(!Te.length)return i.getAnyType();const Me=i.getUnionType([i.getStringType(),i.getNumberType()]);let lt=Z(Te,[{high:Ce=>Ce===i.getStringType()||Ce===i.getNumberType(),low:Ce=>Ce===Me},{high:Ce=>!(Ce.flags&16385),low:Ce=>!!(Ce.flags&16385)},{high:Ce=>!(Ce.flags&114689)&&!(Hr(Ce)&16),low:Ce=>!!(Hr(Ce)&16)}]);const ce=lt.filter(Ce=>Hr(Ce)&16);return ce.length&&(lt=lt.filter(Ce=>!(Hr(Ce)&16)),lt.push(oe(ce))),i.getWidenedType(i.getUnionType(lt.map(i.getBaseTypeOfLiteralType),2))}function oe(Te){if(Te.length===1)return Te[0];const Me=[],Be=[],lt=[],ce=[];let Ce=!1,ye=!1;const Ue=hm();for(const at of Te){for(const gn of i.getPropertiesOfType(at))Ue.add(gn.escapedName,gn.valueDeclaration?i.getTypeOfSymbolAtLocation(gn,gn.valueDeclaration):i.getAnyType());Me.push(...i.getSignaturesOfType(at,0)),Be.push(...i.getSignaturesOfType(at,1));const Wt=i.getIndexInfoOfType(at,0);Wt&&(lt.push(Wt.type),Ce=Ce||Wt.isReadonly);const cn=i.getIndexInfoOfType(at,1);cn&&(ce.push(cn.type),ye=ye||cn.isReadonly)}const Ge=qW(Ue,(at,Wt)=>{const cn=Wt.lengthi.getBaseTypeOfLiteralType(Ue)),ye=(lt=Te.calls)!=null&<.length?fe(Te):void 0;return ye&&Ce?ce.push(i.getUnionType([ye,...Ce],2)):(ye&&ce.push(ye),Qe(Ce)&&ce.push(...Ce)),ce.push(...ue(Te)),ce}function fe(Te){const Me=new Map;Te.properties&&Te.properties.forEach((Ce,ye)=>{const Ue=i.createSymbol(4,ye);Ue.links.type=q(Ce),Me.set(ye,Ue)});const Be=Te.calls?[Xe(Te.calls)]:[],lt=Te.constructs?[Xe(Te.constructs)]:[],ce=Te.stringIndex?[i.createIndexInfo(i.getStringType(),q(Te.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Me,Be,lt,ce)}function ue(Te){if(!Te.properties||!Te.properties.size)return[];const Me=s.filter(Be=>me(Be,Te));return 0be(Be,Te)):[]}function me(Te,Me){return Me.properties?!Jc(Me.properties,(Be,lt)=>{const ce=i.getTypeOfPropertyOfType(Te,lt);return ce?Be.calls?!i.getSignaturesOfType(ce,0).length||!i.isTypeAssignableTo(ce,Ne(Be.calls)):!i.isTypeAssignableTo(ce,q(Be)):!0}):!1}function be(Te,Me){if(!(Hr(Te)&4)||!Me.properties)return Te;const Be=Te.target,lt=dg(Be.typeParameters);if(!lt)return Te;const ce=[];return Me.properties.forEach((Ce,ye)=>{const Ue=i.getTypeOfPropertyOfType(Be,ye);C.assert(!!Ue,"generic should have all the properties of its reference."),ce.push(...De(Ue,q(Ce),lt))}),o[Te.symbol.escapedName](ve(ce))}function De(Te,Me,Be){if(Te===Be)return[Me];if(Te.flags&3145728)return fi(Te.types,Ce=>De(Ce,Me,Be));if(Hr(Te)&4&&Hr(Me)&4){const Ce=i.getTypeArguments(Te),ye=i.getTypeArguments(Me),Ue=[];if(Ce&&ye)for(let Ge=0;Gece.argumentTypes.length));for(let ce=0;ceye.argumentTypes[ce]||i.getUndefinedType())),Te.some(ye=>ye.argumentTypes[ce]===void 0)&&(Ce.flags|=16777216),Me.push(Ce)}const lt=q(u(Te.map(ce=>ce.return_)));return i.createSignature(void 0,void 0,void 0,Me,lt,void 0,Be,0)}function Ee(Te,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Te.candidateTypes||(Te.candidateTypes=[])).push(Me)}function re(Te,Me){Me&&!(Me.flags&1)&&!(Me.flags&131072)&&(Te.candidateThisTypes||(Te.candidateThisTypes=[])).push(Me)}}var Kpe="fixReturnTypeInAsyncFunction",xLe=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];Sa({errorCodes:xLe,fixIds:[Kpe],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=RLe(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:d,promisedTypeNode:_,promisedType:h}=l,y=Rr.ChangeTracker.with(t,E=>DLe(E,r,u,_));return[aa(Kpe,y,[f.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(h)],Kpe,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>As(e,xLe,(t,r)=>{const i=RLe(r.file,e.program.getTypeChecker(),r.start);i&&DLe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})});function RLe(e,t,r){if(Ir(e))return;const i=zi(e,r),o=Dn(i,Ls),s=o?.type;if(!s)return;const l=t.getTypeFromTypeNode(s),u=t.getAwaitedType(l)||t.getVoidType(),d=t.typeToTypeNode(u,s,void 0);if(d)return{returnTypeNode:s,returnType:l,promisedTypeNode:d,promisedType:u}}function DLe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var CLe="disableJsDiagnostics",NLe="disableJsDiagnostics",MLe=Ei(Object.keys(f),e=>{const t=f[e];return t.category===1?t.code:void 0});Sa({errorCodes:MLe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!Ir(r)||!MM(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":by(s,l.options),d=[Th(CLe,[bCe(r.fileName,[DO(r.checkJsDirective?sc(r.checkJsDirective.pos,r.checkJsDirective.end):xd(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return Rr.isValidLocationToAddComment(r,o.start)&&d.unshift(aa(CLe,Rr.ChangeTracker.with(t,_=>PLe(_,r,o.start)),f.Ignore_this_error_message,NLe,f.Add_ts_ignore_to_all_error_messages)),d},fixIds:[NLe],getAllCodeActions:e=>{const t=new Set;return As(e,MLe,(r,i)=>{Rr.isValidLocationToAddComment(i.file,i.start)&&PLe(r,i.file,i.start,t)})}});function PLe(e,t,r,i){const{line:o}=ca(t,r);(!i||Wf(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}function Xpe(e,t,r,i,o,s,l){const u=e.symbol.members;for(const d of t)u.has(d.escapedName)||kLe(d,e,r,i,o,s,l,void 0)}function yC(e){return{trackSymbol:()=>!1,moduleResolverHost:aJ(e.program,e.host)}}var LLe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(LLe||{});function kLe(e,t,r,i,o,s,l,u,d=3,_=!1){const h=e.getDeclarations(),y=Rc(h),E=i.program.getTypeChecker(),A=Va(i.program.getCompilerOptions()),R=y?.kind??172,N=me(e,y),P=y?Ud(y):0;let k=P&256;k|=P&1?1:P&4?4:0,y&&Zu(y)&&(k|=512);const F=ve(),W=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),G=!!(e.flags&16777216),j=!!(t.flags&33554432)||_,J=Up(r,o),Z=1|(J===0?268435456:0);switch(R){case 172:case 173:let be=E.typeToTypeNode(W,t,Z,8,yC(i));if(s){const Y=uE(be,A);Y&&(be=Y.typeNode,H1(s,Y.symbols))}l(L.createPropertyDeclaration(F,y?K(N):e.getName(),G&&d&2?L.createToken(58):void 0,be,void 0));break;case 178:case 179:{C.assertIsDefined(h);let Y=E.typeToTypeNode(W,t,Z,void 0,yC(i));const Ne=wS(h,y),Xe=Ne.secondAccessor?[Ne.firstAccessor,Ne.secondAccessor]:[Ne.firstAccessor];if(s){const Ee=uE(Y,A);Ee&&(Y=Ee.typeNode,H1(s,Ee.symbols))}for(const Ee of Xe)if(Xf(Ee))l(L.createGetAccessorDeclaration(F,K(N),ie,ue(Y),fe(u,J,j)));else{C.assertNode(Ee,bp,"The counterpart to a getter should be a setter");const re=gM(Ee),Te=re&&Je(re.name)?Kr(re.name):void 0;l(L.createSetAccessorDeclaration(F,K(N),Qpe(1,[Te],[ue(Y)],1,!1),fe(u,J,j)))}break}case 174:case 175:C.assertIsDefined(h);const De=W.isUnion()?fi(W.types,Y=>Y.getCallSignatures()):W.getCallSignatures();if(!vt(De))break;if(h.length===1){C.assert(De.length===1,"One declaration implies one signature");const Y=De[0];q(J,Y,F,K(N),fe(u,J,j));break}for(const Y of De)Y.declaration&&Y.declaration.flags&33554432||q(J,Y,F,K(N));if(!j)if(h.length>De.length){const Y=E.getSignatureFromDeclaration(h[h.length-1]);q(J,Y,F,K(N),fe(u,J))}else C.assert(h.length===De.length,"Declarations and signatures should match count"),l(fnt(E,i,t,De,K(N),G&&!!(d&1),F,J,u));break}function q(be,De,Y,Ne,Xe){const Ee=KK(175,i,be,De,Xe,Ne,Y,G&&!!(d&1),t,s);Ee&&l(Ee)}function ve(){let be;return k&&(be=eI(be,L.createModifiersFromModifierFlags(k))),oe()&&(be=Vn(be,L.createToken(164))),be&&L.createNodeArray(be)}function oe(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&OS(y))}function K(be){return Je(be)&&be.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(Kr(be),J===0)):_s(be,!1)}function fe(be,De,Y){return Y?void 0:_s(be,!1)||Zpe(De)}function ue(be){return _s(be,!1)}function me(be,De){if(Bl(be)&262144){const Y=be.links.nameType;if(Y&&Jf(Y))return L.createIdentifier(Vi(Kf(Y)))}return _s(wo(De),!1)}}function KK(e,t,r,i,o,s,l,u,d,_){const h=t.program,y=h.getTypeChecker(),E=Va(h.getCompilerOptions()),A=Ir(d),R=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,d,R,8,yC(t));if(!N)return;let P=A?void 0:N.typeParameters,k=N.parameters,F=A?void 0:_s(N.type);if(_){if(P){const J=to(P,Z=>{let q=Z.constraint,ve=Z.default;if(q){const oe=uE(q,E);oe&&(q=oe.typeNode,H1(_,oe.symbols))}if(ve){const oe=uE(ve,E);oe&&(ve=oe.typeNode,H1(_,oe.symbols))}return L.updateTypeParameterDeclaration(Z,Z.modifiers,Z.name,q,ve)});P!==J&&(P=bt(L.createNodeArray(J,P.hasTrailingComma),P))}const j=to(k,J=>{let Z=A?void 0:J.type;if(Z){const q=uE(Z,E);q&&(Z=q.typeNode,H1(_,q.symbols))}return L.updateParameterDeclaration(J,J.modifiers,J.dotDotDotToken,J.name,A?void 0:J.questionToken,Z,J.initializer)});if(k!==j&&(k=bt(L.createNodeArray(j,k.hasTrailingComma),k)),F){const J=uE(F,E);J&&(F=J.typeNode,H1(_,J.symbols))}}const W=u?L.createToken(58):void 0,G=N.asteriskToken;if(qs(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ni(s,Je),P,k,F,o??N.body);if($s(N))return L.updateArrowFunction(N,l,P,k,F,N.equalsGreaterThanToken,o??N.body);if(Ll(N))return L.updateMethodDeclaration(N,l,G,s??L.createIdentifier(""),W,P,k,F,o);if(rc(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ni(s,Je),P,k,F,o??N.body)}function Ype(e,t,r,i,o,s,l){const u=Up(t.sourceFile,t.preferences),d=Va(t.program.getCompilerOptions()),_=yC(t),h=t.program.getTypeChecker(),y=Ir(l),{typeArguments:E,arguments:A,parent:R}=i,N=y?void 0:h.getContextualType(i),P=Yt(A,ve=>Je(ve)?ve.text:qr(ve)&&Je(ve.name)?ve.name.text:void 0),k=y?[]:Yt(A,ve=>h.getTypeAtLocation(ve)),{argumentTypeNodes:F,argumentTypeParameters:W}=unt(h,r,k,l,d,1,8,_),G=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,j=Sw(R)?L.createToken(42):void 0,J=y?void 0:cnt(h,W,E),Z=Qpe(A.length,P,F,void 0,y),q=y||N===void 0?void 0:h.typeToTypeNode(N,l,void 0,void 0,_);switch(e){case 175:return L.createMethodDeclaration(G,j,o,void 0,J,Z,q,Zpe(u));case 174:return L.createMethodSignature(G,o,void 0,J,Z,q===void 0?L.createKeywordTypeNode(159):q);case 263:return C.assert(typeof o=="string"||Je(o),"Unexpected name"),L.createFunctionDeclaration(G,j,o,J,Z,q,Sz(f.Function_not_implemented.message,u));default:C.fail("Unexpected kind")}}function cnt(e,t,r){const i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){const s=r.filter(u=>!t.some(d=>{var _;return e.getTypeAtLocation(u)===((_=d[1])==null?void 0:_.argumentType)})),l=i.size+s.length;for(let u=0;i.size{var l;return L.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function wLe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function XK(e,t,r,i,o,s,l,u){const d=e.typeToTypeNode(r,i,s,l,u);if(d)return $pe(d,t,o)}function $pe(e,t,r){const i=uE(e,r);return i&&(H1(t,i.symbols),e=i.typeNode),_s(e)}function dnt(e,t){var r;C.assert(t.typeArguments);const i=t.typeArguments,o=t.target;for(let s=0;sd===i[_]))return s}return i.length}function OLe(e,t,r,i,o,s){let l=e.typeToTypeNode(t,r,i,o,s);if(l){if(Bp(l)){const u=t;if(u.typeArguments&&l.typeArguments){const d=dnt(e,u);if(d=i?L.createToken(58):void 0,o?void 0:r?.[u]||L.createKeywordTypeNode(159),void 0);s.push(h)}return s}function fnt(e,t,r,i,o,s,l,u,d){let _=i[0],h=i[0].minArgumentCount,y=!1;for(const N of i)h=Math.min(N.minArgumentCount,h),du(N)&&(y=!0),N.parameters.length>=_.parameters.length&&(!du(N)||du(_))&&(_=N);const E=_.parameters.length-(du(_)?1:0),A=_.parameters.map(N=>N.name),R=Qpe(E,A,void 0,h,!1);if(y){const N=L.createParameterDeclaration(void 0,L.createToken(26),A[E]||"rest",E>=h?L.createToken(58):void 0,L.createArrayTypeNode(L.createKeywordTypeNode(159)),void 0);R.push(N)}return hnt(l,o,s,void 0,R,mnt(i,e,t,r),u,d)}function mnt(e,t,r,i){if(Qe(e)){const o=t.getUnionType(Yt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,8,yC(r))}}function hnt(e,t,r,i,o,s,l,u){return L.createMethodDeclaration(e,void 0,t,r?L.createToken(58):void 0,i,o,s,u||Zpe(l))}function Zpe(e){return Sz(f.Method_not_implemented.message,e)}function Sz(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function efe(e,t,r){const i=ZN(t);if(!i)return;const o=BLe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,nfe("compilerOptions",L.createObjectLiteralExpression(r.map(([l,u])=>nfe(l,u)),!0)));return}const s=o.initializer;if(za(s))for(const[l,u]of r){const d=BLe(s,l);d===void 0?e.insertNodeAtObjectStart(t,s,nfe(l,u)):e.replaceNode(t,d.initializer,u)}}function tfe(e,t,r,i){efe(e,t,[[r,i]])}function nfe(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function BLe(e,t){return mn(e.properties,r=>Pc(r)&&!!r.name&&Oa(r.name)&&r.name.text===t)}function uE(e,t){let r;const i=st(e,o,Ci);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(sy(s)&&s.qualifier){const l=Ou(s.qualifier);if(!l.symbol)return On(s,o,void 0);const u=U7(l.symbol,t),d=u!==l.text?GLe(s.qualifier,L.createIdentifier(u)):s.qualifier;r=Vn(r,l.symbol);const _=Xn(s.typeArguments,o,Ci);return L.createTypeReferenceNode(d,_)}return On(s,o,void 0)}}function GLe(e,t){return e.kind===80?t:L.createQualifiedName(GLe(e.left,t),e.right)}function H1(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function rfe(e,t){const r=Ml(t);let i=zi(e,t.start);for(;i.ends.replaceNode(t,r,i));return Th(JLe,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}Sa({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:Dnt});function Dnt(e){const t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?214:215,i=Dn(zi(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return XLe(e,o)}Sa({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Cnt});function Cnt(e){const t=e.sourceFile,r=Dn(zi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?XLe(e,r):[]}function XLe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&gg(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(tp(o)||Xr(i,Rnt(e,o)),St(t)&&!(rd(t.parent)&&t.parent.name===t)){const s=e.sourceFile,l=Rr.ChangeTracker.with(e,u=>u.replaceNode(s,t,L.createPropertyAccessExpression(t,"default"),{}));i.push(Th(JLe,l,f.Use_synthetic_default_member))}return i}var ife="strictClassInitialization",ofe="addMissingPropertyDefiniteAssignmentAssertions",afe="addMissingPropertyUndefinedType",sfe="addMissingPropertyInitializer",YLe=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];Sa({errorCodes:YLe,getCodeActions:function(t){const r=$Le(t.sourceFile,t.span.start);if(!r)return;const i=[];return Vn(i,Mnt(t,r)),Vn(i,Nnt(t,r)),Vn(i,Pnt(t,r)),i},fixIds:[ofe,afe,sfe],getAllCodeActions:e=>As(e,YLe,(t,r)=>{const i=$Le(r.file,r.start);if(i)switch(e.fixId){case ofe:QLe(t,r.file,i.prop);break;case afe:ZLe(t,r.file,i);break;case sfe:const o=e.program.getTypeChecker(),s=t2e(o,i.prop);if(!s)return;e2e(t,r.file,i.prop,s);break;default:C.fail(JSON.stringify(e.fixId))}})});function $Le(e,t){const r=zi(e,t);if(Je(r)&&Mo(r.parent)){const i=Cc(r.parent);if(i)return{type:i,prop:r.parent,isJs:Ir(r.parent)}}}function Nnt(e,t){if(t.isJs)return;const r=Rr.ChangeTracker.with(e,i=>QLe(i,e.sourceFile,t.prop));return aa(ife,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],ofe,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function QLe(e,t,r){zp(r);const i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function Mnt(e,t){const r=Rr.ChangeTracker.with(e,i=>ZLe(i,e.sourceFile,t));return aa(ife,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],afe,f.Add_undefined_type_to_all_uninitialized_properties)}function ZLe(e,t,r){const i=L.createKeywordTypeNode(157),o=pv(r.type)?r.type.types.concat(i):[r.type,i],s=L.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function Pnt(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=t2e(r,t.prop);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>e2e(s,e.sourceFile,t.prop,i));return aa(ife,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],sfe,f.Add_initializers_to_all_uninitialized_properties)}function e2e(e,t,r,i){zp(r);const o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function t2e(e,t){return n2e(e,e.getTypeFromTypeNode(t.type))}function n2e(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?L.createFalse():L.createTrue();if(t.isStringLiteral())return L.createStringLiteral(t.value);if(t.isNumberLiteral())return L.createNumericLiteral(t.value);if(t.flags&2048)return L.createBigIntLiteral(t.value);if(t.isUnion())return Ln(t.types,r=>n2e(e,r));if(t.isClass()){const r=fy(t.symbol);if(!r||di(r,64))return;const i=Eg(r);return i&&i.parameters.length?void 0:L.createNewExpression(L.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return L.createArrayLiteralExpression()}var lfe="requireInTs",r2e=[f.require_call_may_be_converted_to_an_import.code];Sa({errorCodes:r2e,getCodeActions(e){const t=o2e(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>i2e(i,e.sourceFile,t));return[aa(lfe,r,f.Convert_require_to_import,lfe,f.Convert_all_require_to_import)]},fixIds:[lfe],getAllCodeActions:e=>As(e,r2e,(t,r)=>{const i=o2e(r.file,e.program,r.start,e.preferences);i&&i2e(t,e.sourceFile,i)})});function i2e(e,t,r){const{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,moduleSpecifier:u}=r;e.replaceNode(t,l,o&&!i?L.createImportEqualsDeclaration(void 0,!1,o,L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(void 0,o,s),u,void 0))}function o2e(e,t,r,i){const{parent:o}=zi(e,r);np(o,!0)||C.failBadSyntaxKind(o);const s=ma(o.parent,yi),l=Up(e,i),u=ni(s.name,Je),d=hf(s.name)?Lnt(s.name):void 0;if(u||d){const _=Qa(o.arguments);return{allowSyntheticDefaults:WI(t.getCompilerOptions()),defaultImportName:u,namedImports:d,statement:ma(s.parent.parent,cc),moduleSpecifier:T1(_)?L.createStringLiteral(_.text,l===0):_}}}function Lnt(e){const t=[];for(const r of e.elements){if(!Je(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ni(r.propertyName,Je),r.name))}if(t.length)return L.createNamedImports(t)}var cfe="useDefaultImport",a2e=[f.Import_may_be_converted_to_a_default_import.code];Sa({errorCodes:a2e,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=s2e(t,r);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>l2e(s,t,i,e.preferences));return[aa(cfe,o,f.Convert_to_default_import,cfe,f.Convert_all_to_default_imports)]},fixIds:[cfe],getAllCodeActions:e=>As(e,a2e,(t,r)=>{const i=s2e(r.file,r.start);i&&l2e(t,r.file,i,e.preferences)})});function s2e(e,t){const r=zi(e,t);if(!Je(r))return;const{parent:i}=r;if(Gc(i)&&hy(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(Ng(i)&&Tl(i.parent.parent)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function l2e(e,t,r,i){e.replaceNode(t,r.importNode,Jb(r.name,void 0,r.moduleSpecifier,Up(t,i)))}var dfe="useBigintLiteral",c2e=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];Sa({errorCodes:c2e,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>d2e(i,t.sourceFile,t.span));if(r.length>0)return[aa(dfe,r,f.Convert_to_a_bigint_numeric_literal,dfe,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[dfe],getAllCodeActions:e=>As(e,c2e,(t,r)=>d2e(t,r.file,r))});function d2e(e,t,r){const i=ni(zi(t,r.start),op);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var knt="fixAddModuleReferTypeMissingTypeof",ufe=knt,u2e=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];Sa({errorCodes:u2e,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=p2e(r,i.start),s=Rr.ChangeTracker.with(t,l=>f2e(l,r,o));return[aa(ufe,s,f.Add_missing_typeof,ufe,f.Add_missing_typeof)]},fixIds:[ufe],getAllCodeActions:e=>As(e,u2e,(t,r)=>f2e(t,e.sourceFile,p2e(r.file,r.start)))});function p2e(e,t){const r=zi(e,t);return C.assert(r.kind===102,"This token should be an ImportKeyword"),C.assert(r.parent.kind===206,"Token parent should be an ImportType"),r.parent}function f2e(e,t,r){const i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var pfe="wrapJsxInFragment",m2e=[f.JSX_expressions_must_have_one_parent_element.code];Sa({errorCodes:m2e,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=h2e(r,i.start);if(!o)return;const s=Rr.ChangeTracker.with(t,l=>_2e(l,r,o));return[aa(pfe,s,f.Wrap_in_JSX_fragment,pfe,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[pfe],getAllCodeActions:e=>As(e,m2e,(t,r)=>{const i=h2e(e.sourceFile,r.start);i&&_2e(t,e.sourceFile,i)})});function h2e(e,t){let o=zi(e,t).parent.parent;if(!(!Nr(o)&&(o=o.parent,!Nr(o)))&&zl(o.operatorToken))return o}function _2e(e,t,r){const i=wnt(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function wnt(e){const t=[];let r=e;for(;;)if(Nr(r)&&zl(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),Z2(r.right))return t.push(r.right),t;if(Nr(r.right)){r=r.right;continue}else return}else return}var ffe="wrapDecoratorInParentheses",g2e=[f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];Sa({errorCodes:g2e,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>y2e(i,t.sourceFile,t.span.start));return[aa(ffe,r,f.Wrap_in_parentheses,ffe,f.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[ffe],getAllCodeActions:e=>As(e,g2e,(t,r)=>y2e(t,r.file,r.start))});function y2e(e,t,r){const i=zi(t,r),o=Dn(i,Bc);C.assert(!!o,"Expected position to be owned by a decorator.");const s=L.createParenthesizedExpression(o.expression);e.replaceNode(t,o.expression,s)}var mfe="fixConvertToMappedObjectType",v2e=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];Sa({errorCodes:v2e,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=b2e(r,i.start);if(!o)return;const s=Rr.ChangeTracker.with(t,u=>T2e(u,r,o)),l=Kr(o.container.name);return[aa(mfe,s,[f.Convert_0_to_mapped_object_type,l],mfe,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[mfe],getAllCodeActions:e=>As(e,v2e,(t,r)=>{const i=b2e(r.file,r.start);i&&T2e(t,r.file,i)})});function b2e(e,t){const r=zi(e,t),i=ni(r.parent.parent,Ob);if(!i)return;const o=yd(i.parent)?i.parent:ni(i.parent.parent,Im);if(o)return{indexSignature:i,container:o}}function Ont(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function T2e(e,t,{indexSignature:r,container:i}){const s=(yd(i)?i.members:i.type.members).filter(h=>!Ob(h)),l=Qa(r.parameters),u=L.createTypeParameterDeclaration(void 0,ma(l.name,Je),l.type),d=L.createMappedTypeNode(h1(r)?L.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),_=L.createIntersectionTypeNode([...cM(i),d,...s.length?[L.createTypeLiteralNode(s)]:ie]);e.replaceNode(t,i,Ont(i,_))}var S2e="removeAccidentalCallParentheses",Wnt=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];Sa({errorCodes:Wnt,getCodeActions(e){const t=Dn(zi(e.sourceFile,e.span.start),ea);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Th(S2e,r,f.Remove_parentheses)]},fixIds:[S2e]});var hfe="removeUnnecessaryAwait",E2e=[f.await_has_no_effect_on_the_type_of_this_expression.code];Sa({errorCodes:E2e,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>A2e(i,t.sourceFile,t.span));if(r.length>0)return[aa(hfe,r,f.Remove_unnecessary_await,hfe,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[hfe],getAllCodeActions:e=>As(e,E2e,(t,r)=>A2e(t,r.file,r))});function A2e(e,t,r){const i=ni(zi(t,r.start),u=>u.kind===135),o=i&&ni(i.parent,Wb);if(!o)return;let s=o;if(zu(o.parent)){const u=gD(o.expression,!1);if(Je(u)){const d=jc(o.parent.pos,t);d&&d.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var I2e=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],_fe="splitTypeOnlyImport";Sa({errorCodes:I2e,fixIds:[_fe],getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>R2e(i,x2e(t.sourceFile,t.span),t));if(r.length)return[aa(_fe,r,f.Split_into_two_separate_import_declarations,_fe,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>As(e,I2e,(t,r)=>{R2e(t,x2e(e.sourceFile,r),e)})});function x2e(e,t){return Dn(zi(e,t.start),Tl)}function R2e(e,t,r){if(!t)return;const i=C.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,L.updateImportDeclaration(t,t.modifiers,L.updateImportClause(i,i.phaseModifier,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,L.createImportDeclaration(void 0,L.updateImportClause(i,i.phaseModifier,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var gfe="fixConvertConstToLet",D2e=[f.Cannot_assign_to_0_because_it_is_a_constant.code];Sa({errorCodes:D2e,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=C2e(r,i.start,o);if(s===void 0)return;const l=Rr.ChangeTracker.with(t,u=>N2e(u,r,s.token));return[Due(gfe,l,f.Convert_const_to_let,gfe,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Set;return Ax(Rr.ChangeTracker.with(e,i=>{Ix(e,D2e,o=>{const s=C2e(o.file,o.start,t);if(s&&Em(r,Ta(s.symbol)))return N2e(i,o.file,s.token)})}))},fixIds:[gfe]});function C2e(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(zi(e,t));if(s===void 0)return;const l=ni((i=s?.valueDeclaration)==null?void 0:i.parent,gd);if(l===void 0)return;const u=Is(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function N2e(e,t,r){e.replaceNode(t,r,L.createToken(121))}var yfe="fixExpectedComma",Fnt=f._0_expected.code,M2e=[Fnt];Sa({errorCodes:M2e,getCodeActions(e){const{sourceFile:t}=e,r=P2e(t,e.span.start,e.errorCode);if(!r)return;const i=Rr.ChangeTracker.with(e,o=>L2e(o,t,r));return[aa(yfe,i,[f.Change_0_to_1,";",","],yfe,[f.Change_0_to_1,";",","])]},fixIds:[yfe],getAllCodeActions:e=>As(e,M2e,(t,r)=>{const i=P2e(r.file,r.start,r.code);i&&L2e(t,e.sourceFile,i)})});function P2e(e,t,r){const i=zi(e,t);return i.kind===27&&i.parent&&(za(i.parent)||Nd(i.parent))?{node:i}:void 0}function L2e(e,t,{node:r}){const i=L.createToken(28);e.replaceNode(t,r,i)}var znt="addVoidToPromise",k2e="addVoidToPromise",w2e=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];Sa({errorCodes:w2e,fixIds:[k2e],getCodeActions(e){const t=Rr.ChangeTracker.with(e,r=>O2e(r,e.sourceFile,e.span,e.program));if(t.length>0)return[aa(znt,t,f.Add_void_to_Promise_resolved_without_a_value,k2e,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return As(e,w2e,(t,r)=>O2e(t,r.file,r,e.program,new Set))}});function O2e(e,t,r,i,o){const s=zi(t,r.start);if(!Je(s)||!ea(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),d=u?.valueDeclaration;if(!d||!Zi(d)||!HS(d.parent.parent)||o?.has(d))return;o?.add(d);const _=Bnt(d.parent.parent);if(vt(_)){const h=_[0],y=!pv(h)&&!E1(h)&&E1(L.createUnionTypeNode([h,L.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,h.pos,"("),e.insertText(t,h.end,y?") | void":" | void")}else{const h=l.getResolvedSignature(s.parent),y=h?.parameters[0],E=y&&l.getTypeOfSymbolAtLocation(y,d.parent.parent);Ir(d)?(!E||E.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,wa(t.text,d.parent.parent.pos),"/** @type {Promise} */(")):(!E||E.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"")}}function Bnt(e){var t;if(Ir(e)){if(zu(e.parent)){const r=(t=wT(e.parent))==null?void 0:t.typeExpression.type;if(r&&Bp(r)&&Je(r.typeName)&&Kr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var Dx={};x(Dx,{CompletionKind:()=>Z2e,CompletionSource:()=>F2e,SortText:()=>Kd,StringCompletions:()=>sX,SymbolOriginInfoKind:()=>z2e,createCompletionDetails:()=>Iz,createCompletionDetailsForSymbol:()=>Rfe,getCompletionEntriesFromSymbols:()=>Ife,getCompletionEntryDetails:()=>grt,getCompletionEntrySymbol:()=>vrt,getCompletionsAtPosition:()=>Knt,getDefaultCommitCharacters:()=>q1,getPropertiesForObjectExpression:()=>iX,moduleSpecifierResolutionCacheAttemptLimit:()=>W2e,moduleSpecifierResolutionLimit:()=>vfe});var vfe=100,W2e=1e3,Kd={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"}},u_=[".",",",";"],YK=[".",";"],F2e=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(F2e||{}),z2e=(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))(z2e||{});function Gnt(e){return!!(e.kind&1)}function Vnt(e){return!!(e.kind&2)}function Ez(e){return!!(e&&e.kind&4)}function ZP(e){return!!(e&&e.kind===32)}function jnt(e){return Ez(e)||ZP(e)||bfe(e)}function Unt(e){return(Ez(e)||ZP(e))&&!!e.isFromPackageJson}function Hnt(e){return!!(e.kind&8)}function qnt(e){return!!(e.kind&16)}function B2e(e){return!!(e&&e.kind&64)}function G2e(e){return!!(e&&e.kind&128)}function Jnt(e){return!!(e&&e.kind&256)}function bfe(e){return!!(e&&e.kind&512)}function V2e(e,t,r,i,o,s,l,u,d){var _,h,y,E;const A=ws(),R=l||$k(i.getCompilerOptions())||((_=s.autoImportSpecifierExcludeRegexes)==null?void 0:_.length);let N=!1,P=0,k=0,F=0,W=0;const G=d({tryResolve:J,skippedAny:()=>N,resolvedAny:()=>k>0,resolvedBeyondLimit:()=>k>vfe}),j=W?` (${(F/W*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${k} module specifiers, plus ${P} ambient and ${F} from cache${j}`),(y=t.log)==null||y.call(t,`${e}: response is ${N?"incomplete":"complete"}`),(E=t.log)==null||E.call(t,`${e}: ${ws()-A}`),G;function J(Z,q){if(q){const fe=r.getModuleSpecifierForBestExportInfo(Z,o,u);return fe&&P++,fe||"failed"}const ve=R||s.allowIncompleteCompletions&&k{const R=Ei(d.entries,N=>{var P;if(!N.hasAction||!N.source||!N.data||j2e(N.data))return N;if(!hke(N.name,h))return;const{origin:k}=C.checkDefined(tke(N.name,N.data,i,o)),F=y.get(t.path,N.data.exportMapKey),W=F&&A.tryResolve(F,!nd(Sm(k.moduleSymbol.name)));if(W==="skipped")return N;if(!W||W==="failed"){(P=o.log)==null||P.call(o,`Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`);return}const G={...k,kind:32,moduleSpecifier:W.moduleSpecifier};return N.data=$2e(G),N.source=Afe(G),N.sourceDisplay=[bf(G.moduleSpecifier)],N});return A.skippedAny()||(d.isIncomplete=void 0),R});return d.entries=E,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=J2e(_),d}function Tfe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:q1(!1)}}function U2e(e,t,r,i,o,s){const l=zi(e,t);if(!KR(l)&&!gh(l))return[];const u=gh(l)?l:l.parent;if(!gh(u))return[];const d=u.parent;if(!$o(d))return[];const _=wu(e),h=o.includeCompletionsWithSnippetText||void 0,y=Ao(u.tags,E=>_f(E)&&E.getEnd()<=t);return Ei(d.parameters,E=>{if(!VR(E).length){if(Je(E.name)){const A={tabstop:1},R=E.name.text;let N=r8(R,E.initializer,E.dotDotDotToken,_,!1,!1,r,i,o),P=h?r8(R,E.initializer,E.dotDotDotToken,_,!1,!0,r,i,o,A):void 0;return s&&(N=N.slice(1),P&&(P=P.slice(1))),{name:N,kind:"parameter",sortText:Kd.LocationPriority,insertText:h?P:void 0,isSnippet:h}}else if(E.parent.parameters.indexOf(E)===y){const A=`param${y}`,R=H2e(A,E.name,E.initializer,E.dotDotDotToken,_,!1,r,i,o),N=h?H2e(A,E.name,E.initializer,E.dotDotDotToken,_,!0,r,i,o):void 0;let P=R.join(av(i)+"* "),k=N?.join(av(i)+"* ");return s&&(P=P.slice(1),k&&(k=k.slice(1))),{name:P,kind:"parameter",sortText:Kd.LocationPriority,insertText:h?k:void 0,isSnippet:h}}}})}function H2e(e,t,r,i,o,s,l,u,d){if(!o)return[r8(e,r,i,o,!1,s,l,u,d,{tabstop:1})];return _(e,t,r,i,{tabstop:1});function _(y,E,A,R,N){if(hf(E)&&!R){const k={tabstop:N.tabstop},F=r8(y,A,R,o,!0,s,l,u,d,k);let W=[];for(const G of E.elements){const j=h(y,G,k);if(j)W.push(...j);else{W=void 0;break}}if(W)return N.tabstop=k.tabstop,[F,...W]}return[r8(y,A,R,o,!1,s,l,u,d,N)]}function h(y,E,A){if(!E.propertyName&&Je(E.name)||Je(E.name)){const R=E.propertyName?YN(E.propertyName):E.name.text;if(!R)return;const N=`${y}.${R}`;return[r8(N,E.initializer,E.dotDotDotToken,o,!1,s,l,u,d,A)]}else if(E.propertyName){const R=YN(E.propertyName);return R&&_(`${y}.${R}`,E.name,E.initializer,E.dotDotDotToken,A)}}}function r8(e,t,r,i,o,s,l,u,d,_){if(s&&C.assertIsDefined(_),t&&(e=Ynt(e,t)),s&&(e=BS(e)),i){let h="*";if(o)C.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),h="Object";else{if(t){const A=l.getTypeAtLocation(t.parent);if(!(A.flags&16385)){const R=t.getSourceFile(),P=Up(R,d)===0?268435456:0,k=l.typeToTypeNode(A,Dn(t,$o),P);if(k){const F=s?ZK({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target}):Ub({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target});Cr(k,1),h=F.printNode(4,k,R)}}}s&&h==="*"&&(h=`\${${_.tabstop++}:${h}}`)}const y=!o&&r?"...":"",E=s?`\${${_.tabstop++}}`:"";return`@param {${y}${h}} ${e} ${E}`}else{const h=s?`\${${_.tabstop++}}`:"";return`@param ${e} ${h}`}}function Ynt(e,t){const r=t.getText().trim();return r.includes(` `)||r.length>80?`[${e}]`:`[${e}=${r}]`}function $nt(e){return{name:_a(e),kind:"keyword",kindModifiers:"",sortText:Kd.GlobalsOrKeywords}}function Qnt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:q1(t)}}function q2e(e,t,r){return{kind:4,keywordCompletions:rke(e,t),isNewIdentifierLocation:r}}function Znt(e){if(e===156)return 8;C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}function J2e(e){return e?.kind===80?Vu(e):void 0}function ert(e,t,r,i,o,s,l,u,d,_){const{symbols:h,contextToken:y,completionKind:E,isInSnippetScope:A,isNewIdentifierLocation:R,location:N,propertyAccessToConvert:P,keywordFilters:k,symbolToOriginInfoMap:F,recommendedCompletion:W,isJsxInitializer:G,isTypeOnlyLocation:j,isJsxIdentifierExpected:J,isRightOfOpenTag:Z,isRightOfDotOrQuestionDot:q,importStatementCompletion:ve,insideJsDocTagTypeExpression:oe,symbolToSortTextMap:K,hasUnresolvedAutoImports:fe,defaultCommitCharacters:ue}=s;let me=s.literals;const be=r.getTypeChecker();if(Xk(e.scriptKind)===1){const re=nrt(N,e);if(re)return re}const De=Dn(y,PD);if(De&&(Gie(y)||NS(y,De.expression))){const re=K7(be,De.parent.clauses);me=me.filter(Te=>!re.hasValue(Te)),h.forEach((Te,Me)=>{if(Te.valueDeclaration&&_y(Te.valueDeclaration)){const Be=be.getConstantValue(Te.valueDeclaration);Be!==void 0&&re.hasValue(Be)&&(F[Me]={kind:256})}})}const Y=KB(),Ne=K2e(e,i);if(Ne&&!R&&(!h||h.length===0)&&k===0)return;const Xe=Ife(h,Y,void 0,y,N,d,e,t,r,Va(i),o,E,l,i,u,j,P,J,G,ve,W,F,K,J,Z,_);if(k!==0)for(const re of rke(k,!oe&&wu(e)))(j&&wP(XE(re.name))||!j&&zrt(re.name)||!Xe.has(re.name))&&(Xe.add(re.name),nb(Y,re,Az,void 0,!0));for(const re of Irt(y,d))Xe.has(re.name)||(Xe.add(re.name),nb(Y,re,Az,void 0,!0));for(const re of me){const Te=irt(e,l,re);Xe.add(Te.name),nb(Y,Te,Az,void 0,!0)}Ne||rrt(e,N.pos,Xe,Va(i),Y);let Ee;if(l.includeCompletionsWithInsertText&&y&&!Z&&!q&&(Ee=Dn(y,$M))){const re=X2e(Ee,e,l,i,t,r,u);re&&Y.push(re.entry)}return{flags:s.flags,isGlobalCompletion:A,isIncomplete:l.allowIncompleteCompletions&&fe?!0:void 0,isMemberCompletion:trt(E),isNewIdentifierLocation:R,optionalReplacementSpan:J2e(N),entries:Y,defaultCommitCharacters:ue??q1(R)}}function K2e(e,t){return!wu(e)||!!MM(e,t)}function X2e(e,t,r,i,o,s,l){const u=e.clauses,d=s.getTypeChecker(),_=d.getTypeAtLocation(e.parent.expression);if(_&&_.isUnion()&&Hn(_.types,h=>h.isLiteral())){const h=K7(d,u),y=Va(i),E=Up(t,r),A=pu.createImportAdder(t,s,r,o),R=[];for(const j of _.types)if(j.flags&1024){C.assert(j.symbol,"An enum member type should have a symbol"),C.assert(j.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const J=j.symbol.valueDeclaration&&d.getConstantValue(j.symbol.valueDeclaration);if(J!==void 0){if(h.hasValue(J))continue;h.addValue(J)}const Z=pu.typeToAutoImportableTypeNode(d,A,j,e,y);if(!Z)return;const q=$K(Z,y,E);if(!q)return;R.push(q)}else if(!h.hasValue(j.value))switch(typeof j.value){case"object":R.push(j.value.negative?L.createPrefixUnaryExpression(41,L.createBigIntLiteral({negative:!1,base10Value:j.value.base10Value})):L.createBigIntLiteral(j.value));break;case"number":R.push(j.value<0?L.createPrefixUnaryExpression(41,L.createNumericLiteral(-j.value)):L.createNumericLiteral(j.value));break;case"string":R.push(L.createStringLiteral(j.value,E===0));break}if(R.length===0)return;const N=Yt(R,j=>L.createCaseClause(j,[])),P=by(o,l?.options),k=ZK({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:BO(P)}),F=l?j=>k.printAndFormatNode(4,j,t,l):j=>k.printNode(4,j,t),W=Yt(N,(j,J)=>r.includeCompletionsWithSnippetText?`${F(j)}$${J+1}`:`${F(j)}`).join(P);return{entry:{name:`${k.printNode(4,N[0],t)} ...`,kind:"",sortText:Kd.GlobalsOrKeywords,insertText:W,hasAction:A.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:A}}}function $K(e,t,r){switch(e.kind){case 184:const i=e.typeName;return QK(i,t,r);case 200:const o=$K(e.objectType,t,r),s=$K(e.indexType,t,r);return o&&s&&L.createElementAccessExpression(o,s);case 202:const l=e.literal;switch(l.kind){case 11:return L.createStringLiteral(l.text,r===0);case 9:return L.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 197:const u=$K(e.type,t,r);return u&&(Je(u)?u:L.createParenthesizedExpression(u));case 187:return QK(e.exprName,t,r);case 206:C.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function QK(e,t,r){if(Je(e))return e;const i=Vi(e.right.escapedText);return oj(i,t)?L.createPropertyAccessExpression(QK(e.left,t,r),i):L.createElementAccessExpression(QK(e.left,t,r),L.createStringLiteral(i,r===0))}function trt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function nrt(e,t){const r=Dn(e,i=>{switch(i.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return"quit"}});if(r){const i=!!Is(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Vu(r.tagName),d={name:l,kind:"class",kindModifiers:void 0,sortText:Kd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[d],defaultCommitCharacters:q1(!1)}}}function rrt(e,t,r,i,o){bK(e).forEach((s,l)=>{if(s===t)return;const u=Vi(l);!r.has(u)&&_p(u,i)&&(r.add(u),nb(o,{name:u,kind:"warning",kindModifiers:"",sortText:Kd.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},Az))})}function Sfe(e,t,r){return typeof r=="object"?zS(r)+"n":Bo(r)?GP(e,t,r):JSON.stringify(r)}function irt(e,t,r){return{name:Sfe(e,t,r),kind:"string",kindModifiers:"",sortText:Kd.LocationPriority,commitCharacters:[]}}function ort(e,t,r,i,o,s,l,u,d,_,h,y,E,A,R,N,P,k,F,W,G,j,J,Z){var q,ve;let oe,K,fe=eJ(r,s),ue,me,be=Afe(y),De,Y,Ne;const Xe=d.getTypeChecker(),Ee=y&&qnt(y),re=y&&Vnt(y)||h;if(y&&Gnt(y))oe=h?`this${Ee?"?.":""}[${Efe(l,F,_)}]`:`this${Ee?"?.":"."}${_}`;else if((re||Ee)&&A){oe=re?h?`[${Efe(l,F,_)}]`:`[${_}]`:_,(Ee||A.questionDotToken)&&(oe=`?.${oe}`);const lt=Is(A,25,l)||Is(A,29,l);if(!lt)return;const ce=po(_,A.name.text)?A.name.end:lt.end;fe=sc(lt.getStart(l),ce)}if(R&&(oe===void 0&&(oe=_),oe=`{${oe}}`,typeof R!="boolean"&&(fe=Vu(R,l))),y&&Hnt(y)&&A){oe===void 0&&(oe=_);const lt=jc(A.pos,l);let ce="";lt&&z7(lt.end,lt.parent,l)&&(ce=";"),ce+=`(await ${A.expression.getText()})`,oe=h?`${ce}${oe}`:`${ce}${Ee?"?.":"."}${oe}`;const ye=ni(A.parent,Wb)?A.parent:A.expression;fe=sc(ye.getStart(l),A.end)}if(ZP(y)&&(De=[bf(y.moduleSpecifier)],N&&({insertText:oe,replacementSpan:fe}=frt(_,N,y,P,l,d,F),me=F.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(Y=!0),W===0&&i&&((q=jc(i.pos,l,i))==null?void 0:q.kind)!==28&&(Ll(i.parent.parent)||Xf(i.parent.parent)||bp(i.parent.parent)||Mg(i.parent)||((ve=Dn(i.parent,Pc))==null?void 0:ve.getLastToken(l))===i||Jd(i.parent)&&ca(l,i.getEnd()).line!==ca(l,s).line)&&(be="ObjectLiteralMemberWithComma/",Y=!0),F.includeCompletionsWithClassMemberSnippets&&F.includeCompletionsWithInsertText&&W===3&&srt(e,o,l)){let lt;const ce=Y2e(u,d,k,F,_,e,o,s,i,G);if(ce)({insertText:oe,filterText:K,isSnippet:me,importAdder:lt}=ce),(lt?.hasFixes()||ce.eraseRange)&&(Y=!0,be="ClassMemberSnippet/");else return}if(y&&G2e(y)&&({insertText:oe,isSnippet:me,labelDetails:Ne}=y,F.useLabelDetailsInCompletionEntries||(_=_+Ne.detail,Ne=void 0),be="ObjectLiteralMethodSnippet/",t=Kd.SortBelow(t)),j&&!J&&F.includeCompletionsWithSnippetText&&F.jsxAttributeCompletionStyle&&F.jsxAttributeCompletionStyle!=="none"&&!(s_(o.parent)&&o.parent.initializer)){let lt=F.jsxAttributeCompletionStyle==="braces";const ce=Xe.getTypeOfSymbolAtLocation(e,o);F.jsxAttributeCompletionStyle==="auto"&&!(ce.flags&528)&&!(ce.flags&1048576&&mn(ce.types,Ce=>!!(Ce.flags&528)))&&(ce.flags&402653316||ce.flags&1048576&&Hn(ce.types,Ce=>!!(Ce.flags&402686084||mce(Ce)))?(oe=`${BS(_)}=${GP(l,F,"$1")}`,me=!0):lt=!0),lt&&(oe=`${BS(_)}={$1}`,me=!0)}if(oe!==void 0&&!F.includeCompletionsWithInsertText)return;(Ez(y)||ZP(y))&&(ue=$2e(y),Y=!N);const Te=Dn(o,z6);if(Te){const lt=Va(u.getCompilationSettings());if(!_p(_,lt))oe=Efe(l,F,_),Te.kind===276&&(vd.setText(l.text),vd.resetTokenState(s),vd.scan()===130&&vd.scan()===80||(oe+=" as "+art(_,lt)));else if(Te.kind===276){const ce=XE(_);ce&&(ce===135||rV(ce))&&(oe=`${_} as ${_}_`)}}const Me=Tv.getSymbolKind(Xe,e,o),Be=Me==="warning"||Me==="string"?[]:void 0;return{name:_,kind:Me,kindModifiers:Tv.getSymbolModifiers(Xe,e),sortText:t,source:be,hasAction:Y?!0:void 0,isRecommended:mrt(e,E,Xe)||void 0,insertText:oe,filterText:K,replacementSpan:fe,sourceDisplay:De,labelDetails:Ne,isSnippet:me,isPackageJsonImport:Unt(y)||void 0,isImportStatementCompletion:!!N||void 0,data:ue,commitCharacters:Be,...Z?{symbol:e}:void 0}}function art(e,t){let r=!1,i="",o;for(let s=0;s=65536?2:1)o=e.codePointAt(s),o!==void 0&&(s===0?C_(o,t):iy(o,t))?(r&&(i+="_"),i+=String.fromCodePoint(o),r=!1):r=!0;return r&&(i+="_"),i||"_"}function srt(e,t,r){return Ir(t)?!1:!!(e.flags&106500)&&(ui(t)||t.parent&&t.parent.parent&&Sc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ui(t.parent.parent)||t.parent&&OD(t)&&ui(t.parent))}function Y2e(e,t,r,i,o,s,l,u,d,_){const h=Dn(l,ui);if(!h)return;let y,E=o;const A=o,R=t.getTypeChecker(),N=l.getSourceFile(),P=ZK({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,omitTrailingSemicolon:!1,newLine:BO(by(e,_?.options))}),k=pu.createImportAdder(N,t,i,e);let F;if(i.includeCompletionsWithSnippetText){y=!0;const ve=L.createEmptyStatement();F=L.createBlock([ve],!0),Aj(ve,{kind:0,order:0})}else F=L.createBlock([],!0);let W=0;const{modifiers:G,range:j,decorators:J}=lrt(d,N,u),Z=G&64&&h.modifierFlagsCache&64;let q=[];if(pu.addNewNodeForMemberSymbol(s,h,N,{program:t,host:e},i,k,ve=>{let oe=0;Z&&(oe|=64),Sc(ve)&&R.getMemberOverrideModifierStatus(h,ve,s)===1&&(oe|=16),q.length||(W=ve.modifierFlagsCache|oe),ve=L.replaceModifiers(ve,W),q.push(ve)},F,pu.PreserveOptionalFlags.Property,!!Z),q.length){const ve=s.flags&8192;let oe=W|16|1;ve?oe|=1024:oe|=136;const K=G&oe;if(G&~oe)return;if(W&4&&K&1&&(W&=-5),K!==0&&!(K&1)&&(W&=-2),W|=K,q=q.map(ue=>L.replaceModifiers(ue,W)),J?.length){const ue=q[q.length-1];YS(ue)&&(q[q.length-1]=L.replaceDecoratorsAndModifiers(ue,J.concat(yS(ue)||[])))}const fe=131073;_?E=P.printAndFormatSnippetList(fe,L.createNodeArray(q),N,_):E=P.printSnippetList(fe,L.createNodeArray(q),N)}return{insertText:E,filterText:A,isSnippet:y,importAdder:k,eraseRange:j}}function lrt(e,t,r){if(!e||ca(t,r).line>ca(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;const l={pos:r,end:r};if(Mo(e.parent)&&(s=crt(e))){e.parent.modifiers&&(i|=Qh(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Bc)||[],l.pos=Math.min(...e.parent.modifiers.map(d=>d.getStart(t))));const u=NI(s);i&u||(i|=u,l.pos=Math.min(l.pos,e.getStart(t))),e.parent.name!==e&&(l.end=e.parent.name.getStart(t))}return{modifiers:i,decorators:o,range:l.posu.getSignaturesOfType(W,0).length>0);if(F.length===1)A=F[0];else return}if(u.getSignaturesOfType(A,0).length!==1)return;const N=u.typeToTypeNode(A,t,E,void 0,pu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!W_(N))return;let P;if(s.includeCompletionsWithSnippetText){const F=L.createEmptyStatement();P=L.createBlock([F],!0),Aj(F,{kind:0,order:0})}else P=L.createBlock([],!0);const k=N.parameters.map(F=>L.createParameterDeclaration(void 0,F.dotDotDotToken,F.name,void 0,void 0,F.initializer));return L.createMethodDeclaration(void 0,void 0,_,void 0,void 0,k,void 0,P)}default:return}}function ZK(e){let t;const r=Rr.createWriter(av(e)),i=Ub(e,r),o={...r,write:E=>s(E,()=>r.write(E)),nonEscapingWrite:r.write,writeLiteral:E=>s(E,()=>r.writeLiteral(E)),writeStringLiteral:E=>s(E,()=>r.writeStringLiteral(E)),writeSymbol:(E,A)=>s(E,()=>r.writeSymbol(E,A)),writeParameter:E=>s(E,()=>r.writeParameter(E)),writeComment:E=>s(E,()=>r.writeComment(E)),writeProperty:E=>s(E,()=>r.writeProperty(E))};return{printSnippetList:l,printAndFormatSnippetList:d,printNode:_,printAndFormatNode:y};function s(E,A){const R=BS(E);if(R!==E){const N=r.getTextPos();A();const P=r.getTextPos();t=Vn(t||(t=[]),{newText:R,span:{start:N,length:P-N}})}else A()}function l(E,A,R){const N=u(E,A,R);return t?Rr.applyChanges(N,t):N}function u(E,A,R){return t=void 0,o.clear(),i.writeList(E,A,R,o),o.getText()}function d(E,A,R,N){const P={text:u(E,A,R),getLineAndCharacterOfPosition(G){return ca(this,G)}},k=J7(N,R),F=fi(A,G=>{const j=Rr.assignPositionsToNode(G);return Lc.formatNodeGivenIndentation(j,P,R.languageVariant,0,0,{...N,options:k})}),W=t?Cp(ao(F,t),(G,j)=>XW(G.span,j.span)):F;return Rr.applyChanges(P.text,W)}function _(E,A,R){const N=h(E,A,R);return t?Rr.applyChanges(N,t):N}function h(E,A,R){return t=void 0,o.clear(),i.writeNode(E,A,R,o),o.getText()}function y(E,A,R,N){const P={text:h(E,A,R),getLineAndCharacterOfPosition(j){return ca(this,j)}},k=J7(N,R),F=Rr.assignPositionsToNode(A),W=Lc.formatNodeGivenIndentation(F,P,R.languageVariant,0,0,{...N,options:k}),G=t?Cp(ao(W,t),(j,J)=>XW(j.span,J.span)):W;return Rr.applyChanges(P.text,G)}}function $2e(e){const t=e.fileName?void 0:Sm(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return ZP(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:Sm(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function prt(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return j2e(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 frt(e,t,r,i,o,s,l){const u=t.replacementSpan,d=BS(GP(o,l,r.moduleSpecifier)),_=r.isDefaultExport?1:r.exportName==="export="?2:0,h=l.includeCompletionsWithSnippetText?"$1":"",y=pu.getImportKind(o,_,s,!0),E=t.couldBeTypeOnlyImportSpecifier,A=t.isTopLevelTypeOnly?` ${_a(156)} `:" ",R=E?`${_a(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${A}${BS(e)}${h} = require(${d})${N}`};case 1:return{replacementSpan:u,insertText:`import${A}${BS(e)}${h} from ${d}${N}`};case 2:return{replacementSpan:u,insertText:`import${A}* as ${BS(e)} from ${d}${N}`};case 0:return{replacementSpan:u,insertText:`import${A}{ ${R}${BS(e)}${h} } from ${d}${N}`}}}function Efe(e,t,r){return/^\d+$/.test(r)?r:GP(e,t,r)}function mrt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function Afe(e){if(Ez(e))return Sm(e.moduleSymbol.name);if(ZP(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function Ife(e,t,r,i,o,s,l,u,d,_,h,y,E,A,R,N,P,k,F,W,G,j,J,Z,q,ve=!1){const oe=ws(),K=wrt(i,o),fe=OO(l),ue=d.getTypeChecker(),me=new Map;for(let Y=0;YCe.getSourceFile()===o.getSourceFile()));me.set(re,ce),nb(t,lt,Az,void 0,!0)}return h("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(ws()-oe)),{has:Y=>me.has(Y),add:Y=>me.set(Y,!0)};function be(Y,Ne){var Xe;let Ee=Y.flags;if(o.parent&&dl(o.parent))return!0;if(K&&ni(K,yi)&&(Y.valueDeclaration===K||Zo(K.name)&&K.name.elements.some(Me=>Me===Y.valueDeclaration)))return!1;const re=Y.valueDeclaration??((Xe=Y.declarations)==null?void 0:Xe[0]);if(K&&re){if(Zi(K)&&Zi(re)){const Me=K.parent.parameters;if(re.pos>=K.pos&&re.pos=K.pos&&re.posSfe(r,l,W)===o.name);return F!==void 0?{type:"literal",literal:F}:Ln(_,(W,G)=>{const j=A[G],J=tX(W,Va(u),j,E,d.isJsxIdentifierExpected);return J&&J.name===o.name&&(o.source==="ClassMemberSnippet/"&&W.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&W.flags&8196||Afe(j)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:W,location:y,origin:j,contextToken:R,previousToken:N,isJsxInitializer:P,isTypeOnlyLocation:k}:void 0})||{type:"none"}}function grt(e,t,r,i,o,s,l,u,d){const _=e.getTypeChecker(),h=e.getCompilerOptions(),{name:y,source:E,data:A}=o,{previousToken:R,contextToken:N}=eX(i,r);if(gx(r,i,R))return sX.getStringLiteralCompletionDetails(y,r,i,R,e,s,d,u);const P=Q2e(e,t,r,i,o,s,u);switch(P.type){case"request":{const{request:k}=P;switch(k.kind){case 1:return b0.getJSDocTagNameCompletionDetails(y);case 2:return b0.getJSDocTagCompletionDetails(y);case 3:return b0.getJSDocParameterNameCompletionDetails(y);case 4:return vt(k.keywordCompletions,F=>F.name===y)?xfe(y,"keyword",5):void 0;default:return C.assertNever(k)}}case"symbol":{const{symbol:k,location:F,contextToken:W,origin:G,previousToken:j}=P,{codeActions:J,sourceDisplay:Z}=yrt(y,F,W,G,k,e,s,h,r,i,j,l,u,A,E,d),q=bfe(G)?G.symbolName:k.name;return Rfe(k,q,_,r,F,d,J,Z)}case"literal":{const{literal:k}=P;return xfe(Sfe(r,u,k),"string",typeof k=="string"?8:7)}case"cases":{const k=X2e(N.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(k?.importAdder.hasFixes()){const{entry:F,importAdder:W}=k,G=Rr.ChangeTracker.with({host:s,formatContext:l,preferences:u},W.writeFixes);return{name:F.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:G,description:oE([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return nke().some(k=>k.name===y)?xfe(y,"keyword",5):void 0;default:C.assertNever(P)}}function xfe(e,t,r){return Iz(e,"",t,[Tp(e,r)])}function Rfe(e,t,r,i,o,s,l,u){const{displayParts:d,documentation:_,symbolKind:h,tags:y}=r.runWithCancellationToken(s,E=>Tv.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return Iz(t,Tv.getSymbolModifiers(r,e),h,d,_,y,l,u)}function Iz(e,t,r,i,o,s,l,u){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:u,sourceDisplay:u}}function yrt(e,t,r,i,o,s,l,u,d,_,h,y,E,A,R,N){if(A?.moduleSpecifier&&h&&dke(r||h,d).replacementSpan)return{codeActions:void 0,sourceDisplay:[bf(A.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:J,eraseRange:Z}=Y2e(l,s,u,E,e,o,t,_,r,y);if(J?.hasFixes()||Z)return{sourceDisplay:void 0,codeActions:[{changes:Rr.ChangeTracker.with({host:l,formatContext:y,preferences:E},ve=>{J&&J.writeFixes(ve),Z&&ve.deleteRange(d,Z)}),description:J?.hasFixes()?oE([f.Includes_imports_of_types_referenced_by_0,e]):oE([f.Update_modifiers_of_0,e])}]}}if(B2e(i)){const J=pu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,s,l,y,E);return C.assertIsDefined(J,"Expected to have a code action for promoting type-only alias"),{codeActions:[J],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&r){const J=Rr.ChangeTracker.with({host:l,formatContext:y,preferences:E},Z=>Z.insertText(d,r.end,","));if(J)return{sourceDisplay:void 0,codeActions:[{changes:J,description:oE([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(Ez(i)||ZP(i)))return{codeActions:void 0,sourceDisplay:void 0};const P=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:k}=i,F=P.getMergedSymbol(Rd(o.exportSymbol||o,P)),W=r?.kind===30&&au(r.parent),{moduleSpecifier:G,codeAction:j}=pu.getImportCompletionAction(F,k,A?.exportMapKey,d,e,W,l,s,y,h&&Je(h)?h.getStart(d):_,E,N);return C.assert(!A?.moduleSpecifier||G===A.moduleSpecifier),{sourceDisplay:[bf(G)],codeActions:[j]}}function vrt(e,t,r,i,o,s,l){const u=Q2e(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}var Z2e=(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))(Z2e||{});function brt(e,t,r){return Ln(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!vre(o)?Dfe(o,e,r):void 0})}function Trt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return W7(e,i);case 64:switch(o.kind){case 261:return i.getContextualType(o.initializer);case 227:return i.getTypeAtLocation(o.left);case 292:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:const s=ni(o,PD);return s?SJ(s,i):void 0;case 19:return MD(o)&&!a_(o.parent)&&!n0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=d8.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):F7(e.kind)&&Nr(o)&&F7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function Dfe(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Qa(i):e.parent&&(Srt(e.parent)?e:Dfe(e.parent,t,r))}function Srt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function eke(e,t,r,i,o,s,l,u,d,_){const h=e.getTypeChecker(),y=K2e(r,i);let E=ws(),A=zi(r,o);t("getCompletionData: Get current token: "+(ws()-E)),E=ws();const R=_v(r,o,A);t("getCompletionData: Is inside comment: "+(ws()-E));let N=!1,P=!1,k=!1;if(R){if(uce(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const yt=Cm(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(yt,o)))return{kind:2}}}const Le=xrt(A,o);if(Le){if(Le.tagName.pos<=o&&o<=Le.tagName.end)return{kind:1};if(l_(Le))P=!0;else{const yt=gn(Le);if(yt&&(A=zi(r,o),(!A||!w_(A)&&(A.parent.kind!==349||A.parent.name!==A))&&(N=Kt(yt))),!N&&_f(Le)&&(zl(Le.name)||Le.name.pos<=o&&o<=Le.name.end))return{kind:3,tag:Le}}}if(!N&&!P){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}E=ws();const F=!N&&!P&&wu(r),W=eX(o,r),G=W.previousToken;let j=W.contextToken;t("getCompletionData: Get previous token: "+(ws()-E));let J=A,Z,q=!1,ve=!1,oe=!1,K=!1,fe=!1,ue=!1,me,be=sp(r,o),De=0,Y=!1,Ne=0,Xe;if(j){const Le=dke(j,r);if(Le.keywordCompletion){if(Le.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[$nt(Le.keywordCompletion)],isNewIdentifierLocation:Le.isNewIdentifierLocation};De=Znt(Le.keywordCompletion)}if(Le.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(Ne|=2,me=Le,Y=Le.isNewIdentifierLocation),!Le.replacementSpan&&Qo(j))return t("Returning an empty list because completion was requested in an invalid position."),De?q2e(De,F,Pn().isNewIdentifierLocation):void 0;let yt=j.parent;if(j.kind===25||j.kind===29)switch(q=j.kind===25,ve=j.kind===29,yt.kind){case 212:Z=yt,J=Z.expression;const Bt=_D(Z);if(zl(Bt)||(ea(J)||$o(J))&&J.end===j.pos&&J.getChildCount(r)&&Ga(J.getChildren(r)).kind!==22)return;break;case 167:J=yt.left;break;case 268:J=yt.name;break;case 206:J=yt;break;case 237:J=yt.getFirstToken(r),C.assert(J.kind===102||J.kind===105);break;default:return}else if(!me){if(yt&&yt.kind===212&&(j=yt,yt=yt.parent),A.parent===be)switch(A.kind){case 32:(A.parent.kind===285||A.parent.kind===287)&&(be=A);break;case 44:A.parent.kind===286&&(be=A);break}switch(yt.kind){case 288:j.kind===44&&(K=!0,be=j);break;case 227:if(!cke(yt))break;case 286:case 285:case 287:ue=!0,j.kind===30&&(oe=!0,be=j);break;case 295:case 294:(G.kind===20||G.kind===80&&G.parent.kind===292)&&(ue=!0);break;case 292:if(yt.initializer===G&&G.endm0(Le?u.getPackageJsonAutoImportProvider():e,u));if(q||ve)Kn();else if(oe)Me=h.getJsxIntrinsicTagNamesAt(be),C.assertEachIsDefined(Me,"getJsxIntrinsicTagNames() should all be defined"),Ni(),re=1,De=0;else if(K){const Le=j.parent.parent.openingElement.tagName,yt=h.getSymbolAtLocation(Le);yt&&(Me=[yt]),re=1,De=0}else if(!Ni())return De?q2e(De,F,Y):void 0;t("getCompletionData: Semantic work: "+(ws()-Ee));const Ge=G&&Trt(G,o,r,h),at=!ni(G,ds)&&!ue?Ei(Ge&&(Ge.isUnion()?Ge.types:[Ge]),Le=>Le.isLiteral()&&!(Le.flags&1024)?Le.value:void 0):[],Wt=G&&Ge&&brt(G,Ge,h);return{kind:0,symbols:Me,completionKind:re,isInSnippetScope:k,propertyAccessToConvert:Z,isNewIdentifierLocation:Y,location:be,keywordFilters:De,literals:at,symbolToOriginInfoMap:lt,recommendedCompletion:Wt,previousToken:G,contextToken:j,isJsxInitializer:fe,insideJsDocTagTypeExpression:N,symbolToSortTextMap:ce,isTypeOnlyLocation:ye,isJsxIdentifierExpected:ue,isRightOfOpenTag:oe,isRightOfDotOrQuestionDot:q||ve,importStatementCompletion:me,hasUnresolvedAutoImports:Te,flags:Ne,defaultCommitCharacters:Xe};function cn(Le){switch(Le.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!Le.constraint;default:return!1}}function gn(Le){if(cn(Le)){const yt=xm(Le)?Le.constraint:Le.typeExpression;return yt&&yt.kind===310?yt:void 0}if(rx(Le)||w4(Le))return Le.class}function Kn(){re=2;const Le=sy(J),yt=Le&&!J.isTypeOf||Kh(J.parent)||xO(j,r,h),Bt=m7(J);if(ku(J)||Le||qr(J)){const gr=mc(J.parent);gr&&(Y=!0,Xe=[]);let tr=h.getSymbolAtLocation(J);if(tr&&(tr=Rd(tr,h),tr.flags&1920)){const Jn=h.getExportsOfModule(tr);C.assertEachIsDefined(Jn,"getExportsOfModule() should all be defined");const mt=Qt=>h.isValidPropertyAccess(Le?J:J.parent,Qt.name),Mt=Qt=>Nfe(Qt,h),Vt=gr?Qt=>{var In;return!!(Qt.flags&1920)&&!((In=Qt.declarations)!=null&&In.every(yn=>yn.parent===J.parent))}:Bt?(Qt=>Mt(Qt)||mt(Qt)):yt||N?Mt:mt;for(const Qt of Jn)Vt(Qt)&&Me.push(Qt);if(!yt&&!N&&tr.declarations&&tr.declarations.some(Qt=>Qt.kind!==308&&Qt.kind!==268&&Qt.kind!==267)){let Qt=h.getTypeOfSymbolAtLocation(tr,J).getNonOptionalType(),In=!1;if(Qt.isNullableType()){const yn=q&&!ve&&s.includeAutomaticOptionalChainCompletions!==!1;(yn||ve)&&(Qt=Qt.getNonNullableType(),yn&&(In=!0))}gt(Qt,!!(J.flags&65536),In)}return}}if(!yt||DI(J)){h.tryGetThisTypeAt(J,!1);let gr=h.getTypeAtLocation(J).getNonOptionalType();if(yt)gt(gr.getNonNullableType(),!1,!1);else{let tr=!1;if(gr.isNullableType()){const Jn=q&&!ve&&s.includeAutomaticOptionalChainCompletions!==!1;(Jn||ve)&&(gr=gr.getNonNullableType(),Jn&&(tr=!0))}gt(gr,!!(J.flags&65536),tr)}}}function gt(Le,yt,Bt){Le.getStringIndexType()&&(Y=!0,Xe=[]),ve&&vt(Le.getCallSignatures())&&(Y=!0,Xe??(Xe=u_));const gr=J.kind===206?J:J.parent;if(y)for(const tr of Le.getApparentProperties())h.isValidPropertyAccessForCompletions(gr,Le,tr)&&en(tr,!1,Bt);else Me.push(...Un(oX(Le,h),tr=>h.isValidPropertyAccessForCompletions(gr,Le,tr)));if(yt&&s.includeCompletionsWithInsertText){const tr=h.getPromisedTypeOfPromise(Le);if(tr)for(const Jn of tr.getApparentProperties())h.isValidPropertyAccessForCompletions(gr,tr,Jn)&&en(Jn,!0,Bt)}}function en(Le,yt,Bt){var gr;const tr=Ln(Le.declarations,Vt=>ni(wo(Vt),va));if(tr){const Vt=or(tr.expression),Qt=Vt&&h.getSymbolAtLocation(Vt),In=Qt&&Dfe(Qt,j,h),yn=In&&Ta(In);if(yn&&Em(Ce,yn)){const wt=Me.length;Me.push(In),ce[Ta(In)]=Kd.GlobalsOrKeywords;const En=In.parent;if(!En||!hI(En)||h.tryGetMemberInModuleExportsAndProperties(In.name,En)!==In)lt[wt]={kind:Mt(2)};else{const xn=nd(Sm(En.name))?(gr=tk(En))==null?void 0:gr.fileName:void 0,{moduleSpecifier:wn}=(Be||(Be=pu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:xn,isFromPackageJson:!1,moduleSymbol:En,symbol:In,targetFlags:Rd(In,h).flags}],o,JT(be))||{};if(wn){const ln={kind:Mt(6),moduleSymbol:En,isDefaultExport:!1,symbolName:In.name,exportName:In.name,fileName:xn,moduleSpecifier:wn};lt[wt]=ln}}}else if(s.includeCompletionsWithInsertText){if(yn&&Ce.has(yn))return;mt(Le),Jn(Le),Me.push(Le)}}else mt(Le),Jn(Le),Me.push(Le);function Jn(Vt){Prt(Vt)&&(ce[Ta(Vt)]=Kd.LocalDeclarationPriority)}function mt(Vt){s.includeCompletionsWithInsertText&&(yt&&Em(Ce,Ta(Vt))?lt[Me.length]={kind:Mt(8)}:Bt&&(lt[Me.length]={kind:16}))}function Mt(Vt){return Bt?Vt|16:Vt}}function or(Le){return Je(Le)?Le:qr(Le)?or(Le.expression):void 0}function Ni(){return(ot()||Ft()||Zr()||le()||_t()||ne()||so()||Fe()||zt()||(xi(),1))===1}function so(){return dt(j)?(re=5,Y=!0,De=4,1):0}function zt(){const Le=He(j),yt=Le&&h.getContextualType(Le.attributes);if(!yt)return 0;const Bt=Le&&h.getContextualType(Le.attributes,4);return Me=ao(Me,xt(iX(yt,Bt,Le.attributes,h),Le.attributes.properties)),ge(),re=3,Y=!1,1}function Zr(){return me?(Y=!0,hn(),1):0}function xi(){De=Lt(j)?5:1,re=1,{isNewIdentifierLocation:Y,defaultCommitCharacters:Xe}=Pn(),G!==j&&C.assert(!!G,"Expected 'contextToken' to be defined when different from 'previousToken'.");const Le=G!==j?G.getStart():o,yt=qi(j,Le,r)||r;k=Pr(yt);const Bt=(ye?0:111551)|788968|1920|2097152,gr=G&&!JT(G);Me=ao(Me,h.getSymbolsInScope(yt,Bt)),C.assertEachIsDefined(Me,"getSymbolsInScope() should all be defined");for(let tr=0;trmt.getSourceFile()===r)&&(ce[Ta(Jn)]=Kd.GlobalsOrKeywords),gr&&!(Jn.flags&111551)){const mt=Jn.declarations&&mn(Jn.declarations,UR);if(mt){const Mt={kind:64,declaration:mt};lt[tr]=Mt}}}if(s.includeCompletionsWithInsertText&&yt.kind!==308){const tr=h.tryGetThisTypeAt(yt,!1,ui(yt.parent)?yt:void 0);if(tr&&!Mrt(tr,r,h))for(const Jn of oX(tr,h))lt[Me.length]={kind:1},Me.push(Jn),ce[Ta(Jn)]=Kd.SuggestedClassMembers}hn(),ye&&(De=j&&SS(j.parent)?6:7)}function Pi(){var Le;return me?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||oJ(e.getCompilerOptions())?!0:((Le=e.getSymlinkCache)==null?void 0:Le.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||gce(e):!1}function Pr(Le){switch(Le.kind){case 308:case 229:case 295:case 242:return!0;default:return ji(Le)}}function Mi(){return N||P||!!me&&ev(be.parent)||!$e(j)&&(xO(j,r,h)||Kh(be)||At(j))}function $e(Le){return Le&&(Le.kind===114&&(Le.parent.kind===187||RD(Le.parent))||Le.kind===131&&Le.parent.kind===183)}function At(Le){if(Le){const yt=Le.parent.kind;switch(Le.kind){case 59:return yt===173||yt===172||yt===170||yt===261||uI(yt);case 64:return yt===266||yt===169;case 130:return yt===235;case 30:return yt===184||yt===217;case 96:return yt===169;case 152:return yt===239}}return!1}function hn(){var Le,yt;if(!Pi()||(C.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;Ne|=1;const gr=G===j&&me?"":G&&Je(G)?G.text.toLowerCase():"",tr=(Le=u.getModuleSpecifierCache)==null?void 0:Le.call(u),Jn=GO(r,u,e,s,_),mt=(yt=u.getPackageJsonAutoImportProvider)==null?void 0:yt.call(u),Mt=l?void 0:pC(r,s,u);V2e("collectAutoImports",u,Be||(Be=pu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!me,JT(be),Qt=>{Jn.search(r.path,oe,(In,yn)=>{if(!_p(In,Va(u.getCompilationSettings()))||!l&&RI(In)||!ye&&!me&&!(yn&111551)||ye&&!(yn&790504))return!1;const wt=In.charCodeAt(0);return oe&&(wt<65||wt>90)?!1:l?!0:hke(In,gr)},(In,yn,wt,En)=>{if(l&&!vt(In,la=>l.source===Sm(la.moduleSymbol.name))||(In=Un(In,Vt),!In.length))return;const xn=Qt.tryResolve(In,wt)||{};if(xn==="failed")return;let wn=In[0],ln;xn!=="skipped"&&({exportInfo:wn=In[0],moduleSpecifier:ln}=xn);const Ri=wn.exportKind===1,ia=Ri&&bM(C.checkDefined(wn.symbol))||C.checkDefined(wn.symbol);dr(ia,{kind:ln?32:4,moduleSpecifier:ln,symbolName:yn,exportMapKey:En,exportName:wn.exportKind===2?"export=":C.checkDefined(wn.symbol).name,fileName:wn.moduleFileName,isDefaultExport:Ri,moduleSymbol:wn.moduleSymbol,isFromPackageJson:wn.isFromPackageJson})}),Te=Qt.skippedAny(),Ne|=Qt.resolvedAny()?8:0,Ne|=Qt.resolvedBeyondLimit()?16:0});function Vt(Qt){return wJ(Qt.isFromPackageJson?mt:e,r,ni(Qt.moduleSymbol.valueDeclaration,Xi),Qt.moduleSymbol,s,Mt,Ue(Qt.isFromPackageJson),tr)}}function dr(Le,yt){const Bt=Ta(Le);ce[Bt]!==Kd.GlobalsOrKeywords&&(lt[Me.length]=yt,ce[Bt]=me?Kd.LocationPriority:Kd.AutoImportSuggestions,Me.push(Le))}function ri(Le,yt){Ir(be)||Le.forEach(Bt=>{if(!ai(Bt))return;const gr=tX(Bt,Va(i),void 0,0,!1);if(!gr)return;const{name:tr}=gr,Jn=drt(Bt,tr,yt,e,u,i,s,d);if(!Jn)return;const mt={kind:128,...Jn};Ne|=32,lt[Me.length]=mt,Me.push(Bt)})}function ai(Le){return!!(Le.flags&8196)}function qi(Le,yt,Bt){let gr=Le;for(;gr&&!Uq(gr,yt,Bt);)gr=gr.parent;return gr}function Qo(Le){const yt=ws(),Bt=Uo(Le)||It(Le)||Jt(Le)||Ia(Le)||AD(Le);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(ws()-yt)),Bt}function Ia(Le){if(Le.kind===12)return!0;if(Le.kind===32&&Le.parent){if(be===Le.parent&&(be.kind===287||be.kind===286))return!1;if(Le.parent.kind===287)return be.parent.kind!==287;if(Le.parent.kind===288||Le.parent.kind===286)return!!Le.parent.parent&&Le.parent.parent.kind===285}return!1}function Pn(){if(j){const Le=j.parent.kind,yt=rX(j);switch(yt){case 28:switch(Le){case 214:case 215:{const Bt=j.parent.expression;return ca(r,Bt.end).line!==ca(r,o).line?{defaultCommitCharacters:YK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:u_,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:YK,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!1}}case 21:switch(Le){case 214:case 215:{const Bt=j.parent.expression;return ca(r,Bt.end).line!==ca(r,o).line?{defaultCommitCharacters:YK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:u_,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:YK,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!1}}case 23:switch(Le){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return Le===268?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:u_,isNewIdentifierLocation:!1};case 19:switch(Le){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!1}}case 64:switch(Le){case 261:case 227:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:u_,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:u_,isNewIdentifierLocation:Le===229};case 17:return{defaultCommitCharacters:u_,isNewIdentifierLocation:Le===240};case 134:return Le===175||Le===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:u_,isNewIdentifierLocation:!1};case 42:return Le===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:u_,isNewIdentifierLocation:!1}}if(xz(yt))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:u_,isNewIdentifierLocation:!1}}function Uo(Le){return(xj(Le)||sG(Le))&&(AO(Le,o)||o===Le.end&&(!!Le.isUnterminated||xj(Le)))}function ot(){const Le=Crt(j);if(!Le)return 0;const Bt=(QI(Le.parent)?Le.parent:void 0)||Le,gr=lke(Bt,h);if(!gr)return 0;const tr=h.getTypeFromTypeNode(Bt),Jn=oX(gr,h),mt=oX(tr,h),Mt=new Set;return mt.forEach(Vt=>Mt.add(Vt.escapedName)),Me=ao(Me,Un(Jn,Vt=>!Mt.has(Vt.escapedName))),re=0,Y=!0,1}function Ft(){if(j?.kind===26)return 0;const Le=Me.length,yt=Ert(j,o,r);if(!yt)return 0;re=0;let Bt,gr;if(yt.kind===211){const tr=Lrt(yt,h);if(tr===void 0)return yt.flags&67108864?2:0;const Jn=h.getContextualType(yt,4),mt=(Jn||tr).getStringIndexType(),Mt=(Jn||tr).getNumberIndexType();if(Y=!!mt||!!Mt,Bt=iX(tr,Jn,yt,h),gr=yt.properties,Bt.length===0&&!Mt)return 0}else{C.assert(yt.kind===207),Y=!1;const tr=Yh(yt.parent);if(!$N(tr))return C.fail("Root declaration is not variable-like.");let Jn=tv(tr)||!!Cc(tr)||tr.parent.parent.kind===251;if(!Jn&&tr.kind===170&&(St(tr.parent)?Jn=!!h.getContextualType(tr.parent):(tr.parent.kind===175||tr.parent.kind===179)&&(Jn=St(tr.parent.parent)&&!!h.getContextualType(tr.parent.parent))),Jn){const mt=h.getTypeAtLocation(yt);if(!mt)return 2;Bt=h.getPropertiesOfType(mt).filter(Mt=>h.isPropertyAccessible(yt,!1,!1,mt,Mt)),gr=yt.elements}}if(Bt&&Bt.length>0){const tr=Oe(Bt,C.checkDefined(gr));Me=ao(Me,tr),ge(),yt.kind===211&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Ie(Le),ri(tr,yt))}return 1}function le(){if(!j)return 0;const Le=j.kind===19||j.kind===28?ni(j.parent,z6):C7(j)?ni(j.parent.parent,z6):void 0;if(!Le)return 0;C7(j)||(De=8);const{moduleSpecifier:yt}=Le.kind===276?Le.parent.parent:Le.parent;if(!yt)return Y=!0,Le.kind===276?2:0;const Bt=h.getSymbolAtLocation(yt);if(!Bt)return Y=!0,2;re=3,Y=!1;const gr=h.getExportsAndPropertiesOfModule(Bt),tr=new Set(Le.elements.filter(mt=>!Kt(mt)).map(mt=>AS(mt.propertyName||mt.name))),Jn=gr.filter(mt=>mt.escapedName!=="default"&&!tr.has(mt.escapedName));return Me=ao(Me,Jn),Jn.length||(De=0),1}function _t(){if(j===void 0)return 0;const Le=j.kind===19||j.kind===28?ni(j.parent,D1):j.kind===59?ni(j.parent.parent,D1):void 0;if(Le===void 0)return 0;const yt=new Set(Le.elements.map(d4));return Me=Un(h.getTypeAtLocation(Le).getApparentProperties(),Bt=>!yt.has(Bt.escapedName)),1}function ne(){var Le;const yt=j&&(j.kind===19||j.kind===28)?ni(j.parent,$f):void 0;if(!yt)return 0;const Bt=Dn(yt,Np(Xi,mc));return re=5,Y=!1,(Le=Bt.locals)==null||Le.forEach((gr,tr)=>{var Jn,mt;Me.push(gr),(mt=(Jn=Bt.symbol)==null?void 0:Jn.exports)!=null&&mt.has(tr)&&(ce[Ta(gr)]=Kd.OptionalMember)}),1}function Fe(){const Le=Drt(r,j,be,o);if(!Le)return 0;if(re=3,Y=!0,De=j.kind===42?0:ui(Le)?2:3,!ui(Le))return 1;const yt=j.kind===27?j.parent.parent:j.parent;let Bt=Sc(yt)?Ud(yt):0;if(j.kind===80&&!Kt(j))switch(j.getText()){case"private":Bt=Bt|2;break;case"static":Bt=Bt|256;break;case"override":Bt=Bt|16;break}if(nc(yt)&&(Bt|=256),!(Bt&2)){const gr=ui(Le)&&Bt&16?oI(uh(Le)):cM(Le),tr=fi(gr,Jn=>{const mt=h.getTypeAtLocation(Jn);return Bt&256?mt?.symbol&&h.getPropertiesOfType(h.getTypeOfSymbolAtLocation(mt.symbol,Le)):mt&&h.getPropertiesOfType(mt)});Me=ao(Me,te(tr,Le.members,Bt)),qe(Me,(Jn,mt)=>{const Mt=Jn?.valueDeclaration;if(Mt&&Sc(Mt)&&Mt.name&&va(Mt.name)){const Vt={kind:512,symbolName:h.symbolToString(Jn)};lt[mt]=Vt}})}return 1}function it(Le){return!!Le.parent&&Zi(Le.parent)&&kl(Le.parent.parent)&&(jN(Le.kind)||w_(Le))}function dt(Le){if(Le){const yt=Le.parent;switch(Le.kind){case 21:case 28:return kl(Le.parent)?Le.parent:void 0;default:if(it(Le))return yt.parent}}}function Lt(Le){if(Le){let yt;const Bt=Dn(Le.parent,gr=>ui(gr)?"quit":Ls(gr)&&yt===gr.body?!0:(yt=gr,!1));return Bt&&Bt}}function He(Le){if(Le){const yt=Le.parent;switch(Le.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(yt&&(yt.kind===286||yt.kind===287)){if(Le.kind===32){const Bt=jc(Le.pos,r,void 0);if(!yt.typeArguments||Bt&&Bt.kind===44)break}return yt}else if(yt.kind===292)return yt.parent.parent;break;case 11:if(yt&&(yt.kind===292||yt.kind===294))return yt.parent.parent;break;case 20:if(yt&&yt.kind===295&&yt.parent&&yt.parent.kind===292)return yt.parent.parent.parent;if(yt&&yt.kind===294)return yt.parent.parent;break}}}function Rt(Le,yt){return r.getLineEndOfPosition(Le.getEnd())=Le.pos;case 25:return Bt===208;case 59:return Bt===209;case 23:return Bt===208;case 21:return Bt===300||nt(Bt);case 19:return Bt===267;case 30:return Bt===264||Bt===232||Bt===265||Bt===266||uI(Bt);case 126:return Bt===173&&!ui(yt.parent);case 26:return Bt===170||!!yt.parent&&yt.parent.kind===208;case 125:case 123:case 124:return Bt===170&&!kl(yt.parent);case 130:return Bt===277||Bt===282||Bt===275;case 139:case 153:return!aX(Le);case 80:{if((Bt===277||Bt===282)&&Le===yt.name&&Le.text==="type"||Dn(Le.parent,yi)&&Rt(Le,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Bt!==277;case 42:return $o(Le.parent)&&!Ll(Le.parent)}if(xz(rX(Le))&&aX(Le)||it(Le)&&(!Je(Le)||jN(rX(Le))||Kt(Le)))return!1;switch(rX(Le)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Mo(Le.parent)}if(Dn(Le.parent,ui)&&Le===G&&Ot(Le,o))return!1;const tr=UT(Le.parent,173);if(tr&&Le!==G&&ui(G.parent.parent)&&o<=G.end){if(Ot(Le,G.end))return!1;if(Le.kind!==64&&($w(tr)||kF(tr)))return!0}return w_(Le)&&!Jd(Le.parent)&&!s_(Le.parent)&&!((ui(Le.parent)||yd(Le.parent)||cl(Le.parent))&&(Le!==G||o>G.end))}function Ot(Le,yt){return Le.kind!==64&&(Le.kind===27||!Hf(Le.end,yt,r))}function nt(Le){return uI(Le)&&Le!==177}function Jt(Le){if(Le.kind===9){const yt=Le.getFullText();return yt.charAt(yt.length-1)==="."}return!1}function Tr(Le){return Le.parent.kind===262&&!xO(Le,r,h)}function Oe(Le,yt){if(yt.length===0)return Le;const Bt=new Set,gr=new Set;for(const Jn of yt){if(Jn.kind!==304&&Jn.kind!==305&&Jn.kind!==209&&Jn.kind!==175&&Jn.kind!==178&&Jn.kind!==179&&Jn.kind!==306||Kt(Jn))continue;let mt;if(Mg(Jn))Nt(Jn,Bt);else if(qa(Jn)&&Jn.propertyName)Jn.propertyName.kind===80&&(mt=Jn.propertyName.escapedText);else{const Mt=wo(Jn);mt=Mt&&Xh(Mt)?pM(Mt):void 0}mt!==void 0&&gr.add(mt)}const tr=Le.filter(Jn=>!gr.has(Jn.escapedName));return B(Bt,tr),tr}function Nt(Le,yt){const Bt=Le.expression,gr=h.getSymbolAtLocation(Bt),tr=gr&&h.getTypeOfSymbolAtLocation(gr,Bt),Jn=tr&&tr.properties;Jn&&Jn.forEach(mt=>{yt.add(mt.name)})}function ge(){Me.forEach(Le=>{if(Le.flags&16777216){const yt=Ta(Le);ce[yt]=ce[yt]??Kd.OptionalMember}})}function B(Le,yt){if(Le.size!==0)for(const Bt of yt)Le.has(Bt.name)&&(ce[Ta(Bt)]=Kd.MemberDeclaredBySpreadAssignment)}function Ie(Le){for(let yt=Le;yt!gr.has(tr.escapedName)&&!!tr.declarations&&!(qf(tr)&2)&&!(tr.valueDeclaration&&ou(tr.valueDeclaration)))}function xt(Le,yt){const Bt=new Set,gr=new Set;for(const Jn of yt)Kt(Jn)||(Jn.kind===292?Bt.add(FM(Jn.name)):nx(Jn)&&Nt(Jn,gr));const tr=Le.filter(Jn=>!Bt.has(Jn.escapedName));return B(gr,tr),tr}function Kt(Le){return Le.getStart(r)<=o&&o<=Le.getEnd()}}function Ert(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(za(o)||hf(o))return o;break;case 42:return Ll(o)?ni(o.parent,za):void 0;case 134:return ni(o.parent,za);case 80:if(e.text==="async"&&Jd(e.parent))return e.parent.parent;{if(za(e.parent.parent)&&(Mg(e.parent)||Jd(e.parent)&&ca(r,e.getEnd()).line!==ca(r,t).line))return e.parent.parent;const l=Dn(o,Pc);if(l?.getLastToken(r)===e&&za(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Ll(o.parent)||Xf(o.parent)||bp(o.parent))&&za(o.parent.parent))return o.parent.parent;if(Mg(o)&&za(o.parent))return o.parent;const s=Dn(o,Pc);if(e.kind!==59&&s?.getLastToken(r)===e&&za(s.parent))return s.parent}}}function eX(e,t){const r=jc(e,t);return r&&e<=r.end&&(hg(r)||rp(r.kind))?{contextToken:jc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function tke(e,t,r,i){const o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(C.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let u=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return u?(u=t.exportName==="default"&&bM(u)||u,{symbol:u,origin:prt(t,e,l)}):void 0}function tX(e,t,r,i,o){if(Jnt(r))return;const s=jnt(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&bk(s.charCodeAt(0))||fM(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(_p(s,t,o?1:0)||e.valueDeclaration&&ou(e.valueDeclaration))return l;if(e.flags&2097152)return{name:s,needsConvertPropertyAccess:!0};switch(i){case 3:return bfe(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:C.assertNever(i)}}var nX=[],nke=Lu(()=>{const e=[];for(let t=83;t<=166;t++)e.push({name:_a(t),kind:"keyword",kindModifiers:"",sortText:Kd.GlobalsOrKeywords});return e});function rke(e,t){if(!t)return ike(e);const r=e+8+1;return nX[r]||(nX[r]=ike(e).filter(i=>!Art(XE(i.name))))}function ike(e){return nX[e]||(nX[e]=nke().filter(t=>{const r=XE(t.name);switch(e){case 0:return!1;case 1:return ake(r)||r===138||r===144||r===156||r===145||r===128||wP(r)&&r!==157;case 5:return ake(r);case 2:return xz(r);case 3:return oke(r);case 4:return jN(r);case 6:return wP(r)||r===87;case 7:return wP(r);case 8:return r===156;default:return C.assertNever(e)}}))}function Art(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function oke(e){return e===148}function xz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return lG(e)}}function ake(e){return e===134||e===135||e===160||e===130||e===152||e===156||!g6(e)&&!xz(e)}function rX(e){return Je(e)?$E(e)??0:e.kind}function Irt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(Tl(o)||hc(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:_a(132),kind:"keyword",kindModifiers:"",sortText:Kd.GlobalsOrKeywords})}return r}function xrt(e,t){return Dn(e,r=>KR(r)&&oC(r,t)?!0:gh(r)?"quit":!1)}function iX(e,t,r,i){const o=t&&t!==e,s=i.getUnionType(Un(e.flags&1048576?e.types:[e],_=>!i.getPromisedTypeOfPromise(_))),l=o&&!(t.flags&3)?i.getUnionType([s,t]):s,u=Rrt(l,r,i);return l.isClass()&&ske(u)?[]:o?Un(u,d):u;function d(_){return Qe(_.declarations)?vt(_.declarations,h=>h.parent!==r):!0}}function Rrt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Un(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&ske(i.getApparentProperties())))):e.getApparentProperties()}function ske(e){return vt(e,t=>!!(qf(t)&6))}function oX(e,t){return e.isUnion()?C.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):C.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Drt(e,t,r,i){switch(r.kind){case 353:return ni(r.parent,LI);case 1:const o=ni(tl(ma(r.parent,Xi).statements),LI);if(o&&!Is(o,20,e))return o;break;case 81:if(ni(r.parent,Mo))return Dn(r,ui);break;case 80:{if($E(r)||Mo(r.parent)&&r.parent.initializer===r)return;if(aX(r))return Dn(r,LI)}}if(t){if(r.kind===137||Je(t)&&Mo(t.parent)&&ui(r))return Dn(t,ui);switch(t.kind){case 64:return;case 27:case 20:return aX(r)&&r.parent.name===r?r.parent.parent:ni(r,LI);case 19:case 28:return ni(t.parent,LI);default:if(LI(r)){if(ca(e,t.getEnd()).line!==ca(e,i).line)return r;const o=ui(t.parent.parent)?xz:oke;return o(t.kind)||t.kind===42||Je(t)&&o($E(t)??0)?t.parent.parent:void 0}return}}}function Crt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(Fu(t))return t;break;case 27:case 28:case 80:if(t.kind===172&&Fu(t.parent))return t.parent;break}}function lke(e,t){if(!e)return;if(Ci(e)&&wF(e.parent))return t.getTypeArgumentConstraint(e);const r=lke(e.parent,t);if(r)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 194:case 188:case 193:return r}}function aX(e){return e.parent&&RF(e.parent)&&LI(e.parent.parent)}function Nrt(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&Pce(r)&&i===r.getStart(e)+1;case"#":return!!r&&Qi(r)&&!!_d(r);case"<":return!!r&&r.kind===30&&(!Nr(r.parent)||cke(r.parent));case"/":return!!r&&(ds(r)?!!xk(r):r.kind===44&&qS(r.parent));case" ":return!!r&&qM(r)&&r.parent.kind===308;default:return C.assertNever(t)}}function cke({left:e}){return zl(e)}function Mrt(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 Prt(e){return!!(e.valueDeclaration&&Ud(e.valueDeclaration)&256&&ui(e.valueDeclaration.parent))}function Lrt(e,t){const r=t.getContextualType(e);if(r)return r;const i=Um(e.parent);if(Nr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(St(i))return t.getContextualType(i)}function dke(e,t){var r,i,o;let s,l=!1;const u=d();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(u||s===156),isTopLevelTypeOnly:!!((i=(r=ni(u,Tl))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ni(u,Gc))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&pke(u,e),replacementSpan:krt(u)};function d(){const _=e.parent;if(Gc(_)){const h=_.getLastToken(t);if(Je(e)&&h!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,Cfe(_.moduleReference)?_:void 0}if(pke(_,e)&&fke(_.parent))return _;if(o_(_)||Ng(_)){if(!_.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),fke(_))if(e.kind===20||e.kind===80)l=!0,s=161;else return _.parent.parent;return}if(hc(_)&&e.kind===42||$f(_)&&e.kind===20){l=!0,s=161;return}if(qM(e)&&Xi(_))return s=156,e;if(qM(e)&&Tl(_))return s=156,Cfe(_.moduleSpecifier)?_:void 0}}function krt(e){var t;if(!e)return;const r=Dn(e,Np(Tl,Gc,l_))??e,i=r.getSourceFile();if(_1(r,i))return Vu(r,i);C.assert(r.kind!==102&&r.kind!==277);const o=r.kind===273||r.kind===352?uke((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(_1(s,i))return yv(s)}function uke(e){var t;return mn((t=ni(e,o_))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&RI(r.name.text)&&((i=jc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function pke(e,t){return xu(e)&&(e.isTypeOnly||t===e.name&&C7(t))}function fke(e){if(!Cfe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(o_(e)){const t=uke(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Cfe(e){var t;return zl(e)?!0:!((t=ni(hy(e)?e.expression:e,ds))!=null&&t.text)}function wrt(e,t){if(!e)return;let r=Dn(e,i=>xS(i)||mke(i)||Zo(i)?"quit":(Zi(i)||cl(i))&&!Ob(i.parent));return r||(r=Dn(t,i=>xS(i)||mke(i)||Zo(i)?"quit":yi(i))),r}function Ort(e){if(!e)return!1;let t=e,r=e.parent;for(;r;){if(cl(r))return r.default===t||t.kind===64;t=r,r=r.parent}return!1}function mke(e){return e.parent&&$s(e.parent)&&(e.parent.body===e||e.kind===39)}function Nfe(e,t,r=new Set){return i(e)||i(Rd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Em(r,o)&&t.getExportsOfModule(o).some(s=>Nfe(s,t,r))}}function Wrt(e,t){const r=Rd(e,t).declarations;return!!Qe(r)&&Hn(r,H7)}function hke(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;lVrt,getStringLiteralCompletions:()=>Brt});var _ke={directory:0,script:1,"external module name":2};function Mfe(){const e=new Map;function t(r){const i=e.get(r.name);(!i||_ke[i.kind]<_ke[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function Brt(e,t,r,i,o,s,l,u,d){if(hce(e,t)){const _=nit(e,t,s,o,m0(s,o));return _&&gke(_)}if(gx(e,t,r)){if(!r||!ds(r))return;const _=vke(e,r,t,s,o,u);return Grt(_,r,e,o,s,l,i,u,t,d)}}function Grt(e,t,r,i,o,s,l,u,d,_){if(e===void 0)return;const h=tJ(t,d);switch(e.kind){case 0:return gke(e.paths);case 1:{const y=KB();return Ife(e.symbols,y,t,t,r,d,r,i,o,99,s,4,u,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,_),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:h,entries:y,defaultCommitCharacters:q1(e.hasIndexSignature)}}case 2:{const y=t.kind===15?96:po(Rl(t),"'")?39:34,E=e.types.map(A=>({name:O_(A.value,y),kindModifiers:"",kind:"string",sortText:Kd.LocationPriority,replacementSpan:eJ(t,d),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:h,entries:E,defaultCommitCharacters:q1(e.isNewIdentifier)}}default:return C.assertNever(e)}}function Vrt(e,t,r,i,o,s,l,u){if(!i||!ds(i))return;const d=vke(t,i,r,o,s,u);return d&&jrt(e,i,d,t,o.getTypeChecker(),l)}function jrt(e,t,r,i,o,s){switch(r.kind){case 0:{const l=mn(r.paths,u=>u.name===e);return l&&Iz(e,yke(l.extension),l.kind,[bf(e)])}case 1:{const l=mn(r.symbols,u=>u.name===e);return l&&Rfe(l,l.name,o,i,t,s)}case 2:return mn(r.types,l=>l.value===e)?Iz(e,"","string",[bf(e)]):void 0;default:return C.assertNever(r)}}function gke(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:yke(u),sortText:Kd.LocationPriority,replacementSpan:l})),defaultCommitCharacters:q1(!0)}}function yke(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return C.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return C.assertNever(e)}}function vke(e,t,r,i,o,s){const l=i.getTypeChecker(),u=Pfe(t.parent);switch(u.kind){case 202:{const G=Pfe(u.parent);return G.kind===206?{kind:0,paths:Ske(e,t,i,o,s)}:d(G)}case 304:return za(u.parent)&&u.name===t?qrt(l,u.parent):_()||_(0);case 213:{const{expression:G,argumentExpression:j}=u;return t===us(j)?bke(l.getTypeAtLocation(G)):void 0}case 214:case 215:case 292:if(!lit(t)&&!tp(u)){const G=d8.getArgumentInfoForCompletions(u.kind===292?u.parent:t,r,e,l);return G&&Hrt(G.invocation,t,G,l)||_(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:Ske(e,t,i,o,s)};case 297:const h=K7(l,u.parent.clauses),y=_();return y?{kind:2,types:y.types.filter(G=>!h.hasValue(G.value)),isNewIdentifier:!1}:void 0;case 277:case 282:const A=u;if(A.propertyName&&t!==A.propertyName)return;const R=A.parent,{moduleSpecifier:N}=R.kind===276?R.parent.parent:R.parent;if(!N)return;const P=l.getSymbolAtLocation(N);if(!P)return;const k=l.getExportsAndPropertiesOfModule(P),F=new Set(R.elements.map(G=>AS(G.propertyName||G.name)));return{kind:1,symbols:k.filter(G=>G.escapedName!=="default"&&!F.has(G.escapedName)),hasIndexSignature:!1};case 227:if(u.operatorToken.kind===103){const G=l.getTypeAtLocation(u.right);return{kind:1,symbols:(G.isUnion()?l.getAllPossiblePropertiesOfTypes(G.types):G.getApparentProperties()).filter(J=>!J.valueDeclaration||!ou(J.valueDeclaration)),hasIndexSignature:!1}}return _(0);default:return _()||_(0)}function d(h){switch(h.kind){case 234:case 184:{const A=Dn(u,R=>R.parent===h);return A?{kind:2,types:lX(l.getTypeArgumentConstraint(A)),isNewIdentifier:!1}:void 0}case 200:const{indexType:y,objectType:E}=h;return oC(y,r)?bke(l.getTypeFromTypeNode(E)):void 0;case 193:{const A=d(Pfe(h.parent));if(!A)return;const R=Urt(h,u);return A.kind===1?{kind:1,symbols:A.symbols.filter(N=>!jn(R,N.name)),hasIndexSignature:A.hasIndexSignature}:{kind:2,types:A.types.filter(N=>!jn(R,N.value)),isNewIdentifier:!1}}default:return}}function _(h=4){const y=lX(W7(t,l,h));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Pfe(e){switch(e.kind){case 197:return Mk(e);case 218:return Um(e);default:return e}}function Urt(e,t){return Ei(e.types,r=>r!==t&&fv(r)&&Oa(r.literal)?r.literal.text:void 0)}function Hrt(e,t,r,i){let o=!1;const s=new Set,l=au(e)?C.checkDefined(Dn(t.parent,s_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),d=fi(u,_=>{if(!du(_)&&r.argumentCount>_.parameters.length)return;let h=_.getTypeParameterAtPosition(r.argumentIndex);if(au(e)){const y=i.getTypeOfPropertyOfType(h,dw(l.name));y&&(h=y)}return o=o||!!(h.flags&4),lX(h,s)});return Qe(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function bke(e){return e&&{kind:1,symbols:Un(e.getApparentProperties(),t=>!(t.valueDeclaration&&ou(t.valueDeclaration))),hasIndexSignature:TJ(e)}}function qrt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:iX(r,i,t,e),hasIndexSignature:TJ(r)}}function lX(e,t=new Set){return e?(e=iJ(e),e.isUnion()?fi(e.types,r=>lX(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Em(t,e.value)?[e]:ie):ie}function eL(e,t,r){return{name:e,kind:t,extension:r}}function Lfe(e){return eL(e,"directory",void 0)}function Tke(e,t,r){const i=iit(e,t),o=e.length===0?void 0:xd(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(Xs)||s.includes(sF)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function Ske(e,t,r,i,o){return Tke(t.text,t.getStart(e)+1,Jrt(e,t,r,i,o))}function Jrt(e,t,r,i,o){const s=jd(t.text),l=ds(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,d=ci(u),_=r.getCompilerOptions(),h=r.getTypeChecker(),y=m0(r,i),E=kfe(_,1,e,h,o,l);return oit(s)||!_.baseUrl&&!_.paths&&(Pp(s)||Fee(s))?Krt(s,d,r,i,y,u,E):Qrt(s,d,l,r,i,y,E)}function kfe(e,t,r,i,o,s){return{extensionsToSearch:Yo(Xrt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function Krt(e,t,r,i,o,s,l){const u=r.getCompilerOptions();return u.rootDirs?$rt(u.rootDirs,e,t,l,r,i,o,s):Do(i8(e,t,l,r,i,o,!0,s).values())}function Xrt(e,t){const r=t?Ei(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...DM(e),r],o=su(e);return N7(o)?rw(e,i):i}function Yrt(e,t,r,i){e=e.map(s=>qc(ya(Pp(s)?s:Qr(t,s))));const o=Ln(e,s=>gm(s,r,t,i)?r.substr(s.length):void 0);return fS([...e.map(s=>Qr(s,o)),r].map(s=>Qy(s)),_S,Bd)}function $rt(e,t,r,i,o,s,l,u){const _=o.getCompilerOptions().project||s.getCurrentDirectory(),h=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),y=Yrt(e,_,r,h);return fS(fi(y,E=>Do(i8(t,E,i,o,s,l,!0,u).values())),(E,A)=>E.name===A.name&&E.kind===A.kind&&E.extension===A.extension)}function i8(e,t,r,i,o,s,l,u,d=Mfe()){var _;e===void 0&&(e=""),e=jd(e),db(e)||(e=ci(e)),e===""&&(e="."+Xs),e=qc(e);const h=ub(t,e),y=db(h)?h:ci(h);if(!l){const N=Oce(y,o);if(N){const k=mD(N,o).typesVersions;if(typeof k=="object"){const F=(_=l3(k))==null?void 0:_.paths;if(F){const W=ci(N),G=h.slice(qc(W).length);if(Ake(d,G,W,r,i,o,s,F))return d}}}}const E=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());if(!G7(o,y))return d;const A=AJ(o,y,r.extensionsToSearch,void 0,["./*"]);if(A)for(let N of A){if(N=ya(N),u&&ry(N,u,t,E)===0)continue;const{name:P,extension:k}=Eke(Dc(N),i,r,!1);d.add(eL(P,"script",k))}const R=B7(o,y);if(R)for(const N of R){const P=Dc(ya(N));P!=="@types"&&d.add(Lfe(P))}return d}function Eke(e,t,r,i){const o=vy.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Rg(o)};if(r.referenceKind===0)return{name:e,extension:Rg(e)};let s=vy.getModuleSpecifierPreferences({importModuleSpecifierEnding:r.endingPreference},t,t.getCompilerOptions(),r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(u=>u!==0&&u!==1)),s[0]===3){if(tc(e,nw))return{name:e,extension:Rg(e)};const u=vy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return u?{name:lv(e,u),extension:u}:{name:e,extension:Rg(e)}}if(!i&&(s[0]===0||s[0]===1)&&tc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Au(e),extension:Rg(e)};const l=vy.tryGetJSExtensionForFile(e,t.getCompilerOptions());return l?{name:lv(e,l),extension:l}:{name:e,extension:Rg(e)}}function Ake(e,t,r,i,o,s,l,u){const d=h=>u[h],_=(h,y)=>{const E=FI(h),A=FI(y),R=typeof E=="object"?E.prefix.length:h.length,N=typeof A=="object"?A.prefix.length:y.length;return Hs(N,R)};return Ike(e,!1,!1,t,r,i,o,s,l,Bh(u),d,_)}function Ike(e,t,r,i,o,s,l,u,d,_,h,y){let E=[],A;for(const R of _){if(R===".")continue;const N=R.replace(/^\.\//,"")+((t||r)&&nl(R,"/")?"*":""),P=h(R);if(P){const k=FI(N);if(!k)continue;const F=typeof k=="object"&&YW(k,i);F&&(A===void 0||y(N,A)===-1)&&(A=N,E=E.filter(G=>!G.matchedPattern)),(typeof k=="string"||A===void 0||y(N,A)!==1)&&E.push({matchedPattern:F,results:Zrt(N,P,i,o,s,t,r,l,u,d).map(({name:G,kind:j,extension:J})=>eL(G,j,J))})}}return E.forEach(R=>R.results.forEach(N=>e.add(N))),A!==void 0}function Qrt(e,t,r,i,o,s,l){const u=i.getTypeChecker(),d=i.getCompilerOptions(),{baseUrl:_,paths:h}=d,y=Mfe(),E=su(d);if(_){const N=ya(Qr(o.getCurrentDirectory(),_));i8(e,N,l,i,o,s,!1,void 0,y)}if(h){const N=I6(d,o);Ake(y,e,N,l,i,o,s,h)}const A=Rke(e);for(const N of tit(e,A,u))y.add(eL(N,"external module name",void 0));if(Nke(i,o,s,t,A,l,y),N7(E)){let N=!1;if(A===void 0)for(const P of rit(o,t)){const k=eL(P,"external module name",void 0);y.has(k.name)||(N=!0,y.add(k))}if(!N){const P=$k(d),k=Qk(d);let F=!1;const W=j=>{if(k&&!F){const J=Qr(j,"package.json");if(F=jP(o,J)){const Z=mD(J,o);R(Z.imports,e,j,!1,!0)}}};let G=j=>{const J=Qr(j,"node_modules");G7(o,J)&&i8(e,J,l,i,o,s,!1,void 0,y),W(j)};if(A&&P){const j=G;G=J=>{const Z=Vd(e);Z.shift();let q=Z.shift();if(!q)return j(J);if(po(q,"@")){const K=Z.shift();if(!K)return j(J);q=Qr(q,K)}if(k&&po(q,"#"))return W(J);const ve=Qr(J,"node_modules",q),oe=Qr(ve,"package.json");if(jP(o,oe)){const K=mD(oe,o),fe=Z.join("/")+(Z.length&&db(e)?"/":"");R(K.exports,fe,ve,!0,!1);return}return j(J)}}z_(o,t,G)}}return Do(y.values());function R(N,P,k,F,W){if(typeof N!="object"||N===null)return;const G=Bh(N),j=Gb(d,r);Ike(y,F,W,P,k,l,i,o,s,G,J=>{const Z=xke(N[J],j);if(Z!==void 0)return oI(nl(J,"/")&&nl(Z,"/")?Z+"*":Z)},FU)}}function xke(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!No(e)){for(const r in e)if(r==="default"||t.includes(r)||Jw(t,r)){const i=e[r];return xke(i,t)}}}function Rke(e){return wfe(e)?db(e)?e:ci(e):void 0}function Zrt(e,t,r,i,o,s,l,u,d,_){const h=FI(e);if(!h)return ie;if(typeof h=="string")return E(e,"script");const y=d9(r,h.prefix);if(y===void 0)return nl(e,"/*")?E(h.prefix,"directory"):fi(t,R=>{var N;return(N=Dke("",i,R,o,s,l,u,d,_))==null?void 0:N.map(({name:P,...k})=>({name:h.prefix+P+h.suffix,...k}))});return fi(t,A=>Dke(y,i,A,o,s,l,u,d,_));function E(A,R){return po(A,r)?[{name:Qy(A),kind:R,extension:void 0}]:ie}}function Dke(e,t,r,i,o,s,l,u,d){if(!u.readDirectory)return;const _=FI(r);if(_===void 0||Bo(_))return;const h=ub(_.prefix),y=db(_.prefix)?h:ci(h),E=db(_.prefix)?"":Dc(h),A=wfe(e),R=A?db(e)?e:ci(e):void 0,N=()=>d.getCommonSourceDirectory(),P=!m1(d),k=l.getCompilerOptions().outDir,F=l.getCompilerOptions().declarationDir,W=A?Qr(y,E+R):y,G=ya(Qr(t,W)),j=s&&k&&gV(G,P,k,N),J=s&&F&&gV(G,P,F,N),Z=ya(_.suffix),q=Z&&A6("_"+Z),ve=Z?_V("_"+Z):void 0,oe=[q&&lv(Z,q),...ve?ve.map(Y=>lv(Z,Y)):[],Z].filter(Bo),K=Z?oe.map(Y=>"**/*"+Y):["./*"],fe=(o||s)&&nl(r,"/*");let ue=me(G);return j&&(ue=ao(ue,me(j))),J&&(ue=ao(ue,me(J))),Z||(ue=ao(ue,be(G)),j&&(ue=ao(ue,be(j))),J&&(ue=ao(ue,be(J)))),ue;function me(Y){const Ne=A?Y:qc(Y)+E;return Ei(AJ(u,Y,i.extensionsToSearch,void 0,K),Xe=>{const Ee=De(Xe,Ne);if(Ee){if(wfe(Ee))return Lfe(Vd(Cke(Ee))[1]);const{name:re,extension:Te}=Eke(Ee,l,i,fe);return eL(re,"script",Te)}})}function be(Y){return Ei(B7(u,Y),Ne=>Ne==="node_modules"?void 0:Lfe(Ne))}function De(Y,Ne){return Ln(oe,Xe=>{const Ee=eit(ya(Y),Ne,Xe);return Ee===void 0?void 0:Cke(Ee)})}}function eit(e,t,r){return po(e,t)&&nl(e,r)?e.slice(t.length,e.length-r.length):void 0}function Cke(e){return e[0]===Xs?e.slice(1):e}function tit(e,t,r){const o=r.getAmbientModules().map(s=>Sm(s.name)).filter(s=>po(s,e)&&!s.includes("*"));if(t!==void 0){const s=qc(t);return o.map(l=>TN(l,s))}return o}function nit(e,t,r,i,o){const s=r.getCompilerOptions(),l=zi(e,t),u=fg(e.text,l.pos),d=u&&mn(u,P=>t>=P.pos&&t<=P.end);if(!d)return;const _=e.text.slice(d.pos,t),h=ait.exec(_);if(!h)return;const[,y,E,A]=h,R=ci(e.path),N=E==="path"?i8(A,R,kfe(s,0,e),r,i,o,!0,e.path):E==="types"?Nke(r,i,o,R,Rke(A),kfe(s,1,e)):C.fail();return Tke(A,d.pos+y.length,Do(N.values()))}function Nke(e,t,r,i,o,s,l=Mfe()){const u=e.getCompilerOptions(),d=new Map,_=V7(()=>lP(u,t))||ie;for(const y of _)h(y);for(const y of IJ(i,t)){const E=Qr(ci(y),"node_modules/@types");h(E)}return l;function h(y){if(G7(t,y))for(const E of B7(t,y)){const A=Kw(E);if(!(u.types&&!jn(u.types,A)))if(o===void 0)d.has(A)||(l.add(eL(A,"external module name",void 0)),d.set(A,!0));else{const R=Qr(y,E),N=qV(o,A,dy(t));N!==void 0&&i8(N,R,s,e,t,r,!1,void 0,l)}}}}function rit(e,t){if(!e.readFile||!e.fileExists)return ie;const r=[];for(const i of IJ(t,e)){const o=mD(i,e);for(const s of sit){const l=o[s];if(l)for(const u in l)Cs(l,u)&&!po(u,"@types/")&&r.push(u)}}return r}function iit(e,t){const r=Math.max(e.lastIndexOf(Xs),e.lastIndexOf(sF)),i=r!==-1?r+1:0,o=e.length-i;return o===0||_p(e.substr(i,o),99)?void 0:xd(t+i,o)}function oit(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}var ait=/^(\/\/\/\s*Cx,DefinitionKind:()=>Wke,EntryKind:()=>Fke,ExportKind:()=>Mke,FindReferencesUse:()=>zke,ImportExport:()=>Pke,createImportTracker:()=>Ofe,findModuleReferences:()=>Lke,findReferenceOrRenameEntries:()=>Sit,findReferencedSymbols:()=>vit,getContextNode:()=>J1,getExportInfo:()=>Wfe,getImplementationsAtPosition:()=>Tit,getImportOrExportSymbol:()=>Oke,getReferenceEntriesForNode:()=>Gke,isContextWithStartAndEndNode:()=>zfe,isDeclarationOfSymbol:()=>qke,isWriteAccessForReference:()=>Gfe,toContextSpan:()=>Bfe,toHighlightSpan:()=>Cit,toReferenceEntry:()=>Uke,toRenameLocation:()=>Ait});function Ofe(e,t,r,i){const o=pit(e,r,i);return(s,l,u)=>{const{directImports:d,indirectUsers:_}=cit(e,t,o,l,r,i);return{indirectUsers:_,...dit(d,s,l.exportKind,r,u)}}}var Mke=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Mke||{}),Pke=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Pke||{});function cit(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=sC(),d=sC(),_=[],h=!!i.globalExports,y=h?void 0:[];return A(i),{directImports:_,indirectUsers:E()};function E(){if(h)return e;if(i.declarations)for(const W of i.declarations)IS(W)&&t.has(W.getSourceFile().fileName)&&k(W);return y.map(zn)}function A(W){const G=F(W);if(G){for(const j of G)if(u(j))switch(l&&l.throwIfCancellationRequested(),j.kind){case 214:if(tp(j)){R(j);break}if(!h){const Z=j.parent;if(o===2&&Z.kind===261){const{name:q}=Z;if(q.kind===80){_.push(q);break}}}break;case 80:break;case 272:P(j,j.name,di(j,32),!1);break;case 273:case 352:_.push(j);const J=j.importClause&&j.importClause.namedBindings;J&&J.kind===275?P(j,J.name,!1,!0):!h&&u1(j)&&k(Rz(j));break;case 279:j.exportClause?j.exportClause.kind===281?k(Rz(j),!0):_.push(j):A(git(j,s));break;case 206:!h&&j.isTypeOf&&!j.qualifier&&N(j)&&k(j.getSourceFile(),!0),_.push(j);break;default:C.failBadSyntaxKind(j,"Unexpected import kind.")}}}function R(W){const G=Dn(W,cX)||W.getSourceFile();k(G,!!N(W,!0))}function N(W,G=!1){return Dn(W,j=>G&&cX(j)?"quit":Rm(j)&&vt(j.modifiers,JI))}function P(W,G,j,J){if(o===2)J||_.push(W);else if(!h){const Z=Rz(W);C.assert(Z.kind===308||Z.kind===268),j||uit(Z,G,s)?k(Z,!0):k(Z)}}function k(W,G=!1){if(C.assert(!h),!d(W)||(y.push(W),!G))return;const J=s.getMergedSymbol(W.symbol);if(!J)return;C.assert(!!(J.flags&1536));const Z=F(J);if(Z)for(const q of Z)r_(q)||k(Rz(q),!0)}function F(W){return r.get(Ta(W).toString())}}function dit(e,t,r,i,o){const s=[],l=[];function u(E,A){s.push([E,A])}if(e)for(const E of e)d(E);return{importSearches:s,singleReferences:l};function d(E){if(E.kind===272){Ffe(E)&&_(E.name);return}if(E.kind===80){_(E);return}if(E.kind===206){if(E.qualifier){const N=Ou(E.qualifier);N.escapedText===Fl(t)&&l.push(N)}else r===2&&l.push(E.argument.literal);return}if(E.moduleSpecifier.kind!==11)return;if(E.kind===279){E.exportClause&&$f(E.exportClause)&&h(E.exportClause);return}const{name:A,namedBindings:R}=E.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 275:_(R.name);break;case 276:(r===0||r===1)&&h(R);break;default:C.assertNever(R)}if(A&&(r===1||r===2)&&(!o||A.escapedText===M7(t))){const N=i.getSymbolAtLocation(A);u(A,N)}}function _(E){r===2&&(!o||y(E.escapedText))&&u(E,i.getSymbolAtLocation(E))}function h(E){if(E)for(const A of E.elements){const{name:R,propertyName:N}=A;if(y(AS(N||R)))if(N)l.push(N),(!o||AS(R)===t.escapedName)&&u(R,i.getSymbolAtLocation(R));else{const P=A.kind===282&&A.propertyName?i.getExportSpecifierLocalTargetSymbol(A):i.getSymbolAtLocation(R);u(R,P)}}}function y(E){return E===t.escapedName||r!==0&&E==="default"}}function uit(e,t,r){const i=r.getSymbolAtLocation(t);return!!kke(e,o=>{if(!hc(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&$f(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function Lke(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if(u?.kind===308){for(const d of l.referencedFiles)e.getSourceFileFromReference(l,d)===u&&o.push({kind:"reference",referencingFile:l,ref:d});for(const d of l.typeReferenceDirectives){const _=(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(d,l))==null?void 0:i.resolvedTypeReferenceDirective;_!==void 0&&_.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:d})}}wke(l,(d,_)=>{s.getSymbolAtLocation(_)===r&&o.push(Fs(d)?{kind:"implicit",literal:_,referencingFile:l}:{kind:"import",literal:_})})}return o}function pit(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),wke(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const d=Ta(u).toString();let _=i.get(d);_||i.set(d,_=[]),_.push(s)}});return i}function kke(e,t){return qe(e.kind===308?e.statements:e.body.statements,r=>t(r)||cX(r)&&qe(r.body&&r.body.statements,t))}function wke(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(aM(r),r);else kke(e,r=>{switch(r.kind){case 279:case 273:{const i=r;i.moduleSpecifier&&Oa(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 272:{const i=r;Ffe(i)&&t(i,i.moduleReference.expression);break}}})}function Oke(e,t,r,i){return i?o():o()||s();function o(){var d;const{parent:_}=e,h=_.parent;if(t.exportSymbol)return _.kind===212?(d=t.declarations)!=null&&d.some(A=>A===_)&&Nr(h)?E(h,!1):void 0:l(t.exportSymbol,u(_));{const A=mit(_,e);if(A&&di(A,32))return Gc(A)&&A.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(A.name)}:l(t,u(A));if(F_(_))return l(t,0);if(dl(_))return y(_);if(dl(h))return y(h);if(Nr(_))return E(_,!0);if(Nr(h))return E(h,!0);if(M1(_)||Fj(_))return l(t,0)}function y(A){if(!A.symbol.parent)return;const R=A.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:A.symbol.parent,exportKind:R}}}function E(A,R){let N;switch(lc(A)){case 1:N=0;break;case 2:N=2;break;default:return}const P=R?r.getSymbolAtLocation(FV(ma(A.left,Ys))):t;return P&&l(P,N)}}function s(){if(!hit(e))return;let _=r.getImmediateAliasedSymbol(t);if(!_||(_=_it(_,r),_.escapedName==="export="&&(_=fit(_,r),_===void 0)))return;const h=M7(_);if(h===void 0||h==="default"||h===t.escapedName)return{kind:0,symbol:_}}function l(d,_){const h=Wfe(d,_,r);return h&&{kind:1,symbol:d,exportInfo:h}}function u(d){return di(d,2048)?1:0}}function fit(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const o=C.checkDefined(e.valueDeclaration);if(dl(o))return(r=ni(o.expression,ch))==null?void 0:r.symbol;if(Nr(o))return(i=ni(o.right,ch))==null?void 0:i.symbol;if(Xi(o))return o.symbol}function mit(e,t){const r=yi(e)?e:qa(e)?YE(e):void 0;return r?e.name!==t||KS(r.parent)?void 0:cc(r.parent.parent)?r.parent.parent:void 0:e}function hit(e){const{parent:t}=e;switch(t.kind){case 272:return t.name===e&&Ffe(t);case 277:return!t.propertyName;case 274:case 275:return C.assert(t.name===e),!0;case 209:return Ir(e)&&RS(t.parent.parent);default:return!1}}function Wfe(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return hI(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function _it(e,t){if(e.declarations)for(const r of e.declarations){if(lu(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(qr(r)&&Sg(r.expression)&&!Qi(r.name))return t.getSymbolAtLocation(r);if(Jd(r)&&Nr(r.parent.parent)&&lc(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function git(e,t){return t.getMergedSymbol(Rz(e).symbol)}function Rz(e){if(e.kind===214||e.kind===352)return e.getSourceFile();const{parent:t}=e;return t.kind===308?t:(C.assert(t.kind===269),ma(t.parent,cX))}function cX(e){return e.kind===268&&e.name.kind===11}function Ffe(e){return e.moduleReference.kind===284&&e.moduleReference.expression.kind===11}var Wke=(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))(Wke||{}),Fke=(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))(Fke||{});function Sy(e,t=1){return{kind:t,node:e.name||e,context:yit(e)}}function zfe(e){return e&&e.kind===void 0}function yit(e){if(id(e))return J1(e);if(e.parent){if(!id(e.parent)&&!dl(e.parent)){if(Ir(e)){const r=Nr(e.parent)?e.parent:Ys(e.parent)&&Nr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&lc(r)!==0)return J1(r)}if(hh(e.parent)||qS(e.parent))return e.parent.parent;if(C1(e.parent)||Fb(e.parent)||BN(e.parent))return e.parent;if(ds(e)){const r=xk(e);if(r){const i=Dn(r,o=>id(o)||ji(o)||KR(o));return id(i)?J1(i):i}}const t=Dn(e,va);return t?J1(t.parent):void 0}if(e.parent.name===e||kl(e.parent)||dl(e.parent)||(_b(e.parent)||qa(e.parent))&&e.parent.propertyName===e||e.kind===90&&di(e.parent,2080))return J1(e.parent)}}function J1(e){if(e)switch(e.kind){case 261:return!gd(e.parent)||e.parent.declarations.length!==1?e:cc(e.parent.parent)?e.parent.parent:n1(e.parent.parent)?J1(e.parent.parent):e.parent;case 209:return J1(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return ad(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return gv(e.parent)?J1(Dn(e.parent,t=>Nr(t)||n1(t))):e;case 256:return{start:mn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Bfe(e,t,r){if(!r)return;const i=zfe(r)?Cz(r.start,t,r.end):Cz(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var zke=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(zke||{});function vit(e,t,r,i,o){const s=sp(i,o),l={use:1},u=Cx.getReferencedSymbolsForNode(o,s,e,r,t,l),d=e.getTypeChecker(),_=Cx.getAdjustedNode(s,l),h=bit(_)?d.getSymbolAtLocation(_):void 0;return!u||!u.length?void 0:Ei(u,({definition:y,references:E})=>y&&{definition:d.runWithCancellationToken(t,A=>Eit(y,A,s)),references:E.map(A=>Iit(A,h))})}function bit(e){return e.kind===90||!!lM(e)||Pk(e)||e.kind===137&&kl(e.parent)}function Tit(e,t,r,i,o){const s=sp(i,o);let l;const u=Bke(e,t,r,s,o);if(s.parent.kind===212||s.parent.kind===209||s.parent.kind===213||s.kind===108)l=u&&[...u];else if(u){const _=E2(u),h=new Set;for(;!_.isEmpty();){const y=_.dequeue();if(!Em(h,ls(y.node)))continue;l=Vn(l,y);const E=Bke(e,t,r,y.node,y.node.pos);E&&_.enqueue(...E)}}const d=e.getTypeChecker();return Yt(l,_=>Rit(_,d))}function Bke(e,t,r,i,o){if(i.kind===308)return;const s=e.getTypeChecker();if(i.parent.kind===305){const l=[];return Cx.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(Sy(u))),l}else if(i.kind===108||gp(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[Sy(l.valueDeclaration)]}else return Gke(o,i,e,r,t,{implementations:!0,use:1})}function Sit(e,t,r,i,o,s,l){return Yt(Vke(Cx.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function Gke(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return Vke(Cx.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function Vke(e){return e&&fi(e,t=>t.references)}function Eit(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:h}=e,{displayParts:y,kind:E}=jke(h,t,r),A=y.map(P=>P.text).join(""),R=h.declarations&&Rc(h.declarations),N=R?wo(R)||R:r;return{...Dz(N),name:A,kind:E,displayParts:y,context:J1(R)}}case 1:{const{node:h}=e;return{...Dz(h),name:h.text,kind:"label",displayParts:[Tp(h.text,17)]}}case 2:{const{node:h}=e,y=_a(h.kind);return{...Dz(h),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:h}=e,y=t.getSymbolAtLocation(h),E=y&&Tv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,h.getSourceFile(),V1(h),h).displayParts||[bf("this")];return{...Dz(h),name:"this",kind:"var",displayParts:E}}case 4:{const{node:h}=e;return{...Dz(h),name:h.text,kind:"var",displayParts:[Tp(Rl(h),8)]}}case 5:return{textSpan:yv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Tp(`"${e.reference.fileName}"`,8)]};default:return C.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:d,context:_}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:d,...Bfe(s,o,_)}}function Dz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Cz(va(e)?e.expression:e,t)}}function jke(e,t,r){const i=Cx.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Rc(e.declarations)||r,{displayParts:s,symbolKind:l}=Tv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Ait(e,t,r,i,o){return{...dX(e),...i&&xit(e,t,r,o)}}function Iit(e,t){const r=Uke(e);return t?{...r,isDefinition:e.kind!==0&&qke(e.node,t)}:r}function Uke(e){const t=dX(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:Gfe(i),isInString:r===2?!0:void 0}}function dX(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=Cz(e.node,t);return{textSpan:r,fileName:t.fileName,...Bfe(r,t,e.context)}}}function xit(e,t,r,i){if(e.kind!==0&&(Je(t)||ds(t))){const{node:o,kind:s}=e,l=o.parent,u=t.text,d=Jd(l);if(d||MO(l)&&l.name===o&&l.dotDotDotToken===void 0){const _={prefixText:u+": "},h={suffixText:": "+u};if(s===3)return _;if(s===4)return h;if(d){const y=l.parent;return za(y)&&Nr(y.parent)&&Sg(y.parent.left)?_:h}else return _}else if(xu(l)&&!l.propertyName){const _=lu(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return jn(_.declarations,l)?{prefixText:u+" as "}:Dm}else if(lu(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&op(e.node)&&Ys(e.node.parent)){const o=lJ(i);return{prefixText:o,suffixText:o}}return Dm}function Rit(e,t){const r=dX(e);if(e.kind!==0){const{node:i}=e;return{...r,...Dit(i,t)}}else return{...r,kind:"",displayParts:[]}}function Dit(e,t){const r=t.getSymbolAtLocation(id(e)&&e.name?e.name:e);return r?jke(r,t,e):e.kind===211?{kind:"interface",displayParts:[uu(21),bf("object literal"),uu(22)]}:e.kind===232?{kind:"local class",displayParts:[uu(21),bf("anonymous local class"),uu(22)]}:{kind:rE(e),displayParts:[]}}function Cit(e){const t=dX(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=Gfe(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function Cz(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ds(e)&&o-i>2&&(C.assert(r===void 0),i+=1,o-=1),r?.kind===270&&(o=r.getFullStart()),sc(i,o)}function Hke(e){return e.kind===0?e.textSpan:Cz(e.node,e.node.getSourceFile())}function Gfe(e){const t=lM(e);return!!t&&Nit(t)||e.kind===90||PI(e)}function qke(e,t){var r;if(!t)return!1;const i=lM(e)||(e.kind===90?e.parent:Pk(e)||e.kind===137&&kl(e.parent)?e.parent.parent:void 0),o=i&&Nr(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function Nit(e){if(e.flags&33554432)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!gv(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||KS(e.parent);case 174:case 172:case 349:case 342:return!1;default:return C.failBadSyntaxKind(e)}}var Cx;(e=>{function t(ot,Ft,le,_t,ne,Fe={},it=new Set(_t.map(dt=>dt.fileName))){var dt,Lt;if(Ft=r(Ft,Fe),Xi(Ft)){const Tr=vC.getReferenceAtPosition(Ft,ot,le);if(!Tr?.file)return;const Oe=le.getTypeChecker().getMergedSymbol(Tr.file.symbol);if(Oe)return _(le,Oe,!1,_t,it);const Nt=le.getFileIncludeReasons();return Nt?[{definition:{type:5,reference:Tr.reference,file:Ft},references:o(Tr.file,Nt,le)||ie}]:void 0}if(!Fe.implementations){const Tr=y(Ft,_t,ne);if(Tr)return Tr}const He=le.getTypeChecker(),Rt=He.getSymbolAtLocation(kl(Ft)&&Ft.parent.name||Ft);if(!Rt){if(!Fe.implementations&&ds(Ft)){if(P7(Ft)){const Tr=le.getFileIncludeReasons(),Oe=(Lt=(dt=le.getResolvedModuleFromModuleSpecifier(Ft))==null?void 0:dt.resolvedModule)==null?void 0:Lt.resolvedFileName,Nt=Oe?le.getSourceFile(Oe):void 0;if(Nt)return[{definition:{type:4,node:Ft},references:o(Nt,Tr,le)||ie}]}return Pi(Ft,_t,He,ne)}return}if(Rt.escapedName==="export=")return _(le,Rt.parent,!1,_t,it);const It=l(Rt,le,_t,ne,Fe,it);if(It&&!(Rt.flags&33554432))return It;const Ot=s(Ft,Rt,He),nt=Ot&&l(Ot,le,_t,ne,Fe,it),Jt=E(Rt,Ft,_t,it,He,ne,Fe);return u(le,It,Jt,nt)}e.getReferencedSymbolsForNode=t;function r(ot,Ft){return Ft.use===1?ot=Jq(ot):Ft.use===2&&(ot=S7(ot)),ot}e.getAdjustedNode=r;function i(ot,Ft,le,_t=new Set(le.map(ne=>ne.fileName))){var ne,Fe;const it=(ne=Ft.getSourceFile(ot))==null?void 0:ne.symbol;if(it)return((Fe=_(Ft,it,!1,le,_t)[0])==null?void 0:Fe.references)||ie;const dt=Ft.getFileIncludeReasons(),Lt=Ft.getSourceFile(ot);return Lt&&dt&&o(Lt,dt,Ft)||ie}e.getReferencesForFileName=i;function o(ot,Ft,le){let _t;const ne=Ft.get(ot.path)||ie;for(const Fe of ne)if(p0(Fe)){const it=le.getSourceFileByPath(Fe.file),dt=xP(le,Fe);QD(dt)&&(_t=Vn(_t,{kind:0,fileName:it.fileName,textSpan:yv(dt)}))}return _t}function s(ot,Ft,le){if(ot.parent&&Aw(ot.parent)){const _t=le.getAliasedSymbol(Ft),ne=le.getMergedSymbol(_t);if(_t!==ne)return ne}}function l(ot,Ft,le,_t,ne,Fe){const it=ot.flags&1536&&ot.declarations&&mn(ot.declarations,Xi);if(!it)return;const dt=ot.exports.get("export="),Lt=_(Ft,ot,!!dt,le,Fe);if(!dt||!Fe.has(it.fileName))return Lt;const He=Ft.getTypeChecker();return ot=Rd(dt,He),u(Ft,Lt,E(ot,void 0,le,Fe,He,_t,ne))}function u(ot,...Ft){let le;for(const _t of Ft)if(!(!_t||!_t.length)){if(!le){le=_t;continue}for(const ne of _t){if(!ne.definition||ne.definition.type!==0){le.push(ne);continue}const Fe=ne.definition.symbol,it=ho(le,Lt=>!!Lt.definition&&Lt.definition.type===0&&Lt.definition.symbol===Fe);if(it===-1){le.push(ne);continue}const dt=le[it];le[it]={definition:dt.definition,references:dt.references.concat(ne.references).sort((Lt,He)=>{const Rt=d(ot,Lt),It=d(ot,He);if(Rt!==It)return Hs(Rt,It);const Ot=Hke(Lt),nt=Hke(He);return Ot.start!==nt.start?Hs(Ot.start,nt.start):Hs(Ot.length,nt.length)})}}}return le}function d(ot,Ft){const le=Ft.kind===0?ot.getSourceFile(Ft.fileName):Ft.node.getSourceFile();return ot.getSourceFiles().indexOf(le)}function _(ot,Ft,le,_t,ne){C.assert(!!Ft.valueDeclaration);const Fe=Ei(Lke(ot,_t,Ft),dt=>{if(dt.kind==="import"){const Lt=dt.literal.parent;if(fv(Lt)){const He=ma(Lt.parent,r_);if(le&&!He.qualifier)return}return Sy(dt.literal)}else if(dt.kind==="implicit"){const Lt=dt.literal.text!==bb&&ox(dt.referencingFile,He=>He.transformFlags&2?a_(He)||C1(He)||n0(He)?He:void 0:"skip")||dt.referencingFile.statements[0]||dt.referencingFile;return Sy(Lt)}else return{kind:0,fileName:dt.referencingFile.fileName,textSpan:yv(dt.ref)}});if(Ft.declarations)for(const dt of Ft.declarations)switch(dt.kind){case 308:break;case 268:ne.has(dt.getSourceFile().fileName)&&Fe.push(Sy(dt.name));break;default:C.assert(!!(Ft.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const it=Ft.exports.get("export=");if(it?.declarations)for(const dt of it.declarations){const Lt=dt.getSourceFile();if(ne.has(Lt.fileName)){const He=Nr(dt)&&qr(dt.left)?dt.left.expression:dl(dt)?C.checkDefined(Is(dt,95,Lt)):wo(dt)||dt;Fe.push(Sy(He))}}return Fe.length?[{definition:{type:0,symbol:Ft},references:Fe}]:ie}function h(ot){return ot.kind===148&&YT(ot.parent)&&ot.parent.operator===148}function y(ot,Ft,le){if(wP(ot.kind))return ot.kind===116&&ZI(ot.parent)||ot.kind===148&&!h(ot)?void 0:Xe(Ft,ot.kind,le,ot.kind===148?h:void 0);if(eD(ot.parent)&&ot.parent.name===ot)return Ne(Ft,le);if(KI(ot)&&nc(ot.parent))return[{definition:{type:2,node:ot},references:[Sy(ot)]}];if(EO(ot)){const _t=_7(ot.parent,ot.text);return _t&&De(_t.parent,_t)}else if(Fq(ot))return De(ot.parent,ot);if(iC(ot))return xi(ot,Ft,le);if(ot.kind===108)return zt(ot)}function E(ot,Ft,le,_t,ne,Fe,it){const dt=Ft&&N(ot,Ft,ne,!Uo(it))||ot,Lt=Ft&&it.use!==2?ri(Ft,dt):7,He=[],Rt=new F(le,_t,Ft?R(Ft):0,ne,Fe,Lt,it,He),It=!Uo(it)||!dt.declarations?void 0:mn(dt.declarations,lu);if(It)lt(It.name,dt,It,Rt.createSearch(Ft,ot,void 0),Rt,!0,!0);else if(Ft&&Ft.kind===90&&dt.escapedName==="default"&&dt.parent)Ge(Ft,dt,Rt),W(Ft,dt,{exportingModuleSymbol:dt.parent,exportKind:1},Rt);else{const Ot=Rt.createSearch(Ft,dt,void 0,{allSearchSymbols:Ft?Mi(dt,Ft,ne,it.use===2,!!it.providePrefixAndSuffixTextForRename,!!it.implementations):[dt]});A(dt,Rt,Ot)}return He}function A(ot,Ft,le){const _t=ve(ot);if(_t)re(_t,_t.getSourceFile(),le,Ft,!(Xi(_t)&&!jn(Ft.sourceFiles,_t)));else for(const ne of Ft.sourceFiles)Ft.cancellationToken.throwIfCancellationRequested(),Z(ne,le,Ft)}function R(ot){switch(ot.kind){case 177:case 137:return 1;case 80:if(ui(ot.parent))return C.assert(ot.parent.name===ot),2;default:return 0}}function N(ot,Ft,le,_t){const{parent:ne}=Ft;return lu(ne)&&_t?ce(Ft,ot,ne,le):Ln(ot.declarations,Fe=>{if(!Fe.parent){if(ot.flags&33554432)return;C.fail(`Unexpected symbol at ${C.formatSyntaxKind(Ft.kind)}: ${C.formatSymbol(ot)}`)}return Fu(Fe.parent)&&pv(Fe.parent.parent)?le.getPropertyOfType(le.getTypeFromTypeNode(Fe.parent.parent),ot.name):void 0})}let P;(ot=>{ot[ot.None=0]="None",ot[ot.Constructor=1]="Constructor",ot[ot.Class=2]="Class"})(P||(P={}));function k(ot){if(!(ot.flags&33555968))return;const Ft=ot.declarations&&mn(ot.declarations,le=>!Xi(le)&&!mc(le));return Ft&&Ft.symbol}class F{constructor(Ft,le,_t,ne,Fe,it,dt,Lt){this.sourceFiles=Ft,this.sourceFilesSet=le,this.specialSearchKind=_t,this.checker=ne,this.cancellationToken=Fe,this.searchMeaning=it,this.options=dt,this.result=Lt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=sC(),this.markSeenReExportRHS=sC(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Ft){return this.sourceFilesSet.has(Ft.fileName)}getImportSearches(Ft,le){return this.importTracker||(this.importTracker=Ofe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Ft,le,this.options.use===2)}createSearch(Ft,le,_t,ne={}){const{text:Fe=Sm(Fl(bM(le)||k(le)||le)),allSearchSymbols:it=[le]}=ne,dt=Pl(Fe),Lt=this.options.implementations&&Ft?Pn(Ft,le,this.checker):void 0;return{symbol:le,comingFrom:_t,text:Fe,escapedText:dt,parents:Lt,allSearchSymbols:it,includes:He=>jn(it,He)}}referenceAdder(Ft){const le=Ta(Ft);let _t=this.symbolIdToReferences[le];return _t||(_t=this.symbolIdToReferences[le]=[],this.result.push({definition:{type:0,symbol:Ft},references:_t})),(ne,Fe)=>_t.push(Sy(ne,Fe))}addStringOrCommentReference(Ft,le){this.result.push({definition:void 0,references:[{kind:0,fileName:Ft,textSpan:le}]})}markSearchedSymbols(Ft,le){const _t=ls(Ft),ne=this.sourceFileToSeenSymbols[_t]||(this.sourceFileToSeenSymbols[_t]=new Set);let Fe=!1;for(const it of le)Fe=Wf(ne,Ta(it))||Fe;return Fe}}function W(ot,Ft,le,_t){const{importSearches:ne,singleReferences:Fe,indirectUsers:it}=_t.getImportSearches(Ft,le);if(Fe.length){const dt=_t.referenceAdder(Ft);for(const Lt of Fe)j(Lt,_t)&&dt(Lt)}for(const[dt,Lt]of ne)Ee(dt.getSourceFile(),_t.createSearch(dt,Lt,1),_t);if(it.length){let dt;switch(le.exportKind){case 0:dt=_t.createSearch(ot,Ft,1);break;case 1:dt=_t.options.use===2?void 0:_t.createSearch(ot,Ft,1,{text:"default"});break}if(dt)for(const Lt of it)Z(Lt,dt,_t)}}function G(ot,Ft,le,_t,ne,Fe,it,dt){const Lt=Ofe(ot,new Set(ot.map(Ot=>Ot.fileName)),Ft,le),{importSearches:He,indirectUsers:Rt,singleReferences:It}=Lt(_t,{exportKind:it?1:0,exportingModuleSymbol:ne},!1);for(const[Ot]of He)dt(Ot);for(const Ot of It)Je(Ot)&&r_(Ot.parent)&&dt(Ot);for(const Ot of Rt)for(const nt of me(Ot,it?"default":Fe)){const Jt=Ft.getSymbolAtLocation(nt),Tr=vt(Jt?.declarations,Oe=>!!ni(Oe,dl));Je(nt)&&!_b(nt.parent)&&(Jt===_t||Tr)&&dt(nt)}}e.eachExportReference=G;function j(ot,Ft){return Te(ot,Ft)?Ft.options.use!==2?!0:!Je(ot)&&!_b(ot.parent)?!1:!(_b(ot.parent)&&P_(ot)):!1}function J(ot,Ft){if(ot.declarations)for(const le of ot.declarations){const _t=le.getSourceFile();Ee(_t,Ft.createSearch(le,ot,0),Ft,Ft.includesSourceFile(_t))}}function Z(ot,Ft,le){bK(ot).get(Ft.escapedText)!==void 0&&Ee(ot,Ft,le)}function q(ot,Ft){return gv(ot.parent.parent)?Ft.getPropertySymbolOfDestructuringAssignment(ot):void 0}function ve(ot){const{declarations:Ft,flags:le,parent:_t,valueDeclaration:ne}=ot;if(ne&&(ne.kind===219||ne.kind===232))return ne;if(!Ft)return;if(le&8196){const dt=mn(Ft,Lt=>Fp(Lt,2)||ou(Lt));return dt?UT(dt,264):void 0}if(Ft.some(MO))return;const Fe=_t&&!(ot.flags&262144);if(Fe&&!(hI(_t)&&!_t.globalExports))return;let it;for(const dt of Ft){const Lt=V1(dt);if(it&&it!==Lt||!Lt||Lt.kind===308&&!wp(Lt))return;if(it=Lt,qs(it)){let He;for(;He=YG(it);)it=He}}return Fe?it.getSourceFile():it}function oe(ot,Ft,le,_t=le){return K(ot,Ft,le,()=>!0,_t)||!1}e.isSymbolReferencedInFile=oe;function K(ot,Ft,le,_t,ne=le){const Fe=Lp(ot.parent,ot.parent.parent)?Qa(Ft.getSymbolsOfParameterPropertyDeclaration(ot.parent,ot.text)):Ft.getSymbolAtLocation(ot);if(Fe)for(const it of me(le,Fe.name,ne)){if(!Je(it)||it===ot||it.escapedText!==ot.escapedText)continue;const dt=Ft.getSymbolAtLocation(it);if(dt===Fe||Ft.getShorthandAssignmentValueSymbol(it.parent)===Fe||lu(it.parent)&&ce(it,dt,it.parent,Ft)===Fe){const Lt=_t(it);if(Lt)return Lt}}}e.eachSymbolReferenceInFile=K;function fe(ot,Ft){return Un(me(Ft,ot),ne=>!!lM(ne)).reduce((ne,Fe)=>{const it=_t(Fe);return!vt(ne.declarationNames)||it===ne.depth?(ne.declarationNames.push(Fe),ne.depth=it):itRt===ne)&&_t(it,Lt))return!0}return!1}e.someSignatureUsage=ue;function me(ot,Ft,le=ot){return Ei(be(ot,Ft,le),_t=>{const ne=sp(ot,_t);return ne===ot?void 0:ne})}function be(ot,Ft,le=ot){const _t=[];if(!Ft||!Ft.length)return _t;const ne=ot.text,Fe=ne.length,it=Ft.length;let dt=ne.indexOf(Ft,le.pos);for(;dt>=0&&!(dt>le.end);){const Lt=dt+it;(dt===0||!iy(ne.charCodeAt(dt-1),99))&&(Lt===Fe||!iy(ne.charCodeAt(Lt),99))&&_t.push(dt),dt=ne.indexOf(Ft,dt+it+1)}return _t}function De(ot,Ft){const le=ot.getSourceFile(),_t=Ft.text,ne=Ei(me(le,_t,ot),Fe=>Fe===Ft||EO(Fe)&&_7(Fe,_t)===Ft?Sy(Fe):void 0);return[{definition:{type:1,node:Ft},references:ne}]}function Y(ot,Ft){switch(ot.kind){case 81:if(i0(ot.parent))return!0;case 80:return ot.text.length===Ft.length;case 15:case 11:{const le=ot;return le.text.length===Ft.length&&(g7(le)||Vq(ot)||rce(ot)||ea(ot.parent)&&c1(ot.parent)&&ot.parent.arguments[1]===ot||_b(ot.parent))}case 9:return g7(ot)&&ot.text.length===Ft.length;case 90:return Ft.length===7;default:return!1}}function Ne(ot,Ft){const le=fi(ot,_t=>(Ft.throwIfCancellationRequested(),Ei(me(_t,"meta",_t),ne=>{const Fe=ne.parent;if(eD(Fe))return Sy(Fe)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Xe(ot,Ft,le,_t){const ne=fi(ot,Fe=>(le.throwIfCancellationRequested(),Ei(me(Fe,_a(Ft),Fe),it=>{if(it.kind===Ft&&(!_t||_t(it)))return Sy(it)})));return ne.length?[{definition:{type:2,node:ne[0].node},references:ne}]:void 0}function Ee(ot,Ft,le,_t=!0){return le.cancellationToken.throwIfCancellationRequested(),re(ot,ot,Ft,le,_t)}function re(ot,Ft,le,_t,ne){if(_t.markSearchedSymbols(Ft,le.allSearchSymbols))for(const Fe of be(Ft,le.text,ot))Me(Ft,Fe,le,_t,ne)}function Te(ot,Ft){return!!(G1(ot)&Ft.searchMeaning)}function Me(ot,Ft,le,_t,ne){const Fe=sp(ot,Ft);if(!Y(Fe,le.text)){!_t.options.implementations&&(_t.options.findInStrings&&gx(ot,Ft)||_t.options.findInComments&&_ce(ot,Ft))&&_t.addStringOrCommentReference(ot.fileName,xd(Ft,le.text.length));return}if(!Te(Fe,_t))return;let it=_t.checker.getSymbolAtLocation(Fe);if(!it)return;const dt=Fe.parent;if(xu(dt)&&dt.propertyName===Fe)return;if(lu(dt)){C.assert(Fe.kind===80||Fe.kind===11),lt(Fe,it,dt,le,_t,ne);return}if(GN(dt)&&dt.isNameFirst&&dt.typeExpression&&N1(dt.typeExpression.type)&&dt.typeExpression.type.jsDocPropertyTags&&Qe(dt.typeExpression.type.jsDocPropertyTags)){Be(dt.typeExpression.type.jsDocPropertyTags,Fe,le,_t);return}const Lt=dr(le,it,Fe,_t);if(!Lt){Ue(it,le,_t);return}switch(_t.specialSearchKind){case 0:ne&&Ge(Fe,Lt,_t);break;case 1:We(Fe,ot,le,_t);break;case 2:at(Fe,le,_t);break;default:C.assertNever(_t.specialSearchKind)}Ir(Fe)&&qa(Fe.parent)&&RS(Fe.parent.parent.parent)&&(it=Fe.parent.symbol,!it)||ye(Fe,it,le,_t)}function Be(ot,Ft,le,_t){const ne=_t.referenceAdder(le.symbol);Ge(Ft,le.symbol,_t),qe(ot,Fe=>{Wu(Fe.name)&&ne(Fe.name.left)})}function lt(ot,Ft,le,_t,ne,Fe,it){C.assert(!it||!!ne.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:dt,propertyName:Lt,name:He}=le,Rt=dt.parent,It=ce(ot,Ft,le,ne.checker);if(!it&&!_t.includes(It))return;if(Lt?ot===Lt?(Rt.moduleSpecifier||Ot(),Fe&&ne.options.use!==2&&ne.markSeenReExportRHS(He)&&Ge(He,C.checkDefined(le.symbol),ne)):ne.markSeenReExportRHS(ot)&&Ot():ne.options.use===2&&P_(He)||Ot(),!Uo(ne.options)||it){const Jt=P_(ot)||P_(le.name)?1:0,Tr=C.checkDefined(le.symbol),Oe=Wfe(Tr,Jt,ne.checker);Oe&&W(ot,Tr,Oe,ne)}if(_t.comingFrom!==1&&Rt.moduleSpecifier&&!Lt&&!Uo(ne.options)){const nt=ne.checker.getExportSpecifierLocalTargetSymbol(le);nt&&J(nt,ne)}function Ot(){Fe&&Ge(ot,It,ne)}}function ce(ot,Ft,le,_t){return Ce(ot,le)&&_t.getExportSpecifierLocalTargetSymbol(le)||Ft}function Ce(ot,Ft){const{parent:le,propertyName:_t,name:ne}=Ft;return C.assert(_t===ot||ne===ot),_t?_t===ot:!le.parent.moduleSpecifier}function ye(ot,Ft,le,_t){const ne=Oke(ot,Ft,_t.checker,le.comingFrom===1);if(!ne)return;const{symbol:Fe}=ne;ne.kind===0?Uo(_t.options)||J(Fe,_t):W(ot,Fe,ne.exportInfo,_t)}function Ue({flags:ot,valueDeclaration:Ft},le,_t){const ne=_t.checker.getShorthandAssignmentValueSymbol(Ft),Fe=Ft&&wo(Ft);!(ot&33554432)&&Fe&&le.includes(ne)&&Ge(Fe,ne,_t)}function Ge(ot,Ft,le){const{kind:_t,symbol:ne}="kind"in Ft?Ft:{kind:void 0,symbol:Ft};if(le.options.use===2&&ot.kind===90)return;const Fe=le.referenceAdder(ne);le.options.implementations?en(ot,Fe,le):Fe(ot,_t)}function We(ot,Ft,le,_t){MP(ot)&&Ge(ot,le.symbol,_t);const ne=()=>_t.referenceAdder(le.symbol);if(ui(ot.parent))C.assert(ot.kind===90||ot.parent.name===ot),Wt(le.symbol,Ft,ne());else{const Fe=Ia(ot);Fe&&(gn(Fe,ne()),gt(Fe,_t))}}function at(ot,Ft,le){Ge(ot,Ft.symbol,le);const _t=ot.parent;if(le.options.use===2||!ui(_t))return;C.assert(_t.name===ot);const ne=le.referenceAdder(Ft.symbol);for(const Fe of _t.members)pI(Fe)&&ua(Fe)&&Fe.body&&Fe.body.forEachChild(function it(dt){dt.kind===110?ne(dt):!$o(dt)&&!ui(dt)&&dt.forEachChild(it)})}function Wt(ot,Ft,le){const _t=cn(ot);if(_t&&_t.declarations)for(const ne of _t.declarations){const Fe=Is(ne,137,Ft);C.assert(ne.kind===177&&!!Fe),le(Fe)}ot.exports&&ot.exports.forEach(ne=>{const Fe=ne.valueDeclaration;if(Fe&&Fe.kind===175){const it=Fe.body;it&&Qo(it,110,dt=>{MP(dt)&&le(dt)})}})}function cn(ot){return ot.members&&ot.members.get("__constructor")}function gn(ot,Ft){const le=cn(ot.symbol);if(le&&le.declarations)for(const _t of le.declarations){C.assert(_t.kind===177);const ne=_t.body;ne&&Qo(ne,108,Fe=>{wq(Fe)&&Ft(Fe)})}}function Kn(ot){return!!cn(ot.symbol)}function gt(ot,Ft){if(Kn(ot))return;const le=ot.symbol,_t=Ft.createSearch(void 0,le,void 0);A(le,Ft,_t)}function en(ot,Ft,le){if(w_(ot)&&ai(ot.parent)){Ft(ot);return}if(ot.kind!==80)return;ot.parent.kind===305&&qi(ot,le.checker,Ft);const _t=or(ot);if(_t){Ft(_t);return}const ne=Dn(ot,dt=>!Wu(dt.parent)&&!Ci(dt.parent)&&!bS(dt.parent)),Fe=ne.parent;if(kF(Fe)&&Fe.type===ne&&le.markSeenContainingTypeReference(Fe))if(tv(Fe))it(Fe.initializer);else if($o(Fe)&&Fe.body){const dt=Fe.body;dt.kind===242?Ab(dt,Lt=>{Lt.expression&&it(Lt.expression)}):it(dt)}else(SS(Fe)||CD(Fe))&&it(Fe.expression);function it(dt){Ni(dt)&&Ft(dt)}}function or(ot){return Je(ot)||qr(ot)?or(ot.parent):my(ot)?ni(ot.parent.parent,Np(ui,yd)):void 0}function Ni(ot){switch(ot.kind){case 218:return Ni(ot.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function so(ot,Ft,le,_t){if(ot===Ft)return!0;const ne=Ta(ot)+","+Ta(Ft),Fe=le.get(ne);if(Fe!==void 0)return Fe;le.set(ne,!1);const it=!!ot.declarations&&ot.declarations.some(dt=>cM(dt).some(Lt=>{const He=_t.getTypeAtLocation(Lt);return!!He&&!!He.symbol&&so(He.symbol,Ft,le,_t)}));return le.set(ne,it),it}function zt(ot){let Ft=fk(ot,!1);if(!Ft)return;let le=256;switch(Ft.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:le&=iv(Ft),Ft=Ft.parent;break;default:return}const _t=Ft.getSourceFile(),ne=Ei(me(_t,"super",Ft),Fe=>{if(Fe.kind!==108)return;const it=fk(Fe,!1);return it&&ua(it)===!!le&&it.parent.symbol===Ft.symbol?Sy(Fe):void 0});return[{definition:{type:0,symbol:Ft.symbol},references:ne}]}function Zr(ot){return ot.kind===80&&ot.parent.kind===170&&ot.parent.name===ot}function xi(ot,Ft,le){let _t=Su(ot,!1,!1),ne=256;switch(_t.kind){case 175:case 174:if(bm(_t)){ne&=iv(_t),_t=_t.parent;break}case 173:case 172:case 177:case 178:case 179:ne&=iv(_t),_t=_t.parent;break;case 308:if(Vc(_t)||Zr(ot))return;case 263:case 219:break;default:return}const Fe=fi(_t.kind===308?Ft:[_t.getSourceFile()],dt=>(le.throwIfCancellationRequested(),me(dt,"this",Xi(_t)?dt:_t).filter(Lt=>{if(!iC(Lt))return!1;const He=Su(Lt,!1,!1);if(!ch(He))return!1;switch(_t.kind){case 219:case 263:return _t.symbol===He.symbol;case 175:case 174:return bm(_t)&&_t.symbol===He.symbol;case 232:case 264:case 211:return He.parent&&ch(He.parent)&&_t.symbol===He.parent.symbol&&ua(He)===!!ne;case 308:return He.kind===308&&!Vc(He)&&!Zr(Lt)}}))).map(dt=>Sy(dt));return[{definition:{type:3,node:Ln(Fe,dt=>Zi(dt.node.parent)?dt.node:void 0)||ot},references:Fe}]}function Pi(ot,Ft,le,_t){const ne=T7(ot,le),Fe=fi(Ft,it=>(_t.throwIfCancellationRequested(),Ei(me(it,ot.text),dt=>{if(ds(dt)&&dt.text===ot.text)if(ne){const Lt=T7(dt,le);if(ne!==le.getStringType()&&(ne===Lt||Pr(dt,le)))return Sy(dt,2)}else return T1(dt)&&!_1(dt,it)?void 0:Sy(dt,2)})));return[{definition:{type:4,node:ot},references:Fe}]}function Pr(ot,Ft){if(Iu(ot.parent))return Ft.getPropertyOfType(Ft.getTypeAtLocation(ot.parent.parent),ot.text)}function Mi(ot,Ft,le,_t,ne,Fe){const it=[];return $e(ot,Ft,le,_t,!(_t&&ne),(dt,Lt,He)=>{He&&hn(ot)!==hn(He)&&(He=void 0),it.push(He||Lt||dt)},()=>!Fe),it}function $e(ot,Ft,le,_t,ne,Fe,it){const dt=XO(Ft);if(dt){const Jt=le.getShorthandAssignmentValueSymbol(Ft.parent);if(Jt&&_t)return Fe(Jt,void 0,void 0,3);const Tr=le.getContextualType(dt.parent),Oe=Tr&&Ln(hz(dt,le,Tr,!0),Ie=>Ot(Ie,4));if(Oe)return Oe;const Nt=q(Ft,le),ge=Nt&&Fe(Nt,void 0,void 0,4);if(ge)return ge;const B=Jt&&Fe(Jt,void 0,void 0,3);if(B)return B}const Lt=s(Ft,ot,le);if(Lt){const Jt=Fe(Lt,void 0,void 0,1);if(Jt)return Jt}const He=Ot(ot);if(He)return He;if(ot.valueDeclaration&&Lp(ot.valueDeclaration,ot.valueDeclaration.parent)){const Jt=le.getSymbolsOfParameterPropertyDeclaration(ma(ot.valueDeclaration,Zi),ot.name);return C.assert(Jt.length===2&&!!(Jt[0].flags&1)&&!!(Jt[1].flags&4)),Ot(ot.flags&1?Jt[1]:Jt[0])}const Rt=ll(ot,282);if(!_t||Rt&&!Rt.propertyName){const Jt=Rt&&le.getExportSpecifierLocalTargetSymbol(Rt);if(Jt){const Tr=Fe(Jt,void 0,void 0,1);if(Tr)return Tr}}if(!_t){let Jt;return ne?Jt=MO(Ft.parent)?L7(le,Ft.parent):void 0:Jt=nt(ot,le),Jt&&Ot(Jt,4)}if(C.assert(_t),ne){const Jt=nt(ot,le);return Jt&&Ot(Jt,4)}function Ot(Jt,Tr){return Ln(le.getRootSymbols(Jt),Oe=>Fe(Jt,Oe,void 0,Tr)||(Oe.parent&&Oe.parent.flags&96&&it(Oe)?At(Oe.parent,Oe.name,le,Nt=>Fe(Jt,Oe,Nt,Tr)):void 0))}function nt(Jt,Tr){const Oe=ll(Jt,209);if(Oe&&MO(Oe))return L7(Tr,Oe)}}function At(ot,Ft,le,_t){const ne=new Set;return Fe(ot);function Fe(it){if(!(!(it.flags&96)||!Em(ne,it)))return Ln(it.declarations,dt=>Ln(cM(dt),Lt=>{const He=le.getTypeAtLocation(Lt),Rt=He.symbol&&le.getPropertyOfType(He,Ft);return Rt&&Ln(le.getRootSymbols(Rt),_t)||He.symbol&&Fe(He.symbol)}))}}function hn(ot){return ot.valueDeclaration?!!(Ud(ot.valueDeclaration)&256):!1}function dr(ot,Ft,le,_t){const{checker:ne}=_t;return $e(Ft,le,ne,!1,_t.options.use!==2||!!_t.options.providePrefixAndSuffixTextForRename,(Fe,it,dt,Lt)=>(dt&&hn(Ft)!==hn(dt)&&(dt=void 0),ot.includes(dt||it||Fe)?{symbol:it&&!(Bl(Fe)&6)?it:Fe,kind:Lt}:void 0),Fe=>!(ot.parents&&!ot.parents.some(it=>so(Fe.parent,it,_t.inheritsFromCache,ne))))}function ri(ot,Ft){let le=G1(ot);const{declarations:_t}=Ft;if(_t){let ne;do{ne=le;for(const Fe of _t){const it=f7(Fe);it&le&&(le|=it)}}while(le!==ne)}return le}e.getIntersectingMeaningFromDeclarations=ri;function ai(ot){return ot.flags&33554432?!(yd(ot)||Im(ot)):$N(ot)?tv(ot):Ls(ot)?!!ot.body:ui(ot)||$2(ot)}function qi(ot,Ft,le){const _t=Ft.getSymbolAtLocation(ot),ne=Ft.getShorthandAssignmentValueSymbol(_t.valueDeclaration);if(ne)for(const Fe of ne.getDeclarations())f7(Fe)&1&&le(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=qi;function Qo(ot,Ft,le){Jo(ot,_t=>{_t.kind===Ft&&le(_t),Qo(_t,Ft,le)})}function Ia(ot){return IV(h7(ot).parent)}function Pn(ot,Ft,le){const _t=rC(ot)?ot.parent:void 0,ne=_t&&le.getTypeAtLocation(_t.expression),Fe=Ei(ne&&(ne.isUnionOrIntersection()?ne.types:ne.symbol===Ft.parent?void 0:[ne]),it=>it.symbol&&it.symbol.flags&96?it.symbol:void 0);return Fe.length===0?void 0:Fe}function Uo(ot){return ot.use===2&&ot.providePrefixAndSuffixTextForRename}})(Cx||(Cx={}));var vC={};x(vC,{createDefinitionInfo:()=>a8,getDefinitionAndBoundSpan:()=>Wit,getDefinitionAtPosition:()=>Jke,getReferenceAtPosition:()=>Xke,getTypeDefinitionAtPosition:()=>wit});function Jke(e,t,r,i,o){var s;const l=Xke(t,r,e),u=l&&[Vit(l.reference.fileName,l.fileName,l.unverified)]||ie;if(l?.file)return u;const d=sp(t,r);if(d===t)return;const{parent:_}=d,h=e.getTypeChecker();if(d.kind===164||Je(d)&&L4(_)&&_.tagName===d){const k=Pit(h,d);if(k!==void 0||d.kind!==164)return k||ie}if(EO(d)){const k=_7(d.parent,d.text);return k?[Vfe(h,k,"label",d.text,void 0)]:void 0}switch(d.kind){case 90:if(!QM(d.parent))break;case 84:const k=Dn(d.parent,YM);if(k)return[Git(k,t)];break}let y;switch(d.kind){case 107:case 135:case 127:y=Ls;const k=Dn(d,y);return k?[Ufe(h,k)]:void 0}if(KI(d)&&nc(d.parent)){const k=d.parent.parent,{symbol:F,failedAliasResolution:W}=uX(k,h,o),G=Un(k.members,nc),j=F?h.symbolToString(F,k):"",J=d.getSourceFile();return Yt(G,Z=>{let{pos:q}=Zh(Z);return q=wa(J.text,q),Vfe(h,Z,"constructor","static {}",j,!1,W,{start:q,length:6})})}let{symbol:E,failedAliasResolution:A}=uX(d,h,o),R=d;if(i&&A){const k=qe([d,...E?.declarations||ie],W=>Dn(W,one)),F=k&&SI(k);F&&({symbol:E,failedAliasResolution:A}=uX(F,h,o),R=F)}if(!E&&P7(R)){const k=(s=e.getResolvedModuleFromModuleSpecifier(R,t))==null?void 0:s.resolvedModule;if(k)return[{name:R.text,fileName:k.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:xd(0,0),failedAliasResolution:A,isAmbient:sd(k.resolvedFileName),unverified:R!==d}]}if(Aa(d)&&(Sc(_)||rd(_))&&(E=_.symbol),!E)return ao(u,Fit(d,h));if(i&&Hn(E.declarations,k=>k.getSourceFile().fileName===t.fileName))return;const N=Uit(h,d);if(N&&!(au(d.parent)&&Hit(N))){const k=Ufe(h,N,A);let F=G=>G!==N;if(h.getRootSymbols(E).some(G=>Mit(G,N))){if(!kl(N))return[k];F=G=>G!==N&&(Mc(G)||fc(G))}const W=tL(h,E,d,A,F)||ie;return d.kind===108?[k,...W]:[...W,k]}if(d.parent.kind===305){const k=h.getShorthandAssignmentValueSymbol(E.valueDeclaration),F=k?.declarations?k.declarations.map(W=>a8(W,h,k,d,!1,A)):ie;return ao(F,Kke(h,d))}if(Tc(d)&&qa(_)&&hf(_.parent)&&d===(_.propertyName||_.name)){const k=NO(d),F=h.getTypeAtLocation(_.parent);return k===void 0?ie:fi(F.isUnion()?F.types:[F],W=>{const G=W.getProperty(k);return G&&tL(h,G,d)})}const P=Kke(h,d);return ao(u,P.length?P:tL(h,E,d,A))}function Mit(e,t){var r;return e===t.symbol||e===t.symbol.parent||od(t.parent)||!TS(t.parent)&&e===((r=ni(t.parent,ch))==null?void 0:r.symbol)}function Kke(e,t){const r=XO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return fi(hz(r,e,i,!1),o=>tL(e,o,t))}return ie}function Pit(e,t){const r=Dn(t,Sc);if(!(r&&r.name))return;const i=Dn(r,ui);if(!i)return;const o=uh(i);if(!o)return;const s=us(o.expression),l=fc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=Fc(r)?e.getTypeOfSymbol(l):e.getDeclaredTypeOfSymbol(l);let d;if(va(r.name)){const _=e.getSymbolAtLocation(r.name);if(!_)return;fM(_)?d=mn(e.getPropertiesOfType(u),h=>h.escapedName===_.escapedName):d=e.getPropertyOfType(u,Vi(_.escapedName))}else d=e.getPropertyOfType(u,Vi(bI(r.name)));if(d)return tL(e,d,t)}function Xke(e,t,r){var i,o;const s=s8(e.referencedFiles,t);if(s){const d=r.getSourceFileFromReference(e,s);return d&&{reference:s,fileName:d.fileName,file:d,unverified:!1}}const l=s8(e.typeReferenceDirectives,t);if(l){const d=(i=r.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l,e))==null?void 0:i.resolvedTypeReferenceDirective,_=d&&r.getSourceFile(d.resolvedFileName);return _&&{reference:l,fileName:_.fileName,file:_,unverified:!1}}const u=s8(e.libReferenceDirectives,t);if(u){const d=r.getLibFileFromReference(u);return d&&{reference:u,fileName:d.fileName,file:d,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const d=aC(e,t);let _;if(P7(d)&&nd(d.text)&&(_=r.getResolvedModuleFromModuleSpecifier(d,e))){const h=(o=_.resolvedModule)==null?void 0:o.resolvedFileName,y=h||ub(ci(e.fileName),d.text);return{file:r.getSourceFile(y),fileName:y,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!h}}}}var Yke=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Lit(e,t){const r=t.symbol.name;if(!Yke.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function $ke(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!Yke.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function kit(e,t,r,i){var o,s;if(Hr(t)&4&&Lit(e,t))return o8(e.getTypeArguments(t)[0],e,r,i);if($ke(e,t)&&t.aliasTypeArguments)return o8(t.aliasTypeArguments[0],e,r,i);if(Hr(t)&32&&t.target&&$ke(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Im(l)&&Bp(l.type)&&l.type.typeArguments)return o8(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function wit(e,t,r){const i=sp(t,r);if(i===t)return;if(eD(i.parent)&&i.parent.name===i)return o8(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=uX(i,e,!1);if(Aa(i)&&(Sc(i.parent)||rd(i.parent))&&(o=i.parent.symbol,s=!1),!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=Oit(o,l,e),d=u&&o8(u,e,i,s),[_,h]=d&&d.length!==0?[u,d]:[l,o8(l,e,i,s)];return h.length?[...kit(e,_,i,s),...h]:!(o.flags&111551)&&o.flags&788968?tL(e,Rd(o,e),i,s):void 0}function o8(e,t,r,i){return fi(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&tL(t,o.symbol,r,i))}function Oit(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&yi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Qa(i))}}function Wit(e,t,r){const i=Jke(e,t,r);if(!i||i.length===0)return;const o=s8(t.referencedFiles,r)||s8(t.typeReferenceDirectives,r)||s8(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:yv(o)};const s=sp(t,r),l=xd(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function Fit(e,t){return Ei(t.getIndexInfosAtLocation(e),r=>r.declaration&&Ufe(t,r.declaration))}function uX(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i?.declarations&&i.flags&2097152&&!r&&zit(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function zit(e,t){return e.kind!==80&&(e.kind!==11||!_b(e.parent))?!1:e.parent===t?!0:t.kind!==275}function Bit(e){if(!rM(e))return!1;const t=Dn(e,r=>od(r)?!0:rM(r)?!1:"quit");return!!t&&lc(t)===5}function tL(e,t,r,i,o){const s=o!==void 0?Un(t.declarations,o):t.declarations,l=!o&&(_()||h());if(l)return l;const u=Un(s,E=>!Bit(E)),d=vt(u)?u:s;return Yt(d,E=>a8(E,e,t,r,!1,i));function _(){if(t.flags&32&&!(t.flags&19)&&(MP(r)||r.kind===137)){const E=mn(s,ui);return E&&y(E.members,!0)}}function h(){return Oq(r)||jq(r)?y(s,!1):void 0}function y(E,A){if(!E)return;const R=E.filter(A?kl:$o),N=R.filter(P=>!!P.body);return R.length?N.length!==0?N.map(P=>a8(P,e,t,r)):[a8(Ga(R),e,t,r,!1,i)]:void 0}}function a8(e,t,r,i,o,s){const l=t.symbolToString(r),u=Tv.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return Vfe(t,e,u,l,d,o,s)}function Vfe(e,t,r,i,o,s,l,u){const d=t.getSourceFile();if(!u){const _=wo(t)||t;u=Vu(_,d)}return{fileName:d.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Qs.toContextSpan(u,d,Qs.getContextNode(t)),isLocal:!jfe(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function Git(e,t){const r=Qs.getContextNode(e),i=Vu(zfe(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Qs.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function jfe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(tv(t.parent)&&t.parent.initializer===t)return jfe(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(Fp(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return jfe(e,t.parent);default:return!1}}function Ufe(e,t,r){return a8(t,e,t.symbol,t,!1,r)}function s8(e,t){return mn(e,r=>O2(r,t))}function Vit(e,t,r){return{fileName:t,textSpan:sc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function jit(e){const t=Dn(e,i=>!rC(i)),r=t?.parent;return r&&TS(r)&&o6(r)===t?r:void 0}function Uit(e,t){const r=jit(t),i=r&&e.getResolvedSignature(r);return ni(i&&i.declaration,o=>$o(o)&&!W_(o))}function Hit(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var pX={};x(pX,{provideInlayHints:()=>Xit});var qit=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Jit(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function Kit(e){return e.includeInlayParameterNameHints==="literals"}function Hfe(e){return e.interactiveInlayHints===!0}function Xit(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),d=Up(t,s),_=r.getTypeChecker(),h=[];return y(t),h;function y(Ee){if(!(!Ee||Ee.getFullWidth()===0)){switch(Ee.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:o.throwIfCancellationRequested()}if(W2(i,Ee.pos,Ee.getFullWidth())&&!(Ci(Ee)&&!my(Ee)))return s.includeInlayVariableTypeHints&&yi(Ee)||s.includeInlayPropertyDeclarationTypeHints&&Mo(Ee)?F(Ee):s.includeInlayEnumMemberValueHints&&_y(Ee)?P(Ee):Jit(s)&&(ea(Ee)||HS(Ee))?W(Ee):(s.includeInlayFunctionParameterTypeHints&&Ls(Ee)&&a4(Ee)&&ve(Ee),s.includeInlayFunctionLikeReturnTypeHints&&E(Ee)&&Z(Ee)),Jo(Ee,y)}}function E(Ee){return $s(Ee)||qs(Ee)||rc(Ee)||Ll(Ee)||Xf(Ee)}function A(Ee,re,Te,Me){let Be=`${Me?"...":""}${Ee}`,lt;Hfe(s)?(lt=[Xe(Be,re),{text:":"}],Be=""):Be+=":",h.push({text:Be,position:Te,kind:"Parameter",whitespaceAfter:!0,displayParts:lt})}function R(Ee,re){h.push({text:typeof Ee=="string"?`: ${Ee}`:"",displayParts:typeof Ee=="string"?void 0:[{text:": "},...Ee],position:re,kind:"Type",whitespaceBefore:!0})}function N(Ee,re){h.push({text:`= ${Ee}`,position:re,kind:"Enum",whitespaceBefore:!0})}function P(Ee){if(Ee.initializer)return;const re=_.getConstantValue(Ee);re!==void 0&&N(re.toString(),Ee.end)}function k(Ee){return Ee.symbol&&Ee.symbol.flags&1536}function F(Ee){if(Ee.initializer===void 0&&!(Mo(Ee)&&!(_.getTypeAtLocation(Ee).flags&1))||Zo(Ee.name)||yi(Ee)&&!Ne(Ee)||Cc(Ee))return;const Te=_.getTypeAtLocation(Ee);if(k(Te))return;const Me=me(Te);if(Me){const Be=typeof Me=="string"?Me:Me.map(ce=>ce.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&lb(Ee.name.getText(),Be))return;R(Me,Ee.name.end)}}function W(Ee){const re=Ee.arguments;if(!re||!re.length)return;const Te=_.getResolvedSignature(Ee);if(Te===void 0)return;let Me=0;for(const Be of re){const lt=us(Be);if(Kit(s)&&!J(lt)){Me++;continue}let ce=0;if(Yf(lt)){const ye=_.getTypeAtLocation(lt.expression);if(_.isTupleType(ye)){const{elementFlags:Ue,fixedLength:Ge}=ye.target;if(Ge===0)continue;const We=ho(Ue,Wt=>!(Wt&1));(We<0?Ge:We)>0&&(ce=We<0?Ge:We)}}const Ce=_.getParameterIdentifierInfoAtPosition(Te,Me);if(Me=Me+(ce||1),Ce){const{parameter:ye,parameterName:Ue,isRestParameter:Ge}=Ce;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!G(lt,Ue))&&!Ge)continue;const at=Vi(Ue);if(j(lt,at))continue;A(at,ye,Be.getStart(),Ge)}}}function G(Ee,re){return Je(Ee)?Ee.text===re:qr(Ee)?Ee.name.text===re:!1}function j(Ee,re){if(!_p(re,Va(u),Xk(t.scriptKind)))return!1;const Te=fg(l,Ee.pos);if(!Te?.length)return!1;const Me=qit(re);return vt(Te,Be=>Me.test(l.substring(Be.pos,Be.end)))}function J(Ee){switch(Ee.kind){case 225:{const re=Ee.operand;return ZE(re)||Je(re)&&OM(re.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{const re=Ee.escapedText;return Y(re)||OM(re)}}return ZE(Ee)}function Z(Ee){if($s(Ee)&&!Is(Ee,21,t)||Wp(Ee)||!Ee.body)return;const Te=_.getSignatureFromDeclaration(Ee);if(!Te)return;const Me=_.getTypePredicateOfSignature(Te);if(Me?.type){const ce=be(Me);if(ce){R(ce,q(Ee));return}}const Be=_.getReturnTypeOfSignature(Te);if(k(Be))return;const lt=me(Be);lt&&R(lt,q(Ee))}function q(Ee){const re=Is(Ee,22,t);return re?re.end:Ee.parameters.end}function ve(Ee){const re=_.getSignatureFromDeclaration(Ee);if(!re)return;let Te=0;for(const Me of Ee.parameters)Ne(Me)&&oe(Me,Rb(Me)?re.thisParameter:re.parameters[Te]),!Rb(Me)&&Te++}function oe(Ee,re){if(Cc(Ee)||re===void 0)return;const Me=K(re);Me!==void 0&&R(Me,Ee.questionToken?Ee.questionToken.end:Ee.name.end)}function K(Ee){const re=Ee.valueDeclaration;if(!re||!Zi(re))return;const Te=_.getTypeOfSymbolAtLocation(Ee,re);if(!k(Te))return me(Te)}function fe(Ee){const Te=eE();return XR(Me=>{const Be=_.typeToTypeNode(Ee,void 0,71286784);C.assertIsDefined(Be,"should always get typenode"),Te.writeNode(4,Be,t,Me)})}function ue(Ee){const Te=eE();return XR(Me=>{const Be=_.typePredicateToTypePredicateNode(Ee,void 0,71286784);C.assertIsDefined(Be,"should always get typePredicateNode"),Te.writeNode(4,Be,t,Me)})}function me(Ee){if(!Hfe(s))return fe(Ee);const Te=_.typeToTypeNode(Ee,void 0,71286784);return C.assertIsDefined(Te,"should always get typeNode"),De(Te)}function be(Ee){if(!Hfe(s))return ue(Ee);const Te=_.typePredicateToTypePredicateNode(Ee,void 0,71286784);return C.assertIsDefined(Te,"should always get typenode"),De(Te)}function De(Ee){const re=[];return Te(Ee),re;function Te(ce){var Ce,ye;if(!ce)return;const Ue=_a(ce.kind);if(Ue){re.push({text:Ue});return}if(ZE(ce)){re.push({text:lt(ce)});return}switch(ce.kind){case 80:C.assertNode(ce,Je);const Ge=Kr(ce),We=ce.symbol&&ce.symbol.declarations&&ce.symbol.declarations.length&&wo(ce.symbol.declarations[0]);We?re.push(Xe(Ge,We)):re.push({text:Ge});break;case 167:C.assertNode(ce,Wu),Te(ce.left),re.push({text:"."}),Te(ce.right);break;case 183:C.assertNode(ce,YI),ce.assertsModifier&&re.push({text:"asserts "}),Te(ce.parameterName),ce.type&&(re.push({text:" is "}),Te(ce.type));break;case 184:C.assertNode(ce,Bp),Te(ce.typeName),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 169:C.assertNode(ce,cl),ce.modifiers&&Be(ce.modifiers," "),Te(ce.name),ce.constraint&&(re.push({text:" extends "}),Te(ce.constraint)),ce.default&&(re.push({text:" = "}),Te(ce.default));break;case 170:C.assertNode(ce,Zi),ce.modifiers&&Be(ce.modifiers," "),ce.dotDotDotToken&&re.push({text:"..."}),Te(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),Te(ce.type));break;case 186:C.assertNode(ce,ID),re.push({text:"new "}),Me(ce),re.push({text:" => "}),Te(ce.type);break;case 187:C.assertNode(ce,VS),re.push({text:"typeof "}),Te(ce.exprName),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 188:C.assertNode(ce,Fu),re.push({text:"{"}),ce.members.length&&(re.push({text:" "}),Be(ce.members,"; "),re.push({text:" "})),re.push({text:"}"});break;case 189:C.assertNode(ce,Tw),Te(ce.elementType),re.push({text:"[]"});break;case 190:C.assertNode(ce,$I),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 203:C.assertNode(ce,xD),ce.dotDotDotToken&&re.push({text:"..."}),Te(ce.name),ce.questionToken&&re.push({text:"?"}),re.push({text:": "}),Te(ce.type);break;case 191:C.assertNode(ce,I4),Te(ce.type),re.push({text:"?"});break;case 192:C.assertNode(ce,x4),re.push({text:"..."}),Te(ce.type);break;case 193:C.assertNode(ce,pv),Be(ce.types," | ");break;case 194:C.assertNode(ce,QI),Be(ce.types," & ");break;case 195:C.assertNode(ce,jS),Te(ce.checkType),re.push({text:" extends "}),Te(ce.extendsType),re.push({text:" ? "}),Te(ce.trueType),re.push({text:" : "}),Te(ce.falseType);break;case 196:C.assertNode(ce,S1),re.push({text:"infer "}),Te(ce.typeParameter);break;case 197:C.assertNode(ce,E1),re.push({text:"("}),Te(ce.type),re.push({text:")"});break;case 199:C.assertNode(ce,YT),re.push({text:`${_a(ce.operator)} `}),Te(ce.type);break;case 200:C.assertNode(ce,US),Te(ce.objectType),re.push({text:"["}),Te(ce.indexType),re.push({text:"]"});break;case 201:C.assertNode(ce,A1),re.push({text:"{ "}),ce.readonlyToken&&(ce.readonlyToken.kind===40?re.push({text:"+"}):ce.readonlyToken.kind===41&&re.push({text:"-"}),re.push({text:"readonly "})),re.push({text:"["}),Te(ce.typeParameter),ce.nameType&&(re.push({text:" as "}),Te(ce.nameType)),re.push({text:"]"}),ce.questionToken&&(ce.questionToken.kind===40?re.push({text:"+"}):ce.questionToken.kind===41&&re.push({text:"-"}),re.push({text:"?"})),re.push({text:": "}),ce.type&&Te(ce.type),re.push({text:"; }"});break;case 202:C.assertNode(ce,fv),Te(ce.literal);break;case 185:C.assertNode(ce,W_),Me(ce),re.push({text:" => "}),Te(ce.type);break;case 206:C.assertNode(ce,r_),ce.isTypeOf&&re.push({text:"typeof "}),re.push({text:"import("}),Te(ce.argument),ce.assertions&&(re.push({text:", { assert: "}),Be(ce.assertions.assertClause.elements,", "),re.push({text:" }"})),re.push({text:")"}),ce.qualifier&&(re.push({text:"."}),Te(ce.qualifier)),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 172:C.assertNode(ce,Iu),(Ce=ce.modifiers)!=null&&Ce.length&&(Be(ce.modifiers," "),re.push({text:" "})),Te(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),Te(ce.type));break;case 182:C.assertNode(ce,Ob),re.push({text:"["}),Be(ce.parameters,", "),re.push({text:"]"}),ce.type&&(re.push({text:": "}),Te(ce.type));break;case 174:C.assertNode(ce,qm),(ye=ce.modifiers)!=null&&ye.length&&(Be(ce.modifiers," "),re.push({text:" "})),Te(ce.name),ce.questionToken&&re.push({text:"?"}),Me(ce),ce.type&&(re.push({text:": "}),Te(ce.type));break;case 180:C.assertNode(ce,XI),Me(ce),ce.type&&(re.push({text:": "}),Te(ce.type));break;case 181:C.assertNode(ce,JM),re.push({text:"new "}),Me(ce),ce.type&&(re.push({text:": "}),Te(ce.type));break;case 208:C.assertNode(ce,mv),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 207:C.assertNode(ce,hf),re.push({text:"{"}),ce.elements.length&&(re.push({text:" "}),Be(ce.elements,", "),re.push({text:" "})),re.push({text:"}"});break;case 209:C.assertNode(ce,qa),Te(ce.name);break;case 225:C.assertNode(ce,QT),re.push({text:_a(ce.operator)}),Te(ce.operand);break;case 204:C.assertNode(ce,Vie),Te(ce.head),ce.templateSpans.forEach(Te);break;case 16:C.assertNode(ce,qI),re.push({text:lt(ce)});break;case 205:C.assertNode(ce,Pj),Te(ce.type),Te(ce.literal);break;case 17:C.assertNode(ce,Rj),re.push({text:lt(ce)});break;case 18:C.assertNode(ce,T4),re.push({text:lt(ce)});break;case 198:C.assertNode(ce,KM),re.push({text:"this"});break;case 168:C.assertNode(ce,va),re.push({text:"["}),Te(ce.expression),re.push({text:"]"});break;default:C.failBadSyntaxKind(ce)}}function Me(ce){ce.typeParameters&&(re.push({text:"<"}),Be(ce.typeParameters,", "),re.push({text:">"})),re.push({text:"("}),Be(ce.parameters,", "),re.push({text:")"})}function Be(ce,Ce){ce.forEach((ye,Ue)=>{Ue>0&&re.push({text:Ce}),Te(ye)})}function lt(ce){switch(ce.kind){case 11:return d===0?`'${O_(ce.text,39)}'`:`"${O_(ce.text,34)}"`;case 16:case 17:case 18:{const Ce=ce.rawText??dV(O_(ce.text,96));switch(ce.kind){case 16:return"`"+Ce+"${";case 17:return"}"+Ce+"${";case 18:return"}"+Ce+"`"}}}return ce.text}}function Y(Ee){return Ee==="undefined"}function Ne(Ee){if((HT(Ee)||yi(Ee)&&ZR(Ee))&&Ee.initializer){const re=us(Ee.initializer);return!(J(re)||HS(re)||za(re)||SS(re))}return!0}function Xe(Ee,re){const Te=re.getSourceFile();return{text:Ee,span:Vu(re,Te),file:Te.fileName}}}var b0={};x(b0,{getDocCommentTemplateAtPosition:()=>aot,getJSDocParameterNameCompletionDetails:()=>oot,getJSDocParameterNameCompletions:()=>iot,getJSDocTagCompletionDetails:()=>iwe,getJSDocTagCompletions:()=>rot,getJSDocTagNameCompletionDetails:()=>not,getJSDocTagNameCompletions:()=>tot,getJsDocCommentsFromDeclarations:()=>Yit,getJsDocTagsFromDeclarations:()=>Zit});var Qke=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Zke,ewe;function Yit(e,t){const r=[];return mJ(e,i=>{for(const o of Qit(i)){const s=gh(o)&&o.tags&&mn(o.tags,u=>u.kind===328&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||gh(o)&&i.kind!==347&&i.kind!==339&&o.tags&&o.tags.some(u=>u.kind===347||u.kind===339)&&!o.tags.some(u=>u.kind===342||u.kind===343))continue;let l=o.comment?bC(o.comment,t):[];s&&s.comment&&(l=l.concat(bC(s.comment,t))),jn(r,l,$it)||r.push(l)}}),Yo(uo(r,[dC()]))}function $it(e,t){return tf(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function Qit(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(wD(e.parent))return[e.parent.parent];default:return XG(e)}}function Zit(e,t){const r=[];return mJ(e,i=>{const o=OT(i);if(!(o.some(s=>s.kind===347||s.kind===339)&&!o.some(s=>s.kind===342||s.kind===343)))for(const s of o)r.push({name:s.tagName.text,text:rwe(s,t)}),r.push(...twe(nwe(s),t))}),r}function twe(e,t){return fi(e,r=>ao([{name:r.tagName.text,text:rwe(r,t)}],twe(nwe(r),t)))}function nwe(e){return GN(e)&&e.isNameFirst&&e.typeExpression&&N1(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function bC(e,t){return typeof e=="string"?[bf(e)]:fi(e,r=>r.kind===322?[bf(r.text)]:Rce(r,t))}function rwe(e,t){const{comment:r,kind:i}=e,o=eot(i);switch(i){case 350:const u=e.typeExpression;return u?s(u):r===void 0?void 0:bC(r,t);case 330:return s(e.class);case 329:return s(e.class);case 346:const d=e,_=[];if(d.constraint&&_.push(bf(d.constraint.getText())),Qe(d.typeParameters)){Qe(_)&&_.push(Vl());const y=d.typeParameters[d.typeParameters.length-1];qe(d.typeParameters,E=>{_.push(o(E.getText())),y!==E&&_.push(uu(28),Vl())})}return r&&_.push(Vl(),...bC(r,t)),_;case 345:case 351:return s(e.typeExpression);case 347:case 339:case 349:case 342:case 348:const{name:h}=e;return h?s(h):r===void 0?void 0:bC(r,t);default:return r===void 0?void 0:bC(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[bf(u),...bC(r,t)]:[o(u),Vl(),...bC(r,t)]:[bf(u)]}}function eot(e){switch(e){case 342:return Sce;case 349:return Ece;case 346:return Ice;case 347:case 339:return Ace;default:return bf}}function tot(){return Zke||(Zke=Yt(Qke,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Dx.SortText.LocationPriority})))}var not=iwe;function rot(){return ewe||(ewe=Yt(Qke,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Dx.SortText.LocationPriority})))}function iwe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[bf(e)],documentation:ie,tags:void 0,codeActions:void 0}}function iot(e){if(!Je(e.name))return ie;const t=e.name.text,r=e.parent,i=r.parent;return $o(i)?Ei(i.parameters,o=>{if(!Je(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&_f(l)&&Je(l.name)&&l.name.escapedText===s)||t!==void 0&&!po(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:Dx.SortText.LocationPriority}}):[]}function oot(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[bf(e)],documentation:ie,tags:void 0,codeActions:void 0}}function aot(e,t,r,i){const o=zi(t,r),s=Dn(o,gh);if(s&&(s.comment!==void 0||Qe(s.tags)))return;const l=o.getStart(t);if(!s&&l0;if(N&&!F){const W=P+e+A+" * ",G=l===r?e+A:"";return{newText:W+e+N+A+k+G,caretOffset:W.length}}return{newText:P+k,caretOffset:3}}function sot(e,t){const{text:r}=e,i=Cm(t,e);let o=i;for(;o<=t&&jh(r.charCodeAt(o));o++);return r.slice(i,o)}function lot(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{const u=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function cot(e,t){return`${e} * @returns${t}`}function dot(e,t){return Jte(e,r=>qfe(r,t))}function qfe(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:const r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:Nz(r,t)};case 304:return qfe(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{const o=e;return o.type&&W_(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:Nz(o.type,t)}:{commentOwner:e}}case 244:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?uot(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:Nz(l,t)}:{commentOwner:e}}case 308:return"quit";case 268:return e.parent.kind===268?void 0:{commentOwner:e};case 245:return qfe(e.expression,t);case 227:{const o=e;return lc(o)===0?"quit":$o(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:Nz(o.right,t)}:{commentOwner:e}}case 173:const i=e.initializer;if(i&&(qs(i)||$s(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:Nz(i,t)}}}function Nz(e,t){return!!t?.generateReturnInDocTemplate&&(W_(e)||$s(e)&&St(e.body)||Ls(e)&&e.body&&ta(e.body)&&!!Ab(e.body,r=>r))}function uot(e){for(;e.kind===218;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return mn(e.members,kl)}}var fX={};x(fX,{mapCode:()=>pot});function pot(e,t,r,i,o,s){return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},l=>{const u=t.map(_=>fot(e,_)),d=r&&Yo(r);for(const _ of u)mot(e,l,_,d)})}function fot(e,t){const r=[{parse:()=>ax("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:s=>s.statements},{parse:()=>ax("__mapcode_class_content_nodes.ts",`class __class { ${t} }`,e.languageVersion,!0,e.scriptKind),body:s=>s.statements[0].members}],i=[];for(const{parse:s,body:l}of r){const u=s(),d=l(u);if(d.length&&u.parseDiagnostics.length===0)return d;d.length&&i.push({sourceFile:u,body:d})}i.sort((s,l)=>s.sourceFile.parseDiagnostics.length-l.sourceFile.parseDiagnostics.length);const{body:o}=i[0];return o}function mot(e,t,r,i){Sc(r[0])||bS(r[0])?hot(e,t,r,i):_ot(e,t,r,i)}function hot(e,t,r,i){let o;if(!i||!i.length?o=mn(e.statements,Np(ui,yd)):o=qe(i,l=>Dn(zi(e,l.start),Np(ui,yd))),!o)return;const s=o.members.find(l=>r.some(u=>Mz(u,l)));if(s){const l=ga(o.members,u=>r.some(d=>Mz(d,u)));qe(r,mX),t.replaceNodeRangeWithNodes(e,s,l,r);return}qe(r,mX),t.insertNodesAfter(e,o.members[o.members.length-1],r)}function _ot(e,t,r,i){if(!i?.length){t.insertNodesAtEndOfFile(e,r,!1);return}for(const s of i){const l=Dn(zi(e,s.start),u=>Np(ta,Xi)(u)&&vt(u.statements,d=>r.some(_=>Mz(_,d))));if(l){const u=l.statements.find(d=>r.some(_=>Mz(_,d)));if(u){const d=ga(l.statements,_=>r.some(h=>Mz(h,_)));qe(r,mX),t.replaceNodeRangeWithNodes(e,u,d,r);return}}}let o=e.statements;for(const s of i){const l=Dn(zi(e,s.start),ta);if(l){o=l.statements;break}}qe(r,mX),t.insertNodesAfter(e,o[o.length-1],r)}function Mz(e,t){var r,i,o,s,l,u;return e.kind!==t.kind?!1:e.kind===177?e.kind===t.kind:rd(e)&&rd(t)?e.name.getText()===t.name.getText():ZT(e)&&ZT(t)||wj(e)&&wj(t)?e.expression.getText()===t.expression.getText():e0(e)&&e0(t)?((r=e.initializer)==null?void 0:r.getText())===((i=t.initializer)==null?void 0:i.getText())&&((o=e.incrementor)==null?void 0:o.getText())===((s=t.incrementor)==null?void 0:s.getText())&&((l=e.condition)==null?void 0:l.getText())===((u=t.condition)==null?void 0:u.getText()):n1(e)&&n1(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Fb(e)&&Fb(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function mX(e){owe(e),e.parent=void 0}function owe(e){e.pos=-1,e.end=-1,e.forEachChild(owe)}var T0={};x(T0,{compareImportsOrRequireStatements:()=>eme,compareModuleSpecifiers:()=>wot,getImportDeclarationInsertionIndex:()=>Mot,getImportSpecifierInsertionIndex:()=>Pot,getNamedImportSpecifierComparerWithDetection:()=>Not,getOrganizeImportsStringComparerWithDetection:()=>Cot,organizeImports:()=>got,testCoalesceExports:()=>kot,testCoalesceImports:()=>Lot});function got(e,t,r,i,o,s){const l=Rr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",d=u,_=s==="RemoveUnused"||s==="All",h=e.statements.filter(Tl),y=Kfe(e,h),{comparersToTest:E,typeOrdersToTest:A}=Jfe(o),R=E[0],N={moduleSpecifierComparer:typeof o.organizeImportsIgnoreCase=="boolean"?R:void 0,namedImportComparer:typeof o.organizeImportsIgnoreCase=="boolean"?R:void 0,typeOrder:o.organizeImportsTypeOrder};if(typeof o.organizeImportsIgnoreCase!="boolean"&&({comparer:N.moduleSpecifierComparer}=lwe(y,E)),!N.typeOrder||typeof o.organizeImportsIgnoreCase!="boolean"){const W=Qfe(h,E,A);if(W){const{namedImportComparer:G,typeOrder:j}=W;N.namedImportComparer=N.namedImportComparer??G,N.typeOrder=N.typeOrder??j}}y.forEach(W=>k(W,N)),s!=="RemoveUnused"&&vot(e).forEach(W=>F(W,N.namedImportComparer));for(const W of e.statements.filter(Tu)){if(!W.body)continue;if(Kfe(e,W.body.statements.filter(Tl)).forEach(j=>k(j,N)),s!=="RemoveUnused"){const j=W.body.statements.filter(hc);F(j,N.namedImportComparer)}}return l.getChanges();function P(W,G){if(Qe(W)===0)return;Cr(W[0],1024);const j=d?MR(W,q=>Pz(q.moduleSpecifier)):[W],J=u?Cp(j,(q,ve)=>Yfe(q[0].moduleSpecifier,ve[0].moduleSpecifier,N.moduleSpecifierComparer??R)):j,Z=fi(J,q=>Pz(q[0].moduleSpecifier)||q[0].moduleSpecifier===void 0?G(q):q);if(Z.length===0)l.deleteNodes(e,W,{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include},!0);else{const q={leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include,suffix:by(r,t.options)};l.replaceNodeWithNodes(e,W[0],Z,q);const ve=l.nodeHasTrailingComment(e,W[0],q);l.deleteNodes(e,W.slice(1),{trailingTriviaOption:Rr.TrailingTriviaOption.Include},ve)}}function k(W,G){const j=G.moduleSpecifierComparer??R,J=G.namedImportComparer??R,Z=G.typeOrder??"last",q=c8({organizeImportsTypeOrder:Z},J);P(W,oe=>(_&&(oe=bot(oe,e,i)),d&&(oe=awe(oe,j,q,e)),u&&(oe=Cp(oe,(K,fe)=>eme(K,fe,j))),oe))}function F(W,G){const j=c8(o,G);P(W,J=>swe(J,j))}}function Jfe(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[Zfe(e,e.organizeImportsIgnoreCase)]:[Zfe(e,!0),Zfe(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function Kfe(e,t){const r=mg(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&yot(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function yot(e,t,r){const i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()=2))return!0;return!1}function vot(e){const t=[],r=e.statements,i=Qe(r);let o=0,s=0;for(;oKfe(e,l))}function bot(e,t,r){const i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),d=[];for(const h of e){const{importClause:y,moduleSpecifier:E}=h;if(!y){d.push(h);continue}let{name:A,namedBindings:R}=y;if(A&&!_(A)&&(A=void 0),R)if(Ng(R))_(R.name)||(R=void 0);else{const N=R.elements.filter(P=>_(P.name));N.length{if(l.attributes){let u=l.attributes.token+" ";for(const d of Cp(l.attributes.elements,(_,h)=>Bd(_.name.text,h.name.text)))u+=d.name.text+":",u+=ds(d.value)?`"${d.value.text}"`:d.value.getText()+" ";return u}return""}),s=[];for(const l in o){const u=o[l],{importWithoutClause:d,typeOnlyImports:_,regularImports:h}=Tot(u);d&&s.push(d);for(const y of[h,_]){const E=y===_,{defaultImports:A,namespaceImports:R,namedImports:N}=y;if(!E&&A.length===1&&R.length===1&&N.length===0){const q=A[0];s.push(l8(q,q.importClause.name,R[0].importClause.namedBindings));continue}const P=Cp(R,(q,ve)=>t(q.importClause.namedBindings.name.text,ve.importClause.namedBindings.name.text));for(const q of P)s.push(l8(q,void 0,q.importClause.namedBindings));const k=Rc(A),F=Rc(N),W=k??F;if(!W)continue;let G;const j=[];if(A.length===1)G=A[0].importClause.name;else for(const q of A)j.push(L.createImportSpecifier(!1,L.createIdentifier("default"),q.importClause.name));j.push(...Aot(N));const J=L.createNodeArray(Cp(j,r),F?.importClause.namedBindings.elements.hasTrailingComma),Z=J.length===0?G?void 0:L.createNamedImports(ie):F?L.updateNamedImports(F.importClause.namedBindings,J):L.createNamedImports(J);i&&Z&&F?.importClause.namedBindings&&!_1(F.importClause.namedBindings,i)&&Cr(Z,2),E&&G&&Z?(s.push(l8(W,G,void 0)),s.push(l8(F??W,void 0,Z))):s.push(l8(W,G,Z))}}return s}function swe(e,t){if(e.length===0)return e;const{exportWithoutClause:r,namedExports:i,typeOnlyExports:o}=l(e),s=[];r&&s.push(r);for(const u of[i,o]){if(u.length===0)continue;const d=[];d.push(...fi(u,y=>y.exportClause&&$f(y.exportClause)?y.exportClause.elements:ie));const _=Cp(d,t),h=u[0];s.push(L.updateExportDeclaration(h,h.modifiers,h.isTypeOnly,h.exportClause&&($f(h.exportClause)?L.updateNamedExports(h.exportClause,_):L.updateNamespaceExport(h.exportClause,h.exportClause.name)),h.moduleSpecifier,h.attributes))}return s;function l(u){let d;const _=[],h=[];for(const y of u)y.exportClause===void 0?d=d||y:y.isTypeOnly?h.push(y):_.push(y);return{exportWithoutClause:d,namedExports:_,typeOnlyExports:h}}}function l8(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.phaseModifier,t,r),e.moduleSpecifier,e.attributes)}function Xfe(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return PT(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return PT(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Yfe(e,t,r){const i=e===void 0?void 0:Pz(e),o=t===void 0?void 0:Pz(t);return PT(i===void 0,o===void 0)||PT(nd(i),nd(o))||r(i,o)}function Sot(e){return e.map(t=>Pz($fe(t))||"")}function $fe(e){var t;switch(e.kind){case 272:return(t=ni(e.moduleReference,hy))==null?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function Eot(e,t){const r=Oa(t)&&t.text;return Bo(r)&&vt(e.moduleAugmentations,i=>Oa(i)&&i.text===r)}function Aot(e){return fi(e,t=>Yt(Iot(t),r=>r.name&&r.propertyName&&AS(r.name)===AS(r.propertyName)?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function Iot(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&o_(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function lwe(e,t){const r=[];return e.forEach(i=>{r.push(Sot(i))}),dwe(r,t)}function Qfe(e,t,r){let i=!1;const o=e.filter(d=>{var _,h;const y=(h=ni((_=d.importClause)==null?void 0:_.namedBindings,o_))==null?void 0:h.elements;return y?.length?(!i&&y.some(E=>E.isTypeOnly)&&y.some(E=>!E.isTypeOnly)&&(i=!0),!0):!1});if(o.length===0)return;const s=o.map(d=>{var _,h;return(h=ni((_=d.importClause)==null?void 0:_.namedBindings,o_))==null?void 0:h.elements}).filter(d=>d!==void 0);if(!i||r.length===0){const d=dwe(s.map(_=>_.map(h=>h.name.text)),t);return{namedImportComparer:d.comparer,typeOrder:r.length===1?r[0]:void 0,isSorted:d.isSorted}}const l={first:1/0,last:1/0,inline:1/0},u={first:t[0],last:t[0],inline:t[0]};for(const d of t){const _={first:0,last:0,inline:0};for(const h of s)for(const y of r)_[y]=(_[y]??0)+cwe(h,(E,A)=>Xfe(E,A,d,{organizeImportsTypeOrder:y}));for(const h of r){const y=h;_[y]0&&r++;return r}function dwe(e,t){let r,i=1/0;for(const o of t){let s=0;for(const l of e){if(l.length<=1)continue;const u=cwe(l,o);s+=u}sXfe(i,o,r,e)}function Not(e,t,r){const{comparersToTest:i,typeOrdersToTest:o}=Jfe(t),s=Qfe([e],i,o);let l=c8(t,i[0]),u;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(s){const{namedImportComparer:d,typeOrder:_,isSorted:h}=s;u=h,l=c8({organizeImportsTypeOrder:_},d)}else if(r){const d=Qfe(r.statements.filter(Tl),i,o);if(d){const{namedImportComparer:_,typeOrder:h,isSorted:y}=d;u=y,l=c8({organizeImportsTypeOrder:h},_)}}}return{specifierComparer:l,isSorted:u}}function Mot(e,t,r){const i=ib(e,t,Us,(o,s)=>eme(o,s,r));return i<0?~i:i}function Pot(e,t,r){const i=ib(e,t,Us,r);return i<0?~i:i}function eme(e,t,r){return Yfe($fe(e),$fe(t),r)||xot(e,t)}function Lot(e,t,r,i){const o=Lz(t),s=c8({organizeImportsTypeOrder:i?.organizeImportsTypeOrder},o);return awe(e,o,s,r)}function kot(e,t,r){return swe(e,(o,s)=>Xfe(o,s,Lz(t),{organizeImportsTypeOrder:r?.organizeImportsTypeOrder??"last"}))}function wot(e,t,r){const i=Lz(!!r);return Yfe(e,t,i)}var hX={};x(hX,{collectElements:()=>Oot});function Oot(e,t){const r=[];return Wot(e,t,r),Fot(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start),r}function Wot(e,t,r){let i=40,o=0;const s=e.statements,l=s.length;for(;o1&&i.push(kz(s,l,"comment"))}}function fwe(e,t,r,i){HI(e)||tme(e.pos,t,r,i)}function kz(e,t,r){return Nx(sc(e,t),r)}function Bot(e,t){switch(e.kind){case 242:if($o(e.parent))return Got(e.parent,e,t);switch(e.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return h(e.parent);case 259:const A=e.parent;if(A.tryBlock===e)return h(e.parent);if(A.finallyBlock===e){const R=Is(A,98,t);if(R)return h(R)}default:return Nx(Vu(e,t),"code")}case 269:return h(e.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return h(e);case 190:return h(e,!1,!$I(e.parent),23);case 297:case 298:return y(e.statements);case 211:return _(e);case 210:return _(e,23);case 285:return s(e);case 289:return l(e);case 286:case 287:return u(e.attributes);case 229:case 15:return d(e);case 208:return h(e,!1,!qa(e.parent),23);case 220:return o(e);case 214:return i(e);case 218:return E(e);case 276:case 280:case 301:return r(e)}function r(A){if(!A.elements.length)return;const R=Is(A,19,t),N=Is(A,20,t);if(!(!R||!N||Hf(R.pos,N.pos,t)))return _X(R,N,A,t,!1,!1)}function i(A){if(!A.arguments.length)return;const R=Is(A,21,t),N=Is(A,22,t);if(!(!R||!N||Hf(R.pos,N.pos,t)))return _X(R,N,A,t,!1,!0)}function o(A){if(ta(A.body)||zu(A.body)||Hf(A.body.getFullStart(),A.body.getEnd(),t))return;const R=sc(A.body.getFullStart(),A.body.getEnd());return Nx(R,"code",Vu(A))}function s(A){const R=sc(A.openingElement.getStart(t),A.closingElement.getEnd()),N=A.openingElement.tagName.getText(t),P="<"+N+">...";return Nx(R,"code",R,!1,P)}function l(A){const R=sc(A.openingFragment.getStart(t),A.closingFragment.getEnd());return Nx(R,"code",R,!1,"<>...")}function u(A){if(A.properties.length!==0)return kz(A.getStart(t),A.getEnd(),"code")}function d(A){if(!(A.kind===15&&A.text.length===0))return kz(A.getStart(t),A.getEnd(),"code")}function _(A,R=19){return h(A,!1,!Nd(A.parent)&&!ea(A.parent),R)}function h(A,R=!1,N=!0,P=19,k=P===19?20:24){const F=Is(e,P,t),W=Is(e,k,t);return F&&W&&_X(F,W,A,t,R,N)}function y(A){return A.length?Nx(yv(A),"code"):void 0}function E(A){if(Hf(A.getStart(),A.getEnd(),t))return;const R=sc(A.getStart(),A.getEnd());return Nx(R,"code",Vu(A))}}function Got(e,t,r){const i=Vot(e,t,r),o=Is(t,20,r);return i&&o&&_X(i,o,e,r,e.kind!==220)}function _X(e,t,r,i,o=!1,s=!0){const l=sc(s?e.getFullStart():e.getStart(i),t.getEnd());return Nx(l,"code",Vu(r,i),o)}function Nx(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function Vot(e,t,r){if(_re(e.parameters,r)){const i=Is(e,21,r);if(i)return i}return Is(t,19,r)}var wz={};x(wz,{getRenameInfo:()=>jot,nodeIsEligibleForRename:()=>hwe});function jot(e,t,r,i){const o=S7(sp(t,r));if(hwe(o)){const s=Uot(o,e.getTypeChecker(),t,e,i);if(s)return s}return gX(f.You_cannot_rename_this_element)}function Uot(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(ds(e)){const E=T7(e,t);if(E&&(E.flags&128||E.flags&1048576&&Hn(E.types,A=>!!(A.flags&128))))return nme(e.text,e.text,"string","",e,r)}else if(zq(e)){const E=Rl(e);return nme(E,E,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>Hot(i,E)))return gX(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Je(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(ds(e)&&xk(e))return o.allowRenameOfImportPath?Jot(e,r,s):void 0;const u=qot(r,s,t,o);if(u)return gX(u);const d=Tv.getSymbolKind(t,s,e),_=Dce(e)||ff(e)&&e.parent.kind===168?Sm(jf(e)):void 0,h=_||t.symbolToString(s),y=_||t.getFullyQualifiedName(s);return nme(h,y,d,Tv.getSymbolModifiers(t,s),e,r)}function Hot(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&xl(r.fileName,".d.ts")}function qot(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&mn(t.declarations,u=>xu(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=mwe(e.path);if(s===void 0)return vt(o,l=>WO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const l of o){const u=mwe(l.getSourceFile().path);if(u){const d=Math.min(s.length,u.length);for(let _=0;_<=d;_++)if(Bd(s[_],u[_])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function mwe(e){const t=Vd(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function Jot(e,t,r){if(!nd(e.text))return gX(f.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&mn(r.declarations,Xi);if(!i)return;const o=nl(e.text,"/index")||nl(e.text,"/index.js")?void 0:vZ(Au(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,d=xd(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:d}}function nme(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Kot(o,s)}}function gX(e){return{canRename:!1,localizedErrorMessage:Ho(e)}}function Kot(e,t){let r=e.getStart(t),i=e.getWidth(t);return ds(e)&&(r+=1,i-=2),xd(r,i)}function hwe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return g7(e);default:return!1}}var d8={};x(d8,{getArgumentInfoForCompletions:()=>Zot,getSignatureHelpItems:()=>Xot});function Xot(e,t,r,i,o){const s=e.getTypeChecker(),l=LP(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(gx(t,r,l)||_v(t,r)))return;const d=!!i&&i.kind==="invoked",_=pat(l,r,t,s,d);if(!_)return;o.throwIfCancellationRequested();const h=Yot(_,s,t,l,u);return o.throwIfCancellationRequested(),h?s.runWithCancellationToken(o,y=>h.kind===0?Ewe(h.candidates,h.resolvedSignature,_,t,y):mat(h.symbol,_,t,y)):wu(t)?Qot(_,e,o):void 0}function Yot({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!$ot(o,e.node,i))return;const l=[],u=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:u}}case 1:{const{called:l}=e;if(s&&!_we(o,i,Je(l)?l.parent:l))return;const u=Xq(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Qa(u)};const d=r.getSymbolAtLocation(l);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return C.assertNever(e)}}function $ot(e,t,r){if(!Uh(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return jn(i,e);case 28:{const o=b7(e);return!!o&&jn(i,o)}case 30:return _we(e,r,t.expression);default:return!1}}function Qot(e,t,r){if(e.invocation.kind===2)return;const i=Twe(e.invocation),o=qr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Ln(t.getSourceFiles(),l=>Ln(l.getNamedDeclarations().get(o),u=>{const d=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),_=d&&d.getCallSignatures();if(_&&_.length)return s.runWithCancellationToken(r,h=>Ewe(_,_[0],e,l,h,!0))}))}function _we(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=jc(i,t,o,!0);if(s)return ip(r,s);o=o.parent}return C.fail("Could not find preceding token")}function Zot(e,t,r,i){const o=ywe(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function gwe(e,t,r,i){const o=eat(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=lat(i,s),d=dat(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:d}}function eat(e,t,r){if(e.kind===30||e.kind===21)return{list:fat(e.parent,e,t),argumentIndex:0};{const i=b7(e);return i&&{list:i,argumentIndex:sat(r,i,e)}}}function ywe(e,t,r,i){const{parent:o}=e;if(Uh(o)){const s=o,l=gwe(e,t,r,i);if(!l)return;const{list:u,argumentIndex:d,argumentCount:_,argumentsSpan:h}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:h,argumentIndex:d,argumentCount:_}}else{if(T1(e)&&$T(o))return RO(e,t,r)?ime(o,0,r):void 0;if(qI(e)&&o.parent.kind===216){const s=o,l=s.parent;C.assert(s.kind===229);const u=RO(e,t,r)?0:1;return ime(l,u,r)}else if(ND(o)&&$T(o.parent.parent)){const s=o,l=o.parent.parent;if(T4(e)&&!RO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),d=cat(u,e,t,r);return ime(l,d,r)}else if(au(o)){const s=o.attributes.pos,l=wa(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:xd(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=Yq(e,r);if(s){const{called:l,nTypeArguments:u}=s,d={kind:1,called:l},_=sc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:d,argumentsSpan:_,argumentIndex:u,argumentCount:u+1}}return}}}function tat(e,t,r,i){return nat(e,t,r,i)||ywe(e,t,r,i)}function vwe(e){return Nr(e.parent)?vwe(e.parent):e}function rme(e){return Nr(e.left)?rme(e.left)+1:2}function nat(e,t,r,i){const o=rat(e);if(o===void 0)return;const s=iat(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:d,argumentsSpan:_}=s,h=l.getNonNullableType(),y=h.symbol;if(y===void 0)return;const E=tl(h.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:oat(y)},argumentsSpan:_,argumentIndex:u,argumentCount:d}}function rat(e){switch(e.kind){case 21:case 28:return e;default:return Dn(e.parent,t=>Zi(t)?!0:qa(t)||hf(t)||mv(t)?!1:"quit")}}function iat(e,t,r,i){const{parent:o}=e;switch(o.kind){case 218:case 175:case 219:case 220:const s=gwe(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:d}=s,_=Ll(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return _&&{contextualType:_,argumentIndex:l,argumentCount:u,argumentsSpan:d};case 227:{const h=vwe(o),y=i.getContextualType(h),E=e.kind===21?0:rme(o)-1,A=rme(h);return y&&{contextualType:y,argumentIndex:E,argumentCount:A,argumentsSpan:Vu(o)}}default:return}}function oat(e){return e.name==="__type"&&Ln(e.declarations,t=>{var r;return W_(t)?(r=ni(t.parent,ch))==null?void 0:r.symbol:void 0})||e}function aat(e,t){const r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){const{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;const s=ho(i,l=>!(l&1));return s<0?o:s}return 0}function sat(e,t,r){return bwe(e,t,r)}function lat(e,t){return bwe(e,t,void 0)}function bwe(e,t,r){const i=t.getChildren();let o=0,s=!1;for(const l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(Yf(l)){o+=aat(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ga(i).kind===28?o+1:o}function cat(e,t,r,i){return C.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Ete(t)?RO(t,r,i)?0:e+2:e+1}function ime(e,t,r){const i=T1(e.template)?1:e.template.templateSpans.length+1;return t!==0&&C.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:uat(e,r),argumentIndex:t,argumentCount:i}}function dat(e,t){const r=e.getFullStart(),i=wa(t.text,e.getEnd(),!1);return xd(r,i-r)}function uat(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===229&&Ga(r.templateSpans).literal.getFullWidth()===0&&(o=wa(t.text,o,!1)),xd(i,o-i)}function pat(e,t,r,i,o){for(let s=e;!Xi(s)&&(o||!ta(s));s=s.parent){C.assert(ip(s.parent,s),"Not a subspan",()=>`Child: ${C.formatSyntaxKind(s.kind)}, parent: ${C.formatSyntaxKind(s.parent.kind)}`);const l=tat(s,t,r,i);if(l)return l}}function fat(e,t,r){const i=e.getChildren(r),o=i.indexOf(t);return C.assert(o>=0&&i.length>o+1),i[o+1]}function Twe(e){return e.kind===0?o6(e.node):e.called}function Swe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var Oz=70246400;function Ewe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,d,_){var h;const y=Swe(s),E=s.kind===2?s.symbol:d.getSymbolAtLocation(Twe(s))||_&&((h=t.declaration)==null?void 0:h.symbol),A=E?zP(d,E,_?u:void 0,void 0):ie,R=Yt(e,W=>_at(W,A,r,d,y,u));let N=0,P=0;for(let W=0;W1)){let j=0;for(const J of G){if(J.isVariadic||J.parameters.length>=i){N=P+j;break}j++}}P+=G.length}C.assert(N!==-1);const k={items:bs(R,Us),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},F=k.items[N];if(F.isVariadic){const W=ho(F.parameters,G=>!!G.isRest);-1Iwe(y,r,i,o,l)),d=e.getDocumentationComment(r),_=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,uu(30)],suffixDisplayParts:[uu(32)],separatorDisplayParts:Awe,parameters:u,documentation:d,tags:_}}var Awe=[uu(28),Vl()];function _at(e,t,r,i,o,s){const l=(r?yat:vat)(e,i,o,s);return Yt(l,({isVariadic:u,parameters:d,prefix:_,suffix:h})=>{const y=[...t,..._],E=[...h,...gat(e,o,i)],A=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:Awe,parameters:d,documentation:A,tags:R}})}function gat(e,t,r){return Kb(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 yat(e,t,r,i){const o=(e.target||e).typeParameters,s=eE(),l=(o||ie).map(d=>Iwe(d,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,Oz)]:[];return t.getExpandedParameters(e).map(d=>{const _=L.createNodeArray([...u,...Yt(d,y=>t.symbolToParameterDeclaration(y,r,Oz))]),h=Kb(y=>{s.writeList(2576,_,i,y)});return{isVariadic:!1,parameters:l,prefix:[uu(30)],suffix:[uu(32),...h]}})}function vat(e,t,r,i){const o=eE(),s=Kb(d=>{if(e.typeParameters&&e.typeParameters.length){const _=L.createNodeArray(e.typeParameters.map(h=>t.typeParameterToDeclaration(h,r,Oz)));o.writeList(53776,_,i,d)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?d=>!0:d=>{var _;return!!(d.length&&((_=ni(d[d.length-1],gg))==null?void 0:_.links.checkFlags)&32768)}:d=>!1;return l.map(d=>({isVariadic:u(d),parameters:d.map(_=>bat(_,t,r,i,o)),prefix:[...s,uu(21)],suffix:[uu(22)]}))}function bat(e,t,r,i,o){const s=Kb(d=>{const _=t.symbolToParameterDeclaration(e,r,Oz);o.writeNode(4,_,i,d)}),l=t.isOptionalParameter(e.valueDeclaration),u=gg(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function Iwe(e,t,r,i,o){const s=Kb(l=>{const u=t.typeParameterToDeclaration(e,r,Oz);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var yX={};x(yX,{getSmartSelectionRange:()=>Tat});function Tat(e,t){var r,i;let o={textSpan:sc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const d=Aat(s);if(!d.length)break;for(let _=0;_e)break e;const A=dg(pb(t.text,y.end));if(A&&A.kind===2&&u(A.pos,A.end),Sat(t,e,y)){if(mG(y)&&Ls(s)&&!Hf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),ta(y)||ND(y)||qI(y)||T4(y)||h&&qI(h)||gd(y)&&cc(s)||OD(y)&&gd(s)||yi(y)&&OD(s)&&d.length===1||r0(y)||hv(y)||N1(y)){s=y;break}if(ND(s)&&E&&xF(E)){const k=y.getFullStart()-2,F=E.getStart()+1;l(k,F)}const R=OD(y)&&Iat(h)&&xat(E)&&!Hf(h.getStart(),E.getStart(),t);let N=R?h.getEnd():y.getStart();const P=R?E.getStart():Rat(t,y);if(rf(y)&&((r=y.jsDoc)!=null&&r.length)&&l(Qa(y.jsDoc).getStart(),P),OD(y)){const k=y.getChildren()[0];k&&rf(k)&&((i=k.jsDoc)!=null&&i.length)&&k.getStart()!==y.pos&&(N=Math.min(N,Qa(k.jsDoc).getStart()))}l(N,P),(Oa(y)||fI(y))&&l(N+1,P-1),s=y;break}if(_===d.length-1)break e}}return o;function l(d,_){if(d!==_){const h=sc(d,_);(!o||!cC(h,o.textSpan)&&ete(h,e))&&(o={textSpan:h,...o&&{parent:o}})}}function u(d,_){l(d,_);let h=d;for(;t.text.charCodeAt(h)===47;)h++;l(h,_)}}function Sat(e,t,r){return C.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=u8(s,({kind:u})=>u===23||u===169||u===24);return[r,p8(vX(l,({kind:u})=>u===59)),o]}if(Iu(e)){const r=u8(e.getChildren(),l=>l===e.name||jn(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===321?r[0]:void 0,o=i?r.slice(1):r,s=vX(o,({kind:l})=>l===59);return i?[i,p8(s)]:s}if(Zi(e)){const r=u8(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=u8(r,o=>o===r[0]||o===e.questionToken);return vX(i,({kind:o})=>o===64)}return qa(e)?vX(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function u8(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(p8(i)),i=void 0),r.push(o));return i&&r.push(p8(i)),r}function vX(e,t,r=!0){if(e.length<2)return e;const i=ho(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=Ga(e),u=r&&l.kind===27,d=e.slice(i+1,u?e.length-1:void 0),_=b2([o.length?p8(o):void 0,s,d.length?p8(d):void 0]);return u?_.concat(l):_}function p8(e){return C.assertGreaterThanOrEqual(e.length,1),mh(a0.createSyntaxList(e),e[0].pos,Ga(e).end)}function Iat(e){const t=e&&e.kind;return t===19||t===23||t===21||t===287}function xat(e){const t=e&&e.kind;return t===20||t===24||t===22||t===288}function Rat(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Tv={};x(Tv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Cat,getSymbolKind:()=>Rwe,getSymbolModifiers:()=>Dat});var xwe=70246400;function Rwe(e,t,r){const i=Dwe(e,t,r);if(i!=="")return i;const o=hD(t);return o&32?ll(t,232)?"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 Dwe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&Qa(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&&St(r)||kS(r))return"parameter";const o=hD(t);if(o&3)return _J(t)?"parameter":t.valueDeclaration&&ZR(t.valueDeclaration)?"const":t.valueDeclaration&&dk(t.valueDeclaration)?"using":t.valueDeclaration&&ck(t.valueDeclaration)?"await using":qe(t.declarations,XF)?"let":Mwe(t)?"local var":"var";if(o&16)return Mwe(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=qe(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function Cwe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Qe(r)&&H7(t)&&vt(r,s=>!H7(s))?65536:0,o=kP(t,i);if(o)return o.split(",")}return[]}function Dat(e,t){if(!t)return"";const r=new Set(Cwe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&qe(Cwe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Do(r.values()).join(","):""}function Nwe(e,t,r,i,o,s,l,u,d,_){var h;const y=[];let E=[],A=[];const R=hD(t);let N=l&1?Dwe(e,t,o):"",P=!1;const k=o.kind===110&&a6(o)||kS(o);let F,W,G=!1;const j={canIncreaseExpansionDepth:!1,truncated:!1};let J=!1;if(o.kind===110&&!k)return{displayParts:[Hp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(N!==""||R&32||R&2097152){if(N==="getter"||N==="setter"){const Te=mn(t.declarations,Me=>Me.name===o&&Me.kind!==212);if(Te)switch(Te.kind){case 178:N="getter";break;case 179:N="setter";break;case 173:N="accessor";break;default:C.assertNever(Te)}else N="property"}let Ee;if(s??(s=k?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===212){const Te=o.parent.name;(Te===o||Te&&Te.getFullWidth()===0)&&(o=o.parent)}let re;if(Uh(o)?re=o:(wq(o)||MP(o)||o.parent&&(au(o.parent)||$T(o.parent))&&$o(t.valueDeclaration))&&(re=o.parent),re){Ee=e.getResolvedSignature(re);const Te=re.kind===215||ea(re)&&re.expression.kind===108,Me=Te?s.getConstructSignatures():s.getCallSignatures();if(Ee&&!jn(Me,Ee.target)&&!jn(Me,Ee)&&(Ee=Me.length?Me[0]:void 0),Ee){switch(Te&&R&32?(N="constructor",De(s.symbol,N)):R&2097152?(N="alias",Y(N),y.push(Vl()),Te&&(Ee.flags&4&&(y.push(Hp(128)),y.push(Vl())),y.push(Hp(105)),y.push(Vl())),be(t)):De(t,N),N){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(uu(59)),y.push(Vl()),!(Hr(s)&16)&&s.symbol&&(Xr(y,zP(e,s.symbol,i,void 0,5)),y.push(dC())),Te&&(Ee.flags&4&&(y.push(Hp(128)),y.push(Vl())),y.push(Hp(105)),y.push(Vl())),Ne(Ee,Me,262144);break;default:Ne(Ee,Me)}P=!0,G=Me.length>1}}else if(jq(o)&&!(R&98304)||o.kind===137&&o.parent.kind===177){const Te=o.parent;if(t.declarations&&mn(t.declarations,Be=>Be===(o.kind===137?Te.parent:Te))){const Be=Te.kind===177?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(Te)?Ee=Be[0]:Ee=e.getSignatureFromDeclaration(Te),Te.kind===177?(N="constructor",De(s.symbol,N)):De(Te.kind===180&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,N),Ee&&Ne(Ee,Be),P=!0,G=Be.length>1}}}if(R&32&&!P&&!k){oe();const Ee=ll(t,232);Ee&&(Y("local class"),y.push(Vl())),me(t,l)||(Ee||(y.push(Hp(86)),y.push(Vl())),be(t),Xe(t,r))}if(R&64&&l&2&&(ve(),me(t,l)||(y.push(Hp(120)),y.push(Vl()),be(t),Xe(t,r))),R&524288&&l&2&&(ve(),y.push(Hp(156)),y.push(Vl()),be(t),Xe(t,r),y.push(Vl()),y.push(FP(64)),y.push(Vl()),Xr(y,LO(e,o.parent&&Gm(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608,d,_,j))),R&384&&(ve(),me(t,l)||(vt(t.declarations,Ee=>t0(Ee)&&FT(Ee))&&(y.push(Hp(87)),y.push(Vl())),y.push(Hp(94)),y.push(Vl()),be(t,void 0))),R&1536&&!k&&(ve(),!me(t,l))){const Ee=ll(t,268),re=Ee&&Ee.name&&Ee.name.kind===80;y.push(Hp(re?145:144)),y.push(Vl()),be(t)}if(R&262144&&l&2)if(ve(),y.push(uu(21)),y.push(bf("type parameter")),y.push(uu(22)),y.push(Vl()),be(t),t.parent)K(),be(t.parent,i),Xe(t.parent,i);else{const Ee=ll(t,169);if(Ee===void 0)return C.fail();const re=Ee.parent;if(re)if($o(re)){K();const Te=e.getSignatureFromDeclaration(re);re.kind===181?(y.push(Hp(105)),y.push(Vl())):re.kind!==180&&re.name&&be(re.symbol),Xr(y,yJ(e,Te,r,32))}else Im(re)&&(K(),y.push(Hp(156)),y.push(Vl()),be(re.symbol),Xe(re.symbol,r))}if(R&8){N="enum member",De(t,"enum member");const Ee=(h=t.declarations)==null?void 0:h[0];if(Ee?.kind===307){const re=e.getConstantValue(Ee);re!==void 0&&(y.push(Vl()),y.push(FP(64)),y.push(Vl()),y.push(Tp(nne(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(ve(),!P||E.length===0&&A.length===0){const Ee=e.getAliasedSymbol(t);if(Ee!==t&&Ee.declarations&&Ee.declarations.length>0){const re=Ee.declarations[0],Te=wo(re);if(Te&&!P){const Me=HF(re)&&di(re,128),Be=t.name!=="default"&&!Me,lt=Nwe(e,Ee,zn(re),i,Te,s,l,Be?t:Ee,d,_);y.push(...lt.displayParts),y.push(dC()),F=lt.documentation,W=lt.tags,j&<.canIncreaseVerbosityLevel&&(j.canIncreaseExpansionDepth=!0)}else F=Ee.getContextualDocumentationComment(re,e),W=Ee.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:y.push(Hp(95)),y.push(Vl()),y.push(Hp(145));break;case 278:y.push(Hp(95)),y.push(Vl()),y.push(Hp(t.declarations[0].isExportEquals?64:90));break;case 282:y.push(Hp(95));break;default:y.push(Hp(102))}y.push(Vl()),be(t),qe(t.declarations,Ee=>{if(Ee.kind===272){const re=Ee;if(BT(re))y.push(Vl()),y.push(FP(64)),y.push(Vl()),y.push(Hp(149)),y.push(uu(21)),y.push(Tp(Rl(tM(re)),8)),y.push(uu(22));else{const Te=e.getSymbolAtLocation(re.moduleReference);Te&&(y.push(Vl()),y.push(FP(64)),y.push(Vl()),be(Te,i))}return!0}})}if(!P)if(N!==""){if(s){if(k?(ve(),y.push(Hp(110))):De(t,N),N==="property"||N==="accessor"||N==="getter"||N==="setter"||N==="JSX attribute"||R&3||N==="local var"||N==="index"||N==="using"||N==="await using"||k){if(y.push(uu(59)),y.push(Vl()),s.symbol&&s.symbol.flags&262144&&N!=="index"){const Ee=Kb(re=>{const Te=e.typeParameterToDeclaration(s,i,xwe,void 0,void 0,d,_,j);q().writeNode(4,Te,zn(jo(i)),re)},d);Xr(y,Ee)}else Xr(y,LO(e,s,i,void 0,d,_,j));if(gg(t)&&t.links.target&&gg(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const Ee=t.links.target.links.tupleLabelDeclaration;C.assertNode(Ee.name,Je),y.push(Vl()),y.push(uu(21)),y.push(bf(Kr(Ee.name))),y.push(uu(22))}}else if(R&16||R&8192||R&16384||R&131072||R&98304||N==="method"){const Ee=s.getNonNullableType().getCallSignatures();Ee.length&&(Ne(Ee[0],Ee),G=Ee.length>1)}}}else N=Rwe(e,t,o);if(E.length===0&&!G&&(E=t.getContextualDocumentationComment(i,e)),E.length===0&&R&4&&t.parent&&t.declarations&&qe(t.parent.declarations,Ee=>Ee.kind===308))for(const Ee of t.declarations){if(!Ee.parent||Ee.parent.kind!==227)continue;const re=e.getSymbolAtLocation(Ee.parent.right);if(re&&(E=re.getDocumentationComment(e),A=re.getJsDocTags(e),E.length>0))break}if(E.length===0&&Je(o)&&t.valueDeclaration&&qa(t.valueDeclaration)){const Ee=t.valueDeclaration,re=Ee.parent,Te=Ee.propertyName||Ee.name;if(Je(Te)&&hf(re)){const Me=jf(Te),Be=e.getTypeAtLocation(re);E=Ln(Be.isUnion()?Be.types:[Be],lt=>{const ce=lt.getProperty(Me);return ce?ce.getDocumentationComment(e):void 0})||ie}}A.length===0&&!G&&!nM(o)&&(A=t.getContextualJsDocTags(i,e)),E.length===0&&F&&(E=F),A.length===0&&W&&(A=W);const Z=!j.truncated&&j.canIncreaseExpansionDepth;return{displayParts:y,documentation:E,symbolKind:N,tags:A.length===0?void 0:A,canIncreaseVerbosityLevel:_!==void 0?Z:void 0};function q(){return eE()}function ve(){y.length&&y.push(dC()),oe()}function oe(){u&&(Y("alias"),y.push(Vl()))}function K(){y.push(Vl()),y.push(Hp(103)),y.push(Vl())}function fe(Ee,re){if(_===void 0)return!1;const Te=Ee.flags&96?e.getDeclaredTypeOfSymbol(Ee):e.getTypeOfSymbolAtLocation(Ee,o);return!Te||e.isLibType(Te)?!1:0<_?!0:(re&&(re.canIncreaseExpansionDepth=!0),!1)}function ue(Ee){let re=0;return Ee&1&&(re|=111551),Ee&2&&(re|=788968),Ee&4&&(re|=1920),re}function me(Ee,re){if(J)return!0;if(fe(Ee,j)){const Te=ue(re),Me=Kb(Be=>{const lt=e.getEmitResolver().symbolToDeclarations(Ee,Te,17408,d,_!==void 0?_-1:void 0,j),ce=q(),Ce=Ee.valueDeclaration&&zn(Ee.valueDeclaration);lt.forEach((ye,Ue)=>{Ue>0&&Be.writeLine(),ce.writeNode(4,ye,Ce,Be)})},d);return Xr(y,Me),J=!0,!0}return!1}function be(Ee,re){let Te;u&&Ee===t&&(Ee=u),N==="index"&&(Te=e.getIndexInfosOfIndexSymbol(Ee));let Me=[];Ee.flags&131072&&Te?(Ee.parent&&(Me=zP(e,Ee.parent)),Me.push(uu(23)),Te.forEach((Be,lt)=>{Me.push(...LO(e,Be.keyType)),lt!==Te.length-1&&(Me.push(Vl()),Me.push(uu(52)),Me.push(Vl()))}),Me.push(uu(24))):Me=zP(e,Ee,re||r,void 0,7),Xr(y,Me),t.flags&16777216&&y.push(uu(58))}function De(Ee,re){ve(),re&&(Y(re),Ee&&!vt(Ee.declarations,Te=>$s(Te)||(qs(Te)||fc(Te))&&!Te.name)&&(y.push(Vl()),be(Ee)))}function Y(Ee){switch(Ee){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":y.push(gJ(Ee));return;default:y.push(uu(21)),y.push(gJ(Ee)),y.push(uu(22));return}}function Ne(Ee,re,Te=0){Xr(y,yJ(e,Ee,i,Te|32,d,_,j)),re.length>1&&(y.push(Vl()),y.push(uu(21)),y.push(FP(40)),y.push(Tp((re.length-1).toString(),7)),y.push(Vl()),y.push(bf(re.length===2?"overload":"overloads")),y.push(uu(22))),E=Ee.getDocumentationComment(e),A=Ee.getJsDocTags(),re.length>1&&E.length===0&&A.length===0&&(E=re[0].getDocumentationComment(e),A=re[0].getJsDocTags().filter(Me=>Me.name!=="deprecated"))}function Xe(Ee,re){const Te=Kb(Me=>{const Be=e.symbolToTypeParameterDeclarations(Ee,re,xwe);q().writeList(53776,Be,zn(jo(re)),Me)});Xr(y,Te)}}function Cat(e,t,r,i,o,s=G1(o),l,u,d){return Nwe(e,t,r,i,o,void 0,s,l,u,d)}function Mwe(e){return e.parent?!1:qe(e.declarations,t=>{if(t.kind===219)return!0;if(t.kind!==261&&t.kind!==263)return!1;for(let r=t.parent;!xS(r);r=r.parent)if(r.kind===308||r.kind===269)return!1;return!0})}var Rr={};x(Rr,{ChangeTracker:()=>Pat,LeadingTriviaOption:()=>kwe,TrailingTriviaOption:()=>wwe,applyChanges:()=>cme,assignPositionsToNode:()=>EX,createWriter:()=>Wwe,deleteNode:()=>Ey,getAdjustedEndPosition:()=>Mx,isThisTypeAnnotatable:()=>Mat,isValidLocationToAddComment:()=>Fwe});function Pwe(e){const t=e.__pos;return C.assert(typeof t=="number"),t}function ome(e,t){C.assert(typeof t=="number"),e.__pos=t}function Lwe(e){const t=e.__end;return C.assert(typeof t=="number"),t}function ame(e,t){C.assert(typeof t=="number"),e.__end=t}var kwe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(kwe||{}),wwe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(wwe||{});function Owe(e,t){return wa(e,t,!1,!0)}function Nat(e,t){let r=t;for(;r0?1:0;let E=Tb(_M(e,_)+y,e);return E=Owe(e.text,E),Tb(_M(e,E),e)}function sme(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=pb(e.text,i);if(s){const l=_M(e,t.end);for(const u of s){if(u.kind===2||_M(e,u.pos)>l)break;if(_M(e,u.end)>l)return wa(e.text,u.end,!0,!0)}}}}function Mx(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const d=ao(pb(e.text,o),fg(e.text,o)),_=(i=d?.[d.length-1])==null?void 0:i.end;return _||o}const l=sme(e,t,r);if(l)return l;const u=wa(e.text,o,!0);return u!==o&&(s===2||ru(e.text.charCodeAt(u-1)))?u:o}function bX(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===211)}function Mat(e){return qs(e)||rc(e)}var Pat=class dve{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new dve(by(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=dve.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){C.assertEqual(t.fileName,r.fileName);for(const i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:R7(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,m8(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=K1(t,s,i,o),u=Mx(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!sme(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:wa(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=K1(t,r,o),l=Mx(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=K1(t,r,o),l=i===void 0?t.text.length:K1(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=f8){this.replaceRange(t,m8(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=f8){this.replaceRange(t,m8(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=f8){this.replaceRangeWithNodes(t,m8(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,m8(t,r,r,f8),i)}replaceNodeRangeWithNodes(t,r,i,o,s=f8){this.replaceRangeWithNodes(t,m8(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=f8){return!!sme(t,r,i)}nextCommaToken(t,r){const i=iE(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){const o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,Uf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Uf(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){const o=Bat(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(ru(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};No(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){const o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=hm()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=Rc(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,K1(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,K1(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Qa(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,L.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){const s=Tb(r,t),l=Nce(t.text,s),u=Fwe(t,l),d=aC(t,u?l:i),_=t.text.slice(s,l),h=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${_}`;this.insertText(t,d.getStart(t),h)}insertJsdocCommentBefore(t,r,i){const o=r.getStart(t);if(r.jsDoc)for(const u of r.jsDoc)this.deleteRange(t,{pos:Cm(u.getStart(t),t),end:Mx(t,u,{})});const s=w7(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=fi(r.jsDoc,s=>Bo(s.comment)?L.createJSDocText(s.comment):s.comment),o=dg(r.jsDoc);return o&&Hf(o.pos,o.end,t)&&Qe(i)===0?void 0:L.createNodeArray(uo(i,L.createJSDocText(` `)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Lat(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){const o=bs(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,d)=>{const _=kat(u,l);return _&&(o[d]=_),!!_}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Un(bs(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,Uf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if($o(r)){if(o=Is(r,22,t),!o){if(!$s(r))return!1;o=Qa(r.parameters)}}else o=(r.kind===261?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){const o=Is(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(Is(r,21,t)||Qa(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return ji(t)||Sc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:yi(t)?{suffix:", "}:Zi(t)?Zi(r)?{suffix:", "}:{}:Oa(t)&&Tl(t.parent)||o_(t)?{suffix:", "}:xu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:C.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=Rc(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){const o=mn(r.body.statements,s=>ad(s)&&a1(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){const o=tl(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,L.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){const o=K1(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:ru(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){const o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,TX(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of TX(r)){if(O6(o,s,t))return;const l=s.getStart(t),u=Lc.SmartIndenter.findFirstNonWhitespaceColumn(Cm(l,t),l,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;o=s}return i}computeIndentationForNewMember(t,r){const i=r.getStart(t);return Lc.SmartIndenter.findFirstNonWhitespaceColumn(Cm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=TX(r).length===0,l=!this.classesWithNodesInsertedAtStart.has(ls(r));l&&this.classesWithNodesInsertedAtStart.set(ls(r),{node:r,sourceFile:t});const u=za(r)&&(!Vf(t)||!s),d=za(r)&&Vf(t)&&s&&!l;return{indentation:i,prefix:(d?",":"")+this.newLineCharacter,suffix:u?",":yd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){const o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){const o=this.insertNodeAfterWorker(t,r,Qa(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return Gat(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Uf(r.end),L.createToken(27)),Mx(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&ji(r)?i.prefix?` ${i.prefix}`:` `:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:", "};case 304:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 170:return{};default:return C.assert(ji(t)||RF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(C.assert(!r.name),r.kind===220){const o=Is(r,39,t),s=Is(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),Ey(this,t,o)):(this.insertText(t,Qa(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,L.createToken(22))),r.body.kind!==242&&(this.insertNodesAt(t,r.body.getStart(t),[L.createToken(19),L.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[L.createToken(27),L.createToken(20)],{joiner:" "}))}else{const o=Is(r,r.kind===219?100:86,t).end;this.insertNodeAt(t,o,L.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){const s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Hf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Lc.SmartIndenter.getContainingList(r,t)){if(!o){C.fail("node is not a list element");return}const s=YR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=zi(t,r.end);if(u&&bX(r,u)){const d=o[s+1],_=Owe(t.text,d.getFullStart()),h=`${_a(u.kind)}${t.text.substring(u.end,_)}`;this.insertNodesAt(t,_,[i],{suffix:h})}}else{const u=r.getStart(t),d=Cm(u,t);let _,h=!1;if(o.length===1)_=28;else{const y=jc(r.pos,t);_=bX(r,y)?y.kind:28,h=Cm(o[s-1].getStart(t),t)!==d}if((Nat(t.text,r.end)||!Hf(o.pos,o.end,t))&&(h=!0),h){this.replaceRange(t,Uf(l),L.createToken(_));const y=Lc.SmartIndenter.findFirstNonWhitespaceColumn(d,u,t,this.formatContext.options);let E=wa(t.text,l,!0,!1);for(;E!==l&&ru(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Uf(E),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Uf(l),i,{prefix:`${_a(_)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,ej(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=Oat(t,r);if(i!==void 0&&o!==void 0){const s=TX(t).length===0,l=Hf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Uf(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&ice(o.node,i))||(No(i)?this.deleteRange(r,tj(r,i)):dme.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=Lc.SmartIndenter.getContainingList(r,i);if(r!==Ga(o))return;const s=vl(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:lme(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=SX.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(SX.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}};function Lat(e){if(e.kind!==220)return e;const t=e.parent.kind===173?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function kat(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{const r=e,i=t;return Je(r.name)&&Je(i.name)&&r.name.escapedText===i.name.escapedText?L.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 343:return L.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return L.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function lme(e,t){return wa(e.text,K1(e,t,{leadingTriviaOption:1}),!1,!0)}function wat(e,t,r,i){const o=lme(e,i);if(r===void 0||Hf(Mx(e,t,{}),o,e))return o;const s=jc(i.getStart(e),e);if(bX(t,s)){const l=jc(t.getStart(e),e);if(bX(r,l)){const u=wa(e.text,s.getEnd(),!0,!0);if(Hf(l.getStart(e),s.getStart(e),e))return ru(e.text.charCodeAt(u-1))?u-1:u;if(ru(e.text.charCodeAt(u)))return u}}return o}function Oat(e,t){const r=Is(e,19,t),i=Is(e,20,t);return[r?.end,i?.end]}function TX(e){return za(e)?e.properties:e.members}var SX;(e=>{function t(u,d,_,h){return Ei(MR(u,y=>y.sourceFile.path),y=>{const E=y[0].sourceFile,A=Cp(y,(N,P)=>N.range.pos-P.range.pos||N.range.end-P.range.end);for(let N=0;N`${JSON.stringify(A[N].range)} and ${JSON.stringify(A[N+1].range)}`);const R=Ei(A,N=>{const P=yv(N.range),k=N.kind===1?zn(bl(N.node))??N.sourceFile:N.kind===2?zn(bl(N.nodes[0]))??N.sourceFile:N.sourceFile,F=o(N,k,E,d,_,h);if(!(P.length===F.length&&zce(k.text,F,P.start)))return DO(P,F)});return R.length>0?{fileName:E.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,d,_,h){const y=i(Z6(u),d,_,h);return{fileName:u,textChanges:[DO(xd(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,d,_,h){const y=fi(d,R=>R.statements.map(N=>N===4?"":l(N,R.oldFile,_).text)).join(_),E=ax("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),A=Lc.formatDocument(E,h);return cme(y,A)+_}e.newFileChangesWorker=i;function o(u,d,_,h,y,E){var A;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:R={},range:{pos:N}}=u,P=W=>s(W,d,_,N,R,h,y,E),k=u.kind===2?u.nodes.map(W=>LR(P(W),h)).join(((A=u.options)==null?void 0:A.joiner)||h):P(u.node),F=R.indentation!==void 0||Cm(N,d)===N?k:k.replace(/^\s+/,"");return(R.prefix||"")+F+(!R.suffix||nl(F,R.suffix)?"":R.suffix)}function s(u,d,_,h,{indentation:y,prefix:E,delta:A},R,N,P){const{node:k,text:F}=l(u,d,R);P&&P(k,F);const W=J7(N,d),G=y!==void 0?y:Lc.SmartIndenter.getIndentation(h,_,W,E===R||Cm(h,d)===h);A===void 0&&(A=Lc.SmartIndenter.shouldIndentChildNode(W,u)&&W.indentSize||0);const j={text:F,getLineAndCharacterOfPosition(Z){return ca(this,Z)}},J=Lc.formatNodeGivenIndentation(k,j,d.languageVariant,G,A,{...N,options:W});return cme(F,J)}function l(u,d,_){const h=Wwe(_),y=BO(_);return Ub({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},h).writeNode(4,u,d,h),{text:h.getText(),node:EX(u)}}e.getNonformattedText=l})(SX||(SX={}));function cme(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(Ml(i))}`}return e}function Wat(e){return wa(e,0)===e.length}var Fat={...iO,factory:fw(iO.factory.flags|1,iO.factory.baseFactory)};function EX(e){const t=On(e,EX,Fat,zat,EX),r=Fs(t)?t:Object.create(t);return mh(r,Pwe(e),Lwe(e)),r}function zat(e,t,r,i,o){const s=Xn(e,t,r,i,o);if(!s)return s;C.assert(e);const l=s===e?L.createNodeArray(s.slice(0)):s;return mh(l,Pwe(e),Lwe(e)),l}function Wwe(e){let t=0;const r=Bk(e),i=Y=>{Y&&ome(Y,t)},o=Y=>{Y&&ame(Y,t)},s=Y=>{Y&&ome(Y,t)},l=Y=>{Y&&ame(Y,t)},u=Y=>{Y&&ome(Y,t)},d=Y=>{Y&&ame(Y,t)};function _(Y,Ne){if(Ne||!Wat(Y)){t=r.getTextPos();let Xe=0;for(;pg(Y.charCodeAt(Y.length-Xe-1));)Xe++;t-=Xe}}function h(Y){r.write(Y),_(Y,!1)}function y(Y){r.writeComment(Y)}function E(Y){r.writeKeyword(Y),_(Y,!1)}function A(Y){r.writeOperator(Y),_(Y,!1)}function R(Y){r.writePunctuation(Y),_(Y,!1)}function N(Y){r.writeTrailingSemicolon(Y),_(Y,!1)}function P(Y){r.writeParameter(Y),_(Y,!1)}function k(Y){r.writeProperty(Y),_(Y,!1)}function F(Y){r.writeSpace(Y),_(Y,!1)}function W(Y){r.writeStringLiteral(Y),_(Y,!1)}function G(Y,Ne){r.writeSymbol(Y,Ne),_(Y,!1)}function j(Y){r.writeLine(Y)}function J(){r.increaseIndent()}function Z(){r.decreaseIndent()}function q(){return r.getText()}function ve(Y){r.rawWrite(Y),_(Y,!1)}function oe(Y){r.writeLiteral(Y),_(Y,!0)}function K(){return r.getTextPos()}function fe(){return r.getLine()}function ue(){return r.getColumn()}function me(){return r.getIndent()}function be(){return r.isAtStartOfLine()}function De(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:d,write:h,writeComment:y,writeKeyword:E,writeOperator:A,writePunctuation:R,writeTrailingSemicolon:N,writeParameter:P,writeProperty:k,writeSpace:F,writeStringLiteral:W,writeSymbol:G,writeLine:j,increaseIndent:J,decreaseIndent:Z,getText:q,rawWrite:ve,writeLiteral:oe,getTextPos:K,getLine:fe,getColumn:ue,getIndent:me,isAtStartOfLine:be,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:De}}function Bat(e){let t;for(const _ of e.statements)if(Jh(_))t=_;else break;let r=0;const i=e.text;if(t)return r=t.end,d(),r;const o=hF(i);o!==void 0&&(r=o.length,d());const s=fg(i,r);if(!s)return r;let l,u;for(const _ of s){if(_.kind===3){if(jF(i,_.pos)){l={range:_,pinnedOrTripleSlash:!0};continue}}else if(AG(i,_.pos,_.end)){l={range:_,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const h=e.getLineAndCharacterOfPosition(_.pos).line,y=e.getLineAndCharacterOfPosition(l.range.end).line;if(h>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const h=e.getLineAndCharacterOfPosition(_.end).line;if(u{function t(s,l,u,d){switch(d.kind){case 170:{const A=d.parent;$s(A)&&A.parameters.length===1&&!Is(A,21,u)?s.replaceNodeWithText(u,d,"()"):h8(s,l,u,d);break}case 273:case 272:const _=u.imports.length&&d===Qa(u.imports).parent||d===mn(u.statements,vI);Ey(s,u,d,{leadingTriviaOption:_?0:rf(d)?2:3});break;case 209:const h=d.parent;h.kind===208&&d!==Ga(h.elements)?Ey(s,u,d):h8(s,l,u,d);break;case 261:o(s,l,u,d);break;case 169:h8(s,l,u,d);break;case 277:const E=d.parent;E.elements.length===1?i(s,u,E):h8(s,l,u,d);break;case 275:i(s,u,d);break;case 27:Ey(s,u,d,{trailingTriviaOption:0});break;case 100:Ey(s,u,d,{leadingTriviaOption:0});break;case 264:case 263:Ey(s,u,d,{leadingTriviaOption:rf(d)?2:3});break;default:d.parent?Jm(d.parent)&&d.parent.name===d?r(s,u,d.parent):ea(d.parent)&&jn(d.parent.arguments,d)?h8(s,l,u,d):Ey(s,u,d):Ey(s,u,d)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)Ey(s,l,u.parent);else{const d=u.name.getStart(l),_=zi(l,u.name.end);if(_&&_.kind===28){const h=wa(l.text,_.end,!1,!0);s.deleteRange(l,{pos:d,end:h})}else Ey(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const d=C.checkDefined(zi(l,u.pos-1));s.deleteRange(l,{pos:d.getStart(l),end:u.end})}else{const d=UT(u,273);Ey(s,l,d)}}function o(s,l,u,d){const{parent:_}=d;if(_.kind===300){s.deleteNodeRange(u,Is(_,21,u),Is(_,22,u));return}if(_.declarations.length!==1){h8(s,l,u,d);return}const h=_.parent;switch(h.kind){case 251:case 250:s.replaceNode(u,d,L.createObjectLiteralExpression());break;case 249:Ey(s,u,_);break;case 244:Ey(s,u,h,{leadingTriviaOption:rf(h)?2:3});break;default:C.assertNever(h)}}})(dme||(dme={}));function Ey(e,t,r,i={leadingTriviaOption:1}){const o=K1(t,r,i),s=Mx(t,r,i);e.deleteRange(t,{pos:o,end:s})}function h8(e,t,r,i){const o=C.checkDefined(Lc.SmartIndenter.getContainingList(i,r)),s=YR(o,i);if(C.assert(s!==-1),o.length===1){Ey(e,r,i);return}C.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:lme(r,i),end:s===o.length-1?Mx(r,i,{}):wat(r,i,o[s-1],o[s+1])})}var Lc={};x(Lc,{FormattingContext:()=>Bwe,FormattingRequestKind:()=>zwe,RuleAction:()=>Gwe,RuleFlags:()=>Vwe,SmartIndenter:()=>f_,anyContext:()=>AX,createTextRangeWithKind:()=>DX,formatDocument:()=>Pst,formatNodeGivenIndentation:()=>zst,formatOnClosingCurly:()=>Mst,formatOnEnter:()=>Dst,formatOnOpeningCurly:()=>Nst,formatOnSemicolon:()=>Cst,formatSelection:()=>Lst,getAllRules:()=>jwe,getFormatContext:()=>bst,getFormattingScanner:()=>ume,getIndentationString:()=>Ime,getRangeOfEnclosingComment:()=>mOe});var zwe=(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))(zwe||{}),Bwe=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=C.checkDefined(e),this.currentTokenParent=C.checkDefined(t),this.nextTokenSpan=C.checkDefined(r),this.nextTokenParent=C.checkDefined(i),this.contextNode=C.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=Is(e,19,this.sourceFile),r=Is(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}},Vat=mg(99,!1,0),jat=mg(99,!1,1);function ume(e,t,r,i,o){const s=t===1?jat:Vat;s.setText(e),s.resetTokenState(r);let l=!0,u,d,_,h,y;const E=o({advance:A,readTokenInfo:j,readEOFTokenRange:Z,isOnToken:q,isOnEOF:ve,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:K,skipToStartOf:fe,getTokenFullStart:()=>y?.token.pos??s.getTokenStart(),getStartPos:()=>y?.token.pos??s.getTokenStart()});return y=void 0,s.setText(void 0),E;function A(){y=void 0,s.getTokenFullStart()!==r?l=!!d&&Ga(d).kind===4:s.scan(),u=void 0,d=void 0;let me=s.getTokenFullStart();for(;me(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))(Gwe||{}),Vwe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Vwe||{});function jwe(){const e=[];for(let J=0;J<=166;J++)J!==1&&e.push(J);function t(...J){return{tokens:e.filter(Z=>!J.some(q=>q===Z)),isSpecific:!1}}const r={tokens:e,isSpecific:!1},i=nL([...e,3]),o=nL([...e,1]),s=Hwe(83,166),l=Hwe(30,79),u=[103,104,165,130,142,152],d=[46,47,55,54],_=[9,10,80,21,23,19,110,105],h=[80,21,110,105],y=[80,22,24,105],E=[80,21,110,105],A=[80,22,24,105],R=[2,3],N=[80,...rJ],P=i,k=nL([80,32,3,86,95,102]),F=nL([22,3,92,113,98,93,85]),W=[oi("IgnoreBeforeComment",r,R,AX,1),oi("IgnoreAfterLineComment",2,r,AX,1),oi("NotSpaceBeforeColon",r,59,[eo,Wz,Kwe],16),oi("SpaceAfterColon",59,r,[eo,Wz,ast],4),oi("NoSpaceBeforeQuestionMark",r,58,[eo,Wz,Kwe],16),oi("SpaceAfterQuestionMarkInConditionalOperator",58,r,[eo,Jat],4),oi("NoSpaceAfterQuestionMark",58,r,[eo,qat],16),oi("NoSpaceBeforeDot",r,[25,29],[eo,vst],16),oi("NoSpaceAfterDot",[25,29],r,[eo],16),oi("NoSpaceBetweenImportParenInImportType",102,21,[eo,ist],16),oi("NoSpaceAfterUnaryPrefixOperator",d,_,[eo,Wz],16),oi("NoSpaceAfterUnaryPreincrementOperator",46,h,[eo],16),oi("NoSpaceAfterUnaryPredecrementOperator",47,E,[eo],16),oi("NoSpaceBeforeUnaryPostincrementOperator",y,46,[eo,dOe],16),oi("NoSpaceBeforeUnaryPostdecrementOperator",A,47,[eo,dOe],16),oi("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[eo,Xb],4),oi("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[eo,Xb],4),oi("SpaceAfterAddWhenFollowedByPreincrement",40,46,[eo,Xb],4),oi("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[eo,Xb],4),oi("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[eo,Xb],4),oi("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[eo,Xb],4),oi("NoSpaceAfterCloseBrace",20,[28,27],[eo],16),oi("NewLineBeforeCloseBraceInBlockContext",i,20,[Ywe],8),oi("SpaceAfterCloseBrace",20,t(22),[eo,Yat],4),oi("SpaceBetweenCloseBraceAndElse",20,93,[eo],4),oi("SpaceBetweenCloseBraceAndWhile",20,117,[eo],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[eo,nOe],16),oi("SpaceAfterConditionalClosingParen",22,23,[Fz],4),oi("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Zwe],16),oi("SpaceAfterStarInGeneratorDeclaration",42,80,[Zwe],4),oi("SpaceAfterFunctionInFuncDecl",100,r,[X1],4),oi("NewLineAfterOpenBraceInBlockContext",19,r,[Ywe],8),oi("SpaceAfterGetSetInMember",[139,153],80,[X1],4),oi("NoSpaceBetweenYieldKeywordAndStar",127,42,[eo,cOe],16),oi("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[eo,cOe],4),oi("NoSpaceBetweenReturnAndSemicolon",107,27,[eo],16),oi("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[eo],4),oi("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[eo,cst],4),oi("NoSpaceBeforeOpenParenInFuncCall",r,21,[eo,Zat,est],16),oi("SpaceBeforeBinaryKeywordOperator",r,u,[eo,Xb],4),oi("SpaceAfterBinaryKeywordOperator",u,r,[eo,Xb],4),oi("SpaceAfterVoidOperator",116,r,[eo,mst],4),oi("SpaceBetweenAsyncAndOpenParen",134,21,[rst,eo],4),oi("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[eo],4),oi("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[eo],16),oi("SpaceBeforeJsxAttribute",r,80,[ost,eo],4),oi("SpaceBeforeSlashInJsxOpeningElement",r,44,[aOe,eo],4),oi("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[aOe,eo],16),oi("NoSpaceBeforeEqualInJsxAttribute",r,64,[iOe,eo],16),oi("NoSpaceAfterEqualInJsxAttribute",64,r,[iOe,eo],16),oi("NoSpaceBeforeJsxNamespaceColon",80,59,[oOe],16),oi("NoSpaceAfterJsxNamespaceColon",59,80,[oOe],16),oi("NoSpaceAfterModuleImport",[144,149],21,[eo],16),oi("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[eo],4),oi("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[eo],4),oi("SpaceAfterModuleName",11,19,[dst],4),oi("SpaceBeforeArrow",r,39,[eo],4),oi("SpaceAfterArrow",39,r,[eo],4),oi("NoSpaceAfterEllipsis",26,80,[eo],16),oi("NoSpaceAfterOptionalParameters",58,[22,28],[eo,Wz],16),oi("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[eo,ust],16),oi("NoSpaceBeforeOpenAngularBracket",N,30,[eo,zz],16),oi("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[eo,zz],16),oi("NoSpaceAfterOpenAngularBracket",30,r,[eo,zz],16),oi("NoSpaceBeforeCloseAngularBracket",r,32,[eo,zz],16),oi("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[eo,zz,Xat,fst],16),oi("SpaceBeforeAt",[22,80],60,[eo],4),oi("NoSpaceAfterAt",60,r,[eo],16),oi("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[lst],4),oi("NoSpaceBeforeNonNullAssertionOperator",r,54,[eo,hst],16),oi("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[eo,pst],16),oi("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[eo],4)],G=[oi("SpaceAfterConstructor",137,21,[Tf("insertSpaceAfterConstructor"),eo],4),oi("NoSpaceAfterConstructor",137,21,[p_("insertSpaceAfterConstructor"),eo],16),oi("SpaceAfterComma",28,r,[Tf("insertSpaceAfterCommaDelimiter"),eo,yme,tst,nst],4),oi("NoSpaceAfterComma",28,r,[p_("insertSpaceAfterCommaDelimiter"),eo,yme],16),oi("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Tf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),X1],4),oi("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[p_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),X1],16),oi("SpaceAfterKeywordInControl",s,21,[Tf("insertSpaceAfterKeywordsInControlFlowStatements"),Fz],4),oi("NoSpaceAfterKeywordInControl",s,21,[p_("insertSpaceAfterKeywordsInControlFlowStatements"),Fz],16),oi("SpaceAfterOpenParen",21,r,[Tf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),eo],4),oi("SpaceBeforeCloseParen",r,22,[Tf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),eo],4),oi("SpaceBetweenOpenParens",21,21,[Tf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),eo],4),oi("NoSpaceBetweenParens",21,22,[eo],16),oi("NoSpaceAfterOpenParen",21,r,[p_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),eo],16),oi("NoSpaceBeforeCloseParen",r,22,[p_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),eo],16),oi("SpaceAfterOpenBracket",23,r,[Tf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),eo],4),oi("SpaceBeforeCloseBracket",r,24,[Tf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),eo],4),oi("NoSpaceBetweenBrackets",23,24,[eo],16),oi("NoSpaceAfterOpenBracket",23,r,[p_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),eo],16),oi("NoSpaceBeforeCloseBracket",r,24,[p_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),eo],16),oi("SpaceAfterOpenBrace",19,r,[Jwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Xwe],4),oi("SpaceBeforeCloseBrace",r,20,[Jwe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Xwe],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[eo,nOe],16),oi("NoSpaceAfterOpenBrace",19,r,[pme("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),eo],16),oi("NoSpaceBeforeCloseBrace",r,20,[pme("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),eo],16),oi("SpaceBetweenEmptyBraceBrackets",19,20,[Tf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[pme("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),eo],16),oi("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[Tf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),rOe],4,1),oi("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[Tf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),eo],4),oi("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[p_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),rOe],16,1),oi("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[p_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),eo],16),oi("SpaceAfterOpenBraceInJsxExpression",19,r,[Tf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),eo,xX],4),oi("SpaceBeforeCloseBraceInJsxExpression",r,20,[Tf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),eo,xX],4),oi("NoSpaceAfterOpenBraceInJsxExpression",19,r,[p_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),eo,xX],16),oi("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[p_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),eo,xX],16),oi("SpaceAfterSemicolonInFor",27,r,[Tf("insertSpaceAfterSemicolonInForStatements"),eo,mme],4),oi("NoSpaceAfterSemicolonInFor",27,r,[p_("insertSpaceAfterSemicolonInForStatements"),eo,mme],16),oi("SpaceBeforeBinaryOperator",r,l,[Tf("insertSpaceBeforeAndAfterBinaryOperators"),eo,Xb],4),oi("SpaceAfterBinaryOperator",l,r,[Tf("insertSpaceBeforeAndAfterBinaryOperators"),eo,Xb],4),oi("NoSpaceBeforeBinaryOperator",r,l,[p_("insertSpaceBeforeAndAfterBinaryOperators"),eo,Xb],16),oi("NoSpaceAfterBinaryOperator",l,r,[p_("insertSpaceBeforeAndAfterBinaryOperators"),eo,Xb],16),oi("SpaceBeforeOpenParenInFuncDecl",r,21,[Tf("insertSpaceBeforeFunctionParenthesis"),eo,X1],4),oi("NoSpaceBeforeOpenParenInFuncDecl",r,21,[p_("insertSpaceBeforeFunctionParenthesis"),eo,X1],16),oi("NewLineBeforeOpenBraceInControl",F,19,[Tf("placeOpenBraceOnNewLineForControlBlocks"),Fz,gme],8,1),oi("NewLineBeforeOpenBraceInFunction",P,19,[Tf("placeOpenBraceOnNewLineForFunctions"),X1,gme],8,1),oi("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[Tf("placeOpenBraceOnNewLineForFunctions"),eOe,gme],8,1),oi("SpaceAfterTypeAssertion",32,r,[Tf("insertSpaceAfterTypeAssertion"),eo,bme],4),oi("NoSpaceAfterTypeAssertion",32,r,[p_("insertSpaceAfterTypeAssertion"),eo,bme],16),oi("SpaceBeforeTypeAnnotation",r,[58,59],[Tf("insertSpaceBeforeTypeAnnotation"),eo,hme],4),oi("NoSpaceBeforeTypeAnnotation",r,[58,59],[p_("insertSpaceBeforeTypeAnnotation"),eo,hme],16),oi("NoOptionalSemicolon",27,o,[qwe("semicolons","remove"),gst],32),oi("OptionalSemicolon",r,o,[qwe("semicolons","insert"),yst],64)],j=[oi("NoSpaceBeforeSemicolon",r,27,[eo],16),oi("SpaceBeforeOpenBraceInControl",F,19,[fme("placeOpenBraceOnNewLineForControlBlocks"),Fz,vme,_me],4,1),oi("SpaceBeforeOpenBraceInFunction",P,19,[fme("placeOpenBraceOnNewLineForFunctions"),X1,IX,vme,_me],4,1),oi("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[fme("placeOpenBraceOnNewLineForFunctions"),eOe,vme,_me],4,1),oi("NoSpaceBeforeComma",r,28,[eo],16),oi("NoSpaceBeforeOpenBracket",t(134,84),23,[eo],16),oi("NoSpaceAfterCloseBracket",24,r,[eo,sst],16),oi("SpaceAfterSemicolon",27,r,[eo],4),oi("SpaceBetweenForAndAwaitKeyword",99,135,[eo],4),oi("SpaceBetweenDotDotDotAndTypeName",26,N,[eo],16),oi("SpaceBetweenStatements",[22,92,93,84],r,[eo,yme,Uat],4),oi("SpaceAfterTryCatchFinally",[113,85,98],19,[eo],4)];return[...W,...G,...j]}function oi(e,t,r,i,o,s=0){return{leftTokenRange:Uwe(t),rightTokenRange:Uwe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function nL(e){return{tokens:e,isSpecific:!0}}function Uwe(e){return typeof e=="number"?nL([e]):No(e)?nL(e):e}function Hwe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)jn(r,o)||i.push(o);return nL(i)}function qwe(e,t){return r=>r.options&&r.options[e]===t}function Tf(e){return t=>t.options&&Cs(t.options,e)&&!!t.options[e]}function pme(e){return t=>t.options&&Cs(t.options,e)&&!t.options[e]}function p_(e){return t=>!t.options||!Cs(t.options,e)||!t.options[e]}function fme(e){return t=>!t.options||!Cs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Jwe(e){return t=>!t.options||!Cs(t.options,e)||!!t.options[e]}function mme(e){return e.contextNode.kind===249}function Uat(e){return!mme(e)}function Xb(e){switch(e.contextNode.kind){case 227:return e.contextNode.operatorToken.kind!==28;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:case 169:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 251:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function Wz(e){return!Xb(e)}function Kwe(e){return!hme(e)}function hme(e){const t=e.contextNode.kind;return t===173||t===172||t===170||t===261||uI(t)}function Hat(e){return Mo(e.contextNode)&&e.contextNode.questionToken}function qat(e){return!Hat(e)}function Jat(e){return e.contextNode.kind===228||e.contextNode.kind===195}function _me(e){return e.TokensAreOnSameLine()||IX(e)}function Xwe(e){return e.contextNode.kind===207||e.contextNode.kind===201||Kat(e)}function gme(e){return IX(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Ywe(e){return $we(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Kat(e){return $we(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function $we(e){return Qwe(e.contextNode)}function IX(e){return Qwe(e.nextTokenParent)}function Qwe(e){if(tOe(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function X1(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function Xat(e){return!X1(e)}function Zwe(e){return e.contextNode.kind===263||e.contextNode.kind===219}function eOe(e){return tOe(e.contextNode)}function tOe(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function Yat(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{const t=e.currentTokenParent.parent;if(!t||t.kind!==220&&t.kind!==219)return!0}}return!1}function Fz(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function nOe(e){return e.contextNode.kind===211}function $at(e){return e.contextNode.kind===214}function Qat(e){return e.contextNode.kind===215}function Zat(e){return $at(e)||Qat(e)}function est(e){return e.currentTokenSpan.kind!==28}function tst(e){return e.nextTokenSpan.kind!==24}function nst(e){return e.nextTokenSpan.kind!==22}function rst(e){return e.contextNode.kind===220}function ist(e){return e.contextNode.kind===206}function eo(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function rOe(e){return e.contextNode.kind!==12}function yme(e){return e.contextNode.kind!==285&&e.contextNode.kind!==289}function xX(e){return e.contextNode.kind===295||e.contextNode.kind===294}function ost(e){return e.nextTokenParent.kind===292||e.nextTokenParent.kind===296&&e.nextTokenParent.parent.kind===292}function iOe(e){return e.contextNode.kind===292}function ast(e){return e.nextTokenParent.kind!==296}function oOe(e){return e.nextTokenParent.kind===296}function aOe(e){return e.contextNode.kind===286}function sst(e){return!X1(e)&&!IX(e)}function lst(e){return e.TokensAreOnSameLine()&&mf(e.contextNode)&&sOe(e.currentTokenParent)&&!sOe(e.nextTokenParent)}function sOe(e){for(;e&&St(e);)e=e.parent;return e&&e.kind===171}function cst(e){return e.currentTokenParent.kind===262&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function vme(e){return e.formattingRequestKind!==2}function dst(e){return e.contextNode.kind===268}function ust(e){return e.contextNode.kind===188}function pst(e){return e.contextNode.kind===181}function lOe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function zz(e){return lOe(e.currentTokenSpan,e.currentTokenParent)||lOe(e.nextTokenSpan,e.nextTokenParent)}function bme(e){return e.contextNode.kind===217}function fst(e){return!bme(e)}function mst(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===223}function cOe(e){return e.contextNode.kind===230&&e.contextNode.expression!==void 0}function hst(e){return e.contextNode.kind===236}function dOe(e){return!_st(e)}function _st(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function gst(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(cD(t)){const s=e.nextTokenParent===e.currentTokenParent?iE(e.currentTokenParent,Dn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===27&&e.currentTokenSpan.kind===27?!0:t===241||t===27?!1:e.contextNode.kind===265||e.contextNode.kind===266?!Iu(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Mo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==249&&e.currentTokenParent.kind!==243&&e.currentTokenParent.kind!==241&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==229&&t!==16&&t!==15&&t!==25}function yst(e){return z7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function vst(e){return!qr(e.contextNode)||!op(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function bst(e,t){return{options:e,getRules:Tst(),host:t}}var Tme;function Tst(){return Tme===void 0&&(Tme=Est(jwe())),Tme}function Sst(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function Est(e){const t=Ast(e);return r=>{const i=t[uOe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~Sst(s);l.action&u&&Hn(l.context,d=>d(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function Ast(e){const t=new Array(Sme*Sme),r=new Array(t.length);for(const i of e){const o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const s of i.leftTokenRange.tokens)for(const l of i.rightTokenRange.tokens){const u=uOe(s,l);let d=t[u];d===void 0&&(d=t[u]=[]),Ist(d,i.rule,o,r,u)}}return t}function uOe(e,t){return C.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*Sme+t}var rL=5,RX=31,Sme=167,_8=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=rL*1]="StopRulesAny",e[e.ContextRulesSpecific=rL*2]="ContextRulesSpecific",e[e.ContextRulesAny=rL*3]="ContextRulesAny",e[e.NoContextRulesSpecific=rL*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=rL*5]="NoContextRulesAny",e))(_8||{});function Ist(e,t,r,i,o){const s=t.action&3?r?0:_8.StopRulesAny:t.context!==AX?r?_8.ContextRulesSpecific:_8.ContextRulesAny:r?_8.NoContextRulesSpecific:_8.NoContextRulesAny,l=i[o]||0;e.splice(xst(l,s),0,t),i[o]=Rst(l,s)}function xst(e,t){let r=0;for(let i=0;i<=t;i+=rL)r+=e&RX,e>>=rL;return r}function Rst(e,t){const r=(e>>t&RX)+1;return C.assert((r&RX)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(RX<C.formatSyntaxKind(r)}),i}function Dst(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=nk(i,t);for(;jh(t.text.charCodeAt(o));)o--;ru(t.text.charCodeAt(o))&&o--;const s={pos:Tb(i-1,t),end:o+1};return Bz(s,t,r,2)}function Cst(e,t,r){const i=Eme(e,27,t);return pOe(Ame(i),t,r,3)}function Nst(e,t,r){const i=Eme(e,19,t);if(!i)return[];const o=i.parent,s=Ame(o),l={pos:Cm(s.getStart(t),t),end:e};return Bz(l,t,r,4)}function Mst(e,t,r){const i=Eme(e,20,t);return pOe(Ame(i),t,r,5)}function Pst(e,t){const r={pos:0,end:e.text.length};return Bz(r,e,t,0)}function Lst(e,t,r,i){const o={pos:Cm(e,r),end:t};return Bz(o,r,i,1)}function Eme(e,t,r){const i=jc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Ame(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!kst(t.parent,t);)t=t.parent;return t}function kst(e,t){switch(e.kind){case 264:case 265:return ip(e.members,t);case 268:const r=e.body;return!!r&&r.kind===269&&ip(r.statements,t);case 308:case 242:case 269:return ip(e.statements,t);case 300:return ip(e.block.statements,t)}return!1}function wst(e,t){return r(t);function r(i){const o=Jo(i,s=>PV(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function Ost(e,t){if(!e.length)return o;const r=e.filter(s=>PP(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;const l=r[i];if(s.end<=l.start)return!1;if(v7(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Wst(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=jc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Fst(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(f_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function zst(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return ume(t.text,r,l.pos,l.end,u=>fOe(l,e,i,o,u,s,1,d=>!1,t))}function pOe(e,t,r,i){if(!e)return[];const o={pos:Cm(e.getStart(t),t),end:e.end};return Bz(o,t,r,i)}function Bz(e,t,r,i){const o=wst(e,t);return ume(t.text,t.languageVariant,Wst(o,e,t),e.end,s=>fOe(e,o,f_.getIndentationForNode(o,e,t,r.options),Fst(o,r.options,t),s,r,i,Ost(t.parseDiagnostics,e),t))}function fOe(e,t,r,i,o,{options:s,getRules:l,host:u},d,_,h){var y;const E=new Bwe(h,d,s);let A,R,N,P,k,F=-1;const W=[];if(o.advance(),o.isOnToken()){const ce=h.getLineAndCharacterOfPosition(t.getStart(h)).line;let Ce=ce;mf(t)&&(Ce=h.getLineAndCharacterOfPosition(IG(t,h)).line),ve(t,t,ce,Ce,r,i)}const G=o.getCurrentLeadingTrivia();if(G){const ce=f_.nodeWillIndentChild(s,t,void 0,h,!1)?r+s.indentSize:r;oe(G,ce,!0,Ce=>{fe(Ce,h.getLineAndCharacterOfPosition(Ce.pos),t,t,void 0),me(Ce.pos,ce,!1)}),s.trimTrailingWhitespace!==!1&&Ee(G)}if(R&&o.getTokenFullStart()>=e.end){const ce=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(ce&&ce.pos===A){const Ce=((y=jc(ce.end,h,t))==null?void 0:y.parent)||N;ue(ce,h.getLineAndCharacterOfPosition(ce.pos).line,Ce,R,P,N,Ce,void 0)}}return W;function j(ce,Ce,ye,Ue,Ge){if(PP(Ue,ce,Ce)||IO(Ue,ce,Ce)){if(Ge!==-1)return Ge}else{const We=h.getLineAndCharacterOfPosition(ce).line,at=Cm(ce,h),Wt=f_.findFirstNonWhitespaceColumn(at,ce,h,s);if(We!==ye||ce===Wt){const cn=f_.getBaseIndentation(s);return cn>Wt?cn:Wt}}return-1}function J(ce,Ce,ye,Ue,Ge,We){const at=f_.shouldIndentChildNode(s,ce)?s.indentSize:0;return We===Ce?{indentation:Ce===k?F:Ge.getIndentation(),delta:Math.min(s.indentSize,Ge.getDelta(ce)+at)}:ye===-1?ce.kind===21&&Ce===k?{indentation:F,delta:Ge.getDelta(ce)}:f_.childStartsOnTheSameLineWithElseInIfStatement(Ue,ce,Ce,h)||f_.childIsUnindentedBranchOfConditionalExpression(Ue,ce,Ce,h)||f_.argumentStartsOnSameLineAsPreviousArgument(Ue,ce,Ce,h)?{indentation:Ge.getIndentation(),delta:at}:{indentation:Ge.getIndentation()+Ge.getDelta(ce),delta:at}:{indentation:ye,delta:at}}function Z(ce){if(Rm(ce)){const Ce=mn(ce.modifiers,Aa,ho(ce.modifiers,Bc));if(Ce)return Ce.kind}switch(ce.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(ce.asteriskToken)return 42;case 173:case 170:const Ce=wo(ce);if(Ce)return Ce.kind}}function q(ce,Ce,ye,Ue){return{getIndentationForComment:(at,Wt,cn)=>{switch(at){case 20:case 24:case 22:return ye+We(cn)}return Wt!==-1?Wt:ye},getIndentationForToken:(at,Wt,cn,gn)=>!gn&&Ge(at,Wt,cn)?ye+We(cn):ye,getIndentation:()=>ye,getDelta:We,recomputeIndentation:(at,Wt)=>{f_.shouldIndentChildNode(s,Wt,ce,h)&&(ye+=at?s.indentSize:-s.indentSize,Ue=f_.shouldIndentChildNode(s,ce)?s.indentSize:0)}};function Ge(at,Wt,cn){switch(Wt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(cn.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(cn.kind!==201)return!1;break}return Ce!==at&&!(mf(ce)&&Wt===Z(ce))}function We(at){return f_.nodeWillIndentChild(s,ce,at,h,!0)?Ue:0}}function ve(ce,Ce,ye,Ue,Ge,We){if(!PP(e,ce.getStart(h),ce.getEnd()))return;const at=q(ce,ye,Ge,We);let Wt=Ce;for(Jo(ce,gt=>{cn(gt,-1,ce,at,ye,Ue,!1)},gt=>{gn(gt,ce,ye,at)});o.isOnToken()&&o.getTokenFullStart()Math.min(ce.end,e.end))break;Kn(gt,ce,at,ce)}function cn(gt,en,or,Ni,so,zt,Zr,xi){if(C.assert(!Fs(gt)),zl(gt)||$te(or,gt))return en;const Pi=gt.getStart(h),Pr=h.getLineAndCharacterOfPosition(Pi).line;let Mi=Pr;mf(gt)&&(Mi=h.getLineAndCharacterOfPosition(IG(gt,h)).line);let $e=-1;if(Zr&&ip(e,or)&&($e=j(Pi,gt.end,so,e,en),$e!==-1&&(en=$e)),!PP(e,gt.pos,gt.end))return gt.ende.end)return en;if(dr.token.end>Pi){dr.token.pos>Pi&&o.skipToStartOf(gt);break}Kn(dr,ce,Ni,ce)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return en;if(dI(gt)){const dr=o.readTokenInfo(gt);if(gt.kind!==12)return C.assert(dr.token.end===gt.end,"Token end is child end"),Kn(dr,ce,Ni,gt),en}const At=gt.kind===171?Pr:zt,hn=J(gt,Pr,$e,ce,Ni,At);return ve(gt,Wt,Pr,Mi,hn.indentation,hn.delta),Wt=ce,xi&&or.kind===210&&en===-1&&(en=hn.indentation),en}function gn(gt,en,or,Ni){C.assert(vS(gt)),C.assert(!Fs(gt));const so=Bst(en,gt);let zt=Ni,Zr=or;if(!PP(e,gt.pos,gt.end)){gt.endgt.pos)break;if(Pr.token.kind===so){Zr=h.getLineAndCharacterOfPosition(Pr.token.pos).line,Kn(Pr,en,Ni,en);let Mi;if(F!==-1)Mi=F;else{const $e=Cm(Pr.token.pos,h);Mi=f_.findFirstNonWhitespaceColumn($e,Pr.token.pos,h,s)}zt=q(en,or,Mi,s.indentSize)}else Kn(Pr,en,Ni,en)}let xi=-1;for(let Pr=0;Prme(hn.pos,At,!1))}Mi!==-1&&$e&&(me(gt.token.pos,Mi,xi===1),k=Pr.line,F=Mi)}o.advance(),Wt=en}}function oe(ce,Ce,ye,Ue){for(const Ge of ce){const We=ip(e,Ge);switch(Ge.kind){case 3:We&&Y(Ge,Ce,!ye),ye=!1;break;case 2:ye&&We&&Ue(Ge),ye=!1;break;case 4:ye=!0;break}}return ye}function K(ce,Ce,ye,Ue){for(const Ge of ce)if(x7(Ge.kind)&&ip(e,Ge)){const We=h.getLineAndCharacterOfPosition(Ge.pos);fe(Ge,We,Ce,ye,Ue)}}function fe(ce,Ce,ye,Ue,Ge){const We=_(ce);let at=0;if(!We)if(R)at=ue(ce,Ce.line,ye,R,P,N,Ue,Ge);else{const Wt=h.getLineAndCharacterOfPosition(e.pos);Ne(Wt.line,Ce.line)}return R=ce,A=ce.end,N=ye,P=Ce.line,at}function ue(ce,Ce,ye,Ue,Ge,We,at,Wt){E.updateContext(Ue,We,ce,ye,at);const cn=l(E);let gn=E.options.trimTrailingWhitespace!==!1,Kn=0;return cn?Mn(cn,gt=>{if(Kn=lt(gt,Ue,Ge,ce,Ce),Wt)switch(Kn){case 2:ye.getStart(h)===ce.pos&&Wt.recomputeIndentation(!1,at);break;case 1:ye.getStart(h)===ce.pos&&Wt.recomputeIndentation(!0,at);break;default:C.assert(Kn===0)}gn=gn&&!(gt.action&16)&>.flags!==1}):gn=gn&&ce.kind!==1,Ce!==Ge&&gn&&Ne(Ge,Ce,Ue),Kn}function me(ce,Ce,ye){const Ue=Ime(Ce,s);if(ye)Me(ce,0,Ue);else{const Ge=h.getLineAndCharacterOfPosition(ce),We=Tb(Ge.line,h);(Ce!==be(We,Ge.character)||De(Ue,We))&&Me(We,Ge.character,Ue)}}function be(ce,Ce){let ye=0;for(let Ue=0;Ue0){const zt=Ime(so,s);Me(or,Ni.character,zt)}else Te(or,Ni.character)}}function Ne(ce,Ce,ye){for(let Ue=ce;UeWe)continue;const at=Xe(Ge,We);at!==-1&&(C.assert(at===Ge||!jh(h.text.charCodeAt(at-1))),Te(at,We+1-at))}}function Xe(ce,Ce){let ye=Ce;for(;ye>=ce&&jh(h.text.charCodeAt(ye));)ye--;return ye!==Ce?ye+1:-1}function Ee(ce){let Ce=R?R.end:e.pos;for(const ye of ce)x7(ye.kind)&&(CeAO(_,t)||t===_.end&&(_.kind===2||t===e.getFullWidth()))}function Bst(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}function Gst(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var CX,g8,y8;function Ime(e,t){if((!CX||CX.tabSize!==t.tabSize||CX.indentSize!==t.indentSize)&&(CX={tabSize:t.tabSize,indentSize:t.indentSize},g8=y8=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return y8||(y8=[]),y8[o]===void 0?(i=CO(" ",t.indentSize*o),y8[o]=i):i=y8[o],s?i+CO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return g8||(g8=[]),g8[i]===void 0?g8[i]=s=CO(" ",i):s=g8[i],o?s+CO(" ",o):s}}var f_;(e=>{let t;(Y=>{Y[Y.Unknown=-1]="Unknown"})(t||(t={}));function r(Y,Ne,Xe,Ee=!1){if(Y>Ne.text.length)return u(Xe);if(Xe.indentStyle===0)return 0;const re=jc(Y,Ne,void 0,!0),Te=mOe(Ne,Y,re||null);if(Te&&Te.kind===3)return i(Ne,Y,Xe,Te);if(!re)return u(Xe);if($q(re.kind)&&re.getStart(Ne)<=Y&&Y=0),re<=Te)return fe(Tb(Te,Y),Ne,Y,Xe);const Me=Tb(re,Y),{column:Be,character:lt}=K(Me,Ne,Y,Xe);return Be===0?Be:Y.text.charCodeAt(Me+lt)===42?Be-1:Be}function o(Y,Ne,Xe){let Ee=Ne;for(;Ee>0;){const Te=Y.text.charCodeAt(Ee);if(!pg(Te))break;Ee--}const re=Cm(Ee,Y);return fe(re,Ee,Y,Xe)}function s(Y,Ne,Xe,Ee,re,Te){let Me,Be=Xe;for(;Be;){if(Uq(Be,Ne,Y)&&be(Te,Be,Me,Y,!0)){const ce=R(Be,Y),Ce=A(Xe,Be,Ee,Y),ye=Ce!==0?re&&Ce===2?Te.indentSize:0:Ee!==ce.line?Te.indentSize:0;return d(Be,ce,void 0,ye,Y,!0,Te)}const lt=q(Be,Y,Te,!0);if(lt!==-1)return lt;Me=Be,Be=Be.parent}return u(Te)}function l(Y,Ne,Xe,Ee){const re=Xe.getLineAndCharacterOfPosition(Y.getStart(Xe));return d(Y,re,Ne,0,Xe,!1,Ee)}e.getIndentationForNode=l;function u(Y){return Y.baseIndentSize||0}e.getBaseIndentation=u;function d(Y,Ne,Xe,Ee,re,Te,Me){var Be;let lt=Y.parent;for(;lt;){let ce=!0;if(Xe){const Ge=Y.getStart(re);ce=GeXe.end}const Ce=_(lt,Y,re),ye=Ce.line===Ne.line||P(lt,Y,Ne.line,re);if(ce){const Ge=(Be=W(Y,re))==null?void 0:Be[0],We=!!Ge&&R(Ge,re).line>Ce.line;let at=q(Y,re,Me,We);if(at!==-1||(at=y(Y,lt,Ne,ye,re,Me),at!==-1))return at+Ee}be(Me,lt,Y,re,Te)&&!ye&&(Ee+=Me.indentSize);const Ue=N(lt,Y,Ne.line,re);Y=lt,lt=Y.parent,Ne=Ue?re.getLineAndCharacterOfPosition(Y.getStart(re)):Ce}return Ee+u(Me)}function _(Y,Ne,Xe){const Ee=W(Ne,Xe),re=Ee?Ee.pos:Y.getStart(Xe);return Xe.getLineAndCharacterOfPosition(re)}function h(Y,Ne,Xe){const Ee=oce(Y);return Ee&&Ee.listItemIndex>0?ve(Ee.list.getChildren(),Ee.listItemIndex-1,Ne,Xe):-1}function y(Y,Ne,Xe,Ee,re,Te){return(id(Y)||Q2(Y))&&(Ne.kind===308||!Ee)?oe(Xe,re,Te):-1}let E;(Y=>{Y[Y.Unknown=0]="Unknown",Y[Y.OpenBrace=1]="OpenBrace",Y[Y.CloseBrace=2]="CloseBrace"})(E||(E={}));function A(Y,Ne,Xe,Ee){const re=iE(Y,Ne,Ee);if(!re)return 0;if(re.kind===19)return 1;if(re.kind===20){const Te=R(re,Ee).line;return Xe===Te?2:0}return 0}function R(Y,Ne){return Ne.getLineAndCharacterOfPosition(Y.getStart(Ne))}function N(Y,Ne,Xe,Ee){if(!(ea(Y)&&jn(Y.arguments,Ne)))return!1;const re=Y.expression.getEnd();return ca(Ee,re).line===Xe}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function P(Y,Ne,Xe,Ee){if(Y.kind===246&&Y.elseStatement===Ne){const re=Is(Y,93,Ee);return C.assert(re!==void 0),R(re,Ee).line===Xe}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=P;function k(Y,Ne,Xe,Ee){if(I1(Y)&&(Ne===Y.whenTrue||Ne===Y.whenFalse)){const re=ca(Ee,Y.condition.end).line;if(Ne===Y.whenTrue)return Xe===re;{const Te=R(Y.whenTrue,Ee).line,Me=ca(Ee,Y.whenTrue.end).line;return re===Te&&Me===Xe}}return!1}e.childIsUnindentedBranchOfConditionalExpression=k;function F(Y,Ne,Xe,Ee){if(Uh(Y)){if(!Y.arguments)return!1;const re=mn(Y.arguments,lt=>lt.pos===Ne.pos);if(!re)return!1;const Te=Y.arguments.indexOf(re);if(Te===0)return!1;const Me=Y.arguments[Te-1],Be=ca(Ee,Me.getEnd()).line;if(Xe===Be)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=F;function W(Y,Ne){return Y.parent&&j(Y.getStart(Ne),Y.getEnd(),Y.parent,Ne)}e.getContainingList=W;function G(Y,Ne,Xe){return Ne&&j(Y,Y,Ne,Xe)}function j(Y,Ne,Xe,Ee){switch(Xe.kind){case 184:return re(Xe.typeArguments);case 211:return re(Xe.properties);case 210:return re(Xe.elements);case 188:return re(Xe.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return re(Xe.typeParameters)||re(Xe.parameters);case 178:return re(Xe.parameters);case 264:case 232:case 265:case 266:case 346:return re(Xe.typeParameters);case 215:case 214:return re(Xe.typeArguments)||re(Xe.arguments);case 262:return re(Xe.declarations);case 276:case 280:return re(Xe.elements);case 207:case 208:return re(Xe.elements)}function re(Te){return Te&&IO(J(Xe,Te,Ee),Y,Ne)?Te:void 0}}function J(Y,Ne,Xe){const Ee=Y.getChildren(Xe);for(let re=1;re=0&&Ne=0;Me--){if(Y[Me].kind===28)continue;if(Xe.getLineAndCharacterOfPosition(Y[Me].end).line!==Te.line)return oe(Te,Xe,Ee);Te=R(Y[Me],Xe)}return-1}function oe(Y,Ne,Xe){const Ee=Ne.getPositionOfLineAndCharacter(Y.line,0);return fe(Ee,Ee+Y.character,Ne,Xe)}function K(Y,Ne,Xe,Ee){let re=0,Te=0;for(let Me=Y;MeVst});function Vst(e,t,r){let i=!1;return t.forEach(o=>{const s=Dn(zi(e,o.pos),l=>ip(l,o));s&&Jo(s,function l(u){var d;if(!i){if(Je(u)&&oC(o,u.getStart(e))){const _=r.resolveName(u.text,u,-1,!1);if(_&&_.declarations){for(const h of _.declarations)if(sK(h)||u.text&&e.symbol&&((d=e.symbol.exports)!=null&&d.has(u.escapedText))){i=!0;return}}}u.forEachChild(l)}})}),i}var MX={};x(MX,{pasteEditsProvider:()=>Ust});var jst="providePostPasteEdits";function Ust(e,t,r,i,o,s,l,u){return{edits:Rr.ChangeTracker.with({host:o,formatContext:l,preferences:s},_=>Hst(e,t,r,i,o,s,l,u,_)),fixId:jst}}function Hst(e,t,r,i,o,s,l,u,d){let _;t.length!==r.length&&(_=t.length===1?t[0]:t.join(by(l.host,l.options)));const h=[];let y=e.text;for(let A=r.length-1;A>=0;A--){const{pos:R,end:N}=r[A];y=_?y.slice(0,R)+_+y.slice(N):y.slice(0,R)+t[A]+y.slice(N)}let E;C.checkDefined(o.runWithTemporaryFileUpdate).call(o,e.fileName,y,(A,R,N)=>{if(E=pu.createImportAdder(N,A,s,o),i?.range){C.assert(i.range.length===t.length),i.range.forEach(G=>{const j=i.file.statements,J=ho(j,q=>q.end>G.pos);if(J===-1)return;let Z=ho(j,q=>q.end>=G.end,J);Z!==-1&&G.end<=j[Z].getStart()&&Z--,h.push(...j.slice(J,Z===-1?j.length:Z+1))}),C.assertIsDefined(R,"no original program found");const P=R.getTypeChecker(),k=qst(i),F=rz(i.file,h,P,Vde(N,h,P),k),W=!LJ(e.fileName,R,o,!!i.file.commonJsModuleIndicator);kde(i.file,F.targetFileImportsFromOldFile,d,W),Ude(i.file,F.oldImportsNeededByTargetFile,F.targetFileImportsFromOldFile,P,A,E)}else{const P={sourceFile:N,program:R,cancellationToken:u,host:o,preferences:s,formatContext:l};let k=0;r.forEach((F,W)=>{const G=F.end-F.pos,j=_??t[W],J=F.pos+k,Z=J+j.length,q={pos:J,end:Z};k+=j.length-G;const ve=Dn(zi(P.sourceFile,q.pos),oe=>ip(oe,q));ve&&Jo(ve,function oe(K){if(Je(K)&&oC(q,K.getStart(N))&&!A?.getTypeChecker().resolveName(K.text,K,-1,!1))return E.addImportForUnresolvedIdentifier(P,K,!0);K.forEachChild(oe)})})}E.writeFixes(d,Up(i?i.file:e,s))}),E.hasFixes()&&r.forEach((A,R)=>{d.replaceRangeWithText(e,{pos:A.pos,end:A.end},_??t[R])})}function qst({file:e,range:t}){const r=t[0].pos,i=t[t.length-1].end,o=zi(e,r),s=LP(e,r)??zi(e,i);return{pos:Je(o)&&r<=o.getStart(e)?o.getFullStart():r,end:Je(s)&&i===s.getEnd()?Rr.getAdjustedEndPosition(e,s,{}):i}}var hOe={};x(hOe,{ANONYMOUS:()=>EJ,AccessFlags:()=>iee,AssertionLevel:()=>mZ,AssignmentDeclarationKind:()=>fee,AssignmentKind:()=>Wne,Associativity:()=>Hne,BreakpointResolver:()=>TK,BuilderFileEmit:()=>Gse,BuilderProgramKind:()=>Xse,BuilderState:()=>vh,CallHierarchy:()=>Ex,CharacterCodes:()=>Aee,CheckFlags:()=>eee,CheckMode:()=>qU,ClassificationType:()=>kq,ClassificationTypeNames:()=>$le,CommentDirectiveType:()=>zZ,Comparison:()=>Ve,CompletionInfoFlags:()=>Ule,CompletionTriggerKind:()=>Pq,Completions:()=>Dx,ContainerFlags:()=>Tae,ContextFlags:()=>qZ,Debug:()=>C,DiagnosticCategory:()=>nF,Diagnostics:()=>f,DocumentHighlights:()=>Q7,ElementFlags:()=>ree,EmitFlags:()=>M9,EmitHint:()=>Dee,EmitOnly:()=>GZ,EndOfLineState:()=>Jle,ExitStatus:()=>VZ,ExportKind:()=>Gce,Extension:()=>Iee,ExternalEmitHelpers:()=>Ree,FileIncludeKind:()=>T9,FilePreprocessingDiagnosticsKind:()=>BZ,FileSystemEntryKind:()=>Wee,FileWatcherEventKind:()=>kee,FindAllReferences:()=>Qs,FlattenLevel:()=>jae,FlowFlags:()=>tF,ForegroundColorEscapeSequences:()=>Mse,FunctionFlags:()=>jne,GeneratedIdentifierFlags:()=>b9,GetLiteralTextFlags:()=>ene,GoToDefinition:()=>vC,HighlightSpanKind:()=>Vle,IdentifierNameMap:()=>XD,ImportKind:()=>Bce,ImportsNotUsedAsValues:()=>vee,IndentStyle:()=>jle,IndexFlags:()=>oee,IndexKind:()=>lee,InferenceFlags:()=>uee,InferencePriority:()=>dee,InlayHintKind:()=>Gle,InlayHints:()=>pX,InternalEmitFlags:()=>xee,InternalNodeBuilderFlags:()=>KZ,InternalSymbolName:()=>tee,IntersectionFlags:()=>HZ,InvalidatedProjectKind:()=>yle,JSDocParsingMode:()=>Lee,JsDoc:()=>b0,JsTyping:()=>qb,JsxEmit:()=>yee,JsxFlags:()=>wZ,JsxReferenceKind:()=>aee,LanguageFeatureMinimumTarget:()=>td,LanguageServiceMode:()=>zle,LanguageVariant:()=>See,LexicalEnvironmentFlags:()=>Nee,ListFormat:()=>Mee,LogLevel:()=>AZ,MapCode:()=>fX,MemberOverrideStatus:()=>jZ,ModifierFlags:()=>y9,ModuleDetectionKind:()=>mee,ModuleInstanceState:()=>vae,ModuleKind:()=>wR,ModuleResolutionKind:()=>kR,ModuleSpecifierEnding:()=>Vre,NavigateTo:()=>ude,NavigationBar:()=>fde,NewLineKind:()=>bee,NodeBuilderFlags:()=>JZ,NodeCheckFlags:()=>A9,NodeFactoryFlags:()=>bie,NodeFlags:()=>g9,NodeResolutionFeatures:()=>cae,ObjectFlags:()=>x9,OperationCanceledException:()=>RN,OperatorPrecedence:()=>qne,OrganizeImports:()=>T0,OrganizeImportsMode:()=>Mq,OuterExpressionKinds:()=>Cee,OutliningElementsCollector:()=>hX,OutliningSpanKind:()=>Hle,OutputFileType:()=>qle,PackageJsonAutoImportPreference:()=>Fle,PackageJsonDependencyGroup:()=>Wle,PatternMatchKind:()=>VJ,PollingInterval:()=>P9,PollingWatchKind:()=>gee,PragmaKindFlags:()=>Pee,PredicateSemantics:()=>OZ,PreparePasteEdits:()=>NX,PrivateIdentifierKind:()=>Nie,ProcessLevel:()=>Jae,ProgramUpdateLevel:()=>xse,QuotePreference:()=>vce,RegularExpressionFlags:()=>WZ,RelationComparisonResult:()=>v9,Rename:()=>wz,ScriptElementKind:()=>Xle,ScriptElementKindModifier:()=>Yle,ScriptKind:()=>D9,ScriptSnapshot:()=>d7,ScriptTarget:()=>Tee,SemanticClassificationFormat:()=>Ble,SemanticMeaning:()=>Qle,SemicolonPreference:()=>Lq,SignatureCheckMode:()=>JU,SignatureFlags:()=>R9,SignatureHelp:()=>d8,SignatureInfo:()=>Bse,SignatureKind:()=>see,SmartSelectionRange:()=>yX,SnippetKind:()=>N9,StatisticType:()=>Rle,StructureIsReused:()=>S9,SymbolAccessibility:()=>$Z,SymbolDisplay:()=>Tv,SymbolDisplayPartKind:()=>p7,SymbolFlags:()=>E9,SymbolFormatFlags:()=>YZ,SyntaxKind:()=>_9,Ternary:()=>pee,ThrottledCancellationToken:()=>Tue,TokenClass:()=>Kle,TokenFlags:()=>FZ,TransformFlags:()=>C9,TypeFacts:()=>HU,TypeFlags:()=>I9,TypeFormatFlags:()=>XZ,TypeMapKind:()=>cee,TypePredicateKind:()=>QZ,TypeReferenceSerializationKind:()=>ZZ,UnionReduction:()=>UZ,UpToDateStatusType:()=>ule,VarianceFlags:()=>nee,Version:()=>sh,VersionRange:()=>eF,WatchDirectoryFlags:()=>Eee,WatchDirectoryKind:()=>_ee,WatchFileKind:()=>hee,WatchLogLevel:()=>Dse,WatchType:()=>ld,accessPrivateIdentifier:()=>Vae,addEmitFlags:()=>t_,addEmitHelper:()=>UI,addEmitHelpers:()=>Cg,addInternalEmitFlags:()=>v1,addNodeFactoryPatcher:()=>MSe,addObjectAllocatorPatcher:()=>hSe,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>kb,addSyntheticTrailingComment:()=>VM,addToSeen:()=>Em,advancedAsyncSuperHelper:()=>b4,affectsDeclarationPathOptionDeclarations:()=>woe,affectsEmitOptionDeclarations:()=>koe,allKeysStartWithDot:()=>m3,altDirectorySeparator:()=>sF,and:()=>$W,append:()=>Vn,appendIfUnique:()=>ty,arrayFrom:()=>Do,arrayIsEqualTo:()=>tf,arrayIsHomogeneous:()=>$re,arrayOf:()=>dZ,arrayReverseIterator:()=>XB,arrayToMap:()=>NR,arrayToMultiMap:()=>S2,arrayToNumericMap:()=>pZ,assertType:()=>jTe,assign:()=>HE,asyncSuperHelper:()=>v4,attachFileToDiagnostics:()=>wI,base64decode:()=>fre,base64encode:()=>pre,binarySearch:()=>ib,binarySearchKey:()=>tI,bindSourceFile:()=>Sae,breakIntoCharacterSpans:()=>rde,breakIntoWordSpans:()=>ide,buildLinkParts:()=>Rce,buildOpts:()=>Fw,buildOverload:()=>yOe,bundlerModuleNameResolver:()=>dae,canBeConvertedToAsync:()=>KJ,canHaveDecorators:()=>YS,canHaveExportModifier:()=>lw,canHaveFlowNode:()=>aD,canHaveIllegalDecorators:()=>tU,canHaveIllegalModifiers:()=>hoe,canHaveIllegalType:()=>rEe,canHaveIllegalTypeParameters:()=>moe,canHaveJSDoc:()=>Ck,canHaveLocals:()=>N_,canHaveModifiers:()=>Rm,canHaveModuleSpecifier:()=>kne,canHaveSymbol:()=>ch,canIncludeBindAndCheckDiagnostics:()=>PM,canJsonReportNoInputFiles:()=>Uw,canProduceDiagnostics:()=>Zw,canUsePropertyAccess:()=>oj,canWatchAffectingLocation:()=>rle,canWatchAtTypes:()=>nle,canWatchDirectoryOrFile:()=>KH,canWatchDirectoryOrFilePath:()=>mO,cartesianProduct:()=>SZ,cast:()=>ma,chainBundle:()=>yh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>C2,changeCompilerHostLikeToUseCache:()=>AP,changeExtension:()=>lv,changeFullExtension:()=>dF,changesAffectModuleResolution:()=>WF,changesAffectingProgramStructure:()=>qte,characterCodeToRegularExpressionFlag:()=>j9,childIsDecorated:()=>eM,classElementOrClassElementParameterIsDecorated:()=>VG,classHasClassThisAssignment:()=>lH,classHasDeclaredOrExplicitlyAssignedName:()=>cH,classHasExplicitlyAssignedName:()=>D3,classOrConstructorParameterIsDecorated:()=>rv,classicNameResolver:()=>gae,classifier:()=>Iue,cleanExtendedConfigCache:()=>k3,clear:()=>Ra,clearMap:()=>yp,clearSharedExtendedConfigFileWatcher:()=>EH,climbPastPropertyAccess:()=>h7,clone:()=>fZ,cloneCompilerOptions:()=>Zq,closeFileWatcher:()=>Hm,closeFileWatcherOf:()=>Qf,codefix:()=>pu,collapseTextChangeRangesAcrossMultipleVersions:()=>ite,collectExternalModuleInfo:()=>iH,combine:()=>eI,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>Foe,commentPragmas:()=>rF,commonOptionsWithBuild:()=>J4,compact:()=>b2,compareBooleans:()=>PT,compareDataObjects:()=>wV,compareDiagnostics:()=>IM,compareEmitHelpers:()=>Pie,compareNumberOfDirectorySeparators:()=>iw,comparePaths:()=>ry,comparePathsCaseInsensitive:()=>h0e,comparePathsCaseSensitive:()=>m0e,comparePatternKeys:()=>FU,compareProperties:()=>yZ,compareStringsCaseInsensitive:()=>A2,compareStringsCaseInsensitiveEslintCompatible:()=>hZ,compareStringsCaseSensitive:()=>Bd,compareStringsCaseSensitiveUI:()=>I2,compareTextSpans:()=>XW,compareValues:()=>Hs,compilerOptionsAffectDeclarationPath:()=>wre,compilerOptionsAffectEmit:()=>kre,compilerOptionsAffectSemanticDiagnostics:()=>Lre,compilerOptionsDidYouMeanDiagnostics:()=>$4,compilerOptionsIndicateEsModules:()=>oJ,computeCommonSourceDirectoryOfFilenames:()=>Cse,computeLineAndCharacterOfPosition:()=>zR,computeLineOfPosition:()=>MN,computeLineStarts:()=>cI,computePositionOfLineAndCharacter:()=>mF,computeSignatureWithDiagnostics:()=>VH,computeSuggestionDiagnostics:()=>HJ,computedOptions:()=>xM,concatenate:()=>ao,concatenateDiagnosticMessageChains:()=>xre,consumesNodeCoreModules:()=>j7,contains:()=>jn,containsIgnoredPath:()=>wM,containsObjectRestOrSpread:()=>kw,containsParseError:()=>yI,containsPath:()=>gm,convertCompilerOptionsForTelemetry:()=>Zoe,convertCompilerOptionsFromJson:()=>p1e,convertJsonOption:()=>k1,convertToBase64:()=>ure,convertToJson:()=>Gw,convertToObject:()=>Joe,convertToOptionsWithAbsolutePaths:()=>t3,convertToRelativePath:()=>CN,convertToTSConfig:()=>TU,convertTypeAcquisitionFromJson:()=>f1e,copyComments:()=>j1,copyEntries:()=>FF,copyLeadingComments:()=>uC,copyProperties:()=>n9,copyTrailingAsLeadingComments:()=>wO,copyTrailingComments:()=>BP,couldStartTrivia:()=>Uee,countWhere:()=>Ao,createAbstractBuilder:()=>bIe,createAccessorPropertyBackingField:()=>iU,createAccessorPropertyGetRedirector:()=>Eoe,createAccessorPropertySetRedirector:()=>Aoe,createBaseNodeFactory:()=>hie,createBinaryExpressionTrampoline:()=>V4,createBuilderProgram:()=>jH,createBuilderProgramUsingIncrementalBuildInfo:()=>Zse,createBuilderStatusReporter:()=>n7,createCacheableExportInfoMap:()=>kJ,createCachedDirectoryStructureHost:()=>P3,createClassifier:()=>Yxe,createCommentDirectivesMap:()=>Qte,createCompilerDiagnostic:()=>Dl,createCompilerDiagnosticForInvalidCustomType:()=>zoe,createCompilerDiagnosticFromMessageChain:()=>G6,createCompilerHost:()=>Nse,createCompilerHostFromProgramHost:()=>cq,createCompilerHostWorker:()=>w3,createDetachedDiagnostic:()=>kI,createDiagnosticCollection:()=>hM,createDiagnosticForFileFromMessageChain:()=>WG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>QR,createDiagnosticForNodeArrayFromMessageChain:()=>sk,createDiagnosticForNodeFromMessageChain:()=>bg,createDiagnosticForNodeInSourceFile:()=>Gf,createDiagnosticForRange:()=>pne,createDiagnosticMessageChainFromDiagnostic:()=>une,createDiagnosticReporter:()=>hx,createDocumentPositionMapper:()=>Wae,createDocumentRegistry:()=>qce,createDocumentRegistryInternal:()=>zJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>JH,createEmitHelperFactory:()=>Mie,createEmptyExports:()=>xw,createEvaluator:()=>sie,createExpressionForJsxElement:()=>loe,createExpressionForJsxFragment:()=>coe,createExpressionForObjectLiteralElementLike:()=>doe,createExpressionForPropertyName:()=>Xj,createExpressionFromEntityName:()=>Rw,createExternalHelpersImportDeclarationIfNeeded:()=>Qj,createFileDiagnostic:()=>zc,createFileDiagnosticFromMessageChain:()=>KF,createFlowNode:()=>B_,createForOfBindingStatement:()=>Kj,createFutureSourceFile:()=>X7,createGetCanonicalFileName:()=>Gd,createGetIsolatedDeclarationErrors:()=>_se,createGetSourceFile:()=>DH,createGetSymbolAccessibilityDiagnosticForNode:()=>d0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>hse,createGetSymbolWalker:()=>Eae,createIncrementalCompilerHost:()=>t7,createIncrementalProgram:()=>dle,createJsxFactoryExpression:()=>Jj,createLanguageService:()=>Sue,createLanguageServiceSourceFile:()=>mz,createMemberAccessForPropertyName:()=>P1,createModeAwareCache:()=>UD,createModeAwareCacheKey:()=>cP,createModeMismatchDetails:()=>TG,createModuleNotFoundChain:()=>BF,createModuleResolutionCache:()=>HD,createModuleResolutionLoader:()=>kH,createModuleResolutionLoaderUsingGlobalCache:()=>sle,createModuleSpecifierResolutionHost:()=>m0,createMultiMap:()=>hm,createNameResolver:()=>dj,createNodeConverters:()=>yie,createNodeFactory:()=>fw,createOptionNameMap:()=>X4,createOverload:()=>PX,createPackageJsonImportFilter:()=>pC,createPackageJsonInfo:()=>xJ,createParenthesizerRules:()=>_ie,createPatternMatcher:()=>$ce,createPrinter:()=>Ub,createPrinterWithDefaults:()=>Ase,createPrinterWithRemoveComments:()=>eE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Ise,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>SH,createProgram:()=>uO,createProgramDiagnostics:()=>Fse,createProgramHost:()=>dq,createPropertyNameNodeForIdentifierOrLiteral:()=>sw,createQueue:()=>E2,createRange:()=>Uf,createRedirectedBuilderProgram:()=>qH,createResolutionCache:()=>YH,createRuntimeTypeSerializer:()=>Qae,createScanner:()=>mg,createSemanticDiagnosticsBuilderProgram:()=>vIe,createSet:()=>r9,createSolutionBuilder:()=>hle,createSolutionBuilderHost:()=>fle,createSolutionBuilderWithWatch:()=>_le,createSolutionBuilderWithWatchHost:()=>mle,createSortedArray:()=>KB,createSourceFile:()=>ax,createSourceMapGenerator:()=>Pae,createSourceMapSource:()=>wSe,createSuperAccessVariableStatement:()=>N3,createSymbolTable:()=>da,createSymlinkCache:()=>HV,createSyntacticTypeNodeBuilder:()=>kle,createSystemWatchFunctions:()=>s0e,createTextChange:()=>DO,createTextChangeFromStartLength:()=>D7,createTextChangeRange:()=>z2,createTextRangeFromNode:()=>nJ,createTextRangeFromSpan:()=>R7,createTextSpan:()=>xd,createTextSpanFromBounds:()=>sc,createTextSpanFromNode:()=>Vu,createTextSpanFromRange:()=>yv,createTextSpanFromStringLiteralLikeContent:()=>tJ,createTextWriter:()=>Bk,createTokenRange:()=>NV,createTypeChecker:()=>Nae,createTypeReferenceDirectiveResolutionCache:()=>u3,createTypeReferenceResolutionLoader:()=>F3,createWatchCompilerHost:()=>NIe,createWatchCompilerHostOfConfigFile:()=>uq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>pq,createWatchFactory:()=>lq,createWatchHost:()=>sq,createWatchProgram:()=>fq,createWatchStatusReporter:()=>$H,createWriteFileMeasuringIO:()=>CH,declarationNameToString:()=>Ws,decodeMappings:()=>tH,decodedTextSpanIntersectsWith:()=>F2,deduplicate:()=>fS,defaultHoverMaximumTruncationLength:()=>Ute,defaultInitCompilerOptions:()=>PEe,defaultMaximumTruncationLength:()=>JN,diagnosticCategoryName:()=>JE,diagnosticToString:()=>oE,diagnosticsEqualityComparer:()=>V6,directoryProbablyExists:()=>ph,directorySeparator:()=>Xs,displayPart:()=>Tp,displayPartsToString:()=>KO,disposeEmitNodes:()=>Tj,documentSpansEqual:()=>pJ,dumpTracingLegend:()=>kZ,elementAt:()=>rb,elideNodes:()=>Soe,emitDetachedComments:()=>tre,emitFiles:()=>bH,emitFilesAndReportErrors:()=>$3,emitFilesAndReportErrorsAndGetExitStatus:()=>aq,emitModuleKindIsNonNodeESM:()=>ew,emitNewLineBeforeLeadingCommentOfPosition:()=>ere,emitResolverSkipsTypeChecking:()=>vH,emitSkippedWithNoDiagnostics:()=>WH,emptyArray:()=>ie,emptyFileSystemEntries:()=>qre,emptyMap:()=>ut,emptyOptions:()=>Dm,endsWith:()=>nl,ensurePathIsNonModuleName:()=>KE,ensureScriptKind:()=>Q6,ensureTrailingDirectorySeparator:()=>qc,entityNameToString:()=>kp,enumerateInsertsAndDeletes:()=>ZW,equalOwnProperties:()=>uZ,equateStringsCaseInsensitive:()=>lb,equateStringsCaseSensitive:()=>_S,equateValues:()=>sb,escapeJsxAttributeString:()=>pV,escapeLeadingUnderscores:()=>Pl,escapeNonAsciiString:()=>T6,escapeSnippetText:()=>BS,escapeString:()=>O_,escapeTemplateSubstitution:()=>dV,evaluatorResult:()=>Kc,every:()=>Hn,exclusivelyPrefixedNodeCoreModules:()=>f4,executeCommandLine:()=>cxe,expandPreOrPostfixIncrementOrDecrementExpression:()=>W4,explainFiles:()=>tq,explainIfFileIsRedirectAndImpliedFormat:()=>nq,exportAssignmentIsAlias:()=>Lk,expressionResultIsUnused:()=>Zre,extend:()=>t9,extensionFromPath:()=>NM,extensionIsTS:()=>r4,extensionsNotSupportingExtensionlessResolution:()=>n4,externalHelpersModuleNameText:()=>bb,factory:()=>L,fileExtensionIs:()=>xl,fileExtensionIsOneOf:()=>tc,fileIncludeReasonToDiagnostics:()=>oq,fileShouldUseJavaScriptRequire:()=>LJ,filter:()=>Un,filterMutate:()=>fl,filterSemanticDiagnostics:()=>V3,find:()=>mn,findAncestor:()=>Dn,findBestPatternMatch:()=>c9,findChildOfKind:()=>Is,findComputedPropertyNameCacheAssignment:()=>j4,findConfigFile:()=>xH,findConstructorDeclaration:()=>uw,findContainingList:()=>b7,findDiagnosticForNode:()=>Wce,findFirstNonJsxWhitespaceToken:()=>ace,findIndex:()=>ho,findLast:()=>ga,findLastIndex:()=>vl,findListItemInfo:()=>oce,findModifier:()=>lC,findNextToken:()=>iE,findPackageJson:()=>Oce,findPackageJsons:()=>IJ,findPrecedingMatchingToken:()=>I7,findPrecedingToken:()=>jc,findSuperStatementIndexPath:()=>A3,findTokenOnLeftOfPosition:()=>LP,findUseStrictPrologue:()=>$j,first:()=>Qa,firstDefined:()=>Ln,firstDefinedIterator:()=>rr,firstIterator:()=>$B,firstOrOnly:()=>CJ,firstOrUndefined:()=>Rc,firstOrUndefinedIterator:()=>KW,fixupCompilerOptions:()=>XJ,flatMap:()=>fi,flatMapIterator:()=>Il,flatMapToMutable:()=>bs,flatten:()=>Yo,flattenCommaList:()=>Ioe,flattenDestructuringAssignment:()=>F1,flattenDestructuringBinding:()=>ZS,flattenDiagnosticMessageText:()=>c_,forEach:()=>qe,forEachAncestor:()=>Jte,forEachAncestorDirectory:()=>NN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>z_,forEachChild:()=>Jo,forEachChildRecursively:()=>ox,forEachDynamicImportOrRequireCall:()=>m4,forEachEmittedFile:()=>hH,forEachEnclosingBlockScopeContainer:()=>lne,forEachEntry:()=>Jc,forEachExternalModuleToImportFrom:()=>OJ,forEachImportClauseDeclaration:()=>wne,forEachKey:()=>yg,forEachLeadingCommentRange:()=>P2,forEachNameInAccessChainWalkingLeft:()=>Tre,forEachNameOfDefaultExport:()=>$7,forEachOptionsSyntaxByName:()=>_j,forEachProjectReference:()=>BM,forEachPropertyAssignment:()=>tD,forEachResolvedProjectReference:()=>mj,forEachReturnStatement:()=>Ab,forEachRight:()=>Mn,forEachTrailingCommentRange:()=>L2,forEachTsConfigPropArray:()=>pk,forEachUnique:()=>mJ,forEachYieldExpression:()=>_ne,formatColorAndReset:()=>tE,formatDiagnostic:()=>NH,formatDiagnostics:()=>JAe,formatDiagnosticsWithColorAndContext:()=>kse,formatGeneratedName:()=>o0,formatGeneratedNamePart:()=>BD,formatLocation:()=>MH,formatMessage:()=>OI,formatStringFromArgs:()=>Ig,formatting:()=>Lc,generateDjb2Hash:()=>D2,generateTSConfig:()=>Koe,getAdjustedReferenceLocation:()=>Jq,getAdjustedRenameLocation:()=>S7,getAliasDeclarationFromName:()=>eV,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>aH,getAllDecoratorsOfClassElement:()=>x3,getAllJSDocTags:()=>TF,getAllJSDocTagsOfKind:()=>F0e,getAllKeys:()=>zTe,getAllProjectOutputs:()=>M3,getAllSuperTypeNodes:()=>cM,getAllowImportingTsExtensions:()=>Dre,getAllowJSCompilerOption:()=>Mb,getAllowSyntheticDefaultImports:()=>WI,getAncestor:()=>UT,getAnyExtensionFromPath:()=>sI,getAreDeclarationMapsEnabled:()=>j6,getAssignedExpandoInitializer:()=>TI,getAssignedName:()=>yF,getAssignmentDeclarationKind:()=>lc,getAssignmentDeclarationPropertyAccessKind:()=>Ak,getAssignmentTargetKind:()=>Ib,getAutomaticTypeDirectiveNames:()=>c3,getBaseFileName:()=>Dc,getBinaryOperatorPrecedence:()=>Wk,getBuildInfo:()=>TH,getBuildInfoFileVersionMap:()=>HH,getBuildInfoText:()=>Sse,getBuildOrderFromAnyBuildOrder:()=>_O,getBuilderCreationParameters:()=>q3,getBuilderFileEmit:()=>Hb,getCanonicalDiagnostic:()=>fne,getCheckFlags:()=>Bl,getClassExtendsHeritageElement:()=>MS,getClassLikeDeclarationOfSymbol:()=>fy,getCombinedLocalAndExportSymbolFlags:()=>hD,getCombinedModifierFlags:()=>kT,getCombinedNodeFlags:()=>oy,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>X9,getCommentRange:()=>n_,getCommonSourceDirectory:()=>EP,getCommonSourceDirectoryOfConfig:()=>z1,getCompilerOptionValue:()=>q6,getConditions:()=>Gb,getConfigFileParsingDiagnostics:()=>nE,getConstantValue:()=>Eie,getContainerFlags:()=>BU,getContainerNode:()=>V1,getContainingClass:()=>_d,getContainingClassExcludingClassDecorators:()=>n6,getContainingClassStaticBlock:()=>Ane,getContainingFunction:()=>pf,getContainingFunctionDeclaration:()=>Ene,getContainingFunctionOrClassStaticBlock:()=>t6,getContainingNodeArray:()=>eie,getContainingObjectLiteralElement:()=>XO,getContextualTypeFromParent:()=>W7,getContextualTypeFromParentOrAncestorTypeNode:()=>T7,getDeclarationDiagnostics:()=>gse,getDeclarationEmitExtensionForPath:()=>A6,getDeclarationEmitOutputFilePath:()=>Yne,getDeclarationEmitOutputFilePathWorker:()=>E6,getDeclarationFileExtension:()=>H4,getDeclarationFromName:()=>lM,getDeclarationModifierFlagsFromSymbol:()=>qf,getDeclarationOfKind:()=>ll,getDeclarationsOfKind:()=>Hte,getDeclaredExpandoInitializer:()=>iM,getDecorators:()=>fb,getDefaultCompilerOptions:()=>fz,getDefaultFormatCodeSettings:()=>u7,getDefaultLibFileName:()=>w2,getDefaultLibFilePath:()=>Eue,getDefaultLikeExportInfo:()=>Y7,getDefaultLikeExportNameFromDeclaration:()=>NJ,getDefaultResolutionModeForFileWorker:()=>G3,getDiagnosticText:()=>ap,getDiagnosticsWithinSpan:()=>Fce,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>XH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>ole,getDocumentPositionMapper:()=>UJ,getDocumentSpansEqualityComparer:()=>fJ,getESModuleInterop:()=>e_,getEditsForFileRename:()=>Kce,getEffectiveBaseTypeNode:()=>uh,getEffectiveConstraintOfTypeParameter:()=>jR,getEffectiveContainerForJSDocTemplateTag:()=>m6,getEffectiveImplementsTypeNodes:()=>lD,getEffectiveInitializer:()=>Tk,getEffectiveJSDocHost:()=>jT,getEffectiveModifierFlags:()=>Ud,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>ore,getEffectiveModifierFlagsNoCache:()=>are,getEffectiveReturnTypeNode:()=>Wp,getEffectiveSetAccessorTypeAnnotationNode:()=>bV,getEffectiveTypeAnnotationNode:()=>Cc,getEffectiveTypeParameterDeclarations:()=>mb,getEffectiveTypeRoots:()=>lP,getElementOrPropertyAccessArgumentExpressionOrName:()=>f6,getElementOrPropertyAccessName:()=>ly,getElementsOfBindingOrAssignmentPattern:()=>zD,getEmitDeclarations:()=>vp,getEmitFlags:()=>Za,getEmitHelpers:()=>Sj,getEmitModuleDetectionKind:()=>Cre,getEmitModuleFormatOfFileWorker:()=>RP,getEmitModuleKind:()=>Eu,getEmitModuleResolutionKind:()=>su,getEmitScriptTarget:()=>Va,getEmitStandardClassFields:()=>jV,getEnclosingBlockScopeContainer:()=>dh,getEnclosingContainer:()=>JF,getEncodedSemanticClassifications:()=>WJ,getEncodedSyntacticClassifications:()=>FJ,getEndLinePosition:()=>nk,getEntityNameFromTypeNode:()=>hk,getEntrypointsFromPackageJsonInfo:()=>wU,getErrorCountForSummary:()=>X3,getErrorSpanForNode:()=>o1,getErrorSummaryText:()=>ZH,getEscapedTextOfIdentifierOrLiteral:()=>pM,getEscapedTextOfJsxAttributeName:()=>FM,getEscapedTextOfJsxNamespacedName:()=>GI,getExpandoInitializer:()=>GT,getExportAssignmentExpression:()=>tV,getExportInfoMap:()=>GO,getExportNeedsImportStarHelper:()=>Fae,getExpressionAssociativity:()=>lV,getExpressionPrecedence:()=>mM,getExternalHelpersModuleName:()=>Cw,getExternalModuleImportEqualsDeclarationExpression:()=>tM,getExternalModuleName:()=>EI,getExternalModuleNameFromDeclaration:()=>Kne,getExternalModuleNameFromPath:()=>hV,getExternalModuleNameLiteral:()=>ix,getExternalModuleRequireArgument:()=>UG,getFallbackOptions:()=>lO,getFileEmitOutput:()=>zse,getFileMatcherPatterns:()=>$6,getFileNamesFromConfigSpecs:()=>aP,getFileWatcherEventKind:()=>w9,getFilesInErrorForSummary:()=>Y3,getFirstConstructorWithBody:()=>Eg,getFirstIdentifier:()=>Ou,getFirstNonSpaceCharacterPosition:()=>Nce,getFirstProjectOutput:()=>yH,getFixableErrorSpanExpression:()=>RJ,getFormatCodeSettingsForWriting:()=>J7,getFullWidth:()=>ek,getFunctionFlags:()=>pc,getHeritageClause:()=>kk,getHostSignatureFromJSDoc:()=>VT,getIdentifierAutoGenerate:()=>FSe,getIdentifierGeneratedImportReference:()=>Cie,getIdentifierTypeArguments:()=>b1,getImmediatelyInvokedFunctionExpression:()=>zT,getImpliedNodeFormatForEmitWorker:()=>B1,getImpliedNodeFormatForFile:()=>dO,getImpliedNodeFormatForFileWorker:()=>B3,getImportNeedsImportDefaultHelper:()=>rH,getImportNeedsImportStarHelper:()=>S3,getIndentString:()=>S6,getInferredLibraryNameResolveFrom:()=>z3,getInitializedVariables:()=>SM,getInitializerOfBinaryExpression:()=>KG,getInitializerOfBindingOrAssignmentElement:()=>Mw,getInterfaceBaseTypeNodes:()=>dM,getInternalEmitFlags:()=>jm,getInvokedExpression:()=>o6,getIsFileExcluded:()=>jce,getIsolatedModules:()=>Am,getJSDocAugmentsTag:()=>mte,getJSDocClassTag:()=>Q9,getJSDocCommentRanges:()=>zG,getJSDocCommentsAndTags:()=>XG,getJSDocDeprecatedTag:()=>Z9,getJSDocDeprecatedTagNoCache:()=>Tte,getJSDocEnumTag:()=>eG,getJSDocHost:()=>CS,getJSDocImplementsTags:()=>hte,getJSDocOverloadTags:()=>$G,getJSDocOverrideTagNoCache:()=>bte,getJSDocParameterTags:()=>VR,getJSDocParameterTagsNoCache:()=>dte,getJSDocPrivateTag:()=>k0e,getJSDocPrivateTagNoCache:()=>gte,getJSDocProtectedTag:()=>w0e,getJSDocProtectedTagNoCache:()=>yte,getJSDocPublicTag:()=>L0e,getJSDocPublicTagNoCache:()=>_te,getJSDocReadonlyTag:()=>O0e,getJSDocReadonlyTagNoCache:()=>vte,getJSDocReturnTag:()=>Ste,getJSDocReturnType:()=>G2,getJSDocRoot:()=>sD,getJSDocSatisfiesExpressionType:()=>sj,getJSDocSatisfiesTag:()=>tG,getJSDocTags:()=>OT,getJSDocTemplateTag:()=>W0e,getJSDocThisTag:()=>vF,getJSDocType:()=>Zy,getJSDocTypeAliasName:()=>eU,getJSDocTypeAssertionType:()=>WD,getJSDocTypeParameterDeclarations:()=>C6,getJSDocTypeParameterTags:()=>ute,getJSDocTypeParameterTagsNoCache:()=>pte,getJSDocTypeTag:()=>wT,getJSXImplicitImportBase:()=>tw,getJSXRuntimeImport:()=>K6,getJSXTransformEnabled:()=>J6,getKeyForCompilerOptions:()=>NU,getLanguageVariant:()=>Xk,getLastChild:()=>OV,getLeadingCommentRanges:()=>fg,getLeadingCommentRangesOfNode:()=>FG,getLeftmostAccessExpression:()=>_D,getLeftmostExpression:()=>gD,getLibFileNameFromLibReference:()=>fj,getLibNameFromLibReference:()=>pj,getLibraryNameFromLibFileName:()=>wH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>eH,getLineOfLocalPosition:()=>_M,getLineStartPositionForPosition:()=>Cm,getLineStarts:()=>ug,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>yre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>gre,getLinesBetweenPositions:()=>PN,getLinesBetweenRangeEndAndRangeStart:()=>MV,getLinesBetweenRangeEndPositions:()=>fSe,getLiteralText:()=>tne,getLocalNameForExternalImport:()=>FD,getLocalSymbolForExportDefault:()=>bM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>hO,getMappedContextSpan:()=>hJ,getMappedDocumentSpan:()=>k7,getMappedLocation:()=>WP,getMatchedFileSpec:()=>rq,getMatchedIncludeSpec:()=>iq,getMeaningFromDeclaration:()=>f7,getMeaningFromLocation:()=>G1,getMembersOfDeclaration:()=>gne,getModeForFileReference:()=>wse,getModeForResolutionAtIndex:()=>ZAe,getModeForUsageLocation:()=>LH,getModifiedTime:()=>aI,getModifiers:()=>yS,getModuleInstanceState:()=>yy,getModuleNameStringLiteralAt:()=>pO,getModuleSpecifierEndingPreference:()=>jre,getModuleSpecifierResolverHost:()=>aJ,getNameForExportedSymbol:()=>U7,getNameFromImportAttribute:()=>d4,getNameFromIndexInfo:()=>cne,getNameFromPropertyName:()=>NO,getNameOfAccessExpression:()=>FV,getNameOfCompilerOptionValue:()=>e3,getNameOfDeclaration:()=>wo,getNameOfExpando:()=>HG,getNameOfJSDocTypedef:()=>cte,getNameOfScriptTarget:()=>H6,getNameOrArgument:()=>Ek,getNameTable:()=>bK,getNamespaceDeclarationNode:()=>oD,getNewLineCharacter:()=>av,getNewLineKind:()=>BO,getNewLineOrDefaultFromHost:()=>by,getNewTargetContainer:()=>xne,getNextJSDocCommentLocation:()=>YG,getNodeChildren:()=>Hj,getNodeForGeneratedName:()=>Lw,getNodeId:()=>ls,getNodeKind:()=>rE,getNodeModifiers:()=>kP,getNodeModulePathParts:()=>s4,getNonAssignedNameOfDeclaration:()=>gF,getNonAssignmentOperatorForCompoundAssignment:()=>_P,getNonAugmentationDeclaration:()=>MG,getNonDecoratorTokenPosOfNode:()=>IG,getNonIncrementalBuildInfoRoots:()=>ele,getNonModifierTokenPosOfNode:()=>Zte,getNormalizedAbsolutePath:()=>bo,getNormalizedAbsolutePathWithoutRoot:()=>z9,getNormalizedPathComponents:()=>cF,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>cV,getOperatorPrecedence:()=>Ok,getOptionFromName:()=>_U,getOptionsForLibraryResolution:()=>MU,getOptionsNameMap:()=>VD,getOptionsSyntaxByArrayElementValue:()=>hj,getOptionsSyntaxByValue:()=>pie,getOrCreateEmitNode:()=>qd,getOrUpdate:()=>Of,getOriginalNode:()=>bl,getOriginalNodeId:()=>Gu,getOutputDeclarationFileName:()=>SP,getOutputDeclarationFileNameWorker:()=>_H,getOutputExtension:()=>oO,getOutputFileNames:()=>HAe,getOutputJSFileNameWorker:()=>gH,getOutputPathsFor:()=>TP,getOwnEmitOutputFilePath:()=>Xne,getOwnKeys:()=>Bh,getOwnValues:()=>nI,getPackageJsonTypesVersionsPaths:()=>l3,getPackageNameFromTypesPackageName:()=>pP,getPackageScopeForPath:()=>uP,getParameterSymbolFromJSDoc:()=>Nk,getParentNodeInSpan:()=>PO,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>zw,getPathComponents:()=>Vd,getPathFromPathComponents:()=>LT,getPathUpdater:()=>GJ,getPathsBasePath:()=>I6,getPatternFromSpec:()=>KV,getPendingEmitKindWithSeen:()=>H3,getPositionOfLineAndCharacter:()=>N2,getPossibleGenericSignatures:()=>Xq,getPossibleOriginalInputExtensionForExtension:()=>_V,getPossibleOriginalInputPathWithoutChangingExt:()=>gV,getPossibleTypeArgumentsInfo:()=>Yq,getPreEmitDiagnostics:()=>qAe,getPrecedingNonSpaceCharacterPosition:()=>w7,getPrivateIdentifier:()=>sH,getProperties:()=>oH,getProperty:()=>T2,getPropertyAssignmentAliasLikeExpression:()=>Vne,getPropertyNameForPropertyNameNode:()=>f1,getPropertyNameFromType:()=>Kf,getPropertyNameOfBindingOrAssignmentElement:()=>Zj,getPropertySymbolFromBindingElement:()=>L7,getPropertySymbolsFromContextualType:()=>hz,getQuoteFromPreference:()=>lJ,getQuotePreference:()=>Up,getRangesWhere:()=>JB,getRefactorContextSpan:()=>vx,getReferencedFileLocation:()=>xP,getRegexFromPattern:()=>sv,getRegularExpressionForWildcard:()=>RM,getRegularExpressionsForWildcards:()=>X6,getRelativePathFromDirectory:()=>uf,getRelativePathFromFile:()=>WR,getRelativePathToDirectoryOrUrl:()=>FR,getRenameLocation:()=>kO,getReplacementSpanForContextToken:()=>eJ,getResolutionDiagnostic:()=>zH,getResolutionModeOverride:()=>$D,getResolveJsonModule:()=>WS,getResolvePackageJsonExports:()=>$k,getResolvePackageJsonImports:()=>Qk,getResolvedExternalModuleName:()=>mV,getResolvedModuleFromResolution:()=>gI,getResolvedTypeReferenceDirectiveFromResolution:()=>zF,getRestIndicatorOfBindingOrAssignmentElement:()=>B4,getRestParameterElementType:()=>BG,getRightMostAssignedExpression:()=>Sk,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>ale,getRootLength:()=>Vh,getScriptKind:()=>vJ,getScriptKindFromFileName:()=>Z6,getScriptTargetFeatures:()=>xG,getSelectedEffectiveModifierFlags:()=>CI,getSelectedSyntacticModifierFlags:()=>rre,getSemanticClassifications:()=>Uce,getSemanticJsxChildren:()=>dD,getSetAccessorTypeAnnotationNode:()=>Qne,getSetAccessorValueParameter:()=>gM,getSetExternalModuleIndicator:()=>Yk,getShebang:()=>hF,getSingleVariableOfVariableStatement:()=>xI,getSnapshotText:()=>yx,getSnippetElement:()=>Ej,getSourceFileOfModule:()=>tk,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>R6,getSourceFileVersionAsHashFromText:()=>Q3,getSourceFilesToEmit:()=>x6,getSourceMapRange:()=>dv,getSourceMapper:()=>ade,getSourceTextOfNodeFromSourceFile:()=>ES,getSpanOfTokenAtPosition:()=>qh,getSpellingSuggestion:()=>gS,getStartPositionOfLine:()=>Tb,getStartPositionOfRange:()=>TM,getStartsOnNewLine:()=>GM,getStaticPropertiesAndClassStaticBlock:()=>I3,getStrictOptionValue:()=>Hd,getStringComparer:()=>PR,getSubPatternFromSpec:()=>Y6,getSuperCallFromStatement:()=>E3,getSuperContainer:()=>fk,getSupportedCodeFixes:()=>yK,getSupportedExtensions:()=>DM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>rw,getSwitchedType:()=>SJ,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>wk,getSymbolTarget:()=>bJ,getSyntacticClassifications:()=>Hce,getSyntacticModifierFlags:()=>iv,getSyntacticModifierFlagsNoCache:()=>EV,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>pw,getSynthesizedDeepClones:()=>GS,getSynthesizedDeepClonesWithReplacements:()=>gj,getSyntheticLeadingComments:()=>ED,getSyntheticTrailingComments:()=>gw,getTargetLabel:()=>_7,getTargetOfBindingOrAssignmentElement:()=>zb,getTemporaryModuleResolutionState:()=>dP,getTextOfConstantValue:()=>nne,getTextOfIdentifierOrLiteral:()=>jf,getTextOfJSDocComment:()=>V2,getTextOfJsxAttributeName:()=>dw,getTextOfJsxNamespacedName:()=>zM,getTextOfNode:()=>Rl,getTextOfNodeFromSourceText:()=>XN,getTextOfPropertyName:()=>bI,getThisContainer:()=>Su,getThisParameter:()=>LS,getTokenAtPosition:()=>zi,getTokenPosOfNode:()=>Sb,getTokenSourceMapRange:()=>OSe,getTouchingPropertyName:()=>sp,getTouchingToken:()=>aC,getTrailingCommentRanges:()=>pb,getTrailingSemicolonDeferringWriter:()=>fV,getTransformers:()=>vse,getTsBuildInfoEmitOutputFilePath:()=>u0,getTsConfigObjectLiteralExpression:()=>ZN,getTsConfigPropArrayElementValue:()=>e6,getTypeAnnotationNode:()=>Zne,getTypeArgumentOrTypeParameterList:()=>fce,getTypeKeywordOfTypeOnlyImport:()=>uJ,getTypeNode:()=>Rie,getTypeNodeIfAccessible:()=>VP,getTypeParameterFromJsDoc:()=>One,getTypeParameterOwner:()=>C0e,getTypesPackageName:()=>h3,getUILocale:()=>_Z,getUniqueName:()=>U1,getUniqueSymbolId:()=>Cce,getUseDefineForClassFields:()=>Zk,getWatchErrorSummaryDiagnosticMessage:()=>QH,getWatchFactory:()=>IH,group:()=>MR,groupBy:()=>e9,guessIndentation:()=>Vte,handleNoEmitOptions:()=>FH,handleWatchOptionsConfigDirTemplateSubstitution:()=>n3,hasAbstractModifier:()=>OS,hasAccessorModifier:()=>$h,hasAmbientModifier:()=>SV,hasChangesInResolutions:()=>SG,hasContextSensitiveParameters:()=>a4,hasDecorators:()=>mf,hasDocComment:()=>uce,hasDynamicName:()=>cy,hasEffectiveModifier:()=>Fp,hasEffectiveModifiers:()=>TV,hasEffectiveReadonlyModifier:()=>h1,hasExtension:()=>OR,hasImplementationTSFileExtension:()=>Gre,hasIndexSignature:()=>TJ,hasInferredType:()=>p4,hasInitializer:()=>tv,hasInvalidEscape:()=>uV,hasJSDocNodes:()=>rf,hasJSDocParameterTags:()=>fte,hasJSFileExtension:()=>xg,hasJsonModuleEmitEnabled:()=>U6,hasOnlyExpressionInitializer:()=>r1,hasOverrideModifier:()=>N6,hasPossibleExternalModuleReference:()=>sne,hasProperty:()=>Cs,hasPropertyAccessExpressionWithName:()=>SO,hasQuestionToken:()=>AI,hasRecordedExternalHelpers:()=>foe,hasResolutionModeOverride:()=>oie,hasRestParameter:()=>gG,hasScopeMarker:()=>Lte,hasStaticModifier:()=>Fc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>nre,hasTSFileExtension:()=>g1,hasTabstop:()=>nie,hasTrailingDirectorySeparator:()=>db,hasType:()=>kF,hasTypeArguments:()=>rSe,hasZeroOrOneAsteriskCharacter:()=>UV,hostGetCanonicalFileName:()=>dy,hostUsesCaseSensitiveFileNames:()=>m1,idText:()=>Kr,identifierIsThisKeyword:()=>vV,identifierToKeywordKind:()=>$E,identity:()=>Us,identitySourceMapConsumer:()=>nH,ignoreSourceNewlines:()=>Ij,ignoredPaths:()=>oF,importFromModuleSpecifier:()=>aM,importSyntaxAffectsModuleResolution:()=>VV,indexOfAnyCharCode:()=>Gi,indexOfNode:()=>YR,indicesOf:()=>JW,inferredTypesContainingFile:()=>IP,injectClassNamedEvaluationHelperBlockIfMissing:()=>C3,injectClassThisAssignmentIfMissing:()=>qae,insertImports:()=>dJ,insertSorted:()=>nb,insertStatementAfterCustomPrologue:()=>i1,insertStatementAfterStandardPrologue:()=>Y0e,insertStatementsAfterCustomPrologue:()=>EG,insertStatementsAfterStandardPrologue:()=>vg,intersperse:()=>uo,intrinsicTagNameToString:()=>lj,introducesArgumentsExoticObject:()=>bne,inverseJsxOptionMap:()=>Ww,isAbstractConstructorSymbol:()=>vre,isAbstractModifier:()=>zie,isAccessExpression:()=>Ys,isAccessibilityModifier:()=>Qq,isAccessor:()=>yb,isAccessorModifier:()=>Mj,isAliasableExpression:()=>h6,isAmbientModule:()=>Tu,isAmbientPropertyDeclaration:()=>LG,isAnyDirectorySeparator:()=>O9,isAnyImportOrBareOrAccessedRequire:()=>one,isAnyImportOrReExport:()=>ok,isAnyImportOrRequireStatement:()=>ane,isAnyImportSyntax:()=>vI,isAnySupportedFileExtension:()=>RSe,isApplicableVersionedTypesKey:()=>Jw,isArgumentExpressionOfElementAccess:()=>Gq,isArray:()=>No,isArrayBindingElement:()=>DF,isArrayBindingOrAssignmentElement:()=>K2,isArrayBindingOrAssignmentPattern:()=>uG,isArrayBindingPattern:()=>mv,isArrayLiteralExpression:()=>Nd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>gv,isArrayTypeNode:()=>Tw,isArrowFunction:()=>$s,isAsExpression:()=>DD,isAssertClause:()=>Jie,isAssertEntry:()=>JSe,isAssertionExpression:()=>SS,isAssertsKeyword:()=>Wie,isAssignmentDeclaration:()=>rM,isAssignmentExpression:()=>od,isAssignmentOperator:()=>uy,isAssignmentPattern:()=>HN,isAssignmentTarget:()=>xb,isAsteriskToken:()=>vw,isAsyncFunction:()=>uM,isAsyncModifier:()=>UM,isAutoAccessorPropertyDeclaration:()=>Zu,isAwaitExpression:()=>Wb,isAwaitKeyword:()=>Nj,isBigIntLiteral:()=>AD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>Gk,isBinaryOperatorToken:()=>Toe,isBindableObjectDefinePropertyCall:()=>c1,isBindableStaticAccessExpression:()=>DS,isBindableStaticElementAccessExpression:()=>p6,isBindableStaticNameExpression:()=>d1,isBindingElement:()=>qa,isBindingElementOfBareOrAccessedRequire:()=>Cne,isBindingName:()=>t1,isBindingOrAssignmentElement:()=>Cte,isBindingOrAssignmentPattern:()=>q2,isBindingPattern:()=>Zo,isBlock:()=>ta,isBlockLike:()=>bx,isBlockOrCatchScoped:()=>RG,isBlockScope:()=>kG,isBlockScopedContainerTopLevel:()=>ine,isBooleanLiteral:()=>UN,isBreakOrContinueStatement:()=>BN,isBreakStatement:()=>USe,isBuildCommand:()=>Dle,isBuildInfoFile:()=>bse,isBuilderProgram:()=>eq,isBundle:()=>$ie,isCallChain:()=>QE,isCallExpression:()=>ea,isCallExpressionTarget:()=>wq,isCallLikeExpression:()=>TS,isCallLikeOrFunctionLikeExpression:()=>pG,isCallOrNewExpression:()=>Uh,isCallOrNewExpressionTarget:()=>Oq,isCallSignatureDeclaration:()=>XI,isCallToHelper:()=>jM,isCaseBlock:()=>$M,isCaseClause:()=>PD,isCaseKeyword:()=>Gie,isCaseOrDefaultClause:()=>PF,isCatchClause:()=>KS,isCatchClauseVariableDeclaration:()=>tie,isCatchClauseVariableDeclarationOrBindingElement:()=>DG,isCheckJsEnabledForFile:()=>MM,isCircularBuildOrder:()=>_x,isClassDeclaration:()=>Mc,isClassElement:()=>Sc,isClassExpression:()=>fc,isClassInstanceProperty:()=>Rte,isClassLike:()=>ui,isClassMemberModifier:()=>lG,isClassNamedEvaluationHelperBlock:()=>fx,isClassOrTypeElement:()=>RF,isClassStaticBlockDeclaration:()=>nc,isClassThisAssignmentBlock:()=>yP,isColonToken:()=>wie,isCommaExpression:()=>Dw,isCommaListExpression:()=>XM,isCommaSequence:()=>nP,isCommaToken:()=>kie,isComment:()=>x7,isCommonJsExportPropertyAssignment:()=>QF,isCommonJsExportedExpression:()=>yne,isCompoundAssignment:()=>hP,isComputedNonLiteralName:()=>ak,isComputedPropertyName:()=>va,isConciseBody:()=>NF,isConditionalExpression:()=>I1,isConditionalTypeNode:()=>jS,isConstAssertion:()=>cj,isConstTypeReference:()=>Gm,isConstructSignatureDeclaration:()=>JM,isConstructorDeclaration:()=>kl,isConstructorTypeNode:()=>ID,isContextualKeyword:()=>g6,isContinueStatement:()=>jSe,isCustomPrologue:()=>uk,isDebuggerStatement:()=>HSe,isDeclaration:()=>id,isDeclarationBindingElement:()=>H2,isDeclarationFileName:()=>sd,isDeclarationName:()=>w_,isDeclarationNameOfEnumOrNamespace:()=>LV,isDeclarationReadonly:()=>lk,isDeclarationStatement:()=>Wte,isDeclarationWithTypeParameterChildren:()=>OG,isDeclarationWithTypeParameters:()=>wG,isDecorator:()=>Bc,isDecoratorTarget:()=>ece,isDefaultClause:()=>QM,isDefaultImport:()=>u1,isDefaultModifier:()=>A4,isDefaultedExpandoInitializer:()=>Nne,isDeleteExpression:()=>jie,isDeleteTarget:()=>ZG,isDeprecatedDeclaration:()=>H7,isDestructuringAssignment:()=>ov,isDiskPathRoot:()=>W9,isDoStatement:()=>VSe,isDocumentRegistryEntry:()=>VO,isDotDotDotToken:()=>S4,isDottedName:()=>jk,isDynamicName:()=>v6,isEffectiveExternalModule:()=>$R,isEffectiveStrictModeSourceFile:()=>PG,isElementAccessChain:()=>nG,isElementAccessExpression:()=>zs,isEmittedFileOfProgram:()=>Rse,isEmptyArrayLiteral:()=>dre,isEmptyBindingElement:()=>ate,isEmptyBindingPattern:()=>ote,isEmptyObjectLiteral:()=>DV,isEmptyStatement:()=>kj,isEmptyStringLiteral:()=>jG,isEntityName:()=>ku,isEntityNameExpression:()=>Ns,isEnumConst:()=>FT,isEnumDeclaration:()=>t0,isEnumMember:()=>_y,isEqualityOperatorKind:()=>F7,isEqualsGreaterThanToken:()=>Oie,isExclamationToken:()=>bw,isExcludedFile:()=>Yoe,isExclusivelyTypeOnlyImportOrExport:()=>PH,isExpandoPropertyDeclaration:()=>VI,isExportAssignment:()=>dl,isExportDeclaration:()=>hc,isExportModifier:()=>JI,isExportName:()=>F4,isExportNamespaceAsDefaultDeclaration:()=>UF,isExportOrDefaultModifier:()=>Pw,isExportSpecifier:()=>lu,isExportsIdentifier:()=>l1,isExportsOrModuleExportsOrAlias:()=>$S,isExpression:()=>St,isExpressionNode:()=>k_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>rce,isExpressionOfOptionalChainRoot:()=>EF,isExpressionStatement:()=>ad,isExpressionWithTypeArguments:()=>my,isExpressionWithTypeArgumentsInClassExtendsClause:()=>P6,isExternalModule:()=>Vc,isExternalModuleAugmentation:()=>IS,isExternalModuleImportEqualsDeclaration:()=>BT,isExternalModuleIndicator:()=>Y2,isExternalModuleNameRelative:()=>nd,isExternalModuleReference:()=>hy,isExternalModuleSymbol:()=>hI,isExternalOrCommonJsModule:()=>wp,isFileLevelReservedGeneratedIdentifier:()=>U2,isFileLevelUniqueName:()=>VF,isFileProbablyExternalModule:()=>ww,isFirstDeclarationOfSymbolParameter:()=>_J,isFixablePromiseHandler:()=>JJ,isForInOrOfStatement:()=>n1,isForInStatement:()=>C4,isForInitializer:()=>Bf,isForOfStatement:()=>Ew,isForStatement:()=>e0,isFullSourceFile:()=>Tg,isFunctionBlock:()=>xS,isFunctionBody:()=>mG,isFunctionDeclaration:()=>rc,isFunctionExpression:()=>qs,isFunctionExpressionOrArrowFunction:()=>Pb,isFunctionLike:()=>$o,isFunctionLikeDeclaration:()=>Ls,isFunctionLikeKind:()=>uI,isFunctionLikeOrClassStaticBlockDeclaration:()=>qR,isFunctionOrConstructorTypeNode:()=>Dte,isFunctionOrModuleBlock:()=>cG,isFunctionSymbol:()=>Lne,isFunctionTypeNode:()=>W_,isGeneratedIdentifier:()=>ml,isGeneratedPrivateIdentifier:()=>e1,isGetAccessor:()=>_g,isGetAccessorDeclaration:()=>Xf,isGetOrSetAccessorDeclaration:()=>j2,isGlobalScopeAugmentation:()=>L_,isGlobalSourceFile:()=>nv,isGrammarError:()=>$te,isHeritageClause:()=>Gp,isHoistedFunction:()=>YF,isHoistedVariableStatement:()=>$F,isIdentifier:()=>Je,isIdentifierANonContextualKeyword:()=>iV,isIdentifierName:()=>Gne,isIdentifierOrThisTypeNode:()=>goe,isIdentifierPart:()=>iy,isIdentifierStart:()=>C_,isIdentifierText:()=>_p,isIdentifierTypePredicate:()=>Tne,isIdentifierTypeReference:()=>Yre,isIfStatement:()=>ZT,isIgnoredFileFromWildCardWatching:()=>sO,isImplicitGlob:()=>JV,isImportAttribute:()=>Kie,isImportAttributeName:()=>xte,isImportAttributes:()=>D1,isImportCall:()=>tp,isImportClause:()=>Jm,isImportDeclaration:()=>Tl,isImportEqualsDeclaration:()=>Gc,isImportKeyword:()=>qM,isImportMeta:()=>eD,isImportOrExportSpecifier:()=>_b,isImportOrExportSpecifierName:()=>Dce,isImportSpecifier:()=>xu,isImportTypeAssertionContainer:()=>qSe,isImportTypeNode:()=>r_,isImportable:()=>wJ,isInComment:()=>_v,isInCompoundLikeAssignment:()=>QG,isInExpressionContext:()=>a6,isInJSDoc:()=>nM,isInJSFile:()=>Ir,isInJSXText:()=>dce,isInJsonFile:()=>l6,isInNonReferenceComment:()=>_ce,isInReferenceComment:()=>hce,isInRightSideOfInternalImportEqualsDeclaration:()=>m7,isInString:()=>gx,isInTemplateString:()=>Kq,isInTopLevelContext:()=>r6,isInTypeQuery:()=>DI,isIncrementalBuildInfo:()=>fO,isIncrementalBundleEmitBuildInfo:()=>Kse,isIncrementalCompilation:()=>FS,isIndexSignatureDeclaration:()=>Ob,isIndexedAccessTypeNode:()=>US,isInferTypeNode:()=>S1,isInfinityOrNaNString:()=>OM,isInitializedProperty:()=>$w,isInitializedVariable:()=>Kk,isInsideJsxElement:()=>A7,isInsideJsxElementOrAttribute:()=>cce,isInsideNodeModules:()=>WO,isInsideTemplateLiteral:()=>RO,isInstanceOfExpression:()=>L6,isInstantiatedModule:()=>XU,isInterfaceDeclaration:()=>yd,isInternalDeclaration:()=>jte,isInternalModuleImportEqualsDeclaration:()=>s1,isInternalName:()=>Yj,isIntersectionTypeNode:()=>QI,isIntrinsicJsxName:()=>uD,isIterationStatement:()=>vb,isJSDoc:()=>gh,isJSDocAllType:()=>eoe,isJSDocAugmentsTag:()=>rx,isJSDocAuthorTag:()=>$Se,isJSDocCallbackTag:()=>Fj,isJSDocClassTag:()=>noe,isJSDocCommentContainingNode:()=>LF,isJSDocConstructSignature:()=>II,isJSDocDeprecatedTag:()=>jj,isJSDocEnumTag:()=>Iw,isJSDocFunctionType:()=>kD,isJSDocImplementsTag:()=>w4,isJSDocImportTag:()=>l_,isJSDocIndexSignature:()=>d6,isJSDocLikeText:()=>oU,isJSDocLink:()=>Qie,isJSDocLinkCode:()=>Zie,isJSDocLinkLike:()=>mI,isJSDocLinkPlain:()=>XSe,isJSDocMemberName:()=>i0,isJSDocNameReference:()=>ZM,isJSDocNamepathType:()=>YSe,isJSDocNamespaceBody:()=>j0e,isJSDocNode:()=>JR,isJSDocNonNullableType:()=>M4,isJSDocNullableType:()=>LD,isJSDocOptionalParameter:()=>l4,isJSDocOptionalType:()=>Wj,isJSDocOverloadTag:()=>wD,isJSDocOverrideTag:()=>L4,isJSDocParameterTag:()=>_f,isJSDocPrivateTag:()=>Bj,isJSDocPropertyLikeTag:()=>GN,isJSDocPropertyTag:()=>roe,isJSDocProtectedTag:()=>Gj,isJSDocPublicTag:()=>zj,isJSDocReadonlyTag:()=>Vj,isJSDocReturnTag:()=>k4,isJSDocSatisfiesExpression:()=>aj,isJSDocSatisfiesTag:()=>O4,isJSDocSeeTag:()=>QSe,isJSDocSignature:()=>hv,isJSDocTag:()=>KR,isJSDocTemplateTag:()=>xm,isJSDocThisTag:()=>Uj,isJSDocThrowsTag:()=>eEe,isJSDocTypeAlias:()=>Tm,isJSDocTypeAssertion:()=>XS,isJSDocTypeExpression:()=>r0,isJSDocTypeLiteral:()=>N1,isJSDocTypeTag:()=>eP,isJSDocTypedefTag:()=>M1,isJSDocUnknownTag:()=>ZSe,isJSDocUnknownType:()=>toe,isJSDocVariadicType:()=>P4,isJSXTagName:()=>rD,isJsonEqual:()=>i4,isJsonSourceFile:()=>Vf,isJsxAttribute:()=>s_,isJsxAttributeLike:()=>MF,isJsxAttributeName:()=>iie,isJsxAttributes:()=>JS,isJsxCallLike:()=>Gte,isJsxChild:()=>Z2,isJsxClosingElement:()=>qS,isJsxClosingFragment:()=>Yie,isJsxElement:()=>a_,isJsxExpression:()=>MD,isJsxFragment:()=>n0,isJsxNamespacedName:()=>_h,isJsxOpeningElement:()=>hh,isJsxOpeningFragment:()=>Km,isJsxOpeningLikeElement:()=>au,isJsxOpeningLikeElementTagName:()=>tce,isJsxSelfClosingElement:()=>C1,isJsxSpreadAttribute:()=>nx,isJsxTagNameExpression:()=>qN,isJsxText:()=>HI,isJumpStatementTarget:()=>EO,isKeyword:()=>rp,isKeywordOrPunctuation:()=>_6,isKnownSymbol:()=>fM,isLabelName:()=>zq,isLabelOfLabeledStatement:()=>Fq,isLabeledStatement:()=>Fb,isLateVisibilityPaintedStatement:()=>qF,isLeftHandSideExpression:()=>ep,isLet:()=>XF,isLineBreak:()=>ru,isLiteralComputedPropertyDeclarationName:()=>Pk,isLiteralExpression:()=>ZE,isLiteralExpressionOfObject:()=>aG,isLiteralImportTypeNode:()=>sy,isLiteralKind:()=>VN,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>g7,isLiteralTypeLiteral:()=>Pte,isLiteralTypeNode:()=>fv,isLocalName:()=>gy,isLogicalOperator:()=>sre,isLogicalOrCoalescingAssignmentExpression:()=>AV,isLogicalOrCoalescingAssignmentOperator:()=>yM,isLogicalOrCoalescingBinaryExpression:()=>Vk,isLogicalOrCoalescingBinaryOperator:()=>M6,isMappedTypeNode:()=>A1,isMemberName:()=>hg,isMetaProperty:()=>x1,isMethodDeclaration:()=>Ll,isMethodOrAccessor:()=>pI,isMethodSignature:()=>qm,isMinusToken:()=>Cj,isMissingDeclaration:()=>KSe,isMissingPackageJsonInfo:()=>sae,isModifier:()=>Aa,isModifierKind:()=>gb,isModifierLike:()=>hl,isModuleAugmentationExternal:()=>NG,isModuleBlock:()=>i_,isModuleBody:()=>kte,isModuleDeclaration:()=>mc,isModuleExportName:()=>N4,isModuleExportsAccessExpression:()=>Sg,isModuleIdentifier:()=>qG,isModuleName:()=>boe,isModuleOrEnumDeclaration:()=>$2,isModuleReference:()=>zte,isModuleSpecifierLike:()=>P7,isModuleWithStringLiteralName:()=>HF,isNameOfFunctionDeclaration:()=>jq,isNameOfModuleDeclaration:()=>Vq,isNamedDeclaration:()=>rd,isNamedEvaluation:()=>Op,isNamedEvaluationSource:()=>oV,isNamedExportBindings:()=>iG,isNamedExports:()=>$f,isNamedImportBindings:()=>hG,isNamedImports:()=>o_,isNamedImportsOrExports:()=>z6,isNamedTupleMember:()=>xD,isNamespaceBody:()=>V0e,isNamespaceExport:()=>F_,isNamespaceExportDeclaration:()=>Aw,isNamespaceImport:()=>Ng,isNamespaceReexportDeclaration:()=>Dne,isNewExpression:()=>HS,isNewExpressionTarget:()=>MP,isNewScopeNode:()=>uie,isNoSubstitutionTemplateLiteral:()=>T1,isNodeArray:()=>vS,isNodeArrayMultiLine:()=>_re,isNodeDescendantOf:()=>NS,isNodeKind:()=>IF,isNodeLikeSystem:()=>p9,isNodeModulesDirectory:()=>uF,isNodeWithPossibleHoistedDeclaration:()=>zne,isNonContextualKeyword:()=>rV,isNonGlobalAmbientModule:()=>CG,isNonNullAccess:()=>rie,isNonNullChain:()=>AF,isNonNullExpression:()=>ex,isNonStaticMethodOrAccessorWithPrivateName:()=>zae,isNotEmittedStatement:()=>Xie,isNullishCoalesce:()=>rG,isNumber:()=>ob,isNumericLiteral:()=>op,isNumericLiteralName:()=>Dg,isObjectBindingElementWithoutPropertyName:()=>MO,isObjectBindingOrAssignmentElement:()=>J2,isObjectBindingOrAssignmentPattern:()=>dG,isObjectBindingPattern:()=>hf,isObjectLiteralElement:()=>_G,isObjectLiteralElementLike:()=>ay,isObjectLiteralExpression:()=>za,isObjectLiteralMethod:()=>bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>ZF,isObjectTypeDeclaration:()=>LI,isOmittedExpression:()=>Xc,isOptionalChain:()=>iu,isOptionalChainRoot:()=>FN,isOptionalDeclaration:()=>BI,isOptionalJSDocPropertyLikeTag:()=>cw,isOptionalTypeNode:()=>I4,isOuterExpression:()=>z4,isOutermostOptionalChain:()=>zN,isOverrideModifier:()=>Bie,isPackageJsonInfo:()=>d3,isPackedArrayLiteral:()=>ij,isParameter:()=>Zi,isParameterPropertyDeclaration:()=>Lp,isParameterPropertyModifier:()=>jN,isParenthesizedExpression:()=>zu,isParenthesizedTypeNode:()=>E1,isParseTreeNode:()=>WN,isPartOfParameterDeclaration:()=>HT,isPartOfTypeNode:()=>Kh,isPartOfTypeOnlyImportOrExportDeclaration:()=>Ite,isPartOfTypeQuery:()=>s6,isPartiallyEmittedExpression:()=>Uie,isPatternMatch:()=>YW,isPinnedComment:()=>jF,isPlainJsFile:()=>KN,isPlusToken:()=>Dj,isPossiblyTypeArgumentPosition:()=>xO,isPostfixUnaryExpression:()=>Lj,isPrefixUnaryExpression:()=>QT,isPrimitiveLiteralValue:()=>u4,isPrivateIdentifier:()=>Qi,isPrivateIdentifierClassElementDeclaration:()=>ou,isPrivateIdentifierPropertyAccessExpression:()=>HR,isPrivateIdentifierSymbol:()=>Une,isProgramUptoDate:()=>OH,isPrologueDirective:()=>Jh,isPropertyAccessChain:()=>SF,isPropertyAccessEntityNameExpression:()=>Uk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>X2,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Nte,isPropertyAssignment:()=>Pc,isPropertyDeclaration:()=>Mo,isPropertyName:()=>Tc,isPropertyNameLiteral:()=>Xh,isPropertySignature:()=>Iu,isPrototypeAccess:()=>Cb,isPrototypePropertyAssignment:()=>Ik,isPunctuation:()=>nV,isPushOrUnshiftIdentifier:()=>aV,isQualifiedName:()=>Wu,isQuestionDotToken:()=>E4,isQuestionOrExclamationToken:()=>_oe,isQuestionOrPlusOrMinusToken:()=>voe,isQuestionToken:()=>wb,isReadonlyKeyword:()=>Fie,isReadonlyKeywordOrPlusOrMinusToken:()=>yoe,isRecognizedTripleSlashComment:()=>AG,isReferenceFileLocation:()=>QD,isReferencedFile:()=>p0,isRegularExpressionLiteral:()=>xj,isRequireCall:()=>np,isRequireVariableStatement:()=>vk,isRestParameter:()=>M_,isRestTypeNode:()=>x4,isReturnStatement:()=>of,isReturnStatementWithFixablePromiseHandler:()=>Z7,isRightSideOfAccessExpression:()=>RV,isRightSideOfInstanceofExpression:()=>cre,isRightSideOfPropertyAccess:()=>rC,isRightSideOfQualifiedName:()=>nce,isRightSideOfQualifiedNameOrPropertyAccess:()=>vM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>lre,isRootedDiskPath:()=>Pp,isSameEntityName:()=>iD,isSatisfiesExpression:()=>CD,isSemicolonClassElement:()=>Hie,isSetAccessor:()=>Hh,isSetAccessorDeclaration:()=>bp,isShiftOperatorOrHigher:()=>nU,isShorthandAmbientModuleSymbol:()=>ik,isShorthandPropertyAssignment:()=>Jd,isSideEffectImport:()=>uj,isSignedNumericLiteral:()=>y6,isSimpleCopiableExpression:()=>QS,isSimpleInlineableExpression:()=>G_,isSimpleParameterList:()=>Qw,isSingleOrDoubleQuote:()=>bk,isSolutionConfig:()=>IU,isSourceElement:()=>aie,isSourceFile:()=>Xi,isSourceFileFromLibrary:()=>fC,isSourceFileJS:()=>wu,isSourceFileNotJson:()=>c6,isSourceMapping:()=>Oae,isSpecialPropertyDeclaration:()=>Pne,isSpreadAssignment:()=>Mg,isSpreadElement:()=>Yf,isStatement:()=>ji,isStatementButNotDeclaration:()=>Q2,isStatementOrBlock:()=>Fte,isStatementWithLocals:()=>Yte,isStatic:()=>ua,isStaticModifier:()=>KI,isString:()=>Bo,isStringANonContextualKeyword:()=>RI,isStringAndEmptyAnonymousObjectIntersection:()=>mce,isStringDoubleQuoted:()=>u6,isStringLiteral:()=>Oa,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>Bte,isStringLiteralOrTemplate:()=>Pce,isStringOrNumericLiteralLike:()=>ff,isStringOrRegularExpressionOrTemplateLiteral:()=>$q,isStringTextContainingNode:()=>sG,isSuperCall:()=>a1,isSuperKeyword:()=>HM,isSuperProperty:()=>gp,isSupportedSourceFileName:()=>$V,isSwitchStatement:()=>YM,isSyntaxList:()=>OD,isSyntheticExpression:()=>GSe,isSyntheticReference:()=>tx,isTagName:()=>Bq,isTaggedTemplateExpression:()=>$T,isTaggedTemplateTag:()=>Zle,isTemplateExpression:()=>D4,isTemplateHead:()=>qI,isTemplateLiteral:()=>fI,isTemplateLiteralKind:()=>hb,isTemplateLiteralToken:()=>Ete,isTemplateLiteralTypeNode:()=>Vie,isTemplateLiteralTypeSpan:()=>Pj,isTemplateMiddle:()=>Rj,isTemplateMiddleOrTemplateTail:()=>xF,isTemplateSpan:()=>ND,isTemplateTail:()=>T4,isTextWhiteSpaceLike:()=>bce,isThis:()=>iC,isThisContainerOrFunctionBlock:()=>Ine,isThisIdentifier:()=>Db,isThisInTypeQuery:()=>kS,isThisInitializedDeclaration:()=>i6,isThisInitializedObjectBindingExpression:()=>Rne,isThisProperty:()=>mk,isThisTypeNode:()=>KM,isThisTypeParameter:()=>WM,isThisTypePredicate:()=>Sne,isThrowStatement:()=>Oj,isToken:()=>dI,isTokenKind:()=>oG,isTraceEnabled:()=>Bb,isTransientSymbol:()=>gg,isTrivia:()=>cD,isTryStatement:()=>R1,isTupleTypeNode:()=>$I,isTypeAlias:()=>Dk,isTypeAliasDeclaration:()=>Im,isTypeAssertionExpression:()=>R4,isTypeDeclaration:()=>zI,isTypeElement:()=>bS,isTypeKeyword:()=>wP,isTypeKeywordTokenOrIdentifier:()=>C7,isTypeLiteralNode:()=>Fu,isTypeNode:()=>Ci,isTypeNodeKind:()=>WV,isTypeOfExpression:()=>RD,isTypeOnlyExportDeclaration:()=>Ate,isTypeOnlyImportDeclaration:()=>UR,isTypeOnlyImportOrExportDeclaration:()=>ev,isTypeOperatorNode:()=>YT,isTypeParameterDeclaration:()=>cl,isTypePredicateNode:()=>YI,isTypeQueryNode:()=>VS,isTypeReferenceNode:()=>Bp,isTypeReferenceType:()=>wF,isTypeUsableAsPropertyName:()=>Jf,isUMDExportSymbol:()=>F6,isUnaryExpression:()=>fG,isUnaryExpressionWithWrite:()=>Mte,isUnicodeIdentifierStart:()=>fF,isUnionTypeNode:()=>pv,isUrl:()=>Fee,isValidBigIntString:()=>o4,isValidESSymbolDeclaration:()=>vne,isValidTypeOnlyAliasUseSite:()=>JT,isValueSignatureDeclaration:()=>p1,isVarAwaitUsing:()=>ck,isVarConst:()=>ZR,isVarConstLike:()=>hne,isVarUsing:()=>dk,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>QN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>RS,isVariableDeclarationInitializedToRequire:()=>yk,isVariableDeclarationList:()=>gd,isVariableLike:()=>$N,isVariableStatement:()=>cc,isVoidExpression:()=>ZI,isWatchSet:()=>kV,isWhileStatement:()=>wj,isWhiteSpaceLike:()=>pg,isWhiteSpaceSingleLine:()=>jh,isWithStatement:()=>qie,isWriteAccess:()=>PI,isWriteOnlyAccess:()=>W6,isYieldExpression:()=>Sw,jsxModeNeedsExplicitImport:()=>PJ,keywordPart:()=>Hp,last:()=>Ga,lastOrUndefined:()=>tl,length:()=>Qe,libMap:()=>dU,libs:()=>q4,lineBreakPart:()=>dC,loadModuleFromGlobalCache:()=>yae,loadWithModeAwareCache:()=>cO,makeIdentifierFromModuleName:()=>rne,makeImport:()=>Jb,makeStringLiteral:()=>OP,mangleScopedPackageName:()=>JD,map:()=>Yt,mapAllOrFail:()=>Fd,mapDefined:()=>Ei,mapDefinedIterator:()=>zd,mapEntries:()=>qW,mapIterator:()=>Fo,mapOneOrMany:()=>DJ,mapToDisplayParts:()=>Kb,matchFiles:()=>Bre,matchPatternOrExact:()=>QV,matchedText:()=>TZ,matchesExclude:()=>o3,matchesExcludeWorker:()=>a3,maxBy:()=>i9,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>Ire,memoize:()=>Lu,memoizeOne:()=>Gh,min:()=>o9,minAndMax:()=>Jre,missingFileModifiedTime:()=>Mp,modifierToFlag:()=>NI,modifiersToFlags:()=>Qh,moduleExportNameIsDefault:()=>P_,moduleExportNameTextEscaped:()=>AS,moduleExportNameTextUnescaped:()=>Eb,moduleOptionDeclaration:()=>Poe,moduleResolutionIsEqualTo:()=>Kte,moduleResolutionNameAndModeGetter:()=>W3,moduleResolutionOptionDeclarations:()=>pU,moduleResolutionSupportsPackageJsonExportsAndImports:()=>yD,moduleResolutionUsesNodeModules:()=>N7,moduleSpecifierToValidIdentifier:()=>zO,moduleSpecifiers:()=>vy,moduleSupportsImportAttributes:()=>Pre,moduleSymbolToValidIdentifier:()=>FO,moveEmitHelpers:()=>Iie,moveRangeEnd:()=>w6,moveRangePastDecorators:()=>py,moveRangePastModifiers:()=>Zh,moveRangePos:()=>qT,moveSyntheticComments:()=>Sie,mutateMap:()=>AM,mutateMapSkippingNewValues:()=>Ag,needsParentheses:()=>O7,needsScopeMarker:()=>CF,newCaseClauseTracker:()=>K7,newPrivateEnvironment:()=>Gae,noEmitNotification:()=>nO,noEmitSubstitution:()=>bP,noTransformers:()=>yse,noTruncationMaximumTruncationLength:()=>vG,nodeCanBeDecorated:()=>_k,nodeCoreModules:()=>SD,nodeHasName:()=>B2,nodeIsDecorated:()=>nD,nodeIsMissing:()=>zl,nodeIsPresent:()=>vm,nodeIsSynthesized:()=>Fs,nodeModuleNameResolver:()=>uae,nodeModulesPathPart:()=>Pg,nodeNextJsonConfigResolver:()=>pae,nodeOrChildIsDecorated:()=>gk,nodeOverlapsWithStartEnd:()=>y7,nodePosToString:()=>q0e,nodeSeenTracker:()=>sC,nodeStartsNewLexicalEnvironment:()=>sV,noop:()=>gs,noopFileWatcher:()=>tC,normalizePath:()=>ya,normalizeSlashes:()=>jd,normalizeSpans:()=>K9,not:()=>QW,notImplemented:()=>ha,notImplementedResolver:()=>Ese,nullNodeConverters:()=>vie,nullParenthesizerRules:()=>gie,nullTransformationContext:()=>iO,objectAllocator:()=>Dd,operatorPart:()=>FP,optionDeclarations:()=>Xm,optionMapToObject:()=>Z4,optionsAffectingProgramStructure:()=>Ooe,optionsForBuild:()=>mU,optionsForWatch:()=>lx,optionsHaveChanges:()=>_I,or:()=>Np,orderedRemoveItem:()=>bN,orderedRemoveItemAt:()=>cb,packageIdToPackageName:()=>GF,packageIdToString:()=>WT,parameterIsThisKeyword:()=>Rb,parameterNamePart:()=>Sce,parseBaseNodeFactory:()=>xoe,parseBigInt:()=>Xre,parseBuildCommand:()=>Uoe,parseCommandLine:()=>Voe,parseCommandLineWorker:()=>hU,parseConfigFileTextToJson:()=>gU,parseConfigFileWithSystem:()=>lle,parseConfigHostFromCompilerHostLike:()=>j3,parseCustomTypeOption:()=>Y4,parseIsolatedEntityName:()=>sx,parseIsolatedJSDocComment:()=>Doe,parseJSDocTypeExpressionForTests:()=>AEe,parseJsonConfigFileContent:()=>e1e,parseJsonSourceFileConfigFileContent:()=>Vw,parseJsonText:()=>Ow,parseListTypeOption:()=>Boe,parseNodeFactory:()=>a0,parseNodeModuleFromPath:()=>qw,parsePackageName:()=>f3,parsePseudoBigInt:()=>LM,parseValidBigInt:()=>nj,pasteEdits:()=>MX,patchWriteFileEnsuringDirectory:()=>l0e,pathContainsNodeModules:()=>Vb,pathIsAbsolute:()=>DN,pathIsBareSpecifier:()=>F9,pathIsRelative:()=>nf,patternText:()=>bZ,performIncrementalCompilation:()=>cle,performance:()=>CZ,positionBelongsToNode:()=>Uq,positionIsASICandidate:()=>z7,positionIsSynthesized:()=>fh,positionsAreOnSameLine:()=>Hf,preProcessFile:()=>dRe,probablyUsesSemicolons:()=>OO,processCommentPragmas:()=>lU,processPragmasIntoFields:()=>cU,processTaggedTemplateExpression:()=>dH,programContainsEsModules:()=>yce,programContainsModules:()=>gce,projectReferenceIsEqualTo:()=>bG,propertyNamePart:()=>Ece,pseudoBigIntToString:()=>zS,punctuationPart:()=>uu,pushIfUnique:()=>Ff,quote:()=>GP,quotePreferenceFromString:()=>sJ,rangeContainsPosition:()=>oC,rangeContainsPositionExclusive:()=>AO,rangeContainsRange:()=>ip,rangeContainsRangeExclusive:()=>ice,rangeContainsStartEnd:()=>IO,rangeEndIsOnSameLineAsRangeStart:()=>Jk,rangeEndPositionsAreOnSameLine:()=>mre,rangeEquals:()=>YB,rangeIsOnSingleLine:()=>_1,rangeOfNode:()=>ej,rangeOfTypeParameters:()=>tj,rangeOverlapsWithStartEnd:()=>PP,rangeStartIsOnSameLineAsRangeEnd:()=>hre,rangeStartPositionsAreOnSameLine:()=>O6,readBuilderProgram:()=>e7,readConfigFile:()=>Bw,readJson:()=>mD,readJsonConfigFile:()=>Hoe,readJsonOrUndefined:()=>CV,reduceEachLeadingCommentRange:()=>qee,reduceEachTrailingCommentRange:()=>Jee,reduceLeft:()=>bu,reduceLeftIterator:()=>kn,reducePathComponents:()=>lI,refactor:()=>Sx,regExpEscape:()=>TSe,regularExpressionFlagToCharacterCode:()=>b0e,relativeComplement:()=>lZ,removeAllComments:()=>hw,removeEmitHelper:()=>WSe,removeExtension:()=>ow,removeFileExtension:()=>Au,removeIgnoredPath:()=>J3,removeMinAndVersionNumbers:()=>l9,removePrefix:()=>TN,removeSuffix:()=>LR,removeTrailingDirectorySeparator:()=>Qy,repeatString:()=>CO,replaceElement:()=>ZB,replaceFirstStar:()=>y1,resolutionExtensionIsTSOrJson:()=>CM,resolveConfigFileProjectName:()=>mq,resolveJSModule:()=>P1e,resolveLibrary:()=>p3,resolveModuleName:()=>w1,resolveModuleNameFromCache:()=>N1e,resolvePackageNameToPackageJson:()=>CU,resolvePath:()=>ub,resolveProjectReferencePath:()=>mx,resolveTripleslashReference:()=>RH,resolveTypeReferenceDirective:()=>oae,resolvingEmptyArray:()=>yG,returnFalse:()=>ny,returnNoopFileWatcher:()=>DP,returnTrue:()=>mS,returnUndefined:()=>hS,returnsPromise:()=>qJ,rewriteModuleSpecifier:()=>ux,sameFlatMap:()=>mm,sameMap:()=>to,sameMapping:()=>TAe,scanTokenAtPosition:()=>mne,scanner:()=>vd,semanticDiagnosticsOptionDeclarations:()=>Loe,serializeCompilerOptions:()=>SU,server:()=>vOe,servicesVersion:()=>ZDe,setCommentRange:()=>Nc,setConfigFileInOptions:()=>EU,setConstantValue:()=>Aie,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>Z3,setIdentifierAutoGenerate:()=>yw,setIdentifierGeneratedImportReference:()=>Die,setIdentifierTypeArguments:()=>uv,setInternalEmitFlags:()=>_w,setLocalizedDiagnosticMessages:()=>Are,setNodeChildren:()=>ioe,setNodeFlags:()=>Qre,setObjectAllocator:()=>Ere,setOriginalNode:()=>jr,setParent:()=>ps,setParentRecursive:()=>KT,setPrivateIdentifier:()=>W1,setSnippetElement:()=>Aj,setSourceMapRange:()=>Ha,setStackTraceLimit:()=>t0e,setStartsOnNewLine:()=>g4,setSyntheticLeadingComments:()=>XT,setSyntheticTrailingComments:()=>jI,setSys:()=>c0e,setSysLog:()=>Oee,setTextRange:()=>bt,setTextRangeEnd:()=>TD,setTextRangePos:()=>kM,setTextRangePosEnd:()=>mh,setTextRangePosWidth:()=>rj,setTokenSourceMapRange:()=>Tie,setTypeNode:()=>xie,setUILocale:()=>gZ,setValueDeclaration:()=>oM,shouldAllowImportingTsExtension:()=>KD,shouldPreserveConstEnums:()=>Nb,shouldRewriteModuleSpecifier:()=>Rk,shouldUseUriStyleNodeCoreModules:()=>q7,showModuleSpecifier:()=>bre,signatureHasRestParameter:()=>du,signatureToDisplayParts:()=>yJ,single:()=>QB,singleElementArray:()=>oI,singleIterator:()=>UE,singleOrMany:()=>R_,singleOrUndefined:()=>dg,skipAlias:()=>Rd,skipConstraint:()=>iJ,skipOuterExpressions:()=>Kl,skipParentheses:()=>us,skipPartiallyEmittedExpressions:()=>Vm,skipTrivia:()=>wa,skipTypeChecking:()=>bD,skipTypeCheckingIgnoringNoCheck:()=>Kre,skipTypeParentheses:()=>sM,skipWhile:()=>EZ,sliceAfter:()=>ZV,some:()=>vt,sortAndDeduplicate:()=>vN,sortAndDeduplicateDiagnostics:()=>GR,sourceFileAffectingCompilerOptions:()=>fU,sourceFileMayBeEmitted:()=>PS,sourceMapCommentRegExp:()=>QU,sourceMapCommentRegExpDontCareLineStart:()=>Lae,spacePart:()=>Vl,spanMap:()=>v2,startEndContainsRange:()=>PV,startEndOverlapsWithStartEnd:()=>v7,startOnNewLine:()=>cu,startTracing:()=>LZ,startsWith:()=>po,startsWithDirectory:()=>G9,startsWithUnderscore:()=>MJ,startsWithUseStrict:()=>uoe,stringContainsAt:()=>zce,stringToToken:()=>XE,stripQuotes:()=>Sm,supportedDeclarationExtensions:()=>t4,supportedJSExtensionsFlat:()=>vD,supportedLocaleDirectories:()=>lte,supportedTSExtensionsFlat:()=>XV,supportedTSImplementationExtensions:()=>nw,suppressLeadingAndTrailingTrivia:()=>zp,suppressLeadingTrivia:()=>yj,suppressTrailingTrivia:()=>fie,symbolEscapedNameNoDefault:()=>M7,symbolName:()=>Fl,symbolNameNoDefault:()=>cJ,symbolToDisplayParts:()=>zP,sys:()=>Hc,sysLog:()=>aF,tagNamesAreEquivalent:()=>l0,takeWhile:()=>u9,targetOptionDeclaration:()=>uU,targetToLibMap:()=>Kee,testFormatSettings:()=>Pxe,textChangeRangeIsUnchanged:()=>rte,textChangeRangeNewSpan:()=>ON,textChanges:()=>Rr,textOrKeywordPart:()=>gJ,textPart:()=>bf,textRangeContainsPositionInclusive:()=>O2,textRangeContainsTextSpan:()=>$ee,textRangeIntersectsWithTextSpan:()=>tte,textSpanContainsPosition:()=>q9,textSpanContainsTextRange:()=>J9,textSpanContainsTextSpan:()=>Yee,textSpanEnd:()=>Ml,textSpanIntersection:()=>nte,textSpanIntersectsWith:()=>W2,textSpanIntersectsWithPosition:()=>ete,textSpanIntersectsWithTextSpan:()=>Zee,textSpanIsEmpty:()=>Xee,textSpanOverlap:()=>Qee,textSpanOverlapsWith:()=>D0e,textSpansEqual:()=>cC,textToKeywordObj:()=>pF,timestamp:()=>ws,toArray:()=>rI,toBuilderFileEmit:()=>$se,toBuilderStateFileInfoForMultiEmit:()=>Yse,toEditorSettings:()=>JO,toFileNameLowerCase:()=>ab,toPath:()=>Os,toProgramEmitPending:()=>Qse,toSorted:()=>Cp,tokenIsIdentifierOrKeyword:()=>Qu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Bee,tokenToString:()=>_a,trace:()=>Io,tracing:()=>xr,tracingEnabled:()=>R2,transferSourceFileChildren:()=>ooe,transform:()=>cCe,transformClassFields:()=>$ae,transformDeclarations:()=>mH,transformECMAScriptModule:()=>fH,transformES2015:()=>use,transformES2016:()=>dse,transformES2017:()=>tse,transformES2018:()=>nse,transformES2019:()=>rse,transformES2020:()=>ise,transformES2021:()=>ose,transformESDecorators:()=>ese,transformESNext:()=>ase,transformGenerators:()=>pse,transformImpliedNodeFormatDependentModule:()=>mse,transformJsx:()=>cse,transformLegacyDecorators:()=>Zae,transformModule:()=>pH,transformNamedEvaluation:()=>Vp,transformNodes:()=>rO,transformSystemModule:()=>fse,transformTypeScript:()=>Yae,transpile:()=>vRe,transpileDeclaration:()=>gRe,transpileModule:()=>lde,transpileOptionValueCompilerOptions:()=>Woe,tryAddToSet:()=>Wf,tryAndIgnoreErrors:()=>V7,tryCast:()=>ni,tryDirectoryExists:()=>G7,tryExtractTSExtension:()=>k6,tryFileExists:()=>jP,tryGetClassExtendingExpressionWithTypeArguments:()=>IV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>xV,tryGetDirectories:()=>B7,tryGetExtensionFromPath:()=>Rg,tryGetImportFromModuleSpecifier:()=>xk,tryGetJSDocSatisfiesTypeNode:()=>c4,tryGetModuleNameFromFile:()=>Nw,tryGetModuleSpecifierFromDeclaration:()=>SI,tryGetNativePerformanceHooks:()=>DZ,tryGetPropertyAccessOrIdentifierToString:()=>Hk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>G4,tryGetSourceMappingURL:()=>kae,tryGetTextOfPropertyName:()=>YN,tryParseJson:()=>qk,tryParsePattern:()=>FI,tryParsePatterns:()=>aw,tryParseRawSourceMap:()=>wae,tryReadDirectory:()=>AJ,tryReadFile:()=>oP,tryRemoveDirectoryPrefix:()=>qV,tryRemoveExtension:()=>Hre,tryRemovePrefix:()=>d9,tryRemoveSuffix:()=>vZ,tscBuildOption:()=>L1,typeAcquisitionDeclarations:()=>K4,typeAliasNamePart:()=>Ace,typeDirectiveIsEqualTo:()=>Xte,typeKeywords:()=>rJ,typeParameterNamePart:()=>Ice,typeToDisplayParts:()=>LO,unchangedPollThresholds:()=>iF,unchangedTextChangeRange:()=>_F,unescapeLeadingUnderscores:()=>Vi,unmangleScopedPackageName:()=>Kw,unorderedRemoveItem:()=>iI,unprefixedNodeCoreModules:()=>die,unreachableCodeIsError:()=>Nre,unsetNodeChildren:()=>qj,unusedLabelIsError:()=>Mre,unwrapInnermostStatementOfLabel:()=>GG,unwrapParenthesizedExpression:()=>lie,updateErrorForNoInputFiles:()=>i3,updateLanguageServiceSourceFile:()=>vK,updateMissingFilePathsWatch:()=>AH,updateResolutionField:()=>jD,updateSharedExtendedConfigFileWatcher:()=>L3,updateSourceFile:()=>aU,updateWatchingWildcardDirectories:()=>aO,usingSingleLineStringWriter:()=>XR,utf16EncodeAsString:()=>wN,validateLocaleAndSetLanguage:()=>Y9,version:()=>Re,versionMajorMinor:()=>de,visitArray:()=>fP,visitCommaListElements:()=>T3,visitEachChild:()=>On,visitFunctionBody:()=>vf,visitIterationBody:()=>Bu,visitLexicalEnvironment:()=>$U,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>Gl,walkUpBindingElementsAndPatterns:()=>YE,walkUpOuterExpressions:()=>poe,walkUpParenthesizedExpressions:()=>Um,walkUpParenthesizedTypes:()=>Mk,walkUpParenthesizedTypesAndGetParentAndChild:()=>Bne,whitespaceOrMapCommentRegExp:()=>ZU,writeCommentRange:()=>fD,writeFile:()=>D6,writeFileEnsuringDirectories:()=>yV,zipWith:()=>Ti});var _Oe;function Jst(){return _Oe??(_Oe=new sh(Re))}function gOe(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?` ${Ig(o,[e])}`:"",s}function Kst(e,t,r,i){const o=gOe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function Xst(e,t,r,i){let o=!1;return()=>{o||(C.log.warn(gOe(e,!1,t,r,i)),o=!0)}}function Yst(e,t={}){const r=typeof t.typeScriptVersion=="string"?new sh(t.typeScriptVersion):t.typeScriptVersion??Jst(),i=typeof t.errorAfter=="string"?new sh(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new sh(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new sh(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?Kst(e,i,s,t.message):u?Xst(e,i,s,t.message):gs}function $st(e,t){return function(){return e(),t.apply(this,arguments)}}function Qst(e,t){const r=Yst(t?.name??C.getFunctionName(e),t);return $st(r,e)}function PX(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(const l of Object.keys(i)){const u=+l;!isNaN(u)&&Cs(t,`${u}`)&&(t[u]=Qst(t[u],{...i[u],name:e}))}const o=Zst(t,r);return s;function s(...l){const u=o(l),d=u!==void 0?t[u]:void 0;if(typeof d=="function")return d(...l);throw new TypeError("Invalid arguments")}}function Zst(e,t){return r=>{for(let i=0;Cs(e,`${i}`)&&Cs(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function yOe(e){return{overload:t=>({bind:r=>({finish:()=>PX(e,t,r),deprecate:i=>({finish:()=>PX(e,t,r,i)})})})}}var vOe={};x(vOe,{ActionInvalidate:()=>l7,ActionPackageInstalled:()=>c7,ActionSet:()=>s7,ActionWatchTypingLocations:()=>bO,Arguments:()=>Nq,AutoImportProviderProject:()=>Yme,AuxiliaryProject:()=>Kme,CharRangeSection:()=>She,CloseFileWatcherEvent:()=>HX,CommandNames:()=>$Oe,ConfigFileDiagEvent:()=>BX,ConfiguredProject:()=>$me,ConfiguredProjectLoadKind:()=>rhe,CreateDirectoryWatcherEvent:()=>UX,CreateFileWatcherEvent:()=>jX,Errors:()=>Ay,EventBeginInstallTypes:()=>Dq,EventEndInstallTypes:()=>Cq,EventInitializationFailed:()=>wle,EventTypesRegistry:()=>Rq,ExternalProject:()=>kX,GcTimer:()=>Ome,InferredProject:()=>Jme,LargeFileReferencedEvent:()=>zX,LineIndex:()=>I8,LineLeaf:()=>Uz,LineNode:()=>xC,LogLevel:()=>Rme,Msg:()=>Dme,OpenFileInfoTelemetryEvent:()=>Qme,Project:()=>Px,ProjectInfoTelemetryEvent:()=>VX,ProjectKind:()=>oL,ProjectLanguageServiceStateEvent:()=>GX,ProjectLoadingFinishEvent:()=>FX,ProjectLoadingStartEvent:()=>WX,ProjectService:()=>phe,ProjectsUpdatedInBackgroundEvent:()=>Gz,ScriptInfo:()=>Bme,ScriptVersionCache:()=>rY,Session:()=>o8e,TextStorage:()=>zme,ThrottledOperations:()=>wme,TypingsInstallerAdapter:()=>u8e,allFilesAreJsOrDts:()=>Ume,allRootFilesAreJsOrDts:()=>jme,asNormalizedPath:()=>EOe,convertCompilerOptions:()=>Vz,convertFormatOptions:()=>EC,convertScriptKindName:()=>JX,convertTypeAcquisition:()=>ehe,convertUserPreferences:()=>the,convertWatchOptions:()=>E8,countEachFileTypes:()=>v8,createInstallTypingsRequest:()=>Cme,createModuleSpecifierCache:()=>hhe,createNormalizedPathMap:()=>AOe,createPackageJsonCache:()=>_he,createSortedArray:()=>kme,emptyArray:()=>Yc,findArgument:()=>Axe,formatDiagnosticToProtocol:()=>A8,formatMessage:()=>ghe,getBaseConfigFileName:()=>LX,getDetailWatchInfo:()=>$X,getLocationInNewDocument:()=>The,hasArgument:()=>Exe,hasNoTypeScriptSource:()=>Hme,indent:()=>NP,isBackgroundProject:()=>T8,isConfigFile:()=>fhe,isConfiguredProject:()=>Sv,isDynamicFileName:()=>iL,isExternalProject:()=>b8,isInferredProject:()=>SC,isInferredProjectName:()=>Nme,isProjectDeferredClose:()=>S8,makeAutoImportProviderProjectName:()=>Pme,makeAuxiliaryProjectName:()=>Lme,makeInferredProjectName:()=>Mme,maxFileSize:()=>OX,maxProgramSizeForNonTsFiles:()=>wX,normalizedPathToPath:()=>TC,nowString:()=>Ixe,nullCancellationToken:()=>KOe,nullTypingsInstaller:()=>jz,protocol:()=>Wme,scriptInfoIsContainedByBackgroundProject:()=>Gme,scriptInfoIsContainedByDeferredClosedProject:()=>Vme,stringifyIndented:()=>f0,toEvent:()=>yhe,toNormalizedPath:()=>Ms,tryConvertScriptKindName:()=>qX,typingsInstaller:()=>xme,updateProjectIfDirty:()=>Nm});var xme={};x(xme,{TypingsInstaller:()=>nlt,getNpmCommandForInstallation:()=>TOe,installNpmPackages:()=>tlt,typingsName:()=>SOe});var elt={isEnabled:()=>!1,writeLine:gs};function bOe(e,t,r,i){try{const o=w1(t,Qr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function tlt(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=TOe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function TOe(e,t,r,i){const o=r.length-i;let s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}var nlt=class{constructor(e,t,r,i,o,s=elt){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{const t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});const r={kind:Rq,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:C.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:bO,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${f0(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();const t=qb.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){const{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=NN(ci(t),u=>{if(this.installTypingHost.fileExists(Qr(u,"package.json")))return u})||o;if(l)this.installWorker(-1,[r],l,u=>{const d=u?`Package ${r} installed.`:`There was an error installing ${r}.`,_={kind:c7,projectName:i,id:s,success:u,message:d};this.sendResponse(_)});else{const u={kind:c7,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=qb.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=qb.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const t=Qr(e,"package.json"),r=Qr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){const i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${f0(i)}`),this.log.writeLine(`Loaded content of '${r}':${f0(o)}`)),i.devDependencies&&(o.packages||o.dependencies))for(const s in i.devDependencies){if(o.packages&&!Cs(o.packages,`node_modules/${s}`)||o.dependencies&&!Cs(o.dependencies,s))continue;const l=Dc(s);if(!l)continue;const u=bOe(e,l,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(l);continue}const d=this.packageNameToTypingLocation.get(l);if(d){if(d.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${u}' conflicts with existing typing file '${d}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${u}'`);const _=o.packages&&T2(o.packages,`node_modules/${s}`)||T2(o.dependencies,s),h=_&&_.version;if(!h)continue;const y={typingLocation:u,version:new sh(h)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ei(e,t=>{const r=JD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=qb.validatePackageName(t);if(i!==qb.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(qb.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&qb.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){const t=Qr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:Dq,eventId:s,typingsInstallerVersion:Re,projectName:e.projectName});const l=o.map(SOe);this.installTypingsAsync(s,l,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(const _ of o)this.missingTypingsSet.add(_);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const d=[];for(const _ of o){const h=bOe(t,_,this.installTypingHost,this.log);if(!h){this.missingTypingsSet.add(_);continue}const y=this.typesRegistry.get(_),E=new sh(y[`ts${de}`]||y[this.latestDistTag]),A={typingLocation:h,version:E};this.packageNameToTypingLocation.set(_,A),d.push(h)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(d)}`),this.sendResponse(this.createSetTypings(e,r.concat(d)))}finally{const d={kind:Cq,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Re};this.sendResponse(d)}})}ensureDirectoryExists(e,t){const r=ci(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const r=this.projectWatchers.get(e),i=new Set(t);!r||yg(i,o=>!r.has(o))||yg(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:bO,projectName:e,files:t})):this.sendResponse({kind:bO,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:s7}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function SOe(e){return`@types/${e}@ts${de}`}var Rme=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Rme||{}),Yc=kme(),Dme=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Dme||{});function Cme(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}var Ay;(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(Ay||(Ay={}));function Ms(e){return ya(e)}function TC(e,t,r){const i=Pp(e)?e:bo(e,t);return r(i)}function EOe(e){return e}function AOe(){const e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function Nme(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Mme(e){return`/dev/null/inferredProject${e}*`}function Pme(e){return`/dev/null/autoImportProviderProject${e}*`}function Lme(e){return`/dev/null/auxiliaryProject${e}*`}function kme(){return[]}var wme=class aze{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){const o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(aze.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){const r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i()}},Ome=class sze{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(sze.run,this.delay,this))}static run(t){t.timerId=void 0;const r=t.logger.hasLevel(2),i=r&&t.host.getMemoryUsage();if(t.host.gc(),r){const o=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${i}, after ${o}`)}}};function LX(e){const t=Dc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var Wme={};x(Wme,{ClassificationType:()=>kq,CommandTypes:()=>Fme,CompletionTriggerKind:()=>Pq,IndentStyle:()=>DOe,JsxEmit:()=>COe,ModuleKind:()=>NOe,ModuleResolutionKind:()=>MOe,NewLineKind:()=>POe,OrganizeImportsMode:()=>Mq,PollingWatchKind:()=>ROe,ScriptTarget:()=>LOe,SemicolonPreference:()=>Lq,WatchDirectoryKind:()=>xOe,WatchFileKind:()=>IOe});var Fme=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.PreparePasteEdits="preparePasteEdits",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e.CopilotRelated="copilotRelated",e))(Fme||{}),IOe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(IOe||{}),xOe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(xOe||{}),ROe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(ROe||{}),DOe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(DOe||{}),COe=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(COe||{}),NOe=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.Node18="node18",e.Node20="node20",e.NodeNext="nodenext",e.Preserve="preserve",e))(NOe||{}),MOe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(MOe||{}),POe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(POe||{}),LOe=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ES2024="es2024",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(LOe||{}),zme=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return C.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=yx(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===Mp.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Mp).getTime()),i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=d7.fromString(C.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const r=this.getLineMap(),i=r[e],o=e+1t===void 0?t=this.host.readFile(r)||"":t;if(!g1(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>OX)return C.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=rY.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=rY.fromString(C.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(C.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return C.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=cI(C.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};const t=this.getLineMap();return eH(this.text,t)}};function iL(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Dc(e)[0]==="^"||e.includes(":^")&&!e.includes(Xs)}var Bme=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=iL(t),this.textStorage=new zme(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||Z6(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){C.assert(!!this.containingProjects.length);const e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){const t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return jn(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:bN(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){Sv(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!SC(e)&&e.addMissingFileRoot(t.fileName)}Ra(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Ay.ThrowNoProject();case 1:return S8(this.containingProjects[0])||T8(this.containingProjects[0])?Ay.ThrowNoProject():this.containingProjects[0];default:let e,t,r,i;for(let o=0;o!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){rlt(e);const t=this.textStorage.positionToLineOffset(e);return ilt(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Bo(this.sourceMapFilePath)&&(Qf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function rlt(e){C.assert(typeof e=="number",`Expected position ${e} to be a number.`),C.assert(e>=0,"Expected position to be non-negative.")}function ilt(e){C.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),C.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),C.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),C.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}function Gme(e){return vt(e.containingProjects,T8)}function Vme(e){return vt(e.containingProjects,S8)}var oL=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(oL||{});function v8(e,t=!1){const r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const i of e){const o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:sd(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function olt(e){const t=v8(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function jme(e){const t=v8(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Ume(e){const t=v8(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Hme(e){return!e.some(t=>xl(t,".ts")&&!sd(t)||xl(t,".tsx"))}function qme(e){return e.generatedFilePath!==void 0}function kOe(e,t){if(e===t||(e||Yc).length===0&&(t||Yc).length===0)return!0;const r=new Map;let i=0;for(const o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(const o of t){const s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function alt(e,t){return e.enable!==t.enable||!kOe(e.include,t.include)||!kOe(e.exclude,t.exclude)}function slt(e,t){return Mb(e)!==Mb(t)}function llt(e,t){return e===t?!1:!tf(e,t)}var Px=class lze{constructor(t,r,i,o,s,l,u,d,_,h){switch(this.projectKind=r,this.projectService=i,this.compilerOptions=l,this.compileOnSaveEnabled=u,this.watchOptions=d,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=Yc,this.moduleSpecifierCache=hhe(this),this.createHash=oa(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=qb.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,i.logger.info(`Creating ${oL[r]}Project: ${t}, currentDirectory: ${h}`),this.projectName=t,this.directoryStructureHost=_,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(h),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new Tue(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||Mb(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=fz(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:C.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const y=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=E=>this.writeLog(E):y.trace&&(this.trace=E=>y.trace(E)),this.realpath=oa(y,y.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||y.preferNonRecursiveWatch,this.resolutionCache=YH(this,this.currentDirectory,!0),this.languageService=Sue(this,this.projectService.documentRegistry,this.projectService.serverMode),s&&this.disableLanguageService(s),this.markAsDirty(),T8(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(t){}isNonTsProject(){return Nm(this),Ume(this)}isJsOnlyProject(){return Nm(this),olt(this)}static resolveModule(t,r,i,o){return lze.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){C.assertIsDefined(i.require);let s,l;for(const u of r){const d=jd(i.resolvePath(Qr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${d})`);const _=i.require(d,t.name);if(!_.error){l=_.module;break}const h=_.error.stack||_.error.message||JSON.stringify(_.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${d}: ${h}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){C.assertIsDefined(i.importPlugin);let s,l;for(const u of r){const d=Qr(u,"node_modules");o(`Dynamically importing ${t.name} from ${u} (resolved to ${d})`);let _;try{_=await i.importPlugin(d,t.name)}catch(y){_={module:void 0,error:y}}if(!_.error){l=_.module;break}const h=_.error.stack||_.error.message||JSON.stringify(_.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${d}: ${h}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.projectService.typingsInstaller.isKnownTypesPackageName(t)}installPackage(t){return this.projectService.typingsInstaller.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||(this.symlinks=HV(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return ie;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Xr(t,this.typingFiles)||ie}getOrCreateScriptInfoAndAttachToProject(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);if(r){const i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(i.info=r),r.attachToProject(this)}return r}getScriptKind(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);return r&&r.getLatestVersion()}getScriptSnapshot(t){const r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=ci(ya(this.projectService.getExecutingFilePath()));return Qr(t,w2(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){const r=this.toPath(t);return!!this.projectService.getScriptInfoForPath(r)||!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return Os(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),ld.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),ld.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),ld.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Un(this.projectErrors,t=>!t.file)||Yc}getAllProjectErrors(){return this.projectErrors||Yc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Nm(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Nm(this),this.builderState=vh.create(this.program,this.builderState,!0),Ei(vh.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Yc};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=bo(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&vp(this.compilerOptions)){const l=s.filter(u=>sd(u.name));if(l.length===1){const u=this.program.getSourceFile(t.fileName),d=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):D2(l[0].text);vh.updateSignatureOfFile(this.builderState,d,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(C.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t.enable||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return Cp(fi(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){const r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),qe(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r)),this.rootFilesMap.forEach(r=>{var i;return(i=r.info)==null?void 0:i.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(yp(this.missingFilesMap,Hm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){const r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var t;return!!((t=this.rootFilesMap)!=null&&t.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Do(zd(this.rootFilesMap.values(),t=>{var r;return(r=t.info)==null?void 0:r.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Do(zd(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?Yt(this.program.getSourceFiles(),t=>{const r=this.projectService.getScriptInfoForPath(t.resolvedPath);return C.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.getRootScriptInfos()}getExcludedFiles(){return Yc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=Eue(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}const i=[];for(const o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){const o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(const s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(const i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r,i;return((i=(r=this.rootFilesMap)==null?void 0:r.get(t.path))==null?void 0:i.info)===t}addRoot(t,r){C.assert(!this.isRoot(t)),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var t;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(t=this.autoImportProviderHost)==null||t.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(t,r,i,o){(!o||t.resolvedPath===t.path&&o.resolvedPath!==t.path)&&this.detachScriptInfoFromProject(t.fileName,i)}updateFromProject(){Nm(this)}updateGraph(){var t,r;(t=xr)==null||t.push(xr.Phase.Session,"updateGraph",{name:this.projectName,kind:oL[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const i=this.updateGraphWorker(),o=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const s=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Yc;for(const u of s)this.cachedUnresolvedImportsPerFile.delete(u);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((i||s.length)&&(this.lastCachedUnresolvedImportsList=clt(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(o)):this.lastCachedUnresolvedImportsList=void 0;const l=this.projectProgramVersion===0&&i;return i&&this.projectProgramVersion++,o&&this.markAutoImportProviderAsDirty(),l&&this.getPackageJsonAutoImportProvider(),(r=xr)==null||r.pop(),!i}enqueueInstallTypingsForProject(t){const r=this.getTypeAcquisition();if(!r||!r.enable||this.projectService.typingsInstaller===jz)return;const i=this.typingsCache;(t||!i||alt(r,i.typeAcquisition)||slt(this.getCompilationSettings(),i.compilerOptions)||llt(this.lastCachedUnresolvedImportsList,i.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:r,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,r,this.lastCachedUnresolvedImportsList))}updateTypingFiles(t,r,i,o){this.typingsCache={compilerOptions:t,typeAcquisition:r,unresolvedImports:i};const s=!r||!r.enable?Yc:Cp(o);ZW(s,this.typingFiles,PR(!this.useCaseSensitiveFileNames()),gs,l=>this.detachScriptInfoFromProject(l))&&(this.typingFiles=s,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&yp(this.typingWatchers,Hm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:l7})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(o,s)=>{const l=this.toPath(o);if(r.delete(l),!this.typingWatchers.has(l)){const u=s==="FileWatcher"?ld.TypingInstallerLocationFile:ld.TypingInstallerLocationDirectory;this.typingWatchers.set(l,mO(l)?s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),u,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!xl(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(ry(d,Qr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),u,this):(this.writeLog(`Skipping watcher creation at ${o}:: ${$X(u,this)}`),tC))}};for(const o of t){const s=Dc(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(gm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(Xs,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(gm(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){if(!t.length)return t;const r=c3(this.getCompilerOptions(),this);return Un(t,i=>!r.includes(i))}updateGraphWorker(){var t,r;const i=this.languageService.getCurrentProgram();C.assert(i===this.program),C.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const o=ws(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(ny,ny);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=xr)==null||t.push(xr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=xr)==null||r.pop(),C.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,this.rootFilesMap.forEach((h,y)=>{var E;const A=this.program.getSourceFileByPath(y),R=h.info;!A||((E=h.info)==null?void 0:E.path)===A.resolvedPath||(h.info=this.projectService.getScriptInfo(A.fileName),C.assert(h.info.isAttached(this)),R?.detachFromProject(this))}),AH(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(h,y)=>this.addMissingFileWatcher(h,y)),this.generatedFilesMap){const h=this.compilerOptions.outFile;qme(this.generatedFilesMap)?(!h||!this.isValidGeneratedFileWatcher(Au(h)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():h?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,E)=>{const A=this.program.getSourceFileByPath(E);(!A||A.resolvedPath!==E||!this.isValidGeneratedFileWatcher(E6(A.fileName,this.compilerOptions,this.program),y))&&(Qf(y),this.generatedFilesMap.delete(E))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&yg(this.changedFilesForExportMapCache,h=>{const y=i.getSourceFileByPath(h),E=this.program.getSourceFileByPath(h);return!y||!E?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,E,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const d=this.externalFiles||Yc;this.externalFiles=this.getExternalFiles(),ZW(this.externalFiles,d,PR(!this.useCaseSensitiveFileNames()),h=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(h,this.currentDirectory,this.directoryStructureHost,!1);y?.attachToProject(this)},h=>this.detachScriptInfoFromProject(h));const _=ws()-o;return this.sendPerformanceEvent("UpdateGraph",_),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${S9[this.program.structureIsReused]}`:""} Elapsed: ${_}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r){const i=this.projectService.getScriptInfo(t);i&&(i.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(i.path))}addMissingFileWatcher(t,r){var i;if(Sv(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return tC}const o=this.projectService.watchFactory.watchFile(bo(r,this.currentDirectory),(s,l)=>{Sv(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),ld.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(r);if(this.generatedFilesMap){if(qme(this.generatedFilesMap)){C.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),ld.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(qme(this.generatedFilesMap)?Qf(this.generatedFilesMap):yp(this.generatedFilesMap,Qf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?Ay.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.initialLoadPending)return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;const o=this.program.getSourceFiles();let s=` Files (${o.length}) `;if(t){for(const l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""} `;r&&(s+=` `,tq(this.program,l=>s+=` ${l} `))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${oL[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),WF(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;const s=r?d=>Do(d.entries(),([_,h])=>({fileName:_,isSourceOfProjectReferenceRedirect:h})):d=>Do(d.keys());this.initialLoadPending||Nm(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:SC(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:l,projectErrors:this.getGlobalProjectErrors()};const d=this.lastReportedFileNames,_=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:Ms(N),isSourceOfProjectReferenceRedirect:!1})))||Yc,h=NR(this.getFileNamesWithRedirectInfo(!!r).concat(_),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,A=u?Do(u.keys()):[],R=[];return Jc(h,(N,P)=>{d.has(P)?r&&N!==d.get(P)&&R.push({fileName:P,isSourceOfProjectReferenceRedirect:N}):y.set(P,N)}),Jc(d,(N,P)=>{h.has(P)||E.set(P,N)}),this.lastReportedFileNames=h,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(y),removed:s(E),updated:r?A.map(N=>({fileName:N,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(N)})):A,updatedRedirects:r?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const d=this.getFileNamesWithRedirectInfo(!!r),_=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:Ms(y),isSourceOfProjectReferenceRedirect:!1})))||Yc,h=d.concat(_);return this.lastReportedFileNames=NR(h,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?h:h.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Qr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}const i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:hOe}),s=o.create(i);for(const l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?Yc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t,this)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Qr(this.currentDirectory,IP),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=kJ(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||WO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Nm(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const o=this.includePackageJsonAutoImports();if(o){(t=xr)==null||t.push(xr.Phase.Session,"getPackageJsonAutoImportProvider");const s=ws();if(this.autoImportProviderHost=Yme.create(o,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Nm(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",ws()-s),(r=xr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=xr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Jc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return C.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??(this.noDtsResolutionProject=new Kme(this)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}runWithTemporaryFileUpdate(t,r,i){var o,s,l,u;const d=this.program,_=C.checkDefined((o=this.program)==null?void 0:o.getSourceFile(t),"Expected file to be part of program"),h=C.checkDefined(_.getFullText());(s=this.getScriptInfo(t))==null||s.editContent(0,h.length,r),this.updateGraph();try{i(this.program,d,(l=this.program)==null?void 0:l.getSourceFile(t))}finally{(u=this.getScriptInfo(t))==null||u.editContent(0,r.length,h)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ie,lib:ie,noLib:!0}}};function clt(e,t){var r,i;const o=e.getSourceFiles();(r=xr)==null||r.push(xr.Phase.Session,"getUnresolvedImports",{count:o.length});const s=e.getTypeChecker().getAmbientModules().map(u=>Sm(u.getName())),l=vN(fi(o,u=>dlt(e,u,s,t)));return(i=xr)==null||i.pop(),l}function dlt(e,t,r,i){return Of(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!CM(s.extension))&&!nd(l)&&!r.some(u=>u===l)&&(o=Vn(o,f3(l).packageName))},t),o||Yc})}var Jme=class extends Px{constructor(e,t,r,i,o,s){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,r,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=s,this.projectRootPath=i&&e.toCanonicalFileName(i),!i&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;const t=Zq(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){C.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Hn(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){qe(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:jme(this),include:ie,exclude:ie}}},Kme=class extends Px{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Xme=class uve extends Px{constructor(t,r,i){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,!1,void 0,i,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=oa(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=oa(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return ie;const u=r.getCurrentProgram();if(!u)return ie;const d=ws();let _,h;const y=Qr(r.currentDirectory,IP),E=r.getPackageJsonsForAutoImport(Qr(r.currentDirectory,y));for(const G of E)(s=G.dependencies)==null||s.forEach((j,J)=>k(J)),(l=G.peerDependencies)==null||l.forEach((j,J)=>k(J));let A=0;if(_){const G=r.getSymlinkCache();for(const j of Do(_.keys())){if(t===2&&A>=this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),ie;const J=CU(j,r.currentDirectory,o,i,u.getModuleResolutionCache());if(J){const q=F(J,u,G);if(q){A+=P(q);continue}}if(!qe([r.currentDirectory,r.getGlobalTypingsCacheLocation()],q=>{if(q){const ve=CU(`@types/${j}`,q,o,i,u.getModuleResolutionCache());if(ve){const oe=F(ve,u,G);return A+=P(oe),!0}}})&&J&&o.allowJs&&o.maxNodeModuleJsDepth){const q=F(J,u,G,!0);A+=P(q)}}}const R=u.getResolvedProjectReferences();let N=0;return R?.length&&r.projectService.getHostPreferences().includeCompletionsForModuleExports&&R.forEach(G=>{if(G?.commandLine.options.outFile)N+=P(W([lv(G.commandLine.options.outFile,".d.ts")]));else if(G){const j=Lu(()=>z1(G.commandLine,!r.useCaseSensitiveFileNames()));N+=P(W(Ei(G.commandLine.fileNames,J=>!sd(J)&&!xl(J,".json")&&!u.getSourceFile(J)?SP(J,G.commandLine,!r.useCaseSensitiveFileNames(),j):void 0)))}}),h?.size&&r.log(`AutoImportProviderProject: found ${h.size} root files in ${A} dependencies ${N} referenced projects in ${ws()-d} ms`),h?Do(h.values()):ie;function P(G){return G?.length?(h??(h=new Set),G.forEach(j=>h.add(j)),1):0}function k(G){po(G,"@types/")||(_||(_=new Set)).add(G)}function F(G,j,J,Z){var q;const ve=wU(G,o,i,j.getModuleResolutionCache(),Z);if(ve){const oe=(q=i.realpath)==null?void 0:q.call(i,G.packageDirectory),K=oe?r.toPath(oe):void 0,fe=K&&K!==r.toPath(G.packageDirectory);return fe&&J.setSymlinkedDirectory(G.packageDirectory,{real:qc(oe),realPath:qc(K)}),W(ve,fe?ue=>ue.replace(G.packageDirectory,oe):void 0)}}function W(G,j){return Ei(G,J=>{const Z=j?j(J):J;if(!u.getSourceFile(Z)&&!(j&&u.getSourceFile(J)))return Z})}}static create(t,r,i){if(t===0)return;const o={...r.getCompilerOptions(),...this.compilerOptionsOverrides},s=this.getRootFileNames(t,r,i,o);if(s.length)return new uve(r,s,o)}isEmpty(){return!vt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=uve.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||ie}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}};Xme.maxDependencies=10,Xme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ie,lib:ie,noLib:!0};var Yme=Xme,$me=class extends Px{constructor(e,t,r,i,o){super(e,1,r,!1,void 0,{},!1,void 0,i,ci(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=o}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=Ms(e),r=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Ms(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;const e=this.dirty;this.initialLoadPending=!1;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=C.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,i),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||r&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){C.assert(this.initialLoadPending),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getRedirectFromSourceFile(e){const t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;const r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const o=ci(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(const o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Un(this.projectErrors,e=>!e.file)||Yc}getAllProjectErrors(){return this.projectErrors||Yc}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return lP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,i3(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,Uw(e.raw))}},kX=class extends Px{constructor(e,t,r,i,o,s,l){super(e,2,t,!0,i,r,o,l,t.host,ci(s||jd(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function SC(e){return e.projectKind===0}function Sv(e){return e.projectKind===1}function b8(e){return e.projectKind===2}function T8(e){return e.projectKind===3||e.projectKind===4}function S8(e){return Sv(e)&&!!e.deferredClose}var wX=20*1024*1024,OX=4*1024*1024,Gz="projectsUpdatedInBackground",WX="projectLoadingStart",FX="projectLoadingFinish",zX="largeFileReferenced",BX="configFileDiag",GX="projectLanguageServiceState",VX="projectInfo",Qme="openFileInfo",jX="createFileWatcher",UX="createDirectoryWatcher",HX="closeFileWatcher",wOe="*ensureProjectForOpenFiles*";function OOe(e){const t=new Map;for(const r of e)if(typeof r.type=="object"){const i=r.type;i.forEach(o=>{C.assert(typeof o=="number")}),t.set(r.name,i)}return t}var ult=OOe(Xm),plt=OOe(lx),flt=new Map(Object.entries({none:0,block:1,smart:2})),Zme={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function EC(e){return Bo(e.indentStyle)&&(e.indentStyle=flt.get(e.indentStyle.toLowerCase()),C.assert(e.indentStyle!==void 0)),e}function Vz(e){return ult.forEach((t,r)=>{const i=e[r];Bo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function E8(e,t){let r,i;return lx.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=plt.get(o.name);(r||(r={}))[o.name]=l?Bo(s)?l.get(s.toLowerCase()):s:k1(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function ehe(e){let t;return K4.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function qX(e){return Bo(e)?JX(e):e}function JX(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function the(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}var KX={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=sI(e);i&&vt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>vt(t,r=>r.isMixedContent&&xl(e,r.extension))},XX={getFileName:e=>e.fileName,getScriptKind:e=>qX(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function WOe(e,t){for(const r of t)if(r.getProjectName()===e)return r}var jz={isKnownTypesPackageName:ny,installPackage:ha,enqueueInstallTypingsRequest:gs,attach:gs,onProjectClosed:gs,globalTypingsCacheLocation:void 0},nhe={close:gs};function FOe(e,t){if(!t)return;const r=t.get(e.path);if(r!==void 0)return YX(e)?r&&!Bo(r)?r.get(e.fileName):void 0:Bo(r)||!r?r:r.get(!1)}function zOe(e){return!!e.containingProjects}function YX(e){return!!e.configFileInfo}var rhe=(e=>(e[e.FindOptimized=0]="FindOptimized",e[e.Find=1]="Find",e[e.CreateReplayOptimized=2]="CreateReplayOptimized",e[e.CreateReplay=3]="CreateReplay",e[e.CreateOptimized=4]="CreateOptimized",e[e.Create=5]="Create",e[e.ReloadOptimized=6]="ReloadOptimized",e[e.Reload=7]="Reload",e))(rhe||{});function BOe(e){return e-1}function GOe(e,t,r,i,o,s,l,u,d){for(var _;;){if(t.parsedCommandLine&&(u&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;const h=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!u},i<=3);if(!h)return;const y=t.projectService.findCreateOrReloadConfiguredProject(h,i,o,s,u?void 0:e.fileName,l,u,d);if(!y)return;!y.project.parsedCommandLine&&((_=t.parsedCommandLine)!=null&&_.options.composite)&&y.project.setPotentialProjectReference(t.canonicalConfigFilePath);const E=r(y);if(E)return E;t=y.project}}function VOe(e,t,r,i,o,s,l,u){const d=t.options.disableReferencedProjectLoad?0:i;let _;return qe(t.projectReferences,h=>{var y;const E=Ms(mx(h)),A=e.projectService.toCanonicalFileName(E),R=u?.get(A);if(R!==void 0&&R>=d)return;const N=e.projectService.configFileExistenceInfoCache.get(A);let P=d===0?N?.exists||(y=e.resolvedChildConfigs)!=null&&y.has(A)?N.config.parsedCommandLine:void 0:e.getParsedCommandLine(E);if(P&&d!==i&&d>2&&(P=e.getParsedCommandLine(E)),!P)return;const k=e.projectService.findConfiguredProjectByProjectName(E,s);if(!(d===2&&!N&&!k)){switch(d){case 6:k&&k.projectService.reloadConfiguredProjectOptimized(k,o,l);case 4:(e.resolvedChildConfigs??(e.resolvedChildConfigs=new Set)).add(A);case 2:case 0:if(k||d!==0){const F=r(N??e.projectService.configFileExistenceInfoCache.get(A),k,E,o,e,A);if(F)return F}break;default:C.assertNever(d)}(u??(u=new Map)).set(A,d),(_??(_=[])).push(P)}})||qe(_,h=>h.projectReferences&&VOe(e,h,r,d,o,s,l,u))}function ihe(e,t,r,i,o){let s=!1,l;switch(t){case 2:case 3:lhe(e)&&(l=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(l=she(e),l)break;case 5:s=hlt(e,r);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,i,o),l=she(e),l)break;case 7:s=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,i,o);break;case 0:case 1:break;default:C.assertNever(t)}return{project:e,sentConfigFileDiag:s,configFileExistenceInfo:l,reason:i}}function jOe(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&yg(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&yg(e.resolvedChildConfigs,t)):void 0}function mlt(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?jOe(e,i):qe(e.getProjectReferences(),r)}function ohe(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function UOe(e,t){return mlt(e,r=>ohe(e,t,r.sourceFile.path),r=>ohe(e,t,e.toPath(mx(r))),r=>ohe(e,t,r))}function $X(e,t){return`${Bo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function ahe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Nm(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function HOe(e,t,r){if(!r&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;const i=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!r)return i===2;const o=e.projectService.sendConfigFileDiagEvent(e,t,r);return e.triggerFileForConfigFileDiag=void 0,o}function hlt(e,t){if(t){if(HOe(e,t,!1))return!0}else Nm(e);return!1}function she(e){const t=Ms(e.getConfigFilePath()),r=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),i=r.config.parsedCommandLine;if(e.parsedCommandLine=i,e.resolvedChildConfigs=void 0,e.updateReferences(i.projectReferences),lhe(e))return r}function lhe(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!IU(e.parsedCommandLine))}function _lt(e){return lhe(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function glt(e){return`Creating possible configured project for ${e.fileName} to open`}function QX(e){return`User requested reload projects: ${e}`}function che(e){Sv(e)&&(e.projectOptions=!0)}function dhe(e){let t=1;return()=>e(t++)}function uhe(){return{idToCallbacks:new Map,pathToId:new Map}}function qOe(e,t){return!!t&&!!e.eventHandler&&!!e.session}function ylt(e,t){if(!qOe(e,t))return;const r=uhe(),i=uhe(),o=uhe();let s=1;return e.session.addProtocolHandler("watchChange",A=>(_(A.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(A,R){return d(r,A,R,N=>({eventName:jX,data:{id:N,path:A}}))}function u(A,R,N){return d(N?o:i,A,R,P=>({eventName:UX,data:{id:P,path:A,recursive:!!N,ignoreUpdate:A.endsWith("/node_modules")?void 0:!0}}))}function d({pathToId:A,idToCallbacks:R},N,P,k){const F=e.toPath(N);let W=A.get(F);W||A.set(F,W=s++);let G=R.get(W);return G||(R.set(W,G=new Set),e.eventHandler(k(W))),G.add(P),{close(){const j=R.get(W);j?.delete(P)&&(j.size||(R.delete(W),A.delete(F),e.eventHandler({eventName:HX,data:{id:W}})))}}}function _(A){No(A)?A.forEach(h):h(A)}function h({id:A,created:R,deleted:N,updated:P}){y(A,R,0),y(A,N,2),y(A,P,1)}function y(A,R,N){R?.length&&(E(r,A,R,(P,k)=>P(k,N)),E(i,A,R,(P,k)=>P(k)),E(o,A,R,(P,k)=>P(k)))}function E(A,R,N,P){var k;(k=A.idToCallbacks.get(R))==null||k.forEach(F=>{N.forEach(W=>P(F,jd(W)))})}}var JOe=class pve{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=dhe(Mme),this.newAutoImportProviderProjectName=dhe(Pme),this.newAuxiliaryProjectName=dhe(Lme),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Zme,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=gs,this.verifyDocumentRegistry=gs,this.verifyProgram=gs,this.onProjectCreation=gs;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||jz,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Yc,this.pluginProbeLocations=t.pluginProbeLocations||Yc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Qr(ci(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=hm()),this.currentDirectory=Ms(this.host.getCurrentDirectory()),this.toCanonicalFileName=Gd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?qc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new wme(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${ci(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:u7(this.host.newLine),preferences:Dm,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=zJ(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):gs;this.packageJsonCache=_he(this),this.watchFactory=this.serverMode!==0?{watchFile:DP,watchDirectory:DP}:IH(ylt(this,t.canUseWatchEvents)||this.host,i,o,$X),this.canUseWatchEvents=qOe(this,t.canUseWatchEvents),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return Os(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return bo(t,this.host.getCurrentDirectory())}setDocument(t,r,i){const o=C.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){const i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;const i={eventName:GX,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const r=JSON.parse(t);for(const i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(const i in r.simpleMap)Cs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=Zme,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case s7:r.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case l7:r.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(wOe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(S8(t)||(t.markAsDirty(),T8(t)))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Nm(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:Gz,data:{openFiles:Do(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:zX,data:{file:t,fileSize:r,maxFileSize:OX}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:WX,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:FX,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(const i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){C.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=Vz(t),o=E8(t,r),s=ehe(t);i.allowNonTsExtensions=!0;const l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o?.watchOptions),u.setProjectErrors(o?.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return Nme(t)?WOe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Ms(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const r=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var r;const i=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;if(i)return(r=this.pendingOpenFileProjectUpdates)!=null&&r.delete(i.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,5),i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,this.openFiles.get(i.path))),this.tryGetDefaultProjectForFile(i)}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const r=Bo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(Bo(t)?t:t.fileName),Ay.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=Nm(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){C.assert(!t.isScriptOpen()),r===2?this.handleDeletedFile(t,!0):(t.deferredDelete&&(t.deferredDelete=void 0),t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(Bo(t.sourceMapFilePath)){const r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r?.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t,r){C.assert(!t.isScriptOpen()),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t),t.detachAllProjects(),r?(t.delayReloadNonMixedContentFile(),t.deferredDelete=!0):this.deleteScriptInfo(t)}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,u=>this.onWildCardDirectoryWatcherInvoke(t,i,o,l,u),r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions,ci(i)),ld.WildcardDirectory,i);const l={packageJsonWatches:void 0,close(){var u;s&&(s.close(),s=void 0,(u=l.packageJsonWatches)==null||u.forEach(d=>{d.projects.delete(l),d.close()}),l.packageJsonWatches=void 0)}};return l}onWildCardDirectoryWatcherInvoke(t,r,i,o,s){const l=this.toPath(s),u=i.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(s,l);if(Dc(l)==="package.json"&&!WO(l)&&(u&&u.fileExists||!u&&this.host.fileExists(s))){const _=this.getNormalizedAbsolutePath(s);this.logger.info(`Config: ${r} Detected new package.json: ${_}`),this.packageJsonCache.addOrUpdate(_,l),this.watchPackageJsonFile(_,l,o)}u?.fileExists||this.sendSourceFileChange(l);const d=this.findConfiguredProjectByProjectName(r);sO({watchedDirPath:this.toPath(t),fileOrDirectory:s,fileOrDirectoryPath:l,configFileName:r,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:i.parsedCommandLine.options,program:d?.getCurrentProgram()||i.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:_=>this.logger.info(_),toPath:_=>this.toPath(_),getScriptKind:d?_=>d.getScriptKind(_):void 0})||(i.updateLevel!==2&&(i.updateLevel=1),i.projects.forEach((_,h)=>{var y;if(!_)return;const E=this.getConfiguredProjectByCanonicalConfigFilePath(h);if(!E)return;if(d!==E&&this.getHostPreferences().includeCompletionsForModuleExports){const R=this.toPath(r);mn((y=E.getCurrentProgram())==null?void 0:y.getResolvedProjectReferences(),N=>N?.sourceFile.path===R)&&E.markAutoImportProviderAsDirty()}const A=d===E?1:0;if(!(E.pendingUpdateLevel>A))if(this.openFiles.has(l))if(C.checkDefined(this.getScriptInfoForPath(l)).isAttached(E)){const N=Math.max(A,E.openFileWatchTriggered.get(l)||0);E.openFileWatchTriggered.set(l,N)}else E.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(E);else E.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(E)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){const i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache(),i.config.projects.forEach((s,l)=>{var u,d,_;const h=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(h)if(o=!0,l===t){if(h.initialLoadPending)return;h.pendingUpdateLevel=2,h.pendingUpdateReason=r,this.delayUpdateProjectGraph(h),h.markAutoImportProviderAsDirty()}else{if(h.initialLoadPending){(d=(u=this.configFileExistenceInfoCache.get(l))==null?void 0:u.openFilesImpactedByConfigFile)==null||d.forEach(E=>{var A;(A=this.pendingOpenFileProjectUpdates)!=null&&A.has(E)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(E,this.configFileForOpenFiles.get(E))});return}const y=this.toPath(t);h.resolutionCache.removeResolutionsFromProjectReferenceRedirects(y),this.delayUpdateProjectGraph(h),this.getHostPreferences().includeCompletionsForModuleExports&&mn((_=h.getCurrentProgram())==null?void 0:_.getResolvedProjectReferences(),E=>E?.sourceFile.path===y)&&h.markAutoImportProviderAsDirty()}}),o}onConfigFileChanged(t,r,i){const o=this.configFileExistenceInfoCache.get(r),s=this.getConfiguredProjectByCanonicalConfigFilePath(r),l=s?.deferredClose;i===2?(o.exists=!1,s&&(s.deferredClose=!0)):(o.exists=!0,l&&(s.deferredClose=void 0,s.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(r,"Change in config file detected"),this.openFiles.forEach((u,d)=>{var _,h;const y=this.configFileForOpenFiles.get(d);if(!((_=o.openFilesImpactedByConfigFile)!=null&&_.has(d)))return;this.configFileForOpenFiles.delete(d);const E=this.getScriptInfoForPath(d);this.getConfigFileNameForFile(E,!1)&&((h=this.pendingOpenFileProjectUpdates)!=null&&h.has(d)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(d,y))}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),C.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>C.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Do(zd(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:iI(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:iI(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){C.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:ci(Pp(t.fileName)?t.fileName:bo(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(bN(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const o of this.inferredProjects){if(o===i||o.isOrphan())continue;const s=o.getRootScriptInfos();C.assert(s.length===1||!!o.projectRootPath),s.length===1&&qe(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){var i;const o=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(o),this.stopWatchingConfigFilesForScriptInfo(t);const s=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(s)===t&&this.openFilesWithNonRootedDiskPath.delete(s);let l=!1;for(const u of t.containingProjects){if(Sv(u)){t.hasMixedContent&&t.registerFileUpdate();const d=u.openFileWatchTriggered.get(t.path);d!==void 0&&(u.openFileWatchTriggered.delete(t.path),u.pendingUpdateLevelthis.onConfigFileChanged(t,r,d),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions,ci(t)),ld.ConfigFile,i)),this.ensureConfigFileWatcherForProject(l,i)}ensureConfigFileWatcherForProject(t,r){const i=t.config.projects;i.set(r.canonicalConfigFilePath,i.get(r.canonicalConfigFilePath)||!1)}releaseParsedConfig(t,r){var i,o,s;const l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,EH(t,this.sharedExtendedConfigFileWatchers),C.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?l.inferredProjectRoots?mO(ci(t))||(l.watcher.close(),l.watcher=nhe):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}stopWatchingConfigFilesForScriptInfo(t){if(this.serverMode!==0)return;const r=this.rootOfInferredProjects.delete(t),i=t.isScriptOpen();i&&!r||this.forEachConfigFileLocation(t,o=>{var s,l,u;const d=this.configFileExistenceInfoCache.get(o);if(d){if(i){if(!((s=d?.openFilesImpactedByConfigFile)!=null&&s.has(t.path)))return}else if(!((l=d.openFilesImpactedByConfigFile)!=null&&l.delete(t.path)))return;r&&(d.inferredProjectRoots--,d.watcher&&!d.config&&!d.inferredProjectRoots&&(d.watcher.close(),d.watcher=void 0)),!((u=d.openFilesImpactedByConfigFile)!=null&&u.size)&&!d.config&&(C.assert(!d.watcher),this.configFileExistenceInfoCache.delete(o))}})}startWatchingConfigFilesForInferredProjectRoot(t){this.serverMode===0&&(C.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o?o.inferredProjectRoots=(o.inferredProjectRoots??0)+1:(o={exists:this.host.fileExists(i),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile??(o.openFilesImpactedByConfigFile=new Set)).add(t.path),o.watcher||(o.watcher=mO(ci(r))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(i,r,l),2e3,this.hostConfiguration.watchOptions,ld.ConfigFileForInferredRoot):nhe)}))}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;C.assert(!zOe(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(C.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=ci(t.fileName);const l=()=>gm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let d=!0,_=!0;YX(t)&&(nl(t.fileName,"tsconfig.json")?d=!1:d=_=!1);do{const h=TC(s,this.currentDirectory,this.toCanonicalFileName);if(d){const E=Qr(s,"tsconfig.json");if(r(Qr(h,"tsconfig.json"),E))return E}if(_){const E=Qr(s,"jsconfig.json");if(r(Qr(h,"jsconfig.json"),E))return E}if(uF(h))break;const y=ci(s);if(y===s)break;s=y,d=_=!0}while(u||l())}findDefaultConfiguredProject(t){var r;return(r=this.findDefaultConfiguredProjectWorker(t,1))==null?void 0:r.defaultProject}findDefaultConfiguredProjectWorker(t,r){return t.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r):void 0}getConfigFileNameForFileFromCache(t,r){if(r){const i=FOe(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return FOe(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,r){if(!this.openFiles.has(t.path))return;const i=r||!1;if(!YX(t))this.configFileForOpenFiles.set(t.path,i);else{let o=this.configFileForOpenFiles.get(t.path);(!o||Bo(o))&&this.configFileForOpenFiles.set(t.path,o=new Map().set(!1,o)),o.set(t.fileName,i)}}getConfigFileNameForFile(t,r){const i=this.getConfigFileNameForFileFromCache(t,r);if(i!==void 0)return i||void 0;if(r)return;const o=this.forEachConfigFileLocation(t,(s,l)=>this.configFileExists(l,s,t));return this.logger.info(`getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${o}`),this.setConfigFileNameForFileInCache(t,o),o}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(mhe),this.configuredProjects.forEach(mhe),this.inferredProjects.forEach(mhe),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{const i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t,r){const i=this.toCanonicalFileName(t),o=this.getConfiguredProjectByCanonicalConfigFilePath(i);return r?o:o?.deferredClose?void 0:o}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return WOe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=wX;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>s-=u||0);let l=0;for(const u of i){const d=o.getFileName(u);if(!g1(d)&&(l+=this.host.getFileSize(d),l>wX||l>s)){const _=i.map(h=>o.getFileName(h)).filter(h=>!g1(h)).map(h=>({name:h,size:this.host.getFileSize(h)})).sort((h,y)=>y.size-h.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${_.map(h=>`${h.name}:${h.size}`).join(", ")}`),d}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=Vz(i),u=E8(i,ci(jd(t))),d=new kX(t,this,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,XX),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return d.setProjectErrors(u?.errors),d.excludedFiles=s,this.addFilesToNonInferredProject(d,r,XX,o),this.externalProjects.push(d),d}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){che(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){che(t);return}const r=Sv(t)?t.projectOptions:void 0;che(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:v8(t.getScriptInfos(),!0),compilerOptions:Zoe(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof kX?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Re};this.eventHandler({eventName:VX,data:i});function o(){return Sv(t)&&LX(t.getConfigFilePath())||"other"}function s({enable:l,include:u,exclude:d}){return{enable:l,include:u!==void 0&&u.length!==0,exclude:d!==void 0&&d.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t,r){var i;(i=xr)==null||i.instant(xr.Phase.Session,"createConfiguredProject",{configFilePath:t});const o=this.toCanonicalFileName(t);let s=this.configFileExistenceInfoCache.get(o);s?s.exists=!0:this.configFileExistenceInfoCache.set(o,s={exists:!0}),s.config||(s.config={cachedDirectoryStructureHost:P3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const l=new $me(t,o,this,s.config.cachedDirectoryStructureHost,r);return C.assert(!this.configuredProjects.has(o)),this.configuredProjects.set(o,l),this.createConfigFileWatcherForParsedConfig(t,o,l),l}loadConfiguredProject(t,r){var i,o;(i=xr)==null||i.push(xr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);const s=Ms(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=l.config.parsedCommandLine;C.assert(!!u.fileNames);const d=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.parsedCommandLine=u,t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const _=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,d,u.fileNames,KX);_?(t.disableLanguageService(_),this.configFileExistenceInfoCache.forEach((y,E)=>this.stopWatchingWildCards(E,t))):(t.setCompilerOptions(d),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(d);const h=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,h,KX,d,u.typeAcquisition,u.compileOnSave,u.watchOptions),(o=xr)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,u;if(i.config&&(i.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(t,i.config),!i.config.updateLevel))return this.ensureConfigFileWatcherForProject(i,o),i;if(!i.exists&&i.config)return i.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(i,o),i;const d=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||P3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),_=oP(t,N=>this.host.readFile(N)),h=Ow(t,Bo(_)?_:""),y=h.parseDiagnostics;Bo(_)||y.push(_);const E=ci(t),A=Vw(h,d,E,void 0,t,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);A.errors.length&&y.push(...A.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:A.fileNames,options:A.options,watchOptions:A.watchOptions,projectReferences:A.projectReferences},void 0," ")}`);const R=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=A,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:A,cachedDirectoryStructureHost:d,projects:new Map},!R&&!i4(this.getWatchOptionsFromProjectWatchOptions(void 0,E),this.getWatchOptionsFromProjectWatchOptions(A.watchOptions,E))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),L3(r,A.options,this.sharedExtendedConfigFileWatchers,(N,P)=>this.watchFactory.watchFile(N,()=>{var k;k3(this.extendedConfigCache,P,W=>this.toPath(W));let F=!1;(k=this.sharedExtendedConfigFileWatchers.get(P))==null||k.projects.forEach(W=>{F=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(W,`Change in extended config file ${N} detected`)||F}),F&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,ld.ExtendedConfigFile,t),N=>this.toPath(N)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,aO(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;yp(i.watchedDirectories,Qf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!Jc(i.config.projects,Us)&&(i.config.watchedDirectories&&(yp(i.config.watchedDirectories,Qf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){var o;const s=t.getRootFilesMap(),l=new Map;for(const u of r){const d=i.getFileName(u),_=Ms(d),h=iL(_);let y;if(!h&&!t.fileExists(d)){y=TC(_,this.currentDirectory,this.toCanonicalFileName);const E=s.get(y);E?(((o=E.info)==null?void 0:o.path)===y&&(t.removeFile(E.info,!1,!0),E.info=void 0),E.fileName=_):s.set(y,{fileName:_})}else{const E=i.getScriptKind(u,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(u,this.hostConfiguration.extraFileExtensions),R=C.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(_,t.currentDirectory,E,A,t.directoryStructureHost,!1));y=R.path;const N=s.get(y);!N||N.info!==R?(t.addRoot(R,_),R.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(R)):N.fileName=_}l.set(y,!0)}s.size>l.size&&s.forEach((u,d)=>{l.has(d)||(u.info?t.removeFile(u.info,t.fileExists(u.info.fileName),!0):s.delete(d))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,u){t.setCompilerOptions(o),t.setWatchOptions(u),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){const r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.fileNames.concat(t.getExternalFiles(1)),KX),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine;C.assert(r.updateLevel===1);const i=r.parsedCommandLine.options.configFile.configFileSpecs,o=aP(i,ci(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},r.updateLevel=void 0,r.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,KX)}reloadConfiguredProjectOptimized(t,r,i){i.has(t)||(i.set(t,6),t.initialLoadPending||this.setProjectForReload(t,2,r))}reloadConfiguredProjectClearingSemanticCache(t,r,i){return i.get(t)===7?!1:(i.set(t,7),this.clearSemanticCache(t),this.reloadConfiguredProject(t,QX(r)),!0)}setProjectForReload(t,r,i){r===2&&this.clearSemanticCache(t),t.pendingUpdateReason=i&&QX(i),t.pendingUpdateLevel=r}reloadConfiguredProject(t,r){t.initialLoadPending=!1,this.setProjectForReload(t,0),this.loadConfiguredProject(t,r),HOe(t,t.triggerFileForConfigFileDiag??t.getConfigFilePath(),!0)}clearSemanticCache(t){t.originalConfiguredProjects=void 0,t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;const o=t.getLanguageService().getCompilerOptionsDiagnostics();return o.push(...t.getAllProjectErrors()),!i&&o.length===(t.configDiagDiagnosticsReported??0)?!1:(t.configDiagDiagnosticsReported=o.length,this.eventHandler({eventName:BX,data:{configFileName:t.getConfigFilePath(),diagnostics:o,triggerFile:r??t.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){const o=this.toCanonicalFileName(r);for(const s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(const o of this.inferredProjects)o.projectRootPath&&gm(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(t){C.assert(!this.useSingleInferredProject);const r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t,!1,void 0)}createInferredProject(t,r,i){const o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;const u=new Jme(this,o,s?.watchOptions,i,t,l);return u.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i,o){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Ms(t),r,void 0,void 0,i,o)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Ms(t))}getScriptInfoOrConfig(t){const r=Ms(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;const o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const r=Do(zd(this.filenameToScriptInfo.entries(),i=>i[1].deferredDelete?void 0:i),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){const o=t.getRealpathIfDifferent();o&&qe(this.realpathToScriptInfos.get(o),i),qe(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(const s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?Jc(r,(l,u)=>u===o.path?!1:jn(l,s))||r.add(o.path,s):(r=hm(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(C.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!po(t.path,this.globalCacheLocationDirectoryPath))){const r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,ld.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;const u=J3(this.toPath(s));if(!u)return;const d=Dc(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(d==="package.json"||d==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(_=>{var h;(h=_.getModuleSpecifierCache())==null||h.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const _=this.filenameToScriptInfo.get(u);_?ahe(_)&&this.refreshScriptInfo(_):OR(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,ld.NodeModules);const o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;const o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return C.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){const r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||Mp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=w9(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Xs,this.filenameToScriptInfo.forEach(r=>{ahe(r)&&po(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s,l){if(Pp(t)||iL(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,!!o,s,l);const u=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(u)return u}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,!!s,l,!1)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,u,d){C.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const _=TC(t,r,this.toCanonicalFileName);let h=this.filenameToScriptInfo.get(_);if(h){if(h.deferredDelete){if(C.assert(!h.isDynamic),!i&&!(u||this.host).fileExists(t))return d?h:void 0;h.deferredDelete=void 0}}else{const y=iL(t);if(C.assert(Pp(t)||y||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Do(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),C.assert(!Pp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Do(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),C.assert(!y||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Do(this.openFilesWithNonRootedDiskPath.keys())})} Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!y&&!(u||this.host).fileExists(t))return;h=new Bme(this.host,t,s,l,_,this.filenameToScriptInfoVersion.get(_)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!Pp(t)&&(!y||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!Pp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(TC(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){const r=this.filenameToScriptInfo.get(t);return!r||!r.deferredDelete?r:void 0}getDocumentPositionMapper(t,r,i){const o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host,!1);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),Bo(o.sourceMapFilePath)){const _=this.getScriptInfoForPath(o.sourceMapFilePath);if(_&&(_.getSnapshot(),_.documentPositionMapper!==void 0))return _.sourceInfos=this.addSourceInfoToSourceMap(i,t,_.sourceInfos),_.documentPositionMapper?_.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l=(_,h)=>{const y=this.getOrCreateScriptInfoNotOpenedByClient(_,t.currentDirectory,this.host,!0);if(s=y||h,!y||y.deferredDelete)return;const E=y.getSnapshot();return y.documentPositionMapper!==void 0?y.documentPositionMapper:yx(E)};const u=t.projectName,d=UJ({getCanonicalFileName:this.toCanonicalFileName,log:_=>this.logger.info(_),getSourceFileLike:_=>this.getSourceFileLike(_,u,o)},o.fileName,o.textStorage.getLineInfo(),l);return l=void 0,s?Bo(s)?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?s:bo(s,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.deferredDelete||(s.documentPositionMapper=d||!1),s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):o.sourceMapFilePath=!1,d}addSourceInfoToSourceMap(t,r,i){if(t){const o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost,!1);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{const o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!Bo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,ld.MissingSourceMapFile)}getSourceFileLike(t,r,i){const o=r.projectName?r:this.findProject(r);if(o){const l=o.toPath(t),u=o.getSourceFile(l);if(u&&u.resolvedPath===l)return u}const s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host,!1);if(s){if(i&&Bo(i.sourceMapFilePath)&&s!==i){const l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos??(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return C.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{const u=s.positionToLineOffset(l);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(l,u,d)=>s.lineOffsetToPosition(l+1,u+1,d)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){const i=this.getScriptInfoForNormalizedPath(Ms(t.file));i&&(i.setOptions(EC(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...EC(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o,includeCompletionsForModuleExports:s}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(l=>l.forEach(u=>{!u.deferredClose&&!u.isClosed()&&u.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(u)&&u.updateGraph()})),(o!==t.preferences.includePackageJsonAutoImports||!!s!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(l=>{l.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions){const i=(r=E8(t.watchOptions))==null?void 0:r.watchOptions,o=n3(i,this.currentDirectory);this.hostConfiguration.watchOptions=o,this.hostConfiguration.beforeSubstitution=o===i?void 0:i,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions(),t.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(t,r){const i=this.hostConfiguration.beforeSubstitution?n3(this.hostConfiguration.beforeSubstitution,r):this.hostConfiguration.watchOptions;return t&&i?{...i,...t}:t||i}closeLog(){this.logger.close()}sendSourceFileChange(t){this.filenameToScriptInfo.forEach(r=>{if(this.openFiles.has(r.path)||!r.fileWatcher)return;const i=Lu(()=>this.host.fileExists(r.fileName)?r.deferredDelete?0:1:2);if(t){if(ahe(r)||!r.path.startsWith(t)||i()===2&&r.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${r.fileName}:: ${i()}`)}this.onSourceFileChanged(r,i())})}reloadProjects(){this.logger.info("reload projects."),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((i,o)=>{this.throttledOperations.cancel(o),this.pendingProjectUpdates.delete(o)}),this.throttledOperations.cancel(wOe),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(i=>{i.config&&(i.config.updateLevel=2,i.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(i=>{this.clearSemanticCache(i),i.updateGraph()});const t=new Map,r=new Set;this.externalProjectToConfiguredProjectMap.forEach((i,o)=>{const s=`Reloading configured project in external project: ${o}`;i.forEach(l=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(l,s,t):this.reloadConfiguredProjectClearingSemanticCache(l,s,t)})}),this.openFiles.forEach((i,o)=>{const s=this.getScriptInfoForPath(o);mn(s.containingProjects,b8)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(s,7,t,r)}),r.forEach(i=>t.set(i,7)),this.inferredProjects.forEach(i=>this.clearSemanticCache(i)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(t,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(t){C.assert(t.containingProjects.length>0);const r=t.containingProjects[0];!r.isOrphan()&&SC(r)&&r.isRoot(t)&&qe(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();const t=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,t?.forEach((r,i)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(i),5)),this.openFiles.forEach((r,i)=>{const o=this.getScriptInfoForPath(i);o.isOrphan()?this.assignOrphanScriptInfoToInferredProject(o,r):this.removeRootOfInferredProjectIfNowPartOfOtherProject(o)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Nm),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(Ms(t),r,i,!1,o?Ms(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){const i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;const{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;const u={fileName:Ms(s),path:this.toPath(s)},d=this.getConfigFileNameForFile(u,!1);if(!d)return;let _=this.findConfiguredProjectByProjectName(d);if(!_){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;_=this.createConfiguredProject(d,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}const h=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(u,5,ihe(_,4),A=>`Creating project referenced in solution ${A.projectName} to find possible configured project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`);if(!h.defaultProject)return;if(h.defaultProject===t)return o;E(h.defaultProject);const y=this.getScriptInfo(s);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(A=>{Sv(A)&&E(A)}),o;function E(A){(t.originalConfiguredProjects??(t.originalConfiguredProjects=new Set)).add(A.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return mn(this.externalProjects,r=>(Nm(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){const l=this.getOrCreateScriptInfoWorker(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,!0,r,i,!!o,void 0,!0);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i;const o=this.findExternalProjectContainingOpenScriptInfo(t);let s,l;if(!o&&this.serverMode===0){const u=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5);u&&(s=u.seenProjects,l=u.sentConfigDiag,u.defaultProject&&(r=u.defaultProject.getConfigFilePath(),i=u.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(Nm),t.isOrphan()&&(s?.forEach((u,d)=>{u!==4&&!l.has(d)&&this.sendConfigFileDiagEvent(d,t.fileName,!0)}),C.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),C.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}findCreateOrReloadConfiguredProject(t,r,i,o,s,l,u,d,_){let h=_??this.findConfiguredProjectByProjectName(t,o),y=!1,E;switch(r){case 0:case 1:case 3:if(!h)return;break;case 2:if(!h)return;E=_lt(h);break;case 4:case 5:h??(h=this.createConfiguredProject(t,i)),u||({sentConfigFileDiag:y,configFileExistenceInfo:E}=ihe(h,r,s));break;case 6:if(h??(h=this.createConfiguredProject(t,QX(i))),h.projectService.reloadConfiguredProjectOptimized(h,i,l),E=she(h),E)break;case 7:h??(h=this.createConfiguredProject(t,QX(i))),y=!d&&this.reloadConfiguredProjectClearingSemanticCache(h,i,l),d&&!d.has(h)&&!l.has(h)&&(this.setProjectForReload(h,2,i),d.add(h));break;default:C.assertNever(r)}return{project:h,sentConfigFileDiag:y,configFileExistenceInfo:E,reason:i}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,i,o){const s=this.getConfigFileNameForFile(t,r<=3);if(!s)return;const l=BOe(r),u=this.findCreateOrReloadConfiguredProject(s,l,glt(t),i,t.fileName,o);return u&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,r,u,d=>`Creating project referenced in solution ${d.projectName} to find possible configured project for ${t.fileName} to open`,i,o)}isMatchedByConfig(t,r,i){if(r.fileNames.some(d=>this.toPath(d)===i.path))return!0;if($V(i.fileName,r.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:o,validatedIncludeSpecs:s,validatedExcludeSpecs:l}=r.options.configFile.configFileSpecs,u=Ms(bo(ci(t),this.currentDirectory));return o?.some(d=>this.toPath(bo(d,u))===i.path)?!0:!s?.length||a3(i.fileName,l,this.host.useCaseSensitiveFileNames,this.currentDirectory,u)?!1:s?.some(d=>{const _=KV(d,u,"files");return!!_&&sv(`(${_})$`,this.host.useCaseSensitiveFileNames).test(i.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,r,i,o,s,l){const u=zOe(t),d=BOe(r),_=new Map;let h;const y=new Set;let E,A,R,N;return P(i),{defaultProject:E??A,tsconfigProject:R??N,sentConfigDiag:y,seenProjects:_,seenConfigs:h};function P(J){return W(J,J.project)??G(J.project)??j(J.project)}function k(J,Z,q,ve,oe,K){if(Z){if(_.has(Z))return;_.set(Z,d)}else{if(h?.has(K))return;(h??(h=new Set)).add(K)}if(!oe.projectService.isMatchedByConfig(q,J.config.parsedCommandLine,t)){oe.languageServiceEnabled&&oe.projectService.watchWildcards(q,J,oe);return}const fe=Z?ihe(Z,r,t.fileName,ve,l):oe.projectService.findCreateOrReloadConfiguredProject(q,r,ve,s,t.fileName,l);if(!fe){C.assert(r===3);return}return _.set(fe.project,d),fe.sentConfigFileDiag&&y.add(fe.project),F(fe.project,oe)}function F(J,Z){if(_.get(J)===r)return;_.set(J,r);const q=u?t:J.projectService.getScriptInfo(t.fileName),ve=q&&J.containsScriptInfo(q);if(ve&&!J.isSourceOfProjectReferenceRedirect(q.path))return R=Z,E=J;!A&&u&&ve&&(N=Z,A=J)}function W(J,Z){return J.sentConfigFileDiag&&y.add(J.project),J.configFileExistenceInfo?k(J.configFileExistenceInfo,J.project,Ms(J.project.getConfigFilePath()),J.reason,J.project,J.project.canonicalConfigFilePath):F(J.project,Z)}function G(J){return J.parsedCommandLine&&VOe(J,J.parsedCommandLine,k,d,o(J),s,l)}function j(J){return u?GOe(t,J,P,d,`Creating possible configured project for ${t.fileName} to open`,s,l,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,r,i,o){const s=r===1,l=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,r,s,i);if(!l)return;const{defaultProject:u,tsconfigProject:d,seenProjects:_}=l;return u&&GOe(t,d,h=>{_.set(h.project,r)},r,`Creating project possibly referencing default composite project ${u.getProjectName()} of open file ${t.fileName}`,s,i,!0,o),l}loadAncestorProjectTree(t){t??(t=new Set(zd(this.configuredProjects.entries(),([o,s])=>s.initialLoadPending?void 0:o)));const r=new Set,i=Do(this.configuredProjects.values());for(const o of i)jOe(o,s=>t.has(s))&&Nm(o),this.ensureProjectChildren(o,t,r)}ensureProjectChildren(t,r,i){var o;if(!Wf(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(const l of s){if(!l)continue;const u=mj(l.references,h=>r.has(h.sourceFile.path)?h:void 0);if(!u)continue;const d=Ms(l.sourceFile.fileName),_=this.findConfiguredProjectByProjectName(d)??this.createConfiguredProject(d,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Nm(_),this.ensureProjectChildren(_,r,i)}}cleanupConfiguredProjects(t,r,i){this.getOrphanConfiguredProjects(t,i,r).forEach(o=>this.removeProject(o))}cleanupProjectsAndScriptInfos(t,r,i){this.cleanupConfiguredProjects(t,i,r);for(const o of this.inferredProjects.slice())o.isOrphan()&&this.removeProject(o);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(t){this.configFileExistenceInfoCache.forEach((r,i)=>{var o,s;!((o=r.config)!=null&&o.parsedCommandLine)||jn(r.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?_S:lb)||(s=r.config.watchedDirectories)==null||s.forEach((l,u)=>{gm(u,t.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${i}:: wildcard for open scriptInfo:: ${t.fileName}`),this.onWildCardDirectoryWatcherInvoke(u,i,r.config,l.watcher,t.fileName))})})}openClientFileWithNormalizedPath(t,r,i,o,s){const l=this.getScriptInfoForPath(TC(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,this.toCanonicalFileName)),u=this.getOrCreateOpenScriptInfo(t,r,i,o,s);!l&&u&&!u.isDynamic&&this.tryInvokeWildCardDirectories(u);const{retainProjects:d,..._}=this.assignProjectToOpenedScriptInfo(u);return this.cleanupProjectsAndScriptInfos(d,new Set([u.path]),void 0),this.telemetryOnOpenFile(u),this.printProjects(),_}getOrphanConfiguredProjects(t,r,i){const o=new Set(this.configuredProjects.values()),s=_=>{_.originalConfiguredProjects&&(Sv(_)||!_.isOrphan())&&_.originalConfiguredProjects.forEach((h,y)=>{const E=this.getConfiguredProjectByCanonicalConfigFilePath(y);return E&&d(E)})};if(t?.forEach((_,h)=>d(h)),!o.size||(this.inferredProjects.forEach(s),this.externalProjects.forEach(s),this.externalProjectToConfiguredProjectMap.forEach((_,h)=>{i?.has(h)||_.forEach(d)}),!o.size)||(Jc(this.openFiles,(_,h)=>{if(r?.has(h))return;const y=this.getScriptInfoForPath(h);if(mn(y.containingProjects,b8))return;const E=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(y,1);if(E?.defaultProject&&(E?.seenProjects.forEach((A,R)=>d(R)),!o.size))return o}),!o.size))return o;return Jc(this.configuredProjects,_=>{if(o.has(_)&&(u(_)||UOe(_,l))&&(d(_),!o.size))return o}),o;function l(_){return!o.has(_)||u(_)}function u(_){var h,y;return(_.deferredClose||_.projectService.hasPendingProjectUpdate(_))&&!!((y=(h=_.projectService.configFileExistenceInfoCache.get(_.canonicalConfigFilePath))==null?void 0:h.openFilesImpactedByConfigFile)!=null&&y.size)}function d(_){o.delete(_)&&(s(_),UOe(_,d))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.deferredDelete){if(!r.isScriptOpen()&&r.isOrphan()&&!Vme(r)&&!Gme(r)){if(!r.sourceMapFilePath)return;let i;if(Bo(r.sourceMapFilePath)){const o=this.filenameToScriptInfo.get(r.sourceMapFilePath);i=o?.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!yg(i,o=>{const s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(Bo(r.sourceMapFilePath)){const o=this.filenameToScriptInfo.get(r.sourceMapFilePath);o?.deferredDelete?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(o.fileName,r.path),sourceInfos:o.sourceInfos}:t.delete(r.sourceMapFilePath),i=o?.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}}),t.forEach(r=>this.deleteScriptInfo(r))}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Em(this.allJsFilesForOpenFileTelemetry,t.path))return;const r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;const i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:Qme,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(Ms(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(const s of r){const l=mn(t,u=>u.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){const i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,zd(this.configuredProjects.values(),o=>o.deferredClose?void 0:o),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s,l=!1;if(t)for(const d of t){(o??(o=[])).push(this.getScriptInfoForPath(TC(Ms(d.fileName),d.projectRootPath?this.getNormalizedAbsolutePath(d.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const _=this.getOrCreateOpenScriptInfo(Ms(d.fileName),d.content,qX(d.scriptKind),d.hasMixedContent,d.projectRootPath?Ms(d.projectRootPath):void 0);(s||(s=[])).push(_)}if(r)for(const d of r){const _=this.getScriptInfo(d.fileName);C.assert(!!_),this.applyChangesToFile(_,d.changes)}if(i)for(const d of i)l=this.closeClientFile(d,!0)||l;let u;qe(o,(d,_)=>!d&&s[_]&&!s[_].isDynamic?this.tryInvokeWildCardDirectories(s[_]):void 0),s?.forEach(d=>{var _;return(_=this.assignProjectToOpenedScriptInfo(d).retainProjects)==null?void 0:_.forEach((h,y)=>(u??(u=new Map)).set(y,h))}),l&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupProjectsAndScriptInfos(u,new Set(s.map(d=>d.path)),void 0),s.forEach(d=>this.telemetryOnOpenFile(d)),this.printProjects()):Qe(i)&&this.printProjects()}applyChangesToFile(t,r){for(const i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeExternalProject(t,r){const i=Ms(t);if(this.externalProjectToConfiguredProjectMap.get(i))this.externalProjectToConfiguredProjectMap.delete(i);else{const s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(t){const r=new Set(this.externalProjects.map(i=>i.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((i,o)=>r.add(o));for(const i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);r.forEach(i=>this.closeExternalProject(i,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=Zme}applySafeList(t){const r=t.typeAcquisition;C.assert(!!r,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(y=>jd(y.fileName));for(const y of Object.keys(this.safelist)){const E=this.safelist[y];for(const A of l)if(E.match.test(A)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${A}'`),E.types)for(const R of E.types)o.includes(R)||o.push(R);if(E.exclude)for(const R of E.exclude){const N=A.replace(E.match,(...P)=>R.map(k=>typeof k=="number"?Bo(P[k])?pve.escapeFilenameForRegex(P[k]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):k).join(""));s.includes(N)||s.push(N)}else{const R=pve.escapeFilenameForRegex(A);s.includes(R)||s.push(R)}}}const u=s.map(y=>new RegExp(y,"i"));let d,_;for(let y=0;yE.test(l[y])))h(y);else{if(i.enable){const E=Dc(ab(l[y]));if(xl(E,"js")){const A=Au(E),R=l9(A),N=this.legacySafelist.get(R);if(N!==void 0){this.logger.info(`Excluded '${l[y]}' because it matched ${R} from the legacy safelist`),h(y),o.includes(N)||o.push(N);continue}}}/^.+[.-]min\.js$/.test(l[y])?h(y):d?.push(r[y])}return _?{rootFiles:d,excludedFiles:_}:void 0;function h(y){_||(C.assert(!d),d=r.slice(0,y),_=[]),_.push(l[y])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName);let o,s=[];for(const l of t.rootFiles){const u=Ms(l.fileName);if(LX(u)){if(this.serverMode===0&&this.host.fileExists(u)){let d=this.findConfiguredProjectByProjectName(u);d||(d=this.createConfiguredProject(u,`Creating configured project in external project: ${t.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||d.updateGraph()),(o??(o=new Set)).add(d),C.assert(!d.isClosed())}}else s.push(l)}if(o)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,o),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const l=t.typeAcquisition||{};l.include=l.include||[],l.exclude=l.exclude||[],l.enable===void 0&&(l.enable=Hme(s.map(_=>_.fileName)));const u=this.applySafeListWorker(t,s,l),d=u?.excludedFiles??[];if(s=u?.rootFiles??s,i){i.excludedFiles=d;const _=Vz(t.options),h=E8(t.options,i.getCurrentDirectory()),y=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,_,s,XX);y?i.disableLanguageService(y):i.enableLanguageService(),i.setProjectErrors(h?.errors),this.updateRootAndOptionsOfNonInferredProject(i,s,XX,_,l,t.options.compileOnSave,h?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,s,t.options,l,d).updateGraph()}r&&(this.cleanupConfiguredProjects(o,new Set([t.projectFileName])),this.printProjects())}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||nd(r.name)||/[\\/]\.\.?(?:$|[\\/])/.test(r.name)){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){const o=Px.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,Px.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){const l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){const u=r.name;r=l,r.name=u}t.enableProxy(i,r)}else qe(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const t=Do(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){C.assert(this.currentPluginEnablementPromise===void 0);let r=!1;await Promise.all(Yt(t,async([i,o])=>{const s=await Promise.all(o);if(i.isClosed()||S8(i)){this.logger.info(`Cancelling plugin enabling for ${i.getProjectName()} as it is ${i.isClosed()?"closed":"deferred close"}`);return}r=!0;for(const l of s)this.endEnablePlugin(i,l);this.delayUpdateProjectGraph(i)})),this.currentPluginEnablementPromise=void 0,r&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){const o=this.packageJsonCache,s=i&&this.toPath(i),l=[],u=d=>{switch(o.directoryHasPackageJson(d)){case 3:return o.searchDirectoryAndAncestors(d,r),u(d);case-1:const _=Qr(d,"package.json");this.watchPackageJsonFile(_,this.toPath(_),r);const h=o.getInDirectory(d);h&&l.push(h)}if(s&&s===d)return!0};return z_(r,ci(t),u),l}getNearestAncestorDirectoryWithPackageJson(t,r){return z_(r,t,i=>{switch(this.packageJsonCache.directoryHasPackageJson(i)){case-1:return i;case 0:return;case 3:return this.host.fileExists(Qr(i,"package.json"))?i:void 0}})}watchPackageJsonFile(t,r,i){C.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,u)=>{switch(u){case 0:case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,ld.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=vlt())}};JOe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var phe=JOe;function vlt(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function fhe(e){return e.kind!==void 0}function mhe(e){e.print(!1,!1,!1)}function hhe(e){let t,r,i;const o={get(d,_,h,y){if(!(!r||i!==l(d,h,y)))return r.get(_)},set(d,_,h,y,E,A,R){if(s(d,h,y).set(_,u(E,A,R,void 0,!1)),R){for(const N of A)if(N.isInNodeModules){const P=N.path.substring(0,N.path.indexOf(Pg)+Pg.length-1),k=e.toPath(P);t?.has(k)||(t||(t=new Map)).set(k,e.watchNodeModulesForPackageJsonChanges(P))}}},setModulePaths(d,_,h,y,E){const A=s(d,h,y),R=A.get(_);R?R.modulePaths=E:A.set(_,u(void 0,E,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(d,_,h,y,E,A){const R=s(d,h,y),N=R.get(_);N?(N.isBlockedByPackageJsonDependencies=A,N.packageName=E):R.set(_,u(void 0,void 0,void 0,E,A))},clear(){t?.forEach(Hm),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return C.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(d,_,h){const y=l(d,_,h);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(d,_,h){return`${d},${_.importModuleSpecifierEnding},${_.importModuleSpecifierPreference},${h.overrideImportMode}`}function u(d,_,h,y,E){return{kind:d,modulePaths:_,moduleSpecifiers:h,packageName:y,isBlockedByPackageJsonDependencies:E}}}function _he(e){const t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(ci(l),!0)},getInDirectory:l=>t.get(e.toPath(Qr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:(l,u)=>{z_(u,l,d=>{const _=e.toPath(d);if(s(_)!==3)return!0;const h=Qr(d,"package.json");jP(e,h)?i(h,Qr(_,"package.json")):r.set(_,!0)})}};function i(l,u){const d=C.checkDefined(xJ(l,e.host));t.set(u,d),r.delete(ci(u))}function o(l){t.delete(l),r.delete(ci(l))}function s(l){return t.has(Qr(l,"package.json"))?-1:r.has(l)?0:3}}var KOe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function blt(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function XOe(e,t){if((SC(e)||b8(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function Tlt(e){return vp(e)||!!e.emitDecoratorMetadata}function YOe(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:c_(r.messageText,` `),code:r.code,category:JE(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Yt(r.relatedInformation,ZX)}}function ZX(e){return e.file?{span:{start:AC(ca(e.file,e.start)),end:AC(ca(e.file,e.start+e.length)),file:e.file.fileName},message:c_(e.messageText,` `),category:JE(e),code:e.code}:{message:c_(e.messageText,` `),category:JE(e),code:e.code}}function AC(e){return{line:e.line+1,offset:e.character+1}}function A8(e,t){const r=e.file&&AC(ca(e.file,e.start)),i=e.file&&AC(ca(e.file,e.start+e.length)),o=c_(e.messageText,` `),{code:s,source:l}=e,u=JE(e),d={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Yt(e.relatedInformation,ZX)};return t?{...d,fileName:e.file&&e.file.fileName}:d}function Slt(e,t){return e.every(r=>Ml(r.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,r){const i=this.requestId;C.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r),this.performanceData)},t,e))}executeAction(e){var t,r,i,o,s,l;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=xr)==null||t.instant(xr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=xr)==null||r.push(xr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=xr)==null||i.pop())}catch(d){(o=xr)==null||o.popAll(),u=!0,d instanceof RN?(s=xr)==null||s.instant(xr.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=xr)==null||l.instant(xr.Phase.Session,"stepError",{seq:this.requestId,message:d.message}),this.operationHost.logError(d,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function yhe(e,t){return{seq:0,type:"event",event:e,body:t}}function Alt(e,t,r,i){const o=bs(No(r)?r:r.projects,s=>i(s,e));return!No(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...fi(s,d=>i(d,u)))}),fS(o,sb)}function eY(e){return r9(({textSpan:t})=>t.start+100003*t.length,fJ(e))}function Ilt(e,t,r,i,o,s,l){const u=vhe(e,t,r,QOe(t,r,!0),t8e,(h,y)=>h.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(h,y)=>y(aL(h)));if(No(u))return u;const d=[],_=eY(l);return u.forEach((h,y)=>{for(const E of h)!_.has(E)&&!tY(aL(E),y)&&(d.push(E),_.add(E))}),d}function QOe(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Rc(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function xlt(e,t,r,i,o){var s,l;const u=vhe(e,t,r,QOe(t,r,!1),t8e,(y,E)=>(o.info(`Finding references to ${E.fileName} position ${E.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(E.fileName,E.pos)),(y,E)=>{E(aL(y.definition));for(const A of y.references)E(aL(A))});if(No(u))return u;const d=u.get(t);if(((l=(s=d?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)u.forEach(y=>{for(const E of y)for(const A of E.references)delete A.isDefinition});else{const y=eY(i);for(const A of d)for(const R of A.references)if(R.isDefinition){y.add(R);break}const E=new Set;for(;;){let A=!1;if(u.forEach((R,N)=>{if(E.has(N))return;N.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,y)&&(E.add(N),A=!0)}),!A)break}u.forEach((A,R)=>{if(!E.has(R))for(const N of A)for(const P of N.references)P.isDefinition=!1})}const _=[],h=eY(i);return u.forEach((y,E)=>{for(const A of y){const R=tY(aL(A.definition),E),N=R===void 0?A.definition:{...A.definition,textSpan:xd(R.pos,A.definition.textSpan.length),fileName:R.fileName,contextSpan:Dlt(A.definition,E)};let P=mn(_,k=>pJ(k.definition,N,i));P||(P={definition:N,references:[]},_.push(P));for(const k of A.references)!h.has(k)&&!tY(aL(k),E)&&(h.add(k),P.references.push(k))}}),_.filter(y=>y.references.length!==0)}function ZOe(e,t,r){for(const i of No(e)?e:e.projects)r(i,t);!No(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function vhe(e,t,r,i,o,s,l){const u=new Map,d=E2();d.enqueue({project:t,location:r}),ZOe(e,r.fileName,(N,P)=>{const k={fileName:P,pos:r.pos};d.enqueue({project:N,location:k})});const _=t.projectService,h=t.getCancellationToken(),y=Lu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),E=Lu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetSourcePosition(i)),A=new Set;e:for(;!d.isEmpty();){for(;!d.isEmpty();){if(h.isCancellationRequested())break e;const{project:N,location:P}=d.dequeue();if(u.has(N)||n8e(N,P)||(Nm(N),!N.containsFile(Ms(P.fileName))))continue;const k=R(N,P);u.set(N,k??Yc),A.add(Rlt(N))}i&&(_.loadAncestorProjectTree(A),_.forEachEnabledProject(N=>{if(h.isCancellationRequested()||u.has(N))return;const P=o(i,N,y,E);P&&d.enqueue({project:N,location:P})}))}if(u.size===1)return $B(u.values());return u;function R(N,P){const k=s(N,P);if(!k||!l)return k;for(const F of k)l(F,W=>{const G=_.getOriginalLocationEnsuringConfiguredProject(N,W);if(!G)return;const j=_.getScriptInfo(G.fileName);for(const Z of j.containingProjects)!Z.isOrphan()&&!u.has(Z)&&d.enqueue({project:Z,location:G});const J=_.getSymlinkedProjects(j);J&&J.forEach((Z,q)=>{for(const ve of Z)!ve.isOrphan()&&!u.has(ve)&&d.enqueue({project:ve,location:{fileName:q,pos:G.pos}})})});return k}}function e8e(e,t){if(t.containsFile(Ms(e.fileName))&&!n8e(t,e))return e}function t8e(e,t,r,i){const o=e8e(e,t);if(o)return o;const s=r();if(s&&t.containsFile(Ms(s.fileName)))return s;const l=i();return l&&t.containsFile(Ms(l.fileName))?l:void 0}function n8e(e,t){if(!t)return!1;const r=e.getLanguageService().getProgram();if(!r)return!1;const i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function Rlt(e){return Sv(e)?e.canonicalConfigFilePath:e.getProjectName()}function aL({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function tY(e,t){return WP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function r8e(e,t){return k7(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Dlt(e,t){return hJ(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}var i8e=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits","copilotRelated"],Clt=[...i8e,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full","preparePasteEdits"],o8e=class uQ{constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const s={version:Re};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{const l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(d=>d.projectErrors&&d.projectErrors.length!==0))return this.requiredResponse(l);const u=Yt(l,d=>!d.projectErrors||d.projectErrors.length===0?d:{info:d.info,changes:d.changes,files:d.files,projectErrors:this.convertToDiagnosticsWithLinePosition(d.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&Fo(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&Fo(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:zd(XB(l.textChanges),u=>{const d=C.checkDefined(this.projectService.getScriptInfo(l.fileName)),_=d.lineOffsetToPosition(u.start.line,u.start.offset),h=d.lineOffsetToPosition(u.end.line,u.end.offset);return _>=0?{span:{start:_,length:h-_},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&Fo(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:XB(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(Ms(s.arguments.file),s.arguments.fileContent,JX(s.arguments.scriptKindName),s.arguments.projectRootPath?Ms(s.arguments.projectRootPath):void 0),this.notRequired(s)),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired(void 0)),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired(void 0)),change:s=>(this.change(s.arguments),this.notRequired(s)),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.notRequired(s)),reload:s=>(this.reload(s.arguments),this.requiredResponse({reloadFinished:!0})),saveto:s=>{const l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired(s)},close:s=>{const l=s.arguments;return this.closeClientFile(l.file),this.notRequired(s)},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:s=>(this.projectService.reloadProjects(),this.notRequired(s)),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),preparePasteEdits:s=>this.requiredResponse(this.preparePasteEdits(s.arguments)),getPasteEdits:s=>this.requiredResponse(this.getPasteEdits(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.notRequired(s)),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments)),mapCode:s=>this.requiredResponse(this.mapCode(s.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||jz,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;const i={executeWithRequestId:(s,l,u)=>this.executeWithRequestId(s,l,u),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:(s,l)=>this.sendRequestCompletedEvent(s,l),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Elt(i);const o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new phe(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Ome(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:i8e.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Clt.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:C.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t,r){this.event({request_seq:t,performanceData:r&&a8e(r)},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}addDiagnosticsPerformanceData(t,r,i){var o,s;this.performanceData||(this.performanceData={});let l=(o=this.performanceData.diagnosticsDuration)==null?void 0:o.get(t);l||((s=this.performanceData).diagnosticsDuration??(s.diagnosticsDuration=new Map)).set(t,l={}),l[r]=i}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case Gz:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case WX:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case FX:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case zX:case jX:case UX:case HX:this.event(t.data,t.eventName);break;case BX:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Yt(t.data.diagnostics,r=>A8(r,!0))},t.eventName);break;case GX:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case VX:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},Gz))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: `+NP(t.message),t.stack&&(o+=` `+NP(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:s,project:l}=this.getFileAndProject(i),u=l.getScriptInfoForNormalizedPath(s);if(u){const d=yx(u.getSnapshot());o+=` File text of ${i.file}:${NP(d)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} `,o+=` Projects:: `;let s=0;const l=u=>{o+=` Project '${u.projectName}' (${oL[u.projectKind]}) ${s} `,o+=u.filesToString(!0),o+=` ----------------------------------------------- `,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${f0(t)}`);return}this.writeMessage(t)}writeMessage(t){const r=ghe(t,this.logger,this.byteLength,this.host.newLine);this.host.write(r)}event(t,r){this.send(yhe(r,t))}doOutput(t,r,i,o,s,l){const u={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:s&&a8e(s)};if(o){let d;if(No(t))u.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:_,...h}=t;u.body=h,d=_}else u.body=t;else u.body=t;d&&(u.metadata=d)}else C.assert(t===void 0);l&&(u.message=l),this.send(u)}semanticCheck(t,r){var i,o;const s=ws();(i=xr)==null||i.push(xr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const l=XOe(r,t)?Yc:r.getLanguageService().getSemanticDiagnostics(t).filter(u=>!!u.file);this.sendDiagnosticsEvent(t,r,l,"semanticDiag",s),(o=xr)==null||o.pop()}syntacticCheck(t,r){var i,o;const s=ws();(i=xr)==null||i.push(xr.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag",s),(o=xr)==null||o.pop()}suggestionCheck(t,r){var i,o;const s=ws();(i=xr)==null||i.push(xr.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag",s),(o=xr)==null||o.pop()}regionSemanticCheck(t,r,i){var o,s,l;const u=ws();(o=xr)==null||o.push(xr.Phase.Session,"regionSemanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let d;if(!this.shouldDoRegionCheck(t)||!(d=r.getLanguageService().getRegionSemanticDiagnostics(t,i))){(s=xr)==null||s.pop();return}this.sendDiagnosticsEvent(t,r,d.diagnostics,"regionSemanticDiag",u,d.spans),(l=xr)==null||l.pop()}shouldDoRegionCheck(t){var r;const i=(r=this.projectService.getScriptInfoForNormalizedPath(t))==null?void 0:r.textStorage.getLineInfo().getLineCount();return!!(i&&i>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(t,r,i,o,s,l){try{const u=C.checkDefined(r.getScriptInfo(t)),d=ws()-s,_={file:t,diagnostics:i.map(h=>YOe(t,r,h)),spans:l?.map(h=>m_(h,u))};this.event(_,o),this.addDiagnosticsPerformanceData(t,o,d)}catch(u){this.logError(u,o)}}updateErrorCheck(t,r,i,o=!0){if(r.length===0)return;C.assert(!this.suppressDiagnosticEvents);const s=this.changeSeq,l=Math.min(i,200);let u=0;const d=()=>{if(u++,r.length>u)return t.delay("checkOne",l,h)},_=(y,E)=>{if(this.semanticCheck(y,E),this.changeSeq===s){if(this.getPreferences(y).disableSuggestions)return d();t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,E),d()})}},h=()=>{if(this.changeSeq!==s)return;let y,E=r[u];if(Bo(E)?E=this.toPendingErrorCheck(E):"ranges"in E&&(y=E.ranges,E=this.toPendingErrorCheck(E.file)),!E)return d();const{fileName:A,project:R}=E;if(Nm(R),!!R.containsFile(A,o)&&(this.syntacticCheck(A,R),this.changeSeq===s)){if(R.projectService.serverMode!==0)return d();if(y)return t.immediate("regionSemanticCheck",()=>{const N=this.projectService.getScriptInfoForNormalizedPath(A);N&&this.regionSemanticCheck(A,R,y.map(P=>this.getRange({file:A,...P},N))),this.changeSeq===s&&t.immediate("semanticCheck",()=>_(A,R))});t.immediate("semanticCheck",()=>_(A,R))}};r.length>u&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(const i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Do(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){const{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const r=this.getProject(t.projectFileName),i=Ms(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){const o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=Un(ao(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Yt(l,u=>A8(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:c_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:JE(r),code:r.code,source:r.source,startLocation:r.file&&AC(ca(r.file,r.start)),endLocation:r.file&&AC(ca(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Yt(r.relatedInformation,ZX)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Un(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:c_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:JE(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Yt(i.relatedInformation,ZX)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&XOe(s,l))return Yc;const u=s.getScriptInfoForNormalizedPath(l),d=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(d,u):d.map(_=>YOe(l,s,_))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||Yc,o);return r?this.mapDefinitionInfo(l,o):l.map(uQ.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=r8e(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=C.checkDefined(o.getScriptInfo(i)),u=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!u||!u.definitions)return{definitions:Yc,textSpan:void 0};const d=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:_}=u;return r?{definitions:this.mapDefinitionInfo(d,o),textSpan:m_(_,l)}:{definitions:d.map(uQ.mapToOriginalLocation),textSpan:_}}findSourceDefinition(t){var r;const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s);let u=this.mapDefinitionInfoLocations(l||Yc,o).slice();if(this.projectService.serverMode===0&&(!vt(u,A=>Ms(A.fileName)!==i&&!A.isAmbient)||vt(u,A=>!!A.failedAliasResolution))){const A=r9(k=>k.textSpan.start,fJ(this.host.useCaseSensitiveFileNames));u?.forEach(k=>A.add(k));const R=o.getNoDtsResolutionProject(i),N=R.getLanguageService(),P=(r=N.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(k=>Ms(k.fileName)!==i);if(vt(P))for(const k of P){if(k.unverified){const F=y(k,o.getLanguageService().getProgram(),N.getProgram());if(vt(F)){for(const W of F)A.add(W);continue}}A.add(k)}else{const k=u.filter(F=>Ms(F.fileName)!==i&&F.isAmbient);for(const F of vt(k)?k:h()){const W=_(F.fileName,i,R);if(!W)continue;const G=this.projectService.getOrCreateScriptInfoNotOpenedByClient(W,R.currentDirectory,R.directoryStructureHost,!1);if(!G)continue;R.containsScriptInfo(G)||(R.addRoot(G),R.updateGraph());const j=N.getProgram(),J=C.checkDefined(j.getSourceFile(W));for(const Z of E(F.name,J,j))A.add(Z)}}u=Do(A.values())}return u=u.filter(A=>!A.isAmbient&&!A.failedAliasResolution),this.mapDefinitionInfo(u,o);function _(A,R,N){var P,k,F;const W=s4(A);if(W&&A.lastIndexOf(Pg)===W.topLevelNodeModulesIndex){const G=A.substring(0,W.packageRootIndex),j=(P=o.getModuleResolutionCache())==null?void 0:P.getPackageJsonInfoCache(),J=o.getCompilationSettings(),Z=uP(bo(G,o.getCurrentDirectory()),dP(j,o,J));if(!Z)return;const q=wU(Z,{moduleResolution:2},o,o.getModuleResolutionCache()),ve=A.substring(W.topLevelPackageNameIndex+1,W.packageRootIndex),oe=pP(Kw(ve)),K=o.toPath(A);if(q&&vt(q,fe=>o.toPath(fe)===K))return(k=N.resolutionCache.resolveSingleModuleNameWithoutWatching(oe,R).resolvedModule)==null?void 0:k.resolvedFileName;{const fe=A.substring(W.packageRootIndex+1),ue=`${oe}/${Au(fe)}`;return(F=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ue,R).resolvedModule)==null?void 0:F.resolvedFileName}}}function h(){const A=o.getLanguageService(),R=A.getProgram(),N=sp(R.getSourceFile(i),s);return(ds(N)||Je(N))&&Ys(N.parent)&&Tre(N,P=>{var k;if(P===N)return;const F=(k=A.getDefinitionAtPosition(i,P.getStart(),!0,!1))==null?void 0:k.filter(W=>Ms(W.fileName)!==i&&W.isAmbient).map(W=>({fileName:W.fileName,name:jf(N)}));if(vt(F))return F})||Yc}function y(A,R,N){var P;const k=N.getSourceFile(A.fileName);if(!k)return;const F=sp(R.getSourceFile(i),s),W=R.getTypeChecker().getSymbolAtLocation(F),G=W&&ll(W,277);if(!G)return;const j=((P=G.propertyName)==null?void 0:P.text)||G.name.text;return E(j,k,N)}function E(A,R,N){const P=Qs.Core.getTopMostDeclarationNamesInFile(A,R);return Ei(P,k=>{const F=N.getTypeChecker().getSymbolAtLocation(k),W=lM(k);if(F&&W)return vC.createDefinitionInfo(W,N.getTypeChecker(),F,W,!0)})}}getEmitOutput(t){const{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>A8(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(C.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){const o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Ml(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){const s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||Yc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=r8e(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||Yc,o);return r?l.map(({fileName:u,textSpan:d,contextSpan:_})=>this.toFileSpanWithContext(u,d,_,o)):l.map(uQ.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Yc:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Yc:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return Mlt(s,l)}getDocumentHighlights(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:u,highlightSpans:d})=>{const _=o.getScriptInfo(u);return{file:u,highlightSpans:d.map(({textSpan:h,kind:y,contextSpan:E})=>({...bhe(h,E,_),kind:y}))}}):l:Yc}provideInlayHints(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{const{position:u,displayParts:d}=l;return{...l,position:o.positionToLineOffset(u),displayParts:d?.map(({text:_,span:h,file:y})=>{if(h){C.assertIsDefined(y,"Target file should be defined together with its span.");const E=this.projectService.getScriptInfo(y);return{text:_,span:{start:E.positionToLineOffset(h.start),end:E.positionToLineOffset(h.start+h.length),file:y}}}else return{text:_}})}})}mapCode(t){var r;const i=this.getHostFormatOptions(),o=this.getHostPreferences(),{file:s,languageService:l}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=this.projectService.getScriptInfoForNormalizedPath(s),d=(r=t.mapping.focusLocations)==null?void 0:r.map(h=>h.map(y=>{const E=u.lineOffsetToPosition(y.start.line,y.start.offset),A=u.lineOffsetToPosition(y.end.line,y.end.offset);return{start:E,length:A-E}})),_=l.mapCode(s,t.mapping.contents,d,i,o);return this.mapTextChangesToCodeEdits(_)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,t.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(t,r,i,o,s){const{project:l}=this.getFileAndProjectWorker(t,r);return Nm(l),{configFileName:l.getProjectName(),languageServiceDisabled:!l.languageServiceEnabled,fileNames:i?l.getFileNames(!1,s):void 0,configuredProjectInfo:o?this.getDefaultConfiguredProjectInfo(t):void 0}}getDefaultConfiguredProjectInfo(t){var r;const i=this.projectService.getScriptInfo(t);if(!i)return;const o=this.projectService.findDefaultConfiguredProjectWorker(i,3);if(!o)return;let s,l;return o.seenProjects.forEach((u,d)=>{d!==o.defaultProject&&(u!==3?(s??(s=[])).push(Ms(d.getConfigFilePath())):(l??(l=[])).push(Ms(d.getConfigFilePath())))}),(r=o.seenConfigs)==null||r.forEach(u=>(s??(s=[])).push(u)),{notMatchedByConfig:s,notInProject:l,defaultProject:o.defaultProject&&Ms(o.defaultProject.getConfigFilePath())}}getRenameInfo(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){const l=this.getProject(t.projectFileName);l&&(o=[l])}else{const l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?Yc:(this.projectService.logErrorForScriptInfoNotFound(t.file),Ay.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=Un(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Ay.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return Ay.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=Ms(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),u=this.getPreferences(i),d=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,u),C.checkDefined(this.projectService.getScriptInfo(i)));if(!d.canRename)return r?{info:d,locs:[]}:[];const _=Ilt(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:d,locs:this.toSpanGroups(_)}:_}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:_}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:m_(_,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:d,..._}of t){let h=r.get(i);h||r.set(i,h={file:i,locs:[]});const y=C.checkDefined(this.projectService.getScriptInfo(i));h.locs.push({...bhe(o,s,y),..._})}return Do(r.values())}getReferences(t,r){const i=Ms(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=xlt(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;const u=this.getPreferences(i),d=this.getDefaultProject(t),_=d.getScriptInfoForNormalizedPath(i),h=d.getLanguageService().getQuickInfoAtPosition(i,s),y=h?KO(h.displayParts):"",E=h&&h.textSpan,A=E?_.positionToLineOffset(E.start).offset:0,R=E?_.getSnapshot().getText(E.start,Ml(E)):"";return{refs:fi(l,P=>P.references.map(k=>l8e(this.projectService,k,u))),symbolName:R,symbolStartOffset:A,symbolDisplayString:y}}getFileReferences(t,r){const i=this.getProjects(t),o=Ms(t.file),s=this.getPreferences(o),l={fileName:o,pos:0},u=vhe(i,this.getDefaultProject(t),l,l,e8e,h=>(this.logger.info(`Finding references to file ${o} in project ${h.getProjectName()}`),h.getLanguageService().getFileReferences(o)));let d;if(No(u))d=u;else{d=[];const h=eY(this.host.useCaseSensitiveFileNames);u.forEach(y=>{for(const E of y)h.has(E)||(d.push(E),h.add(E))})}return r?{refs:d.map(h=>l8e(this.projectService,h,s)),symbolName:`"${t.file}"`}:d}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){const i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){const i=Ms(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){const l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(u=>({textSpan:m_(u.textSpan,l),hintSpan:m_(u.hintSpan,l),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return s}getTodoComments(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?EC(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPreferences(i),u=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s),l.maximumHoverLength,t.verbosityLevel);if(!u)return;const d=!!l.displayPartsForJSDoc;if(r){const _=KO(u.displayParts);return{kind:u.kind,kindModifiers:u.kindModifiers,start:s.positionToLineOffset(u.textSpan.start),end:s.positionToLineOffset(Ml(u.textSpan)),displayString:_,documentation:d?this.mapDisplayParts(u.documentation,o):KO(u.documentation),tags:this.mapJSDocTagInfo(u.tags,o,d),canIncreaseVerbosityLevel:u.canIncreaseVerbosityLevel}}else return d?u:{...u,tags:this.mapJSDocTagInfo(u.tags,o,!1)}}getFormattingEditsForRange(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(u)return u.map(d=>this.convertTextChangeToCodeEdit(d,o))}getFormattingEditsForRangeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?EC(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?EC(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?EC(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),u=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===` `&&(!u||u.length===0||Slt(u,s))){const{lineText:d,absolutePosition:_}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(d&&d.search("\\S")<0){const h=i.getIndentationAtPosition(r,s,l);let y=0,E,A;for(E=0,A=d.length;E({start:o.positionToLineOffset(d.span.start),end:o.positionToLineOffset(Ml(d.span)),newText:d.newText?d.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,l,{...the(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const d=t.prefix||"",_=Ei(u.entries,y=>{if(u.isMemberCompletion||po(y.name.toLowerCase(),d.toLowerCase())){const E=y.replacementSpan?m_(y.replacementSpan,s):void 0;return{...y,replacementSpan:E,hasAction:y.hasAction||void 0,symbol:void 0}}});return r==="completions"?(u.metadata&&(_.metadata=u.metadata),_):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&m_(u.optionalReplacementSpan,s),entries:_}}getCompletionEntryDetails(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),d=!!this.getPreferences(i).displayPartsForJSDoc,_=Ei(t.entryNames,h=>{const{name:y,source:E,data:A}=typeof h=="string"?{name:h,source:void 0,data:void 0}:h;return o.getLanguageService().getCompletionEntryDetails(i,l,y,u,E,this.getPreferences(i),A?ma(A,Olt):void 0)});return r?d?_:_.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)})):_.map(h=>({...h,codeActions:Yt(h.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(h.documentation,o),tags:this.mapJSDocTagInfo(h.tags,o,d)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?Alt(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||sd(s.fileName)&&!Tlt(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!l.outFile}}):Yc}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||Ay.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,d,_)=>this.host.writeFile(u,d,_));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>A8(u,!0))}:!s}getSignatureHelpItems(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,l,t),d=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const _=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(_.start),end:s.positionToLineOffset(_.start+_.length)},items:this.mapSignatureHelpItems(u.items,o,d)}}else return d||!u?u:{...u,items:u.items.map(_=>({..._,tags:this.mapJSDocTagInfo(_.tags,o,!1)}))}}toPendingErrorCheck(t){const r=Ms(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);C.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,UE({span:{start:i,length:o-i},newText:t.insertString})))}reload(t){const r=Ms(t.file),i=t.tmpfile===void 0?void 0:Ms(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(r);o&&(this.changeSeq++,o.reloadFromFile(i))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=ya(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return Yt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>m_(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>m_(i,r)),nameSpan:t.nameSpan&&m_(t.nameSpan,r),childItems:Yt(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){const i=this.getFullNavigateToItems(t);return r?fi(i,({project:o,navigateToItems:s})=>s.map(l=>{const u=o.getScriptInfo(l.fileName),d={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:u.positionToLineOffset(l.textSpan.start),end:u.positionToLineOffset(Ml(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(d.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(d.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(d.containerKind=l.containerKind),d})):fi(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){C.assertIsDefined(t.file);const{file:E,project:A}=this.getFileAndProject(t);return[{project:A,navigateToItems:A.getLanguageService().getNavigateToItems(i,o,E)}]}const l=this.getHostPreferences(),u=[],d=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(E=>_(E));else{const E=this.getProjects(t);ZOe(E,void 0,A=>_(A))}return u;function _(E){const A=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=Un(A,N=>h(N)&&!tY(aL(N),E));R.length&&u.push({project:E,navigateToItems:R})}function h(E){const A=E.name;if(!d.has(A))return d.set(A,[E]),!0;const R=d.get(A);for(const N of R)if(y(N,E))return!1;return R.push(E),!0}function y(E,A){return E===A?!0:!E||!A?!1:E.containerKind===A.containerKind&&E.containerName===A.containerName&&E.fileName===A.fileName&&E.isCaseSensitive===A.isCaseSensitive&&E.kind===A.kind&&E.kindModifiers===A.kindModifiers&&E.matchKind===A.matchKind&&E.name===A.name&&E.textSpan.start===A.textSpan.start&&E.textSpan.length===A.textSpan.length}}getSupportedCodeFixes(t){if(!t)return yK();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||Ay.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),C.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions).map(l=>({...l,actions:l.actions.map(u=>({...u,range:u.range?{start:AC({line:u.range.start.line,character:u.range.start.offset}),end:AC({line:u.range.end.line,character:u.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){const{renameFilename:u,renameLocation:d,edits:_}=l;let h;if(u!==void 0&&d!==void 0){const y=o.getScriptInfoForNormalizedPath(Ms(u));h=The(yx(y.getSnapshot()),u,d,_)}return{renameLocation:h,renameFilename:u,edits:this.mapTextChangesToCodeEdits(_),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}preparePasteEdits(t){const{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().preparePasteEditsForFile(r,t.copiedTextSpan.map(o=>this.getRange({file:r,startLine:o.start.line,startOffset:o.start.offset,endLine:o.end.line,endOffset:o.end.offset},this.projectService.getScriptInfoForNormalizedPath(r))))}getPasteEdits(t){const{file:r,project:i}=this.getFileAndProject(t);if(iL(r))return;const o=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(l=>this.getRange({file:t.copiedFrom.file,startLine:l.start.line,startOffset:l.start.offset,endLine:l.end.line,endOffset:l.end.offset},i.getScriptInfoForNormalizedPath(Ms(t.copiedFrom.file))))}:void 0,s=i.getLanguageService().getPasteEdits({targetFile:r,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(l=>this.getRange({file:r,startLine:l.start.line,startOffset:l.start.offset,endLine:l.end.line,endOffset:l.end.offset},i.getScriptInfoForNormalizedPath(r))),copiedFrom:o,preferences:this.getPreferences(r)},this.getFormatOptions(r));return s&&this.mapPasteEditsAction(s)}organizeImports(t,r){C.assert(t.scope.type==="file");const{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){const i=Ms(t.oldFilePath),o=Ms(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,d=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(_=>{const h=_.getLanguageService().getEditsForFileRename(i,o,s,l),y=[];for(const E of h)u.has(E.fileName)||(d.push(E),y.push(E.fileName));for(const E of y)u.add(E)}),r?d.map(_=>this.mapTextChangeToCodeEdit(_)):d}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:u}=this.getStartAndEndPosition(t,s);let d;try{d=o.getLanguageService().getCodeFixesAtPosition(i,l,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(_){const h=_ instanceof Error?_:new Error(_),y=o.getLanguageService(),E=[...y.getSyntacticDiagnostics(i),...y.getSemanticDiagnostics(i),...y.getSuggestionDiagnostics(i)].filter(R=>F2(l,u-l,R.start,R.length)).map(R=>R.code),A=t.errorCodes.find(R=>!E.includes(R));throw A!==void 0&&(h.message+=` Additional information: BADCLIENT: Bad error code, ${A} not found in range ${l}..${u} (found: ${E.join(", ")})`),h}return r?d.map(_=>this.mapCodeFixAction(_)):d}getCombinedCodeFix({scope:t,fixId:r},i){C.assert(t.type==="file");const{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){const r=t.command;for(const i of rI(r)){const{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapPasteEditsAction({edits:t,fixId:r}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:r}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),C.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>Nlt(i,r))}:Llt(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,l);return u?r?u.map(d=>m_(d,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,void 0,!0);if(s)return;const l=o.filter(N=>!N.includes("lib.d.ts"));if(l.length===0)return;const u=[],d=[],_=[],h=[],y=Ms(i),E=this.projectService.ensureDefaultProjectForFile(y);for(const N of l)this.getCanonicalFileName(N)===this.getCanonicalFileName(i)?u.push(N):this.projectService.getScriptInfo(N).isScriptOpen()?d.push(N):sd(N)?h.push(N):_.push(N);const R=[...u,...d,..._,...h].map(N=>({fileName:N,project:E}));this.updateErrorCheck(t,R,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=C.checkDefined(this.projectService.getScriptInfo(o));return Yt(i,u=>{const d=this.getPosition(u,l),_=s.getSmartSelectionRange(o,d);return r?this.mapSelectionRange(_,l):_})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),u=o.toggleLineComment(i,l);if(r){const d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(_=>this.convertTextChangeToCodeEdit(_,d))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.toggleMultilineComment(i,l);if(r){const d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(_=>this.convertTextChangeToCodeEdit(_,d))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.commentSelection(i,l);if(r){const d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(_=>this.convertTextChangeToCodeEdit(_,d))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),u=o.uncommentSelection(i,l);if(r){const d=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(_=>this.convertTextChangeToCodeEdit(_,d))}return u}mapSelectionRange(t,r){const i={textSpan:m_(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=Ms(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Ay.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:m_(t.span,r),selectionSpan:m_(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>m_(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>m_(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&DJ(l,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){const r=this.host.useCaseSensitiveFileNames?t:ab(t);return ya(r)}exit(){}notRequired(t){return t&&this.doOutput(void 0,t.command,t.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(t){return{response:t,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){C.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){C.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r,i){const o=this.performanceData;try{return this.performanceData=i,this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t),this.performanceData=o}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t),void 0);return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${f0(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,void 0,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,u,d;this.gcTimer.scheduleCollect();let _;const h=this.performanceData;this.logger.hasLevel(2)&&(_=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${NP(this.toStringMessage(t))}`));let y,E;try{y=this.parseMessage(t),E=y.arguments&&y.arguments.file?y.arguments:void 0,(r=xr)==null||r.instant(xr.Phase.Session,"request",{seq:y.seq,command:y.command}),(i=xr)==null||i.push(xr.Phase.Session,"executeCommand",{seq:y.seq,command:y.command},!0);const{response:A,responseRequired:R,performanceData:N}=this.executeCommand(y);if((o=xr)==null||o.pop(),this.logger.hasLevel(2)){const P=blt(this.hrtime(_)).toFixed(4);R?this.logger.perftrc(`${y.seq}::${y.command}: elapsed time (in milliseconds) ${P}`):this.logger.perftrc(`${y.seq}::${y.command}: async elapsed time (in milliseconds) ${P}`)}(s=xr)==null||s.instant(xr.Phase.Session,"response",{seq:y.seq,command:y.command,success:!!A}),A?this.doOutput(A,y.command,y.seq,!0,N):R&&this.doOutput(void 0,y.command,y.seq,!1,N,"No content available.")}catch(A){if((l=xr)==null||l.popAll(),A instanceof RN){(u=xr)==null||u.instant(xr.Phase.Session,"commandCanceled",{seq:y?.seq,command:y?.command}),this.doOutput({canceled:!0},y.command,y.seq,!0,this.performanceData);return}this.logErrorWorker(A,this.toStringMessage(t),E),(d=xr)==null||d.instant(xr.Phase.Session,"commandError",{seq:y?.seq,command:y?.command,message:A.message}),this.doOutput(void 0,y?y.command:"unknown",y?y.seq:0,!1,this.performanceData,"Error processing request. "+A.message+` `+A.stack)}finally{this.performanceData=h}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function a8e(e){const t=e.diagnosticsDuration&&Do(e.diagnosticsDuration,([r,i])=>({...i,file:r}));return{...e,diagnosticsDuration:t}}function m_(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Ml(e))}}function bhe(e,t,r){const i=m_(e,r),o=t&&m_(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Nlt(e,t){return{start:s8e(t,e.span.start),end:s8e(t,Ml(e.span)),newText:e.newText}}function s8e(e,t){return fhe(e)?Plt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Mlt(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function Plt(e){return{line:e.line+1,offset:e.character+1}}function Llt(e){C.assert(e.textChanges.length===1);const t=Qa(e.textChanges);return C.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function The(e,t,r,i){const o=klt(e,t,i),{line:s,character:l}=zR(cI(o),r);return{line:s+1,offset:l+1}}function klt(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:l,span:{start:u,length:d}}=o[s];e=e.slice(0,u)+l+e.slice(u+d)}return e}function l8e(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=C.checkDefined(e.getScriptInfo(t)),d=bhe(r,i,u),_=l?void 0:wlt(u,d);return{file:t,...d,lineText:_,isWriteAccess:o,isDefinition:s}}function wlt(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Ml(r)).replace(/\r|\n/g,"")}function Olt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var IC=4,She=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(She||{}),Wlt=class{constructor(){this.goSubtree=!0,this.lineIndex=new I8,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new xC,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const i=I8.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(s=this.endBranch[u],u>0?o=this.endBranch[u-1]:o=this.branchNode);s&&o.remove(s);const l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let u=new Array(i.length-1),d=l;for(let y=1;y=0;){const y=this.startPath[_];u=y.insertAt(d,u),_--,d=y}let h=u.length;for(;h>0;){const y=new xC;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),h=u.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let d=this.startPath.length-2;d>=0;d--)this.startPath[d].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){const s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function u(d){return d.isLeaf()?new Uz(""):new xC}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=u(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=u(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=u(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},Flt=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return z2(xd(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},nY=class HA{constructor(){this.changes=[],this.versions=new Array(HA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%HA.maxVersions}currentVersionToIndex(){return this.currentVersion%HA.maxVersions}edit(t,r,i){this.changes.push(new Flt(t,r,i)),(this.changes.length>HA.changeNumberThreshold||r>HA.changeLengthThreshold||i&&i.length>HA.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new c8e(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=HA.maxVersions&&(this.minVersion=this.currentVersion-HA.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return xd(o,s)}getTextChangesBetweenVersions(t,r){if(t=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return ite(i)}else return;else return _F}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new HA,i=new c8e(0,r,new I8);r.versions[r.currentVersion]=i;const o=I8.linesFromText(t);return i.index.load(o.lines),r}};nY.changeNumberThreshold=8,nY.changeLengthThreshold=256,nY.maxVersions=8;var rY=nY,c8e=class cze{constructor(t,r,i,o=Yc){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof cze&&this.cache===t.cache)return this.version<=t.version?_F:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},I8=class fve{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const r=this.getLineCount();if(t<=r){const{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const r=[];for(let i=0;i0&&t{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const o={goSubtree:!0,done:!1,leaf(s,l,u){t(u,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return C.assert(r===0),i!==void 0?(this.load(fve.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new Wlt;let l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,l=!0}else if(r>0){const u=t+r,{zeroBasedColumn:d,lineText:_}=this.positionToColumnAndLineText(u);d===0&&(r+=_.length,i=i?i+_:_)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());C.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},xC=class mve{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){if(this.children.length===0)return;let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let u=r-(s-l);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){const u=this.children.length;if(or)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=C.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r;const i=this.children.length;t++;const o=t;if(t=0;E--)d[E].children.length===0&&d.pop()}l&&d.push(l),this.updateCounts();for(let h=0;h<_;h++)d[h].updateCounts();return d}}add(t){this.children.push(t),C.assert(this.children.length<=IC)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},Uz=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,r){r.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},d8e=class dze{constructor(t,r,i,o,s,l){this.telemetryEnabled=t,this.logger=r,this.host=i,this.globalTypingsCacheLocation=o,this.event=s,this.maxActiveRequestCount=l,this.activeRequestCount=0,this.requestQueue=E2(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return qb.validatePackageName(t)!==qb.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;const r={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((o,s)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){const o=Cme(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${f0(o)}`),this.activeRequestCount0?this.activeRequestCount--:C.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case bO:this.projectService.watchTypingLocations(t);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${f0(t)}`),this.installer.send(t)},dze.requestDelayMillis,`${t.projectName}::${t.kind}`)}};d8e.requestDelayMillis=100;var u8e=d8e,p8e={};x(p8e,{ActionInvalidate:()=>l7,ActionPackageInstalled:()=>c7,ActionSet:()=>s7,ActionWatchTypingLocations:()=>bO,Arguments:()=>Nq,AutoImportProviderProject:()=>Yme,AuxiliaryProject:()=>Kme,CharRangeSection:()=>She,CloseFileWatcherEvent:()=>HX,CommandNames:()=>$Oe,ConfigFileDiagEvent:()=>BX,ConfiguredProject:()=>$me,ConfiguredProjectLoadKind:()=>rhe,CreateDirectoryWatcherEvent:()=>UX,CreateFileWatcherEvent:()=>jX,Errors:()=>Ay,EventBeginInstallTypes:()=>Dq,EventEndInstallTypes:()=>Cq,EventInitializationFailed:()=>wle,EventTypesRegistry:()=>Rq,ExternalProject:()=>kX,GcTimer:()=>Ome,InferredProject:()=>Jme,LargeFileReferencedEvent:()=>zX,LineIndex:()=>I8,LineLeaf:()=>Uz,LineNode:()=>xC,LogLevel:()=>Rme,Msg:()=>Dme,OpenFileInfoTelemetryEvent:()=>Qme,Project:()=>Px,ProjectInfoTelemetryEvent:()=>VX,ProjectKind:()=>oL,ProjectLanguageServiceStateEvent:()=>GX,ProjectLoadingFinishEvent:()=>FX,ProjectLoadingStartEvent:()=>WX,ProjectService:()=>phe,ProjectsUpdatedInBackgroundEvent:()=>Gz,ScriptInfo:()=>Bme,ScriptVersionCache:()=>rY,Session:()=>o8e,TextStorage:()=>zme,ThrottledOperations:()=>wme,TypingsInstallerAdapter:()=>u8e,allFilesAreJsOrDts:()=>Ume,allRootFilesAreJsOrDts:()=>jme,asNormalizedPath:()=>EOe,convertCompilerOptions:()=>Vz,convertFormatOptions:()=>EC,convertScriptKindName:()=>JX,convertTypeAcquisition:()=>ehe,convertUserPreferences:()=>the,convertWatchOptions:()=>E8,countEachFileTypes:()=>v8,createInstallTypingsRequest:()=>Cme,createModuleSpecifierCache:()=>hhe,createNormalizedPathMap:()=>AOe,createPackageJsonCache:()=>_he,createSortedArray:()=>kme,emptyArray:()=>Yc,findArgument:()=>Axe,formatDiagnosticToProtocol:()=>A8,formatMessage:()=>ghe,getBaseConfigFileName:()=>LX,getDetailWatchInfo:()=>$X,getLocationInNewDocument:()=>The,hasArgument:()=>Exe,hasNoTypeScriptSource:()=>Hme,indent:()=>NP,isBackgroundProject:()=>T8,isConfigFile:()=>fhe,isConfiguredProject:()=>Sv,isDynamicFileName:()=>iL,isExternalProject:()=>b8,isInferredProject:()=>SC,isInferredProjectName:()=>Nme,isProjectDeferredClose:()=>S8,makeAutoImportProviderProjectName:()=>Pme,makeAuxiliaryProjectName:()=>Lme,makeInferredProjectName:()=>Mme,maxFileSize:()=>OX,maxProgramSizeForNonTsFiles:()=>wX,normalizedPathToPath:()=>TC,nowString:()=>Ixe,nullCancellationToken:()=>KOe,nullTypingsInstaller:()=>jz,protocol:()=>Wme,scriptInfoIsContainedByBackgroundProject:()=>Gme,scriptInfoIsContainedByDeferredClosedProject:()=>Vme,stringifyIndented:()=>f0,toEvent:()=>yhe,toNormalizedPath:()=>Ms,tryConvertScriptKindName:()=>qX,typingsInstaller:()=>xme,updateProjectIfDirty:()=>Nm}),typeof console<"u"&&(C.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return CT},set exports(b){CT=b}});var d9e=CT.createClassifier,WTe=CT.createLanguageService,u9e=CT.displayPartsToString,p9e=CT.EndOfLineState,f9e=CT.flattenDiagnosticMessageText,m9e=CT.IndentStyle,hN=CT.ScriptKind,h9e=CT.ScriptTarget,_9e=CT.TokenClass,FTe=CT,g9e=Object.freeze({__proto__:null,EndOfLineState:p9e,IndentStyle:m9e,ScriptKind:hN,ScriptTarget:h9e,TokenClass:_9e,createClassifier:d9e,createLanguageService:WTe,displayPartsToString:u9e,flattenDiagnosticMessageText:f9e,typescript:FTe});const Ui={};Ui["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. ***************************************************************************** */ /// /// /// /// /// `,Ui["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. ***************************************************************************** */ /// /** * 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; type DecoratorMetadataObject = Record & object; type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; /** * 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; readonly metadata: DecoratorMetadata; } /** * 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 after static methods are defined but 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; readonly metadata: DecoratorMetadata; } /** * 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 after static methods are defined but 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; readonly metadata: DecoratorMetadata; } /** * 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 after static methods are defined but 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; readonly metadata: DecoratorMetadata; } /** * 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 immediately after the auto \`accessor\` being * decorated is initialized (regardless if the \`accessor\` is \`static\` or not). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * 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 { /** * 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 { /** * 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 immediately after the field being decorated * is initialized (regardless if the field is \`static\` or not). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } `,Ui["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. ***************************************************************************** */ /// declare type ClassDecorator = (target: TFunction) => TFunction | void; declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void; `,Ui["lib.dom.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. ***************************************************************************** */ /// ///////////////////////////// /// Window Async Iterable APIs ///////////////////////////// interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; } interface FileSystemDirectoryHandle { [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; keys(): FileSystemDirectoryHandleAsyncIterator; values(): FileSystemDirectoryHandleAsyncIterator; } interface ReadableStreamAsyncIterator extends AsyncIteratorObject { [Symbol.asyncIterator](): ReadableStreamAsyncIterator; } interface ReadableStream { [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; } `,Ui["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. ***************************************************************************** */ /// ///////////////////////////// /// Window APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; signal?: AbortSignal; } interface AddressErrors { addressLine?: string; city?: string; country?: string; dependentLocality?: string; organization?: string; phone?: string; postalCode?: string; recipient?: string; region?: string; sortingCode?: string; } 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 AudioDataCopyToOptions { format?: AudioSampleFormat; frameCount?: number; frameOffset?: number; planeIndex: number; } interface AudioDataInit { data: BufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; sampleRate: number; timestamp: number; transfer?: ArrayBuffer[]; } interface AudioDecoderConfig { codec: string; description?: AllowSharedBufferSource; numberOfChannels: number; sampleRate: number; } interface AudioDecoderInit { error: WebCodecsErrorCallback; output: AudioDataOutputCallback; } interface AudioDecoderSupport { config?: AudioDecoderConfig; supported?: boolean; } interface AudioEncoderConfig { bitrate?: number; bitrateMode?: BitrateMode; codec: string; numberOfChannels: number; opus?: OpusEncoderConfig; sampleRate: number; } interface AudioEncoderInit { error: WebCodecsErrorCallback; output: EncodedAudioChunkOutputCallback; } interface AudioEncoderSupport { config?: AudioEncoderConfig; supported?: boolean; } 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; processorOptions?: any; } interface AuthenticationExtensionsClientInputs { appid?: string; credProps?: boolean; credentialProtectionPolicy?: string; enforceCredentialProtectionPolicy?: boolean; hmacCreateSecret?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobInputs; minPinLength?: boolean; prf?: AuthenticationExtensionsPRFInputs; } interface AuthenticationExtensionsClientInputsJSON { appid?: string; credProps?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON; prf?: AuthenticationExtensionsPRFInputsJSON; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobOutputs; prf?: AuthenticationExtensionsPRFOutputs; } interface AuthenticationExtensionsLargeBlobInputs { read?: boolean; support?: string; write?: BufferSource; } interface AuthenticationExtensionsLargeBlobInputsJSON { read?: boolean; support?: string; write?: Base64URLString; } interface AuthenticationExtensionsLargeBlobOutputs { blob?: ArrayBuffer; supported?: boolean; written?: boolean; } interface AuthenticationExtensionsPRFInputs { eval?: AuthenticationExtensionsPRFValues; evalByCredential?: Record; } interface AuthenticationExtensionsPRFInputsJSON { eval?: AuthenticationExtensionsPRFValuesJSON; evalByCredential?: Record; } interface AuthenticationExtensionsPRFOutputs { enabled?: boolean; results?: AuthenticationExtensionsPRFValues; } interface AuthenticationExtensionsPRFValues { first: BufferSource; second?: BufferSource; } interface AuthenticationExtensionsPRFValuesJSON { first: Base64URLString; second?: Base64URLString; } interface AuthenticatorSelectionCriteria { authenticatorAttachment?: AuthenticatorAttachment; requireResidentKey?: boolean; residentKey?: ResidentKeyRequirement; userVerification?: UserVerificationRequirement; } interface AvcEncoderConfig { format?: AvcBitstreamFormat; } interface BiquadFilterOptions extends AudioNodeOptions { Q?: number; detune?: number; frequency?: number; gain?: number; type?: BiquadFilterType; } interface BlobEventInit extends EventInit { data: Blob; timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CSSMatrixComponentOptions { is2D?: boolean; } interface CSSNumericType { angle?: number; flex?: number; frequency?: number; length?: number; percent?: number; percentHint?: CSSNumericBaseType; resolution?: number; time?: number; } 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 CaretPositionFromPointOptions { shadowRoots?: ShadowRoot[]; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; contentVisibilityAuto?: boolean; opacityProperty?: boolean; visibilityProperty?: 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 ContentVisibilityAutoStateChangeEventInit extends EventInit { skipped?: boolean; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CookieChangeEventInit extends EventInit { changed?: CookieList; deleted?: CookieList; } interface CookieInit { domain?: string | null; expires?: DOMHighResTimeStamp | null; name: string; partitioned?: boolean; path?: string; sameSite?: CookieSameSite; value: string; } interface CookieListItem { name?: string; value?: string; } interface CookieStoreDeleteOptions { domain?: string | null; name: string; partitioned?: boolean; path?: string; } interface CookieStoreGetOptions { name?: string; url?: string; } 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 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 | CSSNumericValue | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface ElementCreationOptions { customElementRegistry?: CustomElementRegistry; is?: string; } interface ElementDefinitionOptions { extends?: string; } interface EncodedAudioChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; transfer?: ArrayBuffer[]; type: EncodedAudioChunkType; } interface EncodedAudioChunkMetadata { decoderConfig?: AudioDecoderConfig; } interface EncodedVideoChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; type: EncodedVideoChunkType; } interface EncodedVideoChunkMetadata { decoderConfig?: VideoDecoderConfig; } 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 FileSystemCreateWritableOptions { keepExistingData?: boolean; } 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; 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 GamepadEffectParameters { duration?: number; leftTrigger?: number; rightTrigger?: number; startDelay?: number; strongMagnitude?: number; weakMagnitude?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetComposedRangesOptions { shadowRoots?: ShadowRoot[]; } interface GetHTMLOptions { serializableShadowRoots?: boolean; shadowRoots?: ShadowRoot[]; } 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 ImageDecodeOptions { completeFramesOnly?: boolean; frameIndex?: number; } interface ImageDecodeResult { complete: boolean; image: VideoFrame; } interface ImageDecoderInit { colorSpaceConversion?: ColorSpaceConversion; data: ImageBufferSource; desiredHeight?: number; desiredWidth?: number; preferAnimation?: boolean; transfer?: ArrayBuffer[]; type: string; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportNodeOptions { customElementRegistry?: CustomElementRegistry; selfOnly?: boolean; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } 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 KeySystemTrackConfiguration { robustness?: 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; timeline?: AnimationTimeline | null; } 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 { keySystemAccess: MediaKeySystemAccess | null; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaCapabilitiesKeySystemConfiguration { audio?: KeySystemTrackConfiguration; distinctiveIdentifier?: MediaKeysRequirement; initDataType?: string; keySystem: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; video?: KeySystemTrackConfiguration; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration; 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 MediaKeysPolicy { minHdcpVersion?: 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 MediaSettingsRange { max?: number; min?: number; step?: 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[]; backgroundBlur?: 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; backgroundBlur?: 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; backgroundBlur?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; torch?: boolean; whiteBalanceMode?: string; width?: number; zoom?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; backgroundBlur?: 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 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 NotificationOptions { badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; lang?: string; requireInteraction?: boolean; silent?: boolean | null; tag?: string; } 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 OpusEncoderConfig { complexity?: number; format?: OpusBitstreamFormat; frameDuration?: number; packetlossperc?: number; usedtx?: boolean; useinbandfec?: boolean; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageRevealEventInit extends EventInit { viewTransition?: ViewTransition | null; } interface PageSwapEventInit extends EventInit { activation?: NavigationActivation | null; viewTransition?: ViewTransition | null; } 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 PayerErrors { email?: string; name?: string; phone?: string; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; shippingOptions?: PaymentShippingOption[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; paymentMethodErrors?: any; shippingAddressErrors?: AddressErrors; 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 PaymentOptions { requestPayerEmail?: boolean; requestPayerName?: boolean; requestPayerPhone?: boolean; requestShipping?: boolean; shippingType?: PaymentShippingType; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentShippingOption { amount: PaymentCurrencyAmount; id: string; label: string; selected?: boolean; } interface PaymentValidationErrors { error?: string; payer?: PayerErrors; shippingAddress?: AddressErrors; } 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 PhotoCapabilities { fillLightMode?: FillLightMode[]; imageHeight?: MediaSettingsRange; imageWidth?: MediaSettingsRange; redEyeReduction?: RedEyeReduction; } interface PhotoSettings { fillLightMode?: FillLightMode; imageHeight?: number; imageWidth?: number; redEyeReduction?: boolean; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PlaneLayout { offset: number; stride: number; } interface PointerEventInit extends MouseEventInit { altitudeAngle?: number; azimuthAngle?: number; 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 PointerLockOptions { unadjustedMovement?: boolean; } 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; reason?: any; } interface PropertyDefinition { inherits: boolean; initialValue?: string; name: string; syntax?: string; } 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 PublicKeyCredentialCreationOptionsJSON { attestation?: string; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: Base64URLString; excludeCredentials?: PublicKeyCredentialDescriptorJSON[]; extensions?: AuthenticationExtensionsClientInputsJSON; hints?: string[]; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntityJSON; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialDescriptorJSON { id: Base64URLString; transports?: string[]; type: string; } 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 PublicKeyCredentialRequestOptionsJSON { allowCredentials?: PublicKeyCredentialDescriptorJSON[]; challenge: Base64URLString; extensions?: AuthenticationExtensionsClientInputsJSON; hints?: string[]; rpId?: string; timeout?: number; userVerification?: string; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PublicKeyCredentialUserEntityJSON { displayName: string; id: Base64URLString; name: string; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: EpochTimeStamp | null; keys?: Record; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy { highWaterMark?: number; size?: QueuingStrategySize; } 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 extends RTCEncodedFrameMetadata { sequenceNumber?: number; } interface RTCEncodedFrameMetadata { contributingSources?: number[]; mimeType?: string; payloadType?: number; rtpTimestamp?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata { dependencies?: number[]; frameId?: number; height?: number; spatialIndex?: number; temporalIndex?: number; timestamp?: 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; bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; consentRequestsSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; packetsDiscardedOnSend?: number; packetsReceived?: number; packetsSent?: number; 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; fecBytesReceived?: number; fecPacketsDiscarded?: number; fecPacketsReceived?: number; fecSsrc?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesAssembledFromMultiplePackets?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; framesRendered?: number; freezeCount?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; jitterBufferMinimumDelay?: number; jitterBufferTargetDelay?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; pauseCount?: number; playoutId?: string; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; retransmittedBytesReceived?: number; retransmittedPacketsReceived?: number; rtxSsrc?: number; silentConcealedSamples?: number; totalAssemblyTime?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalFreezesDuration?: number; totalInterFrameDelay?: number; totalPausesDuration?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; trackIdentifier: string; } interface RTCLocalIceCandidateInit extends RTCIceCandidateInit { } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { active?: boolean; firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; mid?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationDurations?: Record; qualityLimitationReason?: RTCQualityLimitationReason; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; scalabilityMode?: 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; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodec[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodec { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } interface RTCRtpCodecParameters extends RTCRtpCodec { payloadType: number; } 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 RTCSetParameterOptions { } 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; dtlsRole?: RTCDtlsRole; dtlsState: RTCDtlsTransportState; iceLocalUsernameFragment?: string; iceRole?: RTCIceRole; iceState?: RTCIceTransportState; localCertificateId?: string; packetsReceived?: number; packetsSent?: number; remoteCertificateId?: string; selectedCandidatePairChanges?: number; 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 ReadableStreamIteratorOptions { /** * Asynchronously iterates over the chunks in the stream's internal queue. * * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. * * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. */ preventCancel?: boolean; } interface ReadableStreamReadDoneResult { done: true; value: T | undefined; } interface ReadableStreamReadValueResult { done: false; value: T; } interface ReadableWritablePair { readable: ReadableStream; /** * 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; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface ReportingObserverOptions { buffered?: boolean; types?: string[]; } 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; priority?: RequestPriority; /** 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 { clonable?: boolean; customElementRegistry?: CustomElementRegistry; delegatesFocus?: boolean; mode: ShadowRootMode; serializable?: boolean; 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 StartViewTransitionOptions { types?: string[] | null; update?: ViewTransitionUpdateCallback | null; } 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 ToggleEventInit extends EventInit { newState?: string; oldState?: string; } 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 { flush?: TransformerFlushCallback; readableType?: undefined; start?: TransformerStartCallback; transform?: TransformerTransformCallback; 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; start?: (controller: ReadableByteStreamController) => any; type: "bytes"; } interface UnderlyingDefaultSource { cancel?: UnderlyingSourceCancelCallback; pull?: (controller: ReadableStreamDefaultController) => void | PromiseLike; start?: (controller: ReadableStreamDefaultController) => any; type?: undefined; } interface UnderlyingSink { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback; } interface UnderlyingSource { autoAllocateChunkSize?: number; cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback; start?: UnderlyingSourceStartCallback; 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; hasAlphaChannel?: boolean; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface VideoDecoderConfig { codec: string; codedHeight?: number; codedWidth?: number; colorSpace?: VideoColorSpaceInit; description?: AllowSharedBufferSource; displayAspectHeight?: number; displayAspectWidth?: number; hardwareAcceleration?: HardwareAcceleration; optimizeForLatency?: boolean; } interface VideoDecoderInit { error: WebCodecsErrorCallback; output: VideoFrameOutputCallback; } interface VideoDecoderSupport { config?: VideoDecoderConfig; supported?: boolean; } interface VideoEncoderConfig { alpha?: AlphaOption; avc?: AvcEncoderConfig; bitrate?: number; bitrateMode?: VideoEncoderBitrateMode; codec: string; contentHint?: string; displayHeight?: number; displayWidth?: number; framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; } interface VideoEncoderEncodeOptions { avc?: VideoEncoderEncodeOptionsForAvc; keyFrame?: boolean; } interface VideoEncoderEncodeOptionsForAvc { quantizer?: number | null; } interface VideoEncoderInit { error: WebCodecsErrorCallback; output: EncodedVideoChunkOutputCallback; } interface VideoEncoderSupport { config?: VideoEncoderConfig; supported?: boolean; } interface VideoFrameBufferInit { codedHeight: number; codedWidth: number; colorSpace?: VideoColorSpaceInit; displayHeight?: number; displayWidth?: number; duration?: number; format: VideoPixelFormat; layout?: PlaneLayout[]; timestamp: number; visibleRect?: DOMRectInit; } interface VideoFrameCallbackMetadata { captureTime?: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp; height: number; mediaTime: number; presentationTime: DOMHighResTimeStamp; presentedFrames: number; processingDuration?: number; receiveTime?: DOMHighResTimeStamp; rtpTimestamp?: number; width: number; } interface VideoFrameCopyToOptions { colorSpace?: PredefinedColorSpace; format?: VideoPixelFormat; layout?: PlaneLayout[]; rect?: DOMRectInit; } interface VideoFrameInit { alpha?: AlphaOption; displayHeight?: number; displayWidth?: number; duration?: number; timestamp?: number; visibleRect?: DOMRectInit; } 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 WebTransportCloseInfo { closeCode?: number; reason?: string; } interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; } interface WebTransportHash { algorithm?: string; value?: BufferSource; } interface WebTransportOptions { allowPooling?: boolean; congestionControl?: WebTransportCongestionControl; requireUnreliable?: boolean; serverCertificateHashes?: WebTransportHash[]; } interface WebTransportSendOptions { sendOrder?: number; } interface WebTransportSendStreamOptions extends WebTransportSendOptions { } 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; } interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; size?: number | null; type: WriteCommandType; } 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) */ interface ANGLE_instanced_arrays { /** * The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; /** * The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; /** * The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } interface ARIAMixin { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaActiveDescendantElement) */ ariaActiveDescendantElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ ariaAtomic: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ ariaAutoComplete: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */ ariaBrailleLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */ ariaBrailleRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ ariaBusy: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ ariaChecked: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ ariaColCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ ariaColIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) */ ariaColIndexText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ ariaColSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaControlsElements) */ ariaControlsElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ ariaCurrent: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements) */ ariaDescribedByElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ ariaDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDetailsElements) */ ariaDetailsElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ ariaDisabled: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaErrorMessageElements) */ ariaErrorMessageElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ ariaExpanded: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaFlowToElements) */ ariaFlowToElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ ariaHasPopup: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ ariaHidden: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */ ariaInvalid: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ ariaKeyShortcuts: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ ariaLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements) */ ariaLabelledByElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ ariaLevel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ ariaLive: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ ariaModal: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ ariaMultiLine: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ ariaMultiSelectable: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ ariaOrientation: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOwnsElements) */ ariaOwnsElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ ariaPlaceholder: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ ariaPosInSet: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ ariaPressed: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ ariaReadOnly: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRelevant) */ ariaRelevant: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ ariaRequired: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ ariaRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ ariaRowCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ ariaRowIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) */ ariaRowIndexText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ ariaRowSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ ariaSelected: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ ariaSetSize: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ ariaSort: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ ariaValueMax: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ ariaValueMin: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ ariaValueNow: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ ariaValueText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/role) */ role: string | null; } /** * The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) */ interface AbortController { /** * The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) */ readonly signal: AbortSignal; /** * The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** * The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) */ interface AbortSignal extends EventTarget { /** * The **\`aborted\`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (\`true\`) or not (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) */ readonly aborted: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ onabort: ((this: AbortSignal, ev: Event) => any) | null; /** * The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ readonly reason: any; /** * The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ throwIfAborted(): void; addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; /** * The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; /** * The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ any(signals: AbortSignal[]): AbortSignal; /** * The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; /** * The **\`AbstractRange\`** abstract interface is the base class upon which all DOM range types are defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ interface AbstractRange { /** * The read-only **\`collapsed\`** property of the AbstractRange interface returns \`true\` if the range's start position and end position are the same. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) */ readonly collapsed: boolean; /** * The read-only **\`endContainer\`** property of the AbstractRange interface returns the Node in which the end of the range is located. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) */ readonly endContainer: Node; /** * The **\`endOffset\`** property of the AbstractRange interface returns the offset into the end node of the range's end position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) */ readonly endOffset: number; /** * The read-only **\`startContainer\`** property of the AbstractRange interface returns the start Node for the range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) */ readonly startContainer: Node; /** * The read-only **\`startOffset\`** property of the AbstractRange interface returns the offset into the start node of the range's start position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) */ readonly startOffset: number; } declare var AbstractRange: { prototype: AbstractRange; new(): AbstractRange; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null; addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** * The **\`AnalyserNode\`** interface represents a node able to provide real-time frequency and time-domain analysis information. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) */ interface AnalyserNode extends AudioNode { /** * The **\`fftSize\`** property of the AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ fftSize: number; /** * The **\`frequencyBinCount\`** read-only property of the AnalyserNode interface contains the total number of data points available to AudioContext BaseAudioContext.sampleRate. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ readonly frequencyBinCount: number; /** * The **\`maxDecibels\`** property of the AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using \`getByteFrequencyData()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ maxDecibels: number; /** * The **\`minDecibels\`** property of the AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using \`getByteFrequencyData()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ minDecibels: number; /** * The **\`smoothingTimeConstant\`** property of the AnalyserNode interface is a double value representing the averaging constant with the last analysis frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ smoothingTimeConstant: number; /** * The **\`getByteFrequencyData()\`** method of the AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ getByteFrequencyData(array: Uint8Array): void; /** * The **\`getByteTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ getByteTimeDomainData(array: Uint8Array): void; /** * The **\`getFloatFrequencyData()\`** method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ getFloatFrequencyData(array: Float32Array): void; /** * The **\`getFloatTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; "remove": AnimationPlaybackEvent; } /** * The **\`Animation\`** interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ interface Animation extends EventTarget { /** * The **\`Animation.currentTime\`** property of the Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ currentTime: CSSNumberish | null; /** * The **\`Animation.effect\`** property of the Web Animations API gets and sets the target effect of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ effect: AnimationEffect | null; /** * The **\`Animation.finished\`** read-only property of the Web Animations API returns a Promise which resolves once the animation has finished playing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ readonly finished: Promise; /** * The **\`Animation.id\`** property of the Web Animations API returns or sets a string used to identify the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** * The read-only **\`Animation.pending\`** property of the Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ readonly pending: boolean; /** * The read-only **\`Animation.playState\`** property of the Web Animations API returns an enumerated value describing the playback state of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ readonly playState: AnimationPlayState; /** * The **\`Animation.playbackRate\`** property of the Web Animations API returns or sets the playback rate of the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ playbackRate: number; /** * The read-only **\`Animation.ready\`** property of the Web Animations API returns a Promise which resolves when the animation is ready to play. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ readonly ready: Promise; /** * The read-only **\`Animation.replaceState\`** property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ readonly replaceState: AnimationReplaceState; /** * The **\`Animation.startTime\`** property of the Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation's playback should begin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ startTime: CSSNumberish | null; /** * The **\`Animation.timeline\`** property of the Animation interface returns or sets the AnimationTimeline associated with this animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ timeline: AnimationTimeline | null; /** * The Web Animations API's **\`cancel()\`** method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ cancel(): void; /** * The \`commitStyles()\` method of the Web Animations API's Animation interface writes the computed values of the animation's current styles into its target element's \`style\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ commitStyles(): void; /** * The **\`finish()\`** method of the Web Animations API's Animation Interface sets the current playback time to the end of the animation corresponding to the current playback direction. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ finish(): void; /** * The **\`pause()\`** method of the Web Animations API's Animation interface suspends playback of the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ pause(): void; /** * The \`persist()\` method of the Web Animations API's Animation interface explicitly persists an animation, preventing it from being automatically removed when it is replaced by another animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ persist(): void; /** * The **\`play()\`** method of the Web Animations API's Animation Interface starts or resumes playing of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ play(): void; /** * The **\`Animation.reverse()\`** method of the Animation Interface reverses the playback direction, meaning the animation ends at its beginning. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ reverse(): void; /** * The **\`updatePlaybackRate()\`** method of the Web Animations API's synchronizing its playback position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ updatePlaybackRate(playbackRate: number): void; addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The \`AnimationEffect\` interface of the Web Animations API is an interface representing animation effects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ interface AnimationEffect { /** * The \`getComputedTiming()\` method of the AnimationEffect interface returns the calculated timing properties for this animation effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ getComputedTiming(): ComputedEffectTiming; /** * The \`AnimationEffect.getTiming()\` method of the AnimationEffect interface returns an object containing the timing properties for the Animation Effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ getTiming(): EffectTiming; /** * The \`updateTiming()\` method of the AnimationEffect interface updates the specified timing properties for an animation effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** * The **\`AnimationEvent\`** interface represents events providing information related to animations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { /** * The **\`AnimationEvent.animationName\`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ readonly animationName: string; /** * The **\`AnimationEvent.elapsedTime\`** read-only property is a \`float\` giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ readonly elapsedTime: number; /** * The **\`AnimationEvent.pseudoElement\`** read-only property is a string, starting with \`'::'\`, containing the name of the pseudo-element the animation runs on. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ readonly pseudoElement: string; } declare var AnimationEvent: { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; }; interface AnimationFrameProvider { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ cancelAnimationFrame(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ requestAnimationFrame(callback: FrameRequestCallback): number; } /** * The AnimationPlaybackEvent interface of the Web Animations API represents animation events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ interface AnimationPlaybackEvent extends Event { /** * The **\`currentTime\`** read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ readonly currentTime: CSSNumberish | null; /** * The **\`timelineTime\`** read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's AnimationTimeline at the moment the event is queued. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; }; /** * The \`AnimationTimeline\` interface of the Web Animations API represents the timeline of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ interface AnimationTimeline { /** * The **\`currentTime\`** read-only property of the Web Animations API's AnimationTimeline interface returns the timeline's current time in milliseconds, or \`null\` if the timeline is inactive. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** * The **\`Attr\`** interface represents one of an element's attributes as an object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) */ interface Attr extends Node { /** * The read-only **\`localName\`** property of the Attr interface returns the _local part_ of the _qualified name_ of an attribute, that is the name of the attribute, stripped from any namespace in front of it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ readonly localName: string; /** * The read-only **\`name\`** property of the Attr interface returns the _qualified name_ of an attribute, that is the name of the attribute, with the namespace prefix, if any, in front of it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ readonly name: string; /** * The read-only **\`namespaceURI\`** property of the Attr interface returns the namespace URI of the attribute, or \`null\` if the element is not in a namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ readonly namespaceURI: string | null; readonly ownerDocument: Document; /** * The read-only **\`ownerElement\`** property of the Attr interface returns the Element the attribute belongs to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ readonly ownerElement: Element | null; /** * The read-only **\`prefix\`** property of the Attr returns the namespace prefix of the attribute, or \`null\` if no prefix is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ readonly prefix: string | null; /** * The read-only **\`specified\`** property of the Attr interface always returns \`true\`. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) */ readonly specified: boolean; /** * The **\`value\`** property of the Attr interface contains the value of the attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ value: string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); } declare var Attr: { prototype: Attr; new(): Attr; }; /** * The **\`AudioBuffer\`** interface represents a short audio asset residing in memory, created from an audio file using the BaseAudioContext/decodeAudioData method, or from raw data using BaseAudioContext/createBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) */ interface AudioBuffer { /** * The **\`duration\`** property of the AudioBuffer interface returns a double representing the duration, in seconds, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ readonly duration: number; /** * The **\`length\`** property of the AudioBuffer interface returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ readonly length: number; /** * The \`numberOfChannels\` property of the AudioBuffer interface returns an integer representing the number of discrete audio channels described by the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ readonly numberOfChannels: number; /** * The **\`sampleRate\`** property of the AudioBuffer interface returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ readonly sampleRate: number; /** * The **\`copyFromChannel()\`** method of the channel of the \`AudioBuffer\` to a specified \`\`\`js-nolint copyFromChannel(destination, channelNumber, startInChannel) \`\`\` - \`destination\` - : A Float32Array to copy the channel's samples to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; /** * The \`copyToChannel()\` method of the AudioBuffer interface copies the samples to the specified channel of the \`AudioBuffer\`, from the source array. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; /** * The **\`getChannelData()\`** method of the AudioBuffer Interface returns a Float32Array containing the PCM data associated with the channel, defined by the channel parameter (with 0 representing the first channel). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** * The **\`AudioBufferSourceNode\`** interface is an AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { /** * The **\`buffer\`** property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ buffer: AudioBuffer | null; /** * The **\`detune\`** property of the representing detuning of oscillation in cents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ readonly detune: AudioParam; /** * The \`loop\` property of the AudioBufferSourceNode interface is a Boolean indicating if the audio asset must be replayed when the end of the AudioBuffer is reached. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ loop: boolean; /** * The \`loopEnd\` property of the AudioBufferSourceNode interface specifies is a floating point number specifying, in seconds, at what offset into playing the AudioBuffer playback should loop back to the time indicated by the AudioBufferSourceNode.loopStart property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ loopEnd: number; /** * The **\`loopStart\`** property of the AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ loopStart: number; /** * The **\`playbackRate\`** property of the AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ readonly playbackRate: AudioParam; /** * The \`start()\` method of the AudioBufferSourceNode Interface is used to schedule playback of the audio data contained in the buffer, or to begin playback immediately. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ start(when?: number, offset?: number, duration?: number): void; addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The \`AudioContext\` interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) */ interface AudioContext extends BaseAudioContext { /** * The **\`baseLatency\`** read-only property of the seconds of processing latency incurred by the \`AudioContext\` passing an audio buffer from the AudioDestinationNode — i.e., the end of the audio graph — into the host system's audio subsystem ready for playing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ readonly baseLatency: number; /** * The **\`outputLatency\`** read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ readonly outputLatency: number; /** * The \`close()\` method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ close(): Promise; /** * The \`createMediaElementSource()\` method of the AudioContext Interface is used to create a new MediaElementAudioSourceNode object, given an existing HTML audio or video element, the audio from which can then be played and manipulated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; /** * The \`createMediaStreamDestination()\` method of the AudioContext Interface is used to create a new MediaStreamAudioDestinationNode object associated with a WebRTC MediaStream representing an audio stream, which may be stored in a local file or sent to another computer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ createMediaStreamDestination(): MediaStreamAudioDestinationNode; /** * The \`createMediaStreamSource()\` method of the AudioContext Interface is used to create a new MediaStreamAudioSourceNode object, given a media stream (say, from a MediaDevices.getUserMedia instance), the audio from which can then be played and manipulated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; /** * The **\`getOutputTimestamp()\`** method of the containing two audio timestamp values relating to the current audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ getOutputTimestamp(): AudioTimestamp; /** * The **\`resume()\`** method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ resume(): Promise; /** * The \`suspend()\` method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ suspend(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`AudioData\`** interface of the WebCodecs API represents an audio sample. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */ interface AudioData { /** * The **\`duration\`** read-only property of the AudioData interface returns the duration in microseconds of this \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */ readonly duration: number; /** * The **\`format\`** read-only property of the AudioData interface returns the sample format of the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */ readonly format: AudioSampleFormat | null; /** * The **\`numberOfChannels\`** read-only property of the AudioData interface returns the number of channels in the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */ readonly numberOfChannels: number; /** * The **\`numberOfFrames\`** read-only property of the AudioData interface returns the number of frames in the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */ readonly numberOfFrames: number; /** * The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */ readonly sampleRate: number; /** * The **\`timestamp\`** read-only property of the AudioData interface returns the timestamp of this \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */ readonly timestamp: number; /** * The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */ allocationSize(options: AudioDataCopyToOptions): number; /** * The **\`clone()\`** method of the AudioData interface creates a new \`AudioData\` object with reference to the same media resource as the original. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */ clone(): AudioData; /** * The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */ close(): void; /** * The **\`copyTo()\`** method of the AudioData interface copies a plane of an \`AudioData\` object to a destination buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */ copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void; } declare var AudioData: { prototype: AudioData; new(init: AudioDataInit): AudioData; }; interface AudioDecoderEventMap { "dequeue": Event; } /** * The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder) */ interface AudioDecoder extends EventTarget { /** * The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */ readonly decodeQueueSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */ ondequeue: ((this: AudioDecoder, ev: Event) => any) | null; /** * The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */ readonly state: CodecState; /** * The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */ close(): void; /** * The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */ configure(config: AudioDecoderConfig): void; /** * The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */ decode(chunk: EncodedAudioChunk): void; /** * The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */ flush(): Promise; /** * The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */ reset(): void; addEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioDecoder: { prototype: AudioDecoder; new(init: AudioDecoderInit): AudioDecoder; /** * The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */ isConfigSupported(config: AudioDecoderConfig): Promise; }; /** * The \`AudioDestinationNode\` interface represents the end destination of an audio graph in a given context — usually the speakers of your device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) */ interface AudioDestinationNode extends AudioNode { /** * The \`maxChannelCount\` property of the AudioDestinationNode interface is an \`unsigned long\` defining the maximum amount of channels that the physical device can handle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; interface AudioEncoderEventMap { "dequeue": Event; } /** * The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder) */ interface AudioEncoder extends EventTarget { /** * The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */ readonly encodeQueueSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */ ondequeue: ((this: AudioEncoder, ev: Event) => any) | null; /** * The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */ readonly state: CodecState; /** * The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */ close(): void; /** * The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */ configure(config: AudioEncoderConfig): void; /** * The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */ encode(data: AudioData): void; /** * The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */ flush(): Promise; /** * The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */ reset(): void; addEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioEncoder: { prototype: AudioEncoder; new(init: AudioEncoderInit): AudioEncoder; /** * The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */ isConfigSupported(config: AudioEncoderConfig): Promise; }; /** * The \`AudioListener\` interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) */ interface AudioListener { /** * The \`forwardX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ readonly forwardX: AudioParam; /** * The \`forwardY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ readonly forwardY: AudioParam; /** * The \`forwardZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ readonly forwardZ: AudioParam; /** * The \`positionX\` read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ readonly positionX: AudioParam; /** * The \`positionY\` read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ readonly positionY: AudioParam; /** * The \`positionZ\` read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ readonly positionZ: AudioParam; /** * The \`upX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ readonly upX: AudioParam; /** * The \`upY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ readonly upY: AudioParam; /** * The \`upZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ readonly upZ: AudioParam; /** * The \`setOrientation()\` method of the AudioListener interface defines the orientation of the listener. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) */ setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; /** * The \`setPosition()\` method of the AudioListener Interface defines the position of the listener. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) */ setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; }; /** * The **\`AudioNode\`** interface is a generic interface for representing an audio processing module. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) */ interface AudioNode extends EventTarget { /** * The **\`channelCount\`** property of the AudioNode interface represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ channelCount: number; /** * The \`channelCountMode\` property of the AudioNode interface represents an enumerated value describing the way channels must be matched between the node's inputs and outputs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ channelCountMode: ChannelCountMode; /** * The **\`channelInterpretation\`** property of the AudioNode interface represents an enumerated value describing how input channels are mapped to output channels when the number of inputs/outputs is different. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ channelInterpretation: ChannelInterpretation; /** * The read-only \`context\` property of the the node is participating in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ readonly context: BaseAudioContext; /** * The \`numberOfInputs\` property of the AudioNode interface returns the number of inputs feeding the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ readonly numberOfInputs: number; /** * The \`numberOfOutputs\` property of the AudioNode interface returns the number of outputs coming out of the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ readonly numberOfOutputs: number; /** * The \`connect()\` method of the AudioNode interface lets you connect one of the node's outputs to a target, which may be either another \`AudioNode\` (thereby directing the sound data to the specified node) or an change the value of that parameter over time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; connect(destinationParam: AudioParam, output?: number): void; /** * The **\`disconnect()\`** method of the AudioNode interface lets you disconnect one or more nodes from the node on which the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ 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). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */ interface AudioParam { automationRate: AutomationRate; /** * The **\`defaultValue\`** read-only property of the AudioParam interface represents the initial value of the attributes as defined by the specific AudioNode creating the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ readonly defaultValue: number; /** * The **\`maxValue\`** read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ readonly maxValue: number; /** * The **\`minValue\`** read-only property of the AudioParam interface represents the minimum possible value for the parameter's nominal (effective) range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ readonly minValue: number; /** * The **\`value\`** property of the AudioParam interface gets or sets the value of this \`AudioParam\` at the current time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ value: number; /** * The **\`cancelAndHoldAtTime()\`** method of the \`AudioParam\` but holds its value at a given time until further changes are made using other methods. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ cancelAndHoldAtTime(cancelTime: number): AudioParam; /** * The \`cancelScheduledValues()\` method of the AudioParam Interface cancels all scheduled future changes to the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ cancelScheduledValues(cancelTime: number): AudioParam; /** * The **\`exponentialRampToValueAtTime()\`** method of the AudioParam Interface schedules a gradual exponential change in the value of the AudioParam. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; /** * The \`linearRampToValueAtTime()\` method of the AudioParam Interface schedules a gradual linear change in the value of the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ linearRampToValueAtTime(value: number, endTime: number): AudioParam; /** * The \`setTargetAtTime()\` method of the \`AudioParam\` value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; /** * The \`setValueAtTime()\` method of the \`AudioParam\` value at a precise time, as measured against \`\`\`js-nolint setValueAtTime(value, startTime) \`\`\` - \`value\` - : A floating point number representing the value the AudioParam will change to at the given time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ setValueAtTime(value: number, startTime: number): AudioParam; /** * The **\`setValueCurveAtTime()\`** method of the following a curve defined by a list of values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; }; /** * The **\`AudioParamMap\`** interface of the Web Audio API represents an iterable and read-only set of multiple audio parameters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } declare var AudioParamMap: { prototype: AudioParamMap; new(): AudioParamMap; }; /** * The \`AudioProcessingEvent\` interface of the Web Audio API represents 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) */ interface AudioProcessingEvent extends Event { /** * The **\`inputBuffer\`** read-only property of the AudioProcessingEvent interface represents the input buffer of an audio processing event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) */ readonly inputBuffer: AudioBuffer; /** * The **\`outputBuffer\`** read-only property of the AudioProcessingEvent interface represents the output buffer of an audio processing event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) */ readonly outputBuffer: AudioBuffer; /** * The **\`playbackTime\`** read-only property of the AudioProcessingEvent interface represents the time when the audio will be played. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) */ readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { "ended": Event; } /** * The \`AudioScheduledSourceNode\` interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ interface AudioScheduledSourceNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; /** * The \`start()\` method on AudioScheduledSourceNode schedules a sound to begin playback at the specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ start(when?: number): void; /** * The \`stop()\` method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ stop(when?: number): void; addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`AudioWorklet\`** interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) */ interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": ErrorEvent; } /** * The **\`AudioWorkletNode\`** interface of the Web Audio API represents a base class for a user-defined AudioNode, which can be connected to an audio routing graph along with other nodes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) */ interface AudioWorkletNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null; /** * The read-only **\`parameters\`** property of the underlying AudioWorkletProcessor according to its getter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ readonly parameters: AudioParamMap; /** * The read-only **\`port\`** property of the associated AudioWorkletProcessor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ readonly port: MessagePort; addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`AuthenticatorAssertionResponse\`** interface of the Web Authentication API contains a digital signature from the private key of a particular WebAuthn credential. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { /** * The **\`authenticatorData\`** property of the AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ readonly authenticatorData: ArrayBuffer; /** * The **\`signature\`** read-only property of the object which is the signature of the authenticator for both the client data (AuthenticatorResponse.clientDataJSON). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ readonly signature: ArrayBuffer; /** * The **\`userHandle\`** read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object providing an opaque identifier for the given user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** * The **\`AuthenticatorAttestationResponse\`** interface of the Web Authentication API is the result of a WebAuthn credential registration. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { /** * The **\`attestationObject\`** property of the entire \`attestationObject\` with a private key that is stored in the authenticator when it is manufactured. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ readonly attestationObject: ArrayBuffer; /** * The **\`getAuthenticatorData()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the authenticator data contained within the AuthenticatorAttestationResponse.attestationObject property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ getAuthenticatorData(): ArrayBuffer; /** * The **\`getPublicKey()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the DER \`SubjectPublicKeyInfo\` of the new credential (see Subject Public Key Info), or \`null\` if this is not available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ getPublicKey(): ArrayBuffer | null; /** * The **\`getPublicKeyAlgorithm()\`** method of the AuthenticatorAttestationResponse interface returns a number that is equal to a COSE Algorithm Identifier, representing the cryptographic algorithm used for the new credential. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; /** * The **\`getTransports()\`** method of the AuthenticatorAttestationResponse interface returns an array of strings describing the different transports which may be used by the authenticator. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** * The **\`AuthenticatorResponse\`** interface of the Web Authentication API is the base interface for interfaces that provide a cryptographic root of trust for a key pair. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) */ interface AuthenticatorResponse { /** * The **\`clientDataJSON\`** property of the AuthenticatorResponse interface stores a JSON string in an An ArrayBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; /** * The **\`BarProp\`** interface of the Document Object Model represents the web browser user interface elements that are exposed to scripts in web pages. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ interface BarProp { /** * The **\`visible\`** read-only property of the BarProp interface returns \`true\` if the user interface element it represents is visible. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ readonly visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; }; interface BaseAudioContextEventMap { "statechange": Event; } /** * The \`BaseAudioContext\` interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ interface BaseAudioContext extends EventTarget { /** * The \`audioWorklet\` read-only property of the processing. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) */ readonly audioWorklet: AudioWorklet; /** * The \`currentTime\` read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ readonly currentTime: number; /** * The \`destination\` property of the BaseAudioContext interface returns an AudioDestinationNode representing the final destination of all audio in the context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ readonly destination: AudioDestinationNode; /** * The \`listener\` property of the BaseAudioContext interface returns an AudioListener object that can then be used for implementing 3D audio spatialization. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ readonly listener: AudioListener; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; /** * The \`sampleRate\` property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ readonly sampleRate: number; /** * The \`state\` read-only property of the BaseAudioContext interface returns the current state of the \`AudioContext\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ readonly state: AudioContextState; /** * The \`createAnalyser()\` method of the can be used to expose audio time and frequency data and create data visualizations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ createAnalyser(): AnalyserNode; /** * The \`createBiquadFilter()\` method of the BaseAudioContext interface creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter types. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ createBiquadFilter(): BiquadFilterNode; /** * The \`createBuffer()\` method of the BaseAudioContext Interface is used to create a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; /** * The \`createBufferSource()\` method of the BaseAudioContext Interface is used to create a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ createBufferSource(): AudioBufferSourceNode; /** * The \`createChannelMerger()\` method of the BaseAudioContext interface creates a ChannelMergerNode, which combines channels from multiple audio streams into a single audio stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ createChannelMerger(numberOfInputs?: number): ChannelMergerNode; /** * The \`createChannelSplitter()\` method of the BaseAudioContext Interface is used to create a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them separately. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; /** * The **\`createConstantSource()\`** property of the BaseAudioContext interface creates a outputs a monaural (one-channel) sound signal whose samples all have the same value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ createConstantSource(): ConstantSourceNode; /** * The \`createConvolver()\` method of the BaseAudioContext interface creates a ConvolverNode, which is commonly used to apply reverb effects to your audio. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ createConvolver(): ConvolverNode; /** * The \`createDelay()\` method of the which is used to delay the incoming audio signal by a certain amount of time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ createDelay(maxDelayTime?: number): DelayNode; /** * The \`createDynamicsCompressor()\` method of the BaseAudioContext Interface is used to create a DynamicsCompressorNode, which can be used to apply compression to an audio signal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ createDynamicsCompressor(): DynamicsCompressorNode; /** * The \`createGain()\` method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ createGain(): GainNode; /** * The **\`createIIRFilter()\`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; /** * The \`createOscillator()\` method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ createOscillator(): OscillatorNode; /** * The \`createPanner()\` method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ createPanner(): PannerNode; /** * The \`createPeriodicWave()\` method of the BaseAudioContext interface is used to create a PeriodicWave. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** * The \`createScriptProcessor()\` method of the BaseAudioContext interface creates a ScriptProcessorNode used for direct audio processing. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; /** * The \`createStereoPanner()\` method of the BaseAudioContext interface creates a StereoPannerNode, which can be used to apply stereo panning to an audio source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ createStereoPanner(): StereoPannerNode; /** * The \`createWaveShaper()\` method of the BaseAudioContext interface creates a WaveShaperNode, which represents a non-linear distortion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ createWaveShaper(): WaveShaperNode; /** * The \`decodeAudioData()\` method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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 **\`BeforeUnloadEvent\`** interface represents the event object for the Window/beforeunload_event event, which is fired when the current window, contained document, and associated resources are about to be unloaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { /** * The **\`returnValue\`** property of the \`returnValue\` is initialized to an empty string (\`''\`) value. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue) */ returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** * The \`BiquadFilterNode\` interface represents a simple low-order filter, and is created using the BaseAudioContext/createBiquadFilter method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) */ interface BiquadFilterNode extends AudioNode { /** * The \`Q\` property of the BiquadFilterNode interface is an a-rate AudioParam, a double representing a Q factor, or _quality factor_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ readonly Q: AudioParam; /** * The \`detune\` property of the BiquadFilterNode interface is an a-rate AudioParam representing detuning of the frequency in cents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ readonly detune: AudioParam; /** * The \`frequency\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing a frequency in the current filtering algorithm measured in hertz (Hz). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ readonly frequency: AudioParam; /** * The \`gain\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing the gain used in the current filtering algorithm. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ readonly gain: AudioParam; /** * The \`type\` property of the BiquadFilterNode interface is a string (enum) value defining the kind of filtering algorithm the node is implementing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ type: BiquadFilterType; /** * The \`getFrequencyResponse()\` method of the BiquadFilterNode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; }; /** * The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) */ interface Blob { /** * The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ readonly size: number; /** * The **\`type\`** read-only property of the Blob interface returns the MIME type of the file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ readonly type: string; /** * The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; /** * The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */ bytes(): Promise>; /** * The **\`slice()\`** method of the Blob interface creates and returns a new \`Blob\` object which contains data from a subset of the blob on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** * The **\`stream()\`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the \`Blob\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ stream(): ReadableStream>; /** * The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; /** * The **\`BlobEvent\`** interface of the MediaStream Recording API represents events associated with a Blob. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ interface BlobEvent extends Event { /** * The **\`data\`** read-only property of the BlobEvent interface represents a Blob associated with the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ readonly data: Blob; /** * The **\`timecode\`** read-only property of the BlobEvent interface indicates the difference between the timestamp of the first chunk of data, and the timestamp of the first chunk in the first \`BlobEvent\` produced by this recorder. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { prototype: BlobEvent; new(type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ readonly body: ReadableStream> | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ readonly bodyUsed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ bytes(): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ json(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ text(): Promise; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** * The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ interface BroadcastChannel extends EventTarget { /** * The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** * The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) */ close(): void; /** * The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) */ postMessage(message: any): void; addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`ByteLengthQueuingStrategy\`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) */ interface ByteLengthQueuingStrategy extends QueuingStrategy { /** * The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** * The **\`CDATASection\`** interface represents a CDATA section that can be used within XML to include extended portions of unescaped text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; /** * The \`CSPViolationReportBody\` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody) */ interface CSPViolationReportBody extends ReportBody { /** * The **\`blockedURL\`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) */ readonly blockedURL: string | null; /** * The **\`columnNumber\`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) */ readonly columnNumber: number | null; /** * The **\`disposition\`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) */ readonly disposition: SecurityPolicyViolationEventDisposition; /** * The **\`documentURL\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) */ readonly documentURL: string; /** * The **\`effectiveDirective\`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) */ readonly effectiveDirective: string; /** * The **\`lineNumber\`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) */ readonly lineNumber: number | null; /** * The **\`originalPolicy\`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) */ readonly originalPolicy: string; /** * The **\`referrer\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) */ readonly referrer: string | null; /** * The **\`sample\`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) */ readonly sample: string | null; /** * The **\`sourceFile\`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) */ readonly sourceFile: string | null; /** * The **\`statusCode\`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) */ readonly statusCode: number; /** * The **\`toJSON()\`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the \`CSPViolationReportBody\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) */ toJSON(): any; } declare var CSPViolationReportBody: { prototype: CSPViolationReportBody; new(): CSPViolationReportBody; }; /** * The **\`CSSAnimation\`** interface of the Web Animations API represents an Animation object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ interface CSSAnimation extends Animation { /** * The **\`animationName\`** property of the specifies one or more keyframe at-rules which describe the animation applied to the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ readonly animationName: string; addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * An object implementing the **\`CSSConditionRule\`** interface represents a single condition CSS at-rule, which consists of a condition and a statement block. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) */ interface CSSConditionRule extends CSSGroupingRule { /** * The read-only **\`conditionText\`** property of the CSSConditionRule interface returns or sets the text of the CSS rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; /** * The **\`CSSContainerRule\`** interface represents a single CSS @container rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { /** * The read-only **\`containerName\`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ readonly containerName: string; /** * The read-only **\`containerQuery\`** property of the CSSContainerRule interface returns a string representing the container conditions that are evaluated when the container changes size in order to determine if the styles in the associated @container are applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ readonly containerQuery: string; } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; /** * The **\`CSSCounterStyleRule\`** interface represents an @counter-style at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ interface CSSCounterStyleRule extends CSSRule { /** * The **\`additiveSymbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/additive-symbols descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ additiveSymbols: string; /** * The **\`fallback\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/fallback descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ fallback: string; /** * The **\`name\`** property of the CSSCounterStyleRule interface gets and sets the <custom-ident> defined as the \`name\` for the associated rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ name: string; /** * The **\`negative\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/negative descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ negative: string; /** * The **\`pad\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/pad descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ pad: string; /** * The **\`prefix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/prefix descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ prefix: string; /** * The **\`range\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/range descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ range: string; /** * The **\`speakAs\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/speak-as descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ speakAs: string; /** * The **\`suffix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/suffix descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ suffix: string; /** * The **\`symbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/symbols descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ symbols: string; /** * The **\`system\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/system descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; /** * The **\`CSSFontFaceRule\`** interface represents an @font-face at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** * The read-only **\`style\`** property of the CSSFontFaceRule interface returns the style information from the @font-face at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; /** * The **\`CSSFontFeatureValuesRule\`** interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { /** * The **\`fontFamily\`** property of the CSSConditionRule interface represents the name of the font family it applies to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; /** * The **\`CSSFontPaletteValuesRule\`** interface represents an @font-palette-values at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ interface CSSFontPaletteValuesRule extends CSSRule { /** * The read-only **\`basePalette\`** property of the CSSFontPaletteValuesRule interface indicates the base palette associated with the rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ readonly basePalette: string; /** * The read-only **\`fontFamily\`** property of the CSSFontPaletteValuesRule interface lists the font families the rule can be applied to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ readonly fontFamily: string; /** * The read-only **\`name\`** property of the CSSFontPaletteValuesRule interface represents the name identifying the associated @font-palette-values at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ readonly name: string; /** * The read-only **\`overrideColors\`** property of the CSSFontPaletteValuesRule interface is a string containing a list of color index and color pair that are to be used instead. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** * The **\`CSSGroupingRule\`** interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) */ interface CSSGroupingRule extends CSSRule { /** * The **\`cssRules\`** property of the a collection of CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ readonly cssRules: CSSRuleList; /** * The **\`deleteRule()\`** method of the rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ deleteRule(index: number): void; /** * The **\`insertRule()\`** method of the \`\`\`js-nolint insertRule(rule) insertRule(rule, index) \`\`\` - \`rule\` - : A string - \`index\` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; /** * The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ interface CSSImageValue extends CSSStyleValue { } declare var CSSImageValue: { prototype: CSSImageValue; new(): CSSImageValue; }; /** * The **\`CSSImportRule\`** interface represents an @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ interface CSSImportRule extends CSSRule { /** * The read-only **\`href\`** property of the The resolved URL will be the \`href\` attribute of the associated stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ readonly href: string; /** * The read-only **\`layerName\`** property of the CSSImportRule interface returns the name of the cascade layer created by the @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** * The read-only **\`media\`** property of the containing the value of the \`media\` attribute of the associated stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ get media(): MediaList; set media(mediaText: string); /** * The read-only **\`styleSheet\`** property of the in the form of a CSSStyleSheet object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** * The read-only **\`supportsText\`** property of the CSSImportRule interface returns the supports condition specified by the @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ readonly supportsText: string | null; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** * The **\`CSSKeyframeRule\`** interface describes an object representing a set of styles for a given keyframe. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) */ interface CSSKeyframeRule extends CSSRule { /** * The **\`keyText\`** property of the CSSKeyframeRule interface represents the keyframe selector as a comma-separated list of percentage values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** * The read-only **\`CSSKeyframeRule.style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSKeyframeRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** * The **\`CSSKeyframesRule\`** interface describes an object representing a complete set of keyframes for a CSS animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) */ interface CSSKeyframesRule extends CSSRule { /** * The read-only **\`cssRules\`** property of the CSSKeyframeRule interface returns a CSSRuleList containing the rules in the keyframes at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; /** * The read-only **\`length\`** property of the CSSKeyframeRule interface returns the number of CSSKeyframeRule objects in its list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */ readonly length: number; /** * The **\`name\`** property of the CSSKeyframeRule interface gets and sets the name of the animation as used by the animation-name property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; /** * The **\`appendRule()\`** method of the CSSKeyframeRule interface appends a CSSKeyFrameRule to the end of the rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ appendRule(rule: string): void; /** * The **\`deleteRule()\`** method of the CSSKeyframeRule interface deletes the CSSKeyFrameRule that matches the specified keyframe selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ deleteRule(select: string): void; /** * The **\`findRule()\`** method of the CSSKeyframeRule interface finds the CSSKeyFrameRule that matches the specified keyframe selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; }; /** * The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ interface CSSKeywordValue extends CSSStyleValue { /** * The **\`value\`** property of the \`CSSKeywordValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ value: string; } declare var CSSKeywordValue: { prototype: CSSKeywordValue; new(value: string): CSSKeywordValue; }; /** * The **\`CSSLayerBlockRule\`** represents a @layer block rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ interface CSSLayerBlockRule extends CSSGroupingRule { /** * The read-only **\`name\`** property of the CSSLayerBlockRule interface represents the name of the associated cascade layer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; /** * The **\`CSSLayerStatementRule\`** represents a @layer statement rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ interface CSSLayerStatementRule extends CSSRule { /** * The read-only **\`nameList\`** property of the CSSLayerStatementRule interface return the list of associated cascade layer names. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ readonly nameList: ReadonlyArray; } declare var CSSLayerStatementRule: { prototype: CSSLayerStatementRule; new(): CSSLayerStatementRule; }; interface CSSMathClamp extends CSSMathValue { readonly lower: CSSNumericValue; readonly upper: CSSNumericValue; readonly value: CSSNumericValue; } declare var CSSMathClamp: { prototype: CSSMathClamp; new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; }; /** * The **\`CSSMathInvert\`** interface of the CSS Typed Object Model API represents a CSS calc used as \`calc(1 / )\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ interface CSSMathInvert extends CSSMathValue { /** * The CSSMathInvert.value read-only property of the A CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ readonly value: CSSNumericValue; } declare var CSSMathInvert: { prototype: CSSMathInvert; new(arg: CSSNumberish): CSSMathInvert; }; /** * The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ interface CSSMathMax extends CSSMathValue { /** * The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ readonly values: CSSNumericArray; } declare var CSSMathMax: { prototype: CSSMathMax; new(...args: CSSNumberish[]): CSSMathMax; }; /** * The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ interface CSSMathMin extends CSSMathValue { /** * The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ readonly values: CSSNumericArray; } declare var CSSMathMin: { prototype: CSSMathMin; new(...args: CSSNumberish[]): CSSMathMin; }; /** * The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ interface CSSMathNegate extends CSSMathValue { /** * The CSSMathNegate.value read-only property of the A CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ readonly value: CSSNumericValue; } declare var CSSMathNegate: { prototype: CSSMathNegate; new(arg: CSSNumberish): CSSMathNegate; }; /** * The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ interface CSSMathProduct extends CSSMathValue { /** * The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ readonly values: CSSNumericArray; } declare var CSSMathProduct: { prototype: CSSMathProduct; new(...args: CSSNumberish[]): CSSMathProduct; }; /** * The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ interface CSSMathSum extends CSSMathValue { /** * The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ readonly values: CSSNumericArray; } declare var CSSMathSum: { prototype: CSSMathSum; new(...args: CSSNumberish[]): CSSMathSum; }; /** * The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ interface CSSMathValue extends CSSNumericValue { /** * The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ readonly operator: CSSMathOperator; } declare var CSSMathValue: { prototype: CSSMathValue; new(): CSSMathValue; }; /** * The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ interface CSSMatrixComponent extends CSSTransformComponent { /** * The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ matrix: DOMMatrix; } declare var CSSMatrixComponent: { prototype: CSSMatrixComponent; new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; }; /** * The **\`CSSMediaRule\`** interface represents a single CSS @media rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) */ interface CSSMediaRule extends CSSConditionRule { /** * The read-only **\`media\`** property of the destination medium for style information. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ get media(): MediaList; set media(mediaText: string); } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** * The **\`CSSNamespaceRule\`** interface describes an object representing a single CSS @namespace at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) */ interface CSSNamespaceRule extends CSSRule { /** * The read-only **\`namespaceURI\`** property of the CSSNamespaceRule returns a string containing the text of the URI of the given namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ readonly namespaceURI: string; /** * The read-only **\`prefix\`** property of the CSSNamespaceRule returns a string with the name of the prefix associated to this namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** * The **\`CSSNestedDeclarations\`** interface of the CSS Rule API is used to group nested CSSRules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations) */ interface CSSNestedDeclarations extends CSSRule { /** * The read-only **\`style\`** property of the CSSNestedDeclarations interface represents the styles associated with the nested rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSNestedDeclarations: { prototype: CSSNestedDeclarations; new(): CSSNestedDeclarations; }; /** * The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** * The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ readonly length: number; forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; [index: number]: CSSNumericValue; } declare var CSSNumericArray: { prototype: CSSNumericArray; new(): CSSNumericArray; }; /** * The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ interface CSSNumericValue extends CSSStyleValue { /** * The **\`add()\`** method of the \`CSSNumericValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ add(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`div()\`** method of the supplied value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ div(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`equals()\`** method of the value are strictly equal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ equals(...value: CSSNumberish[]): boolean; /** * The **\`max()\`** method of the passed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ max(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`min()\`** method of the values passed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ min(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`mul()\`** method of the the supplied value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ mul(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`sub()\`** method of the \`CSSNumericValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ sub(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`to()\`** method of the another. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ to(unit: string): CSSUnitValue; /** * The **\`toSum()\`** method of the \`\`\`js-nolint toSum(units) \`\`\` - \`units\` - : The units to convert to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ toSum(...units: string[]): CSSMathSum; /** * The **\`type()\`** method of the \`CSSNumericValue\`, one of \`angle\`, \`flex\`, \`frequency\`, \`length\`, \`resolution\`, \`percent\`, \`percentHint\`, or \`time\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ type(): CSSNumericType; } declare var CSSNumericValue: { prototype: CSSNumericValue; new(): CSSNumericValue; /** * The **\`parse()\`** static method of the members are value and the units. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ parse(cssText: string): CSSNumericValue; }; /** * **\`CSSPageRule\`** represents a single CSS @page rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) */ interface CSSPageRule extends CSSGroupingRule { /** * The **\`selectorText\`** property of the CSSPageRule interface gets and sets the selectors associated with the \`CSSPageRule\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** * The **\`style\`** read-only property of the CSSPageRule interface returns a CSSPageDescriptors object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** * The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ interface CSSPerspective extends CSSTransformComponent { /** * The **\`length\`** property of the It is used to apply a perspective transform to the element and its content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ length: CSSPerspectiveValue; } declare var CSSPerspective: { prototype: CSSPerspective; new(length: CSSPerspectiveValue): CSSPerspective; }; /** * The **\`CSSPropertyRule\`** interface of the CSS Properties and Values API represents a single CSS @property rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ interface CSSPropertyRule extends CSSRule { /** * The read-only **\`inherits\`** property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the @property rule, a boolean describing whether or not the property inherits by default. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ readonly inherits: boolean; /** * The read-only **\`initialValue\`** nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the @property rule, controlling the property's initial value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ readonly initialValue: string | null; /** * The read-only **\`name\`** property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the @property rule's prelude. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ readonly name: string; /** * The read-only **\`syntax\`** property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the @property rule, controlling how the property's value is parsed at computed-value time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ readonly syntax: string; } declare var CSSPropertyRule: { prototype: CSSPropertyRule; new(): CSSPropertyRule; }; /** * The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ interface CSSRotate extends CSSTransformComponent { /** * The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ angle: CSSNumericValue; /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ x: CSSNumberish; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ y: CSSNumberish; /** * The **\`z\`** property of the vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ z: CSSNumberish; } declare var CSSRotate: { prototype: CSSRotate; new(angle: CSSNumericValue): CSSRotate; new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; }; /** * The **\`CSSRule\`** interface represents a single CSS rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) */ interface CSSRule { /** * The **\`cssText\`** property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ cssText: string; /** * The **\`parentRule\`** property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ readonly parentRule: CSSRule | null; /** * The **\`parentStyleSheet\`** property of the the current rule is defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ readonly parentStyleSheet: CSSStyleSheet | null; /** * The read-only **\`type\`** property of the indicating which type of rule the CSSRule represents. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) */ 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; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; } 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; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; }; /** * A \`CSSRuleList\` represents an ordered collection of read-only CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ interface CSSRuleList { /** * The **\`length\`** property of the CSSRuleList interface returns the number of CSSRule objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ readonly length: number; /** * The **\`item()\`** method of the CSSRuleList interface returns the CSSRule object at the specified \`index\` or \`null\` if the specified \`index\` doesn't exist. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ item(index: number): CSSRule | null; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; }; /** * The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ interface CSSScale extends CSSTransformComponent { /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ x: CSSNumberish; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ y: CSSNumberish; /** * The **\`z\`** property of the vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ z: CSSNumberish; } declare var CSSScale: { prototype: CSSScale; new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; /** * The **\`CSSScopeRule\`** interface of the CSS Object Model represents a CSS @scope at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule) */ interface CSSScopeRule extends CSSGroupingRule { /** * The **\`end\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope limit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end) */ readonly end: string | null; /** * The **\`start\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start) */ readonly start: string | null; } declare var CSSScopeRule: { prototype: CSSScopeRule; new(): CSSScopeRule; }; /** * The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { /** * The **\`ax\`** property of the along the x-axis (or abscissa). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ ax: CSSNumericValue; /** * The **\`ay\`** property of the along the y-axis (or ordinate). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ ay: CSSNumericValue; } declare var CSSSkew: { prototype: CSSSkew; new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; }; /** * The **\`CSSSkewX\`** interface of the CSS Typed Object Model API represents the \`skewX()\` value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ interface CSSSkewX extends CSSTransformComponent { /** * The **\`ax\`** property of the along the x-axis (or abscissa). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ ax: CSSNumericValue; } declare var CSSSkewX: { prototype: CSSSkewX; new(ax: CSSNumericValue): CSSSkewX; }; /** * The **\`CSSSkewY\`** interface of the CSS Typed Object Model API represents the \`skewY()\` value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ interface CSSSkewY extends CSSTransformComponent { /** * The **\`ay\`** property of the along the y-axis (or ordinate). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ ay: CSSNumericValue; } declare var CSSSkewY: { prototype: CSSSkewY; new(ay: CSSNumericValue): CSSSkewY; }; /** * The **\`CSSStartingStyleRule\`** interface of the CSS Object Model represents a CSS @starting-style at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */ interface CSSStartingStyleRule extends CSSGroupingRule { } declare var CSSStartingStyleRule: { prototype: CSSStartingStyleRule; new(): CSSStartingStyleRule; }; /** * The **\`CSSStyleDeclaration\`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ interface CSSStyleDeclaration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ alignContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ alignItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ alignSelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */ alignmentBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ all: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ animation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ animationComposition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ animationDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ animationDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ animationDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ animationFillMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ animationIterationCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ animationPlayState: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ animationTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ appearance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ aspectRatio: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ backdropFilter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ backfaceVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ background: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ backgroundAttachment: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ backgroundBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ backgroundClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ backgroundColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ backgroundImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ backgroundOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ backgroundPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ backgroundPositionX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ backgroundPositionY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ backgroundRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ backgroundSize: string; baselineShift: string; baselineSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ blockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ border: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ borderBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ borderBlockColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ borderBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ borderBlockEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ borderBlockEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ borderBlockEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ borderBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ borderBlockStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ borderBlockStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ borderBlockStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ borderBlockStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ borderBlockWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ borderBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ borderBottomColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ borderBottomLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ borderBottomRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ borderBottomStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ borderBottomWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ borderCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ borderColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ borderEndEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ borderEndStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ borderImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ borderImageOutset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ borderImageRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ borderImageSlice: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ borderImageSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ borderImageWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ borderInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ borderInlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ borderInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ borderInlineEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ borderInlineEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ borderInlineEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ borderInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ borderInlineStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ borderInlineStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ borderInlineStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ borderInlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ borderInlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ borderLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ borderLeftColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ borderLeftStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ borderLeftWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ borderRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ borderRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ borderRightColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ borderRightStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ borderRightWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ borderSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ borderStartEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ borderStartStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ borderStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ borderTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ borderTopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ borderTopLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ borderTopRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ borderTopStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ borderTopWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ borderWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ bottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */ boxDecorationBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ boxShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ boxSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ breakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ breakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ breakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ captionSide: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ caretColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ clear: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) */ clip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ clipPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */ clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ colorInterpolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */ colorInterpolationFilters: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ colorScheme: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ columnCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ columnFill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ columnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ columnRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ columnRuleColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ columnRuleStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ columnRuleWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ columnSpan: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ columnWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ columns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ contain: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) */ containIntrinsicBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ containIntrinsicHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) */ containIntrinsicInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ containIntrinsicSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ containIntrinsicWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ container: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ containerType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ content: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */ contentVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ counterIncrement: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** * The **\`cssText\`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */ cx: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */ cy: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */ d: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ display: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */ dominantBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ emptyCells: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */ fill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */ fillOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */ fillRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ filter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ flex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ flexBasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ flexDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ flexFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ flexGrow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ flexShrink: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ flexWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ float: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */ floodColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */ floodOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ fontFeatureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ fontKerning: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ fontOpticalSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ fontPalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ fontSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ fontSizeAdjust: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ fontStretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ fontStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ fontSynthesis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ fontSynthesisSmallCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ fontSynthesisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ fontSynthesisWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ fontVariant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ fontVariantAlternates: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ fontVariantCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ fontVariantEastAsian: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ fontVariantLigatures: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ fontVariantNumeric: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ fontVariantPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ fontVariationSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ fontWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ forcedColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ gap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ grid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ gridArea: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ gridAutoColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ gridAutoFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ gridAutoRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ gridColumn: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ gridColumnEnd: string; /** @deprecated This is a legacy alias of \`columnGap\`. */ gridColumnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ gridColumnStart: string; /** @deprecated This is a legacy alias of \`gap\`. */ gridGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ gridRow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ gridRowEnd: string; /** @deprecated This is a legacy alias of \`rowGap\`. */ gridRowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ gridRowStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ gridTemplate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ gridTemplateAreas: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ gridTemplateColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ gridTemplateRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ height: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ hyphenateCharacter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-limit-chars) */ hyphenateLimitChars: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ hyphens: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) */ imageOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ imageRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ inlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ inset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ insetBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ insetBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ insetBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ insetInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ insetInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ insetInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ isolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ justifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ justifyItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ justifySelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ left: string; /** * The read-only property returns an integer that represents the number of style declarations in this CSS declaration block. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */ lightingColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ lineBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ lineHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ listStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ listStyleImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ listStylePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ listStyleType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ margin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ marginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ marginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ marginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ marginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ marginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ marginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ marginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ marginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ marginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ marginTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */ marker: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */ markerEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */ markerMid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */ markerStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ mask: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ maskClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ maskComposite: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ maskImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ maskMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ maskOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ maskPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ maskRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ maskSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ maskType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ mathDepth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ mathStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ maxBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ maxHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ maxInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ maxWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ minBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ minHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ minInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ minWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ mixBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ objectFit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ objectPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ offset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ offsetAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ offsetDistance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ offsetPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ offsetPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ offsetRotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ opacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ order: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ orphans: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ outline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ outlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ outlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ outlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ outlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ overflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ overflowAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-block) */ overflowBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ overflowClipMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-inline) */ overflowInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ overflowWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ overflowX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ overflowY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ overscrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ overscrollBehaviorBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ overscrollBehaviorInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ overscrollBehaviorX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ overscrollBehaviorY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ padding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ paddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ paddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ paddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ paddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ paddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ paddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ paddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ paddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ paddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ paddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ page: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ pageBreakAfter: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ pageBreakBefore: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ pageBreakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ paintOrder: string; /** * The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ perspective: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ perspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ placeContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ placeItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ placeSelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ pointerEvents: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ position: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ printColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ quotes: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */ r: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ resize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ right: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ rotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ rowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-align) */ rubyAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */ rx: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */ ry: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ scale: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ scrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ scrollMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ scrollMarginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ scrollMarginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ scrollMarginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ scrollMarginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ scrollMarginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ scrollMarginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ scrollMarginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ scrollMarginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ scrollMarginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ scrollMarginTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ scrollPadding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ scrollPaddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ scrollPaddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ scrollPaddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ scrollPaddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ scrollPaddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ scrollPaddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ scrollPaddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ scrollPaddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ scrollPaddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ scrollPaddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ scrollSnapAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ scrollSnapStop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ scrollSnapType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ scrollbarColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ scrollbarGutter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ scrollbarWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ shapeImageThreshold: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ shapeMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ shapeOutside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */ shapeRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */ stopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */ stopOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */ stroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */ strokeDasharray: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */ strokeDashoffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */ strokeLinecap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */ strokeLinejoin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */ strokeMiterlimit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */ strokeOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */ strokeWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ tabSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ tableLayout: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ textAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ textAlignLast: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ textAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */ textBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */ textBoxEdge: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */ textBoxTrim: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ textCombineUpright: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ textDecoration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ textDecorationColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ textDecorationLine: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ textDecorationSkipInk: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ textDecorationStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ textDecorationThickness: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ textEmphasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ textEmphasisColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ textEmphasisPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ textEmphasisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ textIndent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ textOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ textOverflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ textRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ textShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ textTransform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ textUnderlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ textUnderlinePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ textWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */ textWrapMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */ textWrapStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ touchAction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ transform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ transformBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ transformOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ transformStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ transition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */ transitionBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ transitionDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ transitionDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ transitionProperty: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ transitionTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ translate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ unicodeBidi: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ userSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */ vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */ viewTransitionClass: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ viewTransitionName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ visibility: string; /** * @deprecated This is a legacy alias of \`alignContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ webkitAlignContent: string; /** * @deprecated This is a legacy alias of \`alignItems\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ webkitAlignItems: string; /** * @deprecated This is a legacy alias of \`alignSelf\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ webkitAlignSelf: string; /** * @deprecated This is a legacy alias of \`animation\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ webkitAnimation: string; /** * @deprecated This is a legacy alias of \`animationDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ webkitAnimationDelay: string; /** * @deprecated This is a legacy alias of \`animationDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ webkitAnimationDirection: string; /** * @deprecated This is a legacy alias of \`animationDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ webkitAnimationDuration: string; /** * @deprecated This is a legacy alias of \`animationFillMode\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ webkitAnimationFillMode: string; /** * @deprecated This is a legacy alias of \`animationIterationCount\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ webkitAnimationIterationCount: string; /** * @deprecated This is a legacy alias of \`animationName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ webkitAnimationName: string; /** * @deprecated This is a legacy alias of \`animationPlayState\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ webkitAnimationPlayState: string; /** * @deprecated This is a legacy alias of \`animationTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ webkitAnimationTimingFunction: string; /** * @deprecated This is a legacy alias of \`appearance\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ webkitAppearance: string; /** * @deprecated This is a legacy alias of \`backfaceVisibility\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ webkitBackfaceVisibility: string; /** * @deprecated This is a legacy alias of \`backgroundClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ webkitBackgroundClip: string; /** * @deprecated This is a legacy alias of \`backgroundOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ webkitBackgroundOrigin: string; /** * @deprecated This is a legacy alias of \`backgroundSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ webkitBackgroundSize: string; /** * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ webkitBorderBottomLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderBottomRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ webkitBorderBottomRightRadius: string; /** * @deprecated This is a legacy alias of \`borderRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ webkitBorderRadius: string; /** * @deprecated This is a legacy alias of \`borderTopLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ webkitBorderTopLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderTopRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ webkitBorderTopRightRadius: string; /** * @deprecated This is a legacy alias of \`boxAlign\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) */ webkitBoxAlign: string; /** * @deprecated This is a legacy alias of \`boxFlex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) */ webkitBoxFlex: string; /** * @deprecated This is a legacy alias of \`boxOrdinalGroup\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) */ webkitBoxOrdinalGroup: string; /** * @deprecated This is a legacy alias of \`boxOrient\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) */ webkitBoxOrient: string; /** * @deprecated This is a legacy alias of \`boxPack\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) */ webkitBoxPack: string; /** * @deprecated This is a legacy alias of \`boxShadow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ webkitBoxShadow: string; /** * @deprecated This is a legacy alias of \`boxSizing\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ webkitBoxSizing: string; /** * @deprecated This is a legacy alias of \`filter\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ webkitFilter: string; /** * @deprecated This is a legacy alias of \`flex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ webkitFlex: string; /** * @deprecated This is a legacy alias of \`flexBasis\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ webkitFlexBasis: string; /** * @deprecated This is a legacy alias of \`flexDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ webkitFlexDirection: string; /** * @deprecated This is a legacy alias of \`flexFlow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ webkitFlexFlow: string; /** * @deprecated This is a legacy alias of \`flexGrow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ webkitFlexGrow: string; /** * @deprecated This is a legacy alias of \`flexShrink\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ webkitFlexShrink: string; /** * @deprecated This is a legacy alias of \`flexWrap\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ webkitFlexWrap: string; /** * @deprecated This is a legacy alias of \`justifyContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ webkitJustifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-clamp) */ webkitLineClamp: string; /** * @deprecated This is a legacy alias of \`mask\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ webkitMask: string; /** * @deprecated This is a legacy alias of \`maskBorder\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) */ webkitMaskBoxImage: string; /** * @deprecated This is a legacy alias of \`maskBorderOutset\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) */ webkitMaskBoxImageOutset: string; /** * @deprecated This is a legacy alias of \`maskBorderRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) */ webkitMaskBoxImageRepeat: string; /** * @deprecated This is a legacy alias of \`maskBorderSlice\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) */ webkitMaskBoxImageSlice: string; /** * @deprecated This is a legacy alias of \`maskBorderSource\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) */ webkitMaskBoxImageSource: string; /** * @deprecated This is a legacy alias of \`maskBorderWidth\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) */ webkitMaskBoxImageWidth: string; /** * @deprecated This is a legacy alias of \`maskClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ webkitMaskClip: string; /** * @deprecated This is a legacy alias of \`maskComposite\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ webkitMaskComposite: string; /** * @deprecated This is a legacy alias of \`maskImage\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ webkitMaskImage: string; /** * @deprecated This is a legacy alias of \`maskOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ webkitMaskOrigin: string; /** * @deprecated This is a legacy alias of \`maskPosition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ webkitMaskPosition: string; /** * @deprecated This is a legacy alias of \`maskRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ webkitMaskRepeat: string; /** * @deprecated This is a legacy alias of \`maskSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ webkitMaskSize: string; /** * @deprecated This is a legacy alias of \`order\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ webkitOrder: string; /** * @deprecated This is a legacy alias of \`perspective\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ webkitPerspective: string; /** * @deprecated This is a legacy alias of \`perspectiveOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ webkitPerspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ webkitTextFillColor: string; /** * @deprecated This is a legacy alias of \`textSizeAdjust\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) */ webkitTextSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ webkitTextStroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ webkitTextStrokeColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ webkitTextStrokeWidth: string; /** * @deprecated This is a legacy alias of \`transform\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ webkitTransform: string; /** * @deprecated This is a legacy alias of \`transformOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ webkitTransformOrigin: string; /** * @deprecated This is a legacy alias of \`transformStyle\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ webkitTransformStyle: string; /** * @deprecated This is a legacy alias of \`transition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ webkitTransition: string; /** * @deprecated This is a legacy alias of \`transitionDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ webkitTransitionDelay: string; /** * @deprecated This is a legacy alias of \`transitionDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ webkitTransitionDuration: string; /** * @deprecated This is a legacy alias of \`transitionProperty\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ webkitTransitionProperty: string; /** * @deprecated This is a legacy alias of \`transitionTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ webkitTransitionTimingFunction: string; /** * @deprecated This is a legacy alias of \`userSelect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ webkitUserSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ whiteSpace: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */ whiteSpaceCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ widows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ width: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ willChange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */ x: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */ y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */ zoom: string; /** * The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ getPropertyPriority(property: string): string; /** * The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ getPropertyValue(property: string): string; /** * The \`CSSStyleDeclaration.item()\` method interface returns a CSS property name from a CSSStyleDeclaration by index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ item(index: number): string; /** * The **\`CSSStyleDeclaration.removeProperty()\`** method interface removes a property from a CSS style declaration object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ removeProperty(property: string): string; /** * The **\`CSSStyleDeclaration.setProperty()\`** method interface sets a new value for a property on a CSS style declaration object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; }; /** * The **\`CSSStyleRule\`** interface represents a single CSS style rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSGroupingRule { /** * The **\`selectorText\`** property of the CSSStyleRule interface gets and sets the selectors associated with the \`CSSStyleRule\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** * The read-only **\`style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); /** * The **\`styleMap\`** read-only property of the which provides access to the rule's property-value pairs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** * The **\`CSSStyleSheet\`** interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ interface CSSStyleSheet extends StyleSheet { /** * The read-only CSSStyleSheet property **\`cssRules\`** returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ readonly cssRules: CSSRuleList; /** * The read-only CSSStyleSheet property **\`ownerRule\`** returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ readonly ownerRule: CSSRule | null; /** * **\`rules\`** is a _deprecated_ _legacy property_ of the CSSStyleSheet interface. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) */ readonly rules: CSSRuleList; /** * The obsolete CSSStyleSheet interface's **\`addRule()\`** _legacy method_ adds a new rule to the stylesheet. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) */ addRule(selector?: string, style?: string, index?: number): number; /** * The CSSStyleSheet method **\`deleteRule()\`** removes a rule from the stylesheet object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ deleteRule(index: number): void; /** * The **\`CSSStyleSheet.insertRule()\`** method inserts a new CSS rule into the current style sheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ insertRule(rule: string, index?: number): number; /** * The obsolete CSSStyleSheet method **\`removeRule()\`** removes a rule from the stylesheet object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) */ removeRule(index?: number): void; /** * The **\`replace()\`** method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ replace(text: string): Promise; /** * The **\`replaceSync()\`** method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** * The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ interface CSSStyleValue { toString(): string; } declare var CSSStyleValue: { prototype: CSSStyleValue; new(): CSSStyleValue; /** * The **\`parse()\`** static method of the CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ parse(property: string, cssText: string): CSSStyleValue; /** * The **\`parseAll()\`** static method of the CSSStyleValue interface sets all occurrences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ parseAll(property: string, cssText: string): CSSStyleValue[]; }; /** * The **\`CSSSupportsRule\`** interface represents a single CSS @supports at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; /** * The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ interface CSSTransformComponent { /** * The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ is2D: boolean; /** * The **\`toMatrix()\`** method of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ toMatrix(): DOMMatrix; toString(): string; } declare var CSSTransformComponent: { prototype: CSSTransformComponent; new(): CSSTransformComponent; }; /** * The **\`CSSTransformValue\`** interface of the CSS Typed Object Model API represents \`transform-list\` values as used by the CSS transform property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ interface CSSTransformValue extends CSSStyleValue { /** * The read-only **\`is2D\`** property of the In the case of the \`CSSTransformValue\` this property returns true unless any of the individual functions return false for \`Is2D\`, in which case it returns false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ readonly is2D: boolean; /** * The read-only **\`length\`** property of the the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ readonly length: number; /** * The **\`toMatrix()\`** method of the \`\`\`js-nolint toMatrix() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ toMatrix(): DOMMatrix; forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; [index: number]: CSSTransformComponent; } declare var CSSTransformValue: { prototype: CSSTransformValue; new(transforms: CSSTransformComponent[]): CSSTransformValue; }; /** * The **\`CSSTransition\`** interface of the Web Animations API represents an Animation object used for a CSS Transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ interface CSSTransition extends Animation { /** * The **\`transitionProperty\`** property of the name** of the transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ readonly transitionProperty: string; addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ interface CSSTranslate extends CSSTransformComponent { /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ x: CSSNumericValue; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ y: CSSNumericValue; /** * The **\`z\`** property of the vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ z: CSSNumericValue; } declare var CSSTranslate: { prototype: CSSTranslate; new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; }; /** * The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** * The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ readonly unit: string; /** * The **\`CSSUnitValue.value\`** property of the A double. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ value: number; } declare var CSSUnitValue: { prototype: CSSUnitValue; new(value: number, unit: string): CSSUnitValue; }; /** * The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ interface CSSUnparsedValue extends CSSStyleValue { /** * The **\`length\`** read-only property of the An integer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ readonly length: number; forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; [index: number]: CSSUnparsedSegment; } declare var CSSUnparsedValue: { prototype: CSSUnparsedValue; new(members: CSSUnparsedSegment[]): CSSUnparsedValue; }; /** * The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ interface CSSVariableReferenceValue { /** * The **\`fallback\`** read-only property of the A CSSUnparsedValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ readonly fallback: CSSUnparsedValue | null; /** * The **\`variable\`** property of the A string beginning with \`--\` (that is, a custom property name). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ variable: string; } declare var CSSVariableReferenceValue: { prototype: CSSVariableReferenceValue; new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; }; interface CSSViewTransitionRule extends CSSRule { readonly navigation: string; readonly types: ReadonlyArray; } declare var CSSViewTransitionRule: { prototype: CSSViewTransitionRule; new(): CSSViewTransitionRule; }; /** * The **\`Cache\`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) */ interface Cache { /** * The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ add(request: RequestInfo | URL): Promise; /** * The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ addAll(requests: RequestInfo[]): Promise; /** * The **\`delete()\`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to \`true\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** * The **\`match()\`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** * The **\`put()\`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ put(request: RequestInfo | URL, response: Response): Promise; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The **\`CacheStorage\`** interface represents the storage for Cache objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) */ interface CacheStorage { /** * The **\`delete()\`** method of the CacheStorage interface finds the Cache object matching the \`cacheName\`, and if found, deletes the Cache object and returns a Promise that resolves to \`true\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ delete(cacheName: string): Promise; /** * The **\`has()\`** method of the CacheStorage interface returns a Promise that resolves to \`true\` if a You can access \`CacheStorage\` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ has(cacheName: string): Promise; /** * The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ keys(): Promise; /** * The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; /** * The **\`open()\`** method of the the Cache object matching the \`cacheName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ open(cacheName: string): Promise; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; /** * The **\`CanvasCaptureMediaStreamTrack\`** interface of the Media Capture and Streams API represents the video track contained in a MediaStream being generated from a canvas following a call to HTMLCanvasElement.captureStream(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { /** * The **\`canvas\`** read-only property of the CanvasCaptureMediaStreamTrack interface returns the HTMLCanvasElement from which frames are being captured. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ readonly canvas: HTMLCanvasElement; /** * The **\`requestFrame()\`** method of the CanvasCaptureMediaStreamTrack interface requests that a frame be captured from the canvas and sent to the stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ requestFrame(): void; addEventListener(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ globalAlpha: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ 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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ beginPath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ fillStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ strokeStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ filter: string; } /** * The **\`CanvasGradient\`** interface represents an opaque object describing a gradient. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ interface CanvasGradient { /** * The **\`CanvasGradient.addColorStop()\`** method adds a new color stop, defined by an \`offset\` and a \`color\`, to a given canvas gradient. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imageData: ImageData): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ 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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ imageSmoothingEnabled: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ closePath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ lineTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ moveTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ rect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ lineCap: CanvasLineCap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ lineDashOffset: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ lineJoin: CanvasLineJoin; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ lineWidth: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ miterLimit: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ getLineDash(): number[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ setLineDash(segments: number[]): void; } /** * The **\`CanvasPattern\`** interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) */ interface CanvasPattern { /** * The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ clearRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ fillRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** * The **\`CanvasRenderingContext2D.canvas\`** property, part of the Canvas API, is a read-only reference to the might be \`null\` if there is no associated canvas element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasSettings { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ getContextAttributes(): CanvasRenderingContext2DSettings; } interface CanvasShadowStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ shadowBlur: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ shadowColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ shadowOffsetX: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ shadowOffsetY: number; } interface CanvasState { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */ isContextLost(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ restore(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ save(): void; } interface CanvasText { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ fillText(text: string, x: number, y: number, maxWidth?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ measureText(text: string): TextMetrics; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ direction: CanvasDirection; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ fontStretch: CanvasFontStretch; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ textAlign: CanvasTextAlign; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ textBaseline: CanvasTextBaseline; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ textRendering: CanvasTextRendering; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ wordSpacing: string; } interface CanvasTransform { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ getTransform(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ resetTransform(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ rotate(angle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ scale(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ transform(a: number, b: number, c: number, d: number, e: number, f: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ translate(x: number, y: number): void; } interface CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ drawFocusIfNeeded(element: Element): void; drawFocusIfNeeded(path: Path2D, element: Element): void; } /** * The \`CaretPosition\` interface represents the caret position, an indicator for the text insertion point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition) */ interface CaretPosition { readonly offset: number; readonly offsetNode: Node; getClientRect(): DOMRect | null; } declare var CaretPosition: { prototype: CaretPosition; new(): CaretPosition; }; /** * The \`ChannelMergerNode\` interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { /** * The **\`data\`** property of the CharacterData interface represent the value of the current object's data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ data: string; /** * The read-only **\`CharacterData.length\`** property returns the number of characters in the contained data, as a positive integer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ readonly length: number; readonly ownerDocument: Document; /** * The **\`appendData()\`** method of the CharacterData interface adds the provided data to the end of the node's current data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ appendData(data: string): void; /** * The **\`deleteData()\`** method of the CharacterData interface removes all or part of the data from this \`CharacterData\` node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ deleteData(offset: number, count: number): void; /** * The **\`insertData()\`** method of the CharacterData interface inserts the provided data into this \`CharacterData\` node's current data, at the provided offset from the start of the existing data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ insertData(offset: number, data: string): void; /** * The **\`replaceData()\`** method of the CharacterData interface removes a certain number of characters of the existing text in a given \`CharacterData\` node and replaces those characters with the text provided. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ replaceData(offset: number, count: number, data: string): void; /** * The **\`substringData()\`** method of the CharacterData interface returns a portion of the existing data, starting at the specified index and extending for a given number of characters afterwards. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ substringData(offset: number, count: number): string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); } 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) */ before(...nodes: (Node | string)[]): void; /** * Removes node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) */ replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ interface ClientRect extends DOMRect { } /** * The **\`Clipboard\`** interface of the Clipboard API provides read and write access to the contents of the system clipboard. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) */ interface Clipboard extends EventTarget { /** * The **\`read()\`** method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ read(): Promise; /** * The **\`readText()\`** method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ readText(): Promise; /** * The **\`write()\`** method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ write(data: ClipboardItems): Promise; /** * The **\`writeText()\`** method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** * The **\`ClipboardEvent\`** interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Element/cut_event, Element/copy_event, and Element/paste_event events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ interface ClipboardEvent extends Event { /** * The **\`clipboardData\`** property of the ClipboardEvent interface holds a DataTransfer object, which can be used to: - specify what data should be put into the clipboard from the Element/cut_event and Element/copy_event event handlers, typically with a DataTransfer.setData call; - obtain the data to be pasted from the Element/paste_event event handler, typically with a DataTransfer.getData call. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** * The **\`ClipboardItem\`** interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { /** * The read-only **\`presentationStyle\`** property of the ClipboardItem interface returns a string indicating how an item should be presented. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */ readonly presentationStyle: PresentationStyle; /** * The read-only **\`types\`** property of the ClipboardItem interface returns an Array of MIME type available within the ClipboardItem. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** * The **\`getType()\`** method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ getType(type: string): Promise; } declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; /** * The **\`supports()\`** static method of the ClipboardItem interface returns \`true\` if the given MIME type is supported by the clipboard, and \`false\` otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static) */ supports(type: string): boolean; }; /** * A \`CloseEvent\` is sent to clients using WebSockets when the connection is closed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) */ interface CloseEvent extends Event { /** * The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) */ readonly code: number; /** * The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) */ readonly reason: string; /** * The **\`wasClean\`** read-only property of the CloseEvent interface returns \`true\` if the connection closed cleanly. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** * The **\`Comment\`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) */ interface CompositionEvent extends UIEvent { /** * The **\`data\`** read-only property of the method that raised the event; its exact nature varies depending on the type of event that generated the \`CompositionEvent\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ readonly data: string; /** * The **\`initCompositionEvent()\`** method of the CompositionEvent interface initializes the attributes of a \`CompositionEvent\` object instance. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) */ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; /** * The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { readonly readable: ReadableStream>; readonly writable: WritableStream; } declare var CompressionStream: { prototype: CompressionStream; new(format: CompressionFormat): CompressionStream; }; /** * The \`ConstantSourceNode\` interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ interface ConstantSourceNode extends AudioScheduledSourceNode { /** * The read-only \`offset\` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ readonly offset: AudioParam; addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`ContentVisibilityAutoStateChangeEvent\`** interface is the event object for the element/contentvisibilityautostatechange_event event, which fires on any element with content-visibility set on it when it starts or stops being relevant to the user and skipping its contents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */ interface ContentVisibilityAutoStateChangeEvent extends Event { /** * The \`skipped\` read-only property of the ContentVisibilityAutoStateChangeEvent interface returns \`true\` if the user agent skips the element's contents, or \`false\` otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ readonly skipped: boolean; } declare var ContentVisibilityAutoStateChangeEvent: { prototype: ContentVisibilityAutoStateChangeEvent; new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent; }; /** * The \`ConvolverNode\` interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) */ interface ConvolverNode extends AudioNode { /** * The **\`buffer\`** property of the ConvolverNode interface represents a mono, stereo, or 4-channel AudioBuffer containing the (possibly multichannel) impulse response used by the \`ConvolverNode\` to create the reverb effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ buffer: AudioBuffer | null; /** * The \`normalize\` property of the ConvolverNode interface is a boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the \`buffer\` attribute is set, or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** * The **\`CookieChangeEvent\`** interface of the Cookie Store API is the event type of the CookieStore/change_event event fired at a CookieStore when any cookies are created or deleted. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent) */ interface CookieChangeEvent extends Event { /** * The **\`changed\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been changed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/changed) */ readonly changed: ReadonlyArray; /** * The **\`deleted\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been deleted by the given \`CookieChangeEvent\` instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/deleted) */ readonly deleted: ReadonlyArray; } declare var CookieChangeEvent: { prototype: CookieChangeEvent; new(type: string, eventInitDict?: CookieChangeEventInit): CookieChangeEvent; }; interface CookieStoreEventMap { "change": CookieChangeEvent; } /** * The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore) */ interface CookieStore extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/change_event) */ onchange: ((this: CookieStore, ev: CookieChangeEvent) => any) | null; /** * The **\`delete()\`** method of the CookieStore interface deletes a cookie that matches the given \`name\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete) */ delete(name: string): Promise; delete(options: CookieStoreDeleteOptions): Promise; /** * The **\`get()\`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given \`name\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get) */ get(name: string): Promise; get(options?: CookieStoreGetOptions): Promise; /** * The **\`getAll()\`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the \`name\` or \`options\` passed to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll) */ getAll(name: string): Promise; getAll(options?: CookieStoreGetOptions): Promise; /** * The **\`set()\`** method of the CookieStore interface sets a cookie with the given \`name\` and \`value\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set) */ set(name: string, value: string): Promise; set(options: CookieInit): Promise; addEventListener(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CookieStore: { prototype: CookieStore; new(): CookieStore; }; /** * The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) */ interface CookieStoreManager { /** * The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) */ getSubscriptions(): Promise; /** * The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) */ subscribe(subscriptions: CookieStoreGetOptions[]): Promise; /** * The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) */ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; } declare var CookieStoreManager: { prototype: CookieStoreManager; new(): CookieStoreManager; }; /** * The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) */ interface CountQueuingStrategy extends QueuingStrategy { /** * The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** * The **\`Credential\`** interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) */ interface Credential { /** * The **\`id\`** read-only property of the Credential interface returns a string containing the credential's identifier. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ readonly id: string; /** * The **\`type\`** read-only property of the Credential interface returns a string containing the credential's type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** * The **\`CredentialsContainer\`** interface of the Credential Management API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ interface CredentialsContainer { /** * The **\`create()\`** method of the CredentialsContainer interface creates a new credential, which can then be stored and later retrieved using the CredentialsContainer.get method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ create(options?: CredentialCreationOptions): Promise; /** * The **\`get()\`** method of the CredentialsContainer interface returns a Promise that fulfills with a single credential, which can then be used to authenticate a user to a website. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ get(options?: CredentialRequestOptions): Promise; /** * The **\`preventSilentAccess()\`** method of the CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns a Promise that resolves to \`undefined\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ preventSilentAccess(): Promise; /** * The **\`store()\`** method of the \`\`\`js-nolint store(credentials) \`\`\` - \`credentials\` - : A valid Credential instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** * The **\`Crypto\`** interface represents basic cryptography features available in the current context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) */ interface Crypto { /** * The **\`Crypto.subtle\`** read-only property returns a cryptographic operations. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) */ readonly subtle: SubtleCrypto; /** * The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ getRandomValues(array: T): T; /** * The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The **\`CryptoKey\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) */ interface CryptoKey { /** * The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ readonly algorithm: KeyAlgorithm; /** * The read-only **\`extractable\`** property of the CryptoKey interface indicates whether or not the key may be extracted using \`SubtleCrypto.exportKey()\` or \`SubtleCrypto.wrapKey()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ readonly extractable: boolean; /** * The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ readonly type: KeyType; /** * The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; /** * The **\`CustomElementRegistry\`** interface provides methods for registering custom elements and querying registered elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ interface CustomElementRegistry { /** * The **\`define()\`** method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; /** * The **\`get()\`** method of the previously-defined custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ get(name: string): CustomElementConstructor | undefined; /** * The **\`getName()\`** method of the previously-defined custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ getName(constructor: CustomElementConstructor): string | null; /** * The **\`upgrade()\`** method of the elements in a Node subtree, even before they are connected to the main document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ upgrade(root: Node): void; /** * The **\`whenDefined()\`** method of the resolves when the named element is defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; /** * The **\`CustomEvent\`** interface represents events initialized by an application for any purpose. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ interface CustomEvent extends Event { /** * The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) */ readonly detail: T; /** * The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new(type: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** * The **\`CustomStateSet\`** interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ interface CustomStateSet { forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void; } declare var CustomStateSet: { prototype: CustomStateSet; new(): CustomStateSet; }; /** * The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) */ interface DOMException extends Error { /** * The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) */ readonly code: number; /** * The **\`message\`** read-only property of the a message or description associated with the given error name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ readonly message: string; /** * The **\`name\`** read-only property of the one of the strings associated with an error name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ 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; }; /** * The **\`DOMImplementation\`** interface represents an object providing methods which are not dependent on any particular document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) */ interface DOMImplementation { /** * The **\`DOMImplementation.createDocument()\`** method creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** * The **\`DOMImplementation.createDocumentType()\`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or \`\`\`js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) \`\`\` - \`qualifiedNameStr\` - : A string containing the qualified name, like \`svg:svg\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ createDocumentType(name: string, publicId: string, systemId: string): DocumentType; /** * The **\`DOMImplementation.createHTMLDocument()\`** method creates a new HTML Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ createHTMLDocument(title?: string): Document; /** * The **\`DOMImplementation.hasFeature()\`** method returns a boolean flag indicating if a given feature is supported. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; /** * The **\`DOMMatrix\`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m44: number; /** * The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */ invertSelf(): DOMMatrix; /** * The **\`multiplySelf()\`** method of the DOMMatrix interface multiplies a matrix by the \`otherMatrix\` parameter, computing the dot product of the original matrix and the specified matrix: \`A⋅B\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */ multiplySelf(other?: DOMMatrixInit): DOMMatrix; /** * The **\`preMultiplySelf()\`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified \`DOMMatrix\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */ preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; /** * The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf) */ rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** * The \`rotateFromVectorSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and \`(1, 0)\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf) */ rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; /** * The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */ rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** * The **\`scale3dSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of \`(0, 0, 0)\`, returning the 3D-scaled matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * The **\`scaleSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of \`(0, 0)\`, returning the scaled matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * The **\`setMatrixValue()\`** method of the DOMMatrix interface replaces the contents of the matrix with the matrix described by the specified transform or transforms, returning itself. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue) */ setMatrixValue(transformList: string): DOMMatrix; /** * The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */ skewXSelf(sx?: number): DOMMatrix; /** * The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */ skewYSelf(sy?: number): DOMMatrix; /** * The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */ 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; /** * The **\`DOMMatrixReadOnly\`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly f: number; /** * The readonly **\`is2D\`** property of the DOMMatrixReadOnly interface is a Boolean flag that is \`true\` when the matrix is 2D. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** * The readonly **\`isIdentity\`** property of the DOMMatrixReadOnly interface is a Boolean whose value is \`true\` if the matrix is the identity matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m44: number; /** * The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; /** * The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; /** * The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; /** * The **\`multiply()\`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the \`otherMatrix\` parameter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; /** * The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** * The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** * The \`rotateFromVector()\` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and \`(1, 0)\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** * The **\`scale()\`** method of the original matrix with a scale transform applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** @deprecated */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; /** * The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; /** * The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** * The **\`toFloat32Array()\`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** * The **\`toFloat64Array()\`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; /** * The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ toJSON(): any; /** * The **\`transformPoint\`** method of the You can also create a new \`DOMPoint\` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** * The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ 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; }; /** * The **\`DOMParser\`** interface provides the ability to parse XML or HTML source code from a string into a DOM Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) */ interface DOMParser { /** * The **\`parseFromString()\`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; /** * A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ interface DOMPoint extends DOMPointReadOnly { /** * The **\`DOMPoint\`** interface's **\`w\`** property holds the point's perspective value, w, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ w: number; /** * The **\`DOMPoint\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ x: number; /** * The **\`DOMPoint\`** interface's **\`y\`** property holds the vertical coordinate, _y_, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ y: number; /** * The **\`DOMPoint\`** interface's **\`z\`** property specifies the depth coordinate of a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; /** * The **\`fromPoint()\`** static method of the DOMPoint interface creates and returns a new mutable \`DOMPoint\` object given a source point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; /** * The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ interface DOMPointReadOnly { /** * The **\`DOMPointReadOnly\`** interface's **\`w\`** property holds the point's perspective value, \`w\`, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ readonly w: number; /** * The **\`DOMPointReadOnly\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ readonly x: number; /** * The **\`DOMPointReadOnly\`** interface's **\`y\`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ readonly y: number; /** * The **\`DOMPointReadOnly\`** interface's **\`z\`** property holds the depth coordinate, z, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; /** * The **\`matrixTransform()\`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new \`DOMPointReadOnly\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** * The DOMPointReadOnly method \`toJSON()\` returns an object giving the \`\`\`js-nolint toJSON() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; /** * The static **DOMPointReadOnly** method \`fromPoint()\` creates and returns a new \`DOMPointReadOnly\` object given a source point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; /** * A \`DOMQuad\` is a collection of four \`DOMPoint\`s defining the corners of an arbitrary quadrilateral. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { /** * The **\`DOMQuad\`** interface's **\`p1\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p2\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p3\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p4\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; /** * The DOMQuad method \`getBounds()\` returns a DOMRect object representing the smallest rectangle that fully contains the \`DOMQuad\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; /** * The DOMQuad method \`toJSON()\` returns a \`\`\`js-nolint toJSON() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ 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; }; /** * A **\`DOMRect\`** describes the size and position of a rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { /** * The **\`height\`** property of the DOMRect interface represents the height of the rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */ height: number; /** * The **\`width\`** property of the DOMRect interface represents the width of the rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */ width: number; /** * The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */ x: number; /** * The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */ y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; /** * The **\`fromRect()\`** static method of the object with a given location and dimensions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; /** * The **\`DOMRectList\`** interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as Element.getClientRects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList) */ interface DOMRectList { /** * The read-only **\`length\`** property of the DOMRectList interface returns the number of DOMRect objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length) */ readonly length: number; /** * The DOMRectList method \`item()\` returns the DOMRect at the specified index within the list, or \`null\` if the index is out of range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item) */ item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; /** * The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ interface DOMRectReadOnly { /** * The **\`bottom\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the bottom coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ readonly bottom: number; /** * The **\`height\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the height of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ readonly height: number; /** * The **\`left\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the left coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ readonly left: number; /** * The **\`right\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the right coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ readonly right: number; /** * The **\`top\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the top coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ readonly top: number; /** * The **\`width\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the width of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ readonly width: number; /** * The **\`x\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the x coordinate of the \`DOMRect\`'s origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ readonly x: number; /** * The **\`y\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the y coordinate of the \`DOMRect\`'s origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; /** * The DOMRectReadOnly method \`toJSON()\` returns a JSON representation of the \`DOMRectReadOnly\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; /** * The **\`fromRect()\`** static method of the object with a given location and dimensions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** * The **\`DOMStringList\`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (\`DOMString\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) */ interface DOMStringList { /** * The read-only **\`length\`** property indicates the number of strings in the DOMStringList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) */ readonly length: number; /** * The **\`contains()\`** method returns a boolean indicating whether the given string is in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) */ contains(string: string): boolean; /** * The **\`item()\`** method returns a string from a \`DOMStringList\` by index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; /** * The **\`DOMStringMap\`** interface is used for the HTMLElement.dataset attribute, to represent data for custom attributes added to elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) */ interface DOMStringMap { [name: string]: string | undefined; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; }; /** * The **\`DOMTokenList\`** interface represents a set of space-separated tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ interface DOMTokenList { /** * The read-only **\`length\`** property of the DOMTokenList interface is an \`integer\` representing the number of objects stored in the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) */ readonly length: number; /** * The **\`value\`** property of the DOMTokenList interface is a stringifier that returns the value of the list serialized as a string, or clears and sets the list to the given value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) */ value: string; toString(): string; /** * The **\`add()\`** method of the DOMTokenList interface adds the given tokens to the list, omitting any that are already present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) */ add(...tokens: string[]): void; /** * The **\`contains()\`** method of the DOMTokenList interface returns a boolean value — \`true\` if the underlying list contains the given token, otherwise \`false\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) */ contains(token: string): boolean; /** * The **\`item()\`** method of the DOMTokenList interface returns an item in the list, determined by its position in the list, its index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) */ item(index: number): string | null; /** * The **\`remove()\`** method of the DOMTokenList interface removes the specified _tokens_ from the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) */ remove(...tokens: string[]): void; /** * The **\`replace()\`** method of the DOMTokenList interface replaces an existing token with a new token. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) */ replace(token: string, newToken: string): boolean; /** * The **\`supports()\`** method of the DOMTokenList interface returns \`true\` if a given \`token\` is in the associated attribute's supported tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) */ supports(token: string): boolean; /** * The **\`toggle()\`** method of the DOMTokenList interface removes an existing token from the list and returns \`false\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) */ 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; }; /** * The **\`DataTransfer\`** object is used to hold any data transferred between contexts, such as a drag and drop operation, or clipboard read/write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) */ interface DataTransfer { /** * The **\`DataTransfer.dropEffect\`** property controls the feedback (typically visual) the user is given during a drag and drop operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) */ dropEffect: "none" | "copy" | "link" | "move"; /** * The **\`DataTransfer.effectAllowed\`** property specifies the effect that is allowed for a drag operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** * The **\`files\`** read-only property of \`DataTransfer\` objects is a list of the files in the drag operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) */ readonly files: FileList; /** * The read-only \`items\` property of the DataTransfer interface is a A DataTransferItemList object containing DataTransferItem objects representing the items being dragged in a drag operation, one list item for each object being dragged. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) */ readonly items: DataTransferItemList; /** * The **\`DataTransfer.types\`** read-only property returns the available types that exist in the DataTransfer.items. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) */ readonly types: ReadonlyArray; /** * The **\`DataTransfer.clearData()\`** method removes the drag operation's drag data for the given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) */ clearData(format?: string): void; /** * The **\`DataTransfer.getData()\`** method retrieves drag data (as a string) for the specified type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) */ getData(format: string): string; /** * The **\`DataTransfer.setData()\`** method sets the drag operation's drag data to the specified data and type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) */ setData(format: string, data: string): void; /** * When a drag occurs, a translucent image is generated from the drag target (the element the HTMLElement/dragstart_event event is fired at), and follows the mouse pointer during the drag. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) */ setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; }; /** * The **\`DataTransferItem\`** object represents one drag data item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) */ interface DataTransferItem { /** * The read-only **\`DataTransferItem.kind\`** property returns the kind–a string or a file–of the DataTransferItem object representing the _drag data item_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) */ readonly kind: string; /** * The read-only **\`DataTransferItem.type\`** property returns the type (format) of the DataTransferItem object representing the drag data item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) */ readonly type: string; /** * If the item is a file, the **\`DataTransferItem.getAsFile()\`** method returns the drag data item's File object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) */ getAsFile(): File | null; /** * The **\`DataTransferItem.getAsString()\`** method invokes the given callback with the drag data item's string data as the argument if the item's DataTransferItem.kind is a _Plain unicode string_ (i.e., \`kind\` is \`string\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) */ getAsString(callback: FunctionStringCallback | null): void; /** * If the item described by the DataTransferItem is a file, \`webkitGetAsEntry()\` returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** * The **\`DataTransferItemList\`** object is a list of DataTransferItem objects representing items being dragged. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) */ interface DataTransferItemList { /** * The read-only **\`length\`** property of the the drag item list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) */ readonly length: number; /** * The **\`DataTransferItemList.add()\`** method creates a new list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** * The DataTransferItemList method **\`clear()\`** removes all DataTransferItem objects from the drag data items list, leaving the list empty. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) */ clear(): void; /** * The **\`DataTransferItemList.remove()\`** method removes the less than zero or greater than one less than the length of the list, the list will not be changed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) */ remove(index: number): void; [index: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; /** * The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { readonly readable: ReadableStream>; readonly writable: WritableStream; } declare var DecompressionStream: { prototype: DecompressionStream; new(format: CompressionFormat): DecompressionStream; }; /** * The **\`DelayNode\`** interface represents a delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) */ interface DelayNode extends AudioNode { /** * The \`delayTime\` property of the DelayNode interface is an a-rate AudioParam representing the amount of delay to apply. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ readonly delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** * The **\`DeviceMotionEvent\`** interface of the Device Orientation Events provides web developers with information about the speed of changes for the device's position and orientation. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) */ interface DeviceMotionEvent extends Event { /** * The **\`acceleration\`** read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in meters per second squared (m/s²). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ readonly acceleration: DeviceMotionEventAcceleration | null; /** * The **\`accelerationIncludingGravity\`** read-only property of the DeviceMotionEvent interface returns the amount of acceleration recorded by the device, in meters per second squared (m/s²). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; /** * The **\`interval\`** read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ readonly interval: number; /** * The **\`rotationRate\`** read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** * The **\`DeviceMotionEventAcceleration\`** interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) */ interface DeviceMotionEventAcceleration { /** * The **\`x\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ readonly x: number | null; /** * The **\`y\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ readonly y: number | null; /** * The **\`z\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ readonly z: number | null; } /** * A **\`DeviceMotionEventRotationRate\`** interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) */ interface DeviceMotionEventRotationRate { /** * The **\`alpha\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ readonly alpha: number | null; /** * The **\`beta\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ readonly beta: number | null; /** * The **\`gamma\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ readonly gamma: number | null; } /** * The **\`DeviceOrientationEvent\`** interface of the Device Orientation Events provides web developers with information from the physical orientation of the device running the web page. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) */ interface DeviceOrientationEvent extends Event { /** * The **\`absolute\`** read-only property of the DeviceOrientationEvent interface indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ readonly absolute: boolean; /** * The **\`alpha\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ readonly alpha: number | null; /** * The **\`beta\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180, by which the device is tipped forward or backward. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ readonly beta: number | null; /** * The **\`gamma\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between \`-90\` and \`90\`, by which the device is tilted left or right. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ 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; } /** * The **\`Document\`** interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * The **\`URL\`** read-only property of the Document interface returns the document location as a string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) */ readonly URL: string; /** * Returns or sets the color of an active link in the document body. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) */ alinkColor: string; /** * The Document interface's read-only **\`all\`** property returns an HTMLAllCollection rooted at the document node. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) */ readonly all: HTMLAllCollection; /** * The **\`anchors\`** read-only property of the An HTMLCollection. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) */ readonly anchors: HTMLCollectionOf; /** * The **\`applets\`** property of the Document returns an empty HTMLCollection. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) */ readonly applets: HTMLCollection; /** * The deprecated \`bgColor\` property gets or sets the background color of the current document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) */ bgColor: string; /** * The **\`Document.body\`** property represents the \`null\` if no such element exists. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) */ body: HTMLElement; /** * The **\`Document.characterSet\`** read-only property returns the character encoding of the document that it's currently rendered with. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly characterSet: string; /** * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly charset: string; /** * The **\`Document.compatMode\`** read-only property indicates whether the document is rendered in Quirks mode or Standards mode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) */ readonly compatMode: string; /** * The **\`Document.contentType\`** read-only property returns the MIME type that the document is being rendered as. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) */ readonly contentType: string; /** * The Document property \`cookie\` lets you read and write cookies associated with the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) */ cookie: string; /** * The **\`Document.currentScript\`** property returns the script element whose script is currently being processed and isn't a JavaScript module. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) */ readonly currentScript: HTMLOrSVGScriptElement | null; /** * In browsers, **\`document.defaultView\`** returns the This property is read-only. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** * **\`document.designMode\`** controls whether the entire document is editable. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) */ designMode: string; /** * The **\`Document.dir\`** property is a string representing the directionality of the text of the document, whether left to right (default) or right to left. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) */ dir: string; /** * The **\`doctype\`** read-only property of the Document interface is a DocumentType object representing the Doctype associated with the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) */ readonly doctype: DocumentType | null; /** * The **\`documentElement\`** read-only property of the Document interface returns the example, the html element for HTML documents). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) */ readonly documentElement: HTMLElement; /** * The **\`documentURI\`** read-only property of the A string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) */ readonly documentURI: string; /** * The **\`domain\`** property of the Document interface gets/sets the domain portion of the origin of the current document, as used by the same-origin policy. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) */ domain: string; /** * The **\`embeds\`** read-only property of the An HTMLCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) */ readonly embeds: HTMLCollectionOf; /** * **\`fgColor\`** gets/sets the foreground color, or text color, of the current document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) */ fgColor: string; /** * The **\`forms\`** read-only property of the Document interface returns an HTMLCollection listing all the form elements contained in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) */ readonly forms: HTMLCollectionOf; /** * The **\`fragmentDirective\`** read-only property of the Document interface returns the FragmentDirective for the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective) */ readonly fragmentDirective: FragmentDirective; /** * The obsolete Document interface's **\`fullscreen\`** read-only property reports whether or not the document is currently displaying content in fullscreen mode. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) */ readonly fullscreen: boolean; /** * The read-only **\`fullscreenEnabled\`** property on the Document interface indicates whether or not fullscreen mode is available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) */ readonly fullscreenEnabled: boolean; /** * The **\`head\`** read-only property of the Document interface returns the head element of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) */ readonly head: HTMLHeadElement; /** * The **\`Document.hidden\`** read-only property returns a Boolean value indicating if the page is considered hidden or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ readonly hidden: boolean; /** * The **\`images\`** read-only property of the Document interface returns a collection of the images in the current HTML document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) */ readonly images: HTMLCollectionOf; /** * The **\`Document.implementation\`** property returns a A DOMImplementation object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) */ readonly implementation: DOMImplementation; /** * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly inputEncoding: string; /** * The **\`lastModified\`** property of the Document interface returns a string containing the date and local time on which the current document was last modified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) */ readonly lastModified: string; /** * The **\`Document.linkColor\`** property gets/sets the color of links within the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) */ linkColor: string; /** * The **\`links\`** read-only property of the Document interface returns a collection of all area elements and a elements in a document with a value for the href attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) */ readonly links: HTMLCollectionOf; /** * The **\`Document.location\`** read-only property returns a and provides methods for changing that URL and loading another URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; set location(href: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ onfullscreenchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ onfullscreenerror: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ onpointerlockchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ onpointerlockerror: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */ onreadystatechange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly ownerDocument: null; /** * The read-only **\`pictureInPictureEnabled\`** property of the available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ readonly pictureInPictureEnabled: boolean; /** * The **\`plugins\`** read-only property of the containing one or more HTMLEmbedElements representing the An HTMLCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) */ readonly plugins: HTMLCollectionOf; /** * The **\`Document.readyState\`** property describes the loading state of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) */ readonly readyState: DocumentReadyState; /** * The **\`Document.referrer\`** property returns the URI of the page that linked to this page. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) */ readonly referrer: string; /** * **\`Document.rootElement\`** returns the Element that is the root element of the document if it is an documents. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) */ readonly rootElement: SVGSVGElement | null; /** * The **\`scripts\`** property of the Document interface returns a list of the script elements in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) */ readonly scripts: HTMLCollectionOf; /** * The **\`scrollingElement\`** read-only property of the scrolls the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ readonly scrollingElement: Element | null; /** * The \`timeline\` readonly property of the Document interface represents the default timeline of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ readonly timeline: DocumentTimeline; /** * The **\`document.title\`** property gets or sets the current title of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) */ title: string; /** * The **\`Document.visibilityState\`** read-only property returns the visibility of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ readonly visibilityState: DocumentVisibilityState; /** * The **\`Document.vlinkColor\`** property gets/sets the color of links that the user has visited in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) */ vlinkColor: string; /** * **\`Document.adoptNode()\`** transfers a node/dom from another Document into the method's document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) */ adoptNode(node: T): T; /** @deprecated */ captureEvents(): void; /** * The **\`caretPositionFromPoint()\`** method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint) */ caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** * The **\`Document.clear()\`** method does nothing, but doesn't raise any error. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) */ clear(): void; /** * The **\`Document.close()\`** method finishes writing to a document, opened with Document.open(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) */ close(): void; /** * The **\`Document.createAttribute()\`** method creates a new attribute node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** * The **\`Document.createAttributeNS()\`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** * **\`createCDATASection()\`** creates a new CDATA section node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) */ createCDATASection(data: string): CDATASection; /** * **\`createComment()\`** creates a new comment node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) */ createComment(data: string): Comment; /** * Creates a new empty DocumentFragment into which DOM nodes can be added to build an offscreen DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) */ createDocumentFragment(): DocumentFragment; /** * In an HTML document, the **\`document.createElement()\`** method creates the HTML element specified by \`localName\`, or an HTMLUnknownElement if \`localName\` isn't recognized. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Creates an element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; createElementNS(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; /** * Creates an event of the type specified. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ 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: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent; 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: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent; createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent; 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: "TextEvent"): TextEvent; createEvent(eventInterface: "ToggleEvent"): ToggleEvent; 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; /** * The **\`Document.createNodeIterator()\`** method returns a new \`NodeIterator\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** * \`createProcessingInstruction()\` generates a new processing instruction node and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** * The **\`Document.createRange()\`** method returns a new \`\`\`js-nolint createRange() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) */ createRange(): Range; /** * Creates a new Text node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) */ createTextNode(data: string): Text; /** * The **\`Document.createTreeWalker()\`** creator method returns a newly created TreeWalker object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * The **\`execCommand\`** method implements multiple different commands. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** * The Document method **\`exitFullscreen()\`** requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) */ exitFullscreen(): Promise; /** * The **\`exitPictureInPicture()\`** method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ exitPictureInPicture(): Promise; /** * The **\`exitPointerLock()\`** method of the Document interface asynchronously releases a pointer lock previously requested through Element.requestPointerLock. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ exitPointerLock(): void; getElementById(elementId: string): HTMLElement | null; /** * The **\`getElementsByClassName\`** method of of all child elements which have all of the given class name(s). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * The **\`getElementsByName()\`** method of the Document object returns a NodeList Collection of elements with a given \`name\` attribute in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) */ getElementsByName(elementName: string): NodeListOf; /** * The **\`getElementsByTagName\`** method of The complete document is searched, including the root node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * Returns a list of elements with the given tag name belonging to the given namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * The **\`getSelection()\`** method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) */ getSelection(): Selection | null; /** * The **\`hasFocus()\`** method of the Document interface returns a boolean value indicating whether the document or any element inside the document has focus. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) */ hasFocus(): boolean; /** * The **\`hasStorageAccess()\`** method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ hasStorageAccess(): Promise; /** * The Document object's **\`importNode()\`** method creates a copy of a inserted into the current document later. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ importNode(node: T, options?: boolean | ImportNodeOptions): T; /** * The **\`Document.open()\`** method opens a document for This does come with some side effects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) */ open(unused1?: string, unused2?: string): Document; open(url: string | URL, name: string, features: string): WindowProxy | null; /** * The **\`Document.queryCommandEnabled()\`** method reports whether or not the specified editor command is enabled by the browser. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) */ queryCommandEnabled(commandId: string): boolean; /** @deprecated */ queryCommandIndeterm(commandId: string): boolean; /** * The **\`queryCommandState()\`** method will tell you if the current selection has a certain Document.execCommand() command applied. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) */ queryCommandState(commandId: string): boolean; /** * The **\`Document.queryCommandSupported()\`** method reports whether or not the specified editor command is supported by the browser. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) */ queryCommandSupported(commandId: string): boolean; /** @deprecated */ queryCommandValue(commandId: string): string; /** @deprecated */ releaseEvents(): void; /** * The **\`requestStorageAccess()\`** method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ requestStorageAccess(): Promise; /** * The **\`startViewTransition()\`** method of the Document interface starts a new same-document (SPA) view transition and returns a ViewTransition object to represent it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */ startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition; /** * The **\`write()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(). * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ write(...text: string[]): void; /** * The **\`writeln()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) */ writeln(...text: string[]): void; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): null; addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; /** * The **\`parseHTMLUnsafe()\`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ parseHTMLUnsafe(html: string): Document; }; /** * The **\`DocumentFragment\`** interface represents a minimal document object that has no parent. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) */ readonly activeElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ adoptedStyleSheets: CSSStyleSheet[]; /** * Returns document's fullscreen element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) */ readonly fullscreenElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ readonly pictureInPictureElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ readonly pointerLockElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */ readonly styleSheets: StyleSheetList; elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ getAnimations(): Animation[]; } /** * The **\`DocumentTimeline\`** interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** * The **\`DocumentType\`** interface represents a Node containing a doctype. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) */ interface DocumentType extends Node, ChildNode { /** * The read-only **\`name\`** property of the DocumentType returns the type of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ readonly name: string; readonly ownerDocument: Document; /** * The read-only **\`publicId\`** property of the DocumentType returns a formal identifier of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ readonly publicId: string; /** * The read-only **\`systemId\`** property of the DocumentType returns the URL of the associated DTD. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ readonly systemId: string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): null; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** * The **\`DragEvent\`** interface is a DOM event that represents a drag and drop interaction. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ interface DragEvent extends MouseEvent { /** * The **\`DragEvent.dataTransfer\`** read-only property holds the drag operation's data (as a DataTransfer object). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) */ readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { prototype: DragEvent; new(type: string, eventInitDict?: DragEventInit): DragEvent; }; /** * The \`DynamicsCompressorNode\` interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) */ interface DynamicsCompressorNode extends AudioNode { /** * The \`attack\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ readonly attack: AudioParam; /** * The \`knee\` property of the DynamicsCompressorNode interface is a k-rate AudioParam containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ readonly knee: AudioParam; /** * The \`ratio\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of change, in dB, needed in the input for a 1 dB change in the output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ readonly ratio: AudioParam; /** * The **\`reduction\`** read-only property of the DynamicsCompressorNode interface is a float representing the amount of gain reduction currently applied by the compressor to the signal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ readonly reduction: number; /** * The \`release\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ readonly release: AudioParam; /** * The \`threshold\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the decibel value above which the compression will start taking effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; }; /** * The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } /** * The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ interface EXT_color_buffer_float { } /** * The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_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; } /** * The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) */ interface EXT_frag_depth { } /** * The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } /** * The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ interface EXT_shader_texture_lod { } /** * The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ 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; } /** * The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ 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). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } /** * The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ 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 element objects (i.e., objects that represent elements) in a Document inherit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { /** * The **\`Element.attributes\`** property returns a live collection of all attribute nodes registered to the specified node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ readonly attributes: NamedNodeMap; /** * The **\`Element.classList\`** is a read-only property that returns a live DOMTokenList collection of the \`class\` attributes of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ get classList(): DOMTokenList; set classList(value: string); /** * The **\`className\`** property of the of the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) */ className: string; /** * The **\`clientHeight\`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ readonly clientHeight: number; /** * The **\`clientLeft\`** read-only property of the Element interface returns the width of the left border of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ readonly clientLeft: number; /** * The **\`clientTop\`** read-only property of the Element interface returns the width of the top border of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ readonly clientTop: number; /** * The **\`clientWidth\`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ readonly clientWidth: number; /** * The **\`currentCSSZoom\`** read-only property of the Element interface provides the 'effective' CSS \`zoom\` of an element, taking into account the zoom applied to the element and all its parent elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) */ readonly currentCSSZoom: number; /** * The **\`id\`** property of the Element interface represents the element's identifier, reflecting the **\`id\`** global attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) */ id: string; /** * The **\`innerHTML\`** property of the Element interface gets or sets the HTML or XML markup contained within the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ innerHTML: string; /** * The **\`Element.localName\`** read-only property returns the local part of the qualified name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) */ readonly localName: string; /** * The **\`Element.namespaceURI\`** read-only property returns the namespace URI of the element, or \`null\` if the element is not in a namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) */ readonly namespaceURI: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ onfullscreenchange: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ onfullscreenerror: ((this: Element, ev: Event) => any) | null; /** * The **\`outerHTML\`** attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ outerHTML: string; readonly ownerDocument: Document; /** * The **\`part\`** property of the Element interface represents the part identifier(s) of the element (i.e., set using the \`part\` attribute), returned as a DOMTokenList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ get part(): DOMTokenList; set part(value: string); /** * The **\`Element.prefix\`** read-only property returns the namespace prefix of the specified element, or \`null\` if no prefix is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) */ readonly prefix: string | null; /** * The **\`scrollHeight\`** read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ readonly scrollHeight: number; /** * The **\`scrollLeft\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ scrollLeft: number; /** * The **\`scrollTop\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ scrollTop: number; /** * The **\`scrollWidth\`** read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ readonly scrollWidth: number; /** * The \`Element.shadowRoot\` read-only property represents the shadow root hosted by the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * The **\`slot\`** property of the Element interface returns the name of the shadow DOM slot the element is inserted in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) */ slot: string; /** * The **\`tagName\`** read-only property of the Element interface returns the tag name of the element on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) */ readonly tagName: string; /** * The **\`Element.attachShadow()\`** method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) */ attachShadow(init: ShadowRootInit): ShadowRoot; /** * The **\`checkVisibility()\`** method of the Element interface checks whether the element is visible. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ checkVisibility(options?: CheckVisibilityOptions): boolean; /** * The **\`closest()\`** method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) */ closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: K): MathMLElementTagNameMap[K] | null; closest(selectors: string): E | null; /** * The **\`computedStyleMap()\`** method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ computedStyleMap(): StylePropertyMapReadOnly; /** * The **\`getAttribute()\`** method of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) */ getAttribute(qualifiedName: string): string | null; /** * The **\`getAttributeNS()\`** method of the Element interface returns the string value of the attribute with the specified namespace and name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) */ getAttributeNS(namespace: string | null, localName: string): string | null; /** * The **\`getAttributeNames()\`** method of the array. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) */ getAttributeNames(): string[]; /** * Returns the specified attribute of the specified element, as an Attr node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ getAttributeNode(qualifiedName: string): Attr | null; /** * The **\`getAttributeNodeNS()\`** method of the Element interface returns the namespaced Attr node of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; /** * The **\`Element.getBoundingClientRect()\`** method returns a position relative to the viewport. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ getBoundingClientRect(): DOMRect; /** * The **\`getClientRects()\`** method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ getClientRects(): DOMRectList; /** * The Element method **\`getElementsByClassName()\`** returns a live specified class name or names. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * The **\`Element.getElementsByTagName()\`** method returns a live All descendants of the specified element are searched, but not the element itself. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * The **\`Element.getElementsByTagNameNS()\`** method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf; /** * The **\`getHTML()\`** method of the Element interface is used to serialize an element's DOM to an HTML string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML) */ getHTML(options?: GetHTMLOptions): string; /** * The **\`Element.hasAttribute()\`** method returns a **Boolean** value indicating whether the specified element has the specified attribute or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) */ hasAttribute(qualifiedName: string): boolean; /** * The **\`hasAttributeNS()\`** method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** * The **\`hasAttributes()\`** method of the Element interface returns a boolean value indicating whether the current element has any attributes or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) */ hasAttributes(): boolean; /** * The **\`hasPointerCapture()\`** method of the pointer capture for the pointer identified by the given pointer ID. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ hasPointerCapture(pointerId: number): boolean; /** * The **\`insertAdjacentElement()\`** method of the relative to the element it is invoked upon. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ insertAdjacentElement(where: InsertPosition, element: Element): Element | null; /** * The **\`insertAdjacentHTML()\`** method of the the resulting nodes into the DOM tree at a specified position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ insertAdjacentHTML(position: InsertPosition, string: string): void; /** * The **\`insertAdjacentText()\`** method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ insertAdjacentText(where: InsertPosition, data: string): void; /** * The **\`matches()\`** method of the Element interface tests whether the element would be selected by the specified CSS selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ matches(selectors: string): boolean; /** * The **\`releasePointerCapture()\`** method of the previously set for a specific (PointerEvent) _pointer_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ releasePointerCapture(pointerId: number): void; /** * The Element method **\`removeAttribute()\`** removes the attribute with the specified name from the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) */ removeAttribute(qualifiedName: string): void; /** * The **\`removeAttributeNS()\`** method of the If you are working with HTML and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) */ removeAttributeNS(namespace: string | null, localName: string): void; /** * The **\`removeAttributeNode()\`** method of the Element interface removes the specified Attr node from the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ removeAttributeNode(attr: Attr): Attr; /** * The **\`Element.requestFullscreen()\`** method issues an asynchronous request to make the element be displayed in fullscreen mode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) */ requestFullscreen(options?: FullscreenOptions): Promise; /** * The **\`requestPointerLock()\`** method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ requestPointerLock(options?: PointerLockOptions): Promise; /** * The **\`scroll()\`** method of the Element interface scrolls the element to a particular set of coordinates inside a given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; /** * The **\`scrollBy()\`** method of the Element interface scrolls an element by the given amount. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; /** * The Element interface's **\`scrollIntoView()\`** method scrolls the element's ancestor containers such that the element on which \`scrollIntoView()\` is called is visible to the user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; /** * The **\`scrollTo()\`** method of the Element interface scrolls to a particular set of coordinates inside a given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** * The **\`setAttribute()\`** method of the Element interface sets the value of an attribute on the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) */ setAttribute(qualifiedName: string, value: string): void; /** * \`setAttributeNS\` adds a new attribute or changes the value of an attribute with the given namespace and name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; /** * The **\`setAttributeNode()\`** method of the Element interface adds a new Attr node to the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ setAttributeNode(attr: Attr): Attr | null; /** * The **\`setAttributeNodeNS()\`** method of the Element interface adds a new namespaced Attr node to an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; /** * The **\`setHTMLUnsafe()\`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ setHTMLUnsafe(html: string): void; /** * The **\`setPointerCapture()\`** method of the _capture target_ of future pointer events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; /** * The **\`toggleAttribute()\`** method of the present and adding it if it is not present) on the given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ toggleAttribute(qualifiedName: string, force?: boolean): boolean; /** * @deprecated This is a legacy alias of \`matches\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ webkitMatchesSelector(selectors: string): boolean; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */ readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } interface ElementContentEditable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ contentEditable: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ enterKeyHint: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ inputMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ readonly isContentEditable: boolean; } /** * The **\`ElementInternals\`** interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ interface ElementInternals extends ARIAMixin { /** * The **\`form\`** read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) */ readonly form: HTMLFormElement | null; /** * The **\`labels\`** read-only property of the ElementInternals interface returns the labels associated with the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) */ readonly labels: NodeList; /** * The **\`shadowRoot\`** read-only property of the ElementInternals interface returns the ShadowRoot for this element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * The **\`states\`** read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */ readonly states: CustomStateSet; /** * The **\`validationMessage\`** read-only property of the ElementInternals interface returns the validation message for the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) */ readonly validationMessage: string; /** * The **\`validity\`** read-only property of the ElementInternals interface returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) */ readonly validity: ValidityState; /** * The **\`willValidate\`** read-only property of the ElementInternals interface returns \`true\` if the element is a submittable element that is a candidate for constraint validation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) */ readonly willValidate: boolean; /** * The **\`checkValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) */ checkValidity(): boolean; /** * The **\`reportValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) */ reportValidity(): boolean; /** * The **\`setFormValue()\`** method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** * The **\`setValidity()\`** method of the ElementInternals interface sets the validity of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) */ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; } declare var ElementInternals: { prototype: ElementInternals; new(): ElementInternals; }; /** * The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */ interface EncodedAudioChunk { /** * The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */ readonly byteLength: number; /** * The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */ readonly duration: number | null; /** * The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */ readonly timestamp: number; /** * The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */ readonly type: EncodedAudioChunkType; /** * The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedAudioChunk: { prototype: EncodedAudioChunk; new(init: EncodedAudioChunkInit): EncodedAudioChunk; }; /** * The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** * The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ readonly byteLength: number; /** * The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ readonly duration: number | null; /** * The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ readonly timestamp: number; /** * The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** * The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { prototype: EncodedVideoChunk; new(init: EncodedVideoChunkInit): EncodedVideoChunk; }; /** * The **\`ErrorEvent\`** interface represents events providing information related to errors in scripts or in files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { /** * The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; /** * The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; /** * The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; /** * The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; /** * The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** * The **\`Event\`** interface represents an event which takes place on an \`EventTarget\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) */ interface Event { /** * The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) */ readonly bubbles: boolean; /** * The **\`cancelBubble\`** property of the Event interface is deprecated. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) */ cancelBubble: boolean; /** * The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) */ readonly cancelable: boolean; /** * The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) */ readonly composed: boolean; /** * The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) */ readonly currentTarget: EventTarget | null; /** * The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) */ readonly defaultPrevented: boolean; /** * The **\`eventPhase\`** read-only property of the being evaluated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) */ readonly eventPhase: number; /** * The **\`isTrusted\`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and \`false\` when the event was dispatched via The only exception is the \`click\` event, which initializes the \`isTrusted\` property to \`false\` in user agents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ readonly isTrusted: boolean; /** * The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) */ returnValue: boolean; /** * The deprecated **\`Event.srcElement\`** is an alias for the Event.target property. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) */ readonly srcElement: EventTarget | null; /** * The read-only **\`target\`** property of the dispatched. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) */ readonly target: EventTarget | null; /** * The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) */ readonly timeStamp: DOMHighResTimeStamp; /** * The **\`type\`** read-only property of the Event interface returns a string containing the event's type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) */ readonly type: string; /** * The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) */ composedPath(): EventTarget[]; /** * The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent(). * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** * The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) */ preventDefault(): void; /** * The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) */ stopImmediatePropagation(): void; /** * The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) */ 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; }; /** * The **\`EventCounts\`** interface of the Performance API provides the number of events that have been dispatched for each event type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ 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; } /** * The **\`EventSource\`** interface is web content's interface to server-sent events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ interface EventSource extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ onerror: ((this: EventSource, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ onopen: ((this: EventSource, ev: Event) => any) | null; /** * The **\`readyState\`** read-only property of the connection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) */ readonly readyState: number; /** * The **\`url\`** read-only property of the URL of the source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) */ readonly url: string; /** * The **\`withCredentials\`** read-only property of the the \`EventSource\` object was instantiated with CORS credentials set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) */ readonly withCredentials: boolean; /** * The **\`close()\`** method of the EventSource interface closes the connection, if one is made, and sets the \`\`\`js-nolint close() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) */ close(): void; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; addEventListener(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(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; }; /** * The **\`EventTarget\`** interface is implemented by objects that can receive events and may have listeners for them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) */ interface EventTarget { /** * The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ dispatchEvent(event: Event): boolean; /** * The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) */ 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; }; /** * The **\`File\`** interface provides information about files and allows JavaScript in a web page to access their content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) */ interface File extends Blob { /** * The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ readonly lastModified: number; /** * The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ readonly name: string; /** * The **\`webkitRelativePath\`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its \`webkitdirectory\` attribute set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** * The **\`FileList\`** interface represents an object of this type returned by the \`files\` property of the HTML input element; this lets you access the list of files selected with the \`\` element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) */ interface FileList { /** * The **\`length\`** read-only property of the FileList interface returns the number of files in the \`FileList\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ readonly length: number; /** * The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent; "error": ProgressEvent; "load": ProgressEvent; "loadend": ProgressEvent; "loadstart": ProgressEvent; "progress": ProgressEvent; } /** * The **\`FileReader\`** interface lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) */ interface FileReader extends EventTarget { /** * The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ readonly error: DOMException | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ onload: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; /** * The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; /** * The **\`result\`** read-only property of the FileReader interface returns the file's contents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ readonly result: string | ArrayBuffer | null; /** * The **\`abort()\`** method of the FileReader interface aborts the read operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ abort(): void; /** * The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; /** * The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ readAsBinaryString(blob: Blob): void; /** * The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; /** * The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ readAsText(blob: Blob, encoding?: string): void; readonly EMPTY: 0; readonly LOADING: 1; readonly DONE: 2; addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The File and Directory Entries API interface **\`FileSystem\`** is used to represent a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ interface FileSystem { /** * The read-only **\`name\`** property of the string is unique among all file systems currently exposed by the File and Directory Entries API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ readonly name: string; /** * The read-only **\`root\`** property of the object representing the root directory of the file system, for use with the File and Directory Entries API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; /** * The **\`FileSystemDirectoryEntry\`** interface of the File and Directory Entries API represents a directory in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ interface FileSystemDirectoryEntry extends FileSystemEntry { /** * The FileSystemDirectoryEntry interface's method **\`createReader()\`** returns a the directory. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ createReader(): FileSystemDirectoryReader; /** * The FileSystemDirectoryEntry interface's method **\`getDirectory()\`** returns a somewhere within the directory subtree rooted at the directory on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; /** * The FileSystemDirectoryEntry interface's method **\`getFile()\`** returns a within the directory subtree rooted at the directory on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryEntry: { prototype: FileSystemDirectoryEntry; new(): FileSystemDirectoryEntry; }; /** * The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; /** * The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; /** * The **\`getFileHandle()\`** method of the directory the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; /** * The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; /** * The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; /** * The \`FileSystemDirectoryReader\` interface of the File and Directory Entries API lets you access the FileSystemFileEntry-based objects (generally FileSystemFileEntry or FileSystemDirectoryEntry) representing each entry in a directory. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ interface FileSystemDirectoryReader { /** * The FileSystemDirectoryReader interface's **\`readEntries()\`** method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; /** * The **\`FileSystemEntry\`** interface of the File and Directory Entries API represents a single entry in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ interface FileSystemEntry { /** * The read-only **\`filesystem\`** property of the FileSystemEntry interface contains a resides. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ readonly filesystem: FileSystem; /** * The read-only **\`fullPath\`** property of the FileSystemEntry interface returns a string specifying the full, absolute path from the file system's root to the file represented by the entry. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ readonly fullPath: string; /** * The read-only **\`isDirectory\`** property of the FileSystemEntry interface is \`true\` if the entry represents a directory (meaning it's a FileSystemDirectoryEntry) and \`false\` if it's not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ readonly isDirectory: boolean; /** * The read-only **\`isFile\`** property of the FileSystemEntry interface is \`true\` if the entry represents a file (meaning it's a FileSystemFileEntry) and \`false\` if it's not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ readonly isFile: boolean; /** * The read-only **\`name\`** property of the FileSystemEntry interface returns a string specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the FileSystemEntry.fullPath property). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ readonly name: string; /** * The FileSystemEntry interface's method **\`getParent()\`** obtains a \`\`\`js-nolint getParent(successCallback, errorCallback) getParent(successCallback) \`\`\` - \`successCallback\` - : A function which is called when the parent directory entry has been retrieved. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; /** * The **\`FileSystemFileEntry\`** interface of the File and Directory Entries API represents a file in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ interface FileSystemFileEntry extends FileSystemEntry { /** * The FileSystemFileEntry interface's method **\`file()\`** returns a the directory entry. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** * The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; /** * The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ createWritable(options?: FileSystemCreateWritableOptions): Promise; /** * The **\`getFile()\`** method of the If the file on disk changes or is removed after this method is called, the returned \`\`\`js-nolint getFile() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ getFile(): Promise; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** * The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) */ interface FileSystemHandle { /** * The **\`kind\`** read-only property of the \`'file'\` if the associated entry is a file or \`'directory'\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ readonly kind: FileSystemHandleKind; /** * The **\`name\`** read-only property of the handle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ readonly name: string; /** * The **\`isSameEntry()\`** method of the \`\`\`js-nolint isSameEntry(fileSystemHandle) \`\`\` - FileSystemHandle - : The \`FileSystemHandle\` to match against the handle on which the method is invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** * The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) */ interface FileSystemWritableFileStream extends WritableStream { /** * The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ seek(position: number): Promise; /** * The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ truncate(size: number): Promise; /** * The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ write(data: FileSystemWriteChunkType): Promise; } declare var FileSystemWritableFileStream: { prototype: FileSystemWritableFileStream; new(): FileSystemWritableFileStream; }; /** * The **\`FocusEvent\`** interface represents focus-related events, including Element/focus_event, Element/blur_event, Element/focusin_event, and Element/focusout_event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ interface FocusEvent extends UIEvent { /** * The **\`relatedTarget\`** read-only property of the FocusEvent interface is the secondary target, depending on the type of event:
Event name target relatedTarget
Element/blur_event The EventTarget losing focus The EventTarget receiving focus (if any).
Element/focus_event The EventTarget receiving focus The EventTarget losing focus (if any)
Element/focusin_event The EventTarget receiving focus The EventTarget losing focus (if any)
Element/focusout_event The EventTarget losing focus The EventTarget receiving focus (if any)
Note that many elements can't have focus, which is a common reason for \`relatedTarget\` to be \`null\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { prototype: FocusEvent; new(type: string, eventInitDict?: FocusEventInit): FocusEvent; }; /** * The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ interface FontFace { /** * The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ ascentOverride: string; /** * The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ descentOverride: string; /** * The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ display: FontDisplay; /** * The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ family: string; /** * The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ featureSettings: string; /** * The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ lineGapOverride: string; /** * The **\`loaded\`** read-only property of the FontFace interface returns a Promise that resolves with the current \`FontFace\` object when the font specified in the object's constructor is done loading or rejects with a \`SyntaxError\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ readonly loaded: Promise; /** * The **\`status\`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of \`'unloaded'\`, \`'loading'\`, \`'loaded'\`, or \`'error'\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ readonly status: FontFaceLoadStatus; /** * The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ stretch: string; /** * The **\`style\`** property of the FontFace interface retrieves or sets the font's style. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ style: string; /** * The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; /** * The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** * The **\`load()\`** method of the FontFace interface requests and loads a font whose \`source\` was specified as a URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ load(): Promise; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": FontFaceSetLoadEvent; "loadingdone": FontFaceSetLoadEvent; "loadingerror": FontFaceSetLoadEvent; } /** * The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** * The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** * The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ readonly status: FontFaceSetLoadStatus; /** * The \`check()\` method of the FontFaceSet returns \`true\` if you can render some text using the given font specification without attempting to use any fonts in this \`FontFaceSet\` that are not yet fully loaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** * The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ load(font: string, text?: string): Promise; forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void; addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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(): FontFaceSet; }; /** * The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ interface FontFaceSetLoadEvent extends Event { /** * The **\`fontfaces\`** read-only property of the An array of FontFace instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ readonly fontfaces: ReadonlyArray; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ readonly fonts: FontFaceSet; } /** * The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) */ interface FormData { /** * The **\`append()\`** method of the FormData interface appends a new value onto an existing key inside a \`FormData\` object, or adds the key if it does not already exist. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ append(name: string, value: string | Blob): void; append(name: string, value: string): void; append(name: string, blobValue: Blob, filename?: string): void; /** * The **\`delete()\`** method of the FormData interface deletes a key and its value(s) from a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ delete(name: string): void; /** * The **\`get()\`** method of the FormData interface returns the first value associated with a given key from within a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ get(name: string): FormDataEntryValue | null; /** * The **\`getAll()\`** method of the FormData interface returns all the values associated with a given key from within a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ getAll(name: string): FormDataEntryValue[]; /** * The **\`has()\`** method of the FormData interface returns whether a \`FormData\` object contains a certain key. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ has(name: string): boolean; /** * The **\`set()\`** method of the FormData interface sets a new value for an existing key inside a \`FormData\` object, or adds the key/value if it does not already exist. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ set(name: string, value: string | Blob): void; set(name: string, value: string): void; set(name: string, blobValue: Blob, filename?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; }; /** * The **\`FormDataEvent\`** interface represents a \`formdata\` event — such an event is fired on an HTMLFormElement object after the entry list representing the form's data is constructed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ interface FormDataEvent extends Event { /** * The \`formData\` read-only property of the FormDataEvent interface contains the FormData object representing the data contained in the form when the event was fired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) */ readonly formData: FormData; } declare var FormDataEvent: { prototype: FormDataEvent; new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** * The **\`FragmentDirective\`** interface is an object exposed to allow code to check whether or not a browser supports text fragments. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective) */ interface FragmentDirective { } declare var FragmentDirective: { prototype: FragmentDirective; new(): FragmentDirective; }; /** * The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError) */ interface GPUError { /** * The **\`message\`** read-only property of the A string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */ readonly message: string; } /** * The \`GainNode\` interface represents a change in volume. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */ interface GainNode extends AudioNode { /** * The \`gain\` property of the GainNode interface is an a-rate AudioParam representing the amount of gain to apply. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ readonly gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(context: BaseAudioContext, options?: GainOptions): GainNode; }; /** * The **\`Gamepad\`** interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ interface Gamepad { /** * The **\`Gamepad.axes\`** property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g., analog thumb sticks). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ readonly axes: ReadonlyArray; /** * The **\`buttons\`** property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ readonly buttons: ReadonlyArray; /** * The **\`Gamepad.connected\`** property of the still connected to the system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ readonly connected: boolean; /** * The **\`Gamepad.id\`** property of the Gamepad interface returns a string containing some information about the controller. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ readonly id: string; /** * The **\`Gamepad.index\`** property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ readonly index: number; /** * The **\`Gamepad.mapping\`** property of the remapped the controls on the device to a known layout. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ readonly mapping: GamepadMappingType; /** * The **\`Gamepad.timestamp\`** property of the representing the last time the data for this gamepad was updated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; /** * The **\`vibrationActuator\`** read-only property of the Gamepad interface returns a GamepadHapticActuator object, which represents haptic feedback hardware available on the controller. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator) */ readonly vibrationActuator: GamepadHapticActuator; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * The **\`GamepadButton\`** interface defines an individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ interface GamepadButton { /** * The **\`GamepadButton.pressed\`** property of the the button is currently pressed (\`true\`) or unpressed (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ readonly pressed: boolean; /** * The **\`touched\`** property of the a button capable of detecting touch is currently touched (\`true\`) or not touched (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ readonly touched: boolean; /** * The **\`GamepadButton.value\`** property of the current state of analog buttons on many modern gamepads, such as the triggers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected_event and Window.gamepaddisconnected_event are fired in response to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ interface GamepadEvent extends Event { /** * The **\`GamepadEvent.gamepad\`** property of the **GamepadEvent interface** returns a Gamepad object, providing access to the associated gamepad data for fired A Gamepad object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ readonly gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** * The **\`GamepadHapticActuator\`** interface of the Gamepad API represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { /** * The **\`playEffect()\`** method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) */ playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; /** * The **\`reset()\`** method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset) */ reset(): Promise; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ readonly writable: WritableStream; } /** * The **\`Geolocation\`** interface represents an object able to obtain the position of the device programmatically. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) */ interface Geolocation { /** * The **\`clearWatch()\`** method of the Geolocation interface is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ clearWatch(watchId: number): void; /** * The **\`getCurrentPosition()\`** method of the Geolocation interface is used to get the current position of the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; /** * The **\`watchPosition()\`** method of the Geolocation interface is used to register a handler function that will be called automatically each time the position of the device changes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; /** * The **\`GeolocationCoordinates\`** interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) */ interface GeolocationCoordinates { /** * The **\`accuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the GeolocationCoordinates.latitude and GeolocationCoordinates.longitude properties expressed in meters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ readonly accuracy: number; /** * The **\`altitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ readonly altitude: number | null; /** * The **\`altitudeAccuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the \`altitude\` expressed in meters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ readonly altitudeAccuracy: number | null; /** * The **\`heading\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the direction in which the device is traveling. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ readonly heading: number | null; /** * The **\`latitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the latitude of the position in decimal degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ readonly latitude: number; /** * The **\`longitude\`** read-only property of the GeolocationCoordinates interface is a number which represents the longitude of a geographical position, specified in decimal degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ readonly longitude: number; /** * The **\`speed\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the velocity of the device in meters per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ readonly speed: number | null; /** * The **\`toJSON()\`** method of the GeolocationCoordinates interface is a Serialization; it returns a JSON representation of the GeolocationCoordinates object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ toJSON(): any; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** * The **\`GeolocationPosition\`** interface represents the position of the concerned device at a given time. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) */ interface GeolocationPosition { /** * The **\`coords\`** read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ readonly coords: GeolocationCoordinates; /** * The **\`timestamp\`** read-only property of the GeolocationPosition interface represents the date and time that the position was acquired by the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ readonly timestamp: EpochTimeStamp; /** * The **\`toJSON()\`** method of the GeolocationPosition interface is a Serialization; it returns a JSON representation of the GeolocationPosition object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ toJSON(): any; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; /** * The **\`GeolocationPositionError\`** interface represents the reason of an error occurring when using the geolocating device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ interface GeolocationPositionError { /** * The **\`code\`** read-only property of the GeolocationPositionError interface is an \`unsigned short\` representing the error code. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ readonly code: number; /** * The **\`message\`** read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ 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": PointerEvent; "beforeinput": InputEvent; "beforematch": Event; "beforetoggle": ToggleEvent; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": PointerEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextlost": Event; "contextmenu": PointerEvent; "contextrestored": Event; "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; "pointerrawupdate": Event; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; "reset": Event; "resize": UIEvent; "scroll": Event; "scrollend": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; "select": Event; "selectionchange": Event; "selectstart": Event; "slotchange": Event; "stalled": Event; "submit": SubmitEvent; "suspend": Event; "timeupdate": Event; "toggle": ToggleEvent; "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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforematch_event) */ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) */ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationiteration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationstart\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`ontransitionend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } /** * The **\`HTMLAllCollection\`** interface represents a collection of _all_ of the document's elements, accessible by index (like an array) and by the element's \`id\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **\`HTMLAllCollection.length\`** property returns the number of items in this HTMLAllCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **\`item()\`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its \`id\` or \`name\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **\`namedItem()\`** method of the HTMLAllCollection interface returns the first Element in the collection whose \`id\` or \`name\` attribute matches the specified name, or \`null\` if no element matches. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; }; /** * The **\`HTMLAnchorElement\`** interface represents hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** @deprecated */ charset: string; /** @deprecated */ coords: string; /** * The **\`HTMLAnchorElement.download\`** property is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ download: string; /** * The **\`hreflang\`** property of the HTMLAnchorElement interface is a string that is the language of the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) */ hreflang: string; /** @deprecated */ name: string; /** * The **\`ping\`** property of the HTMLAnchorElement interface is a space-separated list of URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ ping: string; /** * The **\`HTMLAnchorElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the A string; one of the following: - \`no-referrer\` - : The Referer header will be omitted entirely. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ referrerPolicy: string; /** * The **\`HTMLAnchorElement.rel\`** property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) */ rel: string; /** * The **\`HTMLAnchorElement.relList\`** read-only property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ get relList(): DOMTokenList; set relList(value: string); /** @deprecated */ rev: string; /** @deprecated */ shape: string; /** * The **\`target\`** property of the HTMLAnchorElement interface is a string that indicates where to display the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) */ target: string; /** * The **\`text\`** property of the HTMLAnchorElement represents the text inside the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) */ text: string; /** * The **\`type\`** property of the HTMLAnchorElement interface is a string that indicates the MIME type of the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ type: string; addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`HTMLAreaElement\`** interface provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of area elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * The **\`alt\`** property of the HTMLAreaElement interface specifies the text of the hyperlink, defining the textual label for an image map's link. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) */ alt: string; /** * The **\`coords\`** property of the HTMLAreaElement interface specifies the coordinates of the element's shape as a list of floating-point numbers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) */ coords: string; /** * The **\`download\`** property of the HTMLAreaElement interface is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ download: string; /** @deprecated */ noHref: boolean; /** * The **\`ping\`** property of the HTMLAreaElement interface is a space-separated list of URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ ping: string; /** * The **\`HTMLAreaElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ referrerPolicy: string; /** * The **\`HTMLAreaElement.rel\`** property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** * The **\`HTMLAreaElement.relList\`** read-only property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ get relList(): DOMTokenList; set relList(value: string); /** * The **\`shape\`** property of the HTMLAreaElement interface specifies the shape of an image map area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) */ shape: string; /** * The **\`target\`** property of the HTMLAreaElement interface is a string that indicates where to display the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) */ target: string; addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`HTMLAudioElement\`** interface provides access to the properties of audio elements, as well as methods to manipulate them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) */ interface HTMLAudioElement extends HTMLMediaElement { addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`HTMLBRElement\`** interface represents an HTML line break element (br). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement) */ interface HTMLBRElement extends HTMLElement { /** @deprecated */ clear: string; addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`HTMLBaseElement\`** interface contains the base URI for a document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement) */ interface HTMLBaseElement extends HTMLElement { /** * The **\`href\`** property of the HTMLBaseElement interface contains a string that is the URL to use as the base for relative URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href) */ href: string; /** * The \`target\` property of the HTMLBaseElement interface is a string that represents the default target tab to show the resulting output for hyperlinks and form elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target) */ target: string; addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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 { } /** * The **\`HTMLBodyElement\`** interface provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating body elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement) */ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ aLink: string; /** @deprecated */ background: string; /** @deprecated */ bgColor: string; /** @deprecated */ link: string; /** @deprecated */ text: string; /** @deprecated */ vLink: string; addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(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; }; /** * The **\`HTMLButtonElement\`** interface provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating button elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { /** * The **\`HTMLButtonElement.disabled\`** property indicates whether the control is disabled, meaning that it does not accept any clicks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */ disabled: boolean; /** * The **\`form\`** read-only property of the HTMLButtonElement interface returns an HTMLFormElement object that owns this button, or \`null\` if this button is not owned by any form. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form) */ readonly form: HTMLFormElement | null; /** * The **\`formAction\`** property of the HTMLButtonElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction) */ formAction: string; /** * The **\`formEnctype\`** property of the HTMLButtonElement interface is the MIME_type of the content sent to the server when the form is submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype) */ formEnctype: string; /** * The **\`formMethod\`** property of the HTMLButtonElement interface is the HTTP method used to submit the form if the button element is the control that submits the form. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod) */ formMethod: string; /** * The **\`formNoValidate\`** property of the HTMLButtonElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the button. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate) */ formNoValidate: boolean; /** * The **\`formTarget\`** property of the HTMLButtonElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget) */ formTarget: string; /** * The **\`HTMLButtonElement.labels\`** read-only property returns a A NodeList containing the \`