(function(){"use strict";var cTe,dTe,uTe,pTe;class z7e{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?JL.isErrorNoTelemetry(v)?new JL(v.message+` `+v.stack):new Error(v.message+` `+v.stack):v},0)}}emit(v){this.listeners.forEach(x=>{x(v)})}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}}const B7e=new z7e;function pB(_){G7e(_)||B7e.onUnexpectedError(_)}function eQ(_){if(_ instanceof Error){const{name:v,message:x,cause:W}=_,$=_.stacktrace||_.stack;return{$isError:!0,name:v,message:x,stack:$,noTelemetry:JL.isErrorNoTelemetry(_),cause:W?eQ(W):void 0,code:_.code}}return _}const tQ="Canceled";function G7e(_){return _ instanceof Xye?!0:_ instanceof Error&&_.name===tQ&&_.message===tQ}class Xye extends Error{constructor(){super(tQ),this.name=this.message}}class JL extends Error{constructor(v){super(v),this.name="CodeExpectedError"}static fromError(v){if(v instanceof JL)return v;const x=new JL;return x.message=v.message,x.stack=v.stack,x}static isErrorNoTelemetry(v){return v.name==="CodeExpectedError"}}class I_ extends Error{constructor(v){super(v||"An unexpected bug occurred."),Object.setPrototypeOf(this,I_.prototype)}}function V7e(_,v="Unreachable"){throw new Error(v)}function j7e(_,v="unexpected state"){if(!_)throw typeof v=="string"?new I_(`Assertion Failed: ${v}`):v}function fB(_){if(!_()){debugger;_(),pB(new I_("Assertion Failed"))}}function Yye(_,v){let x=0;for(;x<_.length-1;){const W=_[x],$=_[x+1];if(!v(W,$))return!1;x++}return!0}function U7e(_){return typeof _=="string"}function H7e(_){return!!_&&typeof _[Symbol.iterator]=="function"}var mB;(function(_){function v(Ln){return!!Ln&&typeof Ln=="object"&&typeof Ln[Symbol.iterator]=="function"}_.is=v;const x=Object.freeze([]);function W(){return x}_.empty=W;function*$(Ln){yield Ln}_.single=$;function _e(Ln){return v(Ln)?Ln:$(Ln)}_.wrap=_e;function Le(Ln){return Ln||x}_.from=Le;function*Ke(Ln){for(let Li=Ln.length-1;Li>=0;Li--)yield Ln[Li]}_.reverse=Ke;function se(Ln){return!Ln||Ln[Symbol.iterator]().next().done===!0}_.isEmpty=se;function _t(Ln){return Ln[Symbol.iterator]().next().value}_.first=_t;function Ze(Ln,Li){let _o=0;for(const Vn of Ln)if(Li(Vn,_o++))return!0;return!1}_.some=Ze;function $e(Ln,Li){let _o=0;for(const Vn of Ln)if(!Li(Vn,_o++))return!1;return!0}_.every=$e;function Mn(Ln,Li){for(const _o of Ln)if(Li(_o))return _o}_.find=Mn;function*Bn(Ln,Li){for(const _o of Ln)Li(_o)&&(yield _o)}_.filter=Bn;function*Zn(Ln,Li){let _o=0;for(const Vn of Ln)yield Li(Vn,_o++)}_.map=Zn;function*jn(Ln,Li){let _o=0;for(const Vn of Ln)yield*Li(Vn,_o++)}_.flatMap=jn;function*Ji(...Ln){for(const Li of Ln)H7e(Li)?yield*Li:yield Li}_.concat=Ji;function To(Ln,Li,_o){let Vn=_o;for(const el of Ln)Vn=Li(Vn,el);return Vn}_.reduce=To;function Hn(Ln){let Li=0;for(const _o of Ln)Li++;return Li}_.length=Hn;function*hn(Ln,Li,_o=Ln.length){for(Li<-Ln.length&&(Li=0),Li<0&&(Li+=Ln.length),_o<0?_o+=Ln.length:_o>Ln.length&&(_o=Ln.length);Li<_o;Li++)yield Ln[Li]}_.slice=hn;function ma(Ln,Li=Number.POSITIVE_INFINITY){const _o=[];if(Li===0)return[_o,Ln];const Vn=Ln[Symbol.iterator]();for(let el=0;el1)throw new AggregateError(v,"Encountered errors while disposing of store");return Array.isArray(_)?[]:_}else if(_)return _.dispose(),_}function q7e(..._){return hB(()=>$ye(_))}class J7e{constructor(v){this._isDisposed=!1,this._fn=v}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 hB(_){return new J7e(_)}const NB=class NB{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{$ye(this._toDispose)}finally{this._toDispose.clear()}}add(v){if(!v||v===oN.None)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?NB.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(v),v}delete(v){if(v){if(v===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(v),v.dispose()}}};NB.DISABLE_DISPOSED_WARNING=!1;let A8=NB;const zQ=class zQ{constructor(){this._store=new A8,this._store}dispose(){this._store.dispose()}_register(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)}};zQ.None=Object.freeze({dispose(){}});let oN=zQ;const l2=class l2{constructor(v){this.element=v,this.next=l2.Undefined,this.prev=l2.Undefined}};l2.Undefined=new l2(void 0);let Ip=l2;class K7e{constructor(){this._first=Ip.Undefined,this._last=Ip.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Ip.Undefined}clear(){let v=this._first;for(;v!==Ip.Undefined;){const x=v.next;v.prev=Ip.Undefined,v.next=Ip.Undefined,v=x}this._first=Ip.Undefined,this._last=Ip.Undefined,this._size=0}unshift(v){return this._insert(v,!1)}push(v){return this._insert(v,!0)}_insert(v,x){const W=new Ip(v);if(this._first===Ip.Undefined)this._first=W,this._last=W;else if(x){const _e=this._last;this._last=W,W.prev=_e,_e.next=W}else{const _e=this._first;this._first=W,W.next=_e,_e.prev=W}this._size+=1;let $=!1;return()=>{$||($=!0,this._remove(W))}}shift(){if(this._first!==Ip.Undefined){const v=this._first.element;return this._remove(this._first),v}}pop(){if(this._last!==Ip.Undefined){const v=this._last.element;return this._remove(this._last),v}}_remove(v){if(v.prev!==Ip.Undefined&&v.next!==Ip.Undefined){const x=v.prev;x.next=v.next,v.next.prev=x}else v.prev===Ip.Undefined&&v.next===Ip.Undefined?(this._first=Ip.Undefined,this._last=Ip.Undefined):v.next===Ip.Undefined?(this._last=this._last.prev,this._last.next=Ip.Undefined):v.prev===Ip.Undefined&&(this._first=this._first.next,this._first.prev=Ip.Undefined);this._size-=1}*[Symbol.iterator](){let v=this._first;for(;v!==Ip.Undefined;)yield v.element,v=v.next}}const X7e=globalThis.performance.now.bind(globalThis.performance);class _B{static create(v){return new _B(v)}constructor(v){this._now=v===!1?Date.now:X7e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var nQ;(function(_){_.None=()=>oN.None;function v(hi,Bt){return Mn(hi,()=>{},0,void 0,!0,void 0,Bt)}_.defer=v;function x(hi){return(Bt,La=null,Zi)=>{let ia=!1,Ki;return Ki=hi(ic=>{if(!ia)return Ki?Ki.dispose():ia=!0,Bt.call(La,ic)},null,Zi),ia&&Ki.dispose(),Ki}}_.once=x;function W(hi,Bt){return _.once(_.filter(hi,Bt))}_.onceIf=W;function $(hi,Bt,La){return Ze((Zi,ia=null,Ki)=>hi(ic=>Zi.call(ia,Bt(ic)),null,Ki),La)}_.map=$;function _e(hi,Bt,La){return Ze((Zi,ia=null,Ki)=>hi(ic=>{Bt(ic),Zi.call(ia,ic)},null,Ki),La)}_.forEach=_e;function Le(hi,Bt,La){return Ze((Zi,ia=null,Ki)=>hi(ic=>Bt(ic)&&Zi.call(ia,ic),null,Ki),La)}_.filter=Le;function Ke(hi){return hi}_.signal=Ke;function se(...hi){return(Bt,La=null,Zi)=>{const ia=q7e(...hi.map(Ki=>Ki(ic=>Bt.call(La,ic))));return $e(ia,Zi)}}_.any=se;function _t(hi,Bt,La,Zi){let ia=La;return $(hi,Ki=>(ia=Bt(ia,Ki),ia),Zi)}_.reduce=_t;function Ze(hi,Bt){let La;const Zi={onWillAddFirstListener(){La=hi(ia.fire,ia)},onDidRemoveLastListener(){La==null||La.dispose()}},ia=new FE(Zi);return Bt==null||Bt.add(ia),ia.event}function $e(hi,Bt){return Bt instanceof Array?Bt.push(hi):Bt&&Bt.add(hi),hi}function Mn(hi,Bt,La=100,Zi=!1,ia=!1,Ki,ic){let lf,Om,DT,ji=0,cm;const KA={leakWarningThreshold:Ki,onWillAddFirstListener(){lf=hi(F8=>{ji++,Om=Bt(Om,F8),Zi&&!DT&&(rh.fire(Om),Om=void 0),cm=()=>{const f2=Om;Om=void 0,DT=void 0,(!Zi||ji>1)&&rh.fire(f2),ji=0},typeof La=="number"?(DT&&clearTimeout(DT),DT=setTimeout(cm,La)):DT===void 0&&(DT=null,queueMicrotask(cm))})},onWillRemoveListener(){ia&&ji>0&&(cm==null||cm())},onDidRemoveLastListener(){cm=void 0,lf.dispose()}},rh=new FE(KA);return ic==null||ic.add(rh),rh.event}_.debounce=Mn;function Bn(hi,Bt=0,La){return _.debounce(hi,(Zi,ia)=>Zi?(Zi.push(ia),Zi):[ia],Bt,void 0,!0,void 0,La)}_.accumulate=Bn;function Zn(hi,Bt=(Zi,ia)=>Zi===ia,La){let Zi=!0,ia;return Le(hi,Ki=>{const ic=Zi||!Bt(Ki,ia);return Zi=!1,ia=Ki,ic},La)}_.latch=Zn;function jn(hi,Bt,La){return[_.filter(hi,Bt,La),_.filter(hi,Zi=>!Bt(Zi),La)]}_.split=jn;function Ji(hi,Bt=!1,La=[],Zi){let ia=La.slice(),Ki=hi(Om=>{ia?ia.push(Om):lf.fire(Om)});Zi&&Zi.add(Ki);const ic=()=>{ia==null||ia.forEach(Om=>lf.fire(Om)),ia=null},lf=new FE({onWillAddFirstListener(){Ki||(Ki=hi(Om=>lf.fire(Om)),Zi&&Zi.add(Ki))},onDidAddFirstListener(){ia&&(Bt?setTimeout(ic):ic())},onDidRemoveLastListener(){Ki&&Ki.dispose(),Ki=null}});return Zi&&Zi.add(lf),lf.event}_.buffer=Ji;function To(hi,Bt){return(Zi,ia,Ki)=>{const ic=Bt(new hn);return hi(function(lf){const Om=ic.evaluate(lf);Om!==Hn&&Zi.call(ia,Om)},void 0,Ki)}}_.chain=To;const Hn=Symbol("HaltChainable");class hn{constructor(){this.steps=[]}map(Bt){return this.steps.push(Bt),this}forEach(Bt){return this.steps.push(La=>(Bt(La),La)),this}filter(Bt){return this.steps.push(La=>Bt(La)?La:Hn),this}reduce(Bt,La){let Zi=La;return this.steps.push(ia=>(Zi=Bt(Zi,ia),Zi)),this}latch(Bt=(La,Zi)=>La===Zi){let La=!0,Zi;return this.steps.push(ia=>{const Ki=La||!Bt(ia,Zi);return La=!1,Zi=ia,Ki?ia:Hn}),this}evaluate(Bt){for(const La of this.steps)if(Bt=La(Bt),Bt===Hn)break;return Bt}}function ma(hi,Bt,La=Zi=>Zi){const Zi=(...lf)=>ic.fire(La(...lf)),ia=()=>hi.on(Bt,Zi),Ki=()=>hi.removeListener(Bt,Zi),ic=new FE({onWillAddFirstListener:ia,onDidRemoveLastListener:Ki});return ic.event}_.fromNodeEventEmitter=ma;function so(hi,Bt,La=Zi=>Zi){const Zi=(...lf)=>ic.fire(La(...lf)),ia=()=>hi.addEventListener(Bt,Zi),Ki=()=>hi.removeEventListener(Bt,Zi),ic=new FE({onWillAddFirstListener:ia,onDidRemoveLastListener:Ki});return ic.event}_.fromDOMEventEmitter=so;function Zs(hi,Bt){let La;const Zi=new Promise((ia,Ki)=>{const ic=x(hi)(ia,null,Bt);La=()=>ic.dispose()});return Zi.cancel=La,Zi}_.toPromise=Zs;function Ln(hi,Bt){return hi(La=>Bt.fire(La))}_.forward=Ln;function Li(hi,Bt,La){return Bt(La),hi(Zi=>Bt(Zi))}_.runAndSubscribe=Li;class _o{constructor(Bt,La){this._observable=Bt,this._counter=0,this._hasChanged=!1;const Zi={onWillAddFirstListener:()=>{Bt.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Bt.removeObserver(this)}};this.emitter=new FE(Zi),La&&La.add(this.emitter)}beginUpdate(Bt){this._counter++}handlePossibleChange(Bt){}handleChange(Bt,La){this._hasChanged=!0}endUpdate(Bt){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Vn(hi,Bt){return new _o(hi,Bt).emitter.event}_.fromObservable=Vn;function el(hi){return(Bt,La,Zi)=>{let ia=0,Ki=!1;const ic={beginUpdate(){ia++},endUpdate(){ia--,ia===0&&(hi.reportChanges(),Ki&&(Ki=!1,Bt.call(La)))},handlePossibleChange(){},handleChange(){Ki=!0}};hi.addObserver(ic),hi.reportChanges();const lf={dispose(){hi.removeObserver(ic)}};return Zi instanceof A8?Zi.add(lf):Array.isArray(Zi)&&Zi.push(lf),lf}}_.fromObservableLight=el})(nQ||(nQ={}));const c2=class c2{constructor(v){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${v}_${c2._idPool++}`,c2.all.add(this)}start(v){this._stopWatch=new _B,this.listenerCount=v}stop(){if(this._stopWatch){const v=this._stopWatch.elapsed();this.durations.push(v),this.elapsedOverall+=v,this.invocationCount+=1,this._stopWatch=void 0}}};c2.all=new Set,c2._idPool=0;let rQ=c2,Y7e=-1;const MB=class MB{constructor(v,x,W=(MB._idPool++).toString(16).padStart(3,"0")){this._errorHandler=v,this.threshold=x,this.name=W,this._warnCountdown=0}dispose(){var v;(v=this._stacks)==null||v.clear()}check(v,x){const W=this.threshold;if(W<=0||x{const _e=this._stacks.get(v.value)||0;this._stacks.set(v.value,_e-1)}}getMostFrequentStack(){if(!this._stacks)return;let v,x=0;for(const[W,$]of this._stacks)(!v||x<$)&&(v=[W,$],x=$);return v}};MB._idPool=1;let iQ=MB;class oQ{static create(){const v=new Error;return new oQ(v.stack??"")}constructor(v){this.value=v}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class $7e extends Error{constructor(v,x){super(v),this.name="ListenerLeakError",this.stack=x}}class Q7e extends Error{constructor(v,x){super(v),this.name="ListenerRefusalError",this.stack=x}}class aQ{constructor(v){this.value=v}}const Z7e=2;class FE{constructor(v){var x,W,$,_e;this._size=0,this._options=v,this._leakageMon=(x=this._options)!=null&&x.leakWarningThreshold?new iQ((v==null?void 0:v.onListenerError)??pB,((W=this._options)==null?void 0:W.leakWarningThreshold)??Y7e):void 0,this._perfMon=($=this._options)!=null&&$._profName?new rQ(this._options._profName):void 0,this._deliveryQueue=(_e=this._options)==null?void 0:_e.deliveryQueue}dispose(){var v,x,W,$;this._disposed||(this._disposed=!0,((v=this._deliveryQueue)==null?void 0:v.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(W=(x=this._options)==null?void 0:x.onDidRemoveLastListener)==null||W.call(x),($=this._leakageMon)==null||$.dispose())}get event(){return this._event??(this._event=(v,x,W)=>{var Ke,se,_t,Ze,$e,Mn,Bn;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const Zn=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(Zn);const jn=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],Ji=new Q7e(`${Zn}. HINT: Stack shows most frequent listener (${jn[1]}-times)`,jn[0]);return(((Ke=this._options)==null?void 0:Ke.onListenerError)||pB)(Ji),oN.None}if(this._disposed)return oN.None;x&&(v=v.bind(x));const $=new aQ(v);let _e;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&($.stack=oQ.create(),_e=this._leakageMon.check($.stack,this._size+1)),this._listeners?this._listeners instanceof aQ?(this._deliveryQueue??(this._deliveryQueue=new eze),this._listeners=[this._listeners,$]):this._listeners.push($):((_t=(se=this._options)==null?void 0:se.onWillAddFirstListener)==null||_t.call(se,this),this._listeners=$,($e=(Ze=this._options)==null?void 0:Ze.onDidAddFirstListener)==null||$e.call(Ze,this)),(Bn=(Mn=this._options)==null?void 0:Mn.onDidAddListener)==null||Bn.call(Mn,this),this._size++;const Le=hB(()=>{_e==null||_e(),this._removeListener($)});return W instanceof A8?W.add(Le):Array.isArray(W)&&W.push(Le),Le}),this._event}_removeListener(v){var _e,Le,Ke,se;if((Le=(_e=this._options)==null?void 0:_e.onWillRemoveListener)==null||Le.call(_e,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(se=(Ke=this._options)==null?void 0:Ke.onDidRemoveLastListener)==null||se.call(Ke,this),this._size=0;return}const x=this._listeners,W=x.indexOf(v);if(W===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,x[W]=void 0;const $=this._deliveryQueue.current===this;if(this._size*Z7e<=x.length){let _t=0;for(let Ze=0;Ze0}}class eze{constructor(){this.i=-1,this.end=0}enqueue(v,x,W){this.i=0,this.end=W,this.current=v,this.value=x}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function tze(){return globalThis._VSCODE_NLS_MESSAGES}function Qye(){return globalThis._VSCODE_NLS_LANGUAGE}const nze=Qye()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Zye(_,v){let x;return v.length===0?x=_:x=_.replace(/\{(\d+)\}/g,(W,$)=>{const _e=$[0],Le=v[_e];let Ke=W;return typeof Le=="string"?Ke=Le:(typeof Le=="number"||typeof Le=="boolean"||Le===void 0||Le===null)&&(Ke=String(Le)),Ke}),nze&&(x="["+x.replace(/[aouei]/g,"$&$&")+"]"),x}function xs(_,v,...x){return Zye(typeof _=="number"?rze(_,v):v,x)}function rze(_,v){var W;const x=(W=tze())==null?void 0:W[_];if(typeof x!="string"){if(typeof v=="string")return v;throw new Error(`!!! NLS MISSING: ${_} !!!`)}return x}const KL="en";let sQ=!1,lQ=!1,cQ=!1,gB,dQ=KL,eve=KL,ize,sS;const aN=globalThis;let Oh;typeof aN.vscode<"u"&&typeof aN.vscode.process<"u"?Oh=aN.vscode.process:typeof process<"u"&&typeof((cTe=process==null?void 0:process.versions)==null?void 0:cTe.node)=="string"&&(Oh=process);const oze=typeof((dTe=Oh==null?void 0:Oh.versions)==null?void 0:dTe.electron)=="string"&&(Oh==null?void 0:Oh.type)==="renderer";if(typeof Oh=="object"){sQ=Oh.platform==="win32",lQ=Oh.platform==="darwin",cQ=Oh.platform==="linux",cQ&&Oh.env.SNAP&&Oh.env.SNAP_REVISION,Oh.env.CI||Oh.env.BUILD_ARTIFACTSTAGINGDIRECTORY||Oh.env.GITHUB_WORKSPACE,gB=KL,dQ=KL;const _=Oh.env.VSCODE_NLS_CONFIG;if(_)try{const v=JSON.parse(_);gB=v.userLocale,eve=v.osLocale,dQ=v.resolvedLanguage||KL,ize=(uTe=v.languagePack)==null?void 0:uTe.translationsConfigFile}catch{}}else typeof navigator=="object"&&!oze?(sS=navigator.userAgent,sQ=sS.indexOf("Windows")>=0,lQ=sS.indexOf("Macintosh")>=0,(sS.indexOf("Macintosh")>=0||sS.indexOf("iPad")>=0||sS.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,cQ=sS.indexOf("Linux")>=0,(sS==null?void 0:sS.indexOf("Mobi"))>=0,dQ=Qye()||KL,gB=navigator.language.toLowerCase(),eve=gB):console.error("Unable to resolve platform.");const I8=sQ,aze=lQ,zE=sS,sze=typeof aN.postMessage=="function"&&!aN.importScripts;(()=>{if(sze){const _=[];aN.addEventListener("message",x=>{if(x.data&&x.data.vscodeScheduleAsyncWork)for(let W=0,$=_.length;W<$;W++){const _e=_[W];if(_e.id===x.data.vscodeScheduleAsyncWork){_.splice(W,1),_e.callback();return}}});let v=0;return x=>{const W=++v;_.push({id:W,callback:x}),aN.postMessage({vscodeScheduleAsyncWork:W},"*")}}return _=>setTimeout(_)})();const lze=!!(zE&&zE.indexOf("Chrome")>=0);zE&&zE.indexOf("Firefox")>=0,!lze&&zE&&zE.indexOf("Safari")>=0,zE&&zE.indexOf("Edg/")>=0,zE&&zE.indexOf("Android")>=0;function cze(_){return _}class dze{constructor(v,x){this.lastCache=void 0,this.lastArgKey=void 0,typeof v=="function"?(this._fn=v,this._computeKey=cze):(this._fn=x,this._computeKey=v.getCacheKey)}get(v){const x=this._computeKey(v);return this.lastArgKey!==x&&(this.lastArgKey=x,this.lastCache=this._fn(v)),this.lastCache}}var sN;(function(_){_[_.Uninitialized=0]="Uninitialized",_[_.Running=1]="Running",_[_.Completed=2]="Completed"})(sN||(sN={}));class uQ{constructor(v){this.executor=v,this._state=sN.Uninitialized}get value(){if(this._state===sN.Uninitialized){this._state=sN.Running;try{this._value=this.executor()}catch(v){this._error=v}finally{this._state=sN.Completed}}else if(this._state===sN.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 uze(_){return _.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function pze(_){return _.source==="^"||_.source==="^$"||_.source==="$"||_.source==="^\\s*$"?!1:!!(_.exec("")&&_.lastIndex===0)}function fze(_){return _.split(/\r\n|\r|\n/)}function mze(_){for(let v=0,x=_.length;v=0;x--){const W=_.charCodeAt(x);if(W!==32&&W!==9)return x}return-1}function tve(_){return _>=65&&_<=90}function _ze(_,v){const x=Math.min(_.length,v.length);let W;for(W=0;WJSON.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]}')),GE.cache=new dze({getCacheKey:JSON.stringify},v=>{function x(Ze){const $e=new Map;for(let Mn=0;Mn!Ze.startsWith("_")&&Object.hasOwn(_e,Ze));Le.length===0&&(Le=["_default"]);let Ke;for(const Ze of Le){const $e=x(_e[Ze]);Ke=$(Ke,$e)}const se=x(_e._common),_t=W(se,Ke);return new GE(_t)}),GE._locales=new uQ(()=>Object.keys(GE.ambiguousCharacterData.value).filter(v=>!v.startsWith("_")));let x8=GE;const d2=class d2{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(d2.getRawData())].flat())),this._data}static isInvisibleCharacter(v){return d2.getData().has(v)}static get codePoints(){return d2.getData()}};d2._data=void 0;let R8=d2;const fQ="default",Eze="$initialize";class Aze{constructor(v,x,W,$,_e){this.vsWorker=v,this.req=x,this.channel=W,this.method=$,this.args=_e,this.type=0}}class nve{constructor(v,x,W,$){this.vsWorker=v,this.seq=x,this.res=W,this.err=$,this.type=1}}class Ize{constructor(v,x,W,$,_e){this.vsWorker=v,this.req=x,this.channel=W,this.eventName=$,this.arg=_e,this.type=2}}class xze{constructor(v,x,W){this.vsWorker=v,this.req=x,this.event=W,this.type=3}}class Rze{constructor(v,x){this.vsWorker=v,this.req=x,this.type=4}}class Dze{constructor(v){this._workerId=-1,this._handler=v,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(v){this._workerId=v}async sendMessage(v,x,W){const $=String(++this._lastSentReq);return new Promise((_e,Le)=>{this._pendingReplies[$]={resolve:_e,reject:Le},this._send(new Aze(this._workerId,$,v,x,W))})}listen(v,x,W){let $=null;const _e=new FE({onWillAddFirstListener:()=>{$=String(++this._lastSentReq),this._pendingEmitters.set($,_e),this._send(new Ize(this._workerId,$,v,x,W))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete($),this._send(new Rze(this._workerId,$)),$=null}});return _e.event}handleMessage(v){!v||!v.vsWorker||this._workerId!==-1&&v.vsWorker!==this._workerId||this._handleMessage(v)}createProxyToRemoteChannel(v,x){const W={get:($,_e)=>(typeof _e=="string"&&!$[_e]&&(ive(_e)?$[_e]=Le=>this.listen(v,_e,Le):rve(_e)?$[_e]=this.listen(v,_e,void 0):_e.charCodeAt(0)===36&&($[_e]=async(...Le)=>(await(x==null?void 0:x()),this.sendMessage(v,_e,Le)))),$[_e])};return new Proxy(Object.create(null),W)}_handleMessage(v){switch(v.type){case 1:return this._handleReplyMessage(v);case 0:return this._handleRequestMessage(v);case 2:return this._handleSubscribeEventMessage(v);case 3:return this._handleEventMessage(v);case 4:return this._handleUnsubscribeEventMessage(v)}}_handleReplyMessage(v){if(!this._pendingReplies[v.seq]){console.warn("Got reply to unknown seq");return}const x=this._pendingReplies[v.seq];if(delete this._pendingReplies[v.seq],v.err){let W=v.err;if(v.err.$isError){const $=new Error;$.name=v.err.name,$.message=v.err.message,$.stack=v.err.stack,W=$}x.reject(W);return}x.resolve(v.res)}_handleRequestMessage(v){const x=v.req;this._handler.handleMessage(v.channel,v.method,v.args).then($=>{this._send(new nve(this._workerId,x,$,void 0))},$=>{$.detail instanceof Error&&($.detail=eQ($.detail)),this._send(new nve(this._workerId,x,void 0,eQ($)))})}_handleSubscribeEventMessage(v){const x=v.req,W=this._handler.handleEvent(v.channel,v.eventName,v.arg)($=>{this._send(new xze(this._workerId,x,$))});this._pendingEvents.set(x,W)}_handleEventMessage(v){if(!this._pendingEmitters.has(v.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(v.req).fire(v.event)}_handleUnsubscribeEventMessage(v){if(!this._pendingEvents.has(v.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(v.req).dispose(),this._pendingEvents.delete(v.req)}_send(v){const x=[];if(v.type===0)for(let W=0;W{v(W,$)},handleMessage:(W,$,_e)=>this._handleMessage(W,$,_e),handleEvent:(W,$,_e)=>this._handleEvent(W,$,_e)}),this.requestHandler=x(this)}onmessage(v){this._protocol.handleMessage(v)}_handleMessage(v,x,W){if(v===fQ&&x===Eze)return this.initialize(W[0]);const $=v===fQ?this.requestHandler:this._localChannels.get(v);if(!$)return Promise.reject(new Error(`Missing channel ${v} on worker thread`));const _e=$[x];if(typeof _e!="function")return Promise.reject(new Error(`Missing method ${x} on worker thread channel ${v}`));try{return Promise.resolve(_e.apply($,W))}catch(Le){return Promise.reject(Le)}}_handleEvent(v,x,W){const $=v===fQ?this.requestHandler:this._localChannels.get(v);if(!$)throw new Error(`Missing channel ${v} on worker thread`);if(ive(x)){const _e=$[x];if(typeof _e!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);const Le=_e.call($,W);if(typeof Le!="function")throw new Error(`Missing dynamic event ${x} on request handler.`);return Le}if(rve(x)){const _e=$[x];if(typeof _e!="function")throw new Error(`Missing event ${x} on request handler.`);return _e}throw new Error(`Malformed event name ${x}`)}getChannel(v){if(!this._remoteChannels.has(v)){const x=this._protocol.createProxyToRemoteChannel(v);this._remoteChannels.set(v,x)}return this._remoteChannels.get(v)}async initialize(v){this._protocol.setWorkerId(v)}}let ove=!1;function Nze(_){if(ove)throw new Error("WebWorker already initialized!");ove=!0;const v=new Cze(x=>globalThis.postMessage(x),x=>_(x));return globalThis.onmessage=x=>{v.onmessage(x.data)},v}class yR{constructor(v,x,W,$){this.originalStart=v,this.originalLength=x,this.modifiedStart=W,this.modifiedLength=$}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new uQ(()=>new Uint8Array(256));function ave(_,v){return(v<<5)-v+_|0}function Mze(_,v){v=ave(149417,v);for(let x=0,W=_.length;x0||this.m_modifiedCount>0)&&this.m_changes.push(new yR(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(v,x){this.m_originalStart=Math.min(this.m_originalStart,v),this.m_modifiedStart=Math.min(this.m_modifiedStart,x),this.m_originalCount++}AddModifiedElement(v,x){this.m_originalStart=Math.min(this.m_originalStart,v),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 vR{constructor(v,x,W=null){this.ContinueProcessingPredicate=W,this._originalSequence=v,this._modifiedSequence=x;const[$,_e,Le]=vR._getElements(v),[Ke,se,_t]=vR._getElements(x);this._hasStrings=Le&&_t,this._originalStringElements=$,this._originalElementsOrHash=_e,this._modifiedStringElements=Ke,this._modifiedElementsOrHash=se,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(v){return v.length>0&&typeof v[0]=="string"}static _getElements(v){const x=v.getElements();if(vR._isStringArray(x)){const W=new Int32Array(x.length);for(let $=0,_e=x.length;$<_e;$++)W[$]=Mze(x[$],0);return[x,W,!0]}return x instanceof Int32Array?[[],x,!1]:[[],new Int32Array(x),!1]}ElementsAreEqual(v,x){return this._originalElementsOrHash[v]!==this._modifiedElementsOrHash[x]?!1:this._hasStrings?this._originalStringElements[v]===this._modifiedStringElements[x]:!0}ElementsAreStrictEqual(v,x){if(!this.ElementsAreEqual(v,x))return!1;const W=vR._getStrictElement(this._originalSequence,v),$=vR._getStrictElement(this._modifiedSequence,x);return W===$}static _getStrictElement(v,x){return typeof v.getStrictElement=="function"?v.getStrictElement(x):null}OriginalElementsAreEqual(v,x){return this._originalElementsOrHash[v]!==this._originalElementsOrHash[x]?!1:this._hasStrings?this._originalStringElements[v]===this._originalStringElements[x]:!0}ModifiedElementsAreEqual(v,x){return this._modifiedElementsOrHash[v]!==this._modifiedElementsOrHash[x]?!1:this._hasStrings?this._modifiedStringElements[v]===this._modifiedStringElements[x]:!0}ComputeDiff(v){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,v)}_ComputeDiff(v,x,W,$,_e){const Le=[!1];let Ke=this.ComputeDiffRecursive(v,x,W,$,Le);return _e&&(Ke=this.PrettifyChanges(Ke)),{quitEarly:Le[0],changes:Ke}}ComputeDiffRecursive(v,x,W,$,_e){for(_e[0]=!1;v<=x&&W<=$&&this.ElementsAreEqual(v,W);)v++,W++;for(;x>=v&&$>=W&&this.ElementsAreEqual(x,$);)x--,$--;if(v>x||W>$){let $e;return W<=$?(XL.Assert(v===x+1,"originalStart should only be one more than originalEnd"),$e=[new yR(v,0,W,$-W+1)]):v<=x?(XL.Assert(W===$+1,"modifiedStart should only be one more than modifiedEnd"),$e=[new yR(v,x-v+1,W,0)]):(XL.Assert(v===x+1,"originalStart should only be one more than originalEnd"),XL.Assert(W===$+1,"modifiedStart should only be one more than modifiedEnd"),$e=[]),$e}const Le=[0],Ke=[0],se=this.ComputeRecursionPoint(v,x,W,$,Le,Ke,_e),_t=Le[0],Ze=Ke[0];if(se!==null)return se;if(!_e[0]){const $e=this.ComputeDiffRecursive(v,_t,W,Ze,_e);let Mn=[];return _e[0]?Mn=[new yR(_t+1,x-(_t+1)+1,Ze+1,$-(Ze+1)+1)]:Mn=this.ComputeDiffRecursive(_t+1,x,Ze+1,$,_e),this.ConcatenateChanges($e,Mn)}return[new yR(v,x-v+1,W,$-W+1)]}WALKTRACE(v,x,W,$,_e,Le,Ke,se,_t,Ze,$e,Mn,Bn,Zn,jn,Ji,To,Hn){let hn=null,ma=null,so=new lve,Zs=x,Ln=W,Li=Bn[0]-Ji[0]-$,_o=-1073741824,Vn=this.m_forwardHistory.length-1;do{const el=Li+v;el===Zs||el=0&&(_t=this.m_forwardHistory[Vn],v=_t[0],Zs=1,Ln=_t.length-1)}while(--Vn>=-1);if(hn=so.getReverseChanges(),Hn[0]){let el=Bn[0]+1,hi=Ji[0]+1;if(hn!==null&&hn.length>0){const Bt=hn[hn.length-1];el=Math.max(el,Bt.getOriginalEnd()),hi=Math.max(hi,Bt.getModifiedEnd())}ma=[new yR(el,Mn-el+1,hi,jn-hi+1)]}else{so=new lve,Zs=Le,Ln=Ke,Li=Bn[0]-Ji[0]-se,_o=1073741824,Vn=To?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const el=Li+_e;el===Zs||el=Ze[el+1]?($e=Ze[el+1]-1,Zn=$e-Li-se,$e>_o&&so.MarkNextChange(),_o=$e+1,so.AddOriginalElement($e+1,Zn+1),Li=el+1-_e):($e=Ze[el-1],Zn=$e-Li-se,$e>_o&&so.MarkNextChange(),_o=$e,so.AddModifiedElement($e+1,Zn+1),Li=el-1-_e),Vn>=0&&(Ze=this.m_reverseHistory[Vn],_e=Ze[0],Zs=1,Ln=Ze.length-1)}while(--Vn>=-1);ma=so.getChanges()}return this.ConcatenateChanges(hn,ma)}ComputeRecursionPoint(v,x,W,$,_e,Le,Ke){let se=0,_t=0,Ze=0,$e=0,Mn=0,Bn=0;v--,W--,_e[0]=0,Le[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const Zn=x-v+($-W),jn=Zn+1,Ji=new Int32Array(jn),To=new Int32Array(jn),Hn=$-W,hn=x-v,ma=v-W,so=x-$,Ln=(hn-Hn)%2===0;Ji[Hn]=v,To[hn]=x,Ke[0]=!1;for(let Li=1;Li<=Zn/2+1;Li++){let _o=0,Vn=0;Ze=this.ClipDiagonalBound(Hn-Li,Li,Hn,jn),$e=this.ClipDiagonalBound(Hn+Li,Li,Hn,jn);for(let hi=Ze;hi<=$e;hi+=2){hi===Ze||hi<$e&&Ji[hi-1]_o+Vn&&(_o=se,Vn=_t),!Ln&&Math.abs(hi-hn)<=Li-1&&se>=To[hi])return _e[0]=se,Le[0]=_t,Bt<=To[hi]&&Li<=1448?this.WALKTRACE(Hn,Ze,$e,ma,hn,Mn,Bn,so,Ji,To,se,x,_e,_t,$,Le,Ln,Ke):null}const el=(_o-v+(Vn-W)-Li)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_o,el))return Ke[0]=!0,_e[0]=_o,Le[0]=Vn,el>0&&Li<=1448?this.WALKTRACE(Hn,Ze,$e,ma,hn,Mn,Bn,so,Ji,To,se,x,_e,_t,$,Le,Ln,Ke):(v++,W++,[new yR(v,x-v+1,W,$-W+1)]);Mn=this.ClipDiagonalBound(hn-Li,Li,hn,jn),Bn=this.ClipDiagonalBound(hn+Li,Li,hn,jn);for(let hi=Mn;hi<=Bn;hi+=2){hi===Mn||hi=To[hi+1]?se=To[hi+1]-1:se=To[hi-1],_t=se-(hi-hn)-so;const Bt=se;for(;se>v&&_t>W&&this.ElementsAreEqual(se,_t);)se--,_t--;if(To[hi]=se,Ln&&Math.abs(hi-Hn)<=Li&&se<=Ji[hi])return _e[0]=se,Le[0]=_t,Bt>=Ji[hi]&&Li<=1448?this.WALKTRACE(Hn,Ze,$e,ma,hn,Mn,Bn,so,Ji,To,se,x,_e,_t,$,Le,Ln,Ke):null}if(Li<=1447){let hi=new Int32Array($e-Ze+2);hi[0]=Hn-Ze+1,YL.Copy2(Ji,Ze,hi,1,$e-Ze+1),this.m_forwardHistory.push(hi),hi=new Int32Array(Bn-Mn+2),hi[0]=hn-Mn+1,YL.Copy2(To,Mn,hi,1,Bn-Mn+1),this.m_reverseHistory.push(hi)}}return this.WALKTRACE(Hn,Ze,$e,ma,hn,Mn,Bn,so,Ji,To,se,x,_e,_t,$,Le,Ln,Ke)}PrettifyChanges(v){for(let x=0;x0,Ke=W.modifiedLength>0;for(;W.originalStart+W.originalLength<$&&W.modifiedStart+W.modifiedLength<_e&&(!Le||this.OriginalElementsAreEqual(W.originalStart,W.originalStart+W.originalLength))&&(!Ke||this.ModifiedElementsAreEqual(W.modifiedStart,W.modifiedStart+W.modifiedLength));){const _t=this.ElementsAreStrictEqual(W.originalStart,W.modifiedStart);if(this.ElementsAreStrictEqual(W.originalStart+W.originalLength,W.modifiedStart+W.modifiedLength)&&!_t)break;W.originalStart++,W.modifiedStart++}const se=[null];if(x=0;x--){const W=v[x];let $=0,_e=0;if(x>0){const $e=v[x-1];$=$e.originalStart+$e.originalLength,_e=$e.modifiedStart+$e.modifiedLength}const Le=W.originalLength>0,Ke=W.modifiedLength>0;let se=0,_t=this._boundaryScore(W.originalStart,W.originalLength,W.modifiedStart,W.modifiedLength);for(let $e=1;;$e++){const Mn=W.originalStart-$e,Bn=W.modifiedStart-$e;if(Mn<$||Bn<_e||Le&&!this.OriginalElementsAreEqual(Mn,Mn+W.originalLength)||Ke&&!this.ModifiedElementsAreEqual(Bn,Bn+W.modifiedLength))break;const jn=(Mn===$&&Bn===_e?5:0)+this._boundaryScore(Mn,W.originalLength,Bn,W.modifiedLength);jn>_t&&(_t=jn,se=$e)}W.originalStart-=se,W.modifiedStart-=se;const Ze=[null];if(x>0&&this.ChangesOverlap(v[x-1],v[x],Ze)){v[x-1]=Ze[0],v.splice(x,1),x++;continue}}if(this._hasStrings)for(let x=1,W=v.length;x0&&Bn>se&&(se=Bn,_t=$e,Ze=Mn)}return se>0?[_t,Ze]:null}_contiguousSequenceScore(v,x,W){let $=0;for(let _e=0;_e=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[v])}_OriginalRegionIsBoundary(v,x){if(this._OriginalIsBoundary(v)||this._OriginalIsBoundary(v-1))return!0;if(x>0){const W=v+x;if(this._OriginalIsBoundary(W-1)||this._OriginalIsBoundary(W))return!0}return!1}_ModifiedIsBoundary(v){return v<=0||v>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[v])}_ModifiedRegionIsBoundary(v,x){if(this._ModifiedIsBoundary(v)||this._ModifiedIsBoundary(v-1))return!0;if(x>0){const W=v+x;if(this._ModifiedIsBoundary(W-1)||this._ModifiedIsBoundary(W))return!0}return!1}_boundaryScore(v,x,W,$){const _e=this._OriginalRegionIsBoundary(v,x)?1:0,Le=this._ModifiedRegionIsBoundary(W,$)?1:0;return _e+Le}ConcatenateChanges(v,x){const W=[];if(v.length===0||x.length===0)return x.length>0?x:v;if(this.ChangesOverlap(v[v.length-1],x[0],W)){const $=new Array(v.length+x.length-1);return YL.Copy(v,0,$,0,v.length-1),$[v.length-1]=W[0],YL.Copy(x,1,$,v.length,x.length-1),$}else{const $=new Array(v.length+x.length);return YL.Copy(v,0,$,0,v.length),YL.Copy(x,0,$,v.length,x.length),$}}ChangesOverlap(v,x,W){if(XL.Assert(v.originalStart<=x.originalStart,"Left change is not less than or equal to right change"),XL.Assert(v.modifiedStart<=x.modifiedStart,"Left change is not less than or equal to right change"),v.originalStart+v.originalLength>=x.originalStart||v.modifiedStart+v.modifiedLength>=x.modifiedStart){const $=v.originalStart;let _e=v.originalLength;const Le=v.modifiedStart;let Ke=v.modifiedLength;return v.originalStart+v.originalLength>=x.originalStart&&(_e=x.originalStart+x.originalLength-v.originalStart),v.modifiedStart+v.modifiedLength>=x.modifiedStart&&(Ke=x.modifiedStart+x.modifiedLength-v.modifiedStart),W[0]=new yR($,_e,Le,Ke),!0}else return W[0]=null,!1}ClipDiagonalBound(v,x,W,$){if(v>=0&&v<$)return v;const _e=W,Le=$-W-1,Ke=x%2===0;if(v<0){const se=_e%2===0;return Ke===se?0:1}else{const se=Le%2===0;return Ke===se?$-1:$-2}}}class Zc{constructor(v,x){this.lineNumber=v,this.column=x}with(v=this.lineNumber,x=this.column){return v===this.lineNumber&&x===this.column?this:new Zc(v,x)}delta(v=0,x=0){return this.with(Math.max(1,this.lineNumber+v),Math.max(1,this.column+x))}equals(v){return Zc.equals(this,v)}static equals(v,x){return!v&&!x?!0:!!v&&!!x&&v.lineNumber===x.lineNumber&&v.column===x.column}isBefore(v){return Zc.isBefore(this,v)}static isBefore(v,x){return v.lineNumberW||v===W&&x>$?(this.startLineNumber=W,this.startColumn=$,this.endLineNumber=v,this.endColumn=x):(this.startLineNumber=v,this.startColumn=x,this.endLineNumber=W,this.endColumn=$)}isEmpty(){return ss.isEmpty(this)}static isEmpty(v){return v.startLineNumber===v.endLineNumber&&v.startColumn===v.endColumn}containsPosition(v){return ss.containsPosition(this,v)}static containsPosition(v,x){return!(x.lineNumberv.endLineNumber||x.lineNumber===v.startLineNumber&&x.columnv.endColumn)}static strictContainsPosition(v,x){return!(x.lineNumberv.endLineNumber||x.lineNumber===v.startLineNumber&&x.column<=v.startColumn||x.lineNumber===v.endLineNumber&&x.column>=v.endColumn)}containsRange(v){return ss.containsRange(this,v)}static containsRange(v,x){return!(x.startLineNumberv.endLineNumber||x.endLineNumber>v.endLineNumber||x.startLineNumber===v.startLineNumber&&x.startColumnv.endColumn)}strictContainsRange(v){return ss.strictContainsRange(this,v)}static strictContainsRange(v,x){return!(x.startLineNumberv.endLineNumber||x.endLineNumber>v.endLineNumber||x.startLineNumber===v.startLineNumber&&x.startColumn<=v.startColumn||x.endLineNumber===v.endLineNumber&&x.endColumn>=v.endColumn)}plusRange(v){return ss.plusRange(this,v)}static plusRange(v,x){let W,$,_e,Le;return x.startLineNumberv.endLineNumber?(_e=x.endLineNumber,Le=x.endColumn):x.endLineNumber===v.endLineNumber?(_e=x.endLineNumber,Le=Math.max(x.endColumn,v.endColumn)):(_e=v.endLineNumber,Le=v.endColumn),new ss(W,$,_e,Le)}intersectRanges(v){return ss.intersectRanges(this,v)}static intersectRanges(v,x){let W=v.startLineNumber,$=v.startColumn,_e=v.endLineNumber,Le=v.endColumn;const Ke=x.startLineNumber,se=x.startColumn,_t=x.endLineNumber,Ze=x.endColumn;return W_t?(_e=_t,Le=Ze):_e===_t&&(Le=Math.min(Le,Ze)),W>_e||W===_e&&$>Le?null:new ss(W,$,_e,Le)}equalsRange(v){return ss.equalsRange(this,v)}static equalsRange(v,x){return!v&&!x?!0:!!v&&!!x&&v.startLineNumber===x.startLineNumber&&v.startColumn===x.startColumn&&v.endLineNumber===x.endLineNumber&&v.endColumn===x.endColumn}getEndPosition(){return ss.getEndPosition(this)}static getEndPosition(v){return new Zc(v.endLineNumber,v.endColumn)}getStartPosition(){return ss.getStartPosition(this)}static getStartPosition(v){return new Zc(v.startLineNumber,v.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(v,x){return new ss(this.startLineNumber,this.startColumn,v,x)}setStartPosition(v,x){return new ss(v,x,this.endLineNumber,this.endColumn)}collapseToStart(){return ss.collapseToStart(this)}static collapseToStart(v){return new ss(v.startLineNumber,v.startColumn,v.startLineNumber,v.startColumn)}collapseToEnd(){return ss.collapseToEnd(this)}static collapseToEnd(v){return new ss(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn)}delta(v){return new ss(this.startLineNumber+v,this.startColumn,this.endLineNumber+v,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(v,x=v){return new ss(v.lineNumber,v.column,x.lineNumber,x.column)}static lift(v){return v?new ss(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):null}static isIRange(v){return!!v&&typeof v.startLineNumber=="number"&&typeof v.startColumn=="number"&&typeof v.endLineNumber=="number"&&typeof v.endColumn=="number"}static areIntersectingOrTouching(v,x){return!(v.endLineNumberv.startLineNumber}toJSON(){return this}}function cve(_){return _<0?0:_>255?255:_|0}function $L(_){return _<0?0:_>4294967295?4294967295:_|0}class mQ{constructor(v){const x=cve(v);this._defaultValue=x,this._asciiMap=mQ._createAsciiMap(x),this._map=new Map}static _createAsciiMap(v){const x=new Uint8Array(256);return x.fill(v),x}set(v,x){const W=cve(x);v>=0&&v<256?this._asciiMap[v]=W:this._map.set(v,W)}get(v){return v>=0&&v<256?this._asciiMap[v]:this._map.get(v)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Lze{constructor(v,x,W){const $=new Uint8Array(v*x);for(let _e=0,Le=v*x;_ex&&(x=se),Ke>W&&(W=Ke),_t>W&&(W=_t)}x++,W++;const $=new Lze(W,x,0);for(let _e=0,Le=v.length;_e=this._maxCharCode?0:this._states.get(v,x)}}let hQ=null;function wze(){return hQ===null&&(hQ=new kze([[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]])),hQ}let D8=null;function Oze(){if(D8===null){D8=new mQ(0);const _=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let x=0;x<_.length;x++)D8.set(_.charCodeAt(x),1);const v=".,;:";for(let x=0;x$);if($>0){const Ke=x.charCodeAt($-1),se=x.charCodeAt(Le);(Ke===40&&se===41||Ke===91&&se===93||Ke===123&&se===125)&&Le--}return{range:{startLineNumber:W,startColumn:$+1,endLineNumber:W,endColumn:Le+2},url:x.substring($,Le+1)}}static computeLinks(v,x=wze()){const W=Oze(),$=[];for(let _e=1,Le=v.getLineCount();_e<=Le;_e++){const Ke=v.getLineContent(_e),se=Ke.length;let _t=0,Ze=0,$e=0,Mn=1,Bn=!1,Zn=!1,jn=!1,Ji=!1;for(;_t=0?($+=W?1:-1,$<0?$=v.length-1:$%=v.length,v[$]):null}};PB.INSTANCE=new PB;let _Q=PB;const dve=Object.freeze(function(_,v){const x=setTimeout(_.bind(v),0);return{dispose(){clearTimeout(x)}}});var vB;(function(_){function v(x){return x===_.None||x===_.Cancelled||x instanceof bB?!0:!x||typeof x!="object"?!1:typeof x.isCancellationRequested=="boolean"&&typeof x.onCancellationRequested=="function"}_.isCancellationToken=v,_.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:nQ.None}),_.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:dve})})(vB||(vB={}));class bB{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?dve:(this._emitter||(this._emitter=new FE),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Fze{constructor(v){this._token=void 0,this._parentListener=void 0,this._parentListener=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new bB),this._token}cancel(){this._token?this._token instanceof bB&&this._token.cancel():this._token=vB.Cancelled}dispose(v=!1){var x;v&&this.cancel(),(x=this._parentListener)==null||x.dispose(),this._token?this._token instanceof bB&&this._token.dispose():this._token=vB.None}}class gQ{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(v,x){this._keyCodeToStr[v]=x,this._strToKeyCode[x.toLowerCase()]=v}keyCodeToStr(v){return this._keyCodeToStr[v]}strToKeyCode(v){return this._strToKeyCode[v.toLowerCase()]||0}}const TB=new gQ,yQ=new gQ,vQ=new gQ,zze=new Array(230),Bze=Object.create(null),Gze=Object.create(null);(function(){const _="",v=[[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,"Delete",46,"VK_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=[],W=[];for(const $ of v){const[_e,Le,Ke,se,_t,Ze,$e,Mn,Bn]=$;if(W[Le]||(W[Le]=!0,Bze[Ke]=Le,Gze[Ke.toLowerCase()]=Le),!x[se]){if(x[se]=!0,!_t)throw new Error(`String representation missing for key code ${se} around scan code ${Ke}`);TB.define(se,_t),yQ.define(se,Mn||_t),vQ.define(se,Bn||Mn||_t)}Ze&&(zze[Ze]=se)}})();var uve;(function(_){function v(Ke){return TB.keyCodeToStr(Ke)}_.toString=v;function x(Ke){return TB.strToKeyCode(Ke)}_.fromString=x;function W(Ke){return yQ.keyCodeToStr(Ke)}_.toUserSettingsUS=W;function $(Ke){return vQ.keyCodeToStr(Ke)}_.toUserSettingsGeneral=$;function _e(Ke){return yQ.strToKeyCode(Ke)||vQ.strToKeyCode(Ke)}_.fromUserSettings=_e;function Le(Ke){if(Ke>=98&&Ke<=113)return null;switch(Ke){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return TB.keyCodeToStr(Ke)}_.toElectronAccelerator=Le})(uve||(uve={}));function Vze(_,v){const x=(v&65535)<<16>>>0;return(_|x)>>>0}var pve={};let QL;const bQ=globalThis.vscode;if(typeof bQ<"u"&&typeof bQ.process<"u"){const _=bQ.process;QL={get platform(){return _.platform},get arch(){return _.arch},get env(){return _.env},cwd(){return _.cwd()}}}else typeof process<"u"&&typeof((pTe=process==null?void 0:process.versions)==null?void 0:pTe.node)=="string"?QL={get platform(){return process.platform},get arch(){return process.arch},get env(){return pve},cwd(){return pve.VSCODE_CWD||process.cwd()}}:QL={get platform(){return I8?"win32":aze?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const SB=QL.cwd,jze=QL.env,Uze=QL.platform,Hze=65,qze=97,Jze=90,Kze=122,lN=46,Wh=47,Jy=92,jA=58,Xze=63;class fve extends Error{constructor(v,x,W){let $;typeof x=="string"&&x.indexOf("not ")===0?($="must not be",x=x.replace(/^not /,"")):$="must be";const _e=v.indexOf(".")!==-1?"property":"argument";let Le=`The "${v}" ${_e} ${$} of type ${x}`;Le+=`. Received type ${typeof W}`,super(Le),this.code="ERR_INVALID_ARG_TYPE"}}function Yze(_,v){if(_===null||typeof _!="object")throw new fve(v,"Object",_)}function Lf(_,v){if(typeof _!="string")throw new fve(v,"string",_)}const bR=Uze==="win32";function Yl(_){return _===Wh||_===Jy}function TQ(_){return _===Wh}function UA(_){return _>=Hze&&_<=Jze||_>=qze&&_<=Kze}function EB(_,v,x,W){let $="",_e=0,Le=-1,Ke=0,se=0;for(let _t=0;_t<=_.length;++_t){if(_t<_.length)se=_.charCodeAt(_t);else{if(W(se))break;se=Wh}if(W(se)){if(!(Le===_t-1||Ke===1))if(Ke===2){if($.length<2||_e!==2||$.charCodeAt($.length-1)!==lN||$.charCodeAt($.length-2)!==lN){if($.length>2){const Ze=$.lastIndexOf(x);Ze===-1?($="",_e=0):($=$.slice(0,Ze),_e=$.length-1-$.lastIndexOf(x)),Le=_t,Ke=0;continue}else if($.length!==0){$="",_e=0,Le=_t,Ke=0;continue}}v&&($+=$.length>0?`${x}..`:"..",_e=2)}else $.length>0?$+=`${x}${_.slice(Le+1,_t)}`:$=_.slice(Le+1,_t),_e=_t-Le-1;Le=_t,Ke=0}else se===lN&&Ke!==-1?++Ke:Ke=-1}return $}function $ze(_){return _?`${_[0]==="."?"":"."}${_}`:""}function mve(_,v){Yze(v,"pathObject");const x=v.dir||v.root,W=v.base||`${v.name||""}${$ze(v.ext)}`;return x?x===v.root?`${x}${W}`:`${x}${_}${W}`:W}const $g={resolve(..._){let v="",x="",W=!1;for(let $=_.length-1;$>=-1;$--){let _e;if($>=0){if(_e=_[$],Lf(_e,`paths[${$}]`),_e.length===0)continue}else v.length===0?_e=SB():(_e=jze[`=${v}`]||SB(),(_e===void 0||_e.slice(0,2).toLowerCase()!==v.toLowerCase()&&_e.charCodeAt(2)===Jy)&&(_e=`${v}\\`));const Le=_e.length;let Ke=0,se="",_t=!1;const Ze=_e.charCodeAt(0);if(Le===1)Yl(Ze)&&(Ke=1,_t=!0);else if(Yl(Ze))if(_t=!0,Yl(_e.charCodeAt(1))){let $e=2,Mn=$e;for(;$e2&&Yl(_e.charCodeAt(2))&&(_t=!0,Ke=3));if(se.length>0)if(v.length>0){if(se.toLowerCase()!==v.toLowerCase())continue}else v=se;if(W){if(v.length>0)break}else if(x=`${_e.slice(Ke)}\\${x}`,W=_t,_t&&v.length>0)break}return x=EB(x,!W,"\\",Yl),W?`${v}\\${x}`:`${v}${x}`||"."},normalize(_){Lf(_,"path");const v=_.length;if(v===0)return".";let x=0,W,$=!1;const _e=_.charCodeAt(0);if(v===1)return TQ(_e)?"\\":_;if(Yl(_e))if($=!0,Yl(_.charCodeAt(1))){let Ke=2,se=Ke;for(;Ke2&&Yl(_.charCodeAt(2))&&($=!0,x=3));let Le=x0&&Yl(_.charCodeAt(v-1))&&(Le+="\\"),!$&&W===void 0&&_.includes(":")){if(Le.length>=2&&UA(Le.charCodeAt(0))&&Le.charCodeAt(1)===jA)return`.\\${Le}`;let Ke=_.indexOf(":");do if(Ke===v-1||Yl(_.charCodeAt(Ke+1)))return`.\\${Le}`;while((Ke=_.indexOf(":",Ke+1))!==-1)}return W===void 0?$?`\\${Le}`:Le:$?`${W}\\${Le}`:`${W}${Le}`},isAbsolute(_){Lf(_,"path");const v=_.length;if(v===0)return!1;const x=_.charCodeAt(0);return Yl(x)||v>2&&UA(x)&&_.charCodeAt(1)===jA&&Yl(_.charCodeAt(2))},join(..._){if(_.length===0)return".";let v,x;for(let _e=0;_e<_.length;++_e){const Le=_[_e];Lf(Le,"path"),Le.length>0&&(v===void 0?v=x=Le:v+=`\\${Le}`)}if(v===void 0)return".";let W=!0,$=0;if(typeof x=="string"&&Yl(x.charCodeAt(0))){++$;const _e=x.length;_e>1&&Yl(x.charCodeAt(1))&&(++$,_e>2&&(Yl(x.charCodeAt(2))?++$:W=!1))}if(W){for(;$=2&&(v=`\\${v.slice($)}`)}return $g.normalize(v)},relative(_,v){if(Lf(_,"from"),Lf(v,"to"),_===v)return"";const x=$g.resolve(_),W=$g.resolve(v);if(x===W||(_=x.toLowerCase(),v=W.toLowerCase(),_===v))return"";if(x.length!==_.length||W.length!==v.length){const Zn=x.split("\\"),jn=W.split("\\");Zn[Zn.length-1]===""&&Zn.pop(),jn[jn.length-1]===""&&jn.pop();const Ji=Zn.length,To=jn.length,Hn=JiHn?jn.slice(hn).join("\\"):Ji>Hn?"..\\".repeat(Ji-1-hn)+"..":"":"..\\".repeat(Ji-hn)+jn.slice(hn).join("\\")}let $=0;for(;$<_.length&&_.charCodeAt($)===Jy;)$++;let _e=_.length;for(;_e-1>$&&_.charCodeAt(_e-1)===Jy;)_e--;const Le=_e-$;let Ke=0;for(;KeKe&&v.charCodeAt(se-1)===Jy;)se--;const _t=se-Ke,Ze=Le<_t?Le:_t;let $e=-1,Mn=0;for(;MnZe){if(v.charCodeAt(Ke+Mn)===Jy)return W.slice(Ke+Mn+1);if(Mn===2)return W.slice(Ke+Mn)}Le>Ze&&(_.charCodeAt($+Mn)===Jy?$e=Mn:Mn===2&&($e=3)),$e===-1&&($e=0)}let Bn="";for(Mn=$+$e+1;Mn<=_e;++Mn)(Mn===_e||_.charCodeAt(Mn)===Jy)&&(Bn+=Bn.length===0?"..":"\\..");return Ke+=$e,Bn.length>0?`${Bn}${W.slice(Ke,se)}`:(W.charCodeAt(Ke)===Jy&&++Ke,W.slice(Ke,se))},toNamespacedPath(_){if(typeof _!="string"||_.length===0)return _;const v=$g.resolve(_);if(v.length<=2)return _;if(v.charCodeAt(0)===Jy){if(v.charCodeAt(1)===Jy){const x=v.charCodeAt(2);if(x!==Xze&&x!==lN)return`\\\\?\\UNC\\${v.slice(2)}`}}else if(UA(v.charCodeAt(0))&&v.charCodeAt(1)===jA&&v.charCodeAt(2)===Jy)return`\\\\?\\${v}`;return v},dirname(_){Lf(_,"path");const v=_.length;if(v===0)return".";let x=-1,W=0;const $=_.charCodeAt(0);if(v===1)return Yl($)?_:".";if(Yl($)){if(x=W=1,Yl(_.charCodeAt(1))){let Ke=2,se=Ke;for(;Ke2&&Yl(_.charCodeAt(2))?3:2,W=x);let _e=-1,Le=!0;for(let Ke=v-1;Ke>=W;--Ke)if(Yl(_.charCodeAt(Ke))){if(!Le){_e=Ke;break}}else Le=!1;if(_e===-1){if(x===-1)return".";_e=x}return _.slice(0,_e)},basename(_,v){v!==void 0&&Lf(v,"suffix"),Lf(_,"path");let x=0,W=-1,$=!0,_e;if(_.length>=2&&UA(_.charCodeAt(0))&&_.charCodeAt(1)===jA&&(x=2),v!==void 0&&v.length>0&&v.length<=_.length){if(v===_)return"";let Le=v.length-1,Ke=-1;for(_e=_.length-1;_e>=x;--_e){const se=_.charCodeAt(_e);if(Yl(se)){if(!$){x=_e+1;break}}else Ke===-1&&($=!1,Ke=_e+1),Le>=0&&(se===v.charCodeAt(Le)?--Le===-1&&(W=_e):(Le=-1,W=Ke))}return x===W?W=Ke:W===-1&&(W=_.length),_.slice(x,W)}for(_e=_.length-1;_e>=x;--_e)if(Yl(_.charCodeAt(_e))){if(!$){x=_e+1;break}}else W===-1&&($=!1,W=_e+1);return W===-1?"":_.slice(x,W)},extname(_){Lf(_,"path");let v=0,x=-1,W=0,$=-1,_e=!0,Le=0;_.length>=2&&_.charCodeAt(1)===jA&&UA(_.charCodeAt(0))&&(v=W=2);for(let Ke=_.length-1;Ke>=v;--Ke){const se=_.charCodeAt(Ke);if(Yl(se)){if(!_e){W=Ke+1;break}continue}$===-1&&(_e=!1,$=Ke+1),se===lN?x===-1?x=Ke:Le!==1&&(Le=1):x!==-1&&(Le=-1)}return x===-1||$===-1||Le===0||Le===1&&x===$-1&&x===W+1?"":_.slice(x,$)},format:mve.bind(null,"\\"),parse(_){Lf(_,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return v;const x=_.length;let W=0,$=_.charCodeAt(0);if(x===1)return Yl($)?(v.root=v.dir=_,v):(v.base=v.name=_,v);if(Yl($)){if(W=1,Yl(_.charCodeAt(1))){let $e=2,Mn=$e;for(;$e0&&(v.root=_.slice(0,W));let _e=-1,Le=W,Ke=-1,se=!0,_t=_.length-1,Ze=0;for(;_t>=W;--_t){if($=_.charCodeAt(_t),Yl($)){if(!se){Le=_t+1;break}continue}Ke===-1&&(se=!1,Ke=_t+1),$===lN?_e===-1?_e=_t:Ze!==1&&(Ze=1):_e!==-1&&(Ze=-1)}return Ke!==-1&&(_e===-1||Ze===0||Ze===1&&_e===Ke-1&&_e===Le+1?v.base=v.name=_.slice(Le,Ke):(v.name=_.slice(Le,_e),v.base=_.slice(Le,Ke),v.ext=_.slice(_e,Ke))),Le>0&&Le!==W?v.dir=_.slice(0,Le-1):v.dir=v.root,v},sep:"\\",delimiter:";",win32:null,posix:null},Qze=(()=>{if(bR){const _=/\\/g;return()=>{const v=SB().replace(_,"/");return v.slice(v.indexOf("/"))}}return()=>SB()})(),Ky={resolve(..._){let v="",x=!1;for(let W=_.length-1;W>=0&&!x;W--){const $=_[W];Lf($,`paths[${W}]`),$.length!==0&&(v=`${$}/${v}`,x=$.charCodeAt(0)===Wh)}if(!x){const W=Qze();v=`${W}/${v}`,x=W.charCodeAt(0)===Wh}return v=EB(v,!x,"/",TQ),x?`/${v}`:v.length>0?v:"."},normalize(_){if(Lf(_,"path"),_.length===0)return".";const v=_.charCodeAt(0)===Wh,x=_.charCodeAt(_.length-1)===Wh;return _=EB(_,!v,"/",TQ),_.length===0?v?"/":x?"./":".":(x&&(_+="/"),v?`/${_}`:_)},isAbsolute(_){return Lf(_,"path"),_.length>0&&_.charCodeAt(0)===Wh},join(..._){if(_.length===0)return".";const v=[];for(let x=0;x<_.length;++x){const W=_[x];Lf(W,"path"),W.length>0&&v.push(W)}return v.length===0?".":Ky.normalize(v.join("/"))},relative(_,v){if(Lf(_,"from"),Lf(v,"to"),_===v||(_=Ky.resolve(_),v=Ky.resolve(v),_===v))return"";const x=1,W=_.length,$=W-x,_e=1,Le=v.length-_e,Ke=$Ke){if(v.charCodeAt(_e+_t)===Wh)return v.slice(_e+_t+1);if(_t===0)return v.slice(_e+_t)}else $>Ke&&(_.charCodeAt(x+_t)===Wh?se=_t:_t===0&&(se=0));let Ze="";for(_t=x+se+1;_t<=W;++_t)(_t===W||_.charCodeAt(_t)===Wh)&&(Ze+=Ze.length===0?"..":"/..");return`${Ze}${v.slice(_e+se)}`},toNamespacedPath(_){return _},dirname(_){if(Lf(_,"path"),_.length===0)return".";const v=_.charCodeAt(0)===Wh;let x=-1,W=!0;for(let $=_.length-1;$>=1;--$)if(_.charCodeAt($)===Wh){if(!W){x=$;break}}else W=!1;return x===-1?v?"/":".":v&&x===1?"//":_.slice(0,x)},basename(_,v){v!==void 0&&Lf(v,"suffix"),Lf(_,"path");let x=0,W=-1,$=!0,_e;if(v!==void 0&&v.length>0&&v.length<=_.length){if(v===_)return"";let Le=v.length-1,Ke=-1;for(_e=_.length-1;_e>=0;--_e){const se=_.charCodeAt(_e);if(se===Wh){if(!$){x=_e+1;break}}else Ke===-1&&($=!1,Ke=_e+1),Le>=0&&(se===v.charCodeAt(Le)?--Le===-1&&(W=_e):(Le=-1,W=Ke))}return x===W?W=Ke:W===-1&&(W=_.length),_.slice(x,W)}for(_e=_.length-1;_e>=0;--_e)if(_.charCodeAt(_e)===Wh){if(!$){x=_e+1;break}}else W===-1&&($=!1,W=_e+1);return W===-1?"":_.slice(x,W)},extname(_){Lf(_,"path");let v=-1,x=0,W=-1,$=!0,_e=0;for(let Le=_.length-1;Le>=0;--Le){const Ke=_[Le];if(Ke==="/"){if(!$){x=Le+1;break}continue}W===-1&&($=!1,W=Le+1),Ke==="."?v===-1?v=Le:_e!==1&&(_e=1):v!==-1&&(_e=-1)}return v===-1||W===-1||_e===0||_e===1&&v===W-1&&v===x+1?"":_.slice(v,W)},format:mve.bind(null,"/"),parse(_){Lf(_,"path");const v={root:"",dir:"",base:"",ext:"",name:""};if(_.length===0)return v;const x=_.charCodeAt(0)===Wh;let W;x?(v.root="/",W=1):W=0;let $=-1,_e=0,Le=-1,Ke=!0,se=_.length-1,_t=0;for(;se>=W;--se){const Ze=_.charCodeAt(se);if(Ze===Wh){if(!Ke){_e=se+1;break}continue}Le===-1&&(Ke=!1,Le=se+1),Ze===lN?$===-1?$=se:_t!==1&&(_t=1):$!==-1&&(_t=-1)}if(Le!==-1){const Ze=_e===0&&x?1:_e;$===-1||_t===0||_t===1&&$===Le-1&&$===_e+1?v.base=v.name=_.slice(Ze,Le):(v.name=_.slice(Ze,$),v.base=_.slice(Ze,Le),v.ext=_.slice($,Le))}return _e>0?v.dir=_.slice(0,_e-1):x&&(v.dir="/"),v},sep:"/",delimiter:":",win32:null,posix:null};Ky.win32=$g.win32=$g,Ky.posix=$g.posix=Ky,bR?$g.normalize:Ky.normalize,bR?$g.resolve:Ky.resolve,bR?$g.relative:Ky.relative,bR?$g.dirname:Ky.dirname,bR?$g.basename:Ky.basename,bR?$g.extname:Ky.extname,bR?$g.sep:Ky.sep;const Zze=/^\w[\w\d+.-]*$/,e5e=/^\//,t5e=/^\/\//;function n5e(_,v){if(!_.scheme&&v)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${_.authority}", path: "${_.path}", query: "${_.query}", fragment: "${_.fragment}"}`);if(_.scheme&&!Zze.test(_.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(_.path){if(_.authority){if(!e5e.test(_.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(t5e.test(_.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function r5e(_,v){return!_&&!v?"file":_}function i5e(_,v){switch(_){case"https":case"http":case"file":v?v[0]!==lS&&(v=lS+v):v=lS;break}return v}const Ku="",lS="/",o5e=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class cN{static isUri(v){return v instanceof cN?!0:!v||typeof v!="object"?!1:typeof v.authority=="string"&&typeof v.fragment=="string"&&typeof v.path=="string"&&typeof v.query=="string"&&typeof v.scheme=="string"&&typeof v.fsPath=="string"&&typeof v.with=="function"&&typeof v.toString=="function"}constructor(v,x,W,$,_e,Le=!1){typeof v=="object"?(this.scheme=v.scheme||Ku,this.authority=v.authority||Ku,this.path=v.path||Ku,this.query=v.query||Ku,this.fragment=v.fragment||Ku):(this.scheme=r5e(v,Le),this.authority=x||Ku,this.path=i5e(this.scheme,W||Ku),this.query=$||Ku,this.fragment=_e||Ku,n5e(this,Le))}get fsPath(){return SQ(this,!1)}with(v){if(!v)return this;let{scheme:x,authority:W,path:$,query:_e,fragment:Le}=v;return x===void 0?x=this.scheme:x===null&&(x=Ku),W===void 0?W=this.authority:W===null&&(W=Ku),$===void 0?$=this.path:$===null&&($=Ku),_e===void 0?_e=this.query:_e===null&&(_e=Ku),Le===void 0?Le=this.fragment:Le===null&&(Le=Ku),x===this.scheme&&W===this.authority&&$===this.path&&_e===this.query&&Le===this.fragment?this:new ZL(x,W,$,_e,Le)}static parse(v,x=!1){const W=o5e.exec(v);return W?new ZL(W[2]||Ku,AB(W[4]||Ku),AB(W[5]||Ku),AB(W[7]||Ku),AB(W[9]||Ku),x):new ZL(Ku,Ku,Ku,Ku,Ku)}static file(v){let x=Ku;if(I8&&(v=v.replace(/\\/g,lS)),v[0]===lS&&v[1]===lS){const W=v.indexOf(lS,2);W===-1?(x=v.substring(2),v=lS):(x=v.substring(2,W),v=v.substring(W)||lS)}return new ZL("file",x,v,Ku,Ku)}static from(v,x){return new ZL(v.scheme,v.authority,v.path,v.query,v.fragment,x)}static joinPath(v,...x){if(!v.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let W;return I8&&v.scheme==="file"?W=cN.file($g.join(SQ(v,!0),...x)).path:W=Ky.join(v.path,...x),v.with({path:W})}toString(v=!1){return EQ(this,v)}toJSON(){return this}static revive(v){if(v){if(v instanceof cN)return v;{const x=new ZL(v);return x._formatted=v.external??null,x._fsPath=v._sep===hve?v.fsPath??null:null,x}}else return v}}const hve=I8?1:void 0;class ZL extends cN{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=SQ(this,!1)),this._fsPath}toString(v=!1){return v?EQ(this,!0):(this._formatted||(this._formatted=EQ(this,!1)),this._formatted)}toJSON(){const v={$mid:1};return this._fsPath&&(v.fsPath=this._fsPath,v._sep=hve),this._formatted&&(v.external=this._formatted),this.path&&(v.path=this.path),this.scheme&&(v.scheme=this.scheme),this.authority&&(v.authority=this.authority),this.query&&(v.query=this.query),this.fragment&&(v.fragment=this.fragment),v}}const _ve={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 gve(_,v,x){let W,$=-1;for(let _e=0;_e<_.length;_e++){const Le=_.charCodeAt(_e);if(Le>=97&&Le<=122||Le>=65&&Le<=90||Le>=48&&Le<=57||Le===45||Le===46||Le===95||Le===126||v&&Le===47||x&&Le===91||x&&Le===93||x&&Le===58)$!==-1&&(W+=encodeURIComponent(_.substring($,_e)),$=-1),W!==void 0&&(W+=_.charAt(_e));else{W===void 0&&(W=_.substr(0,_e));const Ke=_ve[Le];Ke!==void 0?($!==-1&&(W+=encodeURIComponent(_.substring($,_e)),$=-1),W+=Ke):$===-1&&($=_e)}}return $!==-1&&(W+=encodeURIComponent(_.substring($))),W!==void 0?W:_}function a5e(_){let v;for(let x=0;x<_.length;x++){const W=_.charCodeAt(x);W===35||W===63?(v===void 0&&(v=_.substr(0,x)),v+=_ve[W]):v!==void 0&&(v+=_[x])}return v!==void 0?v:_}function SQ(_,v){let x;return _.authority&&_.path.length>1&&_.scheme==="file"?x=`//${_.authority}${_.path}`:_.path.charCodeAt(0)===47&&(_.path.charCodeAt(1)>=65&&_.path.charCodeAt(1)<=90||_.path.charCodeAt(1)>=97&&_.path.charCodeAt(1)<=122)&&_.path.charCodeAt(2)===58?v?x=_.path.substr(1):x=_.path[1].toLowerCase()+_.path.substr(2):x=_.path,I8&&(x=x.replace(/\//g,"\\")),x}function EQ(_,v){const x=v?a5e:gve;let W="",{scheme:$,authority:_e,path:Le,query:Ke,fragment:se}=_;if($&&(W+=$,W+=":"),(_e||$==="file")&&(W+=lS,W+=lS),_e){let _t=_e.indexOf("@");if(_t!==-1){const Ze=_e.substr(0,_t);_e=_e.substr(_t+1),_t=Ze.lastIndexOf(":"),_t===-1?W+=x(Ze,!1,!1):(W+=x(Ze.substr(0,_t),!1,!1),W+=":",W+=x(Ze.substr(_t+1),!1,!0)),W+="@"}_e=_e.toLowerCase(),_t=_e.lastIndexOf(":"),_t===-1?W+=x(_e,!1,!0):(W+=x(_e.substr(0,_t),!1,!0),W+=_e.substr(_t))}if(Le){if(Le.length>=3&&Le.charCodeAt(0)===47&&Le.charCodeAt(2)===58){const _t=Le.charCodeAt(1);_t>=65&&_t<=90&&(Le=`/${String.fromCharCode(_t+32)}:${Le.substr(3)}`)}else if(Le.length>=2&&Le.charCodeAt(1)===58){const _t=Le.charCodeAt(0);_t>=65&&_t<=90&&(Le=`${String.fromCharCode(_t+32)}:${Le.substr(2)}`)}W+=x(Le,!0,!1)}return Ke&&(W+="?",W+=x(Ke,!1,!1)),se&&(W+="#",W+=v?se:gve(se,!1,!1)),W}function yve(_){try{return decodeURIComponent(_)}catch{return _.length>3?_.substr(0,3)+yve(_.substr(3)):_}}const vve=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function AB(_){return _.match(vve)?_.replace(vve,v=>yve(v)):_}class Xv extends ss{constructor(v,x,W,$){super(v,x,W,$),this.selectionStartLineNumber=v,this.selectionStartColumn=x,this.positionLineNumber=W,this.positionColumn=$}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(v){return Xv.selectionsEqual(this,v)}static selectionsEqual(v,x){return v.selectionStartLineNumber===x.selectionStartLineNumber&&v.selectionStartColumn===x.selectionStartColumn&&v.positionLineNumber===x.positionLineNumber&&v.positionColumn===x.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(v,x){return this.getDirection()===0?new Xv(this.startLineNumber,this.startColumn,v,x):new Xv(v,x,this.startLineNumber,this.startColumn)}getPosition(){return new Zc(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Zc(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(v,x){return this.getDirection()===0?new Xv(v,x,this.endLineNumber,this.endColumn):new Xv(this.endLineNumber,this.endColumn,v,x)}static fromPositions(v,x=v){return new Xv(v.lineNumber,v.column,x.lineNumber,x.column)}static fromRange(v,x){return x===0?new Xv(v.startLineNumber,v.startColumn,v.endLineNumber,v.endColumn):new Xv(v.endLineNumber,v.endColumn,v.startLineNumber,v.startColumn)}static liftSelection(v){return new Xv(v.selectionStartLineNumber,v.selectionStartColumn,v.positionLineNumber,v.positionColumn)}static selectionsArrEqual(v,x){if(v&&!x||!v&&x)return!1;if(!v&&!x)return!0;if(v.length!==x.length)return!1;for(let W=0,$=v.length;W<$;W++)if(!this.selectionsEqual(v[W],x[W]))return!1;return!0}static isISelection(v){return!!v&&typeof v.selectionStartLineNumber=="number"&&typeof v.selectionStartColumn=="number"&&typeof v.positionLineNumber=="number"&&typeof v.positionColumn=="number"}static createWithDirection(v,x,W,$,_e){return _e===0?new Xv(v,x,W,$):new Xv(W,$,v,x)}}const bve=Object.create(null);function De(_,v){if(U7e(v)){const x=bve[v];if(x===void 0)throw new Error(`${_} references an unknown codicon: ${v}`);v=x}return bve[_]=v,{id:_}}const s5e={add:De("add",6e4),plus:De("plus",6e4),gistNew:De("gist-new",6e4),repoCreate:De("repo-create",6e4),lightbulb:De("lightbulb",60001),lightBulb:De("light-bulb",60001),repo:De("repo",60002),repoDelete:De("repo-delete",60002),gistFork:De("gist-fork",60003),repoForked:De("repo-forked",60003),gitPullRequest:De("git-pull-request",60004),gitPullRequestAbandoned:De("git-pull-request-abandoned",60004),recordKeys:De("record-keys",60005),keyboard:De("keyboard",60005),tag:De("tag",60006),gitPullRequestLabel:De("git-pull-request-label",60006),tagAdd:De("tag-add",60006),tagRemove:De("tag-remove",60006),person:De("person",60007),personFollow:De("person-follow",60007),personOutline:De("person-outline",60007),personFilled:De("person-filled",60007),sourceControl:De("source-control",60008),mirror:De("mirror",60009),mirrorPublic:De("mirror-public",60009),star:De("star",60010),starAdd:De("star-add",60010),starDelete:De("star-delete",60010),starEmpty:De("star-empty",60010),comment:De("comment",60011),commentAdd:De("comment-add",60011),alert:De("alert",60012),warning:De("warning",60012),search:De("search",60013),searchSave:De("search-save",60013),logOut:De("log-out",60014),signOut:De("sign-out",60014),logIn:De("log-in",60015),signIn:De("sign-in",60015),eye:De("eye",60016),eyeUnwatch:De("eye-unwatch",60016),eyeWatch:De("eye-watch",60016),circleFilled:De("circle-filled",60017),primitiveDot:De("primitive-dot",60017),closeDirty:De("close-dirty",60017),debugBreakpoint:De("debug-breakpoint",60017),debugBreakpointDisabled:De("debug-breakpoint-disabled",60017),debugHint:De("debug-hint",60017),terminalDecorationSuccess:De("terminal-decoration-success",60017),primitiveSquare:De("primitive-square",60018),edit:De("edit",60019),pencil:De("pencil",60019),info:De("info",60020),issueOpened:De("issue-opened",60020),gistPrivate:De("gist-private",60021),gitForkPrivate:De("git-fork-private",60021),lock:De("lock",60021),mirrorPrivate:De("mirror-private",60021),close:De("close",60022),removeClose:De("remove-close",60022),x:De("x",60022),repoSync:De("repo-sync",60023),sync:De("sync",60023),clone:De("clone",60024),desktopDownload:De("desktop-download",60024),beaker:De("beaker",60025),microscope:De("microscope",60025),vm:De("vm",60026),deviceDesktop:De("device-desktop",60026),file:De("file",60027),more:De("more",60028),ellipsis:De("ellipsis",60028),kebabHorizontal:De("kebab-horizontal",60028),mailReply:De("mail-reply",60029),reply:De("reply",60029),organization:De("organization",60030),organizationFilled:De("organization-filled",60030),organizationOutline:De("organization-outline",60030),newFile:De("new-file",60031),fileAdd:De("file-add",60031),newFolder:De("new-folder",60032),fileDirectoryCreate:De("file-directory-create",60032),trash:De("trash",60033),trashcan:De("trashcan",60033),history:De("history",60034),clock:De("clock",60034),folder:De("folder",60035),fileDirectory:De("file-directory",60035),symbolFolder:De("symbol-folder",60035),logoGithub:De("logo-github",60036),markGithub:De("mark-github",60036),github:De("github",60036),terminal:De("terminal",60037),console:De("console",60037),repl:De("repl",60037),zap:De("zap",60038),symbolEvent:De("symbol-event",60038),error:De("error",60039),stop:De("stop",60039),variable:De("variable",60040),symbolVariable:De("symbol-variable",60040),array:De("array",60042),symbolArray:De("symbol-array",60042),symbolModule:De("symbol-module",60043),symbolPackage:De("symbol-package",60043),symbolNamespace:De("symbol-namespace",60043),symbolObject:De("symbol-object",60043),symbolMethod:De("symbol-method",60044),symbolFunction:De("symbol-function",60044),symbolConstructor:De("symbol-constructor",60044),symbolBoolean:De("symbol-boolean",60047),symbolNull:De("symbol-null",60047),symbolNumeric:De("symbol-numeric",60048),symbolNumber:De("symbol-number",60048),symbolStructure:De("symbol-structure",60049),symbolStruct:De("symbol-struct",60049),symbolParameter:De("symbol-parameter",60050),symbolTypeParameter:De("symbol-type-parameter",60050),symbolKey:De("symbol-key",60051),symbolText:De("symbol-text",60051),symbolReference:De("symbol-reference",60052),goToFile:De("go-to-file",60052),symbolEnum:De("symbol-enum",60053),symbolValue:De("symbol-value",60053),symbolRuler:De("symbol-ruler",60054),symbolUnit:De("symbol-unit",60054),activateBreakpoints:De("activate-breakpoints",60055),archive:De("archive",60056),arrowBoth:De("arrow-both",60057),arrowDown:De("arrow-down",60058),arrowLeft:De("arrow-left",60059),arrowRight:De("arrow-right",60060),arrowSmallDown:De("arrow-small-down",60061),arrowSmallLeft:De("arrow-small-left",60062),arrowSmallRight:De("arrow-small-right",60063),arrowSmallUp:De("arrow-small-up",60064),arrowUp:De("arrow-up",60065),bell:De("bell",60066),bold:De("bold",60067),book:De("book",60068),bookmark:De("bookmark",60069),debugBreakpointConditionalUnverified:De("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:De("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:De("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:De("debug-breakpoint-data-unverified",60072),debugBreakpointData:De("debug-breakpoint-data",60073),debugBreakpointDataDisabled:De("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:De("debug-breakpoint-log-unverified",60074),debugBreakpointLog:De("debug-breakpoint-log",60075),debugBreakpointLogDisabled:De("debug-breakpoint-log-disabled",60075),briefcase:De("briefcase",60076),broadcast:De("broadcast",60077),browser:De("browser",60078),bug:De("bug",60079),calendar:De("calendar",60080),caseSensitive:De("case-sensitive",60081),check:De("check",60082),checklist:De("checklist",60083),chevronDown:De("chevron-down",60084),chevronLeft:De("chevron-left",60085),chevronRight:De("chevron-right",60086),chevronUp:De("chevron-up",60087),chromeClose:De("chrome-close",60088),chromeMaximize:De("chrome-maximize",60089),chromeMinimize:De("chrome-minimize",60090),chromeRestore:De("chrome-restore",60091),circleOutline:De("circle-outline",60092),circle:De("circle",60092),debugBreakpointUnverified:De("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:De("terminal-decoration-incomplete",60092),circleSlash:De("circle-slash",60093),circuitBoard:De("circuit-board",60094),clearAll:De("clear-all",60095),clippy:De("clippy",60096),closeAll:De("close-all",60097),cloudDownload:De("cloud-download",60098),cloudUpload:De("cloud-upload",60099),code:De("code",60100),collapseAll:De("collapse-all",60101),colorMode:De("color-mode",60102),commentDiscussion:De("comment-discussion",60103),creditCard:De("credit-card",60105),dash:De("dash",60108),dashboard:De("dashboard",60109),database:De("database",60110),debugContinue:De("debug-continue",60111),debugDisconnect:De("debug-disconnect",60112),debugPause:De("debug-pause",60113),debugRestart:De("debug-restart",60114),debugStart:De("debug-start",60115),debugStepInto:De("debug-step-into",60116),debugStepOut:De("debug-step-out",60117),debugStepOver:De("debug-step-over",60118),debugStop:De("debug-stop",60119),debug:De("debug",60120),deviceCameraVideo:De("device-camera-video",60121),deviceCamera:De("device-camera",60122),deviceMobile:De("device-mobile",60123),diffAdded:De("diff-added",60124),diffIgnored:De("diff-ignored",60125),diffModified:De("diff-modified",60126),diffRemoved:De("diff-removed",60127),diffRenamed:De("diff-renamed",60128),diff:De("diff",60129),diffSidebyside:De("diff-sidebyside",60129),discard:De("discard",60130),editorLayout:De("editor-layout",60131),emptyWindow:De("empty-window",60132),exclude:De("exclude",60133),extensions:De("extensions",60134),eyeClosed:De("eye-closed",60135),fileBinary:De("file-binary",60136),fileCode:De("file-code",60137),fileMedia:De("file-media",60138),filePdf:De("file-pdf",60139),fileSubmodule:De("file-submodule",60140),fileSymlinkDirectory:De("file-symlink-directory",60141),fileSymlinkFile:De("file-symlink-file",60142),fileZip:De("file-zip",60143),files:De("files",60144),filter:De("filter",60145),flame:De("flame",60146),foldDown:De("fold-down",60147),foldUp:De("fold-up",60148),fold:De("fold",60149),folderActive:De("folder-active",60150),folderOpened:De("folder-opened",60151),gear:De("gear",60152),gift:De("gift",60153),gistSecret:De("gist-secret",60154),gist:De("gist",60155),gitCommit:De("git-commit",60156),gitCompare:De("git-compare",60157),compareChanges:De("compare-changes",60157),gitMerge:De("git-merge",60158),githubAction:De("github-action",60159),githubAlt:De("github-alt",60160),globe:De("globe",60161),grabber:De("grabber",60162),graph:De("graph",60163),gripper:De("gripper",60164),heart:De("heart",60165),home:De("home",60166),horizontalRule:De("horizontal-rule",60167),hubot:De("hubot",60168),inbox:De("inbox",60169),issueReopened:De("issue-reopened",60171),issues:De("issues",60172),italic:De("italic",60173),jersey:De("jersey",60174),json:De("json",60175),kebabVertical:De("kebab-vertical",60176),key:De("key",60177),law:De("law",60178),lightbulbAutofix:De("lightbulb-autofix",60179),linkExternal:De("link-external",60180),link:De("link",60181),listOrdered:De("list-ordered",60182),listUnordered:De("list-unordered",60183),liveShare:De("live-share",60184),loading:De("loading",60185),location:De("location",60186),mailRead:De("mail-read",60187),mail:De("mail",60188),markdown:De("markdown",60189),megaphone:De("megaphone",60190),mention:De("mention",60191),milestone:De("milestone",60192),gitPullRequestMilestone:De("git-pull-request-milestone",60192),mortarBoard:De("mortar-board",60193),move:De("move",60194),multipleWindows:De("multiple-windows",60195),mute:De("mute",60196),noNewline:De("no-newline",60197),note:De("note",60198),octoface:De("octoface",60199),openPreview:De("open-preview",60200),package:De("package",60201),paintcan:De("paintcan",60202),pin:De("pin",60203),play:De("play",60204),run:De("run",60204),plug:De("plug",60205),preserveCase:De("preserve-case",60206),preview:De("preview",60207),project:De("project",60208),pulse:De("pulse",60209),question:De("question",60210),quote:De("quote",60211),radioTower:De("radio-tower",60212),reactions:De("reactions",60213),references:De("references",60214),refresh:De("refresh",60215),regex:De("regex",60216),remoteExplorer:De("remote-explorer",60217),remote:De("remote",60218),remove:De("remove",60219),replaceAll:De("replace-all",60220),replace:De("replace",60221),repoClone:De("repo-clone",60222),repoForcePush:De("repo-force-push",60223),repoPull:De("repo-pull",60224),repoPush:De("repo-push",60225),report:De("report",60226),requestChanges:De("request-changes",60227),rocket:De("rocket",60228),rootFolderOpened:De("root-folder-opened",60229),rootFolder:De("root-folder",60230),rss:De("rss",60231),ruby:De("ruby",60232),saveAll:De("save-all",60233),saveAs:De("save-as",60234),save:De("save",60235),screenFull:De("screen-full",60236),screenNormal:De("screen-normal",60237),searchStop:De("search-stop",60238),server:De("server",60240),settingsGear:De("settings-gear",60241),settings:De("settings",60242),shield:De("shield",60243),smiley:De("smiley",60244),sortPrecedence:De("sort-precedence",60245),splitHorizontal:De("split-horizontal",60246),splitVertical:De("split-vertical",60247),squirrel:De("squirrel",60248),starFull:De("star-full",60249),starHalf:De("star-half",60250),symbolClass:De("symbol-class",60251),symbolColor:De("symbol-color",60252),symbolConstant:De("symbol-constant",60253),symbolEnumMember:De("symbol-enum-member",60254),symbolField:De("symbol-field",60255),symbolFile:De("symbol-file",60256),symbolInterface:De("symbol-interface",60257),symbolKeyword:De("symbol-keyword",60258),symbolMisc:De("symbol-misc",60259),symbolOperator:De("symbol-operator",60260),symbolProperty:De("symbol-property",60261),wrench:De("wrench",60261),wrenchSubaction:De("wrench-subaction",60261),symbolSnippet:De("symbol-snippet",60262),tasklist:De("tasklist",60263),telescope:De("telescope",60264),textSize:De("text-size",60265),threeBars:De("three-bars",60266),thumbsdown:De("thumbsdown",60267),thumbsup:De("thumbsup",60268),tools:De("tools",60269),triangleDown:De("triangle-down",60270),triangleLeft:De("triangle-left",60271),triangleRight:De("triangle-right",60272),triangleUp:De("triangle-up",60273),twitter:De("twitter",60274),unfold:De("unfold",60275),unlock:De("unlock",60276),unmute:De("unmute",60277),unverified:De("unverified",60278),verified:De("verified",60279),versions:De("versions",60280),vmActive:De("vm-active",60281),vmOutline:De("vm-outline",60282),vmRunning:De("vm-running",60283),watch:De("watch",60284),whitespace:De("whitespace",60285),wholeWord:De("whole-word",60286),window:De("window",60287),wordWrap:De("word-wrap",60288),zoomIn:De("zoom-in",60289),zoomOut:De("zoom-out",60290),listFilter:De("list-filter",60291),listFlat:De("list-flat",60292),listSelection:De("list-selection",60293),selection:De("selection",60293),listTree:De("list-tree",60294),debugBreakpointFunctionUnverified:De("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:De("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:De("debug-breakpoint-function-disabled",60296),debugStackframeActive:De("debug-stackframe-active",60297),circleSmallFilled:De("circle-small-filled",60298),debugStackframeDot:De("debug-stackframe-dot",60298),terminalDecorationMark:De("terminal-decoration-mark",60298),debugStackframe:De("debug-stackframe",60299),debugStackframeFocused:De("debug-stackframe-focused",60299),debugBreakpointUnsupported:De("debug-breakpoint-unsupported",60300),symbolString:De("symbol-string",60301),debugReverseContinue:De("debug-reverse-continue",60302),debugStepBack:De("debug-step-back",60303),debugRestartFrame:De("debug-restart-frame",60304),debugAlt:De("debug-alt",60305),callIncoming:De("call-incoming",60306),callOutgoing:De("call-outgoing",60307),menu:De("menu",60308),expandAll:De("expand-all",60309),feedback:De("feedback",60310),gitPullRequestReviewer:De("git-pull-request-reviewer",60310),groupByRefType:De("group-by-ref-type",60311),ungroupByRefType:De("ungroup-by-ref-type",60312),account:De("account",60313),gitPullRequestAssignee:De("git-pull-request-assignee",60313),bellDot:De("bell-dot",60314),debugConsole:De("debug-console",60315),library:De("library",60316),output:De("output",60317),runAll:De("run-all",60318),syncIgnored:De("sync-ignored",60319),pinned:De("pinned",60320),githubInverted:De("github-inverted",60321),serverProcess:De("server-process",60322),serverEnvironment:De("server-environment",60323),pass:De("pass",60324),issueClosed:De("issue-closed",60324),stopCircle:De("stop-circle",60325),playCircle:De("play-circle",60326),record:De("record",60327),debugAltSmall:De("debug-alt-small",60328),vmConnect:De("vm-connect",60329),cloud:De("cloud",60330),merge:De("merge",60331),export:De("export",60332),graphLeft:De("graph-left",60333),magnet:De("magnet",60334),notebook:De("notebook",60335),redo:De("redo",60336),checkAll:De("check-all",60337),pinnedDirty:De("pinned-dirty",60338),passFilled:De("pass-filled",60339),circleLargeFilled:De("circle-large-filled",60340),circleLarge:De("circle-large",60341),circleLargeOutline:De("circle-large-outline",60341),combine:De("combine",60342),gather:De("gather",60342),table:De("table",60343),variableGroup:De("variable-group",60344),typeHierarchy:De("type-hierarchy",60345),typeHierarchySub:De("type-hierarchy-sub",60346),typeHierarchySuper:De("type-hierarchy-super",60347),gitPullRequestCreate:De("git-pull-request-create",60348),runAbove:De("run-above",60349),runBelow:De("run-below",60350),notebookTemplate:De("notebook-template",60351),debugRerun:De("debug-rerun",60352),workspaceTrusted:De("workspace-trusted",60353),workspaceUntrusted:De("workspace-untrusted",60354),workspaceUnknown:De("workspace-unknown",60355),terminalCmd:De("terminal-cmd",60356),terminalDebian:De("terminal-debian",60357),terminalLinux:De("terminal-linux",60358),terminalPowershell:De("terminal-powershell",60359),terminalTmux:De("terminal-tmux",60360),terminalUbuntu:De("terminal-ubuntu",60361),terminalBash:De("terminal-bash",60362),arrowSwap:De("arrow-swap",60363),copy:De("copy",60364),personAdd:De("person-add",60365),filterFilled:De("filter-filled",60366),wand:De("wand",60367),debugLineByLine:De("debug-line-by-line",60368),inspect:De("inspect",60369),layers:De("layers",60370),layersDot:De("layers-dot",60371),layersActive:De("layers-active",60372),compass:De("compass",60373),compassDot:De("compass-dot",60374),compassActive:De("compass-active",60375),azure:De("azure",60376),issueDraft:De("issue-draft",60377),gitPullRequestClosed:De("git-pull-request-closed",60378),gitPullRequestDraft:De("git-pull-request-draft",60379),debugAll:De("debug-all",60380),debugCoverage:De("debug-coverage",60381),runErrors:De("run-errors",60382),folderLibrary:De("folder-library",60383),debugContinueSmall:De("debug-continue-small",60384),beakerStop:De("beaker-stop",60385),graphLine:De("graph-line",60386),graphScatter:De("graph-scatter",60387),pieChart:De("pie-chart",60388),bracket:De("bracket",60175),bracketDot:De("bracket-dot",60389),bracketError:De("bracket-error",60390),lockSmall:De("lock-small",60391),azureDevops:De("azure-devops",60392),verifiedFilled:De("verified-filled",60393),newline:De("newline",60394),layout:De("layout",60395),layoutActivitybarLeft:De("layout-activitybar-left",60396),layoutActivitybarRight:De("layout-activitybar-right",60397),layoutPanelLeft:De("layout-panel-left",60398),layoutPanelCenter:De("layout-panel-center",60399),layoutPanelJustify:De("layout-panel-justify",60400),layoutPanelRight:De("layout-panel-right",60401),layoutPanel:De("layout-panel",60402),layoutSidebarLeft:De("layout-sidebar-left",60403),layoutSidebarRight:De("layout-sidebar-right",60404),layoutStatusbar:De("layout-statusbar",60405),layoutMenubar:De("layout-menubar",60406),layoutCentered:De("layout-centered",60407),target:De("target",60408),indent:De("indent",60409),recordSmall:De("record-small",60410),errorSmall:De("error-small",60411),terminalDecorationError:De("terminal-decoration-error",60411),arrowCircleDown:De("arrow-circle-down",60412),arrowCircleLeft:De("arrow-circle-left",60413),arrowCircleRight:De("arrow-circle-right",60414),arrowCircleUp:De("arrow-circle-up",60415),layoutSidebarRightOff:De("layout-sidebar-right-off",60416),layoutPanelOff:De("layout-panel-off",60417),layoutSidebarLeftOff:De("layout-sidebar-left-off",60418),blank:De("blank",60419),heartFilled:De("heart-filled",60420),map:De("map",60421),mapHorizontal:De("map-horizontal",60421),foldHorizontal:De("fold-horizontal",60421),mapFilled:De("map-filled",60422),mapHorizontalFilled:De("map-horizontal-filled",60422),foldHorizontalFilled:De("fold-horizontal-filled",60422),circleSmall:De("circle-small",60423),bellSlash:De("bell-slash",60424),bellSlashDot:De("bell-slash-dot",60425),commentUnresolved:De("comment-unresolved",60426),gitPullRequestGoToChanges:De("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:De("git-pull-request-new-changes",60428),searchFuzzy:De("search-fuzzy",60429),commentDraft:De("comment-draft",60430),send:De("send",60431),sparkle:De("sparkle",60432),insert:De("insert",60433),mic:De("mic",60434),thumbsdownFilled:De("thumbsdown-filled",60435),thumbsupFilled:De("thumbsup-filled",60436),coffee:De("coffee",60437),snake:De("snake",60438),game:De("game",60439),vr:De("vr",60440),chip:De("chip",60441),piano:De("piano",60442),music:De("music",60443),micFilled:De("mic-filled",60444),repoFetch:De("repo-fetch",60445),copilot:De("copilot",60446),lightbulbSparkle:De("lightbulb-sparkle",60447),robot:De("robot",60448),sparkleFilled:De("sparkle-filled",60449),diffSingle:De("diff-single",60450),diffMultiple:De("diff-multiple",60451),surroundWith:De("surround-with",60452),share:De("share",60453),gitStash:De("git-stash",60454),gitStashApply:De("git-stash-apply",60455),gitStashPop:De("git-stash-pop",60456),vscode:De("vscode",60457),vscodeInsiders:De("vscode-insiders",60458),codeOss:De("code-oss",60459),runCoverage:De("run-coverage",60460),runAllCoverage:De("run-all-coverage",60461),coverage:De("coverage",60462),githubProject:De("github-project",60463),mapVertical:De("map-vertical",60464),foldVertical:De("fold-vertical",60464),mapVerticalFilled:De("map-vertical-filled",60465),foldVerticalFilled:De("fold-vertical-filled",60465),goToSearch:De("go-to-search",60466),percentage:De("percentage",60467),sortPercentage:De("sort-percentage",60467),attach:De("attach",60468),goToEditingSession:De("go-to-editing-session",60469),editSession:De("edit-session",60470),codeReview:De("code-review",60471),copilotWarning:De("copilot-warning",60472),python:De("python",60473),copilotLarge:De("copilot-large",60474),copilotWarningLarge:De("copilot-warning-large",60475),keyboardTab:De("keyboard-tab",60476),copilotBlocked:De("copilot-blocked",60477),copilotNotConnected:De("copilot-not-connected",60478),flag:De("flag",60479),lightbulbEmpty:De("lightbulb-empty",60480),symbolMethodArrow:De("symbol-method-arrow",60481),copilotUnavailable:De("copilot-unavailable",60482),repoPinned:De("repo-pinned",60483),keyboardTabAbove:De("keyboard-tab-above",60484),keyboardTabBelow:De("keyboard-tab-below",60485),gitPullRequestDone:De("git-pull-request-done",60486),mcp:De("mcp",60487),extensionsLarge:De("extensions-large",60488),layoutPanelDock:De("layout-panel-dock",60489),layoutSidebarLeftDock:De("layout-sidebar-left-dock",60490),layoutSidebarRightDock:De("layout-sidebar-right-dock",60491),copilotInProgress:De("copilot-in-progress",60492),copilotError:De("copilot-error",60493),copilotSuccess:De("copilot-success",60494),chatSparkle:De("chat-sparkle",60495),searchSparkle:De("search-sparkle",60496),editSparkle:De("edit-sparkle",60497),copilotSnooze:De("copilot-snooze",60498),sendToRemoteAgent:De("send-to-remote-agent",60499),commentDiscussionSparkle:De("comment-discussion-sparkle",60500),chatSparkleWarning:De("chat-sparkle-warning",60501),chatSparkleError:De("chat-sparkle-error",60502),collection:De("collection",60503),newCollection:De("new-collection",60504),thinking:De("thinking",60505),build:De("build",60506),commentDiscussionQuote:De("comment-discussion-quote",60507),cursor:De("cursor",60508),eraser:De("eraser",60509),fileText:De("file-text",60510),gitLens:De("git-lens",60511),quotes:De("quotes",60512),rename:De("rename",60513),runWithDeps:De("run-with-deps",60514),debugConnected:De("debug-connected",60515),strikethrough:De("strikethrough",60516),openInProduct:De("open-in-product",60517),indexZero:De("index-zero",60518),agent:De("agent",60519),editCode:De("edit-code",60520),repoSelected:De("repo-selected",60521),skip:De("skip",60522),mergeInto:De("merge-into",60523),gitBranchChanges:De("git-branch-changes",60524),gitBranchStagedChanges:De("git-branch-staged-changes",60525),gitBranchConflicts:De("git-branch-conflicts",60526),gitBranch:De("git-branch",60527),gitBranchCreate:De("git-branch-create",60527),gitBranchDelete:De("git-branch-delete",60527),searchLarge:De("search-large",60528),terminalGitBash:De("terminal-git-bash",60529)},l5e={dialogError:De("dialog-error","error"),dialogWarning:De("dialog-warning","warning"),dialogInfo:De("dialog-info","info"),dialogClose:De("dialog-close","close"),treeItemExpanded:De("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:De("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:De("tree-filter-on-type-off","list-selection"),treeFilterClear:De("tree-filter-clear","close"),treeItemLoading:De("tree-item-loading","loading"),menuSelection:De("menu-selection","check"),menuSubmenu:De("menu-submenu","chevron-right"),menuBarMore:De("menubar-more","more"),scrollbarButtonLeft:De("scrollbar-button-left","triangle-left"),scrollbarButtonRight:De("scrollbar-button-right","triangle-right"),scrollbarButtonUp:De("scrollbar-button-up","triangle-up"),scrollbarButtonDown:De("scrollbar-button-down","triangle-down"),toolBarMore:De("toolbar-more","more"),quickInputBack:De("quick-input-back","arrow-left"),dropDownButton:De("drop-down-button",60084),symbolCustomColor:De("symbol-customcolor",60252),exportIcon:De("export",60332),workspaceUnspecified:De("workspace-unspecified",60355),newLine:De("newline",60394),thumbsDownFilled:De("thumbsdown-filled",60435),thumbsUpFilled:De("thumbsup-filled",60436),gitFetch:De("git-fetch",60445),lightbulbSparkleAutofix:De("lightbulb-sparkle-autofix",60447),debugBreakpointPending:De("debug-breakpoint-pending",60377)},vs={...s5e,...l5e};class c5e{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new FE,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(v){this._onDidChange.fire({changedLanguages:v,changedColorMap:!1})}register(v,x){return this._tokenizationSupports.set(v,x),this.handleChange([v]),hB(()=>{this._tokenizationSupports.get(v)===x&&(this._tokenizationSupports.delete(v),this.handleChange([v]))})}get(v){return this._tokenizationSupports.get(v)||null}registerFactory(v,x){var $;($=this._factories.get(v))==null||$.dispose();const W=new d5e(this,v,x);return this._factories.set(v,W),hB(()=>{const _e=this._factories.get(v);!_e||_e!==W||(this._factories.delete(v),_e.dispose())})}async getOrCreate(v){const x=this.get(v);if(x)return x;const W=this._factories.get(v);return!W||W.isResolved?null:(await W.resolve(),this.get(v))}isResolved(v){if(this.get(v))return!0;const W=this._factories.get(v);return!!(!W||W.isResolved)}setColorMap(v){this._colorMap=v,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class d5e extends oN{get isResolved(){return this._isResolved}constructor(v,x,W){super(),this._registry=v,this._languageId=x,this._factory=W,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const v=await this._factory.tokenizationSupport;this._isResolved=!0,v&&!this._isDisposed&&this._register(this._registry.register(this._languageId,v))}}class u5e{constructor(v,x,W){this.offset=v,this.type=x,this.language=W,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Tve;(function(_){_[_.Increase=0]="Increase",_[_.Decrease=1]="Decrease"})(Tve||(Tve={}));var Sve;(function(_){const v=new Map;v.set(0,vs.symbolMethod),v.set(1,vs.symbolFunction),v.set(2,vs.symbolConstructor),v.set(3,vs.symbolField),v.set(4,vs.symbolVariable),v.set(5,vs.symbolClass),v.set(6,vs.symbolStruct),v.set(7,vs.symbolInterface),v.set(8,vs.symbolModule),v.set(9,vs.symbolProperty),v.set(10,vs.symbolEvent),v.set(11,vs.symbolOperator),v.set(12,vs.symbolUnit),v.set(13,vs.symbolValue),v.set(15,vs.symbolEnum),v.set(14,vs.symbolConstant),v.set(15,vs.symbolEnum),v.set(16,vs.symbolEnumMember),v.set(17,vs.symbolKeyword),v.set(28,vs.symbolSnippet),v.set(18,vs.symbolText),v.set(19,vs.symbolColor),v.set(20,vs.symbolFile),v.set(21,vs.symbolReference),v.set(22,vs.symbolCustomColor),v.set(23,vs.symbolFolder),v.set(24,vs.symbolTypeParameter),v.set(25,vs.account),v.set(26,vs.issues),v.set(27,vs.tools);function x(Le){let Ke=v.get(Le);return Ke||(console.info("No codicon found for CompletionItemKind "+Le),Ke=vs.symbolProperty),Ke}_.toIcon=x;function W(Le){switch(Le){case 0:return xs(728,"Method");case 1:return xs(729,"Function");case 2:return xs(730,"Constructor");case 3:return xs(731,"Field");case 4:return xs(732,"Variable");case 5:return xs(733,"Class");case 6:return xs(734,"Struct");case 7:return xs(735,"Interface");case 8:return xs(736,"Module");case 9:return xs(737,"Property");case 10:return xs(738,"Event");case 11:return xs(739,"Operator");case 12:return xs(740,"Unit");case 13:return xs(741,"Value");case 14:return xs(742,"Constant");case 15:return xs(743,"Enum");case 16:return xs(744,"Enum Member");case 17:return xs(745,"Keyword");case 18:return xs(746,"Text");case 19:return xs(747,"Color");case 20:return xs(748,"File");case 21:return xs(749,"Reference");case 22:return xs(750,"Custom Color");case 23:return xs(751,"Folder");case 24:return xs(752,"Type Parameter");case 25:return xs(753,"User");case 26:return xs(754,"Issue");case 27:return xs(755,"Tool");case 28:return xs(756,"Snippet");default:return""}}_.toLabel=W;const $=new Map;$.set("method",0),$.set("function",1),$.set("constructor",2),$.set("field",3),$.set("variable",4),$.set("class",5),$.set("struct",6),$.set("interface",7),$.set("module",8),$.set("property",9),$.set("event",10),$.set("operator",11),$.set("unit",12),$.set("value",13),$.set("constant",14),$.set("enum",15),$.set("enum-member",16),$.set("enumMember",16),$.set("keyword",17),$.set("snippet",28),$.set("text",18),$.set("color",19),$.set("file",20),$.set("reference",21),$.set("customcolor",22),$.set("folder",23),$.set("type-parameter",24),$.set("typeParameter",24),$.set("account",25),$.set("issue",26),$.set("tool",27);function _e(Le,Ke){let se=$.get(Le);return typeof se>"u"&&!Ke&&(se=9),se}_.fromString=_e})(Sve||(Sve={}));var Eve;(function(_){_[_.Automatic=0]="Automatic",_[_.Explicit=1]="Explicit"})(Eve||(Eve={}));var Ave;(function(_){_[_.Code=1]="Code",_[_.Label=2]="Label"})(Ave||(Ave={}));var Ive;(function(_){_[_.Accepted=0]="Accepted",_[_.Rejected=1]="Rejected",_[_.Ignored=2]="Ignored"})(Ive||(Ive={}));var xve;(function(_){_[_.Automatic=0]="Automatic",_[_.PasteAs=1]="PasteAs"})(xve||(xve={}));var Rve;(function(_){_[_.Invoke=1]="Invoke",_[_.TriggerCharacter=2]="TriggerCharacter",_[_.ContentChange=3]="ContentChange"})(Rve||(Rve={}));var Dve;(function(_){_[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write"})(Dve||(Dve={})),xs(757,"array"),xs(758,"boolean"),xs(759,"class"),xs(760,"constant"),xs(761,"constructor"),xs(762,"enumeration"),xs(763,"enumeration member"),xs(764,"event"),xs(765,"field"),xs(766,"file"),xs(767,"function"),xs(768,"interface"),xs(769,"key"),xs(770,"method"),xs(771,"module"),xs(772,"namespace"),xs(773,"null"),xs(774,"number"),xs(775,"object"),xs(776,"operator"),xs(777,"package"),xs(778,"property"),xs(779,"string"),xs(780,"struct"),xs(781,"type parameter"),xs(782,"variable");var Cve;(function(_){const v=new Map;v.set(0,vs.symbolFile),v.set(1,vs.symbolModule),v.set(2,vs.symbolNamespace),v.set(3,vs.symbolPackage),v.set(4,vs.symbolClass),v.set(5,vs.symbolMethod),v.set(6,vs.symbolProperty),v.set(7,vs.symbolField),v.set(8,vs.symbolConstructor),v.set(9,vs.symbolEnum),v.set(10,vs.symbolInterface),v.set(11,vs.symbolFunction),v.set(12,vs.symbolVariable),v.set(13,vs.symbolConstant),v.set(14,vs.symbolString),v.set(15,vs.symbolNumber),v.set(16,vs.symbolBoolean),v.set(17,vs.symbolArray),v.set(18,vs.symbolObject),v.set(19,vs.symbolKey),v.set(20,vs.symbolNull),v.set(21,vs.symbolEnumMember),v.set(22,vs.symbolStruct),v.set(23,vs.symbolEvent),v.set(24,vs.symbolOperator),v.set(25,vs.symbolTypeParameter);function x(_e){let Le=v.get(_e);return Le||(console.info("No codicon found for SymbolKind "+_e),Le=vs.symbolProperty),Le}_.toIcon=x;const W=new Map;W.set(0,20),W.set(1,8),W.set(2,8),W.set(3,8),W.set(4,5),W.set(5,0),W.set(6,9),W.set(7,3),W.set(8,2),W.set(9,15),W.set(10,7),W.set(11,1),W.set(12,4),W.set(13,14),W.set(14,18),W.set(15,13),W.set(16,13),W.set(17,13),W.set(18,13),W.set(19,17),W.set(20,13),W.set(21,16),W.set(22,6),W.set(23,10),W.set(24,11),W.set(25,24);function $(_e){let Le=W.get(_e);return Le===void 0&&(console.info("No completion kind found for SymbolKind "+_e),Le=20),Le}_.toCompletionKind=$})(Cve||(Cve={}));const RT=class RT{static fromValue(v){switch(v){case"comment":return RT.Comment;case"imports":return RT.Imports;case"region":return RT.Region}return new RT(v)}constructor(v){this.value=v}};RT.Comment=new RT("comment"),RT.Imports=new RT("imports"),RT.Region=new RT("region");let Nve=RT;var Mve;(function(_){_[_.AIGenerated=1]="AIGenerated"})(Mve||(Mve={}));var Pve;(function(_){_[_.Invoke=0]="Invoke",_[_.Automatic=1]="Automatic"})(Pve||(Pve={}));var Lve;(function(_){function v(x){return!x||typeof x!="object"?!1:typeof x.id=="string"&&typeof x.title=="string"}_.is=v})(Lve||(Lve={}));var kve;(function(_){_[_.Type=1]="Type",_[_.Parameter=2]="Parameter"})(kve||(kve={})),new c5e;var wve;(function(_){_[_.Unknown=0]="Unknown",_[_.Disabled=1]="Disabled",_[_.Enabled=2]="Enabled"})(wve||(wve={}));var Ove;(function(_){_[_.Invoke=1]="Invoke",_[_.Auto=2]="Auto"})(Ove||(Ove={}));var Wve;(function(_){_[_.None=0]="None",_[_.KeepWhitespace=1]="KeepWhitespace",_[_.InsertAsSnippet=4]="InsertAsSnippet"})(Wve||(Wve={}));var Fve;(function(_){_[_.Method=0]="Method",_[_.Function=1]="Function",_[_.Constructor=2]="Constructor",_[_.Field=3]="Field",_[_.Variable=4]="Variable",_[_.Class=5]="Class",_[_.Struct=6]="Struct",_[_.Interface=7]="Interface",_[_.Module=8]="Module",_[_.Property=9]="Property",_[_.Event=10]="Event",_[_.Operator=11]="Operator",_[_.Unit=12]="Unit",_[_.Value=13]="Value",_[_.Constant=14]="Constant",_[_.Enum=15]="Enum",_[_.EnumMember=16]="EnumMember",_[_.Keyword=17]="Keyword",_[_.Text=18]="Text",_[_.Color=19]="Color",_[_.File=20]="File",_[_.Reference=21]="Reference",_[_.Customcolor=22]="Customcolor",_[_.Folder=23]="Folder",_[_.TypeParameter=24]="TypeParameter",_[_.User=25]="User",_[_.Issue=26]="Issue",_[_.Tool=27]="Tool",_[_.Snippet=28]="Snippet"})(Fve||(Fve={}));var zve;(function(_){_[_.Deprecated=1]="Deprecated"})(zve||(zve={}));var Bve;(function(_){_[_.Invoke=0]="Invoke",_[_.TriggerCharacter=1]="TriggerCharacter",_[_.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Bve||(Bve={}));var Gve;(function(_){_[_.EXACT=0]="EXACT",_[_.ABOVE=1]="ABOVE",_[_.BELOW=2]="BELOW"})(Gve||(Gve={}));var Vve;(function(_){_[_.NotSet=0]="NotSet",_[_.ContentFlush=1]="ContentFlush",_[_.RecoverFromMarkers=2]="RecoverFromMarkers",_[_.Explicit=3]="Explicit",_[_.Paste=4]="Paste",_[_.Undo=5]="Undo",_[_.Redo=6]="Redo"})(Vve||(Vve={}));var jve;(function(_){_[_.LF=1]="LF",_[_.CRLF=2]="CRLF"})(jve||(jve={}));var Uve;(function(_){_[_.Text=0]="Text",_[_.Read=1]="Read",_[_.Write=2]="Write"})(Uve||(Uve={}));var Hve;(function(_){_[_.None=0]="None",_[_.Keep=1]="Keep",_[_.Brackets=2]="Brackets",_[_.Advanced=3]="Advanced",_[_.Full=4]="Full"})(Hve||(Hve={}));var qve;(function(_){_[_.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",_[_.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",_[_.accessibilitySupport=2]="accessibilitySupport",_[_.accessibilityPageSize=3]="accessibilityPageSize",_[_.allowOverflow=4]="allowOverflow",_[_.allowVariableLineHeights=5]="allowVariableLineHeights",_[_.allowVariableFonts=6]="allowVariableFonts",_[_.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",_[_.ariaLabel=8]="ariaLabel",_[_.ariaRequired=9]="ariaRequired",_[_.autoClosingBrackets=10]="autoClosingBrackets",_[_.autoClosingComments=11]="autoClosingComments",_[_.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",_[_.autoClosingDelete=13]="autoClosingDelete",_[_.autoClosingOvertype=14]="autoClosingOvertype",_[_.autoClosingQuotes=15]="autoClosingQuotes",_[_.autoIndent=16]="autoIndent",_[_.autoIndentOnPaste=17]="autoIndentOnPaste",_[_.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",_[_.automaticLayout=19]="automaticLayout",_[_.autoSurround=20]="autoSurround",_[_.bracketPairColorization=21]="bracketPairColorization",_[_.guides=22]="guides",_[_.codeLens=23]="codeLens",_[_.codeLensFontFamily=24]="codeLensFontFamily",_[_.codeLensFontSize=25]="codeLensFontSize",_[_.colorDecorators=26]="colorDecorators",_[_.colorDecoratorsLimit=27]="colorDecoratorsLimit",_[_.columnSelection=28]="columnSelection",_[_.comments=29]="comments",_[_.contextmenu=30]="contextmenu",_[_.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",_[_.cursorBlinking=32]="cursorBlinking",_[_.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",_[_.cursorStyle=34]="cursorStyle",_[_.cursorSurroundingLines=35]="cursorSurroundingLines",_[_.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",_[_.cursorWidth=37]="cursorWidth",_[_.cursorHeight=38]="cursorHeight",_[_.disableLayerHinting=39]="disableLayerHinting",_[_.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",_[_.domReadOnly=41]="domReadOnly",_[_.dragAndDrop=42]="dragAndDrop",_[_.dropIntoEditor=43]="dropIntoEditor",_[_.editContext=44]="editContext",_[_.emptySelectionClipboard=45]="emptySelectionClipboard",_[_.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",_[_.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",_[_.extraEditorClassName=48]="extraEditorClassName",_[_.fastScrollSensitivity=49]="fastScrollSensitivity",_[_.find=50]="find",_[_.fixedOverflowWidgets=51]="fixedOverflowWidgets",_[_.folding=52]="folding",_[_.foldingStrategy=53]="foldingStrategy",_[_.foldingHighlight=54]="foldingHighlight",_[_.foldingImportsByDefault=55]="foldingImportsByDefault",_[_.foldingMaximumRegions=56]="foldingMaximumRegions",_[_.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",_[_.fontFamily=58]="fontFamily",_[_.fontInfo=59]="fontInfo",_[_.fontLigatures=60]="fontLigatures",_[_.fontSize=61]="fontSize",_[_.fontWeight=62]="fontWeight",_[_.fontVariations=63]="fontVariations",_[_.formatOnPaste=64]="formatOnPaste",_[_.formatOnType=65]="formatOnType",_[_.glyphMargin=66]="glyphMargin",_[_.gotoLocation=67]="gotoLocation",_[_.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",_[_.hover=69]="hover",_[_.inDiffEditor=70]="inDiffEditor",_[_.inlineSuggest=71]="inlineSuggest",_[_.letterSpacing=72]="letterSpacing",_[_.lightbulb=73]="lightbulb",_[_.lineDecorationsWidth=74]="lineDecorationsWidth",_[_.lineHeight=75]="lineHeight",_[_.lineNumbers=76]="lineNumbers",_[_.lineNumbersMinChars=77]="lineNumbersMinChars",_[_.linkedEditing=78]="linkedEditing",_[_.links=79]="links",_[_.matchBrackets=80]="matchBrackets",_[_.minimap=81]="minimap",_[_.mouseStyle=82]="mouseStyle",_[_.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",_[_.mouseWheelZoom=84]="mouseWheelZoom",_[_.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",_[_.multiCursorModifier=86]="multiCursorModifier",_[_.mouseMiddleClickAction=87]="mouseMiddleClickAction",_[_.multiCursorPaste=88]="multiCursorPaste",_[_.multiCursorLimit=89]="multiCursorLimit",_[_.occurrencesHighlight=90]="occurrencesHighlight",_[_.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",_[_.overtypeCursorStyle=92]="overtypeCursorStyle",_[_.overtypeOnPaste=93]="overtypeOnPaste",_[_.overviewRulerBorder=94]="overviewRulerBorder",_[_.overviewRulerLanes=95]="overviewRulerLanes",_[_.padding=96]="padding",_[_.pasteAs=97]="pasteAs",_[_.parameterHints=98]="parameterHints",_[_.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",_[_.placeholder=100]="placeholder",_[_.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",_[_.quickSuggestions=102]="quickSuggestions",_[_.quickSuggestionsDelay=103]="quickSuggestionsDelay",_[_.readOnly=104]="readOnly",_[_.readOnlyMessage=105]="readOnlyMessage",_[_.renameOnType=106]="renameOnType",_[_.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",_[_.renderControlCharacters=108]="renderControlCharacters",_[_.renderFinalNewline=109]="renderFinalNewline",_[_.renderLineHighlight=110]="renderLineHighlight",_[_.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",_[_.renderValidationDecorations=112]="renderValidationDecorations",_[_.renderWhitespace=113]="renderWhitespace",_[_.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",_[_.roundedSelection=115]="roundedSelection",_[_.rulers=116]="rulers",_[_.scrollbar=117]="scrollbar",_[_.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",_[_.scrollBeyondLastLine=119]="scrollBeyondLastLine",_[_.scrollPredominantAxis=120]="scrollPredominantAxis",_[_.selectionClipboard=121]="selectionClipboard",_[_.selectionHighlight=122]="selectionHighlight",_[_.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",_[_.selectionHighlightMultiline=124]="selectionHighlightMultiline",_[_.selectOnLineNumbers=125]="selectOnLineNumbers",_[_.showFoldingControls=126]="showFoldingControls",_[_.showUnused=127]="showUnused",_[_.snippetSuggestions=128]="snippetSuggestions",_[_.smartSelect=129]="smartSelect",_[_.smoothScrolling=130]="smoothScrolling",_[_.stickyScroll=131]="stickyScroll",_[_.stickyTabStops=132]="stickyTabStops",_[_.stopRenderingLineAfter=133]="stopRenderingLineAfter",_[_.suggest=134]="suggest",_[_.suggestFontSize=135]="suggestFontSize",_[_.suggestLineHeight=136]="suggestLineHeight",_[_.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",_[_.suggestSelection=138]="suggestSelection",_[_.tabCompletion=139]="tabCompletion",_[_.tabIndex=140]="tabIndex",_[_.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",_[_.unicodeHighlighting=142]="unicodeHighlighting",_[_.unusualLineTerminators=143]="unusualLineTerminators",_[_.useShadowDOM=144]="useShadowDOM",_[_.useTabStops=145]="useTabStops",_[_.wordBreak=146]="wordBreak",_[_.wordSegmenterLocales=147]="wordSegmenterLocales",_[_.wordSeparators=148]="wordSeparators",_[_.wordWrap=149]="wordWrap",_[_.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",_[_.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",_[_.wordWrapColumn=152]="wordWrapColumn",_[_.wordWrapOverride1=153]="wordWrapOverride1",_[_.wordWrapOverride2=154]="wordWrapOverride2",_[_.wrappingIndent=155]="wrappingIndent",_[_.wrappingStrategy=156]="wrappingStrategy",_[_.showDeprecated=157]="showDeprecated",_[_.inertialScroll=158]="inertialScroll",_[_.inlayHints=159]="inlayHints",_[_.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",_[_.effectiveCursorStyle=161]="effectiveCursorStyle",_[_.editorClassName=162]="editorClassName",_[_.pixelRatio=163]="pixelRatio",_[_.tabFocusMode=164]="tabFocusMode",_[_.layoutInfo=165]="layoutInfo",_[_.wrappingInfo=166]="wrappingInfo",_[_.defaultColorDecorators=167]="defaultColorDecorators",_[_.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",_[_.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",_[_.effectiveEditContext=170]="effectiveEditContext",_[_.scrollOnMiddleClick=171]="scrollOnMiddleClick",_[_.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(qve||(qve={}));var Jve;(function(_){_[_.TextDefined=0]="TextDefined",_[_.LF=1]="LF",_[_.CRLF=2]="CRLF"})(Jve||(Jve={}));var Kve;(function(_){_[_.LF=0]="LF",_[_.CRLF=1]="CRLF"})(Kve||(Kve={}));var Xve;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=3]="Right"})(Xve||(Xve={}));var Yve;(function(_){_[_.Increase=0]="Increase",_[_.Decrease=1]="Decrease"})(Yve||(Yve={}));var $ve;(function(_){_[_.None=0]="None",_[_.Indent=1]="Indent",_[_.IndentOutdent=2]="IndentOutdent",_[_.Outdent=3]="Outdent"})($ve||($ve={}));var Qve;(function(_){_[_.Both=0]="Both",_[_.Right=1]="Right",_[_.Left=2]="Left",_[_.None=3]="None"})(Qve||(Qve={}));var Zve;(function(_){_[_.Type=1]="Type",_[_.Parameter=2]="Parameter"})(Zve||(Zve={}));var ebe;(function(_){_[_.Accepted=0]="Accepted",_[_.Rejected=1]="Rejected",_[_.Ignored=2]="Ignored"})(ebe||(ebe={}));var tbe;(function(_){_[_.Code=1]="Code",_[_.Label=2]="Label"})(tbe||(tbe={}));var nbe;(function(_){_[_.Automatic=0]="Automatic",_[_.Explicit=1]="Explicit"})(nbe||(nbe={}));var AQ;(function(_){_[_.DependsOnKbLayout=-1]="DependsOnKbLayout",_[_.Unknown=0]="Unknown",_[_.Backspace=1]="Backspace",_[_.Tab=2]="Tab",_[_.Enter=3]="Enter",_[_.Shift=4]="Shift",_[_.Ctrl=5]="Ctrl",_[_.Alt=6]="Alt",_[_.PauseBreak=7]="PauseBreak",_[_.CapsLock=8]="CapsLock",_[_.Escape=9]="Escape",_[_.Space=10]="Space",_[_.PageUp=11]="PageUp",_[_.PageDown=12]="PageDown",_[_.End=13]="End",_[_.Home=14]="Home",_[_.LeftArrow=15]="LeftArrow",_[_.UpArrow=16]="UpArrow",_[_.RightArrow=17]="RightArrow",_[_.DownArrow=18]="DownArrow",_[_.Insert=19]="Insert",_[_.Delete=20]="Delete",_[_.Digit0=21]="Digit0",_[_.Digit1=22]="Digit1",_[_.Digit2=23]="Digit2",_[_.Digit3=24]="Digit3",_[_.Digit4=25]="Digit4",_[_.Digit5=26]="Digit5",_[_.Digit6=27]="Digit6",_[_.Digit7=28]="Digit7",_[_.Digit8=29]="Digit8",_[_.Digit9=30]="Digit9",_[_.KeyA=31]="KeyA",_[_.KeyB=32]="KeyB",_[_.KeyC=33]="KeyC",_[_.KeyD=34]="KeyD",_[_.KeyE=35]="KeyE",_[_.KeyF=36]="KeyF",_[_.KeyG=37]="KeyG",_[_.KeyH=38]="KeyH",_[_.KeyI=39]="KeyI",_[_.KeyJ=40]="KeyJ",_[_.KeyK=41]="KeyK",_[_.KeyL=42]="KeyL",_[_.KeyM=43]="KeyM",_[_.KeyN=44]="KeyN",_[_.KeyO=45]="KeyO",_[_.KeyP=46]="KeyP",_[_.KeyQ=47]="KeyQ",_[_.KeyR=48]="KeyR",_[_.KeyS=49]="KeyS",_[_.KeyT=50]="KeyT",_[_.KeyU=51]="KeyU",_[_.KeyV=52]="KeyV",_[_.KeyW=53]="KeyW",_[_.KeyX=54]="KeyX",_[_.KeyY=55]="KeyY",_[_.KeyZ=56]="KeyZ",_[_.Meta=57]="Meta",_[_.ContextMenu=58]="ContextMenu",_[_.F1=59]="F1",_[_.F2=60]="F2",_[_.F3=61]="F3",_[_.F4=62]="F4",_[_.F5=63]="F5",_[_.F6=64]="F6",_[_.F7=65]="F7",_[_.F8=66]="F8",_[_.F9=67]="F9",_[_.F10=68]="F10",_[_.F11=69]="F11",_[_.F12=70]="F12",_[_.F13=71]="F13",_[_.F14=72]="F14",_[_.F15=73]="F15",_[_.F16=74]="F16",_[_.F17=75]="F17",_[_.F18=76]="F18",_[_.F19=77]="F19",_[_.F20=78]="F20",_[_.F21=79]="F21",_[_.F22=80]="F22",_[_.F23=81]="F23",_[_.F24=82]="F24",_[_.NumLock=83]="NumLock",_[_.ScrollLock=84]="ScrollLock",_[_.Semicolon=85]="Semicolon",_[_.Equal=86]="Equal",_[_.Comma=87]="Comma",_[_.Minus=88]="Minus",_[_.Period=89]="Period",_[_.Slash=90]="Slash",_[_.Backquote=91]="Backquote",_[_.BracketLeft=92]="BracketLeft",_[_.Backslash=93]="Backslash",_[_.BracketRight=94]="BracketRight",_[_.Quote=95]="Quote",_[_.OEM_8=96]="OEM_8",_[_.IntlBackslash=97]="IntlBackslash",_[_.Numpad0=98]="Numpad0",_[_.Numpad1=99]="Numpad1",_[_.Numpad2=100]="Numpad2",_[_.Numpad3=101]="Numpad3",_[_.Numpad4=102]="Numpad4",_[_.Numpad5=103]="Numpad5",_[_.Numpad6=104]="Numpad6",_[_.Numpad7=105]="Numpad7",_[_.Numpad8=106]="Numpad8",_[_.Numpad9=107]="Numpad9",_[_.NumpadMultiply=108]="NumpadMultiply",_[_.NumpadAdd=109]="NumpadAdd",_[_.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",_[_.NumpadSubtract=111]="NumpadSubtract",_[_.NumpadDecimal=112]="NumpadDecimal",_[_.NumpadDivide=113]="NumpadDivide",_[_.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",_[_.ABNT_C1=115]="ABNT_C1",_[_.ABNT_C2=116]="ABNT_C2",_[_.AudioVolumeMute=117]="AudioVolumeMute",_[_.AudioVolumeUp=118]="AudioVolumeUp",_[_.AudioVolumeDown=119]="AudioVolumeDown",_[_.BrowserSearch=120]="BrowserSearch",_[_.BrowserHome=121]="BrowserHome",_[_.BrowserBack=122]="BrowserBack",_[_.BrowserForward=123]="BrowserForward",_[_.MediaTrackNext=124]="MediaTrackNext",_[_.MediaTrackPrevious=125]="MediaTrackPrevious",_[_.MediaStop=126]="MediaStop",_[_.MediaPlayPause=127]="MediaPlayPause",_[_.LaunchMediaPlayer=128]="LaunchMediaPlayer",_[_.LaunchMail=129]="LaunchMail",_[_.LaunchApp2=130]="LaunchApp2",_[_.Clear=131]="Clear",_[_.MAX_VALUE=132]="MAX_VALUE"})(AQ||(AQ={}));var IQ;(function(_){_[_.Hint=1]="Hint",_[_.Info=2]="Info",_[_.Warning=4]="Warning",_[_.Error=8]="Error"})(IQ||(IQ={}));var xQ;(function(_){_[_.Unnecessary=1]="Unnecessary",_[_.Deprecated=2]="Deprecated"})(xQ||(xQ={}));var rbe;(function(_){_[_.Inline=1]="Inline",_[_.Gutter=2]="Gutter"})(rbe||(rbe={}));var ibe;(function(_){_[_.Normal=1]="Normal",_[_.Underlined=2]="Underlined"})(ibe||(ibe={}));var obe;(function(_){_[_.UNKNOWN=0]="UNKNOWN",_[_.TEXTAREA=1]="TEXTAREA",_[_.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",_[_.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",_[_.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",_[_.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",_[_.CONTENT_TEXT=6]="CONTENT_TEXT",_[_.CONTENT_EMPTY=7]="CONTENT_EMPTY",_[_.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",_[_.CONTENT_WIDGET=9]="CONTENT_WIDGET",_[_.OVERVIEW_RULER=10]="OVERVIEW_RULER",_[_.SCROLLBAR=11]="SCROLLBAR",_[_.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",_[_.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(obe||(obe={}));var abe;(function(_){_[_.AIGenerated=1]="AIGenerated"})(abe||(abe={}));var sbe;(function(_){_[_.Invoke=0]="Invoke",_[_.Automatic=1]="Automatic"})(sbe||(sbe={}));var lbe;(function(_){_[_.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",_[_.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",_[_.TOP_CENTER=2]="TOP_CENTER"})(lbe||(lbe={}));var cbe;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=4]="Right",_[_.Full=7]="Full"})(cbe||(cbe={}));var dbe;(function(_){_[_.Word=0]="Word",_[_.Line=1]="Line",_[_.Suggest=2]="Suggest"})(dbe||(dbe={}));var ube;(function(_){_[_.Left=0]="Left",_[_.Right=1]="Right",_[_.None=2]="None",_[_.LeftOfInjectedText=3]="LeftOfInjectedText",_[_.RightOfInjectedText=4]="RightOfInjectedText"})(ube||(ube={}));var pbe;(function(_){_[_.Off=0]="Off",_[_.On=1]="On",_[_.Relative=2]="Relative",_[_.Interval=3]="Interval",_[_.Custom=4]="Custom"})(pbe||(pbe={}));var fbe;(function(_){_[_.None=0]="None",_[_.Text=1]="Text",_[_.Blocks=2]="Blocks"})(fbe||(fbe={}));var mbe;(function(_){_[_.Smooth=0]="Smooth",_[_.Immediate=1]="Immediate"})(mbe||(mbe={}));var hbe;(function(_){_[_.Auto=1]="Auto",_[_.Hidden=2]="Hidden",_[_.Visible=3]="Visible"})(hbe||(hbe={}));var RQ;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(RQ||(RQ={}));var _be;(function(_){_.Off="off",_.OnCode="onCode",_.On="on"})(_be||(_be={}));var gbe;(function(_){_[_.Invoke=1]="Invoke",_[_.TriggerCharacter=2]="TriggerCharacter",_[_.ContentChange=3]="ContentChange"})(gbe||(gbe={}));var ybe;(function(_){_[_.File=0]="File",_[_.Module=1]="Module",_[_.Namespace=2]="Namespace",_[_.Package=3]="Package",_[_.Class=4]="Class",_[_.Method=5]="Method",_[_.Property=6]="Property",_[_.Field=7]="Field",_[_.Constructor=8]="Constructor",_[_.Enum=9]="Enum",_[_.Interface=10]="Interface",_[_.Function=11]="Function",_[_.Variable=12]="Variable",_[_.Constant=13]="Constant",_[_.String=14]="String",_[_.Number=15]="Number",_[_.Boolean=16]="Boolean",_[_.Array=17]="Array",_[_.Object=18]="Object",_[_.Key=19]="Key",_[_.Null=20]="Null",_[_.EnumMember=21]="EnumMember",_[_.Struct=22]="Struct",_[_.Event=23]="Event",_[_.Operator=24]="Operator",_[_.TypeParameter=25]="TypeParameter"})(ybe||(ybe={}));var vbe;(function(_){_[_.Deprecated=1]="Deprecated"})(vbe||(vbe={}));var bbe;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(bbe||(bbe={}));var Tbe;(function(_){_[_.Hidden=0]="Hidden",_[_.Blink=1]="Blink",_[_.Smooth=2]="Smooth",_[_.Phase=3]="Phase",_[_.Expand=4]="Expand",_[_.Solid=5]="Solid"})(Tbe||(Tbe={}));var Sbe;(function(_){_[_.Line=1]="Line",_[_.Block=2]="Block",_[_.Underline=3]="Underline",_[_.LineThin=4]="LineThin",_[_.BlockOutline=5]="BlockOutline",_[_.UnderlineThin=6]="UnderlineThin"})(Sbe||(Sbe={}));var Ebe;(function(_){_[_.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",_[_.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",_[_.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",_[_.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ebe||(Ebe={}));var Abe;(function(_){_[_.None=0]="None",_[_.Same=1]="Same",_[_.Indent=2]="Indent",_[_.DeepIndent=3]="DeepIndent"})(Abe||(Abe={}));const u2=class u2{static chord(v,x){return Vze(v,x)}};u2.CtrlCmd=2048,u2.Shift=1024,u2.Alt=512,u2.WinCtrl=256;let DQ=u2;function p5e(){return{editor:void 0,languages:void 0,CancellationTokenSource:Fze,Emitter:FE,KeyCode:AQ,KeyMod:DQ,Position:Zc,Range:ss,Selection:Xv,SelectionDirection:RQ,MarkerSeverity:IQ,MarkerTag:xQ,Uri:cN,Token:u5e}}var Ibe;class f5e{constructor(){this[Ibe]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var v;return(v=this._head)==null?void 0:v.value}get last(){var v;return(v=this._tail)==null?void 0:v.value}has(v){return this._map.has(v)}get(v,x=0){const W=this._map.get(v);if(W)return x!==0&&this.touch(W,x),W.value}set(v,x,W=0){let $=this._map.get(v);if($)$.value=x,W!==0&&this.touch($,W);else{switch($={key:v,value:x,next:void 0,previous:void 0},W){case 0:this.addItemLast($);break;case 1:this.addItemFirst($);break;case 2:this.addItemLast($);break;default:this.addItemLast($);break}this._map.set(v,$),this._size++}return this}delete(v){return!!this.remove(v)}remove(v){const x=this._map.get(v);if(x)return this._map.delete(v),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 v=this._head;return this._map.delete(v.key),this.removeItem(v),this._size--,v.value}forEach(v,x){const W=this._state;let $=this._head;for(;$;){if(x?v.bind(x)($.value,$.key,this):v($.value,$.key,this),this._state!==W)throw new Error("LinkedMap got modified during iteration.");$=$.next}}keys(){const v=this,x=this._state;let W=this._head;const $={[Symbol.iterator](){return $},next(){if(v._state!==x)throw new Error("LinkedMap got modified during iteration.");if(W){const _e={value:W.key,done:!1};return W=W.next,_e}else return{value:void 0,done:!0}}};return $}values(){const v=this,x=this._state;let W=this._head;const $={[Symbol.iterator](){return $},next(){if(v._state!==x)throw new Error("LinkedMap got modified during iteration.");if(W){const _e={value:W.value,done:!1};return W=W.next,_e}else return{value:void 0,done:!0}}};return $}entries(){const v=this,x=this._state;let W=this._head;const $={[Symbol.iterator](){return $},next(){if(v._state!==x)throw new Error("LinkedMap got modified during iteration.");if(W){const _e={value:[W.key,W.value],done:!1};return W=W.next,_e}else return{value:void 0,done:!0}}};return $}[(Ibe=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(v){if(v>=this.size)return;if(v===0){this.clear();return}let x=this._head,W=this.size;for(;x&&W>v;)this._map.delete(x.key),x=x.next,W--;this._head=x,this._size=W,x&&(x.previous=void 0),this._state++}trimNew(v){if(v>=this.size)return;if(v===0){this.clear();return}let x=this._tail,W=this.size;for(;x&&W>v;)this._map.delete(x.key),x=x.previous,W--;this._tail=x,this._size=W,x&&(x.next=void 0),this._state++}addItemFirst(v){if(!this._head&&!this._tail)this._tail=v;else if(this._head)v.next=this._head,this._head.previous=v;else throw new Error("Invalid list");this._head=v,this._state++}addItemLast(v){if(!this._head&&!this._tail)this._head=v;else if(this._tail)v.previous=this._tail,this._tail.next=v;else throw new Error("Invalid list");this._tail=v,this._state++}removeItem(v){if(v===this._head&&v===this._tail)this._head=void 0,this._tail=void 0;else if(v===this._head){if(!v.next)throw new Error("Invalid list");v.next.previous=void 0,this._head=v.next}else if(v===this._tail){if(!v.previous)throw new Error("Invalid list");v.previous.next=void 0,this._tail=v.previous}else{const x=v.next,W=v.previous;if(!x||!W)throw new Error("Invalid list");x.previous=W,W.next=x}v.next=void 0,v.previous=void 0,this._state++}touch(v,x){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(x!==1&&x!==2)){if(x===1){if(v===this._head)return;const W=v.next,$=v.previous;v===this._tail?($.next=void 0,this._tail=$):(W.previous=$,$.next=W),v.previous=void 0,v.next=this._head,this._head.previous=v,this._head=v,this._state++}else if(x===2){if(v===this._tail)return;const W=v.next,$=v.previous;v===this._head?(W.previous=void 0,this._head=W):(W.previous=$,$.next=W),v.next=void 0,v.previous=this._tail,this._tail.next=v,this._tail=v,this._state++}}}toJSON(){const v=[];return this.forEach((x,W)=>{v.push([W,x])}),v}fromJSON(v){this.clear();for(const[x,W]of v)this.set(x,W)}}class m5e extends f5e{constructor(v,x=1){super(),this._limit=v,this._ratio=Math.min(Math.max(0,x),1)}get limit(){return this._limit}set limit(v){this._limit=v,this.checkTrim()}get(v,x=2){return super.get(v,x)}peek(v){return super.get(v,0)}set(v,x){return super.set(v,x,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class h5e extends m5e{constructor(v,x=1){super(v,x)}trim(v){this.trimOld(v)}set(v,x){return super.set(v,x),this.checkTrim(),this}}class _5e{constructor(){this.map=new Map}add(v,x){let W=this.map.get(v);W||(W=new Set,this.map.set(v,W)),W.add(x)}delete(v,x){const W=this.map.get(v);W&&(W.delete(x),W.size===0&&this.map.delete(v))}forEach(v,x){const W=this.map.get(v);W&&W.forEach(x)}}new h5e(10);var xbe;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=4]="Right",_[_.Full=7]="Full"})(xbe||(xbe={}));var Rbe;(function(_){_[_.Left=1]="Left",_[_.Center=2]="Center",_[_.Right=3]="Right"})(Rbe||(Rbe={}));var Dbe;(function(_){_[_.LTR=0]="LTR",_[_.RTL=1]="RTL"})(Dbe||(Dbe={}));var Cbe;(function(_){_[_.Both=0]="Both",_[_.Right=1]="Right",_[_.Left=2]="Left",_[_.None=3]="None"})(Cbe||(Cbe={}));function g5e(_){if(!_||_.length===0)return!1;for(let v=0,x=_.length;v=x)break;const $=_.charCodeAt(v);if($===110||$===114||$===87)return!0}}return!1}function y5e(_,v,x,W,$){if(W===0)return!0;const _e=v.charCodeAt(W-1);if(_.get(_e)!==0||_e===13||_e===10)return!0;if($>0){const Le=v.charCodeAt(W);if(_.get(Le)!==0)return!0}return!1}function v5e(_,v,x,W,$){if(W+$===x)return!0;const _e=v.charCodeAt(W+$);if(_.get(_e)!==0||_e===13||_e===10)return!0;if($>0){const Le=v.charCodeAt(W+$-1);if(_.get(Le)!==0)return!0}return!1}function b5e(_,v,x,W,$){return y5e(_,v,x,W,$)&&v5e(_,v,x,W,$)}class T5e{constructor(v,x){this._wordSeparators=v,this._searchRegex=x,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(v){this._searchRegex.lastIndex=v,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(v){const x=v.length;let W;do{if(this._prevMatchStartIndex+this._prevMatchLength===x||(W=this._searchRegex.exec(v),!W))return null;const $=W.index,_e=W[0].length;if($===this._prevMatchStartIndex&&_e===this._prevMatchLength){if(_e===0){bze(v,x,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=$,this._prevMatchLength=_e,!this._wordSeparators||b5e(this._wordSeparators,v,x,$,_e))return W}while(W);return null}}const S5e="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function E5e(_=""){let v="(-?\\d*\\.\\d\\w*)|([^";for(const x of S5e)_.indexOf(x)>=0||(v+="\\"+x);return v+="\\s]+)",new RegExp(v,"g")}const Nbe=E5e();function Mbe(_){let v=Nbe;if(_&&_ instanceof RegExp)if(_.global)v=_;else{let x="g";_.ignoreCase&&(x+="i"),_.multiline&&(x+="m"),_.unicode&&(x+="u"),v=new RegExp(_.source,x)}return v.lastIndex=0,v}const Pbe=new K7e;Pbe.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function CQ(_,v,x,W,$){if(v=Mbe(v),$||($=mB.first(Pbe)),x.length>$.maxLen){let _t=_-$.maxLen/2;return _t<0?_t=0:W+=_t,x=x.substring(_t,_+$.maxLen/2),CQ(_,v,x,W,$)}const _e=Date.now(),Le=_-1-W;let Ke=-1,se=null;for(let _t=1;!(Date.now()-_e>=$.timeBudget);_t++){const Ze=Le-$.windowSize*_t;v.lastIndex=Math.max(0,Ze);const $e=A5e(v,x,Le,Ke);if(!$e&&se||(se=$e,Ze<=0))break;Ke=Ze}if(se){const _t={word:se[0],startColumn:W+1+se.index,endColumn:W+1+se.index+se[0].length};return v.lastIndex=0,_t}return null}function A5e(_,v,x,W){let $;for(;$=_.exec(v);){const _e=$.index||0;if(_e<=x&&_.lastIndex>=x)return $;if(W>0&&_e>W)return null}return null}class I5e{static computeUnicodeHighlights(v,x,W){const $=W?W.startLineNumber:1,_e=W?W.endLineNumber:v.getLineCount(),Le=new Lbe(x),Ke=Le.getCandidateCodePoints();let se;Ke==="allNonBasicAscii"?se=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):se=new RegExp(`${x5e(Array.from(Ke))}`,"g");const _t=new T5e(null,se),Ze=[];let $e=!1,Mn,Bn=0,Zn=0,jn=0;e:for(let Ji=$,To=_e;Ji<=To;Ji++){const Hn=v.getLineContent(Ji),hn=Hn.length;_t.reset(0);do if(Mn=_t.next(Hn),Mn){let ma=Mn.index,so=Mn.index+Mn[0].length;if(ma>0){const _o=Hn.charCodeAt(ma-1);pQ(_o)&&ma--}if(so+1=1e3){$e=!0;break e}Ze.push(new ss(Ji,ma+1,Ji,so+1))}}while(Mn)}return{ranges:Ze,hasMore:$e,ambiguousCharacterCount:Bn,invisibleCharacterCount:Zn,nonBasicAsciiCharacterCount:jn}}static computeUnicodeHighlightReason(v,x){const W=new Lbe(x);switch(W.shouldHighlightNonBasicASCII(v,null)){case 0:return null;case 2:return{kind:1};case 3:{const _e=v.codePointAt(0),Le=W.ambiguousCharacters.getPrimaryConfusable(_e),Ke=x8.getLocales().filter(se=>!x8.getInstance(new Set([...x.allowedLocales,se])).isAmbiguous(_e));return{kind:0,confusableWith:String.fromCodePoint(Le),notAmbiguousInLocales:Ke}}case 1:return{kind:2}}}}function x5e(_,v){return`[${uze(_.map(W=>String.fromCodePoint(W)).join(""))}]`}class Lbe{constructor(v){this.options=v,this.allowedCodePoints=new Set(v.allowedCodePoints),this.ambiguousCharacters=x8.getInstance(new Set(v.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const v=new Set;if(this.options.invisibleCharacters)for(const x of R8.codePoints)kbe(String.fromCodePoint(x))||v.add(x);if(this.options.ambiguousCharacters)for(const x of this.ambiguousCharacters.getConfusableCodePoints())v.add(x);for(const x of this.allowedCodePoints)v.delete(x);return v}shouldHighlightNonBasicASCII(v,x){const W=v.codePointAt(0);if(this.allowedCodePoints.has(W))return 0;if(this.options.nonBasicASCII)return 1;let $=!1,_e=!1;if(x)for(const Le of x){const Ke=Le.codePointAt(0),se=Sze(Le);$=$||se,!se&&!this.ambiguousCharacters.isAmbiguous(Ke)&&!R8.isInvisibleCharacter(Ke)&&(_e=!0)}return!$&&_e?0:this.options.invisibleCharacters&&!kbe(v)&&R8.isInvisibleCharacter(W)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(W)?3:0}}function kbe(_){return _===" "||_===` `||_===" "}class IB{constructor(v,x,W){this.changes=v,this.moves=x,this.hitTimeout=W}}class R5e{constructor(v,x){this.lineRangeMapping=v,this.changes=x}}function D5e(_,v,x=(W,$)=>W===$){if(_===v)return!0;if(!_||!v||_.length!==v.length)return!1;for(let W=0,$=_.length;W<$;W++)if(!x(_[W],v[W]))return!1;return!0}function*C5e(_,v){let x,W;for(const $ of _)W!==void 0&&v(W,$)?x.push($):(x&&(yield x),x=[$]),W=$;x&&(yield x)}function N5e(_,v){for(let x=0;x<=_.length;x++)v(x===0?void 0:_[x-1],x===_.length?void 0:_[x])}function M5e(_,v){for(let x=0;x<_.length;x++)v(x===0?void 0:_[x-1],_[x],x+1===_.length?void 0:_[x+1])}function P5e(_,v){for(const x of v)_.push(x)}var NQ;(function(_){function v(_e){return _e<0}_.isLessThan=v;function x(_e){return _e<=0}_.isLessThanOrEqual=x;function W(_e){return _e>0}_.isGreaterThan=W;function $(_e){return _e===0}_.isNeitherLessOrGreaterThan=$,_.greaterThan=1,_.lessThan=-1,_.neitherLessOrGreaterThan=0})(NQ||(NQ={}));function C8(_,v){return(x,W)=>v(_(x),_(W))}const N8=(_,v)=>_-v;function L5e(_){return(v,x)=>-_(v,x)}const p2=class p2{constructor(v){this.iterate=v}toArray(){const v=[];return this.iterate(x=>(v.push(x),!0)),v}filter(v){return new p2(x=>this.iterate(W=>v(W)?x(W):!0))}map(v){return new p2(x=>this.iterate(W=>x(v(W))))}findLast(v){let x;return this.iterate(W=>(v(W)&&(x=W),!0)),x}findLastMaxBy(v){let x,W=!0;return this.iterate($=>((W||NQ.isGreaterThan(v($,x)))&&(W=!1,x=$),!0)),x}};p2.empty=new p2(v=>{});let wbe=p2;class rc{static fromTo(v,x){return new rc(v,x)}static addRange(v,x){let W=0;for(;Wx))return new rc(v,x)}static ofLength(v){return new rc(0,v)}static ofStartAndLength(v,x){return new rc(v,v+x)}static emptyAt(v){return new rc(v,v)}constructor(v,x){if(this.start=v,this.endExclusive=x,v>x)throw new I_(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(v){return new rc(this.start+v,this.endExclusive+v)}deltaStart(v){return new rc(this.start+v,this.endExclusive)}deltaEnd(v){return new rc(this.start,this.endExclusive+v)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(v){return this.start===v.start&&this.endExclusive===v.endExclusive}contains(v){return this.start<=v&&v=v.endExclusive}slice(v){return v.slice(this.start,this.endExclusive)}substring(v){return v.substring(this.start,this.endExclusive)}clip(v){if(this.isEmpty)throw new I_(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,v))}clipCyclic(v){if(this.isEmpty)throw new I_(`Invalid clipping range: ${this.toString()}`);return v=this.endExclusive?this.start+(v-this.start)%this.length:v}forEach(v){for(let x=this.start;xx)throw new I_(`startLineNumber ${v} cannot be after endLineNumberExclusive ${x}`);this.startLineNumber=v,this.endLineNumberExclusive=x}contains(v){return this.startLineNumber<=v&&vv.startLineNumber,N8);let Vc=Yv;class BE{constructor(v=[]){this._normalizedRanges=v}get ranges(){return this._normalizedRanges}addRange(v){if(v.length===0)return;const x=MQ(this._normalizedRanges,$=>$.endLineNumberExclusive>=v.startLineNumber),W=t2(this._normalizedRanges,$=>$.startLineNumber<=v.endLineNumberExclusive)+1;if(x===W)this._normalizedRanges.splice(x,0,v);else if(x===W-1){const $=this._normalizedRanges[x];this._normalizedRanges[x]=$.join(v)}else{const $=this._normalizedRanges[x].join(this._normalizedRanges[W-1]).join(v);this._normalizedRanges.splice(x,W-x,$)}}contains(v){const x=e2(this._normalizedRanges,W=>W.startLineNumber<=v);return!!x&&x.endLineNumberExclusive>v}intersects(v){const x=e2(this._normalizedRanges,W=>W.startLineNumberv.startLineNumber}getUnion(v){if(this._normalizedRanges.length===0)return v;if(v._normalizedRanges.length===0)return this;const x=[];let W=0,$=0,_e=null;for(;W=Le.startLineNumber?_e=new Vc(_e.startLineNumber,Math.max(_e.endLineNumberExclusive,Le.endLineNumberExclusive)):(x.push(_e),_e=Le)}return _e!==null&&x.push(_e),new BE(x)}subtractFrom(v){const x=MQ(this._normalizedRanges,Le=>Le.endLineNumberExclusive>=v.startLineNumber),W=t2(this._normalizedRanges,Le=>Le.startLineNumber<=v.endLineNumberExclusive)+1;if(x===W)return new BE([v]);const $=[];let _e=v.startLineNumber;for(let Le=x;Le_e&&$.push(new Vc(_e,Ke.startLineNumber)),_e=Ke.endLineNumberExclusive}return _ev.toString()).join(", ")}getIntersection(v){const x=[];let W=0,$=0;for(;Wx.delta(v)))}}const cS=class cS{static betweenPositions(v,x){return v.lineNumber===x.lineNumber?new cS(0,x.column-v.column):new cS(x.lineNumber-v.lineNumber,x.column-1)}static fromPosition(v){return new cS(v.lineNumber-1,v.column-1)}static ofRange(v){return cS.betweenPositions(v.getStartPosition(),v.getEndPosition())}static ofText(v){let x=0,W=0;for(const $ of v)$===` `?(x++,W=0):W++;return new cS(x,W)}constructor(v,x){this.lineCount=v,this.columnCount=x}isGreaterThanOrEqualTo(v){return this.lineCount!==v.lineCount?this.lineCount>v.lineCount:this.columnCount>=v.columnCount}add(v){return v.lineCount===0?new cS(this.lineCount,this.columnCount+v.columnCount):new cS(this.lineCount+v.lineCount,v.columnCount)}createRange(v){return this.lineCount===0?new ss(v.lineNumber,v.column,v.lineNumber,v.column+this.columnCount):new ss(v.lineNumber,v.column,v.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new ss(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return Vc.ofLength(1,this.lineCount+1)}addToPosition(v){return this.lineCount===0?new Zc(v.lineNumber,v.column+this.columnCount):new Zc(v.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};cS.zero=new cS(0,0);let M8=cS;class w5e{getOffsetRange(v){return new rc(this.getOffset(v.getStartPosition()),this.getOffset(v.getEndPosition()))}getRange(v){return ss.fromPositions(this.getPosition(v.start),this.getPosition(v.endExclusive))}getStringReplacement(v){return new n2.deps.StringReplacement(this.getOffsetRange(v.range),v.text)}getTextReplacement(v){return new n2.deps.TextReplacement(this.getRange(v.replaceRange),v.newText)}getTextEdit(v){const x=v.replacements.map(W=>this.getTextReplacement(W));return new n2.deps.TextEdit(x)}}const BQ=class BQ{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};BQ._deps=void 0;let n2=BQ;class O5e extends w5e{constructor(v){super(),this.text=v,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let x=0;x0&&v.charAt(x-1)==="\r"?this.lineEndOffsetByLineIdx.push(x-1):this.lineEndOffsetByLineIdx.push(x));this.lineEndOffsetByLineIdx.push(v.length)}getOffset(v){const x=this._validatePosition(v);return this.lineStartOffsetByLineIdx[x.lineNumber-1]+x.column-1}_validatePosition(v){if(v.lineNumber<1)return new Zc(1,1);const x=this.textLength.lineCount+1;if(v.lineNumber>x){const $=this.getLineLength(x);return new Zc(x,$+1)}if(v.column<1)return new Zc(v.lineNumber,1);const W=this.getLineLength(v.lineNumber);return v.column-1>W?new Zc(v.lineNumber,W+1):v}getPosition(v){const x=t2(this.lineStartOffsetByLineIdx,_e=>_e<=v),W=x+1,$=v-this.lineStartOffsetByLineIdx[x]+1;return new Zc(W,$)}get textLength(){const v=this.lineStartOffsetByLineIdx.length-1;return new n2.deps.TextLength(v,this.text.length-this.lineStartOffsetByLineIdx[v])}getLineLength(v){return this.lineEndOffsetByLineIdx[v-1]-this.lineStartOffsetByLineIdx[v-1]}}class W5e{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Zc(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(v){return this.getValueOfRange(this.getTransformer().getRange(v))}getLineLength(v){return this.getValueOfRange(new ss(v,1,v,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new O5e(this.getValue())),this._transformer}getLineAt(v){return this.getValueOfRange(new ss(v,1,v,Number.MAX_SAFE_INTEGER))}}class F5e extends W5e{constructor(v,x){j7e(x>=1),super(),this._getLineContent=v,this._lineCount=x}getValueOfRange(v){if(v.startLineNumber===v.endLineNumber)return this._getLineContent(v.startLineNumber).substring(v.startColumn-1,v.endColumn-1);let x=this._getLineContent(v.startLineNumber).substring(v.startColumn-1);for(let W=v.startLineNumber+1;Wv[x-1],v.length)}}class TR{static joinReplacements(v,x){if(v.length===0)throw new I_;if(v.length===1)return v[0];const W=v[0].range.getStartPosition(),$=v[v.length-1].range.getEndPosition();let _e="";for(let Le=0;Le ${x.lineNumber},${x.column}): "${this.text}"`}}class ET{static inverse(v,x,W){const $=[];let _e=1,Le=1;for(const se of v){const _t=new ET(new Vc(_e,se.original.startLineNumber),new Vc(Le,se.modified.startLineNumber));_t.modified.isEmpty||$.push(_t),_e=se.original.endLineNumberExclusive,Le=se.modified.endLineNumberExclusive}const Ke=new ET(new Vc(_e,x+1),new Vc(Le,W+1));return Ke.modified.isEmpty||$.push(Ke),$}static clip(v,x,W){const $=[];for(const _e of v){const Le=_e.original.intersect(x),Ke=_e.modified.intersect(W);Le&&!Le.isEmpty&&Ke&&!Ke.isEmpty&&$.push(new ET(Le,Ke))}return $}constructor(v,x){this.original=v,this.modified=x}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new ET(this.modified,this.original)}join(v){return new ET(this.original.join(v.original),this.modified.join(v.modified))}toRangeMapping(){const v=this.original.toInclusiveRange(),x=this.modified.toInclusiveRange();if(v&&x)return new AT(v,x);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new I_("not a valid diff");return new AT(new ss(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ss(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new AT(new ss(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new ss(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(v,x){if(Obe(this.original.endLineNumberExclusive,v)&&Obe(this.modified.endLineNumberExclusive,x))return new AT(new ss(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new ss(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new AT(ss.fromPositions(new Zc(this.original.startLineNumber,1),r2(new Zc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),v)),ss.fromPositions(new Zc(this.modified.startLineNumber,1),r2(new Zc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new AT(ss.fromPositions(r2(new Zc(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),v),r2(new Zc(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),v)),ss.fromPositions(r2(new Zc(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),x),r2(new Zc(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),x)));throw new I_}}function r2(_,v){if(_.lineNumber<1)return new Zc(1,1);if(_.lineNumber>v.length)return new Zc(v.length,v[v.length-1].length+1);const x=v[_.lineNumber-1];return _.column>x.length+1?new Zc(_.lineNumber,x.length+1):_}function Obe(_,v){return _>=1&&_<=v.length}class HA extends ET{static fromRangeMappings(v){const x=Vc.join(v.map($=>Vc.fromRangeInclusive($.originalRange))),W=Vc.join(v.map($=>Vc.fromRangeInclusive($.modifiedRange)));return new HA(x,W,v)}constructor(v,x,W){super(v,x),this.innerChanges=W}flip(){var v;return new HA(this.modified,this.original,(v=this.innerChanges)==null?void 0:v.map(x=>x.flip()))}withInnerChangesFromLineRanges(){return new HA(this.original,this.modified,[this.toRangeMapping()])}}class AT{static fromEdit(v){const x=v.getNewRanges();return v.replacements.map(($,_e)=>new AT($.range,x[_e]))}static assertSorted(v){for(let x=1;x${this.modifiedRange.toString()}}`}flip(){return new AT(this.modifiedRange,this.originalRange)}toTextEdit(v){const x=v.getValueOfRange(this.modifiedRange);return new TR(this.originalRange,x)}}function Wbe(_,v,x,W=!1){const $=[];for(const _e of C5e(_.map(Le=>z5e(Le,v,x)),(Le,Ke)=>Le.original.intersectsOrTouches(Ke.original)||Le.modified.intersectsOrTouches(Ke.modified))){const Le=_e[0],Ke=_e[_e.length-1];$.push(new HA(Le.original.join(Ke.original),Le.modified.join(Ke.modified),_e.map(se=>se.innerChanges[0])))}return fB(()=>!W&&$.length>0&&($[0].modified.startLineNumber!==$[0].original.startLineNumber||x.length.lineCount-$[$.length-1].modified.endLineNumberExclusive!==v.length.lineCount-$[$.length-1].original.endLineNumberExclusive)?!1:Yye($,(_e,Le)=>Le.original.startLineNumber-_e.original.endLineNumberExclusive===Le.modified.startLineNumber-_e.modified.endLineNumberExclusive&&_e.original.endLineNumberExclusive=x.getLineLength(_.modifiedRange.startLineNumber)&&_.originalRange.startColumn-1>=v.getLineLength(_.originalRange.startLineNumber)&&_.originalRange.startLineNumber<=_.originalRange.endLineNumber+$&&_.modifiedRange.startLineNumber<=_.modifiedRange.endLineNumber+$&&(W=1);const _e=new Vc(_.originalRange.startLineNumber+W,_.originalRange.endLineNumber+1+$),Le=new Vc(_.modifiedRange.startLineNumber+W,_.modifiedRange.endLineNumber+1+$);return new HA(_e,Le,[_])}const B5e=3;class G5e{computeDiff(v,x,W){var se;const _e=new U5e(v,x,{maxComputationTime:W.maxComputationTimeMs,shouldIgnoreTrimWhitespace:W.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),Le=[];let Ke=null;for(const _t of _e.changes){let Ze;_t.originalEndLineNumber===0?Ze=new Vc(_t.originalStartLineNumber+1,_t.originalStartLineNumber+1):Ze=new Vc(_t.originalStartLineNumber,_t.originalEndLineNumber+1);let $e;_t.modifiedEndLineNumber===0?$e=new Vc(_t.modifiedStartLineNumber+1,_t.modifiedStartLineNumber+1):$e=new Vc(_t.modifiedStartLineNumber,_t.modifiedEndLineNumber+1);let Mn=new HA(Ze,$e,(se=_t.charChanges)==null?void 0:se.map(Bn=>new AT(new ss(Bn.originalStartLineNumber,Bn.originalStartColumn,Bn.originalEndLineNumber,Bn.originalEndColumn),new ss(Bn.modifiedStartLineNumber,Bn.modifiedStartColumn,Bn.modifiedEndLineNumber,Bn.modifiedEndColumn))));Ke&&(Ke.modified.endLineNumberExclusive===Mn.modified.startLineNumber||Ke.original.endLineNumberExclusive===Mn.original.startLineNumber)&&(Mn=new HA(Ke.original.join(Mn.original),Ke.modified.join(Mn.modified),Ke.innerChanges&&Mn.innerChanges?Ke.innerChanges.concat(Mn.innerChanges):void 0),Le.pop()),Le.push(Mn),Ke=Mn}return fB(()=>Yye(Le,(_t,Ze)=>Ze.original.startLineNumber-_t.original.endLineNumberExclusive===Ze.modified.startLineNumber-_t.modified.endLineNumberExclusive&&_t.original.endLineNumberExclusive(v===10?"\\n":String.fromCharCode(v))+`-(${this._lineNumbers[x]},${this._columns[x]})`).join(", ")+"]"}_assertIndex(v,x){if(v<0||v>=x.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(v){return v>0&&v===this._lineNumbers.length?this.getEndLineNumber(v-1):(this._assertIndex(v,this._lineNumbers),this._lineNumbers[v])}getEndLineNumber(v){return v===-1?this.getStartLineNumber(v+1):(this._assertIndex(v,this._lineNumbers),this._charCodes[v]===10?this._lineNumbers[v]+1:this._lineNumbers[v])}getStartColumn(v){return v>0&&v===this._columns.length?this.getEndColumn(v-1):(this._assertIndex(v,this._columns),this._columns[v])}getEndColumn(v){return v===-1?this.getStartColumn(v+1):(this._assertIndex(v,this._columns),this._charCodes[v]===10?1:this._columns[v]+1)}}class i2{constructor(v,x,W,$,_e,Le,Ke,se){this.originalStartLineNumber=v,this.originalStartColumn=x,this.originalEndLineNumber=W,this.originalEndColumn=$,this.modifiedStartLineNumber=_e,this.modifiedStartColumn=Le,this.modifiedEndLineNumber=Ke,this.modifiedEndColumn=se}static createFromDiffChange(v,x,W){const $=x.getStartLineNumber(v.originalStart),_e=x.getStartColumn(v.originalStart),Le=x.getEndLineNumber(v.originalStart+v.originalLength-1),Ke=x.getEndColumn(v.originalStart+v.originalLength-1),se=W.getStartLineNumber(v.modifiedStart),_t=W.getStartColumn(v.modifiedStart),Ze=W.getEndLineNumber(v.modifiedStart+v.modifiedLength-1),$e=W.getEndColumn(v.modifiedStart+v.modifiedLength-1);return new i2($,_e,Le,Ke,se,_t,Ze,$e)}}function j5e(_){if(_.length<=1)return _;const v=[_[0]];let x=v[0];for(let W=1,$=_.length;W<$;W++){const _e=_[W],Le=_e.originalStart-(x.originalStart+x.originalLength),Ke=_e.modifiedStart-(x.modifiedStart+x.modifiedLength);Math.min(Le,Ke)0&&x.originalLength<20&&x.modifiedLength>0&&x.modifiedLength<20&&_e()){const Bn=W.createCharSequence(v,x.originalStart,x.originalStart+x.originalLength-1),Zn=$.createCharSequence(v,x.modifiedStart,x.modifiedStart+x.modifiedLength-1);if(Bn.getElements().length>0&&Zn.getElements().length>0){let jn=Fbe(Bn,Zn,_e,!0).changes;Ke&&(jn=j5e(jn)),Mn=[];for(let Ji=0,To=jn.length;Ji1&&jn>1;){const Ji=Mn.charCodeAt(Zn-2),To=Bn.charCodeAt(jn-2);if(Ji!==To)break;Zn--,jn--}(Zn>1||jn>1)&&this._pushTrimWhitespaceCharChange($,_e+1,1,Zn,Le+1,1,jn)}{let Zn=LQ(Mn,1),jn=LQ(Bn,1);const Ji=Mn.length+1,To=Bn.length+1;for(;Zn!0;const v=Date.now();return()=>Date.now()-v<_}class qA{static trivial(v,x){return new qA([new sf(rc.ofLength(v.length),rc.ofLength(x.length))],!1)}static trivialTimedOut(v,x){return new qA([new sf(rc.ofLength(v.length),rc.ofLength(x.length))],!0)}constructor(v,x){this.diffs=v,this.hitTimeout=x}}class sf{static invert(v,x){const W=[];return N5e(v,($,_e)=>{W.push(sf.fromOffsetPairs($?$.getEndExclusives():JA.zero,_e?_e.getStarts():new JA(x,($?$.seq2Range.endExclusive-$.seq1Range.endExclusive:0)+x)))}),W}static fromOffsetPairs(v,x){return new sf(new rc(v.offset1,x.offset1),new rc(v.offset2,x.offset2))}static assertSorted(v){let x;for(const W of v){if(x&&!(x.seq1Range.endExclusive<=W.seq1Range.start&&x.seq2Range.endExclusive<=W.seq2Range.start))throw new I_("Sequence diffs must be sorted");x=W}}constructor(v,x){this.seq1Range=v,this.seq2Range=x}swap(){return new sf(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(v){return new sf(this.seq1Range.join(v.seq1Range),this.seq2Range.join(v.seq2Range))}delta(v){return v===0?this:new sf(this.seq1Range.delta(v),this.seq2Range.delta(v))}deltaStart(v){return v===0?this:new sf(this.seq1Range.deltaStart(v),this.seq2Range.deltaStart(v))}deltaEnd(v){return v===0?this:new sf(this.seq1Range.deltaEnd(v),this.seq2Range.deltaEnd(v))}intersect(v){const x=this.seq1Range.intersect(v.seq1Range),W=this.seq2Range.intersect(v.seq2Range);if(!(!x||!W))return new sf(x,W)}getStarts(){return new JA(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new JA(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const uN=class uN{constructor(v,x){this.offset1=v,this.offset2=x}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(v){return v===0?this:new uN(this.offset1+v,this.offset2+v)}equals(v){return this.offset1===v.offset1&&this.offset2===v.offset2}};uN.zero=new uN(0,0),uN.max=new uN(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let JA=uN;const kB=class kB{isValid(){return!0}};kB.instance=new kB;let L8=kB;class H5e{constructor(v){if(this.timeout=v,this.startTime=Date.now(),this.valid=!0,v<=0)throw new I_("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&jn>0&&Le.get(Zn-1,jn-1)===3&&(Hn+=Ke.get(Zn-1,jn-1)),Hn+=$?$(Zn,jn):1):Hn=-1;const hn=Math.max(Ji,To,Hn);if(hn===Hn){const ma=Zn>0&&jn>0?Ke.get(Zn-1,jn-1):0;Ke.set(Zn,jn,ma+1),Le.set(Zn,jn,3)}else hn===Ji?(Ke.set(Zn,jn,0),Le.set(Zn,jn,1)):hn===To&&(Ke.set(Zn,jn,0),Le.set(Zn,jn,2));_e.set(Zn,jn,hn)}const se=[];let _t=v.length,Ze=x.length;function $e(Zn,jn){(Zn+1!==_t||jn+1!==Ze)&&se.push(new sf(new rc(Zn+1,_t),new rc(jn+1,Ze))),_t=Zn,Ze=jn}let Mn=v.length-1,Bn=x.length-1;for(;Mn>=0&&Bn>=0;)Le.get(Mn,Bn)===3?($e(Mn,Bn),Mn--,Bn--):Le.get(Mn,Bn)===1?Mn--:Bn--;return $e(-1,-1),se.reverse(),new qA(se,!1)}}class Gbe{compute(v,x,W=L8.instance){if(v.length===0||x.length===0)return qA.trivial(v,x);const $=v,_e=x;function Le(jn,Ji){for(;jn<$.length&&Ji<_e.length&&$.getElement(jn)===_e.getElement(Ji);)jn++,Ji++;return jn}let Ke=0;const se=new J5e;se.set(0,Le(0,0));const _t=new K5e;_t.set(0,se.get(0)===0?null:new Vbe(null,0,0,se.get(0)));let Ze=0;e:for(;;){if(Ke++,!W.isValid())return qA.trivialTimedOut($,_e);const jn=-Math.min(Ke,_e.length+Ke%2),Ji=Math.min(Ke,$.length+Ke%2);for(Ze=jn;Ze<=Ji;Ze+=2){const To=Ze===Ji?-1:se.get(Ze+1),Hn=Ze===jn?-1:se.get(Ze-1)+1,hn=Math.min(Math.max(To,Hn),$.length),ma=hn-Ze;if(hn>$.length||ma>_e.length)continue;const so=Le(hn,ma);se.set(Ze,so);const Zs=hn===To?_t.get(Ze+1):_t.get(Ze-1);if(_t.set(Ze,so!==hn?new Vbe(Zs,hn,ma,so-hn):Zs),se.get(Ze)===$.length&&se.get(Ze)-Ze===_e.length)break e}}let $e=_t.get(Ze);const Mn=[];let Bn=$.length,Zn=_e.length;for(;;){const jn=$e?$e.x+$e.length:0,Ji=$e?$e.y+$e.length:0;if((jn!==Bn||Ji!==Zn)&&Mn.push(new sf(new rc(jn,Bn),new rc(Ji,Zn))),!$e)break;Bn=$e.x,Zn=$e.y,$e=$e.prev}return Mn.reverse(),new qA(Mn,!1)}}class Vbe{constructor(v,x,W,$){this.prev=v,this.x=x,this.y=W,this.length=$}}class J5e{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,x){if(v<0){if(v=-v-1,v>=this.negativeArr.length){const W=this.negativeArr;this.negativeArr=new Int32Array(W.length*2),this.negativeArr.set(W)}this.negativeArr[v]=x}else{if(v>=this.positiveArr.length){const W=this.positiveArr;this.positiveArr=new Int32Array(W.length*2),this.positiveArr.set(W)}this.positiveArr[v]=x}}}class K5e{constructor(){this.positiveArr=[],this.negativeArr=[]}get(v){return v<0?(v=-v-1,this.negativeArr[v]):this.positiveArr[v]}set(v,x){v<0?(v=-v-1,this.negativeArr[v]=x):this.positiveArr[v]=x}}class CB{constructor(v,x,W){this.lines=v,this.range=x,this.considerWhitespaceChanges=W,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let $=this.range.startLineNumber;$<=this.range.endLineNumber;$++){let _e=v[$-1],Le=0;$===this.range.startLineNumber&&this.range.startColumn>1&&(Le=this.range.startColumn-1,_e=_e.substring(Le)),this.lineStartOffsets.push(Le);let Ke=0;if(!W){const _t=_e.trimStart();Ke=_e.length-_t.length,_e=_t.trimEnd()}this.trimmedWsLengthsByLineIdx.push(Ke);const se=$===this.range.endLineNumber?Math.min(this.range.endColumn-1-Le-Ke,_e.length):_e.length;for(let _t=0;_tString.fromCharCode(x)).join("")}getElement(v){return this.elements[v]}get length(){return this.elements.length}getBoundaryScore(v){const x=Hbe(v>0?this.elements[v-1]:-1),W=Hbe(v_e<=v),$=v-this.firstElementOffsetByLineIdx[W];return new Zc(this.range.startLineNumber+W,1+this.lineStartOffsets[W]+$+($===0&&x==="left"?0:this.trimmedWsLengthsByLineIdx[W]))}translateRange(v){const x=this.translateOffset(v.start,"right"),W=this.translateOffset(v.endExclusive,"left");return W.isBefore(x)?ss.fromPositions(W,W):ss.fromPositions(x,W)}findWordContaining(v){if(v<0||v>=this.elements.length||!o2(this.elements[v]))return;let x=v;for(;x>0&&o2(this.elements[x-1]);)x--;let W=v;for(;W=this.elements.length||!o2(this.elements[v]))return;let x=v;for(;x>0&&o2(this.elements[x-1])&&!jbe(this.elements[x]);)x--;let W=v;for(;W$<=v.start)??0,W=k5e(this.firstElementOffsetByLineIdx,$=>v.endExclusive<=$)??this.elements.length;return new rc(x,W)}}function o2(_){return _>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57}function jbe(_){return _>=65&&_<=90}const X5e={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Ube(_){return X5e[_]}function Hbe(_){return _===10?8:_===13?7:wQ(_)?6:_>=97&&_<=122?0:_>=65&&_<=90?1:_>=48&&_<=57?2:_===-1?3:_===44||_===59?5:4}function Y5e(_,v,x,W,$,_e){let{moves:Le,excludedChanges:Ke}=Q5e(_,v,x,_e);if(!_e.isValid())return[];const se=_.filter(Ze=>!Ke.has(Ze)),_t=Z5e(se,W,$,v,x,_e);return P5e(Le,_t),Le=eBe(Le),Le=Le.filter(Ze=>{const $e=Ze.original.toOffsetRange().slice(v).map(Bn=>Bn.trim());return $e.join(` `).length>=15&&$5e($e,Bn=>Bn.length>=2)>=2}),Le=tBe(_,Le),Le}function $5e(_,v){let x=0;for(const W of _)v(W)&&x++;return x}function Q5e(_,v,x,W){const $=[],_e=_.filter(se=>se.modified.isEmpty&&se.original.length>=3).map(se=>new DB(se.original,v,se)),Le=new Set(_.filter(se=>se.original.isEmpty&&se.modified.length>=3).map(se=>new DB(se.modified,x,se))),Ke=new Set;for(const se of _e){let _t=-1,Ze;for(const $e of Le){const Mn=se.computeSimilarity($e);Mn>_t&&(_t=Mn,Ze=$e)}if(_t>.9&&Ze&&(Le.delete(Ze),$.push(new ET(se.range,Ze.range)),Ke.add(se.source),Ke.add(Ze.source)),!W.isValid())return{moves:$,excludedChanges:Ke}}return{moves:$,excludedChanges:Ke}}function Z5e(_,v,x,W,$,_e){const Le=[],Ke=new _5e;for(const Mn of _)for(let Bn=Mn.original.startLineNumber;BnMn.modified.startLineNumber,N8));for(const Mn of _){let Bn=[];for(let Zn=Mn.modified.startLineNumber;Zn{for(const ma of Bn)if(ma.originalLineRange.endLineNumberExclusive+1===Hn.endLineNumberExclusive&&ma.modifiedLineRange.endLineNumberExclusive+1===Ji.endLineNumberExclusive){ma.originalLineRange=new Vc(ma.originalLineRange.startLineNumber,Hn.endLineNumberExclusive),ma.modifiedLineRange=new Vc(ma.modifiedLineRange.startLineNumber,Ji.endLineNumberExclusive),To.push(ma);return}const hn={modifiedLineRange:Ji,originalLineRange:Hn};se.push(hn),To.push(hn)}),Bn=To}if(!_e.isValid())return[]}se.sort(L5e(C8(Mn=>Mn.modifiedLineRange.length,N8)));const _t=new BE,Ze=new BE;for(const Mn of se){const Bn=Mn.modifiedLineRange.startLineNumber-Mn.originalLineRange.startLineNumber,Zn=_t.subtractFrom(Mn.modifiedLineRange),jn=Ze.subtractFrom(Mn.originalLineRange).getWithDelta(Bn),Ji=Zn.getIntersection(jn);for(const To of Ji.ranges){if(To.length<3)continue;const Hn=To,hn=To.delta(-Bn);Le.push(new ET(hn,Hn)),_t.addRange(Hn),Ze.addRange(hn)}}Le.sort(C8(Mn=>Mn.original.startLineNumber,N8));const $e=new xB(_);for(let Mn=0;MnZs.original.startLineNumber<=Bn.original.startLineNumber),jn=e2(_,Zs=>Zs.modified.startLineNumber<=Bn.modified.startLineNumber),Ji=Math.max(Bn.original.startLineNumber-Zn.original.startLineNumber,Bn.modified.startLineNumber-jn.modified.startLineNumber),To=$e.findLastMonotonous(Zs=>Zs.original.startLineNumberZs.modified.startLineNumberW.length||Ln>$.length||_t.contains(Ln)||Ze.contains(Zs)||!qbe(W[Zs-1],$[Ln-1],_e))break}ma>0&&(Ze.addRange(new Vc(Bn.original.startLineNumber-ma,Bn.original.startLineNumber)),_t.addRange(new Vc(Bn.modified.startLineNumber-ma,Bn.modified.startLineNumber)));let so;for(so=0;soW.length||Ln>$.length||_t.contains(Ln)||Ze.contains(Zs)||!qbe(W[Zs-1],$[Ln-1],_e))break}so>0&&(Ze.addRange(new Vc(Bn.original.endLineNumberExclusive,Bn.original.endLineNumberExclusive+so)),_t.addRange(new Vc(Bn.modified.endLineNumberExclusive,Bn.modified.endLineNumberExclusive+so))),(ma>0||so>0)&&(Le[Mn]=new ET(new Vc(Bn.original.startLineNumber-ma,Bn.original.endLineNumberExclusive+so),new Vc(Bn.modified.startLineNumber-ma,Bn.modified.endLineNumberExclusive+so)))}return Le}function qbe(_,v,x){if(_.trim()===v.trim())return!0;if(_.length>300&&v.length>300)return!1;const $=new Gbe().compute(new CB([_],new ss(1,1,1,_.length),!1),new CB([v],new ss(1,1,1,v.length),!1),x);let _e=0;const Le=sf.invert($.diffs,_.length);for(const Ze of Le)Ze.seq1Range.forEach($e=>{wQ(_.charCodeAt($e))||_e++});function Ke(Ze){let $e=0;for(let Mn=0;Mn<_.length;Mn++)wQ(Ze.charCodeAt(Mn))||$e++;return $e}const se=Ke(_.length>v.length?_:v);return _e/se>.6&&se>10}function eBe(_){if(_.length===0)return _;_.sort(C8(x=>x.original.startLineNumber,N8));const v=[_[0]];for(let x=1;x<_.length;x++){const W=v[v.length-1],$=_[x],_e=$.original.startLineNumber-W.original.endLineNumberExclusive,Le=$.modified.startLineNumber-W.modified.endLineNumberExclusive;if(_e>=0&&Le>=0&&_e+Le<=2){v[v.length-1]=W.join($);continue}v.push($)}return v}function tBe(_,v){const x=new xB(_);return v=v.filter(W=>{const $=x.findLastMonotonous(Ke=>Ke.original.startLineNumberKe.modified.startLineNumber0&&(Ke=Ke.delta(_t))}$.push(Ke)}return W.length>0&&$.push(W[W.length-1]),$}function nBe(_,v,x){if(!_.getBoundaryScore||!v.getBoundaryScore)return x;for(let W=0;W0?x[W-1]:void 0,_e=x[W],Le=W+1=W.start&&_.seq2Range.start-Le>=$.start&&x.isStronglyEqual(_.seq2Range.start-Le,_.seq2Range.endExclusive-Le)&&Le<100;)Le++;Le--;let Ke=0;for(;_.seq1Range.start+Ke_t&&(_t=Zn,se=Ze)}return _.delta(se)}function rBe(_,v,x){const W=[];for(const $ of x){const _e=W[W.length-1];if(!_e){W.push($);continue}$.seq1Range.start-_e.seq1Range.endExclusive<=2||$.seq2Range.start-_e.seq2Range.endExclusive<=2?W[W.length-1]=new sf(_e.seq1Range.join($.seq1Range),_e.seq2Range.join($.seq2Range)):W.push($)}return W}function Ybe(_,v,x,W,$=!1){const _e=sf.invert(x,_.length),Le=[];let Ke=new JA(0,0);function se(Ze,$e){if(Ze.offset10;){const Hn=_e[0];if(!(Hn.seq1Range.intersects(Zn.seq1Range)||Hn.seq2Range.intersects(Zn.seq2Range)))break;const ma=W(_,Hn.seq1Range.start),so=W(v,Hn.seq2Range.start),Zs=new sf(ma,so),Ln=Zs.intersect(Hn);if(Ji+=Ln.seq1Range.length,To+=Ln.seq2Range.length,Zn=Zn.join(Zs),Zn.seq1Range.endExclusive>=Hn.seq1Range.endExclusive)_e.shift();else break}($&&Ji+To0;){const Ze=_e.shift();Ze.seq1Range.isEmpty||(se(Ze.getStarts(),Ze),se(Ze.getEndExclusives().delta(-1),Ze))}return iBe(x,Le)}function iBe(_,v){const x=[];for(;_.length>0||v.length>0;){const W=_[0],$=v[0];let _e;W&&(!$||W.seq1Range.start<$.seq1Range.start)?_e=_.shift():_e=v.shift(),x.length>0&&x[x.length-1].seq1Range.endExclusive>=_e.seq1Range.start?x[x.length-1]=x[x.length-1].join(_e):x.push(_e)}return x}function oBe(_,v,x){let W=x;if(W.length===0)return W;let $=0,_e;do{_e=!1;const Le=[W[0]];for(let Ke=1;Ke5||Bn.seq1Range.length+Bn.seq2Range.length>5)};const se=W[Ke],_t=Le[Le.length-1];Ze(_t,se)?(_e=!0,Le[Le.length-1]=Le[Le.length-1].join(se)):Le.push(se)}W=Le}while($++<10&&_e);return W}function aBe(_,v,x){let W=x;if(W.length===0)return W;let $=0,_e;do{_e=!1;const Ke=[W[0]];for(let se=1;se5||jn.length>500)return!1;const To=_.getText(jn).trim();if(To.length>20||To.split(/\r\n|\r|\n/).length>1)return!1;const Hn=_.countLinesIn(Bn.seq1Range),hn=Bn.seq1Range.length,ma=v.countLinesIn(Bn.seq2Range),so=Bn.seq2Range.length,Zs=_.countLinesIn(Zn.seq1Range),Ln=Zn.seq1Range.length,Li=v.countLinesIn(Zn.seq2Range),_o=Zn.seq2Range.length,Vn=2*40+50;function el(hi){return Math.min(hi,Vn)}return Math.pow(Math.pow(el(Hn*40+hn),1.5)+Math.pow(el(ma*40+so),1.5),1.5)+Math.pow(Math.pow(el(Zs*40+Ln),1.5)+Math.pow(el(Li*40+_o),1.5),1.5)>(Vn**1.5)**1.5*1.3};const _t=W[se],Ze=Ke[Ke.length-1];$e(Ze,_t)?(_e=!0,Ke[Ke.length-1]=Ke[Ke.length-1].join(_t)):Ke.push(_t)}W=Ke}while($++<10&&_e);const Le=[];return M5e(W,(Ke,se,_t)=>{let Ze=se;function $e(To){return To.length>0&&To.trim().length<=3&&se.seq1Range.length+se.seq2Range.length>100}const Mn=_.extendToFullLines(se.seq1Range),Bn=_.getText(new rc(Mn.start,se.seq1Range.start));$e(Bn)&&(Ze=Ze.deltaStart(-Bn.length));const Zn=_.getText(new rc(se.seq1Range.endExclusive,Mn.endExclusive));$e(Zn)&&(Ze=Ze.deltaEnd(Zn.length));const jn=sf.fromOffsetPairs(Ke?Ke.getEndExclusives():JA.zero,_t?_t.getStarts():JA.max),Ji=Ze.intersect(jn);Le.length>0&&Ji.getStarts().equals(Le[Le.length-1].getEndExclusives())?Le[Le.length-1]=Le[Le.length-1].join(Ji):Le.push(Ji)}),Le}class $be{constructor(v,x){this.trimmedHash=v,this.lines=x}getElement(v){return this.trimmedHash[v]}get length(){return this.trimmedHash.length}getBoundaryScore(v){const x=v===0?0:Qbe(this.lines[v-1]),W=v===this.lines.length?0:Qbe(this.lines[v]);return 1e3-(x+W)}getText(v){return this.lines.slice(v.start,v.endExclusive).join(` `)}isStronglyEqual(v,x){return this.lines[v]===this.lines[x]}}function Qbe(_){let v=0;for(;v<_.length&&(_.charCodeAt(v)===32||_.charCodeAt(v)===9);)v++;return v}class sBe{constructor(){this.dynamicProgrammingDiffing=new q5e,this.myersDiffingAlgorithm=new Gbe}computeDiff(v,x,W){if(v.length<=1&&D5e(v,x,(Ln,Li)=>Ln===Li))return new IB([],[],!1);if(v.length===1&&v[0].length===0||x.length===1&&x[0].length===0)return new IB([new HA(new Vc(1,v.length+1),new Vc(1,x.length+1),[new AT(new ss(1,1,v.length,v[v.length-1].length+1),new ss(1,1,x.length,x[x.length-1].length+1))])],[],!1);const $=W.maxComputationTimeMs===0?L8.instance:new H5e(W.maxComputationTimeMs),_e=!W.ignoreTrimWhitespace,Le=new Map;function Ke(Ln){let Li=Le.get(Ln);return Li===void 0&&(Li=Le.size,Le.set(Ln,Li)),Li}const se=v.map(Ln=>Ke(Ln.trim())),_t=x.map(Ln=>Ke(Ln.trim())),Ze=new $be(se,v),$e=new $be(_t,x),Mn=Ze.length+$e.length<1700?this.dynamicProgrammingDiffing.compute(Ze,$e,$,(Ln,Li)=>v[Ln]===x[Li]?x[Li].length===0?.1:1+Math.log(1+x[Li].length):.99):this.myersDiffingAlgorithm.compute(Ze,$e,$);let Bn=Mn.diffs,Zn=Mn.hitTimeout;Bn=Jbe(Ze,$e,Bn),Bn=oBe(Ze,$e,Bn);const jn=[],Ji=Ln=>{if(_e)for(let Li=0;LiLn.seq1Range.start-To===Ln.seq2Range.start-Hn);const Li=Ln.seq1Range.start-To;Ji(Li),To=Ln.seq1Range.endExclusive,Hn=Ln.seq2Range.endExclusive;const _o=this.refineDiff(v,x,Ln,$,_e,W);_o.hitTimeout&&(Zn=!0);for(const Vn of _o.mappings)jn.push(Vn)}Ji(v.length-To);const hn=new RB(v),ma=new RB(x),so=Wbe(jn,hn,ma);let Zs=[];return W.computeMoves&&(Zs=this.computeMoves(so,v,x,se,_t,$,_e,W)),fB(()=>{function Ln(_o,Vn){if(_o.lineNumber<1||_o.lineNumber>Vn.length)return!1;const el=Vn[_o.lineNumber-1];return!(_o.column<1||_o.column>el.length+1)}function Li(_o,Vn){return!(_o.startLineNumber<1||_o.startLineNumber>Vn.length+1||_o.endLineNumberExclusive<1||_o.endLineNumberExclusive>Vn.length+1)}for(const _o of so){if(!_o.innerChanges)return!1;for(const Vn of _o.innerChanges)if(!(Ln(Vn.modifiedRange.getStartPosition(),x)&&Ln(Vn.modifiedRange.getEndPosition(),x)&&Ln(Vn.originalRange.getStartPosition(),v)&&Ln(Vn.originalRange.getEndPosition(),v)))return!1;if(!Li(_o.modified,x)||!Li(_o.original,v))return!1}return!0}),new IB(so,Zs,Zn)}computeMoves(v,x,W,$,_e,Le,Ke,se){return Y5e(v,x,W,$,_e,Le).map($e=>{const Mn=this.refineDiff(x,W,new sf($e.original.toOffsetRange(),$e.modified.toOffsetRange()),Le,Ke,se),Bn=Wbe(Mn.mappings,new RB(x),new RB(W),!0);return new R5e($e,Bn)})}refineDiff(v,x,W,$,_e,Le){const se=lBe(W).toRangeMapping2(v,x),_t=new CB(v,se.originalRange,_e),Ze=new CB(x,se.modifiedRange,_e),$e=_t.length+Ze.length<500?this.dynamicProgrammingDiffing.compute(_t,Ze,$):this.myersDiffingAlgorithm.compute(_t,Ze,$);let Mn=$e.diffs;return Mn=Jbe(_t,Ze,Mn),Mn=Ybe(_t,Ze,Mn,(Zn,jn)=>Zn.findWordContaining(jn)),Le.extendToSubwords&&(Mn=Ybe(_t,Ze,Mn,(Zn,jn)=>Zn.findSubWordContaining(jn),!0)),Mn=rBe(_t,Ze,Mn),Mn=aBe(_t,Ze,Mn),{mappings:Mn.map(Zn=>new AT(_t.translateRange(Zn.seq1Range),Ze.translateRange(Zn.seq2Range))),hitTimeout:$e.hitTimeout}}}function lBe(_){return new ET(new Vc(_.seq1Range.start+1,_.seq1Range.endExclusive+1),new Vc(_.seq2Range.start+1,_.seq2Range.endExclusive+1))}const Zbe={getLegacy:()=>new G5e,getDefault:()=>new sBe};function SR(_,v){const x=Math.pow(10,v);return Math.round(_*x)/x}class Er{constructor(v,x,W,$=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,v))|0,this.g=Math.min(255,Math.max(0,x))|0,this.b=Math.min(255,Math.max(0,W))|0,this.a=SR(Math.max(Math.min(1,$),0),3)}static equals(v,x){return v.r===x.r&&v.g===x.g&&v.b===x.b&&v.a===x.a}}class IT{constructor(v,x,W,$){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=SR(Math.max(Math.min(1,x),0),3),this.l=SR(Math.max(Math.min(1,W),0),3),this.a=SR(Math.max(Math.min(1,$),0),3)}static equals(v,x){return v.h===x.h&&v.s===x.s&&v.l===x.l&&v.a===x.a}static fromRGBA(v){const x=v.r/255,W=v.g/255,$=v.b/255,_e=v.a,Le=Math.max(x,W,$),Ke=Math.min(x,W,$);let se=0,_t=0;const Ze=(Ke+Le)/2,$e=Le-Ke;if($e>0){switch(_t=Math.min(Ze<=.5?$e/(2*Ze):$e/(2-2*Ze),1),Le){case x:se=(W-$)/$e+(W<$?6:0);break;case W:se=($-x)/$e+2;break;case $:se=(x-W)/$e+4;break}se*=60,se=Math.round(se)}return new IT(se,_t,Ze,_e)}static _hue2rgb(v,x,W){return W<0&&(W+=1),W>1&&(W-=1),W<1/6?v+(x-v)*6*W:W<1/2?x:W<2/3?v+(x-v)*(2/3-W)*6:v}static toRGBA(v){const x=v.h/360,{s:W,l:$,a:_e}=v;let Le,Ke,se;if(W===0)Le=Ke=se=$;else{const _t=$<.5?$*(1+W):$+W-$*W,Ze=2*$-_t;Le=IT._hue2rgb(Ze,_t,x+1/3),Ke=IT._hue2rgb(Ze,_t,x),se=IT._hue2rgb(Ze,_t,x-1/3)}return new Er(Math.round(Le*255),Math.round(Ke*255),Math.round(se*255),_e)}}class a2{constructor(v,x,W,$){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,v),0)|0,this.s=SR(Math.max(Math.min(1,x),0),3),this.v=SR(Math.max(Math.min(1,W),0),3),this.a=SR(Math.max(Math.min(1,$),0),3)}static equals(v,x){return v.h===x.h&&v.s===x.s&&v.v===x.v&&v.a===x.a}static fromRGBA(v){const x=v.r/255,W=v.g/255,$=v.b/255,_e=Math.max(x,W,$),Le=Math.min(x,W,$),Ke=_e-Le,se=_e===0?0:Ke/_e;let _t;return Ke===0?_t=0:_e===x?_t=((W-$)/Ke%6+6)%6:_e===W?_t=($-x)/Ke+2:_t=(x-W)/Ke+4,new a2(Math.round(_t*60),se,_e,v.a)}static toRGBA(v){const{h:x,s:W,v:$,a:_e}=v,Le=$*W,Ke=Le*(1-Math.abs(x/60%2-1)),se=$-Le;let[_t,Ze,$e]=[0,0,0];return x<60?(_t=Le,Ze=Ke):x<120?(_t=Ke,Ze=Le):x<180?(Ze=Le,$e=Ke):x<240?(Ze=Ke,$e=Le):x<300?(_t=Ke,$e=Le):x<=360&&(_t=Le,$e=Ke),_t=Math.round((_t+se)*255),Ze=Math.round((Ze+se)*255),$e=Math.round(($e+se)*255),new Er(_t,Ze,$e,_e)}}const Zd=class Zd{static fromHex(v){return Zd.Format.CSS.parseHex(v)||Zd.red}static equals(v,x){return!v&&!x?!0:!v||!x?!1:v.equals(x)}get hsla(){return this._hsla?this._hsla:IT.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:a2.fromRGBA(this.rgba)}constructor(v){if(v)if(v instanceof Er)this.rgba=v;else if(v instanceof IT)this._hsla=v,this.rgba=IT.toRGBA(v);else if(v instanceof a2)this._hsva=v,this.rgba=a2.toRGBA(v);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(v){return!!v&&Er.equals(this.rgba,v.rgba)&&IT.equals(this.hsla,v.hsla)&&a2.equals(this.hsva,v.hsva)}getRelativeLuminance(){const v=Zd._relativeLuminanceForComponent(this.rgba.r),x=Zd._relativeLuminanceForComponent(this.rgba.g),W=Zd._relativeLuminanceForComponent(this.rgba.b),$=.2126*v+.7152*x+.0722*W;return SR($,4)}static _relativeLuminanceForComponent(v){const x=v/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(v){const x=this.getRelativeLuminance(),W=v.getRelativeLuminance();return x>W}isDarkerThan(v){const x=this.getRelativeLuminance(),W=v.getRelativeLuminance();return x>>0),this._toNumber32Bit}static getLighterColor(v,x,W){if(v.isLighterThan(x))return v;W=W||.5;const $=v.getRelativeLuminance(),_e=x.getRelativeLuminance();return W=W*(_e-$)/_e,v.lighten(W)}static getDarkerColor(v,x,W){if(v.isDarkerThan(x))return v;W=W||.5;const $=v.getRelativeLuminance(),_e=x.getRelativeLuminance();return W=W*($-_e)/$,v.darken(W)}};Zd.white=new Zd(new Er(255,255,255,1)),Zd.black=new Zd(new Er(0,0,0,1)),Zd.red=new Zd(new Er(255,0,0,1)),Zd.blue=new Zd(new Er(0,0,255,1)),Zd.green=new Zd(new Er(0,255,0,1)),Zd.cyan=new Zd(new Er(0,255,255,1)),Zd.lightgrey=new Zd(new Er(211,211,211,1)),Zd.transparent=new Zd(new Er(0,0,0,0));let s2=Zd;(function(_){(function(v){(function(x){function W(jn){return jn.rgba.a===1?`rgb(${jn.rgba.r}, ${jn.rgba.g}, ${jn.rgba.b})`:_.Format.CSS.formatRGBA(jn)}x.formatRGB=W;function $(jn){return`rgba(${jn.rgba.r}, ${jn.rgba.g}, ${jn.rgba.b}, ${+jn.rgba.a.toFixed(2)})`}x.formatRGBA=$;function _e(jn){return jn.hsla.a===1?`hsl(${jn.hsla.h}, ${Math.round(jn.hsla.s*100)}%, ${Math.round(jn.hsla.l*100)}%)`:_.Format.CSS.formatHSLA(jn)}x.formatHSL=_e;function Le(jn){return`hsla(${jn.hsla.h}, ${Math.round(jn.hsla.s*100)}%, ${Math.round(jn.hsla.l*100)}%, ${jn.hsla.a.toFixed(2)})`}x.formatHSLA=Le;function Ke(jn){const Ji=jn.toString(16);return Ji.length!==2?"0"+Ji:Ji}function se(jn){return`#${Ke(jn.rgba.r)}${Ke(jn.rgba.g)}${Ke(jn.rgba.b)}`}x.formatHex=se;function _t(jn,Ji=!1){return Ji&&jn.rgba.a===1?_.Format.CSS.formatHex(jn):`#${Ke(jn.rgba.r)}${Ke(jn.rgba.g)}${Ke(jn.rgba.b)}${Ke(Math.round(jn.rgba.a*255))}`}x.formatHexA=_t;function Ze(jn){return jn.isOpaque()?_.Format.CSS.formatHex(jn):_.Format.CSS.formatRGBA(jn)}x.format=Ze;function $e(jn){var Ji,To,Hn,hn,ma,so,Zs;if(jn==="transparent")return _.transparent;if(jn.startsWith("#"))return Bn(jn);if(jn.startsWith("rgba(")){const Ln=jn.match(/rgba\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+(\.\d+)?)\)/);if(!Ln)throw new Error("Invalid color format "+jn);const Li=parseInt(((Ji=Ln.groups)==null?void 0:Ji.r)??"0"),_o=parseInt(((To=Ln.groups)==null?void 0:To.g)??"0"),Vn=parseInt(((Hn=Ln.groups)==null?void 0:Hn.b)??"0"),el=parseFloat(((hn=Ln.groups)==null?void 0:hn.a)??"0");return new _(new Er(Li,_o,Vn,el))}if(jn.startsWith("rgb(")){const Ln=jn.match(/rgb\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+)\)/);if(!Ln)throw new Error("Invalid color format "+jn);const Li=parseInt(((ma=Ln.groups)==null?void 0:ma.r)??"0"),_o=parseInt(((so=Ln.groups)==null?void 0:so.g)??"0"),Vn=parseInt(((Zs=Ln.groups)==null?void 0:Zs.b)??"0");return new _(new Er(Li,_o,Vn))}return Mn(jn)}x.parse=$e;function Mn(jn){switch(jn){case"aliceblue":return new _(new Er(240,248,255,1));case"antiquewhite":return new _(new Er(250,235,215,1));case"aqua":return new _(new Er(0,255,255,1));case"aquamarine":return new _(new Er(127,255,212,1));case"azure":return new _(new Er(240,255,255,1));case"beige":return new _(new Er(245,245,220,1));case"bisque":return new _(new Er(255,228,196,1));case"black":return new _(new Er(0,0,0,1));case"blanchedalmond":return new _(new Er(255,235,205,1));case"blue":return new _(new Er(0,0,255,1));case"blueviolet":return new _(new Er(138,43,226,1));case"brown":return new _(new Er(165,42,42,1));case"burlywood":return new _(new Er(222,184,135,1));case"cadetblue":return new _(new Er(95,158,160,1));case"chartreuse":return new _(new Er(127,255,0,1));case"chocolate":return new _(new Er(210,105,30,1));case"coral":return new _(new Er(255,127,80,1));case"cornflowerblue":return new _(new Er(100,149,237,1));case"cornsilk":return new _(new Er(255,248,220,1));case"crimson":return new _(new Er(220,20,60,1));case"cyan":return new _(new Er(0,255,255,1));case"darkblue":return new _(new Er(0,0,139,1));case"darkcyan":return new _(new Er(0,139,139,1));case"darkgoldenrod":return new _(new Er(184,134,11,1));case"darkgray":return new _(new Er(169,169,169,1));case"darkgreen":return new _(new Er(0,100,0,1));case"darkgrey":return new _(new Er(169,169,169,1));case"darkkhaki":return new _(new Er(189,183,107,1));case"darkmagenta":return new _(new Er(139,0,139,1));case"darkolivegreen":return new _(new Er(85,107,47,1));case"darkorange":return new _(new Er(255,140,0,1));case"darkorchid":return new _(new Er(153,50,204,1));case"darkred":return new _(new Er(139,0,0,1));case"darksalmon":return new _(new Er(233,150,122,1));case"darkseagreen":return new _(new Er(143,188,143,1));case"darkslateblue":return new _(new Er(72,61,139,1));case"darkslategray":return new _(new Er(47,79,79,1));case"darkslategrey":return new _(new Er(47,79,79,1));case"darkturquoise":return new _(new Er(0,206,209,1));case"darkviolet":return new _(new Er(148,0,211,1));case"deeppink":return new _(new Er(255,20,147,1));case"deepskyblue":return new _(new Er(0,191,255,1));case"dimgray":return new _(new Er(105,105,105,1));case"dimgrey":return new _(new Er(105,105,105,1));case"dodgerblue":return new _(new Er(30,144,255,1));case"firebrick":return new _(new Er(178,34,34,1));case"floralwhite":return new _(new Er(255,250,240,1));case"forestgreen":return new _(new Er(34,139,34,1));case"fuchsia":return new _(new Er(255,0,255,1));case"gainsboro":return new _(new Er(220,220,220,1));case"ghostwhite":return new _(new Er(248,248,255,1));case"gold":return new _(new Er(255,215,0,1));case"goldenrod":return new _(new Er(218,165,32,1));case"gray":return new _(new Er(128,128,128,1));case"green":return new _(new Er(0,128,0,1));case"greenyellow":return new _(new Er(173,255,47,1));case"grey":return new _(new Er(128,128,128,1));case"honeydew":return new _(new Er(240,255,240,1));case"hotpink":return new _(new Er(255,105,180,1));case"indianred":return new _(new Er(205,92,92,1));case"indigo":return new _(new Er(75,0,130,1));case"ivory":return new _(new Er(255,255,240,1));case"khaki":return new _(new Er(240,230,140,1));case"lavender":return new _(new Er(230,230,250,1));case"lavenderblush":return new _(new Er(255,240,245,1));case"lawngreen":return new _(new Er(124,252,0,1));case"lemonchiffon":return new _(new Er(255,250,205,1));case"lightblue":return new _(new Er(173,216,230,1));case"lightcoral":return new _(new Er(240,128,128,1));case"lightcyan":return new _(new Er(224,255,255,1));case"lightgoldenrodyellow":return new _(new Er(250,250,210,1));case"lightgray":return new _(new Er(211,211,211,1));case"lightgreen":return new _(new Er(144,238,144,1));case"lightgrey":return new _(new Er(211,211,211,1));case"lightpink":return new _(new Er(255,182,193,1));case"lightsalmon":return new _(new Er(255,160,122,1));case"lightseagreen":return new _(new Er(32,178,170,1));case"lightskyblue":return new _(new Er(135,206,250,1));case"lightslategray":return new _(new Er(119,136,153,1));case"lightslategrey":return new _(new Er(119,136,153,1));case"lightsteelblue":return new _(new Er(176,196,222,1));case"lightyellow":return new _(new Er(255,255,224,1));case"lime":return new _(new Er(0,255,0,1));case"limegreen":return new _(new Er(50,205,50,1));case"linen":return new _(new Er(250,240,230,1));case"magenta":return new _(new Er(255,0,255,1));case"maroon":return new _(new Er(128,0,0,1));case"mediumaquamarine":return new _(new Er(102,205,170,1));case"mediumblue":return new _(new Er(0,0,205,1));case"mediumorchid":return new _(new Er(186,85,211,1));case"mediumpurple":return new _(new Er(147,112,219,1));case"mediumseagreen":return new _(new Er(60,179,113,1));case"mediumslateblue":return new _(new Er(123,104,238,1));case"mediumspringgreen":return new _(new Er(0,250,154,1));case"mediumturquoise":return new _(new Er(72,209,204,1));case"mediumvioletred":return new _(new Er(199,21,133,1));case"midnightblue":return new _(new Er(25,25,112,1));case"mintcream":return new _(new Er(245,255,250,1));case"mistyrose":return new _(new Er(255,228,225,1));case"moccasin":return new _(new Er(255,228,181,1));case"navajowhite":return new _(new Er(255,222,173,1));case"navy":return new _(new Er(0,0,128,1));case"oldlace":return new _(new Er(253,245,230,1));case"olive":return new _(new Er(128,128,0,1));case"olivedrab":return new _(new Er(107,142,35,1));case"orange":return new _(new Er(255,165,0,1));case"orangered":return new _(new Er(255,69,0,1));case"orchid":return new _(new Er(218,112,214,1));case"palegoldenrod":return new _(new Er(238,232,170,1));case"palegreen":return new _(new Er(152,251,152,1));case"paleturquoise":return new _(new Er(175,238,238,1));case"palevioletred":return new _(new Er(219,112,147,1));case"papayawhip":return new _(new Er(255,239,213,1));case"peachpuff":return new _(new Er(255,218,185,1));case"peru":return new _(new Er(205,133,63,1));case"pink":return new _(new Er(255,192,203,1));case"plum":return new _(new Er(221,160,221,1));case"powderblue":return new _(new Er(176,224,230,1));case"purple":return new _(new Er(128,0,128,1));case"rebeccapurple":return new _(new Er(102,51,153,1));case"red":return new _(new Er(255,0,0,1));case"rosybrown":return new _(new Er(188,143,143,1));case"royalblue":return new _(new Er(65,105,225,1));case"saddlebrown":return new _(new Er(139,69,19,1));case"salmon":return new _(new Er(250,128,114,1));case"sandybrown":return new _(new Er(244,164,96,1));case"seagreen":return new _(new Er(46,139,87,1));case"seashell":return new _(new Er(255,245,238,1));case"sienna":return new _(new Er(160,82,45,1));case"silver":return new _(new Er(192,192,192,1));case"skyblue":return new _(new Er(135,206,235,1));case"slateblue":return new _(new Er(106,90,205,1));case"slategray":return new _(new Er(112,128,144,1));case"slategrey":return new _(new Er(112,128,144,1));case"snow":return new _(new Er(255,250,250,1));case"springgreen":return new _(new Er(0,255,127,1));case"steelblue":return new _(new Er(70,130,180,1));case"tan":return new _(new Er(210,180,140,1));case"teal":return new _(new Er(0,128,128,1));case"thistle":return new _(new Er(216,191,216,1));case"tomato":return new _(new Er(255,99,71,1));case"turquoise":return new _(new Er(64,224,208,1));case"violet":return new _(new Er(238,130,238,1));case"wheat":return new _(new Er(245,222,179,1));case"white":return new _(new Er(255,255,255,1));case"whitesmoke":return new _(new Er(245,245,245,1));case"yellow":return new _(new Er(255,255,0,1));case"yellowgreen":return new _(new Er(154,205,50,1));default:return null}}function Bn(jn){const Ji=jn.length;if(Ji===0||jn.charCodeAt(0)!==35)return null;if(Ji===7){const To=16*Zn(jn.charCodeAt(1))+Zn(jn.charCodeAt(2)),Hn=16*Zn(jn.charCodeAt(3))+Zn(jn.charCodeAt(4)),hn=16*Zn(jn.charCodeAt(5))+Zn(jn.charCodeAt(6));return new _(new Er(To,Hn,hn,1))}if(Ji===9){const To=16*Zn(jn.charCodeAt(1))+Zn(jn.charCodeAt(2)),Hn=16*Zn(jn.charCodeAt(3))+Zn(jn.charCodeAt(4)),hn=16*Zn(jn.charCodeAt(5))+Zn(jn.charCodeAt(6)),ma=16*Zn(jn.charCodeAt(7))+Zn(jn.charCodeAt(8));return new _(new Er(To,Hn,hn,ma/255))}if(Ji===4){const To=Zn(jn.charCodeAt(1)),Hn=Zn(jn.charCodeAt(2)),hn=Zn(jn.charCodeAt(3));return new _(new Er(16*To+To,16*Hn+Hn,16*hn+hn))}if(Ji===5){const To=Zn(jn.charCodeAt(1)),Hn=Zn(jn.charCodeAt(2)),hn=Zn(jn.charCodeAt(3)),ma=Zn(jn.charCodeAt(4));return new _(new Er(16*To+To,16*Hn+Hn,16*hn+hn,(16*ma+ma)/255))}return null}x.parseHex=Bn;function Zn(jn){switch(jn){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(v.CSS||(v.CSS={}))})(_.Format||(_.Format={}))})(s2||(s2={}));function eTe(_){const v=[];for(const x of _){const W=Number(x);(W||W===0&&x.replace(/\s/g,"")!=="")&&v.push(W)}return v}function OQ(_,v,x,W){return{red:_/255,blue:x/255,green:v/255,alpha:W}}function k8(_,v){const x=v.index,W=v[0].length;if(x===void 0)return;const $=_.positionAt(x);return{startLineNumber:$.lineNumber,startColumn:$.column,endLineNumber:$.lineNumber,endColumn:$.column+W}}function cBe(_,v){if(!_)return;const x=s2.Format.CSS.parseHex(v);if(x)return{range:_,color:OQ(x.rgba.r,x.rgba.g,x.rgba.b,x.rgba.a)}}function tTe(_,v,x){if(!_||v.length!==1)return;const $=v[0].values(),_e=eTe($);return{range:_,color:OQ(_e[0],_e[1],_e[2],x?_e[3]:1)}}function nTe(_,v,x){if(!_||v.length!==1)return;const $=v[0].values(),_e=eTe($),Le=new s2(new IT(_e[0],_e[1]/100,_e[2]/100,x?_e[3]:1));return{range:_,color:OQ(Le.rgba.r,Le.rgba.g,Le.rgba.b,Le.rgba.a)}}function w8(_,v){return typeof _=="string"?[..._.matchAll(v)]:_.findMatches(v)}function dBe(_){const v=[],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"),W=w8(_,x);if(W.length>0)for(const $ of W){const _e=$.filter(_t=>_t!==void 0),Le=_e[1],Ke=_e[2];if(!Ke)continue;let se;if(Le==="rgb"){const _t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;se=tTe(k8(_,$),w8(Ke,_t),!1)}else if(Le==="rgba"){const _t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;se=tTe(k8(_,$),w8(Ke,_t),!0)}else if(Le==="hsl"){const _t=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;se=nTe(k8(_,$),w8(Ke,_t),!1)}else if(Le==="hsla"){const _t=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;se=nTe(k8(_,$),w8(Ke,_t),!0)}else Le==="#"&&(se=cBe(k8(_,$),Le+Ke));se&&v.push(se)}return v}function uBe(_){return!_||typeof _.getValue!="function"||typeof _.positionAt!="function"?[]:dBe(_)}const pBe=/^-+|-+$/g,rTe=100,fBe=5;function mBe(_,v){var W;let x=[];if(v.findRegionSectionHeaders&&((W=v.foldingRules)!=null&&W.markers)){const $=hBe(_,v);x=x.concat($)}if(v.findMarkSectionHeaders){const $=_Be(_,v);x=x.concat($)}return x}function hBe(_,v){const x=[],W=_.getLineCount();for(let $=1;$<=W;$++){const _e=_.getLineContent($),Le=_e.match(v.foldingRules.markers.start);if(Le){const Ke={startLineNumber:$,startColumn:Le[0].length+1,endLineNumber:$,endColumn:_e.length+1};if(Ke.endColumn>Ke.startColumn){const se={range:Ke,...gBe(_e.substring(Le[0].length)),shouldBeInComments:!1};(se.text||se.hasSeparatorLine)&&x.push(se)}}}return x}function _Be(_,v){const x=[],W=_.getLineCount();if(!v.markSectionHeaderRegex||v.markSectionHeaderRegex.trim()==="")return x;const $=g5e(v.markSectionHeaderRegex),_e=new RegExp(v.markSectionHeaderRegex,`gdm${$?"s":""}`);if(pze(_e))return x;for(let Le=1;Le<=W;Le+=rTe-fBe){const Ke=Math.min(Le+rTe-1,W),se=[];for(let $e=Le;$e<=Ke;$e++)se.push(_.getLineContent($e));const _t=se.join(` `);_e.lastIndex=0;let Ze;for(;(Ze=_e.exec(_t))!==null;){const $e=_t.substring(0,Ze.index),Mn=($e.match(/\n/g)||[]).length,Bn=Le+Mn,Zn=Ze[0].split(` `),jn=Zn.length,Ji=Bn+jn-1,To=$e.lastIndexOf(` `)+1,Hn=Ze.index-To+1,hn=Zn[Zn.length-1],ma=jn===1?Hn+Ze[0].length:hn.length+1,so={startLineNumber:Bn,startColumn:Hn,endLineNumber:Ji,endColumn:ma},Zs=(Ze.groups??{}).label??"",Ln=((Ze.groups??{}).separator??"")!=="",Li={range:so,text:Zs,hasSeparatorLine:Ln,shouldBeInComments:!0};(Li.text||Li.hasSeparatorLine)&&(x.length===0||x[x.length-1].range.endLineNumber{this.completeCallback=v,this.errorCallback=x})}complete(v){return this.isSettled?Promise.resolve():new Promise(x=>{this.completeCallback(v),this.outcome={outcome:0,value:v},x()})}error(v){return this.isSettled?Promise.resolve():new Promise(x=>{this.errorCallback(v),this.outcome={outcome:1,value:v},x()})}cancel(){return this.error(new Xye)}}var iTe;(function(_){async function v(W){let $;const _e=await Promise.all(W.map(Le=>Le.then(Ke=>Ke,Ke=>{$||($=Ke)})));if(typeof $<"u")throw $;return _e}_.settled=v;function x(W){return new Promise(async($,_e)=>{try{await W($,_e)}catch(Le){_e(Le)}})}_.withAsyncBody=x})(iTe||(iTe={}));class vBe{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(v){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const x=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(x,v)}else this._unconsumedValues.push(v)}produceFinal(v){this._ensureNoFinalValue(),this._finalValue=v;for(const x of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(x,v);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new I_("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(v,x){x.ok?v.complete(x.value):v.error(x.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const v=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return v.ok?Promise.resolve(v.value):Promise.reject(v.error)}else{const v=new yBe;return this._unsatisfiedConsumers.push(v),v.p}}}const Xy=class Xy{constructor(v,x){this._onReturn=x,this._producerConsumer=new vBe,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>{var W;return(W=this._onReturn)==null||W.call(this),Promise.resolve({done:!0,value:void 0})},throw:async W=>(this._finishError(W),{done:!0,value:void 0})},queueMicrotask(async()=>{const W=v({emitOne:$=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:$}}),emitMany:$=>{for(const _e of $)this._producerConsumer.produce({ok:!0,value:{done:!1,value:_e}})},reject:$=>this._finishError($)});if(!this._producerConsumer.hasFinalValue)try{await W,this._finishOk()}catch($){this._finishError($)}})}static fromArray(v){return new Xy(x=>{x.emitMany(v)})}static fromPromise(v){return new Xy(async x=>{x.emitMany(await v)})}static fromPromisesResolveOrder(v){return new Xy(async x=>{await Promise.all(v.map(async W=>x.emitOne(await W)))})}static merge(v){return new Xy(async x=>{await Promise.all(v.map(async W=>{for await(const $ of W)x.emitOne($)}))})}static map(v,x){return new Xy(async W=>{for await(const $ of v)W.emitOne(x($))})}map(v){return Xy.map(this,v)}static coalesce(v){return Xy.filter(v,x=>!!x)}coalesce(){return Xy.coalesce(this)}static filter(v,x){return new Xy(async W=>{for await(const $ of v)x($)&&W.emitOne($)})}filter(v){return Xy.filter(this,v)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(v){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:v})}[Symbol.asyncIterator](){return this._iterator}};Xy.EMPTY=Xy.fromArray([]);let oTe=Xy;class bBe{constructor(v){this.values=v,this.prefixSum=new Uint32Array(v.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(v,x){v=$L(v);const W=this.values,$=this.prefixSum,_e=x.length;return _e===0?!1:(this.values=new Uint32Array(W.length+_e),this.values.set(W.subarray(0,v),0),this.values.set(W.subarray(v),v+_e),this.values.set(x,v),v-1=0&&this.prefixSum.set($.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(v,x){return v=$L(v),x=$L(x),this.values[v]===x?!1:(this.values[v]=x,v-1=W.length)return!1;const _e=W.length-v;return x>=_e&&(x=_e),x===0?!1:(this.values=new Uint32Array(W.length-x),this.values.set(W.subarray(0,v),0),this.values.set(W.subarray(v+x),v),this.prefixSum=new Uint32Array(this.values.length),v-1=0&&this.prefixSum.set($.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(v){return v<0?0:(v=$L(v),this._getPrefixSum(v))}_getPrefixSum(v){if(v<=this.prefixSumValidIndex[0])return this.prefixSum[v];let x=this.prefixSumValidIndex[0]+1;x===0&&(this.prefixSum[0]=this.values[0],x++),v>=this.values.length&&(v=this.values.length-1);for(let W=x;W<=v;W++)this.prefixSum[W]=this.prefixSum[W-1]+this.values[W];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],v),this.prefixSum[v]}getIndexOf(v){v=Math.floor(v),this.getTotalSum();let x=0,W=this.values.length-1,$=0,_e=0,Le=0;for(;x<=W;)if($=x+(W-x)/2|0,_e=this.prefixSum[$],Le=_e-this.values[$],v=_e)x=$+1;else break;return new TBe($,v-Le)}}class TBe{constructor(v,x){this.index=v,this.remainder=x,this._prefixSumIndexOfResultBrand=void 0,this.index=v,this.remainder=x}}class SBe{constructor(v,x,W,$){this._uri=v,this._lines=x,this._eol=W,this._versionId=$,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(v){v.eol&&v.eol!==this._eol&&(this._eol=v.eol,this._lineStarts=null);const x=v.changes;for(const W of x)this._acceptDeleteRange(W.range),this._acceptInsertText(new Zc(W.range.startLineNumber,W.range.startColumn),W.text);this._versionId=v.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const v=this._eol.length,x=this._lines.length,W=new Uint32Array(x);for(let $=0;$v.push(this._models[x])),v}$acceptNewModel(v){this._models[v.url]=new ABe(cN.parse(v.url),v.lines,v.EOL,v.versionId)}$acceptModelChanged(v,x){if(!this._models[v])return;this._models[v].onEvents(x)}$acceptRemovedModel(v){this._models[v]&&delete this._models[v]}}class ABe extends SBe{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(v){const x=[];for(let W=0;Wthis._lines.length)x=this._lines.length,W=this._lines[x-1].length+1,$=!0;else{const _e=this._lines[x-1].length+1;W<1?(W=1,$=!0):W>_e&&(W=_e,$=!0)}return $?{lineNumber:x,column:W}:v}}const pN=class pN{constructor(v=null){this._foreignModule=v,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new EBe}dispose(){}async $ping(){return"pong"}_getModel(v){return this._workerTextModelSyncServer.getModel(v)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(v){this._workerTextModelSyncServer.$acceptNewModel(v)}$acceptModelChanged(v,x){this._workerTextModelSyncServer.$acceptModelChanged(v,x)}$acceptRemovedModel(v){this._workerTextModelSyncServer.$acceptRemovedModel(v)}async $computeUnicodeHighlights(v,x,W){const $=this._getModel(v);return $?I5e.computeUnicodeHighlights($,x,W):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(v,x){const W=this._getModel(v);return W?mBe(W,x):[]}async $computeDiff(v,x,W,$){const _e=this._getModel(v),Le=this._getModel(x);return!_e||!Le?null:pN.computeDiff(_e,Le,W,$)}static computeDiff(v,x,W,$){const _e=$==="advanced"?Zbe.getDefault():Zbe.getLegacy(),Le=v.getLinesContent(),Ke=x.getLinesContent(),se=_e.computeDiff(Le,Ke,W),_t=se.changes.length>0?!1:this._modelsAreIdentical(v,x);function Ze($e){return $e.map(Mn=>{var Bn;return[Mn.original.startLineNumber,Mn.original.endLineNumberExclusive,Mn.modified.startLineNumber,Mn.modified.endLineNumberExclusive,(Bn=Mn.innerChanges)==null?void 0:Bn.map(Zn=>[Zn.originalRange.startLineNumber,Zn.originalRange.startColumn,Zn.originalRange.endLineNumber,Zn.originalRange.endColumn,Zn.modifiedRange.startLineNumber,Zn.modifiedRange.startColumn,Zn.modifiedRange.endLineNumber,Zn.modifiedRange.endColumn])]})}return{identical:_t,quitEarly:se.hitTimeout,changes:Ze(se.changes),moves:se.moves.map($e=>[$e.lineRangeMapping.original.startLineNumber,$e.lineRangeMapping.original.endLineNumberExclusive,$e.lineRangeMapping.modified.startLineNumber,$e.lineRangeMapping.modified.endLineNumberExclusive,Ze($e.changes)])}}static _modelsAreIdentical(v,x){const W=v.getLineCount(),$=x.getLineCount();if(W!==$)return!1;for(let _e=1;_e<=W;_e++){const Le=v.getLineContent(_e),Ke=x.getLineContent(_e);if(Le!==Ke)return!1}return!0}async $computeMoreMinimalEdits(v,x,W){const $=this._getModel(v);if(!$)return x;const _e=[];let Le;x=x.slice(0).sort((se,_t)=>{if(se.range&&_t.range)return ss.compareRangesUsingStarts(se.range,_t.range);const Ze=se.range?0:1,$e=_t.range?0:1;return Ze-$e});let Ke=0;for(let se=1;sepN._diffLimit){_e.push({range:se,text:_t});continue}const Mn=Pze($e,_t,W),Bn=$.offsetAt(ss.lift(se).getStartPosition());for(const Zn of Mn){const jn=$.positionAt(Bn+Zn.originalStart),Ji=$.positionAt(Bn+Zn.originalStart+Zn.originalLength),To={text:_t.substr(Zn.modifiedStart,Zn.modifiedLength),range:{startLineNumber:jn.lineNumber,startColumn:jn.column,endLineNumber:Ji.lineNumber,endColumn:Ji.column}};$.getValueInRange(To.range)!==To.text&&_e.push(To)}}return typeof Le=="number"&&_e.push({eol:Le,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),_e}async $computeLinks(v){const x=this._getModel(v);return x?Wze(x):null}async $computeDefaultDocumentColors(v){const x=this._getModel(v);return x?uBe(x):null}async $textualSuggest(v,x,W,$){const _e=new _B,Le=new RegExp(W,$),Ke=new Set;e:for(const se of v){const _t=this._getModel(se);if(_t){for(const Ze of _t.words(Le))if(!(Ze===x||!isNaN(Number(Ze)))&&(Ke.add(Ze),Ke.size>pN._suggestionsLimit))break e}}return{words:Array.from(Ke),duration:_e.elapsed()}}async $computeWordRanges(v,x,W,$){const _e=this._getModel(v);if(!_e)return Object.create(null);const Le=new RegExp(W,$),Ke=Object.create(null);for(let se=x.startLineNumber;se{const $=FQ.getChannel(W),Le={host:new Proxy({},{get(Ke,se,_t){if(se!=="then"){if(typeof se!="string")throw new Error("Not supported");return(...Ze)=>$.$fhr(se,Ze)}}}),getMirrorModels:()=>x.requestHandler.getModels()};return v=_(Le),new WQ(v)});return v}function xBe(_){self.onmessage=v=>{IBe(x=>_(x,v.data))}}var aTe=void 0;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var xT={};(_=>{var v=Object.defineProperty,x=(e,t)=>{for(var r in t)v(e,r,{get:t[r],enumerable:!0})},W=e=>e,$={};x($,{ANONYMOUS:()=>uJ,AccessFlags:()=>FZ,AssertionLevel:()=>KQ,AssignmentDeclarationKind:()=>JZ,AssignmentKind:()=>gne,Associativity:()=>Ine,BreakpointResolver:()=>cK,BuilderFileEmit:()=>Tse,BuilderProgramKind:()=>Cse,BuilderState:()=>_h,CallHierarchy:()=>yx,CharacterCodes:()=>iee,CheckFlags:()=>kZ,CheckMode:()=>kU,ClassificationType:()=>Sq,ClassificationTypeNames:()=>Mle,CommentDirectiveType:()=>vZ,Comparison:()=>Ke,CompletionInfoFlags:()=>Ale,CompletionTriggerKind:()=>bq,Completions:()=>Ex,ContainerFlags:()=>tae,ContextFlags:()=>xZ,Debug:()=>C,DiagnosticCategory:()=>K8,Diagnostics:()=>f,DocumentHighlights:()=>U7,ElementFlags:()=>WZ,EmitFlags:()=>v9,EmitHint:()=>lee,EmitOnly:()=>TZ,EndOfLineState:()=>Rle,ExitStatus:()=>SZ,ExportKind:()=>Tce,Extension:()=>oee,ExternalEmitHelpers:()=>see,FileIncludeKind:()=>c9,FilePreprocessingDiagnosticsKind:()=>bZ,FileSystemEntryKind:()=>gee,FileWatcherEventKind:()=>mee,FindAllReferences:()=>Ys,FlattenLevel:()=>Eae,FlowFlags:()=>J8,ForegroundColorEscapeSequences:()=>use,FunctionFlags:()=>Ene,GeneratedIdentifierFlags:()=>l9,GetLiteralTextFlags:()=>kte,GoToDefinition:()=>fC,HighlightSpanKind:()=>Sle,IdentifierNameMap:()=>jD,ImportKind:()=>bce,ImportsNotUsedAsValues:()=>ZZ,IndentStyle:()=>Ele,IndexFlags:()=>zZ,IndexKind:()=>VZ,InferenceFlags:()=>HZ,InferencePriority:()=>UZ,InlayHintKind:()=>Tle,InlayHints:()=>eX,InternalEmitFlags:()=>aee,InternalNodeBuilderFlags:()=>DZ,InternalSymbolName:()=>wZ,IntersectionFlags:()=>IZ,InvalidatedProjectKind:()=>Qse,JSDocParsingMode:()=>fee,JsDoc:()=>y0,JsTyping:()=>Gb,JsxEmit:()=>QZ,JsxFlags:()=>hZ,JsxReferenceKind:()=>BZ,LanguageFeatureMinimumTarget:()=>ed,LanguageServiceMode:()=>vle,LanguageVariant:()=>nee,LexicalEnvironmentFlags:()=>dee,ListFormat:()=>uee,LogLevel:()=>iZ,MapCode:()=>tX,MemberOverrideStatus:()=>EZ,ModifierFlags:()=>a9,ModuleDetectionKind:()=>KZ,ModuleInstanceState:()=>Zoe,ModuleKind:()=>CR,ModuleResolutionKind:()=>DR,ModuleSpecifierEnding:()=>Sre,NavigateTo:()=>Hce,NavigationBar:()=>Jce,NewLineKind:()=>eee,NodeBuilderFlags:()=>RZ,NodeCheckFlags:()=>p9,NodeFactoryFlags:()=>eie,NodeFlags:()=>o9,NodeResolutionFeatures:()=>joe,ObjectFlags:()=>m9,OperationCanceledException:()=>TN,OperatorPrecedence:()=>xne,OrganizeImports:()=>v0,OrganizeImportsMode:()=>vq,OuterExpressionKinds:()=>cee,OutliningElementsCollector:()=>rX,OutliningSpanKind:()=>Ile,OutputFileType:()=>xle,PackageJsonAutoImportPreference:()=>yle,PackageJsonDependencyGroup:()=>gle,PatternMatchKind:()=>NJ,PollingInterval:()=>b9,PollingWatchKind:()=>$Z,PragmaKindFlags:()=>pee,PredicateSemantics:()=>_Z,PreparePasteEdits:()=>yX,PrivateIdentifierKind:()=>die,ProcessLevel:()=>Rae,ProgramUpdateLevel:()=>ase,QuotePreference:()=>Zle,RegularExpressionFlags:()=>gZ,RelationComparisonResult:()=>s9,Rename:()=>Rz,ScriptElementKind:()=>Cle,ScriptElementKindModifier:()=>Nle,ScriptKind:()=>_9,ScriptSnapshot:()=>n7,ScriptTarget:()=>tee,SemanticClassificationFormat:()=>ble,SemanticMeaning:()=>Ple,SemicolonPreference:()=>Tq,SignatureCheckMode:()=>wU,SignatureFlags:()=>h9,SignatureHelp:()=>iW,SignatureInfo:()=>bse,SignatureKind:()=>GZ,SmartSelectionRange:()=>aX,SnippetKind:()=>y9,StatisticType:()=>sle,StructureIsReused:()=>d9,SymbolAccessibility:()=>MZ,SymbolDisplay:()=>vv,SymbolDisplayPartKind:()=>i7,SymbolFlags:()=>u9,SymbolFormatFlags:()=>NZ,SyntaxKind:()=>i9,Ternary:()=>qZ,ThrottledCancellationToken:()=>tue,TokenClass:()=>Dle,TokenFlags:()=>yZ,TransformFlags:()=>g9,TypeFacts:()=>LU,TypeFlags:()=>f9,TypeFormatFlags:()=>CZ,TypeMapKind:()=>jZ,TypePredicateKind:()=>PZ,TypeReferenceSerializationKind:()=>LZ,UnionReduction:()=>AZ,UpToDateStatusType:()=>Hse,VarianceFlags:()=>OZ,Version:()=>ih,VersionRange:()=>q8,WatchDirectoryFlags:()=>ree,WatchDirectoryKind:()=>YZ,WatchFileKind:()=>XZ,WatchLogLevel:()=>lse,WatchType:()=>sd,accessPrivateIdentifier:()=>Sae,addEmitFlags:()=>Zh,addEmitHelper:()=>zI,addEmitHelpers:()=>Ig,addInternalEmitFlags:()=>_1,addNodeFactoryPatcher:()=>oSe,addObjectAllocatorPatcher:()=>j0e,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>Cb,addSyntheticTrailingComment:()=>OM,addToSeen:()=>ym,advancedAsyncSuperHelper:()=>p4,affectsDeclarationPathOptionDeclarations:()=>hoe,affectsEmitOptionDeclarations:()=>moe,allKeysStartWithDot:()=>a3,altDirectorySeparator:()=>Z8,and:()=>j8,append:()=>Un,appendIfUnique:()=>Qg,arrayFrom:()=>Co,arrayIsEqualTo:()=>Qp,arrayIsHomogeneous:()=>Mre,arrayOf:()=>UQ,arrayReverseIterator:()=>WB,arrayToMap:()=>AR,arrayToMultiMap:()=>_2,arrayToNumericMap:()=>qQ,assertType:()=>gTe,assign:()=>VE,asyncSuperHelper:()=>u4,attachFileToDiagnostics:()=>NI,base64decode:()=>Jne,base64encode:()=>qne,binarySearch:()=>Zv,binarySearchKey:()=>YA,bindSourceFile:()=>nae,breakIntoCharacterSpans:()=>Wce,breakIntoWordSpans:()=>Fce,buildLinkParts:()=>sce,buildOpts:()=>Pw,buildOverload:()=>qwe,bundlerModuleNameResolver:()=>Uoe,canBeConvertedToAsync:()=>OJ,canHaveDecorators:()=>JS,canHaveExportModifier:()=>nw,canHaveFlowNode:()=>eD,canHaveIllegalDecorators:()=>jj,canHaveIllegalModifiers:()=>Xie,canHaveIllegalType:()=>MSe,canHaveIllegalTypeParameters:()=>Kie,canHaveJSDoc:()=>Ek,canHaveLocals:()=>C_,canHaveModifiers:()=>Sm,canHaveModuleSpecifier:()=>mne,canHaveSymbol:()=>ah,canIncludeBindAndCheckDiagnostics:()=>xM,canJsonReportNoInputFiles:()=>Fw,canProduceDiagnostics:()=>Jw,canUsePropertyAccess:()=>JV,canWatchAffectingLocation:()=>Wse,canWatchAtTypes:()=>Ose,canWatchDirectoryOrFile:()=>OH,canWatchDirectoryOrFilePath:()=>lO,cartesianProduct:()=>nZ,cast:()=>ha,chainBundle:()=>hh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>E2,changeCompilerHostLikeToUseCache:()=>yP,changeExtension:()=>av,changeFullExtension:()=>nF,changesAffectModuleResolution:()=>CF,changesAffectingProgramStructure:()=>xte,characterCodeToRegularExpressionFlag:()=>M9,childIsDecorated:()=>KN,classElementOrClassElementParameterIsDecorated:()=>NG,classHasClassThisAssignment:()=>YU,classHasDeclaredOrExplicitlyAssignedName:()=>$U,classHasExplicitlyAssignedName:()=>b3,classOrConstructorParameterIsDecorated:()=>tv,classicNameResolver:()=>$oe,classifier:()=>oue,cleanExtendedConfigCache:()=>x3,clear:()=>hi,clearMap:()=>hp,clearSharedExtendedConfigFileWatcher:()=>uH,climbPastPropertyAccess:()=>s7,clone:()=>JQ,cloneCompilerOptions:()=>Gq,closeFileWatcher:()=>Gm,closeFileWatcherOf:()=>Kf,codefix:()=>cu,collapseTextChangeRangesAcrossMultipleVersions:()=>Fee,collectExternalModuleInfo:()=>qU,combine:()=>XA,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>yoe,commentPragmas:()=>X8,commonOptionsWithBuild:()=>z4,compact:()=>m2,compareBooleans:()=>NT,compareDataObjects:()=>EV,compareDiagnostics:()=>vM,compareEmitHelpers:()=>pie,compareNumberOfDirectorySeparators:()=>Qk,comparePaths:()=>ey,comparePathsCaseInsensitive:()=>jTe,comparePathsCaseSensitive:()=>VTe,comparePatternKeys:()=>xU,compareProperties:()=>QQ,compareStringsCaseInsensitive:()=>y2,compareStringsCaseInsensitiveEslintCompatible:()=>XQ,compareStringsCaseSensitive:()=>Wd,compareStringsCaseSensitiveUI:()=>v2,compareTextSpans:()=>G8,compareValues:()=>js,compilerOptionsAffectDeclarationPath:()=>hre,compilerOptionsAffectEmit:()=>mre,compilerOptionsAffectSemanticDiagnostics:()=>fre,compilerOptionsDidYouMeanDiagnostics:()=>j4,compilerOptionsIndicateEsModules:()=>Jq,computeCommonSourceDirectoryOfFilenames:()=>cse,computeLineAndCharacterOfPosition:()=>LR,computeLineOfPosition:()=>IN,computeLineStarts:()=>iI,computePositionOfLineAndCharacter:()=>aF,computeSignatureWithDiagnostics:()=>NH,computeSuggestionDiagnostics:()=>LJ,computedOptions:()=>bM,concatenate:()=>lo,concatenateDiagnosticMessageChains:()=>are,consumesNodeCoreModules:()=>w7,contains:()=>Ln,containsIgnoredPath:()=>CM,containsObjectRestOrSpread:()=>Dw,containsParseError:()=>fI,containsPath:()=>pm,convertCompilerOptionsForTelemetry:()=>Loe,convertCompilerOptionsFromJson:()=>BEe,convertJsonOption:()=>M1,convertToBase64:()=>Hne,convertToJson:()=>ww,convertToObject:()=>Roe,convertToOptionsWithAbsolutePaths:()=>J4,convertToRelativePath:()=>EN,convertToTSConfig:()=>cU,convertTypeAcquisitionFromJson:()=>GEe,copyComments:()=>B1,copyEntries:()=>NF,copyLeadingComments:()=>oC,copyProperties:()=>UB,copyTrailingAsLeadingComments:()=>CO,copyTrailingComments:()=>kP,couldStartTrivia:()=>Aee,countWhere:()=>_o,createAbstractBuilder:()=>KAe,createAccessorPropertyBackingField:()=>qj,createAccessorPropertyGetRedirector:()=>roe,createAccessorPropertySetRedirector:()=>ioe,createBaseNodeFactory:()=>Xre,createBinaryExpressionTrampoline:()=>k4,createBuilderProgram:()=>MH,createBuilderProgramUsingIncrementalBuildInfo:()=>Lse,createBuilderStatusReporter:()=>K3,createCacheableExportInfoMap:()=>SJ,createCachedDirectoryStructureHost:()=>A3,createClassifier:()=>Axe,createCommentDirectivesMap:()=>Pte,createCompilerDiagnostic:()=>Il,createCompilerDiagnosticForInvalidCustomType:()=>voe,createCompilerDiagnosticFromMessageChain:()=>L6,createCompilerHost:()=>dse,createCompilerHostFromProgramHost:()=>$H,createCompilerHostWorker:()=>R3,createDetachedDiagnostic:()=>CI,createDiagnosticCollection:()=>cM,createDiagnosticForFileFromMessageChain:()=>IG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>qR,createDiagnosticForNodeArrayFromMessageChain:()=>tk,createDiagnosticForNodeFromMessageChain:()=>_g,createDiagnosticForNodeInSourceFile:()=>Wf,createDiagnosticForRange:()=>qte,createDiagnosticMessageChainFromDiagnostic:()=>Hte,createDiagnosticReporter:()=>dx,createDocumentPositionMapper:()=>gae,createDocumentRegistry:()=>xce,createDocumentRegistryInternal:()=>RJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>wH,createEmitHelperFactory:()=>uie,createEmptyExports:()=>bw,createEvaluator:()=>Gre,createExpressionForJsxElement:()=>Vie,createExpressionForJsxFragment:()=>jie,createExpressionForObjectLiteralElementLike:()=>Uie,createExpressionForPropertyName:()=>Wj,createExpressionFromEntityName:()=>Tw,createExternalHelpersImportDeclarationIfNeeded:()=>Bj,createFileDiagnostic:()=>Oc,createFileDiagnosticFromMessageChain:()=>BF,createFlowNode:()=>z_,createForOfBindingStatement:()=>Oj,createFutureSourceFile:()=>G7,createGetCanonicalFileName:()=>Fd,createGetIsolatedDeclarationErrors:()=>Yae,createGetSourceFile:()=>_H,createGetSymbolAccessibilityDiagnosticForNode:()=>l0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Xae,createGetSymbolWalker:()=>rae,createIncrementalCompilerHost:()=>J3,createIncrementalProgram:()=>Use,createJsxFactoryExpression:()=>wj,createLanguageService:()=>nue,createLanguageServiceSourceFile:()=>az,createMemberAccessForPropertyName:()=>C1,createModeAwareCache:()=>FD,createModeAwareCacheKey:()=>rP,createModeMismatchDetails:()=>cG,createModuleNotFoundChain:()=>PF,createModuleResolutionCache:()=>zD,createModuleResolutionLoader:()=>SH,createModuleResolutionLoaderUsingGlobalCache:()=>Gse,createModuleSpecifierResolutionHost:()=>p0,createMultiMap:()=>dm,createNameResolver:()=>QV,createNodeConverters:()=>Qre,createNodeFactory:()=>sw,createOptionNameMap:()=>G4,createOverload:()=>bX,createPackageJsonImportFilter:()=>aC,createPackageJsonInfo:()=>mJ,createParenthesizerRules:()=>Yre,createPatternMatcher:()=>Mce,createPrinter:()=>zb,createPrinterWithDefaults:()=>ise,createPrinterWithRemoveComments:()=>$S,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>ose,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>dH,createProgram:()=>oO,createProgramDiagnostics:()=>yse,createProgramHost:()=>QH,createPropertyNameNodeForIdentifierOrLiteral:()=>tw,createQueue:()=>g2,createRange:()=>Bf,createRedirectedBuilderProgram:()=>kH,createResolutionCache:()=>FH,createRuntimeTypeSerializer:()=>Pae,createScanner:()=>dg,createSemanticDiagnosticsBuilderProgram:()=>JAe,createSet:()=>HB,createSolutionBuilder:()=>Xse,createSolutionBuilderHost:()=>Jse,createSolutionBuilderWithWatch:()=>Yse,createSolutionBuilderWithWatchHost:()=>Kse,createSortedArray:()=>OB,createSourceFile:()=>tx,createSourceMapGenerator:()=>pae,createSourceMapSource:()=>cSe,createSuperAccessVariableStatement:()=>S3,createSymbolTable:()=>da,createSymlinkCache:()=>LV,createSyntacticTypeNodeBuilder:()=>mle,createSystemWatchFunctions:()=>wTe,createTextChange:()=>SO,createTextChangeFromStartLength:()=>b7,createTextChangeRange:()=>L2,createTextRangeFromNode:()=>Uq,createTextRangeFromSpan:()=>v7,createTextSpan:()=>Id,createTextSpanFromBounds:()=>oc,createTextSpanFromNode:()=>zu,createTextSpanFromRange:()=>_v,createTextSpanFromStringLiteralLikeContent:()=>jq,createTextWriter:()=>kk,createTokenRange:()=>yV,createTypeChecker:()=>dae,createTypeReferenceDirectiveResolutionCache:()=>r3,createTypeReferenceResolutionLoader:()=>N3,createWatchCompilerHost:()=>iIe,createWatchCompilerHostOfConfigFile:()=>ZH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>eq,createWatchFactory:()=>YH,createWatchHost:()=>XH,createWatchProgram:()=>tq,createWatchStatusReporter:()=>zH,createWriteFileMeasuringIO:()=>gH,declarationNameToString:()=>ws,decodeMappings:()=>jU,decodedTextSpanIntersectsWith:()=>P2,deduplicate:()=>dS,defaultHoverMaximumTruncationLength:()=>Ate,defaultInitCompilerOptions:()=>aEe,defaultMaximumTruncationLength:()=>GN,diagnosticCategoryName:()=>UE,diagnosticToString:()=>nE,diagnosticsEqualityComparer:()=>k6,directoryProbablyExists:()=>ch,directorySeparator:()=>Js,displayPart:()=>yp,displayPartsToString:()=>VO,disposeEmitNodes:()=>cj,documentSpansEqual:()=>eJ,dumpTracingLegend:()=>mZ,elementAt:()=>Qv,elideNodes:()=>noe,emitDetachedComments:()=>wne,emitFiles:()=>lH,emitFilesAndReportErrors:()=>j3,emitFilesAndReportErrorsAndGetExitStatus:()=>KH,emitModuleKindIsNonNodeESM:()=>Kk,emitNewLineBeforeLeadingCommentOfPosition:()=>kne,emitResolverSkipsTypeChecking:()=>sH,emitSkippedWithNoDiagnostics:()=>IH,emptyArray:()=>se,emptyFileSystemEntries:()=>xre,emptyMap:()=>_t,emptyOptions:()=>Em,endsWith:()=>nl,ensurePathIsNonModuleName:()=>HE,ensureScriptKind:()=>U6,ensureTrailingDirectorySeparator:()=>Uc,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>H8,equalOwnProperties:()=>HQ,equateStringsCaseInsensitive:()=>rb,equateStringsCaseSensitive:()=>fS,equateValues:()=>nb,escapeJsxAttributeString:()=>eV,escapeLeadingUnderscores:()=>Cl,escapeNonAsciiString:()=>f6,escapeSnippetText:()=>WS,escapeString:()=>w_,escapeTemplateSubstitution:()=>QG,evaluatorResult:()=>qc,every:()=>Hn,exclusivelyPrefixedNodeCoreModules:()=>o4,executeCommandLine:()=>WIe,expandPreOrPostfixIncrementOrDecrementExpression:()=>C4,explainFiles:()=>jH,explainIfFileIsRedirectAndImpliedFormat:()=>UH,exportAssignmentIsAlias:()=>Rk,expressionResultIsUnused:()=>Lre,extend:()=>jB,extensionFromPath:()=>AM,extensionIsTS:()=>X6,extensionsNotSupportingExtensionlessResolution:()=>K6,externalHelpersModuleNameText:()=>hb,factory:()=>L,fileExtensionIs:()=>El,fileExtensionIsOneOf:()=>$l,fileIncludeReasonToDiagnostics:()=>JH,fileShouldUseJavaScriptRequire:()=>TJ,filter:()=>Vn,filterMutate:()=>el,filterSemanticDiagnostics:()=>k3,find:()=>hn,findAncestor:()=>Dn,findBestPatternMatch:()=>$B,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>w4,findConfigFile:()=>mH,findConstructorDeclaration:()=>ow,findContainingList:()=>p7,findDiagnosticForNode:()=>gce,findFirstNonJsxWhitespaceToken:()=>Ble,findIndex:()=>so,findLast:()=>ma,findLastIndex:()=>Zs,findListItemInfo:()=>zle,findModifier:()=>nC,findNextToken:()=>tE,findPackageJson:()=>_ce,findPackageJsons:()=>fJ,findPrecedingMatchingToken:()=>g7,findPrecedingToken:()=>Bc,findSuperStatementIndexPath:()=>_3,findTokenOnLeftOfPosition:()=>RP,findUseStrictPrologue:()=>zj,first:()=>$a,firstDefined:()=>Bn,firstDefinedIterator:()=>Zn,firstIterator:()=>zB,firstOrOnly:()=>gJ,firstOrUndefined:()=>Ac,firstOrUndefinedIterator:()=>B8,fixupCompilerOptions:()=>WJ,flatMap:()=>Ki,flatMapIterator:()=>lf,flatMapToMutable:()=>ic,flatten:()=>ia,flattenCommaList:()=>ooe,flattenDestructuringAssignment:()=>w1,flattenDestructuringBinding:()=>YS,flattenDiagnosticMessageText:()=>s_,forEach:()=>$e,forEachAncestor:()=>Rte,forEachAncestorDirectory:()=>AN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>F_,forEachChild:()=>Jo,forEachChildRecursively:()=>ex,forEachDynamicImportOrRequireCall:()=>a4,forEachEmittedFile:()=>rH,forEachEnclosingBlockScopeContainer:()=>Vte,forEachEntry:()=>Hc,forEachExternalModuleToImportFrom:()=>AJ,forEachImportClauseDeclaration:()=>hne,forEachKey:()=>mg,forEachLeadingCommentRange:()=>x2,forEachNameInAccessChainWalkingLeft:()=>tre,forEachNameOfDefaultExport:()=>j7,forEachOptionsSyntaxByName:()=>ij,forEachProjectReference:()=>kM,forEachPropertyAssignment:()=>XR,forEachResolvedProjectReference:()=>nj,forEachReturnStatement:()=>vb,forEachRight:()=>Mn,forEachTrailingCommentRange:()=>R2,forEachTsConfigPropArray:()=>ak,forEachUnique:()=>nJ,forEachYieldExpression:()=>Yte,formatColorAndReset:()=>QS,formatDiagnostic:()=>yH,formatDiagnostics:()=>TAe,formatDiagnosticsWithColorAndContext:()=>mse,formatGeneratedName:()=>r0,formatGeneratedNamePart:()=>kD,formatLocation:()=>vH,formatMessage:()=>MI,formatStringFromArgs:()=>Tg,formatting:()=>Nc,generateDjb2Hash:()=>S2,generateTSConfig:()=>Doe,getAdjustedReferenceLocation:()=>wq,getAdjustedRenameLocation:()=>m7,getAliasDeclarationFromName:()=>VG,getAllAccessorDeclarations:()=>PS,getAllDecoratorsOfClass:()=>KU,getAllDecoratorsOfClassElement:()=>y3,getAllJSDocTags:()=>fF,getAllJSDocTagsOfKind:()=>p0e,getAllKeys:()=>fTe,getAllProjectOutputs:()=>E3,getAllSuperTypeNodes:()=>rM,getAllowImportingTsExtensions:()=>lre,getAllowJSCompilerOption:()=>xb,getAllowSyntheticDefaultImports:()=>PI,getAncestor:()=>VT,getAnyExtensionFromPath:()=>nI,getAreDeclarationMapsEnabled:()=>w6,getAssignedExpandoInitializer:()=>_I,getAssignedName:()=>dF,getAssignmentDeclarationKind:()=>ac,getAssignmentDeclarationPropertyAccessKind:()=>yk,getAssignmentTargetKind:()=>bb,getAutomaticTypeDirectiveNames:()=>t3,getBaseFileName:()=>Ic,getBinaryOperatorPrecedence:()=>Mk,getBuildInfo:()=>cH,getBuildInfoFileVersionMap:()=>LH,getBuildInfoText:()=>nse,getBuildOrderFromAnyBuildOrder:()=>dO,getBuilderCreationParameters:()=>F3,getBuilderFileEmit:()=>Bb,getCanonicalDiagnostic:()=>Jte,getCheckFlags:()=>Wl,getClassExtendsHeritageElement:()=>DS,getClassLikeDeclarationOfSymbol:()=>dy,getCombinedLocalAndExportSymbolFlags:()=>cD,getCombinedModifierFlags:()=>PT,getCombinedNodeFlags:()=>ny,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>W9,getCommentRange:()=>e_,getCommonSourceDirectory:()=>gP,getCommonSourceDirectoryOfConfig:()=>O1,getCompilerOptionValue:()=>F6,getConditions:()=>Ob,getConfigFileParsingDiagnostics:()=>ZS,getConstantValue:()=>rie,getContainerFlags:()=>DU,getContainerNode:()=>z1,getContainingClass:()=>hd,getContainingClassExcludingClassDecorators:()=>KF,getContainingClassStaticBlock:()=>ine,getContainingFunction:()=>df,getContainingFunctionDeclaration:()=>rne,getContainingFunctionOrClassStaticBlock:()=>JF,getContainingNodeArray:()=>kre,getContainingObjectLiteralElement:()=>jO,getContextualTypeFromParent:()=>C7,getContextualTypeFromParentOrAncestorTypeNode:()=>f7,getDeclarationDiagnostics:()=>$ae,getDeclarationEmitExtensionForPath:()=>_6,getDeclarationEmitOutputFilePath:()=>Nne,getDeclarationEmitOutputFilePathWorker:()=>h6,getDeclarationFileExtension:()=>W4,getDeclarationFromName:()=>nM,getDeclarationModifierFlagsFromSymbol:()=>Vf,getDeclarationOfKind:()=>ll,getDeclarationsOfKind:()=>Ite,getDeclaredExpandoInitializer:()=>QN,getDecorators:()=>lb,getDefaultCompilerOptions:()=>oz,getDefaultFormatCodeSettings:()=>r7,getDefaultLibFileName:()=>C2,getDefaultLibFilePath:()=>rue,getDefaultLikeExportInfo:()=>V7,getDefaultLikeExportNameFromDeclaration:()=>yJ,getDefaultResolutionModeForFileWorker:()=>L3,getDiagnosticText:()=>rp,getDiagnosticsWithinSpan:()=>yce,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>WH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>zse,getDocumentPositionMapper:()=>PJ,getDocumentSpansEqualityComparer:()=>tJ,getESModuleInterop:()=>Qh,getEditsForFileRename:()=>Dce,getEffectiveBaseTypeNode:()=>lh,getEffectiveConstraintOfTypeParameter:()=>WR,getEffectiveContainerForJSDocTemplateTag:()=>a6,getEffectiveImplementsTypeNodes:()=>nD,getEffectiveInitializer:()=>hk,getEffectiveJSDocHost:()=>GT,getEffectiveModifierFlags:()=>Gd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zne,getEffectiveModifierFlagsNoCache:()=>Bne,getEffectiveReturnTypeNode:()=>kp,getEffectiveSetAccessorTypeAnnotationNode:()=>lV,getEffectiveTypeAnnotationNode:()=>xc,getEffectiveTypeParameterDeclarations:()=>cb,getEffectiveTypeRoots:()=>nP,getElementOrPropertyAccessArgumentExpressionOrName:()=>o6,getElementOrPropertyAccessName:()=>oy,getElementsOfBindingOrAssignmentPattern:()=>LD,getEmitDeclarations:()=>_p,getEmitFlags:()=>Qa,getEmitHelpers:()=>dj,getEmitModuleDetectionKind:()=>cre,getEmitModuleFormatOfFileWorker:()=>TP,getEmitModuleKind:()=>bu,getEmitModuleResolutionKind:()=>iu,getEmitScriptTarget:()=>Ga,getEmitStandardClassFields:()=>MV,getEnclosingBlockScopeContainer:()=>sh,getEnclosingContainer:()=>zF,getEncodedSemanticClassifications:()=>IJ,getEncodedSyntacticClassifications:()=>xJ,getEndLinePosition:()=>Y2,getEntityNameFromTypeNode:()=>ck,getEntrypointsFromPackageJsonInfo:()=>EU,getErrorCountForSummary:()=>G3,getErrorSpanForNode:()=>n1,getErrorSummaryText:()=>GH,getEscapedTextOfIdentifierOrLiteral:()=>aM,getEscapedTextOfJsxAttributeName:()=>PM,getEscapedTextOfJsxNamespacedName:()=>OI,getExpandoInitializer:()=>zT,getExportAssignmentExpression:()=>jG,getExportInfoMap:()=>wO,getExportNeedsImportStarHelper:()=>yae,getExpressionAssociativity:()=>YG,getExpressionPrecedence:()=>lM,getExternalHelpersModuleName:()=>Ew,getExternalModuleImportEqualsDeclarationExpression:()=>XN,getExternalModuleName:()=>yI,getExternalModuleNameFromDeclaration:()=>Dne,getExternalModuleNameFromPath:()=>rV,getExternalModuleNameLiteral:()=>ZI,getExternalModuleRequireArgument:()=>PG,getFallbackOptions:()=>nO,getFileEmitOutput:()=>vse,getFileMatcherPatterns:()=>j6,getFileNamesFromConfigSpecs:()=>eP,getFileWatcherEventKind:()=>E9,getFilesInErrorForSummary:()=>V3,getFirstConstructorWithBody:()=>vg,getFirstIdentifier:()=>Lu,getFirstNonSpaceCharacterPosition:()=>dce,getFirstProjectOutput:()=>aH,getFixableErrorSpanExpression:()=>hJ,getFormatCodeSettingsForWriting:()=>z7,getFullWidth:()=>K2,getFunctionFlags:()=>dc,getHeritageClause:()=>Dk,getHostSignatureFromJSDoc:()=>BT,getIdentifierAutoGenerate:()=>pSe,getIdentifierGeneratedImportReference:()=>cie,getIdentifierTypeArguments:()=>g1,getImmediatelyInvokedFunctionExpression:()=>WT,getImpliedNodeFormatForEmitWorker:()=>W1,getImpliedNodeFormatForFile:()=>iO,getImpliedNodeFormatForFileWorker:()=>P3,getImportNeedsImportDefaultHelper:()=>HU,getImportNeedsImportStarHelper:()=>m3,getIndentString:()=>m6,getInferredLibraryNameResolveFrom:()=>M3,getInitializedVariables:()=>_M,getInitializerOfBinaryExpression:()=>OG,getInitializerOfBindingOrAssignmentElement:()=>Iw,getInterfaceBaseTypeNodes:()=>iM,getInternalEmitFlags:()=>zm,getInvokedExpression:()=>$F,getIsFileExcluded:()=>Ece,getIsolatedModules:()=>vm,getJSDocAugmentsTag:()=>Kee,getJSDocClassTag:()=>B9,getJSDocCommentRanges:()=>RG,getJSDocCommentsAndTags:()=>WG,getJSDocDeprecatedTag:()=>G9,getJSDocDeprecatedTagNoCache:()=>tte,getJSDocEnumTag:()=>V9,getJSDocHost:()=>xS,getJSDocImplementsTags:()=>Xee,getJSDocOverloadTags:()=>zG,getJSDocOverrideTagNoCache:()=>ete,getJSDocParameterTags:()=>OR,getJSDocParameterTagsNoCache:()=>Uee,getJSDocPrivateTag:()=>l0e,getJSDocPrivateTagNoCache:()=>$ee,getJSDocProtectedTag:()=>c0e,getJSDocProtectedTagNoCache:()=>Qee,getJSDocPublicTag:()=>s0e,getJSDocPublicTagNoCache:()=>Yee,getJSDocReadonlyTag:()=>d0e,getJSDocReadonlyTagNoCache:()=>Zee,getJSDocReturnTag:()=>nte,getJSDocReturnType:()=>w2,getJSDocRoot:()=>tD,getJSDocSatisfiesExpressionType:()=>XV,getJSDocSatisfiesTag:()=>j9,getJSDocTags:()=>kT,getJSDocTemplateTag:()=>u0e,getJSDocThisTag:()=>uF,getJSDocType:()=>$y,getJSDocTypeAliasName:()=>Vj,getJSDocTypeAssertionType:()=>MD,getJSDocTypeParameterDeclarations:()=>T6,getJSDocTypeParameterTags:()=>Hee,getJSDocTypeParameterTagsNoCache:()=>qee,getJSDocTypeTag:()=>LT,getJSXImplicitImportBase:()=>Xk,getJSXRuntimeImport:()=>B6,getJSXTransformEnabled:()=>z6,getKeyForCompilerOptions:()=>yU,getLanguageVariant:()=>jk,getLastChild:()=>AV,getLeadingCommentRanges:()=>cg,getLeadingCommentRangesOfNode:()=>xG,getLeftmostAccessExpression:()=>dD,getLeftmostExpression:()=>uD,getLibFileNameFromLibReference:()=>tj,getLibNameFromLibReference:()=>ej,getLibraryNameFromLibFileName:()=>EH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>VU,getLineOfLocalPosition:()=>dM,getLineStartPositionForPosition:()=>Am,getLineStarts:()=>sg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ne,getLinesBetweenPositions:()=>xN,getLinesBetweenRangeEndAndRangeStart:()=>vV,getLinesBetweenRangeEndPositions:()=>G0e,getLiteralText:()=>wte,getLocalNameForExternalImport:()=>PD,getLocalSymbolForExportDefault:()=>mM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>cO,getMappedContextSpan:()=>rJ,getMappedDocumentSpan:()=>x7,getMappedLocation:()=>MP,getMatchedFileSpec:()=>HH,getMatchedIncludeSpec:()=>qH,getMeaningFromDeclaration:()=>o7,getMeaningFromLocation:()=>F1,getMembersOfDeclaration:()=>$te,getModeForFileReference:()=>hse,getModeForResolutionAtIndex:()=>RAe,getModeForUsageLocation:()=>TH,getModifiedTime:()=>tI,getModifiers:()=>hS,getModuleInstanceState:()=>hy,getModuleNameStringLiteralAt:()=>aO,getModuleSpecifierEndingPreference:()=>Ere,getModuleSpecifierResolverHost:()=>Kq,getNameForExportedSymbol:()=>O7,getNameFromImportAttribute:()=>n4,getNameFromIndexInfo:()=>jte,getNameFromPropertyName:()=>AO,getNameOfAccessExpression:()=>xV,getNameOfCompilerOptionValue:()=>q4,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>LG,getNameOfJSDocTypedef:()=>jee,getNameOfScriptTarget:()=>W6,getNameOrArgument:()=>gk,getNameTable:()=>lK,getNamespaceDeclarationNode:()=>ZR,getNewLineCharacter:()=>iv,getNewLineKind:()=>kO,getNewLineOrDefaultFromHost:()=>gy,getNewTargetContainer:()=>ane,getNextJSDocCommentLocation:()=>FG,getNodeChildren:()=>Lj,getNodeForGeneratedName:()=>Rw,getNodeId:()=>ls,getNodeKind:()=>eE,getNodeModifiers:()=>DP,getNodeModulePathParts:()=>Z6,getNonAssignedNameOfDeclaration:()=>cF,getNonAssignmentOperatorForCompoundAssignment:()=>dP,getNonAugmentationDeclaration:()=>vG,getNonDecoratorTokenPosOfNode:()=>fG,getNonIncrementalBuildInfoRoots:()=>kse,getNonModifierTokenPosOfNode:()=>Lte,getNormalizedAbsolutePath:()=>So,getNormalizedAbsolutePathWithoutRoot:()=>R9,getNormalizedPathComponents:()=>tF,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>$G,getOperatorPrecedence:()=>Nk,getOptionFromName:()=>iU,getOptionsForLibraryResolution:()=>vU,getOptionsNameMap:()=>OD,getOptionsSyntaxByArrayElementValue:()=>rj,getOptionsSyntaxByValue:()=>qre,getOrCreateEmitNode:()=>jd,getOrUpdate:()=>KA,getOriginalNode:()=>yl,getOriginalNodeId:()=>Fu,getOutputDeclarationFileName:()=>_P,getOutputDeclarationFileNameWorker:()=>iH,getOutputExtension:()=>Zw,getOutputFileNames:()=>vAe,getOutputJSFileNameWorker:()=>oH,getOutputPathsFor:()=>hP,getOwnEmitOutputFilePath:()=>Cne,getOwnKeys:()=>Fh,getOwnValues:()=>$A,getPackageJsonTypesVersionsPaths:()=>e3,getPackageNameFromTypesPackageName:()=>aP,getPackageScopeForPath:()=>oP,getParameterSymbolFromJSDoc:()=>Ak,getParentNodeInSpan:()=>xO,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>Lw,getPathComponents:()=>zd,getPathFromPathComponents:()=>MT,getPathUpdater:()=>CJ,getPathsBasePath:()=>g6,getPatternFromSpec:()=>OV,getPendingEmitKindWithSeen:()=>W3,getPositionOfLineAndCharacter:()=>A2,getPossibleGenericSignatures:()=>Wq,getPossibleOriginalInputExtensionForExtension:()=>iV,getPossibleOriginalInputPathWithoutChangingExt:()=>oV,getPossibleTypeArgumentsInfo:()=>Fq,getPreEmitDiagnostics:()=>bAe,getPrecedingNonSpaceCharacterPosition:()=>R7,getPrivateIdentifier:()=>XU,getProperties:()=>JU,getProperty:()=>h2,getPropertyAssignmentAliasLikeExpression:()=>Sne,getPropertyNameForPropertyNameNode:()=>d1,getPropertyNameFromType:()=>Uf,getPropertyNameOfBindingOrAssignmentElement:()=>Gj,getPropertySymbolFromBindingElement:()=>I7,getPropertySymbolsFromContextualType:()=>sz,getQuoteFromPreference:()=>Yq,getQuotePreference:()=>Gp,getRangesWhere:()=>wB,getRefactorContextSpan:()=>mx,getReferencedFileLocation:()=>bP,getRegexFromPattern:()=>ov,getRegularExpressionForWildcard:()=>TM,getRegularExpressionsForWildcards:()=>G6,getRelativePathFromDirectory:()=>cf,getRelativePathFromFile:()=>MR,getRelativePathToDirectoryOrUrl:()=>PR,getRenameLocation:()=>DO,getReplacementSpanForContextToken:()=>Vq,getResolutionDiagnostic:()=>RH,getResolutionModeOverride:()=>HD,getResolveJsonModule:()=>kS,getResolvePackageJsonExports:()=>Hk,getResolvePackageJsonImports:()=>qk,getResolvedExternalModuleName:()=>nV,getResolvedModuleFromResolution:()=>pI,getResolvedTypeReferenceDirectiveFromResolution:()=>MF,getRestIndicatorOfBindingOrAssignmentElement:()=>P4,getRestParameterElementType:()=>DG,getRightMostAssignedExpression:()=>_k,getRootDeclaration:()=>Kh,getRootDirectoryOfResolutionCache:()=>Bse,getRootLength:()=>Bh,getScriptKind:()=>sJ,getScriptKindFromFileName:()=>H6,getScriptTargetFeatures:()=>mG,getSelectedEffectiveModifierFlags:()=>AI,getSelectedSyntacticModifierFlags:()=>Wne,getSemanticClassifications:()=>Ace,getSemanticJsxChildren:()=>iD,getSetAccessorTypeAnnotationNode:()=>Pne,getSetAccessorValueParameter:()=>uM,getSetExternalModuleIndicator:()=>Uk,getShebang:()=>sF,getSingleVariableOfVariableStatement:()=>TI,getSnapshotText:()=>fx,getSnippetElement:()=>uj,getSourceFileOfModule:()=>X2,getSourceFileOfNode:()=>Fn,getSourceFilePathInNewDir:()=>v6,getSourceFileVersionAsHashFromText:()=>U3,getSourceFilesToEmit:()=>y6,getSourceMapRange:()=>lv,getSourceMapper:()=>Bce,getSourceTextOfNodeFromSourceFile:()=>bS,getSpanOfTokenAtPosition:()=>Uh,getSpellingSuggestion:()=>mS,getStartPositionOfLine:()=>_b,getStartPositionOfRange:()=>hM,getStartsOnNewLine:()=>wM,getStaticPropertiesAndClassStaticBlock:()=>g3,getStrictOptionValue:()=>Vd,getStringComparer:()=>xR,getSubPatternFromSpec:()=>V6,getSuperCallFromStatement:()=>h3,getSuperContainer:()=>sk,getSupportedCodeFixes:()=>aK,getSupportedExtensions:()=>SM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>$k,getSwitchedType:()=>dJ,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>Ck,getSymbolTarget:()=>lJ,getSyntacticClassifications:()=>Ice,getSyntacticModifierFlags:()=>nv,getSyntacticModifierFlagsNoCache:()=>uV,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>aw,getSynthesizedDeepClones:()=>FS,getSynthesizedDeepClonesWithReplacements:()=>oj,getSyntheticLeadingComments:()=>gD,getSyntheticTrailingComments:()=>uw,getTargetLabel:()=>l7,getTargetOfBindingOrAssignmentElement:()=>kb,getTemporaryModuleResolutionState:()=>iP,getTextOfConstantValue:()=>Ote,getTextOfIdentifierOrLiteral:()=>zf,getTextOfJSDocComment:()=>O2,getTextOfJsxAttributeName:()=>iw,getTextOfJsxNamespacedName:()=>LM,getTextOfNode:()=>Al,getTextOfNodeFromSourceText:()=>jN,getTextOfPropertyName:()=>hI,getThisContainer:()=>vu,getThisParameter:()=>NS,getTokenAtPosition:()=>Fi,getTokenPosOfNode:()=>gb,getTokenSourceMapRange:()=>dSe,getTouchingPropertyName:()=>ip,getTouchingToken:()=>eC,getTrailingCommentRanges:()=>sb,getTrailingSemicolonDeferringWriter:()=>tV,getTransformers:()=>Zae,getTsBuildInfoEmitOutputFilePath:()=>c0,getTsConfigObjectLiteralExpression:()=>JN,getTsConfigPropArrayElementValue:()=>qF,getTypeAnnotationNode:()=>Lne,getTypeArgumentOrTypeParameterList:()=>Jle,getTypeKeywordOfTypeOnlyImport:()=>Zq,getTypeNode:()=>sie,getTypeNodeIfAccessible:()=>OP,getTypeParameterFromJsDoc:()=>_ne,getTypeParameterOwner:()=>r0e,getTypesPackageName:()=>s3,getUILocale:()=>YQ,getUniqueName:()=>G1,getUniqueSymbolId:()=>cce,getUseDefineForClassFields:()=>Jk,getWatchErrorSummaryDiagnosticMessage:()=>BH,getWatchFactory:()=>fH,group:()=>IR,groupBy:()=>VB,guessIndentation:()=>Ste,handleNoEmitOptions:()=>xH,handleWatchOptionsConfigDirTemplateSubstitution:()=>K4,hasAbstractModifier:()=>LS,hasAccessorModifier:()=>Xh,hasAmbientModifier:()=>dV,hasChangesInResolutions:()=>dG,hasContextSensitiveParameters:()=>Q6,hasDecorators:()=>pf,hasDocComment:()=>Hle,hasDynamicName:()=>ay,hasEffectiveModifier:()=>wp,hasEffectiveModifiers:()=>cV,hasEffectiveReadonlyModifier:()=>p1,hasExtension:()=>NR,hasImplementationTSFileExtension:()=>Tre,hasIndexSignature:()=>cJ,hasInferredType:()=>i4,hasInitializer:()=>Zy,hasInvalidEscape:()=>ZG,hasJSDocNodes:()=>ef,hasJSDocParameterTags:()=>Jee,hasJSFileExtension:()=>Sg,hasJsonModuleEmitEnabled:()=>O6,hasOnlyExpressionInitializer:()=>e1,hasOverrideModifier:()=>S6,hasPossibleExternalModuleReference:()=>Gte,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>_O,hasQuestionToken:()=>vI,hasRecordedExternalHelpers:()=>Jie,hasResolutionModeOverride:()=>zre,hasRestParameter:()=>oG,hasScopeMarker:()=>fte,hasStaticModifier:()=>wc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>One,hasTSFileExtension:()=>m1,hasTabstop:()=>Ore,hasTrailingDirectorySeparator:()=>ob,hasType:()=>xF,hasTypeArguments:()=>M0e,hasZeroOrOneAsteriskCharacter:()=>PV,hostGetCanonicalFileName:()=>sy,hostUsesCaseSensitiveFileNames:()=>u1,idText:()=>Kr,identifierIsThisKeyword:()=>sV,identifierToKeywordKind:()=>KE,identity:()=>Vs,identitySourceMapConsumer:()=>UU,ignoreSourceNewlines:()=>fj,ignoredPaths:()=>$8,importFromModuleSpecifier:()=>eM,importSyntaxAffectsModuleResolution:()=>NV,indexOfAnyCharCode:()=>Li,indexOfNode:()=>UR,indicesOf:()=>z8,inferredTypesContainingFile:()=>vP,injectClassNamedEvaluationHelperBlockIfMissing:()=>T3,injectClassThisAssignmentIfMissing:()=>xae,insertImports:()=>Qq,insertSorted:()=>$v,insertStatementAfterCustomPrologue:()=>t1,insertStatementAfterStandardPrologue:()=>A0e,insertStatementsAfterCustomPrologue:()=>uG,insertStatementsAfterStandardPrologue:()=>hg,intersperse:()=>To,intrinsicTagNameToString:()=>YV,introducesArgumentsExoticObject:()=>ene,inverseJsxOptionMap:()=>Mw,isAbstractConstructorSymbol:()=>Zne,isAbstractModifier:()=>vie,isAccessExpression:()=>Ks,isAccessibilityModifier:()=>Bq,isAccessor:()=>fb,isAccessorModifier:()=>vj,isAliasableExpression:()=>s6,isAmbientModule:()=>yu,isAmbientPropertyDeclaration:()=>TG,isAnyDirectorySeparator:()=>A9,isAnyImportOrBareOrAccessedRequire:()=>zte,isAnyImportOrReExport:()=>Z2,isAnyImportOrRequireStatement:()=>Bte,isAnyImportSyntax:()=>mI,isAnySupportedFileExtension:()=>tSe,isApplicableVersionedTypesKey:()=>Gw,isArgumentExpressionOfElementAccess:()=>Cq,isArray:()=>Mo,isArrayBindingElement:()=>bF,isArrayBindingOrAssignmentElement:()=>V2,isArrayBindingOrAssignmentPattern:()=>Z9,isArrayBindingPattern:()=>pv,isArrayLiteralExpression:()=>Cd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>hv,isArrayTypeNode:()=>hw,isArrowFunction:()=>Xs,isAsExpression:()=>SD,isAssertClause:()=>Rie,isAssertEntry:()=>TSe,isAssertionExpression:()=>vS,isAssertsKeyword:()=>gie,isAssignmentDeclaration:()=>$N,isAssignmentExpression:()=>id,isAssignmentOperator:()=>ly,isAssignmentPattern:()=>zN,isAssignmentTarget:()=>Tb,isAsteriskToken:()=>fw,isAsyncFunction:()=>oM,isAsyncModifier:()=>FM,isAutoAccessorPropertyDeclaration:()=>Yu,isAwaitExpression:()=>Pb,isAwaitKeyword:()=>yj,isBigIntLiteral:()=>yD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>wk,isBinaryOperatorToken:()=>toe,isBindableObjectDefinePropertyCall:()=>a1,isBindableStaticAccessExpression:()=>IS,isBindableStaticElementAccessExpression:()=>i6,isBindableStaticNameExpression:()=>s1,isBindingElement:()=>Ha,isBindingElementOfBareOrAccessedRequire:()=>cne,isBindingName:()=>QE,isBindingOrAssignmentElement:()=>cte,isBindingOrAssignmentPattern:()=>B2,isBindingPattern:()=>Qo,isBlock:()=>ea,isBlockLike:()=>hx,isBlockOrCatchScoped:()=>hG,isBlockScope:()=>SG,isBlockScopedContainerTopLevel:()=>Fte,isBooleanLiteral:()=>FN,isBreakOrContinueStatement:()=>kN,isBreakStatement:()=>ySe,isBuildCommand:()=>lle,isBuildInfoFile:()=>ese,isBuilderProgram:()=>VH,isBundle:()=>Mie,isCallChain:()=>XE,isCallExpression:()=>Zo,isCallExpressionTarget:()=>Eq,isCallLikeExpression:()=>yS,isCallLikeOrFunctionLikeExpression:()=>eG,isCallOrNewExpression:()=>Vh,isCallOrNewExpressionTarget:()=>Aq,isCallSignatureDeclaration:()=>UI,isCallToHelper:()=>WM,isCaseBlock:()=>HM,isCaseClause:()=>xD,isCaseKeyword:()=>Tie,isCaseOrDefaultClause:()=>AF,isCatchClause:()=>HS,isCatchClauseVariableDeclaration:()=>wre,isCatchClauseVariableDeclarationOrBindingElement:()=>_G,isCheckJsEnabledForFile:()=>IM,isCircularBuildOrder:()=>ux,isClassDeclaration:()=>Dc,isClassElement:()=>bc,isClassExpression:()=>uc,isClassInstanceProperty:()=>ste,isClassLike:()=>ui,isClassMemberModifier:()=>Y9,isClassNamedEvaluationHelperBlock:()=>lx,isClassOrTypeElement:()=>vF,isClassStaticBlockDeclaration:()=>Ql,isClassThisAssignmentBlock:()=>pP,isColonToken:()=>hie,isCommaExpression:()=>Sw,isCommaListExpression:()=>jM,isCommaSequence:()=>YM,isCommaToken:()=>mie,isComment:()=>y7,isCommonJsExportPropertyAssignment:()=>UF,isCommonJsExportedExpression:()=>Qte,isCompoundAssignment:()=>cP,isComputedNonLiteralName:()=>ek,isComputedPropertyName:()=>va,isConciseBody:()=>SF,isConditionalExpression:()=>S1,isConditionalTypeNode:()=>BS,isConstAssertion:()=>$V,isConstTypeReference:()=>Wm,isConstructSignatureDeclaration:()=>GM,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>vD,isContextualKeyword:()=>c6,isContinueStatement:()=>gSe,isCustomPrologue:()=>ok,isDebuggerStatement:()=>vSe,isDeclaration:()=>rd,isDeclarationBindingElement:()=>z2,isDeclarationFileName:()=>ad,isDeclarationName:()=>k_,isDeclarationNameOfEnumOrNamespace:()=>TV,isDeclarationReadonly:()=>nk,isDeclarationStatement:()=>gte,isDeclarationWithTypeParameterChildren:()=>AG,isDeclarationWithTypeParameters:()=>EG,isDecorator:()=>Wc,isDecoratorTarget:()=>kle,isDefaultClause:()=>qM,isDefaultImport:()=>l1,isDefaultModifier:()=>_4,isDefaultedExpandoInitializer:()=>dne,isDeleteExpression:()=>Eie,isDeleteTarget:()=>GG,isDeprecatedDeclaration:()=>W7,isDestructuringAssignment:()=>rv,isDiskPathRoot:()=>I9,isDoStatement:()=>_Se,isDocumentRegistryEntry:()=>OO,isDotDotDotToken:()=>m4,isDottedName:()=>Wk,isDynamicName:()=>u6,isEffectiveExternalModule:()=>HR,isEffectiveStrictModeSourceFile:()=>bG,isElementAccessChain:()=>U9,isElementAccessExpression:()=>Ws,isEmittedFileOfProgram:()=>sse,isEmptyArrayLiteral:()=>Une,isEmptyBindingElement:()=>Bee,isEmptyBindingPattern:()=>zee,isEmptyObjectLiteral:()=>_V,isEmptyStatement:()=>Sj,isEmptyStringLiteral:()=>MG,isEntityName:()=>Mu,isEntityNameExpression:()=>Ds,isEnumConst:()=>OT,isEnumDeclaration:()=>ZT,isEnumMember:()=>fy,isEqualityOperatorKind:()=>N7,isEqualsGreaterThanToken:()=>_ie,isExclamationToken:()=>mw,isExcludedFile:()=>Noe,isExclusivelyTypeOnlyImportOrExport:()=>bH,isExpandoPropertyDeclaration:()=>WI,isExportAssignment:()=>dl,isExportDeclaration:()=>fc,isExportModifier:()=>VI,isExportName:()=>N4,isExportNamespaceAsDefaultDeclaration:()=>OF,isExportOrDefaultModifier:()=>xw,isExportSpecifier:()=>ou,isExportsIdentifier:()=>o1,isExportsOrModuleExportsOrAlias:()=>KS,isExpression:()=>St,isExpressionNode:()=>L_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Wle,isExpressionOfOptionalChainRoot:()=>hF,isExpressionStatement:()=>od,isExpressionWithTypeArguments:()=>uy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>A6,isExternalModule:()=>zc,isExternalModuleAugmentation:()=>SS,isExternalModuleImportEqualsDeclaration:()=>FT,isExternalModuleIndicator:()=>U2,isExternalModuleNameRelative:()=>td,isExternalModuleReference:()=>py,isExternalModuleSymbol:()=>dI,isExternalOrCommonJsModule:()=>Pp,isFileLevelReservedGeneratedIdentifier:()=>F2,isFileLevelUniqueName:()=>kF,isFileProbablyExternalModule:()=>Cw,isFirstDeclarationOfSymbolParameter:()=>iJ,isFixablePromiseHandler:()=>wJ,isForInOrOfStatement:()=>ZE,isForInStatement:()=>T4,isForInitializer:()=>Of,isForOfStatement:()=>gw,isForStatement:()=>QT,isFullSourceFile:()=>gg,isFunctionBlock:()=>ES,isFunctionBody:()=>nG,isFunctionDeclaration:()=>Zl,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Rb,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ms,isFunctionLikeKind:()=>aI,isFunctionLikeOrClassStaticBlockDeclaration:()=>BR,isFunctionOrConstructorTypeNode:()=>lte,isFunctionOrModuleBlock:()=>$9,isFunctionSymbol:()=>fne,isFunctionTypeNode:()=>O_,isGeneratedIdentifier:()=>fl,isGeneratedPrivateIdentifier:()=>$E,isGetAccessor:()=>pg,isGetAccessorDeclaration:()=>Hf,isGetOrSetAccessorDeclaration:()=>W2,isGlobalScopeAugmentation:()=>P_,isGlobalSourceFile:()=>ev,isGrammarError:()=>Mte,isHeritageClause:()=>Fp,isHoistedFunction:()=>VF,isHoistedVariableStatement:()=>jF,isIdentifier:()=>He,isIdentifierANonContextualKeyword:()=>qG,isIdentifierName:()=>Tne,isIdentifierOrThisTypeNode:()=>$ie,isIdentifierPart:()=>ty,isIdentifierStart:()=>D_,isIdentifierText:()=>fp,isIdentifierTypePredicate:()=>tne,isIdentifierTypeReference:()=>Nre,isIfStatement:()=>$T,isIgnoredFileFromWildCardWatching:()=>tO,isImplicitGlob:()=>wV,isImportAttribute:()=>Die,isImportAttributeName:()=>ate,isImportAttributes:()=>I1,isImportCall:()=>Qu,isImportClause:()=>jm,isImportDeclaration:()=>vl,isImportEqualsDeclaration:()=>Fc,isImportKeyword:()=>BM,isImportMeta:()=>KR,isImportOrExportSpecifier:()=>ub,isImportOrExportSpecifierName:()=>lce,isImportSpecifier:()=>Eu,isImportTypeAssertionContainer:()=>bSe,isImportTypeNode:()=>t_,isImportable:()=>EJ,isInComment:()=>mv,isInCompoundLikeAssignment:()=>BG,isInExpressionContext:()=>QF,isInJSDoc:()=>YN,isInJSFile:()=>Ir,isInJSXText:()=>Ule,isInJsonFile:()=>e6,isInNonReferenceComment:()=>Yle,isInReferenceComment:()=>Xle,isInRightSideOfInternalImportEqualsDeclaration:()=>a7,isInString:()=>px,isInTemplateString:()=>Oq,isInTopLevelContext:()=>XF,isInTypeQuery:()=>EI,isIncrementalBuildInfo:()=>sO,isIncrementalBundleEmitBuildInfo:()=>Dse,isIncrementalCompilation:()=>wS,isIndexSignatureDeclaration:()=>Mb,isIndexedAccessTypeNode:()=>GS,isInferTypeNode:()=>v1,isInfinityOrNaNString:()=>NM,isInitializedProperty:()=>Hw,isInitializedVariable:()=>Vk,isInsideJsxElement:()=>_7,isInsideJsxElementOrAttribute:()=>jle,isInsideNodeModules:()=>MO,isInsideTemplateLiteral:()=>TO,isInstanceOfExpression:()=>I6,isInstantiatedModule:()=>WU,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>Ete,isInternalModuleImportEqualsDeclaration:()=>i1,isInternalName:()=>Fj,isIntersectionTypeNode:()=>JI,isIntrinsicJsxName:()=>oD,isIterationStatement:()=>mb,isJSDoc:()=>mh,isJSDocAllType:()=>kie,isJSDocAugmentsTag:()=>QI,isJSDocAuthorTag:()=>ISe,isJSDocCallbackTag:()=>xj,isJSDocClassTag:()=>Oie,isJSDocCommentContainingNode:()=>IF,isJSDocConstructSignature:()=>bI,isJSDocDeprecatedTag:()=>Mj,isJSDocEnumTag:()=>vw,isJSDocFunctionType:()=>DD,isJSDocImplementsTag:()=>R4,isJSDocImportTag:()=>a_,isJSDocIndexSignature:()=>n6,isJSDocLikeText:()=>Jj,isJSDocLink:()=>Pie,isJSDocLinkCode:()=>Lie,isJSDocLinkLike:()=>cI,isJSDocLinkPlain:()=>ESe,isJSDocMemberName:()=>n0,isJSDocNameReference:()=>JM,isJSDocNamepathType:()=>ASe,isJSDocNamespaceBody:()=>g0e,isJSDocNode:()=>GR,isJSDocNonNullableType:()=>E4,isJSDocNullableType:()=>RD,isJSDocOptionalParameter:()=>e4,isJSDocOptionalType:()=>Ij,isJSDocOverloadTag:()=>CD,isJSDocOverrideTag:()=>I4,isJSDocParameterTag:()=>mf,isJSDocPrivateTag:()=>Dj,isJSDocPropertyLikeTag:()=>wN,isJSDocPropertyTag:()=>Wie,isJSDocProtectedTag:()=>Cj,isJSDocPublicTag:()=>Rj,isJSDocReadonlyTag:()=>Nj,isJSDocReturnTag:()=>x4,isJSDocSatisfiesExpression:()=>KV,isJSDocSatisfiesTag:()=>D4,isJSDocSeeTag:()=>xSe,isJSDocSignature:()=>fv,isJSDocTag:()=>VR,isJSDocTemplateTag:()=>Tm,isJSDocThisTag:()=>Pj,isJSDocThrowsTag:()=>DSe,isJSDocTypeAlias:()=>_m,isJSDocTypeAssertion:()=>qS,isJSDocTypeExpression:()=>t0,isJSDocTypeLiteral:()=>R1,isJSDocTypeTag:()=>KM,isJSDocTypedefTag:()=>D1,isJSDocUnknownTag:()=>RSe,isJSDocUnknownType:()=>wie,isJSDocVariadicType:()=>A4,isJSXTagName:()=>$R,isJsonEqual:()=>Y6,isJsonSourceFile:()=>Ff,isJsxAttribute:()=>o_,isJsxAttributeLike:()=>EF,isJsxAttributeName:()=>Fre,isJsxAttributes:()=>US,isJsxCallLike:()=>Tte,isJsxChild:()=>J2,isJsxClosingElement:()=>jS,isJsxClosingFragment:()=>Nie,isJsxElement:()=>i_,isJsxExpression:()=>ID,isJsxFragment:()=>e0,isJsxNamespacedName:()=>fh,isJsxOpeningElement:()=>ph,isJsxOpeningFragment:()=>Um,isJsxOpeningLikeElement:()=>ru,isJsxOpeningLikeElementTagName:()=>wle,isJsxSelfClosingElement:()=>x1,isJsxSpreadAttribute:()=>$I,isJsxTagNameExpression:()=>BN,isJsxText:()=>BI,isJumpStatementTarget:()=>gO,isKeyword:()=>ep,isKeywordOrPunctuation:()=>l6,isKnownSymbol:()=>sM,isLabelName:()=>Rq,isLabelOfLabeledStatement:()=>xq,isLabeledStatement:()=>Lb,isLateVisibilityPaintedStatement:()=>FF,isLeftHandSideExpression:()=>$u,isLet:()=>GF,isLineBreak:()=>eu,isLiteralComputedPropertyDeclarationName:()=>xk,isLiteralExpression:()=>YE,isLiteralExpressionOfObject:()=>K9,isLiteralImportTypeNode:()=>iy,isLiteralKind:()=>ON,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>c7,isLiteralTypeLiteral:()=>pte,isLiteralTypeNode:()=>uv,isLocalName:()=>my,isLogicalOperator:()=>Gne,isLogicalOrCoalescingAssignmentExpression:()=>pV,isLogicalOrCoalescingAssignmentOperator:()=>pM,isLogicalOrCoalescingBinaryExpression:()=>Ok,isLogicalOrCoalescingBinaryOperator:()=>E6,isMappedTypeNode:()=>T1,isMemberName:()=>ug,isMetaProperty:()=>E1,isMethodDeclaration:()=>Nl,isMethodOrAccessor:()=>sI,isMethodSignature:()=>Vm,isMinusToken:()=>gj,isMissingDeclaration:()=>SSe,isMissingPackageJsonInfo:()=>Goe,isModifier:()=>Aa,isModifierKind:()=>pb,isModifierLike:()=>ml,isModuleAugmentationExternal:()=>yG,isModuleBlock:()=>n_,isModuleBody:()=>mte,isModuleDeclaration:()=>pc,isModuleExportName:()=>S4,isModuleExportsAccessExpression:()=>yg,isModuleIdentifier:()=>kG,isModuleName:()=>eoe,isModuleOrEnumDeclaration:()=>H2,isModuleReference:()=>vte,isModuleSpecifierLike:()=>A7,isModuleWithStringLiteralName:()=>WF,isNameOfFunctionDeclaration:()=>Mq,isNameOfModuleDeclaration:()=>Nq,isNamedDeclaration:()=>nd,isNamedEvaluation:()=>Lp,isNamedEvaluationSource:()=>JG,isNamedExportBindings:()=>q9,isNamedExports:()=>Jf,isNamedImportBindings:()=>rG,isNamedImports:()=>r_,isNamedImportsOrExports:()=>M6,isNamedTupleMember:()=>bD,isNamespaceBody:()=>_0e,isNamespaceExport:()=>W_,isNamespaceExportDeclaration:()=>yw,isNamespaceImport:()=>xg,isNamespaceReexportDeclaration:()=>lne,isNewExpression:()=>VS,isNewExpressionTarget:()=>IP,isNewScopeNode:()=>Hre,isNoSubstitutionTemplateLiteral:()=>y1,isNodeArray:()=>_S,isNodeArrayMultiLine:()=>Yne,isNodeDescendantOf:()=>RS,isNodeKind:()=>gF,isNodeLikeSystem:()=>e9,isNodeModulesDirectory:()=>rF,isNodeWithPossibleHoistedDeclaration:()=>vne,isNonContextualKeyword:()=>HG,isNonGlobalAmbientModule:()=>gG,isNonNullAccess:()=>Wre,isNonNullChain:()=>_F,isNonNullExpression:()=>XI,isNonStaticMethodOrAccessorWithPrivateName:()=>vae,isNotEmittedStatement:()=>Cie,isNullishCoalesce:()=>H9,isNumber:()=>eb,isNumericLiteral:()=>np,isNumericLiteralName:()=>Ag,isObjectBindingElementWithoutPropertyName:()=>IO,isObjectBindingOrAssignmentElement:()=>G2,isObjectBindingOrAssignmentPattern:()=>Q9,isObjectBindingPattern:()=>ff,isObjectLiteralElement:()=>iG,isObjectLiteralElementLike:()=>ry,isObjectLiteralExpression:()=>Fa,isObjectLiteralMethod:()=>hm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>HF,isObjectTypeDeclaration:()=>DI,isOmittedExpression:()=>Jc,isOptionalChain:()=>tu,isOptionalChainRoot:()=>PN,isOptionalDeclaration:()=>wI,isOptionalJSDocPropertyLikeTag:()=>rw,isOptionalTypeNode:()=>g4,isOuterExpression:()=>M4,isOutermostOptionalChain:()=>LN,isOverrideModifier:()=>bie,isPackageJsonInfo:()=>n3,isPackedArrayLiteral:()=>qV,isParameter:()=>to,isParameterPropertyDeclaration:()=>Np,isParameterPropertyModifier:()=>WN,isParenthesizedExpression:()=>Ou,isParenthesizedTypeNode:()=>b1,isParseTreeNode:()=>MN,isPartOfParameterDeclaration:()=>jT,isPartOfTypeNode:()=>qh,isPartOfTypeOnlyImportOrExportDeclaration:()=>ote,isPartOfTypeQuery:()=>ZF,isPartiallyEmittedExpression:()=>Aie,isPatternMatch:()=>V8,isPinnedComment:()=>wF,isPlainJsFile:()=>VN,isPlusToken:()=>_j,isPossiblyTypeArgumentPosition:()=>bO,isPostfixUnaryExpression:()=>Tj,isPrefixUnaryExpression:()=>YT,isPrimitiveLiteralValue:()=>r4,isPrivateIdentifier:()=>eo,isPrivateIdentifierClassElementDeclaration:()=>nu,isPrivateIdentifierPropertyAccessExpression:()=>zR,isPrivateIdentifierSymbol:()=>Ane,isProgramUptoDate:()=>AH,isPrologueDirective:()=>Hh,isPropertyAccessChain:()=>mF,isPropertyAccessEntityNameExpression:()=>Fk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>j2,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>dte,isPropertyAssignment:()=>Cc,isPropertyDeclaration:()=>Po,isPropertyName:()=>vc,isPropertyNameLiteral:()=>Jh,isPropertySignature:()=>Su,isPrototypeAccess:()=>Ab,isPrototypePropertyAssignment:()=>vk,isPunctuation:()=>UG,isPushOrUnshiftIdentifier:()=>KG,isQualifiedName:()=>ku,isQuestionDotToken:()=>h4,isQuestionOrExclamationToken:()=>Yie,isQuestionOrPlusOrMinusToken:()=>Zie,isQuestionToken:()=>Nb,isReadonlyKeyword:()=>yie,isReadonlyKeywordOrPlusOrMinusToken:()=>Qie,isRecognizedTripleSlashComment:()=>pG,isReferenceFileLocation:()=>qD,isReferencedFile:()=>d0,isRegularExpressionLiteral:()=>mj,isRequireCall:()=>Zu,isRequireVariableStatement:()=>fk,isRestParameter:()=>N_,isRestTypeNode:()=>y4,isReturnStatement:()=>tf,isReturnStatementWithFixablePromiseHandler:()=>H7,isRightSideOfAccessExpression:()=>hV,isRightSideOfInstanceofExpression:()=>jne,isRightSideOfPropertyAccess:()=>$D,isRightSideOfQualifiedName:()=>Ole,isRightSideOfQualifiedNameOrPropertyAccess:()=>fM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vne,isRootedDiskPath:()=>Cp,isSameEntityName:()=>QR,isSatisfiesExpression:()=>ED,isSemicolonClassElement:()=>Iie,isSetAccessor:()=>jh,isSetAccessorDeclaration:()=>gp,isShiftOperatorOrHigher:()=>Uj,isShorthandAmbientModuleSymbol:()=>Q2,isShorthandPropertyAssignment:()=>Ud,isSideEffectImport:()=>ZV,isSignedNumericLiteral:()=>d6,isSimpleCopiableExpression:()=>XS,isSimpleInlineableExpression:()=>B_,isSimpleParameterList:()=>qw,isSingleOrDoubleQuote:()=>mk,isSolutionConfig:()=>fU,isSourceElement:()=>Bre,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>sC,isSourceFileJS:()=>Pu,isSourceFileNotJson:()=>t6,isSourceMapping:()=>_ae,isSpecialPropertyDeclaration:()=>pne,isSpreadAssignment:()=>Rg,isSpreadElement:()=>qf,isStatement:()=>Gi,isStatementButNotDeclaration:()=>q2,isStatementOrBlock:()=>yte,isStatementWithLocals:()=>Nte,isStatic:()=>ua,isStaticModifier:()=>jI,isString:()=>Bo,isStringANonContextualKeyword:()=>SI,isStringAndEmptyAnonymousObjectIntersection:()=>Kle,isStringDoubleQuoted:()=>r6,isStringLiteral:()=>wa,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>bte,isStringLiteralOrTemplate:()=>pce,isStringOrNumericLiteralLike:()=>uf,isStringOrRegularExpressionOrTemplateLiteral:()=>zq,isStringTextContainingNode:()=>X9,isSuperCall:()=>r1,isSuperKeyword:()=>zM,isSuperProperty:()=>mp,isSupportedSourceFileName:()=>zV,isSwitchStatement:()=>UM,isSyntaxList:()=>ND,isSyntheticExpression:()=>hSe,isSyntheticReference:()=>YI,isTagName:()=>Dq,isTaggedTemplateExpression:()=>XT,isTaggedTemplateTag:()=>Lle,isTemplateExpression:()=>b4,isTemplateHead:()=>GI,isTemplateLiteral:()=>lI,isTemplateLiteralKind:()=>db,isTemplateLiteralToken:()=>rte,isTemplateLiteralTypeNode:()=>Sie,isTemplateLiteralTypeSpan:()=>bj,isTemplateMiddle:()=>hj,isTemplateMiddleOrTemplateTail:()=>yF,isTemplateSpan:()=>AD,isTemplateTail:()=>f4,isTextWhiteSpaceLike:()=>ece,isThis:()=>QD,isThisContainerOrFunctionBlock:()=>one,isThisIdentifier:()=>Eb,isThisInTypeQuery:()=>MS,isThisInitializedDeclaration:()=>YF,isThisInitializedObjectBindingExpression:()=>sne,isThisProperty:()=>lk,isThisTypeNode:()=>VM,isThisTypeParameter:()=>MM,isThisTypePredicate:()=>nne,isThrowStatement:()=>Aj,isToken:()=>oI,isTokenKind:()=>J9,isTraceEnabled:()=>wb,isTransientSymbol:()=>fg,isTrivia:()=>rD,isTryStatement:()=>A1,isTupleTypeNode:()=>qI,isTypeAlias:()=>Sk,isTypeAliasDeclaration:()=>bm,isTypeAssertionExpression:()=>v4,isTypeDeclaration:()=>kI,isTypeElement:()=>gS,isTypeKeyword:()=>CP,isTypeKeywordTokenOrIdentifier:()=>T7,isTypeLiteralNode:()=>wu,isTypeNode:()=>Ri,isTypeNodeKind:()=>IV,isTypeOfExpression:()=>TD,isTypeOnlyExportDeclaration:()=>ite,isTypeOnlyImportDeclaration:()=>FR,isTypeOnlyImportOrExportDeclaration:()=>Qy,isTypeOperatorNode:()=>KT,isTypeParameterDeclaration:()=>cl,isTypePredicateNode:()=>HI,isTypeQueryNode:()=>zS,isTypeReferenceNode:()=>Wp,isTypeReferenceType:()=>RF,isTypeUsableAsPropertyName:()=>jf,isUMDExportSymbol:()=>N6,isUnaryExpression:()=>tG,isUnaryExpressionWithWrite:()=>ute,isUnicodeIdentifierStart:()=>oF,isUnionTypeNode:()=>dv,isUrl:()=>yee,isValidBigIntString:()=>$6,isValidESSymbolDeclaration:()=>Zte,isValidTypeOnlyAliasUseSite:()=>HT,isValueSignatureDeclaration:()=>c1,isVarAwaitUsing:()=>rk,isVarConst:()=>JR,isVarConstLike:()=>Xte,isVarUsing:()=>ik,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>qN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>AS,isVariableDeclarationInitializedToRequire:()=>pk,isVariableDeclarationList:()=>_d,isVariableLike:()=>HN,isVariableStatement:()=>sc,isVoidExpression:()=>KI,isWatchSet:()=>SV,isWhileStatement:()=>Ej,isWhiteSpaceLike:()=>lg,isWhiteSpaceSingleLine:()=>Gh,isWithStatement:()=>xie,isWriteAccess:()=>RI,isWriteOnlyAccess:()=>C6,isYieldExpression:()=>_w,jsxModeNeedsExplicitImport:()=>bJ,keywordPart:()=>Vp,last:()=>Ba,lastOrUndefined:()=>tl,length:()=>Ze,libMap:()=>Qj,libs:()=>F4,lineBreakPart:()=>iC,loadModuleFromGlobalCache:()=>Qoe,loadWithModeAwareCache:()=>rO,makeIdentifierFromModuleName:()=>Wte,makeImport:()=>Vb,makeStringLiteral:()=>NP,mangleScopedPackageName:()=>GD,map:()=>Bt,mapAllOrFail:()=>DT,mapDefined:()=>ji,mapDefinedIterator:()=>cm,mapEntries:()=>GQ,mapIterator:()=>La,mapOneOrMany:()=>_J,mapToDisplayParts:()=>jb,matchFiles:()=>bre,matchPatternOrExact:()=>BV,matchedText:()=>tZ,matchesExclude:()=>$4,matchesExcludeWorker:()=>Q4,maxBy:()=>qB,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>ore,memoize:()=>Nu,memoizeOne:()=>zh,min:()=>JB,minAndMax:()=>Rre,missingFileModifiedTime:()=>Dp,modifierToFlag:()=>II,modifiersToFlags:()=>Yh,moduleExportNameIsDefault:()=>M_,moduleExportNameTextEscaped:()=>TS,moduleExportNameTextUnescaped:()=>yb,moduleOptionDeclaration:()=>poe,moduleResolutionIsEqualTo:()=>Dte,moduleResolutionNameAndModeGetter:()=>C3,moduleResolutionOptionDeclarations:()=>eU,moduleResolutionSupportsPackageJsonExportsAndImports:()=>pD,moduleResolutionUsesNodeModules:()=>S7,moduleSpecifierToValidIdentifier:()=>LO,moduleSpecifiers:()=>_y,moduleSupportsImportAttributes:()=>pre,moduleSymbolToValidIdentifier:()=>PO,moveEmitHelpers:()=>oie,moveRangeEnd:()=>R6,moveRangePastDecorators:()=>cy,moveRangePastModifiers:()=>$h,moveRangePos:()=>UT,moveSyntheticComments:()=>nie,mutateMap:()=>yM,mutateMapSkippingNewValues:()=>bg,needsParentheses:()=>D7,needsScopeMarker:()=>TF,newCaseClauseTracker:()=>B7,newPrivateEnvironment:()=>Tae,noEmitNotification:()=>Yw,noEmitSubstitution:()=>mP,noTransformers:()=>Qae,noTruncationMaximumTruncationLength:()=>sG,nodeCanBeDecorated:()=>dk,nodeCoreModules:()=>_D,nodeHasName:()=>k2,nodeIsDecorated:()=>YR,nodeIsMissing:()=>Ol,nodeIsPresent:()=>mm,nodeIsSynthesized:()=>Os,nodeModuleNameResolver:()=>Hoe,nodeModulesPathPart:()=>Dg,nodeNextJsonConfigResolver:()=>qoe,nodeOrChildIsDecorated:()=>uk,nodeOverlapsWithStartEnd:()=>d7,nodePosToString:()=>b0e,nodeSeenTracker:()=>tC,nodeStartsNewLexicalEnvironment:()=>XG,noop:()=>gs,noopFileWatcher:()=>XD,normalizePath:()=>ya,normalizeSlashes:()=>Bd,normalizeSpans:()=>O9,not:()=>U8,notImplemented:()=>_a,notImplementedResolver:()=>rse,nullNodeConverters:()=>Zre,nullParenthesizerRules:()=>$re,nullTransformationContext:()=>Qw,objectAllocator:()=>Rd,operatorPart:()=>PP,optionDeclarations:()=>Hm,optionMapToObject:()=>H4,optionsAffectingProgramStructure:()=>_oe,optionsForBuild:()=>nU,optionsForWatch:()=>rx,optionsHaveChanges:()=>uI,or:()=>Rp,orderedRemoveItem:()=>mN,orderedRemoveItemAt:()=>ib,packageIdToPackageName:()=>LF,packageIdToString:()=>wT,parameterIsThisKeyword:()=>Sb,parameterNamePart:()=>nce,parseBaseNodeFactory:()=>aoe,parseBigInt:()=>Cre,parseBuildCommand:()=>Aoe,parseCommandLine:()=>Soe,parseCommandLineWorker:()=>rU,parseConfigFileTextToJson:()=>oU,parseConfigFileWithSystem:()=>Vse,parseConfigHostFromCompilerHostLike:()=>w3,parseCustomTypeOption:()=>V4,parseIsolatedEntityName:()=>nx,parseIsolatedJSDocComment:()=>loe,parseJSDocTypeExpressionForTests:()=>QSe,parseJsonConfigFileContent:()=>DEe,parseJsonSourceFileConfigFileContent:()=>Ow,parseJsonText:()=>Nw,parseListTypeOption:()=>boe,parseNodeFactory:()=>i0,parseNodeModuleFromPath:()=>Bw,parsePackageName:()=>o3,parsePseudoBigInt:()=>RM,parseValidBigInt:()=>UV,pasteEdits:()=>vX,patchWriteFileEnsuringDirectory:()=>OTe,pathContainsNodeModules:()=>Wb,pathIsAbsolute:()=>SN,pathIsBareSpecifier:()=>x9,pathIsRelative:()=>Zp,patternText:()=>eZ,performIncrementalCompilation:()=>jse,performance:()=>cZ,positionBelongsToNode:()=>Pq,positionIsASICandidate:()=>M7,positionIsSynthesized:()=>dh,positionsAreOnSameLine:()=>Gf,preProcessFile:()=>Fxe,probablyUsesSemicolons:()=>NO,processCommentPragmas:()=>Yj,processPragmasIntoFields:()=>$j,processTaggedTemplateExpression:()=>QU,programContainsEsModules:()=>Qle,programContainsModules:()=>$le,projectReferenceIsEqualTo:()=>lG,propertyNamePart:()=>rce,pseudoBigIntToString:()=>OS,punctuationPart:()=>lu,pushIfUnique:()=>kf,quote:()=>wP,quotePreferenceFromString:()=>Xq,rangeContainsPosition:()=>ZD,rangeContainsPositionExclusive:()=>yO,rangeContainsRange:()=>tp,rangeContainsRangeExclusive:()=>Fle,rangeContainsStartEnd:()=>vO,rangeEndIsOnSameLineAsRangeStart:()=>Gk,rangeEndPositionsAreOnSameLine:()=>Kne,rangeEquals:()=>FB,rangeIsOnSingleLine:()=>f1,rangeOfNode:()=>VV,rangeOfTypeParameters:()=>jV,rangeOverlapsWithStartEnd:()=>xP,rangeStartIsOnSameLineAsRangeEnd:()=>Xne,rangeStartPositionsAreOnSameLine:()=>D6,readBuilderProgram:()=>q3,readConfigFile:()=>kw,readJson:()=>lD,readJsonConfigFile:()=>Ioe,readJsonOrUndefined:()=>gV,reduceEachLeadingCommentRange:()=>xee,reduceEachTrailingCommentRange:()=>Ree,reduceLeft:()=>gu,reduceLeftIterator:()=>jn,reducePathComponents:()=>rI,refactor:()=>gx,regExpEscape:()=>X0e,regularExpressionFlagToCharacterCode:()=>KTe,relativeComplement:()=>VQ,removeAllComments:()=>cw,removeEmitHelper:()=>uSe,removeExtension:()=>Zk,removeFileExtension:()=>Tu,removeIgnoredPath:()=>z3,removeMinAndVersionNumbers:()=>YB,removePrefix:()=>hN,removeSuffix:()=>RR,removeTrailingDirectorySeparator:()=>Yy,repeatString:()=>EO,replaceElement:()=>GB,replaceFirstStar:()=>h1,resolutionExtensionIsTSOrJson:()=>EM,resolveConfigFileProjectName:()=>nq,resolveJSModule:()=>a1e,resolveLibrary:()=>i3,resolveModuleName:()=>P1,resolveModuleNameFromCache:()=>i1e,resolvePackageNameToPackageJson:()=>gU,resolvePath:()=>ab,resolveProjectReferencePath:()=>cx,resolveTripleslashReference:()=>hH,resolveTypeReferenceDirective:()=>zoe,resolvingEmptyArray:()=>aG,returnFalse:()=>Zg,returnNoopFileWatcher:()=>SP,returnTrue:()=>uS,returnUndefined:()=>pS,returnsPromise:()=>kJ,rewriteModuleSpecifier:()=>ax,sameFlatMap:()=>Om,sameMap:()=>Zi,sameMapping:()=>X1e,scanTokenAtPosition:()=>Kte,scanner:()=>yd,semanticDiagnosticsOptionDeclarations:()=>foe,serializeCompilerOptions:()=>dU,server:()=>BOe,servicesVersion:()=>RDe,setCommentRange:()=>Rc,setConfigFileInOptions:()=>uU,setConstantValue:()=>iie,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>H3,setIdentifierAutoGenerate:()=>pw,setIdentifierGeneratedImportReference:()=>lie,setIdentifierTypeArguments:()=>cv,setInternalEmitFlags:()=>dw,setLocalizedDiagnosticMessages:()=>ire,setNodeChildren:()=>Fie,setNodeFlags:()=>Pre,setObjectAllocator:()=>rre,setOriginalNode:()=>jr,setParent:()=>ps,setParentRecursive:()=>qT,setPrivateIdentifier:()=>k1,setSnippetElement:()=>pj,setSourceMapRange:()=>Ua,setStackTraceLimit:()=>CTe,setStartsOnNewLine:()=>c4,setSyntheticLeadingComments:()=>JT,setSyntheticTrailingComments:()=>FI,setSys:()=>WTe,setSysLog:()=>_ee,setTextRange:()=>bt,setTextRangeEnd:()=>hD,setTextRangePos:()=>DM,setTextRangePosEnd:()=>uh,setTextRangePosWidth:()=>HV,setTokenSourceMapRange:()=>tie,setTypeNode:()=>aie,setUILocale:()=>$Q,setValueDeclaration:()=>ZN,shouldAllowImportingTsExtension:()=>VD,shouldPreserveConstEnums:()=>Ib,shouldRewriteModuleSpecifier:()=>Tk,shouldUseUriStyleNodeCoreModules:()=>F7,showModuleSpecifier:()=>ere,signatureHasRestParameter:()=>su,signatureToDisplayParts:()=>aJ,single:()=>BB,singleElementArray:()=>eI,singleIterator:()=>F8,singleOrMany:()=>x_,singleOrUndefined:()=>ag,skipAlias:()=>xd,skipConstraint:()=>qq,skipOuterExpressions:()=>Ul,skipParentheses:()=>us,skipPartiallyEmittedExpressions:()=>Fm,skipTrivia:()=>ka,skipTypeChecking:()=>mD,skipTypeCheckingIgnoringNoCheck:()=>Dre,skipTypeParentheses:()=>tM,skipWhile:()=>rZ,sliceAfter:()=>GV,some:()=>vt,sortAndDeduplicate:()=>fN,sortAndDeduplicateDiagnostics:()=>wR,sourceFileAffectingCompilerOptions:()=>tU,sourceFileMayBeEmitted:()=>CS,sourceMapCommentRegExp:()=>BU,sourceMapCommentRegExpDontCareLineStart:()=>fae,spacePart:()=>zl,spanMap:()=>f2,startEndContainsRange:()=>bV,startEndOverlapsWithStartEnd:()=>u7,startOnNewLine:()=>au,startTracing:()=>fZ,startsWith:()=>fo,startsWithDirectory:()=>C9,startsWithUnderscore:()=>vJ,startsWithUseStrict:()=>Hie,stringContainsAt:()=>vce,stringToToken:()=>qE,stripQuotes:()=>gm,supportedDeclarationExtensions:()=>J6,supportedJSExtensionsFlat:()=>fD,supportedLocaleDirectories:()=>Vee,supportedTSExtensionsFlat:()=>WV,supportedTSImplementationExtensions:()=>Yk,suppressLeadingAndTrailingTrivia:()=>Op,suppressLeadingTrivia:()=>aj,suppressTrailingTrivia:()=>Jre,symbolEscapedNameNoDefault:()=>E7,symbolName:()=>wl,symbolNameNoDefault:()=>$q,symbolToDisplayParts:()=>LP,sys:()=>jc,sysLog:()=>Q8,tagNamesAreEquivalent:()=>a0,takeWhile:()=>ZB,targetOptionDeclaration:()=>Zj,targetToLibMap:()=>Dee,testFormatSettings:()=>axe,textChangeRangeIsUnchanged:()=>Wee,textChangeRangeNewSpan:()=>NN,textChanges:()=>Rr,textOrKeywordPart:()=>oJ,textPart:()=>yf,textRangeContainsPositionInclusive:()=>N2,textRangeContainsTextSpan:()=>Mee,textRangeIntersectsWithTextSpan:()=>wee,textSpanContainsPosition:()=>k9,textSpanContainsTextRange:()=>w9,textSpanContainsTextSpan:()=>Nee,textSpanEnd:()=>Dl,textSpanIntersection:()=>Oee,textSpanIntersectsWith:()=>M2,textSpanIntersectsWithPosition:()=>kee,textSpanIntersectsWithTextSpan:()=>Lee,textSpanIsEmpty:()=>Cee,textSpanOverlap:()=>Pee,textSpanOverlapsWith:()=>n0e,textSpansEqual:()=>rC,textToKeywordObj:()=>iF,timestamp:()=>Ls,toArray:()=>QA,toBuilderFileEmit:()=>Mse,toBuilderStateFileInfoForMultiEmit:()=>Nse,toEditorSettings:()=>GO,toFileNameLowerCase:()=>tb,toPath:()=>ks,toProgramEmitPending:()=>Pse,toSorted:()=>xp,tokenIsIdentifierOrKeyword:()=>Xu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>bee,tokenToString:()=>ga,trace:()=>xo,tracing:()=>xr,tracingEnabled:()=>T2,transferSourceFileChildren:()=>zie,transform:()=>WDe,transformClassFields:()=>Mae,transformDeclarations:()=>nH,transformECMAScriptModule:()=>tH,transformES2015:()=>Hae,transformES2016:()=>Uae,transformES2017:()=>wae,transformES2018:()=>Oae,transformES2019:()=>Wae,transformES2020:()=>Fae,transformES2021:()=>zae,transformESDecorators:()=>kae,transformESNext:()=>Bae,transformGenerators:()=>qae,transformImpliedNodeFormatDependentModule:()=>Kae,transformJsx:()=>jae,transformLegacyDecorators:()=>Lae,transformModule:()=>eH,transformNamedEvaluation:()=>zp,transformNodes:()=>$w,transformSystemModule:()=>Jae,transformTypeScript:()=>Nae,transpile:()=>Jxe,transpileDeclaration:()=>Hxe,transpileModule:()=>Vce,transpileOptionValueCompilerOptions:()=>goe,tryAddToSet:()=>rh,tryAndIgnoreErrors:()=>k7,tryCast:()=>ni,tryDirectoryExists:()=>L7,tryExtractTSExtension:()=>x6,tryFileExists:()=>WP,tryGetClassExtendingExpressionWithTypeArguments:()=>fV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>mV,tryGetDirectories:()=>P7,tryGetExtensionFromPath:()=>Eg,tryGetImportFromModuleSpecifier:()=>bk,tryGetJSDocSatisfiesTypeNode:()=>t4,tryGetModuleNameFromFile:()=>Aw,tryGetModuleSpecifierFromDeclaration:()=>gI,tryGetNativePerformanceHooks:()=>lZ,tryGetPropertyAccessOrIdentifierToString:()=>zk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>L4,tryGetSourceMappingURL:()=>mae,tryGetTextOfPropertyName:()=>UN,tryParseJson:()=>Bk,tryParsePattern:()=>LI,tryParsePatterns:()=>ew,tryParseRawSourceMap:()=>hae,tryReadDirectory:()=>pJ,tryReadFile:()=>ZM,tryRemoveDirectoryPrefix:()=>kV,tryRemoveExtension:()=>Ire,tryRemovePrefix:()=>QB,tryRemoveSuffix:()=>ZQ,tscBuildOption:()=>N1,typeAcquisitionDeclarations:()=>B4,typeAliasNamePart:()=>ice,typeDirectiveIsEqualTo:()=>Cte,typeKeywords:()=>Hq,typeParameterNamePart:()=>oce,typeToDisplayParts:()=>RO,unchangedPollThresholds:()=>Y8,unchangedTextChangeRange:()=>lF,unescapeLeadingUnderscores:()=>Bi,unmangleScopedPackageName:()=>Vw,unorderedRemoveItem:()=>ZA,unprefixedNodeCoreModules:()=>Ure,unreachableCodeIsError:()=>dre,unsetNodeChildren:()=>kj,unusedLabelIsError:()=>ure,unwrapInnermostStatementOfLabel:()=>CG,unwrapParenthesizedExpression:()=>Vre,updateErrorForNoInputFiles:()=>Y4,updateLanguageServiceSourceFile:()=>sK,updateMissingFilePathsWatch:()=>pH,updateResolutionField:()=>WD,updateSharedExtendedConfigFileWatcher:()=>I3,updateSourceFile:()=>Kj,updateWatchingWildcardDirectories:()=>eO,usingSingleLineStringWriter:()=>jR,utf16EncodeAsString:()=>CN,validateLocaleAndSetLanguage:()=>F9,version:()=>Le,versionMajorMinor:()=>_e,visitArray:()=>sP,visitCommaListElements:()=>f3,visitEachChild:()=>wn,visitFunctionBody:()=>gf,visitIterationBody:()=>Wu,visitLexicalEnvironment:()=>zU,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>Fl,walkUpBindingElementsAndPatterns:()=>JE,walkUpOuterExpressions:()=>qie,walkUpParenthesizedExpressions:()=>Bm,walkUpParenthesizedTypes:()=>Ik,walkUpParenthesizedTypesAndGetParentAndChild:()=>bne,whitespaceOrMapCommentRegExp:()=>GU,writeCommentRange:()=>sD,writeFile:()=>b6,writeFileEnsuringDirectories:()=>aV,zipWith:()=>Ji}),_.exports=W($);var _e="5.9",Le="5.9.3",Ke=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Ke||{}),se=[],_t=new Map;function Ze(e){return e!==void 0?e.length:0}function $e(e,t){if(e!==void 0)for(let r=0;r=0;r--){const i=t(e[r],r);if(i)return i}}function Bn(e,t){if(e!==void 0)for(let r=0;r=0;i--){const o=e[i];if(t(o,i))return o}}function so(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 Ln(e,t,r=nb){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 wB(e,t,r){let i;for(let o=0;oe[l])}function FBe(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 Un(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function XA(e,t){return e===void 0?t:t===void 0?e:Mo(e)?Mo(t)?lo(e,t):Un(e,t):Mo(t)?Un(t,e):[e,t]}function jQ(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:jQ(t,r),i=i===void 0?t.length:jQ(t,i);for(let o=r;or(e[i],e[o])||js(i,o))}function xp(e,t){return e.length===0?se:e.slice().sort(t)}function*WB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function FB(e,t,r,i){for(;re==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=jQ(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 gu(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 CT=Object.prototype.hasOwnProperty;function Rs(e,t){return CT.call(e,t)}function h2(e,t){return CT.call(e,t)?e[t]:void 0}function Fh(e){const t=[];for(const r in e)CT.call(e,r)&&t.push(r);return t}function fTe(e){const t=[];do{const r=Object.getOwnPropertyNames(e);for(const i of r)kf(t,i)}while(e=Object.getPrototypeOf(e));return t}function $A(e){const t=[];for(const r in e)CT.call(e,r)&&t.push(e[r]);return t}function UQ(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 HB(e,t){const r=new Map;let i=0;function*o(){for(const l of r.values())Mo(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 Mo(d)?Ln(d,l,t):t(d,l)},add(l){const u=e(l);if(r.has(u)){const d=r.get(u);if(Mo(d))Ln(d,l,t)||(d.push(l),i++);else{const g=d;t(g,l)||(r.set(u,[g,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(Mo(d)){for(let g=0;go(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function Mo(e){return Array.isArray(e)}function QA(e){return Mo(e)?e:[e]}function Bo(e){return typeof e=="string"}function eb(e){return typeof e=="number"}function ni(e,t){return e!==void 0&&t(e)?e:void 0}function ha(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 Zg(){return!1}function uS(){return!0}function pS(){}function Vs(e){return e}function jBe(e){return e.toLowerCase()}var mTe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function tb(e){return mTe.test(e)?e.replace(mTe,jBe):e}function _a(){throw new Error("Not implemented")}function Nu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function zh(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 KQ=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(KQ||{});function nb(e,t){return e===t}function rb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function fS(e,t){return nb(e,t)}function hTe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(r,i)===-1?r:i)}function y2(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function XQ(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Wd(e,t){return hTe(e,t)}function xR(e){return e?y2:Wd}var UBe=(()=>{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)}})(),KB,XB;function YQ(){return XB}function $Q(e){XB!==e&&(XB=e,KB=void 0)}function v2(e,t){return KB??(KB=UBe(XB)),KB(e,t)}function QQ(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function NT(e,t){return js(e?1:0,t?1:0)}function mS(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=HBe(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;Ar)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?rb(e.slice(i),t):e.indexOf(t,i)===i)}function RR(e,t){return nl(e,t)?e.slice(0,e.length-t.length):e}function ZQ(e,t){return nl(e,t)?e.slice(0,e.length-t.length):void 0}function YB(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 mN(e,t){for(let r=0;rr===t)}function qBe(e,t){for(let r=0;ro&&V8(u,r)&&(o=u.prefix.length,i=l)}return i}function fo(e,t,r){return r?rb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function hN(e,t){return fo(e,t)?e.substr(t.length):e}function QB(e,t,r=Vs){return fo(r(e),r(t))?e.substring(t.length):void 0}function V8({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&fo(r,e)&&nl(r,t)}function j8(e,t){return r=>e(r)&&t(r)}function Rp(...e){return(...t)=>{let r;for(const i of e)if(r=i(...t),r)return r;return r}}function U8(e){return(...t)=>!e(...t)}function gTe(e){}function eI(e){return e===void 0?void 0:[e]}function H8(e,t,r,i,o,s){s??(s=gs);let l=0,u=0;const d=e.length,g=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))(iZ||{}),C;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Ye){return e.currentLogLevel<=Ye}e.shouldLog=r;function i(Ye,At){e.loggingHost&&r(Ye)&&e.loggingHost.log(Ye,At)}function o(Ye){i(3,Ye)}e.log=o,(Ye=>{function At(ai){i(1,ai)}Ye.error=At;function mn(ai){i(2,ai)}Ye.warn=mn;function dr(ai){i(3,ai)}Ye.log=dr;function ri(ai){i(4,ai)}Ye.trace=ri})(o=e.log||(e.log={}));const s={};function l(){return t}e.getAssertionLevel=l;function u(Ye){const At=t;if(t=Ye,Ye>At)for(const mn of Fh(s)){const dr=s[mn];dr!==void 0&&e[mn]!==dr.assertion&&Ye>=dr.level&&(e[mn]=dr,s[mn]=void 0)}}e.setAssertionLevel=u;function d(Ye){return t>=Ye}e.shouldAssert=d;function g(Ye,At){return d(Ye)?!0:(s[At]={level:Ye,assertion:e[At]},e[At]=gs,!1)}function h(Ye,At){debugger;const mn=new Error(Ye?`Debug Failure. ${Ye}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(mn,At||h),mn}e.fail=h;function y(Ye,At,mn){return h(`${At||"Unexpected node."}\r Node ${Ce(Ye.kind)} was unexpected.`,mn||y)}e.failBadSyntaxKind=y;function E(Ye,At,mn,dr){Ye||(At=At?`False expression: ${At}`:"False expression.",mn&&(At+=`\r Verbose Debug Information: `+(typeof mn=="string"?mn:mn())),h(At,dr||E))}e.assert=E;function A(Ye,At,mn,dr,ri){if(Ye!==At){const ai=mn?dr?`${mn} ${dr}`:mn:"";h(`Expected ${Ye} === ${At}. ${ai}`,ri||A)}}e.assertEqual=A;function R(Ye,At,mn,dr){Ye>=At&&h(`Expected ${Ye} < ${At}. ${mn||""}`,dr||R)}e.assertLessThan=R;function N(Ye,At,mn){Ye>At&&h(`Expected ${Ye} <= ${At}`,mn||N)}e.assertLessThanOrEqual=N;function P(Ye,At,mn){Ye= ${At}`,mn||P)}e.assertGreaterThanOrEqual=P;function k(Ye,At,mn){Ye==null&&h(At,mn||k)}e.assertIsDefined=k;function F(Ye,At,mn){return k(Ye,At,mn||F),Ye}e.checkDefined=F;function O(Ye,At,mn){for(const dr of Ye)k(dr,At,mn||O)}e.assertEachIsDefined=O;function G(Ye,At,mn){return O(Ye,At,mn||G),Ye}e.checkEachDefined=G;function j(Ye,At="Illegal value:",mn){const dr=typeof Ye=="object"&&Rs(Ye,"kind")&&Rs(Ye,"pos")?"SyntaxKind: "+Ce(Ye.kind):JSON.stringify(Ye);return h(`${At} ${dr}`,mn||j)}e.assertNever=j;function J(Ye,At,mn,dr){g(1,"assertEachNode")&&E(At===void 0||Hn(Ye,At),mn||"Unexpected node.",()=>`Node array did not pass test '${de(At)}'.`,dr||J)}e.assertEachNode=J;function Z(Ye,At,mn,dr){g(1,"assertNode")&&E(Ye!==void 0&&(At===void 0||At(Ye)),mn||"Unexpected node.",()=>`Node ${Ce(Ye==null?void 0:Ye.kind)} did not pass test '${de(At)}'.`,dr||Z)}e.assertNode=Z;function q(Ye,At,mn,dr){g(1,"assertNotNode")&&E(Ye===void 0||At===void 0||!At(Ye),mn||"Unexpected node.",()=>`Node ${Ce(Ye.kind)} should not have passed test '${de(At)}'.`,dr||q)}e.assertNotNode=q;function ye(Ye,At,mn,dr){g(1,"assertOptionalNode")&&E(At===void 0||Ye===void 0||At(Ye),mn||"Unexpected node.",()=>`Node ${Ce(Ye==null?void 0:Ye.kind)} did not pass test '${de(At)}'.`,dr||ye)}e.assertOptionalNode=ye;function ie(Ye,At,mn,dr){g(1,"assertOptionalToken")&&E(At===void 0||Ye===void 0||Ye.kind===At,mn||"Unexpected node.",()=>`Node ${Ce(Ye==null?void 0:Ye.kind)} was not a '${Ce(At)}' token.`,dr||ie)}e.assertOptionalToken=ie;function K(Ye,At,mn){g(1,"assertMissingNode")&&E(Ye===void 0,At||"Unexpected node.",()=>`Node ${Ce(Ye.kind)} was unexpected'.`,mn||K)}e.assertMissingNode=K;function pe(Ye){}e.type=pe;function de(Ye){if(typeof Ye!="function")return"";if(Rs(Ye,"name"))return Ye.name;{const At=Function.prototype.toString.call(Ye),mn=/^function\s+([\w$]+)\s*\(/.exec(At);return mn?mn[1]:""}}e.getFunctionName=de;function fe(Ye){return`{ name: ${Bi(Ye.escapedName)}; flags: ${ce(Ye.flags)}; declarations: ${Bt(Ye.declarations,At=>Ce(At.kind))} }`}e.formatSymbol=fe;function ve(Ye=0,At,mn){const dr=X(At);if(Ye===0)return dr.length>0&&dr[0][0]===0?dr[0][1]:"0";if(mn){const ri=[];let ai=Ye;for(const[Hi,$o]of dr){if(Hi>Ye)break;Hi!==0&&Hi&Ye&&(ri.push($o),ai&=~Hi)}if(ai===0)return ri.join("|")}else for(const[ri,ai]of dr)if(ri===Ye)return ai;return Ye.toString()}e.formatEnum=ve;const xe=new Map;function X(Ye){const At=xe.get(Ye);if(At)return At;const mn=[];for(const ri in Ye){const ai=Ye[ri];typeof ai=="number"&&mn.push([ai,ri])}const dr=xp(mn,(ri,ai)=>js(ri[0],ai[0]));return xe.set(Ye,dr),dr}function Ce(Ye){return ve(Ye,i9,!1)}e.formatSyntaxKind=Ce;function Je(Ye){return ve(Ye,y9,!1)}e.formatSnippetKind=Je;function Se(Ye){return ve(Ye,_9,!1)}e.formatScriptKind=Se;function re(Ye){return ve(Ye,o9,!0)}e.formatNodeFlags=re;function be(Ye){return ve(Ye,p9,!0)}e.formatNodeCheckFlags=be;function Ne(Ye){return ve(Ye,a9,!0)}e.formatModifierFlags=Ne;function Be(Ye){return ve(Ye,g9,!0)}e.formatTransformFlags=Be;function lt(Ye){return ve(Ye,v9,!0)}e.formatEmitFlags=lt;function ce(Ye){return ve(Ye,u9,!0)}e.formatSymbolFlags=ce;function Re(Ye){return ve(Ye,f9,!0)}e.formatTypeFlags=Re;function ge(Ye){return ve(Ye,h9,!0)}e.formatSignatureFlags=ge;function je(Ye){return ve(Ye,m9,!0)}e.formatObjectFlags=je;function Ge(Ye){return ve(Ye,J8,!0)}e.formatFlowFlags=Ge;function We(Ye){return ve(Ye,s9,!0)}e.formatRelationComparisonResult=We;function at(Ye){return ve(Ye,kU,!0)}e.formatCheckMode=at;function Wt(Ye){return ve(Ye,wU,!0)}e.formatSignatureCheckMode=Wt;function cn(Ye){return ve(Ye,LU,!0)}e.formatTypeFacts=cn;let gn=!1,Kn;function gt(Ye){"__debugFlowFlags"in Ye||Object.defineProperties(Ye,{__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",mn=this.flags&-2048;return`${At}${mn?` (${Ge(mn)})`:""}`}},__debugFlowFlags:{get(){return ve(this.flags,J8,!0)}},__debugToString:{value(){return Ci(this)}}})}function en(Ye){return gn&&(typeof Object.setPrototypeOf=="function"?(Kn||(Kn=Object.create(Object.prototype),gt(Kn)),Object.setPrototypeOf(Ye,Kn)):gt(Ye)),Ye}e.attachFlowNodeDebugInfo=en;let or;function Di(Ye){"__tsDebuggerDisplay"in Ye||Object.defineProperties(Ye,{__tsDebuggerDisplay:{value(At){return At=String(At).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${At}`}}})}function co(Ye){gn&&(typeof Object.setPrototypeOf=="function"?(or||(or=Object.create(Array.prototype),Di(or)),Object.setPrototypeOf(Ye,or)):Di(Ye))}e.attachNodeArrayDebugInfo=co;function zt(){if(gn)return;const Ye=new WeakMap,At=new WeakMap;Object.defineProperties(Rd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const dr=this.flags&33554432?"TransientSymbol":"Symbol",ri=this.flags&-33554433;return`${dr} '${wl(this)}'${ri?` (${ce(ri)})`:""}`}},__debugFlags:{get(){return ce(this.flags)}}}),Object.defineProperties(Rd.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?` '${wl(this.symbol)}'`:""}${ri?` (${je(ri)})`:""}`}},__debugFlags:{get(){return Re(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?je(this.objectFlags):""}},__debugTypeToString:{value(){let dr=Ye.get(this);return dr===void 0&&(dr=this.checker.typeToString(this),Ye.set(this,dr)),dr}}}),Object.defineProperties(Rd.getSignatureConstructor().prototype,{__debugFlags:{get(){return ge(this.flags)}},__debugSignatureToString:{value(){var dr;return(dr=this.checker)==null?void 0:dr.signatureToString(this)}}});const mn=[Rd.getNodeConstructor(),Rd.getIdentifierConstructor(),Rd.getTokenConstructor(),Rd.getSourceFileConstructor()];for(const dr of mn)Rs(dr.prototype,"__debugKind")||Object.defineProperties(dr.prototype,{__tsDebuggerDisplay:{value(){return`${fl(this)?"GeneratedIdentifier":He(this)?`Identifier '${Kr(this)}'`:eo(this)?`PrivateIdentifier '${Kr(this)}'`:wa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:np(this)?`NumericLiteral ${this.text}`:yD(this)?`BigIntLiteral ${this.text}n`:cl(this)?"TypeParameterDeclaration":to(this)?"ParameterDeclaration":Ml(this)?"ConstructorDeclaration":Hf(this)?"GetAccessorDeclaration":gp(this)?"SetAccessorDeclaration":UI(this)?"CallSignatureDeclaration":GM(this)?"ConstructSignatureDeclaration":Mb(this)?"IndexSignatureDeclaration":HI(this)?"TypePredicateNode":Wp(this)?"TypeReferenceNode":O_(this)?"FunctionTypeNode":vD(this)?"ConstructorTypeNode":zS(this)?"TypeQueryNode":wu(this)?"TypeLiteralNode":hw(this)?"ArrayTypeNode":qI(this)?"TupleTypeNode":g4(this)?"OptionalTypeNode":y4(this)?"RestTypeNode":dv(this)?"UnionTypeNode":JI(this)?"IntersectionTypeNode":BS(this)?"ConditionalTypeNode":v1(this)?"InferTypeNode":b1(this)?"ParenthesizedTypeNode":VM(this)?"ThisTypeNode":KT(this)?"TypeOperatorNode":GS(this)?"IndexedAccessTypeNode":T1(this)?"MappedTypeNode":uv(this)?"LiteralTypeNode":bD(this)?"NamedTupleMember":t_(this)?"ImportTypeNode":Ce(this.kind)}${this.flags?` (${re(this.flags)})`:""}`}},__debugKind:{get(){return Ce(this.kind)}},__debugNodeFlags:{get(){return re(this.flags)}},__debugModifierFlags:{get(){return Ne(Bne(this))}},__debugTransformFlags:{get(){return Be(this.transformFlags)}},__debugIsParseTreeNode:{get(){return MN(this)}},__debugEmitFlags:{get(){return lt(Qa(this))}},__debugGetText:{value(ri){if(Os(this))return"";let ai=At.get(this);if(ai===void 0){const Hi=jo(this),$o=Hi&&Fn(Hi);ai=$o?bS($o,Hi,ri):"",At.set(this,ai)}return ai}}});gn=!0}e.enableDebugInfo=zt;function Zr(Ye){const At=Ye&7;let mn=At===0?"in out":At===3?"[bivariant]":At===2?"in":At===1?"out":At===4?"[independent]":"";return Ye&8?mn+=" (unmeasurable)":Ye&16&&(mn+=" (unreliable)"),mn}e.formatVariance=Zr;class Ai{__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 Ji(this.sources,this.targets||Bt(this.sources,()=>"any"),(mn,dr)=>`${mn.__debugTypeToString()} -> ${typeof dr=="string"?dr:dr.__debugTypeToString()}`).join(", ");case 2:return Ji(this.sources,this.targets,(mn,dr)=>`${mn.__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=Ai;function Ni(Ye){return e.isDebugging?Object.setPrototypeOf(Ye,Ai.prototype):Ye}e.attachDebugPrototypeIfDebug=Ni;function Pr(Ye){return console.log(Ci(Ye))}e.printControlFlowGraph=Pr;function Ci(Ye){let At=-1;function mn(Ae){return Ae.id||(Ae.id=At,At--),Ae.id}let dr;(Ae=>{Ae.lr="─",Ae.ud="│",Ae.dr="╭",Ae.dl="╮",Ae.ul="╯",Ae.ur="╰",Ae.udr="├",Ae.udl="┤",Ae.dlr="┬",Ae.ulr="┴",Ae.udlr="╫"})(dr||(dr={}));let ri;(Ae=>{Ae[Ae.None=0]="None",Ae[Ae.Up=1]="Up",Ae[Ae.Down=2]="Down",Ae[Ae.Left=4]="Left",Ae[Ae.Right=8]="Right",Ae[Ae.UpDown=3]="UpDown",Ae[Ae.LeftRight=12]="LeftRight",Ae[Ae.UpLeft=5]="UpLeft",Ae[Ae.UpRight=9]="UpRight",Ae[Ae.DownLeft=6]="DownLeft",Ae[Ae.DownRight=10]="DownRight",Ae[Ae.UpDownLeft=7]="UpDownLeft",Ae[Ae.UpDownRight=11]="UpDownRight",Ae[Ae.UpLeftRight=13]="UpLeftRight",Ae[Ae.DownLeftRight=14]="DownLeftRight",Ae[Ae.UpDownLeftRight=15]="UpDownLeftRight",Ae[Ae.NoChildren=16]="NoChildren"})(ri||(ri={}));const ai=2032,Hi=882,$o=Object.create(null),Ia=[],Pn=dt(Ye,new Set);for(const Ae of Ia)Ae.text=Tr(Ae.flowNode,Ae.circular),Ue(Ae);const Uo=Rt(Pn),ot=It(Uo);return Ot(Pn,0),Oe();function Ft(Ae){return!!(Ae.flags&128)}function le(Ae){return!!(Ae.flags&12)&&!!Ae.antecedent}function ht(Ae){return!!(Ae.flags&ai)}function ne(Ae){return!!(Ae.flags&Hi)}function Fe(Ae){const te=[];for(const xt of Ae.edges)xt.source===Ae&&te.push(xt.target);return te}function it(Ae){const te=[];for(const xt of Ae.edges)xt.target===Ae&&te.push(xt.source);return te}function dt(Ae,te){const xt=mn(Ae);let Xt=$o[xt];if(Xt&&te.has(Ae))return Xt.circular=!0,Xt={id:-1,flowNode:Ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Ia.push(Xt),Xt;if(te.add(Ae),!Xt)if($o[xt]=Xt={id:xt,flowNode:Ae,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Ia.push(Xt),le(Ae))for(const Pe of Ae.antecedent)Lt(Xt,Pe,te);else ht(Ae)&&Lt(Xt,Ae.antecedent,te);return te.delete(Ae),Xt}function Lt(Ae,te,xt){const Xt=dt(te,xt),Pe={source:Ae,target:Xt};Ae.edges.push(Pe),Xt.edges.push(Pe)}function Ue(Ae){if(Ae.level!==-1)return Ae.level;let te=0;for(const xt of it(Ae))te=Math.max(te,Ue(xt)+1);return Ae.level=te}function Rt(Ae){let te=0;for(const xt of Fe(Ae))te=Math.max(te,Rt(xt));return te+1}function It(Ae){const te=he(Array(Ae),0);for(const xt of Ia)te[xt.level]=Math.max(te[xt.level],xt.text.length);return te}function Ot(Ae,te){if(Ae.lane===-1){Ae.lane=te,Ae.endLane=te;const xt=Fe(Ae);for(let Xt=0;Xt0&&te++;const Pe=xt[Xt];Ot(Pe,te),Pe.endLane>Ae.endLane&&(te=Pe.endLane)}Ae.endLane=te}}function nt(Ae){if(Ae&2)return"Start";if(Ae&4)return"Branch";if(Ae&8)return"Loop";if(Ae&16)return"Assignment";if(Ae&32)return"True";if(Ae&64)return"False";if(Ae&128)return"SwitchClause";if(Ae&256)return"ArrayMutation";if(Ae&512)return"Call";if(Ae&1024)return"ReduceLabel";if(Ae&1)return"Unreachable";throw new Error}function Kt(Ae){const te=Fn(Ae);return bS(te,Ae,!1)}function Tr(Ae,te){let xt=nt(Ae.flags);if(te&&(xt=`${xt}#${mn(Ae)}`),Ft(Ae)){const Xt=[],{switchStatement:Pe,clauseStart:yt,clauseEnd:Gt}=Ae.node;for(let gr=yt;grGt.lane)+1,xt=he(Array(te),""),Xt=ot.map(()=>Array(te)),Pe=ot.map(()=>he(Array(te),0));for(const Gt of Ia){Xt[Gt.level][Gt.lane]=Gt;const gr=Fe(Gt);for(let Jn=0;Jn0&&(Mt|=1),Jn0&&(Mt|=1),Jn0?Pe[Gt-1][gr]:0,Jn=gr>0?Pe[Gt][gr-1]:0;let ft=Pe[Gt][gr];ft||(nr&8&&(ft|=12),Jn&2&&(ft|=3),Pe[Gt][gr]=ft)}for(let Gt=0;Gt0?Ae.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?Mo(o)?o:o.split("."):se,u=s?Mo(s)?s:s.split("."):se;C.assert(Hn(l,d=>XBe.test(d)),"Invalid argument: prerelease"),C.assert(Hn(u,d=>$Be.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=bTe(t);if(!r)return;const{major:i,minor:o,patch:s,prerelease:l,build:u}=r;return new E8(i,o,s,l,u)}compareTo(t){return this===t?0:t===void 0?1:js(this.major,t.major)||js(this.minor,t.minor)||js(this.patch,t.patch)||QBe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new E8(this.major+1,0,0);case"minor":return new E8(this.major,this.minor+1,0);case"patch":return new E8(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 E8(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}};oZ.zero=new oZ(0,0,0,["0"]);var ih=oZ;function bTe(e){const t=JBe.exec(e);if(!t)return;const[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!KBe.test(s))&&!(l&&!YBe.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function QBe(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 TTe(e){const t=[];for(let r of e.trim().split(ZBe)){if(!r)continue;const i=[];r=r.trim();const o=n9e.exec(r);if(o){if(!i9e(o[1],o[2],i))return}else for(const s of r.split(e9e)){const l=r9e.exec(s.trim());if(!l||!o9e(l[1],l[2],i))return}t.push(i)}return t}function aZ(e){const t=t9e.exec(e);if(!t)return;const[,r,i="*",o="*",s,l]=t;return{version:new ih(um(r)?0:parseInt(r,10),um(r)||um(i)?0:parseInt(i,10),um(r)||um(i)||um(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function i9e(e,t,r){const i=aZ(e);if(!i)return!1;const o=aZ(t);return o?(um(i.major)||r.push(R_(">=",i.version)),um(o.major)||r.push(um(o.minor)?R_("<",o.version.increment("major")):um(o.patch)?R_("<",o.version.increment("minor")):R_("<=",o.version)),!0):!1}function o9e(e,t,r){const i=aZ(t);if(!i)return!1;const{version:o,major:s,minor:l,patch:u}=i;if(um(s))(e==="<"||e===">")&&r.push(R_("<",ih.zero));else switch(e){case"~":r.push(R_(">=",o)),r.push(R_("<",o.increment(um(l)?"major":"minor")));break;case"^":r.push(R_(">=",o)),r.push(R_("<",o.increment(o.major>0||um(l)?"major":o.minor>0||um(u)?"minor":"patch")));break;case"<":case">=":r.push(um(l)||um(u)?R_(e,o.with({prerelease:"0"})):R_(e,o));break;case"<=":case">":r.push(um(l)?R_(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):um(u)?R_(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):R_(e,o));break;case"=":case void 0:um(l)||um(u)?(r.push(R_(">=",o.with({prerelease:"0"}))),r.push(R_("<",o.increment(um(l)?"major":"minor").with({prerelease:"0"})))):r.push(R_("=",o));break;default:return!1}return!0}function um(e){return e==="*"||e==="x"||e==="X"}function R_(e,t){return{operator:e,operand:t}}function a9e(e,t){if(t.length===0)return!0;for(const r of t)if(s9e(e,r))return!0;return!1}function s9e(e,t){for(const r of t)if(!l9e(e,r.operator,r.operand))return!1;return!0}function l9e(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 c9e(e){return Bt(e,d9e).join(" || ")||"*"}function d9e(e){return Bt(e,u9e).join(" ")}function u9e(e){return`${e.operator}${e.operand}`}function p9e(){if(e9(),typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function f9e(){const e=p9e();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 sZ=f9e(),STe=sZ==null?void 0:sZ.performanceTime;function lZ(){return sZ}var Ls=STe?()=>STe.now():Date.now,cZ={};x(cZ,{clearMarks:()=>DTe,clearMeasures:()=>RTe,createTimer:()=>t9,createTimerIf:()=>ETe,disable:()=>pZ,enable:()=>r9,forEachMark:()=>xTe,forEachMeasure:()=>n9,getCount:()=>ITe,getDuration:()=>bN,isEnabled:()=>uZ,mark:()=>Rl,measure:()=>wf,nullTimer:()=>dZ});var _N,jE;function ETe(e,t,r,i){return e?t9(t,r,i):dZ}function t9(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&Rl(t)}function s(){--i===0?(Rl(r),wf(e,t,r)):i<0&&C.fail("enter/exit count does not match.")}}var dZ={enter:gs,exit:gs},gN=!1,ATe=Ls(),yN=new Map,b2=new Map,vN=new Map;function Rl(e){if(gN){const t=b2.get(e)??0;b2.set(e,t+1),yN.set(e,Ls()),jE==null||jE.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function wf(e,t,r){if(gN){const i=(r!==void 0?yN.get(r):void 0)??Ls(),o=(t!==void 0?yN.get(t):void 0)??ATe,s=vN.get(e)||0;vN.set(e,s+(i-o)),jE==null||jE.measure(e,t,r)}}function ITe(e){return b2.get(e)||0}function bN(e){return vN.get(e)||0}function n9(e){vN.forEach((t,r)=>e(r,t))}function xTe(e){yN.forEach((t,r)=>e(r))}function RTe(e){e!==void 0?vN.delete(e):vN.clear(),jE==null||jE.clearMeasures(e)}function DTe(e){e!==void 0?(b2.delete(e),yN.delete(e)):(b2.clear(),yN.clear()),jE==null||jE.clearMarks(e)}function uZ(){return gN}function r9(e=jc){var t;return gN||(gN=!0,_N||(_N=lZ()),_N!=null&&_N.performance&&(ATe=_N.performance.timeOrigin,(_N.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(jE=_N.performance))),!0}function pZ(){gN&&(yN.clear(),b2.clear(),vN.clear(),jE=void 0,gN=!1)}var xr,T2;(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=aTe("fs")}catch(de){throw new Error(`tracing requires having fs (original error: ${de.message||de})`)}o=J,s.length=0,l===void 0&&(l=Qr(Z,"legend.json")),t.existsSync(Z)||t.mkdirSync(Z,{recursive:!0});const ye=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",ie=Qr(Z,`trace${ye}.json`),K=Qr(Z,`types${ye}.json`);u.push({configFilePath:q,tracePath:ie,typesPath:K}),i=t.openSync(ie,"w"),xr=e;const pe={cat:"__metadata",ph:"M",ts:1e3*Ls(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...pe},{name:"thread_name",args:{name:"Main"},...pe},{name:"TracingStartedInBrowser",...pe,cat:"disabled-by-default-devtools.timeline"}].map(de=>JSON.stringify(de)).join(`, `))}e.startTracing=d;function g(){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=g;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,ye=!1){ye&&F("B",J,Z,q),E.push({phase:J,name:Z,args:q,time:1e3*Ls(),separateBeginAndEnd:ye})}e.push=A;function R(J){C.assert(E.length>0),k(E.length-1,1e3*Ls(),J),E.length--}e.pop=R;function N(){const J=1e3*Ls();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:ye,name:ie,args:K,time:pe,separateBeginAndEnd:de}=E[J];de?(C.assert(!q,"`results` are not supported for events with `separateBeginAndEnd`"),F("E",ye,ie,K,void 0,Z)):P-pe%P<=Z-pe&&F("X",ye,ie,{...K,results:q},`"dur":${Z-pe}`,pe)}function F(J,Z,q,ye,ie,K=1e3*Ls()){o==="server"&&Z==="checkTypes"||(Rl("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${J}","cat":"${Z}","ts":${K},"name":"${q}"`),ie&&t.writeSync(i,`,${ie}`),ye&&t.writeSync(i,`,"args":${JSON.stringify(ye)}`),t.writeSync(i,"}"),Rl("endTracing"),wf("Tracing","beginTracing","endTracing"))}function O(J){const Z=Fn(J);return Z?{path:Z.path,start:q(ca(Z,J.pos)),end:q(ca(Z,J.end))}:void 0;function q(ye){return{line:ye.line+1,character:ye.character+1}}}function G(J){var Z,q,ye,ie,K,pe,de,fe,ve,xe,X,Ce,Je,Se,re,be,Ne,Be,lt;Rl("beginDumpTypes");const ce=u[u.length-1].typesPath,Re=t.openSync(ce,"w"),ge=new Map;t.writeSync(Re,"[");const je=J.length;for(let Ge=0;GeNi.id),referenceLocation:O(Ai.node)}}let gt={};if(We.flags&16777216){const Ai=We;gt={conditionalCheckType:(pe=Ai.checkType)==null?void 0:pe.id,conditionalExtendsType:(de=Ai.extendsType)==null?void 0:de.id,conditionalTrueType:((fe=Ai.resolvedTrueType)==null?void 0:fe.id)??-1,conditionalFalseType:((ve=Ai.resolvedFalseType)==null?void 0:ve.id)??-1}}let en={};if(We.flags&33554432){const Ai=We;en={substitutionBaseType:(xe=Ai.baseType)==null?void 0:xe.id,constraintType:(X=Ai.constraint)==null?void 0:X.id}}let or={};if(at&1024){const Ai=We;or={reverseMappedSourceType:(Ce=Ai.source)==null?void 0:Ce.id,reverseMappedMappedType:(Je=Ai.mappedType)==null?void 0:Je.id,reverseMappedConstraintType:(Se=Ai.constraintType)==null?void 0:Se.id}}let Di={};if(at&256){const Ai=We;Di={evolvingArrayElementType:Ai.elementType.id,evolvingArrayFinalType:(re=Ai.finalArrayType)==null?void 0:re.id}}let co;const zt=We.checker.getRecursionIdentity(We);zt&&(co=ge.get(zt),co||(co=ge.size,ge.set(zt,co)));const Zr={id:We.id,intrinsicName:We.intrinsicName,symbolName:(Wt==null?void 0:Wt.escapedName)&&Bi(Wt.escapedName),recursionId:co,isTuple:at&8?!0:void 0,unionTypes:We.flags&1048576?(be=We.types)==null?void 0:be.map(Ai=>Ai.id):void 0,intersectionTypes:We.flags&2097152?We.types.map(Ai=>Ai.id):void 0,aliasTypeArguments:(Ne=We.aliasTypeArguments)==null?void 0:Ne.map(Ai=>Ai.id),keyofType:We.flags&4194304?(Be=We.type)==null?void 0:Be.id:void 0,...gn,...Kn,...gt,...en,...or,...Di,destructuringPattern:O(We.pattern),firstDeclaration:O((lt=Wt==null?void 0:Wt.declarations)==null?void 0:lt[0]),flags:C.formatTypeFlags(We.flags).split("|"),display:cn};t.writeSync(Re,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))(i9||{}),o9=(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))(o9||{}),a9=(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))(a9||{}),hZ=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(hZ||{}),s9=(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))(s9||{}),_Z=(e=>(e[e.None=0]="None",e[e.Always=1]="Always",e[e.Never=2]="Never",e[e.Sometimes=3]="Sometimes",e))(_Z||{}),l9=(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))(l9||{}),gZ=(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))(gZ||{}),yZ=(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))(yZ||{}),J8=(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))(J8||{}),vZ=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(vZ||{}),TN=class{},c9=(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))(c9||{}),bZ=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(bZ||{}),TZ=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(TZ||{}),d9=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(d9||{}),SZ=(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))(SZ||{}),EZ=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(EZ||{}),AZ=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(AZ||{}),IZ=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(IZ||{}),xZ=(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))(xZ||{}),RZ=(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))(RZ||{}),DZ=(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))(DZ||{}),CZ=(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))(CZ||{}),NZ=(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))(NZ||{}),MZ=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(MZ||{}),PZ=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(PZ||{}),LZ=(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))(LZ||{}),u9=(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))(u9||{}),kZ=(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))(kZ||{}),wZ=(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))(wZ||{}),p9=(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))(p9||{}),f9=(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))(f9||{}),m9=(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))(m9||{}),OZ=(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))(OZ||{}),WZ=(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))(WZ||{}),FZ=(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))(FZ||{}),zZ=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(zZ||{}),BZ=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(BZ||{}),GZ=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(GZ||{}),h9=(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))(h9||{}),VZ=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(VZ||{}),jZ=(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))(jZ||{}),UZ=(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))(UZ||{}),HZ=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(HZ||{}),qZ=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(qZ||{}),JZ=(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))(JZ||{}),K8=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(K8||{});function UE(e,t=!0){const r=K8[e.category];return t?r.toLowerCase():r}var DR=(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))(DR||{}),KZ=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(KZ||{}),XZ=(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))(XZ||{}),YZ=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(YZ||{}),$Z=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))($Z||{}),CR=(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))(CR||{}),QZ=(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))(QZ||{}),ZZ=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(ZZ||{}),eee=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(eee||{}),_9=(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))(_9||{}),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||{}),nee=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(nee||{}),ree=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(ree||{}),iee=(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))(iee||{}),oee=(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))(oee||{}),g9=(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))(g9||{}),y9=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(y9||{}),v9=(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))(v9||{}),aee=(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))(aee||{}),ed={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},see=(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))(see||{}),lee=(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))(lee||{}),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||{}),dee=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(dee||{}),uee=(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))(uee||{}),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||{}),X8={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}},fee=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(fee||{});function S2(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))(mee||{}),b9=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(b9||{}),Dp=new Date(0);function tI(e,t){return e.getModifiedTime(t)||Dp}function hee(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var T9={Low:32,Medium:64,High:256},S9=hee(T9),Y8=hee(T9);function m9e(e){if(!e.getEnvironmentVariable)return;const t=o("TSC_WATCH_POLLINGINTERVAL",b9);S9=s("TSC_WATCH_POLLINGCHUNKSIZE",T9)||S9,Y8=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",T9)||Y8;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(g){const h=r(l,g);h&&((u||(u={}))[g]=Number(h))}}function o(l,u){const d=i(l);if(d)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(h){u[h]=d[h]||u[h]}}function s(l,u){const d=i(l);return(t||d)&&hee(d?{...u,...d}:u)}}function NTe(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 g=y9e(d,tI(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o==null||o(d,r,g),t[r]&&(s{O.isClosed=!0,ZA(t,O)}}}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,S9[k.pollingInterval]),k.length?N(k.pollingInterval):(C.assert(k.pollIndex===0),k.pollScheduled=!1)}function g(P,k){h(r,250,0,r.length),d(P,k),!k.pollScheduled&&r.length&&N(250)}function h(P,k,F,O){return NTe(e,P,F,O,G);function G(j,J,Z){Z?(j.unchangedPolls=0,P!==r&&(P[J]=void 0,A(j))):j.unchangedPolls!==Y8[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?g:d,P,P===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(P))}}function _9e(e,t,r,i){const o=dm(),s=i?new Map:void 0,l=new Map,u=Fd(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)||Dp);const N=ci(R)||".",P=l.get(N)||g(ci(h)||".",N,A);return P.referenceCount++,{close:()=>{P.referenceCount===1?(P.close(),l.delete(N)):P.referenceCount--,o.remove(R,y)}}}function g(h,y,E){const A=e(h,1,(R,N)=>{if(!Bo(N))return;const P=So(N,h),k=u(P),F=P&&o.get(k);if(F){let O,G=1;if(s){const j=s.get(k);if(R==="change"&&(O=r(P)||Dp,O.getTime()===j.getTime()))return;O||(O=r(P)||Dp),s.set(k,O),j===Dp?G=0:O===Dp&&(G=2)}for(const j of F)j(P,G,O)}},!1,500,E);return A.referenceCount=0,l.set(y,A),A}}function g9e(e){const t=[];let r=0,i;return o;function o(u,d){const g={fileName:u,callback:d,mtime:tI(e,u)};return t.push(g),l(),{close:()=>{g.isClosed=!0,ZA(t,g)}}}function s(){i=void 0,r=NTe(e,t,r,S9[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function MTe(e,t,r,i,o){const l=Fd(t)(r),u=e.get(l);return u?u.callbacks.push(i):e.set(l,{watcher:o((d,g,h)=>{var y;return(y=e.get(l))==null?void 0:y.callbacks.slice().forEach(E=>E(d,g,h))}),callbacks:[i]}),{close:()=>{const d=e.get(l);d&&(!mN(d.callbacks,i)||d.callbacks.length||(e.delete(l),Kf(d)))}}}function y9e(e,t){const r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,E9(r,i),t),!0):!1}function E9(e,t){return e===0?0:t===0?2:1}var $8=["/node_modules/.","/.git","/.#"],PTe=gs;function Q8(e){return PTe(e)}function _ee(e){PTe=e}function v9e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:u}){const d=new Map,g=dm(),h=new Map;let y;const E=xR(!t),A=Fd(t);return(q,ye,ie,K)=>ie?R(q,K,ye):e(q,ye,ie,K);function R(q,ye,ie,K){const pe=A(q);let de=d.get(pe);de?de.refCount++:(de={watcher:e(q,ve=>{var xe;J(ve,ye)||(ye!=null&&ye.synchronousWatchDirectory?((xe=d.get(pe))!=null&&xe.targetWatcher||N(q,pe,ve),j(q,pe,ye)):P(q,pe,ve,ye))},!1,ye),refCount:1,childWatches:se,targetWatcher:void 0,links:void 0},d.set(pe,de),j(q,pe,ye)),K&&(de.links??(de.links=new Set)).add(K);const fe=ie&&{dirName:q,callback:ie};return fe&&g.add(pe,fe),{dirName:q,close:()=>{var ve;const xe=C.checkDefined(d.get(pe));fe&&g.remove(pe,fe),K&&((ve=xe.links)==null||ve.delete(K)),xe.refCount--,!xe.refCount&&(d.delete(pe),xe.links=void 0,Kf(xe),G(xe),xe.childWatches.forEach(Gm))}}}function N(q,ye,ie,K){var pe,de;let fe,ve;Bo(ie)?fe=ie:ve=ie,g.forEach((xe,X)=>{if(!(ve&&ve.get(X)===!0)&&(X===ye||fo(ye,X)&&ye[X.length]===Js))if(ve)if(K){const Ce=ve.get(X);Ce?Ce.push(...K):ve.set(X,K.slice())}else ve.set(X,!0);else xe.forEach(({callback:Ce})=>Ce(fe))}),(de=(pe=d.get(ye))==null?void 0:pe.links)==null||de.forEach(xe=>{const X=Ce=>Qr(xe,cf(q,Ce,A));ve?N(xe,A(xe),ve,K==null?void 0:K.map(X)):N(xe,A(xe),X(fe))})}function P(q,ye,ie,K){const pe=d.get(ye);if(pe&&o(q,1)){k(q,ye,ie,K);return}N(q,ye,ie),G(pe),O(pe)}function k(q,ye,ie,K){const pe=h.get(ye);pe?pe.fileNames.push(ie):h.set(ye,{dirName:q,options:K,fileNames:[ie]}),y&&(u(y),y=void 0),y=l(F,1e3,"timerToUpdateChildWatches")}function F(){var q;y=void 0,Q8(`sysLog:: onTimerToUpdateChildWatches:: ${h.size}`);const ye=Ls(),ie=new Map;for(;!y&&h.size;){const pe=h.entries().next();C.assert(!pe.done);const{value:[de,{dirName:fe,options:ve,fileNames:xe}]}=pe;h.delete(de);const X=j(fe,de,ve);(q=d.get(de))!=null&&q.targetWatcher||N(fe,de,ie,X?void 0:xe)}Q8(`sysLog:: invokingWatchers:: Elapsed:: ${Ls()-ye}ms:: ${h.size}`),g.forEach((pe,de)=>{const fe=ie.get(de);fe&&pe.forEach(({callback:ve,dirName:xe})=>{Mo(fe)?fe.forEach(ve):ve(xe)})});const K=Ls()-ye;Q8(`sysLog:: Elapsed:: ${K}ms:: onTimerToUpdateChildWatches:: ${h.size} ${y}`)}function O(q){if(!q)return;const ye=q.childWatches;q.childWatches=se;for(const ie of ye)ie.close(),O(d.get(A(ie.dirName)))}function G(q){q!=null&&q.targetWatcher&&(q.targetWatcher.close(),q.targetWatcher=void 0)}function j(q,ye,ie){const K=d.get(ye);if(!K)return!1;const pe=ya(s(q));let de,fe;return E(pe,q)===0?de=H8(o(q,1)?ji(i(q),X=>{const Ce=So(X,q);return!J(Ce,ie)&&E(Ce,ya(s(Ce)))===0?Ce:void 0}):se,K.childWatches,(X,Ce)=>E(X,Ce.dirName),ve,Gm,xe):K.targetWatcher&&E(pe,K.targetWatcher.dirName)===0?(de=!1,C.assert(K.childWatches===se)):(G(K),K.targetWatcher=R(pe,ie,void 0,q),K.childWatches.forEach(Gm),de=!0),K.childWatches=fe||se,de;function ve(X){const Ce=R(X,ie);xe(Ce)}function xe(X){(fe||(fe=[])).push(X)}}function J(q,ye){return vt($8,ie=>Z(q,ie))||LTe(q,ye,t,r)}function Z(q,ye){return q.includes(ye)?!0:t?!1:A(q).includes(ye)}}var gee=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(gee||{});function b9e(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function T9e(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Dp),t(e,s!==Dp?0:2,s)):t(e,1,s)}}function LTe(e,t,r,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&($4(e,t==null?void 0:t.excludeFiles,r,i())||$4(e,t==null?void 0:t.excludeDirectories,r,i()))}function kTe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){const u=l?ya(Qr(e,l)):e;(!l||!LTe(u,r,i,o))&&t(u)}}}function wTe({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:g,realpath:h,tscWatchFile:y,useNonPollingWatchers:E,tscWatchDirectory:A,inodeWatching:R,fsWatchWithTimestamp:N,sysLog:P}){const k=new Map,F=new Map,O=new Map;let G,j,J,Z,q=!1;return{watchFile:ye,watchDirectory:fe};function ye(re,be,Ne,Be){Be=pe(Be,E);const lt=C.checkDefined(Be.watchFile);switch(lt){case 0:return X(re,be,250,void 0);case 1:return X(re,be,Ne,void 0);case 2:return ie()(re,be,Ne,void 0);case 3:return K()(re,be,void 0,void 0);case 4:return Ce(re,0,T9e(re,be,t),!1,Ne,nO(Be));case 5:return J||(J=_9e(Ce,l,t,N)),J(re,be,Ne,nO(Be));default:C.assertNever(lt)}}function ie(){return G||(G=h9e({getModifiedTime:t,setTimeout:r}))}function K(){return j||(j=g9e({getModifiedTime:t,setTimeout:r}))}function pe(re,be){if(re&&re.watchFile!==void 0)return re;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return de(4,1,re);case"UseFsEventsWithFallbackDynamicPolling":return de(4,2,re);case"UseFsEventsOnParentDirectory":be=!0;default:return be?de(5,1,re):{watchFile:4}}}function de(re,be,Ne){const Be=Ne==null?void 0:Ne.fallbackPolling;return{watchFile:re,fallbackPolling:Be===void 0?be:Be}}function fe(re,be,Ne,Be){return d?Ce(re,1,kTe(re,be,Be,l,u),Ne,500,nO(Be)):(Z||(Z=v9e({useCaseSensitiveFileNames:l,getCurrentDirectory:u,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:g,watchDirectory:ve,realpath:h,setTimeout:r,clearTimeout:i})),Z(re,be,Ne,Be))}function ve(re,be,Ne,Be){C.assert(!Ne);const lt=xe(Be),ce=C.checkDefined(lt.watchDirectory);switch(ce){case 1:return X(re,()=>be(re),500,void 0);case 2:return ie()(re,()=>be(re),500,void 0);case 3:return K()(re,()=>be(re),void 0,void 0);case 0:return Ce(re,1,kTe(re,be,Be,l,u),Ne,500,nO(lt));default:C.assertNever(ce)}}function xe(re){if(re&&re.watchDirectory!==void 0)return re;switch(A){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const be=re==null?void 0:re.fallbackPolling;return{watchDirectory:0,fallbackPolling:be!==void 0?be:void 0}}}function X(re,be,Ne,Be){return MTe(k,l,re,be,lt=>e(re,lt,Ne,Be))}function Ce(re,be,Ne,Be,lt,ce){return MTe(Be?O:F,l,re,Ne,Re=>Je(re,be,Re,Be,lt,ce))}function Je(re,be,Ne,Be,lt,ce){let Re,ge;R&&(Re=re.substring(re.lastIndexOf(Js)),ge=Re.slice(Js.length));let je=s(re,be)?We():cn();return{close:()=>{je&&(je.close(),je=void 0)}};function Ge(gn){je&&(P(`sysLog:: ${re}:: Changing watcher to ${gn===We?"Present":"Missing"}FileSystemEntryWatcher`),je.close(),je=gn())}function We(){if(q)return P(`sysLog:: ${re}:: Defaulting to watchFile`),Wt();try{const gn=(be===1||!N?o:Se)(re,Be,R?at:Ne);return gn.on("error",()=>{Ne("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===ge||nl(Kn,Re))){const en=t(re)||Dp;gt&&Ne(gn,gt,en),Ne(gn,Kn,en),R?Ge(en===Dp?cn:We):en===Dp&&Ge(cn)}else gt&&Ne(gn,gt),Ne(gn,Kn)}function Wt(){return ye(re,b9e(Ne),lt,ce)}function cn(){return ye(re,(gn,Kn,gt)=>{Kn===0&&(gt||(gt=t(re)||Dp),gt!==Dp&&(Ne("rename","",gt),Ge(We)))},lt,ce)}}function Se(re,be,Ne){let Be=t(re)||Dp;return o(re,be,(lt,ce,Re)=>{lt==="change"&&(Re||(Re=t(re)||Dp),Re.getTime()===Be.getTime())||(Be=Re||t(re)||Dp,Ne(lt,ce,Be))})}}function OTe(e){const t=e.writeFile;e.writeFile=(r,i,o)=>aV(r,i,!!o,(s,l,u)=>t.call(e,s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s))}var jc=(()=>{let e;return e9(),e})();function WTe(e){jc=e}jc&&jc.getEnvironmentVariable&&(m9e(jc),C.setAssertionLevel(/^development$/i.test(jc.getEnvironmentVariable("NODE_ENV"))?1:0)),jc&&jc.debugMode&&(C.isDebugging=!0);var Js="/",Z8="\\",FTe="://",S9e=/\\/g;function A9(e){return e===47||e===92}function yee(e){return eF(e)<0}function Cp(e){return eF(e)>0}function I9(e){const t=eF(e);return t>0&&t===e.length}function SN(e){return eF(e)!==0}function Zp(e){return/^\.\.?(?:$|[\\/])/.test(e)}function x9(e){return!SN(e)&&!Zp(e)}function NR(e){return Ic(e).includes(".")}function El(e,t){return e.length>t.length&&nl(e,t)}function $l(e,t){for(const r of t)if(El(e,r))return!0;return!1}function ob(e){return e.length>0&&A9(e.charCodeAt(e.length-1))}function zTe(e){return e>=97&&e<=122||e>=65&&e<=90}function E9e(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 eF(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?Js:Z8,2);return i<0?e.length:i+1}if(zTe(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(FTe);if(r!==-1){const i=r+FTe.length,o=e.indexOf(Js,i);if(o!==-1){const s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&zTe(e.charCodeAt(o+1))){const u=E9e(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 Bh(e){const t=eF(e);return t<0?~t:t}function ci(e){e=Bd(e);const t=Bh(e);return t===e.length?e:(e=Yy(e),e.slice(0,Math.max(t,e.lastIndexOf(Js))))}function Ic(e,t,r){if(e=Bd(e),Bh(e)===e.length)return"";e=Yy(e);const o=e.slice(Math.max(Bh(e),e.lastIndexOf(Js)+1)),s=t!==void 0&&r!==void 0?nI(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function BTe(e,t,r){if(fo(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 A9e(e,t,r){if(typeof t=="string")return BTe(e,t,r)||"";for(const i of t){const o=BTe(e,i,r);if(o)return o}return""}function nI(e,t,r){if(t)return A9e(Yy(e),t,r?rb:fS);const i=Ic(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function I9e(e,t){const r=e.substring(0,t),i=e.substring(t).split(Js);return i.length&&!tl(i)&&i.pop(),[r,...i]}function zd(e,t=""){return e=Qr(t,e),I9e(e,Bh(e))}function MT(e,t){return e.length===0?"":(e[0]&&Uc(e[0]))+e.slice(1,t).join(Js)}function Bd(e){return e.includes("\\")?e.replace(S9e,Js):e}function rI(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=Bd(e));for(let r of t)r&&(r=Bd(r),!e||Bh(r)!==0?e=r:e=Uc(e)+r);return e}function ab(e,...t){return ya(vt(t)?Qr(e,...t):Bd(e))}function tF(e,t){return rI(zd(e,t))}function So(e,t){let r=Bh(e);r===0&&t?(e=Qr(t,e),r=Bh(e)):e=Bd(e);const i=GTe(e);if(i!==void 0)return i.length>r?Yy(i):i;const o=e.length,s=e.substring(0,r);let l,u=r,d=u,g=u,h=r!==0;for(;ud&&(l??(l=e.substring(0,d-1)),d=u);let E=e.indexOf(Js,u+1);E===-1&&(E=o);const A=E-d;if(A===1&&e.charCodeAt(u)===46)l??(l=e.substring(0,g));else if(A===2&&e.charCodeAt(u)===46&&e.charCodeAt(u+1)===46)if(!h)l!==void 0?l+=l.length===r?"..":"/..":g=u+2;else if(l===void 0)g-2>=0?l=e.substring(0,Math.max(r,e.lastIndexOf(Js,g-2))):l=e.substring(0,g);else{const R=l.lastIndexOf(Js);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+=Js),h=!0,l+=e.substring(d,E)):(h=!0,g=E);u=E+1}return l??(o>r?Yy(e):e)}function ya(e){e=Bd(e);let t=GTe(e);return t!==void 0?t:(t=So(e,""),t&&ob(e)?Uc(t):t)}function GTe(e){if(!D9.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!D9.test(e)))return e}function x9e(e){return e.length===0?"":e.slice(1).join(Js)}function R9(e,t){return x9e(tF(e,t))}function ks(e,t,r){const i=Cp(e)?ya(e):So(e,t);return r(i)}function Yy(e){return ob(e)?e.substr(0,e.length-1):e}function Uc(e){return ob(e)?e:e+Js}function HE(e){return!SN(e)&&!Zp(e)?"./"+e:e}function E2(e,t,r,i){const o=r!==void 0&&i!==void 0?nI(e,r,i):nI(e);return o?e.slice(0,e.length-o.length)+(fo(t,".")?t:"."+t):e}function nF(e,t){const r=W4(e);return r?e.slice(0,e.length-r.length)+(fo(t,".")?t:"."+t):E2(e,t)}var D9=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function vee(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,Bh(e)),o=t.substring(0,Bh(t)),s=y2(i,o);if(s!==0)return s;const l=e.substring(i.length),u=t.substring(o.length);if(!D9.test(l)&&!D9.test(u))return r(l,u);const d=rI(zd(e)),g=rI(zd(t)),h=Math.min(d.length,g.length);for(let y=1;y0==Bh(t)>0,"Paths must either both be absolute or both be relative");const s=UTe(e,t,(typeof r=="boolean"?r:!1)?rb:fS,typeof r=="function"?r:Vs);return MT(s)}function EN(e,t,r){return Cp(e)?PR(t,e,t,r,!1):e}function MR(e,t,r){return HE(cf(ci(e),t,r))}function PR(e,t,r,i,o){const s=UTe(ab(r,e),ab(r,t),fS,i),l=s[0];if(o&&Cp(l)){const u=l.charAt(0)===Js?"file://":"file:///";s[0]=u+l}return MT(s)}function AN(e,t){for(;;){const r=t(e);if(r!==void 0)return r;const i=ci(e);if(i===e)return;e=i}}function rF(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 Xu(e){return e>=80}function bee(e){return e===32||Xu(e)}var iF={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},R9e=new Map(Object.entries(iF)),HTe=new Map(Object.entries({...iF,"{":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})),qTe=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),D9e=new Map([[1,ed.RegularExpressionFlagsHasIndices],[16,ed.RegularExpressionFlagsDotAll],[32,ed.RegularExpressionFlagsUnicode],[64,ed.RegularExpressionFlagsUnicodeSets],[128,ed.RegularExpressionFlagsSticky]]),C9e=[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],N9e=[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],M9e=[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],P9e=[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],L9e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,k9e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,w9e=/@(?:see|link)/i;function N9(e,t){if(e=2?N9(e,M9e):N9(e,C9e)}function O9e(e,t){return t>=2?N9(e,P9e):N9(e,N9e)}function JTe(e){const t=[];return e.forEach((r,i)=>{t[r]=i}),t}var W9e=JTe(HTe);function ga(e){return W9e[e]}function qE(e){return HTe.get(e)}var F9e=JTe(qTe);function KTe(e){return F9e[e]}function M9(e){return qTe.get(e)}function iI(e){const t=[];let r=0,i=0;for(;r127&&eu(o)&&(t.push(i),i=r);break}}return t.push(i),t}function A2(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):aF(sg(e),t,r,e.text,i)}function aF(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?Qp(e,iI(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 eu(e){return e===10||e===13||e===8232||e===8233}function kR(e){return e>=48&&e<=57}function Tee(e){return kR(e)||e>=65&&e<=70||e>=97&&e<=102}function See(e){return e>=65&&e<=90||e>=97&&e<=122}function XTe(e){return See(e)||kR(e)||e===95}function Eee(e){return e>=48&&e<=55}function Aee(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 ka(e,t,r,i,o){if(dh(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&&lg(l)){t++;continue}break}return t}}var P9=7;function RN(e,t){if(C.assert(t>=0),t===0||eu(e.charCodeAt(t-1))){const r=e.charCodeAt(t);if(t+P9=0&&r127&&lg(R)){y&&eu(R)&&(h=!0),r++;continue}break e}}return y&&(A=o(u,d,g,h,s,A)),A}function x2(e,t,r,i){return L9(!1,e,t,!1,r,i)}function R2(e,t,r,i){return L9(!1,e,t,!0,r,i)}function xee(e,t,r,i,o){return L9(!0,e,t,!1,r,i,o)}function Ree(e,t,r,i,o){return L9(!0,e,t,!0,r,i,o)}function QTe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function cg(e,t){return xee(e,t,QTe,void 0,void 0)}function sb(e,t){return Ree(e,t,QTe,void 0,void 0)}function sF(e){const t=Iee.exec(e);if(t)return t[0]}function D_(e,t){return See(e)||e===36||e===95||e>127&&oF(e,t)}function ty(e,t,r){return XTe(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&O9e(e,t)}function fp(e,t,r){let i=DN(e,0);if(!D_(i,t))return!1;for(let o=oh(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:Ai,scanJsxAttributeValue:Ni,reScanJsxAttributeValue:Pr,reScanJsxToken:or,reScanLessThanToken:Di,reScanHashToken:co,reScanQuestionToken:zt,reScanInvalidIdentifier:ge,scanJsxToken:Zr,scanJsDocToken:Ye,scanJSDocCommentTextToken:Ci,scan:ce,getText:ai,clearCommentDirectives:Hi,setText:$o,setScriptTarget:Pn,setLanguageVariant:Uo,setScriptKind:ot,setJSDocParsingMode:Ft,setOnError:Ia,resetTokenState:le,setTextPos:le,setSkipJsDocLeadingAsterisks:ht,tryScan:ri,lookAhead:dr,scanRange:mn};return C.isDebugging&&Object.defineProperty(O,"__debugShowCurrentPositionInText",{get:()=>{const ne=O.getText();return ne.slice(0,O.getTokenFullStart())+"║"+ne.slice(O.getTokenFullStart())}}),O;function G(ne){return DN(u,ne)}function j(ne){return ne>=0&&ne=0&&ne=65&&Rt<=70)Rt+=32;else if(!(Rt>=48&&Rt<=57||Rt>=97&&Rt<=102))break;dt.push(Rt),d++,Ue=!1}return dt.length=g){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+=Ce(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 X(ne){const Fe=J(d)===96;d++;let it=d,dt="",Lt;for(;;){if(d>=g){dt+=u.substring(it,d),R|=4,q(f.Unterminated_template_literal),Lt=Fe?15:18;break}const Ue=J(d);if(Ue===96){dt+=u.substring(it,d),d++,Lt=Fe?15:18;break}if(Ue===36&&d+1=g)return q(f.Unexpected_end_of_text),"";const it=J(d);switch(d++,it){case 48:if(d>=g||!kR(J(d)))return"\0";case 49:case 50:case 51:d=55296&&dt<=56319&&d+6=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),Ue=!0),d>=g?(ne&&q(f.Unexpected_end_of_text),Ue=!0):J(d)===125?d++:(ne&&q(f.Unterminated_Unicode_escape_sequence),Ue=!0),Ue?(R|=2048,u.substring(Fe,d)):(R|=8,CN(Lt))}function Se(){if(d+5=0&&ty(it,e)){ne+=Je(!0),Fe=d;continue}if(it=Se(),!(it>=0&&ty(it,e)))break;R|=1024,ne+=u.substring(Fe,d),ne+=CN(it),d+=6,Fe=d}else break}return ne+=u.substring(Fe,d),ne}function Ne(){const ne=A.length;if(ne>=2&&ne<=12){const Fe=A.charCodeAt(0);if(Fe>=97&&Fe<=122){const it=R9e.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,!kR(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=RM(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>=g)return E=1;const ne=G(d);if(d===0&&ne===35&&YTe(u,d)){if(d=$Te(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=0&&D_(Fe,e))return A=Je(!0)+be(),E=Ne();const it=Se();return it>=0&&D_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+be(),E=Ne()):(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&&D_(Rt,e))return A="#"+Je(!0)+be(),E=81;const It=Se();if(It>=0&&D_(It,e))return d+=6,R|=1024,A="#"+String.fromCharCode(It)+be(),E=81;d--}return D_(dt,e)?(d++,je(dt,e)):(A="#",q(f.Invalid_character,d++,oh(ne))),E=81;case 65533:return q(f.File_appears_to_be_binary,0,0),d=g,E=8;default:const Lt=je(ne,e);if(Lt)return E=Lt;if(Gh(ne)){d+=oh(ne);continue}else if(eu(ne)){R|=1,d+=oh(ne);continue}const Ue=oh(ne);return q(f.Invalid_character,d,Ue),d+=Ue,E=0}}}function Re(){switch(F){case 0:return!0;case 1:return!1}return k!==3&&k!==4?!0:F===3?!1:w9e.test(u.slice(h,d))}function ge(){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=je(ne,99);return Fe?E=Fe:(d+=oh(ne),E)}function je(ne,Fe){let it=ne;if(D_(it,Fe)){for(d+=oh(it);d=g)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(;d0)break;lg(Fe)||(it=d)}d++}return A=u.substring(h,d),it===-1?13:12}function Ai(){if(Xu(E)){for(;d=g)return E=1;for(let Fe=J(d);d=0&&Gh(J(d-1))&&!(d+1=g)return E=1;const ne=G(d);switch(d+=oh(ne),ne){case 9:case 11:case 12:case 32:for(;d=0&&D_(Fe,e))return A=Je(!0)+be(),E=Ne();const it=Se();return it>=0&&D_(it,e)?(d+=6,R|=1024,A=String.fromCharCode(it)+be(),E=Ne()):(d++,E=0)}if(D_(ne,e)){let Fe=ne;for(;d=0),d=ne,h=ne,y=ne,E=0,A=void 0,R=0}function ht(ne){P+=ne?1:-1}}function DN(e,t){return e.codePointAt(t)}function oh(e){return e>=65536?2:e===-1?0:1}function z9e(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 B9e=String.fromCodePoint?e=>String.fromCodePoint(e):z9e;function CN(e){return B9e(e)}var ZTe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),e0e=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"]),t0e=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"]),D2={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};D2.Script_Extensions=D2.Script;function td(e){return Zp(e)||Cp(e)}function wR(e){return fN(e,vM,k6)}var Dee=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 C2(e){const t=Ga(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 Dee.get(t);default:return"lib.d.ts"}}function Dl(e){return e.start+e.length}function Cee(e){return e.length===0}function k9(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Nee(e,t){return t.start>=e.start&&Dl(t)<=Dl(e)}function w9(e,t){return t.pos>=e.start&&t.end<=Dl(e)}function Mee(e,t){return t.start>=e.pos&&Dl(t)<=e.end}function n0e(e,t){return Pee(e,t)!==void 0}function Pee(e,t){const r=Oee(e,t);return r&&r.length===0?void 0:r}function Lee(e,t){return P2(e.start,e.length,t.start,t.length)}function M2(e,t,r){return P2(e.start,e.length,t,r)}function P2(e,t,r,i){const o=e+t,s=r+i;return r<=o&&s>=e}function kee(e,t){return t<=Dl(e)&&t>=e.start}function wee(e,t){return M2(t,e.pos,e.end-e.pos)}function Oee(e,t){const r=Math.max(e.start,t.start),i=Math.min(Dl(e),Dl(t));return r<=i?oc(r,i):void 0}function O9(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 Bi(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 Bi(e.escapedText)}function KE(e){const t=qE(e.escapedText);return t?ni(t,ep):void 0}function wl(e){return e.valueDeclaration&&nu(e.valueDeclaration)?Kr(e.valueDeclaration.name):Bi(e.escapedName)}function i0e(e){const t=e.parent.parent;if(t){if(rd(t))return z9(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return z9(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(He(i))return i}break;case 218:return z9(t.expression);case 257:{if(rd(t.statement)||St(t.statement))return z9(t.statement);break}}}}function z9(e){const t=Oo(e);return t&&He(t)?t:void 0}function k2(e,t){return!!(nd(e)&&He(e.name)&&Kr(e.name)===Kr(t)||sc(e)&&vt(e.declarationList.declarations,r=>k2(r,t)))}function jee(e){return e.name||i0e(e)}function nd(e){return!!e.name}function cF(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(ac(r)){case 1:case 4:case 5:case 3:return o6(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return jee(e);case 341:return i0e(e);case 278:{const{expression:r}=e;return He(r)?r:void 0}case 213:const t=e;if(i6(t))return t.argumentExpression}return e.name}function Oo(e){if(e!==void 0)return cF(e)||(Us(e)||Xs(e)||uc(e)?dF(e):void 0)}function dF(e){if(e.parent){if(Cc(e.parent)||Ha(e.parent))return e.parent.name;if(Nr(e.parent)&&e===e.parent.right){if(He(e.parent.left))return e.parent.left;if(Ks(e.parent.left))return o6(e.parent.left)}else if(yi(e.parent)&&He(e.parent.name))return e.parent.name}else return}function lb(e){if(pf(e))return Vn(e.modifiers,Wc)}function hS(e){if(di(e,98303))return Vn(e.modifiers,Aa)}function o0e(e,t){if(e.name)if(He(e.name)){const r=e.name.escapedText;return pF(e.parent,t).filter(i=>mf(i)&&He(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=pF(e.parent,t).filter(mf);if(rTm(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Hee(e){return a0e(e,!1)}function qee(e){return a0e(e,!0)}function Jee(e){return!!fm(e,mf)}function Kee(e){return fm(e,QI)}function Xee(e){return fF(e,R4)}function B9(e){return fm(e,Oie)}function s0e(e){return fm(e,Rj)}function Yee(e){return fm(e,Rj,!0)}function l0e(e){return fm(e,Dj)}function $ee(e){return fm(e,Dj,!0)}function c0e(e){return fm(e,Cj)}function Qee(e){return fm(e,Cj,!0)}function d0e(e){return fm(e,Nj)}function Zee(e){return fm(e,Nj,!0)}function ete(e){return fm(e,I4,!0)}function G9(e){return fm(e,Mj)}function tte(e){return fm(e,Mj,!0)}function V9(e){return fm(e,vw)}function uF(e){return fm(e,Pj)}function nte(e){return fm(e,x4)}function u0e(e){return fm(e,Tm)}function j9(e){return fm(e,D4)}function LT(e){const t=fm(e,KM);if(t&&t.typeExpression&&t.typeExpression.type)return t}function $y(e){let t=fm(e,KM);return!t&&to(e)&&(t=hn(OR(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function w2(e){const t=nte(e);if(t&&t.typeExpression)return t.typeExpression.type;const r=LT(e);if(r&&r.typeExpression){const i=r.typeExpression.type;if(wu(i)){const o=hn(i.members,UI);return o&&o.type}if(O_(i)||DD(i))return i.type}}function pF(e,t){var r;if(!Ek(e))return se;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){const o=WG(e,t);C.assert(o.length<2||o[0]!==o[1]),i=Ki(o,s=>mh(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function kT(e){return pF(e,!1)}function fm(e,t,r){return hn(pF(e,r),t)}function fF(e,t){return kT(e).filter(t)}function p0e(e,t){return kT(e).filter(r=>r.kind===t)}function O2(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===322?t.text:V9e(t)).join("")}function V9e(e){const t=e.kind===325?"link":e.kind===326?"linkcode":"linkplain",r=e.name?Mp(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${r}${i}${e.text}}`}function cb(e){if(fv(e)){if(CD(e.parent)){const t=tD(e.parent);if(t&&Ze(t.tags))return Ki(t.tags,r=>Tm(r)?r.typeParameters:void 0)}return se}if(_m(e))return C.assert(e.parent.kind===321),Ki(e.parent.tags,t=>Tm(t)?t.typeParameters:void 0);if(e.typeParameters||Kie(e)&&e.typeParameters)return e.typeParameters;if(Ir(e)){const t=T6(e);if(t.length)return t;const r=$y(e);if(r&&O_(r)&&r.typeParameters)return r.typeParameters}return se}function WR(e){return e.constraint?e.constraint:Tm(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function ug(e){return e.kind===80||e.kind===81}function W2(e){return e.kind===179||e.kind===178}function mF(e){return qr(e)&&!!(e.flags&64)}function U9(e){return Ws(e)&&!!(e.flags&64)}function XE(e){return Zo(e)&&!!(e.flags&64)}function tu(e){const t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function PN(e){return tu(e)&&!XI(e)&&!!e.questionDotToken}function hF(e){return PN(e.parent)&&e.parent.expression===e}function LN(e){return!tu(e.parent)||PN(e.parent)||e!==e.parent.expression}function H9(e){return e.kind===227&&e.operatorToken.kind===61}function Wm(e){return Wp(e)&&He(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Fm(e){return Ul(e,8)}function _F(e){return XI(e)&&!!(e.flags&64)}function kN(e){return e.kind===253||e.kind===252}function q9(e){return e.kind===281||e.kind===280}function wN(e){return e.kind===349||e.kind===342}function gF(e){return e>=167}function J9(e){return e>=0&&e<=166}function oI(e){return J9(e.kind)}function _S(e){return Rs(e,"pos")&&Rs(e,"end")}function ON(e){return 9<=e&&e<=15}function YE(e){return ON(e.kind)}function K9(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function db(e){return 15<=e&&e<=18}function rte(e){return db(e.kind)}function yF(e){const t=e.kind;return t===17||t===18}function ub(e){return Eu(e)||ou(e)}function FR(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 ite(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 Qy(e){return FR(e)||ite(e)}function ote(e){return Dn(e,Qy)!==void 0}function X9(e){return e.kind===11||db(e.kind)}function ate(e){return wa(e)||He(e)}function fl(e){var t;return He(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function $E(e){var t;return eo(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function F2(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function nu(e){return(Po(e)||sI(e))&&eo(e.name)}function zR(e){return qr(e)&&eo(e.name)}function pb(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 WN(e){return!!(II(e)&31)}function Y9(e){return WN(e)||e===126||e===164||e===129}function Aa(e){return pb(e.kind)}function Mu(e){const t=e.kind;return t===167||t===80}function vc(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===168}function QE(e){const t=e.kind;return t===80||t===207||t===208}function Yo(e){return!!e&&aI(e.kind)}function BR(e){return!!e&&(aI(e.kind)||Ql(e))}function Ms(e){return e&&f0e(e.kind)}function FN(e){return e.kind===112||e.kind===97}function f0e(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function aI(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return f0e(e)}}function $9(e){return Yi(e)||n_(e)||ea(e)&&Yo(e.parent)}function bc(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 fb(e){return e&&(e.kind===178||e.kind===179)}function Yu(e){return Po(e)&&Xh(e)}function ste(e){return Ir(e)&&WI(e)?(!IS(e)||!Ab(e.expression))&&!s1(e,!0):e.parent&&ui(e.parent)&&Po(e)&&!Xh(e)}function sI(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function ml(e){return Aa(e)||Wc(e)}function gS(e){const t=e.kind;return t===181||t===180||t===172||t===174||t===182||t===178||t===179||t===355}function vF(e){return gS(e)||bc(e)}function ry(e){const t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function Ri(e){return IV(e.kind)}function lte(e){switch(e.kind){case 185:case 186:return!0}return!1}function Qo(e){if(e){const t=e.kind;return t===208||t===207}return!1}function zN(e){const t=e.kind;return t===210||t===211}function bF(e){const t=e.kind;return t===209||t===233}function z2(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function cte(e){return yi(e)||to(e)||G2(e)||V2(e)}function B2(e){return Q9(e)||Z9(e)}function Q9(e){switch(e.kind){case 207:case 211:return!0}return!1}function G2(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function Z9(e){switch(e.kind){case 208:case 210:return!0}return!1}function V2(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return id(e,!0)}function dte(e){const t=e.kind;return t===212||t===167||t===206}function j2(e){const t=e.kind;return t===212||t===167}function eG(e){return yS(e)||Rb(e)}function yS(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 Vh(e){return e.kind===214||e.kind===215}function lI(e){const t=e.kind;return t===229||t===15}function $u(e){return m0e(Fm(e).kind)}function m0e(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 tG(e){return h0e(Fm(e).kind)}function h0e(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return m0e(e)}}function ute(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 YE(e)}}function St(e){return j9e(Fm(e).kind)}function j9e(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 h0e(e)}}function vS(e){const t=e.kind;return t===217||t===235}function mb(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&mb(e.statement,t)}return!1}function U9e(e){return dl(e)||fc(e)}function fte(e){return vt(e,U9e)}function TF(e){return!Z2(e)&&!dl(e)&&!di(e,32)&&!yu(e)}function U2(e){return Z2(e)||dl(e)||di(e,32)}function ZE(e){return e.kind===250||e.kind===251}function SF(e){return ea(e)||St(e)}function nG(e){return ea(e)}function Of(e){return _d(e)||St(e)}function mte(e){const t=e.kind;return t===269||t===268||t===80}function _0e(e){const t=e.kind;return t===269||t===268}function g0e(e){const t=e.kind;return t===80||t===268}function rG(e){const t=e.kind;return t===276||t===275}function H2(e){return e.kind===268||e.kind===267}function ah(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 C_(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 H9e(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 hte(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 _te(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 rd(e){return e.kind===169?e.parent&&e.parent.kind!==346||Ir(e):H9e(e.kind)}function gte(e){return hte(e.kind)}function q2(e){return _te(e.kind)}function Gi(e){const t=e.kind;return _te(t)||hte(t)||q9e(e)}function q9e(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!ES(e)}function yte(e){const t=e.kind;return _te(t)||hte(t)||t===242}function vte(e){const t=e.kind;return t===284||t===167||t===80}function BN(e){const t=e.kind;return t===110||t===80||t===212||t===296}function J2(e){const t=e.kind;return t===285||t===295||t===286||t===12||t===289}function EF(e){const t=e.kind;return t===292||t===294}function bte(e){const t=e.kind;return t===11||t===295}function ru(e){const t=e.kind;return t===287||t===286}function Tte(e){const t=e.kind;return t===287||t===286||t===290}function AF(e){const t=e.kind;return t===297||t===298}function GR(e){return e.kind>=310&&e.kind<=352}function IF(e){return e.kind===321||e.kind===320||e.kind===322||cI(e)||VR(e)||R1(e)||fv(e)}function VR(e){return e.kind>=328&&e.kind<=352}function jh(e){return e.kind===179}function pg(e){return e.kind===178}function ef(e){if(!Ek(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function xF(e){return!!e.type}function Zy(e){return!!e.initializer}function e1(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function iG(e){return e.kind===292||e.kind===294||ry(e)}function RF(e){return e.kind===184||e.kind===234}var y0e=1073741823;function Ste(e){let t=y0e;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?lo(sb(l,ka(l,s.end+1,!1,!0)),cg(l,e.pos)):sb(l,ka(l,e.pos,!1,!0));return vt(u)&&v0e(Ba(u),t)}const i=r&&xG(r,t);return!!$e(i,o=>v0e(o,t))}var aG=[],hb="tslib",GN=160,sG=1e6,Ate=500;function ll(e,t){const r=e.declarations;if(r){for(const i of r)if(i.kind===t)return i}}function Ite(e,t){return Vn(e.declarations||se,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 fg(e){return(e.flags&33554432)!==0}function dI(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var DF=J9e();function J9e(){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&&lg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:gs,decreaseIndent:gs,clear:()=>e=""}}function CF(e,t){return e.configFilePath!==t.configFilePath||K9e(e,t)}function K9e(e,t){return uI(e,t,eU)}function xte(e,t){return uI(e,t,_oe)}function uI(e,t,r){return e!==t&&r.some(i=>!Y6(F6(e,i),F6(t,i)))}function Rte(e,t){for(;;){const r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Yi(e))return;e=e.parent}}function Hc(e,t){const r=e.entries();for(const[i,o]of r){const s=t(o,i);if(s)return s}}function mg(e,t){const r=e.keys();for(const i of r){const o=t(i);if(o)return o}}function NF(e,t){e.forEach((r,i)=>{t.set(i,r)})}function jR(e){const t=DF.getText();try{return e(DF),DF.getText()}finally{DF.clear(),DF.writeKeyword(t)}}function K2(e){return e.end-e.pos}function lG(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Dte(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&&X9e(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function pI(e){return e.resolvedModule}function MF(e){return e.resolvedTypeReferenceDirective}function PF(e,t,r,i,o){var s;const l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,u=l&&(iu(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(Dg+"@types/")?`@types/${GD(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,GD(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,GD(o));return d&&(d.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),d}function cG(e){const t=Eg(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 X9e(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function LF({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function wT(e){return`${LF(e)}@${e.version}${e.peerDependencies??""}`}function Cte(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 dG(e,t,r,i){C.assert(e.length===t.length);for(let o=0;o=0),sg(t)[e]}function b0e(e){const t=Fn(e),r=ca(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function Y2(e,t){C.assert(e>=0);const r=sg(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(eu(o.charCodeAt(l)));s<=l&&eu(o.charCodeAt(l));)l--;return l}}function kF(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function Ol(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function mm(e){return!Ol(e)}function Mte(e,t){return cl(e)?t===e.expression:Ql(e)?t===e.modifiers:Su(e)?t===e.initializer:Po(e)?t===e.questionToken&&Yu(e):Cc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||$2(e.modifiers,t,ml):Ud(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||$2(e.modifiers,t,ml):Nl(e)?t===e.exclamationToken:Ml(e)?t===e.typeParameters||t===e.type||$2(e.typeParameters,t,cl):Hf(e)?t===e.typeParameters||$2(e.typeParameters,t,cl):gp(e)?t===e.typeParameters||t===e.type||$2(e.typeParameters,t,cl):yw(e)?t===e.modifiers||$2(e.modifiers,t,ml):!1}function $2(e,t,r){return!e||Mo(t)||!r(t)?!1:Ln(e,t)}function T0e(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 Co(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 gb(e,t,r){if(Ol(e))return e.pos;if(GR(e)||e.kind===12)return ka((t??Fn(e)).text,e.pos,!1,!0);if(r&&ef(e))return gb(e.jsDoc[0],t);if(e.kind===353){t??(t=Fn(e));const i=Ac(Lj(e,t));if(i)return gb(i,t,r)}return ka((t??Fn(e)).text,e.pos,!1,!1,YN(e))}function fG(e,t){const r=!Ol(e)&&Sm(e)?ma(e.modifiers,Wc):void 0;return r?ka((t||Fn(e)).text,r.end):gb(e,t)}function Lte(e,t){const r=!Ol(e)&&Sm(e)&&e.modifiers?Ba(e.modifiers):void 0;return r?ka((t||Fn(e)).text,r.end):gb(e,t)}function bS(e,t,r=!1){return jN(e.text,t,r)}function $9e(e){return!!Dn(e,t0)}function OF(e){return!!(fc(e)&&e.exportClause&&W_(e.exportClause)&&M_(e.exportClause.name))}function yb(e){return e.kind===11?e.text:Bi(e.escapedText)}function TS(e){return e.kind===11?Cl(e.text):e.escapedText}function M_(e){return(e.kind===11?e.text:e.escapedText)==="default"}function jN(e,t,r=!1){if(Ol(t))return"";let i=e.substring(r?t.pos:ka(e,t.pos),t.end);return $9e(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(` `)),i}function Al(e,t=!1){return bS(Fn(e),e,t)}function Q9e(e){return e.pos}function UR(e,t){return Zv(e,t,Q9e,js)}function Qa(e){const t=e.emitNode;return t&&t.flags||0}function zm(e){const t=e.emitNode;return t&&t.internalFlags||0}var mG=Nu(()=>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:se})),AsyncIterator:new Map(Object.entries({es2015:se})),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:se})),AsyncIterableIterator:new Map(Object.entries({es2018:se})),AsyncGenerator:new Map(Object.entries({es2018:se})),AsyncGeneratorFunction:new Map(Object.entries({es2018:se})),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:se,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:se})),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:se})),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:se,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),BigUint64Array:new Map(Object.entries({es2020:se,es2022:["at"],es2023:["findLastIndex","findLast","toReversed","toSorted","toSpliced","with"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),kte=(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))(kte||{});function wte(e,t,r){if(t&&Z9e(e,r))return bS(t,e);switch(e.kind){case 11:{const i=r&2?eV:r&1||Qa(e)&16777216?w_:f6;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=r&1||Qa(e)&16777216?w_:f6,o=e.rawText??QG(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 Z9e(e,t){if(Os(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(np(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!yD(e)}function Ote(e){return Bo(e)?`"${w_(e)}"`:""+e}function Wte(e){return Ic(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function hG(e){return(ny(e)&7)!==0||_G(e)}function _G(e){const t=Kh(e);return t.kind===261&&t.parent.kind===300}function yu(e){return pc(e)&&(e.name.kind===11||P_(e))}function WF(e){return pc(e)&&e.name.kind===11}function gG(e){return pc(e)&&wa(e.name)}function eGe(e){return pc(e)||He(e)}function Q2(e){return tGe(e.valueDeclaration)}function tGe(e){return!!e&&e.kind===268&&!e.body}function Fte(e){return e.kind===308||e.kind===268||BR(e)}function P_(e){return!!(e.flags&2048)}function SS(e){return yu(e)&&yG(e)}function yG(e){switch(e.parent.kind){case 308:return zc(e.parent);case 269:return yu(e.parent.parent)&&Yi(e.parent.parent.parent)&&!zc(e.parent.parent.parent)}return!1}function vG(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!SS(r)&&!(pc(r)&&P_(r)))}function nGe(e){return e===1||100<=e&&e<=199}function HR(e,t){return zc(e)||nGe(bu(t))&&!!e.commonJsModuleIndicator}function bG(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(Vd(t,"alwaysStrict")||Hie(e.statements)||zc(e)||vm(t))}function TG(e){return!!(e.flags&33554432)||di(e,128)}function SG(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!BR(t)}return!1}function EG(e){switch(C.type(e),e.kind){case 339:case 347:case 324:return!0;default:return AG(e)}}function AG(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 mI(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function zte(e){return mI(e)||AS(e)}function Bte(e){return mI(e)||fk(e)}function FF(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 Gte(e){return Z2(e)||pc(e)||t_(e)||Qu(e)}function Z2(e){return mI(e)||fc(e)}function zF(e){return Dn(e.parent,t=>!!(DU(t)&1))}function sh(e){return Dn(e.parent,t=>SG(t,t.parent))}function Vte(e,t){let r=sh(e);for(;r;)t(r),r=sh(r)}function ws(e){return!e||K2(e)===0?"(Missing)":Al(e)}function jte(e){return e.declaration?ws(e.declaration.parameters[0].name):void 0}function ek(e){return e.kind===168&&!uf(e.expression)}function UN(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 Cl(e.text);case 168:return uf(e.expression)?Cl(e.expression.text):void 0;case 296:return OI(e);default:return C.assertNever(e)}}function hI(e){return C.checkDefined(UN(e))}function Mp(e){switch(e.kind){case 110:return"this";case 81:case 80:return K2(e)===0?Kr(e):Al(e);case 167:return Mp(e.left)+"."+Mp(e.right);case 212:return He(e.name)||eo(e.name)?Mp(e.expression)+"."+Mp(e.name):C.assertNever(e.name);case 312:return Mp(e.left)+"#"+Mp(e.right);case 296:return Mp(e.namespace)+":"+Mp(e.name);default:return C.assertNever(e)}}function Ar(e,t,...r){const i=Fn(e);return Wf(i,e,t,...r)}function qR(e,t,r,...i){const o=ka(e.text,t.pos);return Oc(e,o,t.end-o,r,...i)}function Wf(e,t,r,...i){const o=n1(e,t);return Oc(e,o.start,o.length,r,...i)}function _g(e,t,r,i){const o=n1(e,t);return BF(e,o.start,o.length,r,i)}function tk(e,t,r,i){const o=ka(e.text,t.pos);return BF(e,o,t.end-o,r,i)}function Ute(e,t,r){C.assertGreaterThanOrEqual(t,0),C.assertGreaterThanOrEqual(r,0),C.assertLessThanOrEqual(t,e.length),C.assertLessThanOrEqual(t+r,e.length)}function BF(e,t,r,i,o){return Ute(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 IG(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 Hte(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function qte(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Jte(e,...t){return{code:e.code,messageText:MI(e,...t)}}function Uh(e,t){const r=dg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();const i=r.getTokenStart();return oc(i,r.getTokenEnd())}function Kte(e,t){const r=dg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function rGe(e,t){const r=ka(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 oc(s,l)}case 254:case 230:{const s=ka(e.text,t.pos);return Uh(e,s)}case 239:{const s=ka(e.text,t.expression.end);return Uh(e,s)}case 351:{const s=ka(e.text,t.tagName.pos);return Uh(e,s)}case 177:{const s=t,l=ka(e.text,s.pos),u=dg(e.languageVersion,!0,e.languageVariant,e.text,void 0,l);let d=u.scan();for(;d!==137&&d!==1;)d=u.scan();const g=u.getTokenEnd();return oc(l,g)}}if(r===void 0)return Uh(e,t.pos);C.assert(!mh(r));const i=Ol(r),o=i||BI(t)?r.pos:ka(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")),oc(o,r.end)}function ev(e){return e.kind===308&&!Pp(e)}function Pp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Ff(e){return e.scriptKind===6}function OT(e){return!!(PT(e)&4096)}function nk(e){return!!(PT(e)&8&&!Np(e,e.parent))}function rk(e){return(ny(e)&7)===6}function ik(e){return(ny(e)&7)===4}function JR(e){return(ny(e)&7)===2}function Xte(e){const t=ny(e)&7;return t===2||t===4||t===6}function GF(e){return(ny(e)&7)===1}function r1(e){return e.kind===214&&e.expression.kind===108}function Qu(e){if(e.kind!==214)return!1;const t=e.expression;return t.kind===102||E1(t)&&t.keywordToken===102&&t.name.escapedText==="defer"}function KR(e){return E1(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function iy(e){return t_(e)&&uv(e.argument)&&wa(e.argument.literal)}function Hh(e){return e.kind===245&&e.expression.kind===11}function ok(e){return!!(Qa(e)&2097152)}function VF(e){return ok(e)&&Zl(e)}function iGe(e){return He(e.name)&&!e.initializer}function jF(e){return ok(e)&&sc(e)&&Hn(e.declarationList.declarations,iGe)}function xG(e,t){return e.kind!==12?cg(t.text,e.pos):void 0}function RG(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?lo(sb(t,e.pos),cg(t,e.pos)):cg(t,e.pos);return Vn(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 oGe=/^\/\/\/\s*/,aGe=/^\/\/\/\s*/,sGe=/^\/\/\/\s*/,lGe=/^\/\/\/\s*/,cGe=/^\/\/\/\s*/,dGe=/^\/\/\/\s*/;function qh(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 I0e(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 I0e(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 Ln(t.typeArguments,e)}}}return!1}function I0e(e){return R4(e.parent)||QI(e.parent)||Fp(e.parent)&&!A6(e)}function vb(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 Yte(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(Yo(i)){if(i.name&&i.name.kind===168){r(i.name.expression);return}}else qh(i)||Jo(i,r)}}}function DG(e){return e&&e.kind===189?e.elementType:e&&e.kind===184?ag(e.typeArguments):void 0}function $te(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function HN(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 Qte(e){return Ir(e)?Fa(e.parent)&&Nr(e.parent.parent)&&ac(e.parent.parent)===2||UF(e.parent):!1}function UF(e){return Ir(e)?Nr(e)&&ac(e)===1:!1}function Zte(e){return(yi(e)?JR(e)&&He(e.name)&&qN(e):Po(e)?p1(e)&&wc(e):Su(e)&&p1(e))||UF(e)}function ene(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function CG(e,t){for(;;){if(t&&t(e),e.statement.kind!==257)return e.statement;e=e.statement}}function ES(e){return e&&e.kind===242&&Yo(e.parent)}function hm(e){return e&&e.kind===175&&e.parent.kind===211}function HF(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 nne(e){return e&&e.kind===0}function XR(e,t,r,i){return $e(e==null?void 0:e.properties,o=>{if(!Cc(o))return;const s=UN(o.name);return t===s||i&&i===s?r(o):void 0})}function JN(e){if(e&&e.statements.length){const t=e.statements[0].expression;return ni(t,Fa)}}function qF(e,t,r){return ak(e,t,i=>Cd(i.initializer)?hn(i.initializer.elements,o=>wa(o)&&o.text===r):void 0)}function ak(e,t,r){return XR(JN(e),t,r)}function df(e){return Dn(e.parent,Yo)}function rne(e){return Dn(e.parent,Ms)}function hd(e){return Dn(e.parent,ui)}function ine(e){return Dn(e.parent,t=>ui(t)||Yo(t)?"quit":Ql(t))}function JF(e){return Dn(e.parent,BR)}function KF(e){const t=Dn(e.parent,r=>ui(r)?"quit":Wc(r));return t&&ui(t.parent)?hd(t.parent):hd(t??e)}function vu(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&&bc(e.parent.parent)?e=e.parent.parent:bc(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 one(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 XF(e){He(e)&&(Dc(e.parent)||Zl(e.parent))&&e.parent.name===e&&(e=e.parent);const t=vu(e,!0,!1);return Yi(t)}function ane(e){const t=vu(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function sk(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&&bc(e.parent.parent)?e=e.parent.parent:bc(e.parent)&&(e=e.parent);break}}}function WT(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 mp(e){const t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function lk(e){const t=e.kind;return(t===212||t===213)&&e.expression.kind===110}function YF(e){var t;return!!e&&yi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function sne(e){return!!e&&(Ud(e)||Cc(e))&&Nr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function ck(e){switch(e.kind){case 184:return e.typeName;case 234:return Ds(e.expression)?e.expression:void 0;case 80:case 167:return e}}function $F(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 dk(e,t,r,i){if(e&&nd(t)&&eo(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return r!==void 0&&(e?Dc(r):ui(r)&&!LS(t)&&!dV(t));case 178:case 179:case 175:return t.body!==void 0&&r!==void 0&&(e?Dc(r):ui(r));case 170:return e?r!==void 0&&r.body!==void 0&&(r.kind===177||r.kind===175||r.kind===179)&&NS(r)!==t&&i!==void 0&&i.kind===264:!1}return!1}function YR(e,t,r,i){return pf(t)&&dk(e,t,r,i)}function uk(e,t,r,i){return YR(e,t,r,i)||KN(e,t,r)}function KN(e,t,r){switch(t.kind){case 264:return vt(t.members,i=>uk(e,i,t,r));case 232:return!e&&vt(t.members,i=>uk(e,i,t,r));case 175:case 179:case 177:return vt(t.parameters,i=>YR(e,i,t,r));default:return!1}}function tv(e,t){if(YR(e,t))return!0;const r=vg(t);return!!r&&KN(e,r,t)}function NG(e,t,r){let i;if(fb(t)){const{firstAccessor:o,secondAccessor:s,setAccessor:l}=PS(r.members,t),u=pf(o)?o:s&&pf(s)?s:void 0;if(!u||t!==u)return!1;i=l==null?void 0:l.parameters}else Nl(t)&&(i=t.parameters);if(YR(e,t,r))return!0;if(i){for(const o of i)if(!Sb(o)&&YR(e,o,t,r))return!0}return!1}function MG(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return MG(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function $R(e){const{parent:t}=e;return t.kind===287||t.kind===286||t.kind===288?t.tagName===e:!1}function L_(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!Qu(e.parent)||e.parent.expression!==e;case 234:return!Fp(e.parent)&&!QI(e.parent);case 167:for(;e.parent.kind===167;)e=e.parent;return e.parent.kind===187||cI(e.parent)||JM(e.parent)||n0(e.parent)||$R(e);case 312:for(;n0(e.parent);)e=e.parent;return e.parent.kind===187||cI(e.parent)||JM(e.parent)||n0(e.parent)||$R(e);case 81:return Nr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===187||cI(e.parent)||JM(e.parent)||n0(e.parent)||$R(e))return!0;case 9:case 10:case 11:case 15:case 110:return QF(e);default:return!1}}function QF(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&&!qh(t);case 305:return t.objectAssignmentInitializer===e;case 239:return e===t.expression;default:return L_(t)}}function ZF(e){for(;e.kind===167||e.kind===80;)e=e.parent;return e.kind===187}function lne(e){return W_(e)&&!!e.parent.moduleSpecifier}function FT(e){return e.kind===272&&e.moduleReference.kind===284}function XN(e){return C.assert(FT(e)),e.moduleReference.expression}function PG(e){return AS(e)&&dD(e.initializer).arguments[0]}function i1(e){return e.kind===272&&e.moduleReference.kind!==284}function gg(e){return(e==null?void 0:e.kind)===308}function Pu(e){return Ir(e)}function Ir(e){return!!e&&!!(e.flags&524288)}function e6(e){return!!e&&!!(e.flags&134217728)}function t6(e){return!Ff(e)}function YN(e){return!!e&&!!(e.flags&16777216)}function n6(e){return Wp(e)&&He(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Zu(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 pk(e){return x0e(e,!1)}function AS(e){return x0e(e,!0)}function cne(e){return Ha(e)&&AS(e.parent.parent)}function x0e(e,t){return yi(e)&&!!e.initializer&&Zu(t?dD(e.initializer):e.initializer,!0)}function fk(e){return sc(e)&&e.declarationList.declarations.length>0&&Hn(e.declarationList.declarations,t=>pk(t))}function mk(e){return e===39||e===34}function r6(e,t){return bS(t,e).charCodeAt(0)===34}function $N(e){return Nr(e)||Ks(e)||He(e)||Zo(e)}function hk(e){return Ir(e)&&e.initializer&&Nr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Ds(e.name)&&QR(e.name,e.initializer.left)?e.initializer.right:e.initializer}function QN(e){const t=hk(e);return t&&zT(t,Ab(e.name))}function uGe(e,t){return $e(e.properties,r=>Cc(r)&&He(r.name)&&r.name.escapedText==="value"&&r.initializer&&zT(r.initializer,t))}function _I(e){if(e&&e.parent&&Nr(e.parent)&&e.parent.operatorToken.kind===64){const t=Ab(e.parent.left);return zT(e.parent.right,t)||pGe(e.parent.left,e.parent.right,t)}if(e&&Zo(e)&&a1(e)){const t=uGe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function zT(e,t){if(Zo(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||Fa(e)&&(e.properties.length===0||t))return e}function pGe(e,t,r){const i=Nr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&zT(t.right,r);if(i&&QR(e,t.left))return i}function dne(e){const t=yi(e.parent)?e.parent.name:Nr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&zT(e.right,Ab(t))&&Ds(t)&&QR(t,e.left)}function LG(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&&He(t.left))return t.left}else if(yi(e.parent))return e.parent.name}function QR(e,t){return Jh(e)&&Jh(t)?zf(e)===zf(t):ug(e)&&une(t)&&(t.expression.kind===110||He(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?QR(e,gk(t)):une(e)&&une(t)?oy(e)===oy(t)&&QR(e.expression,t.expression):!1}function _k(e){for(;id(e,!0);)e=e.right;return e}function o1(e){return He(e)&&e.escapedText==="exports"}function kG(e){return He(e)&&e.escapedText==="module"}function yg(e){return(qr(e)||wG(e))&&kG(e.expression)&&oy(e)==="exports"}function ac(e){const t=fGe(e);return t===5||Ir(e)?t:0}function a1(e){return Ze(e.arguments)===3&&qr(e.expression)&&He(e.expression.expression)&&Kr(e.expression.expression)==="Object"&&Kr(e.expression.name)==="defineProperty"&&uf(e.arguments[1])&&s1(e.arguments[0],!0)}function une(e){return qr(e)||wG(e)}function wG(e){return Ws(e)&&uf(e.argumentExpression)}function IS(e,t){return qr(e)&&(!t&&e.expression.kind===110||He(e.name)&&s1(e.expression,!0))||i6(e,t)}function i6(e,t){return wG(e)&&(!t&&e.expression.kind===110||Ds(e.expression)||IS(e.expression,!0))}function s1(e,t){return Ds(e)||IS(e,t)}function gk(e){return qr(e)?e.name:e.argumentExpression}function fGe(e){if(Zo(e)){if(!a1(e))return 0;const t=e.arguments[0];return o1(t)||yg(t)?8:IS(t)&&oy(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!Ks(e.left)||mGe(_k(e))?0:s1(e.left.expression,!0)&&oy(e.left)==="prototype"&&Fa(OG(e))?6:yk(e.left)}function mGe(e){return KI(e)&&np(e.expression)&&e.expression.text==="0"}function o6(e){if(qr(e))return e.name;const t=us(e.argumentExpression);return np(t)||ds(t)?t:e}function oy(e){const t=o6(e);if(t){if(He(t))return t.escapedText;if(ds(t)||np(t))return Cl(t.text)}}function yk(e){if(e.expression.kind===110)return 4;if(yg(e))return 2;if(s1(e.expression,!0)){if(Ab(e.expression))return 3;let t=e;for(;!He(t.expression);)t=t.expression;const r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&oy(t)==="exports")&&IS(e))return 1;if(s1(e,!0)||Ws(e)&&u6(e))return 5}return 0}function OG(e){for(;Nr(e.right);)e=e.right;return e.right}function vk(e){return Nr(e)&&ac(e)===3}function pne(e){return Ir(e)&&e.parent&&e.parent.kind===245&&(!Ws(e)||wG(e))&&!!LT(e.parent)}function ZN(e,t){const{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Ir(t)&&!(r.flags&33554432))&&$N(r)&&!$N(t)||r.kind!==t.kind&&eGe(r))&&(e.valueDeclaration=t)}function fne(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===263||yi(t)&&t.initializer&&Yo(t.initializer)}function mne(e){switch(e==null?void 0:e.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function gI(e){var t,r;switch(e.kind){case 261:case 209:return(t=Dn(e.initializer,i=>Zu(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,py))==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 iy(e)?e.argument.literal:void 0;default:C.assertNever(e)}}function eM(e){return bk(e)||C.failBadSyntaxKind(e.parent)}function bk(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return Qu(e.parent)||Zu(e.parent,!1)?e.parent:void 0;case 202:if(!wa(e))break;return ni(e.parent.parent,t_);default:return}}function Tk(e,t){return!!t.rewriteRelativeImportExtensions&&Zp(e)&&!ad(e)&&m1(e)}function yI(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 iy(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 ZR(e){switch(e.kind){case 273:return e.importClause&&ni(e.importClause.namedBindings,xg);case 272:return e;case 279:return e.exportClause&&ni(e.exportClause,W_);default:return C.assertNever(e)}}function l1(e){return(e.kind===273||e.kind===352)&&!!e.importClause&&!!e.importClause.name}function hne(e,t){if(e.name){const r=t(e);if(r)return r}if(e.namedBindings){const r=xg(e.namedBindings)?t(e.namedBindings):$e(e.namedBindings.elements,t);if(r)return r}}function vI(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 bI(e){const t=DD(e)?Ac(e.parameters):void 0,r=ni(t&&t.name,He);return!!r&&r.escapedText==="new"}function _m(e){return e.kind===347||e.kind===339||e.kind===341}function Sk(e){return _m(e)||bm(e)}function hGe(e){return od(e)&&Nr(e.expression)&&e.expression.operatorToken.kind===64?_k(e.expression):void 0}function R0e(e){return od(e)&&Nr(e.expression)&&ac(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 D0e(e){switch(e.kind){case 244:const t=TI(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function TI(e){return sc(e)?Ac(e.declarationList.declarations):void 0}function C0e(e){return pc(e)&&e.body&&e.body.kind===268?e.body:void 0}function eD(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 Ek(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 WG(e,t){let r;HN(e)&&Zy(e)&&ef(e.initializer)&&(r=Xr(r,N0e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(ef(i)&&(r=Xr(r,N0e(e,i.jsDoc))),i.kind===170){r=Xr(r,(t?Uee:OR)(i));break}if(i.kind===169){r=Xr(r,(t?qee:Hee)(i));break}i=FG(i)}return r||se}function N0e(e,t){const r=Ba(t);return Ki(t,i=>{if(i===r){const o=Vn(i.tags,s=>_Ge(e,s));return i.tags===o?[i]:o}else return Vn(i.tags,CD)})}function _Ge(e,t){return!(KM(t)||D4(t))||!t.parent||!mh(t.parent)||!Ou(t.parent.parent)||t.parent.parent===e}function FG(e){const t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||C0e(t)||id(e))return t;if(t.parent&&(TI(t.parent)===e||id(t)))return t.parent;if(t.parent&&t.parent.parent&&(TI(t.parent.parent)||D0e(t.parent.parent)===e||R0e(t.parent.parent)))return t.parent.parent}function Ak(e){if(e.symbol)return e.symbol;if(!He(e.name))return;const t=e.name.escapedText,r=BT(e);if(!r)return;const i=hn(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function a6(e){if(mh(e.parent)&&e.parent.tags){const t=hn(e.parent.tags,_m);if(t)return t}return BT(e)}function zG(e){return fF(e,CD)}function BT(e){const t=GT(e);if(t)return Su(t)&&t.type&&Yo(t.type)?t.type:Yo(t)?t:void 0}function GT(e){const t=xS(e);if(t)return R0e(t)||hGe(t)||D0e(t)||TI(t)||C0e(t)||t}function xS(e){const t=tD(e);if(!t)return;const r=t.parent;if(r&&r.jsDoc&&t===tl(r.jsDoc))return r}function tD(e){return Dn(e.parent,mh)}function _ne(e){const t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&hn(r,i=>i.name.escapedText===t)}function M0e(e){return!!e.typeArguments}var gne=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(gne||{});function yne(e){let t=e.parent;for(;;){switch(t.kind){case 227:const r=t,i=r.operatorToken.kind;return ly(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 bb(e){const t=yne(e);if(!t)return 0;switch(t.kind){case 227:const r=t.operatorToken.kind;return r===64||pM(r)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function Tb(e){return!!yne(e)}function gGe(e){const t=us(e.right);return t.kind===227&&Uj(t.operatorToken.kind)}function BG(e){const t=yne(e);return!!t&&id(t,!0)&&gGe(t)}function vne(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 c1(e){return Us(e)||Xs(e)||sI(e)||Zl(e)||Ml(e)}function P0e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Ik(e){return P0e(e,197)}function Bm(e){return P0e(e,218)}function bne(e){let t;for(;e&&e.kind===197;)t=e,e=e.parent;return[t,e]}function tM(e){for(;b1(e);)e=e.type;return e}function us(e,t){return Ul(e,t?-2147483647:1)}function GG(e){return e.kind!==212&&e.kind!==213?!1:(e=Bm(e.parent),e&&e.kind===221)}function RS(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function k_(e){return!Yi(e)&&!Qo(e)&&rd(e.parent)&&e.parent.name===e}function nM(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(va(t))return t.parent;case 80:if(rd(t))return t.name===e?t:void 0;if(ku(t)){const r=t.parent;return mf(r)&&r.name===t?r:void 0}else{const r=t.parent;return Nr(r)&&ac(r)!==0&&(r.left.symbol||r.symbol)&&Oo(r)===e?r:void 0}case 81:return rd(t)&&t.name===e?t:void 0;default:return}}function xk(e){return uf(e)&&e.parent.kind===168&&rd(e.parent.parent)}function Tne(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 VG(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 VG(e)}}function s6(e){return Ds(e)||uc(e)}function Rk(e){const t=jG(e);return s6(t)}function jG(e){return dl(e)?e.expression:e.right}function Sne(e){return e.kind===305?e.name:e.kind===304?e.initializer:e.parent.right}function lh(e){const t=DS(e);if(t&&Ir(e)){const r=Kee(e);if(r)return r.class}return t}function DS(e){const t=Dk(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function nD(e){if(Ir(e))return Xee(e).map(t=>t.class);{const t=Dk(e.heritageClauses,119);return t==null?void 0:t.types}}function rM(e){return gd(e)?iM(e)||se:ui(e)&&lo(eI(lh(e)),nD(e))||se}function iM(e){const t=Dk(e.heritageClauses,96);return t?t.types:void 0}function Dk(e,t){if(e){for(const r of e)if(r.token===t)return r}}function VT(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function ep(e){return 83<=e&&e<=166}function UG(e){return 19<=e&&e<=79}function l6(e){return ep(e)||UG(e)}function c6(e){return 128<=e&&e<=166}function HG(e){return ep(e)&&!c6(e)}function SI(e){const t=qE(e);return t!==void 0&&HG(t)}function qG(e){const t=KE(e);return!!t&&!c6(t)}function rD(e){return 2<=e&&e<=7}var Ene=(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))(Ene||{});function dc(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 oM(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 uf(e){return ds(e)||np(e)}function d6(e){return YT(e)&&(e.operator===40||e.operator===41)&&np(e.operand)}function ay(e){const t=Oo(e);return!!t&&u6(t)}function u6(e){if(!(e.kind===168||e.kind===213))return!1;const t=Ws(e)?us(e.argumentExpression):e.expression;return!uf(t)&&!d6(t)}function d1(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return Cl(e.text);case 168:const t=e.expression;return uf(t)?Cl(t.text):d6(t)?t.operator===41?ga(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return OI(e);default:return C.assertNever(e)}}function Jh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function zf(e){return ug(e)?Kr(e):fh(e)?LM(e):e.text}function aM(e){return ug(e)?e.escapedText:fh(e)?OI(e):Cl(e.text)}function Ck(e,t){return`__#${Ta(e)}@${t}`}function sM(e){return fo(e.escapedName,"__@")}function Ane(e){return fo(e.escapedName,"__#")}function yGe(e){return He(e)?Kr(e)==="__proto__":wa(e)&&e.text==="__proto__"}function p6(e,t){switch(e=Ul(e),e.kind){case 232:if($U(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 JG(e){switch(e.kind){case 304:return!yGe(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return He(e.name)&&!!e.initializer;case 170:return He(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 209:return He(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 He(e.left)}break;case 278:return!0}return!1}function Lp(e,t){if(!JG(e))return!1;switch(e.kind){case 304:return p6(e.initializer,t);case 305:return p6(e.objectAssignmentInitializer,t);case 261:case 170:case 209:case 173:return p6(e.initializer,t);case 227:return p6(e.right,t);case 278:return p6(e.expression,t)}}function KG(e){return e.escapedText==="push"||e.escapedText==="unshift"}function jT(e){return Kh(e).kind===170}function Kh(e){for(;e.kind===209;)e=e.parent.parent;return e}function XG(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 Os(e){return dh(e.pos)||dh(e.end)}var Ine=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Ine||{});function YG(e){const t=L0e(e),r=e.kind===215&&e.arguments!==void 0;return $G(e.kind,t,r)}function $G(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 lM(e){const t=L0e(e),r=e.kind===215&&e.arguments!==void 0;return Nk(e.kind,t,r)}function L0e(e){return e.kind===227?e.operatorToken.kind:e.kind===225||e.kind===226?e.operator:e.kind}var xne=(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))(xne||{});function Nk(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 Mk(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 Mk(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 iD(e){return Vn(e,t=>{switch(t.kind){case 295:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function cM(){let e=[];const t=[],r=new Map;let i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:u};function o(d){let g;if(d.file?g=r.get(d.file.fileName):g=e,!g)return;const h=Zv(g,d,Vs,sre);if(h>=0)return g[h];if(~h>0&&k6(d,g[~h-1]))return g[~h-1]}function s(d){let g;d.file?(g=r.get(d.file.fileName),g||(g=[],r.set(d.file.fileName,g),$v(t,d.file.fileName,Wd))):(i&&(i=!1,e=e.slice()),g=e),$v(g,d,sre,k6)}function l(){return i=!0,e}function u(d){if(d)return r.get(d)||[];const g=ic(t,h=>r.get(h));return e.length&&g.unshift(...e),g}}var vGe=/\$\{/g;function QG(e){return e.replace(vGe,"\\${")}function Rne(e){return!!((e.templateFlags||0)&2048)}function ZG(e){return e&&!!(y1(e)?Rne(e):Rne(e.head)||vt(e.templateSpans,t=>Rne(t.literal)))}var bGe=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,TGe=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,SGe=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,EGe=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 k0e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function AGe(e,t,r){if(e.charCodeAt(0)===0){const i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return EGe.get(e)||k0e(e.charCodeAt(0))}function w_(e,t){const r=t===96?SGe:t===39?TGe:bGe;return e.replace(r,AGe)}var w0e=/[^\u0000-\u007F]/g;function f6(e,t){return e=w_(e,t),w0e.test(e)?e.replace(w0e,r=>k0e(r.charCodeAt(0))):e}var IGe=/["\u0000-\u001f\u2028\u2029\u0085]/g,xGe=/['\u0000-\u001f\u2028\u2029\u0085]/g,RGe=new Map(Object.entries({'"':""","'":"'"}));function DGe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function CGe(e){return e.charCodeAt(0)===0?"�":RGe.get(e)||DGe(e.charCodeAt(0))}function eV(e,t){const r=t===39?xGe:IGe;return e.replace(r,CGe)}function gm(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&NGe(e.charCodeAt(0))?e.substring(1,t-1):e}function NGe(e){return e===39||e===34||e===96}function oD(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Pk=[""," "];function m6(e){const t=Pk[1];for(let r=Pk.length;r<=e;r++)Pk.push(Pk[r-1]+t);return Pk[e]}function Lk(){return Pk[1].length}function kk(e){var t,r,i,o,s,l=!1;function u(N){const P=iI(N);P.length>1?(o=o+P.length-1,s=t.length-N.length+Ba(P),i=s-t.length===0):i=!1}function d(N){N&&N.length&&(i&&(N=m6(r)+N,i=!1),t+=N,u(N))}function g(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&&g(N)}function R(N){(!i||N)&&(t+=e,o++,s=t.length,i=!0,l=!1)}return y(),{write:g,rawWrite:E,writeLiteral:A,writeLine:R,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*Lk():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&lg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(N,P)=>g(N),writeTrailingSemicolon:g,writeComment:h}}function tV(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 u1(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function sy(e){return Fd(u1(e))}function nV(e,t,r){return t.moduleName||rV(e,t.fileName,r&&r.fileName)}function O0e(e,t){return e.getCanonicalFileName(So(t,e.getCurrentDirectory()))}function Dne(e,t,r){const i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;const o=yI(r);if(!(o&&ds(o)&&!Zp(o.text)&&!O0e(e,i.path).includes(O0e(e,Uc(e.getCommonSourceDirectory())))))return nV(e,i)}function rV(e,t,r){const i=d=>e.getCanonicalFileName(d),o=ks(r?ci(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=So(t,e.getCurrentDirectory()),l=PR(o,s,o,i,!1),u=Tu(l);return r?HE(u):u}function Cne(e,t,r){const i=t.getCompilerOptions();let o;return i.outDir?o=Tu(v6(e,t,i.outDir)):o=Tu(e),o+r}function Nne(e,t){return h6(e,t.getCompilerOptions(),t)}function h6(e,t,r){const i=t.declarationDir||t.outDir,o=i?Mne(e,i,r.getCurrentDirectory(),r.getCommonSourceDirectory(),l=>r.getCanonicalFileName(l)):e,s=_6(o);return Tu(o)+s}function _6(e){return $l(e,[".mjs",".mts"])?".d.mts":$l(e,[".cjs",".cts"])?".d.cts":$l(e,[".json"])?".d.json.ts":".d.ts"}function iV(e){return $l(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:$l(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:$l(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function oV(e,t,r,i){return r?ab(i(),cf(r,e,t)):e}function g6(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 y6(e,t,r){const i=e.getCompilerOptions();if(i.outFile){const o=bu(i),s=i.emitDeclarationOnly||o===2||o===4;return Vn(e.getSourceFiles(),l=>(s||!zc(l))&&CS(l,e,r))}else{const o=t===void 0?e.getSourceFiles():[t];return Vn(o,s=>CS(s,e,r))}}function CS(e,t,r){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Pu(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Ff(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=So(gP(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=Mne(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(ey(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function v6(e,t,r){return Mne(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function Mne(e,t,r,i,o){let s=So(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,Qr(t,s)}function b6(e,t,r,i,o,s,l){e.writeFile(r,i,o,u=>{t.add(Il(f.Could_not_write_file_0_Colon_1,r,u))},s,l)}function W0e(e,t,r){if(e.length>Bh(e)&&!r(e)){const i=ci(e);W0e(i,t,r),t(e)}}function aV(e,t,r,i,o,s){try{i(e,t,r)}catch{W0e(ci(ya(e)),o,s),i(e,t,r)}}function dM(e,t){const r=sg(e);return IN(r,t)}function aD(e,t){return IN(e,t)}function vg(e){return hn(e.members,t=>Ml(t)&&mm(t.body))}function uM(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&Sb(e.parameters[0]);return e.parameters[t?1:0]}}function Pne(e){const t=uM(e);return t&&t.type}function NS(e){if(e.parameters.length&&!fv(e)){const t=e.parameters[0];if(Sb(t))return t}}function Sb(e){return Eb(e.name)}function Eb(e){return!!e&&e.kind===80&&sV(e)}function EI(e){return!!Dn(e,t=>t.kind===187?!0:t.kind===80||t.kind===167?!1:"quit")}function MS(e){if(!Eb(e))return!1;for(;ku(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===187}function sV(e){return e.escapedText==="this"}function PS(e,t){let r,i,o,s;return ay(t)?(r=t,t.kind===178?o=t:t.kind===179?s=t:C.fail("Accessor has wrong kind")):$e(e,l=>{if(fb(l)&&ua(l)===ua(t)){const u=d1(l.name),d=d1(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 xc(e){if(!Ir(e)&&Zl(e)||bm(e))return;const t=e.type;return t||!Ir(e)?t:wN(e)?e.typeExpression&&e.typeExpression.type:$y(e)}function Lne(e){return e.type}function kp(e){return fv(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Ir(e)?w2(e):void 0)}function T6(e){return Ki(kT(e),t=>MGe(t)?t.typeParameters:void 0)}function MGe(e){return Tm(e)&&!(e.parent.kind===321&&(e.parent.tags.some(_m)||e.parent.tags.some(CD)))}function lV(e){const t=uM(e);return t&&xc(t)}function PGe(e,t,r,i){LGe(e,t,r.pos,i)}function LGe(e,t,r,i){i&&i.length&&r!==i[0].pos&&aD(e,r)!==aD(e,i[0].pos)&&t.writeLine()}function kne(e,t,r,i){r!==i&&aD(e,r)!==aD(e,i)&&t.writeLine()}function kGe(e,t,r,i,o,s,l,u){if(i&&i.length>0){let d=!1;for(const g of i)d&&(r.writeSpace(" "),d=!1),u(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function wne(e,t,r,i,o,s,l){let u,d;if(l?o.pos===0&&(u=Vn(cg(e,o.pos),g)):u=cg(e,o.pos),u){const h=[];let y;for(const E of u){if(y){const A=aD(t,y.end);if(aD(t,E.pos)>=A+2)break}h.push(E),y=E}if(h.length){const E=aD(t,Ba(h).end);aD(t,ka(e,o.pos))>=E+2&&(PGe(t,r,o,u),kGe(e,t,r,h,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:Ba(h).end})}}return d;function g(h){return wF(e,h.pos)}}function sD(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){const l=LR(t,i),u=t.length;let d;for(let g=i,h=l.line;g0){let R=A%Lk();const N=m6((A-R)/Lk());for(r.rawWrite(N);R;)r.rawWrite(" "),R--}else r.rawWrite("")}wGe(e,o,r,s,g,y),g=y}}else r.writeComment(e.substring(i,o))}function wGe(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 F0e(e,t,r){let i=0;for(;t=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=uV(e)|536870912),r||t&&Ir(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=z0e(e)|268435456),B0e(e.modifierFlagsCache)):OGe(e.modifierFlagsCache))}function Gd(e){return Fne(e,!0)}function zne(e){return Fne(e,!0,!0)}function nv(e){return Fne(e,!1)}function z0e(e){let t=0;return e.parent&&!to(e)&&(Ir(e)&&(Yee(e)&&(t|=8388608),$ee(e)&&(t|=16777216),Qee(e)&&(t|=33554432),Zee(e)&&(t|=67108864),ete(e)&&(t|=134217728)),tte(e)&&(t|=65536)),t}function OGe(e){return e&65535}function B0e(e){return e&131071|(e&260046848)>>>23}function WGe(e){return B0e(z0e(e))}function Bne(e){return uV(e)|WGe(e)}function uV(e){let t=Sm(e)?Yh(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Yh(e){let t=0;if(e)for(const r of e)t|=II(r.kind);return t}function II(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 wk(e){return e===57||e===56}function Gne(e){return wk(e)||e===54}function pM(e){return e===76||e===77||e===78}function pV(e){return Nr(e)&&pM(e.operatorToken.kind)}function E6(e){return wk(e)||e===61}function Ok(e){return Nr(e)&&E6(e.operatorToken.kind)}function ly(e){return e>=64&&e<=79}function fV(e){const t=mV(e);return t&&!t.isImplements?t.class:void 0}function mV(e){if(uy(e)){if(Fp(e.parent)&&ui(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(QI(e.parent)){const t=GT(e.parent);if(t&&ui(t))return{class:t,isImplements:!1}}}}function id(e,t){return Nr(e)&&(t?e.operatorToken.kind===64:ly(e.operatorToken.kind))&&$u(e.left)}function rv(e){if(id(e,!0)){const t=e.left.kind;return t===211||t===210}return!1}function A6(e){return fV(e)!==void 0}function Ds(e){return e.kind===80||Fk(e)}function Lu(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 Wk(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===237||e.kind===212&&Wk(e.expression)||e.kind===218&&Wk(e.expression)}function Fk(e){return qr(e)&&He(e.name)&&Ds(e.expression)}function zk(e){if(qr(e)){const t=zk(e.expression);if(t!==void 0)return t+"."+Mp(e.name)}else if(Ws(e)){const t=zk(e.expression);if(t!==void 0&&vc(e.argumentExpression))return t+"."+d1(e.argumentExpression)}else{if(He(e))return Bi(e.escapedText);if(fh(e))return LM(e)}}function Ab(e){return IS(e)&&oy(e)==="prototype"}function fM(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 hV(e){return!!e.parent&&(qr(e.parent)&&e.parent.name===e||Ws(e.parent)&&e.parent.argumentExpression===e)}function Vne(e){return ku(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e||n0(e.parent)&&e.parent.right===e}function I6(e){return Nr(e)&&e.operatorToken.kind===104}function jne(e){return I6(e.parent)&&e===e.parent.right}function _V(e){return e.kind===211&&e.properties.length===0}function Une(e){return e.kind===210&&e.elements.length===0}function mM(e){if(!(!FGe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function FGe(e){return e&&Ze(e.declarations)>0&&di(e.declarations[0],2048)}function x6(e){return hn(pVe,t=>El(e,t))}function zGe(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 xI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Hne(e){let t="";const r=zGe(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+=xI.charAt(s)+xI.charAt(l)+xI.charAt(u)+xI.charAt(d),i+=3;return t}function BGe(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(g):y===0&&d!==0?i.push(g,h):i.push(g,h,y),o+=4}return BGe(i)}function gV(e,t){const r=Bo(t)?t:t.readFile(e);if(!r)return;let i=Bk(r);if(i===void 0){const o=oU(e,r);o.error||(i=o.config)}return i}function lD(e,t){return gV(e,t)||{}}function Bk(e){try{return JSON.parse(e)}catch{return}}function ch(e,t){return!t.directoryExists||t.directoryExists(e)}var GGe=`\r `,VGe=` `;function iv(e){switch(e.newLine){case 0:return GGe;case 1:case void 0:return VGe}}function Bf(e,t=e){return C.assert(t>=e||t===-1),{pos:e,end:t}}function R6(e,t){return Bf(e.pos,t)}function UT(e,t){return Bf(t,e.end)}function cy(e){const t=Sm(e)?ma(e.modifiers,Wc):void 0;return t&&!dh(t.end)?UT(e,t.end):e}function $h(e){if(Po(e)||Nl(e))return UT(e,e.name.pos);const t=Sm(e)?tl(e.modifiers):void 0;return t&&!dh(t.end)?UT(e,t.end):cy(e)}function yV(e,t){return Bf(e,e+ga(t).length)}function f1(e,t){return Xne(e,e,t)}function D6(e,t,r){return Gf(hM(e,r,!1),hM(t,r,!1),r)}function Kne(e,t,r){return Gf(e.end,t.end,r)}function Xne(e,t,r){return Gf(hM(e,r,!1),t.end,r)}function Gk(e,t,r){return Gf(e.end,hM(t,r,!1),r)}function vV(e,t,r,i){const o=hM(t,r,i);return xN(r,e.end,o)}function G0e(e,t,r){return xN(r,e.end,t.end)}function Yne(e,t){return!Gf(e.pos,e.end,t)}function Gf(e,t,r){return xN(r,e,t)===0}function hM(e,t,r){return dh(e.pos)?-1:ka(t.text,e.pos,!1,r)}function $ne(e,t,r,i){const o=ka(r.text,e,!1,i),s=jGe(o,t,r);return xN(r,s??t,o)}function Qne(e,t,r,i){const o=ka(r.text,e,!1,i);return xN(r,e,Math.min(t,o))}function tp(e,t){return bV(e.pos,e.end,t)}function bV(e,t,r){return e<=r.pos&&t>=r.end}function jGe(e,t=0,r){for(;e-- >t;)if(!lg(r.text.charCodeAt(e)))return e}function TV(e){const t=jo(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function _M(e){return Vn(e.declarations,Vk)}function Vk(e){return yi(e)&&e.initializer!==void 0}function SV(e){return e.watch&&Rs(e,"watch")}function Gm(e){e.close()}function Wl(e){return e.flags&33554432?e.links.checkFlags:0}function Vf(e,t=!1){if(e.valueDeclaration){const r=t&&e.declarations&&hn(e.declarations,gp)||e.flags&32768&&hn(e.declarations,Hf)||e.valueDeclaration,i=PT(r);return e.parent&&e.parent.flags&32?i:i&-8}if(Wl(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 xd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function cD(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function C6(e){return gM(e)===1}function RI(e){return gM(e)!==0}function gM(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 218:return gM(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&&ly(o.kind)?o.kind===64?1:2:0;case 212:return t.name!==e?0:gM(t);case 304:{const s=gM(t.parent);return e===t.name?UGe(s):s}case 305:return e===t.objectAssignmentInitializer?0:gM(t.parent);case 210:return gM(t);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function UGe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return C.assertNever(e)}}function EV(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(!EV(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function hp(e,t){e.forEach(t),e.clear()}function bg(e,t,r){const{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var u;t!=null&&t.has(l)?o&&o(s,(u=t.get)==null?void 0:u.call(t,l),l):(e.delete(l),i(s,l))})}function yM(e,t,r){bg(e,t,r);const{createNewValue:i}=r;t==null||t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Zne(e){if(e.flags&32){const t=dy(e);return!!t&&di(t,64)}return!1}function dy(e){var t;return(t=e.declarations)==null?void 0:t.find(ui)}function Hr(e){return e.flags&3899393?e.objectFlags:0}function N6(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&yw(e.declarations[0])}function ere({moduleSpecifier:e}){return wa(e)?e.text:Al(e)}function AV(e){let t;return Jo(e,r=>{mm(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(mm(r[i])){t=r[i];break}}),t}function ym(e,t){return e.has(t)?!1:(e.add(t),!0)}function DI(e){return ui(e)||gd(e)||wu(e)}function IV(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 Ks(e){return e.kind===212||e.kind===213}function xV(e){return e.kind===212?e.name:(C.assert(e.kind===213),e.argumentExpression)}function M6(e){return e.kind===276||e.kind===280}function dD(e){for(;Ks(e);)e=e.expression;return e}function tre(e,t){if(Ks(e.parent)&&hV(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(He(i.argumentExpression)||ds(i.argumentExpression)){const o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Ks(i.expression))return r(i.expression);if(He(i.expression))return t(i.expression)}}function uD(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 HGe(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 qGe(e,t){this.flags=t,(C.isDebugging||xr)&&(this.checker=e)}function JGe(e,t){this.flags=t,C.isDebugging&&(this.checker=e)}function nre(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 KGe(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 XGe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function YGe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}var Rd={getNodeConstructor:()=>nre,getTokenConstructor:()=>KGe,getIdentifierConstructor:()=>XGe,getPrivateIdentifierConstructor:()=>nre,getSourceFileConstructor:()=>nre,getSymbolConstructor:()=>HGe,getTypeConstructor:()=>qGe,getSignatureConstructor:()=>JGe,getSourceMapSourceConstructor:()=>YGe},V0e=[];function j0e(e){V0e.push(e),e(Rd)}function rre(e){Object.assign(Rd,e),$e(V0e,t=>t(Rd))}function Tg(e,t){return e.replace(/\{(\d+)\}/g,(r,i)=>""+C.checkDefined(t[+i]))}var P6;function ire(e){P6=e}function ore(e){!P6&&e&&(P6=e())}function Ho(e){return P6&&P6[e.key]||e.message}function CI(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),Ute(t,r,i);let l=Ho(o);return vt(s)&&(l=Tg(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function $Ge(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function U0e(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)$Ge(s)&&s.fileName===r?(C.assertLessThanOrEqual(s.start,i),C.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(U0e(s,t))):o.relatedInformation.push(s)}return o}function NI(e,t){const r=[];for(const i of e)r.push(U0e(i,t));return r}function Oc(e,t,r,i,...o){Ute(e.text,t,r);let s=Ho(i);return vt(o)&&(s=Tg(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function MI(e,...t){let r=Ho(e);return vt(t)&&(r=Tg(r,t)),r}function Il(e,...t){let r=Ho(e);return vt(t)&&(r=Tg(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 L6(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=Tg(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function are(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function RV(e){return e.file?e.file.path:void 0}function vM(e,t){return sre(e,t)||QGe(e,t)||0}function sre(e,t){const r=DV(e),i=DV(t);return Wd(RV(e),RV(t))||js(e.start,t.start)||js(e.length,t.length)||js(r,i)||ZGe(e,t)||0}function QGe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?js(t.relatedInformation.length,e.relatedInformation.length)||$e(e.relatedInformation,(r,i)=>{const o=t.relatedInformation[i];return vM(r,o)})||0:e.relatedInformation?-1:1}function ZGe(e,t){let r=CV(e),i=CV(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=Wd(r,i);return l||(l=eVe(o,s),l)?l:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function eVe(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:H0e(e,t)||q0e(e,t)}function H0e(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=js(t.length,e.length);if(r)return r;for(let i=0;i{o.externalModuleIndicator=Cw(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=Cw(o)};case 2:const t=[Cw];(e.jsx===4||e.jsx===5)&&t.push(nVe),t.push(rVe);const r=Rp(...t);return o=>void(o.externalModuleIndicator=r(o,e))}}function NV(e){const t=iu(e);return 3<=t&&t<=99||Hk(e)||qk(e)}function Ubt(e){return e}var Dd={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:Dd.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Dd.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=Dd.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(Dd.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:Dd.esModuleInterop.computeValue(e)||Dd.module.computeValue(e)===4||Dd.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Dd.moduleResolution.computeValue(e);if(!pD(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=Dd.moduleResolution.computeValue(e);if(!pD(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(Dd.module.computeValue(e)){case 102:case 199:return!0}return Dd.moduleResolution.computeValue(e)===100}},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Dd.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Dd.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?Dd.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Vd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Vd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Vd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Vd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Vd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Vd(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>Vd(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Vd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Vd(e,"useUnknownInCatchVariables")}},bM=Dd,lre=Dd.allowImportingTsExtensions.computeValue,Ga=Dd.target.computeValue,bu=Dd.module.computeValue,iu=Dd.moduleResolution.computeValue,cre=Dd.moduleDetection.computeValue,vm=Dd.isolatedModules.computeValue,Qh=Dd.esModuleInterop.computeValue,PI=Dd.allowSyntheticDefaultImports.computeValue,Hk=Dd.resolvePackageJsonExports.computeValue,qk=Dd.resolvePackageJsonImports.computeValue,kS=Dd.resolveJsonModule.computeValue,_p=Dd.declaration.computeValue,Ib=Dd.preserveConstEnums.computeValue,wS=Dd.incremental.computeValue,w6=Dd.declarationMap.computeValue,xb=Dd.allowJs.computeValue,Jk=Dd.useDefineForClassFields.computeValue;function Kk(e){return e>=5&&e<=99}function O6(e){switch(bu(e)){case 0:case 4:case 3:return!1}return!0}function dre(e){return e.allowUnreachableCode===!1}function ure(e){return e.allowUnusedLabels===!1}function pD(e){return e>=3&&e<=99||e===100}function pre(e){return 101<=e&&e<=199||e===200||e===99}function Vd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function W6(e){return Hc(Zj.type,(t,r)=>t===e?r:void 0)}function MV(e){return e.useDefineForClassFields!==!1&&Ga(e)>=9}function fre(e,t){return uI(t,e,foe)}function mre(e,t){return uI(t,e,moe)}function hre(e,t){return uI(t,e,hoe)}function F6(e,t){return t.strictFlag?Vd(e,t.name):t.allowJsFlag?xb(e):e[t.name]}function z6(e){const t=e.jsx;return t===2||t===4||t===5}function Xk(e,t){const r=t==null?void 0:t.pragmas.get("jsximportsource"),i=Mo(r)?r[r.length-1]:r,o=t==null?void 0:t.pragmas.get("jsxruntime"),s=Mo(o)?o[o.length-1]:o;if((s==null?void 0:s.arguments.factory)!=="classic")return e.jsx===4||e.jsx===5||e.jsxImportSource||i||(s==null?void 0:s.arguments.factory)==="automatic"?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function B6(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function PV(e){let t=!1;for(let r=0;ro,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,g)=>(o||(o=new Map)).set(d,g),setSymlinkedDirectory:(d,g)=>{let h=ks(d,e,t);CM(h)||(h=Uc(h),g!==!1&&!(r!=null&&r.has(h))&&(i||(i=dm())).add(g.realPath,d),(r||(r=new Map)).set(h,g))},setSymlinksFromResolutions(d,g,h){C.assert(!s),s=!0,d(y=>u(this,y.resolvedModule)),g(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!=null&&o.size)||!!r&&!!Hc(r,d=>!!d)}function u(d,g){if(!g||!g.originalPath||!g.resolvedFileName)return;const{resolvedFileName:h,originalPath:y}=g;d.setSymlinkedFile(ks(y,e,t),h);const[E,A]=iVe(h,y,e,t)||se;E&&A&&d.setSymlinkedDirectory(A,{real:Uc(E),realPath:Uc(ks(E,e,t))})}}function iVe(e,t,r,i){const o=zd(So(e,r)),s=zd(So(t,r));let l=!1;for(;o.length>=2&&s.length>=2&&!K0e(o[o.length-2],i)&&!K0e(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[MT(o),MT(s)]:void 0}function K0e(e,t){return e!==void 0&&(t(e)==="node_modules"||fo(e,"@"))}function oVe(e){return A9(e.charCodeAt(0))?e.slice(1):void 0}function kV(e,t,r){const i=QB(e,t,r);return i===void 0?void 0:oVe(i)}var _re=/[^\w\s/]/g;function X0e(e){return e.replace(_re,aVe)}function aVe(e){return"\\"+e}var sVe=[42,63],lVe=["node_modules","bower_components","jspm_packages"],gre=`(?!(?:${lVe.join("|")})(?:/|$))`,Y0e={singleAsteriskRegexFragment:"(?:[^./]|(?:\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(?:/${gre}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>vre(e,Y0e.singleAsteriskRegexFragment)},$0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(?:/${gre}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>vre(e,$0e.singleAsteriskRegexFragment)},Q0e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(?:/.+?)?",replaceWildcardCharacter:e=>vre(e,Q0e.singleAsteriskRegexFragment)},yre={files:Y0e,directories:$0e,exclude:Q0e};function TM(e,t,r){const i=G6(e,t,r);return!i||!i.length?void 0:`^(?:${i.map(l=>`(?:${l})`).join("|")})${r==="exclude"?"(?:$|/)":"$"}`}function G6(e,t,r){if(!(e===void 0||e.length===0))return Ki(e,i=>i&&V6(i,t,r,yre[r]))}function wV(e){return!/[.*?]/.test(e)}function OV(e,t,r){const i=e&&V6(e,t,r,yre[r]);return i&&`^(?:${i})${r==="exclude"?"(?:$|/)":"$"}`}function V6(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=yre[r]){let l="",u=!1;const d=tF(e,t),g=Ba(d);if(r!=="exclude"&&g==="**")return;d[0]=Yy(d[0]),wV(g)&&d.push("**","*");let h=0;for(let y of d){if(y==="**")l+=o;else if(r==="directories"&&(l+="(?:",h++),u&&(l+=Js),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(_re,s),E!==y&&(l+=gre),l+=E}else l+=y.replace(_re,s);u=!0}for(;h>0;)l+=")?",h--;return l}function vre(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function j6(e,t,r,i,o){e=ya(e),o=ya(o);const s=Qr(o,e);return{includeFilePatterns:Bt(G6(r,s,"files"),l=>`^${l}$`),includeFilePattern:TM(r,s,"files"),includeDirectoryPattern:TM(r,s,"directories"),excludePattern:TM(t,s,"exclude"),basePaths:cVe(e,r,i)}}function ov(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 g=j6(e,r,i,o,s),h=g.includeFilePatterns&&g.includeFilePatterns.map(k=>ov(k,o)),y=g.includeDirectoryPattern&&ov(g.includeDirectoryPattern,o),E=g.excludePattern&&ov(g.excludePattern,o),A=h?h.map(()=>[]):[[]],R=new Map,N=Fd(o);for(const k of g.basePaths)P(k,Qr(s,k),l);return ia(A);function P(k,F,O){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 xp(j,Wd)){const q=Qr(k,Z),ye=Qr(F,Z);if(!(t&&!$l(q,t))&&!(E&&E.test(ye)))if(!h)A[0].push(q);else{const ie=so(h,K=>K.test(ye));ie!==-1&&A[ie].push(q)}}if(!(O!==void 0&&(O--,O===0)))for(const Z of xp(J,Wd)){const q=Qr(k,Z),ye=Qr(F,Z);(!y||y.test(ye))&&(!E||!E.test(ye))&&P(q,ye,O)}}}function cVe(e,t,r){const i=[e];if(t){const o=[];for(const s of t){const l=Cp(s)?s:ya(Qr(e,s));o.push(dVe(l))}o.sort(xR(!r));for(const s of o)Hn(i,l=>!pm(l,s,e,!r))&&i.push(s)}return i}function dVe(e){const t=Li(e,sVe);return t<0?NR(e)?Yy(ci(e)):e:e.substring(0,e.lastIndexOf(Js,t))}function U6(e,t){return t||H6(e)||3}function H6(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 q6=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],WV=ia(q6),uVe=[...q6,[".json"]],pVe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],fVe=[[".js",".jsx"],[".mjs"],[".cjs"]],fD=ia(fVe),FV=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],mVe=[...FV,[".json"]],J6=[".d.ts",".d.cts",".d.mts"],Yk=[".ts",".cts",".mts",".tsx"],K6=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function SM(e,t){const r=e&&xb(e);if(!t||t.length===0)return r?FV:q6;const i=r?FV:q6,o=ia(i);return[...i,...ji(t,l=>l.scriptKind===7||r&&hVe(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function $k(e,t){return!e||!kS(e)?t:t===FV?mVe:t===q6?uVe:[...t,[".json"]]}function hVe(e){return e===1||e===2}function Sg(e){return vt(fD,t=>El(e,t))}function m1(e){return vt(WV,t=>El(e,t))}function Tre(e){return vt(Yk,t=>El(e,t))&&!ad(e)}var Sre=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Sre||{});function _Ve({imports:e},t=Rp(Sg,m1)){return Bn(e,({text:r})=>Zp(r)&&!$l(r,K6)?t(r):void 0)||!1}function Ere(e,t,r,i){const o=iu(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return VD(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!VD(r))return i&&_Ve(i)?2:0;return l();function l(){let u=!1;const d=i!=null&&i.imports.length?i.imports:i&&Pu(i)?gVe(i).map(g=>g.arguments[0]):se;for(const g of d)if(Zp(g.text)){if(s&&t===1&&TH(i,g,r)===99||$l(g.text,K6))continue;if(m1(g.text))return 3;Sg(g.text)&&(u=!0)}return u?2:0}}function gVe(e){let t=0,r;for(const i of e.statements){if(t>3)break;fk(i)?r=lo(r,i.declarationList.declarations.map(o=>o.initializer)):od(i)&&Zu(i.expression,!0)?r=Un(r,i.expression):t++}return r||se}function zV(e,t,r){if(!e)return!1;const i=SM(t,r);for(const o of ia($k(t,i)))if(El(e,o))return!0;return!1}function Z0e(e){const t=e.match(/\//g);return t?t.length:0}function Qk(e,t){return js(Z0e(e),Z0e(t))}var Are=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function Tu(e){for(const t of Are){const r=Ire(e,t);if(r!==void 0)return r}return e}function Ire(e,t){return El(e,t)?Zk(e,t):void 0}function Zk(e,t){return e.substring(0,e.length-t.length)}function av(e,t){return E2(e,t,Are,!1)}function LI(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 eSe=new WeakMap;function ew(e){let t=eSe.get(e);if(t!==void 0)return t;let r,i;const o=Fh(e);for(const s of o){const l=LI(s);l!==void 0&&(typeof l=="string"?(r??(r=new Set)).add(l):(i??(i=[])).push(l))}return eSe.set(e,t={matchableStringSet:r,patterns:i}),t}function dh(e){return!(e>=0)}function X6(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||fo(e,".d.")&&nl(e,".ts")}function EM(e){return X6(e)||e===".json"}function AM(e){const t=Eg(e);return t!==void 0?t:C.fail(`File ${e} has unknown extension.`)}function tSe(e){return Eg(e)!==void 0}function Eg(e){return hn(Are,t=>El(e,t))}function IM(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var xre={files:se,directories:se};function BV(e,t){const{matchableStringSet:r,patterns:i}=e;if(r!=null&&r.has(t))return t;if(!(i===void 0||i.length===0))return $B(i,o=>o,t)}function GV(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!==se,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Rre(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 VV(e){return{pos:gb(e),end:e.end}}function jV(e,t){const r=t.pos-1,i=Math.min(e.text.length,ka(e.text,t.end)+1);return{pos:r,end:i}}function mD(e,t,r){return nSe(e,t,r,!1)}function Dre(e,t,r){return nSe(e,t,r,!0)}function nSe(e,t,r,i){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!i&&t.noCheck||r.isSourceOfProjectReferenceRedirect(e.fileName)||!xM(e,t)}function xM(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)&&IM(e,t);return VN(e,t.checkJs)||i||e.scriptKind===7}function Y6(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&HQ(e,t,Y6)}function RM(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 g=e.length-1;let h=0;for(;e.charCodeAt(h)===48;)h++;return e.slice(h,g)||"0"}const r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let g=i-1,h=0;g>=r;g--,h+=t){const y=h>>>4,E=e.charCodeAt(g),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 g=0;d=!1;for(let h=u;h>=0;h--){const y=g<<16|s[h],E=y/10|0;s[h]=E,g=y-E*10,E&&!d&&(u=h,d=!0)}l=g+l}return l}function OS({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Cre(e){if($6(e,!1))return UV(e)}function UV(e){const t=e.startsWith("-"),r=RM(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function $6(e,t){if(e==="")return!1;const r=dg(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===OS({negative:s,base10Value:RM(r.getTokenValue())}))}function HT(e){return!!(e.flags&33554432)||YN(e)||ZF(e)||bVe(e)||vVe(e)||!(L_(e)||yVe(e))}function yVe(e){return He(e)&&Ud(e.parent)&&e.parent.name===e}function vVe(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 bVe(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==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===265}function Nre(e){return Wp(e)&&He(e.typeName)}function Mre(e,t=nb){if(e.length<2)return!0;const r=e[0];for(let i=1,o=e.length;ie.includes(t))}function kre(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 JS(i)?i.modifiers:void 0}case 299:return e.parent.heritageClauses}const{parent:t}=e;if(VR(e))return R1(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return gS(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 Ri(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return J2(e)?t.children:void 0;case 287:case 286:return Ri(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 bc(e)?t.members:void 0;case 267:return fy(e)?t.members:void 0;case 308:return t.statements}}function Q6(e){if(!e.typeParameters){if(vt(e.parameters,t=>!xc(t)))return!0;if(e.kind!==220){const t=Ac(e.parameters);if(!(t&&Sb(t)))return!0}}return!1}function NM(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function wre(e){return e.kind===261&&e.parent.kind===300}function Rb(e){return e.kind===219||e.kind===220}function WS(e){return e.replace(/\$/g,()=>"\\$")}function Ag(e){return(+e).toString()===e}function tw(e,t,r,i,o){const s=o&&e==="new";return!s&&fp(e,t)?L.createIdentifier(e):!i&&!s&&Ag(e)&&+e>=0?L.createNumericLiteral(+e):L.createStringLiteral(e,!!r)}function MM(e){return!!(e.flags&262144&&e.isThisType)}function Z6(e){let t=0,r=0,i=0,o=0,s;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.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(Dg,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(Dg,l)===l?d=1:d=3;break}return o=l,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function kI(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 nw(e){return ZT(e)||sc(e)||Zl(e)||Dc(e)||gd(e)||kI(e)||pc(e)&&!SS(e)&&!P_(e)}function rw(e){if(!wN(e))return!1;const{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===317}function JV(e,t){if(e.length===0)return!1;const r=e.charCodeAt(0);return r===35?e.length>1&&D_(e.charCodeAt(1),t):D_(r,t)}function Ore(e){var t;return((t=uj(e))==null?void 0:t.kind)===0}function e4(e){return Ir(e)&&(e.type&&e.type.kind===317||OR(e).some(rw))}function wI(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||e4(e);case 349:case 342:return rw(e);default:return!1}}function Wre(e){const t=e.kind;return(t===212||t===213)&&XI(e.expression)}function KV(e){return Ir(e)&&Ou(e)&&ef(e)&&!!j9(e)}function XV(e){return C.checkDefined(t4(e))}function t4(e){const t=j9(e);return t&&t.typeExpression&&t.typeExpression.type}function PM(e){return He(e)?e.escapedText:OI(e)}function iw(e){return He(e)?Kr(e):LM(e)}function Fre(e){const t=e.kind;return t===80||t===296}function OI(e){return`${e.namespace.escapedText}:${Kr(e.name)}`}function LM(e){return`${Kr(e.namespace)}:${Kr(e.name)}`}function YV(e){return He(e)?Kr(e):LM(e)}function jf(e){return!!(e.flags&8576)}function Uf(e){return e.flags&8192?e.escapedName:e.flags&384?Cl(""+e.value):C.fail()}function WI(e){return!!e&&(qr(e)||Ws(e)||Nr(e))}function zre(e){return e===void 0?!1:!!HD(e.attributes)}var SVe=String.prototype.replace;function h1(e,t){return SVe.call(e,"*",t)}function n4(e){return He(e.name)?e.name.escapedText:Cl(e.name.text)}function Bre(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 qc(e,t=!1,r=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:r,hasExternalReferences:i}}function Gre({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function r(o,s){let l=!1,u=!1,d=!1;switch(o=us(o),o.kind){case 225:const g=r(o.operand,s);if(u=g.resolvedOtherFiles,d=g.hasExternalReferences,typeof g.value=="number")switch(o.operator){case 40:return qc(g.value,l,u,d);case 41:return qc(-g.value,l,u,d);case 55:return qc(~g.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 qc(h.value|y.value,l,u,d);case 51:return qc(h.value&y.value,l,u,d);case 49:return qc(h.value>>y.value,l,u,d);case 50:return qc(h.value>>>y.value,l,u,d);case 48:return qc(h.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(J&3&&re==="arguments"){fe=r;break e}break;case 219:if(J&3&&re==="arguments"){fe=r;break e}if(J&16){const Be=G.name;if(Be&&re===Be.escapedText){fe=G.symbol;break e}}break;case 171:G.parent&&G.parent.kind===170&&(G=G.parent),G.parent&&(bc(G.parent)||G.parent.kind===264)&&(G=G.parent);break;case 347:case 339:case 341:case 352:const Ne=tD(G);Ne&&(G=Ne.parent);break;case 170:ve&&(ve===G.initializer||ve===G.name&&Qo(ve))&&(Ce||(Ce=G));break;case 209:ve&&(ve===G.initializer||ve===G.name&&Qo(ve))&&jT(G)&&!Ce&&(Ce=G);break;case 196:if(J&262144){const Be=G.typeParameter.name;if(Be&&re===Be.escapedText){fe=G.typeParameter.symbol;break e}}break;case 282:ve&&ve===G.propertyName&&G.parent.parent.moduleSpecifier&&(G=G.parent.parent.parent);break}F(G,ve)&&(xe=G),ve=G,G=Tm(G)?a6(G)||G.parent:(mf(G)||x4(G))&&BT(G)||G.parent}if(q&&fe&&(!xe||fe!==xe.symbol)&&(fe.isReferenced|=J),!fe){if(ve&&(C.assertNode(ve,Yi),ve.commonJsModuleIndicator&&re==="exports"&&J&ve.symbol.flags))return ve.symbol;ye||(fe=l(s,re,J))}if(!fe&&de&&Ir(de)&&de.parent&&Zu(de.parent,!1))return t;if(Z){if(X&&g(de,re,X,fe))return;fe?y(de,fe,J,ve,Ce,Je):h(de,j,J,Z)}return fe}function P(G,j,J){const Z=Ga(e),q=j;if(to(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=$e(q.parameters,ye)||!1,u(q,K)),!K}return!1;function ye(K){return ie(K.name)||!!K.initializer&&ie(K.initializer)}function ie(K){switch(K.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return ie(K.name);case 173:return wc(K)?!A:ie(K.name);default:return H9(K)||tu(K)?Z<7:Ha(K)&&K.dotDotDotToken&&ff(K.parent)?Z<4:Ri(K)?!1:Jo(K,ie)||!1}}}function k(G,j){return G.kind!==220&&G.kind!==219?zS(G)||(Ms(G)||G.kind===173&&!ua(G))&&(!j||j!==G.name):j&&j===G.name?!1:G.asteriskToken||di(G,1024)?!0:!WT(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 O(G,j){if(G.declarations){for(const J of G.declarations)if(J.kind===169&&(Tm(J.parent)?xS(J.parent):J.parent)===j)return!(Tm(J.parent)&&hn(J.parent.parent.tags,_m))}return!1}}function r4(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?np(e.operand)||t&&yD(e.operand):e.operator===40?np(e.operand):!1;default:return!1}}function Vre(e){for(;e.kind===218;)e=e.expression;return e}function i4(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 ZV(e){const t=Dn(e,vl);return!!t&&!t.importClause}var jre=["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"],Ure=new Set(jre),o4=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),_D=new Set([...jre,...jre.map(e=>`node:${e}`),...o4]);function a4(e,t,r,i){const o=Ir(e),s=/import|require/g;for(;s.exec(e.text)!==null;){const l=EVe(e,s.lastIndex,t);if(o&&Zu(l,r))i(l,l.arguments[0]);else if(Qu(l)&&l.arguments.length>=1&&(!r||ds(l.arguments[0])))i(l,l.arguments[0]);else if(t&&iy(l))i(l,l.argument.literal);else if(t&&a_(l)){const u=yI(l);u&&wa(u)&&u.text&&i(l,u)}}}function EVe(e,t,r){const i=Ir(e);let o=e;const s=l=>{if(l.pos<=t&&(tr&&t(r))}function kM(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 g;return $e(u,(h,y)=>{if(h&&(o!=null&&o.has(h.sourceFile.path))){(g??(g=new Set)).add(h);return}const E=r(h,d,y);if(E||!h)return E;(o||(o=new Set)).add(h.sourceFile.path)})||$e(u,h=>h&&!(g!=null&&g.has(h))?s(h.commandLine.projectReferences,h.references,h):void 0)}}function rj(e,t,r){return e&&AVe(e,t,r)}function AVe(e,t,r){return XR(e,t,i=>Cd(i.initializer)?hn(i.initializer.elements,o=>wa(o)&&o.text===r):void 0)}function qre(e,t,r){return ij(e,t,i=>wa(i.initializer)&&i.initializer.text===r?i.initializer:void 0)}function ij(e,t,r){return XR(e,t,r)}function _s(e,t=!0){const r=e&&rSe(e);return r&&!t&&Op(r),qT(r,!1)}function aw(e,t,r){let i=r(e);return i?jr(i,e):i=rSe(e,r),i&&!t&&Op(i),i}function rSe(e,t){const r=t?s=>aw(s,!0,t):_s,o=wn(e,r,void 0,t?s=>s&&oj(s,!0,t):s=>s&&FS(s),r);if(o===e){const s=wa(e)?jr(L.createStringLiteralFromNode(e),e):np(e)?jr(L.createNumericLiteral(e.text,e.numericLiteralFlags),e):L.cloneNode(e);return bt(s,e)}return o.parent=void 0,o}function FS(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 oj(e,t,r){return L.createNodeArray(e.map(i=>aw(i,t,r)),e.hasTrailingComma)}function Op(e){aj(e),Jre(e)}function aj(e){Kre(e,1024,IVe)}function Jre(e){Kre(e,2048,AV)}function Kre(e,t,r){Zh(e,t);const i=r(e);i&&Kre(i,t,r)}function IVe(e){return Jo(e,t=>t)}function Xre(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:u,createBaseTokenNode:d,createBaseNode:g};function s(h){return new(o||(o=Rd.getSourceFileConstructor()))(h,-1,-1)}function l(h){return new(r||(r=Rd.getIdentifierConstructor()))(h,-1,-1)}function u(h){return new(i||(i=Rd.getPrivateIdentifierConstructor()))(h,-1,-1)}function d(h){return new(t||(t=Rd.getTokenConstructor()))(h,-1,-1)}function g(h){return new(e||(e=Rd.getNodeConstructor()))(h,-1,-1)}}function Yre(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:O,parenthesizeExpressionsOfCommaDelimitedList:G,parenthesizeExpressionForDisallowedComma:j,parenthesizeExpressionOfExpressionStatement:J,parenthesizeConciseBodyOfArrowFunction:Z,parenthesizeCheckTypeOfConditionalType:q,parenthesizeExtendsTypeOfConditionalType:ye,parenthesizeConstituentTypesOfUnionType:K,parenthesizeConstituentTypeOfUnionType:ie,parenthesizeConstituentTypesOfIntersectionType:de,parenthesizeConstituentTypeOfIntersectionType:pe,parenthesizeOperandOfTypeOperator:fe,parenthesizeOperandOfReadonlyTypeOperator:ve,parenthesizeNonArrayTypeOfPostfixType:xe,parenthesizeElementTypesOfTupleType:X,parenthesizeElementTypeOfTupleType:Ce,parenthesizeTypeOfOptionalType:Se,parenthesizeTypeArguments:Ne,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,Re){const ge=Fm(lt);if(Nr(ge)&&s(Be,ge.operatorToken.kind))return!0;const je=Nk(227,Be),Ge=$G(227,Be);if(!ce&<.kind===220&&je>3)return!0;const We=lM(ge);switch(js(We,je)){case-1:return!(!ce&&Ge===1&<.kind===230);case 1:return!1;case 0:if(ce)return Ge===1;if(Nr(ge)&&ge.operatorToken.kind===Be){if(u(Be))return!1;if(Be===40){const Wt=Re?d(Re):0;if(ON(Wt)&&Wt===d(ge))return!1}}return YG(ge)===0}}function u(Be){return Be===42||Be===52||Be===51||Be===53||Be===28}function d(Be){if(Be=Fm(Be),ON(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=ON(lt)&<===d(Be.right)?lt:0;return Be.cachedLiteralKind=ce,ce}return 0}function g(Be,lt,ce,Re){return Fm(lt).kind===218?lt:l(Be,lt,ce,Re)?e.createParenthesizedExpression(lt):lt}function h(Be,lt){return g(Be,lt,!0)}function y(Be,lt,ce){return g(Be,ce,!1,lt)}function E(Be){return YM(Be)?e.createParenthesizedExpression(Be):Be}function A(Be){const lt=Nk(228,58),ce=Fm(Be),Re=lM(ce);return js(Re,lt)!==1?e.createParenthesizedExpression(Be):Be}function R(Be){const lt=Fm(Be);return YM(lt)?e.createParenthesizedExpression(Be):Be}function N(Be){const lt=Fm(Be);let ce=YM(lt);if(!ce)switch(uD(lt,!1).kind){case 232:case 219:ce=!0}return ce?e.createParenthesizedExpression(Be):Be}function P(Be){const lt=uD(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=Fm(Be);return $u(ce)&&(ce.kind!==215||ce.arguments)&&(lt||!tu(ce))?Be:bt(e.createParenthesizedExpression(Be),Be)}function F(Be){return $u(Be)?Be:bt(e.createParenthesizedExpression(Be),Be)}function O(Be){return tG(Be)?Be:bt(e.createParenthesizedExpression(Be),Be)}function G(Be){const lt=Zi(Be,j);return bt(e.createNodeArray(lt,Be.hasTrailingComma),Be)}function j(Be){const lt=Fm(Be),ce=lM(lt),Re=Nk(227,28);return ce>Re?Be:bt(e.createParenthesizedExpression(Be),Be)}function J(Be){const lt=Fm(Be);if(Zo(lt)){const Re=lt.expression,ge=Fm(Re).kind;if(ge===219||ge===220){const je=e.updateCallExpression(lt,bt(e.createParenthesizedExpression(Re),Re),lt.typeArguments,lt.arguments);return e.restoreOuterExpressions(Be,je,8)}}const ce=uD(lt,!1).kind;return ce===211||ce===219?bt(e.createParenthesizedExpression(Be),Be):Be}function Z(Be){return!ea(Be)&&(YM(Be)||uD(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 ye(Be){switch(Be.kind){case 195:return e.createParenthesizedType(Be)}return Be}function ie(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return q(Be)}function K(Be){return e.createNodeArray(Zi(Be,ie))}function pe(Be){switch(Be.kind){case 193:case 194:return e.createParenthesizedType(Be)}return ie(Be)}function de(Be){return e.createNodeArray(Zi(Be,pe))}function fe(Be){switch(Be.kind){case 194:return e.createParenthesizedType(Be)}return pe(Be)}function ve(Be){switch(Be.kind){case 199:return e.createParenthesizedType(Be)}return fe(Be)}function xe(Be){switch(Be.kind){case 196:case 199:case 187:return e.createParenthesizedType(Be)}return fe(Be)}function X(Be){return e.createNodeArray(Zi(Be,Ce))}function Ce(Be){return Je(Be)?e.createParenthesizedType(Be):Be}function Je(Be){return RD(Be)?Be.postfix:bD(Be)||O_(Be)||vD(Be)||KT(Be)?Je(Be.type):BS(Be)?Je(Be.falseType):dv(Be)||JI(Be)?Je(Ba(Be.types)):v1(Be)?!!Be.typeParameter.constraint&&Je(Be.typeParameter.constraint):!1}function Se(Be){return Je(Be)?e.createParenthesizedType(Be):xe(Be)}function re(Be){return lte(Be)&&Be.typeParameters?e.createParenthesizedType(Be):Be}function be(Be,lt){return lt===0?re(Be):Be}function Ne(Be){if(vt(Be))return e.createNodeArray(Zi(Be,be))}}var $re={getParenthesizeLeftSideOfBinaryForOperator:e=>Vs,getParenthesizeRightSideOfBinaryForOperator:e=>Vs,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Vs,parenthesizeConditionOfConditionalExpression:Vs,parenthesizeBranchOfConditionalExpression:Vs,parenthesizeExpressionOfExportDefault:Vs,parenthesizeExpressionOfNew:e=>ha(e,$u),parenthesizeLeftSideOfAccess:e=>ha(e,$u),parenthesizeOperandOfPostfixUnary:e=>ha(e,$u),parenthesizeOperandOfPrefixUnary:e=>ha(e,tG),parenthesizeExpressionsOfCommaDelimitedList:e=>ha(e,_S),parenthesizeExpressionForDisallowedComma:Vs,parenthesizeExpressionOfExpressionStatement:Vs,parenthesizeConciseBodyOfArrowFunction:Vs,parenthesizeCheckTypeOfConditionalType:Vs,parenthesizeExtendsTypeOfConditionalType:Vs,parenthesizeConstituentTypesOfUnionType:e=>ha(e,_S),parenthesizeConstituentTypeOfUnionType:Vs,parenthesizeConstituentTypesOfIntersectionType:e=>ha(e,_S),parenthesizeConstituentTypeOfIntersectionType:Vs,parenthesizeOperandOfTypeOperator:Vs,parenthesizeOperandOfReadonlyTypeOperator:Vs,parenthesizeNonArrayTypeOfPostfixType:Vs,parenthesizeElementTypesOfTupleType:e=>ha(e,_S),parenthesizeElementTypeOfTupleType:Vs,parenthesizeTypeOfOptionalType:Vs,parenthesizeTypeArguments:e=>e&&ha(e,_S),parenthesizeLeadingTypeArgument:Vs};function Qre(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:d,convertToAssignmentElementTarget:g};function t(h,y){if(ea(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=hS(h))==null?void 0:y.filter(A=>!VI(A)&&!_4(A)),h.asteriskToken,h.name,h.typeParameters,h.parameters,h.type,h.body);return jr(E,h),bt(E,h),wM(h)&&c4(E,!0),E}function i(h){var y;const E=e.createClassExpression((y=h.modifiers)==null?void 0:y.filter(A=>!VI(A)&&!_4(A)),h.name,h.typeParameters,h.heritageClauses,h.members);return jr(E,h),bt(E,h),wM(h)&&c4(E,!0),E}function o(h){if(Ha(h)){if(h.dotDotDotToken)return C.assertNode(h.name,He),jr(bt(e.createSpreadElement(h.name),h),h);const y=g(h.name);return h.initializer?jr(bt(e.createAssignment(y,h.initializer),h),h):y}return ha(h,St)}function s(h){if(Ha(h)){if(h.dotDotDotToken)return C.assertNode(h.name,He),jr(bt(e.createSpreadAssignment(h.name),h),h);if(h.propertyName){const y=g(h.name);return jr(bt(e.createPropertyAssignment(h.propertyName,h.initializer?e.createAssignment(y,h.initializer):y),h),h)}return C.assertNode(h.name,He),jr(bt(e.createShorthandPropertyAssignment(h.name,h.initializer),h),h)}return ha(h,ry)}function l(h){switch(h.kind){case 208:case 210:return d(h);case 207:case 211:return u(h)}}function u(h){return ff(h)?jr(bt(e.createObjectLiteralExpression(Bt(h.elements,s)),h),h):ha(h,Fa)}function d(h){return pv(h)?jr(bt(e.createArrayLiteralExpression(Bt(h.elements,o)),h),h):ha(h,Cd)}function g(h){return Qo(h)?l(h):ha(h,St)}}var Zre={convertToFunctionBlock:_a,convertToFunctionExpression:_a,convertToClassExpression:_a,convertToArrayAssignmentElement:_a,convertToObjectAssignmentElement:_a,convertToAssignmentPattern:_a,convertToObjectAssignmentPattern:_a,convertToArrayAssignmentPattern:_a,convertToAssignmentElementTarget:_a},sj=0,eie=(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))(eie||{}),iSe=[];function oSe(e){iSe.push(e)}function sw(e,t){const r=e&8?Vs:jr,i=Nu(()=>e&1?$re:Yre(k)),o=Nu(()=>e&2?Zre:Qre(k)),s=zh(T=>(M,V)=>ar(M,T,V)),l=zh(T=>M=>ut(T,M)),u=zh(T=>M=>an(M,T)),d=zh(T=>()=>Wo(T)),g=zh(T=>M=>nA(T,M)),h=zh(T=>(M,V)=>Mr(T,M,V)),y=zh(T=>(M,V)=>vp(T,M,V)),E=zh(T=>(M,V)=>Yb(T,M,V)),A=zh(T=>(M,V)=>O0(T,M,V)),R=zh(T=>(M,V,ue)=>Py(T,M,V,ue)),N=zh(T=>(M,V,ue)=>CC(T,M,V,ue)),P=zh(T=>(M,V,ue,tt)=>W0(T,M,V,ue,tt)),k={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:F,createNumericLiteral:J,createBigIntLiteral:Z,createStringLiteral:ye,createStringLiteralFromNode:ie,createRegularExpressionLiteral:K,createLiteralLikeNode:pe,createIdentifier:ve,createTempVariable:xe,createLoopVariable:X,createUniqueName:Ce,getGeneratedNameForNode:Je,createPrivateIdentifier:re,createUniquePrivateName:Ne,getGeneratedPrivateNameForNode:Be,createToken:ce,createSuper:Re,createThis:ge,createNull:je,createTrue:Ge,createFalse:We,createModifier:at,createModifiersFromModifierFlags:Wt,createQualifiedName:cn,updateQualifiedName:gn,createComputedPropertyName:Kn,updateComputedPropertyName:gt,createTypeParameterDeclaration:en,updateTypeParameterDeclaration:or,createParameterDeclaration:Di,updateParameterDeclaration:co,createDecorator:zt,updateDecorator:Zr,createPropertySignature:Ai,updatePropertySignature:Ni,createPropertyDeclaration:Ci,updatePropertyDeclaration:Ye,createMethodSignature:At,updateMethodSignature:mn,createMethodDeclaration:dr,updateMethodDeclaration:ri,createConstructorDeclaration:Pn,updateConstructorDeclaration:Uo,createGetAccessorDeclaration:Ft,updateGetAccessorDeclaration:le,createSetAccessorDeclaration:ne,updateSetAccessorDeclaration:Fe,createCallSignature:dt,updateCallSignature:Lt,createConstructSignature:Ue,updateConstructSignature:Rt,createIndexSignature:It,updateIndexSignature:Ot,createClassStaticBlockDeclaration:Hi,updateClassStaticBlockDeclaration:$o,createTemplateLiteralTypeSpan:nt,updateTemplateLiteralTypeSpan:Kt,createKeywordTypeNode:Tr,createTypePredicateNode:Oe,updateTypePredicateNode:Nt,createTypeReferenceNode:he,updateTypeReferenceNode:B,createFunctionTypeNode:Ae,updateFunctionTypeNode:te,createConstructorTypeNode:Xt,updateConstructorTypeNode:Gt,createTypeQueryNode:Jn,updateTypeQueryNode:ft,createTypeLiteralNode:Mt,updateTypeLiteralNode:jt,createArrayTypeNode:Qt,updateArrayTypeNode:In,createTupleTypeNode:yn,updateTupleTypeNode:wt,createNamedTupleMember:En,updateNamedTupleMember:xn,createOptionalTypeNode:kn,updateOptionalTypeNode:ln,createRestTypeNode:Ii,updateRestTypeNode:ra,createUnionTypeNode:Bl,updateUnionTypeNode:xl,createIntersectionTypeNode:Ps,updateIntersectionTypeNode:uo,createConditionalTypeNode:Go,updateConditionalTypeNode:Tc,createInferTypeNode:$s,updateInferTypeNode:Ra,createImportTypeNode:Lo,updateImportTypeNode:fa,createParenthesizedType:is,updateParenthesizedType:qa,createThisTypeNode:Zt,createTypeOperatorNode:As,updateTypeOperatorNode:Hl,createIndexedAccessTypeNode:lc,updateIndexedAccessTypeNode:vd,createMappedTypeNode:Fs,updateMappedTypeNode:Ee,createLiteralTypeNode:Y,updateLiteralTypeNode:pt,createTemplateLiteralType:ec,updateTemplateLiteralType:bf,createObjectBindingPattern:qt,updateObjectBindingPattern:fn,createArrayBindingPattern:ur,updateArrayBindingPattern:si,createBindingElement:Dr,updateBindingElement:zn,createArrayLiteralExpression:ro,updateArrayLiteralExpression:Eo,createObjectLiteralExpression:Ns,updateObjectLiteralExpression:Da,createPropertyAccessExpression:e&4?(T,M)=>Cr(Sc(T,M),262144):Sc,updatePropertyAccessExpression:mc,createPropertyAccessChain:e&4?(T,M,V)=>Cr(Hs(T,M,V),262144):Hs,updatePropertyAccessChain:Pl,createElementAccessExpression:Pd,updateElementAccessExpression:nf,createElementAccessChain:op,updateElementAccessChain:ze,createCallExpression:tr,updateCallExpression:yo,createCallChain:Za,updateCallChain:es,createNewExpression:Va,updateNewExpression:Mc,createTaggedTemplateExpression:rl,updateTaggedTemplateExpression:Ll,createTypeAssertion:ql,updateTypeAssertion:rf,createParenthesizedExpression:bd,updateParenthesizedExpression:ld,createFunctionExpression:jp,updateFunctionExpression:Au,createArrowFunction:Xf,updateArrowFunction:V_,createDeleteExpression:Ng,updateDeleteExpression:Mg,createTypeOfExpression:ap,updateTypeOfExpression:Xc,createVoidExpression:bh,updateVoidExpression:Tf,createAwaitExpression:f_,updateAwaitExpression:oe,createPrefixUnaryExpression:ut,updatePrefixUnaryExpression:tn,createPostfixUnaryExpression:an,updatePostfixUnaryExpression:On,createBinaryExpression:ar,updateBinaryExpression:Ti,createConditionalExpression:$i,updateConditionalExpression:z,createTemplateExpression:Ve,updateTemplateExpression:kt,createTemplateHead:hl,createTemplateMiddle:Ca,createTemplateTail:cd,createNoSubstitutionTemplateLiteral:Up,createTemplateLiteralLikeNode:Vo,createYieldExpression:Sf,updateYieldExpression:Yf,createSpreadElement:Sy,updateSpreadElement:Tv,createClassExpression:Bu,updateClassExpression:j_,createOmittedExpression:Th,createExpressionWithTypeArguments:xm,updateExpressionWithTypeArguments:Hb,createAsExpression:Xe,updateAsExpression:mt,createNonNullExpression:Yt,updateNonNullExpression:Rn,createSatisfiesExpression:Qn,updateSatisfiesExpression:Lr,createNonNullChain:Yn,updateNonNullChain:cr,createMetaProperty:Oi,updateMetaProperty:Ro,createTemplateSpan:_i,updateTemplateSpan:Do,createSemicolonClassElement:Qi,createBlock:_l,updateBlock:sp,createVariableStatement:Rm,updateVariableStatement:Td,createEmptyStatement:Dm,createExpressionStatement:Hp,updateExpressionStatement:b0,createIfStatement:m_,updateIfStatement:U_,createDoStatement:T0,updateDoStatement:H_,createWhileStatement:TC,updateWhileStatement:tL,createForStatement:SC,updateForStatement:Pg,createForInStatement:S0,updateForInStatement:J1,createForOfStatement:Sv,updateForOfStatement:K1,createContinueStatement:Dx,updateContinueStatement:nL,createBreakStatement:X1,updateBreakStatement:Cx,createReturnStatement:E0,updateReturnStatement:EC,createWithStatement:Y1,updateWithStatement:Nx,createSwitchStatement:cE,updateSwitchStatement:qb,createLabeledStatement:Mx,updateLabeledStatement:Px,createThrowStatement:dE,updateThrowStatement:Jb,createTryStatement:Ev,updateTryStatement:Ey,createDebuggerStatement:Ay,createVariableDeclaration:Iy,updateVariableDeclaration:Kb,createVariableDeclarationList:A0,updateVariableDeclarationList:$1,createFunctionDeclaration:I0,updateFunctionDeclaration:ns,createClassDeclaration:AC,updateClassDeclaration:xy,createInterfaceDeclaration:Ry,updateInterfaceDeclaration:q_,createTypeAliasDeclaration:ul,updateTypeAliasDeclaration:qd,createEnumDeclaration:lp,updateEnumDeclaration:Jd,createModuleDeclaration:x0,updateModuleDeclaration:Iu,createModuleBlock:J_,updateModuleBlock:Gu,createCaseBlock:Cm,updateCaseBlock:Jm,createNamespaceExportDeclaration:R0,updateNamespaceExportDeclaration:D0,createImportEqualsDeclaration:IC,updateImportEqualsDeclaration:Av,createImportDeclaration:uE,updateImportDeclaration:Qe,createImportClause:Z1,updateImportClause:Lg,createAssertClause:Km,updateAssertClause:Iv,createAssertEntry:Xb,updateAssertEntry:xu,createImportTypeAssertionContainer:Sh,updateImportTypeAssertionContainer:Nm,createImportAttributes:C0,updateImportAttributes:ja,createImportAttribute:Ef,updateImportAttribute:xv,createNamespaceImport:eA,updateNamespaceImport:Dy,createNamespaceExport:pE,updateNamespaceExport:$f,createNamedImports:kg,updateNamedImports:N0,createImportSpecifier:Rv,updateImportSpecifier:h_,createExportAssignment:fE,updateExportAssignment:M0,createExportDeclaration:Jr,updateExportDeclaration:Vr,createNamedExports:tA,updateNamedExports:Cy,createExportSpecifier:mE,updateExportSpecifier:xC,createMissingDeclaration:iL,createExternalModuleReference:zr,updateExternalModuleReference:Ru,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 g(317)},get updateJSDocOptionalType(){return h(317)},get createJSDocVariadicType(){return g(319)},get updateJSDocVariadicType(){return h(319)},get createJSDocNamepathType(){return g(320)},get updateJSDocNamepathType(){return h(320)},createJSDocFunctionType:RC,updateJSDocFunctionType:Lx,createJSDocTypeLiteral:du,updateJSDocTypeLiteral:K_,createJSDocTypeExpression:Eh,updateJSDocTypeExpression:$b,createJSDocSignature:rA,updateJSDocSignature:Qb,createJSDocTemplateTag:cp,updateJSDocTemplateTag:Dv,createJSDocTypedefTag:P0,updateJSDocTypedefTag:kx,createJSDocParameterTag:L0,updateJSDocParameterTag:Zb,createJSDocPropertyTag:wx,updateJSDocPropertyTag:Ny,createJSDocCallbackTag:__,updateJSDocCallbackTag:eT,createJSDocOverloadTag:k0,updateJSDocOverloadTag:Cv,createJSDocAugmentsTag:tT,updateJSDocAugmentsTag:Ym,createJSDocImplementsTag:My,updateJSDocImplementsTag:Fx,createJSDocSeeTag:wg,updateJSDocSeeTag:nT,createJSDocImportTag:dp,updateJSDocImportTag:Zf,createJSDocNameReference:dd,updateJSDocNameReference:hE,createJSDocMemberName:Og,updateJSDocMemberName:w0,createJSDocLink:iA,updateJSDocLink:Wg,createJSDocLinkCode:DC,updateJSDocLinkCode:Ox,createJSDocLinkPlain:Wx,updateJSDocLinkPlain:oL,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:ud,updateJSDocEnumTag:zx,createJSDocUnknownTag:oA,updateJSDocUnknownTag:hc,createJSDocText:_E,updateJSDocText:Ah,createJSDocComment:rT,updateJSDocComment:Nv,createJsxElement:Bx,updateJsxElement:aL,createJsxSelfClosingElement:Gl,updateJsxSelfClosingElement:NC,createJsxOpeningElement:aA,updateJsxOpeningElement:gE,createJsxClosingElement:Gx,updateJsxClosingElement:uu,createJsxFragment:bp,createJsxText:F0,updateJsxText:Tp,createJsxOpeningFragment:lA,createJsxJsxClosingFragment:Fg,updateJsxFragment:sA,createJsxAttribute:Vx,updateJsxAttribute:cA,createJsxAttributes:$m,updateJsxAttributes:jx,createJsxSpreadAttribute:MC,updateJsxSpreadAttribute:Ux,createJsxExpression:dA,updateJsxExpression:Hx,createJsxNamespacedName:Mv,updateJsxNamespacedName:qp,createCaseClause:g_,updateCaseClause:uA,createDefaultClause:pA,updateDefaultClause:os,createHeritageClause:Wr,updateHeritageClause:If,createCatchClause:Yc,updateCatchClause:z0,createPropertyAssignment:fA,updatePropertyAssignment:yE,createShorthandPropertyAssignment:mA,updateShorthandPropertyAssignment:D,createSpreadAssignment:Et,updateSpreadAssignment:An,createEnumMember:vi,updateEnumMember:wi,createSourceFile:Io,updateSourceFile:G0,createRedirectedSourceFile:ki,createBundle:ju,updateBundle:iT,createSyntheticExpression:qx,createSyntaxList:Mm,createNotEmittedStatement:bl,createNotEmittedTypeElement:Qm,createPartiallyEmittedExpression:hA,updatePartiallyEmittedExpression:Pv,createCommaListExpression:vE,updateCommaListExpression:Wz,createSyntheticReferenceExpression:sL,updateSyntheticReferenceExpression:Jx,cloneNode:_A,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:Fz,createImmediatelyInvokedArrowFunction:bE,createVoidZero:gA,createExportDefault:cL,createExternalModuleExport:Xx,createTypeCheck:po,createIsNotTypeCheck:aT,createMethodCall:sr,createGlobalMethodCall:TE,createFunctionBindCall:dL,createFunctionCallCall:PC,createFunctionApplyCall:LC,createArraySliceCall:TW,createArrayConcatCall:yA,createObjectDefinePropertyCall:zz,createObjectGetOwnPropertyDescriptorCall:kC,createReflectGetCall:X_,createReflectSetCall:SW,createPropertyDescriptor:Bz,createCallBinding:wC,createAssignmentTargetWrapper:y_,inlineExpressions:ee,getInternalName:rt,getLocalName:Pt,getExportName:nn,getDeclarationName:_n,getNamespaceMemberName:ei,getExternalModuleOrNamespaceExportName:wr,restoreOuterExpressions:pL,restoreEnclosingLabel:j0,createUseStrictPrologue:ao,copyPrologue:pr,copyStandardPrologue:zs,copyCustomPrologue:Is,ensureUseStrict:as,liftToBlock:em,mergeLexicalEnvironment:kv,replaceModifiers:wv,replaceDecoratorsAndModifiers:zg,replacePropertyName:sT};return $e(iSe,T=>T(k)),k;function F(T,M){if(T===void 0||T===se)T=[];else if(_S(T)){if(M===void 0||T.hasTrailingComma===M)return T.transformFlags===void 0&&sSe(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,ue=V>=1&&V<=4?T.slice():T;return ue.pos=-1,ue.end=-1,ue.hasTrailingComma=!!M,ue.transformFlags=0,sSe(ue),C.attachNodeArrayDebugInfo(ue),ue}function O(T){return t.createBaseNode(T)}function G(T){const M=O(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 ue=G(9);return ue.text=V,ue.numericLiteralFlags=M,M&384&&(ue.transformFlags|=1024),ue}function Z(T){const M=lt(10);return M.text=typeof T=="string"?T:OS(T)+"n",M.transformFlags|=32,M}function q(T,M){const V=G(11);return V.text=T,V.singleQuote=M,V}function ye(T,M,V){const ue=q(T,M);return ue.hasExtendedUnicodeEscape=V,V&&(ue.transformFlags|=1024),ue}function ie(T){const M=q(zf(T),void 0);return M.textSourceNode=T,M}function K(T){const M=lt(14);return M.text=T,M}function pe(T,M){switch(T){case 9:return J(M,0);case 10:return Z(M);case 11:return ye(M,void 0);case 12:return F0(M,!1);case 13:return F0(M,!0);case 14:return K(M);case 15:return Vo(T,M,void 0,0)}}function de(T){const M=t.createBaseIdentifierNode(80);return M.escapedText=T,M.jsDoc=void 0,M.flowNode=void 0,M.symbol=void 0,M}function fe(T,M,V,ue){const tt=de(Cl(T));return pw(tt,{flags:M,id:sj,prefix:V,suffix:ue}),sj++,tt}function ve(T,M,V){M===void 0&&T&&(M=qE(T)),M===80&&(M=void 0);const ue=de(Cl(T));return V&&(ue.flags|=256),ue.escapedText==="await"&&(ue.transformFlags|=67108864),ue.flags&256&&(ue.transformFlags|=1024),ue}function xe(T,M,V,ue){let tt=1;M&&(tt|=8);const rn=fe("",tt,V,ue);return T&&T(rn),rn}function X(T){let M=2;return T&&(M|=8),fe("",M,void 0,void 0)}function Ce(T,M=0,V,ue){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"),fe(T,3|M,V,ue)}function Je(T,M=0,V,ue){C.assert(!(M&7),"Argument out of range: flags");const tt=T?ug(T)?r0(!1,V,T,ue,Kr):`generated@${ls(T)}`:"";(V||ue)&&(M|=16);const rn=fe(tt,4|M,V,ue);return rn.original=T,rn}function Se(T){const M=t.createBasePrivateIdentifierNode(81);return M.escapedText=T,M.transformFlags|=16777216,M}function re(T){return fo(T,"#")||C.fail("First character of private identifier must be #: "+T),Se(Cl(T))}function be(T,M,V,ue){const tt=Se(Cl(T));return pw(tt,{flags:M,id:sj,prefix:V,suffix:ue}),sj++,tt}function Ne(T,M,V){T&&!fo(T,"#")&&C.fail("First character of private identifier must be #: "+T);const ue=8|(T?3:1);return be(T??"",ue,M,V)}function Be(T,M,V){const ue=ug(T)?r0(!0,M,T,V,Kr):`#generated@${ls(T)}`,rn=be(ue,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 Re(){return ce(108)}function ge(){return ce(110)}function je(){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=O(167);return V.left=T,V.right=Gc(M),V.transformFlags|=Fr(V.left)|lw(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=O(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,ue){const tt=G(169);return tt.modifiers=cs(T),tt.name=Gc(M),tt.constraint=V,tt.default=ue,tt.transformFlags=1,tt.expression=void 0,tt.jsDoc=void 0,tt}function or(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.constraint!==ue||T.default!==tt?br(en(M,V,ue,tt),T):T}function Di(T,M,V,ue,tt,rn){const Or=G(170);return Or.modifiers=cs(T),Or.dotDotDotToken=M,Or.name=Gc(V),Or.questionToken=ue,Or.type=tt,Or.initializer=pu(rn),Eb(Or.name)?Or.transformFlags=1:Or.transformFlags=rs(Or.modifiers)|Fr(Or.dotDotDotToken)|Db(Or.name)|Fr(Or.questionToken)|Fr(Or.initializer)|(Or.questionToken??Or.type?1:0)|(Or.dotDotDotToken??Or.initializer?1024:0)|(Yh(Or.modifiers)&31?8192:0),Or.jsDoc=void 0,Or}function co(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.dotDotDotToken!==V||T.name!==ue||T.questionToken!==tt||T.type!==rn||T.initializer!==Or?br(Di(M,V,ue,tt,rn,Or),T):T}function zt(T){const M=O(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 Ai(T,M,V,ue){const tt=G(172);return tt.modifiers=cs(T),tt.name=Gc(M),tt.type=ue,tt.questionToken=V,tt.transformFlags=1,tt.initializer=void 0,tt.jsDoc=void 0,tt}function Ni(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.questionToken!==ue||T.type!==tt?Pr(Ai(M,V,ue,tt),T):T}function Pr(T,M){return T!==M&&(T.initializer=M.initializer),br(T,M)}function Ci(T,M,V,ue,tt){const rn=G(173);rn.modifiers=cs(T),rn.name=Gc(M),rn.questionToken=V&&Nb(V)?V:void 0,rn.exclamationToken=V&&mw(V)?V:void 0,rn.type=ue,rn.initializer=pu(tt);const Or=rn.flags&33554432||Yh(rn.modifiers)&128;return rn.transformFlags=rs(rn.modifiers)|Db(rn.name)|Fr(rn.initializer)|(Or||rn.questionToken||rn.exclamationToken||rn.type?1:0)|(va(rn.name)||Yh(rn.modifiers)&256&&rn.initializer?8192:0)|16777216,rn.jsDoc=void 0,rn}function Ye(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.questionToken!==(ue!==void 0&&Nb(ue)?ue:void 0)||T.exclamationToken!==(ue!==void 0&&mw(ue)?ue:void 0)||T.type!==tt||T.initializer!==rn?br(Ci(M,V,ue,tt,rn),T):T}function At(T,M,V,ue,tt,rn){const Or=G(174);return Or.modifiers=cs(T),Or.name=Gc(M),Or.questionToken=V,Or.typeParameters=cs(ue),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 mn(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.name!==V||T.questionToken!==ue||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or?j(At(M,V,ue,tt,rn,Or),T):T}function dr(T,M,V,ue,tt,rn,Or,ko){const il=G(175);if(il.modifiers=cs(T),il.asteriskToken=M,il.name=Gc(V),il.questionToken=ue,il.exclamationToken=void 0,il.typeParameters=cs(tt),il.parameters=F(rn),il.type=Or,il.body=ko,!il.body)il.transformFlags=1;else{const of=Yh(il.modifiers)&1024,lT=!!il.asteriskToken,Ih=of&&lT;il.transformFlags=rs(il.modifiers)|Fr(il.asteriskToken)|Db(il.name)|Fr(il.questionToken)|rs(il.typeParameters)|rs(il.parameters)|Fr(il.type)|Fr(il.body)&-67108865|(Ih?128:of?256:lT?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,ue,tt,rn,Or,ko,il){return T.modifiers!==M||T.asteriskToken!==V||T.name!==ue||T.questionToken!==tt||T.typeParameters!==rn||T.parameters!==Or||T.type!==ko||T.body!==il?ai(dr(M,V,ue,tt,rn,Or,ko,il),T):T}function ai(T,M){return T!==M&&(T.exclamationToken=M.exclamationToken),br(T,M)}function Hi(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 $o(T,M){return T.body!==M?Ia(Hi(M),T):T}function Ia(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function Pn(T,M,V){const ue=G(177);return ue.modifiers=cs(T),ue.parameters=F(M),ue.body=V,ue.body?ue.transformFlags=rs(ue.modifiers)|rs(ue.parameters)|Fr(ue.body)&-67108865|1024:ue.transformFlags=1,ue.typeParameters=void 0,ue.type=void 0,ue.typeArguments=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.returnFlowNode=void 0,ue}function Uo(T,M,V,ue){return T.modifiers!==M||T.parameters!==V||T.body!==ue?ot(Pn(M,V,ue),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,ue,tt){const rn=G(178);return rn.modifiers=cs(T),rn.name=Gc(M),rn.parameters=F(V),rn.type=ue,rn.body=tt,rn.body?rn.transformFlags=rs(rn.modifiers)|Db(rn.name)|rs(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,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.parameters!==ue||T.type!==tt||T.body!==rn?ht(Ft(M,V,ue,tt,rn),T):T}function ht(T,M){return T!==M&&(T.typeParameters=M.typeParameters),j(T,M)}function ne(T,M,V,ue){const tt=G(179);return tt.modifiers=cs(T),tt.name=Gc(M),tt.parameters=F(V),tt.body=ue,tt.body?tt.transformFlags=rs(tt.modifiers)|Db(tt.name)|rs(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,ue,tt){return T.modifiers!==M||T.name!==V||T.parameters!==ue||T.body!==tt?it(ne(M,V,ue,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 ue=G(180);return ue.typeParameters=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Lt(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?j(dt(M,V,ue),T):T}function Ue(T,M,V){const ue=G(181);return ue.typeParameters=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Rt(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?j(Ue(M,V,ue),T):T}function It(T,M,V){const ue=G(182);return ue.modifiers=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function Ot(T,M,V,ue){return T.parameters!==V||T.type!==ue||T.modifiers!==M?j(It(M,V,ue),T):T}function nt(T,M){const V=O(205);return V.type=T,V.literal=M,V.transformFlags=1,V}function Kt(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 ue=O(183);return ue.assertsModifier=T,ue.parameterName=Gc(M),ue.type=V,ue.transformFlags=1,ue}function Nt(T,M,V,ue){return T.assertsModifier!==M||T.parameterName!==V||T.type!==ue?br(Oe(M,V,ue),T):T}function he(T,M){const V=O(184);return V.typeName=Gc(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(he(M,V),T):T}function Ae(T,M,V){const ue=G(185);return ue.typeParameters=cs(T),ue.parameters=cs(M),ue.type=V,ue.transformFlags=1,ue.modifiers=void 0,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.typeArguments=void 0,ue}function te(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?xt(Ae(M,V,ue),T):T}function xt(T,M){return T!==M&&(T.modifiers=M.modifiers),j(T,M)}function Xt(...T){return T.length===4?Pe(...T):T.length===3?yt(...T):C.fail("Incorrect number of arguments specified.")}function Pe(T,M,V,ue){const tt=G(186);return tt.modifiers=cs(T),tt.typeParameters=cs(M),tt.parameters=cs(V),tt.type=ue,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 Pe(void 0,T,M,V)}function Gt(...T){return T.length===5?gr(...T):T.length===4?nr(...T):C.fail("Incorrect number of arguments specified.")}function gr(T,M,V,ue,tt){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==ue||T.type!==tt?j(Xt(M,V,ue,tt),T):T}function nr(T,M,V,ue){return gr(T,T.modifiers,M,V,ue)}function Jn(T,M){const V=O(187);return V.exprName=T,V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags=1,V}function ft(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 jt(T,M){return T.members!==M?br(Mt(M),T):T}function Qt(T){const M=O(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=O(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,ue){const tt=G(203);return tt.dotDotDotToken=T,tt.name=M,tt.questionToken=V,tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt}function xn(T,M,V,ue,tt){return T.dotDotDotToken!==M||T.name!==V||T.questionToken!==ue||T.type!==tt?br(En(M,V,ue,tt),T):T}function kn(T){const M=O(191);return M.type=i().parenthesizeTypeOfOptionalType(T),M.transformFlags=1,M}function ln(T,M){return T.type!==M?br(kn(M),T):T}function Ii(T){const M=O(192);return M.type=T,M.transformFlags=1,M}function ra(T,M){return T.type!==M?br(Ii(M),T):T}function la(T,M,V){const ue=O(T);return ue.types=k.createNodeArray(V(M)),ue.transformFlags=1,ue}function zo(T,M,V){return T.types!==M?br(la(T.kind,M,V),T):T}function Bl(T){return la(193,T,i().parenthesizeConstituentTypesOfUnionType)}function xl(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfUnionType)}function Ps(T){return la(194,T,i().parenthesizeConstituentTypesOfIntersectionType)}function uo(T,M){return zo(T,M,i().parenthesizeConstituentTypesOfIntersectionType)}function Go(T,M,V,ue){const tt=O(195);return tt.checkType=i().parenthesizeCheckTypeOfConditionalType(T),tt.extendsType=i().parenthesizeExtendsTypeOfConditionalType(M),tt.trueType=V,tt.falseType=ue,tt.transformFlags=1,tt.locals=void 0,tt.nextContainer=void 0,tt}function Tc(T,M,V,ue,tt){return T.checkType!==M||T.extendsType!==V||T.trueType!==ue||T.falseType!==tt?br(Go(M,V,ue,tt),T):T}function $s(T){const M=O(196);return M.typeParameter=T,M.transformFlags=1,M}function Ra(T,M){return T.typeParameter!==M?br($s(M),T):T}function ec(T,M){const V=O(204);return V.head=T,V.templateSpans=F(M),V.transformFlags=1,V}function bf(T,M,V){return T.head!==M||T.templateSpans!==V?br(ec(M,V),T):T}function Lo(T,M,V,ue,tt=!1){const rn=O(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=ue&&i().parenthesizeTypeArguments(ue),rn.isTypeOf=tt,rn.transformFlags=1,rn}function fa(T,M,V,ue,tt,rn=T.isTypeOf){return T.argument!==M||T.attributes!==V||T.qualifier!==ue||T.typeArguments!==tt||T.isTypeOf!==rn?br(Lo(M,V,ue,tt,rn),T):T}function is(T){const M=O(197);return M.type=T,M.transformFlags=1,M}function qa(T,M){return T.type!==M?br(is(M),T):T}function Zt(){const T=O(198);return T.transformFlags=1,T}function As(T,M){const V=O(199);return V.operator=T,V.type=T===148?i().parenthesizeOperandOfReadonlyTypeOperator(M):i().parenthesizeOperandOfTypeOperator(M),V.transformFlags=1,V}function Hl(T,M){return T.type!==M?br(As(T.operator,M),T):T}function lc(T,M){const V=O(200);return V.objectType=i().parenthesizeNonArrayTypeOfPostfixType(T),V.indexType=M,V.transformFlags=1,V}function vd(T,M,V){return T.objectType!==M||T.indexType!==V?br(lc(M,V),T):T}function Fs(T,M,V,ue,tt,rn){const Or=G(201);return Or.readonlyToken=T,Or.typeParameter=M,Or.nameType=V,Or.questionToken=ue,Or.type=tt,Or.members=rn&&F(rn),Or.transformFlags=1,Or.locals=void 0,Or.nextContainer=void 0,Or}function Ee(T,M,V,ue,tt,rn,Or){return T.readonlyToken!==M||T.typeParameter!==V||T.nameType!==ue||T.questionToken!==tt||T.type!==rn||T.members!==Or?br(Fs(M,V,ue,tt,rn,Or),T):T}function Y(T){const M=O(202);return M.literal=T,M.transformFlags=1,M}function pt(T,M){return T.literal!==M?br(Y(M),T):T}function qt(T){const M=O(207);return M.elements=F(T),M.transformFlags|=rs(M.elements)|1024|524288,M.transformFlags&32768&&(M.transformFlags|=65664),M}function fn(T,M){return T.elements!==M?br(qt(M),T):T}function ur(T){const M=O(208);return M.elements=F(T),M.transformFlags|=rs(M.elements)|1024|524288,M}function si(T,M){return T.elements!==M?br(ur(M),T):T}function Dr(T,M,V,ue){const tt=G(209);return tt.dotDotDotToken=T,tt.propertyName=Gc(M),tt.name=Gc(V),tt.initializer=pu(ue),tt.transformFlags|=Fr(tt.dotDotDotToken)|Db(tt.propertyName)|Db(tt.name)|Fr(tt.initializer)|(tt.dotDotDotToken?32768:0)|1024,tt.flowNode=void 0,tt}function zn(T,M,V,ue,tt){return T.propertyName!==V||T.dotDotDotToken!==M||T.name!==ue||T.initializer!==tt?br(Dr(M,V,ue,tt),T):T}function ro(T,M){const V=O(210),ue=T&&tl(T),tt=F(T,ue&&Jc(ue)?!0:void 0);return V.elements=i().parenthesizeExpressionsOfCommaDelimitedList(tt),V.multiLine=M,V.transformFlags|=rs(V.elements),V}function Eo(T,M){return T.elements!==M?br(ro(M,T.multiLine),T):T}function Ns(T,M){const V=G(211);return V.properties=F(T),V.multiLine=M,V.transformFlags|=rs(V.properties),V.jsDoc=void 0,V}function Da(T,M){return T.properties!==M?br(Ns(M,T.multiLine),T):T}function Qs(T,M,V){const ue=G(212);return ue.expression=T,ue.questionDotToken=M,ue.name=V,ue.transformFlags=Fr(ue.expression)|Fr(ue.questionDotToken)|(He(ue.name)?lw(ue.name):Fr(ue.name)|536870912),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Sc(T,M){const V=Qs(i().parenthesizeLeftSideOfAccess(T,!1),void 0,Gc(M));return zM(T)&&(V.transformFlags|=384),V}function mc(T,M,V){return mF(T)?Pl(T,M,T.questionDotToken,ha(V,He)):T.expression!==M||T.name!==V?br(Sc(M,V),T):T}function Hs(T,M,V){const ue=Qs(i().parenthesizeLeftSideOfAccess(T,!0),M,Gc(V));return ue.flags|=64,ue.transformFlags|=32,ue}function Pl(T,M,V,ue){return C.assert(!!(T.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),T.expression!==M||T.questionDotToken!==V||T.name!==ue?br(Hs(M,V,ue),T):T}function vh(T,M,V){const ue=G(213);return ue.expression=T,ue.questionDotToken=M,ue.argumentExpression=V,ue.transformFlags|=Fr(ue.expression)|Fr(ue.questionDotToken)|Fr(ue.argumentExpression),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Pd(T,M){const V=vh(i().parenthesizeLeftSideOfAccess(T,!1),void 0,Ov(M));return zM(T)&&(V.transformFlags|=384),V}function nf(T,M,V){return U9(T)?ze(T,M,T.questionDotToken,V):T.expression!==M||T.argumentExpression!==V?br(Pd(M,V),T):T}function op(T,M,V){const ue=vh(i().parenthesizeLeftSideOfAccess(T,!0),M,Ov(V));return ue.flags|=64,ue.transformFlags|=32,ue}function ze(T,M,V,ue){return C.assert(!!(T.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),T.expression!==M||T.questionDotToken!==V||T.argumentExpression!==ue?br(op(M,V,ue),T):T}function Jt(T,M,V,ue){const tt=G(214);return tt.expression=T,tt.questionDotToken=M,tt.typeArguments=V,tt.arguments=ue,tt.transformFlags|=Fr(tt.expression)|Fr(tt.questionDotToken)|rs(tt.typeArguments)|rs(tt.arguments),tt.typeArguments&&(tt.transformFlags|=1),mp(tt.expression)&&(tt.transformFlags|=16384),tt}function tr(T,M,V){const ue=Jt(i().parenthesizeLeftSideOfAccess(T,!1),void 0,cs(M),i().parenthesizeExpressionsOfCommaDelimitedList(F(V)));return BM(ue.expression)&&(ue.transformFlags|=8388608),ue}function yo(T,M,V,ue){return XE(T)?es(T,M,T.questionDotToken,V,ue):T.expression!==M||T.typeArguments!==V||T.arguments!==ue?br(tr(M,V,ue),T):T}function Za(T,M,V,ue){const tt=Jt(i().parenthesizeLeftSideOfAccess(T,!0),M,cs(V),i().parenthesizeExpressionsOfCommaDelimitedList(F(ue)));return tt.flags|=64,tt.transformFlags|=32,tt}function es(T,M,V,ue,tt){return C.assert(!!(T.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),T.expression!==M||T.questionDotToken!==V||T.typeArguments!==ue||T.arguments!==tt?br(Za(M,V,ue,tt),T):T}function Va(T,M,V){const ue=G(215);return ue.expression=i().parenthesizeExpressionOfNew(T),ue.typeArguments=cs(M),ue.arguments=V?i().parenthesizeExpressionsOfCommaDelimitedList(V):void 0,ue.transformFlags|=Fr(ue.expression)|rs(ue.typeArguments)|rs(ue.arguments)|32,ue.typeArguments&&(ue.transformFlags|=1),ue}function Mc(T,M,V,ue){return T.expression!==M||T.typeArguments!==V||T.arguments!==ue?br(Va(M,V,ue),T):T}function rl(T,M,V){const ue=O(216);return ue.tag=i().parenthesizeLeftSideOfAccess(T,!1),ue.typeArguments=cs(M),ue.template=V,ue.transformFlags|=Fr(ue.tag)|rs(ue.typeArguments)|Fr(ue.template)|1024,ue.typeArguments&&(ue.transformFlags|=1),ZG(ue.template)&&(ue.transformFlags|=128),ue}function Ll(T,M,V,ue){return T.tag!==M||T.typeArguments!==V||T.template!==ue?br(rl(M,V,ue),T):T}function ql(T,M){const V=O(217);return V.expression=i().parenthesizeOperandOfPrefixUnary(M),V.type=T,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function rf(T,M,V){return T.type!==M||T.expression!==V?br(ql(M,V),T):T}function bd(T){const M=O(218);return M.expression=T,M.transformFlags=Fr(M.expression),M.jsDoc=void 0,M}function ld(T,M){return T.expression!==M?br(bd(M),T):T}function jp(T,M,V,ue,tt,rn,Or){const ko=G(219);ko.modifiers=cs(T),ko.asteriskToken=M,ko.name=Gc(V),ko.typeParameters=cs(ue),ko.parameters=F(tt),ko.type=rn,ko.body=Or;const il=Yh(ko.modifiers)&1024,of=!!ko.asteriskToken,lT=il&&of;return ko.transformFlags=rs(ko.modifiers)|Fr(ko.asteriskToken)|Db(ko.name)|rs(ko.typeParameters)|rs(ko.parameters)|Fr(ko.type)|Fr(ko.body)&-67108865|(lT?128:il?256:of?2048:0)|(ko.typeParameters||ko.type?1:0)|4194304,ko.typeArguments=void 0,ko.jsDoc=void 0,ko.locals=void 0,ko.nextContainer=void 0,ko.flowNode=void 0,ko.endFlowNode=void 0,ko.returnFlowNode=void 0,ko}function Au(T,M,V,ue,tt,rn,Or,ko){return T.name!==ue||T.modifiers!==M||T.asteriskToken!==V||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==ko?j(jp(M,V,ue,tt,rn,Or,ko),T):T}function Xf(T,M,V,ue,tt,rn){const Or=G(220);Or.modifiers=cs(T),Or.typeParameters=cs(M),Or.parameters=F(V),Or.type=ue,Or.equalsGreaterThanToken=tt??ce(39),Or.body=i().parenthesizeConciseBodyOfArrowFunction(rn);const ko=Yh(Or.modifiers)&1024;return Or.transformFlags=rs(Or.modifiers)|rs(Or.typeParameters)|rs(Or.parameters)|Fr(Or.type)|Fr(Or.equalsGreaterThanToken)|Fr(Or.body)&-67108865|(Or.typeParameters||Or.type?1:0)|(ko?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 V_(T,M,V,ue,tt,rn,Or){return T.modifiers!==M||T.typeParameters!==V||T.parameters!==ue||T.type!==tt||T.equalsGreaterThanToken!==rn||T.body!==Or?j(Xf(M,V,ue,tt,rn,Or),T):T}function Ng(T){const M=O(221);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Mg(T,M){return T.expression!==M?br(Ng(M),T):T}function ap(T){const M=O(222);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Xc(T,M){return T.expression!==M?br(ap(M),T):T}function bh(T){const M=O(223);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression),M}function Tf(T,M){return T.expression!==M?br(bh(M),T):T}function f_(T){const M=O(224);return M.expression=i().parenthesizeOperandOfPrefixUnary(T),M.transformFlags|=Fr(M.expression)|256|128|2097152,M}function oe(T,M){return T.expression!==M?br(f_(M),T):T}function ut(T,M){const V=O(225);return V.operator=T,V.operand=i().parenthesizeOperandOfPrefixUnary(M),V.transformFlags|=Fr(V.operand),(T===46||T===47)&&He(V.operand)&&!fl(V.operand)&&!my(V.operand)&&(V.transformFlags|=268435456),V}function tn(T,M){return T.operand!==M?br(ut(T.operator,M),T):T}function an(T,M){const V=O(226);return V.operator=M,V.operand=i().parenthesizeOperandOfPostfixUnary(T),V.transformFlags|=Fr(V.operand),He(V.operand)&&!fl(V.operand)&&!my(V.operand)&&(V.transformFlags|=268435456),V}function On(T,M){return T.operand!==M?br(an(M,T.operator),T):T}function ar(T,M,V){const ue=G(227),tt=Yx(M),rn=tt.kind;return ue.left=i().parenthesizeLeftSideOfBinary(rn,T),ue.operatorToken=tt,ue.right=i().parenthesizeRightSideOfBinary(rn,ue.left,V),ue.transformFlags|=Fr(ue.left)|Fr(ue.operatorToken)|Fr(ue.right),rn===61?ue.transformFlags|=32:rn===64?Fa(ue.left)?ue.transformFlags|=5248|ti(ue.left):Cd(ue.left)&&(ue.transformFlags|=5120|ti(ue.left)):rn===43||rn===68?ue.transformFlags|=512:pM(rn)&&(ue.transformFlags|=16),rn===103&&eo(ue.left)&&(ue.transformFlags|=536870912),ue.jsDoc=void 0,ue}function ti(T){return Dw(T)?65536:0}function Ti(T,M,V,ue){return T.left!==M||T.operatorToken!==V||T.right!==ue?br(ar(M,V,ue),T):T}function $i(T,M,V,ue,tt){const rn=O(228);return rn.condition=i().parenthesizeConditionOfConditionalExpression(T),rn.questionToken=M??ce(58),rn.whenTrue=i().parenthesizeBranchOfConditionalExpression(V),rn.colonToken=ue??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,ue,tt,rn){return T.condition!==M||T.questionToken!==V||T.whenTrue!==ue||T.colonToken!==tt||T.whenFalse!==rn?br($i(M,V,ue,tt,rn),T):T}function Ve(T,M){const V=O(229);return V.head=T,V.templateSpans=F(M),V.transformFlags|=Fr(V.head)|rs(V.templateSpans)|1024,V}function kt(T,M,V){return T.head!==M||T.templateSpans!==V?br(Ve(M,V),T):T}function Wn(T,M,V,ue=0){C.assert(!(ue&-7177),"Unsupported template flags.");let tt;if(V!==void 0&&V!==M&&(tt=xVe(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 vo(T){let M=1024;return T&&(M|=128),M}function ta(T,M,V,ue){const tt=lt(T);return tt.text=M,tt.rawText=V,tt.templateFlags=ue&7176,tt.transformFlags=vo(tt.templateFlags),tt}function Ao(T,M,V,ue){const tt=G(T);return tt.text=M,tt.rawText=V,tt.templateFlags=ue&7176,tt.transformFlags=vo(tt.templateFlags),tt}function Vo(T,M,V,ue){return T===15?Ao(T,M,V,ue):ta(T,M,V,ue)}function hl(T,M,V){return T=Wn(16,T,M,V),Vo(16,T,M,V)}function Ca(T,M,V){return T=Wn(16,T,M,V),Vo(17,T,M,V)}function cd(T,M,V){return T=Wn(16,T,M,V),Vo(18,T,M,V)}function Up(T,M,V){return T=Wn(16,T,M,V),Ao(15,T,M,V)}function Sf(T,M){C.assert(!T||!!M,"A `YieldExpression` with an asteriskToken must have an expression.");const V=O(230);return V.expression=M&&i().parenthesizeExpressionForDisallowedComma(M),V.asteriskToken=T,V.transformFlags|=Fr(V.expression)|Fr(V.asteriskToken)|1024|128|1048576,V}function Yf(T,M,V){return T.expression!==V||T.asteriskToken!==M?br(Sf(M,V),T):T}function Sy(T){const M=O(231);return M.expression=i().parenthesizeExpressionForDisallowedComma(T),M.transformFlags|=Fr(M.expression)|1024|32768,M}function Tv(T,M){return T.expression!==M?br(Sy(M),T):T}function Bu(T,M,V,ue,tt){const rn=G(232);return rn.modifiers=cs(T),rn.name=Gc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(ue),rn.members=F(tt),rn.transformFlags|=rs(rn.modifiers)|Db(rn.name)|rs(rn.typeParameters)|rs(rn.heritageClauses)|rs(rn.members)|(rn.typeParameters?1:0)|1024,rn.jsDoc=void 0,rn}function j_(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(Bu(M,V,ue,tt,rn),T):T}function Th(){return O(233)}function xm(T,M){const V=O(234);return V.expression=i().parenthesizeLeftSideOfAccess(T,!1),V.typeArguments=M&&i().parenthesizeTypeArguments(M),V.transformFlags|=Fr(V.expression)|rs(V.typeArguments)|1024,V}function Hb(T,M,V){return T.expression!==M||T.typeArguments!==V?br(xm(M,V),T):T}function Xe(T,M){const V=O(235);return V.expression=T,V.type=M,V.transformFlags|=Fr(V.expression)|Fr(V.type)|1,V}function mt(T,M,V){return T.expression!==M||T.type!==V?br(Xe(M,V),T):T}function Yt(T){const M=O(236);return M.expression=i().parenthesizeLeftSideOfAccess(T,!1),M.transformFlags|=Fr(M.expression)|1,M}function Rn(T,M){return _F(T)?cr(T,M):T.expression!==M?br(Yt(M),T):T}function Qn(T,M){const V=O(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=O(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 Oi(T,M){const V=O(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 Ro(T,M){return T.name!==M?br(Oi(T.keywordToken,M),T):T}function _i(T,M){const V=O(240);return V.expression=T,V.literal=M,V.transformFlags|=Fr(V.expression)|Fr(V.literal)|1024,V}function Do(T,M,V){return T.expression!==M||T.literal!==V?br(_i(M,V),T):T}function Qi(){const T=O(241);return T.transformFlags|=1024,T}function _l(T,M){const V=O(242);return V.statements=F(T),V.multiLine=M,V.transformFlags|=rs(V.statements),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V}function sp(T,M){return T.statements!==M?br(_l(M,T.multiLine),T):T}function Rm(T,M){const V=O(244);return V.modifiers=cs(T),V.declarationList=Mo(M)?A0(M):M,V.transformFlags|=rs(V.modifiers)|Fr(V.declarationList),Yh(V.modifiers)&128&&(V.transformFlags=1),V.jsDoc=void 0,V.flowNode=void 0,V}function Td(T,M,V){return T.modifiers!==M||T.declarationList!==V?br(Rm(M,V),T):T}function Dm(){const T=O(243);return T.jsDoc=void 0,T}function Hp(T){const M=O(245);return M.expression=i().parenthesizeExpressionOfExpressionStatement(T),M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function b0(T,M){return T.expression!==M?br(Hp(M),T):T}function m_(T,M,V){const ue=O(246);return ue.expression=T,ue.thenStatement=Bg(M),ue.elseStatement=Bg(V),ue.transformFlags|=Fr(ue.expression)|Fr(ue.thenStatement)|Fr(ue.elseStatement),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function U_(T,M,V,ue){return T.expression!==M||T.thenStatement!==V||T.elseStatement!==ue?br(m_(M,V,ue),T):T}function T0(T,M){const V=O(247);return V.statement=Bg(T),V.expression=M,V.transformFlags|=Fr(V.statement)|Fr(V.expression),V.jsDoc=void 0,V.flowNode=void 0,V}function H_(T,M,V){return T.statement!==M||T.expression!==V?br(T0(M,V),T):T}function TC(T,M){const V=O(248);return V.expression=T,V.statement=Bg(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function tL(T,M,V){return T.expression!==M||T.statement!==V?br(TC(M,V),T):T}function SC(T,M,V,ue){const tt=O(249);return tt.initializer=T,tt.condition=M,tt.incrementor=V,tt.statement=Bg(ue),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 Pg(T,M,V,ue,tt){return T.initializer!==M||T.condition!==V||T.incrementor!==ue||T.statement!==tt?br(SC(M,V,ue,tt),T):T}function S0(T,M,V){const ue=O(250);return ue.initializer=T,ue.expression=M,ue.statement=Bg(V),ue.transformFlags|=Fr(ue.initializer)|Fr(ue.expression)|Fr(ue.statement),ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue.flowNode=void 0,ue}function J1(T,M,V,ue){return T.initializer!==M||T.expression!==V||T.statement!==ue?br(S0(M,V,ue),T):T}function Sv(T,M,V,ue){const tt=O(251);return tt.awaitModifier=T,tt.initializer=M,tt.expression=i().parenthesizeExpressionForDisallowedComma(V),tt.statement=Bg(ue),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 K1(T,M,V,ue,tt){return T.awaitModifier!==M||T.initializer!==V||T.expression!==ue||T.statement!==tt?br(Sv(M,V,ue,tt),T):T}function Dx(T){const M=O(252);return M.label=Gc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function nL(T,M){return T.label!==M?br(Dx(M),T):T}function X1(T){const M=O(253);return M.label=Gc(T),M.transformFlags|=Fr(M.label)|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function Cx(T,M){return T.label!==M?br(X1(M),T):T}function E0(T){const M=O(254);return M.expression=T,M.transformFlags|=Fr(M.expression)|128|4194304,M.jsDoc=void 0,M.flowNode=void 0,M}function EC(T,M){return T.expression!==M?br(E0(M),T):T}function Y1(T,M){const V=O(255);return V.expression=T,V.statement=Bg(M),V.transformFlags|=Fr(V.expression)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function Nx(T,M,V){return T.expression!==M||T.statement!==V?br(Y1(M,V),T):T}function cE(T,M){const V=O(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 qb(T,M,V){return T.expression!==M||T.caseBlock!==V?br(cE(M,V),T):T}function Mx(T,M){const V=O(257);return V.label=Gc(T),V.statement=Bg(M),V.transformFlags|=Fr(V.label)|Fr(V.statement),V.jsDoc=void 0,V.flowNode=void 0,V}function Px(T,M,V){return T.label!==M||T.statement!==V?br(Mx(M,V),T):T}function dE(T){const M=O(258);return M.expression=T,M.transformFlags|=Fr(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function Jb(T,M){return T.expression!==M?br(dE(M),T):T}function Ev(T,M,V){const ue=O(259);return ue.tryBlock=T,ue.catchClause=M,ue.finallyBlock=V,ue.transformFlags|=Fr(ue.tryBlock)|Fr(ue.catchClause)|Fr(ue.finallyBlock),ue.jsDoc=void 0,ue.flowNode=void 0,ue}function Ey(T,M,V,ue){return T.tryBlock!==M||T.catchClause!==V||T.finallyBlock!==ue?br(Ev(M,V,ue),T):T}function Ay(){const T=O(260);return T.jsDoc=void 0,T.flowNode=void 0,T}function Iy(T,M,V,ue){const tt=G(261);return tt.name=Gc(T),tt.exclamationToken=M,tt.type=V,tt.initializer=pu(ue),tt.transformFlags|=Db(tt.name)|Fr(tt.initializer)|(tt.exclamationToken??tt.type?1:0),tt.jsDoc=void 0,tt}function Kb(T,M,V,ue,tt){return T.name!==M||T.type!==ue||T.exclamationToken!==V||T.initializer!==tt?br(Iy(M,V,ue,tt),T):T}function A0(T,M=0){const V=O(262);return V.flags|=M&7,V.declarations=F(T),V.transformFlags|=rs(V.declarations)|4194304,M&7&&(V.transformFlags|=263168),M&4&&(V.transformFlags|=4),V}function $1(T,M){return T.declarations!==M?br(A0(M,T.flags),T):T}function I0(T,M,V,ue,tt,rn,Or){const ko=G(263);if(ko.modifiers=cs(T),ko.asteriskToken=M,ko.name=Gc(V),ko.typeParameters=cs(ue),ko.parameters=F(tt),ko.type=rn,ko.body=Or,!ko.body||Yh(ko.modifiers)&128)ko.transformFlags=1;else{const il=Yh(ko.modifiers)&1024,of=!!ko.asteriskToken,lT=il&&of;ko.transformFlags=rs(ko.modifiers)|Fr(ko.asteriskToken)|Db(ko.name)|rs(ko.typeParameters)|rs(ko.parameters)|Fr(ko.type)|Fr(ko.body)&-67108865|(lT?128:il?256:of?2048:0)|(ko.typeParameters||ko.type?1:0)|4194304}return ko.typeArguments=void 0,ko.jsDoc=void 0,ko.locals=void 0,ko.nextContainer=void 0,ko.endFlowNode=void 0,ko.returnFlowNode=void 0,ko}function ns(T,M,V,ue,tt,rn,Or,ko){return T.modifiers!==M||T.asteriskToken!==V||T.name!==ue||T.typeParameters!==tt||T.parameters!==rn||T.type!==Or||T.body!==ko?Q1(I0(M,V,ue,tt,rn,Or,ko),T):T}function Q1(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),j(T,M)}function AC(T,M,V,ue,tt){const rn=G(264);return rn.modifiers=cs(T),rn.name=Gc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(ue),rn.members=F(tt),Yh(rn.modifiers)&128?rn.transformFlags=1:(rn.transformFlags|=rs(rn.modifiers)|Db(rn.name)|rs(rn.typeParameters)|rs(rn.heritageClauses)|rs(rn.members)|(rn.typeParameters?1:0)|1024,rn.transformFlags&8192&&(rn.transformFlags|=1)),rn.jsDoc=void 0,rn}function xy(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(AC(M,V,ue,tt,rn),T):T}function Ry(T,M,V,ue,tt){const rn=G(265);return rn.modifiers=cs(T),rn.name=Gc(M),rn.typeParameters=cs(V),rn.heritageClauses=cs(ue),rn.members=F(tt),rn.transformFlags=1,rn.jsDoc=void 0,rn}function q_(T,M,V,ue,tt,rn){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.heritageClauses!==tt||T.members!==rn?br(Ry(M,V,ue,tt,rn),T):T}function ul(T,M,V,ue){const tt=G(266);return tt.modifiers=cs(T),tt.name=Gc(M),tt.typeParameters=cs(V),tt.type=ue,tt.transformFlags=1,tt.jsDoc=void 0,tt.locals=void 0,tt.nextContainer=void 0,tt}function qd(T,M,V,ue,tt){return T.modifiers!==M||T.name!==V||T.typeParameters!==ue||T.type!==tt?br(ul(M,V,ue,tt),T):T}function lp(T,M,V){const ue=G(267);return ue.modifiers=cs(T),ue.name=Gc(M),ue.members=F(V),ue.transformFlags|=rs(ue.modifiers)|Fr(ue.name)|rs(ue.members)|1,ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function Jd(T,M,V,ue){return T.modifiers!==M||T.name!==V||T.members!==ue?br(lp(M,V,ue),T):T}function x0(T,M,V,ue=0){const tt=G(268);return tt.modifiers=cs(T),tt.flags|=ue&2088,tt.name=M,tt.body=V,Yh(tt.modifiers)&128?tt.transformFlags=1:tt.transformFlags|=rs(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 Iu(T,M,V,ue){return T.modifiers!==M||T.name!==V||T.body!==ue?br(x0(M,V,ue,T.flags),T):T}function J_(T){const M=O(269);return M.statements=F(T),M.transformFlags|=rs(M.statements),M.jsDoc=void 0,M}function Gu(T,M){return T.statements!==M?br(J_(M),T):T}function Cm(T){const M=O(270);return M.clauses=F(T),M.transformFlags|=rs(M.clauses),M.locals=void 0,M.nextContainer=void 0,M}function Jm(T,M){return T.clauses!==M?br(Cm(M),T):T}function R0(T){const M=G(271);return M.name=Gc(T),M.transformFlags|=lw(M.name)|1,M.modifiers=void 0,M.jsDoc=void 0,M}function D0(T,M){return T.name!==M?rL(R0(M),T):T}function rL(T,M){return T!==M&&(T.modifiers=M.modifiers),br(T,M)}function IC(T,M,V,ue){const tt=G(272);return tt.modifiers=cs(T),tt.name=Gc(V),tt.isTypeOnly=M,tt.moduleReference=ue,tt.transformFlags|=rs(tt.modifiers)|lw(tt.name)|Fr(tt.moduleReference),py(tt.moduleReference)||(tt.transformFlags|=1),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function Av(T,M,V,ue,tt){return T.modifiers!==M||T.isTypeOnly!==V||T.name!==ue||T.moduleReference!==tt?br(IC(M,V,ue,tt),T):T}function uE(T,M,V,ue){const tt=O(273);return tt.modifiers=cs(T),tt.importClause=M,tt.moduleSpecifier=V,tt.attributes=tt.assertClause=ue,tt.transformFlags|=Fr(tt.importClause)|Fr(tt.moduleSpecifier),tt.transformFlags&=-67108865,tt.jsDoc=void 0,tt}function Qe(T,M,V,ue,tt){return T.modifiers!==M||T.importClause!==V||T.moduleSpecifier!==ue||T.attributes!==tt?br(uE(M,V,ue,tt),T):T}function Z1(T,M,V){const ue=G(274);return typeof T=="boolean"&&(T=T?156:void 0),ue.isTypeOnly=T===156,ue.phaseModifier=T,ue.name=M,ue.namedBindings=V,ue.transformFlags|=Fr(ue.name)|Fr(ue.namedBindings),T===156&&(ue.transformFlags|=1),ue.transformFlags&=-67108865,ue}function Lg(T,M,V,ue){return typeof M=="boolean"&&(M=M?156:void 0),T.phaseModifier!==M||T.name!==V||T.namedBindings!==ue?br(Z1(M,V,ue),T):T}function Km(T,M){const V=O(301);return V.elements=F(T),V.multiLine=M,V.token=132,V.transformFlags|=4,V}function Iv(T,M,V){return T.elements!==M||T.multiLine!==V?br(Km(M,V),T):T}function Xb(T,M){const V=O(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function xu(T,M,V){return T.name!==M||T.value!==V?br(Xb(M,V),T):T}function Sh(T,M){const V=O(303);return V.assertClause=T,V.multiLine=M,V}function Nm(T,M,V){return T.assertClause!==M||T.multiLine!==V?br(Sh(M,V),T):T}function C0(T,M,V){const ue=O(301);return ue.token=V??118,ue.elements=F(T),ue.multiLine=M,ue.transformFlags|=4,ue}function ja(T,M,V){return T.elements!==M||T.multiLine!==V?br(C0(M,V,T.token),T):T}function Ef(T,M){const V=O(302);return V.name=T,V.value=M,V.transformFlags|=4,V}function xv(T,M,V){return T.name!==M||T.value!==V?br(Ef(M,V),T):T}function eA(T){const M=G(275);return M.name=T,M.transformFlags|=Fr(M.name),M.transformFlags&=-67108865,M}function Dy(T,M){return T.name!==M?br(eA(M),T):T}function pE(T){const M=G(281);return M.name=T,M.transformFlags|=Fr(M.name)|32,M.transformFlags&=-67108865,M}function $f(T,M){return T.name!==M?br(pE(M),T):T}function kg(T){const M=O(276);return M.elements=F(T),M.transformFlags|=rs(M.elements),M.transformFlags&=-67108865,M}function N0(T,M){return T.elements!==M?br(kg(M),T):T}function Rv(T,M,V){const ue=G(277);return ue.isTypeOnly=T,ue.propertyName=M,ue.name=V,ue.transformFlags|=Fr(ue.propertyName)|Fr(ue.name),ue.transformFlags&=-67108865,ue}function h_(T,M,V,ue){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==ue?br(Rv(M,V,ue),T):T}function fE(T,M,V){const ue=G(278);return ue.modifiers=cs(T),ue.isExportEquals=M,ue.expression=M?i().parenthesizeRightSideOfBinary(64,void 0,V):i().parenthesizeExpressionOfExportDefault(V),ue.transformFlags|=rs(ue.modifiers)|Fr(ue.expression),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function M0(T,M,V){return T.modifiers!==M||T.expression!==V?br(fE(M,T.isExportEquals,V),T):T}function Jr(T,M,V,ue,tt){const rn=G(279);return rn.modifiers=cs(T),rn.isTypeOnly=M,rn.exportClause=V,rn.moduleSpecifier=ue,rn.attributes=rn.assertClause=tt,rn.transformFlags|=rs(rn.modifiers)|Fr(rn.exportClause)|Fr(rn.moduleSpecifier),rn.transformFlags&=-67108865,rn.jsDoc=void 0,rn}function Vr(T,M,V,ue,tt,rn){return T.modifiers!==M||T.isTypeOnly!==V||T.exportClause!==ue||T.moduleSpecifier!==tt||T.attributes!==rn?Sd(Jr(M,V,ue,tt,rn),T):T}function Sd(T,M){return T!==M&&T.modifiers===M.modifiers&&(T.modifiers=M.modifiers),br(T,M)}function tA(T){const M=O(280);return M.elements=F(T),M.transformFlags|=rs(M.elements),M.transformFlags&=-67108865,M}function Cy(T,M){return T.elements!==M?br(tA(M),T):T}function mE(T,M,V){const ue=O(282);return ue.isTypeOnly=T,ue.propertyName=Gc(M),ue.name=Gc(V),ue.transformFlags|=Fr(ue.propertyName)|Fr(ue.name),ue.transformFlags&=-67108865,ue.jsDoc=void 0,ue}function xC(T,M,V,ue){return T.isTypeOnly!==M||T.propertyName!==V||T.name!==ue?br(mE(M,V,ue),T):T}function iL(){const T=G(283);return T.jsDoc=void 0,T}function zr(T){const M=O(284);return M.expression=T,M.transformFlags|=Fr(M.expression),M.transformFlags&=-67108865,M}function Ru(T,M){return T.expression!==M?br(zr(M),T):T}function Wo(T){return O(T)}function vp(T,M,V=!1){const ue=nA(T,V?M&&i().parenthesizeNonArrayTypeOfPostfixType(M):M);return ue.postfix=V,ue}function nA(T,M){const V=O(T);return V.type=M,V}function Yb(T,M,V){return M.type!==V?br(vp(T,V,M.postfix),M):M}function Mr(T,M,V){return M.type!==V?br(nA(T,V),M):M}function RC(T,M){const V=G(318);return V.parameters=cs(T),V.type=M,V.transformFlags=rs(V.parameters)|(V.type?1:0),V.jsDoc=void 0,V.locals=void 0,V.nextContainer=void 0,V.typeArguments=void 0,V}function Lx(T,M,V){return T.parameters!==M||T.type!==V?br(RC(M,V),T):T}function du(T,M=!1){const V=G(323);return V.jsDocPropertyTags=cs(T),V.isArrayType=M,V}function K_(T,M,V){return T.jsDocPropertyTags!==M||T.isArrayType!==V?br(du(M,V),T):T}function Eh(T){const M=O(310);return M.type=T,M}function $b(T,M){return T.type!==M?br(Eh(M),T):T}function rA(T,M,V){const ue=G(324);return ue.typeParameters=cs(T),ue.parameters=F(M),ue.type=V,ue.jsDoc=void 0,ue.locals=void 0,ue.nextContainer=void 0,ue}function Qb(T,M,V,ue){return T.typeParameters!==M||T.parameters!==V||T.type!==ue?br(rA(M,V,ue),T):T}function Af(T){const M=lj(T.kind);return T.tagName.escapedText===Cl(M)?T.tagName:ve(M)}function Xm(T,M,V){const ue=O(T);return ue.tagName=M,ue.comment=V,ue}function Qf(T,M,V){const ue=G(T);return ue.tagName=M,ue.comment=V,ue}function cp(T,M,V,ue){const tt=Xm(346,T??ve("template"),ue);return tt.constraint=M,tt.typeParameters=F(V),tt}function Dv(T,M=Af(T),V,ue,tt){return T.tagName!==M||T.constraint!==V||T.typeParameters!==ue||T.comment!==tt?br(cp(M,V,ue,tt),T):T}function P0(T,M,V,ue){const tt=Qf(347,T??ve("typedef"),ue);return tt.typeExpression=M,tt.fullName=V,tt.name=Vj(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function kx(T,M=Af(T),V,ue,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==ue||T.comment!==tt?br(P0(M,V,ue,tt),T):T}function L0(T,M,V,ue,tt,rn){const Or=Qf(342,T??ve("param"),rn);return Or.typeExpression=ue,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function Zb(T,M=Af(T),V,ue,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==ue||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(L0(M,V,ue,tt,rn,Or),T):T}function wx(T,M,V,ue,tt,rn){const Or=Qf(349,T??ve("prop"),rn);return Or.typeExpression=ue,Or.name=M,Or.isNameFirst=!!tt,Or.isBracketed=V,Or}function Ny(T,M=Af(T),V,ue,tt,rn,Or){return T.tagName!==M||T.name!==V||T.isBracketed!==ue||T.typeExpression!==tt||T.isNameFirst!==rn||T.comment!==Or?br(wx(M,V,ue,tt,rn,Or),T):T}function __(T,M,V,ue){const tt=Qf(339,T??ve("callback"),ue);return tt.typeExpression=M,tt.fullName=V,tt.name=Vj(V),tt.locals=void 0,tt.nextContainer=void 0,tt}function eT(T,M=Af(T),V,ue,tt){return T.tagName!==M||T.typeExpression!==V||T.fullName!==ue||T.comment!==tt?br(__(M,V,ue,tt),T):T}function k0(T,M,V){const ue=Xm(340,T??ve("overload"),V);return ue.typeExpression=M,ue}function Cv(T,M=Af(T),V,ue){return T.tagName!==M||T.typeExpression!==V||T.comment!==ue?br(k0(M,V,ue),T):T}function tT(T,M,V){const ue=Xm(329,T??ve("augments"),V);return ue.class=M,ue}function Ym(T,M=Af(T),V,ue){return T.tagName!==M||T.class!==V||T.comment!==ue?br(tT(M,V,ue),T):T}function My(T,M,V){const ue=Xm(330,T??ve("implements"),V);return ue.class=M,ue}function wg(T,M,V){const ue=Xm(348,T??ve("see"),V);return ue.name=M,ue}function nT(T,M,V,ue){return T.tagName!==M||T.name!==V||T.comment!==ue?br(wg(M,V,ue),T):T}function dd(T){const M=O(311);return M.name=T,M}function hE(T,M){return T.name!==M?br(dd(M),T):T}function Og(T,M){const V=O(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(Og(M,V),T):T}function iA(T,M){const V=O(325);return V.name=T,V.text=M,V}function Wg(T,M,V){return T.name!==M?br(iA(M,V),T):T}function DC(T,M){const V=O(326);return V.name=T,V.text=M,V}function Ox(T,M,V){return T.name!==M?br(DC(M,V),T):T}function Wx(T,M){const V=O(327);return V.name=T,V.text=M,V}function oL(T,M,V){return T.name!==M?br(Wx(M,V),T):T}function Fx(T,M=Af(T),V,ue){return T.tagName!==M||T.class!==V||T.comment!==ue?br(My(M,V,ue),T):T}function O0(T,M,V){return Xm(T,M??ve(lj(T)),V)}function Py(T,M,V=Af(M),ue){return M.tagName!==V||M.comment!==ue?br(O0(T,V,ue),M):M}function CC(T,M,V,ue){const tt=Xm(T,M??ve(lj(T)),ue);return tt.typeExpression=V,tt}function W0(T,M,V=Af(M),ue,tt){return M.tagName!==V||M.typeExpression!==ue||M.comment!==tt?br(CC(T,V,ue,tt),M):M}function oA(T,M){return Xm(328,T,M)}function hc(T,M,V){return T.tagName!==M||T.comment!==V?br(oA(M,V),T):T}function ud(T,M,V){const ue=Qf(341,T??ve(lj(341)),V);return ue.typeExpression=M,ue.locals=void 0,ue.nextContainer=void 0,ue}function zx(T,M=Af(T),V,ue){return T.tagName!==M||T.typeExpression!==V||T.comment!==ue?br(ud(M,V,ue),T):T}function dp(T,M,V,ue,tt){const rn=Xm(352,T??ve("import"),tt);return rn.importClause=M,rn.moduleSpecifier=V,rn.attributes=ue,rn.comment=tt,rn}function Zf(T,M,V,ue,tt,rn){return T.tagName!==M||T.comment!==rn||T.importClause!==V||T.moduleSpecifier!==ue||T.attributes!==tt?br(dp(M,V,ue,tt,rn),T):T}function _E(T){const M=O(322);return M.text=T,M}function Ah(T,M){return T.text!==M?br(_E(M),T):T}function rT(T,M){const V=O(321);return V.comment=T,V.tags=cs(M),V}function Nv(T,M,V){return T.comment!==M||T.tags!==V?br(rT(M,V),T):T}function Bx(T,M,V){const ue=O(285);return ue.openingElement=T,ue.children=F(M),ue.closingElement=V,ue.transformFlags|=Fr(ue.openingElement)|rs(ue.children)|Fr(ue.closingElement)|2,ue}function aL(T,M,V,ue){return T.openingElement!==M||T.children!==V||T.closingElement!==ue?br(Bx(M,V,ue),T):T}function Gl(T,M,V){const ue=O(286);return ue.tagName=T,ue.typeArguments=cs(M),ue.attributes=V,ue.transformFlags|=Fr(ue.tagName)|rs(ue.typeArguments)|Fr(ue.attributes)|2,ue.typeArguments&&(ue.transformFlags|=1),ue}function NC(T,M,V,ue){return T.tagName!==M||T.typeArguments!==V||T.attributes!==ue?br(Gl(M,V,ue),T):T}function aA(T,M,V){const ue=O(287);return ue.tagName=T,ue.typeArguments=cs(M),ue.attributes=V,ue.transformFlags|=Fr(ue.tagName)|rs(ue.typeArguments)|Fr(ue.attributes)|2,M&&(ue.transformFlags|=1),ue}function gE(T,M,V,ue){return T.tagName!==M||T.typeArguments!==V||T.attributes!==ue?br(aA(M,V,ue),T):T}function Gx(T){const M=O(288);return M.tagName=T,M.transformFlags|=Fr(M.tagName)|2,M}function uu(T,M){return T.tagName!==M?br(Gx(M),T):T}function bp(T,M,V){const ue=O(289);return ue.openingFragment=T,ue.children=F(M),ue.closingFragment=V,ue.transformFlags|=Fr(ue.openingFragment)|rs(ue.children)|Fr(ue.closingFragment)|2,ue}function sA(T,M,V,ue){return T.openingFragment!==M||T.children!==V||T.closingFragment!==ue?br(bp(M,V,ue),T):T}function F0(T,M){const V=O(12);return V.text=T,V.containsOnlyTriviaWhiteSpaces=!!M,V.transformFlags|=2,V}function Tp(T,M,V){return T.text!==M||T.containsOnlyTriviaWhiteSpaces!==V?br(F0(M,V),T):T}function lA(){const T=O(290);return T.transformFlags|=2,T}function Fg(){const T=O(291);return T.transformFlags|=2,T}function Vx(T,M){const V=G(292);return V.name=T,V.initializer=M,V.transformFlags|=Fr(V.name)|Fr(V.initializer)|2,V}function cA(T,M,V){return T.name!==M||T.initializer!==V?br(Vx(M,V),T):T}function $m(T){const M=G(293);return M.properties=F(T),M.transformFlags|=rs(M.properties)|2,M}function jx(T,M){return T.properties!==M?br($m(M),T):T}function MC(T){const M=O(294);return M.expression=T,M.transformFlags|=Fr(M.expression)|2,M}function Ux(T,M){return T.expression!==M?br(MC(M),T):T}function dA(T,M){const V=O(295);return V.dotDotDotToken=T,V.expression=M,V.transformFlags|=Fr(V.dotDotDotToken)|Fr(V.expression)|2,V}function Hx(T,M){return T.expression!==M?br(dA(T.dotDotDotToken,M),T):T}function Mv(T,M){const V=O(296);return V.namespace=T,V.name=M,V.transformFlags|=Fr(V.namespace)|Fr(V.name)|2,V}function qp(T,M,V){return T.namespace!==M||T.name!==V?br(Mv(M,V),T):T}function g_(T,M){const V=O(297);return V.expression=i().parenthesizeExpressionForDisallowedComma(T),V.statements=F(M),V.transformFlags|=Fr(V.expression)|rs(V.statements),V.jsDoc=void 0,V}function uA(T,M,V){return T.expression!==M||T.statements!==V?br(g_(M,V),T):T}function pA(T){const M=O(298);return M.statements=F(T),M.transformFlags=rs(M.statements),M}function os(T,M){return T.statements!==M?br(pA(M),T):T}function Wr(T,M){const V=O(299);switch(V.token=T,V.types=F(M),V.transformFlags|=rs(V.types),T){case 96:V.transformFlags|=1024;break;case 119:V.transformFlags|=1;break;default:return C.assertNever(T)}return V}function If(T,M){return T.types!==M?br(Wr(T.token,M),T):T}function Yc(T,M){const V=O(300);return V.variableDeclaration=$_(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 z0(T,M,V){return T.variableDeclaration!==M||T.block!==V?br(Yc(M,V),T):T}function fA(T,M){const V=G(304);return V.name=Gc(T),V.initializer=i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Db(V.name)|Fr(V.initializer),V.modifiers=void 0,V.questionToken=void 0,V.exclamationToken=void 0,V.jsDoc=void 0,V}function yE(T,M,V){return T.name!==M||T.initializer!==V?B0(fA(M,V),T):T}function B0(T,M){return T!==M&&(T.modifiers=M.modifiers,T.questionToken=M.questionToken,T.exclamationToken=M.exclamationToken),br(T,M)}function mA(T,M){const V=G(305);return V.name=Gc(T),V.objectAssignmentInitializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=lw(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?me(mA(M,V),T):T}function me(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=Gc(T),V.initializer=M&&i().parenthesizeExpressionForDisallowedComma(M),V.transformFlags|=Fr(V.name)|Fr(V.initializer)|1,V.jsDoc=void 0,V}function wi(T,M,V){return T.name!==M||T.initializer!==V?br(vi(M,V),T):T}function Io(T,M,V){const ue=t.createBaseSourceFileNode(308);return ue.statements=F(T),ue.endOfFileToken=M,ue.flags|=V,ue.text="",ue.fileName="",ue.path="",ue.resolvedPath="",ue.originalFileName="",ue.languageVersion=1,ue.languageVariant=0,ue.scriptKind=0,ue.isDeclarationFile=!1,ue.hasNoDefaultLib=!1,ue.transformFlags|=rs(ue.statements)|Fr(ue.endOfFileToken),ue.locals=void 0,ue.nextContainer=void 0,ue.endFlowNode=void 0,ue.nodeCount=0,ue.identifierCount=0,ue.symbolCount=0,ue.parseDiagnostics=void 0,ue.bindDiagnostics=void 0,ue.bindSuggestionDiagnostics=void 0,ue.lineMap=void 0,ue.externalModuleIndicator=void 0,ue.setExternalModuleIndicator=void 0,ue.pragmas=void 0,ue.checkJsDirective=void 0,ue.referencedFiles=void 0,ue.typeReferenceDirectives=void 0,ue.libReferenceDirectives=void 0,ue.amdDependencies=void 0,ue.commentDirectives=void 0,ue.identifiers=void 0,ue.packageJsonLocations=void 0,ue.packageJsonScope=void 0,ue.imports=void 0,ue.moduleAugmentations=void 0,ue.ambientModuleNames=void 0,ue.classifiableNames=void 0,ue.impliedNodeFormat=void 0,ue}function ki(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 Ja(T){const M=ki(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 _c(T){const M=t.createBaseSourceFileNode(308);M.flags|=T.flags&-17;for(const V in T)if(!(Rs(M,V)||!Rs(T,V))){if(V==="emitNode"){M.emitNode=void 0;continue}M[V]=T[V]}return M}function Kd(T){const M=T.redirectInfo?Ja(T):_c(T);return r(M,T),M}function Vu(T,M,V,ue,tt,rn,Or){const ko=Kd(T);return ko.statements=F(M),ko.isDeclarationFile=V,ko.referencedFiles=ue,ko.typeReferenceDirectives=tt,ko.hasNoDefaultLib=rn,ko.libReferenceDirectives=Or,ko.transformFlags=rs(ko.statements)|Fr(ko.endOfFileToken),ko}function G0(T,M,V=T.isDeclarationFile,ue=T.referencedFiles,tt=T.typeReferenceDirectives,rn=T.hasNoDefaultLib,Or=T.libReferenceDirectives){return T.statements!==M||T.isDeclarationFile!==V||T.referencedFiles!==ue||T.typeReferenceDirectives!==tt||T.hasNoDefaultLib!==rn||T.libReferenceDirectives!==Or?br(Vu(T,M,V,ue,tt,rn,Or),T):T}function ju(T){const M=O(309);return M.sourceFiles=T,M.syntheticFileReferences=void 0,M.syntheticTypeReferences=void 0,M.syntheticLibReferences=void 0,M.hasNoDefaultLib=void 0,M}function iT(T,M){return T.sourceFiles!==M?br(ju(M),T):T}function qx(T,M=!1,V){const ue=O(238);return ue.type=T,ue.isSpread=M,ue.tupleNameSource=V,ue}function Mm(T){const M=O(353);return M._children=T,M}function bl(T){const M=O(354);return M.original=T,bt(M,T),M}function hA(T,M){const V=O(356);return V.expression=T,V.original=M,V.transformFlags|=Fr(V.expression)|1,bt(V,M),V}function Pv(T,M){return T.expression!==M?br(hA(M,T.original),T):T}function Qm(){return O(355)}function Lv(T){if(Os(T)&&!MN(T)&&!T.original&&!T.emitNode&&!T.id){if(jM(T))return T.elements;if(Nr(T)&&mie(T.operatorToken))return[T.left,T.right]}return T}function vE(T){const M=O(357);return M.elements=F(Om(T,Lv)),M.transformFlags|=rs(M.elements),M}function Wz(T,M){return T.elements!==M?br(vE(M),T):T}function sL(T,M){const V=O(358);return V.expression=T,V.thisArg=M,V.transformFlags|=Fr(V.expression)|Fr(V.thisArg),V}function Jx(T,M,V){return T.expression!==M||T.thisArg!==V?br(sL(M,V),T):T}function lL(T){const M=de(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),pw(M,{...T.emitNode.autoGenerate}),M}function bW(T){const M=de(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=g1(T);return V&&cv(M,V),M}function oT(T){const M=Se(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),pw(M,{...T.emitNode.autoGenerate}),M}function Kx(T){const M=Se(T.escapedText);return M.flags|=T.flags&-17,M.transformFlags=T.transformFlags,r(M,T),M}function _A(T){if(T===void 0)return T;if(Yi(T))return Kd(T);if(fl(T))return lL(T);if(He(T))return bW(T);if($E(T))return oT(T);if(eo(T))return Kx(T);const M=gF(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)Rs(M,V)||!Rs(T,V)||(M[V]=T[V]);return M}function Fz(T,M,V){return tr(jp(void 0,void 0,void 0,void 0,M?[M]:[],void 0,_l(T,!0)),void 0,V?[V]:[])}function bE(T,M,V){return tr(Xf(void 0,void 0,M?[M]:[],void 0,void 0,_l(T,!0)),void 0,V?[V]:[])}function gA(){return bh(J("0"))}function cL(T){return fE(void 0,!1,T)}function Xx(T){return Jr(void 0,!1,tA([mE(!1,void 0,T)]))}function po(T,M){return M==="null"?k.createStrictEquality(T,je()):M==="undefined"?k.createStrictEquality(T,gA()):k.createStrictEquality(ap(T),ye(M))}function aT(T,M){return M==="null"?k.createStrictInequality(T,je()):M==="undefined"?k.createStrictInequality(T,gA()):k.createStrictInequality(ap(T),ye(M))}function sr(T,M,V){return XE(T)?Za(Hs(T,void 0,M),void 0,void 0,V):tr(Sc(T,M),void 0,V)}function dL(T,M,V){return sr(T,"bind",[M,...V])}function PC(T,M,V){return sr(T,"call",[M,...V])}function LC(T,M,V){return sr(T,"apply",[M,V])}function TE(T,M,V){return sr(ve(T),M,V)}function TW(T,M){return sr(T,"slice",M===void 0?[]:[Ov(M)])}function yA(T,M){return sr(T,"concat",M)}function zz(T,M,V){return TE("Object","defineProperty",[T,Ov(M),V])}function kC(T,M){return TE("Object","getOwnPropertyDescriptor",[T,Ov(M)])}function X_(T,M,V){return TE("Reflect","get",V?[T,M,V]:[T,M])}function SW(T,M,V,ue){return TE("Reflect","set",ue?[T,M,V,ue]:[T,M,V])}function V0(T,M,V){return V?(T.push(fA(M,V)),!0):!1}function Bz(T,M){const V=[];V0(V,"enumerable",Ov(T.enumerable)),V0(V,"configurable",Ov(T.configurable));let ue=V0(V,"writable",Ov(T.writable));ue=V0(V,"value",T.value)||ue;let tt=V0(V,"get",T.get);return tt=V0(V,"set",T.set)||tt,C.assert(!(ue&&tt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ns(V,!M)}function uL(T,M){switch(T.kind){case 218:return ld(T,M);case 217:return rf(T,T.type,M);case 235:return mt(T,M,T.type);case 239:return Lr(T,M,T.type);case 236:return Rn(T,M);case 234:return Hb(T,M,T.typeArguments);case 356:return Pv(T,M)}}function EW(T){return Ou(T)&&Os(T)&&Os(lv(T))&&Os(e_(T))&&!vt(gD(T))&&!vt(uw(T))}function pL(T,M,V=63){return T&&M4(T,V)&&!EW(T)?uL(T,pL(T.expression,M)):M}function j0(T,M,V){if(!M)return T;const ue=Px(M,M.label,Lb(M.statement)?j0(T,M.statement):T);return V&&V(M),ue}function Y_(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 wC(T,M,V,ue=!1){const tt=Ul(T,63);let rn,Or;return mp(tt)?(rn=ge(),Or=tt):zM(tt)?(rn=ge(),Or=V!==void 0&&V<2?bt(ve("_super"),tt):tt):Qa(tt)&8192?(rn=gA(),Or=i().parenthesizeLeftSideOfAccess(tt,!1)):qr(tt)?Y_(tt.expression,ue)?(rn=xe(M),Or=Sc(bt(k.createAssignment(rn,tt.expression),tt.expression),tt.name),bt(Or,tt)):(rn=tt.expression,Or=tt):Ws(tt)?Y_(tt.expression,ue)?(rn=xe(M),Or=Pd(bt(k.createAssignment(rn,tt.expression),tt.expression),tt.argumentExpression),bt(Or,tt)):(rn=tt.expression,Or=tt):(rn=gA(),Or=i().parenthesizeLeftSideOfAccess(T,!1)),{target:Or,thisArg:rn}}function y_(T,M){return Sc(bd(Ns([ne(void 0,"value",[Di(void 0,void 0,T,void 0,void 0,void 0)],_l([Hp(M)]))])),"value")}function ee(T){return T.length>10?vE(T):gu(T,k.createComma)}function ke(T,M,V,ue=0,tt){const rn=tt?T&&cF(T):Oo(T);if(rn&&He(rn)&&!fl(rn)){const Or=ps(bt(_A(rn),rn),rn.parent);return ue|=Qa(rn),V||(ue|=96),M||(ue|=3072),ue&&Cr(Or,ue),Or}return Je(T)}function rt(T,M,V){return ke(T,M,V,98304)}function Pt(T,M,V,ue){return ke(T,M,V,32768,ue)}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,ue){const tt=Sc(T,Os(M)?M:_A(M));bt(tt,M);let rn=0;return ue||(rn|=96),V||(rn|=3072),rn&&Cr(tt,rn),tt}function wr(T,M,V,ue){return T&&di(M,32)?ei(T,ke(M),V,ue):nn(M,V,ue)}function pr(T,M,V,ue){const tt=zs(T,M,0,V);return Is(T,M,tt,ue)}function Si(T){return wa(T.expression)&&T.expression.text==="use strict"}function ao(){return au(Hp(ye("use strict")))}function zs(T,M,V=0,ue){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(;Vko&&of.splice(tt,0,...M.slice(ko,il)),ko>Or&&of.splice(ue,0,...M.slice(Or,ko)),Or>rn&&of.splice(V,0,...M.slice(rn,Or)),rn>0)if(V===0)of.splice(0,0,...M.slice(0,rn));else{const lT=new Map;for(let Ih=0;Ih=0;Ih--){const $x=M[Ih];lT.has($x.expression.text)||of.unshift($x)}}return _S(T)?bt(F(of,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):to(T)?co(T,V,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):vD(T)?gr(T,V,T.typeParameters,T.parameters,T.type):Su(T)?Ni(T,V,T.name,T.questionToken,T.type):Po(T)?Ye(T,V,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):Vm(T)?mn(T,V,T.name,T.questionToken,T.typeParameters,T.parameters,T.type):Nl(T)?ri(T,V,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):Ml(T)?Uo(T,V,T.parameters,T.body):Hf(T)?le(T,V,T.name,T.parameters,T.type,T.body):gp(T)?Fe(T,V,T.name,T.parameters,T.body):Mb(T)?Ot(T,V,T.parameters,T.type):Us(T)?Au(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):Xs(T)?V_(T,V,T.typeParameters,T.parameters,T.type,T.equalsGreaterThanToken,T.body):uc(T)?j_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):sc(T)?Td(T,V,T.declarationList):Zl(T)?ns(T,V,T.asteriskToken,T.name,T.typeParameters,T.parameters,T.type,T.body):Dc(T)?xy(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):gd(T)?q_(T,V,T.name,T.typeParameters,T.heritageClauses,T.members):bm(T)?qd(T,V,T.name,T.typeParameters,T.type):ZT(T)?Jd(T,V,T.name,T.members):pc(T)?Iu(T,V,T.name,T.body):Fc(T)?Av(T,V,T.isTypeOnly,T.name,T.moduleReference):vl(T)?Qe(T,V,T.importClause,T.moduleSpecifier,T.attributes):dl(T)?M0(T,V,T.expression):fc(T)?Vr(T,V,T.isTypeOnly,T.exportClause,T.moduleSpecifier,T.attributes):C.assertNever(T)}function zg(T,M){return to(T)?co(T,M,T.dotDotDotToken,T.name,T.questionToken,T.type,T.initializer):Po(T)?Ye(T,M,T.name,T.questionToken??T.exclamationToken,T.type,T.initializer):Nl(T)?ri(T,M,T.asteriskToken,T.name,T.questionToken,T.typeParameters,T.parameters,T.type,T.body):Hf(T)?le(T,M,T.name,T.parameters,T.type,T.body):gp(T)?Fe(T,M,T.name,T.parameters,T.body):uc(T)?j_(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):Dc(T)?xy(T,M,T.name,T.typeParameters,T.heritageClauses,T.members):C.assertNever(T)}function sT(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 mn(T,T.modifiers,M,T.questionToken,T.typeParameters,T.parameters,T.type);case 173:return Ye(T,T.modifiers,M,T.questionToken??T.exclamationToken,T.type,T.initializer);case 172:return Ni(T,T.modifiers,M,T.questionToken,T.type);case 304:return yE(T,M,T.initializer)}}function cs(T){return T?F(T):void 0}function Gc(T){return typeof T=="string"?ve(T):T}function Ov(T){return typeof T=="string"?ye(T):typeof T=="number"?J(T):typeof T=="boolean"?T?Ge():We():T}function pu(T){return T&&i().parenthesizeExpressionForDisallowedComma(T)}function Yx(T){return typeof T=="number"?ce(T):T}function Bg(T){return T&&Cie(T)?bt(r(Dm(),T),T):T}function $_(T){return typeof T=="string"||T&&!yi(T)?Iy(T,void 0,void 0,void 0):T}function br(T,M){return T!==M&&(r(T,M),bt(T,M)),T}}function lj(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 sv,aSe={};function xVe(e,t){switch(sv||(sv=dg(99,!1,0)),e){case 15:sv.setText("`"+t+"`");break;case 16:sv.setText("`"+t+"${");break;case 17:sv.setText("}"+t+"${");break;case 18:sv.setText("}"+t+"`");break}let r=sv.scan();if(r===20&&(r=sv.reScanTemplateToken(!1)),sv.isUnterminated())return sv.setText(void 0),aSe;let i;switch(r){case 15:case 16:case 17:case 18:i=sv.getTokenValue();break}return i===void 0||sv.scan()!==1?(sv.setText(void 0),aSe):(sv.setText(void 0),i)}function Db(e){return e&&He(e)?lw(e):Fr(e)}function lw(e){return Fr(e)&-67108865}function RVe(e,t){return t|e.transformFlags&134234112}function Fr(e){if(!e)return 0;const t=e.transformFlags&~DVe(e.kind);return nd(e)&&vc(e.name)?RVe(e.name,t):t}function rs(e){return e?e.transformFlags:0}function sSe(e){let t=0;for(const r of e)t|=Fr(r);e.transformFlags=t}function DVe(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 s4=Xre();function l4(e){return e.flags|=16,e}var CVe={createBaseSourceFileNode:e=>l4(s4.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>l4(s4.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>l4(s4.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>l4(s4.createBaseTokenNode(e)),createBaseNode:e=>l4(s4.createBaseNode(e))},L=sw(4,CVe),lSe;function cSe(e,t,r){return new(lSe||(lSe=Rd.getSourceMapSourceConstructor()))(e,t,r)}function jr(e,t){if(e.original!==t&&(e.original=t,t)){const r=t.emitNode;r&&(e.emitNode=NVe(r,e.emitNode))}return e}function NVe(e,t){const{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:u,tokenSourceMapRanges:d,constantValue:g,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=MVe(d,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),h)for(const N of h)t.helpers=Qg(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 MVe(e,t){t||(t=[]);for(const r in e)t[r]=e[r];return t}function jd(e){if(e.emitNode)C.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(MN(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};const t=Fn(jo(Fn(e)))??C.fail("Could not determine parsed source file.");jd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function cj(e){var t,r;const i=(r=(t=Fn(jo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(const o of i)o.emitNode=void 0}function cw(e){const t=jd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Cr(e,t){return jd(e).flags=t,e}function Zh(e,t){const r=jd(e);return r.flags=r.flags|t,e}function dw(e,t){return jd(e).internalFlags=t,e}function _1(e,t){const r=jd(e);return r.internalFlags=r.internalFlags|t,e}function lv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ua(e,t){return jd(e).sourceMapRange=t,e}function dSe(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=jd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function wM(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function c4(e,t){return jd(e).startsOnNewLine=t,e}function e_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function Rc(e,t){return jd(e).commentRange=t,e}function gD(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function JT(e,t){return jd(e).leadingComments=t,e}function Cb(e,t,r,i){return JT(e,Un(gD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function uw(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function FI(e,t){return jd(e).trailingComments=t,e}function OM(e,t,r,i){return FI(e,Un(uw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function nie(e,t){JT(e,gD(t)),FI(e,uw(t));const r=jd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function rie(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function iie(e,t){const r=jd(e);return r.constantValue=t,e}function zI(e,t){const r=jd(e);return r.helpers=Un(r.helpers,t),e}function Ig(e,t){if(vt(t)){const r=jd(e);for(const i of t)r.helpers=Qg(r.helpers,i)}return e}function uSe(e,t){var r;const i=(r=e.emitNode)==null?void 0:r.helpers;return i?mN(i,t):!1}function dj(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function oie(e,t,r){const i=e.emitNode,o=i&&i.helpers;if(!vt(o))return;const s=jd(t);let l=0;for(let u=0;u0&&(o[u-l]=d)}l>0&&(o.length-=l)}function uj(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function pj(e,t){const r=jd(e);return r.snippetElement=t,e}function fj(e){return jd(e).internalFlags|=4,e}function aie(e,t){const r=jd(e);return r.typeNode=t,e}function sie(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function cv(e,t){return jd(e).identifierTypeArguments=t,e}function g1(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function pw(e,t){return jd(e).autoGenerate=t,e}function pSe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function lie(e,t){return jd(e).generatedImportReference=t,e}function cie(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var die=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(die||{});function uie(e){const t=e.factory,r=Nu(()=>dw(t.createTrue(),8)),i=Nu(()=>dw(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:u,createESDecorateHelper:N,createRunInitializersHelper:P,createAssignHelper:k,createAwaitHelper:F,createAsyncGeneratorHelper:O,createAsyncDelegatorHelper:G,createAsyncValuesHelper:j,createRestHelper:J,createAwaiterHelper:Z,createExtendsHelper:q,createTemplateObjectHelper:ye,createSpreadArrayHelper:ie,createPropKeyHelper:K,createSetFunctionNameHelper:pe,createValuesHelper:de,createReadHelper:fe,createGeneratorHelper:ve,createImportStarHelper:xe,createImportStarCallbackHelper:X,createImportDefaultHelper:Ce,createExportStarHelper:Je,createClassPrivateFieldGetHelper:Se,createClassPrivateFieldSetHelper:re,createClassPrivateFieldInHelper:be,createAddDisposableResourceHelper:Ne,createDisposeResourcesHelper:Be,createRewriteRelativeImportExtensionsHelper:lt};function o(ce){return Cr(t.createIdentifier(ce),8196)}function s(ce,Re,ge,je){e.requestEmitHelper(PVe);const Ge=[];return Ge.push(t.createArrayLiteralExpression(ce,!0)),Ge.push(Re),ge&&(Ge.push(ge),je&&Ge.push(je)),t.createCallExpression(o("__decorate"),void 0,Ge)}function l(ce,Re){return e.requestEmitHelper(LVe),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(ce),Re])}function u(ce,Re,ge){return e.requestEmitHelper(kVe),bt(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(Re+""),ce]),ge)}function d(ce){const Re=[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(Re)}function g(ce){const Re=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,Re))}function h(ce){const Re=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(Re,t.createIdentifier("value")))])))}function y(ce){const Re=ce.computed?ce.name:He(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(Re,103,t.createIdentifier("obj"))))}function E(ce,Re){const ge=[];return ge.push(y(ce)),Re.get&&ge.push(g(ce)),Re.set&&ge.push(h(ce)),t.createObjectLiteralExpression(ge)}function A(ce){const Re=[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(Re)}function R(ce){return ce.kind==="class"?d(ce):A(ce)}function N(ce,Re,ge,je,Ge,We){return e.requestEmitHelper(wVe),t.createCallExpression(o("__esDecorate"),void 0,[ce??t.createNull(),Re??t.createNull(),ge,R(je),Ge,We])}function P(ce,Re,ge){return e.requestEmitHelper(OVe),t.createCallExpression(o("__runInitializers"),void 0,ge?[ce,Re,ge]:[ce,Re])}function k(ce){return Ga(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,ce):(e.requestEmitHelper(WVe),t.createCallExpression(o("__assign"),void 0,ce))}function F(ce){return e.requestEmitHelper(d4),t.createCallExpression(o("__await"),void 0,[ce])}function O(ce,Re){return e.requestEmitHelper(d4),e.requestEmitHelper(FVe),(ce.emitNode||(ce.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[Re?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),ce])}function G(ce){return e.requestEmitHelper(d4),e.requestEmitHelper(zVe),t.createCallExpression(o("__asyncDelegator"),void 0,[ce])}function j(ce){return e.requestEmitHelper(BVe),t.createCallExpression(o("__asyncValues"),void 0,[ce])}function J(ce,Re,ge,je){e.requestEmitHelper(GVe);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; };`},LVe={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); };`},kVe={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); } };`},wVe={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; };`},OVe={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; };`},WVe={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); };`},d4={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); }`},FVe={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[d4],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]); } };`},zVe={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[d4],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; } };`},BVe={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); } };`},GVe={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; };`},VVe={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()); }); };`},jVe={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 __()); }; })();`},UVe={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; };`},HVe={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; };`},qVe={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)); };`},JVe={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},KVe={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 }); };`},XVe={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."); };`},YVe={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 }; } };`},fie={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]; }));`},$Ve={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; });`},mSe={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[fie,$Ve],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; }; })();`},QVe={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},ZVe={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[fie],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); };`},eje={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); };`},tje={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; };`},nje={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); };`},rje={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; };`},ije={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; });`},oje={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; };`},u4={name:"typescript:async-super",scoped:!0,text:fSe` const ${"_superIndex"} = name => super[name];`},p4={name:"typescript:advanced-async-super",scoped:!0,text:fSe` 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 WM(e,t){return Zo(e)&&He(e.expression)&&(Qa(e.expression)&8192)!==0&&e.expression.escapedText===t}function np(e){return e.kind===9}function yD(e){return e.kind===10}function wa(e){return e.kind===11}function BI(e){return e.kind===12}function mj(e){return e.kind===14}function y1(e){return e.kind===15}function GI(e){return e.kind===16}function hj(e){return e.kind===17}function f4(e){return e.kind===18}function m4(e){return e.kind===26}function mie(e){return e.kind===28}function _j(e){return e.kind===40}function gj(e){return e.kind===41}function fw(e){return e.kind===42}function mw(e){return e.kind===54}function Nb(e){return e.kind===58}function hie(e){return e.kind===59}function h4(e){return e.kind===29}function _ie(e){return e.kind===39}function He(e){return e.kind===80}function eo(e){return e.kind===81}function VI(e){return e.kind===95}function _4(e){return e.kind===90}function FM(e){return e.kind===134}function gie(e){return e.kind===131}function yj(e){return e.kind===135}function yie(e){return e.kind===148}function jI(e){return e.kind===126}function vie(e){return e.kind===128}function bie(e){return e.kind===164}function vj(e){return e.kind===129}function zM(e){return e.kind===108}function BM(e){return e.kind===102}function Tie(e){return e.kind===84}function ku(e){return e.kind===167}function va(e){return e.kind===168}function cl(e){return e.kind===169}function to(e){return e.kind===170}function Wc(e){return e.kind===171}function Su(e){return e.kind===172}function Po(e){return e.kind===173}function Vm(e){return e.kind===174}function Nl(e){return e.kind===175}function Ql(e){return e.kind===176}function Ml(e){return e.kind===177}function Hf(e){return e.kind===178}function gp(e){return e.kind===179}function UI(e){return e.kind===180}function GM(e){return e.kind===181}function Mb(e){return e.kind===182}function HI(e){return e.kind===183}function Wp(e){return e.kind===184}function O_(e){return e.kind===185}function vD(e){return e.kind===186}function zS(e){return e.kind===187}function wu(e){return e.kind===188}function hw(e){return e.kind===189}function qI(e){return e.kind===190}function bD(e){return e.kind===203}function g4(e){return e.kind===191}function y4(e){return e.kind===192}function dv(e){return e.kind===193}function JI(e){return e.kind===194}function BS(e){return e.kind===195}function v1(e){return e.kind===196}function b1(e){return e.kind===197}function VM(e){return e.kind===198}function KT(e){return e.kind===199}function GS(e){return e.kind===200}function T1(e){return e.kind===201}function uv(e){return e.kind===202}function t_(e){return e.kind===206}function bj(e){return e.kind===205}function Sie(e){return e.kind===204}function ff(e){return e.kind===207}function pv(e){return e.kind===208}function Ha(e){return e.kind===209}function Cd(e){return e.kind===210}function Fa(e){return e.kind===211}function qr(e){return e.kind===212}function Ws(e){return e.kind===213}function Zo(e){return e.kind===214}function VS(e){return e.kind===215}function XT(e){return e.kind===216}function v4(e){return e.kind===217}function Ou(e){return e.kind===218}function Us(e){return e.kind===219}function Xs(e){return e.kind===220}function Eie(e){return e.kind===221}function TD(e){return e.kind===222}function KI(e){return e.kind===223}function Pb(e){return e.kind===224}function YT(e){return e.kind===225}function Tj(e){return e.kind===226}function Nr(e){return e.kind===227}function S1(e){return e.kind===228}function b4(e){return e.kind===229}function _w(e){return e.kind===230}function qf(e){return e.kind===231}function uc(e){return e.kind===232}function Jc(e){return e.kind===233}function uy(e){return e.kind===234}function SD(e){return e.kind===235}function ED(e){return e.kind===239}function XI(e){return e.kind===236}function E1(e){return e.kind===237}function hSe(e){return e.kind===238}function Aie(e){return e.kind===356}function jM(e){return e.kind===357}function AD(e){return e.kind===240}function Iie(e){return e.kind===241}function ea(e){return e.kind===242}function sc(e){return e.kind===244}function Sj(e){return e.kind===243}function od(e){return e.kind===245}function $T(e){return e.kind===246}function _Se(e){return e.kind===247}function Ej(e){return e.kind===248}function QT(e){return e.kind===249}function T4(e){return e.kind===250}function gw(e){return e.kind===251}function gSe(e){return e.kind===252}function ySe(e){return e.kind===253}function tf(e){return e.kind===254}function xie(e){return e.kind===255}function UM(e){return e.kind===256}function Lb(e){return e.kind===257}function Aj(e){return e.kind===258}function A1(e){return e.kind===259}function vSe(e){return e.kind===260}function yi(e){return e.kind===261}function _d(e){return e.kind===262}function Zl(e){return e.kind===263}function Dc(e){return e.kind===264}function gd(e){return e.kind===265}function bm(e){return e.kind===266}function ZT(e){return e.kind===267}function pc(e){return e.kind===268}function n_(e){return e.kind===269}function HM(e){return e.kind===270}function yw(e){return e.kind===271}function Fc(e){return e.kind===272}function vl(e){return e.kind===273}function jm(e){return e.kind===274}function bSe(e){return e.kind===303}function Rie(e){return e.kind===301}function TSe(e){return e.kind===302}function I1(e){return e.kind===301}function Die(e){return e.kind===302}function xg(e){return e.kind===275}function W_(e){return e.kind===281}function r_(e){return e.kind===276}function Eu(e){return e.kind===277}function dl(e){return e.kind===278}function fc(e){return e.kind===279}function Jf(e){return e.kind===280}function ou(e){return e.kind===282}function S4(e){return e.kind===80||e.kind===11}function SSe(e){return e.kind===283}function Cie(e){return e.kind===354}function YI(e){return e.kind===358}function py(e){return e.kind===284}function i_(e){return e.kind===285}function x1(e){return e.kind===286}function ph(e){return e.kind===287}function jS(e){return e.kind===288}function e0(e){return e.kind===289}function Um(e){return e.kind===290}function Nie(e){return e.kind===291}function o_(e){return e.kind===292}function US(e){return e.kind===293}function $I(e){return e.kind===294}function ID(e){return e.kind===295}function fh(e){return e.kind===296}function xD(e){return e.kind===297}function qM(e){return e.kind===298}function Fp(e){return e.kind===299}function HS(e){return e.kind===300}function Cc(e){return e.kind===304}function Ud(e){return e.kind===305}function Rg(e){return e.kind===306}function fy(e){return e.kind===307}function Yi(e){return e.kind===308}function Mie(e){return e.kind===309}function t0(e){return e.kind===310}function JM(e){return e.kind===311}function n0(e){return e.kind===312}function Pie(e){return e.kind===325}function Lie(e){return e.kind===326}function ESe(e){return e.kind===327}function kie(e){return e.kind===313}function wie(e){return e.kind===314}function RD(e){return e.kind===315}function E4(e){return e.kind===316}function Ij(e){return e.kind===317}function DD(e){return e.kind===318}function A4(e){return e.kind===319}function ASe(e){return e.kind===320}function mh(e){return e.kind===321}function R1(e){return e.kind===323}function fv(e){return e.kind===324}function QI(e){return e.kind===329}function ISe(e){return e.kind===331}function Oie(e){return e.kind===333}function xj(e){return e.kind===339}function Rj(e){return e.kind===334}function Dj(e){return e.kind===335}function Cj(e){return e.kind===336}function Nj(e){return e.kind===337}function I4(e){return e.kind===338}function CD(e){return e.kind===340}function Mj(e){return e.kind===332}function xSe(e){return e.kind===348}function vw(e){return e.kind===341}function mf(e){return e.kind===342}function x4(e){return e.kind===343}function Pj(e){return e.kind===344}function KM(e){return e.kind===345}function Tm(e){return e.kind===346}function D1(e){return e.kind===347}function RSe(e){return e.kind===328}function Wie(e){return e.kind===349}function R4(e){return e.kind===330}function D4(e){return e.kind===351}function DSe(e){return e.kind===350}function a_(e){return e.kind===352}function ND(e){return e.kind===353}var XM=new WeakMap;function Lj(e,t){var r;const i=e.kind;return gF(i)?i===353?e._children:(r=XM.get(t))==null?void 0:r.get(e):se}function Fie(e,t,r){e.kind===353&&C.fail("Should not need to re-set the children of a SyntaxList.");let i=XM.get(t);return i===void 0&&(i=new WeakMap,XM.set(t,i)),i.set(e,r),r}function kj(e,t){var r;e.kind===353&&C.fail("Did not expect to unset the children of a SyntaxList."),(r=XM.get(t))==null||r.delete(e)}function zie(e,t){const r=XM.get(e);r!==void 0&&(XM.delete(e),XM.set(t,r))}function bw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function C1(e,t,r,i){if(va(r))return bt(e.createElementAccessExpression(t,r.expression),i);{const o=bt(ug(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return Zh(o,128),o}}function Bie(e,t){const r=i0.createIdentifier(e||"React");return ps(r,jo(t)),r}function Gie(e,t,r){if(ku(t)){const i=Gie(e,t.left,r),o=e.createIdentifier(Kr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Bie(Kr(t),r)}function wj(e,t,r,i){return t?Gie(e,t,i):e.createPropertyAccessExpression(Bie(r,i),"createElement")}function aje(e,t,r,i){return t?Gie(e,t,i):e.createPropertyAccessExpression(Bie(r,i),"Fragment")}function Vie(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)au(u),l.push(u);else l.push(o[0]);return bt(e.createCallExpression(t,void 0,l),s)}function jie(e,t,r,i,o,s,l){const d=[aje(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(const g of o)au(g),d.push(g);else d.push(o[0]);return bt(e.createCallExpression(wj(e,t,i,s),void 0,d),l)}function Oj(e,t,r){if(_d(t)){const i=$a(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 Tw(e,t){if(ku(t)){const r=Tw(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 Wj(e,t){return He(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 sje(e,t,r,i,o){const{firstAccessor:s,getAccessor:l,setAccessor:u}=PS(t,r);if(r===s)return bt(e.createObjectDefinePropertyCall(i,Wj(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&bt(jr(e.createFunctionExpression(hS(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&bt(jr(e.createFunctionExpression(hS(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!o)),s)}function lje(e,t,r){return jr(bt(e.createAssignment(C1(e,r,t.name,t.name),t.initializer),t),t)}function cje(e,t,r){return jr(bt(e.createAssignment(C1(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function dje(e,t,r){return jr(bt(e.createAssignment(C1(e,r,t.name,t.name),jr(bt(e.createFunctionExpression(hS(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Uie(e,t,r,i){switch(r.name&&eo(r.name)&&C.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 178:case 179:return sje(e,t.properties,r,i,!!t.multiLine);case 304:return lje(e,r,i);case 305:return cje(e,r,i);case 175:return dje(e,r,i)}}function C4(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=YT(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),Tj(t)&&(r=e.createComma(r,l),bt(r,t)),r}function Fj(e){return(Qa(e)&65536)!==0}function my(e){return(Qa(e)&32768)!==0}function N4(e){return(Qa(e)&16384)!==0}function CSe(e){return wa(e.expression)&&e.expression.text==="use strict"}function zj(e){for(const t of e)if(Hh(t)){if(CSe(t))return t}else break}function Hie(e){const t=Ac(e);return t!==void 0&&Hh(t)&&CSe(t)}function Sw(e){return e.kind===227&&e.operatorToken.kind===28}function YM(e){return Sw(e)||jM(e)}function qS(e){return Ou(e)&&Ir(e)&&!!LT(e)}function MD(e){const t=$y(e);return C.assertIsDefined(t),t}function M4(e,t=63){switch(e.kind){case 218:return t&-2147483648&&qS(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 Ul(e,t=63){for(;M4(e,t);)e=e.expression;return e}function qie(e,t=63){let r=e.parent;for(;M4(r,t);)r=r.parent,C.assert(r);return r}function au(e){return c4(e,!0)}function Ew(e){const t=yl(e,Yi),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function Jie(e){const t=yl(e,Yi),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function Bj(e,t,r,i,o,s,l){if(i.importHelpers&&HR(r,i)){const u=bu(i),d=W1(r,i),g=uje(r);if(d!==1&&(u>=5&&u<=99||d===99||d===void 0&&u===200)){if(g){const h=[];for(const y of g){const E=y.importName;E&&kf(h,E)}if(vt(h)){h.sort(Wd);const y=e.createNamedImports(Bt(h,N=>kF(r,N)?e.createImportSpecifier(!1,void 0,e.createIdentifier(N)):e.createImportSpecifier(!1,e.createIdentifier(N),t.getUnscopedHelperName(N)))),E=yl(r,Yi),A=jd(E);A.externalHelpers=!0;const R=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,y),e.createStringLiteral(hb),void 0);return _1(R,2),R}}}else{const h=pje(e,r,i,g,o,s||l);if(h){const y=e.createImportEqualsDeclaration(void 0,!1,h,e.createExternalModuleReference(e.createStringLiteral(hb)));return _1(y,2),y}}}}function uje(e){return Vn(dj(e),t=>!t.scoped)}function pje(e,t,r,i,o,s){const l=Ew(t);if(l)return l;if(vt(i)||(o||Qh(r)&&s)&&TP(t,r)<4){const d=yl(t,Yi),g=jd(d);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(hb))}}function PD(e,t,r){const i=ZR(t);if(i&&!l1(t)&&!OF(t)){const o=i.name;return o.kind===11?e.getGeneratedNameForNode(t):fl(o)?o:e.createIdentifier(bS(r,o)||Kr(o))}if(t.kind===273&&t.importClause||t.kind===279&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function ZI(e,t,r,i,o,s){const l=yI(t);if(l&&wa(l))return mje(t,i,e,o,s)||fje(e,l,r)||e.cloneNode(l)}function fje(e,t,r){const i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Aw(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(rV(r,t.fileName))}}function mje(e,t,r,i,o){return Aw(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function Iw(e){if(z2(e))return e.initializer;if(Cc(e)){const t=e.initializer;return id(t,!0)?t.right:void 0}if(Ud(e))return e.objectAssignmentInitializer;if(id(e,!0))return e.right;if(qf(e))return Iw(e.expression)}function kb(e){if(z2(e))return e.name;if(ry(e)){switch(e.kind){case 304:return kb(e.initializer);case 305:return e.name;case 306:return kb(e.expression)}return}return id(e,!0)?kb(e.left):qf(e)?kb(e.expression):e}function P4(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function Gj(e){const t=L4(e);return C.assert(!!t||Rg(e),"Invalid property name for binding element."),t}function L4(e){switch(e.kind){case 209:if(e.propertyName){const r=e.propertyName;return eo(r)?C.failBadSyntaxKind(r):va(r)&&NSe(r.expression)?r.expression:r}break;case 304:if(e.name){const r=e.name;return eo(r)?C.failBadSyntaxKind(r):va(r)&&NSe(r.expression)?r.expression:r}break;case 306:return e.name&&eo(e.name)?C.failBadSyntaxKind(e.name):e.name}const t=kb(e);if(t&&vc(t))return t}function NSe(e){const t=e.kind;return t===11||t===9}function LD(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function Vj(e){if(e){let t=e;for(;;){if(He(t)||!t.body)return He(t)?t:t.name;t=t.body}}}function MSe(e){const t=e.kind;return t===177||t===179}function Kie(e){const t=e.kind;return t===177||t===178||t===179}function jj(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 Xie(e){const t=e.kind;return t===176||t===304||t===305||t===283||t===271}function Yie(e){return Nb(e)||mw(e)}function $ie(e){return He(e)||VM(e)}function Qie(e){return yie(e)||_j(e)||gj(e)}function Zie(e){return Nb(e)||_j(e)||gj(e)}function eoe(e){return He(e)||wa(e)}function hje(e){return e===43}function _je(e){return e===42||e===44||e===45}function gje(e){return hje(e)||_je(e)}function yje(e){return e===40||e===41}function vje(e){return yje(e)||gje(e)}function bje(e){return e===48||e===49||e===50}function Uj(e){return bje(e)||vje(e)}function Tje(e){return e===30||e===33||e===32||e===34||e===104||e===103}function Sje(e){return Tje(e)||Uj(e)}function Eje(e){return e===35||e===37||e===36||e===38}function Aje(e){return Eje(e)||Sje(e)}function Ije(e){return e===51||e===52||e===53}function xje(e){return Ije(e)||Aje(e)}function Rje(e){return e===56||e===57}function Dje(e){return Rje(e)||xje(e)}function Cje(e){return e===61||Dje(e)||ly(e)}function Nje(e){return Cje(e)||e===28}function toe(e){return Nje(e.kind)}var Hj;(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?(g(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?(g(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 g(h,y,E){if(C.shouldAssert(2))for(;h>=0;)C.assert(y[h]!==E,"Circular traversal detected."),h--}})(Hj||(Hj={}));var Mje=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 k4(e,t,r,i,o,s){const l=new Mje(e,t,r,i,o,s);return u;function u(d,g){const h={value:void 0},y=[Hj.enter],E=[d],A=[void 0];let R=0;for(;y[R]!==Hj.done;)R=y[R](l,R,y,E,A,h,g);return C.assertEqual(R,0),h.value}}function Pje(e){return e===95||e===90}function xw(e){const t=e.kind;return Pje(t)}function noe(e,t){if(t!==void 0)return t.length===0?t:bt(e.createNodeArray([],t.hasTrailingComma),t)}function Rw(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(ug(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function kD(e,t){return typeof e=="object"?r0(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function Lje(e,t){return typeof e=="string"?e:kje(e,C.checkDefined(t))}function kje(e,t){return $E(e)?t(e).slice(1):fl(e)?t(e):eo(e)?e.escapedText.slice(1):Kr(e)}function r0(e,t,r,i,o){return t=kD(t,o),i=kD(i,o),r=Lje(r,o),`${e?"#":""}${t}${r}${i}`}function qj(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function roe(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 ioe(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 w4(e){let t=e.expression;for(;;){if(t=Ul(t),jM(t)){t=Ba(t.elements);continue}if(Sw(t)){t=t.right;continue}if(id(t,!0)&&fl(t.left))return t;break}}function wje(e){return Ou(e)&&Os(e)&&!e.emitNode}function O4(e,t){if(wje(e))O4(e.expression,t);else if(Sw(e))O4(e.left,t),O4(e.right,t);else if(jM(e))for(const r of e.elements)O4(r,t);else t.push(e)}function ooe(e){const t=[];return O4(e,t),t}function Dw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of LD(e)){const r=kb(t);if(r&&zN(r)&&(r.transformFlags&65536||r.transformFlags&128&&Dw(r)))return!0}return!1}function bt(e,t){return t?uh(e,t.pos,t.end):e}function Sm(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 JS(e){const t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var PSe,LSe,kSe,wSe,OSe,aoe={createBaseSourceFileNode:e=>new(OSe||(OSe=Rd.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(kSe||(kSe=Rd.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(wSe||(wSe=Rd.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(LSe||(LSe=Rd.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(PSe||(PSe=Rd.getNodeConstructor()))(e,-1,-1)},i0=sw(1,aoe);function dn(e,t){return t&&e(t)}function Xi(e,t,r){if(r){if(t)return t(r);for(const i of r){const o=e(i);if(o)return o}}}function Jj(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Cw(e){return $e(e.statements,Oje)||Wje(e)}function Oje(e){return Sm(e)&&Fje(e,95)||Fc(e)&&py(e.moduleReference)||vl(e)||dl(e)||fc(e)?e:void 0}function Wje(e){return e.flags&8388608?WSe(e):void 0}function WSe(e){return zje(e)?e:Jo(e,WSe)}function Fje(e,t){return vt(e.modifiers,r=>r.kind===t)}function zje(e){return E1(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var Bje={167:function(t,r,i){return dn(r,t.left)||dn(r,t.right)},169:function(t,r,i){return Xi(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 Xi(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 Xi(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 Xi(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 Xi(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 Xi(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 Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},186:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},185:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},180:FSe,181:FSe,175:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||dn(r,t.questionToken)||dn(r,t.exclamationToken)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},174:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.questionToken)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)},177:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},178:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},179:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},263:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},219:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.asteriskToken)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.body)},220:function(t,r,i){return Xi(r,i,t.modifiers)||Xi(r,i,t.typeParameters)||Xi(r,i,t.parameters)||dn(r,t.type)||dn(r,t.equalsGreaterThanToken)||dn(r,t.body)},176:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.body)},184:function(t,r,i){return dn(r,t.typeName)||Xi(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)||Xi(r,i,t.typeArguments)},188:function(t,r,i){return Xi(r,i,t.members)},189:function(t,r,i){return dn(r,t.elementType)},190:function(t,r,i){return Xi(r,i,t.elements)},193:zSe,194:zSe,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)||Xi(r,i,t.typeArguments)},303:function(t,r,i){return dn(r,t.assertClause)},197:BSe,199:BSe,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)||Xi(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:GSe,208:GSe,210:function(t,r,i){return Xi(r,i,t.elements)},211:function(t,r,i){return Xi(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:VSe,215:VSe,216:function(t,r,i){return dn(r,t.tag)||dn(r,t.questionDotToken)||Xi(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:jSe,269:jSe,308:function(t,r,i){return Xi(r,i,t.statements)||dn(r,t.endOfFileToken)},244:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.declarationList)},262:function(t,r,i){return Xi(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:USe,253:USe,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 Xi(r,i,t.clauses)},297:function(t,r,i){return dn(r,t.expression)||Xi(r,i,t.statements)},298:function(t,r,i){return Xi(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:HSe,232:HSe,265:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||Xi(r,i,t.heritageClauses)||Xi(r,i,t.members)},266:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.typeParameters)||dn(r,t.type)},267:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||Xi(r,i,t.members)},307:function(t,r,i){return dn(r,t.name)||dn(r,t.initializer)},268:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.body)},272:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.name)||dn(r,t.moduleReference)},273:function(t,r,i){return Xi(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 Xi(r,i,t.elements)},302:function(t,r,i){return dn(r,t.name)||dn(r,t.value)},271:function(t,r,i){return Xi(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:qSe,280:qSe,279:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.exportClause)||dn(r,t.moduleSpecifier)||dn(r,t.attributes)},277:JSe,282:JSe,278:function(t,r,i){return Xi(r,i,t.modifiers)||dn(r,t.expression)},229:function(t,r,i){return dn(r,t.head)||Xi(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)||Xi(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 Xi(r,i,t.types)},234:function(t,r,i){return dn(r,t.expression)||Xi(r,i,t.typeArguments)},284:function(t,r,i){return dn(r,t.expression)},283:function(t,r,i){return Xi(r,i,t.modifiers)},357:function(t,r,i){return Xi(r,i,t.elements)},285:function(t,r,i){return dn(r,t.openingElement)||Xi(r,i,t.children)||dn(r,t.closingElement)},289:function(t,r,i){return dn(r,t.openingFragment)||Xi(r,i,t.children)||dn(r,t.closingFragment)},286:KSe,287:KSe,293:function(t,r,i){return Xi(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:$M,192:$M,310:$M,316:$M,315:$M,317:$M,319:$M,318:function(t,r,i){return Xi(r,i,t.parameters)||dn(r,t.type)},321:function(t,r,i){return(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))||Xi(r,i,t.tags)},348:function(t,r,i){return dn(r,t.tagName)||dn(r,t.name)||(typeof t.comment=="string"?void 0:Xi(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:XSe,349:XSe,331:function(t,r,i){return dn(r,t.tagName)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},330:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},329:function(t,r,i){return dn(r,t.tagName)||dn(r,t.class)||(typeof t.comment=="string"?void 0:Xi(r,i,t.comment))},346:function(t,r,i){return dn(r,t.tagName)||dn(r,t.constraint)||Xi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Xi(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:Xi(r,i,t.comment)):dn(r,t.fullName)||dn(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Xi(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:Xi(r,i,t.comment))},343:QM,345:QM,344:QM,341:QM,351:QM,350:QM,340:QM,324:function(t,r,i){return $e(t.typeParameters,r)||$e(t.parameters,r)||dn(r,t.type)},325:soe,326:soe,327:soe,323:function(t,r,i){return $e(t.jsDocPropertyTags,r)},328:wD,333:wD,334:wD,335:wD,336:wD,337:wD,332:wD,338:wD,352:Gje,356:Vje};function FSe(e,t,r){return Xi(t,r,e.typeParameters)||Xi(t,r,e.parameters)||dn(t,e.type)}function zSe(e,t,r){return Xi(t,r,e.types)}function BSe(e,t,r){return dn(t,e.type)}function GSe(e,t,r){return Xi(t,r,e.elements)}function VSe(e,t,r){return dn(t,e.expression)||dn(t,e.questionDotToken)||Xi(t,r,e.typeArguments)||Xi(t,r,e.arguments)}function jSe(e,t,r){return Xi(t,r,e.statements)}function USe(e,t,r){return dn(t,e.label)}function HSe(e,t,r){return Xi(t,r,e.modifiers)||dn(t,e.name)||Xi(t,r,e.typeParameters)||Xi(t,r,e.heritageClauses)||Xi(t,r,e.members)}function qSe(e,t,r){return Xi(t,r,e.elements)}function JSe(e,t,r){return dn(t,e.propertyName)||dn(t,e.name)}function KSe(e,t,r){return dn(t,e.tagName)||Xi(t,r,e.typeArguments)||dn(t,e.attributes)}function $M(e,t,r){return dn(t,e.type)}function XSe(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:Xi(t,r,e.comment))}function QM(e,t,r){return dn(t,e.tagName)||dn(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function soe(e,t,r){return dn(t,e.name)}function wD(e,t,r){return dn(t,e.tagName)||(typeof e.comment=="string"?void 0:Xi(t,r,e.comment))}function Gje(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:Xi(t,r,e.comment))}function Vje(e,t,r){return dn(t,e.expression)}function Jo(e,t,r){if(e===void 0||e.kind<=166)return;const i=Bje[e.kind];return i===void 0?void 0:i(e,t,r)}function ex(e,t,r){const i=YSe(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 YSe(s))i.push(d),o.push(s)}}}function YSe(e){const t=[];return Jo(e,r,r),t;function r(i){t.unshift(i)}}function $Se(e){e.externalModuleIndicator=Cw(e)}function tx(e,t,r,i=!1,o){var s,l;(s=xr)==null||s.push(xr.Phase.Parse,"createSourceFile",{path:e},!0),Rl("beforeParse");let u;const{languageVersion:d,setExternalModuleIndicator:g,impliedNodeFormat:h,jsDocParsingMode:y}=typeof r=="object"?r:{languageVersion:r};if(d===100)u=o0.parseSourceFile(e,t,d,void 0,i,6,gs,y);else{const E=h===void 0?g:A=>(A.impliedNodeFormat=h,(g||$Se)(A));u=o0.parseSourceFile(e,t,d,void 0,i,o,E,y)}return Rl("afterParse"),wf("Parse","beforeParse","afterParse"),(l=xr)==null||l.pop(),u}function nx(e,t){return o0.parseIsolatedEntityName(e,t)}function Nw(e,t){return o0.parseJsonText(e,t)}function zc(e){return e.externalModuleIndicator!==void 0}function Kj(e,t,r,i=!1){const o=Xj.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function loe(e,t,r){const i=o0.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&o0.fixupParentReferences(i.jsDoc),i}function QSe(e,t,r){return o0.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}var o0;(e=>{var t=dg(99,!0),r=40960,i,o,s,l,u;function d(ee){return We++,ee}var g={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=sw(11,g),{createNodeArray:y,createNumericLiteral:E,createStringLiteral:A,createLiteralLikeNode:R,createIdentifier:N,createPrivateIdentifier:P,createToken:k,createArrayLiteralExpression:F,createObjectLiteralExpression:O,createPropertyAccessExpression:G,createPropertyAccessChain:j,createElementAccessExpression:J,createElementAccessChain:Z,createCallExpression:q,createCallChain:ye,createNewExpression:ie,createParenthesizedExpression:K,createBlock:pe,createVariableStatement:de,createExpressionStatement:fe,createIfStatement:ve,createWhileStatement:xe,createForStatement:X,createForOfStatement:Ce,createVariableDeclaration:Je,createVariableDeclarationList:Se}=h,re,be,Ne,Be,lt,ce,Re,ge,je,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=U6(ee,_n),_n===6){const ao=co(ee,ke,rt,Pt,nn);return ww(ao,(pr=ao.statements[0])==null?void 0:pr.expression,ao.parseDiagnostics,!1,void 0),ao.referencedFiles=se,ao.typeReferenceDirectives=se,ao.libReferenceDirectives=se,ao.amdDependencies=se,ao.hasNoDefaultLib=!1,ao.pragmas=_t,ao}zt(ee,ke,rt,Pt,_n,wr);const Si=Ai(rt,nn,_n,ei||$Se,wr);return Zr(),Si}e.parseSourceFile=or;function Di(ee,ke){zt("",ee,ke,void 0,1,0),Pe();const rt=ut(!0),Pt=te()===1&&!Re.length;return Zr(),Pt?rt:void 0}e.parseIsolatedEntityName=Di;function co(ee,ke,rt=2,Pt,nn=!1){zt(ee,ke,rt,Pt,6,0),be=Kn,Pe();const _n=B();let ei,wr;if(te()===1)ei=qa([],_n,_n),wr=ec();else{let ao;for(;te()!==1;){let as;switch(te()){case 23:as=eT();break;case 112:case 97:case 106:as=ec();break;case 41:wt(()=>Pe()===9&&Pe()!==59)?as=xv():as=Cv();break;case 9:case 11:if(wt(()=>Pe()!==59)){as=kt();break}default:as=Cv();break}ao&&Mo(ao)?ao.push(as):ao?ao=[ao,as]:(ao=as,te()!==1&&Kt(f.Unexpected_token))}const zs=Mo(ao)?Zt(F(ao),_n):C.checkDefined(ao),Is=fe(zs);Zt(Is,_n),ei=qa([Is],_n),wr=$s(1,f.Unexpected_token)}const pr=At(ee,2,6,!1,ei,wr,be,gs);nn&&Ye(pr),pr.nodeCount=We,pr.identifierCount=Wt,pr.identifiers=at,pr.parseDiagnostics=NI(Re,pr),ge&&(pr.jsDocDiagnostics=NI(ge,pr));const Si=pr;return Zr(),Si}e.parseJsonText=co;function zt(ee,ke,rt,Pt,nn,_n){switch(i=Rd.getNodeConstructor(),o=Rd.getTokenConstructor(),s=Rd.getIdentifierConstructor(),l=Rd.getPrivateIdentifierConstructor(),u=Rd.getSourceFileConstructor(),re=ya(ee),Ne=ke,Be=rt,je=Pt,lt=nn,ce=jk(nn),Re=[],cn=0,at=new Map,Wt=0,We=0,be=0,gt=!0,lt){case 1:case 2:Kn=524288;break;case 6:Kn=134742016;break;default:Kn=0;break}en=!1,t.setText(Ne),t.setOnError(he),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),Ne=void 0,Be=void 0,je=void 0,lt=void 0,ce=void 0,be=0,Re=void 0,ge=void 0,cn=0,at=void 0,gn=void 0,gt=!0}function Ai(ee,ke,rt,Pt,nn){const _n=ad(re);_n&&(Kn|=33554432),be=Kn,Pe();const ei=Va(0,bp);C.assert(te()===1);const wr=Ae(),pr=Pr(ec(),wr),Si=At(re,ee,rt,_n,ei,pr,be,Pt);return Yj(Si,Ne),$j(Si,ao),Si.commentDirectives=t.getCommentDirectives(),Si.nodeCount=We,Si.identifierCount=Wt,Si.identifiers=at,Si.parseDiagnostics=NI(Re,Si),Si.jsDocParsingMode=nn,ge&&(Si.jsDocDiagnostics=NI(ge,Si)),ke&&Ye(Si),Si;function ao(zs,Is,as){Re.push(CI(re,Ne,zs,Is,as))}}let Ni=!1;function Pr(ee,ke){if(!ke)return ee;C.assert(!ee.jsDoc);const rt=ji(RG(ee,Ne),Pt=>y_.parseJSDocComment(ee,Pt.pos,Pt.end-Pt.pos));return rt.length&&(ee.jsDoc=rt),Ni&&(Ni=!1,ee.flags|=536870912),ee}function Ci(ee){const ke=je,rt=Xj.createSyntaxCursor(ee);je={currentNode:ao};const Pt=[],nn=Re;Re=[];let _n=0,ei=pr(ee.statements,0);for(;ei!==-1;){const zs=ee.statements[_n],Is=ee.statements[ei];Xr(Pt,ee.statements,_n,ei),_n=Si(ee.statements,ei);const as=so(nn,xf=>xf.start>=zs.pos),em=as>=0?so(nn,xf=>xf.start>=Is.pos,as):-1;as>=0&&Xr(Re,nn,as,em>=0?em:void 0),yn(()=>{const xf=Kn;for(Kn|=65536,t.resetTokenState(Is.pos),Pe();te()!==1;){const kv=t.getTokenFullStart(),wv=Mc(0,bp);if(Pt.push(wv),kv===t.getTokenFullStart()&&Pe(),_n>=0){const zg=ee.statements[_n];if(wv.end===zg.pos)break;wv.end>zg.pos&&(_n=Si(ee.statements,_n+1))}}Kn=xf},2),ei=_n>=0?pr(ee.statements,_n):-1}if(_n>=0){const zs=ee.statements[_n];Xr(Pt,ee.statements,_n);const Is=so(nn,as=>as.start>=zs.pos);Is>=0&&Xr(Re,nn,Is)}return je=ke,h.updateSourceFile(ee,bt(y(Pt),ee.statements));function wr(zs){return!(zs.flags&65536)&&!!(zs.transformFlags&67108864)}function pr(zs,Is){for(let as=Is;as118}function kn(){return te()===80?!0:te()===127&&Ue()||te()===135&&nt()?!1:te()>118}function ln(ee,ke,rt=!0){return te()===ee?(rt&&Pe(),!0):(ke?Kt(ke):Kt(f._0_expected,ga(ee)),!1)}const Ii=Object.keys(iF).filter(ee=>ee.length>2);function ra(ee){if(XT(ee)){Oe(ka(Ne,ee.template.pos),ee.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}const ke=He(ee)?Kr(ee):void 0;if(!ke||!fp(ke,Be)){Kt(f._0_expected,ga(27));return}const rt=ka(Ne,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=mS(ke,Ii,Vs)??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?Kt(ke):Kt(ee,t.getTokenValue())}function zo(ee){for(const ke of Ii)if(ee.length>ke.length+2&&fo(ee,ke))return`${ke} ${ee.slice(ke.length)}`}function Bl(ee,ke,rt){if(te()===60&&!t.hasPrecedingLineBreak()){Kt(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(te()===21){Kt(f.Cannot_start_a_function_call_in_a_type_annotation),Pe();return}if(ke&&!Lo()){rt?Kt(f._0_expected,ga(27)):Kt(f.Expected_for_property_initializer);return}if(!fa()){if(rt){Kt(f._0_expected,ga(27));return}ra(ee)}}function xl(ee){return te()===ee?(yt(),!0):(C.assert(l6(ee)),Kt(f._0_expected,ga(ee)),!1)}function Ps(ee,ke,rt,Pt){if(te()===ke){Pe();return}const nn=Kt(f._0_expected,ga(ke));rt&&nn&&pa(nn,CI(re,Ne,Pt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ga(ee),ga(ke)))}function uo(ee){return te()===ee?(Pe(),!0):!1}function Go(ee){if(te()===ee)return ec()}function Tc(ee){if(te()===ee)return bf()}function $s(ee,ke,rt){return Go(ee)||As(ee,!1,ke||f._0_expected,rt||ga(ee))}function Ra(ee){const ke=Tc(ee);return ke||(C.assert(l6(ee)),As(ee,!1,f._0_expected,ga(ee)))}function ec(){const ee=B(),ke=te();return Pe(),Zt(k(ke),ee)}function bf(){const ee=B(),ke=te();return yt(),Zt(k(ke),ee)}function Lo(){return te()===27?!0:te()===20||te()===1||t.hasPrecedingLineBreak()}function fa(){return Lo()?(te()===27&&Pe(),!0):!1}function is(){return fa()||ln(27)}function qa(ee,ke,rt,Pt){const nn=y(ee,Pt);return uh(nn,ke,rt??t.getTokenFullStart()),nn}function Zt(ee,ke,rt){return uh(ee,ke,rt??t.getTokenFullStart()),Kn&&(ee.flags|=Kn),en&&(en=!1,ee.flags|=262144),ee}function As(ee,ke,rt,...Pt){ke?Tr(t.getTokenFullStart(),0,rt,...Pt):rt&&Kt(rt,...Pt);const nn=B(),_n=ee===80?N("",void 0):db(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 Hl(ee){let ke=at.get(ee);return ke===void 0&&at.set(ee,ke=ee),ke}function lc(ee,ke,rt){if(ee){Wt++;const wr=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():B(),pr=te(),Si=Hl(t.getTokenValue()),ao=t.hasExtendedUnicodeEscape();return xt(),Zt(N(Si,pr,ao),wr)}if(te()===81)return Kt(rt||f.Private_identifiers_are_not_allowed_outside_class_bodies),lc(!0);if(te()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return lc(!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 As(80,Pt,ke||ei,_n)}function vd(ee){return lc(xn(),void 0,ee)}function Fs(ee,ke){return lc(kn(),ee,ke)}function Ee(ee){return lc(Xu(te()),ee)}function Y(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Kt(f.Unicode_escape_sequence_cannot_appear_here),lc(Xu(te()))}function pt(){return Xu(te())||te()===11||te()===9||te()===10}function qt(){return Xu(te())||te()===11}function fn(ee){if(te()===11||te()===9||te()===10){const ke=kt();return ke.text=Hl(ke.text),ke}return te()===23?si():te()===81?Dr():Ee()}function ur(){return fn()}function si(){const ee=B();ln(23);const ke=Pn(Iu);return ln(24),Zt(h.createComputedPropertyName(ke),ee)}function Dr(){const ee=B(),ke=P(Hl(t.getTokenValue()));return Pe(),Zt(ke,ee)}function zn(ee){return te()===ee&&En(Eo)}function ro(){return Pe(),t.hasPrecedingLineBreak()?!1:Sc()}function Eo(){switch(te()){case 87:return Pe()===94;case 95:return Pe(),te()===90?wt(Hs):te()===156?wt(Da):Ns();case 90:return Hs();case 126:return Pe(),Sc();case 139:case 153:return Pe(),mc();default:return ro()}}function Ns(){return te()===60||te()!==42&&te()!==130&&te()!==19&&Sc()}function Da(){return Pe(),Ns()}function Qs(){return pb(te())&&En(Eo)}function Sc(){return te()===23||te()===19||te()===42||te()===26||pt()}function mc(){return te()===23||pt()}function Hs(){return Pe(),te()===86||te()===100||te()===120||te()===60||te()===128&&wt(dp)||te()===134&&wt(Zf)}function Pl(ee,ke){if(rl(ee))return!0;switch(ee){case 0:case 1:case 3:return!(te()===27&&ke)&&Nv();case 2:return te()===84||te()===90;case 4:return wt(Dm);case 5:return wt(mA)||te()===27&&!ke;case 6:return te()===23||pt();case 12:switch(te()){case 23:case 42:case 26:case 25:return!0;default:return pt()}case 18:return pt();case 9:return te()===23||te()===26||pt();case 24:return qt();case 7:return te()===19?wt(vh):ke?kn()&&!ze():lp()&&!ze();case 8:return Hx();case 10:return te()===28||te()===26||Hx();case 19:return te()===103||te()===87||kn();case 15:switch(te()){case 28:case 25:return!0}case 11:return te()===26||Jd();case 16:return mt(!1);case 17:return mt(!0);case 20:case 21:return te()===28||qb();case 22:return hA();case 23:return te()===161&&wt(Fg)?!1:te()===11?!0:Xu(te());case 13:return Xu(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 vh(){if(C.assert(te()===19),Pe()===20){const ee=Pe();return ee===28||ee===19||ee===96||ee===119}return!0}function Pd(){return Pe(),kn()}function nf(){return Pe(),Xu(te())}function op(){return Pe(),bee(te())}function ze(){return te()===119||te()===96?wt(Jt):!1}function Jt(){return Pe(),Jd()}function tr(){return Pe(),qb()}function yo(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 Za();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(Fz);default:return!1}}function Za(){return!!(Lo()||xu(te())||te()===39)}function es(){C.assert(cn,"Missing parsing context");for(let ee=0;ee<26;ee++)if(cn&1<=0)}function bh(ee){return ee===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tf(){const ee=qa([],B());return ee.isMissingList=!0,ee}function f_(ee){return!!ee.isMissingList}function oe(ee,ke,rt,Pt){if(ln(rt)){const nn=Xc(ee,ke);return ln(Pt),nn}return Tf()}function ut(ee,ke){const rt=B();let Pt=ee?Ee(ke):Fs(ke);for(;uo(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()&&Xu(te())&&wt(zx))return As(80,!0,f.Identifier_expected);if(te()===81){const Pt=Dr();return ke?Pt:As(80,!0,f.Identifier_expected)}return ee?rt?Ee():Y():Fs()}function On(ee){const ke=B(),rt=[];let Pt;do Pt=Ve(ee),rt.push(Pt);while(Pt.literal.kind===17);return qa(rt,ke)}function ar(ee){const ke=B();return Zt(h.createTemplateExpression(Wn(ee),On(ee)),ke)}function ti(){const ee=B();return Zt(h.createTemplateLiteralType(Wn(!1),Ti()),ee)}function Ti(){const ee=B(),ke=[];let rt;do rt=$i(),ke.push(rt);while(rt.literal.kind===17);return qa(ke,ee)}function $i(){const ee=B();return Zt(h.createTemplateLiteralTypeSpan(ul(),z(!1)),ee)}function z(ee){return te()===20?(Jn(ee),vo()):$s(18,f._0_expected,ga(20))}function Ve(ee){const ke=B();return Zt(h.createTemplateSpan(Pn(Iu),z(ee)),ke)}function kt(){return Ao(te())}function Wn(ee){!ee&&t.getTokenFlags()&26656&&Jn(!1);const ke=Ao(te());return C.assert(ke.kind===16,"Template head has wrong token kind"),ke}function vo(){const ee=Ao(te());return C.assert(ee.kind===17||ee.kind===18,"Template fragment has wrong token kind"),ee}function ta(ee){const ke=ee===15||ee===18,rt=t.getTokenText();return rt.substring(1,rt.length-(t.isUnterminated()?0:ke?1:2))}function Ao(ee){const ke=B(),rt=db(ee)?h.createTemplateLiteralLikeNode(ee,t.getTokenValue(),ta(ee),t.getTokenFlags()&7176):ee===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):ee===11?A(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):ON(ee)?R(ee,t.getTokenValue()):C.fail();return t.hasExtendedUnicodeEscape()&&(rt.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(rt.isUnterminated=!0),Pe(),Zt(rt,ke)}function Vo(){return ut(!0,f.Type_expected)}function hl(){if(!t.hasPrecedingLineBreak()&&ft()===30)return oe(20,ul,30,32)}function Ca(){const ee=B();return Zt(h.createTypeReferenceNode(Vo(),hl()),ee)}function cd(ee){switch(ee.kind){case 184:return Ol(ee.typeName);case 185:case 186:{const{parameters:ke,type:rt}=ee;return f_(ke)||cd(rt)}case 197:return cd(ee.type);default:return!1}}function Up(ee){return Pe(),Zt(h.createTypePredicateNode(void 0,ee,ul()),ee.pos)}function Sf(){const ee=B();return Pe(),Zt(h.createThisTypeNode(),ee)}function Yf(){const ee=B();return Pe(),Zt(h.createJSDocAllType(),ee)}function Sy(){const ee=B();return Pe(),Zt(h.createJSDocNonNullableType(cE(),!1),ee)}function Tv(){const ee=B();return Pe(),te()===28||te()===20||te()===22||te()===32||te()===64||te()===52?Zt(h.createJSDocUnknownType(),ee):Zt(h.createJSDocNullableType(ul(),!1),ee)}function Bu(){const ee=B(),ke=Ae();if(En(Kx)){const rt=_i(36),Pt=cr(59,!1);return Pr(Zt(h.createJSDocFunctionType(rt,Pt),ee),ke)}return Zt(h.createTypeReferenceNode(Ee(),void 0),ee)}function j_(){const ee=B();let ke;return(te()===110||te()===105)&&(ke=Ee(),ln(59)),Zt(h.createParameterDeclaration(void 0,void 0,ke,void 0,Th(),void 0),ee)}function Th(){t.setSkipJsDocLeadingAsterisks(!0);const ee=B();if(uo(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=uo(26);let rt=xy();return t.setSkipJsDocLeadingAsterisks(!1),ke&&(rt=Zt(h.createJSDocVariadicType(rt),ee)),te()===64?(Pe(),Zt(h.createJSDocOptionalType(rt),ee)):rt}function xm(){const ee=B();ln(114);const ke=ut(!0),rt=t.hasPrecedingLineBreak()?void 0:bl();return Zt(h.createTypeQueryNode(ke,rt),ee)}function Hb(){const ee=B(),ke=wi(!1,!0),rt=Fs();let Pt,nn;uo(96)&&(qb()||!Jd()?Pt=ul():nn=N0());const _n=uo(64)?ul():void 0,ei=h.createTypeParameterDeclaration(ke,rt,Pt,_n);return ei.expression=nn,Zt(ei,ee)}function Xe(){if(te()===30)return oe(19,Hb,30,32)}function mt(ee){return te()===26||Hx()||pb(te())||te()===60||qb(!ee)}function Yt(ee){const ke=Mv(f.Private_identifiers_cannot_be_used_as_parameters);return K2(ke)===0&&!vt(ee)&&pb(te())&&Pe(),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=Ae(),nn=ee?ne(()=>wi(!0)):Fe(()=>wi(!0));if(te()===110){const pr=h.createParameterDeclaration(nn,void 0,lc(!0),void 0,qd(),void 0),Si=Ac(nn);return Si&&Nt(Si,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,Yt(nn),Go(58),qd(),J_()),rt),Pt);return gt=_n,wr}function cr(ee,ke){if(Oi(ee,ke))return ot(xy)}function Oi(ee,ke){return ee===39?(ln(ee),!0):uo(59)?!0:ke&&te()===39?(Kt(f._0_expected,ga(59)),Pe(),!0):!1}function Ro(ee,ke){const rt=Ue(),Pt=nt();ri(!!(ee&1)),Hi(!!(ee&2));const nn=ee&32?Xc(17,j_):Xc(16,()=>ke?Qn(Pt):Lr(Pt));return ri(rt),Hi(Pt),nn}function _i(ee){if(!ln(21))return Tf();const ke=Ro(ee,!0);return ln(22),ke}function Do(){uo(28)||is()}function Qi(ee){const ke=B(),rt=Ae();ee===181&&ln(105);const Pt=Xe(),nn=_i(4),_n=cr(59,!0);Do();const ei=ee===180?h.createCallSignature(Pt,nn,_n):h.createConstructSignature(Pt,nn,_n);return Pr(Zt(ei,ke),rt)}function _l(){return te()===23&&wt(sp)}function sp(){if(Pe(),te()===26||te()===24)return!0;if(pb(te())){if(Pe(),kn())return!0}else if(kn())Pe();else return!1;return te()===59||te()===28?!0:te()!==58?!1:(Pe(),te()===59||te()===28||te()===24)}function Rm(ee,ke,rt){const Pt=oe(16,()=>Qn(!1),23,24),nn=qd();Do();const _n=h.createIndexSignature(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function Td(ee,ke,rt){const Pt=ur(),nn=Go(58);let _n;if(te()===21||te()===30){const ei=Xe(),wr=_i(4),pr=cr(59,!0);_n=h.createMethodSignature(rt,Pt,nn,ei,wr,pr)}else{const ei=qd();_n=h.createPropertySignature(rt,Pt,nn,ei),te()===64&&(_n.initializer=J_())}return Do(),Pr(Zt(_n,ee),ke)}function Dm(){if(te()===21||te()===30||te()===139||te()===153)return!0;let ee=!1;for(;pb(te());)ee=!0,Pe();return te()===23?!0:(pt()&&(ee=!0,Pe()),ee?te()===21||te()===30||te()===58||te()===59||te()===28||Lo():!1)}function Hp(){if(te()===21||te()===30)return Qi(180);if(te()===105&&wt(b0))return Qi(181);const ee=B(),ke=Ae(),rt=wi(!1);return zn(139)?B0(ee,ke,rt,178,4):zn(153)?B0(ee,ke,rt,179,4):_l()?Rm(ee,ke,rt):Td(ee,ke,rt)}function b0(){return Pe(),te()===21||te()===30}function m_(){return Pe()===25}function U_(){switch(Pe()){case 21:case 30:case 25:return!0}return!1}function T0(){const ee=B();return Zt(h.createTypeLiteralNode(H_()),ee)}function H_(){let ee;return ln(19)?(ee=Va(4,Hp),ln(20)):ee=Tf(),ee}function TC(){return Pe(),te()===40||te()===41?Pe()===148:(te()===148&&Pe(),te()===23&&Pd()&&Pe()===103)}function tL(){const ee=B(),ke=Ee();ln(103);const rt=ul();return Zt(h.createTypeParameterDeclaration(void 0,ke,rt,void 0),ee)}function SC(){const ee=B();ln(19);let ke;(te()===148||te()===40||te()===41)&&(ke=ec(),ke.kind!==148&&ln(148)),ln(23);const rt=tL(),Pt=uo(130)?ul():void 0;ln(24);let nn;(te()===58||te()===40||te()===41)&&(nn=ec(),nn.kind!==58&&ln(58));const _n=qd();is();const ei=Va(4,Hp);return ln(20),Zt(h.createMappedTypeNode(ke,rt,Pt,nn,_n,ei),ee)}function Pg(){const ee=B();if(uo(26))return Zt(h.createRestTypeNode(ul()),ee);const ke=ul();if(RD(ke)&&ke.pos===ke.type.pos){const rt=h.createOptionalTypeNode(ke.type);return bt(rt,ke),rt.flags=ke.flags,rt}return ke}function S0(){return Pe()===59||te()===58&&Pe()===59}function J1(){return te()===26?Xu(Pe())&&S0():Xu(te())&&S0()}function Sv(){if(wt(J1)){const ee=B(),ke=Ae(),rt=Go(26),Pt=Ee(),nn=Go(58);ln(59);const _n=Pg(),ei=h.createNamedTupleMember(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}return Pg()}function K1(){const ee=B();return Zt(h.createTupleTypeNode(oe(21,Sv,23,24)),ee)}function Dx(){const ee=B();ln(21);const ke=ul();return ln(22),Zt(h.createParenthesizedType(ke),ee)}function nL(){let ee;if(te()===128){const ke=B();Pe();const rt=Zt(k(128),ke);ee=qa([rt],ke)}return ee}function X1(){const ee=B(),ke=Ae(),rt=nL(),Pt=uo(105);C.assert(!rt||Pt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const nn=Xe(),_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 Cx(){const ee=ec();return te()===25?void 0:ee}function E0(ee){const ke=B();ee&&Pe();let rt=te()===112||te()===97||te()===106?ec():Ao(te());return ee&&(rt=Zt(h.createPrefixUnaryExpression(41,rt),ke)),Zt(h.createLiteralTypeNode(rt),ke)}function EC(){return Pe(),te()===102}function Y1(){be|=4194304;const ee=B(),ke=uo(114);ln(102),ln(21);const rt=ul();let Pt;if(uo(28)){const ei=t.getTokenStart();ln(19);const wr=te();if(wr===118||wr===132?Pe():Kt(f._0_expected,ga(118)),ln(59),Pt=aT(wr,!0),uo(28),!ln(20)){const pr=tl(Re);pr&&pr.code===f._0_expected.code&&pa(pr,CI(re,Ne,ei,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ln(22);const nn=uo(25)?Vo():void 0,_n=hl();return Zt(h.createImportTypeNode(rt,Pt,nn,_n,ke),ee)}function Nx(){return Pe(),te()===9||te()===10}function cE(){switch(te()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return En(Cx)||Ca();case 67:t.reScanAsteriskEqualsToken();case 42:return Yf();case 61:t.reScanQuestionToken();case 58:return Tv();case 100:return Bu();case 54:return Sy();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return E0();case 41:return wt(Nx)?E0(!0):Ca();case 116:return ec();case 110:{const ee=Sf();return te()===142&&!t.hasPrecedingLineBreak()?Up(ee):ee}case 114:return wt(EC)?Y1():xm();case 19:return wt(TC)?SC():T0();case 23:return K1();case 21:return Dx();case 102:return Y1();case 131:return wt(zx)?q_():Ca();case 16:return ti();default:return Ca()}}function qb(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(Nx);case 21:return!ee&&wt(Mx);default:return kn()}}function Mx(){return Pe(),te()===22||mt(!1)||qb()}function Px(){const ee=B();let ke=cE();for(;!t.hasPrecedingLineBreak();)switch(te()){case 54:Pe(),ke=Zt(h.createJSDocNonNullableType(ke,!0),ee);break;case 58:if(wt(tr))return ke;Pe(),ke=Zt(h.createJSDocNullableType(ke,!0),ee);break;case 23:if(ln(23),qb()){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 dE(ee){const ke=B();return ln(ee),Zt(h.createTypeOperatorNode(ee,Ay()),ke)}function Jb(){if(uo(96)){const ee=Ft(ul);if(It()||te()!==58)return ee}}function Ev(){const ee=B(),ke=Fs(),rt=En(Jb),Pt=h.createTypeParameterDeclaration(void 0,ke,rt);return Zt(Pt,ee)}function Ey(){const ee=B();return ln(140),Zt(h.createInferTypeNode(Ev()),ee)}function Ay(){const ee=te();switch(ee){case 143:case 158:case 148:return dE(ee);case 140:return Ey()}return ot(Px)}function Iy(ee){if(ns()){const ke=X1();let rt;return O_(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 Kb(ee,ke,rt){const Pt=B(),nn=ee===52,_n=uo(ee);let ei=_n&&Iy(nn)||ke();if(te()===ee||_n){const wr=[ei];for(;uo(ee);)wr.push(Iy(nn)||ke());ei=Zt(rt(qa(wr,Pt)),Pt)}return ei}function A0(){return Kb(51,Ay,h.createIntersectionTypeNode)}function $1(){return Kb(52,A0,h.createUnionTypeNode)}function I0(){return Pe(),te()===105}function ns(){return te()===30||te()===21&&wt(AC)?!0:te()===105||te()===128&&wt(I0)}function Q1(){if(pb(te())&&wi(!1),kn()||te()===110)return Pe(),!0;if(te()===23||te()===19){const ee=Re.length;return Mv(),ee===Re.length}return!1}function AC(){return Pe(),!!(te()===22||te()===26||Q1()&&(te()===59||te()===28||te()===58||te()===64||te()===22&&(Pe(),te()===39)))}function xy(){const ee=B(),ke=kn()&&En(Ry),rt=ul();return ke?Zt(h.createTypePredicateNode(void 0,ke,rt),ee):rt}function Ry(){const ee=Fs();if(te()===142&&!t.hasPrecedingLineBreak())return Pe(),ee}function q_(){const ee=B(),ke=$s(131),rt=te()===110?Sf():Fs(),Pt=uo(142)?ul():void 0;return Zt(h.createTypePredicateNode(ke,rt,Pt),ee)}function ul(){if(Kn&81920)return $o(81920,ul);if(ns())return X1();const ee=B(),ke=$1();if(!It()&&!t.hasPrecedingLineBreak()&&uo(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 qd(){return uo(59)?ul():void 0}function lp(){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(U_);default:return kn()}}function Jd(){if(lp())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 Nm()?!0:kn()}}function x0(){return te()!==19&&te()!==100&&te()!==86&&te()!==60&&Jd()}function Iu(){const ee=Ot();ee&&ai(!1);const ke=B();let rt=Gu(!0),Pt;for(;Pt=Go(28);)rt=ja(rt,Pt,Gu(!0),ke);return ee&&ai(!0),rt}function J_(){return uo(64)?Gu(!0):void 0}function Gu(ee){if(Cm())return R0();const ke=rL(ee)||Qe(ee);if(ke)return ke;const rt=B(),Pt=Ae(),nn=Xb(0);return nn.kind===80&&te()===39?D0(rt,nn,ee,Pt,void 0):$u(nn)&&ly(gr())?ja(nn,ec(),Gu(ee),rt):Iv(nn,rt,ee)}function Cm(){return te()===127?Ue()?!0:wt(_E):!1}function Jm(){return Pe(),!t.hasPrecedingLineBreak()&&kn()}function R0(){const ee=B();return Pe(),!t.hasPrecedingLineBreak()&&(te()===42||Jd())?Zt(h.createYieldExpression(Go(42),Gu(!0)),ee):Zt(h.createYieldExpression(void 0,void 0),ee)}function D0(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=qa([_n],_n.pos,_n.end),wr=$s(39),pr=Km(!!nn,rt),Si=h.createArrowFunction(nn,void 0,ei,void 0,wr,pr);return Pr(Zt(Si,ee),Pt)}function rL(ee){const ke=IC();if(ke!==0)return ke===1?Lg(!0,!0):En(()=>uE(ee))}function IC(){return te()===21||te()===30||te()===134?wt(Av):te()===39?1:0}function Av(){if(te()===134&&(Pe(),t.hasPrecedingLineBreak()||te()!==21&&te()!==30))return 0;const ee=te(),ke=Pe();if(ee===21){if(ke===22)switch(Pe()){case 39:case 59:case 19:return 1;default:return 0}if(ke===23||ke===19)return 2;if(ke===26)return 1;if(pb(ke)&&ke!==134&&wt(Pd))return Pe()===130?0:1;if(!kn()&&ke!==110)return 0;switch(Pe()){case 59:return 1;case 58:return Pe(),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),!kn()&&te()!==87?0:ce===1?wt(()=>{uo(87);const Pt=Pe();if(Pt===96)switch(Pe()){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 uE(ee){const ke=t.getTokenStart();if(gn!=null&&gn.has(ke))return;const rt=Lg(!1,ee);return rt||(gn||(gn=new Set)).add(ke),rt}function Qe(ee){if(te()===134&&wt(Z1)===1){const ke=B(),rt=Ae(),Pt=Io(),nn=Xb(0);return D0(ke,nn,ee,rt,Pt)}}function Z1(){if(te()===134){if(Pe(),t.hasPrecedingLineBreak()||te()===39)return 0;const ee=Xb(0);if(!t.hasPrecedingLineBreak()&&ee.kind===80&&te()===39)return 1}return 0}function Lg(ee,ke){const rt=B(),Pt=Ae(),nn=Io(),_n=vt(nn,FM)?2:0,ei=Xe();let wr;if(ln(21)){if(ee)wr=Ro(_n,ee);else{const kv=Ro(_n,ee);if(!kv)return;wr=kv}if(!ln(22)&&!ee)return}else{if(!ee)return;wr=Tf()}const pr=te()===59,Si=cr(59,!1);if(Si&&!ee&&cd(Si))return;let ao=Si;for(;(ao==null?void 0:ao.kind)===197;)ao=ao.type;const zs=ao&&DD(ao);if(!ee&&te()!==39&&(zs||te()!==19))return;const Is=te(),as=$s(39),em=Is===39||Is===19?Km(vt(nn,FM),ke):Fs();if(!ke&&pr&&te()!==59)return;const xf=h.createArrowFunction(nn,ei,wr,Si,as,em);return Pr(Zt(xf,rt),Pt)}function Km(ee,ke){if(te()===19)return nT(ee?2:0);if(te()!==27&&te()!==100&&te()!==86&&Nv()&&!x0())return nT(16|(ee?2:0));const rt=Ue();ri(!1);const Pt=gt;gt=!1;const nn=ee?ne(()=>Gu(ke)):Fe(()=>Gu(ke));return gt=Pt,ri(rt),nn}function Iv(ee,ke,rt){const Pt=Go(58);if(!Pt)return ee;let nn;return Zt(h.createConditionalExpression(ee,Pt,$o(r,()=>Gu(!1)),nn=$s(59),mm(nn)?Gu(rt):As(80,!1,f._0_expected,ga(59))),ke)}function Xb(ee){const ke=B(),rt=N0();return Sh(ee,rt,ke)}function xu(ee){return ee===103||ee===165}function Sh(ee,ke,rt){for(;;){gr();const Pt=Mk(te());if(!(te()===43?Pt>=ee:Pt>ee)||te()===103&&Rt())break;if(te()===130||te()===152){if(t.hasPrecedingLineBreak())break;{const _n=te();Pe(),ke=_n===152?C0(ke,ul()):Ef(ke,ul())}}else ke=ja(ke,ec(),Xb(Pt),rt)}return ke}function Nm(){return Rt()&&te()===103?!1:Mk(te())>0}function C0(ee,ke){return Zt(h.createSatisfiesExpression(ee,ke),ee.pos)}function ja(ee,ke,rt,Pt){return Zt(h.createBinaryExpression(ee,ke,rt),Pt)}function Ef(ee,ke){return Zt(h.createAsExpression(ee,ke),ee.pos)}function xv(){const ee=B();return Zt(h.createPrefixUnaryExpression(te(),Xt(Rv)),ee)}function eA(){const ee=B();return Zt(h.createDeleteExpression(Xt(Rv)),ee)}function Dy(){const ee=B();return Zt(h.createTypeOfExpression(Xt(Rv)),ee)}function pE(){const ee=B();return Zt(h.createVoidExpression(Xt(Rv)),ee)}function $f(){return te()===135?nt()?!0:wt(_E):!1}function kg(){const ee=B();return Zt(h.createAwaitExpression(Xt(Rv)),ee)}function N0(){if(h_()){const rt=B(),Pt=fE();return te()===43?Sh(Mk(te()),Pt,rt):Pt}const ee=te(),ke=Rv();if(te()===43){const rt=ka(Ne,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(l6(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,ga(ee)))}return ke}function Rv(){switch(te()){case 40:case 41:case 55:case 54:return xv();case 91:return eA();case 114:return Dy();case 116:return pE();case 30:return ce===1?Sd(!0,void 0,void 0,!0):du();case 135:if($f())return kg();default:return fE()}}function h_(){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 fE(){if(te()===46||te()===47){const ke=B();return Zt(h.createPrefixUnaryExpression(te(),Xt(M0)),ke)}else if(ce===1&&te()===30&&wt(op))return Sd(!0);const ee=M0();if(C.assert($u(ee)),(te()===46||te()===47)&&!t.hasPrecedingLineBreak()){const ke=te();return Pe(),Zt(h.createPostfixUnaryExpression(ee,ke),ee.pos)}return ee}function M0(){const ee=B();let ke;return te()===102?wt(b0)?(be|=4194304,ke=ec()):wt(m_)?(Pe(),Pe(),ke=Zt(h.createMetaProperty(102,Ee()),ee),ke.name.escapedText==="defer"?(te()===21||te()===30)&&(be|=4194304):be|=8388608):ke=Jr():ke=te()===108?Vr():Jr(),cp(ee,ke)}function Jr(){const ee=B(),ke=L0();return Af(ee,ke,!0)}function Vr(){const ee=B();let ke=ec();if(te()===30){const rt=B(),Pt=En(P0);Pt!==void 0&&(Oe(rt,B(),f.super_may_not_use_type_arguments),Xm()||(ke=h.createExpressionWithTypeArguments(ke,Pt)))}return te()===21||te()===25||te()===23?ke:($s(25,f.super_must_be_followed_by_an_argument_list_or_member_access),Zt(G(ke,an(!0,!0,!0)),ee))}function Sd(ee,ke,rt,Pt=!1){const nn=B(),_n=iL(ee);let ei;if(_n.kind===287){let wr=mE(_n),pr;const Si=wr[wr.length-1];if((Si==null?void 0:Si.kind)===285&&!a0(Si.openingElement.tagName,Si.closingElement.tagName)&&a0(_n.tagName,Si.closingElement.tagName)){const ao=Si.children.end,zs=Zt(h.createJsxElement(Si.openingElement,Si.children,Zt(h.createJsxClosingElement(Zt(N(""),ao,ao)),ao,ao)),Si.openingElement.pos,ao);wr=qa([...wr.slice(0,wr.length-1),zs],wr.pos,ao),pr=Si.closingElement}else pr=RC(_n,ee),a0(_n.tagName,pr.tagName)||(rt&&ph(rt)&&a0(pr.tagName,rt.tagName)?Nt(_n.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,jN(Ne,_n.tagName)):Nt(pr.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,jN(Ne,_n.tagName)));ei=Zt(h.createJsxElement(_n,wr,pr),nn)}else _n.kind===290?ei=Zt(h.createJsxFragment(_n,mE(_n),Lx(ee)),nn):(C.assert(_n.kind===286),ei=_n);if(!Pt&&ee&&te()===30){const wr=typeof ke>"u"?ei.pos:ke,pr=En(()=>Sd(!0,wr));if(pr){const Si=As(28,!1);return HV(Si,pr.pos,0),Oe(ka(Ne,wr),pr.end,f.JSX_expressions_must_have_one_parent_element),Zt(h.createBinaryExpression(ei,Si,pr),nn)}}return ei}function tA(){const ee=B(),ke=h.createJsxText(t.getTokenValue(),Ge===13);return Ge=t.scanJsxToken(),Zt(ke,ee)}function Cy(ee,ke){switch(ke){case 1:if(Um(ee))Nt(ee,f.JSX_fragment_has_no_corresponding_closing_tag);else{const rt=ee.tagName,Pt=Math.min(ka(Ne,rt.pos),rt.end);Oe(Pt,rt.end,f.JSX_element_0_has_no_corresponding_closing_tag,jN(Ne,ee.tagName))}return;case 31:case 7:return;case 12:case 13:return tA();case 19:return Wo(!1);case 30:return Sd(!1,void 0,ee);default:return C.assertNever(ke)}}function mE(ee){const ke=[],rt=B(),Pt=cn;for(cn|=16384;;){const nn=Cy(ee,Ge=t.reScanJsxToken());if(!nn||(ke.push(nn),ph(ee)&&(nn==null?void 0:nn.kind)===285&&!a0(nn.openingElement.tagName,nn.closingElement.tagName)&&a0(ee.tagName,nn.closingElement.tagName)))break}return cn=Pt,qa(ke,rt)}function xC(){const ee=B();return Zt(h.createJsxAttributes(Va(13,vp)),ee)}function iL(ee){const ke=B();if(ln(30),te()===32)return Qt(),Zt(h.createJsxOpeningFragment(),ke);const rt=zr(),Pt=Kn&524288?void 0:bl(),nn=xC();let _n;return te()===32?(Qt(),_n=h.createJsxOpeningElement(rt,Pt,nn)):(ln(44),ln(32,void 0,!1)&&(ee?Pe():Qt()),_n=h.createJsxSelfClosingElement(rt,Pt,nn)),Zt(_n,ke)}function zr(){const ee=B(),ke=Ru();if(fh(ke))return ke;let rt=ke;for(;uo(25);)rt=Zt(G(rt,an(!0,!1,!1)),ee);return rt}function Ru(){const ee=B();jt();const ke=te()===110,rt=Y();return uo(59)?(jt(),Zt(h.createJsxNamespacedName(rt,Y()),ee)):ke?Zt(h.createToken(110),ee):rt}function Wo(ee){const ke=B();if(!ln(19))return;let rt,Pt;return te()!==20&&(ee||(rt=Go(26)),Pt=Iu()),ee?ln(20):ln(20,void 0,!1)&&Qt(),Zt(h.createJsxExpression(rt,Pt),ke)}function vp(){if(te()===19)return Mr();const ee=B();return Zt(h.createJsxAttribute(Yb(),nA()),ee)}function nA(){if(te()===64){if(In()===11)return kt();if(te()===19)return Wo(!0);if(te()===30)return Sd(!0);Kt(f.or_JSX_element_expected)}}function Yb(){const ee=B();jt();const ke=Y();return uo(59)?(jt(),Zt(h.createJsxNamespacedName(ke,Y()),ee)):ke}function Mr(){const ee=B();ln(19),ln(26);const ke=Iu();return ln(20),Zt(h.createJsxSpreadAttribute(ke),ee)}function RC(ee,ke){const rt=B();ln(31);const Pt=zr();return ln(32,void 0,!1)&&(ke||!a0(ee.tagName,Pt)?Pe():Qt()),Zt(h.createJsxClosingElement(Pt),rt)}function Lx(ee){const ke=B();return ln(31),ln(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(ee?Pe():Qt()),Zt(h.createJsxJsxClosingFragment(),ke)}function du(){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=Rv();return Zt(h.createTypeAssertion(ke,rt),ee)}function K_(){return Pe(),Xu(te())||te()===23||Xm()}function Eh(){return te()===29&&wt(K_)}function $b(ee){if(ee.flags&64)return!0;if(XI(ee)){let ke=ee.expression;for(;XI(ke)&&!(ke.flags&64);)ke=ke.expression;if(ke.flags&64){for(;XI(ee);)ee.flags|=64,ee=ee.expression;return!0}}return!1}function rA(ee,ke,rt){const Pt=an(!0,!0,!0),nn=rt||$b(ke),_n=nn?j(ke,rt,Pt):G(ke,Pt);if(nn&&eo(_n.name)&&Nt(_n.name,f.An_optional_chain_cannot_contain_private_identifiers),uy(ke)&&ke.typeArguments){const ei=ke.typeArguments.pos-1,wr=ka(Ne,ke.typeArguments.end)+1;Oe(ei,wr,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Zt(_n,ee)}function Qb(ee,ke,rt){let Pt;if(te()===24)Pt=As(80,!0,f.An_element_access_expression_should_take_an_argument);else{const _n=Pn(Iu);uf(_n)&&(_n.text=Hl(_n.text)),Pt=_n}ln(24);const nn=rt||$b(ke)?Z(ke,rt,Pt):J(ke,Pt);return Zt(nn,ee)}function Af(ee,ke,rt){for(;;){let Pt,nn=!1;if(rt&&Eh()?(Pt=$s(29),nn=Xu(te())):nn=uo(25),nn){ke=rA(ee,ke,Pt);continue}if((Pt||!Ot())&&uo(23)){ke=Qb(ee,ke,Pt);continue}if(Xm()){ke=!Pt&&ke.kind===234?Qf(ee,ke.expression,Pt,ke.typeArguments):Qf(ee,ke,Pt,void 0);continue}if(!Pt){if(te()===54&&!t.hasPrecedingLineBreak()){Pe(),ke=Zt(h.createNonNullExpression(ke),ee);continue}const _n=En(P0);if(_n){ke=Zt(h.createExpressionWithTypeArguments(ke,_n),ee);continue}}return ke}}function Xm(){return te()===15||te()===16}function Qf(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 cp(ee,ke){for(;;){ke=Af(ee,ke,!0);let rt;const Pt=Go(29);if(Pt&&(rt=En(P0),Xm())){ke=Qf(ee,ke,Pt,rt);continue}if(rt||te()===21){!Pt&&ke.kind===234&&(rt=ke.typeArguments,ke=ke.expression);const nn=Dv(),_n=Pt||$b(ke)?ye(ke,Pt,rt,nn):q(ke,rt,nn);ke=Zt(_n,ee);continue}if(Pt){const nn=As(80,!1,f.Identifier_expected);ke=Zt(j(ke,Pt,nn),ee)}break}return ke}function Dv(){ln(21);const ee=Xc(11,__);return ln(22),ee}function P0(){if(Kn&524288||ft()!==30)return;Pe();const ee=Xc(20,ul);if(gr()===32)return Pe(),ee&&kx()?ee:void 0}function kx(){switch(te()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Nm()||!Jd()}function L0(){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 ec();case 21:return Zb();case 23:return eT();case 19:return Cv();case 134:if(!wt(Zf))break;return tT();case 60:return Ja();case 86:return _c();case 100:return tT();case 105:return My();case 44:case 69:if(nr()===14)return kt();break;case 16:return ar(!1);case 81:return Dr()}return Fs(f.Expression_expected)}function Zb(){const ee=B(),ke=Ae();ln(21);const rt=Pn(Iu);return ln(22),Pr(Zt(K(rt),ee),ke)}function wx(){const ee=B();ln(26);const ke=Gu(!0);return Zt(h.createSpreadElement(ke),ee)}function Ny(){return te()===26?wx():te()===28?Zt(h.createOmittedExpression(),B()):Gu(!0)}function __(){return $o(r,Ny)}function eT(){const ee=B(),ke=t.getTokenStart(),rt=ln(23),Pt=t.hasPrecedingLineBreak(),nn=Xc(15,Ny);return Ps(23,24,rt,ke),Zt(F(nn,Pt),ee)}function k0(){const ee=B(),ke=Ae();if(Go(26)){const ao=Gu(!0);return Pr(Zt(h.createSpreadAssignment(ao),ee),ke)}const rt=wi(!0);if(zn(139))return B0(ee,ke,rt,178,0);if(zn(153))return B0(ee,ke,rt,179,0);const Pt=Go(42),nn=kn(),_n=ur(),ei=Go(58),wr=Go(54);if(Pt||te()===21||te()===30)return z0(ee,ke,rt,Pt,_n,ei,wr);let pr;if(nn&&te()!==59){const ao=Go(64),zs=ao?Pn(()=>Gu(!0)):void 0;pr=h.createShorthandPropertyAssignment(_n,zs),pr.equalsToken=ao}else{ln(59);const ao=Pn(()=>Gu(!0));pr=h.createPropertyAssignment(_n,ao)}return pr.modifiers=rt,pr.questionToken=ei,pr.exclamationToken=wr,Pr(Zt(pr,ee),ke)}function Cv(){const ee=B(),ke=t.getTokenStart(),rt=ln(19),Pt=t.hasPrecedingLineBreak(),nn=Xc(12,k0,!0);return Ps(19,20,rt,ke),Zt(O(nn,Pt),ee)}function tT(){const ee=Ot();ai(!1);const ke=B(),rt=Ae(),Pt=wi(!1);ln(100);const nn=Go(42),_n=nn?1:0,ei=vt(Pt,FM)?2:0,wr=_n&&ei?it(Ym):_n?le(Ym):ei?ne(Ym):Ym(),pr=Xe(),Si=_i(_n|ei),ao=cr(59,!1),zs=nT(_n|ei);ai(ee);const Is=h.createFunctionExpression(Pt,nn,wr,pr,Si,ao,zs);return Pr(Zt(Is,ke),rt)}function Ym(){return xn()?vd():void 0}function My(){const ee=B();if(ln(105),uo(25)){const _n=Ee();return Zt(h.createMetaProperty(105,_n),ee)}const ke=B();let rt=Af(ke,L0(),!1),Pt;rt.kind===234&&(Pt=rt.typeArguments,rt=rt.expression),te()===29&&Kt(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,jN(Ne,rt));const nn=te()===21?Dv():void 0;return Zt(ie(rt,Pt,nn),ee)}function wg(ee,ke){const rt=B(),Pt=Ae(),nn=t.getTokenStart(),_n=ln(19,ke);if(_n||ee){const ei=t.hasPrecedingLineBreak(),wr=Va(1,bp);Ps(19,20,_n,nn);const pr=Pr(Zt(pe(wr,ei),rt),Pt);return te()===64&&(Kt(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),Pe()),pr}else{const ei=Tf();return Pr(Zt(pe(ei,void 0),rt),Pt)}}function nT(ee,ke){const rt=Ue();ri(!!(ee&1));const Pt=nt();Hi(!!(ee&2));const nn=gt;gt=!1;const _n=Ot();_n&&ai(!1);const ei=wg(!!(ee&16),ke);return _n&&ai(!0),gt=nn,ri(rt),Hi(Pt),ei}function dd(){const ee=B(),ke=Ae();return ln(27),Pr(Zt(h.createEmptyStatement(),ee),ke)}function hE(){const ee=B(),ke=Ae();ln(101);const rt=t.getTokenStart(),Pt=ln(21),nn=Pn(Iu);Ps(21,22,Pt,rt);const _n=bp(),ei=uo(93)?bp():void 0;return Pr(Zt(ve(nn,_n,ei),ee),ke)}function Og(){const ee=B(),ke=Ae();ln(92);const rt=bp();ln(117);const Pt=t.getTokenStart(),nn=ln(21),_n=Pn(Iu);return Ps(21,22,nn,Pt),uo(27),Pr(Zt(h.createDoStatement(rt,_n),ee),ke)}function w0(){const ee=B(),ke=Ae();ln(117);const rt=t.getTokenStart(),Pt=ln(21),nn=Pn(Iu);Ps(21,22,Pt,rt);const _n=bp();return Pr(Zt(xe(nn,_n),ee),ke)}function iA(){const ee=B(),ke=Ae();ln(99);const rt=Go(135);ln(21);let Pt;te()!==27&&(te()===115||te()===121||te()===87||te()===160&&wt(Gl)||te()===135&&wt(Gx)?Pt=uA(!0):Pt=Uo(Iu));let nn;if(rt?ln(165):uo(165)){const _n=Pn(()=>Gu(!0));ln(22),nn=Ce(rt,Pt,_n,bp())}else if(uo(103)){const _n=Pn(Iu);ln(22),nn=h.createForInStatement(Pt,_n,bp())}else{ln(27);const _n=te()!==27&&te()!==22?Pn(Iu):void 0;ln(27);const ei=te()!==22?Pn(Iu):void 0;ln(22),nn=X(Pt,_n,ei,bp())}return Pr(Zt(nn,ee),ke)}function Wg(ee){const ke=B(),rt=Ae();ln(ee===253?83:88);const Pt=Lo()?void 0:Fs();is();const nn=ee===253?h.createBreakStatement(Pt):h.createContinueStatement(Pt);return Pr(Zt(nn,ke),rt)}function DC(){const ee=B(),ke=Ae();ln(107);const rt=Lo()?void 0:Pn(Iu);return is(),Pr(Zt(h.createReturnStatement(rt),ee),ke)}function Ox(){const ee=B(),ke=Ae();ln(118);const rt=t.getTokenStart(),Pt=ln(21),nn=Pn(Iu);Ps(21,22,Pt,rt);const _n=Ia(67108864,bp);return Pr(Zt(h.createWithStatement(nn,_n),ee),ke)}function Wx(){const ee=B(),ke=Ae();ln(84);const rt=Pn(Iu);ln(59);const Pt=Va(3,bp);return Pr(Zt(h.createCaseClause(rt,Pt),ee),ke)}function oL(){const ee=B();ln(90),ln(59);const ke=Va(3,bp);return Zt(h.createDefaultClause(ke),ee)}function Fx(){return te()===84?Wx():oL()}function O0(){const ee=B();ln(19);const ke=Va(2,Fx);return ln(20),Zt(h.createCaseBlock(ke),ee)}function Py(){const ee=B(),ke=Ae();ln(109),ln(21);const rt=Pn(Iu);ln(22);const Pt=O0();return Pr(Zt(h.createSwitchStatement(rt,Pt),ee),ke)}function CC(){const ee=B(),ke=Ae();ln(111);let rt=t.hasPrecedingLineBreak()?void 0:Pn(Iu);return rt===void 0&&(Wt++,rt=Zt(N(""),B())),fa()||ra(rt),Pr(Zt(h.createThrowStatement(rt),ee),ke)}function W0(){const ee=B(),ke=Ae();ln(113);const rt=wg(!1),Pt=te()===85?oA():void 0;let nn;return(!Pt||te()===98)&&(ln(98,f.catch_or_finally_expected),nn=wg(!1)),Pr(Zt(h.createTryStatement(rt,Pt,nn),ee),ke)}function oA(){const ee=B();ln(85);let ke;uo(21)?(ke=g_(),ln(22)):ke=void 0;const rt=wg(!1);return Zt(h.createCatchClause(ke,rt),ee)}function hc(){const ee=B(),ke=Ae();return ln(89),is(),Pr(Zt(h.createDebuggerStatement(),ee),ke)}function ud(){const ee=B();let ke=Ae(),rt;const Pt=te()===21,nn=Pn(Iu);return He(nn)&&uo(59)?rt=h.createLabeledStatement(nn,bp()):(fa()||ra(nn),rt=fe(nn),Pt&&(ke=!1)),Pr(Zt(rt,ee),ke)}function zx(){return Pe(),Xu(te())&&!t.hasPrecedingLineBreak()}function dp(){return Pe(),te()===86&&!t.hasPrecedingLineBreak()}function Zf(){return Pe(),te()===100&&!t.hasPrecedingLineBreak()}function _E(){return Pe(),(Xu(te())||te()===9||te()===10||te()===11)&&!t.hasPrecedingLineBreak()}function Ah(){for(;;)switch(te()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return gE();case 135:return uu();case 120:case 156:case 166:return Jm();case 144:case 145:return cA();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const ee=te();if(Pe(),t.hasPrecedingLineBreak())return!1;if(ee===138&&te()===156)return!0;continue;case 162:return Pe(),te()===19||te()===80||te()===95;case 102:return Pe(),te()===166||te()===11||te()===42||te()===19||Xu(te());case 95:let ke=Pe();if(ke===156&&(ke=wt(Pe)),ke===64||ke===42||ke===19||ke===90||ke===130||ke===60)return!0;continue;case 126:Pe();continue;default:return!1}}function rT(){return wt(Ah)}function Nv(){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 rT()||wt(U_);case 87:case 95:return rT();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 rT()||!wt(zx);default:return Jd()}}function Bx(){return Pe(),xn()||te()===19||te()===23}function aL(){return wt(Bx)}function Gl(){return aA(!0)}function NC(){return Pe(),te()===64||te()===27||te()===59}function aA(ee){return Pe(),ee&&te()===165?wt(NC):(xn()||te()===19)&&!t.hasPrecedingLineBreak()}function gE(){return wt(aA)}function Gx(ee){return Pe()===160?aA(ee):!1}function uu(){return wt(Gx)}function bp(){switch(te()){case 27:return dd();case 19:return wg(!1);case 115:return os(B(),Ae(),void 0);case 121:if(aL())return os(B(),Ae(),void 0);break;case 135:if(uu())return os(B(),Ae(),void 0);break;case 160:if(gE())return os(B(),Ae(),void 0);break;case 100:return Wr(B(),Ae(),void 0);case 86:return Kd(B(),Ae(),void 0);case 101:return hE();case 92:return Og();case 117:return w0();case 99:return iA();case 88:return Wg(252);case 83:return Wg(253);case 107:return DC();case 118:return Ox();case 109:return Py();case 111:return CC();case 113:case 85:case 98:return W0();case 89:return hc();case 60:return F0();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(rT())return F0();break}return ud()}function sA(ee){return ee.kind===138}function F0(){const ee=B(),ke=Ae(),rt=wi(!0);if(vt(rt,sA)){const nn=Tp(ee);if(nn)return nn;for(const _n of rt)_n.flags|=33554432;return Ia(33554432,()=>lA(ee,ke,rt))}else return lA(ee,ke,rt)}function Tp(ee){return Ia(33554432,()=>{const ke=rl(cn,ee);if(ke)return Ll(ke)})}function lA(ee,ke,rt){switch(te()){case 115:case 121:case 87:case 160:case 135:return os(ee,ke,rt);case 100:return Wr(ee,ke,rt);case 86:return Kd(ee,ke,rt);case 120:return Qm(ee,ke,rt);case 156:return Lv(ee,ke,rt);case 94:return Wz(ee,ke,rt);case 162:case 144:case 145:return bW(ee,ke,rt);case 102:return gA(ee,ke,rt);case 95:switch(Pe(),te()){case 90:case 64:return j0(ee,ke,rt);case 130:return bE(ee,ke,rt);default:return pL(ee,ke,rt)}default:if(rt){const Pt=As(283,!0,f.Declaration_expected);return DM(Pt,ee),Pt.modifiers=rt,Pt}return}}function Fg(){return Pe()===11}function Vx(){return Pe(),te()===161||te()===64}function cA(){return Pe(),!t.hasPrecedingLineBreak()&&(kn()||te()===11)}function $m(ee,ke){if(te()!==19){if(ee&4){Do();return}if(Lo()){is();return}}return nT(ee,ke)}function jx(){const ee=B();if(te()===28)return Zt(h.createOmittedExpression(),ee);const ke=Go(26),rt=Mv(),Pt=J_();return Zt(h.createBindingElement(ke,void 0,rt,Pt),ee)}function MC(){const ee=B(),ke=Go(26),rt=xn();let Pt=ur(),nn;rt&&te()!==59?(nn=Pt,Pt=void 0):(ln(59),nn=Mv());const _n=J_();return Zt(h.createBindingElement(ke,Pt,nn,_n),ee)}function Ux(){const ee=B();ln(19);const ke=Pn(()=>Xc(9,MC));return ln(20),Zt(h.createObjectBindingPattern(ke),ee)}function dA(){const ee=B();ln(23);const ke=Pn(()=>Xc(10,jx));return ln(24),Zt(h.createArrayBindingPattern(ke),ee)}function Hx(){return te()===19||te()===23||te()===81||xn()}function Mv(ee){return te()===23?dA():te()===19?Ux():vd(ee)}function qp(){return g_(!0)}function g_(ee){const ke=B(),rt=Ae(),Pt=Mv(f.Private_identifiers_are_not_allowed_in_variable_declarations);let nn;ee&&Pt.kind===80&&te()===54&&!t.hasPrecedingLineBreak()&&(nn=ec());const _n=qd(),ei=xu(te())?void 0:J_(),wr=Je(Pt,nn,_n,ei);return Pr(Zt(wr,ke),rt)}function uA(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(uu()),rt|=6,Pe();break;default:C.fail()}Pe();let Pt;if(te()===165&&wt(pA))Pt=Tf();else{const nn=Rt();dr(ee),Pt=Xc(8,ee?g_:qp),dr(nn)}return Zt(Se(Pt,rt),ke)}function pA(){return Pd()&&Pe()===22}function os(ee,ke,rt){const Pt=uA(!1);is();const nn=de(rt,Pt);return Pr(Zt(nn,ee),ke)}function Wr(ee,ke,rt){const Pt=nt(),nn=Yh(rt);ln(100);const _n=Go(42),ei=nn&2048?Ym():vd(),wr=_n?1:0,pr=nn&1024?2:0,Si=Xe();nn&32&&Hi(!0);const ao=_i(wr|pr),zs=cr(59,!1),Is=$m(wr|pr,f.or_expected);Hi(Pt);const as=h.createFunctionDeclaration(rt,_n,ei,Si,ao,zs,Is);return Pr(Zt(as,ee),ke)}function If(){if(te()===137)return ln(137);if(te()===11&&wt(Pe)===21)return En(()=>{const ee=kt();return ee.text==="constructor"?ee:void 0})}function Yc(ee,ke,rt){return En(()=>{if(If()){const Pt=Xe(),nn=_i(0),_n=cr(59,!1),ei=$m(0,f.or_expected),wr=h.createConstructorDeclaration(rt,nn,ei);return wr.typeParameters=Pt,wr.type=_n,Pr(Zt(wr,ee),ke)}})}function z0(ee,ke,rt,Pt,nn,_n,ei,wr){const pr=Pt?1:0,Si=vt(rt,FM)?2:0,ao=Xe(),zs=_i(pr|Si),Is=cr(59,!1),as=$m(pr|Si,wr),em=h.createMethodDeclaration(rt,Pt,nn,_n,ao,zs,Is,as);return em.exclamationToken=ei,Pr(Zt(em,ee),ke)}function fA(ee,ke,rt,Pt,nn){const _n=!nn&&!t.hasPrecedingLineBreak()?Go(54):void 0,ei=qd(),wr=$o(90112,J_);Bl(Pt,ei,wr);const pr=h.createPropertyDeclaration(rt,Pt,nn||_n,ei,wr);return Pr(Zt(pr,ee),ke)}function yE(ee,ke,rt){const Pt=Go(42),nn=ur(),_n=Go(58);return Pt||te()===21||te()===30?z0(ee,ke,rt,Pt,nn,_n,void 0,f.or_expected):fA(ee,ke,rt,nn,_n)}function B0(ee,ke,rt,Pt,nn){const _n=ur(),ei=Xe(),wr=_i(0),pr=cr(59,!1),Si=$m(nn),ao=Pt===178?h.createGetAccessorDeclaration(rt,_n,wr,pr,Si):h.createSetAccessorDeclaration(rt,_n,wr,Si);return ao.typeParameters=ei,gp(ao)&&(ao.type=pr),Pr(Zt(ao,ee),ke)}function mA(){let ee;if(te()===60)return!0;for(;pb(te());){if(ee=te(),Y9(ee))return!0;Pe()}if(te()===42||(pt()&&(ee=te(),Pe()),te()===23))return!0;if(ee!==void 0){if(!ep(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 Lo()}}return!1}function D(ee,ke,rt){$s(126);const Pt=me(),nn=Pr(Zt(h.createClassStaticBlockDeclaration(Pt),ee),ke);return nn.modifiers=rt,nn}function me(){const ee=Ue(),ke=nt();ri(!1),Hi(!0);const rt=wg(!1);return ri(ee),Hi(ke),rt}function Et(){if(nt()&&te()===135){const ee=B(),ke=Fs(f.Expression_expected);Pe();const rt=Af(ee,ke,!0);return cp(ee,rt)}return M0()}function An(){const ee=B();if(!uo(60))return;const ke=ht(Et);return Zt(h.createDecorator(ke),ee)}function vi(ee,ke,rt){const Pt=B(),nn=te();if(te()===87&&ke){if(!En(ro))return}else{if(rt&&te()===126&&wt(_A))return;if(ee&&te()===126)return;if(!Qs())return}return Zt(k(nn),Pt)}function wi(ee,ke,rt){const Pt=B();let nn,_n,ei,wr=!1,pr=!1,Si=!1;if(ee&&te()===60)for(;_n=An();)nn=Un(nn,_n);for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Un(nn,ei),pr=!0;if(pr&&ee&&te()===60)for(;_n=An();)nn=Un(nn,_n),Si=!0;if(Si)for(;ei=vi(wr,ke,rt);)ei.kind===126&&(wr=!0),nn=Un(nn,ei);return nn&&qa(nn,Pt)}function Io(){let ee;if(te()===134){const ke=B();Pe();const rt=Zt(k(134),ke);ee=qa([rt],ke)}return ee}function ki(){const ee=B(),ke=Ae();if(te()===27)return Pe(),Pr(Zt(h.createSemicolonClassElement(),ee),ke);const rt=wi(!0,!0,!0);if(te()===126&&wt(_A))return D(ee,ke,rt);if(zn(139))return B0(ee,ke,rt,178,0);if(zn(153))return B0(ee,ke,rt,179,0);if(te()===137||te()===11){const Pt=Yc(ee,ke,rt);if(Pt)return Pt}if(_l())return Rm(ee,ke,rt);if(Xu(te())||te()===11||te()===9||te()===10||te()===42||te()===23)if(vt(rt,sA)){for(const nn of rt)nn.flags|=33554432;return Ia(33554432,()=>yE(ee,ke,rt))}else return yE(ee,ke,rt);if(rt){const Pt=As(80,!0,f.Declaration_expected);return fA(ee,ke,rt,Pt,void 0)}return C.fail("Should not have attempted to parse class member declaration.")}function Ja(){const ee=B(),ke=Ae(),rt=wi(!0);if(te()===86)return Vu(ee,ke,rt,232);const Pt=As(283,!0,f.Expression_expected);return DM(Pt,ee),Pt.modifiers=rt,Pt}function _c(){return Vu(B(),Ae(),void 0,232)}function Kd(ee,ke,rt){return Vu(ee,ke,rt,264)}function Vu(ee,ke,rt,Pt){const nn=nt();ln(86);const _n=G0(),ei=Xe();vt(rt,VI)&&Hi(!0);const wr=iT();let pr;ln(19)?(pr=Pv(),ln(20)):pr=Tf(),Hi(nn);const Si=Pt===264?h.createClassDeclaration(rt,_n,ei,wr,pr):h.createClassExpression(rt,_n,ei,wr,pr);return Pr(Zt(Si,ee),ke)}function G0(){return xn()&&!ju()?lc(xn()):void 0}function ju(){return te()===119&&wt(nf)}function iT(){if(hA())return Va(22,qx)}function qx(){const ee=B(),ke=te();C.assert(ke===96||ke===119),Pe();const rt=Xc(7,Mm);return Zt(h.createHeritageClause(ke,rt),ee)}function Mm(){const ee=B(),ke=M0();if(ke.kind===234)return ke;const rt=bl();return Zt(h.createExpressionWithTypeArguments(ke,rt),ee)}function bl(){return te()===30?oe(20,ul,30,32):void 0}function hA(){return te()===96||te()===119}function Pv(){return Va(5,ki)}function Qm(ee,ke,rt){ln(120);const Pt=Fs(),nn=Xe(),_n=iT(),ei=H_(),wr=h.createInterfaceDeclaration(rt,Pt,nn,_n,ei);return Pr(Zt(wr,ee),ke)}function Lv(ee,ke,rt){ln(156),t.hasPrecedingLineBreak()&&Kt(f.Line_break_not_permitted_here);const Pt=Fs(),nn=Xe();ln(64);const _n=te()===141&&En(Cx)||ul();is();const ei=h.createTypeAliasDeclaration(rt,Pt,nn,_n);return Pr(Zt(ei,ee),ke)}function vE(){const ee=B(),ke=Ae(),rt=ur(),Pt=Pn(J_);return Pr(Zt(h.createEnumMember(rt,Pt),ee),ke)}function Wz(ee,ke,rt){ln(94);const Pt=Fs();let nn;ln(19)?(nn=dt(()=>Xc(6,vE)),ln(20)):nn=Tf();const _n=h.createEnumDeclaration(rt,Pt,nn);return Pr(Zt(_n,ee),ke)}function sL(){const ee=B();let ke;return ln(19)?(ke=Va(1,bp),ln(20)):ke=Tf(),Zt(h.createModuleBlock(ke),ee)}function Jx(ee,ke,rt,Pt){const nn=Pt&32,_n=Pt&8?Ee():Fs(),ei=uo(25)?Jx(B(),!1,void 0,8|nn):sL(),wr=h.createModuleDeclaration(rt,_n,ei,Pt);return Pr(Zt(wr,ee),ke)}function lL(ee,ke,rt){let Pt=0,nn;te()===162?(nn=Fs(),Pt|=2048):(nn=kt(),nn.text=Hl(nn.text));let _n;te()===19?_n=sL():is();const ei=h.createModuleDeclaration(rt,nn,_n,Pt);return Pr(Zt(ei,ee),ke)}function bW(ee,ke,rt){let Pt=0;if(te()===162)return lL(ee,ke,rt);if(uo(145))Pt|=32;else if(ln(144),te()===11)return lL(ee,ke,rt);return Jx(ee,ke,rt,Pt)}function oT(){return te()===149&&wt(Kx)}function Kx(){return Pe()===21}function _A(){return Pe()===19}function Fz(){return Pe()===44}function bE(ee,ke,rt){ln(130),ln(145);const Pt=Fs();is();const nn=h.createNamespaceExportDeclaration(Pt);return nn.modifiers=rt,Pr(Zt(nn,ee),ke)}function gA(ee,ke,rt){ln(102);const Pt=t.getTokenFullStart();let nn;kn()&&(nn=Fs());let _n;if((nn==null?void 0:nn.escapedText)==="type"&&(te()!==161||kn()&&wt(Vx))&&(kn()||sr())?(_n=156,nn=kn()?Fs():void 0):(nn==null?void 0:nn.escapedText)==="defer"&&(te()===161?!wt(Fg):te()!==28&&te()!==64)&&(_n=166,nn=kn()?Fs():void 0),nn&&!dL()&&_n!==166)return PC(ee,ke,rt,nn,_n===156);const ei=cL(nn,Pt,_n,void 0),wr=yA(),pr=Xx();is();const Si=h.createImportDeclaration(rt,ei,wr,pr);return Pr(Zt(Si,ee),ke)}function cL(ee,ke,rt,Pt=!1){let nn;return(ee||te()===42||te()===19)&&(nn=LC(ee,ke,rt,Pt),ln(161)),nn}function Xx(){const ee=te();if((ee===118||ee===132)&&!t.hasPrecedingLineBreak())return aT(ee)}function po(){const ee=B(),ke=Xu(te())?Ee():Ao(11);ln(59);const rt=Gu(!0);return Zt(h.createImportAttribute(ke,rt),ee)}function aT(ee,ke){const rt=B();ke||ln(ee);const Pt=t.getTokenStart();if(ln(19)){const nn=t.hasPrecedingLineBreak(),_n=Xc(24,po,!0);if(!ln(20)){const ei=tl(Re);ei&&ei.code===f._0_expected.code&&pa(ei,CI(re,Ne,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=qa([],B(),void 0,!1);return Zt(h.createImportAttributes(nn,!1,ee),rt)}}function sr(){return te()===42||te()===19}function dL(){return te()===28||te()===161}function PC(ee,ke,rt,Pt,nn){ln(64);const _n=TE();is();const ei=h.createImportEqualsDeclaration(rt,nn,Pt,_n);return Pr(Zt(ei,ee),ke)}function LC(ee,ke,rt,Pt){let nn;return(!ee||uo(28))&&(Pt&&t.setSkipJsDocLeadingAsterisks(!0),te()===42?nn=zz():nn=SW(276),Pt&&t.setSkipJsDocLeadingAsterisks(!1)),Zt(h.createImportClause(rt,ee,nn),ke)}function TE(){return oT()?TW():ut(!1)}function TW(){const ee=B();ln(149),ln(21);const ke=yA();return ln(22),Zt(h.createExternalModuleReference(ke),ee)}function yA(){if(te()===11){const ee=kt();return ee.text=Hl(ee.text),ee}else return Iu()}function zz(){const ee=B();ln(42),ln(130);const ke=Fs();return Zt(h.createNamespaceImport(ke),ee)}function kC(){return Xu(te())||te()===11}function X_(ee){return te()===11?kt():ee()}function SW(ee){const ke=B(),rt=ee===276?h.createNamedImports(oe(23,Bz,19,20)):h.createNamedExports(oe(23,V0,19,20));return Zt(rt,ke)}function V0(){const ee=Ae();return Pr(uL(282),ee)}function Bz(){return uL(277)}function uL(ee){const ke=B();let rt=ep(te())&&!kn(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),_n=!1,ei,wr=!0,pr=X_(Ee);if(pr.kind===80&&pr.escapedText==="type")if(te()===130){const zs=Ee();if(te()===130){const Is=Ee();kC()?(_n=!0,ei=zs,pr=X_(ao),wr=!1):(ei=pr,pr=Is,wr=!1)}else kC()?(ei=pr,wr=!1,pr=X_(ao)):(_n=!0,pr=zs)}else kC()&&(_n=!0,pr=X_(ao));wr&&te()===130&&(ei=pr,ln(130),pr=X_(ao)),ee===277&&(pr.kind!==80?(Oe(ka(Ne,pr.pos),pr.end,f.Identifier_expected),pr=uh(As(80,!1),pr.pos,pr.pos)):rt&&Oe(Pt,nn,f.Identifier_expected));const Si=ee===277?h.createImportSpecifier(_n,ei,pr):h.createExportSpecifier(_n,ei,pr);return Zt(Si,ke);function ao(){return rt=ep(te())&&!kn(),Pt=t.getTokenStart(),nn=t.getTokenEnd(),Ee()}}function EW(ee){return Zt(h.createNamespaceExport(X_(Ee)),ee)}function pL(ee,ke,rt){const Pt=nt();Hi(!0);let nn,_n,ei;const wr=uo(156),pr=B();uo(42)?(uo(130)&&(nn=EW(pr)),ln(161),_n=yA()):(nn=SW(280),(te()===161||te()===11&&!t.hasPrecedingLineBreak())&&(ln(161),_n=yA()));const Si=te();_n&&(Si===118||Si===132)&&!t.hasPrecedingLineBreak()&&(ei=aT(Si)),is(),Hi(Pt);const ao=h.createExportDeclaration(rt,wr,nn,_n,ei);return Pr(Zt(ao,ee),ke)}function j0(ee,ke,rt){const Pt=nt();Hi(!0);let nn;uo(64)?nn=!0:ln(90);const _n=Gu(!0);is(),Hi(Pt);const ei=h.createExportAssignment(rt,nn,_n);return Pr(Zt(ei,ee),ke)}let Y_;(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"})(Y_||(Y_={}));let wC;(ee=>{ee[ee.False=0]="False",ee[ee.True=1]="True",ee[ee.Unknown=2]="Unknown"})(wC||(wC={}));let y_;(ee=>{function ke(Si,ao,zs){zt("file.js",Si,99,void 0,1,0),t.setText(Si,ao,zs),Ge=t.scan();const Is=rt(),as=At("file.js",99,1,!1,[],k(1),0,gs),em=NI(Re,as);return ge&&(as.jsDocDiagnostics=NI(ge,as)),Zr(),Is?{jsDocTypeExpression:Is,diagnostics:em}:void 0}ee.parseJSDocTypeExpressionForTests=ke;function rt(Si){const ao=B(),zs=(Si?uo:ln)(19),Is=Ia(16777216,Th);(!Si||zs)&&xl(20);const as=h.createJSDocTypeExpression(Is);return Ye(as),Zt(as,ao)}ee.parseJSDocTypeExpression=rt;function Pt(){const Si=B(),ao=uo(19),zs=B();let Is=ut(!1);for(;te()===81;)Mt(),yt(),Is=Zt(h.createJSDocMemberName(Is,Fs()),zs);ao&&xl(20);const as=h.createJSDocNameReference(Is);return Ye(as),Zt(as,Si)}ee.parseJSDocNameReference=Pt;function nn(Si,ao,zs){zt("",Si,99,void 0,1,0);const Is=Ia(16777216,()=>pr(ao,zs)),em=NI(Re,{languageVariant:0,text:Si});return Zr(),Is?{jsDoc:Is,diagnostics:em}:void 0}ee.parseIsolatedJSDocComment=nn;function _n(Si,ao,zs){const Is=Ge,as=Re.length,em=en,xf=Ia(16777216,()=>pr(ao,zs));return ps(xf,Si),Kn&524288&&(ge||(ge=[]),Xr(ge,Re,as)),Ge=Is,Re.length=as,en=em,xf}ee.parseJSDocComment=_n;let ei;(Si=>{Si[Si.BeginningOfLine=0]="BeginningOfLine",Si[Si.SawAsterisk=1]="SawAsterisk",Si[Si.SavingComments=2]="SavingComments",Si[Si.SavingBackticks=3]="SavingBackticks"})(ei||(ei={}));let wr;(Si=>{Si[Si.Property=1]="Property",Si[Si.Parameter=2]="Parameter",Si[Si.CallbackParameter=4]="CallbackParameter"})(wr||(wr={}));function pr(Si=0,ao){const zs=Ne,Is=ao===void 0?zs.length:Si+ao;if(ao=Is-Si,C.assert(Si>=0),C.assert(Si<=Is),C.assert(Is<=zs.length),!Jj(zs,Si))return;let as,em,xf,kv,wv,zg=[];const sT=[],cs=cn;cn|=1<<25;const Gc=t.scanRange(Si+3,ao-5,Ov);return cn=cs,Gc;function Ov(){let Gn=1,Ur,$r=Si-(zs.lastIndexOf(` `,Si)+1)+4;function Mi(Bs){Ur||(Ur=$r),zg.push(Bs),$r+=Bs.length}for(yt();xh(5););xh(4)&&(Gn=0,$r=0);e:for(;;){switch(te()){case 60:Yx(zg),wv||(wv=B()),il(T($r)),Gn=0,Ur=void 0;break;case 4:zg.push(t.getTokenText()),Gn=0,$r=0;break;case 42:const Bs=t.getTokenText();Gn===1?(Gn=2,Mi(Bs)):(C.assert(Gn===0),Gn=1,$r+=Bs.length);break;case 5:C.assert(Gn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Ed=t.getTokenText();Ur!==void 0&&$r+Ed.length>Ur&&zg.push(Ed.slice(Ur-$r)),$r+=Ed.length;break;case 1:break e;case 82:Gn=2,Mi(t.getTokenValue());break;case 19:Gn=2;const Rh=t.getTokenFullStart(),Pm=t.getTokenEnd()-1,Zm=ue(Pm);if(Zm){kv||pu(zg),sT.push(Zt(h.createJSDocText(zg.join("")),kv??Si,Rh)),sT.push(Zm),zg=[],kv=t.getTokenEnd();break}default:Gn=2,Mi(t.getTokenText());break}Gn===2?Gt(!1):yt()}const Wi=zg.join("").trimEnd();sT.length&&Wi.length&&sT.push(Zt(h.createJSDocText(Wi),kv??Si,wv)),sT.length&&as&&C.assertIsDefined(wv,"having parsed tags implies that the end of the comment span should be set");const Na=as&&qa(as,em,xf);return Zt(h.createJSDocComment(sT.length?qa(sT,Si,wv):Wi.length?Wi:void 0,Na),Si,Is)}function pu(Gn){for(;Gn.length&&(Gn[0]===` `||Gn[0]==="\r");)Gn.shift()}function Yx(Gn){for(;Gn.length;){const Ur=Gn[Gn.length-1].trimEnd();if(Ur==="")Gn.pop();else if(Ur.lengthEd&&(Mi.push(Gg.slice(Ed-Gn)),Bs=2),Gn+=Gg.length;break;case 19:Bs=2;const Ly=t.getTokenFullStart(),OC=t.getTokenEnd()-1,gL=ue(OC);gL?(Wi.push(Zt(h.createJSDocText(Mi.join("")),Na??$r,Ly)),Wi.push(gL),Mi=[],Na=t.getTokenEnd()):Rh(t.getTokenText());break;case 62:Bs===3?Bs=2:Bs=3,Rh(t.getTokenText());break;case 82:Bs!==3&&(Bs=2),Rh(t.getTokenValue());break;case 42:if(Bs===0){Bs=1,Gn+=1;break}default:Bs!==3&&(Bs=2),Rh(t.getTokenText());break}Bs===2||Bs===3?Pm=Gt(Bs===3):Pm=yt()}pu(Mi);const Zm=Mi.join("").trimEnd();if(Wi.length)return Zm.length&&Wi.push(Zt(h.createJSDocText(Zm),Na??$r)),qa(Wi,$r,t.getTokenEnd());if(Zm.length)return Zm}function ue(Gn){const Ur=En(rn);if(!Ur)return;yt(),$_();const $r=tt(),Mi=[];for(;te()!==20&&te()!==4&&te()!==1;)Mi.push(t.getTokenText()),yt();const Wi=Ur==="link"?h.createJSDocLink:Ur==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return Zt(Wi($r,Mi.join("")),Gn,t.getTokenEnd())}function tt(){if(Xu(te())){const Gn=B();let Ur=Ee();for(;uo(25);)Ur=Zt(h.createQualifiedName(Ur,te()===81?As(80,!1):Ee()),Gn);for(;te()===81;)Mt(),yt(),Ur=Zt(h.createJSDocMemberName(Ur,Fs()),Gn);return Ur}}function rn(){if(br(),te()===19&&yt()===60&&Xu(yt())){const Gn=t.getTokenValue();if(Or(Gn))return Gn}}function Or(Gn){return Gn==="link"||Gn==="linkcode"||Gn==="linkplain"}function ko(Gn,Ur,$r,Mi){return Zt(h.createJSDocUnknownTag(Ur,M(Gn,B(),$r,Mi)),Gn)}function il(Gn){Gn&&(as?as.push(Gn):(as=[Gn],em=Gn.pos),xf=Gn.end)}function of(){return br(),te()===19?rt():void 0}function lT(){const Gn=xh(23);Gn&&$_();const Ur=xh(62),$r=QX();return Ur&&Ra(62),Gn&&($_(),Go(64)&&Iu(),ln(24)),{name:$r,isBracketed:Gn}}function Ih(Gn){switch(Gn.kind){case 151:return!0;case 189:return Ih(Gn.elementType);default:return Wp(Gn)&&He(Gn.typeName)&&Gn.typeName.escapedText==="Object"&&!Gn.typeArguments}}function $x(Gn,Ur,$r,Mi){let Wi=of(),Na=!Wi;br();const{name:Bs,isBracketed:Ed}=lT(),Rh=br();Na&&!wt(rn)&&(Wi=of());const Pm=M(Gn,B(),Mi,Rh),Zm=rhe(Wi,Bs,$r,Mi);Zm&&(Wi=Zm,Na=!0);const Gg=$r===1?h.createJSDocPropertyTag(Ur,Bs,Ed,Wi,Na,Pm):h.createJSDocParameterTag(Ur,Bs,Ed,Wi,Na,Pm);return Zt(Gg,Gn)}function rhe(Gn,Ur,$r,Mi){if(Gn&&Ih(Gn.type)){const Wi=B();let Na,Bs;for(;Na=En(()=>vA($r,Mi,Ur));)Na.kind===342||Na.kind===349?Bs=Un(Bs,Na):Na.kind===346&&Nt(Na.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Bs){const Ed=Zt(h.createJSDocTypeLiteral(Bs,Gn.type.kind===189),Wi);return Zt(h.createJSDocTypeExpression(Ed),Wi)}}}function fL(Gn,Ur,$r,Mi){vt(as,x4)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Bi(Ur.escapedText));const Wi=of();return Zt(h.createJSDocReturnTag(Ur,Wi,M(Gn,B(),$r,Mi)),Gn)}function Qx(Gn,Ur,$r,Mi){vt(as,KM)&&Oe(Ur.pos,t.getTokenStart(),f._0_tag_already_specified,Bi(Ur.escapedText));const Wi=rt(!0),Na=$r!==void 0&&Mi!==void 0?M(Gn,B(),$r,Mi):void 0;return Zt(h.createJSDocTypeTag(Ur,Wi,Na),Gn)}function ihe(Gn,Ur,$r,Mi){const Na=te()===23||wt(()=>yt()===60&&Xu(yt())&&Or(t.getTokenValue()))?void 0:Pt(),Bs=$r!==void 0&&Mi!==void 0?M(Gn,B(),$r,Mi):void 0;return Zt(h.createJSDocSeeTag(Ur,Na,Bs),Gn)}function ohe(Gn,Ur,$r,Mi){const Wi=of(),Na=M(Gn,B(),$r,Mi);return Zt(h.createJSDocThrowsTag(Ur,Wi,Na),Gn)}function AW(Gn,Ur,$r,Mi){const Wi=B(),Na=qX();let Bs=t.getTokenFullStart();const Ed=M(Gn,Bs,$r,Mi);Ed||(Bs=t.getTokenFullStart());const Rh=typeof Ed!="string"?qa(lo([Zt(Na,Wi,Bs)],Ed),Wi):Na.text+Ed;return Zt(h.createJSDocAuthorTag(Ur,Rh),Gn)}function qX(){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 cT(Gn,Ur,$r,Mi){const Wi=SE();return Zt(h.createJSDocImplementsTag(Ur,Wi,M(Gn,B(),$r,Mi)),Gn)}function ahe(Gn,Ur,$r,Mi){const Wi=SE();return Zt(h.createJSDocAugmentsTag(Ur,Wi,M(Gn,B(),$r,Mi)),Gn)}function she(Gn,Ur,$r,Mi){const Wi=rt(!1),Na=$r!==void 0&&Mi!==void 0?M(Gn,B(),$r,Mi):void 0;return Zt(h.createJSDocSatisfiesTag(Ur,Wi,Na),Gn)}function lhe(Gn,Ur,$r,Mi){const Wi=t.getTokenFullStart();let Na;kn()&&(Na=Fs());const Bs=cL(Na,Wi,156,!0),Ed=yA(),Rh=Xx(),Pm=$r!==void 0&&Mi!==void 0?M(Gn,B(),$r,Mi):void 0;return Zt(h.createJSDocImportTag(Ur,Bs,Ed,Rh,Pm),Gn)}function SE(){const Gn=uo(19),Ur=B(),$r=mL();t.setSkipJsDocLeadingAsterisks(!0);const Mi=bl();t.setSkipJsDocLeadingAsterisks(!1);const Wi=h.createExpressionWithTypeArguments($r,Mi),Na=Zt(Wi,Ur);return Gn&&($_(),ln(20)),Na}function mL(){const Gn=B();let Ur=Jp();for(;uo(25);){const $r=Jp();Ur=Zt(G(Ur,$r),Gn)}return Ur}function Zx(Gn,Ur,$r,Mi,Wi){return Zt(Ur($r,M(Gn,B(),Mi,Wi)),Gn)}function JX(Gn,Ur,$r,Mi){const Wi=rt(!0);return $_(),Zt(h.createJSDocThisTag(Ur,Wi,M(Gn,B(),$r,Mi)),Gn)}function hL(Gn,Ur,$r,Mi){const Wi=rt(!0);return $_(),Zt(h.createJSDocEnumTag(Ur,Wi,M(Gn,B(),$r,Mi)),Gn)}function KX(Gn,Ur,$r,Mi){let Wi=of();br();const Na=IW();$_();let Bs=V($r),Ed;if(!Wi||Ih(Wi.type)){let Pm,Zm,Gg,Ly=!1;for(;(Pm=En(()=>uhe($r)))&&Pm.kind!==346;)if(Ly=!0,Pm.kind===345)if(Zm){const OC=Kt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);OC&&pa(OC,CI(re,Ne,0,0,f.The_tag_was_first_specified_here));break}else Zm=Pm;else Gg=Un(Gg,Pm);if(Ly){const OC=Wi&&Wi.type.kind===189,gL=h.createJSDocTypeLiteral(Gg,OC);Wi=Zm&&Zm.typeExpression&&!Ih(Zm.typeExpression.type)?Zm.typeExpression:Zt(gL,Gn),Ed=Wi.end}}Ed=Ed||Bs!==void 0?B():(Na??Wi??Ur).end,Bs||(Bs=M(Gn,Ed,$r,Mi));const Rh=h.createJSDocTypedefTag(Ur,Wi,Na,Bs);return Zt(Rh,Gn,Ed)}function IW(Gn){const Ur=t.getTokenStart();if(!Xu(te()))return;const $r=Jp();if(uo(25)){const Mi=IW(!0),Wi=h.createModuleDeclaration(void 0,$r,Mi,Gn?8:void 0);return Zt(Wi,Ur)}return Gn&&($r.flags|=4096),$r}function _L(Gn){const Ur=B();let $r,Mi;for(;$r=En(()=>vA(4,Gn));){if($r.kind===346){Nt($r.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Mi=Un(Mi,$r)}return qa(Mi||[],Ur)}function XX(Gn,Ur){const $r=_L(Ur),Mi=En(()=>{if(xh(60)){const Wi=T(Ur);if(Wi&&Wi.kind===343)return Wi}});return Zt(h.createJSDocSignature(void 0,$r,Mi),Gn)}function YX(Gn,Ur,$r,Mi){const Wi=IW();$_();let Na=V($r);const Bs=XX(Gn,$r);Na||(Na=M(Gn,B(),$r,Mi));const Ed=Na!==void 0?B():Bs.end;return Zt(h.createJSDocCallbackTag(Ur,Bs,Wi,Na),Gn,Ed)}function che(Gn,Ur,$r,Mi){$_();let Wi=V($r);const Na=XX(Gn,$r);Wi||(Wi=M(Gn,B(),$r,Mi));const Bs=Wi!==void 0?B():Na.end;return Zt(h.createJSDocOverloadTag(Ur,Na,Wi),Gn,Bs)}function dhe(Gn,Ur){for(;!He(Gn)||!He(Ur);)if(!He(Gn)&&!He(Ur)&&Gn.right.escapedText===Ur.right.escapedText)Gn=Gn.left,Ur=Ur.left;else return!1;return Gn.escapedText===Ur.escapedText}function uhe(Gn){return vA(1,Gn)}function vA(Gn,Ur,$r){let Mi=!0,Wi=!1;for(;;)switch(yt()){case 60:if(Mi){const Na=$X(Gn,Ur);return Na&&(Na.kind===342||Na.kind===349)&&$r&&(He(Na.name)||!dhe($r,Na.name.left))?!1:Na}Wi=!1;break;case 4:Mi=!0,Wi=!1;break;case 42:Wi&&(Mi=!1),Wi=!0;break;case 80:Mi=!1;break;case 1:return!1}}function $X(Gn,Ur){C.assert(te()===60);const $r=t.getTokenFullStart();yt();const Mi=Jp(),Wi=br();let Na;switch(Mi.escapedText){case"type":return Gn===1&&Qx($r,Mi);case"prop":case"property":Na=1;break;case"arg":case"argument":case"param":Na=6;break;case"template":return _r($r,Mi,Ur,Wi);case"this":return JX($r,Mi,Ur,Wi);default:return!1}return Gn&Na?$x($r,Mi,Gn,Ur):!1}function phe(){const Gn=B(),Ur=xh(23);Ur&&$_();const $r=wi(!1,!0),Mi=Jp(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Wi;if(Ur&&($_(),ln(64),Wi=Ia(16777216,Th),ln(24)),!Ol(Mi))return Zt(h.createTypeParameterDeclaration($r,Mi,void 0,Wi),Gn)}function Wv(){const Gn=B(),Ur=[];do{$_();const $r=phe();$r!==void 0&&Ur.push($r),br()}while(xh(28));return qa(Ur,Gn)}function _r(Gn,Ur,$r,Mi){const Wi=te()===19?rt():void 0,Na=Wv();return Zt(h.createJSDocTemplateTag(Ur,Wi,Na,M(Gn,B(),$r,Mi)),Gn)}function xh(Gn){return te()===Gn?(yt(),!0):!1}function QX(){let Gn=Jp();for(uo(23)&&ln(24);uo(25);){const Ur=Jp();uo(23)&&ln(24),Gn=tn(Gn,Ur)}return Gn}function Jp(Gn){if(!Xu(te()))return As(80,!Gn,Gn||f.Identifier_expected);Wt++;const Ur=t.getTokenStart(),$r=t.getTokenEnd(),Mi=te(),Wi=Hl(t.getTokenValue()),Na=Zt(N(Wi,Mi),Ur,$r);return yt(),Na}}})(y_=e.JSDocParser||(e.JSDocParser={}))})(o0||(o0={}));var ZSe=new WeakSet;function jje(e){ZSe.has(e)&&C.fail("Source file has already been incrementally parsed"),ZSe.add(e)}var eEe=new WeakSet;function Uje(e){return eEe.has(e)}function coe(e){eEe.add(e)}var Xj;(e=>{function t(A,R,N,P){if(P=P||C.shouldAssert(2),h(A,R,N,P),Wee(N))return A;if(A.statements.length===0)return o0.parseSourceFile(A.fileName,R,A.languageVersion,void 0,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);jje(A),o0.fixupParentReferences(A);const k=A.text,F=y(A),O=d(A,N);h(A,R,O,P),C.assert(O.span.start<=N.span.start),C.assert(Dl(O.span)===Dl(N.span)),C.assert(Dl(NN(O))===Dl(NN(N)));const G=NN(O).length-O.span.length;u(A,O.span.start,Dl(O.span),Dl(NN(O)),G,k,R,P);const j=o0.parseSourceFile(A.fileName,R,A.languageVersion,F,!0,A.scriptKind,A.setExternalModuleIndicator,A.jsDocParsingMode);return j.commentDirectives=r(A.commentDirectives,j.commentDirectives,O.span.start,Dl(O.span),G,k,R,P),j.impliedNodeFormat=A.impliedNodeFormat,zie(A,j),j}e.updateSourceFile=t;function r(A,R,N,P,k,F,O,G){if(!A)return R;let j,J=!1;for(const q of A){const{range:ye,type:ie}=q;if(ye.endP){Z();const K={range:{pos:ye.pos+k,end:ye.end+k},type:ie};j=Un(j,K),G&&C.assert(F.substring(ye.pos,ye.end)===O.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,O){N?j(A):G(A);return;function G(J){let Z="";if(O&&o(J)&&(Z=k.substring(J.pos,J.end)),kj(J,R),uh(J,J.pos+P,J.end+P),O&&o(J)&&C.assert(Z===F.substring(J.pos,J.end)),Jo(J,G,j),ef(J))for(const q of J.jsDoc)G(q);l(J,O)}function j(J){uh(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),O=A.end>=N?A.end+k:Math.min(A.end,P);if(C.assert(F<=O),A.parent){const G=A.parent;C.assertGreaterThanOrEqual(F,G.pos),C.assertLessThanOrEqual(O,G.end)}uh(A,F,O)}function l(A,R){if(R){let N=A.pos;const P=k=>{C.assert(k.pos>=N),N=k.end};if(ef(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,O,G){j(A);return;function j(Z){if(C.assert(Z.pos<=Z.end),Z.pos>N){i(Z,A,!1,k,F,O,G);return}const q=Z.end;if(q>=R){if(coe(Z),kj(Z,A),s(Z,R,N,P,k),Jo(Z,j,J),ef(Z))for(const ye of Z.jsDoc)j(ye);l(Z,G);return}C.assert(qN){i(Z,A,!0,k,F,O,G);return}const q=Z.end;if(q>=R){coe(Z),s(Z,R,N,P,k);for(const ye of Z)j(ye);return}C.assert(q0&&O<=1;O++){const G=g(A,P);C.assert(G.pos<=P);const j=G.pos;P=Math.max(0,j-1)}const k=oc(P,Dl(R.span)),F=R.newLength+(R.span.start-P);return L2(k,F)}function g(A,R){let N=A,P;if(Jo(A,F),P){const O=k(P);O.pos>N.pos&&(N=O)}return N;function k(O){for(;;){const G=AV(O);if(G)O=G;else return O}}function F(O){if(!Ol(O))if(O.pos<=R){if(O.pos>=N.pos&&(N=O),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),O=R.substr(0,N.span.start);C.assert(F===O);const G=k.substring(Dl(N.span),k.length),j=R.substring(Dl(NN(N)),R.length);C.assert(G===j)}}function y(A){let R=A.statements,N=0;C.assert(N=J.pos&&O=J.pos&&O{A[A.Value=-1]="Value"})(E||(E={}))})(Xj||(Xj={}));function ad(e){return W4(e)!==void 0}function W4(e){const t=nI(e,J6,!1);if(t)return t;if(El(e,".ts")){const r=Ic(e),i=r.lastIndexOf(".d.");if(i>=0)return r.substring(i)}}function Hje(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 Yj(e,t){const r=[];for(const i of cg(t,0)||se){const o=t.substring(i.pos,i.end);Xje(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 $j(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;$e(QA(r),u=>{const{types:d,lib:g,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=Hje(y,d.pos,d.end,t);s.push({pos:d.pos,end:d.end,fileName:d.value,...R?{resolutionMode:R}:{},...A?{preserve:A}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.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=Bt(QA(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":{$e(QA(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 doe=new Map;function qje(e){if(doe.has(e))return doe.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return doe.set(e,t),t}var Jje=/^\/\/\/\s*<(\S+)\s.*?\/>/m,Kje=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Xje(e,t,r){const i=t.kind===2&&Jje.exec(r);if(i){const s=i[1].toLowerCase(),l=X8[s];if(!l||!(l.kind&1))return;if(l.args){const u={};for(const d of l.args){const h=qje(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&&Kje.exec(r);if(o)return tEe(e,t,2,o);if(t.kind===3){const s=/@(\S+)(\s+(?:\S.*)?)?$/gm;let l;for(;l=s.exec(r);)tEe(e,t,4,l)}}function tEe(e,t,r,i){if(!i)return;const o=i[1].toLowerCase(),s=X8[o];if(!s||!(s.kind&r))return;const l=i[2],u=Yje(s,l);u!=="fail"&&e.push({name:o,args:{arguments:u,range:t}})}function Yje(e,t){if(!t)return{};if(!e.args)return{};const r=t.trim().split(/\s+/),i={};for(let o=0;o[""+t,e])),rEe=[["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"]],F4=rEe.map(e=>e[0]),Qj=new Map(rEe),rx=[{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:Moe},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:Moe},allowConfigDirTemplateSubstitution:!0,category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],z4=[{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}],Zj={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},iEe=[{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},Zj,poe,{name:"lib",type:"list",element:{name:"lib",type:Qj,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:nEe,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}],Hm=[...z4,...iEe],foe=Hm.filter(e=>!!e.affectsSemanticDiagnostics),moe=Hm.filter(e=>!!e.affectsEmit),hoe=Hm.filter(e=>!!e.affectsDeclarationPath),eU=Hm.filter(e=>!!e.affectsModuleResolution),tU=Hm.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_oe=Hm.filter(e=>!!e.affectsProgramStructure),goe=Hm.filter(e=>Rs(e,"transpileOptionValue")),$je=Hm.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Qje=rx.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),yoe=Hm.filter(Zje);function Zje(e){return!Bo(e.type)}var N1={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},nU=[N1,{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}],Pw=[...z4,...nU],B4=[{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 G4(e){const t=new Map,r=new Map;return $e(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}var oEe;function OD(){return oEe||(oEe=G4(Hm))}var eUe={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:uEe},aEe={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function voe(e){return sEe(e,Il)}function sEe(e,t){const r=Co(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 V4(e,t,r){return HEe(e,(t??"").trim(),r)}function boe(e,t="",r){if(t=t.trim(),fo(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return ix(e,t,r);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return ji(i,o=>ix(e.element,parseInt(o),r));case"string":return ji(i,o=>ix(e.element,o||"",r));case"boolean":case"object":return C.fail(`List of ${e.element.type} is not yet supported.`);default:return ji(i,o=>V4(e.element,o,r))}}function lEe(e){return e.name}function Toe(e,t,r,i,o){var s;const l=(s=t.alternateMode)==null?void 0:s.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(l)return s0(o,i,l!==N1?t.alternateMode.diagnostic:f.Option_build_must_be_the_first_command_line_argument,e);const u=mS(e,t.optionDeclarations,lEe);return u?s0(o,i,t.unknownDidYouMeanDiagnostic,r||e,u.name):s0(o,i,t.unknownOptionDiagnostic,r||e)}function rU(e,t,r){const i={};let o;const s=[],l=[];return u(t),{options:i,watchOptions:o,fileNames:s,errors:l};function u(g){let h=0;for(;hjc.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 cEe(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]=ix(i,!1,s),t++):(l==="true"&&t++,s.push(Il(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(Il(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!fo(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(Il(r.optionTypeMismatchDiagnostic,i.name,lU(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=ix(i,parseInt(e[t]),s),t++;break;case"boolean":const l=e[t];o[i.name]=ix(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=ix(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]=V4(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}var j4={alternateMode:eUe,getOptionsNameMap:OD,optionDeclarations:Hm,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 Soe(e,t){return rU(j4,e,t)}function iU(e,t){return Eoe(OD,e,t)}function Eoe(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 dEe;function uEe(){return dEe||(dEe=G4(Pw))}var tUe={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:OD},nUe={alternateMode:tUe,getOptionsNameMap:uEe,optionDeclarations:Pw,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 Aoe(e){const{options:t,watchOptions:r,fileNames:i,errors:o}=rU(nUe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(Il(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function rp(e,...t){return ha(Il(e,...t).messageText,Bo)}function Lw(e,t,r,i,o,s){const l=ZM(e,g=>r.readFile(g));if(!Bo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}const u=Nw(e,l),d=r.getCurrentDirectory();return u.path=ks(e,d,Fd(r.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,Ow(u,r,So(ci(e),d),t,So(e,d),void 0,s,i,o)}function kw(e,t){const r=ZM(e,t);return Bo(r)?oU(e,r):{config:{},error:r}}function oU(e,t){const r=Nw(e,t);return{config:AEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function Ioe(e,t){const r=ZM(e,t);return Bo(r)?Nw(e,r):{fileName:e,parseDiagnostics:[r]}}function ZM(e,t){let r;try{r=t(e)}catch(i){return Il(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?Il(f.Cannot_read_file_0,e):r}function aU(e){return AR(e,lEe)}var pEe={optionDeclarations:B4,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},fEe;function mEe(){return fEe||(fEe=G4(rx))}var sU={getOptionsNameMap:mEe,optionDeclarations:rx,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},hEe;function _Ee(){return hEe||(hEe=aU(Hm))}var gEe;function yEe(){return gEe||(gEe=aU(rx))}var vEe;function bEe(){return vEe||(vEe=aU(B4))}var U4={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},TEe={name:"compilerOptions",type:"object",elementOptions:_Ee(),extraKeyDiagnostics:j4},SEe={name:"watchOptions",type:"object",elementOptions:yEe(),extraKeyDiagnostics:sU},EEe={name:"typeAcquisition",type:"object",elementOptions:bEe(),extraKeyDiagnostics:pEe},xoe;function rUe(){return xoe===void 0&&(xoe={name:void 0,type:"object",elementOptions:aU([TEe,SEe,EEe,U4,{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},uoe])}),xoe}function AEe(e,t,r){var i;const o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==211){if(t.push(Wf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ic(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Cd(o)){const s=hn(o.elements,Fa);if(s)return ww(e,s,t,!0,r)}return{}}return ww(e,o,t,!0,r)}function Roe(e,t){var r;return ww(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function ww(e,t,r,i,o){if(!t)return i?{}:void 0;return u(t,o==null?void 0:o.rootOptions);function s(g,h){var y;const E=i?{}:void 0;for(const A of g.properties){if(A.kind!==304){r.push(Wf(e,A,f.Property_assignment_expected));continue}A.questionToken&&r.push(Wf(e,A.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(A.name)||r.push(Wf(e,A.name,f.String_literal_with_double_quotes_expected));const R=ek(A.name)?void 0:hI(A.name),N=R&&Bi(R),P=N?(y=h==null?void 0:h.elementOptions)==null?void 0:y.get(N):void 0,k=u(A.initializer,P);typeof N<"u"&&(i&&(E[N]=k),o==null||o.onPropertySet(N,k,A,h,P))}return E}function l(g,h){if(!i){g.forEach(y=>u(y,h));return}return Vn(g.map(y=>u(y,h)),y=>y!==void 0)}function u(g,h){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return d(g)||r.push(Wf(e,g,f.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 225:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 211:return s(g,h);case 210:return l(g.elements,h&&h.element)}h?r.push(Wf(e,g,f.Compiler_option_0_requires_a_value_of_type_1,h.name,lU(h))):r.push(Wf(e,g,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function d(g){return wa(g)&&r6(g,e)}}function lU(e){return e.type==="listOrElement"?`${lU(e.element)} or Array`:e.type==="list"?"Array":Bo(e.type)?e.type:"string"}function IEe(e,t){if(e){if(Ww(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Mo(t);if(e.type==="listOrElement")return Mo(t)||IEe(e.element,t);const r=Bo(e.type)?e.type:"string";return typeof t===r}return!1}function cU(e,t,r){var i,o,s;const l=Fd(r.useCaseSensitiveFileNames),u=Bt(Vn(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?aUe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):uS),R=>MR(So(t,r.getCurrentDirectory()),So(R,r.getCurrentDirectory()),l)),d={configFilePath:So(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},g=dU(e.options,d),h=e.watchOptions&&sUe(e.watchOptions),y={compilerOptions:{...H4(g),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&&H4(h),references:Bt(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:Ze(u)?u:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:oUe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(g.keys()),A={};for(const R in bM)if(!E.has(R)&&iUe(R,E)){const N=bM[R].computeValue(e.options),P=bM[R].computeValue({});N!==P&&(A[R]=bM[R].computeValue(e.options))}return VE(y.compilerOptions,H4(dU(A,d))),y}function iUe(e,t){const r=new Set;return i(e);function i(o){var s;return ym(r,o)?vt((s=bM[o])==null?void 0:s.dependencies,l=>t.has(l)||i(l)):!1}}function H4(e){return Object.fromEntries(e)}function oUe(e){if(Ze(e)){if(Ze(e)!==1)return e;if(e[0]!==NEe)return e}}function aUe(e,t,r,i){if(!t)return uS;const o=j6(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&ov(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&ov(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?u=>!(l.test(u)&&!s.test(u)):u=>!l.test(u):s?u=>s.test(u):uS}function xEe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return xEe(e.element);default:return e.type}}function q4(e,t){return Hc(t,(r,i)=>{if(r===e)return i})}function dU(e,t){return REe(e,OD(),t)}function sUe(e){return REe(e,mEe())}function REe(e,{optionsNameMap:t},r){const i=new Map,o=r&&Fd(r.useCaseSensitiveFileNames);for(const s in e)if(Rs(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=xEe(u);d?u.type==="list"?i.set(s,l.map(g=>q4(g,d))):i.set(s,q4(l,d)):r&&u.isFilePath?i.set(s,MR(r.configFilePath,So(l,ci(r.configFilePath)),o)):r&&u.type==="list"&&u.element.isFilePath?i.set(s,l.map(g=>MR(r.configFilePath,So(g,ci(r.configFilePath)),o))):i.set(s,l)}}return i}function Doe(e,t){const r=" ",i=[],o=Object.keys(e).filter(h=>h!=="init"&&h!=="help"&&h!=="watch");if(i.push("{"),i.push(`${r}// ${Ho(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),i.push(`${r}"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(`${r}${r}// "lib": ["esnext"],`),i.push(`${r}${r}// "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(`${r}${r}// ${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=!Rs(e,h);const N=e[h]??y;R?i.push(`${r}${r}// "${h}": ${d(h,N)},`):i.push(`${r}${r}"${h}": ${d(h,N)},`)}function d(h,y){const E=Hm.filter(R=>R.name===h)[0];E||C.fail(`No option named ${h}?`);const A=E.type instanceof Map?E.type:void 0;if(Mo(y)){const R="element"in E&&E.element.type instanceof Map?E.element.type:void 0;return`[${y.map(N=>g(N,R)).join(", ")}]`}else return g(y,A)}function g(h,y){return y&&(h=q4(h,y)??C.fail(`No matching value of ${h}`)),JSON.stringify(h)}return i.push(`${r}}`),i.push("}"),i.push(""),i.join(t)}function J4(e,t){const r={},i=OD().optionsNameMap;for(const o in e)Rs(e,o)&&(r[o]=lUe(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function lUe(e,t,r){if(e&&!Ww(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 DEe(e,t,r,i,o,s,l,u,d){return MEe(e,void 0,t,r,i,d,o,s,l,u)}function Ow(e,t,r,i,o,s,l,u,d){var g,h;(g=xr)==null||g.push(xr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const y=MEe(void 0,e,t,r,i,d,o,s,l,u);return(h=xr)==null||h.pop(),y}function uU(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function Ww(e){return e==null}function CEe(e,t){return ci(So(e,t))}var NEe="**/*";function MEe(e,t,r,i,o={},s,l,u=[],d=[],g){C.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);const h=[],y=WEe(e,t,r,i,l,u,h,g),{raw:E}=y,A=PEe(jB(o,y.options||{}),$je,i),R=K4(s&&y.watchOptions?jB(s,y.watchOptions):y.watchOptions||s,i);A.configFilePath=l&&Bd(l);const N=ya(l?CEe(l,i):i),P=k();return t&&(t.configFileSpecs=P),uU(A,t),{options:A,watchOptions:R,fileNames:F(N),projectReferences:O(N),typeAcquisition:y.typeAcquisition||mU(),raw:E,errors:h,wildcardDirectories:bUe(P,N,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function k(){const q=J("references",Se=>typeof Se=="object","object"),ye=G(j("files"));if(ye){const Se=q==="no-prop"||Mo(q)&&q.length===0,re=Rs(E,"extends");if(ye.length===0&&Se&&!re)if(t){const be=l||"tsconfig.json",Ne=f.The_files_list_in_config_file_0_is_empty,Be=ak(t,"files",ce=>ce.initializer),lt=s0(t,Be,Ne,be);h.push(lt)}else Z(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let ie=G(j("include"));const K=j("exclude");let pe=!1,de=G(K);if(K==="no-prop"){const Se=A.outDir,re=A.declarationDir;(Se||re)&&(de=Vn([Se,re],be=>!!be))}ye===void 0&&ie===void 0&&(ie=[NEe],pe=!0);let fe,ve,xe,X;ie&&(fe=KEe(ie,h,!0,t,"include"),xe=X4(fe,N)||fe),de&&(ve=KEe(de,h,!1,t,"exclude"),X=X4(ve,N)||ve);const Ce=Vn(ye,Bo),Je=X4(Ce,N)||Ce;return{filesSpecs:ye,includeSpecs:ie,excludeSpecs:de,validatedFilesSpec:Je,validatedIncludeSpecs:xe,validatedExcludeSpecs:X,validatedFilesSpecBeforeSubstitution:Ce,validatedIncludeSpecsBeforeSubstitution:fe,validatedExcludeSpecsBeforeSubstitution:ve,isDefaultIncludeSpec:pe}}function F(q){const ye=eP(P,q,A,r,d);return OEe(ye,Fw(E),u)&&h.push(wEe(P,l)),ye}function O(q){let ye;const ie=J("references",K=>typeof K=="object","object");if(Mo(ie))for(const K of ie)typeof K.path!="string"?Z(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ye||(ye=[])).push({path:So(K.path,q),originalPath:K.path,prepend:K.prepend,circular:K.circular});return ye}function G(q){return Mo(q)?q:void 0}function j(q){return J(q,Bo,"string")}function J(q,ye,ie){if(Rs(E,q)&&!Ww(E[q]))if(Mo(E[q])){const K=E[q];return!t&&!Hn(K,ye)&&h.push(Il(f.Compiler_option_0_requires_a_value_of_type_1,q,ie)),K}else return Z(f.Compiler_option_0_requires_a_value_of_type_1,q,"Array"),"not-array";return"no-prop"}function Z(q,...ye){t||h.push(Il(q,...ye))}}function K4(e,t){return PEe(e,Qje,t)}function PEe(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),pU(l)&&o(s,kEe(l,r));break;case"list":C.assert(s.element.isFilePath);const u=X4(l,r);u&&o(s,u);break;case"object":C.assert(s.name==="paths");const d=cUe(l,r);d&&o(s,d);break;default:C.fail("option type not supported")}}return i||e;function o(s,l){(i??(i=VE({},e)))[s.name]=l}}var LEe="${configDir}";function pU(e){return Bo(e)&&fo(e,LEe,!0)}function kEe(e,t){return So(e.replace(LEe,"./"),t)}function X4(e,t){if(!e)return e;let r;return e.forEach((i,o)=>{pU(i)&&((r??(r=e.slice()))[o]=kEe(i,t))}),r}function cUe(e,t){let r;return Fh(e).forEach(o=>{if(!Mo(e[o]))return;const s=X4(e[o],t);s&&((r??(r=VE({},e)))[o]=s)}),r}function dUe(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 wEe({includeSpecs:e,excludeSpecs:t},r){return Il(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 OEe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function fU(e){return!e.fileNames.length&&Rs(e.raw,"references")}function Fw(e){return!Rs(e,"files")&&!Rs(e,"references")}function Y4(e,t,r,i,o){const s=i.length;return OEe(e,o)?i.push(wEe(r,t)):el(i,l=>!dUe(l)),s!==i.length}function uUe(e){return!!e.options}function WEe(e,t,r,i,o,s,l,u){var d;i=Bd(i);const g=So(o||"",i);if(s.includes(g))return l.push(Il(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,g].join(" -> "))),{raw:e||Roe(t,l)};const h=e?pUe(e,r,i,o,l):fUe(t,r,i,o,l);if((d=h.options)!=null&&d.paths&&(h.options.pathsBasePath=i),h.extendedConfigPath){s=s.concat([g]);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=Co(A.extendedSourceFiles.keys())),h.options=VE(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=mUe(t,R,r,s,l,u,A);if(N&&uUe(N)){const P=N.raw;let k;const F=O=>{h.raw[O]||P[O]&&(A[O]=Bt(P[O],G=>pU(G)||Cp(G)?G:Qr(k||(k=EN(ci(R),i,Fd(r.useCaseSensitiveFileNames))),G)))};F("include"),F("exclude"),F("files"),P.compileOnSave!==void 0&&(A.compileOnSave=P.compileOnSave),VE(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?VE(A.watchOptions,R):(A.watchOptionsCopied=!0,VE({},A.watchOptions,R))}}function pUe(e,t,r,i,o){Rs(e,"excludes")&&o.push(Il(f.Unknown_option_excludes_Did_you_mean_exclude));const s=jEe(e.compilerOptions,r,o,i),l=UEe(e.typeAcquisition,r,o,i),u=_Ue(e.watchOptions,r,o);e.compileOnSave=hUe(e,r,o);const d=e.extends||e.extends===""?FEe(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:u,typeAcquisition:l,extendedConfigPath:d}}function FEe(e,t,r,i,o,s,l,u){let d;const g=i?CEe(i,r):r;if(Bo(e))d=zEe(e,t,g,o,l,u);else if(Mo(e)){d=[];for(let h=0;hF.name===A)&&(g=Un(g,N.name))))}}function zEe(e,t,r,i,o,s){if(e=Bd(e),Cp(e)||fo(e,"./")||fo(e,"../")){let u=So(e,r);if(!t.fileExists(u)&&!nl(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(s0(s,o,f.File_0_not_found,e));return}return u}const l=qoe(e,Qr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(s0(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(s0(s,o,f.File_0_not_found,e))}function mUe(e,t,r,i,o,s,l){const u=r.useCaseSensitiveFileNames?t:tb(t);let d,g,h;if(s&&(d=s.get(u))?{extendedResult:g,extendedConfig:h}=d:(g=Ioe(t,y=>r.readFile(y)),g.parseDiagnostics.length||(h=WEe(void 0,g,r,ci(t),Ic(t),i,o,s)),s&&s.set(u,{extendedResult:g,extendedConfig:h})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(const y of g.extendedSourceFiles)l.extendedSourceFiles.add(y);if(g.parseDiagnostics.length){o.push(...g.parseDiagnostics);return}return h}function hUe(e,t,r){if(!Rs(e,uoe.name))return!1;const i=M1(uoe,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function BEe(e,t,r){const i=[];return{options:jEe(e,t,i,r),errors:i}}function GEe(e,t,r){const i=[];return{options:UEe(e,t,i,r),errors:i}}function VEe(e){return e&&Ic(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function jEe(e,t,r,i){const o=VEe(i);return Coe(_Ee(),e,t,o,j4,r),i&&(o.configFilePath=Bd(i)),o}function mU(e){return{enable:!!e&&Ic(e)==="jsconfig.json",include:[],exclude:[]}}function UEe(e,t,r,i){const o=mU(i);return Coe(bEe(),e,t,o,pEe,r),o}function _Ue(e,t,r){return Coe(yEe(),e,t,void 0,sU,r)}function Coe(e,t,r,i,o,s){if(t){for(const l in t){const u=e.get(l);u?(i||(i={}))[u.name]=M1(u,t[l],r,s):s.push(Toe(l,o))}return i}}function s0(e,t,r,...i){return e&&t?Wf(e,t,r,...i):Il(r,...i)}function M1(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(s0(l,o==null?void 0:o.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(IEe(e,t)){const u=e.type;if(u==="list"&&Mo(t))return qEe(e,t,r,i,o,s,l);if(u==="listOrElement")return Mo(t)?qEe(e,t,r,i,o,s,l):M1(e.element,t,r,i,o,s,l);if(!Bo(e.type))return HEe(e,t,i,s,l);const d=ix(e,t,i,s,l);return Ww(d)?d:gUe(e,r,d)}else i.push(s0(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,lU(e)))}function gUe(e,t,r){return e.isFilePath&&(r=Bd(r),r=pU(r)?r:So(r,t),r===""&&(r=".")),r}function ix(e,t,r,i,o){var s;if(Ww(t))return;const l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(s0(o,i,...l))}function HEe(e,t,r,i,o){if(Ww(t))return;const s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return ix(e,l,r,i,o);r.push(sEe(e,(u,...d)=>s0(o,i,u,...d)))}function qEe(e,t,r,i,o,s,l){return Vn(Bt(t,(u,d)=>M1(e.element,u,r,i,o,s==null?void 0:s.elements[d],l)),u=>e.listPreserveFalsyValues?!0:!!u)}var yUe=/(?:^|\/)\*\*\/?$/,vUe=/^[^*?]*(?=\/[^/]*[*?])/;function eP(e,t,r,i,o=se){t=ya(t);const s=Fd(i.useCaseSensitiveFileNames),l=new Map,u=new Map,d=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:h,validatedExcludeSpecs:y}=e,E=SM(r,o),A=$k(r,E);if(g)for(const k of g){const F=So(k,t);l.set(s(F),F)}let R;if(h&&h.length>0)for(const k of i.readDirectory(t,ia(A),y,h,void 0)){if(El(k,".json")){if(!R){const G=h.filter(J=>nl(J,".json")),j=Bt(G6(G,t,"files"),J=>`^${J}$`);R=j?j.map(J=>ov(J,i.useCaseSensitiveFileNames)):se}if(so(R,G=>G.test(k))!==-1){const G=s(k);!l.has(G)&&!d.has(G)&&d.set(G,k)}continue}if(SUe(k,l,u,E,s))continue;EUe(k,u,E,s);const F=s(k);!l.has(F)&&!u.has(F)&&u.set(F,k)}const N=Co(l.values()),P=Co(u.values());return N.concat(P,Co(d.values()))}function Noe(e,t,r,i,o){const{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:u}=t;if(!Ze(l)||!Ze(u))return!1;r=ya(r);const d=Fd(i);if(s){for(const g of s)if(d(So(g,r))===e)return!1}return Q4(e,u,i,o,r)}function JEe(e){const t=fo(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(nl(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function $4(e,t,r,i){return Q4(e,Vn(t,o=>!JEe(o)),r,i)}function Q4(e,t,r,i,o){const s=TM(t,Qr(ya(i),o),"exclude"),l=s&&ov(s,r);return l?l.test(e)?!0:!NR(e)&&l.test(Uc(e)):!1}function KEe(e,t,r,i,o){return e.filter(l=>{if(!Bo(l))return!1;const u=Moe(l,r);return u!==void 0&&t.push(s(...u)),u===void 0});function s(l,u){const d=qF(i,o,u);return s0(i,d,l,u)}}function Moe(e,t){if(C.assert(typeof e=="string"),t&&yUe.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(JEe(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function bUe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){const o=TM(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},u=new Map;if(e!==void 0){const d=[];for(const g of e){const h=ya(Qr(r,g));if(s&&s.test(h))continue;const y=TUe(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||P$l(e,l)?l:void 0);if(!s)return!1;for(const l of s){if(El(e,l)&&(l!==".ts"||!El(e,".d.ts")))return!1;const u=o(av(e,l));if(t.has(u)||r.has(u)){if(l===".d.ts"&&(El(e,".js")||El(e,".jsx")))continue;return!0}}return!1}function EUe(e,t,r,i){const o=$e(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){const l=o[s];if(El(e,l))return;const u=i(av(e,l));t.delete(u)}}function Loe(e){const t={};for(const r in e)if(Rs(e,r)){const i=iU(r);i!==void 0&&(t[r]=koe(e[r],i))}return t}function koe(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(!Mo(e))return koe(e,t.element);case"list":const r=t.element;return Mo(e)?ji(e,i=>koe(i,r)):"";default:return Hc(t.type,(i,o)=>{if(i===e)return o})}}function xo(e,t,...r){e.trace(MI(t,...r))}function wb(e,t){return!!e.traceResolution&&t.trace!==void 0}function ox(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+Js.length),version:o.version,peerDependencies:UUe(e,r)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function hU(e){return ox(void 0,e,void 0)}function XEe(e){if(e)return C.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function Z4(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 AUe(e){const t=[];return e&1&&t.push(...Yk),e&2&&t.push(...fD),e&4&&t.push(...J6),e&8&&t.push(".json"),t}function woe(e){if(e)return C.assert(X6(e.extension)),{fileName:e.path,packageId:e.packageId}}function YEe(e,t,r,i,o,s,l,u,d){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!td(e)){const{resolvedFileName:g,originalPath:h}=ZEe(t.path,l.host,l.traceEnabled);h&&(t={...t,path:g,originalPath:h})}return $Ee(t,r,i,o,s,l.resultFromCache,u,d)}function $Ee(e,t,r,i,o,s,l,u){return s?l!=null&&l.isReadonly?{...s,failedLookupLocations:Ooe(s.failedLookupLocations,r),affectingLocations:Ooe(s.affectingLocations,i),resolutionDiagnostics:Ooe(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=WD(s.failedLookupLocations,r),s.affectingLocations=WD(s.affectingLocations,i),s.resolutionDiagnostics=WD(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:tP(r),affectingLocations:tP(i),resolutionDiagnostics:tP(o),alternateResult:u}}function tP(e){return e.length?e:void 0}function WD(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function Ooe(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():tP(t)}function Woe(e,t,r,i){if(!Rs(e,t)){i.traceEnabled&&xo(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&&xo(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 _U(e,t,r,i){const o=Woe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&xo(i.host,f.package_json_had_a_falsy_0_field,t);return}const s=ya(Qr(r,o));return i.traceEnabled&&xo(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function IUe(e,t,r){return _U(e,"typings",t,r)||_U(e,"types",t,r)}function xUe(e,t,r){return _U(e,"tsconfig",t,r)}function RUe(e,t,r){return _U(e,"main",t,r)}function DUe(e,t){const r=Woe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&xo(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function CUe(e,t){const r=DUe(e,t);if(r===void 0)return;if(t.traceEnabled)for(const l in r)Rs(r,l)&&!q8.tryParse(l)&&xo(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);const i=e3(r);if(!i){t.traceEnabled&&xo(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,_e);return}const{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&xo(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 Foe;function e3(e){Foe||(Foe=new ih(Le));for(const t in e){if(!Rs(e,t))continue;const r=q8.tryParse(t);if(r!==void 0&&r.test(Foe))return{version:t,paths:e[t]}}}function nP(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 NUe(r)}function NUe(e){let t;return AN(ya(e),r=>{const i=Qr(r,MUe);(t??(t=[])).push(i)}),t}var MUe=Qr("node_modules","@types");function QEe(e,t,r){const i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return ey(e,t,!i)===0}function ZEe(e,t,r){const i=c1e(e,t,r),o=QEe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function e1e(e,t,r){const i=nl(e,"/node_modules/@types")||nl(e,"/node_modules/@types/")?S1e(t,r):t;return Qr(e,i)}function zoe(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=wb(r,i);o&&(r=o.commandLine.options);const d=t?ci(t):void 0;let g=d?s==null?void 0:s.getFromDirectoryCache(e,l,d,o):void 0;if(!g&&d&&!td(e)&&(g=s==null?void 0:s.getFromNonRelativeNameCache(e,l,d,o)),g)return u&&(xo(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),xo(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),j(g)),g;const h=nP(r,i);u&&(t===void 0?h===void 0?xo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):xo(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,h):h===void 0?xo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):xo(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,h),o&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=[],E=[];let A=Boe(r);l!==void 0&&(A|=30);const R=iu(r);l===99&&3<=R&&R<=99&&(A|=32);const N=A&8?Ob(r,l):[],P=[],k={compilerOptions:r,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:E,packageJsonInfoCache:s,features:A,conditions:N,requestContainingDirectory:d,reportDiagnostic:q=>void P.push(q),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let F=J(),O=!0;F||(F=Z(),O=!1);let G;if(F){const{fileName:q,packageId:ye}=F;let ie=q,K;r.preserveSymlinks||({resolvedFileName:ie,originalPath:K}=ZEe(q,i,u)),G={primary:O,resolvedFileName:ie,originalPath:K,packageId:ye,isExternalLibraryImport:Wb(q)}}return g={resolvedTypeReferenceDirective:G,failedLookupLocations:tP(y),affectingLocations:tP(E),resolutionDiagnostics:tP(P)},d&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(d,o).set(e,l,g),td(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(d,g)),u&&j(g),g;function j(q){var ye;(ye=q.resolvedTypeReferenceDirective)!=null&&ye.resolvedFileName?q.resolvedTypeReferenceDirective.packageId?xo(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):xo(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,q.resolvedTypeReferenceDirective.resolvedFileName,q.resolvedTypeReferenceDirective.primary):xo(i,f.Type_reference_directive_0_was_not_resolved,e)}function J(){if(h&&h.length)return u&&xo(i,f.Resolving_with_primary_search_path_0,h.join(", ")),Bn(h,q=>{const ye=e1e(q,e,k),ie=ch(q,i);if(!ie&&u&&xo(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,q),r.typeRoots){const K=BD(4,ye,!ie,k);if(K){const pe=Bw(K.path),de=pe?L1(pe,!1,k):void 0;return woe(ox(de,K,k))}}return woe(Koe(4,ye,!ie,k))});u&&xo(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Z(){const q=t&&ci(t);if(q!==void 0){let ye;if(!r.typeRoots||!nl(t,vP))if(u&&xo(i,f.Looking_up_in_node_modules_folder_initial_location_0,q),td(e)){const{path:ie}=l1e(q,e);ye=bU(4,ie,!1,k,!0)}else{const ie=y1e(4,e,q,k,void 0,void 0);ye=ie&&ie.value}else u&&xo(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return woe(ye)}else u&&xo(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Boe(e){let t=0;switch(iu(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 Ob(e,t){const r=iu(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"),lo(i,e.customConditions)}function gU(e,t,r,i,o){const s=iP(o==null?void 0:o.getPackageJsonInfoCache(),i,r);return F_(i,t,l=>{if(Ic(l)!=="node_modules"){const u=Qr(l,"node_modules"),d=Qr(u,e);return L1(d,!1,s)}})}function t3(e,t){if(e.types)return e.types;const r=[];if(t.directoryExists&&t.getDirectories){const i=nP(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)&&lD(u,t).typings===null)){const g=Ic(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function n3(e){return!!(e!=null&&e.contents)}function Goe(e){return!!e&&!e.contents}function Voe(e){var t;if(e===null||typeof e!="object")return""+e;if(Mo(e))return`[${(t=e.map(i=>Voe(i)))==null?void 0:t.join(",")}]`;let r="{";for(const i in e)Rs(e,i)&&(r+=`${i}: ${Voe(e[i])}`);return r+"}"}function yU(e,t){return t.map(r=>Voe(F6(e,r))).join("|")+`|${e.pathsBasePath}`}function t1e(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:g,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 g(){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=yU(y,eU)),E}}function PUe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(u){return r==null?void 0:r.get(ks(u,e,t))}function o(u,d){(r||(r=new Map)).set(ks(u,e,t),d)}function s(){r=void 0}function l(){return r}}function n1e(e,t,r,i){const o=e.getOrCreateMapOfCacheRedirects(t);let s=o.get(r);return s||(s=i(),o.set(r,s)),s}function LUe(e,t,r,i){const o=t1e(r,i);return{getFromDirectoryCache:d,getOrCreateCacheForDirectory:u,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(g){o.update(g)}function u(g,h){const y=ks(g,e,t);return n1e(o,h,y,()=>FD())}function d(g,h,y,E){var A,R;const N=ks(y,e,t);return(R=(A=o.getMapOfCacheRedirects(E))==null?void 0:A.get(N))==null?void 0:R.get(g,h)}}function rP(e,t){return t===void 0?e:`${t}|${e}`}function FD(){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=rP(o,s);return t.set(l,[o,s]),l}}function kUe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function wUe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function OUe(e,t,r,i,o){const s=t1e(r,o);return{getFromNonRelativeNameCache:d,getOrCreateCacheForNonRelativeName:g,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(!td(y)),(P=(N=s.getMapOfCacheRedirects(R))==null?void 0:N.get(rP(y,E)))==null?void 0:P.get(A)}function g(y,E,A){return C.assert(!td(y)),n1e(s,A,rP(y,E),h)}function h(){const y=new Map;return{get:E,set:A};function E(N){return y.get(ks(N,e,t))}function A(N,P){const k=ks(N,e,t);if(y.has(k))return;y.set(k,P);const F=i(P),O=F&&R(k,F);let G=k;for(;G!==O;){const j=ci(G);if(j===G||y.has(j))break;y.set(j,P),G=j}}function R(N,P){const k=ks(ci(P),e,t);let F=0;const O=Math.min(N.length,k.length);for(;Fi,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:s};function d(){g(),i.clear()}function g(){l.clear(),u.clear()}function h(y){l.update(y),u.update(y)}}function zD(e,t,r,i,o){const s=r1e(e,t,r,i,kUe,o);return s.getOrCreateCacheForModuleName=(l,u,d)=>s.getOrCreateCacheForNonRelativeName(l,u,d),s}function r3(e,t,r,i,o){return r1e(e,t,r,i,wUe,o)}function vU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function i3(e,t,r,i,o){return P1(e,t,vU(r),i,o)}function i1e(e,t,r,i){const o=ci(t);return r.getFromDirectoryCache(e,i,o,void 0)}function P1(e,t,r,i,o,s,l){const u=wb(r,i);s&&(r=s.commandLine.options),u&&(xo(i,f.Resolving_module_0_from_1,e,t),s&&xo(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const d=ci(t);let g=o==null?void 0:o.getFromDirectoryCache(e,l,d,s);if(g)u&&xo(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=iu(r),u&&xo(i,f.Module_resolution_kind_is_not_specified_using_0,DR[h])):u&&xo(i,f.Explicitly_specified_module_resolution_kind_Colon_0,DR[h]),h){case 3:g=BUe(e,t,r,i,o,s,l);break;case 99:g=GUe(e,t,r,i,o,s,l);break;case 2:g=Hoe(e,t,r,i,o,s,l?Ob(r,l):void 0);break;case 1:g=$oe(e,t,r,i,o,s);break;case 100:g=Uoe(e,t,r,i,o,s,l?Ob(r,l):void 0);break;default:return C.fail(`Unexpected moduleResolution: ${h}`)}o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(d,s).set(e,l,g),td(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(d,g))}return u&&(g.resolvedModule?g.resolvedModule.packageId?xo(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,g.resolvedModule.resolvedFileName,wT(g.resolvedModule.packageId)):xo(i,f.Module_name_0_was_successfully_resolved_to_1,e,g.resolvedModule.resolvedFileName):xo(i,f.Module_name_0_was_not_resolved,e)),g}function o1e(e,t,r,i,o){const s=WUe(e,t,i,o);return s?s.value:td(t)?FUe(e,t,r,i,o):zUe(e,t,i,o)}function WUe(e,t,r,i){const{baseUrl:o,paths:s}=i.compilerOptions;if(s&&!Zp(t)){i.traceEnabled&&(o&&xo(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),xo(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const l=g6(i.compilerOptions,i.host),u=ew(s);return Xoe(e,t,l,s,u,r,!1,i)}}function FUe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&xo(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 g=ya(d);nl(g,Js)||(g+=Js);const h=fo(s,g)&&(u===void 0||u.length(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))(joe||{});function BUe(e,t,r,i,o,s,l){return s1e(30,e,t,r,i,o,s,l)}function GUe(e,t,r,i,o,s,l){return s1e(30,e,t,r,i,o,s,l)}function s1e(e,t,r,i,o,s,l,u,d){const g=ci(r),h=u===99?32:0;let y=i.noDtsResolution?3:7;return kS(i)&&(y|=8),zw(e|h,t,g,i,o,s,y,!1,l,d)}function VUe(e,t,r){return zw(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function Uoe(e,t,r,i,o,s,l){const u=ci(t);let d=r.noDtsResolution?3:7;return kS(r)&&(d|=8),zw(Boe(r),e,u,r,i,o,d,!1,s,l)}function Hoe(e,t,r,i,o,s,l,u){let d;return u?d=8:r.noDtsResolution?(d=3,kS(r)&&(d|=8)):d=kS(r)?15:7,zw(l?30:0,e,ci(t),r,i,o,d,!!u,s,l)}function qoe(e,t,r){return zw(30,e,ci(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function zw(e,t,r,i,o,s,l,u,d,g){var h,y,E,A,R;const N=wb(i,o),P=[],k=[],F=iu(i);g??(g=Ob(i,F===100||F===2?void 0:e&32?99:1));const O=[],G={compilerOptions:i,host:o,traceEnabled:N,failedLookupLocations:P,affectingLocations:k,packageJsonInfoCache:s,features:e,conditions:g??se,requestContainingDirectory:r,reportDiagnostic:q=>void O.push(q),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};N&&pD(F)&&xo(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,ye=l&-6;j=q&&Z(q,G)||ye&&Z(ye,G)||void 0}else j=Z(l,G);let J;if(G.resolvedPackageDirectory&&!u&&!td(t)){const q=(j==null?void 0:j.value)&&l&5&&!h1e(5,j.value.resolved.extension);if((h=j==null?void 0:j.value)!=null&&h.isExternalLibraryImport&&q&&e&8&&(g!=null&&g.includes("import"))){Fb(G,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ye={...G,features:G.features&-9,reportDiagnostic:gs},ie=Z(l&5,ye);(y=ie==null?void 0:ie.value)!=null&&y.isExternalLibraryImport&&(J=ie.value.resolved.path)}else if((!(j!=null&&j.value)||q)&&F===2){Fb(G,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const ye={...G.compilerOptions,moduleResolution:100},ie={...G,compilerOptions:ye,features:30,conditions:Ob(ye),reportDiagnostic:gs},K=Z(l&5,ie);(E=K==null?void 0:K.value)!=null&&E.isExternalLibraryImport&&(J=K.value.resolved.path)}}return YEe(t,(A=j==null?void 0:j.value)==null?void 0:A.resolved,(R=j==null?void 0:j.value)==null?void 0:R.isExternalLibraryImport,P,k,O,G,s,J);function Z(q,ye){const K=o1e(q,t,r,(pe,de,fe,ve)=>bU(pe,de,fe,ve,!0),ye);if(K)return hf({resolved:K,isExternalLibraryImport:Wb(K.path)});if(td(t)){const{path:pe,parts:de}=l1e(r,t),fe=bU(q,pe,!1,ye,!0);return fe&&hf({resolved:fe,isExternalLibraryImport:Ln(de,"node_modules")})}else{if(e&2&&fo(t,"#")){const de=KUe(q,t,r,ye,s,d);if(de)return de.value&&{value:{resolved:de.value,isExternalLibraryImport:!1}}}if(e&4){const de=JUe(q,t,r,ye,s,d);if(de)return de.value&&{value:{resolved:de.value,isExternalLibraryImport:!1}}}if(t.includes(":")){N&&xo(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,Z4(q));return}N&&xo(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,Z4(q));let pe=y1e(q,t,r,ye,s,d);return q&4&&(pe??(pe=A1e(t,ye))),pe&&{value:pe.value&&{resolved:pe.value,isExternalLibraryImport:!0}}}}}function l1e(e,t){const r=Qr(e,t),i=zd(r),o=tl(i);return{path:o==="."||o===".."?Uc(ya(r)):ya(r),parts:i}}function c1e(e,t,r){if(!t.realpath)return e;const i=ya(t.realpath(e));return r&&xo(t,f.Resolving_real_path_for_0_result_1,e,i),i}function bU(e,t,r,i,o){if(i.traceEnabled&&xo(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,Z4(e)),!ob(t)){if(!r){const l=ci(t);ch(l,i.host)||(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}const s=BD(e,t,r,i);if(s){const l=o?Bw(s.path):void 0,u=l?L1(l,!1,i):void 0;return ox(u,s,i)}}if(r||ch(t,i.host)||(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Koe(e,t,r,i,o)}var Dg="/node_modules/";function Wb(e){return e.includes(Dg)}function Bw(e,t){const r=ya(e),i=r.lastIndexOf(Dg);if(i===-1)return;const o=i+Dg.length;let s=d1e(r,o,t);return r.charCodeAt(o)===64&&(s=d1e(r,s,t)),r.slice(0,s)}function d1e(e,t,r){const i=e.indexOf(Js,t+1);return i===-1?r?e.length:t:i}function Joe(e,t,r,i){return hU(BD(e,t,r,i))}function BD(e,t,r,i){const o=u1e(e,t,r,i);if(o)return o;if(!(i.features&32)){const s=p1e(t,e,"",r,i);if(s)return s}}function u1e(e,t,r,i){if(!Ic(t).includes("."))return;let s=Tu(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));const l=t.substring(s.length);return i.traceEnabled&&xo(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),p1e(s,e,l,r,i)}function TU(e,t,r,i,o){if(e&1&&$l(t,Yk)||e&4&&$l(t,J6)){const s=SU(t,i,o),l=x6(t);return s!==void 0?{path:t,ext:l,resolvedUsingTsExtension:r?!nl(r,l):void 0}:void 0}return o.isConfigLookup&&e===8&&El(t,".json")?SU(t,i,o)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:u1e(e,t,i,o)}function p1e(e,t,r,i,o){if(!i){const l=ci(e);l&&(i=!ch(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&&!ad(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,u){const d=SU(e+l,i,o);return d===void 0?void 0:{path:d,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&u}}}function SU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return f1e(e,t,r);const o=Eg(e)??"",s=o?Zk(e,o):e;return $e(r.compilerOptions.moduleSuffixes,l=>f1e(s+l+o,t,r))}function f1e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&xo(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&xo(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function Koe(e,t,r,i,o=!0){const s=o?L1(t,r,i):void 0;return ox(s,AU(e,t,r,i,s),i)}function EU(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=Boe(t),d=iP(i==null?void 0:i.getPackageJsonInfoCache(),r,t);d.conditions=Ob(t),d.requestContainingDirectory=e.packageDirectory;const g=AU(l,e.packageDirectory,!1,d,e);if(s=Un(s,g==null?void 0:g.path),u&8&&e.contents.packageJsonContent.exports){const h=dS([Ob(t,99),Ob(t,1)],Qp);for(const y of h){const E={...d,failedLookupLocations:[],conditions:y,host:r},A=jUe(e,e.contents.packageJsonContent.exports,E,l);if(A)for(const R of A)s=Qg(s,R.path)}}return e.contents.resolvedEntrypoints=s||!1}function jUe(e,t,r,i){let o;if(Mo(t))for(const l of t)s(l);else if(typeof t=="object"&&t!==null&&a3(t))for(const l in t)s(t[l]);else s(t);return o;function s(l){var u,d;if(typeof l=="string"&&fo(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,AUe(i),void 0,[nF(h1(l,"**/*"),".*")]).forEach(g=>{o=Qg(o,{path:g,ext:nI(g),resolvedUsingTsExtension:void 0})})}else{const g=zd(l).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;const h=Qr(e.packageDirectory,l),y=So(h,(d=(u=r.host).getCurrentDirectory)==null?void 0:d.call(u)),E=TU(i,y,l,!1,r);if(E)return o=Qg(o,E,(A,R)=>A.path===R.path),!0}else if(Array.isArray(l)){for(const g of l)if(s(g))return!0}else if(typeof l=="object"&&l!==null)return $e(Fh(l),g=>{if(g==="default"||Ln(r.conditions,g)||Gw(r.conditions,g))return s(l[g]),!0})}}function iP(e,t,r){return{host:t,compilerOptions:r,traceEnabled:wb(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:se,requestContainingDirectory:void 0,reportDiagnostic:gs,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function oP(e,t){return F_(t.host,e,r=>L1(r,!1,t))}function m1e(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=CUe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function UUe(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=HUe(e,t)||!1),e.contents.peerDependencies||void 0}function HUe(e,t){const r=Woe(e.contents.packageJsonContent,"peerDependencies","object",t);if(r===void 0)return;t.traceEnabled&&xo(t.host,f.package_json_has_a_peerDependencies_field);const i=c1e(e.packageDirectory,t.host,t.traceEnabled),o=i.substring(0,i.lastIndexOf("node_modules")+12)+Js;let s="";for(const l in r)if(Rs(r,l)){const u=L1(o+l,!1,t);if(u){const d=u.contents.packageJsonContent.version;s+=`+${l}@${d}`,t.traceEnabled&&xo(t.host,f.Found_peerDependency_0_with_1_version,l,d)}else t.traceEnabled&&xo(t.host,f.Failed_to_find_peerDependency_0,l)}return s}function L1(e,t,r){var i,o,s,l,u,d;const{host:g,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(n3(E))return h&&xo(g,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&&xo(g,f.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(l=r.failedLookupLocations)==null||l.push(y);return}const A=ch(e,g);if(A&&g.fileExists(y)){const R=lD(y,g);h&&xo(g,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&&xo(g,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 AU(e,t,r,i,o){const s=o&&m1e(o,i);let l;o&&QEe(o==null?void 0:o.packageDirectory,t,i.host)&&(i.isConfigLookup?l=xUe(o.contents.packageJsonContent,o.packageDirectory,i):l=e&4&&IUe(o.contents.packageJsonContent,o.packageDirectory,i)||e&7&&RUe(o.contents.packageJsonContent,o.packageDirectory,i)||void 0);const u=(E,A,R,N)=>{const P=TU(E,A,void 0,R,N);if(P)return hU(P);const k=E===4?5:E,F=N.features,O=N.candidateIsFromPackageJsonField;N.candidateIsFromPackageJsonField=!0,(o==null?void 0:o.contents.packageJsonContent.type)!=="module"&&(N.features&=-33);const G=bU(k,A,R,N,!1);return N.features=F,N.candidateIsFromPackageJsonField=O,G},d=l?!ch(ci(l),i.host):void 0,g=r||!ch(t,i.host),h=Qr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||pm(t,l))){const E=cf(t,l||h,!1);i.traceEnabled&&xo(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,Le,E);const A=ew(s.paths),R=Xoe(e,E,t,s.paths,A,u,d||g,i);if(R)return XEe(R.value)}const y=l&&XEe(u(e,l,d,i));if(y)return y;if(!(i.features&32))return BD(e,h,g,i)}function h1e(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 o3(e){let t=e.indexOf(Js);return e[0]==="@"&&(t=e.indexOf(Js,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function a3(e){return Hn(Fh(e),t=>fo(t,"."))}function qUe(e){return!vt(Fh(e),t=>fo(t,"."))}function JUe(e,t,r,i,o,s){var l,u;const d=So(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=oP(d,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;const h=zd(t),y=zd(g.contents.packageJsonContent.name);if(!Hn(y,(P,k)=>h[k]===P))return;const E=h.slice(y.length),A=Ze(E)?`.${Js}${E.join(Js)}`:".";if(xb(i.compilerOptions)&&!Wb(r))return IU(g,e,A,i,o,s);const R=e&5,N=e&-6;return IU(g,R,A,i,o,s)||IU(g,N,A,i,o,s)}function IU(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"&&qUe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:Rs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return g1e(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(a3(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&xo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),hf(void 0);const l=_1e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&xo(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),hf(void 0)}}function KUe(e,t,r,i,o,s){var l,u;if(t==="#"||fo(t,"#/"))return i.traceEnabled&&xo(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),hf(void 0);const d=So(r,(u=(l=i.host).getCurrentDirectory)==null?void 0:u.call(l)),g=oP(d,i);if(!g)return i.traceEnabled&&xo(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),hf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&xo(i.host,f.package_json_scope_0_has_no_imports_defined,g.packageDirectory),hf(void 0);const h=_1e(e,i,o,s,t,g.contents.packageJsonContent.imports,g,!0);return h||(i.traceEnabled&&xo(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),hf(void 0))}function xU(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 _1e(e,t,r,i,o,s,l,u){const d=g1e(e,t,r,i,o,l,u);if(!nl(o,Js)&&!o.includes("*")&&Rs(s,o)){const y=s[o];return d(y,"",!1,o)}const g=xp(Vn(Fh(s),y=>XUe(y)||nl(y,"/")),xU);for(const y of g)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,"*")&&fo(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(fo(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:fo(E,y.substring(0,A))&&nl(E,y.substring(A+1))}}function XUe(e){const t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function g1e(e,t,r,i,o,s,l){return u;function u(d,g,h,y){var E,A;if(typeof d=="string"){if(!h&&g.length>0&&!nl(d,"/"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);if(!fo(d,"./")){if(l&&!fo(d,"../")&&!fo(d,"/")&&!Cp(d)){const Z=h?d.replace(/\*/g,g):d+g;Fb(t,f.Using_0_subpath_1_with_target_2,"imports",y,Z),Fb(t,f.Resolving_module_0_from_1,Z,s.packageDirectory+"/");const q=zw(t.features,Z,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return(E=t.failedLookupLocations)==null||E.push(...q.failedLookupLocations??se),(A=t.affectingLocations)==null||A.push(...q.affectingLocations??se),hf(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&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0)}const F=(Zp(d)?zd(d).slice(1):zd(d)).slice(1);if(F.includes("..")||F.includes(".")||F.includes("node_modules"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);const O=Qr(s.packageDirectory,d),G=zd(g);if(G.includes("..")||G.includes(".")||G.includes("node_modules"))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);t.traceEnabled&&xo(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",y,h?d.replace(/\*/g,g):d+g);const j=R(h?O.replace(/\*/g,g):O+g),J=P(j,g,Qr(s.packageDirectory,"package.json"),l);return J||hf(ox(s,TU(e,j,d,!1,t),t))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!Ze(d))return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);for(const k of d){const F=u(k,g,h,y);if(F)return F}}else{Fb(t,f.Entering_conditional_exports);for(const k of Fh(d))if(k==="default"||t.conditions.includes(k)||Gw(t.conditions,k)){Fb(t,f.Matched_0_condition_1,l?"imports":"exports",k);const F=d[k],O=u(F,g,h,y);if(O)return Fb(t,f.Resolved_under_condition_0,k),Fb(t,f.Exiting_conditional_exports),O;Fb(t,f.Failed_to_resolve_under_condition_0,k)}else Fb(t,f.Saw_non_matching_condition_0,k);Fb(t,f.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&xo(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),hf(void 0);return t.traceEnabled&&xo(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),hf(void 0);function R(k){var F,O;return k===void 0?k:So(k,(O=(F=t.host).getCurrentDirectory)==null?void 0:O.call(F))}function N(k,F){return Uc(Qr(k,F))}function P(k,F,O,G){var j,J,Z,q;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!k.includes("/node_modules/")&&(!t.compilerOptions.configFile||pm(s.packageDirectory,R(t.compilerOptions.configFile.fileName),!RU(t)))){const ie=sy({useCaseSensitiveFileNames:()=>RU(t)}),K=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const pe=R(gP(t.compilerOptions,()=>[],((J=(j=t.host).getCurrentDirectory)==null?void 0:J.call(j))||"",ie));K.push(pe)}else if(t.requestContainingDirectory){const pe=R(Qr(t.requestContainingDirectory,"index.ts")),de=R(gP(t.compilerOptions,()=>[pe,R(O)],((q=(Z=t.host).getCurrentDirectory)==null?void 0:q.call(Z))||"",ie));K.push(de);let fe=Uc(de);for(;fe&&fe.length>1;){const ve=zd(fe);ve.pop();const xe=MT(ve);K.unshift(xe),fe=Uc(xe)}}K.length>1&&t.reportDiagnostic(Il(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,O));for(const pe of K){const de=ye(pe);for(const fe of de)if(pm(fe,k,!RU(t))){const ve=k.slice(fe.length+1),xe=Qr(pe,ve),X=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Ce of X)if(El(xe,Ce)){const Je=iV(xe);for(const Se of Je){if(!h1e(e,Se))continue;const re=E2(xe,Se,Ce,!RU(t));if(t.host.fileExists(re))return hf(ox(s,TU(e,re,void 0,!1,t),t))}}}}}return;function ye(ie){var K,pe;const de=t.compilerOptions.configFile?((pe=(K=t.host).getCurrentDirectory)==null?void 0:pe.call(K))||"":ie,fe=[];return t.compilerOptions.declarationDir&&fe.push(R(N(de,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&fe.push(R(N(de,t.compilerOptions.outDir))),fe}}}}function Gw(e,t){if(!e.includes("types")||!fo(t,"types@"))return!1;const r=q8.tryParse(t.substring(6));return r?r.test(Le):!1}function y1e(e,t,r,i,o,s){return v1e(e,t,r,i,!1,o,s)}function YUe(e,t,r){return v1e(4,e,t,r,!0,void 0,void 0)}function v1e(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,g=e&-6;if(d){Fb(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Z4(d));const y=h(d);if(y)return y}if(g&&!o)return Fb(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Z4(g)),h(g);function h(y){return F_(i.host,Bd(r),E=>{if(Ic(E)!=="node_modules"){const A=E1e(s,t,u,E,l,i);return A||hf(b1e(y,t,E,i,o,s,l))}})}}function F_(e,t,r){var i;const o=(i=e==null?void 0:e.getGlobalTypingsCacheLocation)==null?void 0:i.call(e);return AN(t,s=>{const l=r(s);if(l!==void 0)return l;if(s===o)return!1})||void 0}function b1e(e,t,r,i,o,s,l){const u=Qr(r,"node_modules"),d=ch(u,i.host);if(!d&&i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!o){const g=T1e(e,t,u,d,i,s,l);if(g)return g}if(e&4){const g=Qr(u,"@types");let h=d;return d&&!ch(g,i.host)&&(i.traceEnabled&&xo(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),h=!1),T1e(4,S1e(t,i),g,h,i,s,l)}}function T1e(e,t,r,i,o,s,l){var u,d;const g=ya(Qr(r,t)),{packageName:h,rest:y}=o3(t),E=Qr(r,h);let A,R=L1(g,!i,o);if(y!==""&&R&&(!(o.features&8)||!Rs(((u=A=L1(E,!i,o))==null?void 0:u.contents.packageJsonContent)??se,"exports"))){const k=BD(e,g,!i,o);if(k)return hU(k);const F=AU(e,g,!i,o,R);return ox(R,F,o)}const N=(k,F,O,G)=>{let j=(y||!(G.features&32))&&BD(k,F,O,G)||AU(k,F,O,G,R);return!j&&!y&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&G.features&32&&(j=BD(k,Qr(F,"index.js"),O,G)),ox(R,j,G)};if(y!==""&&(R=A??L1(E,!i,o)),R&&(o.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&o.features&8)return(d=IU(R,e,Qr(".",y),o,s,l))==null?void 0:d.value;const P=y!==""&&R?m1e(R,o):void 0;if(P){o.traceEnabled&&xo(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,Le,y);const k=i&&ch(E,o.host),F=ew(P.paths),O=Xoe(e,y,E,P.paths,F,N,!k,o);if(O)return O.value}return N(e,g,!i,o)}function Xoe(e,t,r,i,o,s,l,u){const d=BV(o,t);if(d){const g=Bo(d)?void 0:tZ(d,t),h=Bo(d)?d:eZ(d);return u.traceEnabled&&xo(u.host,f.Module_name_0_matched_pattern_1,t,h),{value:$e(i[h],E=>{const A=g?h1(E,g):E,R=ya(Qr(r,A));u.traceEnabled&&xo(u.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,A);const N=Eg(E);if(N!==void 0){const P=SU(R,l,u);if(P!==void 0)return hU({path:P,ext:N,resolvedUsingTsExtension:void 0})}return s(e,R,l||!ch(ci(R),u.host),u)})}}}var Yoe="__";function S1e(e,t){const r=GD(e);return t.traceEnabled&&r!==e&&xo(t.host,f.Scoped_package_detected_looking_in_0,r),r}function s3(e){return`@types/${GD(e)}`}function GD(e){if(fo(e,"@")){const t=e.replace(Js,Yoe);if(t!==e)return t.slice(1)}return e}function aP(e){const t=hN(e,"@types/");return t!==e?Vw(t):e}function Vw(e){return e.includes(Yoe)?"@"+e.replace(Yoe,Js):e}function E1e(e,t,r,i,o,s){const l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&xo(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 $oe(e,t,r,i,o,s){const l=wb(r,i),u=[],d=[],g=ci(t),h=[],y={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:R=>void h.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=A(5)||A(2|(r.resolveJsonModule?8:0));return YEe(e,E&&E.value,(E==null?void 0:E.value)&&Wb(E.value.path),u,d,h,y,o);function A(R){const N=o1e(R,e,g,Joe,y);if(N)return{value:N};if(td(e)){const P=ya(Qr(g,e));return hf(Joe(R,P,!1,y))}else{const P=F_(y.host,g,k=>{const F=E1e(o,e,void 0,k,s,y);if(F)return F;const O=ya(Qr(k,e));return hf(Joe(R,O,!1,y))});if(P)return P;if(R&5){let k=YUe(e,g,y);return R&4&&(k??(k=A1e(e,y))),k}}}}function A1e(e,t){if(t.compilerOptions.typeRoots)for(const r of t.compilerOptions.typeRoots){const i=e1e(r,e,t),o=ch(r,t.host);!o&&t.traceEnabled&&xo(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);const s=BD(4,i,!o,t);if(s){const u=Bw(s.path),d=u?L1(u,!1,t):void 0;return hf(ox(d,s,t))}const l=Koe(4,i,!o,t);if(l)return hf(l)}}function VD(e,t){return lre(e)||!!t&&ad(t)}function Qoe(e,t,r,i,o,s){const l=wb(r,i);l&&xo(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=[],g=[],h={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void g.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=b1e(4,e,o,h,!1,void 0,void 0);return $Ee(y,!0,u,d,g,h.resultFromCache,void 0)}function hf(e){return e!==void 0?{value:e}:void 0}function Fb(e,t,...r){e.traceEnabled&&xo(e.host,t,...r)}function RU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Zoe=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Zoe||{});function hy(e,t){return e.body&&!e.body.parent&&(ps(e.body,e),qT(e.body,!1)),e.body?eae(e.body,t):1}function eae(e,t=new Map){const r=ls(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);const i=$Ue(e,t);return t.set(r,i),i}function $Ue(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(OT(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=QUe(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=eae(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 hy(e,t);case 80:if(e.flags&4096)return 0}return 1}function QUe(e,t){const r=e.propertyName||e.name;if(r.kind!==80)return 1;let i=e.parent;for(;i;){if(ea(i)||n_(i)||Yi(i)){const o=i.statements;let s;for(const l of o)if(k2(l,r)){l.parent||(ps(l,i),qT(l,!1));const u=eae(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 z_(e,t,r){return C.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:r})}var ZUe=eHe();function nae(e,t){Rl("beforeBind"),ZUe(e,t),Rl("afterBind"),wf("Bind","beforeBind","afterBind")}function eHe(){var e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N,P,k,F,O,G,j,J,Z,q,ye=!1,ie=0,K,pe,de=z_(1,void 0,void 0),fe=z_(1,void 0,void 0),ve=B();return X;function xe(z,Ve,...kt){return Wf(Fn(z)||e,z,Ve,...kt)}function X(z,Ve){var kt,Wn;e=z,t=Ve,r=Ga(t),q=Ce(e,Ve),pe=new Set,ie=0,K=Rd.getSymbolConstructor(),C.attachFlowNodeDebugInfo(de),C.attachFlowNodeDebugInfo(fe),e.locals||((kt=xr)==null||kt.push(xr.Phase.Bind,"bindSourceFile",{path:e.path},!0),zn(e),(Wn=xr)==null||Wn.pop(),e.symbolCount=ie,e.classifiableNames=pe,$s(),Ra()),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,g=!1,y=void 0,E=void 0,A=void 0,R=void 0,N=void 0,P=void 0,k=void 0,O=void 0,G=!1,j=!1,J=!1,ye=!1,Z=0}function Ce(z,Ve){return Vd(Ve,"alwaysStrict")&&!z.isDeclarationFile?!0:!!z.externalModuleIndicator}function Je(z,Ve){return ie++,new K(z,Ve)}function Se(z,Ve,kt){z.flags|=kt,Ve.symbol=z,z.declarations=Qg(z.declarations,Ve),kt&1955&&!z.exports&&(z.exports=da()),kt&6240&&!z.members&&(z.members=da()),z.constEnumOnlyModule&&z.flags&304&&(z.constEnumOnlyModule=!1),kt&111551&&ZN(z,Ve)}function re(z){if(z.kind===278)return z.isExportEquals?"export=":"default";const Ve=Oo(z);if(Ve){if(yu(z)){const kt=zf(Ve);return P_(z)?"__global":`"${kt}"`}if(Ve.kind===168){const kt=Ve.expression;if(uf(kt))return Cl(kt.text);if(d6(kt))return ga(kt.operator)+kt.operand.text;C.fail("Only computed properties with literal names have declaration names")}if(eo(Ve)){const kt=hd(z);if(!kt)return;const Wn=kt.symbol;return Ck(Wn,Ve.escapedText)}return fh(Ve)?OI(Ve):Jh(Ve)?aM(Ve):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(ac(z)===2)return"export=";C.fail("Unknown binary declaration kind");break;case 318:return bI(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 be(z){return nd(z)?ws(z.name):Bi(C.checkDefined(re(z)))}function Ne(z,Ve,kt,Wn,vo,ta,Ao){C.assert(Ao||!ay(kt));const Vo=di(kt,2048)||ou(kt)&&M_(kt.name),hl=Ao?"__computed":Vo&&Ve?"default":re(kt);let Ca;if(hl===void 0)Ca=Je(0,"__missing");else if(Ca=z.get(hl),Wn&2885600&&pe.add(hl),!Ca)z.set(hl,Ca=Je(0,hl)),ta&&(Ca.isReplaceableByMethod=!0);else{if(ta&&!Ca.isReplaceableByMethod)return Ca;if(Ca.flags&vo){if(Ca.isReplaceableByMethod)z.set(hl,Ca=Je(0,hl));else if(!(Wn&3&&Ca.flags&67108864)){nd(kt)&&ps(kt.name,kt);let cd=Ca.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Up=!0;(Ca.flags&384||Wn&384)&&(cd=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Up=!1);let Sf=!1;Ze(Ca.declarations)&&(Vo||Ca.declarations&&Ca.declarations.length&&kt.kind===278&&!kt.isExportEquals)&&(cd=f.A_module_cannot_have_multiple_default_exports,Up=!1,Sf=!0);const Yf=[];bm(kt)&&Ol(kt.type)&&di(kt,32)&&Ca.flags&2887656&&Yf.push(xe(kt,f.Did_you_mean_0,`export type { ${Bi(kt.name.escapedText)} }`));const Sy=Oo(kt)||kt;$e(Ca.declarations,(Bu,j_)=>{const Th=Oo(Bu)||Bu,xm=Up?xe(Th,cd,be(Bu)):xe(Th,cd);e.bindDiagnostics.push(Sf?pa(xm,xe(Sy,j_===0?f.Another_export_default_is_here:f.and_here)):xm),Sf&&Yf.push(xe(Th,f.The_first_export_default_is_here))});const Tv=Up?xe(Sy,cd,be(kt)):xe(Sy,cd);e.bindDiagnostics.push(pa(Tv,...Yf)),Ca=Je(0,hl)}}}return Se(Ca,kt,Wn),Ca.parent?C.assert(Ca.parent===Ve,"Existing symbol parent should match new one"):Ca.parent=Ve,Ca}function Be(z,Ve,kt){const Wn=!!(PT(z)&32)||lt(z);if(Ve&2097152)return z.kind===282||z.kind===272&&Wn?Ne(o.symbol.exports,o.symbol,z,Ve,kt):(C.assertNode(o,C_),Ne(o.locals,void 0,z,Ve,kt));if(_m(z)&&C.assert(Ir(z)),!yu(z)&&(Wn||o.flags&128)){if(!C_(o)||!o.locals||di(z,2048)&&!re(z))return Ne(o.symbol.exports,o.symbol,z,Ve,kt);const vo=Ve&111551?1048576:0,ta=Ne(o.locals,void 0,z,vo,kt);return ta.exportSymbol=Ne(o.symbol.exports,o.symbol,z,Ve,kt),z.localSymbol=ta,ta}else return C.assertNode(o,C_),Ne(o.locals,void 0,z,Ve,kt)}function lt(z){if(z.parent&&pc(z)&&(z=z.parent),!_m(z))return!1;if(!vw(z)&&z.fullName)return!0;const Ve=Oo(z);return Ve?!!(Fk(Ve.parent)&&Xf(Ve.parent)||rd(Ve.parent)&&PT(Ve.parent)&32):!1}function ce(z,Ve){const kt=o,Wn=s,vo=l,ta=j;if(z.kind===220&&z.body.kind!==242&&(j=!0),Ve&1?(z.kind!==220&&(s=o),o=l=z,Ve&32&&(o.locals=da(),En(o))):Ve&2&&(l=z,Ve&32&&(l.locals=void 0)),Ve&4){const Ao=y,Vo=E,hl=A,Ca=R,cd=k,Up=O,Sf=G,Yf=Ve&16&&!di(z,1024)&&!z.asteriskToken&&!!WT(z)||z.kind===176;Yf||(y=z_(2,void 0,void 0),Ve&144&&(y.node=z)),R=Yf||z.kind===177||Ir(z)&&(z.kind===263||z.kind===219)?en():void 0,k=void 0,E=void 0,A=void 0,O=void 0,G=!1,Ge(z),z.flags&=-5633,!(y.flags&1)&&Ve&8&&mm(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=Ci(R),(z.kind===177||z.kind===176||Ir(z)&&(z.kind===263||z.kind===219))&&(z.returnFlowNode=y)),Yf||(y=Ao),E=Vo,A=hl,R=Ca,k=cd,O=Up,G=Sf}else Ve&64?(g=!1,Ge(z),C.assertNotNode(z,He),z.flags=g?z.flags|256:z.flags&-257):Ge(z);j=ta,o=kt,s=Wn,l=vo}function Re(z){ge(z,Ve=>Ve.kind===263?zn(Ve):void 0),ge(z,Ve=>Ve.kind!==263?zn(Ve):void 0)}function ge(z,Ve=zn){z!==void 0&&$e(z,Ve)}function je(z){Jo(z,zn,ge)}function Ge(z){const Ve=ye;if(ye=!1,$i(z)){eD(z)&&z.flowNode&&(z.flowNode=void 0),je(z),ro(z),ye=Ve;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:Ue(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(rv(z)){ye=Ve,he(z);return}ve(z);break;case 221:Ae(z);break;case 228:te(z);break;case 261:Xt(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:{Re(z.statements),zn(z.endOfFileToken);break}case 242:case 269:Re(z.statements);break;case 209:Pe(z);break;case 170:yt(z);break;case 211:case 210:case 304:case 231:ye=Ve;default:je(z);break}ro(z),ye=Ve}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(qS(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(uf(z.argumentExpression)||Ds(z.argumentExpression))&&at(z.expression);case 227:return z.operatorToken.kind===28&&at(z.right)||ly(z.operatorToken.kind)&&$u(z.left)}return!1}function Wt(z){return at(z)||tu(z)&&Wt(z.expression)}function cn(z){if(z.arguments){for(const Ve of z.arguments)if(Wt(Ve))return!0}return!!(z.expression.kind===212&&Wt(z.expression.expression))}function gn(z,Ve){return TD(z)&>(z.expression)&&ds(Ve)}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 Ve=us(z.left),kt=us(z.right);return gt(Ve)||gt(kt)||gn(kt,Ve)||gn(Ve,kt)||FN(kt)&&We(Ve)||FN(Ve)&&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 z_(4,void 0,void 0)}function or(){return z_(8,void 0,void 0)}function Di(z,Ve,kt){return z_(1024,{target:z,antecedents:Ve},kt)}function co(z){z.flags|=z.flags&2048?4096:2048}function zt(z,Ve){!(Ve.flags&1)&&!Ln(z.antecedent,Ve)&&((z.antecedent||(z.antecedent=[])).push(Ve),co(Ve))}function Zr(z,Ve,kt){return Ve.flags&1?Ve:kt?(kt.kind===112&&z&64||kt.kind===97&&z&32)&&!hF(kt)&&!H9(kt.parent)?de:We(kt)?(co(Ve),z_(z,kt,Ve)):Ve:z&32?Ve:de}function Ai(z,Ve,kt,Wn){return co(z),z_(128,{switchStatement:Ve,clauseStart:kt,clauseEnd:Wn},z)}function Ni(z,Ve,kt){co(Ve),J=!0;const Wn=z_(z,kt,Ve);return k&&zt(k,Wn),Wn}function Pr(z,Ve){return co(z),J=!0,z_(512,Ve,z)}function Ci(z){const Ve=z.antecedent;return Ve?Ve.length===1?Ve[0]:z:de}function Ye(z){const Ve=z.parent;switch(Ve.kind){case 246:case 248:case 247:return Ve.expression===z;case 249:case 228:return Ve.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 Ok(z)}function mn(z){return pV(us(z))}function dr(z){for(;Ou(z.parent)||YT(z.parent)&&z.parent.operator===54;)z=z.parent;return!Ye(z)&&!At(z.parent)&&!(tu(z.parent)&&z.parent.expression===z)}function ri(z,Ve,kt,Wn){const vo=N,ta=P;N=kt,P=Wn,z(Ve),N=vo,P=ta}function ai(z,Ve,kt){ri(zn,z,Ve,kt),(!z||!mn(z)&&!At(z)&&!(tu(z)&&LN(z)))&&(zt(Ve,Zr(32,y,z)),zt(kt,Zr(64,y,z)))}function Hi(z,Ve,kt){const Wn=E,vo=A;E=Ve,A=kt,zn(z),E=Wn,A=vo}function $o(z,Ve){let kt=O;for(;kt&&z.parent.kind===257;)kt.continueTarget=Ve,kt=kt.next,z=z.parent;return Ve}function Ia(z){const Ve=$o(z,or()),kt=en(),Wn=en();zt(Ve,y),y=Ve,ai(z.expression,kt,Wn),y=Ci(kt),Hi(z.statement,Wn,Ve),zt(Ve,y),y=Ci(Wn)}function Pn(z){const Ve=or(),kt=$o(z,en()),Wn=en();zt(Ve,y),y=Ve,Hi(z.statement,Wn,kt),zt(kt,y),y=Ci(kt),ai(z.expression,Ve,Wn),y=Ci(Wn)}function Uo(z){const Ve=$o(z,or()),kt=en(),Wn=en(),vo=en();zn(z.initializer),zt(Ve,y),y=Ve,ai(z.condition,kt,vo),y=Ci(kt),Hi(z.statement,vo,Wn),zt(Wn,y),y=Ci(Wn),zn(z.incrementor),zt(Ve,y),y=Ci(vo)}function ot(z){const Ve=$o(z,or()),kt=en();zn(z.expression),zt(Ve,y),y=Ve,z.kind===251&&zn(z.awaitModifier),zt(kt,y),zn(z.initializer),z.initializer.kind!==262&&Kt(z.initializer),Hi(z.statement,kt,Ve),zt(Ve,y),y=Ci(kt)}function Ft(z){const Ve=en(),kt=en(),Wn=en();ai(z.expression,Ve,kt),y=Ci(Ve),zn(z.thenStatement),zt(Wn,y),y=Ci(kt),zn(z.elseStatement),zt(Wn,y),y=Ci(Wn)}function le(z){const Ve=j;j=!0,zn(z.expression),j=Ve,z.kind===254&&(G=!0,R&&zt(R,y)),y=de,J=!0}function ht(z){for(let Ve=O;Ve;Ve=Ve.next)if(Ve.name===z)return Ve}function ne(z,Ve,kt){const Wn=z.kind===253?Ve:kt;Wn&&(zt(Wn,y),y=de,J=!0)}function Fe(z){if(zn(z.label),z.label){const Ve=ht(z.label.escapedText);Ve&&(Ve.referenced=!0,ne(z,Ve.breakTarget,Ve.continueTarget))}else ne(z,E,A)}function it(z){const Ve=R,kt=k,Wn=en(),vo=en();let ta=en();if(z.finallyBlock&&(R=vo),zt(ta,y),k=ta,zn(z.tryBlock),zt(Wn,y),z.catchClause&&(y=Ci(ta),ta=en(),zt(ta,y),k=ta,zn(z.catchClause),zt(Wn,y)),R=Ve,k=kt,z.finallyBlock){const Ao=en();Ao.antecedent=lo(lo(Wn.antecedent,ta.antecedent),vo.antecedent),y=Ao,zn(z.finallyBlock),y.flags&1?y=de:(R&&vo.antecedent&&zt(R,Di(Ao,vo.antecedent,y)),k&&ta.antecedent&&zt(k,Di(Ao,ta.antecedent,y)),y=Wn.antecedent?Di(Ao,Wn.antecedent,y):de)}else y=Ci(Wn)}function dt(z){const Ve=en();zn(z.expression);const kt=E,Wn=F;E=Ve,F=y,zn(z.caseBlock),zt(Ve,y);const vo=$e(z.caseBlock.clauses,ta=>ta.kind===298);z.possiblyExhaustive=!vo&&!Ve.antecedent,vo||zt(Ve,Ai(F,z,0,0)),E=kt,F=Wn,y=Ci(Ve)}function Lt(z){const Ve=z.clauses,kt=z.parent.expression.kind===112||We(z.parent.expression);let Wn=de;for(let vo=0;vofc(kt)||dl(kt))}function ra(z){z.flags&33554432&&!Ii(z)?z.flags|=128:z.flags&=-129}function la(z){if(ra(z),yu(z))if(di(z,32)&&fn(z,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),yG(z))zo(z);else{let Ve;if(z.name.kind===11){const{text:Wn}=z.name;Ve=LI(Wn),Ve===void 0&&fn(z.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Wn)}const kt=xn(z,512,110735);e.patternAmbientModules=Un(e.patternAmbientModules,Ve&&!Bo(Ve)?{pattern:Ve,symbol:kt}:void 0)}else{const Ve=zo(z);if(Ve!==0){const{symbol:kt}=z;kt.constEnumOnlyModule=!(kt.flags&304)&&Ve===2&&kt.constEnumOnlyModule!==!1}}}function zo(z){const Ve=hy(z),kt=Ve!==0;return xn(z,kt?512:1024,kt?110735:0),Ve}function Bl(z){const Ve=Je(131072,re(z));Se(Ve,z,131072);const kt=Je(2048,"__type");Se(kt,z,2048),kt.members=da(),kt.members.set(Ve.escapedName,Ve)}function xl(z){return Go(z,4096,"__object")}function Ps(z){return Go(z,4096,"__jsxAttributes")}function uo(z,Ve,kt){return xn(z,Ve,kt)}function Go(z,Ve,kt){const Wn=Je(Ve,kt);return Ve&106508&&(Wn.parent=o.symbol),Se(Wn,z,Ve),Wn}function Tc(z,Ve,kt){switch(l.kind){case 268:Be(z,Ve,kt);break;case 308:if(Pp(o)){Be(z,Ve,kt);break}default:C.assertNode(l,C_),l.locals||(l.locals=da(),En(l)),Ne(l.locals,void 0,z,Ve,kt)}}function $s(){if(!d)return;const z=o,Ve=u,kt=l,Wn=i,vo=y;for(const ta of d){const Ao=ta.parent.parent;o=zF(Ao)||e,l=sh(Ao)||e,y=z_(2,void 0,void 0),i=ta,zn(ta.typeExpression);const Vo=Oo(ta);if((vw(ta)||!ta.fullName)&&Vo&&Fk(Vo.parent)){const hl=Xf(Vo.parent);if(hl){jp(e.symbol,Vo.parent,hl,!!Dn(Vo,cd=>qr(cd)&&cd.name.escapedText==="prototype"),!1);const Ca=o;switch(yk(Vo.parent)){case 1:case 2:Pp(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=KS(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(ta,524288,788968),o=Ca}}else vw(ta)||!ta.fullName||ta.fullName.kind===80?(i=ta.parent,Tc(ta,524288,788968)):zn(ta.fullName)}o=z,u=Ve,l=kt,i=Wn,y=vo}function Ra(){if(h===void 0)return;const z=o,Ve=u,kt=l,Wn=i,vo=y;for(const ta of h){const Ao=xS(ta),Vo=Ao?zF(Ao):void 0,hl=Ao?sh(Ao):void 0;o=Vo||e,l=hl||e,y=z_(2,void 0,void 0),i=ta,zn(ta.importClause)}o=z,u=Ve,l=kt,i=Wn,y=vo}function ec(z){if(!e.parseDiagnostics.length&&!(z.flags&33554432)&&!(z.flags&16777216)&&!Tne(z)){const Ve=KE(z);if(Ve===void 0)return;q&&Ve>=119&&Ve<=127?e.bindDiagnostics.push(xe(z,bf(z),ws(z))):Ve===135?zc(e)&&XF(z)?e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,ws(z))):z.flags&65536&&e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(z))):Ve===127&&z.flags&16384&&e.bindDiagnostics.push(xe(z,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,ws(z)))}}function bf(z){return hd(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 Lo(z){z.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(xe(z,f.constructor_is_a_reserved_word,ws(z))))}function fa(z){q&&$u(z.left)&&ly(z.operatorToken.kind)&&As(z,z.left)}function is(z){q&&z.variableDeclaration&&As(z,z.variableDeclaration.name)}function qa(z){if(q&&z.expression.kind===80){const Ve=n1(e,z.expression);e.bindDiagnostics.push(Oc(e,Ve.start,Ve.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Zt(z){return He(z)&&(z.escapedText==="eval"||z.escapedText==="arguments")}function As(z,Ve){if(Ve&&Ve.kind===80){const kt=Ve;if(Zt(kt)){const Wn=n1(e,Ve);e.bindDiagnostics.push(Oc(e,Wn.start,Wn.length,Hl(z),Kr(kt)))}}}function Hl(z){return hd(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 lc(z){q&&!(z.flags&33554432)&&As(z,z.name)}function vd(z){return hd(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 Fs(z){if(r<2&&l.kind!==308&&l.kind!==268&&!BR(l)){const Ve=n1(e,z);e.bindDiagnostics.push(Oc(e,Ve.start,Ve.length,vd(z)))}}function Ee(z){q&&As(z,z.operand)}function Y(z){q&&(z.operator===46||z.operator===47)&&As(z,z.operand)}function pt(z){q&&fn(z,f.with_statements_are_not_allowed_in_strict_mode)}function qt(z){q&&Ga(t)>=2&&(gte(z.statement)||sc(z.statement))&&fn(z.label,f.A_label_is_not_allowed_here)}function fn(z,Ve,...kt){const Wn=Uh(e,z.pos);e.bindDiagnostics.push(Oc(e,Wn.start,Wn.length,Ve,...kt))}function ur(z,Ve,kt){si(z,Ve,Ve,kt)}function si(z,Ve,kt,Wn){Dr(z,{pos:gb(Ve,e),end:kt.end},Wn)}function Dr(z,Ve,kt){const Wn=Oc(e,Ve.pos,Ve.end-Ve.pos,kt);z?e.bindDiagnostics.push(Wn):e.bindSuggestionDiagnostics=Un(e.bindSuggestionDiagnostics,{...Wn,category:2})}function zn(z){if(!z)return;ps(z,i),xr&&(z.tracingPath=e.path);const Ve=q;if(Da(z),z.kind>166){const kt=i;i=z;const Wn=DU(z);Wn===0?Ge(z):ce(z,Wn),i=kt}else{const kt=i;z.kind===1&&(i=z),ro(z),i=kt}q=Ve}function ro(z){if(ef(z))if(Ir(z))for(const Ve of z.jsDoc)zn(Ve);else for(const Ve of z.jsDoc)ps(Ve,z),qT(Ve,!1)}function Eo(z){if(!q)for(const Ve of z){if(!Hh(Ve))return;if(Ns(Ve)){q=!0;return}}}function Ns(z){const Ve=bS(e,z.expression);return Ve==='"use strict"'||Ve==="'use strict'"}function Da(z){switch(z.kind){case 80:if(z.flags&4096){let Ao=z.parent;for(;Ao&&!_m(Ao);)Ao=Ao.parent;Tc(Ao,524288,788968);break}case 110:return y&&(St(z)||i.kind===305)&&(z.flowNode=y),ec(z);case 167:y&&ZF(z)&&(z.flowNode=y);break;case 237:case 108:z.flowNode=y;break;case 81:return Lo(z);case 212:case 213:const Ve=z;y&&at(Ve)&&(Ve.flowNode=y),pne(Ve)&&Mc(Ve),Ir(Ve)&&e.commonJsModuleIndicator&&yg(Ve)&&!l3(l,"module")&&Ne(e.locals,void 0,Ve.expression,134217729,111550);break;case 227:switch(ac(z)){case 1:Jt(z);break;case 2:tr(z);break;case 3:ql(z.left,z);break;case 6:rl(z);break;case 4:Za(z);break;case 5:const Ao=z.left.expression;if(Ir(z)&&He(Ao)){const Vo=l3(l,Ao.escapedText);if(YF(Vo==null?void 0:Vo.valueDeclaration)){Za(z);break}}bd(z);break;case 0:break;default:C.fail("Unknown binary expression special property assignment kind")}return fa(z);case 300:return is(z);case 221:return qa(z);case 226:return Ee(z);case 225:return Y(z);case 255:return pt(z);case 257:return qt(z);case 198:g=!0;return;case 183:break;case 169:return ti(z);case 170:return ut(z);case 261:return oe(z);case 209:return z.flowNode=y,oe(z);case 173:case 172:return Qs(z);case 304:case 305:return On(z,4,0);case 307:return On(z,8,900095);case 180:case 181:case 182:return xn(z,131072,0);case 175:case 174:return On(z,8192|(z.questionToken?16777216:0),hm(z)?0:103359);case 263:return tn(z);case 177:return xn(z,16384,0);case 178:return On(z,32768,46015);case 179:return On(z,65536,78783);case 185:case 318:case 324:case 186:return Bl(z);case 188:case 323:case 201:return Sc(z);case 333:return nr(z);case 211:return xl(z);case 219:case 220:return an(z);case 214:switch(ac(z)){case 7:return rf(z);case 8:return ze(z);case 9:return Ll(z);case 0:break;default:return C.fail("Unknown call expression assignment declaration kind")}Ir(z)&&bh(z);break;case 232:case 264:return q=!0,Tf(z);case 265:return Tc(z,64,788872);case 266:return Tc(z,524288,788968);case 267:return f_(z);case 268:return la(z);case 293:return Ps(z);case 292:return uo(z,4,0);case 272:case 275:case 277:case 282:return xn(z,2097152,2097152);case 271:return vh(z);case 274:return nf(z);case 279:return Pd(z);case 278:return Pl(z);case 308:return Eo(z.statements),mc();case 242:if(!BR(z.parent))return;case 269:return Eo(z.statements);case 342:if(z.parent.kind===324)return ut(z);if(z.parent.kind!==323)break;case 349:const vo=z,ta=vo.isBracketed||vo.typeExpression&&vo.typeExpression.type.kind===317?16777220:4;return xn(vo,ta,0);case 347:case 339:case 341:return(d||(d=[])).push(z);case 340:return zn(z.typeExpression);case 352:return(h||(h=[])).push(z)}}function Qs(z){const Ve=Yu(z),kt=Ve?98304:4,Wn=Ve?13247:0;return On(z,kt|(z.questionToken?16777216:0),Wn)}function Sc(z){return Go(z,2048,"__type")}function mc(){if(ra(e),zc(e))Hs();else if(Ff(e)){Hs();const z=e.symbol;Ne(e.symbol.exports,e.symbol,e,4,-1),e.symbol=z}}function Hs(){Go(e,512,`"${Tu(e.fileName)}"`)}function Pl(z){if(!o.symbol||!o.symbol.exports)Go(z,111551,re(z));else{const Ve=Rk(z)?2097152:4,kt=Ne(o.symbol.exports,o.symbol,z,Ve,-1);z.isExportEquals&&ZN(kt,z)}}function vh(z){vt(z.modifiers)&&e.bindDiagnostics.push(xe(z,f.Modifiers_cannot_appear_here));const Ve=Yi(z.parent)?zc(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;Ve?e.bindDiagnostics.push(xe(z,Ve)):(e.symbol.globalExports=e.symbol.globalExports||da(),Ne(e.symbol.globalExports,e.symbol,z,2097152,2097152))}function Pd(z){!o.symbol||!o.symbol.exports?Go(z,8388608,re(z)):z.exportClause?W_(z.exportClause)&&(ps(z.exportClause,z),Ne(o.symbol.exports,o.symbol,z.exportClause,2097152,2097152)):Ne(o.symbol.exports,o.symbol,z,8388608,0)}function nf(z){z.name&&xn(z,2097152,2097152)}function op(z){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=z,e.externalModuleIndicator||Hs()),!0)}function ze(z){if(!op(z))return;const Ve=Xc(z.arguments[0],void 0,(kt,Wn)=>(Wn&&Se(Wn,kt,67110400),Wn));Ve&&Ne(Ve.exports,Ve,z,1048580,0)}function Jt(z){if(!op(z))return;const Ve=Xc(z.left.expression,void 0,(kt,Wn)=>(Wn&&Se(Wn,kt,67110400),Wn));if(Ve){const Wn=s6(z.right)&&(o1(z.left.expression)||yg(z.left.expression))?2097152:1048580;ps(z.left,z),Ne(Ve.exports,Ve,z.left,Wn,0)}}function tr(z){if(!op(z))return;const Ve=_k(z.right);if(_V(Ve)||o===e&&KS(e,Ve))return;if(Fa(Ve)&&Hn(Ve.properties,Ud)){$e(Ve.properties,yo);return}const kt=Rk(z)?2097152:1049092,Wn=Ne(e.symbol.exports,e.symbol,z,kt|67108864,0);ZN(Wn,z)}function yo(z){Ne(e.symbol.exports,e.symbol,z,69206016,0)}function Za(z){if(C.assert(Ir(z)),Nr(z)&&qr(z.left)&&eo(z.left.name)||qr(z)&&eo(z.name))return;const kt=vu(z,!1,!1);switch(kt.kind){case 263:case 219:let Wn=kt.symbol;if(Nr(kt.parent)&&kt.parent.operatorToken.kind===64){const Ao=kt.parent.left;IS(Ao)&&Ab(Ao.expression)&&(Wn=ap(Ao.expression.expression,s))}Wn&&Wn.valueDeclaration&&(Wn.members=Wn.members||da(),ay(z)?es(z,Wn,Wn.members):Ne(Wn.members,Wn,z,67108868,0),Se(Wn,Wn.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:const vo=kt.parent,ta=ua(kt)?vo.symbol.exports:vo.symbol.members;ay(z)?es(z,vo.symbol,ta):Ne(ta,vo.symbol,z,67108868,0,!0);break;case 308:if(ay(z))break;kt.commonJsModuleIndicator?Ne(kt.symbol.exports,kt.symbol,z,1048580,0):xn(z,1,111550);break;case 268:break;default:C.failBadSyntaxKind(kt)}}function es(z,Ve,kt){Ne(kt,Ve,z,4,0,!0,!0),Va(z,Ve)}function Va(z,Ve){Ve&&(Ve.assignmentDeclarationMembers||(Ve.assignmentDeclarationMembers=new Map)).set(ls(z),z)}function Mc(z){z.expression.kind===110?Za(z):IS(z)&&z.parent.parent.kind===308&&(Ab(z.expression)?ql(z,z.parent):ld(z))}function rl(z){ps(z.left,z),ps(z.right,z),V_(z.left.expression,z.left,!1,!0)}function Ll(z){const Ve=ap(z.arguments[0].expression);Ve&&Ve.valueDeclaration&&Se(Ve,Ve.valueDeclaration,32),Au(z,Ve,!0)}function ql(z,Ve){const kt=z.expression,Wn=kt.expression;ps(Wn,kt),ps(kt,z),ps(z,Ve),V_(Wn,z,!0,!0)}function rf(z){let Ve=ap(z.arguments[0]);const kt=z.parent.parent.kind===308;Ve=jp(Ve,z.arguments[0],kt,!1,!1),Au(z,Ve,!1)}function bd(z){var Ve;const kt=ap(z.left.expression,l)||ap(z.left.expression,o);if(!Ir(z)&&!fne(kt))return;const Wn=dD(z.left);if(!(He(Wn)&&((Ve=l3(o,Wn.escapedText))==null?void 0:Ve.flags)&2097152))if(ps(z.left,z),ps(z.right,z),He(z.left.expression)&&o===e&&KS(e,z.left.expression))Jt(z);else if(ay(z)){Go(z,67108868,"__computed");const vo=jp(kt,z.left.expression,Xf(z.left),!1,!1);Va(z,vo)}else ld(ha(z.left,s1))}function ld(z){C.assert(!He(z)),ps(z.expression,z),V_(z.expression,z,!1,!1)}function jp(z,Ve,kt,Wn,vo){return(z==null?void 0:z.flags)&2097152||(kt&&!Wn&&(z=Xc(Ve,z,(Vo,hl,Ca)=>{if(hl)return Se(hl,Vo,67110400),hl;{const cd=Ca?Ca.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=da());return Ne(cd,Ca,Vo,67110400,110735)}})),vo&&z&&z.valueDeclaration&&Se(z,z.valueDeclaration,32)),z}function Au(z,Ve,kt){if(!Ve||!Ng(Ve))return;const Wn=kt?Ve.members||(Ve.members=da()):Ve.exports||(Ve.exports=da());let vo=0,ta=0;Ms(_I(z))?(vo=8192,ta=103359):Zo(z)&&a1(z)&&(vt(z.arguments[2].properties,Ao=>{const Vo=Oo(Ao);return!!Vo&&He(Vo)&&Kr(Vo)==="set"})&&(vo|=65540,ta|=78783),vt(z.arguments[2].properties,Ao=>{const Vo=Oo(Ao);return!!Vo&&He(Vo)&&Kr(Vo)==="get"})&&(vo|=32772,ta|=46015)),vo===0&&(vo=4,ta=0),Ne(Wn,Ve,z,vo|67108864,ta&-67108865)}function Xf(z){return Nr(z.parent)?Mg(z.parent).parent.kind===308:z.parent.parent.kind===308}function V_(z,Ve,kt,Wn){let vo=ap(z,l)||ap(z,o);const ta=Xf(Ve);vo=jp(vo,Ve.expression,ta,kt,Wn),Au(Ve,vo,kt)}function Ng(z){if(z.flags&1072)return!0;const Ve=z.valueDeclaration;if(Ve&&Zo(Ve))return!!_I(Ve);let kt=Ve?yi(Ve)?Ve.initializer:Nr(Ve)?Ve.right:qr(Ve)&&Nr(Ve.parent)?Ve.parent.right:void 0:void 0;if(kt=kt&&_k(kt),kt){const Wn=Ab(yi(Ve)?Ve.name:Nr(Ve)?Ve.left:Ve);return!!zT(Nr(kt)&&(kt.operatorToken.kind===57||kt.operatorToken.kind===61)?kt.right:kt,Wn)}return!1}function Mg(z){for(;Nr(z.parent);)z=z.parent;return z.parent}function ap(z,Ve=o){if(He(z))return l3(Ve,z.escapedText);{const kt=ap(z.expression);return kt&&kt.exports&&kt.exports.get(oy(z))}}function Xc(z,Ve,kt){if(KS(e,z))return e.symbol;if(He(z))return kt(z,ap(z),Ve);{const Wn=Xc(z.expression,Ve,kt),vo=gk(z);return eo(vo)&&C.fail("unexpected PrivateIdentifier"),kt(vo,Wn&&Wn.exports&&Wn.exports.get(oy(z)),Wn)}}function bh(z){!e.commonJsModuleIndicator&&Zu(z,!1)&&op(z)}function Tf(z){if(z.kind===264)Tc(z,32,899503);else{const vo=z.name?z.name.escapedText:"__class";Go(z,32,vo),z.name&&pe.add(z.name.escapedText)}const{symbol:Ve}=z,kt=Je(4194308,"prototype"),Wn=Ve.exports.get(kt.escapedName);Wn&&(z.name&&ps(z.name,z),e.bindDiagnostics.push(xe(Wn.declarations[0],f.Duplicate_identifier_0,wl(kt)))),Ve.exports.set(kt.escapedName,kt),kt.parent=Ve}function f_(z){return OT(z)?Tc(z,128,899967):Tc(z,256,899327)}function oe(z){if(q&&As(z,z.name),!Qo(z.name)){const Ve=z.kind===261?z:z.parent.parent;Ir(z)&&AS(Ve)&&!LT(z)&&!(PT(z)&32)?xn(z,2097152,2097152):hG(z)?Tc(z,2,111551):jT(z)?xn(z,1,111551):xn(z,1,111550)}}function ut(z){if(!(z.kind===342&&o.kind!==324)&&(q&&!(z.flags&33554432)&&As(z,z.name),Qo(z.name)?Go(z,1,"__"+z.parent.parameters.indexOf(z)):xn(z,1,111551),Np(z,z.parent))){const Ve=z.parent.parent;Ne(Ve.symbol.members,Ve.symbol,z,4|(z.questionToken?16777216:0),0)}}function tn(z){!e.isDeclarationFile&&!(z.flags&33554432)&&oM(z)&&(Z|=4096),lc(z),q?(Fs(z),Tc(z,16,110991)):xn(z,16,110991)}function an(z){!e.isDeclarationFile&&!(z.flags&33554432)&&oM(z)&&(Z|=4096),y&&(z.flowNode=y),lc(z);const Ve=z.name?z.name.escapedText:"__function";return Go(z,16,Ve)}function On(z,Ve,kt){return!e.isDeclarationFile&&!(z.flags&33554432)&&oM(z)&&(Z|=4096),y&&HF(z)&&(z.flowNode=y),ay(z)?Go(z,Ve,"__computed"):xn(z,Ve,kt)}function ar(z){const Ve=Dn(z,kt=>kt.parent&&BS(kt.parent)&&kt.parent.extendsType===kt);return Ve&&Ve.parent}function ti(z){if(Tm(z.parent)){const Ve=a6(z.parent);Ve?(C.assertNode(Ve,C_),Ve.locals??(Ve.locals=da()),Ne(Ve.locals,void 0,z,262144,526824)):xn(z,262144,526824)}else if(z.parent.kind===196){const Ve=ar(z.parent);Ve?(C.assertNode(Ve,C_),Ve.locals??(Ve.locals=da()),Ne(Ve.locals,void 0,z,262144,526824)):Go(z,262144,re(z))}else xn(z,262144,526824)}function Ti(z){const Ve=hy(z);return Ve===1||Ve===2&&Ib(t)}function $i(z){if(!(y.flags&1))return!1;if(y===de&&(q2(z)&&z.kind!==243||z.kind===264||I1e(z,t)||z.kind===268&&Ti(z))&&(y=fe,!t.allowUnreachableCode)){const kt=dre(t)&&!(z.flags&33554432)&&(!sc(z)||!!(ny(z.declarationList)&7)||z.declarationList.declarations.some(Wn=>!!Wn.initializer));tHe(z,t,(Wn,vo)=>si(kt,Wn,vo,f.Unreachable_code_detected))}return!0}}function I1e(e,t){return e.kind===267&&(!OT(e)||Ib(t))}function tHe(e,t,r){if(Gi(e)&&i(e)&&ea(e.parent)){const{statements:s}=e.parent,l=GV(s,e);wB(l,i,(u,d)=>r(l[u],l[d-1]))}else r(e,e);function i(s){return!Zl(s)&&!o(s)&&!(sc(s)&&!(ny(s)&7)&&s.declarationList.declarations.some(l=>!l.initializer))}function o(s){switch(s.kind){case 265:case 266:return!0;case 268:return hy(s)!==1;case 267:return!I1e(s,t);default:return!1}}}function KS(e,t){let r=0;const i=g2();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),o1(t)||yg(t))return!0;if(He(t)){const o=l3(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){const s=o.valueDeclaration.initializer;i.enqueue(s),id(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function DU(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(HF(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 Yo(e.parent)||Ql(e.parent)?0:34}return 0}function l3(e,t){var r,i,o,s;const l=(i=(r=ni(e,C_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Yi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(ah(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}function rae(e,t,r,i,o,s,l,u,d,g){return h;function h(y=()=>!0){const E=[],A=[];return{walkType:ye=>{try{return R(ye),{visitedTypes:$A(E),visitedSymbols:$A(A)}}finally{hi(E),hi(A)}},walkSymbol:ye=>{try{return q(ye),{visitedTypes:$A(E),visitedSymbols:$A(A)}}finally{hi(E),hi(A)}}};function R(ye){if(!(!ye||E[ye.id]||(E[ye.id]=ye,q(ye.symbol)))){if(ye.flags&524288){const K=ye,pe=K.objectFlags;pe&4&&N(ye),pe&32&&G(ye),pe&3&&J(ye),pe&24&&Z(K)}ye.flags&262144&&P(ye),ye.flags&3145728&&k(ye),ye.flags&4194304&&F(ye),ye.flags&8388608&&O(ye)}}function N(ye){R(ye.target),$e(g(ye),R)}function P(ye){R(u(ye))}function k(ye){$e(ye.types,R)}function F(ye){R(ye.type)}function O(ye){R(ye.objectType),R(ye.indexType),R(ye.constraint)}function G(ye){R(ye.typeParameter),R(ye.constraintType),R(ye.templateType),R(ye.modifiersType)}function j(ye){const ie=t(ye);ie&&R(ie.type),$e(ye.typeParameters,R);for(const K of ye.parameters)q(K);R(e(ye)),R(r(ye))}function J(ye){Z(ye),$e(ye.typeParameters,R),$e(i(ye),R),R(ye.thisType)}function Z(ye){const ie=o(ye);for(const K of ie.indexInfos)R(K.keyType),R(K.type);for(const K of ie.callSignatures)j(K);for(const K of ie.constructSignatures)j(K);for(const K of ie.properties)q(K)}function q(ye){if(!ye)return!1;const ie=Ta(ye);if(A[ie])return!1;if(A[ie]=ye,!y(ye))return!0;const K=s(ye);return R(K),ye.exports&&ye.exports.forEach(q),$e(ye.declarations,pe=>{if(pe.type&&pe.type.kind===187){const de=pe.type,fe=l(d(de.exprName));q(fe)}}),!1}}}var _y={};x(_y,{RelativePreference:()=>x1e,countPathComponents:()=>u3,forEachFileNameOfModule:()=>P1e,getLocalModuleSpecifierBetweenFileNames:()=>sHe,getModuleSpecifier:()=>iHe,getModuleSpecifierPreferences:()=>jw,getModuleSpecifiers:()=>C1e,getModuleSpecifiersWithCacheInfo:()=>N1e,getNodeModulesPackageName:()=>oHe,tryGetJSExtensionForFile:()=>NU,tryGetModuleSpecifiersFromCache:()=>aHe,tryGetRealFileNameForNonJsDeclarationFileName:()=>W1e,updateModuleSpecifier:()=>rHe});var nHe=zh(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}}),x1e=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(x1e||{});function jw({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:r},i,o,s,l){const u=d();return{excludeRegexes:r,relativePreference:l!==void 0?td(l)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:g=>{const h=MU(s,i,o),y=g!==h?d(g):u,E=iu(o);if((g??h)===99&&3<=E&&E<=99)return VD(o,s.fileName)?[3,2]:[2];if(iu(o)===1)return y===2?[2,1]:[1,2];const A=VD(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(g){if(l!==void 0){if(Sg(l))return 2;if(nl(l,"/index"))return 1}return Ere(t,g??MU(s,i,o),o,gg(s)?s:void 0)}}function rHe(e,t,r,i,o,s,l={}){const u=R1e(e,t,r,i,o,jw({},o,e,t,s),{},l);if(u!==s)return u}function iHe(e,t,r,i,o,s={}){return R1e(e,t,r,i,o,jw({},o,e,t),{},s)}function oHe(e,t,r,i,o,s={}){const l=d3(t.fileName,i),u=L1e(l,r,i,o,e,s);return Bn(u,d=>aae(d,l,t,i,e,o,!0,s.overrideImportMode))}function R1e(e,t,r,i,o,s,l,u={}){const d=d3(r,o),g=L1e(d,i,o,l,e,u);return Bn(g,h=>aae(h,d,t,o,e,l,void 0,u.overrideImportMode))||iae(i,d,e,o,u.overrideImportMode||MU(t,o,e),s)}function aHe(e,t,r,i,o={}){const s=D1e(e,t,r,i,o);return s[1]&&{kind:s[0],moduleSpecifiers:s[1],computedWithoutCache:!1}}function D1e(e,t,r,i,o={}){var s;const l=X2(e);if(!l)return se;const u=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=u==null?void 0:u.get(t.path,l.path,i,o);return[d==null?void 0:d.kind,d==null?void 0:d.moduleSpecifiers,l,d==null?void 0:d.modulePaths,u]}function C1e(e,t,r,i,o,s,l={}){return N1e(e,t,r,i,o,s,l,!1).moduleSpecifiers}function N1e(e,t,r,i,o,s,l={},u){let d=!1;const g=pHe(e,t);if(g)return{kind:"ambient",moduleSpecifiers:u&&c3(g,s.autoImportSpecifierExcludeRegexes)?se:[g],computedWithoutCache:d};let[h,y,E,A,R]=D1e(e,i,o,s,l);if(y)return{kind:h,moduleSpecifiers:y,computedWithoutCache:d};if(!E)return{kind:void 0,moduleSpecifiers:se,computedWithoutCache:d};d=!0,A||(A=k1e(d3(i.fileName,o),E.originalFileName,o,r,l));const N=lHe(A,r,i,o,s,l,u);return R==null||R.set(i.path,E.path,s,l,N.kind,A,N.moduleSpecifiers),N}function sHe(e,t,r,i,o,s={}){const l=d3(e.fileName,i),u=s.overrideImportMode??e.impliedNodeFormat;return iae(t,l,r,i,u,jw(o,i,r,e))}function lHe(e,t,r,i,o,s={},l){const u=d3(r.fileName,i),d=jw(o,i,t,r),g=gg(r)&&$e(e,N=>$e(i.getFileIncludeReasons().get(ks(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 O=aO(r,P.index).text;return d.relativePreference!==1||!Zp(O)?O:void 0}));if(g)return{kind:void 0,moduleSpecifiers:[g],computedWithoutCache:!0};const h=vt(e,N=>N.isInNodeModules);let y,E,A,R;for(const N of e){const P=N.isInNodeModules?aae(N,u,r,i,t,o,void 0,s.overrideImportMode):void 0;if(P&&!(l&&c3(P,d.excludeRegexes))&&(y=Un(y,P),N.isRedirect))return{kind:"node_modules",moduleSpecifiers:y,computedWithoutCache:!0};const k=iae(N.path,u,t,i,s.overrideImportMode||r.impliedNodeFormat,d,N.isRedirect||!!P);!k||l&&c3(k,d.excludeRegexes)||(N.isRedirect?A=Un(A,k):x9(k)?Wb(k)?R=Un(R,k):E=Un(E,k):(l||!h||N.isInNodeModules)&&(R=Un(R,k)))}return E!=null&&E.length?{kind:"paths",moduleSpecifiers:E,computedWithoutCache:!0}:A!=null&&A.length?{kind:"redirect",moduleSpecifiers:A,computedWithoutCache:!0}:y!=null&&y.length?{kind:"node_modules",moduleSpecifiers:y,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:R??se,computedWithoutCache:!0}}function c3(e,t){return vt(t,r=>{var i;return!!((i=nHe(r))!=null&&i.test(e))})}function d3(e,t){e=So(e,t.getCurrentDirectory());const r=Fd(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ci(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function iae(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l,excludeRegexes:u},d){const{baseUrl:g,paths:h,rootDirs:y}=r;if(d&&!h)return;const{sourceDirectory:E,canonicalSourceDirectory:A,getCanonicalFileName:R}=t,N=s(o),P=y&&hHe(y,e,E,R,N,r)||Uw(HE(cf(E,e,R)),N,r);if(!g&&!h&&!qk(r)||l===0)return d?void 0:P;const k=So(g6(r,i)||g,i.getCurrentDirectory()),F=sae(e,k,R);if(!F)return d?void 0:P;const O=d?void 0:mHe(e,E,r,i,o,gHe(N)),G=d||O===void 0?h&&w1e(F,h,N,k,R,i,r):void 0;if(d)return G;const j=O??(G===void 0&&g!==void 0?Uw(F,N,r):G);if(!j)return P;const J=c3(P,u),Z=c3(j,u);if(!J&&Z)return P;if(J&&!Z||l===1&&!Zp(j))return j;if(l===3&&!Zp(j)){const q=r.configFilePath?ks(ci(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),ye=ks(e,q,R),ie=fo(A,q),K=fo(ye,q);if(ie&&!K||!ie&&K)return j;const pe=oae(i,ci(ye)),de=oae(i,E),fe=!u1(i);return cHe(pe,de,fe)?P:j}return F1e(j)||u3(P)e.fileExists(Qr(r,"package.json"))?r:void 0)}function P1e(e,t,r,i,o){var s,l;const u=sy(r),d=r.getCurrentDirectory(),g=r.isSourceOfProjectReferenceRedirect(t)?(s=r.getRedirectFromSourceFile(t))==null?void 0:s.outputDts:void 0,h=ks(t,d,u),y=r.redirectTargetsMap.get(h)||se,A=[...g?[g]:se,t,...y].map(F=>So(F,d));let R=!Hn(A,CM);if(!i){const F=$e(A,O=>!(R&&CM(O))&&o(O,g===O));if(F)return F}const N=(l=r.getSymlinkCache)==null?void 0:l.call(r).getSymlinkedDirectoriesByRealpath(),P=So(t,d);return N&&F_(r,ci(P),F=>{const O=N.get(Uc(ks(F,d,u)));if(O)return C9(e,F,u)?!1:$e(A,G=>{if(!C9(G,F,u))return;const j=cf(F,G,u);for(const J of O){const Z=ab(J,j),q=o(Z,G===g);if(R=!0,q)return q}})})||(i?$e(A,F=>R&&CM(F)?void 0:o(F,F===g)):void 0)}function L1e(e,t,r,i,o,s={}){var l;const u=ks(e.importingSourceFileName,r.getCurrentDirectory(),sy(r)),d=ks(t,r.getCurrentDirectory(),sy(r)),g=(l=r.getModuleSpecifierCache)==null?void 0:l.call(r);if(g){const y=g.get(u,d,i,s);if(y!=null&&y.modulePaths)return y.modulePaths}const h=k1e(e,t,r,o,s);return g&&g.setModulePaths(u,d,i,s,h),h}var dHe=["dependencies","peerDependencies","optionalDependencies"];function uHe(e){let t;for(const r of dHe){const i=e[r];i&&typeof i=="object"&&(t=lo(t,Fh(i)))}return t}function k1e(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&&!Wb(e.importingSourceFileName)){C.type(r);const y=iP(u.getPackageJsonInfoCache(),r,{}),E=oP(ci(e.importingSourceFileName),y);if(E){const A=uHe(E.contents.packageJsonContent);for(const R of A||se){const N=P1(R,Qr(E.packageDirectory,"package.json"),i,r,u,void 0,o.overrideImportMode);d.setSymlinksFromResolution(N.resolvedModule)}}}const g=new Map;P1e(e.importingSourceFileName,t,r,!0,(y,E)=>{const A=Wb(y);g.set(y,{path:e.getCanonicalFileName(y),isRedirect:E,isInNodeModules:A})});const h=[];for(let y=e.canonicalSourceDirectory;g.size!==0;){const E=Uc(y);let A;g.forEach(({path:N,isRedirect:P,isInNodeModules:k},F)=>{fo(N,E)&&((A||(A=[])).push({path:F,isRedirect:P,isInNodeModules:k}),g.delete(F))}),A&&(A.length>1&&A.sort(M1e),h.push(...A));const R=ci(y);if(R===y)break;y=R}if(g.size){const y=Co(g.entries(),([E,{isRedirect:A,isInNodeModules:R}])=>({path:E,isRedirect:A,isInNodeModules:R}));y.length>1&&y.sort(M1e),h.push(...y)}return h}function pHe(e,t){var r;const i=(r=e.declarations)==null?void 0:r.find(l=>gG(l)&&(!SS(l)||!td(zf(l.name))));if(i)return i.name.text;const s=ji(e.declarations,l=>{var u,d,g,h;if(!pc(l))return;const y=N(l);if(!((u=y==null?void 0:y.parent)!=null&&u.parent&&n_(y.parent)&&yu(y.parent.parent)&&Yi(y.parent.parent.parent)))return;const E=(h=(g=(d=y.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:h.expression;if(!E)return;const A=t.getSymbolAtLocation(E);if(!A)return;if(((A==null?void 0: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 w1e(e,t,r,i,o,s,l){for(const d in t)for(const g of t[d]){const h=ya(g),y=sae(h,i,o)??h,E=y.indexOf("*"),A=r.map(R=>({ending:R,value:Uw(e,[R],l)}));if(Eg(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&&fo(k,R)&&nl(k,N)&&u({ending:P,value:k})){const F=k.substring(R.length,k.length-N.length);if(!Zp(F))return h1(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:g}){return d!==0||g===Uw(e,[d],l,s)}}function p3(e,t,r,i,o,s,l,u,d,g){if(typeof s=="string"){const h=!u1(t),y=()=>t.getCommonSourceDirectory(),E=d&&oH(r,e,h,y),A=d&&iH(r,e,h,y),R=So(Qr(i,s),void 0),N=m1(r)?Tu(r)+NU(r,e):void 0,P=g&&Tre(r);switch(u){case 0:if(N&&ey(N,R,h)===0||ey(r,R,h)===0||E&&ey(E,R,h)===0||A&&ey(A,R,h)===0)return{moduleFileToTry:o};break;case 1:if(P&&pm(r,R,h)){const G=cf(R,r,!1);return{moduleFileToTry:So(Qr(Qr(o,s),G),void 0)}}if(N&&pm(R,N,h)){const G=cf(R,N,!1);return{moduleFileToTry:So(Qr(Qr(o,s),G),void 0)}}if(!P&&pm(R,r,h)){const G=cf(R,r,!1);return{moduleFileToTry:So(Qr(Qr(o,s),G),void 0)}}if(E&&pm(R,E,h)){const G=cf(R,E,!1);return{moduleFileToTry:Qr(o,G)}}if(A&&pm(R,A,h)){const G=nF(cf(R,A,!1),CU(A,e));return{moduleFileToTry:Qr(o,G)}}break;case 2:const k=R.indexOf("*"),F=R.slice(0,k),O=R.slice(k+1);if(P&&fo(r,F,h)&&nl(r,O,h)){const G=r.slice(F.length,r.length-O.length);return{moduleFileToTry:h1(o,G)}}if(N&&fo(N,F,h)&&nl(N,O,h)){const G=N.slice(F.length,N.length-O.length);return{moduleFileToTry:h1(o,G)}}if(!P&&fo(r,F,h)&&nl(r,O,h)){const G=r.slice(F.length,r.length-O.length);return{moduleFileToTry:h1(o,G)}}if(E&&fo(E,F,h)&&nl(E,O,h)){const G=E.slice(F.length,E.length-O.length);return{moduleFileToTry:h1(o,G)}}if(A&&fo(A,F,h)&&nl(A,O,h)){const G=A.slice(F.length,A.length-O.length),j=h1(o,G),J=NU(A,e);return J?{moduleFileToTry:nF(j,J)}:void 0}break}}else{if(Array.isArray(s))return $e(s,h=>p3(e,t,r,i,o,h,l,u,d,g));if(typeof s=="object"&&s!==null){for(const h of Fh(s))if(h==="default"||l.indexOf(h)>=0||Gw(l,h)){const y=s[h],E=p3(e,t,r,i,o,y,l,u,d,g);if(E)return E}}}}function fHe(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&a3(s)?$e(Fh(s),u=>{const d=So(Qr(o,u),void 0),g=nl(u,"/")?1:u.includes("*")?2:0;return p3(e,t,r,i,d,s[u],l,g,!1,!1)}):p3(e,t,r,i,o,s,l,0,!1,!1)}function mHe(e,t,r,i,o,s){var l,u,d;if(!i.readFile||!qk(r))return;const g=oae(i,t);if(!g)return;const h=Qr(g,"package.json"),y=(u=(l=i.getPackageJsonInfoCache)==null?void 0:l.call(i))==null?void 0:u.getPackageJsonInfo(h);if(Goe(y)||!i.fileExists(h))return;const E=(y==null?void 0:y.contents.packageJsonContent)||Bk(i.readFile(h)),A=E==null?void 0:E.imports;if(!A)return;const R=Ob(r,o);return(d=$e(Fh(A),N=>{if(!fo(N,"#")||N==="#"||fo(N,"#/"))return;const P=nl(N,"/")?1:N.includes("*")?2:0;return p3(r,i,e,g,N,A[N],R,P,!0,s)}))==null?void 0:d.moduleFileToTry}function hHe(e,t,r,i,o,s){const l=O1e(t,e,i);if(l===void 0)return;const u=O1e(r,e,i),d=Ki(u,h=>Bt(l,y=>HE(cf(h,y,i)))),g=JB(d,Qk);if(g)return Uw(g,o,s)}function aae({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,u,d,g){if(!s.fileExists||!s.readFile)return;const h=Z6(e);if(!h)return;const E=jw(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:ye}=O(G);if(iu(l)!==1){if(q)return;if(ye)return J}if(Z){A=Z,R=!0;break}if(j||(j=J),G=e.indexOf(Js,G+1),G===-1){A=Uw(j,E,l,s);break}}}if(t&&!R)return;const N=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),P=r(A.substring(0,h.topLevelNodeModulesIndex));if(!(fo(i,P)||N&&fo(r(N),P)))return;const k=A.substring(h.topLevelPackageNameIndex+1),F=aP(k);return iu(l)===1&&F===k?void 0:F;function O(G){var j,J;const Z=e.substring(0,G),q=Qr(Z,"package.json");let ye=e,ie=!1;const K=(J=(j=s.getPackageJsonInfoCache)==null?void 0:j.call(s))==null?void 0:J.getPackageJsonInfo(q);if(n3(K)||K===void 0&&s.fileExists(q)){const pe=(K==null?void 0:K.contents.packageJsonContent)||Bk(s.readFile(q)),de=g||MU(o,s,l);if(Hk(l)){const xe=Z.substring(h.topLevelPackageNameIndex+1),X=aP(xe),Ce=Ob(l,de),Je=pe!=null&&pe.exports?fHe(l,s,e,Z,X,pe.exports,Ce):void 0;if(Je)return{...Je,verbatimFromExports:!0};if(pe!=null&&pe.exports)return{moduleFileToTry:e,blockedByExports:!0}}const fe=pe!=null&&pe.typesVersions?e3(pe.typesVersions):void 0;if(fe){const xe=e.slice(Z.length+1),X=w1e(xe,fe.paths,E,Z,r,s,l);X===void 0?ie=!0:ye=Qr(Z,X)}const ve=(pe==null?void 0:pe.typings)||(pe==null?void 0:pe.types)||(pe==null?void 0:pe.main)||"index.js";if(Bo(ve)&&!(ie&&BV(ew(fe.paths),ve))){const xe=ks(ve,Z,r),X=r(ye);if(Tu(xe)===Tu(X))return{packageRootPath:Z,moduleFileToTry:ye};if((pe==null?void 0:pe.type)!=="module"&&!$l(X,K6)&&fo(X,xe)&&ci(X)===Yy(xe)&&Tu(Ic(X))==="index")return{packageRootPath:Z,moduleFileToTry:ye}}}else{const pe=r(ye.substring(h.packageRootIndex+1));if(pe==="index.d.ts"||pe==="index.js"||pe==="index.ts"||pe==="index.tsx")return{moduleFileToTry:ye,packageRootPath:Z}}return{moduleFileToTry:ye}}}function _He(e,t){if(!e.fileExists)return;const r=ia(SM({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 O1e(e,t,r){return ji(t,i=>{const o=sae(e,i,r);return o!==void 0&&F1e(o)?void 0:o})}function Uw(e,t,r,i){if($l(e,[".json",".mjs",".cjs"]))return e;const o=Tu(e);if(e===o)return e;const s=t.indexOf(2),l=t.indexOf(3);if($l(e,[".mts",".cts"])&&l!==-1&&lg===0||g===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))(LU||{}),cae=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),kU=(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))(kU||{}),wU=(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))(wU||{}),yHe=j8(U1e,bHe),OU=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),j1e=class{};function vHe(){this.flags=0}function ls(e){return e.id||(e.id=B1e,B1e++),e.id}function Ta(e){return e.id||(e.id=z1e,z1e++),e.id}function WU(e,t){const r=hy(e);return r===1||t&&r===2}function dae(e){var t=[],r=n=>{t.push(n)},i,o,s=Rd.getSymbolConstructor(),l=Rd.getTypeConstructor(),u=Rd.getSignatureConstructor(),d=0,g=0,h=0,y=0,E=0,A=0,R,N,P=!1,k=da(),F=[1],O=e.getCompilerOptions(),G=Ga(O),j=bu(O),J=!!O.experimentalDecorators,Z=Jk(O),q=MV(O),ye=PI(O),ie=Vd(O,"strictNullChecks"),K=Vd(O,"strictFunctionTypes"),pe=Vd(O,"strictBindCallApply"),de=Vd(O,"strictPropertyInitialization"),fe=Vd(O,"strictBuiltinIteratorReturn"),ve=Vd(O,"noImplicitAny"),xe=Vd(O,"noImplicitThis"),X=Vd(O,"useUnknownInCatchVariables"),Ce=O.exactOptionalPropertyTypes,Je=!!O.noUncheckedSideEffectImports,Se=r_t(),re=Gvt(),be=zz(),Ne=mle(O,be.syntacticBuilderResolver),Be=Gre({evaluateElementAccessExpression:Myt,evaluateEntityNameExpression:j3e}),lt=da(),ce=ja(4,"undefined");ce.declarations=[];var Re=ja(1536,"globalThis",8);Re.exports=lt,Re.declarations=[],lt.set(Re.escapedName,Re);var ge=ja(4,"arguments"),je=ja(4,"require"),Ge=O.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",We=!O.verbatimModuleSyntax,at,Wt,cn=0,gn,Kn=0,gt=QV({compilerOptions:O,requireSymbol:je,argumentsSymbol:ge,globals:lt,getSymbolOfDeclaration:Wr,error:Qe,getRequiresScopeChangeCache:mE,setRequiresScopeChangeCache:xC,lookup:Sd,onPropertyWithInvalidInitializer:iL,onFailedToResolveSymbol:zr,onSuccessfullyResolvedSymbol:Ru}),en=QV({compilerOptions:O,requireSymbol:je,argumentsSymbol:ge,globals:lt,getSymbolOfDeclaration:Wr,error:Qe,getRequiresScopeChangeCache:mE,setRequiresScopeChangeCache:xC,lookup:Amt});const or={getNodeCount:()=>gu(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>gu(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>gu(e.getSourceFiles(),(n,a)=>n+a.symbolCount,g),getTypeCount:()=>d,getInstantiationCount:()=>h,getRelationCacheSizes:()=>({assignable:qd.size,identity:Jd.size,subtype:q_.size,strictSubtype:ul.size}),isUndefinedSymbol:n=>n===ce,isArgumentsSymbol:n=>n===ge,isUnknownSymbol:n=>n===ne,getMergedSymbol:os,symbolIsValue:An,getDiagnostics:$3e,getGlobalDiagnostics:nvt,getRecursionIdentity:MY,getUnmatchedProperties:F_e,getTypeOfSymbolAtLocation:(n,a)=>{const c=jo(a);return c?wpt(n,c):nt},getTypeOfSymbol:_r,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{const c=jo(n,to);return c===void 0?C.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(C.assert(Np(c,c.parent)),tA(c,Cl(a)))},getDeclaredTypeOfSymbol:qs,getPropertiesOfType:bs,getPropertyOfType:(n,a)=>Ea(n,Cl(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{const p=jo(c);if(!p)return;const m=Cl(a),b=L5(m,p);return b?f$(n,b):void 0},getTypeOfPropertyOfType:(n,a)=>_n(n,Cl(a)),getIndexInfoOfType:(n,a)=>jg(n,a===0?yt:Gt),getIndexInfosOfType:Xd,getIndexInfosOfIndexSymbol:sY,getSignaturesOfType:na,getIndexTypeOfType:(n,a)=>q0(n,a===0?yt:Gt),getIndexType:n=>T_(n),getBaseTypes:eh,getBaseTypeOfLiteralType:By,getWidenedType:$p,getWidenedLiteralType:Z0,fillMissingTypeArguments:Bv,getTypeFromTypeNode:n=>{const a=jo(n,Ri);return a?qi(a):nt},getParameterType:Lh,getParameterIdentifierInfoAtPosition:yht,getPromisedTypeOfPromise:p8,getAwaitedType:n=>pR(n),getReturnTypeOfSignature:fs,isNullableType:P5,getNullableType:h5,getNonNullableType:Gy,getNonOptionalType:wY,getTypeArguments:ol,typeToTypeNode:be.typeToTypeNode,typePredicateToTypePredicateNode:be.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:be.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:be.signatureToSignatureDeclaration,symbolToEntityName:be.symbolToEntityName,symbolToExpression:be.symbolToExpression,symbolToNode:be.symbolToNode,symbolToTypeParameterDeclarations:be.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:be.symbolToParameterDeclaration,typeParameterToDeclaration:be.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{const c=jo(n);return c?rvt(c,a):[]},getSymbolAtLocation:n=>{const a=jo(n);return a?sm(a,!0):void 0},getIndexInfosAtLocation:n=>{const a=jo(n);return a?uvt(a):void 0},getShorthandAssignmentValueSymbol:n=>{const a=jo(n);return a?pvt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{const a=jo(n,ou);return a?fvt(a):void 0},getExportSymbolOfSymbol(n){return os(n.exportSymbol||n)},getTypeAtLocation:n=>{const a=jo(n);return a?mR(a):nt},getTypeOfAssignmentPattern:n=>{const a=jo(n,zN);return a&&j$(a)||nt},getPropertySymbolOfDestructuringAssignment:n=>{const a=jo(n,He);return a?mvt(a):void 0},signatureToString:(n,a,c,p)=>aT(n,jo(a),c,p),typeToString:(n,a,c)=>sr(n,jo(a),c),symbolToString:(n,a,c,p)=>po(n,jo(a),c,p),typePredicateToString:(n,a,c)=>X_(n,jo(a),c),writeSignature:(n,a,c,p,m,b,I,w)=>aT(n,jo(a),c,p,m,b,I,w),writeType:(n,a,c,p,m,b,I)=>sr(n,jo(a),c,p,m,b,I),writeSymbol:(n,a,c,p,m)=>po(n,jo(a),c,p,m),writeTypePredicate:(n,a,c,p)=>X_(n,jo(a),c,p),getAugmentedPropertiesOfType:Rye,getRootSymbols:o7e,getSymbolOfExpando:v$,getContextualType:(n,a)=>{const c=jo(n,St);if(c)return a&4?Zr(c,()=>Hu(c,a)):Hu(c,a)},getContextualTypeForObjectLiteralElement:n=>{const a=jo(n,ry);return a?mge(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{const c=jo(n,yS);return c&&uge(c,a)},getContextualTypeForJsxAttribute:n=>{const a=jo(n,EF);return a&&b6e(a,void 0)},isContextSensitive:Cf,getTypeOfPropertyOfContextualType:tS,getFullyQualifiedName:Nv,getResolvedSignature:(n,a,c)=>Ai(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:co,getResolvedSignatureForSignatureHelp:(n,a,c)=>zt(n,()=>Ai(n,a,c,16)),getExpandedParameters:rWe,hasEffectiveRestParameter:rg,containsArgumentsReference:Nhe,getConstantValue:n=>{const a=jo(n,u7e);return a?q$(a):void 0},isValidPropertyAccess:(n,a)=>{const c=jo(n,dte);return!!c&&Rmt(c,Cl(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{const p=jo(n,qr);return!!p&&$6e(p,a,c)},getSignatureFromDeclaration:n=>{const a=jo(n,Yo);return a?Df(a):void 0},isImplementationOfOverload:n=>{const a=jo(n,Yo);return a?c7e(a):void 0},getImmediateAliasedSymbol:a$,getAliasedSymbol:ud,getEmitResolver:rL,requiresAddingImplicitUndefined:oB,getExportsOfModule:jx,getExportsAndPropertiesOfModule:MC,forEachExportAndPropertyOfModule:Ux,getSymbolWalker:rae(Zlt,nm,fs,eh,Dh,_r,fu,Uu,Lu,ol),getAmbientModules:Cbt,getJsxIntrinsicTagNamesAt:smt,isOptionalParameter:n=>{const a=jo(n,to);return a?NW(a):!1},tryGetMemberInModuleExports:(n,a)=>dA(Cl(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>Hx(Cl(n),a),tryFindAmbientModule:n=>EWe(n,!0),getApparentType:Du,getUnionType:pi,isTypeAssignableTo:sa,createAnonymousType:bl,createSignature:v_,createSymbol:ja,createIndexInfo:Ug,getAnyType:()=>Ue,getStringType:()=>yt,getStringLiteralType:Sp,getNumberType:()=>Gt,getNumberLiteralType:Ch,getBigIntType:()=>gr,getBigIntLiteralType:r5,getUnknownType:()=>Nt,createPromiseType:V5,createArrayType:Yd,getElementTypeOfArrayType:m5,getBooleanType:()=>jt,getFalseType:n=>n?nr:Jn,getTrueType:n=>n?ft:Mt,getVoidType:()=>In,getUndefinedType:()=>he,getNullType:()=>Xt,getESSymbolType:()=>Qt,getNeverType:()=>yn,getNonPrimitiveType:()=>kn,getOptionalType:()=>xt,getPromiseType:()=>$z(!1),getPromiseLikeType:()=>JWe(!1),getAnyAsyncIterableType:()=>{const n=Qz(!1);if(n!==Zt)return ky(n,[Ue,Ue,Ue])},isSymbolAccessible:oT,isArrayType:im,isTupleType:Ka,isArrayLikeType:jv,isEmptyAnonymousObjectType:ng,isTypeInvalidDueToUnionDiscriminant:klt,getExactOptionalProperties:cut,getAllPossiblePropertiesOfTypes:wlt,getSuggestedSymbolForNonexistentProperty:Rge,getSuggestedSymbolForNonexistentJSXAttribute:J6e,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>X6e(n,Cl(a),c),getSuggestedSymbolForNonexistentModule:Dge,getSuggestedSymbolForNonexistentClassMember:q6e,getBaseConstraintOfType:Ld,getDefaultFromTypeParameter:n=>n&&n.flags&262144?AE(n):void 0,resolveName(n,a,c,p){return gt(a,Cl(n),c,void 0,!1,p)},getJsxNamespace:n=>Bi(Jm(n)),getJsxFragmentFactory:n=>{const a=Pye(n);return a&&Bi(Lu(a).escapedText)},getAccessibleSymbolChain:Lv,getTypePredicateOfSignature:nm,resolveExternalModuleName:n=>{const a=jo(n,St);return a&&uu(a,a,!0)},resolveExternalModuleSymbol:Tp,tryGetThisTypeAt:(n,a,c)=>{const p=jo(n);return p&&sge(p,a,c)},getTypeArgumentConstraint:n=>{const a=jo(n,Ri);return a&&z_t(a)},getSuggestionDiagnostics:(n,a)=>{const c=jo(n,Yi)||C.fail("Could not determine parsed source file.");if(mD(c,O,e))return se;let p;try{return i=a,Iye(c),C.assert(!!(Vr(c).flags&1)),p=Xr(p,Q1.getDiagnostics(c.fileName)),h3e(Y3e(c),(m,b,I)=>{!fI(m)&&!X3e(b,!!(m.flags&33554432))&&(p||(p=[])).push({...I,category:2})}),p||se}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(or)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Na,isDeclarationVisible:Y_,isPropertyAccessible:Nge,getTypeOnlyAliasDeclaration:Ah,getMemberOverrideModifierStatus:byt,isTypeParameterPossiblyReferenced:a5,typeHasCallOrConstructSignatures:U$,getSymbolFlags:dp,getTypeArgumentsForResolvedSignature:Di,isLibType:kC};function Di(n){if(n.mapper!==void 0)return Fy((n.target||n).typeParameters,n.mapper)}function co(n,a){const c=new Set,p=[];Zr(a,()=>Ai(n,p,void 0,0));for(const m of p)c.add(m);p.length=0,zt(a,()=>Ai(n,p,void 0,0));for(const m of p)c.add(m);return Co(c)}function zt(n,a){if(n=Dn(n,eG),n){const c=[],p=[];for(;n;){const b=Vr(n);if(c.push([b,b.resolvedSignature]),b.resolvedSignature=void 0,Rb(n)){const I=Jr(Wr(n)),w=I.type;p.push([I,w]),I.type=void 0}n=Dn(n.parent,eG)}const m=a();for(const[b,I]of c)b.resolvedSignature=I;for(const[b,I]of p)b.type=I;return m}return a()}function Zr(n,a){const c=Dn(n,yS);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 Ai(n,a,c,p){const m=jo(n,yS);at=c;const b=m?ZC(m,a,p):void 0;return at=void 0,b}var Ni=new Map,Pr=new Map,Ci=new Map,Ye=new Map,At=new Map,mn=new Map,dr=new Map,ri=new Map,ai=new Map,Hi=new Map,$o=new Map,Ia=new Map,Pn=new Map,Uo=new Map,ot=new Map,Ft=[],le=new Map,ht=new Set,ne=ja(4,"unknown"),Fe=ja(0,"__resolving__"),it=new Map,dt=new Map,Lt=new Set,Ue=ki(1,"any"),Rt=ki(1,"any",262144,"auto"),It=ki(1,"any",void 0,"wildcard"),Ot=ki(1,"any",void 0,"blocked string"),nt=ki(1,"error"),Kt=ki(1,"unresolved"),Tr=ki(1,"any",65536,"non-inferrable"),Oe=ki(1,"intrinsic"),Nt=ki(2,"unknown"),he=ki(32768,"undefined"),B=ie?he:ki(32768,"undefined",65536,"widening"),Ae=ki(32768,"undefined",void 0,"missing"),te=Ce?Ae:he,xt=ki(32768,"undefined",void 0,"optional"),Xt=ki(65536,"null"),Pe=ie?Xt:ki(65536,"null",65536,"widening"),yt=ki(4,"string"),Gt=ki(8,"number"),gr=ki(64,"bigint"),nr=ki(512,"false",void 0,"fresh"),Jn=ki(512,"false"),ft=ki(512,"true",void 0,"fresh"),Mt=ki(512,"true");ft.regularType=Mt,ft.freshType=ft,Mt.regularType=Mt,Mt.freshType=ft,nr.regularType=Jn,nr.freshType=nr,Jn.regularType=Jn,Jn.freshType=nr;var jt=pi([Jn,Mt]),Qt=ki(4096,"symbol"),In=ki(16384,"void"),yn=ki(131072,"never"),wt=ki(131072,"never",262144,"silent"),En=ki(131072,"never",void 0,"implicit"),xn=ki(131072,"never",void 0,"unreachable"),kn=ki(67108864,"object"),ln=pi([yt,Gt]),Ii=pi([yt,Gt,Qt]),ra=pi([Gt,gr]),la=pi([yt,Gt,jt,gr,Xt,he]),zo=AA(["",""],[Gt]),Bl=o5(n=>n.flags&262144?wdt(n):n,()=>"(restrictive mapper)"),xl=o5(n=>n.flags&262144?It:n,()=>"(permissive mapper)"),Ps=ki(131072,"never",void 0,"unique literal"),uo=o5(n=>n.flags&262144?Ps:n,()=>"(unique literal mapper)"),Go,Tc=o5(n=>(Go&&(n===Fs||n===Ee||n===Y)&&Go(!0),n),()=>"(unmeasurable reporter)"),$s=o5(n=>(Go&&(n===Fs||n===Ee||n===Y)&&Go(!1),n),()=>"(unreliable reporter)"),Ra=bl(void 0,k,se,se,se),ec=bl(void 0,k,se,se,se);ec.objectFlags|=2048;var bf=bl(void 0,k,se,se,se);bf.objectFlags|=141440;var Lo=ja(2048,"__type");Lo.members=da();var fa=bl(Lo,k,se,se,se),is=bl(void 0,k,se,se,se),qa=ie?pi([he,Xt,is]):Nt,Zt=bl(void 0,k,se,se,se);Zt.instantiations=new Map;var As=bl(void 0,k,se,se,se);As.objectFlags|=262144;var Hl=bl(void 0,k,se,se,se),lc=bl(void 0,k,se,se,se),vd=bl(void 0,k,se,se,se),Fs=Vu(),Ee=Vu();Ee.constraint=Fs;var Y=Vu(),pt=Vu(),qt=Vu();qt.constraint=pt;var fn=MW(1,"<>",0,Ue),ur=v_(void 0,void 0,void 0,se,Ue,void 0,0,0),si=v_(void 0,void 0,void 0,se,nt,void 0,0,0),Dr=v_(void 0,void 0,void 0,se,Ue,void 0,0,0),zn=v_(void 0,void 0,void 0,se,wt,void 0,0,0),ro=Ug(Gt,yt,!0),Eo=Ug(yt,Ue,!1),Ns=new Map,Da={get yieldType(){return C.fail("Not supported")},get returnType(){return C.fail("Not supported")},get nextType(){return C.fail("Not supported")}},Qs=yT(Ue,Ue,Ue),Sc=yT(wt,wt,wt),mc={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:mct,getGlobalIterableType:Qz,getGlobalIterableIteratorType:KWe,getGlobalIteratorObjectType:_ct,getGlobalGeneratorType:gct,getGlobalBuiltinIteratorTypes:hct,resolveIterationType:(n,a)=>pR(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},Hs={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:yct,getGlobalIterableType:hY,getGlobalIterableIteratorType:XWe,getGlobalIteratorObjectType:bct,getGlobalGeneratorType:Tct,getGlobalBuiltinIteratorTypes:vct,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},Pl,vh=new Map,Pd=new Map,nf,op,ze,Jt,tr,yo,Za,es,Va,Mc,rl,Ll,ql,rf,bd,ld,jp,Au,Xf,V_,Ng,Mg,ap,Xc,bh,Tf,f_,oe,ut,tn,an,On,ar,ti,Ti,$i,z,Ve,kt,Wn,vo,ta,Ao,Vo,hl,Ca,cd,Up,Sf,Yf,Sy,Tv,Bu,j_,Th,xm,Hb,Xe,mt,Yt,Rn,Qn=new Map,Lr=0,Yn=0,cr=0,Oi=!1,Ro=0,_i,Do,Qi,_l=[],sp=[],Rm=[],Td=0,Dm=[],Hp=[],b0=[],m_=0,U_=[],T0=[],H_=0,TC=Sp(""),tL=Ch(0),SC=r5({negative:!1,base10Value:"0"}),Pg=[],S0=[],J1=[],Sv=0,K1=!1,Dx=0,nL=10,X1=[],Cx=[],E0=[],EC=[],Y1=[],Nx=[],cE=[],qb=[],Mx=[],Px=[],dE=[],Jb=[],Ev=[],Ey=[],Ay=[],Iy=[],Kb=[],A0=[],$1=[],I0=0,ns=cM(),Q1=cM(),AC=Kd(),xy,Ry,q_=new Map,ul=new Map,qd=new Map,lp=new Map,Jd=new Map,x0=new Map,Iu=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",O.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Vvt(),or;function J_(n){return!qr(n)||!He(n.name)||!qr(n.expression)&&!He(n.expression)?!1:He(n.expression)?Kr(n.expression)==="Symbol"&&fu(n.expression)===(UC("Symbol",1160127,void 0)||ne):He(n.expression.expression)?Kr(n.expression.name)==="Symbol"&&Kr(n.expression.expression)==="globalThis"&&fu(n.expression.expression)===Re:!1}function Gu(n){return n?ot.get(n):void 0}function Cm(n,a){return n&&ot.set(n,a),a}function Jm(n){if(n){const a=Fn(n);if(a)if(Um(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const c=a.pragmas.get("jsxfrag");if(c){const m=Mo(c)?c[0]:c;if(a.localJsxFragmentFactory=nx(m.arguments.factory,G),st(a.localJsxFragmentFactory,D0,Mu),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Lu(a.localJsxFragmentFactory).escapedText}const p=Pye(n);if(p)return a.localJsxFragmentFactory=p,a.localJsxFragmentNamespace=Lu(p).escapedText}else{const c=R0(a);if(c)return a.localJsxNamespace=c}}return xy||(xy="React",O.jsxFactory?(Ry=nx(O.jsxFactory,G),st(Ry,D0),Ry&&(xy=Lu(Ry).escapedText)):O.reactNamespace&&(xy=Cl(O.reactNamespace))),Ry||(Ry=L.createQualifiedName(L.createIdentifier(Bi(xy)),"createElement")),xy}function R0(n){if(n.localJsxNamespace)return n.localJsxNamespace;const a=n.pragmas.get("jsx");if(a){const c=Mo(a)?a[0]:a;if(n.localJsxFactory=nx(c.arguments.factory,G),st(n.localJsxFactory,D0,Mu),n.localJsxFactory)return n.localJsxNamespace=Lu(n.localJsxFactory).escapedText}}function D0(n){return uh(n,-1,-1),wn(n,D0,void 0)}function rL(n,a,c){return c||$3e(n,a),re}function IC(n,a,...c){const p=n?Ar(n,a,...c):Il(a,...c),m=ns.lookup(p);return m||(ns.add(p),p)}function Av(n,a,c,...p){const m=Qe(a,c,...p);return m.skippedOn=n,m}function uE(n,a,...c){return n?Ar(n,a,...c):Il(a,...c)}function Qe(n,a,...c){const p=uE(n,a,...c);return ns.add(p),p}function Z1(n){const c=Fn(n).fileName;return $l(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 Lg(n,a){n?ns.add(a):Q1.add({...a,category:2})}function Km(n,a,c,...p){if(a.pos<0||a.end<0){if(!n)return;const m=Fn(a);Lg(n,"message"in c?Oc(m,0,0,c,...p):IG(m,c));return}Lg(n,"message"in c?Ar(a,c,...p):_g(Fn(a),a,c))}function Iv(n,a,c,...p){const m=Qe(n,c,...p);if(a){const b=Ar(n,f.Did_you_forget_to_use_await);pa(m,b)}return m}function Xb(n,a){const c=Array.isArray(n)?$e(n,G9):G9(n);return c&&pa(a,Ar(c,f.The_declaration_was_marked_as_deprecated_here)),Q1.add(a),a}function xu(n){const a=Yc(n);return a&&Ze(n.declarations)>1?a.flags&64?vt(n.declarations,Sh):Hn(n.declarations,Sh):!!n.valueDeclaration&&Sh(n.valueDeclaration)||Ze(n.declarations)&&Hn(n.declarations,Sh)}function Sh(n){return!!(OE(n)&536870912)}function Nm(n,a,c){const p=Ar(n,f._0_is_deprecated,c);return Xb(a,p)}function C0(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 Xb(a,m)}function ja(n,a,c){g++;const p=new s(n|33554432,a);return p.links=new j1e,p.links.checkFlags=c||0,p}function Ef(n,a){const c=ja(1,n);return c.links.type=a,c}function xv(n,a){const c=ja(4,n);return c.links.type=a,c}function eA(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 Dy(n,a){a.mergeId||(a.mergeId=G1e,G1e++),X1[a.mergeId]=n}function pE(n){const a=ja(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)),Dy(a,n),a}function $f(n,a,c=!1){if(!(n.flags&eA(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){const b=hc(n);if(b===ne)return a;if(!(b.flags&eA(a.flags))||(a.flags|b.flags)&67108864)n=pE(b);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&&ZN(n,a.valueDeclaration),Xr(n.declarations,a.declarations),a.members&&(n.members||(n.members=da()),h_(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=da()),h_(n.exports,a.exports,c,n)),c||Dy(n,a)}else n.flags&1024?n!==Re&&Qe(a.declarations&&Oo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,po(n)):p(n,a);return n;function p(b,I){const w=!!(b.flags&384||I.flags&384),U=!!(b.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&&Fn(I.declarations[0]),Ie=b.declarations&&Fn(b.declarations[0]),Te=VN(Q,O.checkJs),et=VN(Ie,O.checkJs),Tt=po(I);if(Q&&Ie&&Pl&&!w&&Q!==Ie){const Dt=ey(Q.path,Ie.path)===-1?Q:Ie,$t=Dt===Q?Ie:Q,Tn=KA(Pl,`${Dt.path}|${$t.path}`,()=>({firstFile:Dt,secondFile:$t,conflictingSymbols:new Map})),rr=KA(Tn.conflictingSymbols,Tt,()=>({isBlockScoped:U,firstFileLocations:[],secondFileLocations:[]}));Te||m(rr.firstFileLocations,I),et||m(rr.secondFileLocations,b)}else Te||kg(I,H,Tt,b),et||kg(b,H,Tt,I)}function m(b,I){if(I.declarations)for(const w of I.declarations)kf(b,w)}}function kg(n,a,c,p){$e(n.declarations,m=>{N0(m,a,c,p.declarations)})}function N0(n,a,c,p){const m=(zT(n,!1)?LG(n):Oo(n))||n,b=IC(m,a,c);for(const I of p||se){const w=(zT(I,!1)?LG(I):Oo(I))||I;if(w===m)continue;b.relatedInformation=b.relatedInformation||[];const U=Ar(w,f._0_was_also_declared_here,c),H=Ar(w,f.and_here);Ze(b.relatedInformation)>=5||vt(b.relatedInformation,Q=>vM(Q,H)===0||vM(Q,U)===0)||pa(b,Ze(b.relatedInformation)?H:U)}}function Rv(n,a){if(!(n!=null&&n.size))return a;if(!(a!=null&&a.size))return n;const c=da();return h_(c,n),h_(c,a),c}function h_(n,a,c=!1,p){a.forEach((m,b)=>{const I=n.get(b),w=I?$f(I,m,c):os(m);p&&I&&(w.parent=p),n.set(b,w)})}function fE(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(P_(m))h_(lt,m.symbol.exports);else{const b=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let I=bp(n,n,b,!1,!0);if(!I)return;if(I=Tp(I),I.flags&1920)if(vt(op,w=>I===w.symbol)){const w=$f(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=hhe(I,"resolvedExports");for(const[U,H]of Co(m.symbol.exports.entries()))w.has(U)&&!I.exports.has(U)&&$f(w.get(U),H)}$f(I,m.symbol)}else Qe(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function M0(){const n=ce.escapedName,a=lt.get(n);a?$e(a.declarations,c=>{kI(c)||ns.add(Ar(c,f.Declaration_name_conflicts_with_built_in_global_identifier_0,Bi(n)))}):lt.set(n,ce)}function Jr(n){if(n.flags&33554432)return n.links;const a=Ta(n);return Cx[a]??(Cx[a]=new j1e)}function Vr(n){const a=ls(n);return E0[a]||(E0[a]=new vHe)}function Sd(n,a,c){if(c){const p=os(n.get(a));if(p&&(p.flags&c||p.flags&2097152&&dp(p)&c))return p}}function tA(n,a){const c=n.parent,p=n.parent.parent,m=Sd(c.locals,a,111551),b=Sd(Q_(p.symbol),a,111551);return m&&b?[m,b]:C.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Cy(n,a){const c=Fn(n),p=Fn(a),m=sh(n);if(c!==p){if(j&&(c.externalModuleIndicator||p.externalModuleIndicator)||!O.outFile||EI(a)||n.flags&33554432||I(a,n))return!0;const H=e.getSourceFiles();return H.indexOf(c)<=H.indexOf(p)}if(a.flags&16777216||EI(a)||H_e(a))return!0;if(n.pos<=a.pos&&!(Po(n)&&lk(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===209){const H=VT(a,209);return H?Dn(H,Ha)!==Dn(n,Ha)||n.posQ===n?"quit":va(Q)?Q.parent.parent===n:!J&&Wc(Q)&&(Q.parent===n||Nl(Q.parent)&&Q.parent.parent===n||W2(Q.parent)&&Q.parent.parent===n||Po(Q.parent)&&Q.parent.parent===n||to(Q.parent)&&Q.parent.parent.parent===n));return H?!J&&Wc(H)?!!Dn(a,Q=>Q===H?"quit":Yo(Q)&&!WT(Q)):!1:!0}else{if(Po(n))return!U(n,a,!1);if(Np(n,n.parent))return!(q&&hd(n)===hd(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&&hd(n)&&(Po(n)||Np(n,n.parent))?!U(n,a,!0):!0;return!1;function b(H,Q){switch(H.parent.parent.kind){case 244:case 249:case 251:if(Xm(Q,H,m))return!0;break}const Ie=H.parent.parent;return ZE(Ie)&&Xm(Q,Ie.expression,m)}function I(H,Q){return w(H,Q)}function w(H,Q){return!!Dn(H,Ie=>{if(Ie===m)return"quit";if(Yo(Ie))return!WT(Ie);if(Ql(Ie))return Q.posH.end?!1:Dn(Q,et=>{if(et===H)return"quit";switch(et.kind){case 220:return!0;case 173:return Ie&&(Po(H)&&et.parent===H.parent||Np(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 mE(n){return Vr(n).declarationRequiresScopeChange}function xC(n,a){Vr(n).declarationRequiresScopeChange=a}function iL(n,a,c,p){return q?!1:(n&&!p&&nA(n,a,a)||Qe(n,n&&c.type&&N2(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),vp(a)),!0)}function zr(n,a,c,p){const m=Bo(a)?a:a.escapedText;r(()=>{if(!n||n.parent.kind!==325&&!nA(n,m,a)&&!Yb(n)&&!RC(n,m,c)&&!K_(n,m)&&!Qb(n,m,c)&&!Eh(n,m,c)&&!Lx(n,m,c)){let b,I;if(a&&(I=Smt(a),I&&Qe(n,p,vp(a),I)),!I&&Dx{var I;const w=a.escapedName,U=p&&Yi(p)&&Pp(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)&&Af(H,n)}if(U&&(c&111551)===111551&&!(n.flags&16777216)){const H=os(a);Ze(H.declarations)&&Hn(H.declarations,Q=>yw(Q)||Yi(Q)&&!!Q.symbol.globalExports)&&Km(!O.allowUmdGlobalAccess,n,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Bi(w))}if(m&&!b&&(c&111551)===111551){const H=os(eY(a)),Q=Kh(m);H===Wr(m)?Qe(n,f.Parameter_0_cannot_reference_itself,ws(m.name)):H.valueDeclaration&&H.valueDeclaration.pos>m.pos&&Q.parent.locals&&Sd(Q.parent.locals,H.escapedName,c)===H&&Qe(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)&&!HT(n)){const H=Ah(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,Ie=Bi(w);Wo(Qe(n,Q,Ie),H,Ie)}}if(O.isolatedModules&&a&&U&&(c&111551)===111551){const Q=Sd(lt,w,c)===a&&Yi(p)&&p.locals&&Sd(p.locals,w,-111552);if(Q){const Ie=(I=Q.declarations)==null?void 0:I.find(Te=>Te.kind===277||Te.kind===274||Te.kind===275||Te.kind===272);Ie&&!FR(Ie)&&Qe(Ie,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Bi(w))}}})}function Wo(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 vp(n){return Bo(n)?Bi(n):ws(n)}function nA(n,a,c){if(!He(n)||n.escapedText!==a||Q3e(n)||EI(n))return!1;const p=vu(n,!1,!1);let m=p;for(;m;){if(ui(m.parent)){const b=Wr(m.parent);if(!b)break;const I=_r(b);if(Ea(I,a))return Qe(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,vp(c),po(b)),!0;if(m===p&&!ua(m)){const w=qs(b).thisType;if(Ea(w,a))return Qe(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,vp(c)),!0}}m=m.parent}return!1}function Yb(n){const a=Mr(n);return a&&Gl(a,64,!0)?(Qe(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Al(a)),!0):!1}function Mr(n){switch(n.kind){case 80:case 212:return n.parent?Mr(n.parent):void 0;case 234:if(Ds(n.expression))return n.expression;default:return}}function RC(n,a,c){const p=1920|(Ir(n)?111551:0);if(c===p){const m=hc(gt(n,a,788968&~p,void 0,!1)),b=n.parent;if(m){if(ku(b)){C.assert(b.left===n,"Should only be resolving left side of qualified name as a namespace");const I=b.right.escapedText;if(Ea(qs(m),I))return Qe(b,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,Bi(a),Bi(I)),!0}return Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Bi(a)),!0}}return!1}function Lx(n,a,c){if(c&788584){const p=hc(gt(n,a,111127,void 0,!1));if(p&&!(p.flags&1920))return Qe(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Bi(a)),!0}return!1}function du(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function K_(n,a){return du(a)&&n.parent.kind===282?(Qe(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Eh(n,a,c){if(c&111551){if(du(a)){const b=n.parent.parent;if(b&&b.parent&&Fp(b)){const I=b.token;b.parent.kind===265&&I===96?Qe(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Bi(a)):ui(b.parent)&&I===96?Qe(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Bi(a)):ui(b.parent)&&I===119&&Qe(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Bi(a))}else Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Bi(a));return!0}const p=hc(gt(n,a,788544,void 0,!1)),m=p&&dp(p);if(p&&m!==void 0&&!(m&111551)){const b=Bi(a);return rA(a)?Qe(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,b):$b(n,p)?Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,b,b==="K"?"P":"K"):Qe(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,b),!0}}return!1}function $b(n,a){const c=Dn(n.parent,p=>va(p)||Su(p)?!1:wu(p)||"quit");if(c&&c.members.length===1){const p=qs(a);return!!(p.flags&1048576)&&l8(p,384,!0)}return!1}function rA(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Qb(n,a,c){if(c&111127){if(hc(gt(n,a,1024,void 0,!1)))return Qe(n,f.Cannot_use_namespace_0_as_a_value,Bi(a)),!0}else if(c&788544&&hc(gt(n,a,1536,void 0,!1)))return Qe(n,f.Cannot_use_namespace_0_as_a_type,Bi(a)),!0;return!1}function Af(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=>hG(m)||ui(m)||m.kind===267);if(p===void 0)return C.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(p.flags&33554432)&&!Cy(p,a)){let m;const b=ws(Oo(p));n.flags&2?m=Qe(a,f.Block_scoped_variable_0_used_before_its_declaration,b):n.flags&32?m=Qe(a,f.Class_0_used_before_its_declaration,b):n.flags&256?m=Qe(a,f.Enum_0_used_before_its_declaration,b):(C.assert(!!(n.flags&128)),vm(O)&&(m=Qe(a,f.Enum_0_used_before_its_declaration,b))),m&&pa(m,Ar(p,f._0_is_declared_here,b))}}function Xm(n,a,c){return!!a&&!!Dn(n,p=>p===a||(p===c||Yo(p)&&(!WT(p)||dc(p)&3)?"quit":!1))}function Qf(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 cp(n){return n.declarations&&ma(n.declarations,Dv)}function Dv(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&&Rk(n)||Nr(n)&&ac(n)===2&&Rk(n)||Ks(n)&&Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&P0(n.parent.right)||n.kind===305||n.kind===304&&P0(n.initializer)||n.kind===261&&AS(n)||n.kind===209&&AS(n.parent.parent)}function P0(n){return s6(n)||Us(n)&&A_(n)}function kx(n,a){const c=Wx(n);if(c){const m=dD(c.expression).arguments[0];return He(c.name)?hc(Ea(AWe(m),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===284){const m=uu(n,PG(n)||XN(n)),b=Tp(m);if(b&&102<=j&&j<=199){const I=hE(b,"module.exports",n,a);if(I)return I}return Zf(n,m,b,!1),b}const p=rT(n.moduleReference,a);return L0(n,p),p}function L0(n,a){if(Zf(n,void 0,a,!1)&&!n.isTypeOnly){const c=Ah(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,b=p?f._0_was_exported_here:f._0_was_imported_here,I=c.kind===279?"*":yb(c.name);pa(Qe(n.moduleReference,m),Ar(c,b,I))}}function Zb(n,a,c,p){const m=n.exports.get("export="),b=m?Ea(_r(m),a,!0):n.exports.get(a),I=hc(b,p);return Zf(c,b,I,!1),I}function wx(n){return dl(n)&&!n.isExportEquals||di(n,2048)||ou(n)||W_(n)}function Ny(n){return ds(n)?e.getEmitSyntaxForUsageLocation(Fn(n),n):void 0}function __(n,a){return n===99&&a===1}function eT(n,a){if(100<=j&&j<=199&&Ny(n)===99){a??(a=uu(n,n,!0));const p=a&&X2(a);return p&&(Ff(p)||W4(p.fileName)===".d.json.ts")}return!1}function k0(n,a,c,p){const m=n&&Ny(p);if(n&&m!==void 0){const b=e.getImpliedNodeFormatForEmit(n);if(m===99&&b===1&&100<=j&&j<=199)return!0;if(m===99&&b===99)return!1}if(!ye)return!1;if(!n||n.isDeclarationFile){const b=Zb(a,"default",void 0,!0);return!(b&&vt(b.declarations,wx)||Zb(a,Cl("__esModule"),void 0,c))}return Pu(n)?typeof n.externalModuleIndicator!="object"&&!Zb(a,Cl("__esModule"),void 0,c):$m(a)}function Cv(n,a){const c=uu(n,n.parent.moduleSpecifier);if(c)return tT(c,n,a)}function tT(n,a,c){var p;const m=(p=n.declarations)==null?void 0:p.find(Yi),b=Ym(a);let I,w;if(Q2(n))I=n;else if(m&&b&&102<=j&&j<=199&&Ny(b)===1&&e.getImpliedNodeFormatForEmit(m)===99&&(w=Zb(n,"module.exports",a,c))){if(!Qh(O)){Qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,po(n),"esModuleInterop");return}return Zf(a,w,void 0,!1),w}else I=Zb(n,"default",a,c);if(!b)return I;const U=eT(b,n),H=k0(m,n,c,b);if(!I&&!H&&!U)if($m(n)&&!ye){const Q=j>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=n.exports.get("export=").valueDeclaration,et=Qe(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,po(n),Q);Te&&pa(et,Ar(Te,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)?My(n,a):iA(n,n,a,ub(a)&&a.propertyName||a.name);else if(H||U){const Q=Tp(n,c)||hc(n,c);return Zf(a,n,Q,!1),Q}return Zf(a,I,void 0,!1),I}function Ym(n){switch(n.kind){case 274:return n.parent.moduleSpecifier;case 272:return py(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 My(n,a){var c,p,m;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Qe(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,po(n),po(a.symbol));else{const b=Qe(a.name,f.Module_0_has_no_default_export,po(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!!(fc(U)&&U.moduleSpecifier&&((Q=(H=uu(U,U.moduleSpecifier))==null?void 0:H.exports)!=null&&Q.has("default")))});w&&pa(b,Ar(w,f.export_Asterisk_does_not_re_export_a_default))}}}function wg(n,a){const c=n.parent.parent.moduleSpecifier,p=uu(n,c),m=Fg(p,c,a,!1);return Zf(n,p,m,!1),m}function nT(n,a){const c=n.parent.moduleSpecifier,p=c&&uu(n,c),m=c&&Fg(p,c,a,!1);return Zf(n,p,m,!1),m}function dd(n,a){if(n===ne&&a===ne)return ne;if(n.flags&790504)return n;const c=ja(n.flags|a.flags,n.escapedName);return C.assert(n.declarations||a.declarations),c.declarations=dS(lo(n.declarations,a.declarations),nb),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 hE(n,a,c,p){var m;if(n.flags&1536){const b=qp(n).get(a),I=hc(b,p),w=(m=Jr(n).typeOnlyExportStarMap)==null?void 0:m.get(a);return Zf(c,b,I,!1,w,a),I}}function Og(n,a){if(n.flags&3){const c=n.valueDeclaration.type;if(c)return hc(Ea(qi(c),a))}}function w0(n,a,c=!1){var p;const m=PG(n)||n.moduleSpecifier,b=uu(n,m),I=!qr(a)&&a.propertyName||a.name;if(!He(I)&&I.kind!==11)return;const w=TS(I),H=Fg(b,m,!1,w==="default"&&ye);if(H&&(w||I.kind===11)){if(Q2(b))return b;let Q;b&&b.exports&&b.exports.get("export=")?Q=Ea(_r(H),w,!0):Q=Og(H,w),Q=hc(Q,c);let Ie=hE(H,w,a,c);if(Ie===void 0&&w==="default"){const et=(p=b.declarations)==null?void 0:p.find(Yi);(eT(m,b)||k0(et,b,c,m))&&(Ie=Tp(b,c)||hc(b,c))}const Te=Ie&&Q&&Ie!==Q?dd(Q,Ie):Ie||Q;return ub(a)&&eT(m,b)&&w!=="default"?Qe(I,f.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,CR[j]):Te||iA(b,H,n,I),Te}}function iA(n,a,c,p){var m;const b=Nv(n,c),I=ws(p),w=He(p)?Dge(p,a):void 0;if(w!==void 0){const U=po(w),H=Qe(p,f._0_has_no_exported_member_named_1_Did_you_mean_2,b,I,U);w.valueDeclaration&&pa(H,Ar(w.valueDeclaration,f._0_is_declared_here,U))}else(m=n.exports)!=null&&m.has("default")?Qe(p,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,b,I):Wg(c,p,I,n,b)}function Wg(n,a,c,p,m){var b,I;const w=(I=(b=ni(p.valueDeclaration,C_))==null?void 0:b.locals)==null?void 0:I.get(TS(a)),U=p.exports;if(w){const H=U==null?void 0:U.get("export=");if(H)me(H,w)?DC(n,a,c,m):Qe(a,f.Module_0_has_no_exported_member_1,m,c);else{const Q=U?hn(Che(U),Te=>!!me(Te,w)):void 0,Ie=Q?Qe(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,m,c,po(Q)):Qe(a,f.Module_0_declares_1_locally_but_it_is_not_exported,m,c);w.declarations&&pa(Ie,...Bt(w.declarations,(Te,et)=>Ar(Te,et===0?f._0_is_declared_here:f.and_here,c)))}}else Qe(a,f.Module_0_has_no_exported_member_1,m,c)}function DC(n,a,c,p){if(j>=5){const m=Qh(O)?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;Qe(a,m,c)}else if(Ir(n)){const m=Qh(O)?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;Qe(a,m,c)}else{const m=Qh(O)?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;Qe(a,m,c,c,p)}}function Ox(n,a){if(Eu(n)&&M_(n.propertyName||n.name)){const I=Ym(n),w=I&&uu(n,I);if(w)return tT(w,n,a)}const c=Ha(n)?Kh(n):n.parent.parent.parent,p=Wx(c),m=w0(c,p||n,a),b=n.propertyName||n.name;return p&&m&&He(b)?hc(Ea(_r(m),b.escapedText),a):(Zf(n,void 0,m,!1),m)}function Wx(n){if(yi(n)&&n.initializer&&qr(n.initializer))return n.initializer}function oL(n,a){if(ah(n.parent)){const c=Tp(n.parent.symbol,a);return Zf(n,void 0,c,!1),c}}function Fx(n,a,c){const p=n.propertyName||n.name;if(M_(p)){const b=Ym(n),I=b&&uu(n,b);if(I)return tT(I,n,!!c)}const m=n.parent.parent.moduleSpecifier?w0(n.parent.parent,n,c):p.kind===11?void 0:Gl(p,a,!1,c);return Zf(n,void 0,m,!1),m}function O0(n,a){const c=dl(n)?n.expression:n.right,p=Py(c,a);return Zf(n,void 0,p,!1),p}function Py(n,a){if(uc(n))return Vl(n).symbol;if(!Mu(n)&&!Ds(n))return;const c=Gl(n,901119,!0,a);return c||(Vl(n),Vr(n).resolvedSymbol)}function CC(n,a){if(Nr(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return Py(n.parent.right,a)}function W0(n,a=!1){switch(n.kind){case 272:case 261:return kx(n,a);case 274:return Cv(n,a);case 275:return wg(n,a);case 281:return nT(n,a);case 277:case 209:return Ox(n,a);case 282:return Fx(n,901119,a);case 278:case 227:return O0(n,a);case 271:return oL(n,a);case 305:return Gl(n.name,901119,!0,a);case 304:return Py(n.initializer,a);case 213:case 212:return CC(n,a);default:return C.fail()}}function oA(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function hc(n,a){return!a&&oA(n)?ud(n):n}function ud(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=cp(n);if(!c)return C.fail();const p=W0(c);a.aliasTarget===Fe?a.aliasTarget=p||ne:Qe(c,f.Circular_definition_of_import_alias_0,po(n))}return a.aliasTarget}function zx(n){if(Jr(n).aliasTarget!==Fe)return ud(n)}function dp(n,a,c){const p=a&&Ah(n),m=p&&fc(p),b=p&&(m?uu(p.moduleSpecifier,p.moduleSpecifier,!0):ud(p.symbol)),I=m&&b?g_(b):void 0;let w=c?0:n.flags,U;for(;n.flags&2097152;){const H=Et(ud(n));if(!m&&H===b||(I==null?void 0:I.get(H.escapedName))===H)break;if(H===ne)return-1;if(H===n||U!=null&&U.has(H))break;H.flags&2097152&&(U?U.add(H):U=new Set([n,H])),w|=H.flags,n=H}return w}function Zf(n,a,c,p,m,b){if(!n||qr(n))return!1;const I=Wr(n);if(Qy(n)){const U=Jr(I);return U.typeOnlyDeclaration=n,!0}if(m){const U=Jr(I);return U.typeOnlyDeclaration=m,I.escapedName!==b&&(U.typeOnlyExportStarName=b),!0}const w=Jr(I);return _E(w,a,p)||_E(w,c,p)}function _E(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,b=m.declarations&&hn(m.declarations,Qy);n.typeOnlyDeclaration=b??Jr(m).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function Ah(n,a){var c;if(!(n.flags&2097152))return;const p=Jr(n);if(p.typeOnlyDeclaration===void 0){p.typeOnlyDeclaration=!1;const m=hc(n);Zf((c=n.declarations)==null?void 0:c[0],cp(n)&&a$(n),m,!0)}if(a===void 0)return p.typeOnlyDeclaration||void 0;if(p.typeOnlyDeclaration){const m=p.typeOnlyDeclaration.kind===279?hc(g_(p.typeOnlyDeclaration.symbol.parent).get(p.typeOnlyExportStarName||n.escapedName)):ud(p.typeOnlyDeclaration.symbol);return dp(m)&a?p.typeOnlyDeclaration:void 0}}function rT(n,a){return n.kind===80&&fM(n)&&(n=n.parent),n.kind===80||n.parent.kind===167?Gl(n,1920,!1,a):(C.assert(n.parent.kind===272),Gl(n,901119,!1,a))}function Nv(n,a){return n.parent?Nv(n.parent,a)+"."+po(n):po(n,a,void 0,36)}function Bx(n){for(;ku(n.parent);)n=n.parent;return n}function aL(n){let a=Lu(n),c=gt(a,a,111551,void 0,!0);if(c){for(;ku(a.parent);){const p=_r(c);if(c=Ea(p,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function Gl(n,a,c,p,m){if(Ol(n))return;const b=1920|(Ir(n)?a&111551:0);let I;if(n.kind===80){const w=a===b||Os(n)?f.Cannot_find_namespace_0:AFe(Lu(n)),U=Ir(n)&&!Os(n)?NC(n,a):void 0;if(I=os(gt(m||n,n,a,c||U?void 0:w,!0,!1)),!I)return os(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=Gl(w,b,c,!1,m);if(!H||Ol(U))return;if(H===ne)return H;if(H.valueDeclaration&&Ir(H.valueDeclaration)&&iu(O)!==100&&yi(H.valueDeclaration)&&H.valueDeclaration.initializer&&b4e(H.valueDeclaration.initializer)){const Q=H.valueDeclaration.initializer.arguments[0],Ie=uu(Q,Q);if(Ie){const Te=Tp(Ie);Te&&(H=Te)}}if(I=os(Sd(qp(H),U.escapedText,a)),!I&&H.flags&2097152&&(I=os(Sd(qp(ud(H)),U.escapedText,a))),!I){if(!c){const Q=Nv(H),Ie=ws(U),Te=Dge(U,H);if(Te){Qe(U,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,Ie,po(Te));return}const et=ku(n)&&Bx(n);if(Jt&&a&788968&&et&&!TD(et.parent)&&aL(et)){Qe(et,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Mp(et));return}if(a&1920&&ku(n.parent)){const Dt=os(Sd(qp(H),U.escapedText,788968));if(Dt){Qe(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,po(Dt),Bi(n.parent.right.escapedText));return}}Qe(U,f.Namespace_0_has_no_exported_member_1,Q,Ie)}return}}else C.assertNever(n,"Unknown entity name kind.");return!Os(n)&&Mu(n)&&(I.flags&2097152||n.parent.kind===278)&&Zf(VG(n),I,void 0,!0),I.flags&a||p?I:ud(I)}function NC(n,a){if(pY(n.parent)){const c=aA(n.parent);if(c)return gt(c,n,a,void 0,!0)}}function aA(n){if(Dn(n,m=>GR(m)||m.flags&16777216?_m(m):"quit"))return;const c=xS(n);if(c&&od(c)&&vk(c.expression)){const m=Wr(c.expression.left);if(m)return gE(m)}if(c&&Us(c)&&vk(c.parent)&&od(c.parent.parent)){const m=Wr(c.parent.left);if(m)return gE(m)}if(c&&(hm(c)||Cc(c))&&Nr(c.parent.parent)&&ac(c.parent.parent)===6){const m=Wr(c.parent.parent.left);if(m)return gE(m)}const p=GT(n);if(p&&Yo(p)){const m=Wr(p);return m&&m.valueDeclaration}}function gE(n){const a=n.parent.valueDeclaration;return a?($N(a)?_I(a):e1(a)?QN(a):void 0)||a:void 0}function Gx(n){const a=n.valueDeclaration;if(!a||!Ir(a)||n.flags&524288||zT(a,!1))return;const c=yi(a)?QN(a):_I(a);if(c){const p=If(c);if(p)return Fge(p,n)}}function uu(n,a,c){const m=iu(O)===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 bp(n,a,c?void 0:m,c)}function bp(n,a,c,p=!1,m=!1){return ds(a)?sA(n,a.text,c,p?void 0:a,m):void 0}function sA(n,a,c,p,m=!1){var b,I,w,U,H,Q,Ie,Te,et,Tt,Dt,$t;if(p&&fo(a,"@types/")){const zi=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ko=hN(a,"@types/");Qe(p,zi,Ko,a)}const Tn=EWe(a,!0);if(Tn)return Tn;const rr=Fn(n),yr=ds(n)?n:((b=pc(n)?n:n.parent&&pc(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:b.name)||((I=iy(n)?n:void 0)==null?void 0:I.argument.literal)||(yi(n)&&n.initializer&&Zu(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((w=Dn(n,Qu))==null?void 0:w.arguments[0])||((U=Dn(n,Rp(vl,a_,fc)))==null?void 0:U.moduleSpecifier)||((H=Dn(n,FT))==null?void 0:H.moduleReference.expression),Sn=yr&&ds(yr)?e.getModeForUsageLocation(rr,yr):e.getDefaultResolutionModeForFile(rr),vn=iu(O),Sr=(Q=e.getResolvedModule(rr,a,Sn))==null?void 0:Q.resolvedModule,fi=p&&Sr&&RH(O,Sr,rr),oo=Sr&&(!fi||fi===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Sr.resolvedFileName);if(oo){if(fi&&Qe(p,fi,a,Sr.resolvedFileName),Sr.resolvedUsingTsExtension&&ad(a)){const zi=((Ie=Dn(n,vl))==null?void 0:Ie.importClause)||Dn(n,Rp(Fc,fc));(p&&zi&&!zi.isTypeOnly||Dn(n,Qu))&&Qe(p,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,ii(C.checkDefined(x6(a))))}else if(Sr.resolvedUsingTsExtension&&!VD(O,rr.fileName)){const zi=((Te=Dn(n,vl))==null?void 0:Te.importClause)||Dn(n,Rp(Fc,fc));if(p&&!(zi!=null&&zi.isTypeOnly||Dn(n,t_))){const Ko=C.checkDefined(x6(a));Qe(p,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Ko)}}else if(O.rewriteRelativeImportExtensions&&!(n.flags&33554432)&&!ad(a)&&!iy(n)&&!ote(n)){const zi=Tk(a,O);if(!Sr.resolvedUsingTsExtension&&zi)Qe(p,f.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,MR(So(rr.fileName,e.getCurrentDirectory()),Sr.resolvedFileName,sy(e)));else if(Sr.resolvedUsingTsExtension&&!zi&&CS(oo,e))Qe(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,nI(a));else if(Sr.resolvedUsingTsExtension&&zi){const Ko=(et=e.getRedirectFromSourceFile(oo.path))==null?void 0:et.resolvedRef;if(Ko){const ms=!e.useCaseSensitiveFileNames(),mo=e.getCommonSourceDirectory(),pl=O1(Ko.commandLine,ms),Kl=cf(mo,pl,ms),mu=cf(O.outDir||mo,Ko.commandLine.options.outDir||pl,ms);Kl!==mu&&Qe(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(oo.symbol){if(p&&Sr.isExternalLibraryImport&&!EM(Sr.extension)&&F0(!1,p,rr,Sn,Sr,a),p&&(j===100||j===101)){const zi=rr.impliedNodeFormat===1&&!Dn(n,Qu)||!!Dn(n,Fc),Ko=Dn(n,ms=>t_(ms)||fc(ms)||vl(ms)||a_(ms));if(zi&&oo.impliedNodeFormat===99&&!zre(Ko))if(Dn(n,Fc))Qe(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 mo=Eg(rr.fileName);(mo===".ts"||mo===".js"||mo===".tsx"||mo===".jsx")&&(ms=cG(rr));const pl=(Ko==null?void 0: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==null?void 0: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;ns.add(_g(Fn(p),p,qo(ms,pl,a)))}}return os(oo.symbol)}p&&c&&!ZV(p)&&Qe(p,f.File_0_is_not_a_module,oo.fileName);return}if(op){const zi=$B(op,Ko=>Ko.pattern,a);if(zi){const Ko=ze&&ze.get(a);return os(Ko||zi.symbol)}}if(!p)return;if(Sr&&!EM(Sr.extension)&&fi===void 0||fi===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){const zi=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Qe(p,zi,a,Sr.resolvedFileName)}else F0(ve&&!!c,p,rr,Sn,Sr,a);return}if(c){if(Sr){const zi=e.getRedirectFromSourceFile(Sr.resolvedFileName);if(zi!=null&&zi.outputDts){Qe(p,f.Output_file_0_has_not_been_built_from_source_file_1,zi.outputDts,Sr.resolvedFileName);return}}if(fi)Qe(p,fi,a,Sr.resolvedFileName);else{const zi=Zp(a)&&!NR(a),Ko=vn===3||vn===99;if(!kS(O)&&El(a,".json")&&vn!==1&&O6(O))Qe(p,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Sn===99&&Ko&&zi){const ms=So(a,ci(rr.path)),mo=(Dt=Iu.find(([pl,Kl])=>e.fileExists(ms+pl)))==null?void 0:Dt[1];mo?Qe(p,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+mo):Qe(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(rr,a,Sn))!=null&&$t.alternateResult){const ms=PF(rr,e,a,Sn,a);Km(!0,p,qo(ms,c,a))}else Qe(p,c,a)}}return;function ii(zi){const Ko=Zk(a,zi);if(Kk(j)||Sn===99){const ms=ad(a)&&VD(O);return Ko+(zi===".mts"||zi===".d.mts"?ms?".mts":".mjs":zi===".cts"||zi===".d.mts"?ms?".cts":".cjs":ms?".ts":".js")}return Ko}}function F0(n,a,c,p,{packageId:m,resolvedFileName:b},I){if(ZV(a))return;let w;!td(I)&&m&&(w=PF(c,e,I,p,m.name)),Km(n,a,qo(w,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,b))}function Tp(n,a){if(n!=null&&n.exports){const c=hc(n.exports.get("export="),a),p=lA(os(c),os(n));return os(p)||n}}function lA(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:pE(n);return p.flags=p.flags|512,p.exports===void 0&&(p.exports=da()),a.exports.forEach((m,b)=>{b!=="export="&&p.exports.set(b,p.exports.has(b)?$f(p.exports.get(b),m):m)}),p===n&&(Jr(p).resolvedExports=void 0,Jr(p).resolvedMembers=void 0),Jr(p).cjsExportMerged=p,c.cjsExportMerged=p}function Fg(n,a,c,p){var m;const b=Tp(n,c);if(!c&&b){if(!p&&!(b.flags&1539)&&!ll(b,308)){const U=j>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,U),b}const I=a.parent,w=vl(I)&&ZR(I);if(w||Qu(I)){const U=Qu(I)?I.arguments[0]:I.moduleSpecifier,H=_r(b),Q=y4e(H,b,n,U);if(Q)return cA(b,Q,I);const Ie=(m=n==null?void 0:n.declarations)==null?void 0:m.find(Yi),Te=Ny(U);let et;if(w&&Ie&&102<=j&&j<=199&&Te===1&&e.getImpliedNodeFormatForEmit(Ie)===99&&(et=Zb(b,"module.exports",w,c)))return!p&&!(b.flags&1539)&&Qe(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,"esModuleInterop"),Qh(O)&&Vx(H)?cA(et,H,I):et;const Tt=Ie&&__(Te,e.getImpliedNodeFormatForEmit(Ie));if((Qh(O)||Tt)&&(Vx(H)||Ea(H,"default",!0)||Tt)){const Dt=H.flags&3670016?v4e(H,b,n,U):zge(b,b.parent);return cA(b,Dt,I)}}}return b}function Vx(n){return vt(Kz(n,0))||vt(Kz(n,1))}function cA(n,a,c){const p=ja(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=Dh(a);return p.links.type=bl(p,m.members,se,se,m.indexInfos),p}function $m(n){return n.exports.get("export=")!==void 0}function jx(n){return Che(g_(n))}function MC(n){const a=jx(n),c=Tp(n);if(c!==n){const p=_r(c);Mv(p)&&Xr(a,bs(p))}return a}function Ux(n,a){g_(n).forEach((m,b)=>{G0(b)||a(m,b)});const p=Tp(n);if(p!==n){const m=_r(p);Mv(m)&&Llt(m,(b,I)=>{a(b,I)})}}function dA(n,a){const c=g_(a);if(c)return c.get(n)}function Hx(n,a){const c=dA(n,a);if(c)return c;const p=Tp(a);if(p===a)return;const m=_r(p);return Mv(m)?Ea(m,n):void 0}function Mv(n){return!(n.flags&402784252||Hr(n)&1||im(n)||Ka(n))}function qp(n){return n.flags&6256?hhe(n,"resolvedExports"):n.flags&1536?g_(n):n.exports||k}function g_(n){const a=Jr(n);if(!a.resolvedExports){const{exports:c,typeOnlyExportStarMap:p}=pA(n);a.resolvedExports=c,a.typeOnlyExportStarMap=p}return a.resolvedExports}function uA(n,a,c,p){a&&a.forEach((m,b)=>{if(b==="default")return;const I=n.get(b);if(!I)n.set(b,m),c&&p&&c.set(b,{specifierText:Al(p.moduleSpecifier)});else if(c&&p&&I&&hc(I)!==hc(m)){const w=c.get(b);w.exportsWithDuplicate?w.exportsWithDuplicate.push(p):w.exportsWithDuplicate=[p]}})}function pA(n){const a=[];let c;const p=new Set;n=Tp(n);const m=b(n)||k;return c&&p.forEach(I=>c.delete(I)),{exports:m,typeOnlyExportStarMap:c};function b(I,w,U){if(!U&&(I!=null&&I.exports)&&I.exports.forEach((Ie,Te)=>p.add(Te)),!(I&&I.exports&&kf(a,I)))return;const H=new Map(I.exports),Q=I.exports.get("__export");if(Q){const Ie=da(),Te=new Map;if(Q.declarations)for(const et of Q.declarations){const Tt=uu(et,et.moduleSpecifier),Dt=b(Tt,et,U||et.isTypeOnly);uA(Ie,Dt,Te,et)}Te.forEach(({exportsWithDuplicate:et},Tt)=>{if(!(Tt==="export="||!(et&&et.length)||H.has(Tt)))for(const Dt of et)ns.add(Ar(Dt,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Te.get(Tt).specifierText,Bi(Tt)))}),uA(H,Ie)}return w!=null&&w.isTypeOnly&&(c??(c=new Map),H.forEach((Ie,Te)=>c.set(Te,w))),H}}function os(n){let a;return n&&n.mergeId&&(a=X1[n.mergeId])?a:n}function Wr(n){return os(n.symbol&&eY(n.symbol))}function If(n){return ah(n)?Wr(n):void 0}function Yc(n){return os(n.parent&&eY(n.parent))}function z0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===220||((c=n.valueDeclaration)==null?void 0:c.kind)===219)&&If(n.valueDeclaration.parent)||n}function fA(n,a){const c=Fn(a),p=ls(c),m=Jr(n);let b;if(m.extendedContainersByFile&&(b=m.extendedContainersByFile.get(p)))return b;if(c&&c.imports){for(const w of c.imports){if(Os(w))continue;const U=uu(a,w,!0);!U||!D(U,n)||(b=Un(b,U))}if(Ze(b))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(p,b),b}if(m.extendedContainers)return m.extendedContainers;const I=e.getSourceFiles();for(const w of I){if(!zc(w))continue;const U=Wr(w);D(U,n)&&(b=Un(b,U))}return m.extendedContainers=b||se}function yE(n,a,c){const p=Yc(n);if(p&&!(n.flags&262144))return U(p);const m=ji(n.declarations,Q=>{if(!yu(Q)&&Q.parent){if(bE(Q.parent))return Wr(Q.parent);if(n_(Q.parent)&&Q.parent.parent&&Tp(Wr(Q.parent.parent))===n)return Wr(Q.parent.parent)}if(uc(Q)&&Nr(Q.parent)&&Q.parent.operatorToken.kind===64&&Ks(Q.parent.left)&&Ds(Q.parent.left.expression))return yg(Q.parent.left)||o1(Q.parent.left.expression)?Wr(Fn(Q)):(Vl(Q.parent.left.expression),Vr(Q.parent.left.expression).resolvedSymbol)});if(!Ze(m))return;const b=ji(m,Q=>D(Q,n)?Q:void 0);let I=[],w=[];for(const Q of b){const[Ie,...Te]=U(Q);I=Un(I,Ie),w=Xr(w,Te)}return lo(I,w);function U(Q){const Ie=ji(Q.declarations,H),Te=a&&fA(n,a),et=B0(Q,c);if(a&&Q.flags&Qm(c)&&Lv(Q,a,1920,!1))return Un(lo(lo([Q],Ie),Te),et);const Tt=!(Q.flags&Qm(c))&&Q.flags&788968&&qs(Q).flags&524288&&c===111551?Pv(a,$t=>Hc($t,Tn=>{if(Tn.flags&Qm(c)&&_r(Tn)===qs(Q))return Tn})):void 0;let Dt=Tt?[Tt,...Ie,Q]:[...Ie,Q];return Dt=Un(Dt,et),Dt=Xr(Dt,Te),Dt}function H(Q){return p&&mA(Q,p)}}function B0(n,a){const c=!!Ze(n.declarations)&&$a(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(Fa(c)&&c===c.parent.initializer||wu(c)&&c===c.parent.type))return Wr(c.parent)}function mA(n,a){const c=_A(n),p=c&&c.exports&&c.exports.get("export=");return p&&me(p,a)?c:void 0}function D(n,a){if(n===Yc(a))return a;const c=n.exports&&n.exports.get("export=");if(c&&me(c,a))return n;const p=qp(n),m=p.get(a.escapedName);return m&&me(m,a)?m:Hc(p,b=>{if(me(b,a))return b})}function me(n,a){if(os(hc(os(n)))===os(hc(os(a))))return n}function Et(n){return os(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function An(n,a){return!!(n.flags&111551||n.flags&2097152&&dp(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 wi(n,a){const c=vi(n);return c.symbol=a,c}function Io(n){return new l(or,n)}function ki(n,a,c=0,p){Ja(a,p);const m=vi(n);return m.intrinsicName=a,m.debugIntrinsicName=p,m.objectFlags=c|524288|2097152|33554432|16777216,m}function Ja(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 _c(n,a){const c=wi(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 Kd(){return pi(Co(cae.keys(),Sp))}function Vu(n){return wi(262144,n)}function G0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function ju(n){let a;return n.forEach((c,p)=>{iT(c,p)&&(a||(a=[])).push(c)}),a||se}function iT(n,a){return!G0(a)&&An(n)}function qx(n){const a=ju(n),c=aY(n);return c?lo(a,[c]):a}function Mm(n,a,c,p,m){const b=n;return b.members=a,b.properties=se,b.callSignatures=c,b.constructSignatures=p,b.indexInfos=m,a!==k&&(b.properties=ju(a)),b}function bl(n,a,c,p,m){return Mm(_c(16,n),a,c,p,m)}function hA(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;const a=Vn(n.constructSignatures,p=>!(p.flags&4));if(n.constructSignatures===a)return n;const c=bl(n.symbol,n.members,n.callSignatures,vt(a)?a:se,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function Pv(n,a){let c;for(let p=n;p;p=p.parent){if(C_(p)&&p.locals&&!ev(p)&&(c=a(p.locals,void 0,!0,p)))return c;switch(p.kind){case 308:if(!Pp(p))break;case 268:const m=Wr(p);if(c=a((m==null?void 0:m.exports)||k,void 0,!0,p))return c;break;case 264:case 232:case 265:let b;if((Wr(p).members||k).forEach((I,w)=>{I.flags&788968&&(b||(b=da())).set(w,I)}),b&&(c=a(b,void 0,!1,p)))return c;break}}return a(lt,void 0,!0)}function Qm(n){return n===111551?111551:1920}function Lv(n,a,c,p,m=new Map){if(!(n&&!Wz(n)))return;const b=Jr(n),I=b.accessibleChainCache||(b.accessibleChainCache=new Map),w=Pv(a,(Tn,rr,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 Ie=Pv(a,Te);return I.set(U,Ie),Ie;function Te(Tn,rr,yr){if(!kf(Q,Tn))return;const Sn=Dt(Tn,rr,yr);return Q.pop(),Sn}function et(Tn,rr){return!vE(Tn,a,rr)||!!Lv(Tn.parent,a,Qm(rr),p,m)}function Tt(Tn,rr,yr){return(n===(rr||Tn)||os(n)===os(rr||Tn))&&!vt(Tn.declarations,bE)&&(yr||et(os(Tn),c))}function Dt(Tn,rr,yr){return Tt(Tn.get(n.escapedName),void 0,rr)?[n]:Hc(Tn,vn=>{if(vn.flags&2097152&&vn.escapedName!=="export="&&vn.escapedName!=="default"&&!(N6(vn)&&a&&zc(Fn(a)))&&(!p||vt(vn.declarations,FT))&&(!yr||!vt(vn.declarations,lne))&&(rr||!ll(vn,282))){const Sr=ud(vn),fi=$t(vn,Sr,rr);if(fi)return fi}if(vn.escapedName===n.escapedName&&vn.exportSymbol&&Tt(os(vn.exportSymbol),void 0,rr))return[n]})||(Tn===lt?$t(Re,Re,rr):void 0)}function $t(Tn,rr,yr){if(Tt(Tn,rr,yr))return[Tn];const Sn=qp(rr),vn=Sn&&Te(Sn,!0);if(vn&&et(Tn,Qm(c)))return[Tn].concat(vn)}}function vE(n,a,c){let p=!1;return Pv(a,m=>{let b=os(m.get(n.escapedName));if(!b)return!1;if(b===n)return!0;const I=b.flags&2097152&&!ll(b,282);return b=I?ud(b):b,(I?dp(b):b.flags)&c?(p=!0,!0):!1}),p}function Wz(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 sL(n,a){return Kx(n,a,788968,!1,!0).accessibility===0}function Jx(n,a){return Kx(n,a,111551,!1,!0).accessibility===0}function lL(n,a,c){return Kx(n,a,c,!1,!1).accessibility===0}function bW(n,a,c,p,m,b){if(!Ze(n))return;let I,w=!1;for(const U of n){const H=Lv(U,a,p,!1);if(H){I=U;const Te=gA(H[0],m);if(Te)return Te}if(b&&vt(U.declarations,bE)){if(m){w=!0;continue}return{accessibility:0}}const Q=yE(U,a,p),Ie=bW(Q,a,c,c===U?Qm(p):p,m,b);if(Ie)return Ie}if(w)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:po(c,a,p),errorModuleName:I!==c?po(I,a,1920):void 0}}function oT(n,a,c,p){return Kx(n,a,c,p,!0)}function Kx(n,a,c,p,m){if(n&&a){const b=bW([n],a,n,c,p,m);if(b)return b;const I=$e(n.declarations,_A);if(I){const w=_A(a);if(I!==w)return{accessibility:2,errorSymbolName:po(n,a,c),errorModuleName:po(I),errorNode:Ir(a)?a:void 0}}return{accessibility:1,errorSymbolName:po(n,a,c)}}return{accessibility:0}}function _A(n){const a=Dn(n,Fz);return a&&Wr(a)}function Fz(n){return yu(n)||n.kind===308&&Pp(n)}function bE(n){return WF(n)||n.kind===308&&Pp(n)}function gA(n,a){let c;if(!Hn(Vn(n.declarations,b=>b.kind!==80),p))return;return{accessibility:0,aliasesToMakeVisible:c};function p(b){var I,w;if(!Y_(b)){const U=Qf(b);if(U&&!di(U,32)&&Y_(U.parent))return m(b,U);if(yi(b)&&sc(b.parent.parent)&&!di(b.parent.parent,32)&&Y_(b.parent.parent.parent))return m(b,b.parent.parent);if(FF(b)&&!di(b,32)&&Y_(b.parent))return m(b,b);if(Ha(b)){if(n.flags&2097152&&Ir(b)&&((I=b.parent)!=null&&I.parent)&&yi(b.parent.parent)&&((w=b.parent.parent.parent)!=null&&w.parent)&&sc(b.parent.parent.parent.parent)&&!di(b.parent.parent.parent.parent,32)&&b.parent.parent.parent.parent.parent&&Y_(b.parent.parent.parent.parent.parent))return m(b,b.parent.parent.parent.parent);if(n.flags&2){const H=JE(b);if(H.kind===170)return!1;const Q=H.parent.parent;return Q.kind!==244?!1:di(Q,32)?!0:Y_(Q.parent)?m(b,Q):!1}}return!1}return!0}function m(b,I){return a&&(Vr(b).isVisible=!0,c=Qg(c,I)),!0}}function cL(n){let a;return n.parent.kind===187||n.parent.kind===234&&!qh(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 Xx(n,a,c=!0){const p=cL(n),m=Lu(n),b=gt(a,m.escapedText,p,void 0,!1);return b&&b.flags&262144&&p&788968?{accessibility:0}:!b&&Eb(m)&&oT(Wr(vu(m,!1,!1)),m,p,!1).accessibility===0?{accessibility:0}:b?gA(b,c)||{accessibility:1,errorSymbolName:Al(m),errorNode:m}:{accessibility:3,errorSymbolName:Al(m),errorNode:m}}function po(n,a,c,p=4,m){let b=70221824,I=0;p&2&&(b|=128),p&1&&(b|=512),p&8&&(b|=16384),p&32&&(I|=4),p&16&&(I|=1);const w=p&4?be.symbolToNode:be.symbolToEntityName;return m?U(m).getText():jR(U);function U(H){const Q=w(n,c,a,b,I),Ie=(a==null?void 0:a.kind)===308?ose():$S(),Te=a&&Fn(a);return Ie.writeNode(4,Q,Te,H),H}}function aT(n,a,c=0,p,m,b,I,w){return m?U(m).getText():jR(U);function U(H){let Q;c&262144?Q=p===1?186:185:Q=p===1?181:180;const Ie=be.signatureToSignatureDeclaration(n,Q,a,TE(c)|70221824|512,void 0,void 0,b,I,w),Te=dH(),et=a&&Fn(a);return Te.writeNode(4,Ie,et,tV(H)),H}}function sr(n,a,c=1064960,p=kk(""),m,b,I){const w=!m&&O.noErrorTruncation||c&1,U=be.typeToTypeNode(n,a,TE(c)|70221824|(w?1:0),void 0,void 0,m,b,I);if(U===void 0)return C.fail("should always get typenode");const H=n!==Kt?$S():ise(),Q=a&&Fn(a);H.writeNode(4,U,Q,p);const Ie=p.getText(),Te=m||(w?sG*2:GN*2);return Ie&&Ie.length>=Te?Ie.substr(0,Te-3)+"...":Ie}function dL(n,a){let c=LC(n.symbol)?sr(n,n.symbol.valueDeclaration):sr(n),p=LC(a.symbol)?sr(a,a.symbol.valueDeclaration):sr(a);return c===p&&(c=PC(n),p=PC(a)),[c,p]}function PC(n){return sr(n,void 0,64)}function LC(n){return n&&!!n.valueDeclaration&&St(n.valueDeclaration)&&!Cf(n.valueDeclaration)}function TE(n=0){return n&848330095}function TW(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===tm(n.symbol)||!!(n.flags&524288)&&!!(Hr(n)&16777216))}function yA(n){return qi(n)}function zz(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:j3e,isExpandoFunctionDeclaration:d7e,hasLateBindableName:WC,shouldRemoveDeclaration(we,ae){return!(we.internalFlags&8&&Ds(ae.name.expression)&&nh(ae.name).flags&1)},createRecoveryBoundary(we){return zi(we)},isDefinitelyReferenceToGlobalSymbolObject:J_,getAllAccessorDeclarations:Nye,requiresAddingImplicitUndefined(we,ae,on){var pn;switch(we.kind){case 173:case 172:case 349:ae??(ae=Wr(we));const Me=_r(ae);return!!(ae.flags&4&&ae.flags&16777216&&wI(we)&&((pn=ae.links)!=null&&pn.mappedType)&&out(Me));case 170:case 342:return oB(we,on);default:C.assertNever(we)}},isOptionalParameter:NW,isUndefinedIdentifierExpression(we){return sm(we)===ce},isEntityNameVisible(we,ae,on){return Xx(ae,we.enclosingDeclaration,on)},serializeExistingTypeNode(we,ae,on){return pp(we,ae,!!on)},serializeReturnTypeForSignature(we,ae,on){const pn=we,Me=Df(ae);on??(on=Wr(ae));const qe=pn.enclosingSymbolTypes.get(Ta(on))??io(fs(Me),pn.mapper);return Wa(pn,Me,qe)},serializeTypeOfExpression(we,ae){const on=we,pn=io($p(n7e(ae)),on.mapper);return $t(pn,on)},serializeTypeOfDeclaration(we,ae,on){var pn;const Me=we;on??(on=Wr(ae));let qe=(pn=Me.enclosingSymbolTypes)==null?void 0:pn.get(Ta(on));return qe===void 0&&(qe=on.flags&98304&&ae.kind===179?io(Wv(on),Me.mapper):on&&!(on.flags&133120)?io(Z0(_r(on)),Me.mapper):nt),ae&&(to(ae)||mf(ae))&&oB(ae,Me.enclosingDeclaration)&&(qe=hT(qe)),hr(on,Me,qe)},serializeNameOfParameter(we,ae){return Ui(Wr(ae),ae,we)},serializeEntityName(we,ae){const on=we,pn=sm(ae,!0);if(pn&&Jx(pn,on.enclosingDeclaration))return lm(pn,on,1160127)},serializeTypeName(we,ae,on,pn){return Qc(we,ae,on,pn)},getJsDocPropertyOverride(we,ae,on){const pn=we,Me=He(on.name)?on.name:on.name.right,qe=_n(a(pn,ae),Me.escapedText);return qe&&on.typeExpression&&a(pn,on.typeExpression.type)!==qe?$t(qe,pn):void 0},enterNewScope(we,ae){if(Yo(ae)||fv(ae)){const on=Df(ae);return Ko(we,ae,on.parameters,on.typeParameters)}else{const on=BS(ae)?r_e(ae):[U0(Wr(ae.typeParameter))];return Ko(we,ae,void 0,on)}},markNodeReuse(we,ae,on){return c(we,ae,on)},trackExistingEntityName(we,ae){return Gs(ae,we)},trackComputedName(we,ae){vr(ae,we.enclosingDeclaration,we)},getModuleSpecifierOverride(we,ae,on){const pn=we;if(pn.bundled||pn.enclosingFile!==Fn(on)){let Me=on.text;const qe=Me,ct=Vr(ae).resolvedSymbol,Vt=ae.isTypeOf?111551:788968,sn=ct&&oT(ct,pn.enclosingDeclaration,Vt,!1).accessibility===0&&wo(ct,pn,Vt,!0)[0];if(sn&&dI(sn))Me=cc(sn,pn);else{const Ut=Lye(ae);Ut&&(Me=cc(Ut.symbol,pn))}if(Me.includes("/node_modules/")&&(pn.encounteredError=!0,pn.tracker.reportLikelyUnsafeImportRequiredError&&pn.tracker.reportLikelyUnsafeImportRequiredError(Me)),Me!==qe)return Me}},canReuseTypeNode(we,ae){return hu(we,ae)},canReuseTypeNodeAnnotation(we,ae,on,pn,Me){var qe;const ct=we;if(ct.enclosingDeclaration===void 0)return!1;pn??(pn=Wr(ae));let Vt=(qe=ct.enclosingSymbolTypes)==null?void 0:qe.get(Ta(pn));Vt===void 0&&(pn.flags&98304?Vt=ae.kind===179?Wv(pn):hL(pn):c1(ae)?Vt=fs(Df(ae)):Vt=_r(pn));let sn=yA(on);return pr(sn)?!0:(Me&&sn&&(sn=pu(sn,!to(ae))),!!sn&&gi(ae,Vt,sn)&&Nn(on,Vt))}},typeToTypeNode:(we,ae,on,pn,Me,qe,ct,Vt)=>H(ae,on,pn,Me,qe,ct,sn=>$t(we,sn),Vt),typePredicateToTypePredicateNode:(we,ae,on,pn,Me)=>H(ae,on,pn,Me,void 0,void 0,qe=>mu(we,qe)),serializeTypeForDeclaration:(we,ae,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>Ne.serializeTypeOfDeclaration(we,ae,ct)),serializeReturnTypeForSignature:(we,ae,on,pn,Me)=>H(ae,on,pn,Me,void 0,void 0,qe=>Ne.serializeReturnTypeForSignature(we,Wr(we),qe)),serializeTypeForExpression:(we,ae,on,pn,Me)=>H(ae,on,pn,Me,void 0,void 0,qe=>Ne.serializeTypeOfExpression(we,qe)),indexInfoToIndexSignatureDeclaration:(we,ae,on,pn,Me)=>H(ae,on,pn,Me,void 0,void 0,qe=>oo(we,qe,void 0)),signatureToSignatureDeclaration:(we,ae,on,pn,Me,qe,ct,Vt,sn)=>H(on,pn,Me,qe,ct,Vt,Ut=>ii(we,ae,Ut),sn),symbolToEntityName:(we,ae,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>nc(we,ct,ae,!1)),symbolToExpression:(we,ae,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>lm(we,ct,ae)),symbolToTypeParameterDeclarations:(we,ae,on,pn,Me)=>H(ae,on,pn,Me,void 0,void 0,qe=>al(we,qe)),symbolToParameterDeclaration:(we,ae,on,pn,Me)=>H(ae,on,pn,Me,void 0,void 0,qe=>ir(we,qe)),typeParameterToDeclaration:(we,ae,on,pn,Me,qe,ct,Vt)=>H(ae,on,pn,Me,qe,ct,sn=>Kl(we,sn),Vt),symbolTableToDeclarationStatements:(we,ae,on,pn,Me)=>H(ae,on,pn,Me,void 0,void 0,qe=>iS(we,qe)),symbolToNode:(we,ae,on,pn,Me,qe)=>H(on,pn,Me,qe,void 0,void 0,ct=>p(we,ct,ae)),symbolToDeclarations:m};function a(we,ae,on){const pn=yA(ae);if(!we.mapper)return pn;const Me=io(pn,we.mapper);return on&&Me!==pn?void 0:Me}function c(we,ae,on){if((!Os(ae)||!(ae.flags&16)||!we.enclosingFile||we.enclosingFile!==Fn(yl(ae)))&&(ae=L.cloneNode(ae)),ae===on||!on)return ae;let pn=ae.original;for(;pn&&pn!==on;)pn=pn.original;return pn||jr(ae,on),we.enclosingFile&&we.enclosingFile===Fn(yl(on))?bt(ae,on):ae}function p(we,ae,on){if(ae.internalFlags&1){if(we.valueDeclaration){const Me=Oo(we.valueDeclaration);if(Me&&va(Me))return Me}const pn=Jr(we).nameType;if(pn&&pn.flags&9216)return ae.enclosingDeclaration=pn.symbol.valueDeclaration,L.createComputedPropertyName(lm(pn.symbol,ae,on))}return lm(we,ae,on)}function m(we,ae,on,pn,Me,qe){const ct=H(void 0,on,void 0,void 0,pn,Me,Vt=>U(we,Vt),qe);return ji(ct,Vt=>{switch(Vt.kind){case 264:return b(Vt,we);case 267:return I(Vt,ZT,we);case 265:return w(Vt,we,ae);case 268:return I(Vt,pc,we);default:return}})}function b(we,ae){const on=Vn(ae.declarations,ui),pn=on&&on.length>0?on[0]:we,Me=Gd(pn)&-161;return uc(pn)&&(we=L.updateClassDeclaration(we,we.modifiers,void 0,we.typeParameters,we.heritageClauses,we.members)),L.replaceModifiers(we,Me)}function I(we,ae,on){const pn=Vn(on.declarations,ae),Me=pn&&pn.length>0?pn[0]:we,qe=Gd(Me)&-161;return L.replaceModifiers(we,qe)}function w(we,ae,on){if(on&64)return I(we,gd,ae)}function U(we,ae){const on=qs(we);ae.typeStack.push(on.id),ae.typeStack.push(-1);const pn=da([we]),Me=iS(pn,ae);return ae.typeStack.pop(),ae.typeStack.pop(),Me}function H(we,ae,on,pn,Me,qe,ct,Vt){const sn=pn!=null&&pn.trackSymbol?pn.moduleResolverHost:(on||0)&4?THe(e):void 0;ae=ae||0;const Ut=Me||(ae&1?sG:GN),un={enclosingDeclaration:we,enclosingFile:we&&Fn(we),flags:ae,internalFlags:on||0,tracker:void 0,maxTruncationLength:Ut,maxExpansionDepth:qe??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!O.outFile&&!!we&&Pp(Fn(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 uae(un,pn,sn);const er=ct(un);return un.truncating&&un.flags&1&&un.tracker.reportTruncationError(),Vt&&(Vt.canIncreaseExpansionDepth=un.out.canIncreaseExpansionDepth,Vt.truncated=un.out.truncated),un.encounteredError?void 0:er}function Q(we,ae,on){const pn=Ta(ae),Me=we.enclosingSymbolTypes.get(pn);return we.enclosingSymbolTypes.set(pn,on),qe;function qe(){Me?we.enclosingSymbolTypes.set(pn,Me):we.enclosingSymbolTypes.delete(pn)}}function Ie(we){const ae=we.flags,on=we.internalFlags,pn=we.depth;return Me;function Me(){we.flags=ae,we.internalFlags=on,we.depth=pn}}function Te(we){return we.maxExpansionDepth>=0&&et(we)}function et(we){return we.truncating?we.truncating:we.truncating=we.approximateLength>we.maxTruncationLength}function Tt(we,ae){for(let on=0;on0)return we.flags&1048576?L.createUnionTypeNode(Yr):L.createIntersectionTypeNode(Yr);!ae.encounteredError&&!(ae.flags&262144)&&(ae.encounteredError=!0);return}if(ct&48)return C.assert(!!(we.flags&524288)),fr(we);if(we.flags&4194304){const bn=we.type;ae.approximateLength+=6;const Yr=$t(bn,ae);return L.createTypeOperatorNode(143,Yr)}if(we.flags&134217728){const bn=we.texts,Yr=we.types,Fo=L.createTemplateHead(bn[0]),bo=L.createNodeArray(Bt(Yr,(Ya,hs)=>L.createTemplateLiteralTypeSpan($t(Ya,ae),(hsVt(bn));if(we.flags&33554432){const bn=$t(we.baseType,ae),Yr=jC(we)&&Fhe("NoInfer",!1);return Yr?Ts(Yr,ae,788968,[bn]):bn}return C.fail("Should be unreachable.");function Vt(bn){const Yr=$t(bn.checkType,ae);if(ae.approximateLength+=15,ae.flags&4&&bn.root.isDistributive&&!(bn.checkType.flags&262144)){const No=Vu(ja(262144,"T")),Pc=Sl(No,ae),Lc=L.createTypeReferenceNode(Pc);ae.approximateLength+=37;const Od=DA(bn.root.checkType,No,bn.mapper),_u=ae.inferTypeParameters;ae.inferTypeParameters=bn.root.inferTypeParameters;const qu=$t(io(bn.root.extendsType,Od),ae);ae.inferTypeParameters=_u;const qy=sn(io(a(ae,bn.root.node.trueType),Od)),aS=sn(io(a(ae,bn.root.node.falseType),Od));return L.createConditionalTypeNode(Yr,L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(Lc.typeName))),L.createConditionalTypeNode(L.createTypeReferenceNode(L.cloneNode(Pc)),$t(bn.checkType,ae),L.createConditionalTypeNode(Lc,qu,qy,aS),L.createKeywordTypeNode(146)),L.createKeywordTypeNode(146))}const Fo=ae.inferTypeParameters;ae.inferTypeParameters=bn.root.inferTypeParameters;const bo=$t(bn.extendsType,ae);ae.inferTypeParameters=Fo;const Ya=sn(pT(bn)),hs=sn(fT(bn));return L.createConditionalTypeNode(Yr,bo,Ya,hs)}function sn(bn){var Yr,Fo,bo;return bn.flags&1048576?(Yr=ae.visitedTypes)!=null&&Yr.has(pd(bn))?(ae.flags&131072||(ae.encounteredError=!0,(bo=(Fo=ae.tracker)==null?void 0:Fo.reportCyclicStructureError)==null||bo.call(Fo)),rr(ae)):Br(bn,Ya=>$t(Ya,ae)):$t(bn,ae)}function Ut(bn){return!!FW(bn)}function un(bn){return!!bn.target&&Ut(bn.target)&&!Ut(bn)}function er(bn){var Yr;C.assert(!!(bn.flags&524288));const Fo=bn.declaration.readonlyToken?L.createToken(bn.declaration.readonlyToken.kind):void 0,bo=bn.declaration.questionToken?L.createToken(bn.declaration.questionToken.kind):void 0;let Ya,hs,No=Vg(bn);const Pc=th(bn),Lc=!zC(bn)&&!(H0(bn).flags&2)&&ae.flags&4&&!(Rf(bn).flags&262144&&((Yr=Uu(Rf(bn)))==null?void 0:Yr.flags)&4194304);if(zC(bn)){if(un(bn)&&ae.flags&4){const bT=Vu(ja(262144,"T")),gR=Sl(bT,ae),HL=bn.target;hs=L.createTypeReferenceNode(gR),No=io(Vg(HL),L8e([th(HL),H0(HL)],[Pc,bT]))}Ya=L.createTypeOperatorNode(143,hs||$t(H0(bn),ae))}else if(Lc){const bT=Vu(ja(262144,"T")),gR=Sl(bT,ae);hs=L.createTypeReferenceNode(gR),Ya=hs}else Ya=$t(Rf(bn),ae);const Od=mo(Pc,ae,Ya),_u=Ko(ae,bn.declaration,void 0,[U0(Wr(bn.declaration.typeParameter))]),qu=bn.declaration.nameType?$t(Fv(bn),ae):void 0,qy=$t(Vy(No,!!(Z_(bn)&4)),ae);_u();const aS=L.createMappedTypeNode(Fo,Od,qu,bo,qy,void 0);ae.approximateLength+=10;const WE=Cr(aS,1);if(un(bn)&&ae.flags&4){const bT=io(Uu(a(ae,bn.declaration.typeParameter.constraint.type))||Nt,bn.mapper);return L.createConditionalTypeNode($t(H0(bn),ae),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(hs.typeName),bT.flags&2?void 0:$t(bT,ae))),WE,L.createKeywordTypeNode(146))}else if(Lc)return L.createConditionalTypeNode($t(Rf(bn),ae),L.createInferTypeNode(L.createTypeParameterDeclaration(void 0,L.cloneNode(hs.typeName),L.createTypeOperatorNode(143,$t(H0(bn),ae)))),WE,L.createKeywordTypeNode(146));return WE}function fr(bn,Yr=!1,Fo=!1){var bo,Ya;const hs=bn.id,No=bn.symbol;if(No){if(!!(Hr(bn)&8388608)){const qu=bn.node;if(zS(qu)&&a(ae,qu)===bn){const qy=Ne.tryReuseExistingTypeNode(ae,qu);if(qy)return qy}return(bo=ae.visitedTypes)!=null&&bo.has(hs)?rr(ae):Br(bn,li)}const Od=TW(bn)?788968:111551;if(A_(No.valueDeclaration))return Ts(No,ae,Od);if(!Fo&&(No.flags&32&&!Yr&&!IW(No)&&!(No.valueDeclaration&&ui(No.valueDeclaration)&&ae.flags&2048&&(!Dc(No.valueDeclaration)||oT(No,ae.enclosingDeclaration,Od,!1).accessibility!==0))||No.flags&896||Pc()))if(Dt(bn,ae))ae.depth+=1;else return Ts(No,ae,Od);if((Ya=ae.visitedTypes)!=null&&Ya.has(hs)){const _u=Bz(bn);return _u?Ts(_u,ae,788968):rr(ae)}else return Br(bn,li)}else return li(bn);function Pc(){var Lc;const Od=!!(No.flags&8192)&&vt(No.declarations,qu=>ua(qu)&&!YOe(Oo(qu))),_u=!!(No.flags&16)&&(No.parent||$e(No.declarations,qu=>qu.parent.kind===308||qu.parent.kind===269));if(Od||_u)return(!!(ae.flags&4096)||((Lc=ae.visitedTypes)==null?void 0:Lc.has(hs)))&&(!(ae.flags&8)||Jx(No,ae.enclosingDeclaration))}}function Br(bn,Yr){var Fo,bo,Ya;const hs=bn.id,No=Hr(bn)&16&&bn.symbol&&bn.symbol.flags&32,Pc=Hr(bn)&4&&bn.node?"N"+ls(bn.node):bn.flags&16777216?"N"+ls(bn.root.node):bn.symbol?(No?"+":"")+Ta(bn.symbol):void 0;ae.visitedTypes||(ae.visitedTypes=new Set),Pc&&!ae.symbolDepth&&(ae.symbolDepth=new Map);const Lc=ae.maxExpansionDepth>=0?void 0:ae.enclosingDeclaration&&Vr(ae.enclosingDeclaration),Od=`${pd(bn)}|${ae.flags}|${ae.internalFlags}`;Lc&&(Lc.serializedTypes||(Lc.serializedTypes=new Map));const _u=(Fo=Lc==null?void 0:Lc.serializedTypes)==null?void 0:Fo.get(Od);if(_u)return(bo=_u.trackedSymbols)==null||bo.forEach(([ig,rN,lB])=>ae.tracker.trackSymbol(ig,rN,lB)),_u.truncating&&(ae.truncating=!0),ae.approximateLength+=_u.addedLength,gR(_u.node);let qu;if(Pc){if(qu=ae.symbolDepth.get(Pc)||0,qu>10)return rr(ae);ae.symbolDepth.set(Pc,qu+1)}ae.visitedTypes.add(hs);const qy=ae.trackedSymbols;ae.trackedSymbols=void 0;const aS=ae.approximateLength,WE=Yr(bn),bT=ae.approximateLength-aS;return!ae.reportedDiagnostic&&!ae.encounteredError&&((Ya=Lc==null?void 0:Lc.serializedTypes)==null||Ya.set(Od,{node:WE,truncating:ae.truncating,addedLength:bT,trackedSymbols:ae.trackedSymbols})),ae.visitedTypes.delete(hs),Pc&&ae.symbolDepth.set(Pc,qu),ae.trackedSymbols=qy,WE;function gR(ig){return!Os(ig)&&jo(ig)===ig?ig:c(ae,L.cloneNode(wn(ig,gR,void 0,HL,gR)),ig)}function HL(ig,rN,lB,zye,Bye){return ig&&ig.length===0?bt(L.createNodeArray(void 0,ig.hasTrailingComma),ig):Xn(ig,rN,lB,zye,Bye)}}function li(bn){if(up(bn)||bn.containsError)return er(bn);const Yr=Dh(bn);if(!Yr.properties.length&&!Yr.indexInfos.length){if(!Yr.callSignatures.length&&!Yr.constructSignatures.length)return ae.approximateLength+=2,Cr(L.createTypeLiteralNode(void 0),1);if(Yr.callSignatures.length===1&&!Yr.constructSignatures.length){const No=Yr.callSignatures[0];return ii(No,185,ae)}if(Yr.constructSignatures.length===1&&!Yr.callSignatures.length){const No=Yr.constructSignatures[0];return ii(No,186,ae)}}const Fo=Vn(Yr.constructSignatures,No=>!!(No.flags&4));if(vt(Fo)){const No=Bt(Fo,SA);return Yr.callSignatures.length+(Yr.constructSignatures.length-Fo.length)+Yr.indexInfos.length+(ae.flags&2048?_o(Yr.properties,Lc=>!(Lc.flags&4194304)):Ze(Yr.properties))&&No.push(hA(Yr)),$t(Ma(No),ae)}const bo=Ie(ae);ae.flags|=4194304;const Ya=ts(Yr);bo();const hs=L.createTypeLiteralNode(Ya);return ae.approximateLength+=2,Cr(hs,ae.flags&1024?0:1),hs}function mi(bn){let Yr=ol(bn);if(bn.target===es||bn.target===Va){if(ae.flags&2){const Ya=$t(Yr[0],ae);return L.createTypeReferenceNode(bn.target===es?"Array":"ReadonlyArray",[Ya])}const Fo=$t(Yr[0],ae),bo=L.createArrayTypeNode(Fo);return bn.target===es?bo:L.createTypeOperatorNode(148,bo)}else if(bn.target.objectFlags&8){if(Yr=Zi(Yr,(Fo,bo)=>Vy(Fo,!!(bn.target.elementFlags[bo]&2))),Yr.length>0){const Fo=Gv(bn),bo=Sr(Yr.slice(0,Fo),ae);if(bo){const{labeledElementDeclarations:Ya}=bn.target;for(let No=0;No0){let Lc=0;if(bn.target.typeParameters&&(Lc=Math.min(bn.target.typeParameters.length,Yr.length),(Jp(bn,hY(!1))||Jp(bn,XWe(!1))||Jp(bn,Qz(!1))||Jp(bn,KWe(!1)))&&(!bn.node||!Wp(bn.node)||!bn.node.typeArguments||bn.node.typeArguments.length0;){const Od=Yr[Lc-1],_u=bn.target.typeParameters[Lc-1],qu=AE(_u);if(!qu||!qg(Od,qu))break;Lc--}hs=Sr(Yr.slice(bo,Lc),ae)}const No=Ie(ae);ae.flags|=16;const Pc=Ts(bn.symbol,ae,788968,hs);return No(),Ya?lr(Ya,Pc):Pc}}}function lr(bn,Yr){if(t_(bn)){let Fo=bn.typeArguments,bo=bn.qualifier;bo&&(He(bo)?Fo!==g1(bo)&&(bo=cv(L.cloneNode(bo),Fo)):Fo!==g1(bo.right)&&(bo=L.updateQualifiedName(bo,bo.left,cv(L.cloneNode(bo.right),Fo)))),Fo=Yr.typeArguments;const Ya=xi(Yr);for(const hs of Ya)bo=bo?L.createQualifiedName(bo,hs):hs;return L.updateImportTypeNode(bn,bn.argument,bn.attributes,bo,Fo,bn.isTypeOf)}else{let Fo=bn.typeArguments,bo=bn.typeName;He(bo)?Fo!==g1(bo)&&(bo=cv(L.cloneNode(bo),Fo)):Fo!==g1(bo.right)&&(bo=L.updateQualifiedName(bo,bo.left,cv(L.cloneNode(bo.right),Fo))),Fo=Yr.typeArguments;const Ya=xi(Yr);for(const hs of Ya)bo=L.createQualifiedName(bo,hs);return L.updateTypeReferenceNode(bn,bo,Fo)}}function xi(bn){let Yr=bn.typeName;const Fo=[];for(;!He(Yr);)Fo.unshift(Yr.right),Yr=Yr.left;return Fo.unshift(Yr),Fo}function ho(bn,Yr,Fo){if(bn.components&&Hn(bn.components,Ya=>{var hs;return!!(Ya.name&&va(Ya.name)&&Ds(Ya.name.expression)&&Yr.enclosingDeclaration&&((hs=Xx(Ya.name.expression,Yr.enclosingDeclaration,!1))==null?void 0:hs.accessibility)===0)})){const Ya=Vn(bn.components,hs=>!WC(hs));return Bt(Ya,hs=>(vr(hs.name.expression,Yr.enclosingDeclaration,Yr),c(Yr,L.createPropertySignature(bn.isReadonly?[L.createModifier(148)]:void 0,hs.name,(Su(hs)||Po(hs)||Vm(hs)||Nl(hs)||pg(hs)||jh(hs))&&hs.questionToken?L.createToken(58):void 0,Fo||$t(_r(hs.symbol),Yr)),hs)))}return[oo(bn,Yr,Fo)]}function ts(bn){if(et(ae))return ae.out.truncated=!0,ae.flags&1?[OM(L.createNotEmittedTypeElement(),3,"elided")]:[L.createPropertySignature(void 0,"...",void 0,void 0)];ae.typeStack.push(-1);const Yr=[];for(const Ya of bn.callSignatures)Yr.push(ii(Ya,180,ae));for(const Ya of bn.constructSignatures)Ya.flags&4||Yr.push(ii(Ya,181,ae));for(const Ya of bn.indexInfos)Yr.push(...ho(Ya,ae,bn.objectFlags&1024?rr(ae):void 0));const Fo=bn.properties;if(!Fo)return ae.typeStack.pop(),Yr;let bo=0;for(const Ya of Fo)if(!(oS(ae)&&Ya.flags&4194304)){if(bo++,ae.flags&2048){if(Ya.flags&4194304)continue;Vf(Ya)&6&&ae.tracker.reportPrivateInBaseOfClassExpression&&ae.tracker.reportPrivateInBaseOfClassExpression(Bi(Ya.escapedName))}if(et(ae)&&bo+2!(li.flags&32768)),0);for(const li of Br){const mi=ii(li,174,ae,{name:Vt,questionToken:sn});on.push(fr(mi,li.declaration||we.valueDeclaration))}if(Br.length||!sn)return}let Ut;yr(we,ae)?Ut=rr(ae):(Me&&(ae.reverseMappedStack||(ae.reverseMappedStack=[]),ae.reverseMappedStack.push(we)),Ut=qe?Gr(ae,void 0,qe,we):L.createKeywordTypeNode(133),Me&&ae.reverseMappedStack.pop());const un=wh(we)?[L.createToken(148)]:void 0;un&&(ae.approximateLength+=9);const er=L.createPropertySignature(un,Vt,sn,Ut);on.push(fr(er,we.valueDeclaration));function fr(Br,li){var mi;const lr=(mi=we.declarations)==null?void 0:mi.find(xi=>xi.kind===349);if(lr){const xi=O2(lr.comment);xi&&JT(Br,[{kind:3,text:`* * `+xi.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else li&&vn(ae,Br,li);return Br}}function vn(we,ae,on){return we.enclosingFile&&we.enclosingFile===Fn(on)?Rc(ae,on):ae}function Sr(we,ae,on){if(vt(we)){if(et(ae))if(ae.out.truncated=!0,on){if(we.length>2)return[$t(we[0],ae),ae.flags&1?Cb(L.createKeywordTypeNode(133),3,`... ${we.length-2} more elided ...`):L.createTypeReferenceNode(`... ${we.length-2} more ...`,void 0),$t(we[we.length-1],ae)]}else return[ae.flags&1?Cb(L.createKeywordTypeNode(133),3,"elided"):L.createTypeReferenceNode("...",void 0)];const Me=!(ae.flags&64)?dm():void 0,qe=[];let ct=0;for(const Vt of we){if(ct++,et(ae)&&ct+2{if(!Mre(sn,([Ut],[un])=>fi(Ut,un)))for(const[Ut,un]of sn)qe[un]=$t(Ut,ae)}),Vt()}return qe}}function fi(we,ae){return we===ae||!!we.symbol&&we.symbol===ae.symbol||!!we.aliasSymbol&&we.aliasSymbol===ae.aliasSymbol}function oo(we,ae,on){const pn=jte(we)||"x",Me=$t(we.keyType,ae),qe=L.createParameterDeclaration(void 0,void 0,pn,void 0,Me,void 0);return on||(on=$t(we.type||Ue,ae)),!we.type&&!(ae.flags&2097152)&&(ae.encounteredError=!0),ae.approximateLength+=pn.length+4,L.createIndexSignature(we.isReadonly?[L.createToken(148)]:void 0,[qe],on)}function ii(we,ae,on,pn){var Me;let qe,ct;const Vt=rWe(we,!0)[0],sn=Ko(on,we.declaration,Vt,we.typeParameters,we.parameters,we.mapper);on.approximateLength+=3,on.flags&32&&we.target&&we.mapper&&we.target.typeParameters?ct=we.target.typeParameters.map(mi=>$t(io(mi,we.mapper),on)):qe=we.typeParameters&&we.typeParameters.map(mi=>Kl(mi,on));const Ut=Ie(on);on.flags&=-257;const un=(vt(Vt,mi=>mi!==Vt[Vt.length-1]&&!!(Wl(mi)&32768))?we.parameters:Vt).map(mi=>ir(mi,on,ae===177)),er=on.flags&33554432?void 0:ms(we,on);er&&un.unshift(er),Ut();const fr=Pa(on,we);let Br=pn==null?void 0:pn.modifiers;if(ae===186&&we.flags&4){const mi=Yh(Br);Br=L.createModifiersFromModifierFlags(mi|64)}const li=ae===180?L.createCallSignature(qe,un,fr):ae===181?L.createConstructSignature(qe,un,fr):ae===174?L.createMethodSignature(Br,(pn==null?void 0:pn.name)??L.createIdentifier(""),pn==null?void 0:pn.questionToken,qe,un,fr):ae===175?L.createMethodDeclaration(Br,void 0,(pn==null?void 0:pn.name)??L.createIdentifier(""),void 0,qe,un,fr,void 0):ae===177?L.createConstructorDeclaration(Br,un,void 0):ae===178?L.createGetAccessorDeclaration(Br,(pn==null?void 0:pn.name)??L.createIdentifier(""),un,fr,void 0):ae===179?L.createSetAccessorDeclaration(Br,(pn==null?void 0:pn.name)??L.createIdentifier(""),un,void 0):ae===182?L.createIndexSignature(Br,un,fr):ae===318?L.createJSDocFunctionType(un,fr):ae===185?L.createFunctionTypeNode(qe,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):ae===186?L.createConstructorTypeNode(Br,qe,un,fr??L.createTypeReferenceNode(L.createIdentifier(""))):ae===263?L.createFunctionDeclaration(Br,void 0,pn!=null&&pn.name?ha(pn.name,He):L.createIdentifier(""),qe,un,fr,void 0):ae===219?L.createFunctionExpression(Br,void 0,pn!=null&&pn.name?ha(pn.name,He):L.createIdentifier(""),qe,un,fr,L.createBlock([])):ae===220?L.createArrowFunction(Br,qe,un,fr,void 0,L.createBlock([])):C.assertNever(ae);if(ct&&(li.typeArguments=L.createNodeArray(ct)),((Me=we.declaration)==null?void 0:Me.kind)===324&&we.declaration.parent.kind===340){const mi=Al(we.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(lr=>lr.replace(/^\s+/," ")).join(` `);Cb(li,3,mi,!0)}return sn==null||sn(),li}function zi(we){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ae,on,pn=!1;const Me=we.tracker,qe=we.trackedSymbols;we.trackedSymbols=void 0;const ct=we.encounteredError;return we.tracker=new uae(we,{...Me.inner,reportCyclicStructureError(){Vt(()=>Me.reportCyclicStructureError())},reportInaccessibleThisError(){Vt(()=>Me.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Vt(()=>Me.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(un){Vt(()=>Me.reportLikelyUnsafeImportRequiredError(un))},reportNonSerializableProperty(un){Vt(()=>Me.reportNonSerializableProperty(un))},reportPrivateInBaseOfClassExpression(un){Vt(()=>Me.reportPrivateInBaseOfClassExpression(un))},trackSymbol(un,er,fr){return(ae??(ae=[])).push([un,er,fr]),!1},moduleResolverHost:we.tracker.moduleResolverHost},we.tracker.moduleResolverHost),{startRecoveryScope:sn,finalizeBoundary:Ut,markError:Vt,hadError:()=>pn};function Vt(un){pn=!0,un&&(on??(on=[])).push(un)}function sn(){const un=(ae==null?void 0:ae.length)??0,er=(on==null?void 0:on.length)??0;return()=>{pn=!1,ae&&(ae.length=un),on&&(on.length=er)}}function Ut(){return we.tracker=Me,we.trackedSymbols=qe,we.encounteredError=ct,on==null||on.forEach(un=>un()),pn?!1:(ae==null||ae.forEach(([un,er,fr])=>we.tracker.trackSymbol(un,er,fr)),!0)}}function Ko(we,ae,on,pn,Me,qe){const ct=S8(we);let Vt,sn;const Ut=we.enclosingDeclaration,un=we.mapper;if(qe&&(we.mapper=qe),we.enclosingDeclaration&&ae){let er=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,ea);const mi=(li==null?void 0:li.locals)??da();let lr,xi;if(Br((ho,ts)=>{if(li){const bn=mi.get(ho);bn?xi=Un(xi,{name:ho,oldSymbol:bn}):lr=Un(lr,ho)}mi.set(ho,ts)}),li)return function(){$e(lr,ts=>mi.delete(ts)),$e(xi,ts=>mi.set(ts.name,ts.oldSymbol))};{const ho=L.createBlock(se);Vr(ho).fakeScopeForSignatureDeclaration=fr,ho.locals=mi,ps(ho,we.enclosingDeclaration),we.enclosingDeclaration=ho}};Vt=vt(on)?er("params",fr=>{if(on)for(let Br=0;Br{if(to(lr)&&Qo(lr.name))return xi(lr.name),!0;return;function xi(ts){$e(ts.elements,bn=>{switch(bn.kind){case 233:return;case 209:return ho(bn);default:return C.assertNever(bn)}})}function ho(ts){if(Qo(ts.name))return xi(ts.name);const bn=Wr(ts);fr(bn.escapedName,bn)}})||fr(li.escapedName,li)}}):void 0,we.flags&4&&vt(pn)&&(sn=er("typeParams",fr=>{for(const Br of pn??se){const li=Sl(Br,we).escapedText;fr(li,Br.symbol)}}))}return()=>{Vt==null||Vt(),sn==null||sn(),ct(),we.enclosingDeclaration=Ut,we.mapper=un}}function ms(we,ae){if(we.thisParameter)return ir(we.thisParameter,ae);if(we.declaration&&Ir(we.declaration)){const on=uF(we.declaration);if(on&&on.typeExpression)return L.createParameterDeclaration(void 0,void 0,"this",void 0,$t(a(ae,on.typeExpression),ae))}}function mo(we,ae,on){const pn=Ie(ae);ae.flags&=-513;const Me=L.createModifiersFromModifierFlags(E_e(we)),qe=Sl(we,ae),ct=AE(we),Vt=ct&&$t(ct,ae);return pn(),L.createTypeParameterDeclaration(Me,qe,on,Vt)}function pl(we,ae,on){return!Tt(we,on)&&ae&&a(on,ae)===we&&Ne.tryReuseExistingTypeNode(on,ae)||$t(we,on)}function Kl(we,ae,on=Uu(we)){const pn=on&&pl(on,cY(we),ae);return mo(we,ae,pn)}function mu(we,ae){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(),Me=we.type&&$t(we.type,ae);return L.createTypePredicateNode(on,pn,Me)}function qn(we){const ae=ll(we,170);if(ae)return ae;if(!fg(we))return ll(we,342)}function ir(we,ae,on){const pn=qn(we),Me=_r(we),qe=Gr(ae,pn,Me,we),ct=!(ae.flags&8192)&&on&&pn&&Sm(pn)?Bt(hS(pn),L.cloneNode):void 0,sn=pn&&N_(pn)||Wl(we)&32768?L.createToken(26):void 0,Ut=Ui(we,pn,ae),er=pn&&NW(pn)||Wl(we)&16384?L.createToken(58):void 0,fr=L.createParameterDeclaration(ct,sn,Ut,er,qe,void 0);return ae.approximateLength+=wl(we).length+3,fr}function Ui(we,ae,on){return ae&&ae.name?ae.name.kind===80?Cr(L.cloneNode(ae.name),16777216):ae.name.kind===167?Cr(L.cloneNode(ae.name.right),16777216):pn(ae.name):wl(we);function pn(Me){return qe(Me);function qe(ct){on.tracker.canTrackSymbol&&va(ct)&&mhe(ct)&&vr(ct.expression,on.enclosingDeclaration,on);let Vt=wn(ct,qe,void 0,void 0,qe);return Ha(Vt)&&(Vt=L.updateBindingElement(Vt,Vt.dotDotDotToken,Vt.propertyName,Vt.name,void 0)),Os(Vt)||(Vt=L.cloneNode(Vt)),Cr(Vt,16777217)}}}function vr(we,ae,on){if(!on.tracker.canTrackSymbol)return;const pn=Lu(we),Me=gt(ae,pn.escapedText,1160127,void 0,!0);if(Me)on.tracker.trackSymbol(Me,ae,111551);else{const qe=gt(pn,pn.escapedText,1160127,void 0,!0);qe&&on.tracker.trackSymbol(qe,ae,111551)}}function wo(we,ae,on,pn){return ae.tracker.trackSymbol(we,ae.enclosingDeclaration,on),ys(we,ae,on,pn)}function ys(we,ae,on,pn){let Me;return!(we.flags&262144)&&(ae.enclosingDeclaration||ae.flags&64)&&!(ae.internalFlags&4)?(Me=C.checkDefined(ct(we,on,!0)),C.assert(Me&&Me.length>0)):Me=[we],Me;function ct(Vt,sn,Ut){let un=Lv(Vt,ae.enclosingDeclaration,sn,!!(ae.flags&128)),er;if(!un||vE(un[0],ae.enclosingDeclaration,un.length===1?sn:Qm(sn))){const Br=yE(un?un[0]:Vt,ae.enclosingDeclaration,sn);if(Ze(Br)){er=Br.map(lr=>vt(lr.declarations,bE)?cc(lr,ae):void 0);const li=Br.map((lr,xi)=>xi);li.sort(fr);const mi=li.map(lr=>Br[lr]);for(const lr of mi){const xi=ct(lr,Qm(sn),!1);if(xi){if(lr.exports&&lr.exports.get("export=")&&me(lr.exports.get("export="),Vt)){un=xi;break}un=xi.concat(un||[D(lr,Vt)||Vt]);break}}}}if(un)return un;if(Ut||!(Vt.flags&6144))return!Ut&&!pn&&$e(Vt.declarations,bE)?void 0:[Vt];function fr(Br,li){const mi=er[Br],lr=er[li];if(mi&&lr){const xi=Zp(lr);return Zp(mi)===xi?u3(mi)-u3(lr):xi?-1:1}return 0}}}function al(we,ae){let on;return nN(we).flags&524384&&(on=L.createNodeArray(Bt(Na(we),Me=>Kl(Me,ae)))),on}function md(we,ae,on){var pn;C.assert(we&&0<=ae&&aeVv(un,sn.links.mapper)),on)}else ct=al(Me,on)}return ct}function Xa(we){return GS(we.objectType)?Xa(we.objectType):we}function cc(we,ae,on){let pn=ll(we,308);if(!pn){const er=Bn(we.declarations,fr=>mA(fr,we));er&&(pn=ll(er,308))}if(pn&&pn.moduleName!==void 0)return pn.moduleName;if(!pn&&lae.test(we.escapedName))return we.escapedName.substring(1,we.escapedName.length-1);if(!ae.enclosingFile||!ae.tracker.moduleResolverHost)return lae.test(we.escapedName)?we.escapedName.substring(1,we.escapedName.length-1):Fn(vG(we)).fileName;const Me=yl(ae.enclosingDeclaration),qe=mne(Me)?gI(Me):void 0,ct=ae.enclosingFile,Vt=on||qe&&e.getModeForUsageLocation(ct,qe)||ct&&e.getDefaultResolutionModeForFile(ct),sn=rP(ct.path,Vt),Ut=Jr(we);let un=Ut.specifierCache&&Ut.specifierCache.get(sn);if(!un){const er=!!O.outFile,{moduleResolverHost:fr}=ae.tracker,Br=er?{...O,baseUrl:fr.getCommonSourceDirectory()}:O;un=$a(C1e(we,or,Br,ct,fr,{importModuleSpecifierPreference:er?"non-relative":"project-relative",importModuleSpecifierEnding:er?"minimal":Vt===99?"js":void 0},{overrideImportMode:on})),Ut.specifierCache??(Ut.specifierCache=new Map),Ut.specifierCache.set(sn,un)}return un}function gc(we){const ae=L.createIdentifier(Bi(we.escapedName));return we.parent?L.createQualifiedName(gc(we.parent),ae):ae}function Ts(we,ae,on,pn){const Me=wo(we,ae,on,!(ae.flags&16384)),qe=on===111551;if(vt(Me[0].declarations,bE)){const sn=Me.length>1?Vt(Me,Me.length-1,1):void 0,Ut=pn||md(Me,0,ae),un=Fn(yl(ae.enclosingDeclaration)),er=X2(Me[0]);let fr,Br;if((iu(O)===3||iu(O)===99)&&(er==null?void 0:er.impliedNodeFormat)===99&&er.impliedNodeFormat!==(un==null?void 0:un.impliedNodeFormat)&&(fr=cc(Me[0],ae,99),Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral("import"))]))),fr||(fr=cc(Me[0],ae)),!(ae.flags&67108864)&&iu(O)!==1&&fr.includes("/node_modules/")){const mi=fr;if(iu(O)===3||iu(O)===99){const lr=(un==null?void 0:un.impliedNodeFormat)===99?1:99;fr=cc(Me[0],ae,lr),fr.includes("/node_modules/")?fr=mi:Br=L.createImportAttributes(L.createNodeArray([L.createImportAttribute(L.createStringLiteral("resolution-mode"),L.createStringLiteral(lr===99?"import":"require"))]))}Br||(ae.encounteredError=!0,ae.tracker.reportLikelyUnsafeImportRequiredError&&ae.tracker.reportLikelyUnsafeImportRequiredError(mi))}const li=L.createLiteralTypeNode(L.createStringLiteral(fr));if(ae.approximateLength+=fr.length+10,!sn||Mu(sn)){if(sn){const mi=He(sn)?sn:sn.right;cv(mi,void 0)}return L.createImportTypeNode(li,Br,sn,Ut,qe)}else{const mi=Xa(sn),lr=mi.objectType.typeName;return L.createIndexedAccessTypeNode(L.createImportTypeNode(li,Br,lr,Ut,qe),mi.indexType)}}const ct=Vt(Me,Me.length-1,0);if(GS(ct))return ct;if(qe)return L.createTypeQueryNode(ct);{const sn=He(ct)?ct:ct.right,Ut=g1(sn);return cv(sn,void 0),L.createTypeReferenceNode(ct,Ut)}function Vt(sn,Ut,un){const er=Ut===sn.length-1?pn:md(sn,Ut,ae),fr=sn[Ut],Br=sn[Ut-1];let li;if(Ut===0)ae.flags|=16777216,li=j0(fr,ae),ae.approximateLength+=(li?li.length:0)+1,ae.flags^=16777216;else if(Br&&qp(Br)){const lr=qp(Br);Hc(lr,(xi,ho)=>{if(me(xi,fr)&&!xW(ho)&&ho!=="export=")return li=Bi(ho),!0})}if(li===void 0){const lr=Bn(fr.declarations,Oo);if(lr&&va(lr)&&Mu(lr.expression)){const xi=Vt(sn,Ut-1,un);return Mu(xi)?L.createIndexedAccessTypeNode(L.createParenthesizedType(L.createTypeQueryNode(xi)),L.createTypeQueryNode(lr.expression)):xi}li=j0(fr,ae)}if(ae.approximateLength+=li.length+1,!(ae.flags&16)&&Br&&Q_(Br)&&Q_(Br).get(fr.escapedName)&&me(Q_(Br).get(fr.escapedName),fr)){const lr=Vt(sn,Ut-1,un);return GS(lr)?L.createIndexedAccessTypeNode(lr,L.createLiteralTypeNode(L.createStringLiteral(li))):L.createIndexedAccessTypeNode(L.createTypeReferenceNode(lr,er),L.createLiteralTypeNode(L.createStringLiteral(li)))}const mi=Cr(L.createIdentifier(li),16777216);if(er&&cv(mi,L.createNodeArray(er)),mi.symbol=fr,Ut>un){const lr=Vt(sn,Ut-1,un);return Mu(lr)?L.createQualifiedName(lr,mi):C.fail("Impossible construct - an export of an indexed access cannot be reachable")}return mi}}function Nf(we,ae,on){const pn=gt(ae.enclosingDeclaration,we,788968,void 0,!1);return pn&&pn.flags&262144?pn!==on.symbol:!1}function Sl(we,ae){var on,pn,Me,qe;if(ae.flags&4&&ae.typeParameterNames){const sn=ae.typeParameterNames.get(pd(we));if(sn)return sn}let ct=nc(we.symbol,ae,788968,!0);if(!(ct.kind&80))return L.createIdentifier("(Missing type parameter)");const Vt=(pn=(on=we.symbol)==null?void 0:on.declarations)==null?void 0:pn[0];if(Vt&&cl(Vt)&&(ct=c(ae,ct,Vt.name)),ae.flags&4){const sn=ct.escapedText;let Ut=((Me=ae.typeParameterNamesByTextNextNameCount)==null?void 0:Me.get(sn))||0,un=sn;for(;(qe=ae.typeParameterNamesByText)!=null&&qe.has(un)||Nf(un,ae,we);)Ut++,un=`${sn}_${Ut}`;if(un!==sn){const er=g1(ct);ct=L.createIdentifier(un),cv(ct,er)}ae.mustCreateTypeParametersNamesLookups&&(ae.mustCreateTypeParametersNamesLookups=!1,ae.typeParameterNames=new Map(ae.typeParameterNames),ae.typeParameterNamesByTextNextNameCount=new Map(ae.typeParameterNamesByTextNextNameCount),ae.typeParameterNamesByText=new Set(ae.typeParameterNamesByText)),ae.typeParameterNamesByTextNextNameCount.set(sn,Ut),ae.typeParameterNames.set(pd(we),ct),ae.typeParameterNamesByText.add(un)}return ct}function nc(we,ae,on,pn){const Me=wo(we,ae,on);return pn&&Me.length!==1&&!ae.encounteredError&&!(ae.flags&65536)&&(ae.encounteredError=!0),qe(Me,Me.length-1);function qe(ct,Vt){const sn=md(ct,Vt,ae),Ut=ct[Vt];Vt===0&&(ae.flags|=16777216);const un=j0(Ut,ae);Vt===0&&(ae.flags^=16777216);const er=Cr(L.createIdentifier(un),16777216);return sn&&cv(er,L.createNodeArray(sn)),er.symbol=Ut,Vt>0?L.createQualifiedName(qe(ct,Vt-1),er):er}}function lm(we,ae,on){const pn=wo(we,ae,on);return Me(pn,pn.length-1);function Me(qe,ct){const Vt=md(qe,ct,ae),sn=qe[ct];ct===0&&(ae.flags|=16777216);let Ut=j0(sn,ae);ct===0&&(ae.flags^=16777216);let un=Ut.charCodeAt(0);if(mk(un)&&vt(sn.declarations,bE)){const er=cc(sn,ae);return ae.approximateLength+=2+er.length,L.createStringLiteral(er)}if(ct===0||JV(Ut,G)){const er=Cr(L.createIdentifier(Ut),16777216);return Vt&&cv(er,L.createNodeArray(Vt)),er.symbol=sn,ae.approximateLength+=1+Ut.length,ct>0?L.createPropertyAccessExpression(Me(qe,ct-1),er):er}else{un===91&&(Ut=Ut.substring(1,Ut.length-1),un=Ut.charCodeAt(0));let er;if(mk(un)&&!(sn.flags&8)){const fr=gm(Ut).replace(/\\./g,Br=>Br.substring(1));ae.approximateLength+=fr.length+2,er=L.createStringLiteral(fr,un===39)}else""+ +Ut===Ut&&(ae.approximateLength+=Ut.length,er=L.createNumericLiteral(+Ut));if(!er){const fr=Cr(L.createIdentifier(Ut),16777216);Vt&&cv(fr,L.createNodeArray(Vt)),fr.symbol=sn,ae.approximateLength+=Ut.length,er=fr}return ae.approximateLength+=2,L.createElementAccessExpression(Me(qe,ct-1),er)}}}function jL(we){const ae=Oo(we);return ae?va(ae)?!!(go(ae.expression).flags&402653316):Ws(ae)?!!(go(ae.argumentExpression).flags&402653316):wa(ae):!1}function T8(we){const ae=Oo(we);return!!(ae&&wa(ae)&&(ae.singleQuote||!Os(ae)&&fo(Al(ae,!1),"'")))}function UL(we,ae){const on=Q$(we);if(on)if(!!ae.tracker.reportPrivateInBaseOfClassExpression&&ae.flags&2048){let Ut=Bi(we.escapedName);return Ut=Ut.replace(/__#\d+@#/g,"__#private@#"),tw(Ut,Ga(O),!1,!0,!!(we.flags&8192))}else return on;const pn=!!Ze(we.declarations)&&Hn(we.declarations,jL),Me=!!Ze(we.declarations)&&Hn(we.declarations,T8),qe=!!(we.flags&8192),ct=af(we,ae,Me,pn,qe);if(ct)return ct;const Vt=Bi(we.escapedName);return tw(Vt,Ga(O),Me,pn,qe)}function af(we,ae,on,pn,Me){const qe=Jr(we).nameType;if(qe){if(qe.flags&384){const ct=""+qe.value;return!fp(ct,Ga(O))&&(pn||!Ag(ct))?L.createStringLiteral(ct,!!on):Ag(ct)&&fo(ct,"-")?L.createComputedPropertyName(L.createPrefixUnaryExpression(41,L.createNumericLiteral(-ct))):tw(ct,Ga(O),on,pn,Me)}if(qe.flags&8192)return L.createComputedPropertyName(lm(qe.symbol,ae,111551))}}function S8(we){const ae=we.mustCreateTypeParameterSymbolList,on=we.mustCreateTypeParametersNamesLookups;we.mustCreateTypeParameterSymbolList=!0,we.mustCreateTypeParametersNamesLookups=!0;const pn=we.typeParameterNames,Me=we.typeParameterNamesByText,qe=we.typeParameterNamesByTextNextNameCount,ct=we.typeParameterSymbolList;return()=>{we.typeParameterNames=pn,we.typeParameterNamesByText=Me,we.typeParameterNamesByTextNextNameCount=qe,we.typeParameterSymbolList=ct,we.mustCreateTypeParameterSymbolList=ae,we.mustCreateTypeParametersNamesLookups=on}}function Ht(we,ae){return we.declarations&&hn(we.declarations,on=>!!p7e(on)&&(!ae||!!Dn(on,pn=>pn===ae)))}function Nn(we,ae){if(!(Hr(ae)&4)||!Wp(we))return!0;fY(we);const on=Vr(we).resolvedSymbol,pn=on&&qs(on);return!pn||pn!==ae.target?!0:Ze(we.typeArguments)>=eg(ae.target.typeParameters)}function $n(we){for(;Vr(we).fakeScopeForSignatureDeclaration;)we=we.parent;return we}function hr(we,ae,on){return on.flags&8192&&on.symbol===we&&(!ae.enclosingDeclaration||vt(we.declarations,Me=>Fn(Me)===ae.enclosingFile))&&(ae.flags|=1048576),$t(on,ae)}function Gr(we,ae,on,pn){var Me;let qe;const ct=ae&&(to(ae)||mf(ae))&&oB(ae,we.enclosingDeclaration),Vt=ae??pn.valueDeclaration??Ht(pn)??((Me=pn.declarations)==null?void 0:Me[0]);if(!Tt(on,we)&&Vt){const sn=Q(we,pn,on);fb(Vt)?qe=Ne.serializeTypeOfAccessor(Vt,pn,we):i4(Vt)&&!Os(Vt)&&!(Hr(on)&196608)&&(qe=Ne.serializeTypeOfDeclaration(Vt,pn,we)),sn()}return qe||(ct&&(on=hT(on)),qe=hr(pn,we,on)),qe??L.createKeywordTypeNode(133)}function gi(we,ae,on){return on===ae?!0:we&&((Su(we)||Po(we))&&we.questionToken||to(we)&&nY(we))?om(ae,524288)===on:!1}function Pa(we,ae){const on=we.flags&256,pn=Ie(we);on&&(we.flags&=-257);let Me;const qe=fs(ae);if(!(on&&wr(qe))){if(ae.declaration&&!Os(ae.declaration)&&!Tt(qe,we)){const ct=Wr(ae.declaration),Vt=Q(we,ct,qe);Me=Ne.serializeReturnTypeForSignature(ae.declaration,ct,we),Vt()}Me||(Me=Wa(we,ae,qe))}return!Me&&!on&&(Me=L.createKeywordTypeNode(133)),pn(),Me}function Wa(we,ae,on){const pn=we.suppressReportInferenceFallback;we.suppressReportInferenceFallback=!0;const Me=nm(ae),qe=Me?mu(we.mapper?O8e(Me,we.mapper):Me,we):$t(on,we);return we.suppressReportInferenceFallback=pn,qe}function Gs(we,ae,on=ae.enclosingDeclaration){let pn=!1;const Me=Lu(we);if(Ir(we)&&(o1(Me)||yg(Me.parent)||ku(Me.parent)&&kG(Me.parent.left)&&o1(Me.parent.right)))return pn=!0,{introducesError:pn,node:we};const qe=cL(we);let ct;if(Eb(Me))return ct=Wr(vu(Me,!1,!1)),oT(ct,Me,qe,!1).accessibility!==0&&(pn=!0,ae.tracker.reportInaccessibleThisError()),{introducesError:pn,node:Vt(we)};if(ct=Gl(Me,qe,!0,!0),ae.enclosingDeclaration&&!(ct&&ct.flags&262144)){ct=Et(ct);const sn=Gl(Me,qe,!0,!0,ae.enclosingDeclaration);if(sn===ne||sn===void 0&&ct!==void 0||sn&&ct&&!me(Et(sn),ct))return sn!==ne&&ae.tracker.reportInferenceFallback(we),pn=!0,{introducesError:pn,node:we,sym:ct};ct=sn}if(ct)return ct.flags&1&&ct.valueDeclaration&&(jT(ct.valueDeclaration)||mf(ct.valueDeclaration))?{introducesError:pn,node:Vt(we)}:(!(ct.flags&262144)&&!k_(we)&&oT(ct,on,qe,!1).accessibility!==0?(ae.tracker.reportInferenceFallback(we),pn=!0):ae.tracker.trackSymbol(ct,on,qe),{introducesError:pn,node:Vt(we)});return{introducesError:pn,node:we};function Vt(sn){if(sn===Me){const un=qs(ct),er=ct.flags&262144?Sl(un,ae):L.cloneNode(sn);return er.symbol=ct,c(ae,Cr(er,16777216),sn)}const Ut=wn(sn,un=>Vt(un),void 0);return c(ae,Ut,sn)}}function Qc(we,ae,on,pn){const Me=on?111551:788968,qe=Gl(ae,Me,!0);if(!qe)return;const ct=qe.flags&2097152?ud(qe):qe;if(oT(qe,we.enclosingDeclaration,Me,!1).accessibility===0)return Ts(ct,we,Me,pn)}function hu(we,ae){const on=a(we,ae,!0);if(!on)return!1;if(Ir(ae)&&iy(ae)){R8e(ae);const pn=Vr(ae).resolvedSymbol;return!pn||!(!ae.isTypeOf&&!(pn.flags&788968)||!(Ze(ae.typeArguments)>=eg(Na(pn))))}if(Wp(ae)){if(Wm(ae))return!1;const pn=Vr(ae).resolvedSymbol;if(!pn)return!1;if(pn.flags&262144){const Me=qs(pn);return!(we.mapper&&Vv(Me,we.mapper)!==Me)}if(YN(ae))return Nn(ae,on)&&!FWe(ae)&&!!(pn.flags&788968)}if(KT(ae)&&ae.operator===158&&ae.type.kind===155){const pn=we.enclosingDeclaration&&$n(we.enclosingDeclaration);return!!Dn(ae,Me=>Me===pn)}return!0}function pp(we,ae,on){const pn=a(we,ae);if(on&&!am(pn,Me=>!!(Me.flags&32768))&&hu(we,ae)){const Me=Ne.tryReuseExistingTypeNode(we,ae);if(Me)return L.createUnionTypeNode([Me,L.createKeywordTypeNode(157)])}return $t(pn,we)}function iS(we,ae){var on;const pn=D7e(L.createPropertyDeclaration,175,!0),Me=D7e((Ct,mr,bi,Ei)=>L.createPropertySignature(Ct,mr,bi,Ei),174,!1),qe=ae.enclosingDeclaration;let ct=[];const Vt=new Set,sn=[],Ut=ae;ae={...Ut,usedSymbolNames:new Set(Ut.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((on=Ut.remappedSymbolReferences)==null?void 0:on.entries()),tracker:void 0};const un={...Ut.tracker.inner,trackSymbol:(Ct,mr,bi)=>{var Ei,kr;if((Ei=ae.remappedSymbolNames)!=null&&Ei.has(Ta(Ct)))return!1;if(oT(Ct,mr,bi,!1).accessibility===0){const za=ys(Ct,ae,bi);if(!(Ct.flags&4)){const Xo=za[0],Pi=Fn(Ut.enclosingDeclaration);vt(Xo.declarations,ba=>Fn(ba)===Pi)&&Ya(Xo)}}else if((kr=Ut.tracker.inner)!=null&&kr.trackSymbol)return Ut.tracker.inner.trackSymbol(Ct,mr,bi);return!1}};ae.tracker=new uae(ae,un,Ut.tracker.moduleResolverHost),Hc(we,(Ct,mr)=>{const bi=Bi(mr);og(Ct,bi)});let er=!ae.bundled;const fr=we.get("export=");return fr&&we.size>1&&fr.flags&2098688&&(we=da(),we.set("export=",fr)),Yr(we),ho(ct);function Br(Ct){return!!Ct&&Ct.kind===80}function li(Ct){return sc(Ct)?Vn(Bt(Ct.declarationList.declarations,Oo),Br):Vn([Oo(Ct)],Br)}function mi(Ct){const mr=hn(Ct,dl),bi=so(Ct,pc);let Ei=bi!==-1?Ct[bi]:void 0;if(Ei&&mr&&mr.isExportEquals&&He(mr.expression)&&He(Ei.name)&&Kr(Ei.name)===Kr(mr.expression)&&Ei.body&&n_(Ei.body)){const kr=Vn(Ct,Xo=>!!(Gd(Xo)&32)),xa=Ei.name;let za=Ei.body;if(Ze(kr)&&(Ei=L.updateModuleDeclaration(Ei,Ei.modifiers,Ei.name,za=L.updateModuleBlock(za,L.createNodeArray([...Ei.body.statements,L.createExportDeclaration(void 0,!1,L.createNamedExports(Bt(Ki(kr,Xo=>li(Xo)),Xo=>L.createExportSpecifier(!1,void 0,Xo))),void 0)]))),Ct=[...Ct.slice(0,bi),Ei,...Ct.slice(bi+1)]),!hn(Ct,Xo=>Xo!==Ei&&k2(Xo,xa))){ct=[];const Xo=!vt(za.statements,Pi=>di(Pi,32)||dl(Pi)||fc(Pi));$e(za.statements,Pi=>{No(Pi,Xo?32:0)}),Ct=[...Vn(Ct,Pi=>Pi!==Ei&&Pi!==mr),...ct]}}return Ct}function lr(Ct){const mr=Vn(Ct,Ei=>fc(Ei)&&!Ei.moduleSpecifier&&!!Ei.exportClause&&Jf(Ei.exportClause));Ze(mr)>1&&(Ct=[...Vn(Ct,kr=>!fc(kr)||!!kr.moduleSpecifier||!kr.exportClause),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ki(mr,kr=>ha(kr.exportClause,Jf).elements)),void 0)]);const bi=Vn(Ct,Ei=>fc(Ei)&&!!Ei.moduleSpecifier&&!!Ei.exportClause&&Jf(Ei.exportClause));if(Ze(bi)>1){const Ei=IR(bi,kr=>wa(kr.moduleSpecifier)?">"+kr.moduleSpecifier.text:">");if(Ei.length!==bi.length)for(const kr of Ei)kr.length>1&&(Ct=[...Vn(Ct,xa=>!kr.includes(xa)),L.createExportDeclaration(void 0,!1,L.createNamedExports(Ki(kr,xa=>ha(xa.exportClause,Jf).elements)),kr[0].moduleSpecifier)])}return Ct}function xi(Ct){const mr=so(Ct,bi=>fc(bi)&&!bi.moduleSpecifier&&!bi.attributes&&!!bi.exportClause&&Jf(bi.exportClause));if(mr>=0){const bi=Ct[mr],Ei=ji(bi.exportClause.elements,kr=>{if(!kr.propertyName&&kr.name.kind!==11){const xa=kr.name,za=z8(Ct),Xo=Vn(za,Pi=>k2(Ct[Pi],xa));if(Ze(Xo)&&Hn(Xo,Pi=>nw(Ct[Pi]))){for(const Pi of Xo)Ct[Pi]=ts(Ct[Pi]);return}}return kr});Ze(Ei)?Ct[mr]=L.updateExportDeclaration(bi,bi.modifiers,bi.isTypeOnly,L.updateNamedExports(bi.exportClause,Ei),bi.moduleSpecifier,bi.attributes):ib(Ct,mr)}return Ct}function ho(Ct){return Ct=mi(Ct),Ct=lr(Ct),Ct=xi(Ct),qe&&(Yi(qe)&&Pp(qe)||pc(qe))&&(!vt(Ct,U2)||!fte(Ct)&&vt(Ct,TF))&&Ct.push(bw(L)),Ct}function ts(Ct){const mr=(Gd(Ct)|32)&-129;return L.replaceModifiers(Ct,mr)}function bn(Ct){const mr=Gd(Ct)&-33;return L.replaceModifiers(Ct,mr)}function Yr(Ct,mr,bi){mr||sn.push(new Map);let Ei=0;const kr=Array.from(Ct.values());for(const xa of kr){if(Ei++,Te(ae)&&Ei+2{Fo(xa,!0,!!bi)}),sn.pop())}function Fo(Ct,mr,bi){bs(_r(Ct));const Ei=os(Ct);if(Vt.has(Ta(Ei)))return;if(Vt.add(Ta(Ei)),!mr||Ze(Ct.declarations)&&vt(Ct.declarations,xa=>!!Dn(xa,za=>za===qe))){const xa=S8(ae);ae.tracker.pushErrorFallbackNode(hn(Ct.declarations,za=>Fn(za)===ae.enclosingFile)),bo(Ct,mr,bi),ae.tracker.popErrorFallbackNode(),xa()}}function bo(Ct,mr,bi,Ei=Ct.escapedName){var kr,xa,za,Xo,Pi,ba,kc;const gl=Bi(Ei),Qd=Ei==="default";if(mr&&!(ae.flags&131072)&&SI(gl)&&!Qd){ae.encounteredError=!0;return}let Xl=Qd&&!!(Ct.flags&-113||Ct.flags&16&&Ze(bs(_r(Ct))))&&!(Ct.flags&2097152),sl=!Xl&&!mr&&SI(gl)&&!Qd;(Xl||sl)&&(mr=!0);const kl=(mr?0:32)|(Qd&&!Xl?2048:0),jl=Ct.flags&1536&&Ct.flags&7&&Ei!=="export=",Mf=jl&&Gye(_r(Ct),Ct);if((Ct.flags&8208||Mf)&&bT(_r(Ct),Ct,og(Ct,gl),kl),Ct.flags&524288&&Pc(Ct,gl,kl),Ct.flags&98311&&Ei!=="export="&&!(Ct.flags&4194304)&&!(Ct.flags&32)&&!(Ct.flags&8192)&&!Mf)if(bi)cB(Ct)&&(sl=!1,Xl=!1);else{const yc=_r(Ct),Ju=og(Ct,gl);if(yc.symbol&&yc.symbol!==Ct&&yc.symbol.flags&16&&vt(yc.symbol.declarations,Rb)&&((kr=yc.symbol.members)!=null&&kr.size||(xa=yc.symbol.exports)!=null&&xa.size))ae.remappedSymbolReferences||(ae.remappedSymbolReferences=new Map),ae.remappedSymbolReferences.set(Ta(yc.symbol),Ct),bo(yc.symbol,mr,bi,Ei),ae.remappedSymbolReferences.delete(Ta(yc.symbol));else if(!(Ct.flags&16)&&Gye(yc,Ct))bT(yc,Ct,Ju,kl);else{const Jv=Ct.flags&2?lR(Ct)?2:1:(za=Ct.parent)!=null&&za.valueDeclaration&&Yi((Xo=Ct.parent)==null?void 0:Xo.valueDeclaration)?2:void 0,Pf=Xl||!(Ct.flags&4)?Ju:uB(Ju,Ct);let Yg=Ct.declarations&&hn(Ct.declarations,ST=>yi(ST));Yg&&_d(Yg.parent)&&Yg.parent.declarations.length===1&&(Yg=Yg.parent.parent);const TT=(Pi=Ct.declarations)==null?void 0:Pi.find(qr);if(TT&&Nr(TT.parent)&&He(TT.parent.right)&&((ba=yc.symbol)!=null&&ba.valueDeclaration)&&Yi(yc.symbol.valueDeclaration)){const ST=Ju===TT.parent.right.escapedText?void 0:TT.parent.right;ae.approximateLength+=12+(((kc=ST==null?void 0:ST.escapedText)==null?void 0:kc.length)??0),No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,ST,Ju)])),0),ae.tracker.trackSymbol(yc.symbol,ae.enclosingDeclaration,111551)}else{const ST=c(ae,L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Pf,void 0,Gr(ae,void 0,yc,Ct))],Jv)),Yg);ae.approximateLength+=7+Pf.length,No(ST,Pf!==Ju?kl&-33:kl),Pf!==Ju&&!mr&&(ae.approximateLength+=16+Pf.length+Ju.length,No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Pf,Ju)])),0),sl=!1,Xl=!1)}}}if(Ct.flags&384&&WE(Ct,gl,kl),Ct.flags&32&&(Ct.flags&4&&Ct.valueDeclaration&&Nr(Ct.valueDeclaration.parent)&&uc(Ct.valueDeclaration.parent.right)?R7e(Ct,og(Ct,gl),kl):zye(Ct,og(Ct,gl),kl)),(Ct.flags&1536&&(!jl||qy(Ct))||Mf)&&aS(Ct,gl,kl),Ct.flags&64&&!(Ct.flags&32)&&Lc(Ct,gl,kl),Ct.flags&2097152&&R7e(Ct,og(Ct,gl),kl),Ct.flags&4&&Ct.escapedName==="export="&&cB(Ct),Ct.flags&8388608&&Ct.declarations)for(const yc of Ct.declarations){const Ju=uu(yc,yc.moduleSpecifier);if(!Ju)continue;const Jv=yc.isTypeOnly,Pf=cc(Ju,ae);ae.approximateLength+=17+Pf.length,No(L.createExportDeclaration(void 0,Jv,void 0,L.createStringLiteral(Pf)),0)}if(Xl){const yc=og(Ct,gl);ae.approximateLength+=16+yc.length,No(L.createExportAssignment(void 0,!1,L.createIdentifier(yc)),0)}else if(sl){const yc=og(Ct,gl);ae.approximateLength+=22+gl.length+yc.length,No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,yc,gl)])),0)}}function Ya(Ct){if(vt(Ct.declarations,jT))return;C.assertIsDefined(sn[sn.length-1]),uB(Bi(Ct.escapedName),Ct);const mr=!!(Ct.flags&2097152)&&!vt(Ct.declarations,bi=>!!Dn(bi,fc)||W_(bi)||Fc(bi)&&!py(bi.moduleReference));sn[mr?0:sn.length-1].set(Ta(Ct),Ct)}function hs(Ct){return Yi(Ct)&&(Pp(Ct)||Ff(Ct))||yu(Ct)&&!P_(Ct)}function No(Ct,mr){if(Sm(Ct)){const bi=Gd(Ct);let Ei=0;const kr=ae.enclosingDeclaration&&(_m(ae.enclosingDeclaration)?Fn(ae.enclosingDeclaration):ae.enclosingDeclaration);mr&32&&kr&&(hs(kr)||pc(kr))&&nw(Ct)&&(Ei|=32),er&&!(Ei&32)&&(!kr||!(kr.flags&33554432))&&(ZT(Ct)||sc(Ct)||Zl(Ct)||Dc(Ct)||pc(Ct))&&(Ei|=128),mr&2048&&(Dc(Ct)||gd(Ct)||Zl(Ct))&&(Ei|=2048),Ei&&(Ct=L.replaceModifiers(Ct,Ei|bi)),ae.approximateLength+=dB(Ei|bi)}ct.push(Ct)}function Pc(Ct,mr,bi){var Ei;const kr=GOe(Ct),xa=Jr(Ct).typeParameters,za=Bt(xa,Xl=>Kl(Xl,ae)),Xo=(Ei=Ct.declarations)==null?void 0:Ei.find(_m),Pi=O2(Xo?Xo.comment||Xo.parent.comment:void 0),ba=Ie(ae);ae.flags|=8388608;const kc=ae.enclosingDeclaration;ae.enclosingDeclaration=Xo;const gl=Xo&&Xo.typeExpression&&t0(Xo.typeExpression)&&Ne.tryReuseExistingTypeNode(ae,Xo.typeExpression.type)||$t(kr,ae),Qd=og(Ct,mr);ae.approximateLength+=8+((Pi==null?void 0:Pi.length)??0)+Qd.length,No(JT(L.createTypeAliasDeclaration(void 0,Qd,za,gl),Pi?[{kind:3,text:`* * `+Pi.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),bi),ba(),ae.enclosingDeclaration=kc}function Lc(Ct,mr,bi){const Ei=og(Ct,mr);ae.approximateLength+=14+Ei.length;const kr=tm(Ct),xa=Na(Ct),za=Bt(xa,sl=>Kl(sl,ae)),Xo=eh(kr),Pi=Ze(Xo)?Ma(Xo):void 0,ba=Od(bs(kr),!1,Pi),kc=Vye(0,kr,Pi,180),gl=Vye(1,kr,Pi,181),Qd=N7e(kr,Pi),Xl=Ze(Xo)?[L.createHeritageClause(96,ji(Xo,sl=>jye(sl,111551)))]:void 0;No(L.createInterfaceDeclaration(void 0,Ei,za,Xl,[...Qd,...gl,...kc,...ba]),bi)}function Od(Ct,mr,bi,Ei){const kr=[];let xa=0;for(const za of Ct){if(xa++,Te(ae)&&xa+2rN(Ei)&&fp(Ei.escapedName,99))}function qy(Ct){return Hn(qu(Ct),mr=>!(dp(hc(mr))&111551))}function aS(Ct,mr,bi){const Ei=qu(Ct),kr=oS(ae),xa=_2(Ei,Pi=>Pi.parent&&Pi.parent===Ct||kr?"real":"merged"),za=xa.get("real")||se,Xo=xa.get("merged")||se;if(Ze(za)||kr){let Pi;if(kr){const ba=ae.flags;ae.flags|=514,Pi=p(Ct,ae,-1),ae.flags=ba}else{const ba=og(Ct,mr);Pi=L.createIdentifier(ba),ae.approximateLength+=ba.length}ig(za,Pi,bi,!!(Ct.flags&67108880))}if(Ze(Xo)){const Pi=Fn(ae.enclosingDeclaration),ba=og(Ct,mr),kc=L.createModuleBlock([L.createExportDeclaration(void 0,!1,L.createNamedExports(ji(Vn(Xo,gl=>gl.escapedName!=="export="),gl=>{var Qd,Xl;const sl=Bi(gl.escapedName),kl=og(gl,sl),jl=gl.declarations&&cp(gl);if(Pi&&(jl?Pi!==Fn(jl):!vt(gl.declarations,Ju=>Fn(Ju)===Pi))){(Xl=(Qd=ae.tracker)==null?void 0:Qd.reportNonlocalAugmentation)==null||Xl.call(Qd,Pi,Ct,gl);return}const Mf=jl&&W0(jl,!0);Ya(Mf||gl);const yc=Mf?og(Mf,Bi(Mf.escapedName)):kl;return L.createExportSpecifier(!1,sl===yc?void 0:yc,sl)})))]);No(L.createModuleDeclaration(void 0,L.createIdentifier(ba),kc,32),0)}}function WE(Ct,mr,bi){const Ei=og(Ct,mr);ae.approximateLength+=9+Ei.length;const kr=[],xa=Vn(bs(_r(Ct)),Xo=>!!(Xo.flags&8));let za=0;for(const Xo of xa){if(za++,Te(ae)&&za+2!Ze(jl.declarations)||vt(jl.declarations,Mf=>Fn(Mf)===Fn(ae.enclosingDeclaration))||xa?"local":"remote").get("local")||se;let Pi=i0.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr);ps(Pi,qe),Pi.locals=da(Ct),Pi.symbol=Ct[0].parent;const ba=ct;ct=[];const kc=er;er=!1;const gl={...ae,enclosingDeclaration:Pi},Qd=ae;ae=gl,Yr(da(Xo),Ei,!0),ae=Qd,er=kc;const Xl=ct;ct=ba;const sl=Bt(Xl,jl=>dl(jl)&&!jl.isExportEquals&&He(jl.expression)?L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,jl.expression,L.createIdentifier("default"))])):jl),kl=Hn(sl,jl=>di(jl,32))?Bt(sl,bn):sl;Pi=L.updateModuleDeclaration(Pi,Pi.modifiers,Pi.name,L.createModuleBlock(kl)),No(Pi,bi)}else xa&&(ae.approximateLength+=14,No(L.createModuleDeclaration(void 0,mr,L.createModuleBlock([]),kr),bi))}function rN(Ct){return!!(Ct.flags&2887656)||!(Ct.flags&4194304||Ct.escapedName==="prototype"||Ct.valueDeclaration&&ua(Ct.valueDeclaration)&&ui(Ct.valueDeclaration.parent))}function lB(Ct){const mr=ji(Ct,bi=>{const Ei=ae.enclosingDeclaration;ae.enclosingDeclaration=bi;let kr=bi.expression;if(Ds(kr)){if(He(kr)&&Kr(kr)==="")return xa(void 0);let za;if({introducesError:za,node:kr}=Gs(kr,ae),za)return xa(void 0)}return xa(L.createExpressionWithTypeArguments(kr,Bt(bi.typeArguments,za=>Ne.tryReuseExistingTypeNode(ae,za)||$t(a(ae,za),ae))));function xa(za){return ae.enclosingDeclaration=Ei,za}});if(mr.length===Ct.length)return mr}function zye(Ct,mr,bi){var Ei,kr;ae.approximateLength+=9+mr.length;const xa=(Ei=Ct.declarations)==null?void 0:Ei.find(ui),za=ae.enclosingDeclaration;ae.enclosingDeclaration=xa||za;const Xo=Na(Ct),Pi=Bt(Xo,Kv=>Kl(Kv,ae));$e(Xo,Kv=>ae.approximateLength+=wl(Kv.symbol).length);const ba=Kp(tm(Ct)),kc=eh(ba),gl=xa&&nD(xa),Qd=gl&&lB(gl)||ji(OC(ba),Bbt),Xl=_r(Ct),sl=!!((kr=Xl.symbol)!=null&&kr.valueDeclaration)&&ui(Xl.symbol.valueDeclaration),kl=sl?Ly(Xl):Ue;ae.approximateLength+=(Ze(kc)?8:0)+(Ze(Qd)?11:0);const jl=[...Ze(kc)?[L.createHeritageClause(96,Bt(kc,Kv=>zbt(Kv,kl,mr)))]:[],...Ze(Qd)?[L.createHeritageClause(119,Qd)]:[]],Mf=Eyt(ba,kc,bs(ba)),yc=Vn(Mf,Kv=>!sB(Kv)),Ju=vt(Mf,sB),Jv=Ju?oS(ae)?Od(Vn(Mf,sB),!0,kc[0],!1):[L.createPropertyDeclaration(void 0,L.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:se;Ju&&!oS(ae)&&(ae.approximateLength+=9);const Pf=Od(yc,!0,kc[0],!1),Yg=Od(Vn(bs(Xl),Kv=>!(Kv.flags&4194304)&&Kv.escapedName!=="prototype"&&!rN(Kv)),!0,kl,!0),TT=!sl&&!!Ct.valueDeclaration&&Ir(Ct.valueDeclaration)&&!vt(na(Xl,1));TT&&(ae.approximateLength+=21);const ST=TT?[L.createConstructorDeclaration(L.createModifiersFromModifierFlags(2),[],void 0)]:Vye(1,Xl,kl,177),Gbt=N7e(ba,kc[0]);ae.enclosingDeclaration=za,No(c(ae,L.createClassDeclaration(void 0,mr,Pi,jl,[...Gbt,...Yg,...ST,...Pf,...Jv]),Ct.declarations&&Vn(Ct.declarations,Kv=>Dc(Kv)||uc(Kv))[0]),bi)}function Bye(Ct){return Bn(Ct,mr=>{if(Eu(mr)||ou(mr))return yb(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(Dv(mr)){const bi=Oo(mr);if(bi&&He(bi))return Kr(bi)}})}function R7e(Ct,mr,bi){var Ei,kr,xa,za,Xo;const Pi=cp(Ct);if(!Pi)return C.fail();const ba=os(W0(Pi,!0));if(!ba)return;let kc=Q2(ba)&&Bye(Ct.declarations)||Bi(ba.escapedName);kc==="export="&&ye&&(kc="default");const gl=og(ba,kc);switch(Ya(ba),Pi.kind){case 209:if(((kr=(Ei=Pi.parent)==null?void 0:Ei.parent)==null?void 0:kr.kind)===261){const sl=cc(ba.parent||ba,ae),{propertyName:kl}=Pi,jl=kl&&He(kl)?Kr(kl):void 0;ae.approximateLength+=24+mr.length+sl.length+((jl==null?void 0:jl.length)??0),No(L.createImportDeclaration(void 0,L.createImportClause(void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,jl?L.createIdentifier(jl):void 0,L.createIdentifier(mr))])),L.createStringLiteral(sl),void 0),0);break}C.failBadSyntaxKind(((xa=Pi.parent)==null?void 0:xa.parent)||Pi,"Unhandled binding element grandparent kind in declaration serialization");break;case 305:((Xo=(za=Pi.parent)==null?void 0:za.parent)==null?void 0:Xo.kind)===227&&qL(Bi(Ct.escapedName),gl);break;case 261:if(qr(Pi.initializer)){const sl=Pi.initializer,kl=L.createUniqueName(mr),jl=cc(ba.parent||ba,ae);ae.approximateLength+=22+jl.length+Kr(kl).length,No(L.createImportEqualsDeclaration(void 0,!1,kl,L.createExternalModuleReference(L.createStringLiteral(jl))),0),ae.approximateLength+=12+mr.length+Kr(kl).length+Kr(sl.name).length,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),L.createQualifiedName(kl,sl.name)),bi);break}case 272:if(ba.escapedName==="export="&&vt(ba.declarations,sl=>Yi(sl)&&Ff(sl))){cB(Ct);break}const Qd=!(ba.flags&512)&&!yi(Pi);ae.approximateLength+=11+mr.length+Bi(ba.escapedName).length,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(mr),Qd?nc(ba,ae,-1,!1):L.createExternalModuleReference(L.createStringLiteral(cc(ba,ae)))),Qd?bi:0);break;case 271:No(L.createNamespaceExportDeclaration(Kr(Pi.name)),0);break;case 274:{const sl=cc(ba.parent||ba,ae),kl=ae.bundled?L.createStringLiteral(sl):Pi.parent.moduleSpecifier,jl=vl(Pi.parent)?Pi.parent.attributes:void 0,Mf=a_(Pi.parent);ae.approximateLength+=14+mr.length+3+(Mf?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(Mf?156:void 0,L.createIdentifier(mr),void 0),kl,jl),0);break}case 275:{const sl=cc(ba.parent||ba,ae),kl=ae.bundled?L.createStringLiteral(sl):Pi.parent.parent.moduleSpecifier,jl=a_(Pi.parent.parent);ae.approximateLength+=19+mr.length+3+(jl?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(jl?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(mr))),kl,Pi.parent.attributes),0);break}case 281:ae.approximateLength+=19+mr.length+3,No(L.createExportDeclaration(void 0,!1,L.createNamespaceExport(L.createIdentifier(mr)),L.createStringLiteral(cc(ba,ae))),0);break;case 277:{const sl=cc(ba.parent||ba,ae),kl=ae.bundled?L.createStringLiteral(sl):Pi.parent.parent.parent.moduleSpecifier,jl=a_(Pi.parent.parent.parent);ae.approximateLength+=19+mr.length+3+(jl?4:0),No(L.createImportDeclaration(void 0,L.createImportClause(jl?156:void 0,void 0,L.createNamedImports([L.createImportSpecifier(!1,mr!==kc?L.createIdentifier(kc):void 0,L.createIdentifier(mr))])),kl,Pi.parent.parent.parent.attributes),0);break}case 282:const Xl=Pi.parent.parent.moduleSpecifier;if(Xl){const sl=Pi.propertyName;sl&&M_(sl)&&(kc="default")}qL(Bi(Ct.escapedName),Xl?kc:gl,Xl&&ds(Xl)?L.createStringLiteral(Xl.text):void 0);break;case 278:cB(Ct);break;case 227:case 212:case 213:Ct.escapedName==="default"||Ct.escapedName==="export="?cB(Ct):qL(mr,gl);break;default:return C.failBadSyntaxKind(Pi,"Unhandled alias declaration kind in symbol serializer!")}}function qL(Ct,mr,bi){ae.approximateLength+=16+Ct.length+(Ct!==mr?mr.length:0),No(L.createExportDeclaration(void 0,!1,L.createNamedExports([L.createExportSpecifier(!1,Ct!==mr?mr:void 0,Ct)]),bi),0)}function cB(Ct){var mr;if(Ct.flags&4194304)return!1;const bi=Bi(Ct.escapedName),Ei=bi==="export=",xa=Ei||bi==="default",za=Ct.declarations&&cp(Ct),Xo=za&&W0(za,!0);if(Xo&&Ze(Xo.declarations)&&vt(Xo.declarations,Pi=>Fn(Pi)===Fn(qe))){const Pi=za&&(dl(za)||Nr(za)?jG(za):Sne(za)),ba=Pi&&Ds(Pi)?Fyt(Pi):void 0,kc=ba&&Gl(ba,-1,!0,!0,qe);(kc||Xo)&&Ya(kc||Xo);const gl=ae.tracker.disableTrackSymbol;if(ae.tracker.disableTrackSymbol=!0,xa)ae.approximateLength+=10,ct.push(L.createExportAssignment(void 0,Ei,lm(Xo,ae,-1)));else if(ba===Pi&&ba)qL(bi,Kr(ba));else if(Pi&&uc(Pi))qL(bi,og(Xo,wl(Xo)));else{const Qd=uB(bi,Ct);ae.approximateLength+=Qd.length+10,No(L.createImportEqualsDeclaration(void 0,!1,L.createIdentifier(Qd),nc(Xo,ae,-1,!1)),0),qL(bi,Qd)}return ae.tracker.disableTrackSymbol=gl,!0}else{const Pi=uB(bi,Ct),ba=$p(_r(os(Ct)));if(Gye(ba,Ct))bT(ba,Ct,Pi,xa?0:32);else{const kc=((mr=ae.enclosingDeclaration)==null?void 0:mr.kind)===268&&(!(Ct.flags&98304)||Ct.flags&65536)?1:2;ae.approximateLength+=Pi.length+5;const gl=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Pi,void 0,Gr(ae,void 0,ba,Ct))],kc));No(gl,Xo&&Xo.flags&4&&Xo.escapedName==="export="?128:bi===Pi?32:0)}return xa?(ae.approximateLength+=Pi.length+10,ct.push(L.createExportAssignment(void 0,Ei,L.createIdentifier(Pi))),!0):bi!==Pi?(qL(bi,Pi),!0):!1}}function Gye(Ct,mr){var bi;const Ei=Fn(ae.enclosingDeclaration);return Hr(Ct)&48&&!vt((bi=Ct.symbol)==null?void 0:bi.declarations,Ri)&&!Ze(Xd(Ct))&&!TW(Ct)&&!!(Ze(Vn(bs(Ct),rN))||Ze(na(Ct,0)))&&!Ze(na(Ct,1))&&!Ht(mr,qe)&&!(Ct.symbol&&vt(Ct.symbol.declarations,kr=>Fn(kr)!==Ei))&&!vt(bs(Ct),kr=>xW(kr.escapedName))&&!vt(bs(Ct),kr=>vt(kr.declarations,xa=>Fn(xa)!==Ei))&&Hn(bs(Ct),kr=>fp(wl(kr),G)?kr.flags&98304?xh(kr)===Wv(kr):!0:!1)}function D7e(Ct,mr,bi){return function(kr,xa,za){var Xo,Pi,ba,kc,gl,Qd;const Xl=Vf(kr),sl=!!(Xl&2)&&!oS(ae);if(xa&&kr.flags&2887656)return[];if(kr.flags&4194304||kr.escapedName==="constructor"||za&&Ea(za,kr.escapedName)&&wh(Ea(za,kr.escapedName))===wh(kr)&&(kr.flags&16777216)===(Ea(za,kr.escapedName).flags&16777216)&&qg(_r(kr),_n(za,kr.escapedName)))return[];const kl=Xl&-1025|(xa?256:0),jl=UL(kr,ae),Mf=(Xo=kr.declarations)==null?void 0:Xo.find(Rp(Po,fb,yi,Su,Nr,qr));if(kr.flags&98304&&bi){const yc=[];if(kr.flags&65536){const Ju=kr.declarations&&$e(kr.declarations,Yg=>{if(Yg.kind===179)return Yg;if(Zo(Yg)&&a1(Yg))return $e(Yg.arguments[2].properties,TT=>{const ST=Oo(TT);if(ST&&He(ST)&&Kr(ST)==="set")return TT})});C.assert(!!Ju);const Jv=Ms(Ju)?Df(Ju).parameters[0]:void 0,Pf=(Pi=kr.declarations)==null?void 0:Pi.find(jh);ae.approximateLength+=dB(kl)+7+(Jv?wl(Jv).length:5)+(sl?0:2),yc.push(c(ae,L.createSetAccessorDeclaration(L.createModifiersFromModifierFlags(kl),jl,[L.createParameterDeclaration(void 0,void 0,Jv?Ui(Jv,qn(Jv),ae):"value",void 0,sl?void 0:Gr(ae,Pf,Wv(kr),kr))],void 0),Pf??Mf))}if(kr.flags&32768){const Ju=(ba=kr.declarations)==null?void 0:ba.find(pg);ae.approximateLength+=dB(kl)+8+(sl?0:2),yc.push(c(ae,L.createGetAccessorDeclaration(L.createModifiersFromModifierFlags(kl),jl,[],sl?void 0:Gr(ae,Ju,_r(kr),kr),void 0),Ju??Mf))}return yc}else if(kr.flags&98311){const yc=(wh(kr)?8:0)|kl;return ae.approximateLength+=2+(sl?0:2)+dB(yc),c(ae,Ct(L.createModifiersFromModifierFlags(yc),jl,kr.flags&16777216?L.createToken(58):void 0,sl?void 0:Gr(ae,(kc=kr.declarations)==null?void 0:kc.find(gp),Wv(kr),kr),void 0),((gl=kr.declarations)==null?void 0:gl.find(Rp(Po,yi)))||Mf)}if(kr.flags&8208){const yc=_r(kr),Ju=na(yc,0);if(sl){const Pf=(wh(kr)?8:0)|kl;return ae.approximateLength+=1+dB(Pf),c(ae,Ct(L.createModifiersFromModifierFlags(Pf),jl,kr.flags&16777216?L.createToken(58):void 0,void 0,void 0),((Qd=kr.declarations)==null?void 0:Qd.find(Ms))||Ju[0]&&Ju[0].declaration||kr.declarations&&kr.declarations[0])}const Jv=[];for(const Pf of Ju){ae.approximateLength+=1;const Yg=ii(Pf,mr,ae,{name:jl,questionToken:kr.flags&16777216?L.createToken(58):void 0,modifiers:kl?L.createModifiersFromModifierFlags(kl):void 0}),TT=Pf.declaration&&vk(Pf.declaration.parent)?Pf.declaration.parent:Pf.declaration;Jv.push(c(ae,Yg,TT))}return Jv}return C.fail(`Unhandled class member kind! ${kr.__debugFlags||kr.flags}`)}}function dB(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 C7e(Ct,mr){return Me(Ct,!1,mr)}function Vye(Ct,mr,bi,Ei){const kr=na(mr,Ct);if(Ct===1){if(!bi&&Hn(kr,Xo=>Ze(Xo.parameters)===0))return[];if(bi){const Xo=na(bi,1);if(!Ze(Xo)&&Hn(kr,Pi=>Ze(Pi.parameters)===0))return[];if(Xo.length===kr.length){let Pi=!1;for(let ba=0;ba$t(kr,ae)),Ei=lm(Ct.target.symbol,ae,788968)):Ct.symbol&&lL(Ct.symbol,qe,mr)&&(Ei=lm(Ct.symbol,ae,788968)),Ei)return L.createExpressionWithTypeArguments(Ei,bi)}function Bbt(Ct){const mr=jye(Ct,788968);if(mr)return mr;if(Ct.symbol)return L.createExpressionWithTypeArguments(lm(Ct.symbol,ae,788968),void 0)}function uB(Ct,mr){var bi,Ei;const kr=mr?Ta(mr):void 0;if(kr&&ae.remappedSymbolNames.has(kr))return ae.remappedSymbolNames.get(kr);mr&&(Ct=M7e(mr,Ct));let xa=0;const za=Ct;for(;(bi=ae.usedSymbolNames)!=null&&bi.has(Ct);)xa++,Ct=`${za}_${xa}`;return(Ei=ae.usedSymbolNames)==null||Ei.add(Ct),kr&&ae.remappedSymbolNames.set(kr,Ct),Ct}function M7e(Ct,mr){if(mr==="default"||mr==="__class"||mr==="__function"){const bi=Ie(ae);ae.flags|=16777216;const Ei=j0(Ct,ae);bi(),mr=Ei.length>0&&mk(Ei.charCodeAt(0))?gm(Ei):Ei}return mr==="default"?mr="_default":mr==="export="&&(mr="_exports"),mr=fp(mr,G)&&!SI(mr)?mr:"_"+mr.replace(/[^a-z0-9]/gi,"_"),mr}function og(Ct,mr){const bi=Ta(Ct);return ae.remappedSymbolNames.has(bi)?ae.remappedSymbolNames.get(bi):(mr=M7e(Ct,mr),ae.remappedSymbolNames.set(bi,mr),mr)}}function oS(we){return we.maxExpansionDepth!==-1}function sB(we){return!!we.valueDeclaration&&nd(we.valueDeclaration)&&eo(we.valueDeclaration.name)}function Q$(we){if(we.valueDeclaration&&nd(we.valueDeclaration)&&eo(we.valueDeclaration.name))return L.cloneNode(we.valueDeclaration.name)}}function kC(n){var a;const c=Hr(n)&4?n.target.symbol:n.symbol;return Ka(n)||!!((a=c==null?void 0:c.declarations)!=null&&a.some(p=>e.isSourceFileDefaultLibrary(Fn(p))))}function X_(n,a,c=16384,p){return p?m(p).getText():jR(m);function m(b){const I=TE(c)|70221824|512,w=be.typePredicateToTypePredicateNode(n,a,I),U=$S(),H=a&&Fn(a);return U.writeNode(4,w,H,b),b}}function SW(n,a){const c=[];let p=0;for(let m=0;mOo(I)?I:void 0);const b=m&&Oo(m);if(m&&b){if(Zo(m)&&a1(m))return wl(n);if(va(b)&&!(Wl(n)&4096)){const I=Jr(n).nameType;if(I&&I.flags&384){const w=pL(n,a);if(w!==void 0)return w}}return ws(b)}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=pL(n,a);return p!==void 0?p:wl(n)}function Y_(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&&Yi(n.parent.parent.parent));case 209:return Y_(n.parent.parent);case 261:if(Qo(n.name)&&!n.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(SS(n))return!0;const c=Pt(n);return!($$(n)&32)&&!(n.kind!==272&&c.kind!==308&&c.flags&33554432)?ev(c):Y_(c);case 173:case 172:case 178:case 179:case 175:case 174:if(wp(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 Y_(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 wC(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=Fx(n.parent,2998271));let p,m;return c&&(m=new Set,m.add(Ta(c)),b(c.declarations)),p;function b(I){$e(I,w=>{const U=Qf(w)||w;if(a?Vr(w).isVisible=!0:(p=p||[],kf(p,U)),i1(w)){const H=w.moduleReference,Q=Lu(H),Ie=gt(w,Q.escapedText,901119,void 0,!1);Ie&&m&&rh(m,Ta(Ie))&&b(Ie.declarations)}})}}function y_(n,a){const c=ee(n,a);if(c>=0){const{length:p}=Pg;for(let m=c;m=Sv;c--){if(ke(Pg[c],J1[c]))return-1;if(Pg[c]===n&&J1[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 Pg.pop(),J1.pop(),S0.pop()}function Pt(n){return Dn(Kh(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=qs(Yc(n));return a.typeParameters?ky(a,Bt(a.typeParameters,c=>Ue)):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=tR(n,a))==null?void 0:c.type)&&pu(p,!0,!0)}function wr(n){return n&&(n.flags&1)!==0}function pr(n){return n===nt||!!(n.flags&1&&n.aliasSymbol)}function Si(n,a){if(a!==0)return Yx(n,!1,a);const c=Wr(n);return c&&Jr(c).type||Yx(n,!1,a)}function ao(n,a,c){if(n=Ec(n,U=>!(U.flags&98304)),n.flags&131072)return Ra;if(n.flags&1048576)return Tl(n,U=>ao(U,a,c));let p=pi(Bt(a,wy));const m=[],b=[];for(const U of bs(n)){const H=nR(U,8576);!sa(H,p)&&!(Vf(U)&6)&&vY(U)?m.push(U):b.push(H)}if(xA(n)||RA(p)){if(b.length&&(p=pi([p,...b])),p.flags&131072)return n;const U=xct();return U?VC(U,[n,p]):nt}const I=da();for(const U of m)I.set(U.escapedName,a_e(U,!1));const w=bl(c,I,se,se,Xd(n));return w.objectFlags|=4194304,w}function zs(n){return!!(n.flags&465829888)&&tc(Ld(n)||Nt,32768)}function Is(n){const a=am(n,zs)?Tl(n,c=>c.flags&465829888?b_(c):c):n;return om(a,524288)}function as(n,a){const c=em(n);return c?jy(c,a):a}function em(n){const a=xf(n);if(a&&eD(a)&&a.flowNode){const c=kv(n);if(c){const p=bt(i0.createStringLiteral(c),n),m=$u(a)?a:i0.createParenthesizedExpression(a),b=bt(i0.createElementAccessExpression(m,p),n);return ps(p,b),ps(b,n),m!==a&&ps(m,b),b.flowNode=a.flowNode,b}}}function xf(n){const a=n.parent.parent;switch(a.kind){case 209:case 304:return em(a);case 210:return em(n.parent);case 261:return a.initializer;case 227:return a.right}}function kv(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=wy(n);return a.flags&384?""+a.value:void 0}function zg(n){const a=n.dotDotDotToken?32:0,c=Si(n.parent.parent,a);return c&&sT(n,c,!1)}function sT(n,a,c){if(wr(a))return a;const p=n.parent;ie&&n.flags&33554432&&jT(n)?a=Gy(a):ie&&p.parent.initializer&&!Mh(wFe(p.parent.initializer),65536)&&(a=om(a,524288));const m=32|(c||dR(n)?16:0);let b;if(p.kind===207)if(n.dotDotDotToken){if(a=Lm(a),a.flags&2||!C5(a))return Qe(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);b=ao(a,I,n.symbol)}else{const I=n.propertyName||n.name,w=wy(I),U=Xp(a,w,m,I);b=as(n,U)}else{const I=Hv(65|(n.dotDotDotToken?0:128),a,he,p),w=p.elements.indexOf(n);if(n.dotDotDotToken){const U=Tl(a,H=>H.flags&58982400?b_(H):H);b=Ep(U,Ka)?Tl(U,H=>IL(H,w)):Yd(I)}else if(jv(a)){const U=Ch(w),H=uT(a,U,m,n.name)||nt;b=as(n,H)}else b=I}return n.initializer?xc(JE(n))?ie&&!Mh(wL(n,0),16777216)?Is(b):b:tye(n,pi([Is(b),wL(n,0)],2)):b}function cs(n){const a=$y(n);if(a)return qi(a)}function Gc(n){const a=us(n,!0);return a.kind===106||a.kind===80&&fu(a)===ce}function Ov(n){const a=us(n,!0);return a.kind===210&&a.elements.length===0}function pu(n,a=!1,c=!0){return ie&&c?hT(n,a):n}function Yx(n,a,c){if(yi(n)&&n.parent.parent.kind===250){const I=T_(Sge(go(n.parent.parent.expression,c)));return I.flags&4456448?h8e(I):yt}if(yi(n)&&n.parent.parent.kind===251){const I=n.parent.parent;return eB(I)||Ue}if(Qo(n.parent))return zg(n);const p=Po(n)&&!Xh(n)||Su(n)||Wie(n),m=a&&wI(n),b=cT(n);if(_G(n))return b?wr(b)||b===Nt?b:nt:X?Nt:Ue;if(b)return pu(b,p,m);if((ve||Ir(n))&&yi(n)&&!Qo(n.name)&&!($$(n)&32)&&!(n.flags&33554432)){if(!(OE(n)&6)&&(!n.initializer||Gc(n.initializer)))return Rt;if(n.initializer&&Ov(n.initializer))return ld}if(to(n)){if(!n.symbol)return;const I=n.parent;if(I.kind===179&&FC(I)){const H=ll(Wr(n.parent),178);if(H){const Q=Df(H),Ie=Oye(I);return Ie&&n===Ie?(C.assert(!Ie.type),_r(Q.thisParameter)):fs(Q)}}const w=Ylt(I,n);if(w)return w;const U=n.symbol.escapedName==="this"?lge(I):p6e(n);if(U)return pu(U,!1,m)}if(e1(n)&&n.initializer){if(Ir(n)&&!to(n)){const w=rn(n,Wr(n),QN(n));if(w)return w}const I=tye(n,wL(n,c));return pu(I,p,m)}if(Po(n)&&(ve||Ir(n)))if(wc(n)){const I=Vn(n.parent.members,Ql),w=I.length?M(n.symbol,I):Gd(n)&128?NY(n.symbol):void 0;return w&&pu(w,!0,m)}else{const I=ow(n.parent),w=I?V(n.symbol,I):Gd(n)&128?NY(n.symbol):void 0;return w&&pu(w,!0,m)}if(o_(n))return ft;if(Qo(n.name))return fL(n.name,!1,!0)}function Bg(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)&&t$(c)&&(c.left.kind!==213||uf(c.left.argumentExpression))&&!Or(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function $_(n){const a=n.valueDeclaration;return a&&Po(a)&&!xc(a)&&!a.initializer&&(ve||Ir(a))}function br(n){if(n.declarations)for(const a of n.declarations){const c=vu(a,!1,!1);if(c&&(c.kind===177||A_(c)))return c}}function T(n){const a=Fn(n.declarations[0]),c=Bi(n.escapedName),p=n.declarations.every(b=>Ir(b)&&Ks(b)&&yg(b.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,jy(m,Rt,he)}function M(n,a){const c=fo(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Bi(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 b=ue(m,n);if(ve&&(b===Rt||b===ld)&&Qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,po(n),sr(b)),!Ep(b,P5))return _8(b)}}function V(n,a){const c=fo(n.escapedName,"__#")?L.createPrivateIdentifier(n.escapedName.split("@")[1]):Bi(n.escapedName),p=L.createPropertyAccessExpression(L.createThis(),c);ps(p.expression,p),ps(p,a),p.flowNode=a.returnFlowNode;const m=ue(p,n);return ve&&(m===Rt||m===ld)&&Qe(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,po(n),sr(m)),Ep(m,P5)?void 0:_8(m)}function ue(n,a){const c=(a==null?void 0:a.valueDeclaration)&&(!$_(a)||Gd(a.valueDeclaration)&128)&&NY(a)||he;return jy(n,Rt,c)}function tt(n,a){const c=_I(n.valueDeclaration);if(c){const w=Ir(c)?LT(c):void 0;return w&&w.typeExpression?qi(w.typeExpression):n.valueDeclaration&&rn(n.valueDeclaration,n,c)||Z0(Vl(c))}let p,m=!1,b=!1;if(Bg(n)&&(p=V(n,br(n))),!p){let w;if(n.declarations){let U;for(const H of n.declarations){const Q=Nr(H)||Zo(H)?H:Ks(H)?Nr(H.parent)?H.parent:H:void 0;if(!Q)continue;const Ie=Ks(Q)?yk(Q):ac(Q);(Ie===4||Nr(Q)&&t$(Q,Ie))&&(of(Q)?m=!0:b=!0),Zo(Q)||(U=Or(U,Q,n,H)),U||(w||(w=[])).push(Nr(Q)||Zo(Q)?ko(n,a,Q,Ie):yn)}p=U}if(!p){if(!Ze(w))return nt;let U=m&&n.declarations?lT(w,n.declarations):void 0;if(b){const Q=NY(n);Q&&((U||(U=[])).push(Q),m=!0)}const H=vt(U,Q=>!!(Q.flags&-98305))?U:w;p=pi(H)}}const I=$p(pu(p,!1,b&&!m));return n.valueDeclaration&&Ir(n.valueDeclaration)&&Ec(I,w=>!!(w.flags&-98305))===yn?(eS(n.valueDeclaration,Ue),Ue):I}function rn(n,a,c){var p,m;if(!Ir(n)||!c||!Fa(c)||c.properties.length)return;const b=da();for(;Nr(n)||qr(n);){const U=If(n);(p=U==null?void 0:U.exports)!=null&&p.size&&h_(b,U.exports),n=Nr(n)?n.parent:n.parent.parent}const I=If(n);(m=I==null?void 0:I.exports)!=null&&m.size&&h_(b,I.exports);const w=bl(a,b,se,se,se);return w.objectFlags|=4096,w}function Or(n,a,c,p){var m;const b=xc(a.parent);if(b){const I=$p(qi(b));if(n)!pr(n)&&!pr(I)&&!qg(n,I)&&b3e(void 0,n,p,I);else return I}if((m=c.parent)!=null&&m.valueDeclaration){const I=z0(c.parent);if(I.valueDeclaration){const w=xc(I.valueDeclaration);if(w){const U=Ea(qi(w),c.escapedName);if(U)return xh(U)}}}return n}function ko(n,a,c,p){if(Zo(c)){if(a)return _r(a);const I=Vl(c.arguments[2]),w=_n(I,"value");if(w)return w;const U=_n(I,"get");if(U){const Q=zA(U);if(Q)return fs(Q)}const H=_n(I,"set");if(H){const Q=zA(H);if(Q)return Hge(Q)}return Ue}if(il(c.left,c.right))return Ue;const m=p===1&&(qr(c.left)||Ws(c.left))&&(yg(c.left.expression)||He(c.left.expression)&&o1(c.left.expression)),b=a?_r(a):m?Cu(Vl(c.right)):Z0(Vl(c.right));if(b.flags&524288&&p===2&&n.escapedName==="export="){const I=Dh(b),w=da();NF(I.members,w);const U=w.size;a&&!a.exports&&(a.exports=da()),(a||n).exports.forEach((Q,Ie)=>{var Te;const et=w.get(Ie);if(et&&et!==Q&&!(Q.flags&2097152))if(Q.flags&111551&&et.flags&111551){if(Q.valueDeclaration&&et.valueDeclaration&&Fn(Q.valueDeclaration)!==Fn(et.valueDeclaration)){const Dt=Bi(Q.escapedName),$t=((Te=ni(et.valueDeclaration,nd))==null?void 0:Te.name)||et.valueDeclaration;pa(Qe(Q.valueDeclaration,f.Duplicate_identifier_0,Dt),Ar($t,f._0_was_also_declared_here,Dt)),pa(Qe($t,f.Duplicate_identifier_0,Dt),Ar(Q.valueDeclaration,f._0_was_also_declared_here,Dt))}const Tt=ja(Q.flags|et.flags,Ie);Tt.links.type=pi([_r(Q),_r(et)]),Tt.valueDeclaration=et.valueDeclaration,Tt.declarations=lo(et.declarations,Q.declarations),w.set(Ie,Tt)}else w.set(Ie,$f(Q,et));else w.set(Ie,Q)});const H=bl(U!==w.size?void 0:I.symbol,w,I.callSignatures,I.constructSignatures,I.indexInfos);if(U===w.size&&(b.aliasSymbol&&(H.aliasSymbol=b.aliasSymbol,H.aliasTypeArguments=b.aliasTypeArguments),Hr(b)&4)){H.aliasSymbol=b.symbol;const Q=ol(b);H.aliasTypeArguments=Ze(Q)?Q:void 0}return H.objectFlags|=Xz([b])|Hr(b)&20608,H.symbol&&H.symbol.flags&32&&b===tm(H.symbol)&&(H.objectFlags|=16777216),H}return PY(b)?(eS(c,bd),bd):b}function il(n,a){return qr(n)&&n.expression.kind===110&&ex(a,c=>Ad(n,c))}function of(n){const a=vu(n,!1,!1);return a.kind===177||a.kind===263||a.kind===219&&!vk(a.parent)}function lT(n,a){return C.assert(n.length===a.length),n.filter((c,p)=>{const m=a[p],b=Nr(m)?m:Nr(m.parent)?m.parent:void 0;return b&&of(b)})}function Ih(n,a,c){if(n.initializer){const p=Qo(n.name)?fL(n.name,!0,!1):Nt;return pu(q4e(n,wL(n,0,p)))}return Qo(n.name)?fL(n.name,a,c):(c&&!qX(n)&&eS(n,Ue),a?Tr:Ue)}function $x(n,a,c){const p=da();let m,b=131200;$e(n.elements,w=>{const U=w.propertyName||w.name;if(w.dotDotDotToken){m=Ug(yt,Ue,!1);return}const H=wy(U);if(!jf(H)){b|=512;return}const Q=Uf(H),Ie=4|(w.initializer?16777216:0),Te=ja(Ie,Q);Te.links.type=Ih(w,a,c),p.set(Te.escapedName,Te)});const I=bl(void 0,p,se,se,m?[m]:se);return I.objectFlags|=b,a&&(I.pattern=n,I.objectFlags|=131072),I}function rhe(n,a,c){const p=n.elements,m=tl(p),b=m&&m.kind===209&&m.dotDotDotToken?m:void 0;if(p.length===0||p.length===1&&b)return G>=2?ZWe(Ue):bd;const I=Bt(p,Q=>Jc(Q)?Ue:Ih(Q,a,c)),w=Zs(p,Q=>!(Q===b||Jc(Q)||dR(Q)),p.length-1)+1,U=Bt(p,(Q,Ie)=>Q===b?4:Ie>=w?2:1);let H=tg(I,U);return a&&(H=MWe(H),H.pattern=n,H.objectFlags|=131072),H}function fL(n,a=!1,c=!1){a&&Dm.push(n);const p=n.kind===207?$x(n,a,c):rhe(n,a,c);return a&&Dm.pop(),p}function Qx(n,a){return AW(Yx(n,!0,0),n,a)}function ihe(n){const a=Vr(n);if(!a.resolvedType){const c=ja(4096,"__importAttributes"),p=da();$e(n.elements,b=>{const I=ja(4,n4(b));I.parent=c,I.links.type=zyt(b),I.links.target=I,p.set(I.escapedName,I)});const m=bl(c,p,se,se,se);m.objectFlags|=262272,a.resolvedType=m}return a.resolvedType}function ohe(n){const a=If(n),c=pct(!1);return c&&a&&a===c}function AW(n,a,c){return n?(n.flags&4096&&ohe(a.parent)&&(n=s_e(a)),c&&BY(a,n),n.flags&8192&&(Ha(a)||!cT(a))&&n.symbol!==Wr(a)&&(n=Qt),$p(n)):(n=to(a)&&a.dotDotDotToken?bd:Ue,c&&(qX(a)||eS(a,n)),n)}function qX(n){const a=Kh(n),c=a.kind===170?a.parent:a;return K5(c)}function cT(n){const a=xc(n);if(a)return qi(a)}function ahe(n){let a=n.valueDeclaration;return a?(Ha(a)&&(a=JE(a)),to(a)?EY(a.parent):!1):!1}function she(n){const a=Jr(n);if(!a.type){const c=lhe(n);return!a.type&&!ahe(n)&&(a.type=c),c}return a.type}function lhe(n){if(n.flags&4194304)return nn(n);if(n===je)return Ue;if(n.flags&134217728&&n.valueDeclaration){const p=Wr(Fn(n.valueDeclaration)),m=ja(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 b=da();return b.set("exports",m),bl(n,b,se,se,se)}C.assertIsDefined(n.valueDeclaration);const a=n.valueDeclaration;if(Yi(a)&&Ff(a))return a.statements.length?$p(Z0(go(a.statements[0].expression))):Ra;if(fb(a))return hL(n);if(!y_(n,0))return n.flags&512&&!(n.flags&67108864)?_L(n):vA(n);let c;if(a.kind===278)c=AW(cT(a)||Vl(a.expression),a);else if(Nr(a)||Ir(a)&&(Zo(a)||(qr(a)||i6(a))&&Nr(a.parent)))c=tt(n);else if(qr(a)||Ws(a)||He(a)||ds(a)||np(a)||Dc(a)||Zl(a)||Nl(a)&&!hm(a)||Vm(a)||Yi(a)){if(n.flags&9136)return _L(n);c=Nr(a.parent)?tt(n):cT(a)||Ue}else if(Cc(a))c=cT(a)||J4e(a);else if(o_(a))c=cT(a)||R6e(a);else if(Ud(a))c=cT(a)||WL(a.name,0);else if(hm(a))c=cT(a)||K4e(a,0);else if(to(a)||Po(a)||Su(a)||yi(a)||Ha(a)||wN(a))c=Qx(a,!0);else if(ZT(a))c=_L(n);else if(fy(a))c=YX(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)?_L(n):vA(n)}function SE(n){if(n)switch(n.kind){case 178:return kp(n);case 179:return lV(n);case 173:return C.assert(Xh(n)),xc(n)}}function mL(n){const a=SE(n);return a&&qi(a)}function Zx(n){const a=Oye(n);return a&&a.symbol}function JX(n){return J0(Df(n))}function hL(n){const a=Jr(n);if(!a.type){if(!y_(n,0))return nt;const c=ll(n,178),p=ll(n,179),m=ni(ll(n,173),Yu);let b=c&&Ir(c)&&cs(c)||mL(c)||mL(p)||mL(m)||c&&c.body&&T$(c)||m&&Qx(m,!0);b||(p&&!K5(p)?Km(ve,p,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,po(n)):c&&!K5(c)?Km(ve,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,po(n)):m&&!K5(m)&&Km(ve,m,f.Member_0_implicitly_has_an_1_type,po(n),"any"),b=Ue),rt()||(SE(c)?Qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,po(n)):SE(p)||SE(m)?Qe(p,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,po(n)):c&&ve&&Qe(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,po(n)),b=Ue),a.type??(a.type=b)}return a.type}function KX(n){const a=Jr(n);if(!a.writeType){if(!y_(n,7))return nt;const c=ll(n,179)??ni(ll(n,173),Yu);let p=mL(c);rt()||(SE(c)&&Qe(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,po(n)),p=Ue),a.writeType??(a.writeType=p||hL(n))}return a.writeType}function IW(n){const a=Ly(tm(n));return a.flags&8650752?a:a.flags&2097152?hn(a.types,c=>!!(c.flags&8650752)):void 0}function _L(n){let a=Jr(n);const c=a;if(!a.type){const p=n.valueDeclaration&&v$(n.valueDeclaration,!1);if(p){const m=Fge(n,p);m&&(n=m,a=m.links)}c.type=a.type=XX(n)}return a.type}function XX(n){const a=n.valueDeclaration;if(n.flags&1536&&Q2(n))return Ue;if(a&&(a.kind===227||Ks(a)&&a.parent.kind===227))return tt(n);if(n.flags&512&&a&&Yi(a)&&a.commonJsModuleIndicator){const p=Tp(n);if(p!==n){if(!y_(n,0))return nt;const m=os(n.exports.get("export=")),b=tt(m,m===p?void 0:p);return rt()?b:vA(n)}}const c=_c(16,n);if(n.flags&32){const p=IW(n);return p?Ma([c,p]):c}else return ie&&n.flags&16777216?hT(c,!0):c}function YX(n){const a=Jr(n);return a.type||(a.type=UOe(n))}function che(n){const a=Jr(n);if(!a.type){if(!y_(n,0))return nt;const c=ud(n),p=n.declarations&&W0(cp(n),!0),m=Bn(p==null?void 0:p.declarations,b=>dl(b)?cT(b):void 0);if(a.type??(a.type=p!=null&&p.declarations&&G$(p.declarations)&&n.declarations.length?T(p):G$(n.declarations)?Rt:m||(dp(c)&111551?_r(c):nt)),!rt())return vA(p??n),a.type??(a.type=nt)}return a.type}function dhe(n){const a=Jr(n);return a.type||(a.type=io(_r(a.target),a.mapper))}function uhe(n){const a=Jr(n);return a.writeType||(a.writeType=io(Wv(a.target),a.mapper))}function vA(n){const a=n.valueDeclaration;if(a){if(xc(a))return Qe(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,po(n)),nt;ve&&(a.kind!==170||a.initializer)&&Qe(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,po(n))}else if(n.flags&2097152){const c=cp(n);c&&Qe(c,f.Circular_definition_of_import_alias_0,po(n))}return Ue}function $X(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):Ma(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):Ma(a.deferralWriteConstituents)),a.writeType}function Wv(n){const a=Wl(n);return a&2?a&65536?phe(n)||$X(n):n.links.writeType||n.links.type:n.flags&4?Vy(_r(n),!!(n.flags&16777216)):n.flags&98304?a&1?uhe(n):KX(n):_r(n)}function _r(n){const a=Wl(n);return a&65536?$X(n):a&1?dhe(n):a&262144?Mlt(n):a&8192?Kut(n):n.flags&7?she(n):n.flags&9136?_L(n):n.flags&8?YX(n):n.flags&98304?hL(n):n.flags&2097152?che(n):nt}function xh(n){return Vy(_r(n),!!(n.flags&16777216))}function QX(n,a){if(n===void 0||!(Hr(n)&4))return!1;for(const c of a)if(n.target===c)return!0;return!1}function Jp(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(eh(m),c)}else if(p.flags&2097152)return vt(p.types,c);return!1}}function $r(n,a){for(const c of a)n=Qg(n,U0(Wr(c)));return n}function Mi(n,a){for(;;){if(n=n.parent,n&&Nr(n)){const p=ac(n);if(p===6||p===3){const m=Wr(n.left);m&&m.parent&&!Dn(m.parent.valueDeclaration,b=>n===b)&&(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=Mi(n,a);if((c===219||c===220||hm(n))&&Cf(n)){const w=Ac(na(_r(Wr(n)),0));if(w&&w.typeParameters)return[...m||se,...w.typeParameters]}if(c===201)return Un(m,U0(Wr(n.typeParameter)));if(c===195)return lo(m,r_e(n));const b=$r(m,cb(n)),I=a&&(c===264||c===232||c===265||A_(n))&&tm(Wr(n)).thisType;return I?Un(b,I):b}case 342:const p=Ak(n);p&&(n=p.valueDeclaration);break;case 321:{const m=Mi(n,a);return n.tags?$r(m,Ki(n.tags,b=>Tm(b)?b.typeParameters:void 0)):m}}}}function Wi(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"),Mi(c)}function Na(n){if(!n.declarations)return;let a;for(const c of n.declarations)(c.kind===265||c.kind===264||c.kind===232||A_(c)||Sk(c))&&(a=$r(a,cb(c)));return a}function Bs(n){return lo(Wi(n),Na(n))}function Ed(n){const a=na(n,1);if(a.length===1){const c=a[0];if(!c.typeParameters&&c.parameters.length===1&&su(c)){const p=z5(c.parameters[0]);return wr(p)||m5(p)===Ue}}return!1}function Rh(n){if(na(n,1).length>0)return!0;if(n.flags&8650752){const a=Ld(n);return!!a&&Ed(a)}return!1}function Pm(n){const a=dy(n.symbol);return a&&lh(a)}function Zm(n,a,c){const p=Ze(a),m=Ir(c);return Vn(na(n,1),b=>(m||p>=eg(b.typeParameters))&&p<=Ze(b.typeParameters))}function Gg(n,a,c){const p=Zm(n,a,c),m=Bt(a,qi);return Zi(p,b=>vt(b.typeParameters)?PW(b,m,Ir(c)):b)}function Ly(n){if(!n.resolvedBaseConstructorType){const a=dy(n.symbol),c=a&&lh(a),p=Pm(n);if(!p)return n.resolvedBaseConstructorType=he;if(!y_(n,1))return nt;const m=go(p.expression);if(c&&p!==c&&(C.assert(!c.typeArguments),go(c.expression)),m.flags&2621440&&Dh(m),!rt())return Qe(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,po(n.symbol)),n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt);if(!(m.flags&1)&&m!==Pe&&!Rh(m)){const b=Qe(p.expression,f.Type_0_is_not_a_constructor_function_type,sr(m));if(m.flags&262144){const I=SL(m);let w=Nt;if(I){const U=na(I,1);U[0]&&(w=fs(U[0]))}m.symbol.declarations&&pa(b,Ar(m.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,po(m.symbol),sr(w)))}return n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=nt)}n.resolvedBaseConstructorType??(n.resolvedBaseConstructorType=m)}return n.resolvedBaseConstructorType}function OC(n){let a=se;if(n.symbol.declarations)for(const c of n.symbol.declarations){const p=nD(c);if(p)for(const m of p){const b=qi(m);pr(b)||(a===se?a=[b]:a.push(b))}}return a}function gL(n,a){Qe(n,f.Type_0_recursively_references_itself_as_a_base_type,sr(a,void 0,2))}function eh(n){if(!n.baseTypesResolved){if(y_(n,6)&&(n.objectFlags&8?n.resolvedBaseTypes=[nlt(n)]:n.symbol.flags&96?(n.symbol.flags&32&&rlt(n),n.symbol.flags&64&&olt(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)&&gL(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function nlt(n){const a=Zi(n.typeParameters,(c,p)=>n.elementFlags[p]&8?Xp(c,Gt):c);return Yd(pi(a||se),n.readonly)}function rlt(n){n.resolvedBaseTypes=aG;const a=Du(Ly(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=se;const c=Pm(n);let p;const m=a.symbol?qs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&ilt(m))p=PWe(c,a.symbol);else if(a.flags&1)p=a;else{const I=Gg(a,c.typeArguments,c);if(!I.length)return Qe(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=se;p=fs(I[0])}if(pr(p))return n.resolvedBaseTypes=se;const b=Lm(p);if(!Gz(b)){const I=Ihe(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(b));return ns.add(_g(Fn(c.expression),c.expression,w)),n.resolvedBaseTypes=se}return n===b||Ur(b,n)?(Qe(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,sr(n,void 0,2)),n.resolvedBaseTypes=se):(n.resolvedBaseTypes===aG&&(n.members=void 0),n.resolvedBaseTypes=[b])}function ilt(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 Gz(n){if(n.flags&262144){const a=Ld(n);if(a)return Gz(a)}return!!(n.flags&67633153&&!up(n)||n.flags&2097152&&Hn(n.types,Gz))}function olt(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||se,n.symbol.declarations){for(const a of n.symbol.declarations)if(a.kind===265&&iM(a))for(const c of iM(a)){const p=Lm(qi(c));pr(p)||(Gz(p)?n!==p&&!Ur(p,n)?n.resolvedBaseTypes===se?n.resolvedBaseTypes=[p]:n.resolvedBaseTypes.push(p):gL(a,n):Qe(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function alt(n){if(!n.declarations)return!0;for(const a of n.declarations)if(a.kind===265){if(a.flags&256)return!1;const c=iM(a);if(c){for(const p of c)if(Ds(p.expression)){const m=Gl(p.expression,788968,!0);if(!m||!(m.flags&64)||tm(m).thisType)return!1}}}return!0}function tm(n){let a=Jr(n);const c=a;if(!a.declaredType){const p=n.flags&32?1:2,m=Fge(n,n.valueDeclaration&&aht(n.valueDeclaration));m&&(n=m,a=m.links);const b=c.declaredType=a.declaredType=_c(p,n),I=Wi(n),w=Na(n);(I||w||p===1||!alt(n))&&(b.objectFlags|=4,b.typeParameters=lo(I,w),b.outerTypeParameters=I,b.localTypeParameters=w,b.instantiations=new Map,b.instantiations.set(km(b.typeParameters),b),b.target=b,b.resolvedTypeArguments=b.typeParameters,b.thisType=Vu(n),b.thisType.isThisType=!0,b.thisType.constraint=b)}return a.declaredType}function GOe(n){var a;const c=Jr(n);if(!c.declaredType){if(!y_(n,2))return nt;const p=C.checkDefined((a=n.declarations)==null?void 0:a.find(Sk),"Type alias symbol with no valid declaration found"),m=_m(p)?p.typeExpression:p.type;let b=m?qi(m):nt;if(rt()){const I=Na(n);I&&(c.typeParameters=I,c.instantiations=new Map,c.instantiations.set(km(I),b)),b===Oe&&n.escapedName==="BuiltinIteratorReturn"&&(b=Ghe())}else b=nt,p.kind===341?Qe(p.typeExpression.type,f.Type_alias_0_circularly_references_itself,po(n)):Qe(nd(p)&&p.name||p,f.Type_alias_0_circularly_references_itself,po(n));c.declaredType??(c.declaredType=b)}return c.declaredType}function ZX(n){return n.flags&1056&&n.symbol.flags&8?qs(Yc(n.symbol)):n}function VOe(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 b of m.members)if(FC(b)){const I=Wr(b),w=GA(b).value,U=oR(w!==void 0?Ddt(w,Ta(n),I):jOe(I));Jr(I).declaredType=U,c.push(Cu(U))}}}const p=c.length?pi(c,1,n,void 0):jOe(n);p.flags&1048576&&(p.flags|=1024,p.symbol=n),a.declaredType=p}return a.declaredType}function jOe(n){const a=wi(32,n),c=wi(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function UOe(n){const a=Jr(n);if(!a.declaredType){const c=VOe(Yc(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function U0(n){const a=Jr(n);return a.declaredType||(a.declaredType=Vu(n))}function slt(n){const a=Jr(n);return a.declaredType||(a.declaredType=qs(ud(n)))}function qs(n){return HOe(n)||nt}function HOe(n){if(n.flags&96)return tm(n);if(n.flags&524288)return GOe(n);if(n.flags&262144)return U0(n);if(n.flags&384)return VOe(n);if(n.flags&8)return UOe(n);if(n.flags&2097152)return slt(n)}function Vz(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 Vz(n.elementType);case 184:return!n.typeArguments||n.typeArguments.every(Vz)}return!1}function llt(n){const a=WR(n);return!a||Vz(a)}function qOe(n){const a=xc(n);return a?Vz(a):!Zy(n)}function clt(n){const a=kp(n),c=cb(n);return(n.kind===177||!!a&&Vz(a))&&n.parameters.every(qOe)&&c.every(llt)}function dlt(n){if(n.declarations&&n.declarations.length===1){const a=n.declarations[0];if(a)switch(a.kind){case 173:case 172:return qOe(a);case 175:case 174:case 177:case 178:case 179:return clt(a)}}return!1}function JOe(n,a,c){const p=da();for(const m of n)p.set(m.escapedName,c&&dlt(m)?m:u_e(m,a));return p}function KOe(n,a){for(const c of a){if(XOe(c))continue;const p=n.get(c.escapedName);(!p||p.valueDeclaration&&Nr(p.valueDeclaration)&&!Bg(p)&&!ine(p.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function XOe(n){return!!n.valueDeclaration&&nu(n.valueDeclaration)&&ua(n.valueDeclaration)}function fhe(n){if(!n.declaredProperties){const a=n.symbol,c=Q_(a);n.declaredProperties=ju(c),n.declaredCallSignatures=se,n.declaredConstructSignatures=se,n.declaredIndexInfos=se,n.declaredCallSignatures=IE(c.get("__call")),n.declaredConstructSignatures=IE(c.get("__new")),n.declaredIndexInfos=DWe(a)}return n}function mhe(n){return $Oe(n)&&jf(va(n)?nh(n):Vl(n.argumentExpression))}function YOe(n){return $Oe(n)&&ult(va(n)?nh(n):Vl(n.argumentExpression))}function $Oe(n){if(!va(n)&&!Ws(n))return!1;const a=va(n)?n.expression:n.argumentExpression;return Ds(a)}function ult(n){return sa(n,Ii)}function xW(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function WC(n){const a=Oo(n);return!!a&&mhe(a)}function QOe(n){const a=Oo(n);return!!a&&YOe(a)}function FC(n){return!ay(n)||WC(n)}function ZOe(n){return u6(n)&&!mhe(n)}function plt(n,a,c){C.assert(!!(Wl(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&&ZN(n,a)}function eWe(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 b=Nr(p)?p.left:p.name,I=Ws(b)?Vl(b.argumentExpression):nh(b);if(jf(I)){const w=Uf(I),U=p.symbol.flags;let H=c.get(w);H||c.set(w,H=ja(0,w,4096));const Q=a&&a.get(w);if(!(n.flags&32)&&H.flags&eA(U)){const Ie=Q?lo(Q.declarations,H.declarations):H.declarations,Te=!(I.flags&8192)&&Bi(w)||ws(b);$e(Ie,et=>Qe(Oo(et)||et,f.Property_0_was_also_declared_here,Te)),Qe(b||p,f.Duplicate_property_0,Te),H=ja(0,w,4096)}return H.links.nameType=I,plt(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 flt(n,a,c,p){let m=c.get("__index");if(!m){const b=a==null?void 0:a.get("__index");b?(m=pE(b),m.links.checkFlags|=4096):m=ja(0,"__index",4096),c.set("__index",m)}m.declarations?p.symbol.isReplaceableByMethod||m.declarations.push(p):m.declarations=[p]}function hhe(n,a){const c=Jr(n);if(!c[a]){const p=a==="resolvedExports",m=p?n.flags&1536?pA(n).exports:n.exports:n.members;c[a]=m||k;const b=da();for(const U of n.declarations||se){const H=$te(U);if(H)for(const Q of H)p===wc(Q)&&(WC(Q)?eWe(n,m,b,Q):QOe(Q)&&flt(n,m,b,Q))}const I=z0(n).assignmentDeclarationMembers;if(I){const U=Co(I.values());for(const H of U){const Q=ac(H),Ie=Q===3||Nr(H)&&t$(H,Q)||Q===9||Q===6;p===!Ie&&WC(H)&&eWe(n,m,b,H)}}let w=Rv(m,b);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,Ie)=>{const Te=w.get(Ie);if(!Te)w.set(Ie,Q);else{if(Te===Q)return;w.set(Ie,$f(Te,Q))}})}c[a]=w||k}return c[a]}function Q_(n){return n.flags&6256?hhe(n,"resolvedMembers"):n.members||k}function eY(n){if(n.flags&106500&&n.escapedName==="__computed"){const a=Jr(n);if(!a.lateSymbol&&vt(n.declarations,WC)){const c=os(n.parent);vt(n.declarations,wc)?qp(c):Q_(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function Kp(n,a,c){if(Hr(n)&4){const p=n.target,m=ol(n);return Ze(p.typeParameters)===Ze(m)?ky(p,lo(m,[a||p.thisType])):n}else if(n.flags&2097152){const p=Zi(n.types,m=>Kp(m,a,c));return p!==n.types?Ma(p):n}return c?Du(n):n}function tWe(n,a,c,p){let m,b,I,w,U;FB(c,p,0,c.length)?(b=a.symbol?Q_(a.symbol):da(a.declaredProperties),I=a.declaredCallSignatures,w=a.declaredConstructSignatures,U=a.declaredIndexInfos):(m=Yp(c,p),b=JOe(a.declaredProperties,m,c.length===1),I=TY(a.declaredCallSignatures,m),w=TY(a.declaredConstructSignatures,m),U=P8e(a.declaredIndexInfos,m));const H=eh(a);if(H.length){if(a.symbol&&b===Q_(a.symbol)){const Ie=da(a.declaredProperties),Te=oY(a.symbol);Te&&Ie.set("__index",Te),b=Ie}Mm(n,b,I,w,U);const Q=tl(p);for(const Ie of H){const Te=Q?Kp(io(Ie,m),Q):Ie;KOe(b,bs(Te)),I=lo(I,na(Te,0)),w=lo(w,na(Te,1));const et=Te!==Ue?Xd(Te):[Eo];U=lo(U,Vn(et,Tt=>!bL(U,Tt.keyType)))}}Mm(n,b,I,w,U)}function mlt(n){tWe(n,fhe(n),se,se)}function hlt(n){const a=fhe(n.target),c=lo(a.typeParameters,[a.thisType]),p=ol(n),m=p.length===c.length?p:lo(p,[n]);tWe(n,a,c,m)}function v_(n,a,c,p,m,b,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=b,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 RW(n){const a=v_(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 nWe(n,a){const c=RW(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function _lt(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]=glt(n,a))}function glt(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=RW(n);return c.flags|=a,c}function rWe(n,a){if(su(n)){const m=n.parameters.length-1,b=n.parameters[m],I=_r(b);if(Ka(I))return[c(I,m,b)];if(!a&&I.flags&1048576&&Hn(I.types,Ka))return Bt(I.types,w=>c(w,m,b))}return[n.parameters];function c(m,b,I){const w=ol(m),U=p(m,I),H=Bt(w,(Q,Ie)=>{const Te=U&&U[Ie]?U[Ie]:kL(n,b+Ie,m),et=m.target.elementFlags[Ie],Tt=et&12?32768:et&2?16384:0,Dt=ja(1,Te,Tt);return Dt.links.type=et&4?Yd(Q):Q,Dt});return lo(n.parameters.slice(0,b),H)}function p(m,b){const I=Bt(m.target.labeledElementDeclarations,(w,U)=>Uge(w,U,m.target.elementFlags[U],b));if(I){const w=[],U=new Set;for(let Q=0;Q=Ie&&U<=Te){const et=Te?iY(Q,Bv(w,Q.typeParameters,Ie,I)):RW(Q);et.typeParameters=n.localTypeParameters,et.resolvedReturnType=n,et.flags=m?et.flags|4:et.flags&-5,H.push(et)}}return H}function tY(n,a,c,p,m){for(const b of n)if(p5(b,a,c,p,m,c?Hdt:BW))return b}function vlt(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||!tY(a,m,!1,!1,!0)){const b=vlt(n,m,p);if(b){let I=m;if(b.length>1){let w=m.thisParameter;const U=$e(b,H=>H.thisParameter);if(U){const H=Ma(ji(b,Q=>Q.thisParameter&&_r(Q.thisParameter)));w=MA(U,H)}I=nWe(m,b),I.thisParameter=w}(a||(a=[])).push(I)}}}if(!Ze(a)&&c!==-1){const p=n[c!==void 0?c:0];let m=p.slice();for(const b of n)if(b!==p){const I=b[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&&!iWe(I.typeParameters,w.typeParameters))?void 0:Bt(m,w=>Slt(w,I)),!m)break}a=m}return a||se}function iWe(n,a){if(Ze(n)!==Ze(a))return!1;if(!n||!a)return!0;const c=Yp(a,n);for(let p=0;p=m?n:a,I=b===n?a:n,w=b===n?p:m,U=rg(n)||rg(a),H=U&&!rg(b),Q=new Array(w+(H?1:0));for(let Ie=0;Ie=kh(b)&&Ie>=kh(I),Tn=Ie>=p?void 0:kL(n,Ie),rr=Ie>=m?void 0:kL(a,Ie),yr=Tn===rr?Tn:Tn?rr?void 0:Tn:rr,Sn=ja(1|($t&&!Dt?16777216:0),yr||`arg${Ie}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Yd(Tt):Tt,Q[Ie]=Sn}if(H){const Ie=ja(1,"args",32768);Ie.links.type=Yd(Lh(I,w)),I===a&&(Ie.links.type=io(Ie.links.type,c)),Q[w]=Ie}return Q}function Slt(n,a){const c=n.typeParameters||a.typeParameters;let p;n.typeParameters&&a.typeParameters&&(p=Yp(a.typeParameters,n.typeParameters));let m=(n.flags|a.flags)&166;const b=n.declaration,I=Tlt(n,a,p),w=tl(I);w&&Wl(w)&32768&&(m|=1);const U=blt(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=v_(b,c,U,I,void 0,void 0,H,m);return Q.compositeKind=1048576,Q.compositeSignatures=lo(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),p?Q.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?Y0(n.mapper,p):p:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(Q.mapper=n.mapper),Q}function oWe(n){const a=Xd(n[0]);if(a){const c=[];for(const p of a){const m=p.keyType;Hn(n,b=>!!jg(b,m))&&c.push(Ug(m,pi(Bt(n,b=>q0(b,m))),vt(n,b=>jg(b,m).isReadonly)))}return c}return se}function Elt(n){const a=_he(Bt(n.types,m=>m===tr?[si]:na(m,0))),c=_he(Bt(n.types,m=>na(m,1))),p=oWe(n.types);Mm(n,k,a,c,p)}function jz(n,a){return n?a?Ma([n,a]):n:a}function aWe(n){const a=_o(n,p=>na(p,1).length>0),c=Bt(n,Ed);if(a>0&&a===_o(c,p=>p)){const p=c.indexOf(!0);c[p]=!1}return c}function Alt(n,a,c,p){const m=[];for(let b=0;bw);for(let w=0;w0&&(H=Bt(H,Q=>{const Ie=RW(Q);return Ie.resolvedReturnType=Alt(fs(Q),m,b,w),Ie})),c=sWe(c,H)}a=sWe(a,na(U,0)),p=gu(Xd(U),(H,Q)=>lWe(H,Q,!1),p)}Mm(n,k,a||se,c||se,p||se)}function sWe(n,a){for(const c of a)(!n||Hn(n,p=>!p5(p,c,!1,!1,!1,BW)))&&(n=Un(n,c));return n}function lWe(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,yu))&&I.set(w.escapedName,w)}),c=I}let m;if(Mm(n,c,se,se,se),a.flags&32){const I=tm(a),w=Ly(I);w.flags&11272192?(c=da(qx(c)),KOe(c,bs(w))):w===Ue&&(m=Eo)}const b=aY(c);if(b?p=sY(b,Co(c.values())):(m&&(p=Un(p,m)),a.flags&384&&(qs(a).flags&32||vt(n.properties,I=>!!(_r(I).flags&296)))&&(p=Un(p,ro))),Mm(n,c,se,se,p||se),a.flags&8208&&(n.callSignatures=IE(a)),a.flags&32){const I=tm(a);let w=a.members?IE(a.members.get("__constructor")):se;a.flags&16&&(w=Xr(w.slice(),ji(n.callSignatures,U=>A_(U.declaration)?v_(U.declaration,U.typeParameters,U.thisParameter,U.parameters,I,void 0,U.minArgumentCount,U.flags&167):void 0))),w.length||(w=ylt(I)),n.constructSignatures=w}}function Rlt(n,a,c){return io(n,Yp([a.indexType,a.objectType],[Ch(0),tg([c])]))}function Dlt(n){const a=Rf(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=Ma(c.types.filter(m=>m!==n.constraintType));return p!==yn?p:void 0}function Clt(n){const a=jg(n.source,yt),c=Z_(n.mappedType),p=!(c&1),m=c&4?0:16777216,b=a?[Ug(yt,VY(a.type,n.mappedType,n.constraintType)||Nt,p&&a.isReadonly)]:se,I=da(),w=Dlt(n);for(const U of bs(n.source)){if(w){const Ie=nR(U,8576);if(!sa(Ie,w))continue}const H=8192|(p&&wh(U)?8:0),Q=ja(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 Ie=n.constraintType.type.objectType,Te=Rlt(n.mappedType,n.constraintType.type,Ie);Q.links.mappedType=Te,Q.links.constraintType=T_(Ie)}else Q.links.mappedType=n.mappedType,Q.links.constraintType=n.constraintType;I.set(U.escapedName,Q)}Mm(n,I,se,se,b)}function Uz(n){if(n.flags&4194304){const a=Du(n.type);return mT(a)?r8e(a):T_(a)}if(n.flags&16777216){if(n.root.isDistributive){const a=n.checkType,c=Uz(a);if(c!==a)return f_e(n,DA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return Tl(n,Uz,!0);if(n.flags&2097152){const a=n.types;return a.length===2&&a[0].flags&76&&a[1]===fa?n:Ma(Zi(n.types,Uz))}return n}function ghe(n){return Wl(n)&4096}function yhe(n,a,c,p){for(const m of bs(n))p(nR(m,a));if(n.flags&1)p(yt);else for(const m of Xd(n))(!c||m.keyType.flags&134217732)&&p(m.keyType)}function Nlt(n){const a=da();let c;Mm(n,k,se,se,se);const p=th(n),m=Rf(n),b=n.target||n,I=Fv(b),w=DW(b)!==2,U=Vg(b),H=Du(H0(n)),Q=Z_(n);zC(n)?yhe(H,8576,!1,Te):wA(Uz(m),Te),Mm(n,a,se,se,c||se);function Te(Tt){const Dt=I?io(I,WW(n.mapper,p,Tt)):Tt;wA(Dt,$t=>et(Tt,$t))}function et(Tt,Dt){if(jf(Dt)){const $t=Uf(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 rr=jf(Tt)?Ea(H,Uf(Tt)):void 0,yr=!!(Q&4||!(Q&8)&&rr&&rr.flags&16777216),Sn=!!(Q&1||!(Q&2)&&rr&&wh(rr)),vn=ie&&!yr&&rr&&rr.flags&16777216,Sr=rr?ghe(rr):0,fi=ja(4|(yr?16777216:0),$t,Sr|262144|(Sn?8:0)|(vn?524288:0));fi.links.mappedType=n,fi.links.nameType=Dt,fi.links.keyType=Tt,rr&&(fi.links.syntheticOrigin=rr,fi.declarations=w?rr.declarations:void 0),a.set($t,fi)}}else if(lY(Dt)||Dt.flags&33){const $t=Dt.flags&5?yt:Dt.flags&40?Gt:Dt,Tn=io(U,WW(n.mapper,p,Tt)),rr=CW(H,Dt),yr=!!(Q&1||!(Q&2)&&(rr!=null&&rr.isReadonly)),Sn=Ug($t,Tn,yr);c=lWe(c,Sn,!0)}}}function Mlt(n){var a;if(!n.links.type){const c=n.links.mappedType;if(!y_(n,0))return c.containsError=!0,nt;const p=Vg(c.target||c),m=WW(c.mapper,th(c),n.links.keyType),b=io(p,m);let I=ie&&n.flags&16777216&&!tc(b,49152)?hT(b,!0):n.links.checkFlags&524288?WY(b):b;rt()||(Qe(R,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,po(n),sr(c)),I=nt),(a=n.links).type??(a.type=I)}return n.links.type}function th(n){return n.typeParameter||(n.typeParameter=U0(Wr(n.declaration.typeParameter)))}function Rf(n){return n.constraintType||(n.constraintType=Uu(th(n))||nt)}function Fv(n){return n.declaration.nameType?n.nameType||(n.nameType=io(qi(n.declaration.nameType),n.mapper)):void 0}function Vg(n){return n.templateType||(n.templateType=n.declaration.type?io(pu(qi(n.declaration.type),!0,!!(Z_(n)&4)),n.mapper):nt)}function cWe(n){return WR(n.declaration.typeParameter)}function zC(n){const a=cWe(n);return a.kind===199&&a.operator===143}function H0(n){if(!n.modifiersType)if(zC(n))n.modifiersType=io(qi(cWe(n).type),n.mapper);else{const a=t_e(n.declaration),c=Rf(a),p=c&&c.flags&262144?Uu(c):c;n.modifiersType=p&&p.flags&4194304?io(p.type,n.mapper):Nt}return n.modifiersType}function Z_(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 dWe(n){const a=Z_(n);return a&8?-1:a&4?1:0}function yL(n){if(Hr(n)&32)return dWe(n)||yL(H0(n));if(n.flags&2097152){const a=yL(n.types[0]);return Hn(n.types,(c,p)=>p===0||yL(c)===a)?a:0}return 0}function Plt(n){return!!(Hr(n)&32&&Z_(n)&4)}function up(n){if(Hr(n)&32){const a=Rf(n);if(RA(a))return!0;const c=Fv(n);if(c&&RA(io(c,CE(th(n),a))))return!0}return!1}function DW(n){const a=Fv(n);return a?sa(a,th(n))?1:2:0}function Dh(n){return n.members||(n.flags&524288?n.objectFlags&4?hlt(n):n.objectFlags&3?mlt(n):n.objectFlags&1024?Clt(n):n.objectFlags&16?xlt(n):n.objectFlags&32?Nlt(n):C.fail("Unhandled object type "+C.formatObjectFlags(n.objectFlags)):n.flags&1048576?Elt(n):n.flags&2097152?Ilt(n):C.fail("Unhandled type "+C.formatTypeFlags(n.flags))),n}function zv(n){return n.flags&524288?Dh(n).properties:se}function EE(n,a){if(n.flags&524288){const p=Dh(n).members.get(a);if(p&&An(p))return p}}function Hz(n){if(!n.resolvedProperties){const a=da();for(const c of n.types){for(const p of bs(c))if(!a.has(p.escapedName)){const m=Jz(n,p.escapedName,!!(n.flags&2097152));m&&a.set(p.escapedName,m)}if(n.flags&1048576&&Xd(c).length===0)break}n.resolvedProperties=ju(a)}return n.resolvedProperties}function bs(n){return n=vL(n),n.flags&3145728?Hz(n):zv(n)}function Llt(n,a){n=vL(n),n.flags&3670016&&Dh(n).members.forEach((c,p)=>{iT(c,p)&&a(c,p)})}function klt(n,a){return a.properties.some(p=>{const m=p.name&&(fh(p.name)?Sp(iw(p.name)):wy(p.name)),b=m&&jf(m)?Uf(m):void 0,I=b===void 0?void 0:_n(n,b);return!!I&&jW(I)&&!sa(mR(p),I)})}function wlt(n){const a=pi(n);if(!(a.flags&1048576))return Rye(a);const c=da();for(const p of n)for(const{escapedName:m}of Rye(p))if(!c.has(m)){const b=gWe(a,m);b&&c.set(m,b)}return Co(c.values())}function bA(n){return n.flags&262144?Uu(n):n.flags&8388608?Wlt(n):n.flags&16777216?fWe(n):Ld(n)}function Uu(n){return qz(n)?SL(n):void 0}function Olt(n,a){const c=FW(n);return!!c&&TA(c,a)}function TA(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=>TA(p,a))||n.flags&8388608&&TA(n.objectType,a+1)||n.flags&16777216&&TA(fWe(n),a+1)||n.flags&33554432&&TA(n.baseType,a)||Hr(n)&32&&Olt(n,a)||mT(n)&&so(xE(n),(p,m)=>!!(n.target.elementFlags[m]&8)&&TA(p,a))>=0))}function Wlt(n){return qz(n)?Flt(n):void 0}function vhe(n){const a=Oy(n,!1);return a!==n?a:bA(n)}function Flt(n){if(Ehe(n))return gY(n.objectType,n.indexType);const a=vhe(n.indexType);if(a&&a!==n.indexType){const p=uT(n.objectType,a,n.accessFlags);if(p)return p}const c=vhe(n.objectType);if(c&&c!==n.objectType)return uT(c,n.indexType,n.accessFlags)}function bhe(n){if(!n.resolvedDefaultConstraint){const a=Edt(n),c=fT(n);n.resolvedDefaultConstraint=wr(a)?c:wr(c)?a:pi([a,c])}return n.resolvedDefaultConstraint}function uWe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){const a=Oy(n.checkType,!1),c=a===n.checkType?bA(a):a;if(c&&c!==n.checkType){const p=f_e(n,DA(n.root.checkType,c,n.mapper),!0);if(!(p.flags&131072))return n.resolvedConstraintOfDistributive=p,p}}n.resolvedConstraintOfDistributive=!1}function pWe(n){return uWe(n)||bhe(n)}function fWe(n){return qz(n)?pWe(n):void 0}function zlt(n,a){let c,p=!1;for(const m of n)if(m.flags&465829888){let b=bA(m);for(;b&&b.flags&21233664;)b=bA(b);b&&(c=Un(c,b),a&&(c=Un(c,m)))}else(m.flags&469892092||ng(m))&&(p=!0);if(c&&(a||p)){if(p)for(const m of n)(m.flags&469892092||ng(m))&&(c=Un(c,m));return c5(Ma(c,2),!1)}}function Ld(n){if(n.flags&464781312||mT(n)){const a=The(n);return a!==Hl&&a!==lc?a:void 0}return n.flags&4194304?Ii:void 0}function b_(n){return Ld(n)||n}function qz(n){return The(n)!==lc}function The(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;const a=[];return n.resolvedBaseConstraint=c(n);function c(b){if(!b.immediateBaseConstraint){if(!y_(b,4))return lc;let I;const w=MY(b);if((a.length<10||a.length<50&&!Ln(a,w))&&(a.push(w),I=m(Oy(b,!1)),a.pop()),!rt()){if(b.flags&262144){const U=cY(b);if(U){const H=Qe(U,f.Type_parameter_0_has_a_circular_constraint,sr(b));R&&!RS(U,R)&&!RS(R,U)&&pa(H,Ar(R,f.Circularity_originates_in_type_at_this_location))}}I=lc}b.immediateBaseConstraint??(b.immediateBaseConstraint=I||Hl)}return b.immediateBaseConstraint}function p(b){const I=c(b);return I!==Hl&&I!==lc?I:void 0}function m(b){if(b.flags&262144){const I=SL(b);return b.isThisType||!I?I:p(I)}if(b.flags&3145728){const I=b.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?b.flags&1048576&&w.length===I.length?pi(w):b.flags&2097152&&w.length?Ma(w):void 0:b}if(b.flags&4194304)return Ii;if(b.flags&134217728){const I=b.types,w=ji(I,p);return w.length===I.length?AA(b.texts,w):yt}if(b.flags&268435456){const I=p(b.type);return I&&I!==b.type?rR(b.symbol,I):yt}if(b.flags&8388608){if(Ehe(b))return p(gY(b.objectType,b.indexType));const I=p(b.objectType),w=p(b.indexType),U=I&&w&&uT(I,w,b.accessFlags);return U&&p(U)}if(b.flags&16777216){const I=pWe(b);return I&&p(I)}if(b.flags&33554432)return p(Ohe(b));if(mT(b)){const I=Bt(xE(b),(w,U)=>{const H=w.flags&262144&&b.target.elementFlags[U]&8&&p(w)||w;return H!==w&&Ep(H,Q=>Q0(Q)&&!mT(Q))?H:w});return tg(I,b.target.elementFlags,b.target.readonly,b.target.labeledElementDeclarations)}return b}}function Blt(n,a){if(n===a)return n.resolvedApparentType||(n.resolvedApparentType=Kp(n,a,!0));const c=`I${pd(n)},${pd(a)}`;return Gu(c)??Cm(c,Kp(n,a,!0))}function She(n){if(n.default)n.default===vd&&(n.default=lc);else if(n.target){const a=She(n.target);n.default=a?io(a,n.mapper):Hl}else{n.default=vd;const a=n.symbol&&$e(n.symbol.declarations,p=>cl(p)&&p.default),c=a?qi(a):Hl;n.default===vd&&(n.default=c)}return n.default}function AE(n){const a=She(n);return a!==Hl&&a!==lc?a:void 0}function Glt(n){return She(n)!==lc}function mWe(n){return!!(n.symbol&&$e(n.symbol.declarations,a=>cl(a)&&a.default))}function hWe(n){return n.resolvedApparentType||(n.resolvedApparentType=Vlt(n))}function Vlt(n){const a=n.target??n,c=FW(a);if(c&&!a.declaration.nameType){const p=H0(n),m=up(p)?hWe(p):Ld(p);if(m&&Ep(m,b=>Q0(b)||_We(b)))return io(a,DA(c,m,n.mapper))}return n}function _We(n){return!!(n.flags&2097152)&&Hn(n.types,Q0)}function Ehe(n){let a;return!!(n.flags&8388608&&Hr(a=n.objectType)&32&&!up(a)&&RA(n.indexType)&&!(Z_(a)&8)&&!a.declaration.nameType)}function Du(n){const a=n.flags&465829888?Ld(n)||Nt:n,c=Hr(a);return c&32?hWe(a):c&4&&a!==n?Kp(a,n):a.flags&2097152?Blt(a,n):a.flags&402653316?Mc:a.flags&296?rl:a.flags&2112?Rct():a.flags&528?Ll:a.flags&12288?qWe():a.flags&67108864?Ra:a.flags&4194304?Ii:a.flags&2&&!ie?Ra:a}function vL(n){return Lm(Du(Lm(n)))}function gWe(n,a,c){var p,m,b;let I=0,w,U,H;const Q=n.flags&1048576;let Ie,Te=4,et=Q?0:8,Tt=!1;for(const oo of n.types){const ii=Du(oo);if(!(pr(ii)||ii.flags&131072)){const zi=Ea(ii,a,c),Ko=zi?Vf(zi):0;if(zi){if(zi.flags&106500&&(Ie??(Ie=Q?0:16777216),Q?Ie|=zi.flags&16777216:Ie&=zi.flags),!w)w=zi,I=zi.flags&98304||4;else if(zi!==w){if((nN(zi)||zi)===(nN(w)||w)&&A_e(w,zi,(mo,pl)=>mo===pl?-1:0)===-1)Tt=!!w.parent&&!!Ze(Na(w.parent));else{U||(U=new Map,U.set(Ta(w),w));const mo=Ta(zi);U.has(mo)||U.set(mo,zi)}I&98304&&(zi.flags&98304)!==(I&98304)&&(I=I&-98305|4)}Q&&wh(zi)?et|=8:!Q&&!wh(zi)&&(et&=-9),et|=(Ko&6?0:256)|(Ko&4?512:0)|(Ko&2?1024:0)|(Ko&256?2048:0),bge(zi)||(Te=2)}else if(Q){const ms=!xW(a)&&tR(ii,a);ms?(I=I&-98305|4,et|=32|(ms.isReadonly?8:0),H=Un(H,Ka(ii)?kY(ii)||he:ms.type)):Uv(ii)&&!(Hr(ii)&2097152)?(et|=32,H=Un(H,he)):et|=16}}}if(!w||Q&&(U||et&48)&&et&1536&&!(U&&jlt(U.values())))return;if(!U&&!(et&16)&&!H)if(Tt){const oo=(p=ni(w,fg))==null?void 0:p.links,ii=MA(w,oo==null?void 0:oo.type);return ii.parent=(b=(m=w.valueDeclaration)==null?void 0:m.symbol)==null?void 0:b.parent,ii.links.containingType=n,ii.links.mapper=oo==null?void 0:oo.mapper,ii.links.writeType=Wv(w),ii}else return w;const Dt=U?Co(U.values()):[w];let $t,Tn,rr;const yr=[];let Sn,vn,Sr=!1;for(const oo of Dt){vn?oo.valueDeclaration&&oo.valueDeclaration!==vn&&(Sr=!0):vn=oo.valueDeclaration,$t=Xr($t,oo.declarations);const ii=_r(oo);Tn||(Tn=ii,rr=Jr(oo).nameType);const zi=Wv(oo);(Sn||zi!==ii)&&(Sn=Un(Sn||yr.slice(),zi)),ii!==Tn&&(et|=64),(jW(ii)||IA(ii))&&(et|=128),ii.flags&131072&&ii!==Ps&&(et|=131072),yr.push(ii)}Xr(yr,H);const fi=ja(I|(Ie??0),a,Te|et);return fi.links.containingType=n,!Sr&&vn&&(fi.valueDeclaration=vn,vn.symbol.parent&&(fi.parent=vn.symbol.parent)),fi.declarations=$t,fi.links.nameType=rr,yr.length>2?(fi.links.checkFlags|=65536,fi.links.deferralParent=n,fi.links.deferralConstituents=yr,fi.links.deferralWriteConstituents=Sn):(fi.links.type=Q?pi(yr):Ma(yr),Sn&&(fi.links.writeType=Q?pi(Sn):Ma(Sn))),fi}function yWe(n,a,c){var p,m,b;let I=c?(p=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:p.get(a):(m=n.propertyCache)==null?void 0:m.get(a);return I||(I=gWe(n,a,c),I&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=da()):n.propertyCache||(n.propertyCache=da())).set(a,I),c&&!(Wl(I)&48)&&!((b=n.propertyCache)!=null&&b.get(a))&&(n.propertyCache||(n.propertyCache=da())).set(a,I))),I}function jlt(n){let a;for(const c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(p=>{Ln(c.declarations,p)||a.delete(p)}),a.size===0)return}return a}function Jz(n,a,c){const p=yWe(n,a,c);return p&&!(Wl(p)&16)?p:void 0}function Lm(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=Ult(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(vt(Hz(n),Hlt)?33554432:0)),n.objectFlags&33554432?yn:n):n}function Ult(n){const a=Zi(n.types,Lm);if(a===n.types)return n;const c=pi(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function Hlt(n){return vWe(n)||bWe(n)}function vWe(n){return!(n.flags&16777216)&&(Wl(n)&131264)===192&&!!(_r(n).flags&131072)}function bWe(n){return!n.valueDeclaration&&!!(Wl(n)&1024)}function Ahe(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&vt(n.types,Ahe)||n.flags&2097152&&qlt(n))}function qlt(n){const a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=io(n,uo));return Lm(a)!==a}function Ihe(n,a){if(a.flags&2097152&&Hr(a)&33554432){const c=hn(Hz(a),vWe);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),po(c));const p=hn(Hz(a),bWe);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),po(p))}return n}function Ea(n,a,c,p){var m,b;if(n=vL(n),n.flags&524288){const I=Dh(n),w=I.members.get(a);if(w&&!p&&((m=n.symbol)==null?void 0:m.flags)&512&&((b=Jr(n.symbol).typeOnlyExportStarMap)!=null&&b.has(a)))return;if(w&&An(w,p))return w;if(c)return;const U=I===As?tr:I.callSignatures.length?yo:I.constructSignatures.length?Za:void 0;if(U){const H=EE(U,a);if(H)return H}return EE(Jt,a)}if(n.flags&2097152){const I=Jz(n,a,!0);return I||(c?void 0:Jz(n,a,c))}if(n.flags&1048576)return Jz(n,a,c)}function Kz(n,a){if(n.flags&3670016){const c=Dh(n);return a===0?c.callSignatures:c.constructSignatures}return se}function na(n,a){const c=Kz(vL(n),a);if(a===0&&!Ze(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let p;if(Ep(n,m=>{var b;return!!((b=m.symbol)!=null&&b.parent)&&Jlt(m.symbol.parent)&&(p?p===m.symbol.escapedName:(p=m.symbol.escapedName,!0))})){const m=Tl(n,I=>Vv((TWe(I.symbol.parent)?Va:es).typeParameters[0],I.mapper)),b=Yd(m,am(n,I=>TWe(I.symbol.parent)));return n.arrayFallbackSignatures=na(_n(b,p),a)}n.arrayFallbackSignatures=c}return c}function Jlt(n){return!n||!es.symbol||!Va.symbol?!1:!!me(n,es.symbol)||!!me(n,Va.symbol)}function TWe(n){return!n||!Va.symbol?!1:!!me(n,Va.symbol)}function bL(n,a){return hn(n,c=>c.keyType===a)}function xhe(n,a){let c,p,m;for(const b of n)b.keyType===yt?c=b:eR(a,b.keyType)&&(p?(m||(m=[p])).push(b):p=b);return m?Ug(Nt,Ma(Bt(m,b=>b.type)),gu(m,(b,I)=>b&&I.isReadonly,!0)):p||(c&&eR(a,yt)?c:void 0)}function eR(n,a){return sa(n,a)||a===yt&&sa(n,Gt)||a===Gt&&(n===zo||!!(n.flags&128)&&Ag(n.value))}function Rhe(n){return n.flags&3670016?Dh(n).indexInfos:se}function Xd(n){return Rhe(vL(n))}function jg(n,a){return bL(Xd(n),a)}function q0(n,a){var c;return(c=jg(n,a))==null?void 0:c.type}function Dhe(n,a){return Xd(n).filter(c=>eR(a,c.keyType))}function CW(n,a){return xhe(Xd(n),a)}function tR(n,a){return CW(n,xW(a)?Qt:Sp(Bi(a)))}function SWe(n){var a;let c;for(const p of cb(n))c=Qg(c,U0(p.symbol));return c!=null&&c.length?c:Zl(n)?(a=TL(n))==null?void 0:a.typeParameters:void 0}function Che(n){const a=[];return n.forEach((c,p)=>{G0(p)||a.push(c)}),a}function EWe(n,a){if(td(n))return;const c=Sd(lt,'"'+n+'"',512);return c&&a?os(c):c}function nY(n){return vI(n)||rw(n)||to(n)&&e4(n)}function NW(n){if(nY(n))return!0;if(!to(n))return!1;if(n.initializer){const c=Df(n.parent),p=n.parent.parameters.indexOf(n);return C.assert(p>=0),p>=kh(c,3)}const a=WT(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=g$(a).length:!1}function Klt(n){return Po(n)&&!Xh(n)&&n.questionToken}function MW(n,a,c,p){return{kind:n,parameterName:a,parameterIndex:c,type:p}}function eg(n){let a=0;if(n)for(let c=0;c=c&&b<=m){const I=n?n.slice():[];for(let U=b;U!!$y(Tt))&&!$y(n)&&!o$(n)&&(p|=32);for(let Tt=H?1:0;TtU.arguments.length&&!Tn||(m=c.length)}if((n.kind===178||n.kind===179)&&FC(n)&&(!w||!b)){const Tt=n.kind===178?179:178,Dt=ll(Wr(n),Tt);Dt&&(b=Zx(Dt))}I&&I.typeExpression&&(b=MA(ja(1,"this"),qi(I.typeExpression)));const Ie=fv(n)?GT(n):n,Te=Ie&&Ml(Ie)?tm(os(Ie.parent.symbol)):void 0,et=Te?Te.localTypeParameters:SWe(n);(oG(n)||Ir(n)&&Xlt(n,c))&&(p|=1),(vD(n)&&di(n,64)||Ml(n)&&di(n.parent,64))&&(p|=4),a.resolvedSignature=v_(n,et,b,c,void 0,void 0,m,p)}return a.resolvedSignature}function Xlt(n,a){if(fv(n)||!Nhe(n))return!1;const c=tl(n.parameters),p=c?OR(c):kT(n).filter(mf),m=Bn(p,I=>I.typeExpression&&A4(I.typeExpression.type)?I.typeExpression.type:void 0),b=ja(3,"args",32768);return m?b.links.type=Yd(qi(m.type)):(b.links.checkFlags|=65536,b.links.deferralParent=yn,b.links.deferralConstituents=[bd],b.links.deferralWriteConstituents=[bd]),m&&a.pop(),a.push(b),!0}function TL(n){if(!(Ir(n)&&Ms(n)))return;const a=LT(n);return(a==null?void 0:a.typeExpression)&&zA(qi(a.typeExpression))}function Ylt(n,a){const c=TL(n);if(!c)return;const p=n.parameters.indexOf(a);return a.dotDotDotToken?B5(c,p):Lh(c,p)}function $lt(n){const a=TL(n);return a&&fs(a)}function Nhe(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===ge.escapedName&&v8(p)===ge;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!XG(p)&&!qh(p)&&!!Jo(p,c)}}}function IE(n){if(!n||!n.declarations)return se;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=zG(p);if(Ze(m)){for(const b of m){const I=b.typeExpression;I.type===void 0&&!Ml(p)&&eS(I,Ue),a.push(Df(I))}continue}}a.push(!Rb(p)&&!hm(p)&&TL(p)||Df(p))}}return a}function AWe(n){const a=uu(n,n);if(a){const c=Tp(a);if(c)return _r(c)}return Ue}function J0(n){if(n.thisParameter)return _r(n.thisParameter)}function nm(n){if(!n.resolvedTypePredicate){if(n.target){const a=nm(n.target);n.resolvedTypePredicate=a?O8e(a,n.mapper):fn}else if(n.compositeSignatures)n.resolvedTypePredicate=Qct(n.compositeSignatures,n.compositeKind)||fn;else{const a=n.declaration&&kp(n.declaration);let c;if(!a){const p=TL(n.declaration);p&&n!==p&&(c=nm(p))}if(a||c)n.resolvedTypePredicate=a&&HI(a)?Qlt(a,n):c||fn;else if(n.declaration&&Ms(n.declaration)&&(!n.resolvedReturnType||n.resolvedReturnType.flags&16)&&Ap(n)>0){const{declaration:p}=n;n.resolvedTypePredicate=fn,n.resolvedTypePredicate=Fht(p)||fn}else n.resolvedTypePredicate=fn}C.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===fn?void 0:n.resolvedTypePredicate}function Qlt(n,a){const c=n.parameterName,p=n.type&&qi(n.type);return c.kind===198?MW(n.assertsModifier?2:0,void 0,void 0,p):MW(n.assertsModifier?3:1,c.escapedText,so(a.parameters,m=>m.escapedName===c.escapedText),p)}function IWe(n,a,c){return a!==2097152?pi(n,c):Ma(n)}function fs(n){if(!n.resolvedReturnType){if(!y_(n,3))return nt;let a=n.target?io(fs(n.target),n.mapper):n.compositeSignatures?io(IWe(Bt(n.compositeSignatures,fs),n.compositeKind,2),n.mapper):BC(n.declaration)||(Ol(n.declaration.body)?Ue:T$(n.declaration));if(n.flags&8?a=uFe(a):n.flags&16&&(a=hT(a)),!rt()){if(n.declaration){const c=kp(n.declaration);if(c)Qe(c,f.Return_type_annotation_circularly_references_itself);else if(ve){const p=n.declaration,m=Oo(p);m?Qe(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)):Qe(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=Ue}n.resolvedReturnType??(n.resolvedReturnType=a)}return n.resolvedReturnType}function BC(n){if(n.kind===177)return tm(os(n.parent.symbol));const a=kp(n);if(fv(n)){const c=tD(n);if(c&&Ml(c.parent)&&!a)return tm(os(c.parent.parent.symbol))}if(bI(n))return qi(n.parameters[0].type);if(a)return qi(a);if(n.kind===178&&FC(n)){const c=Ir(n)&&cs(n);if(c)return c;const p=ll(Wr(n),179),m=mL(p);if(m)return m}return $lt(n)}function rY(n){return n.compositeSignatures&&vt(n.compositeSignatures,rY)||!n.resolvedReturnType&&ee(n,3)>=0}function Zlt(n){return xWe(n)||Ue}function xWe(n){if(su(n)){const a=_r(n.parameters[n.parameters.length-1]),c=Ka(a)?kY(a):a;return c&&q0(c,Gt)}}function PW(n,a,c,p){const m=Mhe(n,Bv(a,n.typeParameters,eg(n.typeParameters),c));if(p){const b=n4e(fs(m));if(b){const I=RW(b);I.typeParameters=p;const w=SA(I);w.mapper=m.mapper;const U=RW(m);return U.resolvedReturnType=w,U}}return m}function Mhe(n,a){const c=n.instantiations||(n.instantiations=new Map),p=km(a);let m=c.get(p);return m||c.set(p,m=iY(n,a)),m}function iY(n,a){return CA(n,ect(n,a),!0)}function RWe(n){return Zi(n.typeParameters,a=>a.mapper?io(a,a.mapper):a)}function ect(n,a){return Yp(RWe(n),a)}function LW(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=tct(n)):n}function tct(n){return CA(n,k8e(n.typeParameters),!0)}function nct(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=rct(n)):n}function rct(n){return PW(n,Bt(n.typeParameters,a=>a.target&&!Uu(a.target)?a.target:a),Ir(n.declaration))}function ict(n){const a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;const c=k8e(a),p=Yp(a,Bt(a,b=>Uu(b)||Nt));let m=Bt(a,b=>io(b,p)||Nt);for(let b=0;b{lY(et)&&!bL(c,et)&&c.push(Ug(et,Ie.type?qi(Ie.type):Ue,wp(Ie,8),Ie))})}}else if(QOe(Ie)){const Te=Nr(Ie)?Ie.left:Ie.name,et=Ws(Te)?Vl(Te.argumentExpression):nh(Te);if(bL(c,et))continue;sa(et,Ii)&&(sa(et,Gt)?(p=!0,p1(Ie)||(m=!1)):sa(et,Qt)?(b=!0,p1(Ie)||(I=!1)):(w=!0,p1(Ie)||(U=!1)),H.push(Ie.symbol))}const Q=lo(H,Vn(a,Ie=>Ie!==n));return w&&!bL(c,yt)&&c.push(e8(U,0,Q,yt)),p&&!bL(c,Gt)&&c.push(e8(m,0,Q,Gt)),b&&!bL(c,Qt)&&c.push(e8(I,0,Q,Qt)),c}return se}function lY(n){return!!(n.flags&4108)||IA(n)||!!(n.flags&2097152)&&!X0(n)&&vt(n.types,lY)}function cY(n){return ji(Vn(n.symbol&&n.symbol.declarations,cl),WR)[0]}function CWe(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[b=m.parent,I]=bne(m.parent.parent);if(I.kind===184&&!a){const w=I,U=aye(w);if(U){const H=w.typeArguments.indexOf(b);if(H()=>W_t(w,U,Tt))),Te=io(Q,Ie);Te!==n&&(p=Un(p,Te))}}}}else if(I.kind===170&&I.dotDotDotToken||I.kind===192||I.kind===203&&I.dotDotDotToken)p=Un(p,Yd(Nt));else if(I.kind===205)p=Un(p,yt);else if(I.kind===169&&I.parent.kind===201)p=Un(p,Ii);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=qi(w.type);p=Un(p,io(U,CE(U0(Wr(w.typeParameter)),w.typeParameter.constraint?qi(w.typeParameter.constraint):Ii)))}}}return p&&Ma(p)}function SL(n){if(!n.constraint)if(n.target){const a=Uu(n.target);n.constraint=a?io(a,n.mapper):Hl}else{const a=cY(n);if(!a)n.constraint=CWe(n)||Hl;else{let c=qi(a);c.flags&1&&!pr(c)&&(c=a.parent.parent.kind===201?Ii:Nt),n.constraint=c}}return n.constraint===Hl?void 0:n.constraint}function NWe(n){const a=ll(n.symbol,169),c=Tm(a.parent)?a6(a.parent):a.parent;return c&&If(c)}function km(n){let a="";if(n){const c=n.length;let p=0;for(;p1&&(a+=":"+b),p+=b}}return a}function EA(n,a){return n?`@${Ta(n)}`+(a?`:${km(a)}`:""):""}function Xz(n,a){let c=0;for(const p of n)(a===void 0||!(p.flags&a))&&(c|=Hr(p));return c&458752}function GC(n,a){return vt(a)&&n===Zt?Nt:ky(n,a)}function ky(n,a){const c=km(a);let p=n.instantiations.get(c);return p||(p=_c(4,n.symbol),n.instantiations.set(c,p),p.objectFlags|=a?Xz(a):0,p.target=n,p.resolvedTypeArguments=a),p}function MWe(n){const a=wi(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Phe(n,a,c,p,m){if(!p){p=iR(a);const I=HC(p);m=c?Fy(I,c):I}const b=_c(4,n.symbol);return b.target=n,b.node=a,b.mapper=c,b.aliasSymbol=p,b.aliasTypeArguments=m,b}function ol(n){var a,c;if(!n.resolvedTypeArguments){if(!y_(n,5))return lo(n.target.outerTypeParameters,(a=n.target.localTypeParameters)==null?void 0:a.map(()=>nt))||se;const p=n.node,m=p?p.kind===184?lo(n.target.outerTypeParameters,R$(p,n.target.localTypeParameters)):p.kind===189?[qi(p.elementType)]:Bt(p.elements,qi):se;rt()?n.resolvedTypeArguments??(n.resolvedTypeArguments=n.mapper?Fy(m,n.mapper):m):(n.resolvedTypeArguments??(n.resolvedTypeArguments=lo(n.target.outerTypeParameters,((c=n.target.localTypeParameters)==null?void 0:c.map(()=>nt))||se)),Qe(n.node||R,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&po(n.target.symbol)))}return n.resolvedTypeArguments}function Gv(n){return Ze(n.target.typeParameters)}function PWe(n,a){const c=qs(os(a)),p=c.localTypeParameters;if(p){const m=Ze(n.typeArguments),b=eg(p),I=Ir(n);if(!(!ve&&I)&&(mp.length)){const H=I&&uy(n)&&!QI(n.parent),Q=b===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,Ie=sr(c,void 0,2);if(Qe(n,Q,Ie,b,p.length),!I)return nt}if(n.kind===184&&t8e(n,Ze(n.typeArguments)!==p.length))return Phe(c,n,void 0);const U=lo(c.outerTypeParameters,Bv(Yz(n),p,b,I));return ky(c,U)}return K0(n,a)?c:nt}function VC(n,a,c,p){const m=qs(n);if(m===Oe){const H=OU.get(n.escapedName);if(H!==void 0&&a&&a.length===1)return H===4?Lhe(a[0]):rR(n,a[0])}const b=Jr(n),I=b.typeParameters,w=km(a)+EA(c,p);let U=b.instantiations.get(w);return U||b.instantiations.set(w,U=z8e(m,Yp(I,Bv(a,I,eg(I),Ir(n.valueDeclaration))),c,p)),U}function oct(n,a){if(Wl(a)&1048576){const m=Yz(n),b=EA(a,m);let I=dt.get(b);return I||(I=ki(1,"error",void 0,`alias ${b}`),I.aliasSymbol=a,I.aliasTypeArguments=m,dt.set(b,I)),I}const c=qs(a),p=Jr(a).typeParameters;if(p){const m=Ze(n.typeArguments),b=eg(p);if(mp.length)return Qe(n,b===p.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,po(a),b,p.length),nt;const I=iR(n);let w=I&&(LWe(a)||!LWe(I))?I:void 0,U;if(w)U=HC(w);else if(RF(n)){const H=EL(n,2097152,!0);if(H&&H!==ne){const Q=ud(H);Q&&Q.flags&524288&&(w=Q,U=Yz(n)||(p?[]:void 0))}}return VC(a,Yz(n),w,U)}return K0(n,a)?c:nt}function LWe(n){var a;const c=(a=n.declarations)==null?void 0:a.find(Sk);return!!(c&&df(c))}function act(n){switch(n.kind){case 184:return n.typeName;case 234:const a=n.expression;if(Ds(a))return a}}function kWe(n){return n.parent?`${kWe(n.parent)}.${n.escapedName}`:n.escapedName}function dY(n){const c=(n.kind===167?n.right:n.kind===212?n.name:n).escapedText;if(c){const p=n.kind===167?dY(n.left):n.kind===212?dY(n.expression):void 0,m=p?`${kWe(p)}.${c}`:c;let b=it.get(m);return b||(it.set(m,b=ja(524288,c,1048576)),b.parent=p,b.links.declaredType=Kt),b}return ne}function EL(n,a,c){const p=act(n);if(!p)return ne;const m=Gl(p,a,c);return m&&m!==ne?m:c?ne:dY(p)}function uY(n,a){if(a===ne)return nt;if(a=Gx(a)||a,a.flags&96)return PWe(n,a);if(a.flags&524288)return oct(n,a);const c=HOe(a);if(c)return K0(n,a)?Cu(c):nt;if(a.flags&111551&&pY(n)){const p=sct(n,a);return p||(EL(n,788968),_r(a))}return nt}function sct(n,a){const c=Vr(n);if(!c.resolvedJSDocType){const p=_r(a);let m=p;if(a.valueDeclaration){const b=n.kind===206&&n.qualifier;p.symbol&&p.symbol!==a&&b&&(m=uY(n,p.symbol))}c.resolvedJSDocType=m}return c.resolvedJSDocType}function Lhe(n){return khe(n)?wWe(n,Nt):n}function khe(n){return!!(n.flags&3145728&&vt(n.types,khe)||n.flags&33554432&&!jC(n)&&khe(n.baseType)||n.flags&524288&&!ng(n)||n.flags&432275456&&!IA(n))}function jC(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function whe(n,a){return a.flags&3||a===n||n.flags&1?n:wWe(n,a)}function wWe(n,a){const c=`${pd(n)}>${pd(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 Ohe(n){return jC(n)?n.baseType:Ma([n.constraint,n.baseType])}function OWe(n){return n.kind===190&&n.elements.length===1}function WWe(n,a,c){return OWe(a)&&OWe(c)?WWe(n,a.elements[0],c.elements[0]):Wy(qi(a))===Wy(n)?qi(c):void 0}function lct(n,a){let c,p=!0;for(;a&&!Gi(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 b=WWe(n,m.checkType,m.extendsType);b&&(c=Un(c,b))}else if(n.flags&262144&&m.kind===201&&!m.nameType&&a===m.type){const b=qi(m);if(th(b)===Wy(n)){const I=FW(b);if(I){const w=Uu(I);w&&Ep(w,Q0)&&(c=Un(c,pi([Gt,zo])))}}}a=m}return c?whe(n,Ma(c)):n}function pY(n){return!!(n.flags&16777216)&&(n.kind===184||n.kind===206)}function K0(n,a){return n.typeArguments?(Qe(n,f.Type_0_is_not_generic,a?po(a):n.typeName?ws(n.typeName):PU),!1):!0}function FWe(n){if(He(n.typeName)){const a=n.typeArguments;switch(n.typeName.escapedText){case"String":return K0(n),yt;case"Number":return K0(n),Gt;case"BigInt":return K0(n),gr;case"Boolean":return K0(n),jt;case"Void":return K0(n),In;case"Undefined":return K0(n),he;case"Null":return K0(n),Xt;case"Function":case"function":return K0(n),tr;case"array":return(!a||!a.length)&&!ve?bd:void 0;case"promise":return(!a||!a.length)&&!ve?V5(Ue):void 0;case"Object":if(a&&a.length===2){if(n6(n)){const c=qi(a[0]),p=qi(a[1]),m=c===yt||c===Gt?[Ug(c,p,!1)]:se;return bl(void 0,k,se,se,m)}return Ue}return K0(n),ve?void 0:Ue}}}function cct(n){const a=qi(n.type);return ie?h5(a,65536):a}function fY(n){const a=Vr(n);if(!a.resolvedType){if(Wm(n)&&vS(n.parent))return a.resolvedSymbol=ne,a.resolvedType=Vl(n.parent.expression);let c,p;const m=788968;pY(n)&&(p=FWe(n),p||(c=EL(n,m,!0),c===ne?c=EL(n,m|111551):EL(n,m),p=uY(n,c))),p||(c=EL(n,m),p=uY(n,c)),a.resolvedSymbol=c,a.resolvedType=p}return a.resolvedType}function Yz(n){return Bt(n.typeArguments,qi)}function zWe(n){const a=Vr(n);if(!a.resolvedType){const c=E4e(n);a.resolvedType=Cu($p(c))}return a.resolvedType}function BWe(n,a){function c(m){const b=m.declarations;if(b)for(const I of b)switch(I.kind){case 264:case 265:case 267:return I}}if(!n)return a?Zt:Ra;const p=qs(n);return p.flags&524288?Ze(p.typeParameters)!==a?(Qe(c(n),f.Global_type_0_must_have_1_type_parameter_s,wl(n),a),a?Zt:Ra):p:(Qe(c(n),f.Global_type_0_must_be_a_class_or_interface_type,wl(n)),a?Zt:Ra)}function Whe(n,a){return UC(n,111551,a?f.Cannot_find_global_value_0:void 0)}function Fhe(n,a){return UC(n,788968,a?f.Cannot_find_global_type_0:void 0)}function mY(n,a,c){const p=UC(n,788968,c?f.Cannot_find_global_type_0:void 0);if(p&&(qs(p),Ze(Jr(p).typeParameters)!==a)){const m=p.declarations&&hn(p.declarations,bm);Qe(m,f.Global_type_0_must_have_1_type_parameter_s,wl(p),a);return}return p}function UC(n,a,c){return gt(void 0,n,a,c,!1,!1)}function Jl(n,a,c){const p=Fhe(n,c);return p||c?BWe(p,a):void 0}function GWe(n,a){let c;for(const p of n)c=Un(c,Jl(p,a,!1));return c??se}function dct(){return Mg||(Mg=Jl("TypedPropertyDescriptor",1,!0)||Zt)}function uct(){return vo||(vo=Jl("TemplateStringsArray",0,!0)||Ra)}function VWe(){return ta||(ta=Jl("ImportMeta",0,!0)||Ra)}function jWe(){if(!Ao){const n=ja(0,"ImportMetaExpression"),a=VWe(),c=ja(4,"meta",8);c.parent=n,c.links.type=a;const p=da([c]);n.members=p,Ao=bl(n,p,se,se,se)}return Ao}function UWe(n){return Vo||(Vo=Jl("ImportCallOptions",0,n))||Ra}function zhe(n){return hl||(hl=Jl("ImportAttributes",0,n))||Ra}function HWe(n){return Xf||(Xf=Whe("Symbol",n))}function pct(n){return V_||(V_=Fhe("SymbolConstructor",n))}function qWe(){return Ng||(Ng=Jl("Symbol",0,!1))||Ra}function $z(n){return ap||(ap=Jl("Promise",1,n))||Zt}function JWe(n){return Xc||(Xc=Jl("PromiseLike",1,n))||Zt}function Bhe(n){return bh||(bh=Whe("Promise",n))}function fct(n){return Tf||(Tf=Jl("PromiseConstructorLike",0,n))||Ra}function Qz(n){return ti||(ti=Jl("AsyncIterable",3,n))||Zt}function mct(n){return Ti||(Ti=Jl("AsyncIterator",3,n))||Zt}function KWe(n){return $i||($i=Jl("AsyncIterableIterator",3,n))||Zt}function hct(){return Ve??(Ve=GWe(["ReadableStreamAsyncIterator"],1))}function _ct(n){return kt||(kt=Jl("AsyncIteratorObject",3,n))||Zt}function gct(n){return Wn||(Wn=Jl("AsyncGenerator",3,n))||Zt}function hY(n){return f_||(f_=Jl("Iterable",3,n))||Zt}function yct(n){return oe||(oe=Jl("Iterator",3,n))||Zt}function XWe(n){return ut||(ut=Jl("IterableIterator",3,n))||Zt}function Ghe(){return fe?he:Ue}function vct(){return z??(z=GWe(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))}function bct(n){return tn||(tn=Jl("IteratorObject",3,n))||Zt}function Tct(n){return an||(an=Jl("Generator",3,n))||Zt}function Sct(n){return On||(On=Jl("IteratorYieldResult",1,n))||Zt}function Ect(n){return ar||(ar=Jl("IteratorReturnResult",1,n))||Zt}function YWe(n){return Ca||(Ca=Jl("Disposable",0,n))||Ra}function Act(n){return cd||(cd=Jl("AsyncDisposable",0,n))||Ra}function $We(n,a=0){const c=UC(n,788968,void 0);return c&&BWe(c,a)}function Ict(){return Up||(Up=mY("Extract",2,!0)||ne),Up===ne?void 0:Up}function xct(){return Sf||(Sf=mY("Omit",2,!0)||ne),Sf===ne?void 0:Sf}function Vhe(n){return Yf||(Yf=mY("Awaited",1,n)||(n?ne:void 0)),Yf===ne?void 0:Yf}function Rct(){return Sy||(Sy=Jl("BigInt",0,!1))||Ra}function Dct(n){return j_??(j_=Jl("ClassDecoratorContext",1,n))??Zt}function Cct(n){return Th??(Th=Jl("ClassMethodDecoratorContext",2,n))??Zt}function Nct(n){return xm??(xm=Jl("ClassGetterDecoratorContext",2,n))??Zt}function Mct(n){return Hb??(Hb=Jl("ClassSetterDecoratorContext",2,n))??Zt}function Pct(n){return Xe??(Xe=Jl("ClassAccessorDecoratorContext",2,n))??Zt}function Lct(n){return mt??(mt=Jl("ClassAccessorDecoratorTarget",2,n))??Zt}function kct(n){return Yt??(Yt=Jl("ClassAccessorDecoratorResult",2,n))??Zt}function wct(n){return Rn??(Rn=Jl("ClassFieldDecoratorContext",2,n))??Zt}function Oct(){return Tv||(Tv=Whe("NaN",!1))}function Wct(){return Bu||(Bu=mY("Record",2,!0)||ne),Bu===ne?void 0:Bu}function AL(n,a){return n!==Zt?ky(n,a):Ra}function QWe(n){return AL(dct(),[n])}function ZWe(n){return AL(hY(!0),[n,In,he])}function Yd(n,a){return AL(a?Va:es,[n])}function jhe(n){switch(n.kind){case 191:return 2;case 192:return e8e(n);case 203:return n.questionToken?2:n.dotDotDotToken?e8e(n):1;default:return 1}}function e8e(n){return i5(n.type)?4:8}function Fct(n){const a=Gct(n.parent);if(i5(n))return a?Va:es;const p=Bt(n.elements,jhe);return Uhe(p,a,Bt(n.elements,zct))}function zct(n){return bD(n)||to(n)?n:void 0}function t8e(n,a){return!!iR(n)||n8e(n)&&(n.kind===189?dT(n.elementType):n.kind===190?vt(n.elements,dT):a||vt(n.typeArguments,dT))}function n8e(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 n8e(a);case 266:return!0}return!1}function dT(n){switch(n.kind){case 184:return pY(n)||!!(EL(n,788968).flags&524288);case 187:return!0;case 199:return n.operator!==158&&dT(n.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return dT(n.type);case 192:return n.type.kind!==189||dT(n.type.elementType);case 193:case 194:return vt(n.types,dT);case 200:return dT(n.objectType)||dT(n.indexType);case 195:return dT(n.checkType)||dT(n.extendsType)||dT(n.trueType)||dT(n.falseType)}return!1}function Bct(n){const a=Vr(n);if(!a.resolvedType){const c=Fct(n);if(c===Zt)a.resolvedType=Ra;else if(!(n.kind===190&&vt(n.elements,p=>!!(jhe(p)&8)))&&t8e(n))a.resolvedType=n.kind===190&&n.elements.length===0?c:Phe(c,n,void 0);else{const p=n.kind===189?[qi(n.elementType)]:Bt(n.elements,qi);a.resolvedType=Hhe(c,p)}}return a.resolvedType}function Gct(n){return KT(n)&&n.operator===148}function tg(n,a,c=!1,p=[]){const m=Uhe(a||Bt(n,b=>1),c,p);return m===Zt?Ra:n.length?Hhe(m,n):m}function Uhe(n,a,c){if(n.length===1&&n[0]&4)return a?Va:es;const p=Bt(n,b=>b&1?"#":b&2?"?":b&4?".":"*").join()+(a?"R":"")+(vt(c,b=>!!b)?","+Bt(c,b=>b?ls(b):"_").join(","):"");let m=Ni.get(p);return m||Ni.set(p,m=Vct(n,a,c)),m}function Vct(n,a,c){const p=n.length,m=_o(n,Ie=>!!(Ie&9));let b;const I=[];let w=0;if(p){b=new Array(p);for(let Ie=0;Ie!!(n.elementFlags[$t]&8&&Dt.flags&1179648));if(Tt>=0)return e5(Bt(a,(Dt,$t)=>n.elementFlags[$t]&8?Dt:Nt))?Tl(a[Tt],Dt=>qhe(n,GB(a,Tt,Dt))):nt}const I=[],w=[],U=[];let H=-1,Q=-1,Ie=-1;for(let Tt=0;Tt=1e4)return Qe(R,qh(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;$e(Tn,(rr,yr)=>{var Sn;return et(rr,Dt.target.elementFlags[yr],(Sn=Dt.target.labeledElementDeclarations)==null?void 0:Sn[yr])})}else et(jv(Dt)&&q0(Dt,Gt)||nt,4,(m=n.labeledElementDeclarations)==null?void 0:m[Tt]);else et(Dt,$t,(b=n.labeledElementDeclarations)==null?void 0:b[Tt])}for(let Tt=0;Tt=0&&Qw[Q+Dt]&8?Xp(Tt,Gt):Tt)),I.splice(Q+1,Ie-Q),w.splice(Q+1,Ie-Q),U.splice(Q+1,Ie-Q));const Te=Uhe(w,n.readonly,U);return Te===Zt?Ra:w.length?ky(Te,I):Te;function et(Tt,Dt,$t){Dt&1&&(H=w.length),Dt&4&&Q<0&&(Q=w.length),Dt&6&&(Ie=w.length),I.push(Dt&2?pu(Tt,!0):Tt),w.push(Dt),U.push($t)}}function IL(n,a,c=0){const p=n.target,m=Gv(n)-c;return a>p.fixedLength?Cut(n)||tg(se):tg(ol(n).slice(a,m),p.elementFlags.slice(a,m),!1,p.labeledElementDeclarations&&p.labeledElementDeclarations.slice(a,m))}function r8e(n){return pi(Un(UQ(n.target.fixedLength,a=>Sp(""+a)),T_(n.target.readonly?Va:es)))}function jct(n,a){const c=so(n.elementFlags,p=>!(p&a));return c>=0?c:n.elementFlags.length}function kW(n,a){return n.elementFlags.length-Zs(n.elementFlags,c=>!(c&a))-1}function Jhe(n){return n.fixedLength+kW(n,3)}function xE(n){const a=ol(n),c=Gv(n);return a.length===c?a:a.slice(0,c)}function Uct(n){return pu(qi(n.type),!0)}function pd(n){return n.id}function Hg(n,a){return Zv(n,a,pd,js)>=0}function Zz(n,a){const c=Zv(n,a,pd,js);return c<0?(n.splice(~c,0,a),!0):!1}function Hct(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),!ie&&p&98304)Hr(c)&65536||(a|=4194304);else{const m=n.length,b=m&&c.id>n[m-1].id?~m:Zv(n,c,pd,js);b<0&&n.splice(~b,0,c)}return a}function i8e(n,a,c){let p;for(const m of c)m!==p&&(a=m.flags&1048576?i8e(n,a|($ct(m)?1048576:0),m.types):Hct(n,a,m),p=m);return a}function qct(n,a){var c;if(n.length<2)return n;const p=km(n),m=Pn.get(p);if(m)return m;const b=a&&vt(n,H=>!!(H.flags&524288)&&!up(H)&&g_e(Dh(H))),I=n.length;let w=I,U=0;for(;w>0;){w--;const H=n[w];if(b||H.flags&469499904){if(H.flags&262144&&b_(H).flags&1048576){S_(H,pi(Bt(n,Te=>Te===H?yn:Te)),ul)&&ib(n,w);continue}const Q=H.flags&61603840?hn(bs(H),Te=>Nh(_r(Te))):void 0,Ie=Q&&Cu(_r(Q));for(const Te of n)if(H!==Te){if(U===1e5&&U/(I-w)*I>1e6){(c=xr)==null||c.instant(xr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(Tt=>Tt.id)}),Qe(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(U++,Q&&Te.flags&61603840){const et=_n(Te,Q.escapedName);if(et&&Nh(et)&&Cu(et)!==Ie)continue}if(S_(H,Te,ul)&&(!(Hr(Gn(H))&1)||!(Hr(Gn(Te))&1)||$0(H,Te))){ib(n,w);break}}}}return Pn.set(p,n),n}function Jct(n,a,c){let p=n.length;for(;p>0;){p--;const m=n[p],b=m.flags;(b&402653312&&a&4||b&256&&a&8||b&2048&&a&64||b&8192&&a&4096||c&&b&32768&&a&16384||DE(m)&&Hg(n,m.regularType))&&ib(n,p)}}function Kct(n){const a=Vn(n,IA);if(a.length){let c=n.length;for(;c>0;){c--;const p=n[c];p.flags&128&&vt(a,m=>Xct(p,m))&&ib(n,c)}}}function Xct(n,a){return a.flags&134217728?UY(n,a):jY(n,a)}function Yct(n){const a=[];for(const c of n)if(c.flags&2097152&&Hr(c)&67108864){const p=c.types[0].flags&8650752?0:1;kf(a,c.types[p])}for(const c of a){const p=[];for(const b of n)if(b.flags&2097152&&Hr(b)&67108864){const I=b.types[0].flags&8650752?0:1;b.types[I]===c&&Zz(p,b.types[1-I])}const m=Ld(c);if(Ep(m,b=>Hg(p,b))){let b=n.length;for(;b>0;){b--;const I=n[b];if(I.flags&2097152&&Hr(I)&67108864){const w=I.types[0].flags&8650752?0:1;I.types[w]===c&&Hg(p,I.types[1-w])&&ib(n,b)}}Zz(n,c)}}}function $ct(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function o8e(n,a){for(const c of a)if(c.flags&1048576){const p=c.origin;c.aliasSymbol||p&&!(p.flags&1048576)?kf(n,c):p&&p.flags&1048576&&o8e(n,p.types)}}function Khe(n,a){const c=Io(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 b=a===0?"N":a===2?"S":"L",I=n[0].id=2&&b[0]===he&&b[1]===Ae&&ib(b,1),(I&402664352||I&16384&&I&32768)&&Jct(b,I,!!(a&2)),I&128&&I&402653184&&Kct(b),I&536870912&&Yct(b),a===2&&(b=qct(b,!!(I&524288)),!b))return nt;if(b.length===0)return I&65536?I&4194304?Xt:Pe:I&32768?I&4194304?he:B:yn}if(!m&&I&1048576){const U=[];o8e(U,n);const H=[];for(const Ie of b)vt(U,Te=>Hg(Te.types,Ie))||H.push(Ie);if(!c&&U.length===1&&H.length===0)return U[0];if(gu(U,(Ie,Te)=>Ie+Te.types.length,0)+H.length===b.length){for(const Ie of U)Zz(H,Ie);m=Khe(1048576,H)}}const w=(I&36323331?0:32768)|(I&2097152?16777216:0);return Yhe(b,w,c,p,m)}function Qct(n,a){let c;const p=[];for(const b of n){const I=nm(b);if(I){if(I.kind!==0&&I.kind!==1||c&&!Xhe(c,I))return;c=I,p.push(I.type)}else{const w=a!==2097152?fs(b):void 0;if(w!==nr&&w!==Jn)return}}if(!c)return;const m=IWe(p,a);return MW(c.kind,c.parameterName,c.parameterIndex,m)}function Xhe(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Yhe(n,a,c,p,m){if(n.length===0)return yn;if(n.length===1)return n[0];const I=(m?m.flags&1048576?`|${km(m.types)}`:m.flags&2097152?`&${km(m.types)}`:`#${m.type.id}|${km(n)}`:km(n))+EA(c,p);let w=Pr.get(I);return w||(w=vi(1048576),w.objectFlags=a|Xz(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 Zct(n){const a=Vr(n);if(!a.resolvedType){const c=iR(n);a.resolvedType=pi(Bt(n.types,qi),1,c,HC(c))}return a.resolvedType}function edt(n,a,c){const p=c.flags;return p&2097152?s8e(n,a,c.types):(ng(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(p&3?(c===It&&(a|=8388608),pr(c)&&(a|=1073741824)):(ie||!(p&98304))&&(c===Ae&&(a|=262144,c=he),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=p&473694207),a)}function s8e(n,a,c){for(const p of c)a=edt(n,a,Cu(p));return a}function tdt(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||ng(p)&&a&470302716)&&ib(n,c)}}function ndt(n,a){for(const c of n)if(!Hg(c.types,a)){if(a===Ae)return Hg(c.types,he);if(a===he)return Hg(c.types,Ae);const p=a.flags&128?yt:a.flags&288?Gt:a.flags&2048?gr:a.flags&8192?Qt:void 0;if(!p||!Hg(c.types,p))return!1}return!0}function rdt(n){let a=n.length;const c=Vn(n,p=>!!(p.flags&128));for(;a>0;){a--;const p=n[a];if(p.flags&402653184){for(const m of c)if(NE(m,p)){ib(n,a);break}else if(IA(p))return!0}}return!1}function l8e(n,a){for(let c=0;c!(p.flags&a))}function idt(n){let a;const c=so(n,I=>!!(Hr(I)&32768));if(c<0)return!1;let p=c+1;for(;p!!(Tt.flags&469893116)||ng(Tt))){if(xL(et,Te))return Ie;if(!(et.flags&1048576&&am(et,Tt=>xL(Tt,Te)))&&!xL(Te,et))return yn;w=67108864}}}const U=km(I)+(a&2?"*":EA(c,p));let H=Ye.get(U);if(!H){if(b&1048576)if(idt(I))H=Ma(I,a,c,p);else if(Hn(I,Q=>!!(Q.flags&1048576&&Q.types[0].flags&32768))){const Q=vt(I,HW)?Ae:he;l8e(I,32768),H=pi([Ma(I,a),Q],1,c,p)}else if(Hn(I,Q=>!!(Q.flags&1048576&&(Q.types[0].flags&65536||Q.types[1].flags&65536))))l8e(I,65536),H=pi([Ma(I,a),Xt],1,c,p);else if(I.length>=3&&n.length>2){const Q=Math.floor(I.length/2);H=Ma([Ma(I.slice(0,Q),a),Ma(I.slice(Q),a)],a,c,p)}else{if(!e5(I))return nt;const Q=adt(I,a),Ie=vt(Q,Te=>!!(Te.flags&2097152))&&$he(Q)>$he(I)?Khe(2097152,I):void 0;H=pi(Q,1,c,p,Ie)}else H=odt(I,w,c,p);Ye.set(U,H)}return H}function c8e(n){return gu(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function e5(n){var a;const c=c8e(n);return c>=1e5?((a=xr)==null||a.instant(xr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(p=>p.id),size:c}),Qe(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function adt(n,a){const c=c8e(n),p=[];for(let m=0;m=0;U--)if(n[U].flags&1048576){const H=n[U].types,Q=H.length;b[U]=H[I%Q],I=Math.floor(I/Q)}const w=Ma(b,a);w.flags&131072||p.push(w)}return p}function d8e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?d8e(n.origin):$he(n.types)}function $he(n){return gu(n,(a,c)=>a+d8e(c),0)}function sdt(n){const a=Vr(n);if(!a.resolvedType){const c=iR(n),p=Bt(n.types,qi),m=p.length===2?p.indexOf(fa):-1,b=m>=0?p[1-m]:Nt,I=!!(b.flags&76||b.flags&134217728&&IA(b));a.resolvedType=Ma(p,I?1:0,c,HC(c))}return a.resolvedType}function u8e(n,a){const c=vi(4194304);return c.type=n,c.indexFlags=a,c}function ldt(n){const a=Io(4194304);return a.type=n,a}function p8e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=u8e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=u8e(n,0))}function f8e(n,a){const c=th(n),p=Rf(n),m=Fv(n.target||n);if(!m&&!(a&2))return p;const b=[];if(RA(p)){if(zC(n))return p8e(n,a);wA(p,w)}else if(zC(n)){const U=Du(H0(n));yhe(U,8576,!!(a&1),w)}else wA(Uz(p),w);const I=a&2?Ec(pi(b),U=>!(U.flags&5)):pi(b);if(I.flags&1048576&&p.flags&1048576&&km(I.types)===km(p.types))return p;return I;function w(U){const H=m?io(m,WW(n.mapper,c,U)):U;b.push(H===yt?ln:H)}}function cdt(n){const a=th(n);return c(Fv(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 wy(n){if(eo(n))return yn;if(np(n))return Cu(go(n));if(va(n))return Cu(nh(n));const a=d1(n);return a!==void 0?Sp(Bi(a)):St(n)?Cu(go(n)):yn}function nR(n,a,c){if(c||!(Vf(n)&6)){let p=Jr(eY(n)).nameType;if(!p){const m=Oo(n.valueDeclaration);p=n.escapedName==="default"?Sp("default"):m&&wy(m)||(sM(n)?void 0:Sp(wl(n)))}if(p&&p.flags&a)return p}return yn}function m8e(n,a){return!!(n.flags&a||n.flags&2097152&&vt(n.types,c=>m8e(c,a)))}function ddt(n,a,c){const p=c&&(Hr(n)&7||n.aliasSymbol)?ldt(n):void 0,m=Bt(bs(n),I=>nR(I,a)),b=Bt(Xd(n),I=>I!==ro&&m8e(I.keyType,a)?I.keyType===yt&&a&8?ln:I.keyType:yn);return pi(lo(m,b),1,void 0,void 0,p)}function Qhe(n,a=0){return!!(n.flags&58982400||mT(n)||up(n)&&(!cdt(n)||DW(n)===2)||n.flags&1048576&&!(a&4)&&Ahe(n)||n.flags&2097152&&tc(n,465829888)&&vt(n.types,ng))}function T_(n,a=0){return n=Lm(n),jC(n)?Lhe(T_(n.baseType,a)):Qhe(n,a)?p8e(n,a):n.flags&1048576?Ma(Bt(n.types,c=>T_(c,a))):n.flags&2097152?pi(Bt(n.types,c=>T_(c,a))):Hr(n)&32?f8e(n,a):n===It?It:n.flags&2?yn:n.flags&131073?Ii:ddt(n,(a&2?128:402653316)|(a&1?0:12584),a===0)}function h8e(n){const a=Ict();return a?VC(a,[n,yt]):yt}function udt(n){const a=h8e(T_(n));return a.flags&131072?yt:a}function pdt(n){const a=Vr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=T_(qi(n.type));break;case 158:a.resolvedType=n.type.kind===155?s_e(Ik(n.parent)):nt;break;case 148:a.resolvedType=qi(n.type);break;default:C.assertNever(n.operator)}return a.resolvedType}function fdt(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=AA([n.head.text,...Bt(n.templateSpans,c=>c.literal.text)],Bt(n.templateSpans,c=>qi(c.type)))),a.resolvedType}function AA(n,a){const c=so(a,H=>!!(H.flags&1179648));if(c>=0)return e5(a)?Tl(a[c],H=>AA(n,GB(a,c,H))):nt;if(Ln(a,It))return It;const p=[],m=[];let b=n[0];if(!U(n,a))return yt;if(p.length===0)return Sp(b);if(m.push(b),Hn(m,H=>H==="")){if(Hn(p,H=>!!(H.flags&4)))return yt;if(p.length===1&&IA(p[0]))return p[0]}const I=`${km(p)}|${Bt(m,H=>H.length).join(",")}|${m.join("")}`;let w=Hi.get(I);return w||Hi.set(I,w=hdt(m,p)),w;function U(H,Q){for(let Ie=0;IerR(n,c)):a.flags&128?Sp(_8e(n,a.value)):a.flags&134217728?AA(..._dt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||RA(a)?g8e(n,a):t5(a)?g8e(n,AA(["",""],[a])):a}function _8e(n,a){switch(OU.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 _dt(n,a,c){switch(OU.get(n.escapedName)){case 0:return[a.map(p=>p.toUpperCase()),c.map(p=>rR(n,p))];case 1:return[a.map(p=>p.toLowerCase()),c.map(p=>rR(n,p))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[rR(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]===""?[rR(n,c[0]),...c.slice(1)]:c]}return[a,c]}function g8e(n,a){const c=`${Ta(n)},${pd(a)}`;let p=$o.get(c);return p||$o.set(c,p=gdt(n,a)),p}function gdt(n,a){const c=wi(268435456,n);return c.type=a,c}function ydt(n,a,c,p,m){const b=vi(8388608);return b.objectType=n,b.indexType=a,b.accessFlags=c,b.aliasSymbol=p,b.aliasTypeArguments=m,b}function wW(n){if(ve)return!1;if(Hr(n)&4096)return!0;if(n.flags&1048576)return Hn(n.types,wW);if(n.flags&2097152)return vt(n.types,wW);if(n.flags&465829888){const a=The(n);return a!==n&&wW(a)}return!1}function _Y(n,a){return jf(n)?Uf(n):a&&vc(a)?d1(a):void 0}function Zhe(n,a){if(a.flags&8208){const c=Dn(n.parent,p=>!Ks(p))||n.parent;return yS(c)?Vh(c)&&He(n)&&CFe(c,n):Hn(a.declarations,p=>!Yo(p)||Sh(p))}return!0}function y8e(n,a,c,p,m,b){const I=m&&m.kind===213?m:void 0,w=m&&eo(m)?void 0:_Y(c,m);if(w!==void 0){if(b&256)return tS(a,w)||Ue;const H=Ea(a,w);if(H){if(b&64&&m&&H.declarations&&xu(H)&&Zhe(m,H)){const Ie=(I==null?void 0:I.argumentExpression)??(GS(m)?m.indexType:m);Nm(Ie,H.declarations,w)}if(I){if(w5(H,I,Y6e(I.expression,a.symbol)),F4e(I,H,bb(I))){Qe(I.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,po(H));return}if(b&8&&(Vr(m).resolvedSymbol=H),V6e(I,H))return Rt}const Q=b&4?Wv(H):_r(H);return I&&bb(I)!==1?jy(I,Q):m&&GS(m)&&HW(Q)?pi([Q,he]):Q}if(Ep(a,Ka)&&Ag(w)){const Q=+w;if(m&&Ep(a,Ie=>!(Ie.target.combinedFlags&12))&&!(b&16)){const Ie=e_e(m);if(Ka(a)){if(Q<0)return Qe(Ie,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),he;Qe(Ie,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,sr(a),Gv(a),Bi(w))}else Qe(Ie,f.Property_0_does_not_exist_on_type_1,Bi(w),sr(a))}if(Q>=0)return U(jg(a,Gt)),lFe(a,Q,b&1?Ae:void 0)}}if(!(c.flags&98304)&&kd(c,402665900)){if(a.flags&131073)return a;const H=CW(a,c)||jg(a,yt);if(H){if(b&2&&H.keyType!==Gt){I&&(b&4?Qe(I,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,sr(n)):Qe(I,f.Type_0_cannot_be_used_to_index_type_1,sr(c),sr(n)));return}if(m&&H.keyType===yt&&!kd(c,12)){const Q=e_e(m);return Qe(Q,f.Type_0_cannot_be_used_as_an_index_type,sr(c)),b&1?pi([H.type,Ae]):H.type}return U(H),b&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&Yc(c.symbol)===a.symbol)?pi([H.type,Ae]):H.type}if(c.flags&131072)return yn;if(wW(a))return Ue;if(I&&!A$(a)){if(Uv(a)){if(ve&&c.flags&384)return ns.add(Ar(I,f.Property_0_does_not_exist_on_type_1,c.value,sr(a))),he;if(c.flags&12){const Q=Bt(a.properties,Ie=>_r(Ie));return pi(Un(Q,he))}}if(a.symbol===Re&&w!==void 0&&Re.exports.has(w)&&Re.exports.get(w).flags&418)Qe(I,f.Property_0_does_not_exist_on_type_1,Bi(w),sr(a));else if(ve&&!(b&128))if(w!==void 0&&H6e(w,a)){const Q=sr(a);Qe(I,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,w,Q,Q+"["+Al(I.argumentExpression)+"]")}else if(q0(a,Gt))Qe(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=K6e(w,a)))Q!==void 0&&Qe(I.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,w,sr(a),Q);else{const Ie=Imt(a,I,c);if(Ie!==void 0)Qe(I,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,sr(a),Ie);else{let Te;if(c.flags&1024)Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+sr(c)+"]",sr(a));else if(c.flags&8192){const et=Nv(c.symbol,I);Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,"["+et+"]",sr(a))}else c.flags&128||c.flags&256?Te=qo(void 0,f.Property_0_does_not_exist_on_type_1,c.value,sr(a)):c.flags&12&&(Te=qo(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,sr(c),sr(a)));Te=qo(Te,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,sr(p),sr(a)),ns.add(_g(Fn(I),I,Te))}}}return}}if(b&16&&Uv(a))return he;if(wW(a))return Ue;if(m){const H=e_e(m);if(H.kind!==10&&c.flags&384)Qe(H,f.Property_0_does_not_exist_on_type_1,""+c.value,sr(a));else if(c.flags&12)Qe(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);Qe(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&&(Tb(I)||GG(I))&&Qe(I,f.Index_signature_in_type_0_only_permits_reading,sr(a))}}function e_e(n){return n.kind===213?n.argumentExpression:n.kind===200?n.indexType:n.kind===168?n.expression:n}function t5(n){if(n.flags&2097152){let a=!1;for(const c of n.types)if(c.flags&101248||t5(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||IA(n)}function IA(n){return!!(n.flags&134217728)&&Hn(n.types,t5)||!!(n.flags&268435456)&&t5(n.type)}function v8e(n){return!!(n.flags&402653184)&&!IA(n)}function X0(n){return!!OW(n)}function xA(n){return!!(OW(n)&4194304)}function RA(n){return!!(OW(n)&8388608)}function OW(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|gu(n.types,(a,c)=>a|OW(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|OW(n.baseType)|OW(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||up(n)||mT(n)?4194304:0)|(n.flags&63176704||v8e(n)?8388608:0)}function Oy(n,a){return n.flags&8388608?bdt(n,a):n.flags&16777216?Tdt(n,a):n}function b8e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!Qhe(n)){const p=Bt(n.types,m=>Oy(Xp(m,a),c));return n.flags&2097152||c?Ma(p):pi(p)}}function vdt(n,a,c){if(a.flags&1048576){const p=Bt(a.types,m=>Oy(Xp(n,m),c));return c?Ma(p):pi(p)}}function bdt(n,a){const c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===lc?n:n[c];n[c]=lc;const p=Oy(n.objectType,a),m=Oy(n.indexType,a),b=vdt(p,m,a);if(b)return n[c]=b;if(!(m.flags&465829888)){const I=b8e(p,m,a);if(I)return n[c]=I}if(mT(p)&&m.flags&296){const I=CL(p,m.flags&8?0:p.target.fixedLength,0,a);if(I)return n[c]=I}return up(p)&&DW(p)!==2?n[c]=Tl(gY(p,n.indexType),I=>Oy(I,a)):n[c]=n}function Tdt(n,a){const c=n.checkType,p=n.extendsType,m=pT(n),b=fT(n);if(b.flags&131072&&Wy(m)===Wy(c)){if(c.flags&1||sa(NA(c),NA(p)))return Oy(m,a);if(T8e(c,p))return yn}else if(m.flags&131072&&Wy(b)===Wy(c)){if(!(c.flags&1)&&sa(NA(c),NA(p)))return yn;if(c.flags&1||T8e(c,p))return Oy(b,a)}return n}function T8e(n,a){return!!(pi([jz(n,a),yn]).flags&131072)}function gY(n,a){const c=Yp([th(n)],[a]),p=Y0(n.mapper,c),m=io(Vg(n.target||n),p),b=dWe(n)>0||(X0(n)?yL(H0(n))>0:Sdt(n,a));return pu(m,!0,b)}function Sdt(n,a){const c=Ld(a);return!!c&&vt(bs(n),p=>!!(p.flags&16777216)&&sa(nR(p,8576),c))}function Xp(n,a,c=0,p,m,b){return uT(n,a,c,p,m,b)||(p?nt:Nt)}function S8e(n,a){return Ep(n,c=>{if(c.flags&384){const p=Uf(c);if(Ag(p)){const m=+p;return m>=0&&m0&&!vt(n.elements,a=>g4(a)||y4(a)||bD(a)&&!!(a.questionToken||a.dotDotDotToken))}function I8e(n,a){return X0(n)||a&&Ka(n)&&vt(xE(n),X0)}function n_e(n,a,c,p,m){let b,I,w=0;for(;;){if(w===1e3)return Qe(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const H=io(Wy(n.checkType),a),Q=io(n.extendsType,a);if(H===nt||Q===nt)return nt;if(H===It||Q===It)return It;const Ie=tM(n.node.checkType),Te=tM(n.node.extendsType),et=A8e(Ie)&&A8e(Te)&&Ze(Ie.elements)===Ze(Te.elements),Tt=I8e(H,et);let Dt;if(n.inferTypeParameters){const Tn=JW(n.inferTypeParameters,void 0,0);a&&(Tn.nonFixingMapper=Y0(Tn.nonFixingMapper,a)),Tt||Jg(Tn.inferences,H,Q,1536),Dt=a?Y0(Tn.mapper,a):Tn.mapper}const $t=Dt?io(n.extendsType,Dt):Q;if(!Tt&&!I8e($t,et)){if(!($t.flags&3)&&(H.flags&1||!sa(zW(H),zW($t)))){(H.flags&1||c&&!($t.flags&131072)&&am(zW($t),rr=>sa(rr,zW(H))))&&(I||(I=[])).push(io(qi(n.node.trueType),Dt||a));const Tn=qi(n.node.falseType);if(Tn.flags&16777216){const rr=Tn.root;if(rr.node.parent===n.node&&(!rr.isDistributive||rr.checkType===n.checkType)){n=rr;continue}if(U(Tn,a))continue}b=io(Tn,a);break}if($t.flags&3||sa(NA(H),NA($t))){const Tn=qi(n.node.trueType),rr=Dt||a;if(U(Tn,rr))continue;b=io(Tn,rr);break}}b=vi(16777216),b.root=n,b.checkType=io(n.checkType,a),b.extendsType=io(n.extendsType,a),b.mapper=a,b.combinedMapper=Dt,b.aliasSymbol=p||n.aliasSymbol,b.aliasTypeArguments=p?m:Fy(n.aliasTypeArguments,a);break}return I?pi(Un(I,b)):b;function U(H,Q){if(H.flags&16777216&&Q){const Ie=H.root;if(Ie.outerTypeParameters){const Te=Y0(H.mapper,Q),et=Bt(Ie.outerTypeParameters,$t=>Vv($t,Te)),Tt=Yp(Ie.outerTypeParameters,et),Dt=Ie.isDistributive?Vv(Ie.checkType,Tt):void 0;if(!Dt||Dt===Ie.checkType||!(Dt.flags&1179648))return n=Ie,a=Tt,p=void 0,m=void 0,Ie.aliasSymbol&&w++,!0}}return!1}}function pT(n){return n.resolvedTrueType||(n.resolvedTrueType=io(qi(n.root.node.trueType),n.mapper))}function fT(n){return n.resolvedFalseType||(n.resolvedFalseType=io(qi(n.root.node.falseType),n.mapper))}function Edt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?io(qi(n.root.node.trueType),n.combinedMapper):pT(n))}function r_e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Un(a,qs(c)))}),a}function Adt(n){return n.isDistributive&&(a5(n.checkType,n.node.trueType)||a5(n.checkType,n.node.falseType))}function Idt(n){const a=Vr(n);if(!a.resolvedType){const c=qi(n.checkType),p=iR(n),m=HC(p),b=Mi(n,!0),I=m?b:Vn(b,U=>a5(U,n)),w={node:n,checkType:c,extendsType:qi(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:r_e(n),outerTypeParameters:I,instantiations:void 0,aliasSymbol:p,aliasTypeArguments:m};a.resolvedType=n_e(w,void 0,!1),I&&(w.instantiations=new Map,w.instantiations.set(km(I),a.resolvedType))}return a.resolvedType}function xdt(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=U0(Wr(n.typeParameter))),a.resolvedType}function x8e(n){return He(n)?[n]:Un(x8e(n.left),n.right)}function R8e(n){var a;const c=Vr(n);if(!c.resolvedType){if(!iy(n))return Qe(n.argument,f.String_literal_expected),c.resolvedSymbol=ne,c.resolvedType=nt;const p=n.isTypeOf?111551:n.flags&16777216?900095:788968,m=uu(n,n.argument.literal);if(!m)return c.resolvedSymbol=ne,c.resolvedType=nt;const b=!!((a=m.exports)!=null&&a.get("export=")),I=Tp(m,!1);if(Ol(n.qualifier))if(I.flags&p)c.resolvedType=D8e(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;Qe(n,w,n.argument.literal.text),c.resolvedSymbol=ne,c.resolvedType=nt}else{const w=x8e(n.qualifier);let U=I,H;for(;H=w.shift();){const Q=w.length?1920:p,Ie=os(hc(U)),Te=n.isTypeOf||Ir(n)&&b?Ea(_r(Ie),H.escapedText,!1,!0):void 0,Tt=(n.isTypeOf?void 0:Sd(qp(Ie),H.escapedText,Q))??Te;if(!Tt)return Qe(H,f.Namespace_0_has_no_exported_member_1,Nv(U),ws(H)),c.resolvedType=nt;Vr(H).resolvedSymbol=Tt,Vr(H.parent).resolvedSymbol=Tt,U=Tt}c.resolvedType=D8e(n,c,U,p)}}return c.resolvedType}function D8e(n,a,c,p){const m=hc(c);return a.resolvedSymbol=m,p===111551?A4e(_r(c),n):uY(n,m)}function C8e(n){const a=Vr(n);if(!a.resolvedType){const c=iR(n);if(!n.symbol||Q_(n.symbol).size===0&&!c)a.resolvedType=fa;else{let p=_c(16,n.symbol);p.aliasSymbol=c,p.aliasTypeArguments=HC(c),R1(n)&&n.isArrayType&&(p=Yd(p)),a.resolvedType=p}}return a.resolvedType}function iR(n){let a=n.parent;for(;b1(a)||t0(a)||KT(a)&&a.operator===148;)a=a.parent;return Sk(a)?Wr(a):void 0}function HC(n){return n?Na(n):void 0}function yY(n){return!!(n.flags&524288)&&!up(n)}function i_e(n){return zy(n)||!!(n.flags&474058748)}function o_e(n,a){if(!(n.flags&1048576))return n;if(Hn(n.types,i_e))return hn(n.types,zy)||Ra;const c=hn(n.types,b=>!i_e(b));if(!c||hn(n.types,b=>b!==c&&!i_e(b)))return n;return m(c);function m(b){const I=da();for(const U of bs(b))if(!(Vf(U)&6)){if(vY(U)){const H=U.flags&65536&&!(U.flags&32768),Ie=ja(16777220,U.escapedName,ghe(U)|(a?8:0));Ie.links.type=H?he:pu(_r(U),!0),Ie.declarations=U.declarations,Ie.links.nameType=Jr(U).nameType,Ie.links.syntheticOrigin=U,I.set(U.escapedName,Ie)}}const w=bl(b.symbol,I,se,se,Xd(b));return w.objectFlags|=131200,w}}function RE(n,a,c,p,m){if(n.flags&1||a.flags&1)return Ue;if(n.flags&2||a.flags&2)return Nt;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=o_e(n,m),n.flags&1048576)return e5([n,a])?Tl(n,H=>RE(H,a,c,p,m)):nt;if(a=o_e(a,m),a.flags&1048576)return e5([n,a])?Tl(a,H=>RE(n,H,c,p,m)):nt;if(a.flags&473960444)return n;if(xA(n)||xA(a)){if(zy(n))return a;if(n.flags&2097152){const H=n.types,Q=H[H.length-1];if(yY(Q)&&yY(a))return Ma(lo(H.slice(0,H.length-1),[RE(Q,a,c,p,m)]))}return Ma([n,a])}const b=da(),I=new Set,w=n===Ra?Xd(a):oWe([n,a]);for(const H of bs(a))Vf(H)&6?I.add(H.escapedName):vY(H)&&b.set(H.escapedName,a_e(H,m));for(const H of bs(n))if(!(I.has(H.escapedName)||!vY(H)))if(b.has(H.escapedName)){const Q=b.get(H.escapedName),Ie=_r(Q);if(Q.flags&16777216){const Te=lo(H.declarations,Q.declarations),et=4|H.flags&16777216,Tt=ja(et,H.escapedName),Dt=_r(H),$t=WY(Dt),Tn=WY(Ie);Tt.links.type=$t===Tn?Dt:pi([Dt,Tn],2),Tt.links.leftSpread=H,Tt.links.rightSpread=Q,Tt.declarations=Te,Tt.links.nameType=Jr(H).nameType,b.set(H.escapedName,Tt)}}else b.set(H.escapedName,a_e(H,m));const U=bl(c,b,se,se,Zi(w,H=>Rdt(H,m)));return U.objectFlags|=2228352|p,U}function vY(n){var a;return!vt(n.declarations,nu)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>ui(c.parent))))}function a_e(n,a){const c=n.flags&65536&&!(n.flags&32768);if(!c&&a===wh(n))return n;const p=4|n.flags&16777216,m=ja(p,n.escapedName,ghe(n)|(a?8:0));return m.links.type=c?he:_r(n),m.declarations=n.declarations,m.links.nameType=Jr(n).nameType,m.links.syntheticOrigin=n,m}function Rdt(n,a){return n.isReadonly!==a?Ug(n.keyType,n.type,a,n.declaration,n.components):n}function n5(n,a,c,p){const m=wi(n,c);return m.value=a,m.regularType=p||m,m}function oR(n){if(n.flags&2976){if(!n.freshType){const a=n5(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Cu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Tl(n,Cu)):n}function DE(n){return!!(n.flags&2976)&&n.freshType===n}function Sp(n){let a;return At.get(n)||(At.set(n,a=n5(128,n)),a)}function Ch(n){let a;return mn.get(n)||(mn.set(n,a=n5(256,n)),a)}function r5(n){let a;const c=OS(n);return dr.get(c)||(dr.set(c,a=n5(2048,n)),a)}function Ddt(n,a,c){let p;const m=`${a}${typeof n=="string"?"@":"#"}${n}`,b=1024|(typeof n=="string"?128:256);return ri.get(m)||(ri.set(m,p=n5(b,n,c)),p)}function Cdt(n){if(n.literal.kind===106)return Xt;const a=Vr(n);return a.resolvedType||(a.resolvedType=Cu(go(n.literal))),a.resolvedType}function Ndt(n){const a=wi(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${Ta(a.symbol)}`,a}function s_e(n){if(Ir(n)&&t0(n)){const a=xS(n);a&&(n=TI(a)||a)}if(Zte(n)){const a=UF(n)?If(n.left):If(n);if(a){const c=Jr(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=Ndt(a))}}return Qt}function Mdt(n){const a=vu(n,!1,!1),c=a&&a.parent;if(c&&(ui(c)||c.kind===265)&&!ua(a)&&(!Ml(a)||RS(n,a.body)))return tm(Wr(c)).thisType;if(c&&Fa(c)&&Nr(c.parent)&&ac(c.parent)===6)return tm(If(c.parent.left).parent).thisType;const p=n.flags&16777216?BT(n):void 0;return p&&Us(p)&&Nr(p.parent)&&ac(p.parent)===3?tm(If(p.parent.left).parent).thisType:A_(a)&&RS(n,a.body)?tm(Wr(a)).thisType:(Qe(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),nt)}function l_e(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=Mdt(n)),a.resolvedType}function N8e(n){return qi(i5(n.type)||n.type)}function i5(n){switch(n.kind){case 197:return i5(n.type);case 190:if(n.elements.length===1&&(n=n.elements[0],n.kind===192||n.kind===203&&n.dotDotDotToken))return i5(n.type);break;case 189:return n.elementType}}function Pdt(n){const a=Vr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?N8e(n):pu(qi(n.type),!0,!!n.questionToken))}function qi(n){return lct(M8e(n),n)}function M8e(n){switch(n.kind){case 133:case 313:case 314:return Ue;case 159:return Nt;case 154:return yt;case 150:return Gt;case 163:return gr;case 136:return jt;case 155:return Qt;case 116:return In;case 157:return he;case 106:return Xt;case 146:return yn;case 151:return n.flags&524288&&!ve?Ue:kn;case 141:return Oe;case 198:case 110:return l_e(n);case 202:return Cdt(n);case 184:return fY(n);case 183:return n.assertsModifier?In:jt;case 234:return fY(n);case 187:return zWe(n);case 189:case 190:return Bct(n);case 191:return Uct(n);case 193:return Zct(n);case 194:return sdt(n);case 315:return cct(n);case 317:return pu(qi(n.type));case 203:return Pdt(n);case 197:case 316:case 310:return qi(n.type);case 192:return N8e(n);case 319:return Yyt(n);case 185:case 186:case 188:case 323:case 318:case 324:return C8e(n);case 199:return pdt(n);case 200:return E8e(n);case 201:return t_e(n);case 195:return Idt(n);case 196:return xdt(n);case 204:return fdt(n);case 206:return R8e(n);case 80:case 167:case 212:const a=sm(n);return a?qs(a):nt;default:return nt}}function bY(n,a,c){if(n&&n.length)for(let p=0;pp.typeParameter),Bt(c,()=>Nt))}function kdt(n){return n.outerReturnMapper??(n.outerReturnMapper=w8e(n.returnMapper,mFe(n).mapper))}function Y0(n,a){return n?SY(4,n,a):a}function w8e(n,a){return n?SY(5,n,a):a}function DA(n,a,c){return c?SY(5,CE(n,a),c):CE(n,a)}function WW(n,a,c){return n?SY(5,n,CE(a,c)):CE(a,c)}function wdt(n){return!n.constraint&&!cY(n)||n.constraint===Hl?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Vu(n.symbol),n.restrictiveInstantiation.constraint=Hl,n.restrictiveInstantiation)}function d_e(n){const a=Vu(n.symbol);return a.target=n,a}function O8e(n,a){return MW(n.kind,n.parameterName,n.parameterIndex,io(n.type,a))}function CA(n,a,c){let p;if(n.typeParameters&&!c){p=Bt(n.typeParameters,d_e),a=Y0(Yp(n.typeParameters,p),a);for(const b of p)b.mapper=a}const m=v_(n.declaration,p,n.thisParameter&&u_e(n.thisParameter,a),bY(n.parameters,a,u_e),void 0,void 0,n.minArgumentCount,n.flags&167);return m.target=n,m.mapper=a,m}function u_e(n,a){const c=Jr(n);if(c.type&&!_T(c.type)&&(!(n.flags&65536)||c.writeType&&!_T(c.writeType)))return n;Wl(n)&1&&(n=c.target,a=Y0(c.mapper,a));const p=ja(n.flags,n.escapedName,1|Wl(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 Odt(n,a,c,p){const m=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],b=Vr(m),I=n.objectFlags&4?b.resolvedType:n.objectFlags&64?n.target:n;let w=b.outerTypeParameters;if(!w){let U=Mi(m,!0);if(A_(m)){const Q=SWe(m);U=Xr(U,Q)}w=U||se;const H=n.objectFlags&8388612?[m]:n.symbol.declarations;w=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?Vn(w,Q=>vt(H,Ie=>a5(Q,Ie))):w,b.outerTypeParameters=w}if(w.length){const U=Y0(n.mapper,a),H=Bt(w,Tt=>Vv(Tt,U)),Q=c||n.aliasSymbol,Ie=c?p:Fy(n.aliasTypeArguments,a),Te=km(H)+EA(Q,Ie);I.instantiations||(I.instantiations=new Map,I.instantiations.set(km(w)+EA(I.aliasSymbol,I.aliasTypeArguments),I));let et=I.instantiations.get(Te);if(!et){let Tt=Yp(w,H);I.objectFlags&134217728&&a&&(Tt=Y0(Tt,a)),et=I.objectFlags&4?Phe(n.target,n.node,Tt,Q,Ie):I.objectFlags&32?Fdt(I,Tt,Q,Ie):p_e(I,Tt,Q,Ie),I.instantiations.set(Te,et);const Dt=Hr(et);if(et.flags&3899393&&!(Dt&524288)){const $t=vt(H,_T);Hr(et)&524288||(Dt&52?et.objectFlags|=524288|($t?1048576:0):et.objectFlags|=$t?0:524288)}}return et}return n}function Wdt(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 a5(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&&qh(p)&&Wdt(p)&&M8e(p)===n;case 187:const m=p.exprName,b=Lu(m);if(!Eb(b)){const I=fu(b),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=>RS(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 FW(n){const a=Rf(n);if(a.flags&4194304){const c=Wy(a.type);if(c.flags&262144)return c}}function Fdt(n,a,c,p){const m=FW(n);if(m){const I=io(m,a);if(m!==I)return zFe(Lm(I),b,c,p)}return io(Rf(n),a)===It?It:p_e(n,a,c,p);function b(I){if(I.flags&61603843&&I!==It&&!pr(I)){if(!n.declaration.nameType){let w;if(im(I)||I.flags&1&&ee(m,4)<0&&(w=Uu(m))&&Ep(w,Q0))return Bdt(I,n,DA(m,I,a));if(Ka(I))return zdt(I,n,m,a);if(_We(I))return Ma(Bt(I.types,b))}return p_e(n,DA(m,I,a))}return I}}function W8e(n,a){return a&1?!0:a&2?!1:n}function zdt(n,a,c,p){const m=n.target.elementFlags,b=n.target.fixedLength,I=b?DA(c,n,p):p,w=Bt(xE(n),(Ie,Te)=>{const et=m[Te];return TeIe&1?2:Ie):U&8?Bt(m,Ie=>Ie&2?1:Ie):m,Q=W8e(n.target.readonly,Z_(a));return Ln(w,nt)?nt:tg(w,H,Q,n.target.labeledElementDeclarations)}function Bdt(n,a,c){const p=F8e(a,Gt,!0,c);return pr(p)?nt:Yd(p,W8e(RL(n),Z_(a)))}function F8e(n,a,c,p){const m=WW(p,th(n),a),b=io(Vg(n.target||n),m),I=Z_(n);return ie&&I&4&&!tc(b,49152)?hT(b,!0):ie&&I&8&&c?om(b,524288):b}function p_e(n,a,c,p){C.assert(n.symbol,"anonymous type must have symbol to be instantiated");const m=_c(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){m.declaration=n.declaration;const b=th(n),I=d_e(b);m.typeParameter=I,a=Y0(CE(b,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:Fy(n.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?Xz(m.aliasTypeArguments):0,m}function f_e(n,a,c,p,m){const b=n.root;if(b.outerTypeParameters){const I=Bt(b.outerTypeParameters,H=>Vv(H,a)),w=(c?"C":"")+km(I)+EA(p,m);let U=b.instantiations.get(w);if(!U){const H=Yp(b.outerTypeParameters,I),Q=b.checkType,Ie=b.isDistributive?Lm(Vv(Q,H)):void 0;U=Ie&&Q!==Ie&&Ie.flags&1179648?zFe(Ie,Te=>n_e(b,DA(Q,Te,H),c),p,m):n_e(b,H,c,p,m),b.instantiations.set(w,U)}return U}return n}function io(n,a){return n&&a?z8e(n,a,void 0,void 0):n}function z8e(n,a,c,p){var m;if(!_T(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}),Qe(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const b=xft(a);b===-1&&Aft(a);const I=n.id+EA(c,p),w=T0[b!==-1?b:H_-1],U=w.get(I);if(U)return U;h++,y++,E++;const H=Gdt(n,a,c,p);return b===-1?Ift():w.set(I,H),E--,H}function Gdt(n,a,c,p){const m=n.flags;if(m&262144)return Vv(n,a);if(m&524288){const b=n.objectFlags;if(b&52){if(b&4&&!n.node){const I=n.resolvedTypeArguments,w=Fy(I,a);return w!==I?Hhe(n.target,w):n}return b&1024?Vdt(n,a):Odt(n,a,c,p)}return n}if(m&3145728){const b=n.flags&1048576?n.origin:void 0,I=b&&b.flags&3145728?b.types:n.types,w=Fy(I,a);if(w===I&&c===n.aliasSymbol)return n;const U=c||n.aliasSymbol,H=c?p:Fy(n.aliasTypeArguments,a);return m&2097152||b&&b.flags&2097152?Ma(w,0,U,H):pi(w,1,U,H)}if(m&4194304)return T_(io(n.type,a));if(m&134217728)return AA(n.texts,Fy(n.types,a));if(m&268435456)return rR(n.symbol,io(n.type,a));if(m&8388608){const b=c||n.aliasSymbol,I=c?p:Fy(n.aliasTypeArguments,a);return Xp(io(n.objectType,a),io(n.indexType,a),n.accessFlags,void 0,b,I)}if(m&16777216)return f_e(n,Y0(n.mapper,a),!1,c,p);if(m&33554432){const b=io(n.baseType,a);if(jC(n))return Lhe(b);const I=io(n.constraint,a);return b.flags&8650752&&X0(I)?whe(b,I):I.flags&3||sa(NA(b),NA(I))?b:b.flags&8650752?whe(b,I):Ma([I,b])}return n}function Vdt(n,a){const c=io(n.mappedType,a);if(!(Hr(c)&32))return n;const p=io(n.constraintType,a);if(!(p.flags&4194304))return n;const m=gFe(io(n.source,a),c,p);return m||n}function zW(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=io(n,xl))}function NA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=io(n,Bl),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function jdt(n,a){return Ug(n.keyType,io(n.type,a),n.isReadonly,n.declaration,n.components)}function Cf(n){switch(C.assert(n.kind!==175||hm(n)),n.kind){case 219:case 220:case 175:case 263:return B8e(n);case 211:return vt(n.properties,Cf);case 210:return vt(n.elements,Cf);case 228:return Cf(n.whenTrue)||Cf(n.whenFalse);case 227:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(Cf(n.left)||Cf(n.right));case 304:return Cf(n.initializer);case 218:return Cf(n.expression);case 293:return vt(n.properties,Cf)||ph(n.parent)&&vt(n.parent.parent.children,Cf);case 292:{const{initializer:a}=n;return!!a&&Cf(a)}case 295:{const{expression:a}=n;return!!a&&Cf(a)}}return!1}function B8e(n){return Q6(n)||Udt(n)}function Udt(n){return n.typeParameters||kp(n)||!n.body?!1:n.body.kind!==242?Cf(n.body):!!vb(n.body,a=>!!a.expression&&Cf(a.expression))}function EY(n){return(Rb(n)||hm(n))&&B8e(n)}function G8e(n){if(n.flags&524288){const a=Dh(n);if(a.constructSignatures.length||a.callSignatures.length){const c=_c(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=se,c.constructSignatures=se,c.indexInfos=se,c}}else if(n.flags&2097152)return Ma(Bt(n.types,G8e));return n}function qg(n,a){return S_(n,a,Jd)}function BW(n,a){return S_(n,a,Jd)?-1:0}function m_e(n,a){return S_(n,a,qd)?-1:0}function Hdt(n,a){return S_(n,a,q_)?-1:0}function NE(n,a){return S_(n,a,q_)}function xL(n,a){return S_(n,a,ul)}function sa(n,a){return S_(n,a,qd)}function $0(n,a){return n.flags&1048576?Hn(n.types,c=>$0(c,a)):a.flags&1048576?vt(a.types,c=>$0(n,c)):n.flags&2097152?vt(n.types,c=>$0(c,a)):n.flags&58982400?$0(Ld(n)||Nt,a):ng(a)?!!(n.flags&67633152):a===Jt?!!(n.flags&67633152)&&!ng(n):a===tr?!!(n.flags&524288)&&K_e(n):Ur(n,Gn(a))||im(a)&&!RL(a)&&$0(n,Va)}function AY(n,a){return S_(n,a,lp)}function s5(n,a){return AY(n,a)||AY(a,n)}function $d(n,a,c,p,m,b){return rm(n,a,qd,c,p,m,b)}function ME(n,a,c,p,m,b){return h_e(n,a,qd,c,p,m,b,void 0)}function h_e(n,a,c,p,m,b,I,w){return S_(n,a,c)?!0:!p||!GW(m,n,a,c,b,I,w)?rm(n,a,c,p,b,I,w):!1}function V8e(n){return!!(n.flags&16777216||n.flags&2097152&&vt(n.types,V8e))}function GW(n,a,c,p,m,b,I){if(!n||V8e(c))return!1;if(!rm(a,c,p,void 0)&&qdt(n,a,c,p,m,b,I))return!0;switch(n.kind){case 235:if(!$V(n))break;case 295:case 218:return GW(n.expression,a,c,p,m,b,I);case 227:switch(n.operatorToken.kind){case 64:case 28:return GW(n.right,a,c,p,m,b,I)}break;case 211:return eut(n,a,c,p,b,I);case 210:return Qdt(n,a,c,p,b,I);case 293:return $dt(n,a,c,p,b,I);case 220:return Jdt(n,a,c,p,b,I)}return!1}function qdt(n,a,c,p,m,b,I){const w=na(a,0),U=na(a,1);for(const H of[U,w])if(vt(H,Q=>{const Ie=fs(Q);return!(Ie.flags&131073)&&rm(Ie,c,p,void 0)})){const Q=I||{};$d(a,c,n,m,b,Q);const Ie=Q.errors[Q.errors.length-1];return pa(Ie,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 Jdt(n,a,c,p,m,b){if(ea(n.body)||vt(n.parameters,xF))return!1;const I=zA(a);if(!I)return!1;const w=na(c,0);if(!Ze(w))return!1;const U=n.body,H=fs(I),Q=pi(Bt(w,fs));if(!rm(H,Q,p,void 0)){const Ie=U&&GW(U,H,Q,p,void 0,m,b);if(Ie)return Ie;const Te=b||{};if(rm(H,Q,p,U,void 0,m,Te),Te.errors)return c.symbol&&Ze(c.symbol.declarations)&&pa(Te.errors[Te.errors.length-1],Ar(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(dc(n)&2)&&!_n(H,"then")&&rm(V5(H),Q,p,void 0)&&pa(Te.errors[Te.errors.length-1],Ar(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function j8e(n,a,c){const p=uT(a,c);if(p)return p;if(a.flags&1048576){const m=$8e(n,a);if(m)return uT(m,c)}}function U8e(n,a){D5(n,a,!1);const c=WL(n,1);return QW(),c}function l5(n,a,c,p,m,b){let I=!1;for(const w of n){const{errorNode:U,innerExpression:H,nameType:Q,errorMessage:Ie}=w;let Te=j8e(a,c,Q);if(!Te||Te.flags&8388608)continue;let et=uT(a,Q);if(!et)continue;const Tt=_Y(Q,void 0);if(!rm(et,Te,p,void 0)){const Dt=H&&GW(H,et,Te,p,void 0,m,b);if(I=!0,!Dt){const $t=b||{},Tn=H?U8e(H,et):et;if(Ce&&xY(Tn,Te)){const rr=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(Te));ns.add(rr),$t.errors=[rr]}else{const rr=!!(Tt&&(Ea(c,Tt)||ne).flags&16777216),yr=!!(Tt&&(Ea(a,Tt)||ne).flags&16777216);Te=Vy(Te,rr),et=Vy(et,rr&&yr),rm(Tn,Te,p,U,Ie,m,$t)&&Tn!==et&&rm(et,Te,p,U,Ie,m,$t)}if($t.errors){const rr=$t.errors[$t.errors.length-1],yr=jf(Q)?Uf(Q):void 0,Sn=yr!==void 0?Ea(c,yr):void 0;let vn=!1;if(!Sn){const Sr=CW(c,Q);Sr&&Sr.declaration&&!Fn(Sr.declaration).hasNoDefaultLib&&(vn=!0,pa(rr,Ar(Sr.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!vn&&(Sn&&Ze(Sn.declarations)||c.symbol&&Ze(c.symbol.declarations))){const Sr=Sn&&Ze(Sn.declarations)?Sn.declarations[0]:c.symbol.declarations[0];Fn(Sr).hasNoDefaultLib||pa(rr,Ar(Sr,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,yr&&!(Q.flags&8192)?Bi(yr):sr(Q),sr(c)))}}}}}return I}function Kdt(n,a,c,p,m,b){const I=Ec(c,LY),w=Ec(c,Q=>!LY(Q)),U=w!==yn?_ye(13,0,w,void 0):void 0;let H=!1;for(let Q=n.next();!Q.done;Q=n.next()){const{errorNode:Ie,innerExpression:Te,nameType:et,errorMessage:Tt}=Q.value;let Dt=U;const $t=I!==yn?j8e(a,I,et):void 0;if($t&&!($t.flags&8388608)&&(Dt=U?pi([U,$t]):$t),!Dt)continue;let Tn=uT(a,et);if(!Tn)continue;const rr=_Y(et,void 0);if(!rm(Tn,Dt,p,void 0)){const yr=Te&&GW(Te,Tn,Dt,p,void 0,m,b);if(H=!0,!yr){const Sn=b||{},vn=Te?U8e(Te,Tn):Tn;if(Ce&&xY(vn,Dt)){const Sr=Ar(Ie,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));ns.add(Sr),Sn.errors=[Sr]}else{const Sr=!!(rr&&(Ea(I,rr)||ne).flags&16777216),fi=!!(rr&&(Ea(a,rr)||ne).flags&16777216);Dt=Vy(Dt,Sr),Tn=Vy(Tn,Sr&&fi),rm(vn,Dt,p,Ie,Tt,m,Sn)&&vn!==Tn&&rm(Tn,Dt,p,Ie,Tt,m,Sn)}}}}return H}function*Xdt(n){if(Ze(n.properties))for(const a of n.properties)$I(a)||gge(iw(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:Sp(iw(a.name))})}function*Ydt(n,a){if(!Ze(n.children))return;let c=0;for(let p=0;p1;let $t,Tn;if(hY(!1)!==Zt){const yr=ZWe(Ue);$t=Ec(et,Sn=>sa(Sn,yr)),Tn=Ec(et,Sn=>!sa(Sn,yr))}else $t=Ec(et,LY),Tn=Ec(et,yr=>!LY(yr));if(Dt){if($t!==yn){const yr=tg(s$(H,0)),Sn=Ydt(H,U);I=Kdt(Sn,yr,$t,p,m,b)||I}else if(!S_(Xp(a,Te),et,p)){I=!0;const yr=Qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ie,sr(et));b&&b.skipLogging&&(b.errors||(b.errors=[])).push(yr)}}else if(Tn!==yn){const yr=Tt[0],Sn=H8e(yr,Te,U);Sn&&(I=l5(function*(){yield Sn}(),a,c,p,m,b)||I)}else if(!S_(Xp(a,Te),et,p)){I=!0;const yr=Qe(H.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Ie,sr(et));b&&b.skipLogging&&(b.errors||(b.errors=[])).push(yr)}}return I;function U(){if(!w){const H=Al(n.parent.tagName),Q=N5(WA(n)),Ie=Q===void 0?"children":Bi(Q),Te=Xp(c,Sp(Ie)),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:MI(et,H,Ie,sr(Te))}}return w}}function*q8e(n,a){const c=Ze(n.elements);if(c)for(let p=0;pU:kh(n)>U))return p&&!(c&8)&&m(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,kh(n),U),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=nct(a),n=r4e(n,a,void 0,I));const Q=Ap(n),Ie=a8(n),Te=a8(a);(Ie||Te)&&io(Ie||Te,w);const et=a.declaration?a.declaration.kind:0,Tt=!(c&3)&&K&&et!==175&&et!==174&&et!==177;let Dt=-1;const $t=J0(n);if($t&&$t!==In){const yr=J0(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=Ie||Te?Math.min(Q,U):Math.max(Q,U),rr=Ie||Te?Tn-1:-1;for(let yr=0;yr=kh(n)&&yr=3&&a[0].flags&32768&&a[1].flags&65536&&vt(a,ng)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function qC(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function out(n){const a=n.flags&1048576?n.types[0]:n;return!!(a.flags&32768)&&a!==Ae}function K8e(n){return n.flags&524288&&!up(n)&&bs(n).length===0&&Xd(n).length===1&&!!jg(n,yt)||n.flags&3145728&&Hn(n.types,K8e)||!1}function y_e(n,a,c){const p=n.flags&8?Yc(n):n,m=a.flags&8?Yc(a):a;if(p===m)return!0;if(p.escapedName!==m.escapedName||!(p.flags&256)||!(m.flags&256))return!1;const b=Ta(p)+","+Ta(m),I=x0.get(b);if(I!==void 0&&!(I&2&&c))return!!(I&1);const w=_r(m);for(const U of bs(_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,wl(U),sr(qs(m),void 0,64)),x0.set(b,2),!1;const Q=GA(ll(U,307)).value,Ie=GA(ll(H,307)).value;if(Q!==Ie){const Te=typeof Q=="string",et=typeof Ie=="string";if(Q!==void 0&&Ie!==void 0){if(c){const Tt=Te?`"${w_(Q)}"`:Q,Dt=et?`"${w_(Ie)}"`:Ie;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,wl(m),wl(H),Dt,Tt)}return x0.set(b,2),!1}if(Te||et){if(c){const Tt=Q??Ie;C.assert(typeof Tt=="string");const Dt=`"${w_(Tt)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,wl(m),wl(H),Dt)}return x0.set(b,2),!1}}}return x0.set(b,1),!0}function VW(n,a,c,p){const m=n.flags,b=a.flags;return b&1||m&131072||n===It||b&2&&!(c===ul&&m&1)?!0:b&131072?!1:!!(m&402653316&&b&4||m&128&&m&1024&&b&128&&!(b&1024)&&n.value===a.value||m&296&&b&8||m&256&&m&1024&&b&256&&!(b&1024)&&n.value===a.value||m&2112&&b&64||m&528&&b&16||m&12288&&b&4096||m&32&&b&32&&n.symbol.escapedName===a.symbol.escapedName&&y_e(n.symbol,a.symbol,p)||m&1024&&b&1024&&(m&1048576&&b&1048576&&y_e(n.symbol,a.symbol,p)||m&2944&&b&2944&&n.value===a.value&&y_e(n.symbol,a.symbol,p))||m&32768&&(!ie&&!(b&3145728)||b&49152)||m&65536&&(!ie&&!(b&3145728)||b&65536)||m&524288&&b&67108864&&!(c===ul&&ng(n)&&!(Hr(n)&8192))||(c===qd||c===lp)&&(m&1||m&8&&(b&32||b&256&&b&1024)||m&256&&!(m&1024)&&(b&32||b&256&&b&1024&&n.value===a.value)||iut(a)))}function S_(n,a,c){if(DE(n)&&(n=n.regularType),DE(a)&&(a=a.regularType),n===a)return!0;if(c!==Jd){if(c===lp&&!(a.flags&131072)&&VW(a,n,c)||VW(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(CY(n,a,0,c,!1));if(p!==void 0)return!!(p&1)}return n.flags&469499904||a.flags&469499904?rm(n,a,c,void 0):!1}function X8e(n,a){return Hr(n)&2048&&gge(a.escapedName)}function c5(n,a){for(;;){const c=DE(n)?n.regularType:mT(n)?lut(n,a):Hr(n)&4?n.node?ky(n.target,ol(n)):x_e(n)||n:n.flags&3145728?aut(n,a):n.flags&33554432?a?n.baseType:Ohe(n):n.flags&25165824?Oy(n,a):n;if(c===n)return c;n=c}}function aut(n,a){const c=Lm(n);if(c!==n)return c;if(n.flags&2097152&&sut(n)){const p=Zi(n.types,m=>c5(m,a));if(p!==n.types)return Ma(p)}return n}function sut(n){let a=!1,c=!1;for(const p of n.types)if(a||(a=!!(p.flags&465829888)),c||(c=!!(p.flags&98304)||ng(p)),a&&c)return!0;return!1}function lut(n,a){const c=xE(n),p=Zi(c,m=>m.flags&25165824?Oy(m,a):m);return c!==p?qhe(n.target,p):n}function rm(n,a,c,p,m,b,I){var w;let U,H,Q,Ie,Te,et,Tt=0,Dt=0,$t=0,Tn=0,rr=!1,yr=0,Sn=0,vn,Sr,fi=16e6-c.size>>3;C.assert(c!==Jd||!p,"no error reporting in identity checking");const oo=vr(n,a,3,!!p,m);if(Sr&&ms(),rr){const Me=CY(n,a,0,c,!1);c.set(Me,2|(fi<=0?32:64)),(w=xr)==null||w.instant(xr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:Dt,targetDepth:$t});const qe=fi<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,ct=Qe(p||R,qe,sr(n),sr(a));I&&(I.errors||(I.errors=[])).push(ct)}else if(U){if(b){const ct=b();ct&&(are(ct,U),U=ct)}let Me;if(m&&p&&!oo&&n.symbol){const ct=Jr(n.symbol);if(ct.originatingImport&&!Qu(ct.originatingImport)&&rm(_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);Me=Un(Me,sn)}}const qe=_g(Fn(p),p,U,Me);H&&pa(qe,...H),I&&(I.errors||(I.errors=[])).push(qe),(!I||!I.skipLogging)&&ns.add(qe)}return p&&I&&I.skipLogging&&oo===0&&C.assert(!!I.errors,"missed opportunity to interact with error."),oo!==0;function ii(Me){U=Me.errorInfo,vn=Me.lastSkippedInfo,Sr=Me.incompatibleStack,yr=Me.overrideNextErrorInfo,Sn=Me.skipParentCounter,H=Me.relatedInfo}function zi(){return{errorInfo:U,lastSkippedInfo:vn,incompatibleStack:Sr==null?void 0:Sr.slice(),overrideNextErrorInfo:yr,skipParentCounter:Sn,relatedInfo:H==null?void 0:H.slice()}}function Ko(Me,...qe){yr++,vn=void 0,(Sr||(Sr=[])).push([Me,...qe])}function ms(){const Me=Sr||[];Sr=void 0;const qe=vn;if(vn=void 0,Me.length===1){mo(...Me[0]),qe&&mu(void 0,...qe);return}let ct="";const Vt=[];for(;Me.length;){const[sn,...Ut]=Me.pop();switch(sn.code){case f.Types_of_property_0_are_incompatible.code:{ct.indexOf("new ")===0&&(ct=`(${ct})`);const un=""+Ut[0];ct.length===0?ct=`${un}`:fp(un,Ga(O))?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),Vt.unshift([un,Ut[0],Ut[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 ":"",er=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}(${er})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Vt.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Ut[0],Ut[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Vt.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Ut[0],Ut[1],Ut[2]]);break}default:return C.fail(`Unhandled Diagnostic: ${sn.code}`)}}ct?mo(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):Vt.shift();for(const[sn,...Ut]of Vt){const un=sn.elidedInCompatabilityPyramid;sn.elidedInCompatabilityPyramid=!1,mo(sn,...Ut),sn.elidedInCompatabilityPyramid=un}qe&&mu(void 0,...qe)}function mo(Me,...qe){C.assert(!!p),Sr&&ms(),!Me.elidedInCompatabilityPyramid&&(Sn===0?U=qo(U,Me,...qe):Sn--)}function pl(Me,...qe){mo(Me,...qe),Sn++}function Kl(Me){C.assert(!!U),H?H.push(Me):H=[Me]}function mu(Me,qe,ct){Sr&&ms();const[Vt,sn]=dL(qe,ct);let Ut=qe,un=Vt;if(!(ct.flags&131072)&&jW(qe)&&!v_e(ct)&&(Ut=By(qe),C.assert(!sa(Ut,ct),"generalized source shouldn't be assignable"),un=PC(Ut)),(ct.flags&8388608&&!(qe.flags&8388608)?ct.objectType.flags:ct.flags)&262144&&ct!==pt&&ct!==qt){const fr=Ld(ct);let Br;fr&&(sa(Ut,fr)||(Br=sa(qe,fr)))?mo(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Br?Vt:un,sn,sr(fr)):(U=void 0,mo(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,sn,un))}if(Me)Me===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ce&&Y8e(qe,ct).length&&(Me=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===lp)Me=f.Type_0_is_not_comparable_to_type_1;else if(Vt===sn)Me=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ce&&Y8e(qe,ct).length)Me=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(qe.flags&128&&ct.flags&1048576){const fr=xmt(qe,ct);if(fr){mo(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,un,sn,sr(fr));return}}Me=f.Type_0_is_not_assignable_to_type_1}mo(Me,un,sn)}function qn(Me,qe){const ct=LC(Me.symbol)?sr(Me,Me.symbol.valueDeclaration):sr(Me),Vt=LC(qe.symbol)?sr(qe,qe.symbol.valueDeclaration):sr(qe);(Mc===Me&&yt===qe||rl===Me&&Gt===qe||Ll===Me&&jt===qe||qWe()===Me&&Qt===qe)&&mo(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Vt,ct)}function ir(Me,qe,ct){return Ka(Me)?Me.target.readonly&&f5(qe)?(ct&&mo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sr(Me),sr(qe)),!1):Q0(qe):RL(Me)&&f5(qe)?(ct&&mo(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,sr(Me),sr(qe)),!1):Ka(qe)?im(Me):!0}function Ui(Me,qe,ct){return vr(Me,qe,3,ct)}function vr(Me,qe,ct=3,Vt=!1,sn,Ut=0){if(Me===qe)return-1;if(Me.flags&524288&&qe.flags&402784252)return c===lp&&!(qe.flags&131072)&&VW(qe,Me,c)||VW(Me,qe,c,Vt?mo:void 0)?-1:(Vt&&wo(Me,qe,Me,qe,sn),0);const un=c5(Me,!1);let er=c5(qe,!0);if(un===er)return-1;if(c===Jd)return un.flags!==er.flags?0:un.flags&67358815?-1:(ys(un,er),T8(un,er,!1,0,ct));if(un.flags&262144&&bA(un)===er)return-1;if(un.flags&470302716&&er.flags&1048576){const fr=er.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)&&(er=c5(Br,!0),un===er))return-1}if(c===lp&&!(er.flags&131072)&&VW(er,un,c)||VW(un,er,c,Vt?mo:void 0))return-1;if(un.flags&469499904||er.flags&469499904){if(!(Ut&2)&&Uv(un)&&Hr(un)&8192&&md(un,er,Vt))return Vt&&mu(sn,un,qe.aliasSymbol?qe:er),0;const Br=(c!==lp||Nh(un))&&!(Ut&2)&&un.flags&405405692&&un!==Jt&&er.flags&2621440&&T_e(er)&&(bs(un).length>0||U$(un)),li=!!(Hr(un)&2048);if(Br&&!dut(un,er,li)){if(Vt){const xi=sr(Me.aliasSymbol?Me:un),ho=sr(qe.aliasSymbol?qe:er),ts=na(un,0),bn=na(un,1);ts.length>0&&vr(fs(ts[0]),er,1,!1)||bn.length>0&&vr(fs(bn[0]),er,1,!1)?mo(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,xi,ho):mo(f.Type_0_has_no_properties_in_common_with_type_1,xi,ho)}return 0}ys(un,er);const lr=un.flags&1048576&&un.types.length<4&&!(er.flags&1048576)||er.flags&1048576&&er.types.length<4&&!(un.flags&469499904)?cc(un,er,Vt,Ut):T8(un,er,Vt,Ut,ct);if(lr)return lr}return Vt&&wo(Me,qe,un,er,sn),0}function wo(Me,qe,ct,Vt,sn){var Ut,un;const er=!!x_e(Me),fr=!!x_e(qe);ct=Me.aliasSymbol||er?Me:ct,Vt=qe.aliasSymbol||fr?qe:Vt;let Br=yr>0;if(Br&&yr--,ct.flags&524288&&Vt.flags&524288){const li=U;ir(ct,Vt,!0),U!==li&&(Br=!!U)}if(ct.flags&524288&&Vt.flags&402784252)qn(ct,Vt);else if(ct.symbol&&ct.flags&524288&&Jt===ct)mo(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&&Vt.flags&2097152){const li=Vt.types,mi=kE(_f.IntrinsicAttributes,p),lr=kE(_f.IntrinsicClassAttributes,p);if(!pr(mi)&&!pr(lr)&&(Ln(li,mi)||Ln(li,lr)))return}else U=Ihe(U,qe);if(!sn&&Br){const li=zi();mu(sn,ct,Vt);let mi;U&&U!==li.errorInfo&&(mi={code:U.code,messageText:U.messageText}),ii(li),mi&&U&&(U.canonicalHead=mi),vn=[ct,Vt];return}if(mu(sn,ct,Vt),ct.flags&262144&&((un=(Ut=ct.symbol)==null?void 0:Ut.declarations)!=null&&un[0])&&!bA(ct)){const li=d_e(ct);if(li.constraint=io(Vt,CE(ct,li)),qz(li)){const mi=sr(Vt,ct.symbol.declarations[0]);Kl(Ar(ct.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,mi))}}}function ys(Me,qe){if(xr&&Me.flags&3145728&&qe.flags&3145728){const ct=Me,Vt=qe;if(ct.objectFlags&Vt.objectFlags&32768)return;const sn=ct.types.length,Ut=Vt.types.length;sn*Ut>1e6&&xr.instant(xr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Me.id,sourceSize:sn,targetId:qe.id,targetSize:Ut,pos:p==null?void 0:p.pos,end:p==null?void 0:p.end})}}function al(Me,qe){return pi(gu(Me,(Vt,sn)=>{var Ut;sn=Du(sn);const un=sn.flags&3145728?Jz(sn,qe):EE(sn,qe),er=un&&_r(un)||((Ut=tR(sn,qe))==null?void 0:Ut.type)||he;return Un(Vt,er)},void 0)||se)}function md(Me,qe,ct){var Vt;if(!t8(qe)||!ve&&Hr(qe)&4096)return!1;const sn=!!(Hr(Me)&2048);if((c===qd||c===lp)&&(ML(Jt,qe)||!sn&&zy(qe)))return!1;let Ut=qe,un;qe.flags&1048576&&(Ut=x7e(Me,qe,vr)||Obt(qe),un=Ut.flags&1048576?Ut.types:[Ut]);for(const er of bs(Me))if(Xa(er,Me.symbol)&&!X8e(Me,er)){if(!d$(Ut,er.escapedName,sn)){if(ct){const fr=Ec(Ut,t8);if(!p)return C.fail();if(US(p)||ru(p)||ru(p.parent)){er.valueDeclaration&&o_(er.valueDeclaration)&&Fn(p)===Fn(er.valueDeclaration.name)&&(p=er.valueDeclaration.name);const Br=po(er),li=J6e(Br,fr),mi=li?po(li):void 0;mi?mo(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Br,sr(fr),mi):mo(f.Property_0_does_not_exist_on_type_1,Br,sr(fr))}else{const Br=((Vt=Me.symbol)==null?void 0:Vt.declarations)&&Ac(Me.symbol.declarations);let li;if(er.valueDeclaration&&Dn(er.valueDeclaration,mi=>mi===Br)&&Fn(Br)===Fn(p)){const mi=er.valueDeclaration;C.assertNode(mi,ry);const lr=mi.name;p=lr,He(lr)&&(li=K6e(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,po(er),sr(fr),li):pl(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,po(er),sr(fr))}}return!0}if(un&&!vr(_r(er),al(un,er.escapedName),3,ct))return ct&&Ko(f.Types_of_property_0_are_incompatible,po(er)),!0}return!1}function Xa(Me,qe){return Me.valueDeclaration&&qe.valueDeclaration&&Me.valueDeclaration.parent===qe.valueDeclaration}function cc(Me,qe,ct,Vt){if(Me.flags&1048576){if(qe.flags&1048576){const sn=Me.origin;if(sn&&sn.flags&2097152&&qe.aliasSymbol&&Ln(sn.types,qe))return-1;const Ut=qe.origin;if(Ut&&Ut.flags&1048576&&Me.aliasSymbol&&Ln(Ut.types,Me))return-1}return c===lp?Sl(Me,qe,ct&&!(Me.flags&402784252),Vt):lm(Me,qe,ct&&!(Me.flags&402784252),Vt)}if(qe.flags&1048576)return Ts(qW(Me),qe,ct&&!(Me.flags&402784252)&&!(qe.flags&402784252),Vt);if(qe.flags&2097152)return Nf(Me,qe,ct,2);if(c===lp&&qe.flags&402784252){const sn=Zi(Me.types,Ut=>Ut.flags&465829888?Ld(Ut)||Nt:Ut);if(sn!==Me.types){if(Me=Ma(sn),Me.flags&131072)return 0;if(!(Me.flags&2097152))return vr(Me,qe,1,!1)||vr(qe,Me,1,!1)}}return Sl(Me,qe,!1,1)}function gc(Me,qe){let ct=-1;const Vt=Me.types;for(const sn of Vt){const Ut=Ts(sn,qe,!1,0);if(!Ut)return 0;ct&=Ut}return ct}function Ts(Me,qe,ct,Vt){const sn=qe.types;if(qe.flags&1048576){if(Hg(sn,Me))return-1;if(c!==lp&&Hr(qe)&32768&&!(Me.flags&1024)&&(Me.flags&2688||(c===q_||c===ul)&&Me.flags&256)){const un=Me===Me.regularType?Me.freshType:Me.regularType,er=Me.flags&128?yt:Me.flags&256?Gt:Me.flags&2048?gr:void 0;return er&&Hg(sn,er)||un&&Hg(sn,un)?-1:0}const Ut=RFe(qe,Me);if(Ut){const un=vr(Me,Ut,2,!1,void 0,Vt);if(un)return un}}for(const Ut of sn){const un=vr(Me,Ut,2,!1,void 0,Vt);if(un)return un}if(ct){const Ut=$8e(Me,qe,vr);Ut&&vr(Me,Ut,2,!0,void 0,Vt)}return 0}function Nf(Me,qe,ct,Vt){let sn=-1;const Ut=qe.types;for(const un of Ut){const er=vr(Me,un,2,ct,void 0,Vt);if(!er)return 0;sn&=er}return sn}function Sl(Me,qe,ct,Vt){const sn=Me.types;if(Me.flags&1048576&&Hg(sn,qe))return-1;const Ut=sn.length;for(let un=0;un=un.types.length&&Ut.length%un.types.length===0){const li=vr(fr,un.types[er%un.types.length],3,!1,void 0,Vt);if(li){sn&=li;continue}}const Br=vr(fr,qe,1,ct,void 0,Vt);if(!Br)return 0;sn&=Br}return sn}function jL(Me=se,qe=se,ct=se,Vt,sn){if(Me.length!==qe.length&&c===Jd)return 0;const Ut=Me.length<=qe.length?Me.length:qe.length;let un=-1;for(let er=0;er(xi|=bn?16:8,lr(bn)));let ho;return Tn===3?((Ut=xr)==null||Ut.instant(xr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Me.id,sourceIdStack:Te.map(bn=>bn.id),targetId:qe.id,targetIdStack:et.map(bn=>bn.id),depth:Dt,targetDepth:$t}),ho=3):((un=xr)==null||un.push(xr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Me.id,targetId:qe.id}),ho=UL(Me,qe,ct,Vt),(er=xr)==null||er.pop()),Go&&(Go=lr),sn&1&&Dt--,sn&2&&$t--,Tn=mi,ho?(ho===-1||Dt===0&&$t===0)&&ts(ho===-1||ho===3):(c.set(fr,2|xi),fi--,ts(!1)),ho;function ts(bn){for(let Yr=li;Yrer!==Me)&&(Ut=vr(un,qe,1,!1,void 0,Vt))}Ut&&!(Vt&2)&&qe.flags&2097152&&!xA(qe)&&Me.flags&2621440?(Ut&=Pa(Me,qe,ct,void 0,!1,0),Ut&&Uv(Me)&&Hr(Me)&8192&&(Ut&=we(Me,qe,!1,ct,0))):Ut&&yY(qe)&&!Q0(qe)&&Me.flags&2097152&&Du(Me).flags&3670016&&!vt(Me.types,un=>un===qe||!!(Hr(un)&262144))&&(Ut&=Pa(Me,qe,ct,void 0,!0,Vt))}return Ut&&ii(sn),Ut}function af(Me,qe){const ct=Du(H0(qe)),Vt=[];return yhe(ct,8576,!1,sn=>void Vt.push(io(Me,WW(qe.mapper,th(qe),sn)))),pi(Vt)}function S8(Me,qe,ct,Vt,sn){let Ut,un,er=!1,fr=Me.flags;const Br=qe.flags;if(c===Jd){if(fr&3145728){let lr=gc(Me,qe);return lr&&(lr&=gc(qe,Me)),lr}if(fr&4194304)return vr(Me.type,qe.type,3,!1);if(fr&8388608&&(Ut=vr(Me.objectType,qe.objectType,3,!1))&&(Ut&=vr(Me.indexType,qe.indexType,3,!1))||fr&16777216&&Me.root.isDistributive===qe.root.isDistributive&&(Ut=vr(Me.checkType,qe.checkType,3,!1))&&(Ut&=vr(Me.extendsType,qe.extendsType,3,!1))&&(Ut&=vr(pT(Me),pT(qe),3,!1))&&(Ut&=vr(fT(Me),fT(qe),3,!1))||fr&33554432&&(Ut=vr(Me.baseType,qe.baseType,3,!1))&&(Ut&=vr(Me.constraint,qe.constraint,3,!1)))return Ut;if(fr&134217728&&Qp(Me.texts,qe.texts)){const lr=Me.types,xi=qe.types;Ut=-1;for(let ho=0;ho!!(xi.flags&262144));){if(Ut=vr(lr,qe,1,!1))return Ut;lr=Uu(lr)}return 0}}else if(Br&4194304){const lr=qe.type;if(fr&4194304&&(Ut=vr(lr,Me.type,3,!1)))return Ut;if(Ka(lr)){if(Ut=vr(Me,r8e(lr),2,ct))return Ut}else{const xi=vhe(lr);if(xi){if(vr(Me,T_(xi,qe.indexFlags|4),2,ct)===-1)return-1}else if(up(lr)){const ho=Fv(lr),ts=Rf(lr);let bn;if(ho&&zC(lr)){const Yr=af(ho,lr);bn=pi([Yr,ho])}else bn=ho||ts;if(vr(Me,bn,2,ct)===-1)return-1}}}else if(Br&8388608){if(fr&8388608){if((Ut=vr(Me.objectType,qe.objectType,3,ct))&&(Ut&=vr(Me.indexType,qe.indexType,3,ct)),Ut)return Ut;ct&&(un=U)}if(c===qd||c===lp){const lr=qe.objectType,xi=qe.indexType,ho=Ld(lr)||lr,ts=Ld(xi)||xi;if(!xA(ho)&&!RA(ts)){const bn=4|(ho!==lr?2:0),Yr=uT(ho,ts,bn);if(Yr){if(ct&&un&&ii(sn),Ut=vr(Me,Yr,2,ct,void 0,Vt))return Ut;ct&&un&&U&&(U=li([un])<=li([U])?un:U)}}}ct&&(un=void 0)}else if(up(qe)&&c!==Jd){const lr=!!qe.declaration.nameType,xi=Vg(qe),ho=Z_(qe);if(!(ho&8)){if(!lr&&xi.flags&8388608&&xi.objectType===Me&&xi.indexType===th(qe))return-1;if(!up(Me)){const ts=lr?Fv(qe):Rf(qe),bn=T_(Me,2),Yr=ho&4,Fo=Yr?jz(ts,bn):void 0;if(Yr?!(Fo.flags&131072):vr(ts,bn,3)){const bo=Vg(qe),Ya=th(qe),hs=PL(bo,-98305);if(!lr&&hs.flags&8388608&&hs.indexType===Ya){if(Ut=vr(Me,hs.objectType,2,ct))return Ut}else{const No=lr?Fo||ts:Fo?Ma([Fo,Ya]):Ya,Pc=Xp(Me,No);if(Ut=vr(Pc,bo,3,ct))return Ut}}un=U,ii(sn)}}}else if(Br&16777216){if(sR(qe,et,$t,10))return 3;const lr=qe;if(!lr.root.inferTypeParameters&&!Adt(lr.root)&&!(Me.flags&16777216&&Me.root===lr.root)){const xi=!sa(zW(lr.checkType),zW(lr.extendsType)),ho=!xi&&sa(NA(lr.checkType),NA(lr.extendsType));if((Ut=xi?-1:vr(Me,pT(lr),2,!1,void 0,Vt))&&(Ut&=ho?-1:vr(Me,fT(lr),2,!1,void 0,Vt),Ut))return Ut}}else if(Br&134217728){if(fr&134217728){if(c===lp)return Qut(Me,qe)?0:-1;io(Me,Tc)}if(UY(Me,qe))return-1}else if(qe.flags&268435456&&!(Me.flags&268435456)&&jY(Me,qe))return-1;if(fr&8650752){if(!(fr&8388608&&Br&8388608)){const lr=bA(Me)||Nt;if(Ut=vr(lr,qe,1,!1,void 0,Vt))return Ut;if(Ut=vr(Kp(lr,Me),qe,1,ct&&lr!==Nt&&!(Br&fr&262144),void 0,Vt))return Ut;if(Ehe(Me)){const xi=bA(Me.indexType);if(xi&&(Ut=vr(Xp(Me.objectType,xi),qe,1,ct)))return Ut}}}else if(fr&4194304){const lr=Qhe(Me.type,Me.indexFlags)&&Hr(Me.type)&32;if(Ut=vr(Ii,qe,1,ct&&!lr))return Ut;if(lr){const xi=Me.type,ho=Fv(xi),ts=ho&&zC(xi)?af(ho,xi):ho||Rf(xi);if(Ut=vr(ts,qe,1,ct))return Ut}}else if(fr&134217728&&!(Br&524288)){if(!(Br&134217728)){const lr=Ld(Me);if(lr&&lr!==Me&&(Ut=vr(lr,qe,1,ct)))return Ut}}else if(fr&268435456)if(Br&268435456){if(Me.symbol!==qe.symbol)return 0;if(Ut=vr(Me.type,qe.type,3,ct))return Ut}else{const lr=Ld(Me);if(lr&&(Ut=vr(lr,qe,1,ct)))return Ut}else if(fr&16777216){if(sR(Me,Te,Dt,10))return 3;if(Br&16777216){const ho=Me.root.inferTypeParameters;let ts=Me.extendsType,bn;if(ho){const Yr=JW(ho,void 0,0,Ui);Jg(Yr.inferences,qe.extendsType,ts,1536),ts=io(ts,Yr.mapper),bn=Yr.mapper}if(qg(ts,qe.extendsType)&&(vr(Me.checkType,qe.checkType,3)||vr(qe.checkType,Me.checkType,3))&&((Ut=vr(io(pT(Me),bn),pT(qe),3,ct))&&(Ut&=vr(fT(Me),fT(qe),3,ct)),Ut))return Ut}const lr=bhe(Me);if(lr&&(Ut=vr(lr,qe,1,ct)))return Ut;const xi=!(Br&16777216)&&qz(Me)?uWe(Me):void 0;if(xi&&(ii(sn),Ut=vr(xi,qe,1,ct)))return Ut}else{if(c!==q_&&c!==ul&&Plt(qe)&&zy(Me))return-1;if(up(qe))return up(Me)&&(Ut=Ht(Me,qe,ct))?Ut:0;const lr=!!(fr&402784252);if(c!==Jd)Me=Du(Me),fr=Me.flags;else if(up(Me))return 0;if(Hr(Me)&4&&Hr(qe)&4&&Me.target===qe.target&&!Ka(Me)&&!(RY(Me)||RY(qe))){if(PY(Me))return-1;const xi=S_e(Me.target);if(xi===se)return 1;const ho=mi(ol(Me),ol(qe),xi,Vt);if(ho!==void 0)return ho}else{if(RL(qe)?Ep(Me,Q0):im(qe)&&Ep(Me,xi=>Ka(xi)&&!xi.target.readonly))return c!==Jd?vr(q0(Me,Gt)||Ue,q0(qe,Gt)||Ue,3,ct):0;if(mT(Me)&&Ka(qe)&&!mT(qe)){const xi=b_(Me);if(xi!==Me)return vr(xi,qe,1,ct)}else if((c===q_||c===ul)&&zy(qe)&&Hr(qe)&8192&&!zy(Me))return 0}if(fr&2621440&&Br&524288){const xi=ct&&U===sn.errorInfo&&!lr;if(Ut=Pa(Me,qe,xi,void 0,!1,Vt),Ut&&(Ut&=Gs(Me,qe,0,xi,Vt),Ut&&(Ut&=Gs(Me,qe,1,xi,Vt),Ut&&(Ut&=we(Me,qe,lr,xi,Vt)))),er&&Ut)U=un||U||sn.errorInfo;else if(Ut)return Ut}if(fr&2621440&&Br&1048576){const xi=PL(qe,36175872);if(xi.flags&1048576){const ho=Nn(Me,xi);if(ho)return ho}}}return 0;function li(lr){return lr?gu(lr,(xi,ho)=>xi+1+li(ho.next),0):0}function mi(lr,xi,ho,ts){if(Ut=jL(lr,xi,ho,ct,ts))return Ut;if(vt(ho,Yr=>!!(Yr&24))){un=void 0,ii(sn);return}const bn=xi&&uut(xi,ho);if(er=!bn,ho!==se&&!bn){if(er&&!(ct&&vt(ho,Yr=>(Yr&7)===0)))return 0;un=U,ii(sn)}}}function Ht(Me,qe,ct){if(c===lp||(c===Jd?Z_(Me)===Z_(qe):yL(Me)<=yL(qe))){let sn;const Ut=Rf(qe),un=io(Rf(Me),yL(Me)<0?$s:Tc);if(sn=vr(Ut,un,3,ct)){const er=Yp([th(Me)],[th(qe)]);if(io(Fv(Me),er)===io(Fv(qe),er))return sn&vr(io(Vg(Me),er),Vg(qe),3,ct)}}return 0}function Nn(Me,qe){var ct;const Vt=bs(Me),sn=xFe(Vt,qe);if(!sn)return 0;let Ut=1;for(const mi of sn)if(Ut*=xpt(xh(mi)),Ut>25)return(ct=xr)==null||ct.instant(xr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Me.id,targetId:qe.id,numCombinations:Ut}),0;const un=new Array(sn.length),er=new Set;for(let mi=0;mimi[ho],!1,0,ie||c===lp))continue e}kf(Br,xi,nb),lr=!0}if(!lr)return 0}let li=-1;for(const mi of Br)if(li&=Pa(Me,mi,!1,er,!1,0),li&&(li&=Gs(Me,mi,0,!1,0),li&&(li&=Gs(Me,mi,1,!1,0),li&&!(Ka(Me)&&Ka(mi))&&(li&=we(Me,mi,!1,!1,0)))),!li)return li;return li}function $n(Me,qe){if(!qe||Me.length===0)return Me;let ct;for(let Vt=0;Vt5?mo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,sr(Me),sr(qe),Bt(Ut.slice(0,4),un=>po(un)).join(", "),Ut.length-4):mo(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,sr(Me),sr(qe),Bt(Ut,un=>po(un)).join(", ")),sn&&U&&yr++)}function Pa(Me,qe,ct,Vt,sn,Ut){if(c===Jd)return Wa(Me,qe,Vt);let un=-1;if(Ka(qe)){if(Q0(Me)){if(!qe.target.readonly&&(RL(Me)||Ka(Me)&&Me.target.readonly))return 0;const mi=Gv(Me),lr=Gv(qe),xi=Ka(Me)?Me.target.combinedFlags&4:4,ho=!!(qe.target.combinedFlags&12),ts=Ka(Me)?Me.target.minLength:0,bn=qe.target.minLength;if(!xi&&mi=bo?lr-1-Math.min(Lc,Ya):No,_u=qe.target.elementFlags[Od];if(_u&8&&!(Pc&8))return ct&&mo(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Od),0;if(Pc&8&&!(_u&12))return ct&&mo(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,No,Od),0;if(_u&1&&!(Pc&1))return ct&&mo(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Od),0;if(hs&&((Pc&12||_u&12)&&(hs=!1),hs&&(Vt!=null&&Vt.has(""+No))))continue;const qu=Vy(Yr[No],!!(Pc&_u&2)),qy=Fo[Od],aS=Pc&8&&_u&4?Yd(qy):Vy(qy,!!(_u&2)),WE=vr(qu,aS,3,ct,void 0,Ut);if(!WE)return ct&&(lr>1||mi>1)&&(ho&&No>=bo&&Lc>=Ya&&bo!==mi-Ya-1?Ko(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,bo,mi-Ya-1,Od):Ko(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,No,Od)),0;un&=WE}return un}if(qe.target.combinedFlags&12)return 0}const er=(c===q_||c===ul)&&!Uv(Me)&&!PY(Me)&&!Ka(Me),fr=z_e(Me,qe,er,!1);if(fr)return ct&&Qc(Me,qe)&&gi(Me,qe,fr,er),0;if(Uv(qe)){for(const mi of $n(bs(Me),Vt))if(!EE(qe,mi.escapedName)&&!(_r(mi).flags&32768))return ct&&mo(f.Property_0_does_not_exist_on_type_1,po(mi),sr(qe)),0}const Br=bs(qe),li=Ka(Me)&&Ka(qe);for(const mi of $n(Br,Vt)){const lr=mi.escapedName;if(!(mi.flags&4194304)&&(!li||Ag(lr)||lr==="length")&&(!sn||mi.flags&16777216)){const xi=Ea(Me,lr);if(xi&&xi!==mi){const ho=Gr(Me,qe,xi,mi,xh,ct,Ut,c===lp);if(!ho)return 0;un&=ho}}}return un}function Wa(Me,qe,ct){if(!(Me.flags&524288&&qe.flags&524288))return 0;const Vt=$n(zv(Me),ct),sn=$n(zv(qe),ct);if(Vt.length!==sn.length)return 0;let Ut=-1;for(const un of Vt){const er=EE(qe,un.escapedName);if(!er)return 0;const fr=A_e(un,er,vr);if(!fr)return 0;Ut&=fr}return Ut}function Gs(Me,qe,ct,Vt,sn){var Ut,un;if(c===Jd)return oS(Me,qe,ct);if(qe===As||Me===As)return-1;const er=Me.symbol&&A_(Me.symbol.valueDeclaration),fr=qe.symbol&&A_(qe.symbol.valueDeclaration),Br=na(Me,er&&ct===1?0:ct),li=na(qe,fr&&ct===1?0:ct);if(ct===1&&Br.length&&li.length){const ts=!!(Br[0].flags&4),bn=!!(li[0].flags&4);if(ts&&!bn)return Vt&&mo(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!pn(Br[0],li[0],Vt))return 0}let mi=-1;const lr=ct===1?pp:hu,xi=Hr(Me),ho=Hr(qe);if(xi&64&&ho&64&&Me.symbol===qe.symbol||xi&4&&ho&4&&Me.target===qe.target){C.assertEqual(Br.length,li.length);for(let ts=0;tsaT(bo,void 0,262144,ct);return mo(f.Type_0_is_not_assignable_to_type_1,Fo(bn),Fo(Yr)),mo(f.Types_of_construct_signatures_are_incompatible),mi}}else e:for(const ts of li){const bn=zi();let Yr=Vt;for(const Fo of Br){const bo=iS(Fo,ts,!0,Yr,sn,lr(Fo,ts));if(bo){mi&=bo,ii(bn);continue e}Yr=!1}return Yr&&mo(f.Type_0_provides_no_match_for_the_signature_1,sr(Me),aT(ts,void 0,void 0,ct)),0}return mi}function Qc(Me,qe){const ct=Kz(Me,0),Vt=Kz(Me,1),sn=zv(Me);return(ct.length||Vt.length)&&!sn.length?!!(na(qe,0).length&&ct.length||na(qe,1).length&&Vt.length):!0}function hu(Me,qe){return Me.parameters.length===0&&qe.parameters.length===0?(ct,Vt)=>Ko(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sr(ct),sr(Vt)):(ct,Vt)=>Ko(f.Call_signature_return_types_0_and_1_are_incompatible,sr(ct),sr(Vt))}function pp(Me,qe){return Me.parameters.length===0&&qe.parameters.length===0?(ct,Vt)=>Ko(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,sr(ct),sr(Vt)):(ct,Vt)=>Ko(f.Construct_signature_return_types_0_and_1_are_incompatible,sr(ct),sr(Vt))}function iS(Me,qe,ct,Vt,sn,Ut){const un=c===q_?16:c===ul?24:0;return __e(ct?LW(Me):Me,ct?LW(qe):qe,un,Vt,mo,Ut,er,Tc);function er(fr,Br,li){return vr(fr,Br,3,li,void 0,sn)}}function oS(Me,qe,ct){const Vt=na(Me,ct),sn=na(qe,ct);if(Vt.length!==sn.length)return 0;let Ut=-1;for(let un=0;unfr.keyType===yt);let er=-1;for(const fr of Ut){const Br=c!==ul&&!ct&&un&&fr.type.flags&1?-1:up(Me)&&un?vr(Vg(Me),fr.type,3,Vt):ae(Me,fr,Vt,sn);if(!Br)return 0;er&=Br}return er}function ae(Me,qe,ct,Vt){const sn=CW(Me,qe.keyType);return sn?Q$(sn,qe,ct,Vt):!(Vt&1)&&(c!==ul||Hr(Me)&8192)&&FY(Me)?sB(Me,qe,ct,Vt):(ct&&mo(f.Index_signature_for_type_0_is_missing_in_type_1,sr(qe.keyType),sr(Me)),0)}function on(Me,qe){const ct=Xd(Me),Vt=Xd(qe);if(ct.length!==Vt.length)return 0;for(const sn of Vt){const Ut=jg(Me,sn.keyType);if(!(Ut&&vr(Ut.type,sn.type,3)&&Ut.isReadonly===sn.isReadonly))return 0}return-1}function pn(Me,qe,ct){if(!Me.declaration||!qe.declaration)return!0;const Vt=AI(Me.declaration,6),sn=AI(qe.declaration,6);return sn===2||sn===4&&Vt!==2||sn!==4&&!Vt?!0:(ct&&mo(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,V0(Vt),V0(sn)),!1)}}function v_e(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!$e(n.types,v_e);if(n.flags&465829888){const a=bA(n);if(a&&a!==n)return v_e(a)}return Nh(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function Y8e(n,a){return Ka(n)&&Ka(a)?se:bs(a).filter(c=>xY(_n(n,c.escapedName),_r(c)))}function xY(n,a){return!!n&&!!a&&tc(n,32768)&&!!HW(a)}function cut(n){return bs(n).filter(a=>HW(_r(a)))}function $8e(n,a,c=m_e){return x7e(n,a,c)||Pbt(n,a)||Lbt(n,a)||kbt(n,a)||wbt(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(Ie,Q))?U=!0:m[H]=3)}for(let H=0;Hm[w]),0):n;return b.flags&131072?n:b}function T_e(n){if(n.flags&524288){const a=Dh(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?T_e(n.baseType):n.flags&2097152?Hn(n.types,T_e):!1}function dut(n,a,c){for(const p of bs(n))if(d$(a,p.escapedName,c))return!0;return!1}function S_e(n){return n===es||n===Va||n.objectFlags&8?F:Z8e(n.symbol,n.typeParameters)}function Q8e(n){return Z8e(n,Jr(n).typeParameters)}function Z8e(n,a=se){var c,p;const m=Jr(n);if(!m.variances){(c=xr)==null||c.push(xr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:pd(qs(n))});const b=K1,I=Sv;K1||(K1=!0,Sv=Pg.length),m.variances=se;const w=[];for(const U of a){const H=E_e(U);let Q=H&16384?H&8192?0:1:H&8192?2:void 0;if(Q===void 0){let Ie=!1,Te=!1;const et=Go;Go=$t=>$t?Te=!0:Ie=!0;const Tt=d5(n,U,Fs),Dt=d5(n,U,Ee);Q=(sa(Dt,Tt)?1:0)|(sa(Tt,Dt)?2:0),Q===3&&sa(d5(n,U,Y),Tt)&&(Q=4),Go=et,(Ie||Te)&&(Ie&&(Q|=8),Te&&(Q|=16))}w.push(Q)}b||(K1=!1,Sv=I),m.variances=w,(p=xr)==null||p.pop({variances:w.map(C.formatVariance)})}return m.variances}function d5(n,a,c){const p=CE(a,c),m=qs(n);if(pr(m))return m;const b=n.flags&524288?VC(n,Fy(Jr(n).typeParameters,p)):ky(m,Fy(m.typeParameters,p));return ht.add(pd(b)),b}function RY(n){return ht.has(pd(n))}function E_e(n){var a;return gu((a=n.symbol)==null?void 0:a.declarations,(c,p)=>c|Gd(p),0)&28672}function uut(n,a){for(let c=0;c!!(a.flags&262144)||DY(a))}function mut(n,a,c,p){const m=[];let b="";const I=U(n,0),w=U(a,0);return`${b}${I},${w}${c}`;function U(H,Q=0){let Ie=""+H.target.id;for(const Te of ol(H)){if(Te.flags&262144){if(p||put(Te)){let et=m.indexOf(Te);et<0&&(et=m.length,m.push(Te)),Ie+="="+et;continue}b="*"}else if(Q<4&&DY(Te)){Ie+="<"+U(Te,Q+1)+">";continue}Ie+="-"+Te.id}return Ie}}function CY(n,a,c,p,m){if(p===Jd&&n.id>a.id){const I=n;n=a,a=I}const b=c?":"+c:"";return DY(n)&&DY(a)?mut(n,a,b,m):`${n.id},${a.id}${b}`}function u5(n,a){if(Wl(n)&6){for(const c of n.links.containingType.types){const p=Ea(c,n.escapedName),m=p&&u5(p,a);if(m)return m}return}return a(n)}function aR(n){return n.parent&&n.parent.flags&32?qs(Yc(n)):void 0}function NY(n){const a=aR(n),c=a&&eh(a)[0];return c&&_n(c,n.escapedName)}function hut(n,a){return u5(n,c=>{const p=aR(c);return p?Ur(p,a):!1})}function _ut(n,a){return!u5(a,c=>Vf(c)&4?!hut(n,aR(c)):!1)}function eFe(n,a,c){return u5(a,p=>Vf(p,c)&4?!Ur(n,aR(p)):!1)?void 0:n}function sR(n,a,c,p=3){if(c>=p){if((Hr(n)&96)===96&&(n=tFe(n)),n.flags&2097152)return vt(n.types,w=>sR(w,a,c,p));const m=MY(n);let b=0,I=0;for(let w=0;w=I&&(b++,b>=p))return!0;I=U.id}}}return!1}function tFe(n){let a;for(;(Hr(n)&96)===96&&(a=H0(n))&&(a.symbol||a.flags&2097152&&vt(a.types,c=>!!c.symbol));)n=a;return n}function nFe(n,a){return(Hr(n)&96)===96&&(n=tFe(n)),n.flags&2097152?vt(n.types,c=>nFe(c,a)):MY(n)===a}function MY(n){if(n.flags&524288&&!G_e(n)){if(Hr(n)&4&&n.node)return n.node;if(n.symbol&&!(Hr(n)&16&&n.symbol.flags&32))return n.symbol;if(Ka(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 gut(n,a){return A_e(n,a,BW)!==0}function A_e(n,a,c){if(n===a)return-1;const p=Vf(n)&6,m=Vf(a)&6;if(p!==m)return 0;if(p){if(nN(n)!==nN(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return wh(n)!==wh(a)?0:c(_r(n),_r(a))}function yut(n,a,c){const p=Ap(n),m=Ap(a),b=kh(n),I=kh(a),w=rg(n),U=rg(a);return!!(p===m&&b===I&&w===U||c&&b<=I)}function p5(n,a,c,p,m,b){if(n===a)return-1;if(!yut(n,a,c)||Ze(n.typeParameters)!==Ze(a.typeParameters))return 0;if(a.typeParameters){const U=Yp(n.typeParameters,a.typeParameters);for(let H=0;Ha|(c.flags&1048576?rFe(c.types):c.flags),0)}function Tut(n){if(n.length===1)return n[0];const a=ie?Zi(n,p=>Ec(p,m=>!(m.flags&98304))):n,c=but(a)?pi(a):Sut(a);return a===n?c:h5(c,rFe(n)&98304)}function Sut(n){const a=gu(n,(c,p)=>xL(c,p)?p:c);return Hn(n,c=>c===a||xL(c,a))?a:gu(n,(c,p)=>NE(c,p)?p:c)}function Eut(n){return gu(n,(a,c)=>NE(c,a)?c:a)}function im(n){return!!(Hr(n)&4)&&(n.target===es||n.target===Va)}function RL(n){return!!(Hr(n)&4)&&n.target===Va}function Q0(n){return im(n)||Ka(n)}function f5(n){return im(n)&&!RL(n)||Ka(n)&&!n.target.readonly}function m5(n){return im(n)?ol(n)[0]:void 0}function jv(n){return im(n)||!(n.flags&98304)&&sa(n,jp)}function I_e(n){return f5(n)||!(n.flags&98305)&&sa(n,bd)}function x_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=Pm(a);if(m&&m.expression.kind!==80&&m.expression.kind!==212)return}const c=eh(a);if(c.length!==1||Q_(n.symbol).size)return;let p=Ze(a.typeParameters)?io(c[0],Yp(a.typeParameters,ol(n).slice(0,a.typeParameters.length))):c[0];return Ze(ol(n))>Ze(a.typeParameters)&&(p=Kp(p,Ba(ol(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=p}function iFe(n){return ie?n===En:n===B}function PY(n){const a=m5(n);return!!a&&iFe(a)}function DL(n){let a;return Ka(n)||!!Ea(n,"0")||jv(n)&&!!(a=_n(n,"length"))&&Ep(a,c=>!!(c.flags&256))}function LY(n){return jv(n)||DL(n)}function Aut(n,a){const c=_n(n,""+a);if(c)return c;if(Ep(n,Ka))return lFe(n,a,O.noUncheckedIndexedAccess?he:void 0)}function Iut(n){return!(n.flags&240544)}function Nh(n){return!!(n.flags&109472)}function oFe(n){const a=b_(n);return a.flags&2097152?vt(a.types,Nh):Nh(a)}function xut(n){return n.flags&2097152&&hn(n.types,Nh)||n}function jW(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Hn(n.types,Nh):Nh(n)}function By(n){return n.flags&1056?ZX(n):n.flags&402653312?yt:n.flags&256?Gt:n.flags&2048?gr:n.flags&512?jt:n.flags&1048576?Rut(n):n}function Rut(n){const a=`B${pd(n)}`;return Gu(a)??Cm(a,Tl(n,By))}function R_e(n){return n.flags&402653312?yt:n.flags&288?Gt:n.flags&2048?gr:n.flags&512?jt:n.flags&1048576?Tl(n,R_e):n}function Z0(n){return n.flags&1056&&DE(n)?ZX(n):n.flags&128&&DE(n)?yt:n.flags&256&&DE(n)?Gt:n.flags&2048&&DE(n)?gr:n.flags&512&&DE(n)?jt:n.flags&1048576?Tl(n,Z0):n}function aFe(n){return n.flags&8192?Qt:n.flags&1048576?Tl(n,aFe):n}function D_e(n,a){return I$(n,a)||(n=aFe(Z0(n))),Cu(n)}function Dut(n,a,c){if(n&&Nh(n)){const p=a?c?p8(a):a:void 0;n=D_e(n,p)}return n}function C_e(n,a,c,p){if(n&&Nh(n)){const m=a?qv(c,a,p):void 0;n=D_e(n,m)}return n}function Ka(n){return!!(Hr(n)&4&&n.target.objectFlags&8)}function mT(n){return Ka(n)&&!!(n.target.combinedFlags&8)}function sFe(n){return mT(n)&&n.target.elementFlags.length===1}function kY(n){return CL(n,n.target.fixedLength)}function lFe(n,a,c){return Tl(n,p=>{const m=p,b=kY(m);return b?c&&a>=Jhe(m.target)?pi([b,c]):b:he})}function Cut(n){const a=kY(n);return a&&Yd(a)}function CL(n,a,c=0,p=!1,m=!1){const b=Gv(n)-c;if(a(c&12)===(a.target.elementFlags[p]&12))}function cFe({value:n}){return n.base10Value==="0"}function dFe(n){return Ec(n,a=>Mh(a,4194304))}function Mut(n){return Tl(n,Put)}function Put(n){return n.flags&4?TC:n.flags&8?tL:n.flags&64?SC:n===Jn||n===nr||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&cFe(n)?n:yn}function h5(n,a){const c=a&~n.flags&98304;return c===0?n:pi(c===32768?[n,he]:c===65536?[n,Xt]:[n,he,Xt])}function hT(n,a=!1){C.assert(ie);const c=a?te:he;return n===c||n.flags&1048576&&n.types[0]===c?n:pi([n,c])}function Lut(n){return Au||(Au=UC("NonNullable",524288,void 0)||ne),Au!==ne?VC(Au,[n]):Ma([n,Ra])}function Gy(n){return ie?kA(n,2097152):n}function uFe(n){return ie?pi([n,xt]):n}function wY(n){return ie?qY(n,xt):n}function OY(n,a,c){return c?LN(a)?hT(n):uFe(n):n}function UW(n,a){return hF(a)?Gy(n):tu(a)?wY(n):n}function Vy(n,a){return Ce&&a?qY(n,Ae):n}function HW(n){return n===Ae||!!(n.flags&1048576)&&n.types[0]===Ae}function WY(n){return Ce?qY(n,Ae):om(n,524288)}function kut(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function FY(n){const a=Hr(n);return n.flags&2097152?Hn(n.types,FY):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!U$(n))||!!(a&4194304)||!!(a&1024&&FY(n.source))}function MA(n,a){const c=ja(n.flags,n.escapedName,Wl(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 wut(n,a){const c=da();for(const p of zv(n)){const m=_r(p),b=a(m);c.set(p.escapedName,b===m?p:MA(p,b))}return c}function qW(n){if(!(Uv(n)&&Hr(n)&8192))return n;const a=n.regularType;if(a)return a;const c=n,p=wut(n,qW),m=bl(c.symbol,p,c.callSignatures,c.constructSignatures,c.indexInfos);return m.flags=c.flags,m.objectFlags|=c.objectFlags&-8193,n.regularType=m,m}function pFe(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function fFe(n){if(!n.siblings){const a=[];for(const c of fFe(n.parent))if(Uv(c)){const p=EE(c,n.propertyName);p&&wA(_r(p),m=>{a.push(m)})}n.siblings=a}return n.siblings}function Out(n){if(!n.resolvedProperties){const a=new Map;for(const c of fFe(n))if(Uv(c)&&!(Hr(c)&2097152))for(const p of bs(c))a.set(p.escapedName,p);n.resolvedProperties=Co(a.values())}return n.resolvedProperties}function Wut(n,a){if(!(n.flags&4))return n;const c=_r(n),p=a&&pFe(a,n.escapedName,void 0),m=N_e(c,p);return m===c?n:MA(n,m)}function Fut(n){const a=le.get(n.escapedName);if(a)return a;const c=MA(n,te);return c.flags|=16777216,le.set(n.escapedName,c),c}function zut(n,a){const c=da();for(const m of zv(n))c.set(m.escapedName,Wut(m,a));if(a)for(const m of Out(a))c.has(m.escapedName)||c.set(m.escapedName,Fut(m));const p=bl(n.symbol,c,se,se,Zi(Xd(n),m=>Ug(m.keyType,$p(m.type),m.isReadonly,m.declaration,m.components)));return p.objectFlags|=Hr(n)&266240,p}function $p(n){return N_e(n,void 0)}function N_e(n,a){if(Hr(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=Ue;else if(Uv(n))c=zut(n,a);else if(n.flags&1048576){const p=a||pFe(void 0,void 0,n.types),m=Zi(n.types,b=>b.flags&98304?b:N_e(b,p));c=pi(m,vt(m,zy)?2:1)}else n.flags&2097152?c=Ma(Zi(n.types,$p)):Q0(n)&&(c=ky(n.target,Zi(ol(n),$p)));return c&&a===void 0&&(n.widened=c),c||n}return n}function zY(n){var a;let c=!1;if(Hr(n)&65536){if(n.flags&1048576)if(vt(n.types,zy))c=!0;else for(const p of n.types)c||(c=zY(p));else if(Q0(n))for(const p of ol(n))c||(c=zY(p));else if(Uv(n))for(const p of zv(n)){const m=_r(p);if(Hr(m)&65536&&(c=zY(m),!c)){const b=(a=p.declarations)==null?void 0:a.find(I=>{var w;return((w=I.symbol.valueDeclaration)==null?void 0:w.parent)===n.symbol.valueDeclaration});b&&(Qe(b,f.Object_literal_s_property_0_implicitly_has_an_1_type,po(p),sr($p(m))),c=!0)}}}return c}function eS(n,a,c){const p=sr($p(a));if(Ir(n)&&!IM(Fn(n),O))return;let m;switch(n.kind){case 227:case 173:case 172:m=ve?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 b=n;if(He(b.name)){const I=KE(b.name);if((UI(b.parent)||Vm(b.parent)||O_(b.parent))&&b.parent.parameters.includes(b)&&(gt(b,b.name.escapedText,788968,void 0,!0)||I&&IV(I))){const w="arg"+b.parent.parameters.indexOf(b),U=ws(b.name)+(b.dotDotDotToken?"[]":"");Km(ve,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,w,U);return}}m=n.dotDotDotToken?ve?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:ve?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,!ve)return;break;case 318:Qe(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return;case 324:ve&&CD(n.parent)&&Qe(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(ve&&!n.name){c===3?Qe(n,f.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,p):Qe(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,p);return}m=ve?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:ve&&Qe(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=ve?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}Km(ve,n,m,ws(Oo(n)),p)}function But(n,a){const c=o$(n);if(!c)return!0;let p=fs(c);const m=dc(n);switch(a){case 1:return m&1?p=qv(1,p,!!(m&2))??p:m&2&&(p=Uy(p)??p),X0(p);case 3:const b=qv(0,p,!!(m&2));return!!b&&X0(b);case 2:const I=qv(2,p,!!(m&2));return!!I&&X0(I)}return!1}function BY(n,a,c){r(()=>{ve&&Hr(a)&65536&&(!c||Ms(n)&&But(n,c))&&(zY(a)||eS(n,a,c))})}function M_e(n,a,c){const p=Ap(n),m=Ap(a),b=o8(n),I=o8(a),w=I?m-1:m,U=b?w:Math.min(p,w),H=J0(n);if(H){const Q=J0(a);Q&&c(H,Q)}for(let Q=0;Qa.typeParameter),Bt(n.inferences,(a,c)=>()=>(a.isFixed||(jut(n),GY(n.inferences),a.isFixed=!0),V_e(n,c))))}function Vut(n){return c_e(Bt(n.inferences,a=>a.typeParameter),Bt(n.inferences,(a,c)=>()=>V_e(n,c)))}function GY(n){for(const a of n)a.isFixed||(a.inferredType=void 0)}function k_e(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function jut(n){if(n.intraExpressionInferenceSites){for(const{node:a,type:c}of n.intraExpressionInferenceSites){const p=a.kind===175?v6e(a,2):Hu(a,2);p&&Jg(n.inferences,c,p)}n.intraExpressionInferenceSites=void 0}}function w_e(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function hFe(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 Uut(n){const a=Vn(n.inferences,tN);return a.length?L_e(Bt(a,hFe),n.signature,n.flags,n.compareTypes):void 0}function O_e(n){return n&&n.mapper}function _T(n){const a=Hr(n);if(a&524288)return!!(a&1048576);const c=!!(n.flags&465829888||n.flags&524288&&!_Fe(n)&&(a&4&&(n.node||vt(ol(n),_T))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!_Fe(n)&&vt(n.types,_T));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function _Fe(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 KW(n,a,c=0){return!!(n===a||n.flags&3145728&&vt(n.types,p=>KW(p,a,c))||c<3&&n.flags&16777216&&(KW(pT(n),a,c+1)||KW(fT(n),a,c+1)))}function Hut(n,a){const c=nm(n);return c?!!c.type&&KW(c.type,a):KW(fs(n),a)}function qut(n){const a=da();wA(n,p=>{if(!(p.flags&128))return;const m=Cl(p.value),b=ja(4,m);b.links.type=Ue,p.symbol&&(b.declarations=p.symbol.declarations,b.valueDeclaration=p.symbol.valueDeclaration),a.set(m,b)});const c=n.flags&4?[Ug(yt,Ra,!1)]:se;return bl(void 0,a,se,se,c)}function gFe(n,a,c){const p=n.id+","+a.id+","+c.id;if(Pd.has(p))return Pd.get(p);const m=Jut(n,a,c);return Pd.set(p,m),m}function W_e(n){return!(Hr(n)&262144)||Uv(n)&&vt(bs(n),a=>W_e(_r(a)))||Ka(n)&&vt(xE(n),W_e)}function Jut(n,a,c){if(!(jg(n,yt)||bs(n).length!==0&&W_e(n)))return;if(im(n)){const m=VY(ol(n)[0],a,c);return m?Yd(m,RL(n)):void 0}if(Ka(n)){const m=Bt(xE(n),I=>VY(I,a,c));if(!Hn(m,I=>!!I))return;const b=Z_(a)&4?Zi(n.target.elementFlags,I=>I&2?1:I):n.target.elementFlags;return tg(m,b,n.target.readonly,n.target.labeledElementDeclarations)}const p=_c(1040,void 0);return p.source=n,p.mappedType=a,p.constraintType=c,p}function Kut(n){const a=Jr(n);return a.type||(a.type=VY(n.links.propertyType,n.links.mappedType,n.links.constraintType)||Nt),a.type}function Xut(n,a,c){const p=Xp(c.type,th(a)),m=Vg(a),b=w_e(p);return Jg([b],n,m),yFe(b)||Nt}function VY(n,a,c){const p=n.id+","+a.id+","+c.id;if(vh.has(p))return vh.get(p)||Nt;A0.push(n),$1.push(a);const m=I0;sR(n,A0,A0.length,2)&&(I0|=1),sR(a,$1,$1.length,2)&&(I0|=2);let b;return I0!==3&&(b=Xut(n,a,c)),A0.pop(),$1.pop(),I0=m,vh.set(p,b),b}function*F_e(n,a,c,p){const m=bs(a);for(const b of m)if(!XOe(b)&&(c||!(b.flags&16777216||Wl(b)&48))){const I=Ea(n,b.escapedName);if(!I)yield b;else if(p){const w=_r(b);if(w.flags&109472){const U=_r(I);U.flags&1||Cu(U)===Cu(w)||(yield b)}}}}function z_e(n,a,c,p){return B8(F_e(n,a,c,p))}function Yut(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!(a.target.combinedFlags&12)&&(!!(n.target.combinedFlags&12)||a.target.fixedLengthrR(b,m),n)===n&&jY(n,a)}return!1}function TFe(n,a){if(a.flags&2097152)return Hn(a.types,c=>c===fa||TFe(n,c));if(a.flags&4||sa(n,a))return!0;if(n.flags&128){const c=n.value;return!!(a.flags&8&&bFe(c,!1)||a.flags&64&&$6(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&jY(n,a)||a.flags&134217728&&UY(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 SFe(n,a){return n.flags&128?EFe([n.value],se,a):n.flags&134217728?Qp(n.texts,a.texts)?Bt(n.types,(c,p)=>sa(b_(c),b_(a.types[p]))?c:ept(c)):EFe(n.texts,n.types,a):void 0}function UY(n,a){const c=SFe(n,a);return!!c&&Hn(c,(p,m)=>TFe(p,a.types[m]))}function ept(n){return n.flags&402653317?n:AA(["",""],[n])}function EFe(n,a,c){const p=n.length-1,m=n[0],b=n[p],I=c.texts,w=I.length-1,U=I[0],H=I[w];if(p===0&&m.length0){let rr=Te,yr=et;for(;yr=Tt(rr).indexOf(Tn,yr),!(yr>=0);){if(rr++,rr===n.length)return;yr=0}Dt(rr,yr),et+=Tn.length}else if(et!Ln(vr,ys)):qn,wo?Vn(ir,ys=>!Ln(wo,ys)):ir]}function rr(qn,ir,Ui){const vr=qn.length!!vn(wo));if(!vr||ir&&vr!==ir)return;ir=vr}return ir}function fi(qn,ir,Ui){let vr=0;if(Ui&1048576){let wo;const ys=qn.flags&1048576?qn.types:[qn],al=new Array(ys.length);let md=!1;for(const Xa of ir)if(vn(Xa))wo=Xa,vr++;else for(let cc=0;ccal[gc]?void 0:cc);if(Xa.length){Te(pi(Xa),wo);return}}}else for(const wo of ir)vn(wo)?vr++:Te(qn,wo);if(Ui&2097152?vr===1:vr>0)for(const wo of ir)vn(wo)&&et(qn,wo,1)}function oo(qn,ir,Ui){if(Ui.flags&1048576||Ui.flags&2097152){let vr=!1;for(const wo of Ui.types)vr=oo(qn,ir,wo)||vr;return vr}if(Ui.flags&4194304){const vr=vn(Ui.type);if(vr&&!vr.isFixed&&!vFe(qn)){const wo=gFe(qn,ir,Ui);wo&&et(wo,vr.typeParameter,Hr(qn)&262144?16:8)}return!0}if(Ui.flags&262144){et(T_(qn,qn.pattern?2:0),Ui,32);const vr=bA(Ui);if(vr&&oo(qn,ir,vr))return!0;const wo=Bt(bs(qn),_r),ys=Bt(Xd(qn),al=>al!==ro?al.type:yn);return Te(pi(lo(wo,ys)),Vg(ir)),!0}return!1}function ii(qn,ir){if(qn.flags&16777216)Te(qn.checkType,ir.checkType),Te(qn.extendsType,ir.extendsType),Te(pT(qn),pT(ir)),Te(fT(qn),fT(ir));else{const Ui=[pT(ir),fT(ir)];Dt(qn,Ui,ir.flags,m?64:0)}}function zi(qn,ir){const Ui=SFe(qn,ir),vr=ir.types;if(Ui||Hn(ir.texts,wo=>wo.length===0))for(let wo=0;woTs|Nf.flags,0);if(!(gc&4)){const Ts=ys.value;gc&296&&!bFe(Ts,!0)&&(gc&=-297),gc&2112&&!$6(Ts,!0)&&(gc&=-2113);const Nf=gu(cc,(Sl,nc)=>nc.flags&gc?Sl.flags&4?Sl:nc.flags&4?ys:Sl.flags&134217728?Sl:nc.flags&134217728&&UY(ys,nc)?ys:Sl.flags&268435456?Sl:nc.flags&268435456&&Ts===_8e(nc.symbol,Ts)?ys:Sl.flags&128?Sl:nc.flags&128&&nc.value===Ts?nc:Sl.flags&8?Sl:nc.flags&8?Ch(+Ts):Sl.flags&32?Sl:nc.flags&32?Ch(+Ts):Sl.flags&256?Sl:nc.flags&256&&nc.value===+Ts?nc:Sl.flags&64?Sl:nc.flags&64?Zut(Ts):Sl.flags&2048?Sl:nc.flags&2048&&OS(nc.value)===Ts?nc:Sl.flags&16?Sl:nc.flags&16?Ts==="true"?ft:Ts==="false"?nr:jt:Sl.flags&512?Sl:nc.flags&512&&nc.intrinsicName===Ts?nc:Sl.flags&32768?Sl:nc.flags&32768&&nc.intrinsicName===Ts?nc:Sl.flags&65536?Sl:nc.flags&65536&&nc.intrinsicName===Ts?nc:Sl:Sl,yn);if(!(Nf.flags&131072)){Te(Nf,al);continue}}}}Te(ys,al)}}function Ko(qn,ir){Te(Rf(qn),Rf(ir)),Te(Vg(qn),Vg(ir));const Ui=Fv(qn),vr=Fv(ir);Ui&&vr&&Te(Ui,vr)}function ms(qn,ir){var Ui,vr;if(Hr(qn)&4&&Hr(ir)&4&&(qn.target===ir.target||im(qn)&&im(ir))){rr(ol(qn),ol(ir),S_e(qn.target));return}if(up(qn)&&up(ir)&&Ko(qn,ir),Hr(ir)&32&&!ir.declaration.nameType){const wo=Rf(ir);if(oo(qn,ir,wo))return}if(!$ut(qn,ir)){if(Q0(qn)){if(Ka(ir)){const wo=Gv(qn),ys=Gv(ir),al=ol(ir),md=ir.target.elementFlags;if(Ka(qn)&&Nut(qn,ir)){for(let gc=0;gc0){const ys=na(ir,Ui),al=ys.length;for(let md=0;md1){const a=Vn(n,G_e);if(a.length){const c=pi(a,2);return lo(Vn(n,p=>!G_e(p)),[c])}}return n}function opt(n){return n.priority&416?Ma(n.contraCandidates):Eut(n.contraCandidates)}function apt(n,a){const c=ipt(n.candidates),p=rpt(n.typeParameter)||TA(n.typeParameter),m=!p&&n.topLevel&&(n.isFixed||!Hut(a,n.typeParameter)),b=p?Zi(c,Cu):m?Zi(c,Z0):c,I=n.priority&416?pi(b,2):Tut(b);return $p(I)}function V_e(n,a){const c=n.inferences[a];if(!c.inferredType){let p,m;if(n.signature){const I=c.candidates?apt(c,n.signature):void 0,w=c.contraCandidates?opt(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&&Uu(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=AE(c.typeParameter);U&&(p=io(U,w8e(Ldt(n,a),n.nonFixingMapper)))}}else p=yFe(c);c.inferredType=p||j_e(!!(n.flags&2));const b=Uu(c.typeParameter);if(b){const I=io(b,n.nonFixingMapper);(!p||!n.compareTypes(p,Kp(I,p)))&&(c.inferredType=m&&n.compareTypes(m,Kp(I,m))?m:I)}Rft()}return c.inferredType}function j_e(n){return n?Ue:Nt}function U_e(n){const a=[];for(let c=0;cgd(a)||bm(a)||wu(a)))}function _5(n,a,c,p){switch(n.kind){case 80:if(!MS(n)){const I=fu(n);return I!==ne?`${p?ls(p):"-1"}|${pd(a)}|${pd(c)}|${Ta(I)}`:void 0}case 110:return`0|${p?ls(p):"-1"}|${pd(a)}|${pd(c)}`;case 236:case 218:return _5(n.expression,a,c,p);case 167:const m=_5(n.left,a,c,p);return m&&`${m}.${n.right.escapedText}`;case 212:case 213:const b=PA(n);if(b!==void 0){const I=_5(n.expression,a,c,p);return I&&`${I}.${b}`}if(Ws(n)&&He(n.argumentExpression)){const I=fu(n.argumentExpression);if(lR(I)||$W(I)&&!YW(I)){const w=_5(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)}#${pd(a)}`}}function Ad(n,a){switch(a.kind){case 218:case 236:return Ad(n,a.expression);case 227:return id(a)&&Ad(n,a.left)||Nr(a)&&a.operatorToken.kind===28&&Ad(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 MS(n)?a.kind===110:a.kind===80&&fu(n)===fu(a)||(yi(a)||Ha(a))&&Et(fu(n))===Wr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 236:case 218:case 239:return Ad(n.expression,a);case 212:case 213:const c=PA(n);if(c!==void 0){const p=Ks(a)?PA(a):void 0;if(p!==void 0)return p===c&&Ad(n.expression,a.expression)}if(Ws(n)&&Ws(a)&&He(n.argumentExpression)&&He(a.argumentExpression)){const p=fu(n.argumentExpression);if(p===fu(a.argumentExpression)&&(lR(p)||$W(p)&&!YW(p)))return Ad(n.expression,a.expression)}break;case 167:return Ks(a)&&n.right.escapedText===PA(a)&&Ad(n.left,a.expression);case 227:return Nr(n)&&n.operatorToken.kind===28&&Ad(n.right,a)}return!1}function PA(n){if(qr(n))return n.name.escapedText;if(Ws(n))return spt(n);if(Ha(n)){const a=kv(n);return a?Cl(a):void 0}if(to(n))return""+n.parent.parameters.indexOf(n)}function q_e(n){return n.flags&8192?n.escapedName:n.flags&384?Cl(""+n.value):void 0}function spt(n){return uf(n.argumentExpression)?Cl(n.argumentExpression.text):Ds(n.argumentExpression)?lpt(n.argumentExpression):void 0}function lpt(n){const a=Gl(n,111551,!0);if(!a||!(lR(a)||a.flags&8))return;const c=a.valueDeclaration;if(c===void 0)return;const p=cT(c);if(p){const m=q_e(p);if(m!==void 0)return m}if(e1(c)&&Cy(c,n)){const m=hk(c);if(m){const b=Qo(c.parent)?zg(c):wd(m);return b&&q_e(b)}if(fy(c))return hI(c.name)}}function IFe(n,a){for(;Ks(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function LA(n,a){for(;tu(n);)if(n=n.expression,Ad(n,a))return!0;return!1}function NL(n,a){if(n&&n.flags&1048576){const c=yWe(n,a);if(c&&Wl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!X0(_r(c))),!!c.links.isDiscriminantProperty}return!1}function xFe(n,a){let c;for(const p of n)if(NL(a,p.escapedName)){if(c){c.push(p);continue}c=[p]}return c}function cpt(n,a){const c=new Map;let p=0;for(const m of n)if(m.flags&61603840){const b=_n(m,a);if(b){if(!jW(b))return;let I=!1;wA(b,w=>{const U=pd(Cu(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 g5(n){const a=n.types;if(!(a.length<10||Hr(n)&32768||_o(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){const c=$e(a,m=>m.flags&59506688?$e(bs(m),b=>Nh(_r(b))?b.escapedName:void 0):void 0),p=c&&cpt(a,c);n.keyPropertyName=p?c:"",n.constituentMap=p}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function y5(n,a){var c;const p=(c=n.constituentMap)==null?void 0:c.get(pd(Cu(a)));return p!==Nt?p:void 0}function RFe(n,a){const c=g5(n),p=c&&_n(a,c);return p&&y5(n,p)}function dpt(n,a){const c=g5(n),p=c&&hn(a.properties,b=>b.symbol&&b.kind===304&&b.symbol.escapedName===c&&R5(b.initializer)),m=p&&J5(p.initializer);return m&&y5(n,m)}function DFe(n,a){return Ad(n,a)||IFe(n,a)}function CFe(n,a){if(n.arguments){for(const c of n.arguments)if(DFe(a,c)||LA(c,a))return!0}return!!(n.expression.kind===212&&DFe(a,n.expression.expression))}function J_e(n){return n.id<=0&&(n.id=V1e,V1e++),n.id}function upt(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 ppt(n,a){if(n===a)return n;if(a.flags&131072)return a;const c=`A${pd(n)},${pd(a)}`;return Gu(c)??Cm(c,fpt(n,a))}function fpt(n,a){const c=Ec(n,m=>upt(a,m)),p=a.flags&512&&DE(a)?Tl(c,oR):c;return sa(a,p)?p:n}function K_e(n){if(Hr(n)&256)return!1;const a=Dh(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&NE(n,tr))}function JC(n,a){return X_e(n,a)&a}function Mh(n,a){return JC(n,a)!==0}function X_e(n,a){n.flags&467927040&&(n=Ld(n)||Nt);const c=n.flags;if(c&268435460)return ie?16317953:16776705;if(c&134217856){const p=c&128&&n.value==="";return ie?p?12123649:7929345:p?12582401:16776705}if(c&40)return ie?16317698:16776450;if(c&256){const p=n.value===0;return ie?p?12123394:7929090:p?12582146:16776450}if(c&64)return ie?16317188:16775940;if(c&2048){const p=cFe(n);return ie?p?12122884:7928580:p?12581636:16775940}return c&16?ie?16316168:16774920:c&528?ie?n===nr||n===Jn?12121864:7927560:n===nr||n===Jn?12580616:16774920:c&524288?a&(ie?83427327:83886079)?Hr(n)&16&&zy(n)?ie?83427327:83886079:K_e(n)?ie?7880640:16728e3:ie?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?ie?7925520:16772880:c&67108864?ie?7888800:16736160:c&131072?0:c&1048576?gu(n.types,(p,m)=>p|X_e(m,a),0):c&2097152?mpt(n,a):83886079}function mpt(n,a){const c=tc(n,402784252);let p=0,m=134217727;for(const b of n.types)if(!(c&&b.flags&524288)){const I=X_e(b,a);p|=I,m&=I}return p&8256|m&134209471}function om(n,a){return Ec(n,c=>Mh(c,a))}function kA(n,a){const c=Y_e(om(ie&&n.flags&2?qa:n,a));if(ie)switch(a){case 524288:return NFe(c,65536,131072,33554432,Xt);case 1048576:return NFe(c,131072,65536,16777216,he);case 2097152:case 4194304:return Tl(c,p=>Mh(p,262144)?Lut(p):p)}return c}function NFe(n,a,c,p,m){const b=JC(n,50528256);if(!(b&a))return n;const I=pi([Ra,m]);return Tl(n,w=>Mh(w,a)?Ma([w,!(b&p)&&Mh(w,c)?I:Ra]):w)}function Y_e(n){return n===qa?Nt:n}function $_e(n,a){return a?pi([Is(n),wd(a)]):n}function MFe(n,a){var c;const p=wy(a);if(!jf(p))return nt;const m=Uf(p);return _n(n,m)||XW((c=tR(n,m))==null?void 0:c.type)||nt}function PFe(n,a){return Ep(n,DL)&&Aut(n,a)||XW(Hv(65,n,he,void 0))||nt}function XW(n){return n&&(O.noUncheckedIndexedAccess?pi([n,Ae]):n)}function LFe(n){return Yd(Hv(65,n,he,void 0)||nt)}function hpt(n){return n.parent.kind===210&&Q_e(n.parent)||n.parent.kind===304&&Q_e(n.parent.parent)?$_e(v5(n),n.right):wd(n.right)}function Q_e(n){return n.parent.kind===227&&n.parent.left===n||n.parent.kind===251&&n.parent.initializer===n}function _pt(n,a){return PFe(v5(n),n.elements.indexOf(a))}function gpt(n){return LFe(v5(n.parent))}function kFe(n){return MFe(v5(n.parent),n.name)}function ypt(n){return $_e(kFe(n),n.objectAssignmentInitializer)}function v5(n){const{parent:a}=n;switch(a.kind){case 250:return yt;case 251:return eB(a)||nt;case 227:return hpt(a);case 221:return he;case 210:return _pt(a,n);case 231:return gpt(a);case 304:return kFe(a);case 305:return ypt(a)}return nt}function vpt(n){const a=n.parent,c=OFe(a.parent),p=a.kind===207?MFe(c,n.propertyName||n.name):n.dotDotDotToken?LFe(c):PFe(c,a.elements.indexOf(n));return $_e(p,n.initializer)}function wFe(n){return Vr(n).resolvedType||wd(n)}function bpt(n){return n.initializer?wFe(n.initializer):n.parent.parent.kind===250?yt:n.parent.parent.kind===251&&eB(n.parent.parent)||nt}function OFe(n){return n.kind===261?bpt(n):vpt(n)}function Tpt(n){return n.kind===261&&n.initializer&&Ov(n.initializer)||n.kind!==209&&n.parent.kind===227&&Ov(n.parent.right)}function PE(n){switch(n.kind){case 218:return PE(n.expression);case 227:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return PE(n.left);case 28:return PE(n.right)}}return n}function WFe(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?WFe(a):n}function Spt(n){return n.kind===297?Cu(wd(n.expression)):yn}function HY(n){const a=Vr(n);if(!a.switchTypes){a.switchTypes=[];for(const c of n.caseBlock.clauses)a.switchTypes.push(Spt(c))}return a.switchTypes}function FFe(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&&!Ln(a,p)?p:void 0)}return a}function Ept(n,a){return n.flags&1048576?!$e(n.types,c=>!Ln(a,c)):Ln(a,n)}function ML(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&Apt(n,a))}function Apt(n,a){if(n.flags&1048576){for(const c of n.types)if(!Hg(a.types,c))return!1;return!0}return n.flags&1056&&ZX(n)===a?!0:Hg(a.types,n)}function wA(n,a){return n.flags&1048576?$e(n.types,a):a(n)}function am(n,a){return n.flags&1048576?vt(n.types,a):a(n)}function Ep(n,a){return n.flags&1048576?Hn(n.types,a):a(n)}function Ipt(n,a){return n.flags&3145728?Hn(n.types,a):a(n)}function Ec(n,a){if(n.flags&1048576){const c=n.types,p=Vn(c,a);if(p===c)return n;const m=n.origin;let b;if(m&&m.flags&1048576){const I=m.types,w=Vn(I,U=>!!(U.flags&1048576)||a(U));if(I.length-w.length===c.length-p.length){if(w.length===1)return w[0];b=Khe(1048576,w)}}return Yhe(p,n.objectFlags&16809984,void 0,void 0,b)}return n.flags&131072||a(n)?n:yn}function qY(n,a){return Ec(n,c=>c!==a)}function xpt(n){return n.flags&1048576?n.types.length:1}function Tl(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 b,I=!1;for(const w of m){const U=w.flags&1048576?Tl(w,a,c):a(w);I||(I=w!==U),U&&(b?b.push(U):b=[U])}return I?b&&pi(b,c?0:1):n}function zFe(n,a,c,p){return n.flags&1048576&&c?pi(Bt(n.types,a),1,c,p):Tl(n,a)}function PL(n,a){return Ec(n,c=>(c.flags&a)!==0)}function BFe(n,a){return tc(n,134217804)&&tc(a,402655616)?Tl(n,c=>c.flags&4?PL(a,402653316):IA(c)&&!tc(a,402653188)?PL(a,128):c.flags&8?PL(a,264):c.flags&64?PL(a,2112):c):n}function KC(n){return n.flags===0}function OA(n){return n.flags===0?n.type:n}function XC(n,a){return a?{flags:0,type:n.flags&131072?wt:n}:n}function Rpt(n){const a=_c(256);return a.elementType=n,a}function Z_e(n){return Ft[n.id]||(Ft[n.id]=Rpt(n))}function GFe(n,a){const c=qW(By(J5(a)));return ML(c,n.elementType)?n:Z_e(pi([n.elementType,c]))}function Dpt(n){return n.flags&131072?ld:Yd(n.flags&1048576?pi(n.types,2):n)}function Cpt(n){return n.finalArrayType||(n.finalArrayType=Dpt(n.elementType))}function b5(n){return Hr(n)&256?Cpt(n):n}function Npt(n){return Hr(n)&256?n.elementType:yn}function Mpt(n){let a=!1;for(const c of n)if(!(c.flags&131072)){if(!(Hr(c)&256))return!1;a=!0}return a}function VFe(n){const a=WFe(n),c=a.parent,p=qr(c)&&(c.name.escapedText==="length"||c.parent.kind===214&&He(c.name)&&KG(c.name)),m=c.kind===213&&c.expression===a&&c.parent.kind===227&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!Tb(c.parent)&&kd(wd(c.argumentExpression),296);return p||m}function Ppt(n){return(yi(n)||Po(n)||Su(n)||to(n))&&!!(xc(n)||Ir(n)&&Zy(n)&&n.initializer&&Rb(n.initializer)&&kp(n.initializer))}function JY(n,a){if(n=hc(n),n.flags&8752)return _r(n);if(n.flags&7){if(Wl(n)&262144){const p=n.links.syntheticOrigin;if(p&&JY(p))return _r(n)}const c=n.valueDeclaration;if(c){if(Ppt(c))return _r(n);if(yi(c)&&c.parent.parent.kind===251){const p=c.parent.parent,m=T5(p.expression,void 0);if(m){const b=p.awaitModifier?15:13;return Hv(b,m,he,void 0)}}a&&pa(a,Ar(c,f._0_needs_an_explicit_type_annotation,po(n)))}}}function T5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:const c=Et(fu(n));return JY(c,a);case 110:return Zpt(n);case 108:return ZY(n);case 212:{const p=T5(n.expression,a);if(p){const m=n.name;let b;if(eo(m)){if(!p.symbol)return;b=Ea(p,Ck(p.symbol,m.escapedText))}else b=Ea(p,m.escapedText);return b&&JY(b,a)}return}case 218:return T5(n.expression,a)}}function S5(n){const a=Vr(n);let c=a.effectsSignature;if(c===void 0){let p;if(Nr(n)){const I=$C(n.right);p=Zge(I)}else n.parent.kind===245?p=T5(n.expression,void 0):n.expression.kind!==108&&(tu(n)?p=E_(UW(go(n.expression),n.expression),n.expression):p=$C(n.expression));const m=na(p&&Du(p)||Nt,0),b=m.length===1&&!m[0].typeParameters?m[0]:vt(m,jFe)?ZC(n):void 0;c=a.effectsSignature=b&&jFe(b)?b:si}return c===si?void 0:c}function jFe(n){return!!(nm(n)||n.declaration&&(BC(n.declaration)||Nt).flags&131072)}function Lpt(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];const c=us(a.expression);return Ks(c)?us(c.expression):void 0}function kpt(n){const a=Dn(n,$9),c=Fn(n),p=Uh(c,a.statements.pos);ns.add(Oc(c,p.start,p.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function E5(n){const a=KY(n,!1);return _i=n,Do=a,a}function A5(n){const a=us(n,!0);return a.kind===97||a.kind===227&&(a.operatorToken.kind===56&&(A5(a.left)||A5(a.right))||a.operatorToken.kind===57&&A5(a.left)&&A5(a.right))}function KY(n,a){for(;;){if(n===_i)return Do;const c=n.flags;if(c&4096){if(!a){const p=J_e(n),m=Px[p];return m!==void 0?m:Px[p]=KY(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){const p=S5(n.node);if(p){const m=nm(p);if(m&&m.kind===3&&!m.type){const b=n.node.arguments[m.parameterIndex];if(b&&A5(b))return!1}if(fs(p).flags&131072)return!1}n=n.antecedent}else{if(c&4)return vt(n.antecedent,p=>KY(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&&w4e(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 b=KY(n.antecedent,!1);return p.antecedent=m,b}else return!(c&1)}}}function XY(n,a){for(;;){const c=n.flags;if(c&4096){if(!a){const p=J_e(n),m=dE[p];return m!==void 0?m:dE[p]=XY(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=>XY(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 b=XY(n.antecedent,!1);return p.antecedent=m,b}else return!!(c&1)}}}function ege(n){switch(n.kind){case 110:return!0;case 80:if(!MS(n)){const c=fu(n);return lR(c)||$W(c)&&!YW(c)||!!c.valueDeclaration&&Us(c.valueDeclaration)}break;case 212:case 213:return ege(n.expression)&&wh(Vr(n).resolvedSymbol||ne);case 207:case 208:const a=Kh(n.parent);return to(a)||wre(a)?!tge(a):yi(a)&&b8(a)}return!1}function jy(n,a,c=a,p,m=(b=>(b=ni(n,eD))==null?void 0:b.flowNode)()){let b,I=!1,w=0;if(Oi)return nt;if(!m)return a;Ro++;const U=cr,H=OA(Te(m));cr=U;const Q=Hr(H)&256&&VFe(n)?ld:b5(H);if(Q===xn||n.parent&&n.parent.kind===236&&!(Q.flags&131072)&&om(Q,2097152).flags&131072)return a;return Q;function Ie(){return I?b:(I=!0,b=_5(n,a,c,p))}function Te(Ht){var Nn;if(w===2e3)return(Nn=xr)==null||Nn.instant(xr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Ht.id}),Oi=!0,kpt(n),nt;w++;let $n;for(;;){const hr=Ht.flags;if(hr&4096){for(let gi=U;gi=0&&$n.parameterIndex!(gi.flags&163840)):Nn.kind===222&&LA(Nn.expression,n)&&(hr=ys(hr,Ht.node,gi=>!(gi.flags&131072||gi.flags&128&&gi.value==="undefined"))));const Gr=oo(Nn,hr);Gr&&(hr=Ko(hr,Gr,Ht.node))}return XC(hr,KC($n))}function Sn(Ht){const Nn=[];let $n=!1,hr=!1,Gr;for(const gi of Ht.antecedent){if(!Gr&&gi.flags&128&&gi.node.clauseStart===gi.node.clauseEnd){Gr=gi;continue}const Pa=Te(gi),Wa=OA(Pa);if(Wa===a&&a===c)return Wa;kf(Nn,Wa),ML(Wa,c)||($n=!0),KC(Pa)&&(hr=!0)}if(Gr){const gi=Te(Gr),Pa=OA(gi);if(!(Pa.flags&131072)&&!Ln(Nn,Pa)&&!w4e(Gr.node.switchStatement)){if(Pa===a&&a===c)return Pa;Nn.push(Pa),ML(Pa,c)||($n=!0),KC(gi)&&(hr=!0)}}return XC(Sr(Nn,$n?2:1),hr)}function vn(Ht){const Nn=J_e(Ht),$n=EC[Nn]||(EC[Nn]=new Map),hr=Ie();if(!hr)return a;const Gr=$n.get(hr);if(Gr)return Gr;for(let Qc=Lr;Qc{const Qc=ei(Gs,hr)||Nt;return!(Qc.flags&131072)&&!(Wa.flags&131072)&&s5(Wa,Qc)})}function zi(Ht,Nn,$n,hr,Gr){if(($n===37||$n===38)&&Ht.flags&1048576){const gi=g5(Ht);if(gi&&gi===PA(Nn)){const Pa=y5(Ht,wd(hr));if(Pa)return $n===(Gr?37:38)?Pa:Nh(_n(Pa,gi)||Nt)?qY(Ht,Pa):Ht}}return ii(Ht,Nn,gi=>Ui(gi,$n,hr,Gr))}function Ko(Ht,Nn,$n){if($n.clauseStart<$n.clauseEnd&&Ht.flags&1048576&&g5(Ht)===PA(Nn)){const hr=HY($n.switchStatement).slice($n.clauseStart,$n.clauseEnd),Gr=pi(Bt(hr,gi=>y5(Ht,gi)||Nt));if(Gr!==Nt)return Gr}return ii(Ht,Nn,hr=>al(hr,$n))}function ms(Ht,Nn,$n){if(Ad(n,Nn))return kA(Ht,$n?4194304:8388608);ie&&$n&&LA(Nn,n)&&(Ht=kA(Ht,2097152));const hr=oo(Nn,Ht);return hr?ii(Ht,hr,Gr=>om(Gr,$n?4194304:8388608)):Ht}function mo(Ht,Nn,$n){const hr=Ea(Ht,Nn);return hr?!!(hr.flags&16777216||Wl(hr)&48)||$n:!!tR(Ht,Nn)||!$n}function pl(Ht,Nn,$n){const hr=Uf(Nn);if(am(Ht,gi=>mo(gi,hr,!0)))return Ec(Ht,gi=>mo(gi,hr,$n));if($n){const gi=Wct();if(gi)return Ma([Ht,VC(gi,[Nn,Nt])])}return Ht}function Kl(Ht,Nn,$n,hr,Gr){return Gr=Gr!==($n.kind===112)!=(hr!==38&&hr!==36),af(Ht,Nn,Gr)}function mu(Ht,Nn,$n){switch(Nn.operatorToken.kind){case 64:case 76:case 77:case 78:return ms(af(Ht,Nn.right,$n),Nn.left,$n);case 35:case 36:case 37:case 38:const hr=Nn.operatorToken.kind,Gr=PE(Nn.left),gi=PE(Nn.right);if(Gr.kind===222&&ds(gi))return vr(Ht,Gr,hr,gi,$n);if(gi.kind===222&&ds(Gr))return vr(Ht,gi,hr,Gr,$n);if(Ad(n,Gr))return Ui(Ht,hr,gi,$n);if(Ad(n,gi))return Ui(Ht,hr,Gr,$n);ie&&(LA(Gr,n)?Ht=ir(Ht,hr,gi,$n):LA(gi,n)&&(Ht=ir(Ht,hr,Gr,$n)));const Pa=oo(Gr,Ht);if(Pa)return zi(Ht,Pa,hr,gi,$n);const Wa=oo(gi,Ht);if(Wa)return zi(Ht,Wa,hr,Gr,$n);if(Ts(Gr))return Nf(Ht,hr,gi,$n);if(Ts(gi))return Nf(Ht,hr,Gr,$n);if(FN(gi)&&!Ks(Gr))return Kl(Ht,Gr,gi,hr,$n);if(FN(Gr)&&!Ks(gi))return Kl(Ht,gi,Gr,hr,$n);break;case 104:return Sl(Ht,Nn,$n);case 103:if(eo(Nn.left))return qn(Ht,Nn,$n);const Gs=PE(Nn.right);if(HW(Ht)&&Ks(n)&&Ad(n.expression,Gs)){const Qc=wd(Nn.left);if(jf(Qc)&&PA(n)===Uf(Qc))return om(Ht,$n?524288:65536)}if(Ad(n,Gs)){const Qc=wd(Nn.left);if(jf(Qc))return pl(Ht,Qc,$n)}break;case 28:return af(Ht,Nn.right,$n);case 56:return $n?af(af(Ht,Nn.left,!0),Nn.right,!0):pi([af(Ht,Nn.left,!1),af(Ht,Nn.right,!1)]);case 57:return $n?pi([af(Ht,Nn.left,!0),af(Ht,Nn.right,!0)]):af(af(Ht,Nn.left,!1),Nn.right,!1)}return Ht}function qn(Ht,Nn,$n){const hr=PE(Nn.right);if(!Ad(n,hr))return Ht;C.assertNode(Nn.left,eo);const Gr=p$(Nn.left);if(Gr===void 0)return Ht;const gi=Gr.parent,Pa=wc(C.checkDefined(Gr.valueDeclaration,"should always have a declaration"))?_r(gi):qs(gi);return lm(Ht,Pa,$n,!0)}function ir(Ht,Nn,$n,hr){const Gr=Nn===35||Nn===37,gi=Nn===35||Nn===36?98304:32768,Pa=wd($n);return Gr!==hr&&Ep(Pa,Gs=>!!(Gs.flags&gi))||Gr===hr&&Ep(Pa,Gs=>!(Gs.flags&(3|gi)))?kA(Ht,2097152):Ht}function Ui(Ht,Nn,$n,hr){if(Ht.flags&1)return Ht;(Nn===36||Nn===38)&&(hr=!hr);const Gr=wd($n),gi=Nn===35||Nn===36;if(Gr.flags&98304){if(!ie)return Ht;const Pa=gi?hr?262144:2097152:Gr.flags&65536?hr?131072:1048576:hr?65536:524288;return kA(Ht,Pa)}if(hr){if(!gi&&(Ht.flags&2||am(Ht,ng))){if(Gr.flags&469893116||ng(Gr))return Gr;if(Gr.flags&524288)return kn}const Pa=Ec(Ht,Wa=>s5(Wa,Gr)||gi&&kut(Wa,Gr));return BFe(Pa,Gr)}return Nh(Gr)?Ec(Ht,Pa=>!(oFe(Pa)&&s5(Pa,Gr))):Ht}function vr(Ht,Nn,$n,hr,Gr){($n===36||$n===38)&&(Gr=!Gr);const gi=PE(Nn.expression);if(!Ad(n,gi)){ie&&LA(gi,n)&&Gr===(hr.text!=="undefined")&&(Ht=kA(Ht,2097152));const Pa=oo(gi,Ht);return Pa?ii(Ht,Pa,Wa=>wo(Wa,hr,Gr)):Ht}return wo(Ht,hr,Gr)}function wo(Ht,Nn,$n){return $n?md(Ht,Nn.text):kA(Ht,cae.get(Nn.text)||32768)}function ys(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr},Gr){return $n!==hr&&Hn(HY(Nn).slice($n,hr),Gr)?om(Ht,2097152):Ht}function al(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=HY(Nn);if(!Gr.length)return Ht;const gi=Gr.slice($n,hr),Pa=$n===hr||Ln(gi,yn);if(Ht.flags&2&&!Pa){let hu;for(let pp=0;pps5(Wa,hu)),Wa);if(!Pa)return Gs;const Qc=Ec(Ht,hu=>!(oFe(hu)&&Ln(Gr,hu.flags&32768?he:Cu(xut(hu)))));return Gs.flags&131072?Qc:pi([Gs,Qc])}function md(Ht,Nn){switch(Nn){case"string":return Xa(Ht,yt,1);case"number":return Xa(Ht,Gt,2);case"bigint":return Xa(Ht,gr,4);case"boolean":return Xa(Ht,jt,8);case"symbol":return Xa(Ht,Qt,16);case"object":return Ht.flags&1?Ht:pi([Xa(Ht,kn,32),Xa(Ht,Xt,131072)]);case"function":return Ht.flags&1?Ht:Xa(Ht,tr,64);case"undefined":return Xa(Ht,he,65536)}return Xa(Ht,kn,128)}function Xa(Ht,Nn,$n){return Tl(Ht,hr=>S_(hr,Nn,ul)?Mh(hr,$n)?hr:yn:NE(Nn,hr)?Nn:Mh(hr,$n)?Ma([hr,Nn]):yn)}function cc(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=FFe(Nn);if(!Gr)return Ht;const gi=so(Nn.caseBlock.clauses,Gs=>Gs.kind===298);if($n===hr||gi>=$n&&giJC(Qc,Gs)===Gs)}const Wa=Gr.slice($n,hr);return pi(Bt(Wa,Gs=>Gs?md(Ht,Gs):yn))}function gc(Ht,{switchStatement:Nn,clauseStart:$n,clauseEnd:hr}){const Gr=so(Nn.caseBlock.clauses,Wa=>Wa.kind===298),gi=$n===hr||Gr>=$n&&GrWa.kind===297?af(Ht,Wa.expression,!0):yn))}function Ts(Ht){return(qr(Ht)&&Kr(Ht.name)==="constructor"||Ws(Ht)&&ds(Ht.argumentExpression)&&Ht.argumentExpression.text==="constructor")&&Ad(n,Ht.expression)}function Nf(Ht,Nn,$n,hr){if(hr?Nn!==35&&Nn!==37:Nn!==36&&Nn!==38)return Ht;const Gr=wd($n);if(!Cye(Gr)&&!Rh(Gr))return Ht;const gi=Ea(Gr,"prototype");if(!gi)return Ht;const Pa=_r(gi),Wa=wr(Pa)?void 0:Pa;if(!Wa||Wa===Jt||Wa===tr)return Ht;if(wr(Ht))return Wa;return Ec(Ht,Qc=>Gs(Qc,Wa));function Gs(Qc,hu){return Qc.flags&524288&&Hr(Qc)&1||hu.flags&524288&&Hr(hu)&1?Qc.symbol===hu.symbol:NE(Qc,hu)}}function Sl(Ht,Nn,$n){const hr=PE(Nn.left);if(!Ad(n,hr))return $n&&ie&&LA(hr,n)?kA(Ht,2097152):Ht;const Gr=Nn.right,gi=wd(Gr);if(!$0(gi,Jt))return Ht;const Pa=S5(Nn),Wa=Pa&&nm(Pa);if(Wa&&Wa.kind===1&&Wa.parameterIndex===0)return lm(Ht,Wa.type,$n,!0);if(!$0(gi,tr))return Ht;const Gs=Tl(gi,nc);return wr(Ht)&&(Gs===Jt||Gs===tr)||!$n&&!(Gs.flags&524288&&!ng(Gs))?Ht:lm(Ht,Gs,$n,!0)}function nc(Ht){const Nn=_n(Ht,"prototype");if(Nn&&!wr(Nn))return Nn;const $n=na(Ht,1);return $n.length?pi(Bt($n,hr=>fs(LW(hr)))):Ra}function lm(Ht,Nn,$n,hr){const Gr=Ht.flags&1048576?`N${pd(Ht)},${pd(Nn)},${($n?1:0)|(hr?2:0)}`:void 0;return Gu(Gr)??Cm(Gr,jL(Ht,Nn,$n,hr))}function jL(Ht,Nn,$n,hr){if(!$n){if(Ht===Nn)return yn;if(hr)return Ec(Ht,Gs=>!$0(Gs,Nn));Ht=Ht.flags&2?qa:Ht;const Wa=lm(Ht,Nn,!0,!1);return Y_e(Ec(Ht,Gs=>!ML(Gs,Wa)))}if(Ht.flags&3||Ht===Nn)return Nn;const Gr=hr?$0:NE,gi=Ht.flags&1048576?g5(Ht):void 0,Pa=Tl(Nn,Wa=>{const Gs=gi&&_n(Wa,gi),Qc=Gs&&y5(Ht,Gs),hu=Tl(Qc||Ht,hr?pp=>$0(pp,Wa)?pp:$0(Wa,pp)?Wa:yn:pp=>xL(pp,Wa)?pp:xL(Wa,pp)?Wa:NE(pp,Wa)?pp:NE(Wa,pp)?Wa:yn);return hu.flags&131072?Tl(Ht,pp=>tc(pp,465829888)&&Gr(Wa,Ld(pp)||Nt)?Ma([pp,Wa]):yn):hu});return Pa.flags&131072?NE(Nn,Ht)?Nn:sa(Ht,Nn)?Ht:sa(Nn,Ht)?Nn:Ma([Ht,Nn]):Pa}function T8(Ht,Nn,$n){if(CFe(Nn,n)){const hr=$n||!XE(Nn)?S5(Nn):void 0,Gr=hr&&nm(hr);if(Gr&&(Gr.kind===0||Gr.kind===1))return UL(Ht,Gr,Nn,$n)}if(HW(Ht)&&Ks(n)&&qr(Nn.expression)){const hr=Nn.expression;if(Ad(n.expression,PE(hr.expression))&&He(hr.name)&&hr.name.escapedText==="hasOwnProperty"&&Nn.arguments.length===1){const Gr=Nn.arguments[0];if(ds(Gr)&&PA(n)===Cl(Gr.text))return om(Ht,$n?524288:65536)}}return Ht}function UL(Ht,Nn,$n,hr){if(Nn.type&&!(wr(Ht)&&(Nn.type===Jt||Nn.type===tr))){const Gr=Lpt(Nn,$n);if(Gr){if(Ad(n,Gr))return lm(Ht,Nn.type,hr,!1);ie&&LA(Gr,n)&&(hr&&!Mh(Nn.type,65536)||!hr&&Ep(Nn.type,P5))&&(Ht=kA(Ht,2097152));const gi=oo(Gr,Ht);if(gi)return ii(Ht,gi,Pa=>lm(Pa,Nn.type,hr,!1))}}return Ht}function af(Ht,Nn,$n){if(hF(Nn)||Nr(Nn.parent)&&(Nn.parent.operatorToken.kind===61||Nn.parent.operatorToken.kind===78)&&Nn.parent.left===Nn)return S8(Ht,Nn,$n);switch(Nn.kind){case 80:if(!Ad(n,Nn)&&A<5){const hr=fu(Nn);if(lR(hr)){const Gr=hr.valueDeclaration;if(Gr&&yi(Gr)&&!Gr.type&&Gr.initializer&&ege(n)){A++;const gi=af(Ht,Gr.initializer,$n);return A--,gi}}}case 110:case 108:case 212:case 213:return ms(Ht,Nn,$n);case 214:return T8(Ht,Nn,$n);case 218:case 236:case 239:return af(Ht,Nn.expression,$n);case 227:return mu(Ht,Nn,$n);case 225:if(Nn.operator===54)return af(Ht,Nn.operand,!$n);break}return Ht}function S8(Ht,Nn,$n){if(Ad(n,Nn))return kA(Ht,$n?2097152:262144);const hr=oo(Nn,Ht);return hr?ii(Ht,hr,Gr=>om(Gr,$n?2097152:262144)):Ht}}function wpt(n,a){if(n=Et(n),(a.kind===80||a.kind===81)&&(fM(a)&&(a=a.parent),L_(a)&&(!Tb(a)||RI(a)))){const c=wY(RI(a)&&a.kind===212?u$(a,void 0,!0):wd(a));if(Et(Vr(a).resolvedSymbol)===n)return c}return k_(a)&&jh(a.parent)&&SE(a.parent)?KX(a.parent.symbol):hV(a)&&RI(a.parent)?Wv(n):xh(n)}function LL(n){return Dn(n.parent,a=>Yo(a)&&!WT(a)||a.kind===269||a.kind===308||a.kind===173)}function Opt(n){return(n.lastAssignmentPos!==void 0||YW(n)&&n.lastAssignmentPos!==void 0)&&n.lastAssignmentPos<0}function YW(n){return!UFe(n,void 0)}function UFe(n,a){const c=Dn(n.valueDeclaration,YY);if(!c)return!1;const p=Vr(c);return p.flags&131072||(p.flags|=131072,Wpt(c)||qFe(c)),!n.lastAssignmentPos||a&&Math.abs(n.lastAssignmentPos)a.kind!==233&&HFe(a.name))}function Wpt(n){return!!Dn(n.parent,a=>YY(a)&&!!(Vr(a).flags&131072))}function YY(n){return Ms(n)||Yi(n)}function qFe(n){switch(n.kind){case 80:const a=bb(n);if(a!==0){const m=fu(n),b=a===1||m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0;if($W(m)){if(m.lastAssignmentPos===void 0||Math.abs(m.lastAssignmentPos)!==Number.MAX_VALUE){const I=Dn(n,YY),w=Dn(m.valueDeclaration,YY);m.lastAssignmentPos=I===w?Fpt(n,m.valueDeclaration):Number.MAX_VALUE}b&&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=Gl(p,111551,!0,!0);if(m&&$W(m)){const b=m.lastAssignmentPos!==void 0&&m.lastAssignmentPos<0?-1:1;m.lastAssignmentPos=b*Number.MAX_VALUE}}return;case 265:case 266:case 267:return}Ri(n)||Jo(n,qFe)}function Fpt(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 lR(n){return n.flags&3&&(vge(n)&6)!==0}function $W(n){const a=n.valueDeclaration&&Kh(n.valueDeclaration);return!!a&&(to(a)||yi(a)&&(HS(a.parent)||JFe(a)))}function JFe(n){return!!(n.parent.flags&1)&&!(PT(n)&32||n.parent.parent.kind===244&&ev(n.parent.parent.parent))}function zpt(n){const a=Vr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!y_(n,8))return vA(n.symbol),!0;const c=!!Mh(wL(n,0),16777216);if(!rt())return vA(n.symbol),!0;a.parameterInitializerContainsUndefined??(a.parameterInitializerContainsUndefined=c)}return a.parameterInitializerContainsUndefined}function Bpt(n,a){return ie&&a.kind===170&&a.initializer&&Mh(n,16777216)&&!zpt(a)?om(n,524288):n}function Gpt(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&&!(am(n,XFe)&&RA(wd(c.argumentExpression)))}function KFe(n){return n.flags&2097152?vt(n.types,KFe):!!(n.flags&465829888&&b_(n).flags&1146880)}function XFe(n){return n.flags&2097152?vt(n.types,XFe):!!(n.flags&465829888&&!tc(b_(n),98304))}function Vpt(n,a){const c=(He(n)||qr(n)||Ws(n))&&!((ph(n.parent)||x1(n.parent))&&n.parent.tagName===n)&&(a&&a&32?Hu(n,8):Hu(n,void 0));return c&&!X0(c)}function nge(n,a,c){return jC(n)&&(n=n.baseType),!(c&&c&2)&&am(n,KFe)&&(Gpt(n,a)||Vpt(a,c))?Tl(n,b_):n}function YFe(n){return!!Dn(n,a=>{const c=a.parent;return c===void 0?"quit":dl(c)?c.expression===a&&Ds(a):ou(c)?c.name===a||c.propertyName===a:!1})}function cR(n,a,c,p){if(We&&!(n.flags&33554432&&!Su(n)&&!Po(n)))switch(a){case 1:return $Y(n);case 2:return $Fe(n,c,p);case 3:return QFe(n);case 4:return rge(n);case 5:return ZFe(n);case 6:return e6e(n);case 7:return t6e(n);case 8:return n6e(n);case 0:{if(He(n)&&(L_(n)||Ud(n.parent)||Fc(n.parent)&&n.parent.moduleReference===n)&&a6e(n)){if(j2(n.parent)&&(qr(n.parent)?n.parent.expression:n.parent.left)!==n)return;$Y(n);return}if(j2(n)){let m=n;for(;j2(m);){if(qh(m))return;m=m.parent}return $Fe(n)}return dl(n)?QFe(n):ru(n)||Um(n)?rge(n):Fc(n)?i1(n)||W$(n)?e6e(n):void 0:ou(n)?t6e(n):((Ms(n)||Vm(n))&&ZFe(n),!O.emitDecoratorMetadata||!JS(n)||!pf(n)||!n.modifiers||!dk(J,n,n.parent,n.parent.parent)?void 0:n6e(n))}default:C.assertNever(a,`Unhandled reference hint: ${a}`)}}function $Y(n){const a=fu(n);a&&a!==ge&&a!==ne&&!MS(n)&&I5(a,n)}function $Fe(n,a,c){const p=qr(n)?n.expression:n.left;if(Eb(p)||!He(p))return;const m=fu(p);if(!m||m===ne)return;if(vm(O)||Ib(O)&&YFe(n)){I5(m,n);return}const b=c||Vl(p);if(wr(b)||b===wt){I5(m,n);return}let I=a;if(!I&&!c){const w=qr(n)?n.name:n.right,U=eo(w)&&L5(w.escapedText,w),H=bb(n),Q=Du(H!==0||Ege(n)?$p(b):b);I=eo(w)?U&&f$(Q,U)||void 0:Ea(Q,w.escapedText)}I&&(y8(I)||I.flags&8&&n.parent.kind===307)||I5(m,n)}function QFe(n){if(He(n.expression)){const a=n.expression,c=Et(Gl(a,-1,!0,!0,n));c&&I5(c,a)}}function rge(n){if(!c$(n)){const a=ns&&O.jsx===2?f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,c=Jm(n),p=ru(n)?n.tagName:n,m=O.jsx!==1&&O.jsx!==3;let b;if(Um(n)&&c==="null"||(b=gt(p,c,m?111551:111167,a,!0)),b&&(b.isReferenced=-1,We&&b.flags&2097152&&!Ah(b)&&QY(b)),Um(n)){const I=Fn(n),w=Mye(I);if(w){const U=Lu(w).escapedText;gt(p,U,m?111551:111167,a,!0)}}}}function ZFe(n){if(G<2&&dc(n)&2){const a=kp(n);jpt(a)}}function e6e(n){di(n,32)&&r6e(n)}function t6e(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===Re||c.declarations&&ev(Pt(c.declarations[0]))))){const p=c&&(c.flags&2097152?ud(c):c);(!p||dp(p)&111551)&&(r6e(n),$Y(a))}return}}function n6e(n){if(O.emitDecoratorMetadata){const a=hn(n.modifiers,Wc);if(!a)return;switch($c(a,16),n.kind){case 264:const c=vg(n);if(c)for(const I of c.parameters)YC(N$(I));break;case 178:case 179:const p=n.kind===178?179:178,m=ll(Wr(n),p);YC(SE(n)||m&&SE(m));break;case 175:for(const I of n.parameters)YC(N$(I));YC(kp(n));break;case 173:YC(xc(n));break;case 170:YC(N$(n));const b=n.parent;for(const I of b.parameters)YC(N$(I));YC(kp(b));break}}}function I5(n,a){if(We&&oA(n,111551)&&!EI(a)){const c=ud(n);dp(n,!0)&1160127&&(vm(O)||Ib(O)&&YFe(a)||!y8(Et(c)))&&QY(n)}}function QY(n){C.assert(We);const a=Jr(n);if(!a.referenced){a.referenced=!0;const c=cp(n);if(!c)return C.fail();if(i1(c)&&dp(hc(n))&111551){const p=Lu(c.moduleReference);$Y(p)}}}function r6e(n){const a=Wr(n),c=ud(a);c&&(c===ne||dp(a,!0)&111551&&!y8(c))&&QY(a)}function i6e(n,a){if(!n)return;const c=Lu(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)&&!y8(ud(m))&&!Ah(m))QY(m);else if(a&&vm(O)&&bu(O)>=5&&!An(m)&&!vt(m.declarations,Qy)){const b=Qe(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=hn(m.declarations||se,Dv);I&&pa(b,Ar(I,f._0_was_imported_here,Kr(c)))}}}function jpt(n){i6e(n&&ck(n),!1)}function YC(n){const a=cye(n);a&&Mu(a)&&i6e(a,!0)}function Upt(n,a){var c;const p=_r(n),m=n.valueDeclaration;if(m){if(Ha(m)&&!m.initializer&&!m.dotDotDotToken&&m.parent.elements.length>=2){const b=m.parent.parent,I=Kh(b);if(I.kind===261&&OE(I)&6||I.kind===170){const w=Vr(b);if(!(w.flags&4194304)){w.flags|=4194304;const U=Si(b,0),H=U&&Tl(U,b_);if(w.flags&=-4194305,H&&H.flags&1048576&&!(I.kind===170&&tge(I))){const Q=m.parent,Ie=jy(Q,H,H,void 0,a.flowNode);return Ie.flags&131072?yn:sT(m,Ie,!0)}}}}if(to(m)&&!m.type&&!m.initializer&&!m.dotDotDotToken){const b=m.parent;if(b.parameters.length>=2&&EY(b)){const I=ZW(b);if(I&&I.parameters.length===1&&su(I)){const w=vL(io(_r(I.parameters[0]),(c=LE(b))==null?void 0:c.nonFixingMapper));if(w.flags&1048576&&Ep(w,Ka)&&!vt(b.parameters,tge)){const U=jy(b,w,w,void 0,a.flowNode),H=b.parameters.indexOf(m)-(NS(b)?1:0);return Xp(U,Ch(H))}}}}}return p}function o6e(n,a){if(MS(n))return;if(a===ge){if(xge(n,!0)){Qe(n,f.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let b=df(n);if(b)for(G<2&&(b.kind===220?Qe(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):di(b,1024)&&Qe(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Vr(b).flags|=512;b&&Xs(b);)b=df(b),b&&(Vr(b).flags|=512);return}const c=Et(a),p=Sye(c,n);xu(p)&&Zhe(n,p)&&p.declarations&&Nm(n,p.declarations,n.escapedText);const m=c.valueDeclaration;if(m&&c.flags&32&&ui(m)&&m.name!==n){let b=vu(n,!1,!1);for(;b.kind!==308&&b.parent!==m;)b=vu(b,!1,!1);b.kind!==308&&(Vr(m).flags|=262144,Vr(b).flags|=262144,Vr(n).flags|=536870912)}Xpt(n,a)}function Hpt(n,a){if(MS(n))return x5(n);const c=fu(n);if(c===ne)return nt;if(o6e(n,c),c===ge)return xge(n)?nt:_r(c);a6e(n)&&cR(n,1);const p=Et(c);let m=p.valueDeclaration;const b=m;if(m&&m.kind===209&&Ln(Dm,m.parent)&&Dn(n,vn=>vn===m.parent))return Tr;let I=Upt(p,n);const w=bb(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 Qe(n,vn,po(c)),nt}if(wh(p))return p.flags&3?Qe(n,f.Cannot_assign_to_0_because_it_is_a_constant,po(c)):Qe(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,po(c)),nt}const U=p.flags&2097152;if(p.flags&3){if(w===1)return BG(n)?By(I):I}else if(U)m=cp(c);else return I;if(!m)return I;I=nge(I,n,a);const H=Kh(m).kind===170,Q=LL(m);let Ie=LL(n);const Te=Ie!==Q,et=n.parent&&n.parent.parent&&Rg(n.parent)&&Q_e(n.parent.parent),Tt=c.flags&134217728,Dt=I===Rt||I===ld,$t=Dt&&n.parent.kind===236;for(;Ie!==Q&&(Ie.kind===219||Ie.kind===220||HF(Ie))&&(lR(p)&&I!==ld||$W(p)&&UFe(p,n));)Ie=LL(Ie);const Tn=b&&yi(b)&&!b.initializer&&!b.exclamationToken&&JFe(b)&&!Opt(c),rr=H||U||Te&&!Tn||et||Tt||qpt(n,m)||I!==Rt&&I!==ld&&(!ie||(I.flags&16387)!==0||EI(n)||H_e(n)||n.parent.kind===282)||n.parent.kind===236||m.kind===261&&m.exclamationToken||m.flags&33554432,yr=$t?he:rr?H?Bpt(I,m):I:Dt?he:hT(I),Sn=$t?Gy(jy(n,I,yr,Ie)):jy(n,I,yr,Ie);if(!VFe(n)&&(I===Rt||I===ld)){if(Sn===Rt||Sn===ld)return ve&&(Qe(Oo(m),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,po(c),sr(Sn)),Qe(n,f.Variable_0_implicitly_has_an_1_type,po(c),sr(Sn))),_8(Sn)}else if(!rr&&!qC(I)&&qC(Sn))return Qe(n,f.Variable_0_is_used_before_being_assigned,po(c)),I;return w?By(Sn):Sn}function qpt(n,a){if(Ha(a)){const c=Dn(n,Ha);return c&&Kh(c)===Kh(a)}}function a6e(n){var a;const c=n.parent;if(c){if(qr(c)&&c.expression===n||ou(c)&&c.isTypeOnly)return!1;const p=(a=c.parent)==null?void 0:a.parent;if(p&&fc(p)&&p.isTypeOnly)return!1}return!0}function Jpt(n,a){return!!Dn(n,c=>c===a?"quit":Yo(c)||c.parent&&Po(c.parent)&&!wc(c.parent)&&c.parent.initializer===c)}function Kpt(n,a){return Dn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function ige(n){return Dn(n,a=>!a||XG(a)?"quit":mb(a,!1))}function Xpt(n,a){if(G>=2||!(a.flags&34)||!a.valueDeclaration||Yi(a.valueDeclaration)||a.valueDeclaration.parent.kind===300)return;const c=sh(a.valueDeclaration),p=Jpt(n,c),m=ige(c);if(m){if(p){let b=!0;if(QT(c)){const I=VT(a.valueDeclaration,262);if(I&&I.parent===c){const w=Kpt(n.parent,c);if(w){const U=Vr(w);U.flags|=8192;const H=U.capturedBlockScopeBindings||(U.capturedBlockScopeBindings=[]);kf(H,a),w===c.initializer&&(b=!1)}}}b&&(Vr(m).flags|=4096)}if(QT(c)){const b=VT(a.valueDeclaration,262);b&&b.parent===c&&$pt(n,c)&&(Vr(a.valueDeclaration).flags|=65536)}Vr(a.valueDeclaration).flags|=32768}p&&(Vr(a.valueDeclaration).flags|=16384)}function Ypt(n,a){const c=Vr(n);return!!c&&Ln(c.capturedBlockScopeBindings,Wr(a))}function $pt(n,a){let c=n;for(;c.parent.kind===218;)c=c.parent;let p=!1;if(Tb(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 oge(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 s6e(n){return r1(n)?n:Yo(n)?void 0:Jo(n,s6e)}function age(n){const a=Wr(n),c=qs(a);return Ly(c)===Pe}function l6e(n,a,c){const p=a.parent;DS(p)&&!age(p)&&eD(n)&&n.flowNode&&!XY(n.flowNode,!1)&&Qe(n,c)}function Qpt(n,a){Po(a)&&wc(a)&&J&&a.initializer&&N2(a.initializer,n.pos)&&pf(a.parent)&&Qe(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function x5(n){const a=EI(n);let c=vu(n,!0,!0),p=!1,m=!1;for(c.kind===177&&l6e(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===220&&(c=vu(c,!1,!m),p=!0),c.kind===168){c=vu(c,!p,!1),m=!0;continue}break}if(Qpt(n,c),m)Qe(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 268:Qe(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:Qe(n,f.this_cannot_be_referenced_in_current_location);break}!a&&p&&G<2&&oge(n,c);const b=sge(n,!0,c);if(xe){const I=_r(Re);if(b===I&&p)Qe(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!b){const w=Qe(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Yi(c)){const U=sge(c);U&&U!==I&&pa(w,Ar(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return b||Ue}function sge(n,a=!0,c=vu(n,!1,!1)){const p=Ir(n);if(Yo(c)&&(!dge(n)||NS(c))){let m=JX(c)||p&&tft(c);if(!m){const b=eft(c);if(p&&b){const I=go(b).symbol;I&&I.members&&I.flags&16&&(m=qs(I).thisType)}else A_(c)&&(m=qs(os(c.symbol)).thisType);m||(m=lge(c))}if(m)return jy(n,m)}if(ui(c.parent)){const m=Wr(c.parent),b=ua(c)?_r(m):qs(m).thisType;return jy(n,b)}if(Yi(c))if(c.commonJsModuleIndicator){const m=Wr(c);return m&&_r(m)}else{if(c.externalModuleIndicator)return he;if(a)return _r(Re)}}function Zpt(n){const a=vu(n,!1,!1);if(Yo(a)){const c=Df(a);if(c.thisParameter)return JY(c.thisParameter)}if(ui(a.parent)){const c=Wr(a.parent);return ua(a)?_r(c):qs(c).thisType}}function eft(n){if(n.kind===219&&Nr(n.parent)&&ac(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===175&&n.parent.kind===211&&Nr(n.parent.parent)&&ac(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)&&ac(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===219&&Cc(n.parent)&&He(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&Fa(n.parent.parent)&&Zo(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&ac(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Nl(n)&&He(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&Fa(n.parent)&&Zo(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&ac(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function tft(n){const a=uF(n);if(a&&a.typeExpression)return qi(a.typeExpression);const c=TL(n);if(c)return J0(c)}function nft(n,a){return!!Dn(n,c=>Ms(c)?"quit":c.kind===170&&c.parent===a)}function ZY(n){const a=n.parent.kind===214&&n.parent.expression===n,c=sk(n,!0);let p=c,m=!1,b=!1;if(!a){for(;p&&p.kind===220;)di(p,1024)&&(b=!0),p=sk(p,!0),m=G<2;p&&di(p,1024)&&(b=!0)}let I=0;if(!p||!Q(p)){const Ie=Dn(n,Te=>Te===p?"quit":Te.kind===168);return Ie&&Ie.kind===168?Qe(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?Qe(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)?Qe(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Qe(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&&l6e(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&&(Po(p)||Ql(p))&&Vte(n.parent,Ie=>{(!Yi(Ie)||Pp(Ie))&&(Vr(Ie).flags|=2097152)})):I=16,Vr(n).flags|=I,p.kind===175&&b&&(mp(n.parent)&&Tb(n.parent)?Vr(p).flags|=256:Vr(p).flags|=128),m&&oge(n.parent,p),p.parent.kind===211)return G<2?(Qe(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),nt):Ue;const w=p.parent;if(!DS(w))return Qe(n,f.super_can_only_be_referenced_in_a_derived_class),nt;if(age(w))return a?nt:Pe;const U=qs(Wr(w)),H=U&&eh(U)[0];if(!H)return nt;if(p.kind===177&&nft(n,p))return Qe(n,f.super_cannot_be_referenced_in_constructor_arguments),nt;return I===32?Ly(U):Kp(H,U.thisType);function Q(Ie){return a?Ie.kind===177:ui(Ie.parent)||Ie.parent.kind===211?ua(Ie)?Ie.kind===175||Ie.kind===174||Ie.kind===178||Ie.kind===179||Ie.kind===173||Ie.kind===176:Ie.kind===175||Ie.kind===174||Ie.kind===178||Ie.kind===179||Ie.kind===173||Ie.kind===172||Ie.kind===177:!1}}function c6e(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 d6e(n){return Hr(n)&4&&n.target===rf?ol(n)[0]:void 0}function rft(n){return Tl(n,a=>a.flags&2097152?$e(a.types,d6e):d6e(a))}function u6e(n,a){let c=n,p=a;for(;p;){const m=rft(p);if(m)return m;if(c.parent.kind!==304)break;c=c.parent.parent,p=nS(c,void 0)}}function lge(n){if(n.kind===220)return;if(EY(n)){const c=ZW(n);if(c){const p=c.thisParameter;if(p)return _r(p)}}const a=Ir(n);if(xe||a){const c=c6e(n);if(c){const m=nS(c,void 0),b=u6e(c,m);return b?io(b,O_e(LE(c))):$p(m?Gy(m):Vl(c))}const p=Bm(n.parent);if(id(p)){const m=p.left;if(Ks(m)){const{expression:b}=m;if(a&&He(b)){const I=Fn(p);if(I.commonJsModuleIndicator&&fu(b)===I.symbol)return}return $p(Vl(b))}}}}function p6e(n){const a=n.parent;if(!EY(a))return;const c=WT(a);if(c&&c.arguments){const m=g$(c),b=a.parameters.indexOf(n);if(n.dotDotDotToken)return kge(m,b,m.length,Ue,void 0,0);const I=Vr(c),w=I.resolvedSignature;I.resolvedSignature=ur;const U=b0)return fL(c.name,!0,!1)}}function sft(n,a){const c=df(n);if(c){let p=e$(c,a);if(p){const m=dc(c);if(m&1){const b=(m&2)!==0;p.flags&1048576&&(p=Ec(p,w=>!!qv(1,w,b)));const I=qv(1,p,(m&2)!==0);if(!I)return;p=I}if(m&2){const b=Tl(p,Uy);return b&&pi([b,P4e(b)])}return p}}}function lft(n,a){const c=Hu(n,a);if(c){const p=Uy(c);return p&&pi([p,P4e(p)])}}function cft(n,a){const c=df(n);if(c){const p=dc(c);let m=e$(c,a);if(m){const b=(p&2)!==0;if(!n.asteriskToken&&m.flags&1048576&&(m=Ec(m,I=>!!qv(1,I,b))),n.asteriskToken){const I=bye(m,b),w=(I==null?void 0:I.yieldType)??wt,U=Hu(n,a)??wt,H=(I==null?void 0:I.nextType)??Nt,Q=S$(w,U,H,!1);if(b){const Ie=S$(w,U,H,!0);return pi([Q,Ie])}return Q}return qv(0,m,b)}}}function dge(n){let a=!1;for(;n.parent&&!Yo(n.parent);){if(to(n.parent)&&(a||n.parent.initializer===n))return!0;Ha(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function f6e(n,a){const c=!!(dc(a)&2),p=e$(a,void 0);if(p)return qv(n,p,c)||void 0}function e$(n,a){const c=BC(n);if(c)return c;const p=o$(n);if(p&&!rY(p)){const b=fs(p),I=dc(n);return I&1?Ec(b,w=>!!(w.flags&58998787)||iye(w,I,void 0)):I&2?Ec(b,w=>!!(w.flags&58998787)||!!FL(w)):b}const m=WT(n);if(m)return Hu(m,a)}function m6e(n,a){const p=g$(n).indexOf(a);return p===-1?void 0:uge(n,p)}function uge(n,a){if(Qu(n))return a===0?yt:a===1?UWe(!1):Ue;const c=Vr(n).resolvedSignature===Dr?Dr:ZC(n);if(ru(n)&&a===0)return i$(c,n);const p=c.parameters.length-1;return su(c)&&a>=p?Xp(_r(c.parameters[p]),Ch(a-p),256):Lh(c,a)}function dft(n){const a=Kge(n);return a?SA(a):void 0}function uft(n,a){if(n.parent.kind===216)return m6e(n.parent,a)}function pft(n,a){const c=n.parent,{left:p,operatorToken:m,right:b}=c;switch(m.kind){case 64:case 77:case 76:case 78:return n===b?mft(c):void 0;case 57:case 61:const I=Hu(c,a);return n===b&&(I&&I.pattern||!I&&!dne(c))?wd(p):I;case 56:case 28:return n===b?Hu(c,a):void 0;default:return}}function fft(n){if(ah(n)&&n.symbol)return n.symbol;if(He(n))return fu(n);if(qr(n)){const c=wd(n.expression);return eo(n.name)?a(c,n.name):Ea(c,n.name.escapedText)}if(Ws(n)){const c=Vl(n.argumentExpression);if(!jf(c))return;const p=wd(n.expression);return Ea(p,Uf(c))}return;function a(c,p){const m=L5(p.escapedText,p);return m&&f$(c,m)}}function mft(n){var a,c;const p=ac(n);switch(p){case 0:case 4:const m=fft(n.left),b=m&&m.valueDeclaration;if(b&&(Po(b)||Su(b))){const U=xc(b);return U&&io(qi(U),Jr(m).mapper)||(Po(b)?b.initializer&&wd(n.left):void 0)}return p===0?wd(n.left):h6e(n);case 5:if(t$(n,p))return h6e(n);if(!ah(n.left)||!n.left.symbol)return wd(n.left);{const U=n.left.symbol.valueDeclaration;if(!U)return;const H=ha(n.left,Ks),Q=xc(U);if(Q)return qi(Q);if(He(H.expression)){const Ie=H.expression,Te=gt(Ie,Ie.escapedText,111551,void 0,!0);if(Te){const et=Te.valueDeclaration&&xc(Te.valueDeclaration);if(et){const Tt=oy(H);if(Tt!==void 0)return tS(qi(et),Tt)}return}}return Ir(U)||U===n.left?void 0:wd(n.left)}case 1:case 6:case 3:case 2:let I;p!==2&&(I=ah(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&&xc(I);return w?qi(w):void 0;case 7:case 8:case 9:return C.fail("Does not apply");default:return C.assertNever(p)}}function t$(n,a=ac(n)){if(a===4)return!0;if(!Ir(n)||a!==5||!He(n.left.expression))return!1;const c=n.left.expression.escapedText,p=gt(n.left,c,111551,void 0,!0,!0);return YF(p==null?void 0:p.valueDeclaration)}function h6e(n){if(!n.symbol)return wd(n.left);if(n.symbol.valueDeclaration){const m=xc(n.symbol.valueDeclaration);if(m){const b=qi(m);if(b)return b}}const a=ha(n.left,Ks);if(!hm(vu(a.expression,!1,!1)))return;const c=x5(a.expression),p=oy(a);return p!==void 0&&tS(c,p)||void 0}function hft(n){return!!(Wl(n)&262144&&!n.links.type&&ee(n,0)>=0)}function pge(n,a){if(n.flags&16777216){const c=n;return!!(Lm(pT(c)).flags&131072)&&Wy(fT(c))===Wy(c.checkType)&&sa(a,c.extendsType)}return n.flags&2097152?vt(n.types,c=>pge(c,a)):!1}function tS(n,a,c){return Tl(n,p=>{if(p.flags&2097152){let m,b,I=!1;for(const w of p.types){if(!(w.flags&524288))continue;if(up(w)&&DW(w)!==2){const H=_6e(w,a,c);m=fge(m,H);continue}const U=g6e(w,a);if(!U){I||(b=Un(b,w));continue}I=!0,b=void 0,m=fge(m,U)}if(b)for(const w of b){const U=y6e(w,a,c);m=fge(m,U)}return m?m.length===1?m[0]:Ma(m):void 0}if(p.flags&524288)return up(p)&&DW(p)!==2?_6e(p,a,c):g6e(p,a)??y6e(p,a,c)},!0)}function fge(n,a){return a?Un(n,a.flags&1?Nt:a):n}function _6e(n,a,c){const p=c||Sp(Bi(a)),m=Rf(n);if(n.nameType&&pge(n.nameType,p)||pge(m,p))return;const b=Ld(m)||m;if(sa(p,b))return gY(n,p)}function g6e(n,a){const c=Ea(n,a);if(!(!c||hft(c)))return Vy(_r(c),!!(c.flags&16777216))}function y6e(n,a,c){var p;if(Ka(n)&&Ag(a)&&+a>=0){const m=CL(n,n.target.fixedLength,0,!1,!0);if(m)return m}return(p=xhe(Rhe(n),c||Sp(Bi(a))))==null?void 0:p.type}function v6e(n,a){if(C.assert(hm(n)),!(n.flags&67108864))return mge(n,a)}function mge(n,a){const c=n.parent,p=Cc(n)&&cge(n,a);if(p)return p;const m=nS(c,a);if(m){if(FC(n)){const b=Wr(n);return tS(m,b.escapedName,Jr(b).nameType)}if(ay(n)){const b=Oo(n);if(b&&va(b)){const I=go(b.expression),w=jf(I)&&tS(m,Uf(I));if(w)return w}}if(n.name){const b=wy(n.name);return Tl(m,I=>{var w;return(w=xhe(Rhe(I),b))==null?void 0:w.type},!0)}}}function _ft(n){let a,c;for(let p=0;p{if(Ka(b)){if((p===void 0||am)?c-a:0,w=I>0&&b.target.combinedFlags&12?kW(b.target,3):0;return I>0&&I<=w?ol(b)[Gv(b)-I]:CL(b,p===void 0?b.target.fixedLength:Math.min(b.target.fixedLength,p),c===void 0||m===void 0?w:Math.min(w,c-m),!1,!0)}return(!p||ajv(U)?Xp(U,Ch(I)):U,!0))}function vft(n,a){const c=n.parent;return EF(c)?Hu(n,a):i_(c)?yft(c,n,a):void 0}function b6e(n,a){if(o_(n)){const c=nS(n.parent,a);return!c||wr(c)?void 0:tS(c,PM(n.name))}else return Hu(n.parent,a)}function R5(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 R5(n.expression);case 295:return!n.expression||R5(n.expression)}return!1}function bft(n,a){const c=`D${ls(n)},${pd(a)}`;return Gu(c)??Cm(c,dpt(a,n)??b_e(a,lo(Bt(Vn(n.properties,p=>p.symbol?p.kind===304?R5(p.initializer)&&NL(a,p.symbol.escapedName):p.kind===305?NL(a,p.symbol.escapedName):!1:!1),p=>[()=>J5(p.kind===304?p.initializer:p.name),p.symbol.escapedName]),Bt(Vn(bs(a),p=>{var m;return!!(p.flags&16777216)&&!!((m=n==null?void 0:n.symbol)!=null&&m.members)&&!n.symbol.members.has(p.escapedName)&&NL(a,p.escapedName)}),p=>[()=>he,p.escapedName])),sa))}function Tft(n,a){const c=`D${ls(n)},${pd(a)}`,p=Gu(c);if(p)return p;const m=N5(WA(n));return Cm(c,b_e(a,lo(Bt(Vn(n.properties,b=>!!b.symbol&&b.kind===292&&NL(a,b.symbol.escapedName)&&(!b.initializer||R5(b.initializer))),b=>[b.initializer?()=>J5(b.initializer):()=>ft,b.symbol.escapedName]),Bt(Vn(bs(a),b=>{var I;if(!(b.flags&16777216)||!((I=n==null?void 0:n.symbol)!=null&&I.members))return!1;const w=n.parent.parent;return b.escapedName===m&&i_(w)&&iD(w.children).length?!1:!n.symbol.members.has(b.escapedName)&&NL(a,b.escapedName)}),b=>[()=>he,b.escapedName])),sa))}function nS(n,a){const c=hm(n)?v6e(n,a):Hu(n,a),p=n$(c,n,a);if(p&&!(a&&a&2&&p.flags&8650752)){const m=Tl(p,b=>Hr(b)&32?b:Du(b),!0);return m.flags&1048576&&Fa(n)?bft(n,m):m.flags&1048576&&US(n)?Tft(n,m):m}}function n$(n,a,c){if(n&&tc(n,465829888)){const p=LE(a);if(p&&c&1&&vt(p.inferences,g_t))return r$(n,p.nonFixingMapper);if(p!=null&&p.returnMapper){const m=r$(n,p.returnMapper);return m.flags&1048576&&Hg(m.types,Jn)&&Hg(m.types,Mt)?Ec(m,b=>b!==Jn&&b!==Mt):m}}return n}function r$(n,a){return n.flags&465829888?io(n,a):n.flags&1048576?pi(Bt(n.types,c=>r$(c,a)),0):n.flags&2097152?Ma(Bt(n.types,c=>r$(c,a))):n}function Hu(n,a){var c;if(n.flags&67108864)return;const p=S6e(n,!a);if(p>=0)return sp[p];const{parent:m}=n;switch(m.kind){case 261:case 170:case 173:case 172:case 209:return aft(n,a);case 220:case 254:return sft(n,a);case 230:return cft(m,a);case 224:return lft(m,a);case 214:case 215:return m6e(m,n);case 171:return dft(m);case 217:case 235:return Wm(m.type)?Hu(m,a):qi(m.type);case 227:return pft(n,a);case 304:case 305:return mge(m,a);case 306:return Hu(m.parent,a);case 210:{const b=m,I=nS(b,a),w=UR(b.elements,n),U=(c=Vr(b)).spreadIndices??(c.spreadIndices=_ft(b.elements));return hge(I,w,b.elements.length,U.first,U.last)}case 228:return gft(n,a);case 240:return C.assert(m.parent.kind===229),uft(m.parent,n);case 218:{if(Ir(m)){if(KV(m))return qi(XV(m));const b=LT(m);if(b&&!Wm(b.typeExpression.type))return qi(b.typeExpression.type)}return Hu(m,a)}case 236:return Hu(m,a);case 239:return qi(m.type);case 278:return cT(m);case 295:return vft(m,a);case 292:case 294:return b6e(m,a);case 287:case 286:return Cft(m,a);case 302:return Dft(m)}}function T6e(n){D5(n,Hu(n,void 0),!0)}function D5(n,a,c){_l[Td]=n,sp[Td]=a,Rm[Td]=c,Td++}function QW(){Td--,_l[Td]=void 0,sp[Td]=void 0,Rm[Td]=void 0}function S6e(n,a){for(let c=Td-1;c>=0;c--)if(n===_l[c]&&(a||!Rm[c]))return c;return-1}function Sft(n,a){Hp[m_]=n,b0[m_]=a,m_++}function Eft(){m_--,Hp[m_]=void 0,b0[m_]=void 0}function LE(n){for(let a=m_-1;a>=0;a--)if(RS(n,Hp[a]))return b0[a]}function Aft(n){U_[H_]=n,T0[H_]??(T0[H_]=new Map),H_++}function Ift(){H_--,U_[H_]=void 0,T0[H_].clear()}function xft(n){for(let a=H_-1;a>=0;a--)if(n===U_[a])return a;return-1}function Rft(){for(let n=H_-1;n>=0;n--)T0[n].clear()}function Dft(n){return tS(zhe(!1),n4(n))}function Cft(n,a){if(ph(n)&&a!==4){const c=S6e(n.parent,!a);if(c>=0)return sp[c]}return uge(n,0)}function i$(n,a){return Um(a)||a4e(a)!==0?Nft(n,a):Lft(n,a)}function Nft(n,a){let c=qge(n,Nt);c=E6e(a,WA(a),c);const p=kE(_f.IntrinsicAttributes,a);return pr(p)||(c=jz(p,c)),c}function Mft(n,a){if(n.compositeSignatures){const p=[];for(const m of n.compositeSignatures){const b=fs(m);if(wr(b))return b;const I=_n(b,a);if(!I)return;p.push(I)}return Ma(p)}const c=fs(n);return wr(c)?c:_n(c,a)}function Pft(n){if(Um(n))return _4e(n);if(uR(n.tagName)){const c=L6e(n),p=y$(n,c);return SA(p)}const a=Vl(n.tagName);if(a.flags&128){const c=P6e(a,n);if(!c)return nt;const p=y$(n,c);return SA(p)}return a}function E6e(n,a,c){const p=nmt(a);if(p){const m=Pft(n),b=O6e(p,Ir(n),m,c);if(b)return b}return c}function Lft(n,a){const c=WA(a),p=imt(c);let m=p===void 0?qge(n,Nt):p===""?fs(n):Mft(n,p);if(!m)return p&&Ze(a.attributes.properties)&&Qe(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Bi(p)),Nt;if(m=E6e(a,c,m),wr(m))return m;{let b=m;const I=kE(_f.IntrinsicClassAttributes,a);if(!pr(I)){const U=Na(I.symbol),H=fs(n);let Q;if(U){const Ie=Bv([H],U,eg(U),Ir(a));Q=io(I,Yp(U,Ie))}else Q=I;b=jz(Q,b)}const w=kE(_f.IntrinsicAttributes,a);return pr(w)||(b=jz(w,b)),b}}function kft(n){return Vd(O,"noImplicitAny")?gu(n,(a,c)=>a===c||!a?a:iWe(a.typeParameters,c.typeParameters)?Wft(a,c):void 0):void 0}function wft(n,a,c){if(!n||!a)return n||a;const p=pi([_r(n),io(_r(a),c)]);return MA(n,p)}function Oft(n,a,c){const p=Ap(n),m=Ap(a),b=p>=m?n:a,I=b===n?a:n,w=b===n?p:m,U=rg(n)||rg(a),H=U&&!rg(b),Q=new Array(w+(H?1:0));for(let Ie=0;Ie=kh(b)&&Ie>=kh(I),Tn=Ie>=p?void 0:kL(n,Ie),rr=Ie>=m?void 0:kL(a,Ie),yr=Tn===rr?Tn:Tn?rr?void 0:Tn:rr,Sn=ja(1|($t&&!Dt?16777216:0),yr||`arg${Ie}`,Dt?32768:$t?16384:0);Sn.links.type=Dt?Yd(Tt):Tt,Q[Ie]=Sn}if(H){const Ie=ja(1,"args",32768);Ie.links.type=Yd(Lh(I,w)),I===a&&(Ie.links.type=io(Ie.links.type,c)),Q[w]=Ie}return Q}function Wft(n,a){const c=n.typeParameters||a.typeParameters;let p;n.typeParameters&&a.typeParameters&&(p=Yp(a.typeParameters,n.typeParameters));let m=(n.flags|a.flags)&166;const b=n.declaration,I=Oft(n,a,p),w=tl(I);w&&Wl(w)&32768&&(m|=1);const U=wft(n.thisParameter,a.thisParameter,p),H=Math.max(n.minArgumentCount,a.minArgumentCount),Q=v_(b,c,U,I,void 0,void 0,H,m);return Q.compositeKind=2097152,Q.compositeSignatures=lo(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),p&&(Q.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?Y0(n.mapper,p):p),Q}function _ge(n,a){const c=na(n,0),p=Vn(c,m=>!Fft(m,a));return p.length===1?p[0]:kft(p)}function Fft(n,a){let c=0;for(;c{const I=o.getTokenEnd();if(p.category===3&&c&&I===c.start&&m===c.length){const w=CI(a.fileName,a.text,I,m,p,b);pa(c,w)}else(!c||I!==c.start)&&(c=Oc(a,I,m,p,b),ns.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 Bft(n){const a=Vr(n);return a.flags&1||(a.flags|=1,r(()=>zft(n))),ql}function Gft(n,a){GDL(Te)||up(Te)&&!Te.nameType&&!!FW(Te.target||Te));let Ie=!1;for(let Te=0;TeI[et]&8?uT(Te,Gt)||Ue:Te),2):ie?En:B,U))}function I6e(n){if(!(Hr(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=MWe(n),a.objectFlags|=147456),a}function Uft(n){switch(n.kind){case 168:return Hft(n);case 80:return Ag(n.escapedText);case 9:case 11:return Ag(n.text);default:return!1}}function Hft(n){return kd(nh(n),296)}function nh(n){const a=Vr(n.expression);if(!a.resolvedType){if((wu(n.parent.parent)||ui(n.parent.parent)||gd(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=go(n.expression),Po(n.parent)&&!wc(n.parent)&&uc(n.parent.parent)){const c=sh(n.parent.parent),p=ige(c);p&&(Vr(p).flags|=4096,Vr(n).flags|=32768,Vr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!kd(a.resolvedType,402665900)&&!sa(a.resolvedType,Ii))&&Qe(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function qft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return Ag(n.escapedName)||c&&nd(c)&&Uft(c.name)}function x6e(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return sM(n)||c&&nd(c)&&va(c.name)&&kd(nh(c.name),4096)}function Jft(n){var a;const c=(a=n.declarations)==null?void 0:a[0];return c&&nd(c)&&va(c.name)}function e8(n,a,c,p){var m;const b=[];let I;for(let U=a;U0&&(I=RE(I,Sn(),n.symbol,Tt,H),b=[],m=da(),$t=!1,Tn=!1,rr=!1);const oo=Lm(go(vn.expression,a&2));if(C5(oo)){const ii=o_e(oo,H);if(p&&C6e(ii,p,vn),yr=b.length,pr(I))continue;I=RE(I,ii,n.symbol,Tt,H)}else Qe(vn,f.Spread_types_may_only_be_created_from_object_types),I=nt;continue}else C.assert(vn.kind===178||vn.kind===179),fR(vn);fi&&!(fi.flags&8576)?sa(fi,Ii)&&(sa(fi,Gt)?Tn=!0:sa(fi,Qt)?rr=!0:$t=!0,c&&(Dt=!0)):m.set(Sr.escapedName,Sr),b.push(Sr)}if(QW(),pr(I))return nt;if(I!==Ra)return b.length>0&&(I=RE(I,Sn(),n.symbol,Tt,H),b=[],m=da(),$t=!1,Tn=!1),Tl(I,vn=>vn===Ra?Sn():vn);return Sn();function Sn(){const vn=[],Sr=OL(n);$t&&vn.push(e8(Sr,yr,b,yt)),Tn&&vn.push(e8(Sr,yr,b,Gt)),rr&&vn.push(e8(Sr,yr,b,Qt));const fi=bl(n.symbol,m,se,se,vn);return fi.objectFlags|=Tt|128|131072,et&&(fi.objectFlags|=4096),Dt&&(fi.objectFlags|=512),c&&(fi.pattern=n),fi}}function C5(n){const a=dFe(Tl(n,b_));return!!(a.flags&126615553||a.flags&3145728&&Hn(a.types,C5))}function Xft(n){yge(n)}function Yft(n,a){return fR(n),M5(n)||Ue}function $ft(n){yge(n.openingElement),uR(n.closingElement.tagName)?l$(n.closingElement):go(n.closingElement.tagName),s$(n)}function Qft(n,a){return fR(n),M5(n)||Ue}function Zft(n){yge(n.openingFragment);const a=Fn(n);z6(O)&&(O.jsxFactory||a.pragmas.has("jsx"))&&!O.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Qe(n,O.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),s$(n);const c=M5(n);return pr(c)?Ue:c}function gge(n){return n.includes("-")}function uR(n){return He(n)&&oD(n.escapedText)||fh(n)}function R6e(n,a){return n.initializer?WL(n.initializer,a):ft}function D6e(n,a=0){const c=ie?da():void 0;let p=da(),m=ec,b=!1,I,w=!1,U=2048;const H=N5(WA(n)),Q=Um(n);let Ie,Te=n;if(!Q){const Dt=n.attributes;Ie=Dt.symbol,Te=Dt;const $t=Hu(Dt,0);for(const Tn of Dt.properties){const rr=Tn.symbol;if(o_(Tn)){const yr=R6e(Tn,a);U|=Hr(yr)&458752;const Sn=ja(4|rr.flags,rr.escapedName);if(Sn.declarations=rr.declarations,Sn.parent=rr.parent,rr.valueDeclaration&&(Sn.valueDeclaration=rr.valueDeclaration),Sn.links.type=yr,Sn.links.target=rr,p.set(Sn.escapedName,Sn),c==null||c.set(Sn.escapedName,Sn),PM(Tn.name)===H&&(w=!0),$t){const vn=Ea($t,rr.escapedName);vn&&vn.declarations&&xu(vn)&&He(Tn.name)&&Nm(Tn.name,vn.declarations,Tn.name.escapedText)}if($t&&a&2&&!(a&4)&&Cf(Tn)){const vn=LE(Dt);C.assert(vn);const Sr=Tn.initializer.expression;k_e(vn,Sr,yr)}}else{C.assert(Tn.kind===294),p.size>0&&(m=RE(m,Tt(),Dt.symbol,U,!1),p=da());const yr=Lm(go(Tn.expression,a&2));wr(yr)&&(b=!0),C5(yr)?(m=RE(m,yr,Dt.symbol,U,!1),c&&C6e(yr,c,Tn)):(Qe(Tn.expression,f.Spread_types_may_only_be_created_from_object_types),I=I?Ma([I,yr]):yr)}}b||p.size>0&&(m=RE(m,Tt(),Dt.symbol,U,!1))}const et=n.parent;if((i_(et)&&et.openingElement===n||e0(et)&&et.openingFragment===n)&&iD(et.children).length>0){const Dt=s$(et,a);if(!b&&H&&H!==""){w&&Qe(Te,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Bi(H));const $t=ph(n)?nS(n.attributes,void 0):void 0,Tn=$t&&tS($t,H),rr=ja(4,H);rr.links.type=Dt.length===1?Dt[0]:Tn&&am(Tn,DL)?tg(Dt):Yd(pi(Dt)),rr.valueDeclaration=L.createPropertySignature(void 0,Bi(H),void 0,void 0),ps(rr.valueDeclaration,Te),rr.valueDeclaration.symbol=rr;const yr=da();yr.set(H,rr),m=RE(m,bl(Ie,yr,se,se,se),Ie,U,!1)}}if(b)return Ue;if(I&&m!==ec)return Ma([I,m]);return I||(m===ec?Tt():m);function Tt(){return U|=8192,emt(U,Ie,p)}}function emt(n,a,c){const p=bl(a,c,se,se,se);return p.objectFlags|=n|8192|128|131072,p}function s$(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(WL(p,a))}return c}function C6e(n,a,c){for(const p of bs(n))if(!(p.flags&16777216)){const m=a.get(p.escapedName);if(m){const b=Qe(m.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Bi(m.escapedName));pa(b,Ar(c,f.This_spread_always_overwrites_this_property))}}}function tmt(n,a){return D6e(n.parent,a)}function kE(n,a){const c=WA(a),p=c&&qp(c),m=p&&Sd(p,n,788968);return m?qs(m):nt}function l$(n){const a=Vr(n);if(!a.resolvedSymbol){const c=kE(_f.IntrinsicElements,n);if(pr(c))return ve&&Qe(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Bi(_f.IntrinsicElements)),a.resolvedSymbol=ne;{if(!He(n.tagName)&&!fh(n.tagName))return C.fail();const p=fh(n.tagName)?OI(n.tagName):n.tagName.escapedText,m=Ea(c,p);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;const b=t7e(c,Sp(Bi(p)));return b?(a.jsxFlags|=2,a.resolvedSymbol=b):ei(c,p)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Qe(n,f.Property_0_does_not_exist_on_type_1,YV(n.tagName),"JSX."+_f.IntrinsicElements),a.resolvedSymbol=ne)}}return a.resolvedSymbol}function c$(n){const a=n&&Fn(n),c=a&&Vr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;const p=B6(Xk(O,a),O);if(!p)return;const b=iu(O)===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=Wbt(a,p),w=sA(I||n,p,b,n),U=w&&w!==ne?os(hc(w)):void 0;return c&&(c.jsxImplicitImportContainer=U||!1),U}function WA(n){const a=n&&Vr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let p=c$(n);if(!p||p===ne){const m=Jm(n);p=gt(n,m,1920,void 0,!1)}if(p){const m=hc(Sd(qp(hc(p)),_f.JSX,1920));if(m&&m!==ne)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}const c=hc(UC(_f.JSX,1920,void 0));if(c!==ne)return c}function N6e(n,a){const c=a&&Sd(a.exports,n,788968),p=c&&qs(c),m=p&&bs(p);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&c.declarations&&Qe(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Bi(n))}}function nmt(n){return n&&Sd(n.exports,_f.LibraryManagedAttributes,788968)}function rmt(n){return n&&Sd(n.exports,_f.ElementType,788968)}function imt(n){return N6e(_f.ElementAttributesPropertyNameContainer,n)}function N5(n){return O.jsx===4||O.jsx===5?"children":N6e(_f.ElementChildrenAttributeNameContainer,n)}function M6e(n,a){if(n.flags&4)return[ur];if(n.flags&128){const m=P6e(n,a);return m?[y$(a,m)]:(Qe(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+_f.IntrinsicElements),se)}const c=Du(n);let p=na(c,1);return p.length===0&&(p=na(c,0)),p.length===0&&c.flags&1048576&&(p=_he(Bt(c.types,m=>M6e(m,a)))),p}function P6e(n,a){const c=kE(_f.IntrinsicElements,a);if(!pr(c)){const p=n.value,m=Ea(c,Cl(p));if(m)return _r(m);const b=q0(c,yt);return b||void 0}return Ue}function omt(n,a,c){if(n===1){const m=w6e(c);m&&rm(a,m,qd,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,p)}else if(n===0){const m=k6e(c);m&&rm(a,m,qd,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,p)}else{const m=w6e(c),b=k6e(c);if(!m||!b)return;const I=pi([m,b]);rm(a,I,qd,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,p)}function p(){const m=Al(c.tagName);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,m)}}function L6e(n){var a;C.assert(uR(n.tagName));const c=Vr(n);if(!c.resolvedJsxElementAttributesType){const p=l$(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=_r(p)||nt;if(c.jsxFlags&2){const m=fh(n.tagName)?OI(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=tR(kE(_f.IntrinsicElements,n),m))==null?void 0:a.type)||nt}else return c.resolvedJsxElementAttributesType=nt}return c.resolvedJsxElementAttributesType}function k6e(n){const a=kE(_f.ElementClass,n);if(!pr(a))return a}function M5(n){return kE(_f.Element,n)}function w6e(n){const a=M5(n);if(a)return pi([a,Xt])}function amt(n){const a=WA(n);if(!a)return;const c=rmt(a);if(!c)return;const p=O6e(c,Ir(n));if(!(!p||pr(p)))return p}function O6e(n,a,...c){const p=qs(n);if(n.flags&524288){const m=Jr(n).typeParameters;if(Ze(m)>=c.length){const b=Bv(c,m,c.length,a);return Ze(b)===0?p:VC(n,b)}}if(Ze(p.typeParameters)>=c.length){const m=Bv(c,p.typeParameters,c.length,a);return ky(p,m)}}function smt(n){const a=kE(_f.IntrinsicElements,n);return a?bs(a):se}function lmt(n){(O.jsx||0)===0&&Qe(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),M5(n)===void 0&&ve&&Qe(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function yge(n){const a=ru(n);a&&lbt(n),lmt(n),rge(n);const c=ZC(n);if(b$(c,n),a){const p=n,m=amt(p);if(m!==void 0){const b=p.tagName,I=uR(b)?Sp(YV(b)):go(b);rm(I,m,qd,b,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const w=Al(b);return qo(void 0,f._0_cannot_be_used_as_a_JSX_component,w)})}else omt(a4e(p),fs(c),p)}}function d$(n,a,c){if(n.flags&524288&&(EE(n,a)||tR(n,a)||xW(a)&&jg(n,yt)||c&&gge(a)))return!0;if(n.flags&33554432)return d$(n.baseType,a,c);if(n.flags&3145728&&t8(n)){for(const p of n.types)if(d$(p,a,c))return!0}return!1}function t8(n){return!!(n.flags&524288&&!(Hr(n)&512)||n.flags&67108864||n.flags&33554432&&t8(n.baseType)||n.flags&1048576&&vt(n.types,t8)||n.flags&2097152&&Hn(n.types,t8))}function cmt(n,a){if(dbt(n),n.expression){const c=go(n.expression,a);return n.dotDotDotToken&&c!==Ue&&!im(c)&&Qe(n,f.JSX_spread_child_must_be_an_array_type),c}else return nt}function vge(n){return n.valueDeclaration?OE(n.valueDeclaration):0}function bge(n){if(n.flags&8192||Wl(n)&4)return!0;if(Ir(n.valueDeclaration)){const a=n.valueDeclaration.parent;return a&&Nr(a)&&ac(a)===3}}function Tge(n,a,c,p,m,b=!0){const I=b?n.kind===167?n.right:n.kind===206?n:n.kind===209&&n.propertyName?n.propertyName:n.name:void 0;return W6e(n,a,c,p,m,I)}function W6e(n,a,c,p,m,b){var I;const w=Vf(m,c);if(a){if(G<2&&F6e(m))return b&&Qe(b,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(w&64)return b&&Qe(b,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,po(m),sr(aR(m))),!1;if(!(w&256)&&((I=m.declarations)!=null&&I.some(ste)))return b&&Qe(b,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,po(m)),!1}if(w&64&&F6e(m)&&(lk(n)||sne(n)||ff(n.parent)&&YF(n.parent.parent))){const H=dy(Yc(m));if(H&&avt(n))return b&&Qe(b,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,po(m),zf(H.name)),!1}if(!(w&6))return!0;if(w&2){const H=dy(Yc(m));return xye(n,H)?!0:(b&&Qe(b,f.Property_0_is_private_and_only_accessible_within_class_1,po(m),sr(aR(m))),!1)}if(a)return!0;let U=Z3e(n,H=>{const Q=qs(Wr(H));return eFe(Q,m,c)});return!U&&(U=dmt(n),U=U&&eFe(U,m,c),w&256||!U)?(b&&Qe(b,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,po(m),sr(aR(m)||p)),!1):w&256?!0:(p.flags&262144&&(p=p.isThisType?Uu(p):Ld(p)),!p||!Ur(p,U)?(b&&Qe(b,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,po(m),sr(U),sr(p)),!1):!0)}function dmt(n){const a=umt(n);let c=(a==null?void 0:a.type)&&qi(a.type);if(c)c.flags&262144&&(c=Uu(c));else{const p=vu(n,!1,!1);Yo(p)&&(c=lge(p))}if(c&&Hr(c)&7)return Gn(c)}function umt(n){const a=vu(n,!1,!1);return a&&Yo(a)?NS(a):void 0}function F6e(n){return!!u5(n,a=>!(a.flags&8192))}function $C(n){return E_(go(n),n)}function P5(n){return Mh(n,50331648)}function Sge(n){return P5(n)?Gy(n):n}function pmt(n,a){const c=Ds(n)?Mp(n):void 0;if(n.kind===106){Qe(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(He(n)&&c==="undefined"){Qe(n,f.The_value_0_cannot_be_used_here,"undefined");return}Qe(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else Qe(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function fmt(n,a){Qe(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 z6e(n,a,c){if(ie&&n.flags&2){if(Ds(a)){const m=Mp(a);if(m.length<100)return Qe(a,f._0_is_of_type_unknown,m),nt}return Qe(a,f.Object_is_of_type_unknown),nt}const p=JC(n,50331648);if(p&50331648){c(a,p);const m=Gy(n);return m.flags&229376?nt:m}return n}function E_(n,a){return z6e(n,a,pmt)}function B6e(n,a){const c=E_(n,a);if(c.flags&16384){if(Ds(a)){const p=Mp(a);if(He(a)&&p==="undefined")return Qe(a,f.The_value_0_cannot_be_used_here,p),c;if(p.length<100)return Qe(a,f._0_is_possibly_undefined,p),c}Qe(a,f.Object_is_possibly_undefined)}return c}function u$(n,a,c){return n.flags&64?mmt(n,a):Age(n,n.expression,$C(n.expression),n.name,a,c)}function mmt(n,a){const c=go(n.expression),p=UW(c,n.expression);return OY(Age(n,n.expression,E_(p,n.expression),n.name,a),n,p!==c)}function G6e(n,a){const c=ZF(n)&&Eb(n.left)?E_(x5(n.left),n.left):$C(n.left);return Age(n,n.left,c,n.right,a)}function Ege(n){for(;n.parent.kind===218;)n=n.parent;return Vh(n.parent)&&n.parent.expression===n}function L5(n,a){for(let c=KF(a);c;c=hd(c)){const{symbol:p}=c,m=Ck(p,n),b=p.members&&p.members.get(m)||p.exports&&p.exports.get(m);if(b)return b}}function hmt(n){if(!hd(n))return Cn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!T4(n.parent)){if(!L_(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(!p$(n)&&!a)return Cn(n,f.Cannot_find_name_0,Kr(n))}return!1}function _mt(n){hmt(n);const a=p$(n);return a&&w5(a,void 0,!1),Ue}function p$(n){if(!L_(n))return;const a=Vr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=L5(n.escapedText,n)),a.resolvedSymbol}function f$(n,a){return Ea(n,a.escapedName)}function gmt(n,a,c){let p;const m=bs(n);m&&$e(m,I=>{const w=I.valueDeclaration;if(w&&nd(w)&&eo(w.name)&&w.name.escapedText===a.escapedText)return p=I,!0});const b=vp(a);if(p){const I=C.checkDefined(p.valueDeclaration),w=C.checkDefined(hd(I));if(c!=null&&c.valueDeclaration){const U=c.valueDeclaration,H=hd(U);if(C.assert(!!H),Dn(H,Q=>w===Q)){const Q=Qe(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,b,sr(n));return pa(Q,Ar(U,f.The_shadowing_declaration_of_0_is_defined_here,b),Ar(I,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,b)),!0}}return Qe(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,b,vp(w.name||PU)),!0}return!1}function V6e(n,a){return(Bg(a)||lk(n)&&$_(a))&&vu(n,!0,!1)===br(a)}function Age(n,a,c,p,m,b){const I=Vr(a).resolvedSymbol,w=bb(n),U=Du(w!==0||Ege(n)?$p(c):c),H=wr(U)||U===wt;let Q;if(eo(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 Ms(c.parent)&&c.parent.kind!==220?"quit":!1;default:return!1}})}function vmt(n){if(!(n.parent.flags&32))return!1;let a=_r(n.parent);for(;;){if(a=a.symbol&&bmt(a),!a)return!1;const c=Ea(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function bmt(n){const a=eh(n);if(a.length!==0)return Ma(a)}function U6e(n,a,c){const p=Vr(n),m=p.nonExistentPropCheckCache||(p.nonExistentPropCheckCache=new Set),b=`${pd(a)}|${c}`;if(m.has(b))return;m.add(b);let I,w;if(!eo(n)&&a.flags&1048576&&!(a.flags&402784252)){for(const H of a.types)if(!Ea(H,n.escapedText)&&!tR(H,n.escapedText)){I=qo(I,f.Property_0_does_not_exist_on_type_1,ws(n),sr(H));break}}if(H6e(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=p8(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),Ie=sr(a),Te=Emt(Q,a);if(Te!==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,Ie,Te);else{const et=Rge(n,a);if(et!==void 0){const Tt=wl(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,Ie,Tt),w=et.valueDeclaration&&Ar(et.valueDeclaration,f._0_is_declared_here,Tt)}else{const Tt=Tmt(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(Ihe(I,a),Tt,Q,Ie)}}}}const U=_g(Fn(n),n,I);w&&pa(U,w),Lg(!c||I.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,U)}function Tmt(n){return O.lib&&!O.lib.includes("lib.dom.d.ts")&&Ipt(n,a=>a.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Bi(a.symbol.escapedName)))&&zy(n)}function H6e(n,a){const c=a.symbol&&Ea(_r(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&ua(c.valueDeclaration)}function Smt(n){const a=vp(n),p=mG().get(a);return p&&zB(p.keys())}function Emt(n,a){const c=Du(a).symbol;if(!c)return;const p=wl(c),b=mG().get(p);if(b){for(const[I,w]of b)if(Ln(w,n))return I}}function q6e(n,a){return k5(n,bs(a),106500)}function Rge(n,a){let c=bs(a);if(typeof n!="string"){const p=n.parent;qr(p)&&(c=Vn(c,m=>$6e(p,a,m))),n=Kr(n)}return k5(n,c,111551)}function J6e(n,a){const c=Bo(n)?n:Kr(n),p=bs(a);return(c==="for"?hn(p,b=>wl(b)==="htmlFor"):c==="class"?hn(p,b=>wl(b)==="className"):void 0)??k5(c,p,111551)}function K6e(n,a){const c=Rge(n,a);return c&&wl(c)}function Amt(n,a,c){const p=Sd(n,a,c);if(p)return p;let m;return n===lt?m=ji(["string","number","boolean","object","bigint","symbol"],I=>n.has(I.charAt(0).toUpperCase()+I.slice(1))?ja(524288,I):void 0).concat(Co(n.values())):m=Co(n.values()),k5(Bi(a),m,c)}function X6e(n,a,c){return C.assert(a!==void 0,"outername should always be defined"),en(n,a,c,void 0,!1,!1)}function Dge(n,a){return a.exports&&k5(Kr(n),jx(a),2623475)}function Imt(n,a,c){function p(I){const w=EE(n,I);if(w){const U=zA(_r(w));return!!U&&kh(U)>=1&&sa(c,Lh(U,0))}return!1}const m=Tb(a)?"set":"get";if(!p(m))return;let b=zk(a.expression);return b===void 0?b=m:b+="."+m,b}function xmt(n,a){const c=a.types.filter(p=>!!(p.flags&128));return mS(n.value,c,p=>p.value)}function k5(n,a,c){return mS(n,a,p);function p(m){const b=wl(m);if(!fo(b,'"')){if(m.flags&c)return b;if(m.flags&2097152){const I=zx(m);if(I&&I.flags&c)return b}}}}function w5(n,a,c){const p=n&&n.flags&106500&&n.valueDeclaration;if(!p)return;const m=wp(p,2),b=n.valueDeclaration&&nd(n.valueDeclaration)&&eo(n.valueDeclaration.name);if(!(!m&&!b)&&!(a&&C6(a)&&!(n.flags&65536))){if(c){const I=Dn(a,Ms);if(I&&I.symbol===n)return}(Wl(n)&1?Jr(n).target:n).isReferenced=-1}}function Y6e(n,a){return n.kind===110||!!a&&Ds(n)&&a===fu(Lu(n))}function Rmt(n,a){switch(n.kind){case 212:return Cge(n,n.expression.kind===108,a,$p(go(n.expression)));case 167:return Cge(n,!1,a,$p(go(n.left)));case 206:return Cge(n,!1,a,qi(n))}}function $6e(n,a,c){return Nge(n,n.kind===212&&n.expression.kind===108,!1,a,c)}function Cge(n,a,c,p){if(wr(p))return!0;const m=Ea(p,c);return!!m&&Nge(n,a,!1,p,m)}function Nge(n,a,c,p,m){if(wr(p))return!0;if(m.valueDeclaration&&nu(m.valueDeclaration)){const b=hd(m.valueDeclaration);return!tu(n)&&!!Dn(n,I=>I===b)}return W6e(n,a,c,p,m)}function Dmt(n){const a=n.initializer;if(a.kind===262){const c=a.declarations[0];if(c&&!Qo(c.name))return Wr(c)}else if(a.kind===80)return fu(a)}function Cmt(n){return Xd(n).length===1&&!!jg(n,Gt)}function Nmt(n){const a=us(n);if(a.kind===80){const c=fu(a);if(c.flags&3){let p=n,m=n.parent;for(;m;){if(m.kind===250&&p===m.statement&&Dmt(m)===c&&Cmt(wd(m.expression)))return!0;p=m,m=m.parent}}}return!1}function Mmt(n,a){return n.flags&64?Pmt(n,a):Q6e(n,$C(n.expression),a)}function Pmt(n,a){const c=go(n.expression),p=UW(c,n.expression);return OY(Q6e(n,E_(p,n.expression),a),n,p!==c)}function Q6e(n,a,c){const p=bb(n)!==0||Ege(n)?$p(a):a,m=n.argumentExpression,b=go(m);if(pr(p)||p===wt)return p;if(A$(p)&&!ds(m))return Qe(m,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),nt;const I=Nmt(m)?Gt:b,w=bb(n);let U;w===0?U=32:(U=4|(xA(p)&&!MM(p)?2:0),w===2&&(U|=32));const H=uT(p,I,U,n)||nt;return s3e(j6e(n,Vr(n).resolvedSymbol,H,m,c),n)}function Z6e(n){return Vh(n)||XT(n)||ru(n)}function FA(n){return Z6e(n)&&$e(n.typeArguments,Oa),n.kind===216?go(n.template):ru(n)?go(n.attributes):Nr(n)?go(n.left):Vh(n)&&$e(n.arguments,a=>{go(a)}),ur}function Ph(n){return FA(n),si}function Lmt(n,a,c){let p,m,b=0,I,w=-1,U;C.assert(!a.length);for(const H of n){const Q=H.declaration&&Wr(H.declaration),Ie=H.declaration&&H.declaration.parent;!m||Q===m?p&&Ie===p?I=I+1:(p=Ie,I=b):(I=b=a.length,p=Ie),m=Q,J1e(H)?(w++,U=w,b++):U=I,a.splice(U,0,c?_lt(H,c):H)}}function m$(n){return!!n&&(n.kind===231||n.kind===238&&n.isSpread)}function Mge(n){return so(n,m$)}function e4e(n){return!!(n.flags&16384)}function kmt(n){return!!(n.flags&49155)}function h$(n,a,c,p=!1){if(Um(n))return!0;let m,b=!1,I=Ap(c),w=kh(c);if(n.kind===216)if(m=a.length,n.template.kind===229){const U=Ba(n.template.templateSpans);b=Ol(U.literal)||!!U.literal.isUnterminated}else{const U=n.template;C.assert(U.kind===15),b=!!U.isUnterminated}else if(n.kind===171)m=l4e(n,c);else if(n.kind===227)m=1;else if(ru(n)){if(b=n.attributes.end===n.end,b)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,b=n.arguments.end===n.end;const U=Mge(a);if(U>=0)return U>=kh(c)&&(rg(c)||UI)return!1;if(b||m>=w)return!0;for(let U=m;U=p&&a.length<=c}function t4e(n,a){let c;return!!(n.target&&(c=wE(n.target,a))&&X0(c))}function zA(n){return n8(n,0,!1)}function n4e(n){return n8(n,0,!1)||n8(n,1,!1)}function n8(n,a,c){if(n.flags&524288){const p=Dh(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 r4e(n,a,c,p){const m=JW(RWe(n),n,0,p),b=o8(a),I=c&&(b&&b.flags&262144?c.nonFixingMapper:c.mapper),w=I?CA(a,I):a;return M_e(w,n,(U,H)=>{Jg(m.inferences,U,H)}),c||P_e(a,n,(U,H)=>{Jg(m.inferences,U,H,128)}),PW(n,U_e(m),Ir(a.declaration))}function wmt(n,a,c,p){const m=i$(a,n),b=eN(n.attributes,m,p,c);return Jg(p.inferences,b,m),U_e(p)}function i4e(n){if(!n)return In;const a=go(n);return jne(n)?a:PN(n.parent)?Gy(a):tu(n.parent)?wY(a):a}function Lge(n,a,c,p,m){if(ru(n))return wmt(n,a,p,m);if(n.kind!==171&&n.kind!==227){const U=Hn(a.typeParameters,Q=>!!AE(Q)),H=Hu(n,U?8:0);if(H){const Q=fs(a);if(_T(Q)){const Ie=LE(n);if(!(!U&&Hu(n,8)!==H)){const Dt=O_e(mFe(Ie,1)),$t=io(H,Dt),Tn=zA($t),rr=Tn&&Tn.typeParameters?SA(Mhe(Tn,Tn.typeParameters)):$t;Jg(m.inferences,rr,Q,128)}const et=JW(a.typeParameters,a,m.flags),Tt=io(H,Ie&&kdt(Ie));Jg(et.inferences,Tt,Q),m.returnMapper=vt(et.inferences,tN)?O_e(Uut(et)):void 0}}}const b=a8(a),I=b?Math.min(Ap(a)-1,c.length):c.length;if(b&&b.flags&262144){const U=hn(m.inferences,H=>H.typeParameter===b);U&&(U.impliedArity=so(c,m$,I)<0?c.length-I:void 0)}const w=J0(a);if(w&&_T(w)){const U=s4e(n);Jg(m.inferences,i4e(U),w)}for(let U=0;U=c-1){const Q=n[c-1];if(m$(Q)){const Ie=Q.kind===238?Q.type:eN(Q.expression,p,m,b);return jv(Ie)?o4e(Ie):Yd(Hv(33,Ie,he,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,Ie=p||f.Type_0_does_not_satisfy_the_constraint_1;w||(w=Yp(b,I));const Te=I[U];if(!$d(Te,Kp(io(H,w),Te),c?a[U]:void 0,Ie,Q))return}}return I}function a4e(n){if(uR(n.tagName))return 2;const a=Du(go(n.tagName));return Ze(na(a,1))?0:Ze(na(a,0))?1:2}function Omt(n,a,c,p,m,b,I){const w=i$(a,n),U=Um(n)?D6e(n):eN(n.attributes,w,void 0,p),H=p&4?qW(U):U;return Q()&&h_e(H,w,c,m?Um(n)?n:n.tagName:void 0,Um(n)?void 0:n.attributes,void 0,b,I);function Q(){var Ie;if(c$(n))return!0;const Te=(ph(n)||x1(n))&&!(uR(n.tagName)||fh(n.tagName))?go(n.tagName):void 0;if(!Te)return!0;const et=na(Te,0);if(!Ze(et))return!0;const Tt=Mye(n);if(!Tt)return!0;const Dt=Gl(Tt,111551,!0,!1,n);if(!Dt)return!0;const $t=_r(Dt),Tn=na($t,0);if(!Ze(Tn))return!0;let rr=!1,yr=0;for(const vn of Tn){const Sr=Lh(vn,0),fi=na(Sr,0);if(Ze(fi))for(const oo of fi){if(rr=!0,rg(oo))return!0;const ii=Ap(oo);ii>yr&&(yr=ii)}}if(!rr)return!0;let Sn=1/0;for(const vn of et){const Sr=kh(vn);Sr{m.push(b.expression)}),m}if(n.kind===171)return Wmt(n);if(n.kind===227)return[n.left];if(ru(n))return n.attributes.properties.length>0||ph(n)&&n.parent.children.length>0?[n.attributes]:se;const a=n.arguments||se,c=Mge(a);if(c>=0){const p=a.slice(0,c);for(let m=c;m{var H;const Q=I.target.elementFlags[U],Ie=r8(b,Q&4?Yd(w):w,!!(Q&12),(H=I.target.labeledElementDeclarations)==null?void 0:H[U]);p.push(Ie)}):p.push(b)}return p}return a}function Wmt(n){const a=n.expression,c=Kge(n);if(c){const p=[];for(const m of c.parameters){const b=_r(m);p.push(r8(a,b))}return p}return C.fail()}function l4e(n,a){return O.experimentalDecorators?Fmt(n,a):Math.min(Math.max(Ap(a),1),2)}function Fmt(n,a){switch(n.parent.kind){case 264:case 232:return 1;case 173:return Xh(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 c4e(n){const a=Fn(n),{start:c,length:p}=n1(a,qr(n.expression)?n.expression.name:n.expression);return{start:c,length:p,sourceFile:a}}function i8(n,a,...c){if(Zo(n)){const{sourceFile:p,start:m,length:b}=c4e(n);return"message"in a?Oc(p,m,b,a,...c):IG(p,a)}else return"message"in a?Ar(n,a,...c):_g(Fn(n),n,a)}function zmt(n){return Vh(n)?qr(n.expression)?n.expression.name:n.expression:XT(n)?qr(n.tag)?n.tag.name:n.tag:ru(n)?n.tagName:n}function Bmt(n){if(!Zo(n)||!He(n.expression))return!1;const a=gt(n.expression,n.expression.escapedText,111551,void 0,!1),c=a==null?void 0:a.valueDeclaration;if(!c||!to(c)||!Rb(c.parent)||!VS(c.parent.parent)||!He(c.parent.parent.expression))return!1;const p=Bhe(!1);return p?sm(c.parent.parent.expression,!0)===p:!1}function d4e(n,a,c,p){var m;const b=Mge(c);if(b>-1)return Ar(c[b],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=kh(Dt),Tn=Ap(Dt);$tU&&(U=$t),c.lengthm?I=Math.min(I,U):H1&&(Dt=oo(Tn,q_,Sn,vn)),Dt||(Dt=oo(Tn,qd,Sn,vn));const Sr=Vr(n);if(Sr.resolvedSignature!==Dr&&!c)return C.assert(Sr.resolvedSignature),Sr.resolvedSignature;if(Dt)return Dt;if(Dt=Vmt(n,Tn,yr,!!c,p),Sr.resolvedSignature=Dt,Ie){if(!b&&Q&&(b=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),Te)if(Te.length===1||Te.length>3){const ii=Te[Te.length-1];let zi;Te.length>3&&(zi=qo(zi,f.The_last_overload_gave_the_following_error),zi=qo(zi,f.No_overload_matches_this_call)),b&&(zi=qo(zi,b));const Ko=O5(n,yr,ii,qd,0,!0,()=>zi);if(Ko)for(const ms of Ko)ii.declaration&&Te.length>3&&pa(ms,Ar(ii.declaration,f.The_last_overload_is_declared_here)),fi(ii,ms),ns.add(ms);else C.fail("No error for last overload signature")}else{const ii=[];let zi=0,Ko=Number.MAX_VALUE,ms=0,mo=0;for(const ir of Te){const vr=O5(n,yr,ir,qd,0,!0,()=>qo(void 0,f.Overload_0_of_1_2_gave_the_following_error,mo+1,Tn.length,aT(ir)));vr?(vr.length<=Ko&&(Ko=vr.length,ms=mo),zi=Math.max(zi,vr.length),ii.push(vr)):C.fail("No error for 3 or fewer overload signatures"),mo++}const pl=zi>1?ii[ms]:ia(ii);C.assert(pl.length>0,"No errors reported for 3 or fewer overload signatures");let Kl=qo(Bt(pl,Hte),f.No_overload_matches_this_call);b&&(Kl=qo(Kl,b));const mu=[...Ki(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:Ui,length:vr}=pl[0];qn={file:ir,start:Ui,length:vr,code:Kl.code,category:Kl.category,messageText:Kl,relatedInformation:mu}}else qn=_g(Fn(n),zmt(n),Kl,mu);fi(Te[0],qn),ns.add(qn)}else if(et)ns.add(d4e(n,[et],yr,b));else if(Tt)wge(Tt,n.typeArguments,!0,b);else if(!H){const ii=Vn(a,zi=>Pge(zi,rr));ii.length===0?ns.add(Gmt(n,a,rr,b)):ns.add(d4e(n,ii,yr,b))}}return Dt;function fi(ii,zi){var Ko,ms;const mo=Te,pl=et,Kl=Tt,mu=((ms=(Ko=ii.declaration)==null?void 0:Ko.symbol)==null?void 0:ms.declarations)||se,ir=mu.length>1?hn(mu,Ui=>Ms(Ui)&&mm(Ui.body)):void 0;if(ir){const Ui=Df(ir),vr=!Ui.typeParameters;oo([Ui],qd,vr)&&pa(zi,Ar(ir,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Te=mo,et=pl,Tt=Kl}function oo(ii,zi,Ko,ms=!1){if(Te=void 0,et=void 0,Tt=void 0,Ko){const mo=ii[0];if(vt(rr)||!h$(n,yr,mo,ms))return;if(O5(n,yr,mo,zi,0,!1,void 0)){Te=[mo];return}return mo}for(let mo=0;mo0),fR(n),p||a.length===1||a.some(b=>!!b.typeParameters)?Hmt(n,a,c,m):jmt(a)}function jmt(n){const a=ji(n,U=>U.thisParameter);let c;a.length&&(c=u4e(a,a.map(z5)));const{min:p,max:m}=Rre(n,Umt),b=[];for(let U=0;Usu(Q)?UwE(Q,U))))}const I=ji(n,U=>su(U)?Ba(U.parameters):void 0);let w=128;if(I.length!==0){const U=Yd(pi(ji(n,xWe),2));b.push(p4e(I,U)),w|=1}return n.some(J1e)&&(w|=2),v_(n[0].declaration,void 0,c,b,Ma(n.map(fs)),void 0,p,w)}function Umt(n){const a=n.parameters.length;return su(n)?a-1:a}function u4e(n,a){return p4e(n,pi(a,2))}function p4e(n,a){return MA($a(n),a)}function Hmt(n,a,c,p){const m=Kmt(a,at===void 0?c.length:at),b=a[m],{typeParameters:I}=b;if(!I)return b;const w=Z6e(n)?n.typeArguments:void 0,U=w?iY(b,qmt(w,I,Ir(n))):Jmt(n,I,b,c,p);return a[m]=U,U}function qmt(n,a,c){const p=n.map(mR);for(;p.length>a.length;)p.pop();for(;p.length=a)return m;I>p&&(p=I,c=m)}return c}function Xmt(n,a,c){if(n.expression.kind===108){const U=ZY(n.expression);if(wr(U)){for(const H of n.arguments)go(H);return ur}if(!pr(U)){const H=lh(hd(n));if(H){const Q=Gg(U,H.typeArguments,H);return QC(n,Q,a,c,0)}}return FA(n)}let p,m=go(n.expression);if(XE(n)){const U=UW(m,n.expression);p=U===m?0:LN(n)?16:8,m=U}else p=0;if(m=z6e(m,n.expression,fmt),m===wt)return zn;const b=Du(m);if(pr(b))return Ph(n);const I=na(b,0),w=na(b,1).length;if(W5(m,b,I.length,w))return!pr(m)&&n.typeArguments&&Qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),FA(n);if(!I.length){if(w)Qe(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=Fn(n).text;eu(H.charCodeAt(ka(H,n.expression.end,!0)-1))&&(U=Ar(n.expression,f.Are_you_missing_a_semicolon))}Wge(n.expression,b,0,U)}return Ph(n)}return c&8&&!n.typeArguments&&I.some(Ymt)?(Y4e(n,c),Dr):I.some(U=>Ir(U.declaration)&&!!B9(U.declaration))?(Qe(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,sr(m)),Ph(n)):QC(n,I,a,c,p)}function Ymt(n){return!!(n.typeParameters&&Cye(fs(n)))}function W5(n,a,c,p){return wr(n)||wr(a)&&!!(n.flags&262144)||!c&&!p&&!(a.flags&1048576)&&!(Lm(a).flags&131072)&&sa(n,tr)}function $mt(n,a,c){let p=$C(n.expression);if(p===wt)return zn;if(p=Du(p),pr(p))return Ph(n);if(wr(p))return n.typeArguments&&Qe(n,f.Untyped_function_calls_may_not_accept_type_arguments),FA(n);const m=na(p,1);if(m.length){if(!Qmt(n,m[0]))return Ph(n);if(f4e(m,w=>!!(w.flags&4)))return Qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Ph(n);const I=p.symbol&&dy(p.symbol);return I&&di(I,64)?(Qe(n,f.Cannot_create_an_instance_of_an_abstract_class),Ph(n)):QC(n,m,a,c,0)}const b=na(p,0);if(b.length){const I=QC(n,b,a,c,0);return ve||(I.declaration&&!A_(I.declaration)&&fs(I)!==In&&Qe(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),J0(I)===In&&Qe(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return Wge(n.expression,p,1),Ph(n)}function f4e(n,a){return Mo(n)?vt(n,c=>f4e(c,a)):n.compositeKind===1048576?vt(n.compositeSignatures,a):a(n)}function Oge(n,a){const c=eh(a);if(!Ze(c))return!1;const p=c[0];if(p.flags&2097152){const m=p.types,b=aWe(m);let I=0;for(const w of p.types){if(!b[I]&&Hr(w)&3&&(w.symbol===n||Oge(n,w)))return!0;I++}return!1}return p.symbol===n?!0:Oge(n,p)}function Qmt(n,a){if(!a||!a.declaration)return!0;const c=a.declaration,p=AI(c,6);if(!p||c.kind!==177)return!0;const m=dy(c.parent.symbol),b=qs(c.parent.symbol);if(!xye(n,m)){const I=hd(n);if(I&&p&4){const w=mR(I);if(Oge(c.parent.symbol,w))return!0}return p&2&&Qe(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,sr(b)),p&4&&Qe(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,sr(b)),!1}return!0}function m4e(n,a,c){let p;const m=c===0,b=pR(a),I=b&&na(b,c).length>0;if(a.flags&1048576){const U=a.types;let H=!1;for(const Q of U)if(na(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(Zo(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 Wge(n,a,c,p){const{messageChain:m,relatedMessage:b}=m4e(n,a,c),I=_g(Fn(n),n,m);if(b&&pa(I,Ar(n,b)),Zo(n.parent)){const{start:w,length:U}=c4e(n.parent);I.start=w,I.length=U}ns.add(I),h4e(a,c,p?pa(I,p):I)}function h4e(n,a,c){if(!n.symbol)return;const p=Jr(n.symbol).originatingImport;if(p&&!Qu(p)){const m=na(_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 Zmt(n,a,c){const p=go(n.tag),m=Du(p);if(pr(m))return Ph(n);const b=na(m,0),I=na(m,1).length;if(W5(p,m,b.length,I))return FA(n);if(!b.length){if(Cd(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 ns.add(w),Ph(n)}return Wge(n.tag,m,0),Ph(n)}return QC(n,b,a,c,0)}function eht(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 tht(n,a,c){const p=go(n.expression),m=Du(p);if(pr(m))return Ph(n);const b=na(m,0),I=na(m,1).length;if(W5(p,m,b.length,I))return FA(n);if(iht(n,b)&&!Ou(n.expression)){const U=Al(n.expression,!1);return Qe(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),Ph(n)}const w=eht(n);if(!b.length){const U=m4e(n.expression,m,0),H=qo(U.messageChain,w),Q=_g(Fn(n.expression),n.expression,H);return U.relatedMessage&&pa(Q,Ar(n.expression,U.relatedMessage)),ns.add(Q),h4e(m,0,Q),Ph(n)}return QC(n,b,a,c,0,w)}function y$(n,a){const c=WA(n),p=c&&qp(c),m=p&&Sd(p,_f.Element,788968),b=m&&be.symbolToEntityName(m,788968,n),I=L.createFunctionTypeNode(void 0,[L.createParameterDeclaration(void 0,void 0,"props",void 0,be.typeToTypeNode(a,n))],b?L.createTypeReferenceNode(b,void 0):L.createKeywordTypeNode(133)),w=ja(1,"props");return w.links.type=a,v_(I,void 0,void 0,[w],m?qs(m):nt,void 0,1,0)}function _4e(n){const a=Vr(Fn(n));if(a.jsxFragmentType!==void 0)return a.jsxFragmentType;const c=Jm(n);if(!((O.jsx===2||O.jsxFragmentFactory!==void 0)&&c!=="null"))return a.jsxFragmentType=Ue;const m=O.jsx!==1&&O.jsx!==3,b=ns?f.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,I=c$(n)??gt(n,c,m?111551:111167,b,!0);if(I===void 0)return a.jsxFragmentType=nt;if(I.escapedName===FU.Fragment)return a.jsxFragmentType=_r(I);const w=I.flags&2097152?ud(I):I,U=I&&qp(w),H=U&&Sd(U,FU.Fragment,2),Q=H&&_r(H);return a.jsxFragmentType=Q===void 0?nt:Q}function nht(n,a,c){const p=Um(n);let m;if(p)m=_4e(n);else{if(uR(n.tagName)){const w=L6e(n),U=y$(n,w);return ME(eN(n.attributes,i$(U,n),void 0,0),w,n.tagName,n.attributes),Ze(n.typeArguments)&&($e(n.typeArguments,Oa),ns.add(qR(Fn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,Ze(n.typeArguments)))),U}m=go(n.tagName)}const b=Du(m);if(pr(b))return Ph(n);const I=M6e(m,n);return W5(m,b,I.length,0)?FA(n):I.length===0?(p?Qe(n,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Al(n)):Qe(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Al(n.tagName)),Ph(n)):QC(n,I,a,c,0)}function rht(n,a,c){const p=go(n.right);if(!wr(p)){const m=Zge(p);if(m){const b=Du(m);if(pr(b))return Ph(n);const I=na(b,0),w=na(b,1);if(W5(m,b,I.length,w.length))return FA(n);if(I.length)return QC(n,I,a,c,0)}else if(!(U$(p)||NE(p,tr)))return Qe(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),Ph(n)}return ur}function iht(n,a){return a.length&&Hn(a,c=>c.minArgumentCount===0&&!su(c)&&c.parameters.length1?Vl(n.arguments[1]):void 0;for(let b=2;b{const I=$p(m);AY(b,I)||J8e(m,b,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 fht(n){const a=go(n.expression),c=UW(a,n.expression);return OY(Gy(c),n,c!==a)}function mht(n){return n.flags&64?fht(n):Gy(go(n.expression))}function E4e(n){if(h7e(n),$e(n.typeArguments,Oa),n.kind===234){const c=Bm(n.parent);c.kind===227&&c.operatorToken.kind===104&&RS(n,c.right)&&Qe(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=n.kind===234?go(n.expression):Eb(n.exprName)?x5(n.exprName):go(n.exprName);return A4e(a,n)}function A4e(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,b;const I=U(n);p.instantiationExpressionTypes.set(n.id,I);const w=m?b:n;return w&&ns.add(qR(Fn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,sr(w))),I;function U(Q){let Ie=!1,Te=!1;const et=Tt(Q);return m||(m=Te),Ie&&!Te&&(b??(b=Q)),et;function Tt(Dt){if(Dt.flags&524288){const $t=Dh(Dt),Tn=H($t.callSignatures),rr=H($t.constructSignatures);if(Ie||(Ie=$t.callSignatures.length!==0||$t.constructSignatures.length!==0),Te||(Te=Tn.length!==0||rr.length!==0),Tn!==$t.callSignatures||rr!==$t.constructSignatures){const yr=bl(ja(0,"__instantiationExpression"),$t.members,Tn,rr,$t.indexInfos);return yr.objectFlags|=8388608,yr.node=a,yr}}else if(Dt.flags&58982400){const $t=Ld(Dt);if($t){const Tn=Tt($t);if(Tn!==$t)return Tn}}else{if(Dt.flags&1048576)return Tl(Dt,U);if(Dt.flags&2097152)return Ma(Zi(Dt.types,Tt))}return Dt}}function H(Q){const Ie=Vn(Q,Te=>!!Te.typeParameters&&Pge(Te,c));return Zi(Ie,Te=>{const et=wge(Te,c,!0);return et?PW(Te,et,Ir(Te.declaration)):Te})}}function hht(n){return Oa(n.type),Gge(n.expression,n.type)}function Gge(n,a,c){const p=go(n,c),m=qi(a);if(pr(m))return m;const b=Dn(a.parent,I=>I.kind===239||I.kind===351);return ME(p,m,b,n,f.Type_0_does_not_satisfy_the_expected_type_1),p}function _ht(n){return bbt(n),n.keywordToken===105?Vge(n):n.keywordToken===102?n.name.escapedText==="defer"?(C.assert(!Zo(n.parent)||n.parent.expression!==n,"Trying to get the type of `import.defer` in `import.defer(...)`"),nt):ght(n):C.assertNever(n.keywordToken)}function I4e(n){switch(n.keywordToken){case 102:return jWe();case 105:const a=Vge(n);return pr(a)?nt:kht(a);default:C.assertNever(n.keywordToken)}}function Vge(n){const a=ane(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 Qe(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),nt}function ght(n){100<=j&&j<=199?Fn(n).impliedNodeFormat!==99&&Qe(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):j<6&&j!==4&&Qe(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=Fn(n);return C.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?VWe():nt}function z5(n){const a=n.valueDeclaration;return pu(_r(n),!1,!!a&&(Zy(a)||wI(a)))}function jge(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),Ha),b=p.length-(m!=null&&m.dotDotDotToken?1:0);if(a=p-1)return a===p-1?b:Yd(Xp(b,Gt));const I=[],w=[],U=[];for(let H=a;H!(U&1)),w=I<0?b.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 b=m-1;b>=0;b--){const I=Lh(n,b);if(Ec(I,e4e).flags&131072)break;m=b}n.resolvedMinArgumentCount=m}return n.resolvedMinArgumentCount}function rg(n){if(su(n)){const a=_r(n.parameters[n.parameters.length-1]);return!Ka(a)||!!(a.target.combinedFlags&12)}return!1}function o8(n){if(su(n)){const a=_r(n.parameters[n.parameters.length-1]);if(!Ka(a))return wr(a)?bd:a;if(a.target.combinedFlags&12)return IL(a,a.target.fixedLength)}}function a8(n){const a=o8(n);return a&&!im(a)&&!wr(a)?a:void 0}function Hge(n){return qge(n,yn)}function qge(n,a){return n.parameters.length>0?Lh(n,0):a}function C4e(n,a,c){const p=n.parameters.length-(su(n)?1:0);for(let b=0;b=0);const b=Ml(p.parent)?_r(Wr(p.parent.parent)):r7e(p.parent),I=Ml(p.parent)?he:i7e(p.parent),w=Ch(m),U=Ef("target",b),H=Ef("propertyKey",I),Q=Ef("parameterIndex",w);c.decoratorSignature=f8(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=r7e(p),b=Ef("target",m),I=i7e(p),w=Ef("propertyKey",I),U=Po(p)?In:QWe(mR(p));if(!Po(a)||Xh(a)){const Q=QWe(mR(p)),Ie=Ef("descriptor",Q);c.decoratorSignature=f8(void 0,void 0,[b,w,Ie],pi([U,In]))}else c.decoratorSignature=f8(void 0,void 0,[b,w],pi([U,In]));break}}return c.decoratorSignature===ur?void 0:c.decoratorSignature}function Kge(n){return J?Lht(n):Pht(n)}function V5(n){const a=$z(!0);return a!==Zt?(n=Uy(zL(n))||Nt,ky(a,[n])):Nt}function P4e(n){const a=JWe(!0);return a!==Zt?(n=Uy(zL(n))||Nt,ky(a,[n])):Nt}function j5(n,a){const c=V5(a);return c===Nt?(Qe(n,Qu(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):(Bhe(!0)||Qe(n,Qu(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 kht(n){const a=ja(0,"NewTargetExpression"),c=ja(4,"target",8);c.parent=a,c.links.type=n;const p=da([c]);return a.members=p,bl(a,p,se,se,se)}function T$(n,a){if(!n.body)return nt;const c=dc(n),p=(c&2)!==0,m=(c&1)!==0;let b,I,w,U=In;if(n.body.kind!==242)b=Vl(n.body,a&&a&-9),p&&(b=zL(X5(b,!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=O4e(n,a);H?H.length>0&&(b=pi(H,2)):U=yn;const{yieldTypes:Q,nextTypes:Ie}=wht(n,a);I=vt(Q)?pi(Q,2):void 0,w=vt(Ie)?Ma(Ie):void 0}else{const H=O4e(n,a);if(!H)return c&2?j5(n,yn):yn;if(H.length===0){const Q=e$(n,void 0),Ie=Q&&(tB(Q,c)||In).flags&32768?he:In;return c&2?j5(n,Ie):Ie}b=pi(H,2)}if(b||I||w){if(I&&BY(n,I,3),b&&BY(n,b,1),w&&BY(n,w,2),b&&Nh(b)||I&&Nh(I)||w&&Nh(w)){const H=o$(n),Q=H?H===Df(n)?m?void 0:b:n$(fs(H),n,void 0):void 0;m?(I=C_e(I,Q,0,p),b=C_e(b,Q,1,p),w=C_e(w,Q,2,p)):b=Dut(b,Q,p)}I&&(I=$p(I)),b&&(b=$p(b)),w&&(w=$p(w))}return m?S$(I||yn,b||U,w||f6e(2,n)||Nt,p):p?V5(b||U):b||U}function S$(n,a,c,p){const m=p?mc:Hs,b=m.getGlobalGeneratorType(!1);if(n=m.resolveIterationType(n,void 0)||Nt,a=m.resolveIterationType(a,void 0)||Nt,b===Zt){const I=m.getGlobalIterableIteratorType(!1);return I!==Zt?AL(I,[n,a,c]):(m.getGlobalIterableIteratorType(!0),Ra)}return AL(b,[n,a,c])}function wht(n,a){const c=[],p=[],m=(dc(n)&2)!==0;return Yte(n.body,b=>{const I=b.expression?go(b.expression,a):B;kf(c,L4e(b,I,Ue,m));let w;if(b.asteriskToken){const U=k$(I,m?19:17,b.expression);w=U&&U.nextType}else w=Hu(b,void 0);w&&kf(p,w)}),{yieldTypes:c,nextTypes:p}}function L4e(n,a,c,p){if(a===wt)return wt;const m=n.expression||n,b=n.asteriskToken?Hv(p?19:17,a,c,m):a;return p?pR(b,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):b}function k4e(n,a,c){let p=0;for(let m=0;m=a?c[m]:void 0;p|=b!==void 0?cae.get(b)||32768:0}return p}function w4e(n){const a=Vr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;const c=Oht(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Oht(n){if(n.expression.kind===222){const p=FFe(n);if(!p)return!1;const m=b_(Vl(n.expression.expression)),b=k4e(0,0,p);return m.flags&3?(556800&b)===556800:!am(m,I=>JC(I,b)===b)}const a=b_(Vl(n.expression));if(!jW(a))return!1;const c=HY(n);return!c.length||vt(c,Iut)?!1:Ept(Tl(a,Cu),c)}function Xge(n){return n.endFlowNode&&E5(n.endFlowNode)}function O4e(n,a){const c=dc(n),p=[];let m=Xge(n),b=!1;if(vb(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&&Vl(w.expression).symbol===os(n.symbol)&&(!Rb(n.symbol.valueDeclaration)||ege(w.expression))){b=!0;return}let U=Vl(w,a&&a&-9);c&2&&(U=zL(X5(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&&(b=!0),kf(p,U)}else m=!0}),!(p.length===0&&!m&&(b||Wht(n))))return ie&&p.length&&m&&!(A_(n)&&p.some(I=>I.symbol===n.symbol))&&kf(p,he),p}function Wht(n){switch(n.kind){case 219:case 220:return!0;case 175:return n.parent.kind===211;default:return!1}}function Fht(n){switch(n.kind){case 177:case 178:case 179:return}if(dc(n)!==0)return;let c;if(n.body&&n.body.kind!==242)c=n.body;else if(vb(n.body,m=>{if(c||!m.expression)return!0;c=m.expression})||!c||Xge(n))return;return zht(n,c)}function zht(n,a){if(a=us(a,!0),!!(Vl(a).flags&16))return $e(n.parameters,(p,m)=>{const b=_r(p.symbol);if(!b||b.flags&16||!He(p.name)||YW(p.symbol)||N_(p))return;const I=Bht(n,a,p,b);if(I)return MW(1,Bi(p.name.escapedText),m,I)})}function Bht(n,a,c,p){const m=eD(a)&&a.flowNode||a.parent.kind===254&&a.parent.flowNode||z_(2,void 0,void 0),b=z_(32,a,m),I=jy(c.name,p,p,n,b);if(I===p)return;const w=z_(64,a,m);return Lm(jy(c.name,p,I,n,w)).flags&131072?I:void 0}function Yge(n,a){r(c);return;function c(){const p=dc(n),m=a&&tB(a,p);if(m&&(tc(m,16384)||m.flags&32769)||n.kind===174||Ol(n.body)||n.body.kind!==242||!Xge(n))return;const b=n.flags&1024,I=kp(n)||n;if(m&&m.flags&131072)Qe(I,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!b)Qe(I,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&ie&&!sa(he,m))Qe(I,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(O.noImplicitReturns){if(!m){if(!b)return;const w=fs(Df(n));if(N3e(n,w))return}Qe(I,f.Not_all_code_paths_return_a_value)}}}function W4e(n,a){if(C.assert(n.kind!==175||hm(n)),fR(n),Us(n)&&BL(n,n.name),a&&a&4&&Cf(n)){if(!kp(n)&&!Q6(n)){const p=ZW(n);if(p&&_T(fs(p))){const m=Vr(n);if(m.contextFreeType)return m.contextFreeType;const b=T$(n,a),I=v_(void 0,void 0,void 0,se,b,void 0,0,64),w=bl(n.symbol,k,[I],se,se);return w.objectFlags|=262144,m.contextFreeType=w}}return As}return!K$(n)&&n.kind===219&&kye(n),Ght(n,a),_r(Wr(n))}function Ght(n,a){const c=Vr(n);if(!(c.flags&64)){const p=ZW(n);if(!(c.flags&64)){c.flags|=64;const m=Ac(na(_r(Wr(n)),0));if(!m)return;if(Cf(n))if(p){const b=LE(n);let I;if(a&&a&2){C4e(m,p,b);const w=o8(p);w&&w.flags&262144&&(I=CA(p,b.nonFixingMapper))}I||(I=b?CA(p,b.mapper):p),bht(m,I)}else Tht(m);else if(p&&!n.typeParameters&&p.parameters.length>n.parameters.length){const b=LE(n);a&&a&2&&C4e(m,p,b)}if(p&&!BC(n)&&!m.resolvedReturnType){const b=T$(n,a);m.resolvedReturnType||(m.resolvedReturnType=b)}c8(n)}}}function Vht(n){C.assert(n.kind!==175||hm(n));const a=dc(n),c=BC(n);if(Yge(n,c),n.body)if(kp(n)||fs(Df(n)),n.body.kind===242)Oa(n.body);else{const p=go(n.body),m=c&&tB(c,a);m&&w$(n,m,n.body,n.body,p)}}function E$(n,a,c,p=!1){if(!sa(a,ra)){const m=p&&FL(a);return Iv(n,!!m&&sa(m,ra),c),!1}return!0}function jht(n){if(!Zo(n)||!a1(n))return!1;const a=Vl(n.arguments[2]);if(_n(a,"value")){const m=Ea(a,"writable"),b=m&&_r(m);if(!b||b===nr||b===Jn)return!0;if(m&&m.valueDeclaration&&Cc(m.valueDeclaration)){const I=m.valueDeclaration.initializer,w=go(I);if(w===nr||w===Jn)return!0}return!1}return!Ea(a,"set")}function wh(n){return!!(Wl(n)&8||n.flags&4&&Vf(n)&8||n.flags&3&&vge(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||vt(n.declarations,jht))}function F4e(n,a,c){var p,m;if(c===0)return!1;if(wh(a)){if(a.flags&4&&Ks(n)&&n.expression.kind===110){const b=LL(n);if(!(b&&(b.kind===177||A_(b))))return!0;if(a.valueDeclaration){const I=Nr(a.valueDeclaration),w=b.parent===a.valueDeclaration.parent,U=b===a.valueDeclaration.parent,H=I&&((p=a.parent)==null?void 0:p.valueDeclaration)===b.parent,Q=I&&((m=a.parent)==null?void 0:m.valueDeclaration)===b;return!(w||U||H||Q)}}return!0}if(Ks(n)){const b=us(n.expression);if(b.kind===80){const I=Vr(b).resolvedSymbol;if(I.flags&2097152){const w=cp(I);return!!w&&w.kind===275}}}return!1}function s8(n,a,c){const p=Ul(n,39);return p.kind!==80&&!Ks(p)?(Qe(n,a),!1):p.flags&64?(Qe(n,c),!1):!0}function Uht(n){go(n.expression);const a=us(n.expression);if(!Ks(a))return Qe(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),jt;qr(a)&&eo(a.name)&&Qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const c=Vr(a),p=Et(c.resolvedSymbol);return p&&(wh(p)?Qe(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Hht(a,p)),jt}function Hht(n,a){const c=_r(a);ie&&!(c.flags&131075)&&!(Ce?a.flags&16777216:Mh(c,16777216))&&Qe(n,f.The_operand_of_a_delete_operator_must_be_optional)}function qht(n){return go(n.expression),AC}function Jht(n){return fR(n),B}function z4e(n){let a=!1;const c=JF(n);if(c&&Ql(c)){const p=Pb(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;Qe(n,p),a=!0}else if(!(n.flags&65536))if(XF(n)){const p=Fn(n);if(!vT(p)){let m;if(!HR(p,O)){m??(m=Uh(p,n.pos));const b=Pb(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=Oc(p,m.start,m.length,b);ns.add(I),a=!0}switch(j){case 100:case 101:case 102:case 199:if(p.impliedNodeFormat===1){m??(m=Uh(p,n.pos)),ns.add(Oc(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=Uh(p,n.pos));const b=Pb(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;ns.add(Oc(p,m.start,m.length,b)),a=!0;break}}}else{const p=Fn(n);if(!vT(p)){const m=Uh(p,n.pos),b=Pb(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=Oc(p,m.start,m.length,b);if(c&&c.kind!==177&&!(dc(c)&2)){const w=Ar(c,f.Did_you_mean_to_mark_this_function_as_async);pa(I,w)}ns.add(I),a=!0}}return Pb(n)&&dge(n)&&(Qe(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function Kht(n){r(()=>z4e(n));const a=go(n.expression),c=X5(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)&&Lg(!1,Ar(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function Xht(n){const a=go(n.operand);if(a===wt)return wt;switch(n.operand.kind){case 9:switch(n.operator){case 41:return oR(Ch(-n.operand.text));case 40:return oR(Ch(+n.operand.text))}break;case 10:if(n.operator===41)return oR(r5({negative:!0,base10Value:RM(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return E_(a,n.operand),U5(a,12288)&&Qe(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,ga(n.operator)),n.operator===40?(U5(a,2112)&&Qe(n.operand,f.Operator_0_cannot_be_applied_to_type_1,ga(n.operator),sr(By(a))),Gt):$ge(a);case 54:fye(a,n.operand);const c=JC(a,12582912);return c===4194304?nr:c===8388608?ft:jt;case 46:case 47:return E$(n.operand,E_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&s8(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),$ge(a)}return nt}function Yht(n){const a=go(n.operand);return a===wt?wt:(E$(n.operand,E_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&s8(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),$ge(a))}function $ge(n){return tc(n,2112)?kd(n,3)||tc(n,296)?ra:gr:Gt}function U5(n,a){if(tc(n,a))return!0;const c=b_(n);return!!c&&tc(c,a)}function tc(n,a){if(n.flags&a)return!0;if(n.flags&3145728){const c=n.types;for(const p of c)if(tc(p,a))return!0}return!1}function kd(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&sa(n,Gt)||!!(a&2112)&&sa(n,gr)||!!(a&402653316)&&sa(n,yt)||!!(a&528)&&sa(n,jt)||!!(a&16384)&&sa(n,In)||!!(a&131072)&&sa(n,yn)||!!(a&65536)&&sa(n,Xt)||!!(a&32768)&&sa(n,he)||!!(a&4096)&&sa(n,Qt)||!!(a&67108864)&&sa(n,kn)}function l8(n,a,c){return n.flags&1048576?Hn(n.types,p=>l8(p,a,c)):kd(n,a,c)}function A$(n){return!!(Hr(n)&16)&&!!n.symbol&&Qge(n.symbol)}function Qge(n){return(n.flags&128)!==0}function Zge(n){const a=x3e("hasInstance");if(l8(n,67108864)){const c=Ea(n,a);if(c){const p=_r(c);if(p&&na(p,0).length!==0)return p}}}function $ht(n,a,c,p,m){if(c===wt||p===wt)return wt;!wr(c)&&l8(c,402784252)&&Qe(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),C.assert(I6(n.parent));const b=ZC(n.parent,void 0,m);if(b===Dr)return wt;const I=fs(b);return $d(I,jt,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),jt}function Qht(n){return am(n,a=>a===is||!!(a.flags&2097152)&&ng(b_(a)))}function Zht(n,a,c,p){if(c===wt||p===wt)return wt;if(eo(n)){if((GIL(H,c)):Yd(p);return BA(w,U,m)}}}}function BA(n,a,c,p){let m;if(n.kind===305){const b=n;b.objectAssignmentInitializer&&(ie&&!Mh(go(b.objectAssignmentInitializer),16777216)&&(a=om(a,524288)),l_t(b.name,b.equalsToken,b.objectAssignmentInitializer,c)),m=n.name}else m=n;return m.kind===227&&m.operatorToken.kind===64&&(Se(m,c),m=m.left,ie&&(a=om(a,524288))),m.kind===211?e_t(m,a,p):m.kind===210?t_t(m,a,c):n_t(m,a,c)}function n_t(n,a,c){const p=go(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,b=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 s8(n,m,b)&&ME(a,p,n,n),zR(n)&&$c(n.parent,1048576),a}function H5(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 H5(n.whenTrue)&&H5(n.whenFalse);case 227:return ly(n.operatorToken.kind)?!1:H5(n.left)&&H5(n.right);case 225:case 226:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 223:case 217:case 235:default:return!1}}function eye(n,a){return(a.flags&98304)!==0||AY(n,a)}function r_t(){const n=k4(a,c,p,m,b,I);return(Te,et)=>{const Tt=n(Te,et);return C.assertIsDefined(Tt),Tt};function a(Te,et,Tt){return et?(et.stackIndex++,et.skip=!1,H(et,void 0),Ie(et,void 0)):et={checkMode:Tt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Ir(Te)&&_I(Te)?(et.skip=!0,Ie(et,go(Te.right,Tt)),et):(i_t(Te),Te.operatorToken.kind===64&&(Te.left.kind===211||Te.left.kind===210)&&(et.skip=!0,Ie(et,BA(Te.left,go(Te.right,Tt),Tt,Te.right.kind===110))),et)}function c(Te,et,Tt){if(!et.skip)return w(et,Te)}function p(Te,et,Tt){if(!et.skip){const Dt=Q(et);C.assertIsDefined(Dt),H(et,Dt),Ie(et,void 0);const $t=Te.kind;if(E6($t)){let Tn=Tt.parent;for(;Tn.kind===218||Ok(Tn);)Tn=Tn.parent;($t===56||$T(Tn))&&pye(Tt.left,Dt,$T(Tn)?Tn.thenStatement:void 0),wk($t)&&fye(Dt,Tt.left)}}}function m(Te,et,Tt){if(!et.skip)return w(et,Te)}function b(Te,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=V4e(Te.left,Te.operatorToken,Te.right,Dt,$t,et.checkMode,Te)}return et.skip=!1,H(et,void 0),Ie(et,void 0),et.stackIndex--,Tt}function I(Te,et,Tt){return Ie(Te,et),Te}function w(Te,et){if(Nr(et))return et;Ie(Te,go(et,Te.checkMode))}function U(Te){return Te.typeStack[Te.stackIndex]}function H(Te,et){Te.typeStack[Te.stackIndex]=et}function Q(Te){return Te.typeStack[Te.stackIndex+1]}function Ie(Te,et){Te.typeStack[Te.stackIndex+1]=et}}function i_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,ga(61),ga(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,ga(a.kind),ga(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,ga(61),ga(a.kind))}o_t(n),a_t(n)}}function o_t(n){const a=Ul(n.left,63),c=q5(a);c!==3&&(c===1?Qe(a,f.This_expression_is_always_nullish):Qe(a,f.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function a_t(n){const a=Ul(n.right,63),c=q5(a);s_t(n)||(c===1?Qe(a,f.This_expression_is_always_nullish):c===2&&Qe(a,f.This_expression_is_never_nullish))}function s_t(n){return!Nr(n.parent)||n.parent.operatorToken.kind!==61}function q5(n){switch(n=Ul(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 q5(n.right)}return 2;case 228:return q5(n.whenTrue)|q5(n.whenFalse);case 106:return 1;case 80:return fu(n)===ce?1:3}return 2}function l_t(n,a,c,p,m){const b=a.kind;if(b===64&&(n.kind===211||n.kind===210))return BA(n,go(c,p),p,c.kind===110);let I;wk(b)?I=g8(n,p):I=go(n,p);const w=go(c,p);return V4e(n,a,c,I,w,p,m)}function V4e(n,a,c,p,m,b,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=E_(p,n),m=E_(m,c);let Sn;if(p.flags&528&&m.flags&528&&(Sn=Te(a.kind))!==void 0)return Qe(I||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ga(a.kind),ga(Sn)),Gt;{const fi=E$(n,p,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),oo=E$(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(kd(p,3)&&kd(m,3)||!(tc(p,2112)||tc(m,2112)))ii=Gt;else if(U(p,m)){switch(w){case 50:case 73:$t();break;case 43:case 68:G<3&&Qe(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(fi&&oo)switch(et(ii),w){case 48:case 71:case 49:case 72:case 50:case 73:const zi=Be(c);typeof zi.value=="number"&&Math.abs(zi.value)>=32&&Km(fy(Bm(c.parent.parent)),I||a,f.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Al(n),ga(w),zi.value%32);break}return ii}case 40:case 65:if(p===wt||m===wt)return wt;!kd(p,402653316)&&!kd(m,402653316)&&(p=E_(p,n),m=E_(m,c));let vn;return kd(p,296,!0)&&kd(m,296,!0)?vn=Gt:kd(p,2112,!0)&&kd(m,2112,!0)?vn=gr:kd(p,402653316,!0)||kd(m,402653316,!0)?vn=yt:(wr(p)||wr(m))&&(vn=pr(p)||pr(m)?nt:Ue),vn&&!Ie(w)?vn:vn?(w===65&&et(vn),vn):($t((oo,ii)=>kd(oo,402655727)&&kd(ii,402655727)),Ue);case 30:case 32:case 33:case 34:return Ie(w)&&(p=R_e(E_(p,n)),m=R_e(E_(m,c)),Dt((fi,oo)=>{if(wr(fi)||wr(oo))return!0;const ii=sa(fi,ra),zi=sa(oo,ra);return ii&&zi||!ii&&!zi&&s5(fi,oo)})),jt;case 35:case 36:case 37:case 38:if(!(b&&b&64)){if((K9(n)||K9(c))&&(!Ir(n)||w===37||w===38)){const fi=w===35||w===37;Qe(I,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,fi?"false":"true")}rr(I,w,n,c),Dt((fi,oo)=>eye(fi,oo)||eye(oo,fi))}return jt;case 104:return $ht(n,c,p,m,b);case 103:return Zht(n,c,p,m);case 56:case 77:{const fi=Mh(p,4194304)?pi([Mut(ie?p:By(m)),m]):p;return w===77&&et(m),fi}case 57:case 76:{const fi=Mh(p,8388608)?pi([Gy(dFe(p)),m],2):p;return w===76&&et(m),fi}case 61:case 78:{const fi=Mh(p,262144)?pi([Gy(p),m],2):p;return w===78&&et(m),fi}case 64:const Sr=Nr(n.parent)?ac(n.parent):0;return H(Sr,m),Tt(Sr)?((!(m.flags&524288)||Sr!==2&&Sr!==6&&!zy(m)&&!K_e(m)&&!(Hr(m)&1))&&et(m),p):(et(m),m);case 28:if(!O.allowUnreachableCode&&H5(n)&&!Q(n.parent)){const fi=Fn(n),oo=fi.text,ii=ka(oo,n.pos);fi.parseDiagnostics.some(Ko=>Ko.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:k9(Ko,ii))||Qe(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 kd(Sn,2112)&&kd(vn,2112)}function H(Sn,vn){if(Sn===2)for(const Sr of zv(vn)){const fi=_r(Sr);if(fi.symbol&&fi.symbol.flags&32){const oo=Sr.escapedName,ii=gt(Sr.valueDeclaration,oo,788968,void 0,!1);ii!=null&&ii.declarations&&ii.declarations.some(D1)&&(kg(ii,f.Duplicate_identifier_0,Bi(oo),Sr),kg(Sr,f.Duplicate_identifier_0,Bi(oo),ii))}}}function Q(Sn){return Sn.parent.kind===218&&np(Sn.left)&&Sn.left.text==="0"&&(Zo(Sn.parent.parent)&&Sn.parent.parent.expression===Sn.parent||Sn.parent.parent.kind===216)&&(Ks(Sn.right)||He(Sn.right)&&Sn.right.escapedText==="eval")}function Ie(Sn){const vn=U5(p,12288)?n:U5(m,12288)?c:void 0;return vn?(Qe(vn,f.The_0_operator_cannot_be_applied_to_type_symbol,ga(Sn)),!1):!0}function Te(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){ly(w)&&r(vn);function vn(){let Sr=p;if(cP(a.kind)&&n.kind===212&&(Sr=u$(n,void 0,!0)),s8(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 fi;if(Ce&&qr(n)&&tc(Sn,32768)){const oo=_n(wd(n.expression),n.name.escapedText);xY(Sn,oo)&&(fi=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}ME(Sn,Sr,n,c,fi)}}}function Tt(Sn){var vn;switch(Sn){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Sr=If(n),fi=_I(c);return!!fi&&Fa(fi)&&!!((vn=Sr==null?void 0: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=Uy(p),ms=Uy(m);vn=!(Ko===p&&ms===m)&&!!(Ko&&ms)&&Sn(Ko,ms)}let fi=p,oo=m;!vn&&Sn&&([fi,oo]=c_t(p,m,Sn));const[ii,zi]=dL(fi,oo);Tn(Sr,vn,ii,zi)||Iv(Sr,vn,f.Operator_0_cannot_be_applied_to_types_1_and_2,ga(a.kind),ii,zi)}function Tn(Sn,vn,Sr,fi){switch(a.kind){case 37:case 35:case 38:case 36:return Iv(Sn,vn,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Sr,fi);default:return}}function rr(Sn,vn,Sr,fi){const oo=yr(us(Sr)),ii=yr(us(fi));if(oo||ii){const zi=Qe(Sn,f.This_condition_will_always_return_0,ga(vn===37||vn===35?97:112));if(oo&&ii)return;const Ko=vn===38||vn===36?ga(54):"",ms=oo?fi:Sr,mo=us(ms);pa(zi,Ar(ms,f.Did_you_mean_0,`${Ko}Number.isNaN(${Ds(mo)?Mp(mo):"..."})`))}}function yr(Sn){if(He(Sn)&&Sn.escapedText==="NaN"){const vn=Oct();return!!vn&&vn===fu(Sn)}return!1}}function c_t(n,a,c){let p=n,m=a;const b=By(n),I=By(a);return c(b,I)||(p=b,m=I),[p,m]}function d_t(n){r(Ie);const a=df(n);if(!a)return Ue;const c=dc(a);if(!(c&1))return Ue;const p=(c&2)!==0;n.asteriskToken&&(p&&Giye(Te,c,void 0)));const b=m&&bye(m,p),I=b&&b.yieldType||Ue,w=b&&b.nextType||Ue,U=n.expression?go(n.expression):B,H=L4e(n,U,w,p);if(m&&H&&ME(H,I,n.expression||n,n.expression),n.asteriskToken)return _ye(p?19:17,1,U,n.expression)||Ue;if(m)return qv(2,m,p)||Ue;let Q=f6e(2,a);return Q||(Q=Ue,r(()=>{if(ve&&!Lre(n)){const Te=Hu(n,void 0);(!Te||wr(Te))&&Qe(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Q;function Ie(){n.flags&16384||fd(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),dge(n)&&Qe(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function u_t(n,a){const c=g8(n.condition,a);pye(n.condition,c,n.whenTrue);const p=go(n.whenTrue,a),m=go(n.whenFalse,a);return pi([p,m],2)}function j4e(n){const a=n.parent;return Ou(a)&&j4e(a)||Ws(a)&&a.argumentExpression===n}function p_t(n){const a=[n.head.text],c=[];for(const m of n.templateSpans){const b=go(m.expression);U5(b,12288)&&Qe(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(b,la)?b:yt)}const p=n.parent.kind!==216&&Be(n).value;return p?oR(Sp(p)):OL(n)||j4e(n)||am(Hu(n,void 0)||Nt,f_t)?AA(a,c):yt}function f_t(n){return!!(n.flags&134217856||n.flags&58982400&&tc(Ld(n)||Nt,402653316))}function m_t(n){return US(n)&&!x1(n.parent)?n.parent.parent:n}function eN(n,a,c,p){const m=m_t(n);D5(m,a,!1),Sft(m,c);const b=go(n,p|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);const I=tc(b,2944)&&I$(b,n$(a,n,void 0))?Cu(b):b;return Eft(),QW(),I}function Vl(n,a){if(a)return go(n,a);const c=Vr(n);if(!c.resolvedType){const p=Lr,m=Qi;Lr=Yn,Qi=void 0,c.resolvedType=go(n,a),Qi=m,Lr=p}return c.resolvedType}function U4e(n){return n=us(n,!0),n.kind===217||n.kind===235||qS(n)}function wL(n,a,c){const p=hk(n);if(Ir(n)){const b=t4(n);if(b)return Gge(p,b,a)}const m=rye(p)||(c?eN(p,c,void 0,a||0):Vl(p,a));if(to(Ha(n)?JE(n):n)){if(n.name.kind===207&&Uv(m))return h_t(m,n.name);if(n.name.kind===208&&Ka(m))return __t(m,n.name)}return m}function h_t(n,a){let c;for(const b of a.elements)if(b.initializer){const I=H4e(b);I&&!Ea(n,I)&&(c=Un(c,b))}if(!c)return n;const p=da();for(const b of zv(n))p.set(b.escapedName,b);for(const b of c){const I=ja(16777220,H4e(b));I.links.type=Ih(b,!1,!1),p.set(I.escapedName,I)}const m=bl(n.symbol,p,se,se,Xd(n));return m.objectFlags=n.objectFlags,m}function H4e(n){const a=wy(n.propertyName||n.name);return jf(a)?Uf(a):void 0}function __t(n,a){if(n.target.combinedFlags&12||Gv(n)>=a.elements.length)return n;const c=a.elements,p=xE(n).slice(),m=n.target.elementFlags.slice();for(let b=Gv(n);bI$(n,p))}if(a.flags&58982400){const c=Ld(a)||Nt;return tc(c,4)&&tc(n,128)||tc(c,8)&&tc(n,256)||tc(c,64)&&tc(n,2048)||tc(c,4096)&&tc(n,8192)||I$(n,c)}return!!(a.flags&406847616&&tc(n,128)||a.flags&256&&tc(n,256)||a.flags&2048&&tc(n,2048)||a.flags&512&&tc(n,512)||a.flags&8192&&tc(n,8192))}return!1}function OL(n){const a=n.parent;return vS(a)&&Wm(a.type)||qS(a)&&Wm(MD(a))||Bge(n)&&TA(Hu(n,0))||(Ou(a)||Cd(a)||qf(a))&&OL(a)||(Cc(a)||Ud(a)||AD(a))&&OL(a.parent)}function WL(n,a,c){const p=go(n,a,c);return OL(n)||Qte(n)?Cu(p):U4e(n)?p:D_e(p,n$(Hu(n,void 0),n,void 0))}function J4e(n,a){return n.name.kind===168&&nh(n.name),WL(n.initializer,a)}function K4e(n,a){y7e(n),n.name.kind===168&&nh(n.name);const c=W4e(n,a);return X4e(n,c,a)}function X4e(n,a,c){if(c&&c&10){const p=n8(a,0,!0),m=n8(a,1,!0),b=p||m;if(b&&b.typeParameters){const I=nS(n,2);if(I){const w=n8(Gy(I),p?0:1,!1);if(w&&!w.typeParameters){if(c&8)return Y4e(n,c),As;const U=LE(n),H=U.signature&&fs(U.signature),Q=H&&n4e(H);if(Q&&!Q.typeParameters&&!Hn(U.inferences,tN)){const Ie=b_t(U,b.typeParameters),Te=Mhe(b,Ie),et=Bt(U.inferences,Tt=>w_e(Tt.typeParameter));if(M_e(Te,w,(Tt,Dt)=>{Jg(et,Tt,Dt,0,!0)}),vt(et,tN)&&(P_e(Te,w,(Tt,Dt)=>{Jg(et,Tt,Dt)}),!y_t(U.inferences,et)))return v_t(U.inferences,et),U.inferredTypeParameters=lo(U.inferredTypeParameters,Ie),SA(Te)}return SA(r4e(b,w,U))}}}}return a}function Y4e(n,a){if(a&2){const c=LE(n);c.flags|=4}}function tN(n){return!!(n.candidates||n.contraCandidates)}function g_t(n){return!!(n.candidates||n.contraCandidates||mWe(n.typeParameter))}function y_t(n,a){for(let c=0;cc.symbol.escapedName===a)}function T_t(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 b=p+m;if(!nye(n,b))return b}}function $4e(n){const a=zA(n);if(a&&!a.typeParameters)return fs(a)}function S_t(n){const a=go(n.expression),c=UW(a,n.expression),p=$4e(a);return p&&OY(p,n,c!==a)}function wd(n){const a=rye(n);if(a)return a;if(n.flags&268435456&&Qi){const m=Qi[ls(n)];if(m)return m}const c=Ro,p=go(n,64);if(Ro!==c){const m=Qi||(Qi=[]);m[ls(n)]=p,Pre(n,n.flags|268435456)}return p}function rye(n){let a=us(n,!0);if(qS(a)){const c=MD(a);if(!Wm(c))return qi(c)}if(a=us(n),Pb(a)){const c=rye(a.expression);return c?pR(c):void 0}if(Zo(a)&&a.expression.kind!==108&&!Zu(a,!0)&&!g4e(a)&&!Qu(a))return XE(a)?S_t(a):$4e($C(a.expression));if(vS(a)&&!Wm(a.type))return qi(a.type);if(YE(n)||FN(n))return go(n)}function J5(n){const a=Vr(n);if(a.contextFreeType)return a.contextFreeType;D5(n,Ue,!1);const c=a.contextFreeType=go(n,4);return QW(),c}function go(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 b=R;R=n,y=0;const I=I_t(n,a,c),w=X4e(n,I,a);return A$(w)&&E_t(n,w),R=b,(m=xr)==null||m.pop(),w}function E_t(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)&&V$(n)||n.parent.kind===187&&n.parent.exprName===n||n.parent.kind===282;if(p||Qe(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),O.isolatedModules||O.verbatimModuleSyntax&&p&&!gt(n,Lu(n),2097152,void 0,!1,!0)){C.assert(!!(a.symbol.flags&128));const m=a.symbol.valueDeclaration,b=(c=e.getRedirectFromOutput(Fn(m).resolvedPath))==null?void 0:c.resolvedRef;m.flags&33554432&&!HT(n)&&(!b||!Ib(b.commandLine.options))&&Qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}function A_t(n,a){if(ef(n)){if(KV(n))return Gge(n.expression,XV(n),a);if(qS(n))return T4e(n,a)}return go(n.expression,a)}function I_t(n,a,c){const p=n.kind;if(i)switch(p){case 232:case 219:case 220:i.throwIfCancellationRequested()}switch(p){case 80:return Hpt(n,a);case 81:return _mt(n);case 110:return x5(n);case 108:return ZY(n);case 106:return Pe;case 15:case 11:return B_e(n)?Ot:oR(Sp(n.text));case 9:return A7e(n),oR(Ch(+n.text));case 10:return Rbt(n),oR(r5({negative:!1,base10Value:RM(n.text)}));case 112:return ft;case 97:return nr;case 229:return p_t(n);case 14:return Bft(n);case 210:return A6e(n,a,c);case 211:return Kft(n,a);case 212:return u$(n,a);case 167:return G6e(n,a);case 213:return Mmt(n,a);case 214:if(Qu(n))return cht(n);case 215:return lht(n,a);case 216:return dht(n);case 218:return A_t(n,a);case 232:return hyt(n);case 219:case 220:return W4e(n,a);case 222:return qht(n);case 217:case 235:return uht(n,a);case 236:return mht(n);case 234:return E4e(n);case 239:return hht(n);case 237:return _ht(n);case 221:return Uht(n);case 223:return Jht(n);case 224:return Kht(n);case 225:return Xht(n);case 226:return Yht(n);case 227:return Se(n,a);case 228:return u_t(n,a);case 231:return Gft(n,a);case 233:return B;case 230:return d_t(n);case 238:return Vft(n);case 295:return cmt(n,a);case 285:return Qft(n);case 286:return Yft(n);case 289:return Zft(n);case 293:return tmt(n,a);case 287:C.fail("Shouldn't ever directly check a JsxOpeningElement")}return nt}function Q4e(n){Xg(n),n.expression&&fd(n.expression,f.Type_expected),Oa(n.constraint),Oa(n.default);const a=U0(Wr(n));Ld(a),Glt(a)||Qe(n.default,f.Type_parameter_0_has_a_circular_default,sr(a));const c=Uu(a),p=AE(a);c&&p&&$d(p,Kp(io(c,CE(a,p)),p),n.default,f.Type_0_does_not_satisfy_the_constraint_1),fR(n),r(()=>GL(n.name,f.Type_parameter_name_cannot_be_0))}function x_t(n){var a,c;if(gd(n.parent)||ui(n.parent)||bm(n.parent)){const p=U0(Wr(n)),m=E_e(p)&24576;if(m){const b=Wr(n.parent);if(bm(n.parent)&&!(Hr(qs(b))&48))Qe(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:pd(qs(b)),id:pd(p)});const I=d5(b,p,m===16384?qt:pt),w=d5(b,p,m===16384?pt:qt),U=p;N=p,$d(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 Z4e(n){Xg(n),Z5(n);const a=df(n);di(n,31)&&(O.erasableSyntaxOnly&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),a.kind===177&&mm(a.body)||Qe(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===177&&He(n.name)&&n.name.escapedText==="constructor"&&Qe(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&wI(n)&&Qo(n.name)&&a.body&&Qe(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&He(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Qe(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===177||a.kind===181||a.kind===186)&&Qe(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===220&&Qe(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===178||a.kind===179)&&Qe(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!Qo(n.name)&&!sa(Lm(_r(n.symbol)),jp)&&Qe(n,f.A_rest_parameter_must_be_of_an_array_type)}function R_t(n){const a=D_t(n);if(!a){Qe(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const c=Df(a),p=nm(c);if(!p)return;Oa(n.type);const{parameterName:m}=n;if(p.kind!==0&&p.kind!==2){if(p.parameterIndex>=0){if(su(c)&&p.parameterIndex===c.parameters.length-1)Qe(m,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(p.type){const b=()=>qo(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);$d(p.type,_r(c.parameters[p.parameterIndex]),n.type,void 0,b)}}else if(m){let b=!1;for(const{name:I}of a.parameters)if(Qo(I)&&e3e(I,m,p.parameterName)){b=!0;break}b||Qe(n.parameterName,f.Cannot_find_parameter_0,p.parameterName)}}}function D_t(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 e3e(n,a,c){for(const p of n.elements){if(Jc(p))continue;const m=p.name;if(m.kind===80&&m.escapedText===c)return Qe(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((m.kind===208||m.kind===207)&&e3e(m,a,c))return!0}}function c8(n){n.kind===182?nbt(n):(n.kind===185||n.kind===263||n.kind===186||n.kind===180||n.kind===177||n.kind===181)&&K$(n);const a=dc(n);a&4||((a&3)===3&&G0&&c.declarations[0]!==n)return}const a=oY(Wr(n));if(a!=null&&a.declarations){const c=new Map;for(const p of a.declarations)Mb(p)&&p.parameters.length===1&&p.parameters[0].type&&wA(qi(p.parameters[0].type),m=>{const b=c.get(pd(m));b?b.declarations.push(p):c.set(pd(m),{type:m,declarations:[p]})});c.forEach(p=>{if(p.declarations.length>1)for(const m of p.declarations)Qe(m,f.Duplicate_index_signature_for_type_0,sr(p.type))})}}function n3e(n){!Xg(n)&&!Abt(n)&&X$(n.name),Z5(n),x$(n),di(n,64)&&n.kind===173&&n.initializer&&Qe(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,ws(n.name))}function M_t(n){return eo(n.name)&&Qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),n3e(n)}function P_t(n){y7e(n)||X$(n.name),Nl(n)&&n.asteriskToken&&He(n.name)&&Kr(n.name)==="constructor"&&Qe(n.name,f.Class_constructor_may_not_be_a_generator),m3e(n),di(n,64)&&n.kind===175&&n.body&&Qe(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,ws(n.name)),eo(n.name)&&!hd(n)&&Qe(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),x$(n)}function x$(n){if(eo(n.name)&&(Gdi(H,31))))if(!w_t(w,n.body))Qe(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(od(Q)&&r1(Ul(Q.expression))){H=Q;break}if(r3e(Q))break}H===void 0&&Qe(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||Qe(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function w_t(n,a){const c=Bm(n.parent);return od(c)&&c.parent===a}function r3e(n){return n.kind===108||n.kind===110?!0:one(n)?!1:!!Jo(n,r3e)}function i3e(n){He(n.name)&&Kr(n.name)==="constructor"&&ui(n.parent)&&Qe(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),Oa(n.body),x$(n);function a(){if(!K$(n)&&!ubt(n)&&X$(n.name),Y5(n),c8(n),n.kind===178&&!(n.flags&33554432)&&mm(n.body)&&n.flags&512&&(n.flags&1024||Qe(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===168&&nh(n.name),FC(n)){const p=Wr(n),m=ll(p,178),b=ll(p,179);if(m&&b&&!(hR(m)&1)){Vr(m).flags|=1;const I=Gd(m),w=Gd(b);(I&64)!==(w&64)&&(Qe(m.name,f.Accessors_must_both_be_abstract_or_non_abstract),Qe(b.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(w&6)||I&2&&!(w&2))&&(Qe(m.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Qe(b.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const c=hL(Wr(n));n.kind===178&&Yge(n,c)}}function O_t(n){Y5(n)}function W_t(n,a,c){return n.typeArguments&&c{const p=aye(n);p&&o3e(n,p)});const c=Vr(n).resolvedSymbol;c&&vt(c.declarations,p=>kI(p)&&!!(p.flags&536870912))&&Nm(F5(n),c.declarations,c.escapedName)}}function z_t(n){const a=ni(n.parent,RF);if(!a)return;const c=aye(a);if(!c)return;const p=Uu(c[a.typeArguments.indexOf(n)]);return p&&io(p,Yp(c,R$(a,c)))}function B_t(n){zWe(n)}function G_t(n){$e(n.members,Oa),r(a);function a(){const c=C8e(n);O$(c,c.symbol),oye(n),t3e(n)}}function V_t(n){Oa(n.elementType)}function j_t(n){let a=!1,c=!1;for(const p of n.elements){let m=jhe(p);if(m&8){const b=qi(p.type);if(!jv(b)){Qe(p,f.A_rest_element_type_must_be_an_array_type);break}(im(b)||Ka(b)&&b.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}}$e(n.elements,Oa),qi(n)}function U_t(n){$e(n.types,Oa),qi(n)}function s3e(n,a){if(!(n.flags&8388608))return n;const c=n.objectType,p=n.indexType,m=up(c)&&DW(c)===2?f8e(c,0):T_(c,0),b=!!jg(c,Gt);if(Ep(p,I=>sa(I,m)||b&&eR(I,Gt)))return a.kind===213&&Tb(a)&&Hr(c)&32&&Z_(c)&1&&Qe(a,f.Index_signature_in_type_0_only_permits_reading,sr(c)),n;if(xA(c)){const I=_Y(p,a);if(I){const w=wA(Du(c),U=>Ea(U,I));if(w&&Vf(w)&6)return Qe(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Bi(I)),nt}}return Qe(a,f.Type_0_cannot_be_used_to_index_type_1,sr(p),sr(c)),nt}function H_t(n){Oa(n.objectType),Oa(n.indexType),s3e(E8e(n),n)}function q_t(n){J_t(n),Oa(n.typeParameter),Oa(n.nameType),Oa(n.type),n.type||eS(n,Ue);const a=t_e(n),c=Fv(a);if(c)$d(c,Ii,n.nameType);else{const p=Rf(a);$d(p,Ii,WR(n.typeParameter))}}function J_t(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 K_t(n){l_e(n)}function X_t(n){fbt(n),Oa(n.type)}function Y_t(n){Jo(n,Oa)}function $_t(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),Oa(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=U0(a),m=Ite(a,169);if(!L3e(m,[p],b=>[b])){const b=po(a);for(const I of m)Qe(I.name,f.All_declarations_of_0_must_have_identical_constraints,b)}}}gT(n)}function Q_t(n){for(const a of n.templateSpans){Oa(a.type);const c=qi(a.type);$d(c,la,a.type)}qi(n)}function Z_t(n){Oa(n.argument),n.attributes&&HD(n.attributes,Cn),a3e(n)}function egt(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),Oa(n.type),qi(n)}function K5(n){return(wp(n,2)||nu(n))&&!!(n.flags&33554432)}function d8(n,a){let c=$$(n);if(n.parent.kind!==265&&n.parent.kind!==264&&n.parent.kind!==232&&n.flags&33554432){const p=zF(n);p&&p.flags&128&&!(c&128)&&!(n_(n.parent)&&pc(n.parent.parent)&&P_(n.parent.parent))&&(c|=32),c|=128}return c&a}function D$(n){r(()=>tgt(n))}function tgt(n){function a(Sn,vn){return vn!==void 0&&vn.parent===Sn[0].parent?vn:Sn[0]}function c(Sn,vn,Sr,fi,oo){if((fi^oo)!==0){const zi=d8(a(Sn,vn),Sr);IR(Sn,Ko=>Fn(Ko).fileName).forEach(Ko=>{const ms=d8(a(Ko,vn),Sr);for(const mo of Ko){const pl=d8(mo,Sr)^zi,Kl=d8(mo,Sr)^ms;Kl&32?Qe(Oo(mo),f.Overload_signatures_must_all_be_exported_or_non_exported):Kl&128?Qe(Oo(mo),f.Overload_signatures_must_all_be_ambient_or_non_ambient):pl&6?Qe(Oo(mo)||mo,f.Overload_signatures_must_all_be_public_private_or_protected):pl&64&&Qe(Oo(mo),f.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function p(Sn,vn,Sr,fi){if(Sr!==fi){const oo=vI(a(Sn,vn));$e(Sn,ii=>{vI(ii)!==oo&&Qe(Oo(ii),f.Overload_signatures_must_all_be_optional_or_required)})}}const m=230;let b=0,I=m,w=!1,U=!0,H=!1,Q,Ie,Te;const et=n.declarations,Tt=(n.flags&16384)!==0;function Dt(Sn){if(Sn.name&&Ol(Sn.name))return;let vn=!1;const Sr=Jo(Sn.parent,oo=>{if(vn)return oo;vn=oo===Sn});if(Sr&&Sr.pos===Sn.end&&Sr.kind===Sn.kind){const oo=Sr.name||Sr,ii=Sr.name;if(Sn.name&&ii&&(eo(Sn.name)&&eo(ii)&&Sn.name.escapedText===ii.escapedText||va(Sn.name)&&va(ii)&&qg(nh(Sn.name),nh(ii))||Jh(Sn.name)&&Jh(ii)&&aM(Sn.name)===aM(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;Qe(oo,Ko)}return}if(mm(Sr.body)){Qe(oo,f.Function_implementation_name_must_be_0,ws(Sn.name));return}}const fi=Sn.name||Sn;Tt?Qe(fi,f.Constructor_implementation_is_missing):di(Sn,64)?Qe(fi,f.All_declarations_of_an_abstract_method_must_be_consecutive):Qe(fi,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let $t=!1,Tn=!1,rr=!1;const yr=[];if(et)for(const Sn of et){const vn=Sn,Sr=vn.flags&33554432,fi=vn.parent&&(vn.parent.kind===265||vn.parent.kind===188)||Sr;if(fi&&(Te=void 0),(vn.kind===264||vn.kind===232)&&!Sr&&(rr=!0),vn.kind===263||vn.kind===175||vn.kind===174||vn.kind===177){yr.push(vn);const oo=d8(vn,m);b|=oo,I&=oo,w=w||vI(vn),U=U&&vI(vn);const ii=mm(vn.body);ii&&Q?Tt?Tn=!0:$t=!0:(Te==null?void 0:Te.parent)===vn.parent&&Te.end!==vn.pos&&Dt(Te),ii?Q||(Q=vn):H=!0,Te=vn,fi||(Ie=vn)}Ir(Sn)&&Yo(Sn)&&Sn.jsDoc&&(H=Ze(zG(Sn))>0)}if(Tn&&$e(yr,Sn=>{Qe(Sn,f.Multiple_constructor_implementations_are_not_allowed)}),$t&&$e(yr,Sn=>{Qe(Oo(Sn)||Sn,f.Duplicate_function_implementation)}),rr&&!Tt&&n.flags&16&&et){const Sn=Vn(et,vn=>vn.kind===264).map(vn=>Ar(vn,f.Consider_adding_a_declare_modifier_to_this_class));$e(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(Qe(Oo(vn)||vn,Sr,wl(n)),...Sn)})}if(Ie&&!Ie.body&&!di(Ie,64)&&!Ie.questionToken&&Dt(Ie),H&&(et&&(c(et,Q,m,b,I),p(et,Q,w,U)),Q)){const Sn=IE(n),vn=Df(Q);for(const Sr of Sn)if(!rut(vn,Sr)){const fi=Sr.declaration&&fv(Sr.declaration)?Sr.declaration.parent.tagName:Sr.declaration;pa(Qe(fi,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),Ar(Q,f.The_implementation_signature_is_declared_here));break}}}function u8(n){r(()=>ngt(n))}function ngt(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),Ie=d8(H,2080);Ie&32?Ie&2048?m|=Q:c|=Q:p|=Q}const b=c|p,I=c&p,w=m&b;if(I||w)for(const H of a.declarations){const Q=U(H),Ie=Oo(H);Q&w?Qe(Ie,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,ws(Ie)):Q&I&&Qe(Ie,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,ws(Ie))}function U(H){let Q=H;switch(Q.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return yu(Q)||hy(Q)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:const Ie=Q,Te=dl(Ie)?Ie.expression:Ie.right;if(!Ds(Te))return 1;Q=Te;case 272:case 275:case 274:let et=0;const Tt=ud(Wr(Q));return $e(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 FL(n,a,c,...p){const m=p8(n,a);return m&&pR(m,a,c,...p)}function p8(n,a,c){if(wr(n))return;const p=n;if(p.promisedTypeOfPromise)return p.promisedTypeOfPromise;if(Jp(n,$z(!1)))return p.promisedTypeOfPromise=ol(n)[0];if(l8(b_(n),402915324))return;const m=_n(n,"then");if(wr(m))return;const b=m?na(m,0):se;if(b.length===0){a&&Qe(a,f.A_promise_must_have_a_then_method);return}let I,w;for(const Q of b){const Ie=J0(Q);Ie&&Ie!==In&&!S_(n,Ie,q_)?I=Ie:w=Un(w,Q)}if(!w){C.assertIsDefined(I),c&&(c.value=I),a&&Qe(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=om(pi(Bt(w,Hge)),2097152);if(wr(U))return;const H=na(U,0);if(H.length===0){a&&Qe(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return p.promisedTypeOfPromise=pi(Bt(H,Hge),2)}function X5(n,a,c,p,...m){return(a?pR(n,c,p,...m):Uy(n,c,p,...m))||nt}function l3e(n){if(l8(b_(n),402915324))return!1;const a=_n(n,"then");return!!a&&na(om(a,2097152),0).length>0}function C$(n){var a;if(n.flags&16777216){const c=Vhe(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function zL(n){return n.flags&1048576?Tl(n,zL):C$(n)?n.aliasTypeArguments[0]:n}function c3e(n){if(wr(n)||C$(n))return!1;if(xA(n)){const a=Ld(n);if(a?a.flags&3||zy(a)||am(a,l3e):tc(n,8650752))return!0}return!1}function rgt(n){const a=Vhe(!0);if(a)return VC(a,[zL(n)])}function igt(n){return c3e(n)?rgt(n)??n:(C.assert(C$(n)||p8(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n)}function pR(n,a,c,...p){const m=Uy(n,a,c,...p);return m&&igt(m)}function Uy(n,a,c,...p){if(wr(n)||C$(n))return n;const m=n;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(n.flags&1048576){if(Kb.lastIndexOf(n.id)>=0){a&&Qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const w=a?H=>Uy(H,a,c,...p):Uy;Kb.push(n.id);const U=Tl(n,w);return Kb.pop(),m.awaitedTypeOfType=U}if(c3e(n))return m.awaitedTypeOfType=n;const b={value:void 0},I=p8(n,void 0,b);if(I){if(n.id===I.id||Kb.lastIndexOf(I.id)>=0){a&&Qe(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Kb.push(n.id);const w=Uy(I,a,c,...p);return Kb.pop(),w?m.awaitedTypeOfType=w:void 0}if(l3e(n)){if(a){C.assertIsDefined(c);let w;b.value&&(w=qo(w,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,sr(n),sr(b.value))),w=qo(w,c,...p),ns.add(_g(Fn(a),a,w))}return}return m.awaitedTypeOfType=n}function ogt(n,a,c){const p=qi(a);if(G>=2){if(pr(p))return;const b=$z(!0);if(b!==Zt&&!Jp(p,b)){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(Uy(p)||In));return}}else{if(cR(n,5),pr(p))return;const b=ck(a);if(b===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=Gl(b,111551,!0),w=I?_r(I):nt;if(pr(w)){b.kind===80&&b.escapedText==="Promise"&&Gn(p)===$z(!1)?Qe(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,Mp(b));return}const U=fct(!0);if(U===Ra){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,Mp(b));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(!$d(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 Ie=b&&Lu(b),Te=Sd(n.locals,Ie.escapedText,111551);if(Te){Qe(Te.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Kr(Ie),Mp(b));return}}X5(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(b,I,w,U){if(I===w)Qe(w,b,U);else{const H=Qe(w,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);pa(H,Ar(I,b,U))}}}function agt(n){const a=Fn(n);if(!vT(a)){let c=n.expression;if(Ou(c))return!1;let p=!0,m;for(;;){if(uy(c)||XI(c)){c=c.expression;continue}if(Zo(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}He(c)||(m=c);break}if(m)return pa(Qe(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 sgt(n){agt(n);const a=ZC(n);b$(a,n);const c=fs(a);if(c.flags&1)return;const p=Kge(n);if(!(p!=null&&p.resolvedReturnType))return;let m;const b=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)}$d(c,b,n.expression,m)}function f8(n,a,c,p,m,b=c.length,I=0){const w=L.createFunctionTypeNode(void 0,se,L.createKeywordTypeNode(133));return v_(w,n,a,c,p,m,b,I)}function lye(n,a,c,p,m,b,I){const w=f8(n,a,c,p,m,b,I);return SA(w)}function d3e(n){return lye(void 0,void 0,se,n)}function u3e(n){const a=Ef("value",n);return lye(void 0,void 0,[a],In)}function cye(n){if(n)switch(n.kind){case 194:case 193:return p3e(n.types);case 195:return p3e([n.trueType,n.falseType]);case 197:case 203:return cye(n.type);case 184:return n.typeName}}function p3e(n){let a;for(let c of n){for(;c.kind===197||c.kind===203;)c=c.type;if(c.kind===146||!ie&&(c.kind===202&&c.literal.kind===106||c.kind===157))continue;const p=cye(c);if(!p)return;if(a){if(!He(a)||!He(p)||a.escapedText!==p.escapedText)return}else a=p}return a}function N$(n){const a=xc(n);return N_(n)?DG(a):a}function Y5(n){if(!JS(n)||!pf(n)||!n.modifiers||!dk(J,n,n.parent,n.parent.parent))return;const a=hn(n.modifiers,Wc);if(a){J?($c(a,8),n.kind===170&&$c(a,32)):G1)for(let p=1;p0),c.length>1&&Qe(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const p=f3e(n.class.expression),m=DS(a);if(m){const b=f3e(m.expression);b&&p.escapedText!==b.escapedText&&Qe(p,f.JSDoc_0_1_does_not_match_the_extends_2_clause,Kr(n.tagName),Kr(p),Kr(b))}}function Tgt(n){const a=xS(n);a&&nu(a)&&Qe(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function f3e(n){switch(n.kind){case 80:return n;case 212:return n.name;default:return}}function m3e(n){var a;Y5(n),c8(n);const c=dc(n);if(n.name&&n.name.kind===168&&nh(n.name),FC(n)){const b=Wr(n),I=n.localSymbol||b,w=(a=I.declarations)==null?void 0:a.find(U=>U.kind===n.kind&&!(U.flags&524288));n===w&&D$(I),b.parent&&D$(b)}const p=n.kind===174?void 0:n.body;if(Oa(p),Yge(n,BC(n)),r(m),Ir(n)){const b=LT(n);b&&b.typeExpression&&!_ge(qi(b.typeExpression),n)&&Qe(b.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){kp(n)||(Ol(p)&&!K5(n)&&eS(n,Ue),c&1&&mm(p)&&fs(Df(n)))}}function gT(n){r(a);function a(){const c=Fn(n);let p=Qn.get(c.path);p||(p=[],Qn.set(c.path,p)),p.push(n)}}function h3e(n,a){for(const c of n)switch(c.kind){case 264:case 232:Sgt(c,a),dye(c,a);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:y3e(c,a);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:c.body&&y3e(c,a),dye(c,a);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:dye(c,a);break;case 196:Egt(c,a);break;default:C.assertNever(c,"Node should not have been registered for unused identifiers check")}}function _3e(n,a,c){const p=Oo(n)||n,m=kI(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 m8(n){return He(n)&&Kr(n).charCodeAt(0)===95}function Sgt(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&&(wp(c,2)||nd(c)&&eo(c.name))&&!(c.flags&33554432)&&a(c,0,Ar(c.name,f._0_is_declared_but_its_value_is_never_read,po(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,wl(m.symbol)));break;case 182:case 241:case 176:break;default:C.fail("Unexpected class member")}}function Egt(n,a){const{typeParameter:c}=n;uye(c)&&a(n,1,Ar(n,f._0_is_declared_but_its_value_is_never_read,Kr(c.name)))}function dye(n,a){const c=Wr(n).declarations;if(!c||Ba(c)!==n)return;const p=cb(n),m=new Set;for(const b of p){if(!uye(b))continue;const I=Kr(b.name),{parent:w}=b;if(w.kind!==196&&w.typeParameters.every(uye)){if(rh(m,w)){const U=Fn(w),H=Tm(w)?VV(w):jV(U,w.typeParameters),Ie=w.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,I]:[f.All_type_parameters_are_unused];a(b,1,Oc(U,H.pos,H.end-H.pos,...Ie))}}else a(b,1,Ar(b,f._0_is_declared_but_its_value_is_never_read,I))}}function uye(n){return!(os(n.symbol).isReferenced&262144)&&!m8(n.name)}function $5(n,a,c,p){const m=String(p(a)),b=n.get(m);b?b[1].push(c):n.set(m,[a,[c]])}function g3e(n){return ni(Kh(n),to)}function Agt(n){return Ha(n)?ff(n.parent)?!!(n.propertyName&&m8(n.name)):m8(n.name):yu(n)||(yi(n)&&ZE(n.parent.parent)||v3e(n))&&m8(n.name)}function y3e(n,a){const c=new Map,p=new Map,m=new Map;n.locals.forEach(b=>{if(!(b.flags&262144?!(b.flags&3&&!(b.isReferenced&3)):b.isReferenced||b.exportSymbol)&&b.declarations){for(const I of b.declarations)if(!Agt(I))if(v3e(I))$5(c,xgt(I),I,ls);else if(Ha(I)&&ff(I.parent)){const w=Ba(I.parent.elements);(I===w||!Ba(I.parent.elements).dotDotDotToken)&&$5(p,I.parent,I,ls)}else if(yi(I)){const w=OE(I)&7,U=Oo(I);(w!==4&&w!==6||!U||!m8(U))&&$5(m,I.parent,I,ls)}else{const w=b.valueDeclaration&&g3e(b.valueDeclaration),U=b.valueDeclaration&&Oo(b.valueDeclaration);w&&U?!Np(w,w.parent)&&!Sb(w)&&!m8(U)&&(Ha(I)&&pv(I.parent)?$5(p,I.parent,I,ls):a(w,1,Ar(U,f._0_is_declared_but_its_value_is_never_read,wl(b)))):_3e(I,wl(b),a)}}}),c.forEach(([b,I])=>{const w=b.parent;if((b.name?1:0)+(b.namedBindings?b.namedBindings.kind===275?1:b.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($a(I).name)):Ar(w,f.All_imports_in_import_declaration_are_unused));else for(const H of I)_3e(H,Kr(H.name),a)}),p.forEach(([b,I])=>{const w=g3e(b.parent)?1:0;if(b.elements.length===I.length)I.length===1&&b.parent.kind===261&&b.parent.parent.kind===262?$5(m,b.parent.parent,b.parent,ls):a(b,w,I.length===1?Ar(b,f._0_is_declared_but_its_value_is_never_read,Q5($a(I).name)):Ar(b,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,Q5(U.name)))}),m.forEach(([b,I])=>{if(b.declarations.length===I.length)a(b,0,I.length===1?Ar($a(I).name,f._0_is_declared_but_its_value_is_never_read,Q5($a(I).name)):Ar(b.parent.kind===244?b.parent:b,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,Q5(w.name)))})}function Igt(){var n;for(const a of Iy)if(!((n=Wr(a))!=null&&n.isReferenced)){const c=JE(a);C.assert(jT(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,Oc(Fn(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))),ns.add(p)}}function Q5(n){switch(n.kind){case 80:return Kr(n);case 208:case 207:return Q5(ha($a(n.elements),Ha).name);default:return C.assertNever(n)}}function v3e(n){return n.kind===274||n.kind===277||n.kind===275}function xgt(n){return n.kind===274?n:n.kind===275?n.parent:n.parent.parent}function M$(n){if(n.kind===242&&Hy(n),$9(n)){const a=Oi;$e(n.statements,Oa),Oi=a}else $e(n.statements,Oa);n.locals&&gT(n)}function Rgt(n){G>=2||!oG(n)||n.flags&33554432||Ol(n.body)||$e(n.parameters,a=>{a.name&&!Qo(a.name)&&a.name.escapedText===ge.escapedName&&Av("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function h8(n,a,c){if((a==null?void 0: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)||Fc(n)||Eu(n))&&Qy(n))return!1;const p=Kh(n);return!(to(p)&&Ol(p.parent.body))}function Dgt(n){Dn(n,a=>hR(a)&4?(n.kind!==80?Qe(Oo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Qe(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Cgt(n){Dn(n,a=>hR(a)&8?(n.kind!==80?Qe(Oo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Qe(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Ngt(n,a){if(e.getEmitModuleFormatOfFile(Fn(n))>=5||!a||!h8(n,a,"require")&&!h8(n,a,"exports")||pc(n)&&hy(n)!==1)return;const c=Pt(n);c.kind===308&&Pp(c)&&Av("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,ws(a),ws(a))}function Mgt(n,a){if(!a||G>=4||!h8(n,a,"Promise")||pc(n)&&hy(n)!==1)return;const c=Pt(n);c.kind===308&&Pp(c)&&c.flags&4096&&Av("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 Pgt(n,a){G<=8&&(h8(n,a,"WeakMap")||h8(n,a,"WeakSet"))&&Ey.push(n)}function Lgt(n){const a=sh(n);hR(a)&1048576&&(C.assert(nd(n)&&He(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Av("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function kgt(n,a){a&&G>=2&&G<=8&&h8(n,a,"Reflect")&&Ay.push(n)}function wgt(n){let a=!1;if(uc(n)){for(const c of n.members)if(hR(c)&2097152){a=!0;break}}else if(Us(n))hR(n)&2097152&&(a=!0);else{const c=sh(n);c&&hR(c)&2097152&&(a=!0)}a&&(C.assert(nd(n)&&He(n.name),"The target of a Reflect collision check should be an identifier"),Av("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,ws(n.name),"Reflect"))}function BL(n,a){a&&(Ngt(n,a),Mgt(n,a),Pgt(n,a),kgt(n,a),ui(n)?(GL(a,f.Class_name_cannot_be_0),n.flags&33554432||uyt(a)):ZT(n)&&GL(a,f.Enum_name_cannot_be_0))}function Ogt(n){if(OE(n)&7||jT(n))return;const a=Wr(n);if(a.flags&1){if(!He(n.name))return C.fail();const c=gt(n,n.name.escapedText,3,void 0,!1);if(c&&c!==a&&c.flags&2&&vge(c)&7){const p=VT(c.valueDeclaration,262),m=p.parent.kind===244&&p.parent.parent?p.parent.parent:void 0;if(!(m&&(m.kind===242&&Yo(m.parent)||m.kind===269||m.kind===268||m.kind===308))){const I=po(c);Qe(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function _8(n){return n===Rt?Ue:n===ld?bd:n}function Z5(n){var a;if(Y5(n),Ha(n)||Oa(n.type),!n.name)return;if(n.name.kind===168&&(nh(n.name),e1(n)&&n.initializer&&Vl(n.initializer)),Ha(n)){if(n.propertyName&&He(n.name)&&jT(n)&&Ol(df(n).body)){Iy.push(n);return}ff(n.parent)&&n.dotDotDotToken&&G1&&vt(c.declarations,b=>b!==n&&HN(b)&&!T3e(b,n))&&Qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}else{const m=_8(Qx(n));!pr(p)&&!pr(m)&&!qg(p,m)&&!(c.flags&67108864)&&b3e(c.valueDeclaration,p,n,m),e1(n)&&n.initializer&&ME(Vl(n.initializer),m,n,n.initializer,void 0),c.valueDeclaration&&!T3e(n,c.valueDeclaration)&&Qe(n.name,f.All_declarations_of_0_must_have_identical_modifiers,ws(n.name))}n.kind!==173&&n.kind!==172&&(u8(n),(n.kind===261||n.kind===209)&&Ogt(n),BL(n,n.name))}function b3e(n,a,c,p){const m=Oo(c),b=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=Qe(m,b,I,sr(a),sr(p));n&&pa(w,Ar(n,f._0_was_also_declared_here,I))}function T3e(n,a){if(n.kind===170&&a.kind===261||n.kind===261&&a.kind===170)return!0;if(vI(n)!==vI(a))return!1;const c=1358;return AI(n,c)===AI(a,c)}function Wgt(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}),ybt(n),Z5(n),(c=xr)==null||c.pop()}function Fgt(n){return hbt(n),Z5(n)}function P$(n){const a=ny(n)&7;(a===4||a===6)&&G=2,w=!I&&O.downlevelIteration,U=O.noUncheckedIndexedAccess&&!!(n&128);if(I||w||b){const et=k$(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&&$d(c,et.nextType,p,Tt)}if(et||I)return U?XW(et&&et.yieldType):et&&et.yieldType}let H=a,Q=!1;if(n&4){if(H.flags&1048576){const et=a.types,Tt=Vn(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?XW(yt):yt}if(!jv(H)){if(p){const et=!!(n&4)&&!Q,[Tt,Dt]=Te(et,w);Iv(p,Dt&&!!FL(H),Tt,sr(H))}return Q?U?XW(yt):yt:void 0}const Ie=q0(H,Gt);if(Q&&Ie)return Ie.flags&402653316&&!O.noUncheckedIndexedAccess?yt:pi(U?[Ie,yt,he]:[Ie,yt],2);return n&128?XW(Ie):Ie;function Te(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]:_ye(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]:Xgt((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 Xgt(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 _ye(n,a,c,p){if(wr(c))return;const m=k$(c,n,p);return m&&m[q1e(a)]}function yT(n=yn,a=yn,c=Nt){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){const p=km([n,a,c]);let m=Ns.get(p);return m||(m={yieldType:n,returnType:a,nextType:c},Ns.set(p,m)),m}return{yieldType:n,returnType:a,nextType:c}}function S3e(n){let a,c,p;for(const m of n)if(!(m===void 0||m===Da)){if(m===Qs)return Qs;a=Un(a,m.yieldType),c=Un(c,m.returnType),p=Un(p,m.nextType)}return a||c||p?yT(a&&pi(a),c&&pi(c),p&&Ma(p)):Da}function L$(n,a){return n[a]}function Kg(n,a,c){return n[a]=c}function k$(n,a,c){var p,m;if(n===wt)return Sc;if(wr(n))return Qs;if(!(n.flags&1048576)){const H=c?{errors:void 0,skipLogging:!0}:void 0,Q=E3e(n,a,c,H);if(Q===Da){if(c){const Ie=yye(c,n,!!(a&2));H!=null&&H.errors&&pa(Ie,...H.errors)}return}else if((p=H==null?void 0:H.errors)!=null&&p.length)for(const Ie of H.errors)ns.add(Ie);return Q}const b=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=L$(n,b);if(I)return I===Da?void 0:I;let w;for(const H of n.types){const Q=c?{errors:void 0}:void 0,Ie=E3e(H,a,c,Q);if(Ie===Da){if(c){const Te=yye(c,n,!!(a&2));Q!=null&&Q.errors&&pa(Te,...Q.errors)}Kg(n,b,Da);return}else if((m=Q==null?void 0:Q.errors)!=null&&m.length)for(const Te of Q.errors)ns.add(Te);w=Un(w,Ie)}const U=w?S3e(w):Da;return Kg(n,b,U),U===Da?void 0:U}function gye(n,a){if(n===Da)return Da;if(n===Qs)return Qs;const{yieldType:c,returnType:p,nextType:m}=n;return a&&Vhe(!0),yT(pR(c,a)||Ue,pR(p,a)||Ue,m)}function E3e(n,a,c,p){if(wr(n))return Qs;let m=!1;if(a&2){const b=A3e(n,mc)||I3e(n,mc);if(b)if(b===Da&&c)m=!0;else return a&8?gye(b,c):b}if(a&1){let b=A3e(n,Hs)||I3e(n,Hs);if(b)if(b===Da&&c)m=!0;else if(a&2){if(b!==Da)return b=gye(b,c),m?b:Kg(n,"iterationTypesOfAsyncIterable",b)}else return b}if(a&2){const b=R3e(n,mc,c,p,m);if(b!==Da)return b}if(a&1){let b=R3e(n,Hs,c,p,m);if(b!==Da)return a&2?(b=gye(b,c),m?b:Kg(n,"iterationTypesOfAsyncIterable",b)):b}return Da}function A3e(n,a){return L$(n,a.iterableCacheKey)}function I3e(n,a){if(Jp(n,a.getGlobalIterableType(!1))||Jp(n,a.getGlobalIteratorObjectType(!1))||Jp(n,a.getGlobalIterableIteratorType(!1))||Jp(n,a.getGlobalGeneratorType(!1))){const[c,p,m]=ol(n);return Kg(n,a.iterableCacheKey,yT(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,m))}if(QX(n,a.getGlobalBuiltinIteratorTypes())){const[c]=ol(n),p=Ghe(),m=Nt;return Kg(n,a.iterableCacheKey,yT(a.resolveIterationType(c,void 0)||c,a.resolveIterationType(p,void 0)||p,m))}}function x3e(n){const a=HWe(!1),c=a&&_n(_r(a),Cl(n));return c&&jf(c)?Uf(c):`__@${n}`}function R3e(n,a,c,p,m){const b=Ea(n,x3e(a.iteratorSymbolName)),I=b&&!(b.flags&16777216)?_r(b):void 0;if(wr(I))return m?Qs:Kg(n,a.iterableCacheKey,Qs);const w=I?na(I,0):void 0,U=Vn(w,Ie=>kh(Ie)===0);if(!vt(U))return c&&vt(w)&&$d(n,a.getGlobalIterableType(!0),c,void 0,void 0,p),m?Da:Kg(n,a.iterableCacheKey,Da);const H=Ma(Bt(U,fs)),Q=D3e(H,a,c,p,m)??Da;return m?Q:Kg(n,a.iterableCacheKey,Q)}function yye(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=!!FL(a)||!c&&gw(n.parent)&&n.parent.expression===n&&Qz(!1)!==Zt&&sa(a,AL(Qz(!1),[Ue,Ue,Ue]));return Iv(n,m,p,sr(a))}function Ygt(n,a,c,p){return D3e(n,a,c,p,!1)}function D3e(n,a,c,p,m){if(wr(n))return Qs;let b=$gt(n,a)||Qgt(n,a);return b===Da&&c&&(b=void 0,m=!0),b??(b=nyt(n,a,c,p,m)),b===Da?void 0:b}function $gt(n,a){return L$(n,a.iteratorCacheKey)}function Qgt(n,a){if(Jp(n,a.getGlobalIterableIteratorType(!1))||Jp(n,a.getGlobalIteratorType(!1))||Jp(n,a.getGlobalIteratorObjectType(!1))||Jp(n,a.getGlobalGeneratorType(!1))){const[c,p,m]=ol(n);return Kg(n,a.iteratorCacheKey,yT(c,p,m))}if(QX(n,a.getGlobalBuiltinIteratorTypes())){const[c]=ol(n),p=Ghe(),m=Nt;return Kg(n,a.iteratorCacheKey,yT(c,p,m))}}function C3e(n,a){const c=_n(n,"done")||nr;return sa(a===0?nr:ft,c)}function Zgt(n){return C3e(n,0)}function eyt(n){return C3e(n,1)}function tyt(n){if(wr(n))return Qs;const a=L$(n,"iterationTypesOfIteratorResult");if(a)return a;if(Jp(n,Sct(!1))){const I=ol(n)[0];return Kg(n,"iterationTypesOfIteratorResult",yT(I,void 0,void 0))}if(Jp(n,Ect(!1))){const I=ol(n)[0];return Kg(n,"iterationTypesOfIteratorResult",yT(void 0,I,void 0))}const c=Ec(n,Zgt),p=c!==yn?_n(c,"value"):void 0,m=Ec(n,eyt),b=m!==yn?_n(m,"value"):void 0;return!p&&!b?Kg(n,"iterationTypesOfIteratorResult",Da):Kg(n,"iterationTypesOfIteratorResult",yT(p,b||In,void 0))}function vye(n,a,c,p,m){var b,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):om(_r(H),2097152):void 0;if(wr(Q))return Qs;const Ie=Q?na(Q,0):se;if(Ie.length===0){if(p){const Sn=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(Ar(p,Sn,c))):Qe(p,Sn,c)}return c==="next"?Da:void 0}if(Q!=null&&Q.symbol&&Ie.length===1){const Sn=a.getGlobalGeneratorType(!1),vn=a.getGlobalIteratorType(!1),Sr=((I=(b=Sn.symbol)==null?void 0:b.members)==null?void 0:I.get(c))===Q.symbol,fi=!Sr&&((U=(w=vn.symbol)==null?void 0:w.members)==null?void 0:U.get(c))===Q.symbol;if(Sr||fi){const oo=Sr?Sn:vn,{mapper:ii}=Q;return yT(Vv(oo.typeParameters[0],ii),Vv(oo.typeParameters[1],ii),c==="next"?Vv(oo.typeParameters[2],ii):void 0)}}let Te,et;for(const Sn of Ie)c!=="throw"&&vt(Sn.parameters)&&(Te=Un(Te,Lh(Sn,0))),et=Un(et,fs(Sn));let Tt,Dt;if(c!=="throw"){const Sn=Te?pi(Te):Nt;if(c==="next")Dt=Sn;else if(c==="return"){const vn=a.resolveIterationType(Sn,p)||Ue;Tt=Un(Tt,vn)}}let $t;const Tn=et?Ma(et):yn,rr=a.resolveIterationType(Tn,p)||Ue,yr=tyt(rr);return yr===Da?(p&&(m?(m.errors??(m.errors=[]),m.errors.push(Ar(p,a.mustHaveAValueDiagnostic,c))):Qe(p,a.mustHaveAValueDiagnostic,c)),$t=Ue,Tt=Un(Tt,Ue)):($t=yr.yieldType,Tt=Un(Tt,yr.returnType)),yT($t,pi(Tt),Dt)}function nyt(n,a,c,p,m){const b=S3e([vye(n,a,"next",c,p),vye(n,a,"return",c,p),vye(n,a,"throw",c,p)]);return m?b:Kg(n,a.iteratorCacheKey,b)}function qv(n,a,c){if(wr(a))return;const p=bye(a,c);return p&&p[q1e(n)]}function bye(n,a){if(wr(n))return Qs;const c=a?2:1,p=a?mc:Hs;return k$(n,c,void 0)||Ygt(n,p,void 0,void 0)}function ryt(n){Hy(n)||mbt(n)}function tB(n,a){const c=!!(a&1),p=!!(a&2);if(c){const m=qv(1,n,p);return m?p?Uy(zL(m)):m:nt}return p?Uy(n)||nt:n}function N3e(n,a){const c=tB(a,dc(n));return!!(c&&(tc(c,16384)||c.flags&32769))}function iyt(n){if(Hy(n))return;const a=JF(n);if(a&&Ql(a)){fd(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){fd(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}const c=Df(a),p=fs(c);if(ie||n.expression||p.flags&131072){const m=n.expression?Vl(n.expression):he;if(a.kind===179)n.expression&&Qe(n,f.Setters_cannot_return_a_value);else if(a.kind===177){const b=n.expression?Vl(n.expression):he;n.expression&&!ME(b,p,n,n.expression)&&Qe(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else if(BC(a)){const b=tB(p,dc(a))??p;w$(a,b,n,n.expression,m)}}else a.kind!==177&&O.noImplicitReturns&&!N3e(a,p)&&Qe(n,f.Not_all_code_paths_return_a_value)}function w$(n,a,c,p,m,b=!1){const I=Ir(c),w=dc(n);if(p){const Te=us(p,I);if(S1(Te)){w$(n,a,c,Te.whenTrue,go(Te.whenTrue),!0),w$(n,a,c,Te.whenFalse,go(Te.whenFalse),!0);return}}const U=c.kind===254,H=w&2?X5(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&&_$(p);ME(H,a,U&&!b?c:Q,Q)}function oyt(n){Hy(n)||n.flags&65536&&fd(n,f.with_statements_are_not_allowed_in_an_async_function_block),go(n.expression);const a=Fn(n);if(!vT(a)){const c=Uh(a,n.pos).start,p=n.statement.pos;rS(a,c,p-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function ayt(n){Hy(n);let a,c=!1;const p=go(n.expression);$e(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(b(m)),$e(m.statements,Oa),O.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&E5(m.fallthroughFlowNode)&&Qe(m,f.Fallthrough_case_in_switch);function b(I){return()=>{const w=go(I.expression);eye(p,w)||J8e(w,p,I.expression,void 0)}}}),n.caseBlock.locals&&gT(n.caseBlock)}function syt(n){Hy(n)||Dn(n.parent,a=>Yo(a)?"quit":a.kind===257&&a.label.escapedText===n.label.escapedText?(Cn(n.label,f.Duplicate_label_0,Al(n.label)),!0):!1),Oa(n.statement)}function lyt(n){Hy(n)||He(n.expression)&&!n.expression.escapedText&&Dbt(n,f.Line_break_not_permitted_here),n.expression&&go(n.expression)}function cyt(n){Hy(n),M$(n.tryBlock);const a=n.catchClause;if(a){if(a.variableDeclaration){const c=a.variableDeclaration;Z5(c);const p=xc(c);if(p){const m=qi(p);m&&!(m.flags&3)&&fd(p,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)fd(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{const m=a.block.locals;m&&mg(a.locals,b=>{const I=m.get(b);I!=null&&I.valueDeclaration&&I.flags&2&&Cn(I.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Bi(b))})}}M$(a.block)}n.finallyBlock&&M$(n.finallyBlock)}function O$(n,a,c){const p=Xd(n);if(p.length===0)return;for(const b of zv(n))c&&b.flags&4194304||M3e(n,b,nR(b,8576,!0),xh(b));const m=a.valueDeclaration;if(m&&ui(m)){for(const b of m.members)if((!c&&!ua(b)||c&&ua(b))&&!FC(b)){const I=Wr(b);M3e(n,I,wd(b.name.expression),xh(I))}}if(p.length>1)for(const b of p)dyt(n,b)}function M3e(n,a,c,p){const m=a.valueDeclaration,b=Oo(m);if(b&&eo(b))return;const I=Dhe(n,c),w=Hr(n)&2?ll(n.symbol,265):void 0,U=m&&m.kind===227||b&&b.kind===168?m:void 0,H=Yc(a)===n.symbol?m:void 0;for(const Q of I){const Ie=Q.declaration&&Yc(Wr(Q.declaration))===n.symbol?Q.declaration:void 0,Te=H||Ie||(w&&!vt(eh(n),et=>!!EE(et,a.escapedName)&&!!q0(et,Q.keyType))?w:void 0);if(Te&&!sa(p,Q.type)){const et=uE(Te,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,po(a),sr(p),sr(Q.keyType),sr(Q.type));U&&Te!==U&&pa(et,Ar(U,f._0_is_declared_here,po(a))),ns.add(et)}}}function dyt(n,a){const c=a.declaration,p=Dhe(n,a.keyType),m=Hr(n)&2?ll(n.symbol,265):void 0,b=c&&Yc(Wr(c))===n.symbol?c:void 0;for(const I of p){if(I===a)continue;const w=I.declaration&&Yc(Wr(I.declaration))===n.symbol?I.declaration:void 0,U=b||w||(m&&!vt(eh(n),H=>!!jg(H,a.keyType)&&!!q0(H,I.keyType))?m:void 0);U&&!sa(a.type,I.type)&&Qe(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 GL(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":Qe(n,a,n.escapedText)}}function uyt(n){G>=1&&n.escapedText==="Object"&&e.getEmitModuleFormatOfFile(Fn(n))<5&&Qe(n,f.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,CR[j])}function pyt(n){const a=Vn(kT(n),mf);if(!Ze(a))return;const c=Ir(n),p=new Set,m=new Set;if($e(n.parameters,({name:I},w)=>{He(I)&&p.add(I.escapedText),Qo(I)&&m.add(w)}),Nhe(n)){const I=a.length-1,w=a[I];c&&w&&He(w.name)&&w.typeExpression&&w.typeExpression.type&&!p.has(w.name.escapedText)&&!m.has(I)&&!im(qi(w.typeExpression.type))&&Qe(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 $e(a,({name:I,isNameFirst:w},U)=>{m.has(U)||He(I)&&p.has(I.escapedText)||(ku(I)?c&&Qe(I,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Mp(I),Mp(I.left)):w||Km(c,I,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Kr(I)))})}function nB(n){let a=!1;if(n)for(let p=0;p{p.default?(a=!0,fyt(p.default,n,m)):a&&Qe(p,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let b=0;bp)return!1;for(let U=0;Uwc(c)&&nu(c))&&Cn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!di(n,2048)&&fd(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),w3e(n),$e(n.members,Oa),gT(n)}function w3e(n){Zvt(n),Y5(n),BL(n,n.name),nB(cb(n)),u8(n);const a=Wr(n),c=qs(a),p=Kp(c),m=_r(a);P3e(a),D$(a),C_t(n),!!(n.flags&33554432)||N_t(n);const I=lh(n);if(I){$e(I.typeArguments,Oa),G{const Ie=Q[0],Te=Ly(c),et=Du(Te);if(vyt(et,I),Oa(I.expression),vt(I.typeArguments)){$e(I.typeArguments,Oa);for(const Dt of Zm(et,I.typeArguments,I))if(!o3e(I,Dt.typeParameters))break}const Tt=Kp(Ie,c.thisType);if($d(p,Tt,void 0)?$d(m,G8e(et),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):F3e(n,p,Tt,f.Class_0_incorrectly_extends_base_class_1),Te.flags&8650752&&(Ed(m)?na(Te,1).some($t=>$t.flags&4)&&!di(n,64)&&Qe(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Qe(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)&&!(Te.flags&8650752)){const Dt=Gg(et,I.typeArguments,I);$e(Dt,$t=>!A_($t.declaration)&&!qg(fs($t),Ie))&&Qe(I.expression,f.Base_constructors_must_all_have_the_same_return_type)}Syt(c,Ie)})}yyt(n,c,p,m);const w=nD(n);if(w)for(const H of w)(!Ds(H.expression)||tu(H.expression))&&Qe(H.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),sye(H),r(U(H));r(()=>{O$(c,a),O$(m,a,!0),oye(n),Iyt(n)});function U(H){return()=>{const Q=Lm(qi(H));if(!pr(Q))if(Gz(Q)){const Ie=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,Te=Kp(Q,c.thisType);$d(p,Te,void 0)||F3e(n,p,Te,Ie)}else Qe(H,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function yyt(n,a,c,p){const b=lh(n)&&eh(a),I=b!=null&&b.length?Kp($a(b),a.thisType):void 0,w=Ly(a);for(const U of n.members)dV(U)||(Ml(U)&&$e(U.parameters,H=>{Np(H,U)&&O3e(n,p,w,I,a,c,H,!0)}),O3e(n,p,w,I,a,c,U,!1))}function O3e(n,a,c,p,m,b,I,w,U=!0){const H=I.name&&sm(I.name)||sm(I);return H?W3e(n,a,c,p,m,b,S6(I),LS(I),ua(I),w,H,U?I:void 0):0}function W3e(n,a,c,p,m,b,I,w,U,H,Q,Ie){const Te=Ir(n),et=!!(n.flags&33554432);if(I&&(Q!=null&&Q.valueDeclaration)&&bc(Q.valueDeclaration)&&Q.valueDeclaration.name&&ZOe(Q.valueDeclaration.name))return Qe(Ie,Te?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||O.noImplicitOverride)){const Tt=U?a:b,Dt=U?c:p,$t=Ea(Tt,Q.escapedName),Tn=Ea(Dt,Q.escapedName),rr=sr(p);if($t&&!Tn&&I){if(Ie){const yr=q6e(wl(Q),Dt);yr?Qe(Ie,Te?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,rr,po(yr)):Qe(Ie,Te?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,rr)}return 2}else if($t&&(Tn!=null&&Tn.declarations)&&O.noImplicitOverride&&!et){const yr=vt(Tn.declarations,LS);if(I)return 0;if(yr){if(w&&yr)return Ie&&Qe(Ie,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,rr),1}else{if(Ie){const Sn=H?Te?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:Te?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;Qe(Ie,Sn,rr)}return 1}}}else if(I){if(Ie){const Tt=sr(m);Qe(Ie,Te?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 F3e(n,a,c,p){let m=!1;for(const b of n.members){if(ua(b))continue;const I=b.name&&sm(b.name)||sm(b);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,po(I),sr(a),sr(c));$d(_r(w),_r(U),b.name||b,void 0,H)||(m=!0)}}}m||$d(a,c,n.name||n,p)}function vyt(n,a){const c=na(n,1);if(c.length){const p=c[0].declaration;if(p&&wp(p,2)){const m=dy(n.symbol);xye(a,m)||Qe(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Nv(n.symbol))}}}function byt(n,a,c){if(!a.name)return 0;const p=Wr(n),m=qs(p),b=Kp(m),I=_r(p),U=lh(n)&&eh(m),H=U!=null&&U.length?Kp($a(U),m.thisType):void 0,Q=Ly(m),Ie=a.parent?S6(a):di(a,16);return W3e(n,I,Q,H,m,b,Ie,LS(a),ua(a),!1,c)}function nN(n){return Wl(n)&1?n.links.target:n}function Tyt(n){return Vn(n.declarations,a=>a.kind===264||a.kind===265)}function Syt(n,a){var c,p,m,b,I;const w=bs(a),U=new Map;e:for(const H of w){const Q=nN(H);if(Q.flags&4194304)continue;const Ie=EE(n,Q.escapedName);if(!Ie)continue;const Te=nN(Ie),et=Vf(Q);if(C.assert(!!Te,"derived should point to something, even if it is the base class' declaration."),Te===Q){const Tt=dy(n.symbol);if(et&64&&(!Tt||!di(Tt,64))){for(const yr of eh(n)){if(yr===a)continue;const Sn=EE(yr,Q.escapedName),vn=Sn&&nN(Sn);if(vn&&vn!==Q)continue e}const Dt=sr(a),$t=sr(n),Tn=po(H),rr=Un((c=U.get(Tt))==null?void 0:c.missedProperties,Tn);U.set(Tt,{baseTypeName:Dt,typeName:$t,missedProperties:rr})}}else{const Tt=Vf(Te);if(et&2||Tt&2)continue;let Dt;const $t=Q.flags&98308,Tn=Te.flags&98308;if($t&&Tn){if((Wl(Q)&6?(p=Q.declarations)!=null&&p.some(Sn=>z3e(Sn,et)):(m=Q.declarations)!=null&&m.every(Sn=>z3e(Sn,et)))||Wl(Q)&262144||Te.valueDeclaration&&Nr(Te.valueDeclaration))continue;const rr=$t!==4&&Tn===4;if(rr||$t===4&&Tn!==4){const Sn=rr?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;Qe(Oo(Te.valueDeclaration)||Te.valueDeclaration,Sn,po(Q),sr(a),sr(n))}else if(Z){const Sn=(b=Te.declarations)==null?void 0:b.find(vn=>vn.kind===173&&!vn.initializer);if(Sn&&!(Te.flags&33554432)&&!(et&64)&&!(Tt&64)&&!((I=Te.declarations)!=null&&I.some(vn=>!!(vn.flags&33554432)))){const vn=ow(dy(n.symbol)),Sr=Sn.name;if(Sn.exclamationToken||!vn||!He(Sr)||!ie||!G3e(Sr,n,vn)){const fi=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;Qe(Oo(Te.valueDeclaration)||Te.valueDeclaration,fi,po(Q),sr(a))}}}continue}else if(bge(Q)){if(bge(Te)||Te.flags&4)continue;C.assert(!!(Te.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;Qe(Oo(Te.valueDeclaration)||Te.valueDeclaration,Dt,sr(a),po(Q),sr(n))}}for(const[H,Q]of U)if(Ze(Q.missedProperties)===1)uc(H)?Qe(H,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,$a(Q.missedProperties),Q.baseTypeName):Qe(H,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Q.typeName,$a(Q.missedProperties),Q.baseTypeName);else if(Ze(Q.missedProperties)>5){const Ie=Bt(Q.missedProperties.slice(0,4),et=>`'${et}'`).join(", "),Te=Ze(Q.missedProperties)-4;uc(H)?Qe(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,Q.baseTypeName,Ie,Te):Qe(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,Q.typeName,Q.baseTypeName,Ie,Te)}else{const Ie=Bt(Q.missedProperties,Te=>`'${Te}'`).join(", ");uc(H)?Qe(H,f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,Q.baseTypeName,Ie):Qe(H,f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,Q.typeName,Q.baseTypeName,Ie)}}function z3e(n,a){return a&64&&(!Po(n)||!n.initializer)||gd(n.parent)}function Eyt(n,a,c){if(!Ze(a))return c;const p=new Map;$e(c,m=>{p.set(m.escapedName,m)});for(const m of a){const b=bs(Kp(m,n.thisType));for(const I of b){const w=p.get(I.escapedName);w&&I.parent===w.parent&&p.delete(I.escapedName)}}return Co(p.values())}function Ayt(n,a){const c=eh(n);if(c.length<2)return!0;const p=new Map;$e(fhe(n).declaredProperties,b=>{p.set(b.escapedName,{prop:b,containingType:n})});let m=!0;for(const b of c){const I=bs(Kp(b,n.thisType));for(const w of I){const U=p.get(w.escapedName);if(!U)p.set(w.escapedName,{prop:w,containingType:b});else if(U.containingType!==n&&!gut(U.prop,w)){m=!1;const Q=sr(U.containingType),Ie=sr(b);let Te=qo(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,po(w),Q,Ie);Te=qo(Te,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,sr(n),Q,Ie),ns.add(_g(Fn(a),a,Te))}}}return m}function Iyt(n){if(!ie||!de||n.flags&33554432)return;const a=ow(n);for(const c of n.members)if(!(Gd(c)&128)&&!ua(c)&&B3e(c)){const p=c.name;if(He(p)||eo(p)||va(p)){const m=_r(Wr(c));m.flags&3||qC(m)||(!a||!G3e(p,m,a))&&Qe(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,ws(p))}}}function B3e(n){return n.kind===173&&!LS(n)&&!n.exclamationToken&&!n.initializer}function xyt(n,a,c,p,m){for(const b of c)if(b.pos>=p&&b.pos<=m){const I=L.createPropertyAccessExpression(L.createThis(),n);ps(I.expression,I),ps(I,b),I.flowNode=b.returnFlowNode;const w=jy(I,a,hT(a));if(!qC(w))return!0}return!1}function G3e(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=jy(p,a,hT(a));return!qC(m)}function Ryt(n){Xg(n)||abt(n),Y$(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"interface"),nB(n.typeParameters),r(()=>{GL(n.name,f.Interface_name_cannot_be_0),u8(n);const a=Wr(n);P3e(a);const c=ll(a,265);if(n===c){const p=qs(a),m=Kp(p);if(Ayt(p,n.name)){for(const b of eh(p))$d(m,Kp(b,p.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);O$(p,a)}}t3e(n)}),$e(iM(n),a=>{(!Ds(a.expression)||tu(a.expression))&&Qe(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),sye(a)}),$e(n.members,Oa),r(()=>{oye(n),gT(n)})}function Dyt(n){if(Xg(n),GL(n.name,f.Type_alias_name_cannot_be_0),Y$(n.parent)||Cn(n,f._0_declarations_can_only_be_declared_inside_a_block,"type"),u8(n),nB(n.typeParameters),n.type.kind===141){const a=Ze(n.typeParameters);(a===0?n.name.escapedText==="BuiltinIteratorReturn":a===1&&OU.has(n.name.escapedText))||Qe(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else Oa(n.type),gT(n)}function V3e(n){const a=Vr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0,p;for(const m of n.members){const b=Cyt(m,c,p);Vr(m).enumMemberValue=b,c=typeof b.value=="number"?b.value+1:void 0,p=m}}}function Cyt(n,a,c){if(ek(n.name))Qe(n.name,f.Computed_property_names_are_not_allowed_in_enums);else if(yD(n.name))Qe(n.name,f.An_enum_member_cannot_have_a_numeric_name);else{const p=hI(n.name);Ag(p)&&!NM(p)&&Qe(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Nyt(n);if(n.parent.flags&33554432&&!OT(n.parent))return qc(void 0);if(a===void 0)return Qe(n.name,f.Enum_member_must_have_initializer),qc(void 0);if(vm(O)&&(c!=null&&c.initializer)){const p=GA(c);typeof p.value=="number"&&!p.resolvedOtherFiles||Qe(n.name,f.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return qc(a)}function Nyt(n){const a=OT(n.parent),c=n.initializer,p=Be(c,n);return p.value!==void 0?a&&typeof p.value=="number"&&!isFinite(p.value)?Qe(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):vm(O)&&typeof p.value=="string"&&!p.isSyntacticallyString&&Qe(c,f._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Kr(n.parent.name)}.${hI(n.name)}`):a?Qe(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?Qe(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):$d(go(c),Gt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),p}function j3e(n,a){const c=Gl(n,111551,!0);if(!c)return qc(void 0);if(n.kind===80){const p=n;if(NM(p.escapedText)&&c===UC(p.escapedText,111551,void 0))return qc(+p.escapedText,!1)}if(c.flags&8)return a?U3e(n,c,a):GA(c.valueDeclaration);if(lR(c)){const p=c.valueDeclaration;if(p&&yi(p)&&!p.type&&p.initializer&&(!a||p!==a&&Cy(p,a))){const m=Be(p.initializer,p);return a&&Fn(a)!==Fn(p)?qc(m.value,!1,!0,!0):qc(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0)}}return qc(void 0)}function Myt(n,a){const c=n.expression;if(Ds(c)&&ds(n.argumentExpression)){const p=Gl(c,111551,!0);if(p&&p.flags&384){const m=Cl(n.argumentExpression.text),b=p.exports.get(m);if(b)return C.assert(Fn(b.valueDeclaration)===Fn(p.valueDeclaration)),a?U3e(n,b,a):GA(b.valueDeclaration)}}return qc(void 0)}function U3e(n,a,c){const p=a.valueDeclaration;if(!p||p===c)return Qe(n,f.Property_0_is_used_before_being_assigned,po(a)),qc(void 0);if(!Cy(p,c))return Qe(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),qc(0);const m=GA(p);return c.parent!==p.parent?qc(m.value,m.isSyntacticallyString,m.resolvedOtherFiles,!0):m}function Pyt(n){r(()=>Lyt(n))}function Lyt(n){Xg(n),BL(n,n.name),u8(n),n.members.forEach(Oa),O.erasableSyntaxOnly&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),V3e(n);const a=Wr(n),c=ll(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){const m=OT(n);$e(a.declarations,b=>{ZT(b)&&OT(b)!==m&&Qe(Oo(b),f.Enum_declarations_must_all_be_const_or_non_const)})}let p=!1;$e(a.declarations,m=>{if(m.kind!==267)return!1;const b=m;if(!b.members.length)return!1;const I=b.members[0];I.initializer||(p?Qe(I.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):p=!0)})}}function kyt(n){eo(n.name)&&Qe(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&go(n.initializer)}function wyt(n){const a=n.declarations;if(a){for(const c of a)if((c.kind===264||c.kind===263&&mm(c.body))&&!(c.flags&33554432))return c}}function Oyt(n,a){const c=sh(n),p=sh(a);return ev(c)?ev(p):ev(p)?!1:c===p}function Wyt(n){n.body&&(Oa(n.body),P_(n)||gT(n)),r(a);function a(){var c,p;const m=P_(n),b=n.flags&33554432;m&&!b&&Qe(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const I=yu(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(rB(n,w))return;if(Xg(n)||!b&&n.name.kind===11&&Cn(n.name,f.Only_ambient_modules_can_use_quoted_names),He(n.name)&&(BL(n,n.name),!(n.flags&2080))){const H=Fn(n),Q=Lte(n),Ie=Uh(H,Q);Q1.add(Oc(H,Ie.start,Ie.length,f.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}u8(n);const U=Wr(n);if(U.flags&512&&!b&&WU(n,Ib(O))){if(O.erasableSyntaxOnly&&Qe(n.name,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),vm(O)&&!Fn(n).externalModuleIndicator&&Qe(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=wyt(U);H&&(Fn(n)!==Fn(H)?Qe(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&&Qe(H,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(I)if(SS(n)){if((m||Wr(n).flags&33554432)&&n.body)for(const Q of n.body.statements)Tye(Q,m)}else ev(n.parent)?m?Qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):td(zf(n.name))&&Qe(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):m?Qe(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Qe(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Tye(n,a){switch(n.kind){case 244:for(const p of n.declarationList.declarations)Tye(p,a);break;case 278:case 279:fd(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if(i1(n))break;case 273:fd(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(Qo(c)){for(const p of c.elements)Tye(p,a);break}case 264:case 267:case 263:case 265:case 268:case 266:if(a)return;break}}function Fyt(n){switch(n.kind){case 80:return n;case 167:do n=n.left;while(n.kind!==80);return n;case 212:do{if(yg(n.expression)&&!eo(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function W$(n){const a=yI(n);if(!a||Ol(a))return!1;if(!wa(a))return Qe(a,f.String_literal_expected),!1;const c=n.parent.kind===269&&yu(n.parent.parent);if(n.parent.kind!==308&&!c)return Qe(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&&td(a.text)&&!uL(n))return Qe(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Fc(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 b of n.attributes.elements)wa(b.value)||(m=!0,Qe(b.value,p));return!m}return!0}function F$(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 z$(n){var a,c,p,m,b;let I=Wr(n);const w=ud(I);if(w!==ne){if(I=os(I.exportSymbol||I),Ir(n)&&!(w.flags&111551)&&!Qy(n)){const Q=ub(n)?n.propertyName||n.name:nd(n)?n.name:n;if(C.assert(n.kind!==281),n.kind===282){const Ie=Qe(Q,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Te=(c=(a=Fn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get(TS(n.propertyName||n.name));if(Te===w){const et=(p=Te.declarations)==null?void 0:p.find(GR);et&&pa(Ie,Ar(et,f._0_is_automatically_exported_here,Bi(Te.escapedName)))}}else{C.assert(n.kind!==261);const Ie=Dn(n,Rp(vl,Fc)),Te=(Ie&&((m=gI(Ie))==null?void 0:m.text))??"...",et=Bi(He(Q)?Q.escapedText:I.escapedName);Qe(Q,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,et,`import("${Te}").${et}`)}return}const U=dp(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;Qe(n,Q,po(I))}else n.kind!==282&&O.isolatedModules&&!Dn(n,Qy)&&I.flags&1160127&&Qe(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,po(I),Ge);if(vm(O)&&!Qy(n)&&!(n.flags&33554432)){const Q=Ah(I),Ie=!(U&111551);if(Ie||Q)switch(n.kind){case 274:case 277:case 272:{if(O.verbatimModuleSyntax){C.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");const Te=O.verbatimModuleSyntax&&i1(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Ie?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=yb(n.kind===277&&n.propertyName||n.name);Wo(Qe(n,Te,et),Ie?void 0:Q,et)}Ie&&n.kind===272&&wp(n,32)&&Qe(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ge);break}case 282:if(O.verbatimModuleSyntax||Fn(Q)!==Fn(n)){const Te=yb(n.propertyName||n.name),et=Ie?Qe(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ge):Qe(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Te,Ge);Wo(et,Ie?void 0:Q,Te);break}}if(O.verbatimModuleSyntax&&n.kind!==272&&!Ir(n)&&e.getEmitModuleFormatOfFile(Fn(n))===1?Qe(n,Z1(n)):j===200&&n.kind!==272&&n.kind!==261&&e.getEmitModuleFormatOfFile(Fn(n))===1&&Qe(n,f.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),O.verbatimModuleSyntax&&!Qy(n)&&!(n.flags&33554432)&&U&128){const Te=w.valueDeclaration,et=(b=e.getRedirectFromOutput(Fn(Te).resolvedPath))==null?void 0:b.resolvedRef;Te.flags&33554432&&(!et||!Ib(et.commandLine.options))&&Qe(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge)}}if(Eu(n)){const Q=Sye(I,n);xu(Q)&&Q.declarations&&Nm(n,Q.declarations,Q.escapedName)}}}function Sye(n,a){if(!(n.flags&2097152)||xu(n)||!cp(n))return n;const c=ud(n);if(c===ne)return c;for(;n.flags&2097152;){const p=a$(n);if(p){if(p===c)break;if(p.declarations&&Ze(p.declarations))if(xu(p)){Nm(a,p.declarations,p.escapedName);break}else{if(n===c)break;n=p}}else break}return c}function B$(n){BL(n,n.name),z$(n),n.kind===277&&(F$(n.propertyName),M_(n.propertyName||n.name)&&Qh(O)&&e.getEmitModuleFormatOfFile(Fn(n))<4&&$c(n,131072))}function Eye(n){var a;const c=n.attributes;if(c){const p=zhe(!0);p!==Ra&&$d(ihe(c),h5(p,32768),c);const m=bH(n),b=HD(c,m?Cn:void 0),I=n.attributes.token===118;if(m&&b)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 fd(c,f.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(n.moduleSpecifier&&Ny(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(a_(n)||(vl(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(b)return Cn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function zyt(n){return Cu(Vl(n.value))}function Byt(n){if(!rB(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(!Xg(n)&&n.modifiers&&fd(n,f.An_import_declaration_cannot_have_modifiers),W$(n)){let a;const c=n.importClause;c&&!Nbt(c)?(c.name&&B$(c),c.namedBindings&&(c.namedBindings.kind===275?(B$(c.namedBindings),e.getEmitModuleFormatOfFile(Fn(n))<4&&Qh(O)&&$c(n,65536)):(a=uu(n,n.moduleSpecifier),a&&$e(c.namedBindings.elements,B$))),!c.isTypeOnly&&101<=j&&j<=199&&eT(n.moduleSpecifier,a)&&!Gyt(n)&&Qe(n.moduleSpecifier,f.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,CR[j])):Je&&!c&&uu(n,n.moduleSpecifier)}Eye(n)}}function Gyt(n){return!!n.attributes&&n.attributes.elements.some(a=>{var c;return zf(a.name)==="type"&&((c=ni(a.value,ds))==null?void 0:c.text)==="json"})}function Vyt(n){if(!rB(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)&&(Xg(n),O.erasableSyntaxOnly&&!(n.flags&33554432)&&Qe(n,f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),i1(n)||W$(n)))if(B$(n),cR(n,6),n.moduleReference.kind!==284){const a=ud(Wr(n));if(a!==ne){const c=dp(a);if(c&111551){const p=Lu(n.moduleReference);Gl(p,112575).flags&1920||Qe(p,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,ws(p))}c&788968&&GL(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 jyt(n){if(!rB(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(!Xg(n)&&One(n)&&fd(n,f.An_export_declaration_cannot_have_modifiers),Uyt(n),!n.moduleSpecifier||W$(n))if(n.exportClause&&!W_(n.exportClause)){$e(n.exportClause.elements,Hyt);const a=n.parent.kind===269&&yu(n.parent.parent),c=!a&&n.parent.kind===269&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==308&&!a&&!c&&Qe(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=uu(n,n.moduleSpecifier);a&&$m(a)?Qe(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,po(a)):n.exportClause&&(z$(n.exportClause),F$(n.exportClause.name)),e.getEmitModuleFormatOfFile(Fn(n))<4&&(n.exportClause?Qh(O)&&$c(n,65536):$c(n,32768))}Eye(n)}}function Uyt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===280?I7e(n.exportClause):!1}function rB(n,a){const c=n.parent.kind===308||n.parent.kind===269||n.parent.kind===268;return c||fd(n,a),!c}function Hyt(n){z$(n);const a=n.parent.parent.moduleSpecifier!==void 0;if(F$(n.propertyName,a),F$(n.name),_p(O)&&wC(n.propertyName||n.name,!0),a)Qh(O)&&e.getEmitModuleFormatOfFile(Fn(n))<4&&M_(n.propertyName||n.name)&&$c(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===Re||p.declarations&&ev(Pt(p.declarations[0])))?Qe(c,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Kr(c)):cR(n,7)}}function qyt(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(rB(n,a))return;O.erasableSyntaxOnly&&n.isExportEquals&&!(n.flags&33554432)&&Qe(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&&!yu(c)){n.isExportEquals?Qe(n,f.An_export_assignment_cannot_be_used_in_a_namespace):Qe(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Xg(n)&&cV(n)&&fd(n,f.An_export_assignment_cannot_have_modifiers);const p=xc(n);p&&$d(Vl(n.expression),qi(p),n.expression);const m=!n.isExportEquals&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(Fn(n))===1;if(n.expression.kind===80){const b=n.expression,I=Et(Gl(b,-1,!0,!0,n));if(I){cR(n,3);const w=Ah(I,111551);if(dp(I)&111551?(Vl(b),!m&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&w&&Qe(b,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(b))):!m&&!(n.flags&33554432)&&O.verbatimModuleSyntax&&Qe(b,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(b)),!m&&!(n.flags&33554432)&&vm(O)&&!(I.flags&111551)){const U=dp(I,!1,!0);I.flags&2097152&&U&788968&&!(U&111551)&&(!w||Fn(w)!==Fn(n))?Qe(b,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(b),Ge):w&&Fn(w)!==Fn(n)&&Wo(Qe(b,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(b),Ge),w,Kr(b))}}else Vl(b);_p(O)&&wC(b,!0)}else Vl(n.expression);m&&Qe(n,Z1(n)),H3e(c),n.flags&33554432&&!Ds(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(Fn(n))===99||!(n.flags&33554432)&&e.getImpliedNodeFormatForEmit(Fn(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 Jyt(n){return Hc(n.exports,(a,c)=>c!=="export=")}function H3e(n){const a=Wr(n),c=Jr(a);if(!c.exportsChecked){const p=a.exports.get("export=");if(p&&Jyt(a)){const b=cp(p)||p.valueDeclaration;b&&!uL(b)&&!Ir(b)&&Qe(b,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const m=g_(a);m&&m.forEach(({declarations:b,flags:I},w)=>{if(w==="__export"||I&1920)return;const U=_o(b,j8(yHe,U8(gd)));if(!(I&524288&&U<=2)&&U>1&&!G$(b))for(const H of b)U1e(H)&&ns.add(Ar(H,f.Cannot_redeclare_exported_variable_0,Bi(w)))}),c.exportsChecked=!0}}function G$(n){return n&&n.length>1&&n.every(a=>Ir(a)&&Ks(a)&&(o1(a.expression)||yg(a.expression)))}function Oa(n){if(n){const a=R;R=n,y=0,Kyt(n),R=a}}function Kyt(n){if(hR(n)&8388608)return;Ek(n)&&$e(n.jsDoc,({comment:c,tags:p})=>{q3e(c),$e(p,m=>{q3e(m.comment),Ir(n)&&Oa(m)})});const a=n.kind;if(i)switch(a){case 268:case 264:case 265:case 263:i.throwIfCancellationRequested()}switch(a>=244&&a<=260&&eD(n)&&n.flowNode&&!E5(n.flowNode)&&Km(O.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 169:return Q4e(n);case 170:return Z4e(n);case 173:return n3e(n);case 172:return M_t(n);case 186:case 185:case 180:case 181:case 182:return c8(n);case 175:case 174:return P_t(n);case 176:return L_t(n);case 177:return k_t(n);case 178:case 179:return i3e(n);case 184:return sye(n);case 183:return R_t(n);case 187:return B_t(n);case 188:return G_t(n);case 189:return V_t(n);case 190:return j_t(n);case 193:case 194:return U_t(n);case 197:case 191:case 192:return Oa(n.type);case 198:return K_t(n);case 199:return X_t(n);case 195:return Y_t(n);case 196:return $_t(n);case 204:return Q_t(n);case 206:return Z_t(n);case 203:return egt(n);case 329:return bgt(n);case 330:return vgt(n);case 347:case 339:case 341:return cgt(n);case 346:return dgt(n);case 345:return ugt(n);case 325:case 326:case 327:return fgt(n);case 342:return mgt(n);case 349:return hgt(n);case 318:_gt(n);case 316:case 315:case 313:case 314:case 323:J3e(n),Jo(n,Oa);return;case 319:Xyt(n);return;case 310:return Oa(n.type);case 334:case 336:case 335:return Tgt(n);case 351:return pgt(n);case 344:return ggt(n);case 352:return ygt(n);case 200:return H_t(n);case 201:return q_t(n);case 263:return lgt(n);case 242:case 269:return M$(n);case 244:return zgt(n);case 245:return Bgt(n);case 246:return Ggt(n);case 247:return Ugt(n);case 248:return Hgt(n);case 249:return qgt(n);case 250:return Kgt(n);case 251:return Jgt(n);case 252:case 253:return ryt(n);case 254:return iyt(n);case 255:return oyt(n);case 256:return ayt(n);case 257:return syt(n);case 258:return lyt(n);case 259:return cyt(n);case 261:return Wgt(n);case 209:return Fgt(n);case 264:return gyt(n);case 265:return Ryt(n);case 266:return Dyt(n);case 267:return Pyt(n);case 307:return kyt(n);case 268:return Wyt(n);case 273:return Byt(n);case 272:return Vyt(n);case 279:return jyt(n);case 278:return qyt(n);case 243:case 260:Hy(n);return;case 283:return O_t(n)}}function q3e(n){Mo(n)&&$e(n,a=>{cI(a)&&Oa(a)})}function J3e(n){if(!Ir(n))if(E4(n)||RD(n)){const a=ga(E4(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=qi(p);Cn(n,c,a,sr(RD(n)&&!(m===yn||m===In)?pi(Un([m,he],n.postfix?void 0:Xt)):m))}else Cn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Xyt(n){J3e(n),Oa(n.type);const{parent:a}=n;if(to(a)&&DD(a.parent)){Ba(a.parent.parameters)!==a&&Qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}t0(a)||Qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const c=n.parent.parent;if(!mf(c)){Qe(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const p=Ak(c);if(!p)return;const m=BT(c);(!m||Ba(m.parameters).symbol!==p)&&Qe(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function Yyt(n){const a=qi(n.type),{parent:c}=n,p=n.parent.parent;if(t0(n.parent)&&mf(p)){const m=BT(p),b=xj(p.parent.parent);if(m||b){const I=tl(b?p.parent.parent.typeExpression.parameters:m.parameters),w=Ak(p);if(!I||w&&I.symbol===w&&N_(I))return Yd(a)}}return to(c)&&DD(c.parent)?Yd(a):pu(a)}function fR(n){const a=Fn(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 K3e(n){const a=Vr(n);a.deferredNodes&&a.deferredNodes.forEach($yt),a.deferredNodes=void 0}function $yt(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:FA(n);break;case 219:case 220:case 175:case 174:Vht(n);break;case 178:case 179:i3e(n);break;case 232:_yt(n);break;case 169:x_t(n);break;case 286:Xft(n);break;case 285:$ft(n);break;case 217:case 235:case 218:pht(n);break;case 223:go(n.expression);break;case 227:I6(n)&&FA(n);break}R=p,(c=xr)==null||c.pop()}function Qyt(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",b=a?"afterCheckNodes":"afterCheck";Rl(m),a?evt(n,a):Zyt(n),Rl(b),wf("Check",m,b),(p=xr)==null||p.pop()}function X3e(n,a){if(a)return!1;switch(n){case 0:return!!O.noUnusedLocals;case 1:return!!O.noUnusedParameters;default:return C.assertNever(n)}}function Y3e(n){return Qn.get(n.path)||se}function Zyt(n){const a=Vr(n);if(!(a.flags&1)){if(mD(n,O,e))return;E7e(n),hi(Jb),hi(Ev),hi(Ey),hi(Ay),hi(Iy),a.flags&8388608&&(Jb=a.potentialThisCollisions,Ev=a.potentialNewTargetCollisions,Ey=a.potentialWeakMapSetCollisions,Ay=a.potentialReflectCollisions,Iy=a.potentialUnusedRenamedBindingElementsInTypes),$e(n.statements,Oa),Oa(n.endOfFileToken),K3e(n),Pp(n)&&gT(n),r(()=>{!n.isDeclarationFile&&(O.noUnusedLocals||O.noUnusedParameters)&&h3e(Y3e(n),(c,p,m)=>{!fI(c)&&X3e(p,!!(c.flags&33554432))&&ns.add(m)}),n.isDeclarationFile||Igt()}),Pp(n)&&H3e(n),Jb.length&&($e(Jb,Dgt),hi(Jb)),Ev.length&&($e(Ev,Cgt),hi(Ev)),Ey.length&&($e(Ey,Lgt),hi(Ey)),Ay.length&&($e(Ay,wgt),hi(Ay)),a.flags|=1}}function evt(n,a){const c=Vr(n);if(!(c.flags&1)){if(mD(n,O,e))return;E7e(n),hi(Jb),hi(Ev),hi(Ey),hi(Ay),hi(Iy),$e(a,Oa),K3e(n),(c.potentialThisCollisions||(c.potentialThisCollisions=[])).push(...Jb),(c.potentialNewTargetCollisions||(c.potentialNewTargetCollisions=[])).push(...Ev),(c.potentialWeakMapSetCollisions||(c.potentialWeakMapSetCollisions=[])).push(...Ey),(c.potentialReflectCollisions||(c.potentialReflectCollisions=[])).push(...Ay),(c.potentialUnusedRenamedBindingElementsInTypes||(c.potentialUnusedRenamedBindingElementsInTypes=[])).push(...Iy),c.flags|=8388608;for(const p of a){const m=Vr(p);m.flags|=8388608}}}function $3e(n,a,c){try{return i=a,tvt(n,c)}finally{i=void 0}}function Aye(){for(const n of t)n();t=[]}function Iye(n,a){Aye();const c=r;r=p=>p(),Qyt(n,a),r=c}function tvt(n,a){if(n){Aye();const c=ns.getGlobalDiagnostics(),p=c.length;Iye(n,a);const m=ns.getDiagnostics(n.fileName);if(a)return m;const b=ns.getGlobalDiagnostics();if(b!==c){const I=VQ(c,b,vM);return lo(I,m)}else if(p===0&&b.length>0)return lo(b,m);return m}return $e(e.getSourceFiles(),c=>Iye(c)),ns.getDiagnostics()}function nvt(){return Aye(),ns.getGlobalDiagnostics()}function rvt(n,a){if(n.flags&67108864)return[];const c=da();let p=!1;return m(),c.delete("this"),Che(c);function m(){for(;n;){switch(C_(n)&&n.locals&&!ev(n)&&I(n.locals,a),n.kind){case 308:if(!zc(n))break;case 268:w(Wr(n).exports,a&2623475);break;case 267:I(Wr(n).exports,a&8);break;case 232:n.name&&b(n.symbol,a);case 264:case 265:p||I(Q_(Wr(n)),a&788968);break;case 219:n.name&&b(n.symbol,a);break}ene(n)&&b(ge,a),p=ua(n),n=n.parent}I(lt,a)}function b(U,H){if(cD(U)&H){const Q=U.escapedName;c.has(Q)||c.set(Q,U)}}function I(U,H){H&&U.forEach(Q=>{b(Q,H)})}function w(U,H){H&&U.forEach(Q=>{!ll(Q,282)&&!ll(Q,281)&&Q.escapedName!=="default"&&b(Q,H)})}}function ivt(n){return n.kind===80&&kI(n.parent)&&Oo(n.parent)===n}function Q3e(n){for(;n.parent.kind===167;)n=n.parent;return n.parent.kind===184}function ovt(n){for(;n.parent.kind===212;)n=n.parent;return n.parent.kind===234}function Z3e(n,a){let c,p=hd(n);for(;p&&!(c=a(p));)p=hd(p);return c}function avt(n){return!!Dn(n,a=>Ml(a)&&mm(a.body)||Po(a)?!0:ui(a)||Ms(a)?"quit":!1)}function xye(n,a){return!!Z3e(n,c=>c===a)}function svt(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 V$(n){return svt(n)!==void 0}function lvt(n){switch(ac(n.parent.parent)){case 1:case 3:return If(n.parent);case 5:if(qr(n.parent)&&dD(n.parent)===n)return;case 4:case 2:return Wr(n.parent.parent)}}function cvt(n){let a=n.parent;for(;ku(a);)n=a,a=a.parent;if(a&&a.kind===206&&a.qualifier===n)return a}function dvt(n){if(n.expression.kind===110){const a=vu(n,!1,!1);if(Yo(a)){const c=c6e(a);if(c){const p=nS(c,void 0),m=u6e(c,p);return m&&!wr(m)}}}}function e7e(n){if(k_(n))return If(n.parent);if(Ir(n)&&n.parent.kind===212&&n.parent===n.parent.parent.left&&!eo(n)&&!n0(n)&&!dvt(n.parent)){const a=lvt(n);if(a)return a}if(n.parent.kind===278&&Ds(n)){const a=Gl(n,2998271,!0);if(a&&a!==ne)return a}else if(Mu(n)&&V$(n)){const a=VT(n,272);return C.assert(a!==void 0),rT(n,!0)}if(Mu(n)){const a=cvt(n);if(a){qi(a);const c=Vr(n).resolvedSymbol;return c===ne?void 0:c}}for(;Vne(n);)n=n.parent;if(ovt(n)){let a=0;n.parent.kind===234?(a=qh(n)?788968:111551,A6(n.parent)&&(a|=111551)):a=1920,a|=2097152;const c=Ds(n)?Gl(n,a,!0):void 0;if(c)return c}if(n.parent.kind===342)return Ak(n.parent);if(n.parent.kind===169&&n.parent.parent.kind===346){C.assert(!Ir(n));const a=_ne(n.parent);return a&&a.symbol}if(L_(n)){if(Ol(n))return;const a=Dn(n,Rp(cI,JM,n0)),c=a?901119:111551;if(n.kind===80){if($R(n)&&uR(n)){const m=l$(n.parent);return m===ne?void 0:m}const p=Gl(n,c,!0,!0,BT(n));if(!p&&a){const m=Dn(n,Rp(ui,gd));if(m)return iB(n,!0,Wr(m))}if(p&&a){const m=xS(n);if(m&&fy(m)&&m===p.valueDeclaration)return Gl(n,c,!0,!0,Fn(m))||p}return p}else{if(eo(n))return p$(n);if(n.kind===212||n.kind===167){const p=Vr(n);return p.resolvedSymbol?p.resolvedSymbol:(n.kind===212?(u$(n,0),p.resolvedSymbol||(p.resolvedSymbol=t7e(Vl(n.expression),wy(n.name)))):G6e(n,0),!p.resolvedSymbol&&a&&ku(n)?iB(n):p.resolvedSymbol)}else if(n0(n))return iB(n)}}else if(Mu(n)&&Q3e(n)){const a=n.parent.kind===184?788968:1920,c=Gl(n,a,!0,!0);return c&&c!==ne?c:dY(n)}if(n.parent.kind===183)return Gl(n,1,!0)}function t7e(n,a){const c=Dhe(n,a);if(c.length&&n.members){const p=aY(Dh(n).members);if(c===Xd(n))return p;if(p){const m=Jr(p),b=ji(c,w=>w.declaration),I=Bt(b,ls).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(I))return m.filteredIndexSymbolCache.get(I);{const w=ja(131072,"__index");return w.declarations=ji(c,U=>U.declaration),w.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:sm(w.declarations[0].parent),m.filteredIndexSymbolCache.set(I,w),w}}}}function iB(n,a,c){if(Mu(n)){let I=Gl(n,901119,a,!0,BT(n));if(!I&&He(n)&&c&&(I=os(Sd(qp(c),n.escapedText,901119))),I)return I}const p=He(n)?c:iB(n.left,a,c),m=He(n)?n.escapedText:n.right.escapedText;if(p){const b=p.flags&111551&&Ea(_r(p),"prototype"),I=b?_r(b):qs(p);return Ea(I,m)}}function sm(n,a){if(Yi(n))return zc(n)?os(n.symbol):void 0;const{parent:c}=n,p=c.parent;if(!(n.flags&67108864)){if(H1e(n)){const m=Wr(c);return ub(n.parent)&&n.parent.propertyName===n?a$(m):m}else if(xk(n))return Wr(c.parent);if(n.kind===80){if(V$(n))return e7e(n);if(c.kind===209&&p.kind===207&&n===c.propertyName){const m=mR(p),b=Ea(m,n.escapedText);if(b)return b}else if(E1(c)&&c.name===n)return c.keywordToken===105&&Kr(n)==="target"?Vge(c).symbol:c.keywordToken===102&&Kr(n)==="meta"?jWe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 212:case 167:if(!MS(n))return e7e(n);case 110:const m=vu(n,!1,!1);if(Yo(m)){const w=Df(m);if(w.thisParameter)return w.thisParameter}if(QF(n))return go(n).symbol;case 198:return l_e(n).symbol;case 108:return go(n).symbol;case 137:const b=n.parent;return b&&b.kind===177?b.parent.symbol:void 0;case 11:case 15:if(FT(n.parent.parent)&&XN(n.parent.parent)===n||(n.parent.kind===273||n.parent.kind===279)&&n.parent.moduleSpecifier===n||Ir(n)&&a_(n.parent)&&n.parent.moduleSpecifier===n||Ir(n)&&Zu(n.parent,!1)||Qu(n.parent)||uv(n.parent)&&iy(n.parent.parent)&&n.parent.parent.argument===n.parent)return uu(n,n,a);if(Zo(c)&&a1(c)&&c.arguments[1]===n)return Wr(c);case 9:const I=Ws(c)?c.argumentExpression===n?wd(c.expression):void 0:uv(c)&&GS(p)?qi(p.objectType):void 0;return I&&Ea(I,Cl(n.text));case 90:case 100:case 39:case 86:return If(n.parent);case 206:return iy(n)?sm(n.argument.literal,a):void 0;case 95:return dl(n.parent)?C.checkDefined(n.parent.symbol):void 0;case 102:if(E1(n.parent)&&n.parent.name.escapedText==="defer")return;case 105:return E1(n.parent)?I4e(n.parent).symbol:void 0;case 104:if(Nr(n.parent)){const w=wd(n.parent.right),U=Zge(w);return(U==null?void 0:U.symbol)??w.symbol}return;case 237:return go(n).symbol;case 296:if($R(n)&&uR(n)){const w=l$(n.parent);return w===ne?void 0:w}default:return}}}function uvt(n){if(He(n)&&qr(n.parent)&&n.parent.name===n){const a=wy(n),c=wd(n.parent.expression),p=c.flags&1048576?c.types:[c];return Ki(p,m=>Vn(Xd(m),b=>eR(a,b.keyType)))}}function pvt(n){if(n&&n.kind===305)return Gl(n.name,2208703,!0)}function fvt(n){if(ou(n)){const a=n.propertyName||n.name;return n.parent.parent.moduleSpecifier?w0(n.parent.parent,n):a.kind===11?void 0:Gl(a,2998271,!0)}else return Gl(n,2998271,!0)}function mR(n){if(Yi(n)&&!zc(n)||n.flags&67108864)return nt;const a=mV(n),c=a&&tm(Wr(a.class));if(qh(n)){const p=qi(n);return c?Kp(p,c.thisType):p}if(L_(n))return n7e(n);if(c&&!a.isImplements){const p=Ac(eh(c));return p?Kp(p,c.thisType):nt}if(kI(n)){const p=Wr(n);return qs(p)}if(ivt(n)){const p=sm(n);return p?qs(p):nt}if(Ha(n))return Yx(n,!0,0)||nt;if(rd(n)){const p=Wr(n);return p?_r(p):nt}if(H1e(n)){const p=sm(n);return p?_r(p):nt}if(Qo(n))return Yx(n.parent,!0,0)||nt;if(V$(n)){const p=sm(n);if(p){const m=qs(p);return pr(m)?_r(p):m}}return E1(n.parent)&&n.parent.keywordToken===n.kind?I4e(n.parent):I1(n)?zhe(!1):nt}function j$(n){if(C.assert(n.kind===211||n.kind===210),n.parent.kind===251){const m=eB(n.parent);return BA(n,m||nt)}if(n.parent.kind===227){const m=wd(n.parent.right);return BA(n,m||nt)}if(n.parent.kind===304){const m=ha(n.parent.parent,Fa),b=j$(m)||nt,I=UR(m.properties,n.parent);return B4e(m,b,I)}const a=ha(n.parent,Cd),c=j$(a)||nt,p=Hv(65,c,he,n.parent)||nt;return G4e(a,c,a.elements.indexOf(n),p)}function mvt(n){const a=j$(ha(n.parent.parent,zN));return a&&Ea(a,n.escapedText)}function n7e(n){return fM(n)&&(n=n.parent),Cu(wd(n))}function r7e(n){const a=If(n.parent);return ua(n)?_r(a):qs(a)}function i7e(n){const a=n.name;switch(a.kind){case 80:return Sp(Kr(a));case 9:case 11:return Sp(a.text);case 168:const c=nh(a);return kd(c,12288)?c:yt;default:return C.fail("Unsupported property name.")}}function Rye(n){n=Du(n);const a=da(bs(n)),c=na(n,0).length?yo:na(n,1).length?Za:void 0;return c&&$e(bs(c),p=>{a.has(p.escapedName)||a.set(p.escapedName,p)}),ju(a)}function U$(n){return na(n,0).length!==0||na(n,1).length!==0}function o7e(n){const a=hvt(n);return a?Ki(a,o7e):[n]}function hvt(n){if(Wl(n)&6)return ji(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]:eI(_vt(n))}}function _vt(n){let a,c=n;for(;c=Jr(c).target;)a=c;return a}function gvt(n){if(fl(n))return!1;const a=jo(n,He);if(!a)return!1;const c=a.parent;return c?!((qr(c)||Cc(c))&&c.name===a)&&v8(a)===ge:!1}function yvt(n){return H2(n.parent)&&n===n.parent.name}function vvt(n,a){var c;const p=jo(n,He);if(p){let m=v8(p,yvt(p));if(m){if(m.flags&1048576){const I=os(m.exportSymbol);if(!a&&I.flags&944&&!(I.flags&3))return;m=I}const b=Yc(m);if(b){if(b.flags&512&&((c=b.valueDeclaration)==null?void 0:c.kind)===308){const I=b.valueDeclaration,w=Fn(p);return I!==w?void 0:I}return Dn(p.parent,I=>H2(I)&&Wr(I)===b)}}}}function bvt(n){const a=cie(n);if(a)return a;const c=jo(n,He);if(c){const p=wvt(c);if(oA(p,111551)&&!Ah(p,111551))return cp(p)}}function Tvt(n){return n.valueDeclaration&&Ha(n.valueDeclaration)&&JE(n.valueDeclaration).parent.kind===300}function a7e(n){if(n.flags&418&&n.valueDeclaration&&!Yi(n.valueDeclaration)){const a=Jr(n);if(a.isDeclarationWithCollidingName===void 0){const c=sh(n.valueDeclaration);if(Nte(c)||Tvt(n))if(gt(c.parent,n.escapedName,111551,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(Dye(n.valueDeclaration,16384)){const p=Dye(n.valueDeclaration,32768),m=mb(c,!1),b=c.kind===242&&mb(c.parent,!1);a.isDeclarationWithCollidingName=!Fte(c)&&(!p||!m&&!b)}else a.isDeclarationWithCollidingName=!1}return a.isDeclarationWithCollidingName}return!1}function Svt(n){if(!fl(n)){const a=jo(n,He);if(a){const c=v8(a);if(c&&a7e(c))return c.valueDeclaration}}}function Evt(n){const a=jo(n,rd);if(a){const c=Wr(a);if(c)return a7e(c)}return!1}function s7e(n){switch(C.assert(We),n.kind){case 272:return H$(Wr(n));case 274:case 275:case 277:case 282:const a=Wr(n);return!!a&&H$(a,!0);case 279:const c=n.exportClause;return!!c&&(W_(c)||vt(c.elements,s7e));case 278:return n.expression&&n.expression.kind===80?H$(Wr(n),!0):!0}return!1}function Avt(n){const a=jo(n,Fc);return a===void 0||a.parent.kind!==308||!i1(a)?!1:H$(Wr(a))&&a.moduleReference&&!Ol(a.moduleReference)}function H$(n,a){if(!n)return!1;const c=Fn(n.valueDeclaration),p=c&&Wr(c);Tp(p);const m=Et(ud(n));return m===ne?!a||!Ah(n):!!(dp(n,a,!0)&111551)&&(Ib(O)||!y8(m))}function y8(n){return Qge(n)||!!n.constEnumOnlyModule}function l7e(n,a){if(C.assert(We),Dv(n)){const c=Wr(n),p=c&&Jr(c);if(p!=null&&p.referenced)return!0;const m=Jr(c).aliasTarget;if(m&&Gd(n)&32&&dp(m)&111551&&(Ib(O)||!y8(m)))return!0}return a?!!Jo(n,c=>l7e(c,a)):!1}function c7e(n){if(mm(n.body)){if(pg(n)||jh(n))return!1;const a=Wr(n),c=IE(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function Ivt(n){const a=p7e(n);if(!a)return!1;const c=qi(a);return pr(c)||qC(c)}function oB(n,a){return(xvt(n,a)||Rvt(n))&&!Ivt(n)}function xvt(n,a){return!ie||NW(n)||mf(n)||!n.initializer?!1:di(n,31)?!!a&&Ms(a):!0}function Rvt(n){return ie&&NW(n)&&(mf(n)||!n.initializer)&&di(n,31)}function d7e(n){const a=jo(n,p=>Zl(p)||yi(p));if(!a)return!1;let c;if(yi(a)){if(a.type||!Ir(a)&&!b8(a))return!1;const p=QN(a);if(!p||!ah(p))return!1;c=Wr(p)}else c=Wr(a);return!c||!(c.flags&16|3)?!1:!!Hc(qp(c),p=>p.flags&111551&&WI(p.valueDeclaration))}function Dvt(n){const a=jo(n,Zl);if(!a)return se;const c=Wr(a);return c&&bs(_r(c))||se}function hR(n){var a;const c=n.id||0;return c<0||c>=E0.length?0:((a=E0[c])==null?void 0:a.flags)||0}function Dye(n,a){return Cvt(n,a),!!(hR(n)&a)}function Cvt(n,a){if(!O.noCheck&&xM(Fn(n),O)||Vr(n).calculatedFlags&a)return;switch(a){case 16:case 32:return I(n);case 128:case 256:case 2097152:return b(n);case 512:case 8192:case 65536:case 262144:return U(n);case 536870912:return Q(n);case 4096:case 32768:case 16384:return Te(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||ex(Tt,Dt)}function m(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=2097536,I(Tt)}function b(Tt){p(Tt,m)}function I(Tt){const Dt=Vr(Tt);Dt.calculatedFlags|=48,Tt.kind===108&&ZY(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 L_(Tt)||Ud(Tt.parent)&&(Tt.parent.objectAssignmentInitializer??Tt.parent.name)===Tt}function Q(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags|=536870912,He(Tt)&&(Dt.calculatedFlags|=49152,H(Tt)&&!(qr(Tt.parent)&&Tt.parent.name===Tt))){const $t=fu(Tt);$t&&$t!==ne&&o6e(Tt,$t)}}function Ie(Tt){const Dt=Vr(Tt);if(Dt.calculatedFlags&a)return"skip";Dt.calculatedFlags|=53248,et(Tt)}function Te(Tt){const Dt=sh(k_(Tt)?Tt.parent:Tt);p(Dt,Ie)}function et(Tt){Q(Tt),va(Tt)&&nh(Tt),eo(Tt)&&bc(Tt.parent)&&x$(Tt.parent)}}function GA(n){return V3e(n.parent),Vr(n).enumMemberValue??qc(void 0)}function u7e(n){switch(n.kind){case 307:case 212:case 213:return!0}return!1}function q$(n){if(n.kind===307)return GA(n).value;Vr(n).resolvedSymbol||Vl(n);const a=Vr(n).resolvedSymbol||(Ds(n)?Gl(n,111551,!0):void 0);if(a&&a.flags&8){const c=a.valueDeclaration;if(OT(c.parent))return GA(c).value}}function Cye(n){return!!(n.flags&524288)&&na(n,0).length>0}function Nvt(n,a){var c;const p=jo(n,Mu);if(!p||a&&(a=jo(a),!a))return 0;let m=!1;if(ku(p)){const Q=Gl(Lu(p),111551,!0,!0,a);m=!!((c=Q==null?void 0:Q.declarations)!=null&&c.every(Qy))}const b=Gl(p,111551,!0,!0,a),I=b&&b.flags&2097152?ud(b):b;m||(m=!!(b&&Ah(b,111551)));const w=Gl(p,788968,!0,!0,a),U=w&&w.flags&2097152?ud(w):w;if(b||m||(m=!!(w&&Ah(w,788968))),I&&I===U){const Q=Bhe(!1);if(Q&&I===Q)return 9;const Ie=_r(I);if(Ie&&Rh(Ie))return m?10:1}if(!U)return m?11:0;const H=qs(U);return pr(H)?m?11:0:H.flags&3?11:kd(H,245760)?2:kd(H,528)?6:kd(H,296)?3:kd(H,2112)?4:kd(H,402653316)?5:Ka(H)?7:kd(H,12288)?8:Cye(H)?10:im(H)?7:11}function Mvt(n,a,c,p,m){const b=jo(n,i4);if(!b)return L.createToken(133);const I=Wr(b);return be.serializeTypeForDeclaration(b,I,a,c|1024,p,m)}function Nye(n){n=jo(n,W2);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 Fvt(n){return nk(n)||yi(n)&&b8(n)?DE(_r(Wr(n))):!1}function zvt(n,a,c){const p=n.flags&1056?be.symbolToExpression(n.symbol,111551,a,void 0,void 0,c):n===ft?L.createTrue():n===nr&&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 Bvt(n,a){const c=_r(Wr(n));return zvt(c,n,a)}function Mye(n){return n?(Jm(n),Fn(n).localJsxFactory||Ry):Ry}function Pye(n){if(n){const a=Fn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const c=a.pragmas.get("jsxfrag"),p=Mo(c)?c[0]:c;if(p)return a.localJsxFragmentFactory=nx(p.arguments.factory,G),a.localJsxFragmentFactory}}if(O.jsxFragmentFactory)return nx(O.jsxFragmentFactory,G)}function p7e(n){const a=xc(n);if(a)return a;if(n.kind===170&&n.parent.kind===179){const c=Nye(n.parent).getAccessor;if(c)return kp(c)}}function Gvt(){return{getReferencedExportContainer:vvt,getReferencedImportDeclaration:bvt,getReferencedDeclarationWithCollidingName:Svt,isDeclarationWithCollidingName:Evt,isValueAliasDeclaration:a=>{const c=jo(a);return c&&We?s7e(c):!0},hasGlobalName:kvt,isReferencedAliasDeclaration:(a,c)=>{const p=jo(a);return p&&We?l7e(p,c):!0},hasNodeCheckFlag:(a,c)=>{const p=jo(a);return p?Dye(p,c):!1},isTopLevelValueImportEqualsWithEntityName:Avt,isDeclarationVisible:Y_,isImplementationOfOverload:c7e,requiresAddingImplicitUndefined:oB,isExpandoFunctionDeclaration:d7e,getPropertiesOfContainerFunction:Dvt,createTypeOfDeclaration:Mvt,createReturnTypeOfSignatureDeclaration:Pvt,createTypeOfExpression:Lvt,createLiteralConstValue:Bvt,isSymbolAccessible:oT,isEntityNameVisible:Xx,getConstantValue:a=>{const c=jo(a,u7e);return c?q$(c):void 0},getEnumMemberValue:a=>{const c=jo(a,fy);return c?GA(c):void 0},collectLinkedAliases:wC,markLinkedReferences:a=>{const c=jo(a);return c&&cR(c,0)},getReferencedValueDeclaration:Ovt,getReferencedValueDeclarations:Wvt,getTypeReferenceSerializationKind:Nvt,isOptionalParameter:NW,isArgumentsLocalBinding:gvt,getExternalModuleFileFromDeclaration:a=>{const c=jo(a,Gte);return c&&Lye(c)},isLiteralConstDeclaration:Fvt,isLateBound:a=>{const c=jo(a,rd),p=c&&Wr(c);return!!(p&&Wl(p)&4096)},getJsxFactoryEntity:Mye,getJsxFragmentFactoryEntity:Pye,isBindingCapturedByNode:(a,c)=>{const p=jo(a),m=jo(c);return!!p&&!!m&&(yi(m)||Ha(m))&&Ypt(p,m)},getDeclarationStatementsForSourceFile:(a,c,p,m)=>{const b=jo(a);C.assert(b&&b.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");const I=Wr(a);return I?(Tp(I),I.exports?be.symbolTableToDeclarationStatements(I.exports,a,c,p,m):[]):a.locals?be.symbolTableToDeclarationStatements(a.locals,a,c,p,m):[]},isImportRequiredByAugmentation:n,isDefinitelyReferenceToGlobalSymbolObject:J_,createLateBoundIndexSignatures:(a,c,p,m,b)=>{const I=a.symbol,w=Xd(_r(I)),U=oY(I),H=U&&sY(U,Co(Q_(I).values()));let Q;for(const Te of[w,H])if(Ze(Te)){Q||(Q=[]);for(const et of Te){if(et.declaration||et===Eo)continue;if(et.components&&Hn(et.components,$t=>{var Tn;return!!($t.name&&va($t.name)&&Ds($t.name.expression)&&c&&((Tn=Xx($t.name.expression,c,!1))==null?void 0:Tn.accessibility)===0)})){const $t=Vn(et.components,Tn=>!WC(Tn));Q.push(...Bt($t,Tn=>{Ie(Tn.name.expression);const rr=Te===w?[L.createModifier(126)]:void 0;return L.createPropertyDeclaration(Un(rr,et.isReadonly?L.createModifier(148):void 0),Tn.name,(Su(Tn)||Po(Tn)||Vm(Tn)||Nl(Tn)||pg(Tn)||jh(Tn))&&Tn.questionToken?L.createToken(58):void 0,be.typeToTypeNode(_r(Tn.symbol),c,p,m,b),void 0)}));continue}const Tt=be.indexInfoToIndexSignatureDeclaration(et,c,p,m,b);Tt&&Te===w&&(Tt.modifiers||(Tt.modifiers=L.createNodeArray())).unshift(L.createModifier(126)),Tt&&Q.push(Tt)}}return Q;function Ie(Te){if(!b.trackSymbol)return;const et=Lu(Te),Tt=gt(et,et.escapedText,1160127,void 0,!0);Tt&&b.trackSymbol(Tt,c,111551)}},symbolToDeclarations:(a,c,p,m,b,I)=>be.symbolToDeclarations(a,c,p,m,b,I)};function n(a){const c=Fn(a);if(!c.symbol)return!1;const p=Lye(a);if(!p||p===c)return!1;const m=g_(c.symbol);for(const b of Co(m.values()))if(b.mergeId){const I=os(b);if(I.declarations){for(const w of I.declarations)if(Fn(w)===p)return!0}}return!1}}function Lye(n){const a=n.kind===268?ni(n.name,wa):yI(n),c=bp(a,a,void 0);if(c)return ll(c,308)}function Vvt(){for(const a of e.getSourceFiles())nae(a,O);Pl=new Map;let n;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!Pp(a)){const c=a.locals.get("globalThis");if(c!=null&&c.declarations)for(const p of c.declarations)ns.add(Ar(p,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));h_(lt,a.locals)}a.jsGlobalAugmentations&&h_(lt,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(op=lo(op,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)P_(c.parent)&&fE(c);if(M0(),Jr(ce).type=B,Jr(ge).type=Jl("IArguments",0,!0),Jr(ne).type=nt,Jr(Re).type=_c(16,Re),es=Jl("Array",1,!0),Jt=Jl("Object",0,!0),tr=Jl("Function",0,!0),yo=pe&&Jl("CallableFunction",0,!0)||tr,Za=pe&&Jl("NewableFunction",0,!0)||tr,Mc=Jl("String",0,!0),rl=Jl("Number",0,!0),Ll=Jl("Boolean",0,!0),ql=Jl("RegExp",0,!0),bd=Yd(Ue),ld=Yd(Rt),ld===Ra&&(ld=bl(void 0,k,se,se,se)),Va=$We("ReadonlyArray",1)||es,jp=Va?AL(Va,[Ue]):bd,rf=$We("ThisType",1),n)for(const a of n)for(const c of a)P_(c.parent)||fE(c);Pl.forEach(({firstFile:a,secondFile:c,conflictingSymbols:p})=>{if(p.size<8)p.forEach(({isBlockScoped:m,firstFileLocations:b,secondFileLocations:I},w)=>{const U=m?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(const H of b)N0(H,U,w,I);for(const H of I)N0(H,U,w,b)});else{const m=Co(p.keys()).join(", ");ns.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))),ns.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)))}}),Pl=void 0}function $c(n,a){if(O.importHelpers){const c=Fn(n);if(HR(c,O)&&!(n.flags&33554432)){const p=Uvt(c,n);if(p!==ne){const m=Jr(p);if(m.requestedExternalEmitHelpers??(m.requestedExternalEmitHelpers=0),(m.requestedExternalEmitHelpers&a)!==a){const b=a&~m.requestedExternalEmitHelpers;for(let I=1;I<=16777216;I<<=1)if(b&I)for(const w of jvt(I)){const U=hc(Sd(g_(p),Cl(w),111551));U?I&524288?vt(IE(U),H=>Ap(H)>3)||Qe(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,hb,w,4):I&1048576?vt(IE(U),H=>Ap(H)>4)||Qe(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,hb,w,5):I&1024&&(vt(IE(U),H=>Ap(H)>2)||Qe(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,hb,w,3)):Qe(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,hb,w)}}m.requestedExternalEmitHelpers|=a}}}}function jvt(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 Uvt(n,a){const c=Vr(n);return c.externalHelpersModule||(c.externalHelpersModule=sA(Fbt(n),hb,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||ne),c.externalHelpersModule}function Xg(n){var a;const c=Jvt(n)||Hvt(n);if(c!==void 0)return c;if(to(n)&&Sb(n))return fd(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const p=sc(n)?n.declarationList.flags&7:0;let m,b,I,w,U,H=0,Q=!1,Ie=!1;for(const Te of n.modifiers)if(Wc(Te)){if(dk(J,n,n.parent,n.parent.parent)){if(J&&(n.kind===178||n.kind===179)){const et=Nye(n);if(pf(et.firstAccessor)&&n===et.secondAccessor)return fd(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===175&&!mm(n.body)?fd(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):fd(n,f.Decorators_are_not_valid_here);if(H&-34849)return Cn(Te,f.Decorators_are_not_valid_here);if(Ie&&H&98303){C.assertIsDefined(U);const et=Fn(Te);return vT(et)?!1:(pa(Qe(Te,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):Ie=!0,U??(U=Te)}else{if(Te.kind!==148){if(n.kind===172||n.kind===174)return Cn(Te,f._0_modifier_cannot_appear_on_a_type_member,ga(Te.kind));if(n.kind===182&&(Te.kind!==126||!ui(n.parent)))return Cn(Te,f._0_modifier_cannot_appear_on_an_index_signature,ga(Te.kind))}if(Te.kind!==103&&Te.kind!==147&&Te.kind!==87&&n.kind===169)return Cn(Te,f._0_modifier_cannot_appear_on_a_type_parameter,ga(Te.kind));switch(Te.kind){case 87:{if(n.kind!==267&&n.kind!==169)return Cn(n,f.A_class_member_cannot_have_the_0_keyword,ga(87));const Dt=Tm(n.parent)&>(n.parent)||n.parent;if(n.kind===169&&!(Ms(Dt)||ui(Dt)||O_(Dt)||vD(Dt)||UI(Dt)||GM(Dt)||Vm(Dt)))return Cn(Te,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ga(Te.kind));break}case 164:if(H&16)return Cn(Te,f._0_modifier_already_seen,"override");if(H&128)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","readonly");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","accessor");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"override","async");H|=16,w=Te;break;case 125:case 124:case 123:const et=V0(II(Te.kind));if(H&7)return Cn(Te,f.Accessibility_modifier_already_seen);if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,et,"override");if(H&256)return Cn(Te,f._0_modifier_must_precede_1_modifier,et,"static");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,et,"accessor");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,et,"readonly");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,et,"async");if(n.parent.kind===269||n.parent.kind===308)return Cn(Te,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,et);if(H&64)return Te.kind===123?Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,et,"abstract"):Cn(Te,f._0_modifier_must_precede_1_modifier,et,"abstract");if(nu(n))return Cn(Te,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);H|=II(Te.kind);break;case 126:if(H&256)return Cn(Te,f._0_modifier_already_seen,"static");if(H&8)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","readonly");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","async");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===269||n.parent.kind===308)return Cn(Te,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"static");if(H&64)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&16)return Cn(Te,f._0_modifier_must_precede_1_modifier,"static","override");H|=256,m=Te;break;case 129:if(H&512)return Cn(Te,f._0_modifier_already_seen,"accessor");if(H&8)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(H&128)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==173)return Cn(Te,f.accessor_modifier_can_only_appear_on_a_property_declaration);H|=512;break;case 148:if(H&8)return Cn(Te,f._0_modifier_already_seen,"readonly");if(n.kind!==173&&n.kind!==172&&n.kind!==182&&n.kind!==170)return Cn(Te,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(H&512)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");H|=8;break;case 95:if(O.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==266&&n.kind!==265&&n.kind!==268&&n.parent.kind===308&&e.getEmitModuleFormatOfFile(Fn(n))===1)return Cn(Te,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(Te,f._0_modifier_already_seen,"export");if(H&128)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","declare");if(H&64)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","abstract");if(H&1024)return Cn(Te,f._0_modifier_must_precede_1_modifier,"export","async");if(ui(n.parent))return Cn(Te,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"export");if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(p===6)return Cn(Te,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&&!yu(Tt))return Cn(Te,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(p===6)return Cn(Te,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(Te,f._0_modifier_must_precede_1_modifier,"export","default");H|=2048;break;case 138:if(H&128)return Cn(Te,f._0_modifier_already_seen,"declare");if(H&1024)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(H&16)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ui(n.parent)&&!Po(n))return Cn(Te,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(p===4)return Cn(Te,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(p===6)return Cn(Te,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===269)return Cn(Te,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(nu(n))return Cn(Te,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(H&512)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");H|=128,b=Te;break;case 128:if(H&64)return Cn(Te,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(Te,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(Te,Dt)}if(H&256)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(H&2)return Cn(Te,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(Te,f._0_modifier_must_precede_1_modifier,"abstract","override");if(H&512)return Cn(Te,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(nd(n)&&n.name.kind===81)return Cn(Te,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");H|=64;break;case 134:if(H&1024)return Cn(Te,f._0_modifier_already_seen,"async");if(H&128||n.parent.flags&33554432)return Cn(Te,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===170)return Cn(Te,f._0_modifier_cannot_appear_on_a_parameter,"async");if(H&64)return Cn(Te,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");H|=1024,I=Te;break;case 103:case 147:{const Dt=Te.kind===103?8192:16384,$t=Te.kind===103?"in":"out",Tn=Tm(n.parent)&&(GT(n.parent)||hn((a=tD(n.parent))==null?void 0:a.tags,D1))||n.parent;if(n.kind!==169||Tn&&!(gd(Tn)||ui(Tn)||bm(Tn)||D1(Tn)))return Cn(Te,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,$t);if(H&Dt)return Cn(Te,f._0_modifier_already_seen,$t);if(Dt&8192&&H&16384)return Cn(Te,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(b,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===170&&H&31&&Qo(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?Xvt(n,I):!1}function Hvt(n){if(!n.modifiers)return!1;const a=qvt(n);return a&&fd(a,f.Modifiers_cannot_appear_here)}function J$(n,a){const c=hn(n.modifiers,Aa);return c&&c.kind!==a?c:void 0}function qvt(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 hn(n.modifiers,Aa);default:if(n.parent.kind===269||n.parent.kind===308)return;switch(n.kind){case 263:return J$(n,134);case 264:case 186:return J$(n,128);case 232:case 265:case 266:return hn(n.modifiers,Aa);case 244:return n.declarationList.flags&4?J$(n,135):hn(n.modifiers,Aa);case 267:return J$(n,87);default:C.assertNever(n)}}}function Jvt(n){const a=Kvt(n);return a&&fd(a,f.Decorators_are_not_valid_here)}function Kvt(n){return jj(n)?hn(n.modifiers,Wc):void 0}function Xvt(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 _R(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?rS(n[0],n.end-1,1,a):!1}function f7e(n,a){if(n&&n.length===0){const c=n.pos-1,p=ka(a.text,n.end)+1;return rS(a,c,p-c,f.Type_parameter_list_cannot_be_empty)}return!1}function Yvt(n){let a=!1;const c=n.length;for(let p=0;p!!a.initializer||Qo(a.name)||N_(a))}function Qvt(n){if(G>=3){const a=n.body&&ea(n.body)&&zj(n.body.statements);if(a){const c=$vt(n.parameters);if(Ze(c)){$e(c,m=>{pa(Qe(m,f.This_parameter_is_not_allowed_with_use_strict_directive),Ar(a,f.use_strict_directive_used_here))});const p=c.map((m,b)=>b===0?Ar(m,f.Non_simple_parameter_declared_here):Ar(m,f.and_here));return pa(Qe(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...p),!0}}}return!1}function K$(n){const a=Fn(n);return Xg(n)||f7e(n.typeParameters,a)||Yvt(n.parameters)||ebt(n,a)||Ms(n)&&Qvt(n)}function Zvt(n){const a=Fn(n);return obt(n)||f7e(n.typeParameters,a)}function ebt(n,a){if(!Xs(n))return!1;n.typeParameters&&!(Ze(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&$l(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 tbt(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(_R(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(cV(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=qi(a.type);return am(c,p=>!!(p.flags&8576))||X0(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):Ep(c,lY)?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 nbt(n){return Xg(n)||tbt(n)}function rbt(n,a){if(a&&a.length===0){const c=Fn(n),p=a.pos-1,m=ka(c.text,a.end)+1;return rS(c,p,m-p,f.Type_argument_list_cannot_be_empty)}return!1}function aB(n,a){return _R(a)||rbt(n,a)}function ibt(n){return n.questionDotToken||n.flags&64?Cn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function m7e(n){const a=n.types;if(_R(a))return!0;if(a&&a.length===0){const c=ga(n.token);return rS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return vt(a,h7e)}function h7e(n){return uy(n)&&BM(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):aB(n,n.typeArguments)}function obt(n){let a=!1,c=!1;if(!Xg(n)&&n.heritageClauses)for(const p of n.heritageClauses){if(p.token===96){if(a)return fd(p,f.extends_clause_already_seen);if(c)return fd(p,f.extends_clause_must_precede_implements_clause);if(p.types.length>1)return fd(p.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(C.assert(p.token===119),c)return fd(p,f.implements_clause_already_seen);c=!0}m7e(p)}}function abt(n){let a=!1;if(n.heritageClauses)for(const c of n.heritageClauses){if(c.token===96){if(a)return fd(c,f.extends_clause_already_seen);a=!0}else return C.assert(c.token===119),fd(c,f.Interface_declaration_cannot_have_implements_clause);m7e(c)}return!1}function X$(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 kye(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 wye(n,a){return!!n&&Cn(n,a)}function _7e(n,a){return!!n&&Cn(n,a)}function sbt(n,a){const c=new Map;for(const p of n.properties){if(p.kind===306){if(a){const I=us(p.expression);if(Cd(I)||Fa(I))return Cn(p.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}const m=p.name;if(m.kind===168&&X$(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),Sm(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,Al(I));else if(Xie(p)&&p.modifiers)for(const I of p.modifiers)Aa(I)&&Cn(I,f._0_modifier_cannot_be_used_here,Al(I));let b;switch(p.kind){case 305:case 304:_7e(p.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),wye(p.questionToken,f.An_object_member_cannot_be_declared_optional),m.kind===9&&A7e(m),m.kind===10&&Lg(!0,Ar(m,f.A_bigint_literal_cannot_be_used_as_a_property_name)),b=4;break;case 175:b=8;break;case 178:b=1;break;case 179:b=2;break;default:C.assertNever(p,"Unexpected syntax kind:"+p.kind)}if(!a){const I=Fye(m);if(I===void 0)continue;const w=c.get(I);if(!w)c.set(I,b);else if(b&8&&w&8)Cn(m,f.Duplicate_identifier_0,Al(m));else if(b&4&&w&4)Cn(m,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Al(m));else if(b&3&&w&3)if(w!==3&&b!==w)c.set(I,b|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 lbt(n){cbt(n.tagName),aB(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,b=PM(p);if(!a.get(b))a.set(b,!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 cbt(n){if(qr(n)&&fh(n.expression))return Cn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(fh(n)&&z6(O)&&!oD(n.namespace.escapedText))return Cn(n,f.React_components_cannot_include_JSX_namespace_names)}function dbt(n){if(n.expression&&YM(n.expression))return Cn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function g7e(n){if(Hy(n))return!0;if(n.kind===251&&n.awaitModifier&&!(n.flags&65536)){const a=Fn(n);if(XF(n)){if(!vT(a))switch(HR(a,O)||ns.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){ns.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:ns.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(!vT(a)){const c=Ar(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),p=df(n);if(p&&p.kind!==177){C.assert((dc(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 ns.add(c),!0}}if(gw(n)&&!(n.flags&65536)&&He(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(!Wye(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 fd(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 ubt(n){if(!(n.flags&33554432)&&n.parent.kind!==188&&n.parent.kind!==265){if(G<2&&eo(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 rS(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(!pbt(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(uM(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 pbt(n){return Oye(n)||n.parameters.length===(n.kind===178?0:1)}function Oye(n){if(n.parameters.length===(n.kind===178?1:2))return NS(n)}function fbt(n){if(n.operator===158){if(n.type.kind!==155)return Cn(n.type,f._0_expected,ga(155));let a=Ik(n.parent);if(Ir(a)&&t0(a)){const c=xS(a);c&&(a=TI(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)||!p1(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 fd(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ga(155))}function VL(n,a){if(ZOe(n)&&!Ds(Ws(n)?us(n.argumentExpression):n.expression))return Cn(n,a)}function y7e(n){if(K$(n))return!0;if(n.kind===175){if(n.parent.kind===211){if(n.modifiers&&!(n.modifiers.length===1&&$a(n.modifiers).kind===134))return fd(n,f.Modifiers_cannot_appear_here);if(wye(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(_7e(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return rS(n,n.end-1,1,f._0_expected,"{")}if(kye(n))return!0}if(ui(n.parent)){if(G<2&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return VL(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 VL(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 VL(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 VL(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 mbt(n){let a=n;for(;a;){if(BR(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&&!mb(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(mb(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 hbt(n){if(n.dotDotDotToken){const a=n.parent.elements;if(n!==Ba(a))return Cn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(_R(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 rS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function v7e(n){return uf(n)||n.kind===225&&n.operator===41&&n.operand.kind===9}function _bt(n){return n.kind===10||n.kind===225&&n.operator===41&&n.operand.kind===10}function gbt(n){if((qr(n)||Ws(n)&&v7e(n.argumentExpression))&&Ds(n.expression))return!!(Vl(n).flags&1056)}function b7e(n){const a=n.initializer;if(a){const c=!(v7e(a)||gbt(a)||a.kind===112||a.kind===97||_bt(a));if((nk(n)||yi(n)&&b8(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 ybt(n){const a=OE(n),c=a&7;if(Qo(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)b7e(n);else if(!n.initializer){if(Qo(n.name)&&!Qo(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(Fn(n))<4&&!(n.parent.parent.flags&33554432)&&di(n.parent.parent,32)&&T7e(n.name),!!c&&S7e(n.name)}function T7e(n){if(n.kind===80){if(Kr(n)==="__esModule")return Tbt("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(!Jc(c))return T7e(c.name)}return!1}function S7e(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)Jc(c)||S7e(c.name)}return!1}function Wye(n){const a=n.declarations;if(_R(n.declarations))return!0;if(!n.declarations.length)return rS(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(T4(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 z4e(n)}return!1}function Y$(n){switch(n.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return Y$(n.parent)}return!0}function vbt(n){if(!Y$(n.parent)){const a=OE(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");Qe(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function bbt(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,Bi(n.name.escapedText),ga(n.keywordToken),"target");break;case 102:if(a!=="meta"){const c=Zo(n.parent)&&n.parent.expression===n;if(a==="defer"){if(!c)return rS(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,Bi(n.name.escapedText)):Cn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Bi(n.name.escapedText),ga(n.keywordToken),"meta")}break}}function vT(n){return n.parseDiagnostics.length>0}function fd(n,a,...c){const p=Fn(n);if(!vT(p)){const m=Uh(p,n.pos);return ns.add(Oc(p,m.start,m.length,a,...c)),!0}return!1}function rS(n,a,c,p,...m){const b=Fn(n);return vT(b)?!1:(ns.add(Oc(b,a,c,p,...m)),!0)}function Tbt(n,a,c,...p){const m=Fn(a);return vT(m)?!1:(Av(n,a,c,...p),!0)}function Cn(n,a,...c){const p=Fn(n);return vT(p)?!1:(Qe(n,a,...c),!0)}function Sbt(n){const a=Ir(n)?T6(n):void 0,c=n.typeParameters||a&&Ac(a);if(c){const p=c.pos===c.end?c.pos:ka(Fn(n).text,c.pos);return rS(n,p,c.end-p,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Ebt(n){const a=n.type||kp(n);if(a)return Cn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Abt(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(wa(n.name)&&n.name.text==="constructor")return Cn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(VL(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&&eo(n.name))return Cn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(G<2&&Yu(n)&&!(n.flags&33554432))return Cn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Yu(n)&&wye(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===265){if(VL(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,Su),n.initializer)return Cn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(wu(n.parent)){if(VL(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,Su),n.initializer)return Cn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&b7e(n),Po(n)&&n.exclamationToken&&(!ui(n.parent)||!n.type||n.initializer||n.flags&33554432||ua(n)||LS(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 Ibt(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:fd(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function xbt(n){for(const a of n.statements)if((rd(a)||a.kind===244)&&Ibt(a))return!0;return!1}function E7e(n){return!!(n.flags&33554432)&&xbt(n)}function Hy(n){if(n.flags&33554432){if(!Vr(n).hasReportedStatementInAmbientContext&&(Yo(n.parent)||fb(n.parent)))return Vr(n).hasReportedStatementInAmbientContext=fd(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=fd(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function A7e(n){const a=Al(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||Lg(!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 Rbt(n){return!!(!(uv(n.parent)||YT(n.parent)&&uv(n.parent.parent))&&!(n.flags&33554432)&&G<7&&Cn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Dbt(n,a,...c){const p=Fn(n);if(!vT(p)){const m=Uh(p,n.pos);return ns.add(Oc(p,Dl(m),0,a,...c)),!0}return!1}function Cbt(){return nf||(nf=[],lt.forEach((n,a)=>{lae.test(a)&&nf.push(n)})),nf}function Nbt(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 I7e(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 I7e(n){return!!$e(n.elements,a=>{if(a.isTypeOnly)return fd(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 Mbt(n){if(O.verbatimModuleSyntax&&j===1)return Cn(n,Z1(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&&(_R(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=hn(a,qf);return c?Cn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Pbt(n,a){const c=Hr(n);if(c&20&&a.flags&1048576)return hn(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 Lbt(n,a){if(Hr(n)&128&&am(a,jv))return hn(a.types,c=>!jv(c))}function kbt(n,a){let c=0;if(na(n,c).length>0||(c=1,na(n,c).length>0))return hn(a.types,m=>na(m,c).length>0)}function wbt(n,a){let c;if(!(n.flags&406978556)){let p=0;for(const m of a.types)if(!(m.flags&406978556)){const b=Ma([T_(n),T_(m)]);if(b.flags&4194304)return m;if(Nh(b)||b.flags&1048576){const I=b.flags&1048576?_o(b.types,Nh):1;I>=p&&(c=m,p=I)}}}return c}function Obt(n){if(tc(n,67108864)){const a=Ec(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function x7e(n,a,c){if(a.flags&1048576&&n.flags&2621440){const p=RFe(a,n);if(p)return p;const m=bs(n);if(m){const b=xFe(m,a);if(b){const I=b_e(a,Bt(b,w=>[()=>_r(w),w.escapedName]),c);if(I!==a)return I}}}}function Fye(n){const a=d1(n);return a||(va(n)?q_e(wd(n.expression)):void 0)}function $$(n){return gn===n||(gn=n,Kn=PT(n)),Kn}function OE(n){return Wt===n||(Wt=n,cn=ny(n)),cn}function b8(n){const a=OE(n)&7;return a===2||a===4||a===6}function Wbt(n,a){const c=O.importHelpers?1:0,p=n==null?void 0:n.imports[c];return p&&C.assert(Os(p)&&p.text===a,`Expected sourceFile.imports[${c}] to be the synthesized JSX runtime import`),p}function Fbt(n){C.assert(O.importHelpers,"Expected importHelpers to be enabled");const a=n.imports[0];return C.assert(a&&Os(a)&&a.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),a}}function bHe(e){return!fb(e)}function U1e(e){return e.kind!==263&&e.kind!==175||!!e.body}function H1e(e){switch(e.parent.kind){case 277:case 282:return He(e)||e.kind===11;default:return k_(e)}}var _f;(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"})(_f||(_f={}));var FU;(e=>{e.Fragment="Fragment"})(FU||(FU={}));function q1e(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function su(e){return!!(e.flags&1)}function J1e(e){return!!(e.flags&2)}function THe(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 uae=class L7e{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof L7e;)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 Mo(o)?s=(i||RHe)(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),K1e(e,t,r,i,o)}function K1e(e,t,r,i,o){let s;const l=e.length;(i>0||o=2&&(o=SHe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function SHe(e,t){let r;for(let i=0;i{const l=iu,addSource:ve,setSourceContent:xe,addName:X,addMapping:Se,appendSourceMap:re,toJSON:ce,toString:()=>JSON.stringify(ce())};function ve(ge){s();const je=PR(i,ge,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let Ge=g.get(je);return Ge===void 0&&(Ge=d.length,d.push(je),u.push(ge),g.set(je,Ge)),l(),Ge}function xe(ge,je){if(s(),je!==null){for(h||(h=[]);h.lengthje||ye===je&&ie>Ge)}function Se(ge,je,Ge,We,at,Wt){C.assert(ge>=J,"generatedLine cannot backtrack"),C.assert(je>=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(),(Ce(ge,je)||Je(Ge,We,at))&&(Be(),J=ge,Z=je,de=!1,fe=!1,pe=!0),Ge!==void 0&&We!==void 0&&at!==void 0&&(q=Ge,ye=We,ie=at,de=!0,Wt!==void 0&&(K=Wt,fe=!0)),l()}function re(ge,je,Ge,We,at,Wt){C.assert(ge>=J,"generatedLine cannot backtrack"),C.assert(je>=0,"generatedCharacter cannot be negative"),s();const cn=[];let gn;const Kn=jU(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(!(!pe||!be())){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 Re(ge){ge<0?ge=(-ge<<1)+1:ge=ge<<1;do{let je=ge&31;ge=ge>>5,ge>0&&(je=je|32),Ne(NHe(je))}while(ge>0)}}var fae=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,BU=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,GU=/^\s*(\/\/[@#] .*)?$/;function VU(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function mae(e){for(let t=e.getLineCount()-1;t>=0;t--){const r=e.getLineText(t),i=BU.exec(r);if(i)return i[1].trimEnd();if(!r.match(GU))break}}function DHe(e){return typeof e=="string"||e===null}function CHe(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Mo(e.sources)&&Hn(e.sources,Bo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Mo(e.sourcesContent)&&Hn(e.sourcesContent,DHe))&&(e.names===void 0||e.names===null||Mo(e.names)&&Hn(e.names,Bo))}function hae(e){try{const t=JSON.parse(e);if(CHe(t))return t}catch{}}function jU(e){let t=!1,r=0,i=0,o=0,s=0,l=0,u=0,d=0,g;return{get pos(){return r},get error(){return g},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=MHe(e.charCodeAt(r));if(G===-1)return E("Invalid character in VLQ"),-1;k=(G&32)!==0,O=O|(G&31)<>1,O=-O):O=O>>1,O}}function X1e(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 _ae(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function NHe(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 MHe(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 Y1e(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function $1e(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function PHe(e,t){return C.assert(e.sourceIndex===t.sourceIndex),js(e.sourcePosition,t.sourcePosition)}function LHe(e,t){return js(e.generatedPosition,t.generatedPosition)}function kHe(e){return e.sourcePosition}function wHe(e){return e.generatedPosition}function gae(e,t,r){const i=ci(r),o=t.sourceRoot?So(t.sourceRoot,i):i,s=So(t.file,i),l=e.getSourceFileLike(s),u=t.sources.map(F=>So(F,o)),d=new Map(u.map((F,O)=>[e.getCanonicalFileName(F),O]));let g,h,y;return{getSourcePosition:k,getGeneratedPosition:P};function E(F){const O=l!==void 0?A2(l,F.generatedLine,F.generatedCharacter,!0):-1;let G,j;if(_ae(F)){const J=e.getSourceFileLike(u[F.sourceIndex]);G=t.sources[F.sourceIndex],j=J!==void 0?A2(J,F.sourceLine,F.sourceCharacter,!0):-1}return{generatedPosition:O,source:G,sourceIndex:F.sourceIndex,sourcePosition:j,nameIndex:F.nameIndex}}function A(){if(g===void 0){const F=jU(t.mappings),O=Co(F,E);F.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${F.error}`),g=se):g=O}return g}function R(F){if(y===void 0){const O=[];for(const G of A()){if(!Y1e(G))continue;let j=O[G.sourceIndex];j||(O[G.sourceIndex]=j=[]),j.push(G)}y=O.map(G=>fN(G,PHe,$1e))}return y[F]}function N(){if(h===void 0){const F=[];for(const O of A())F.push(O);h=fN(F,LHe,$1e)}return h}function P(F){const O=d.get(e.getCanonicalFileName(F.fileName));if(O===void 0)return F;const G=R(O);if(!vt(G))return F;let j=YA(G,F.pos,kHe,js);j<0&&(j=~j);const J=G[j];return J===void 0||J.sourceIndex!==O?F:{fileName:s,pos:J.generatedPosition}}function k(F){const O=N();if(!vt(O))return F;let G=YA(O,F.pos,wHe,js);G<0&&(G=~G);const j=O[G];return j===void 0||!Y1e(j)?F:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var UU={getSourcePosition:Vs,getGeneratedPosition:Vs};function Fu(e){return e=yl(e),e?ls(e):0}function Q1e(e){return!e||!r_(e)&&!Jf(e)?!1:vt(e.elements,Z1e)}function Z1e(e){return M_(e.propertyName||e.name)}function hh(e,t){return r;function r(o){return o.kind===308?t(o):i(o)}function i(o){return e.factory.createBundle(Bt(o.sourceFiles,t))}}function yae(e){return!!ZR(e)}function m3(e){if(ZR(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!r_(t))return!1;let r=0;for(const i of t.elements)Z1e(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&l1(e)}function HU(e){return!m3(e)&&(l1(e)||!!e.importClause&&r_(e.importClause.namedBindings)&&Q1e(e.importClause.namedBindings))}function qU(e,t){const r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new OHe,l=[],u=new Map,d=new Set;let g,h=!1,y,E=!1,A=!1,R=!1;for(const F of t.statements)switch(F.kind){case 273:o.push(F),!A&&m3(F)&&(A=!0),!R&&HU(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),Jf(F.exportClause))P(F),R||(R=Q1e(F.exportClause));else{const O=F.exportClause.name,G=yb(O);u.get(G)||(lP(l,Fu(F),O),u.set(G,!0),g=Un(g,O)),A=!0}else P(F);break;case 278:F.isExportEquals&&!y&&(y=F);break;case 244:if(di(F,32))for(const O of F.declarationList.declarations)g=eAe(O,u,g,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||(lP(l,Fu(F),e.factory.getDeclarationName(F)),h=!0);else{const O=F.name;O&&!u.get(Kr(O))&&(lP(l,Fu(F),O),u.set(Kr(O),!0),g=Un(g,O))}break}const N=Bj(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:g,exportedFunctions:d,externalHelpersImportDeclaration:N};function P(F){for(const O of ha(F.exportClause,Jf).elements){const G=yb(O.name);if(!u.get(G)){const j=O.propertyName||O.name;if(j.kind!==11){F.moduleSpecifier||s.add(j,O);const J=r.getReferencedImportDeclaration(j)||r.getReferencedValueDeclaration(j);if(J){if(J.kind===263){k(J,O.name,M_(O.name));continue}lP(l,Fu(J),O.name)}}u.set(G,!0),g=Un(g,O.name)}}}function k(F,O,G){if(d.add(yl(F,Zl)),G)h||(lP(l,Fu(F),O??e.factory.getDeclarationName(F)),h=!0);else{O??(O=F.name);const j=yb(O);u.get(j)||(lP(l,Fu(F),O),u.set(j,!0))}}}function eAe(e,t,r,i){if(Qo(e.name))for(const o of e.name.elements)Jc(o)||(r=eAe(o,t,r,i));else if(!fl(e.name)){const o=Kr(e.name);t.get(o)||(t.set(o,!0),r=Un(r,e.name),my(e.name)&&lP(i,Fu(e),e.name))}return r}function lP(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}var jD=class iN{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(iN.toKey(t))}get(t){return this._map.get(iN.toKey(t))}set(t,r){return this._map.set(iN.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(iN.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if($E(t)||fl(t)){const r=t.emitNode.autoGenerate;if((r.flags&7)===4){const i=Rw(t),o=ug(i)&&i!==t?iN.toKey(i):`(generated@${ls(i)})`;return r0(!1,r.prefix,o,r.suffix,iN.toKey)}else{const i=`(auto@${r.id})`;return r0(!1,r.prefix,i,r.suffix,iN.toKey)}}return eo(t)?Kr(t).slice(1):Kr(t)}},OHe=class extends jD{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&&(ZA(r,t),r.length||this.delete(e))}};function XS(e){return ds(e)||e.kind===9||ep(e.kind)||He(e)}function B_(e){return!He(e)&&XS(e)}function cP(e){return e>=65&&e<=79}function dP(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 h3(e){if(!od(e))return;const t=us(e.expression);return r1(t)?t:void 0}function tAe(e,t,r){for(let i=t;iFHe(i,t,r))}function WHe(e){return zHe(e)||Ql(e)}function g3(e){return Vn(e.members,WHe)}function FHe(e,t,r){return Po(e)&&(!!e.initializer||!t)&&wc(e)===r}function zHe(e){return Po(e)&&wc(e)}function Hw(e){return e.kind===173&&e.initializer!==void 0}function vae(e){return!ua(e)&&(sI(e)||Yu(e))&&eo(e.name)}function bae(e){let t;if(e){const r=e.parameters,i=r.length>0&&Sb(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;lXU(r.privateEnv,t))}function jHe(e){return!e.initializer&&He(e.name)}function qw(e){return Hn(e,jHe)}function ax(e,t){if(!e||!wa(e)||!Tk(e.text,t))return e;const r=av(e.text,Zw(e.text,t));return r!==e.text?jr(bt(L.createStringLiteral(r,e.singleQuote),e),e):e}var Eae=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(Eae||{});function w1(e,t,r,i,o,s){let l=e,u;if(rv(e))for(u=e.right;Une(e.left)||_V(e.left);)if(rv(u))l=e=u,u=e.right;else return C.checkDefined(st(u,t,St));let d;const g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:h,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:E=>$He(r.factory,E),createObjectBindingOrAssignmentPattern:E=>ZHe(r.factory,E),createArrayBindingOrAssignmentElement:tqe,visitor:t};if(u&&(u=st(u,t,St),C.assert(u),He(u)&&Aae(e,u.escapedText)||Iae(e)?u=sx(g,u,!1,l):o?u=sx(g,u,!0,l):Os(e)&&(l=u)),uP(g,e,u,l,rv(e)),u&&o){if(!vt(d))return u;d.push(u)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function h(E){d=Un(d,E)}function y(E,A,R,N){C.assertNode(E,s?He: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 Aae(e,t){const r=kb(e);return B2(r)?UHe(r,t):He(r)?r.escapedText===t:!1}function UHe(e,t){const r=LD(e);for(const i of r)if(Aae(i,t))return!0;return!1}function Iae(e){const t=L4(e);if(t&&va(t)&&!YE(t.expression))return!0;const r=kb(e);return!!r&&B2(r)&&HHe(r)}function HHe(e){return!!$e(LD(e),Iae)}function YS(e,t,r,i,o,s=!1,l){let u;const d=[],g=[],h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:y,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:A=>YHe(r.factory,A),createObjectBindingOrAssignmentPattern:A=>QHe(r.factory,A),createArrayBindingOrAssignmentElement:A=>eqe(r.factory,A),visitor:t};if(yi(e)){let A=Iw(e);A&&(He(A)&&Aae(e,A.escapedText)||Iae(e))&&(A=sx(h,C.checkDefined(st(A,h.visitor,St)),!1,A),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,A))}if(uP(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=Ba(d);R.pendingExpressions=Un(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(Un(A,N)):N);F.original=k,bt(F,P),g.push(F)}return g;function y(A){u=Un(u,A)}function E(A,R,N,P){C.assertNode(A,QE),u&&(R=r.factory.inlineExpressions(Un(u,R)),u=void 0),d.push({pendingExpressions:u,name:A,value:R,location:N,original:P})}}function uP(e,t,r,i,o){const s=kb(t);if(!o){const l=st(Iw(t),e.visitor,St);l?r?(r=KHe(e,r,l,i),!B_(l)&&B2(s)&&(r=sx(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}Q9(s)?qHe(e,t,s,r,i):Z9(s)?JHe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function qHe(e,t,r,i,o){const s=LD(r),l=s.length;if(l!==1){const g=!z2(t)||l!==0;i=sx(e,i,g,o)}let u,d;for(let g=0;g=1&&!(h.transformFlags&98304)&&!(kb(h).transformFlags&98304)&&!va(y))u=Un(u,st(h,e.visitor,cte));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r),u=void 0);const E=XHe(e,i,y);va(y)&&(d=Un(d,E.argumentExpression)),uP(e,h,E,h)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,o,r)}function JHe(e,t,r,i,o){const s=LD(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=sx(e,bt(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&P4(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Hn(s,Jc)){const g=!z2(t)||l!==0;i=sx(e,i,g,o)}let u,d;for(let g=0;g=1)if(h.transformFlags&65536||e.hasTransformedPriorElement&&!rAe(h)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),d=Un(d,[y,h]),u=Un(u,e.createArrayBindingOrAssignmentElement(y))}else u=Un(u,h);else{if(Jc(h))continue;if(P4(h)){if(g===l-1){const y=e.context.factory.createArraySliceCall(i,g);uP(e,h,y,h)}}else{const y=e.context.factory.createElementAccessExpression(i,g);uP(e,h,y,h)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,o,r),d)for(const[g,h]of d)uP(e,h,g,h)}function rAe(e){const t=kb(e);if(!t||Jc(t))return!0;const r=L4(e);if(r&&!Jh(r))return!1;const i=Iw(e);return i&&!B_(i)?!1:B2(t)?Hn(LD(t),rAe):He(t)}function KHe(e,t,r,i){return t=sx(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function XHe(e,t,r){const{factory:i}=e.context;if(va(r)){const o=sx(e,C.checkDefined(st(r.expression,e.visitor,St)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(uf(r)||yD(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 sx(e,t,r,i){if(He(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 YHe(e,t){return C.assertEachNode(t,bF),e.createArrayBindingPattern(t)}function $He(e,t){return C.assertEachNode(t,V2),e.createArrayLiteralExpression(Bt(t,e.converters.convertToArrayAssignmentElement))}function QHe(e,t){return C.assertEachNode(t,Ha),e.createObjectBindingPattern(t)}function ZHe(e,t){return C.assertEachNode(t,G2),e.createObjectLiteralExpression(Bt(t,e.converters.convertToObjectAssignmentElement))}function eqe(e,t){return e.createBindingElement(void 0,void 0,t)}function tqe(e){return e}function nqe(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 jd(l).classThis=t,l}function pP(e){var t;if(!Ql(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return od(r)&&id(r.expression,!0)&&He(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function YU(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&vt(e.members,pP)}function xae(e,t,r,i){if(YU(t))return t;const o=nqe(e,r,i);t.name&&Ua(o.body.statements[0],t.name);const s=e.createNodeArray([o,...t.members]);bt(s,t.members);const l=Dc(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 jd(l).classThis=r,l}function v3(e,t,r){const i=yl(Ul(r));return(Dc(i)||Zl(i))&&!i.name&&di(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function iAe(e,t,r){const{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(Jh(t)||eo(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Jh(t.expression)&&!He(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 rqe(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 jd(u).assignedName=t,u}function lx(e){var t;if(!Ql(e)||e.body.statements.length!==1)return!1;const r=e.body.statements[0];return od(r)&&WM(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function b3(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&vt(e.members,lx)}function $U(e){return!!e.name||b3(e)}function T3(e,t,r,i){if(b3(t))return t;const{factory:o}=e,s=rqe(e,r,i);t.name&&Ua(s.body.statements[0],t.name);const l=so(t.members,pP)+1,u=t.members.slice(0,l),d=t.members.slice(l),g=o.createNodeArray([...u,s,...d]);return bt(g,t.members),t=Dc(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),jd(t).assignedName=r,t}function UD(e,t,r,i){if(i&&wa(r)&&MG(r))return t;const{factory:o}=e,s=Ul(t),l=uc(s)?ha(T3(e,s,r),uc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function iqe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=iAe(e,t.name,i),u=UD(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,u)}function oqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):v3(o,t.name,t.objectAssignmentInitializer),l=UD(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function aqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):v3(o,t.name,t.initializer),l=UD(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function sqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):v3(o,t.name,t.initializer),l=UD(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function lqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):v3(o,t.name,t.initializer),l=UD(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function cqe(e,t,r,i){const{factory:o}=e,{assignedName:s,name:l}=iAe(e,t.name,i),u=UD(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,u)}function dqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):v3(o,t.left,t.right),l=UD(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function uqe(e,t,r,i){const{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=UD(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function zp(e,t,r,i){switch(t.kind){case 304:return iqe(e,t,r,i);case 305:return oqe(e,t,r,i);case 261:return aqe(e,t,r,i);case 170:return sqe(e,t,r,i);case 209:return lqe(e,t,r,i);case 173:return cqe(e,t,r,i);case 227:return dqe(e,t,r,i);case 278:return uqe(e,t,r,i)}}var Rae=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(Rae||{});function QU(e,t,r,i,o,s){const l=st(t.tag,r,St);C.assert(l);const u=[void 0],d=[],g=[],h=t.template;if(s===0&&!ZG(h))return wn(t,r,e);const{factory:y}=e;if(y1(h))d.push(Dae(y,h)),g.push(Cae(y,h,i));else{d.push(Dae(y,h.head)),g.push(Cae(y,h.head,i));for(const A of h.templateSpans)d.push(Dae(y,A.literal)),g.push(Cae(y,A.literal,i)),u.push(C.checkDefined(st(A.expression,r,St)))}const E=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(d),y.createArrayLiteralExpression(g));if(zc(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 Dae(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Cae(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=bS(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 Nae(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getEmitResolver(),d=e.getCompilerOptions(),g=Ga(d),h=bu(d),y=!!d.experimentalDecorators,E=d.emitDecoratorMetadata?Pae(e):void 0,A=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=ec,e.onSubstituteNode=bf,e.enableSubstitution(212),e.enableSubstitution(213);let N,P,k,F,O,G=0,j;return J;function J(Ee){return Ee.kind===309?Z(Ee):q(Ee)}function Z(Ee){return t.createBundle(Ee.sourceFiles.map(q))}function q(Ee){if(Ee.isDeclarationFile)return Ee;N=Ee;const Y=ye(Ee,Re);return Ig(Y,e.readEmitHelpers()),N=void 0,Y}function ye(Ee,Y){const pt=F,qt=O;ie(Ee);const fn=Y(Ee);return F!==pt&&(O=qt),F=pt,fn}function ie(Ee){switch(Ee.kind){case 308:case 270:case 269:case 242:F=Ee,O=void 0;break;case 264:case 263:if(di(Ee,128))break;Ee.name?B(Ee):C.assert(Ee.kind===264||di(Ee,2048));break}}function K(Ee){return ye(Ee,pe)}function pe(Ee){return Ee.transformFlags&1?ce(Ee):Ee}function de(Ee){return ye(Ee,fe)}function fe(Ee){switch(Ee.kind){case 273:case 272:case 278:case 279:return xe(Ee);default:return pe(Ee)}}function ve(Ee){const Y=jo(Ee);if(Y===Ee||dl(Ee))return!1;if(!Y||Y.kind!==Ee.kind)return!0;switch(Ee.kind){case 273:if(C.assertNode(Y,vl),Ee.importClause!==Y.importClause||Ee.attributes!==Y.attributes)return!0;break;case 272:if(C.assertNode(Y,Fc),Ee.name!==Y.name||Ee.isTypeOnly!==Y.isTypeOnly||Ee.moduleReference!==Y.moduleReference&&(Mu(Ee.moduleReference)||Mu(Y.moduleReference)))return!0;break;case 279:if(C.assertNode(Y,fc),Ee.exportClause!==Y.exportClause||Ee.attributes!==Y.attributes)return!0;break}return!1}function xe(Ee){if(ve(Ee))return Ee.transformFlags&1?wn(Ee,K,e):Ee;switch(Ee.kind){case 273:return Gt(Ee);case 272:return En(Ee);case 278:return ft(Ee);case 279:return Mt(Ee);default:C.fail("Unhandled ellided statement")}}function X(Ee){return ye(Ee,Ce)}function Ce(Ee){if(!(Ee.kind===279||Ee.kind===273||Ee.kind===274||Ee.kind===272&&Ee.moduleReference.kind===284))return Ee.transformFlags&1||di(Ee,32)?ce(Ee):Ee}function Je(Ee){return Y=>ye(Y,pt=>Se(pt,Ee))}function Se(Ee,Y){switch(Ee.kind){case 177:return Ye(Ee);case 173:return Ci(Ee,Y);case 178:return Hi(Ee,Y);case 179:return $o(Ee,Y);case 175:return ri(Ee,Y);case 176:return wn(Ee,K,e);case 241:return Ee;case 182:return;default:return C.failBadSyntaxKind(Ee)}}function re(Ee){return Y=>ye(Y,pt=>be(pt,Ee))}function be(Ee,Y){switch(Ee.kind){case 304:case 305:case 306:return K(Ee);case 178:return Hi(Ee,Y);case 179:return $o(Ee,Y);case 175:return ri(Ee,Y);default:return C.failBadSyntaxKind(Ee)}}function Ne(Ee){return Wc(Ee)?void 0:K(Ee)}function Be(Ee){return Aa(Ee)?void 0:K(Ee)}function lt(Ee){if(!Wc(Ee)&&!(II(Ee.kind)&28895)&&!(P&&Ee.kind===95))return Ee}function ce(Ee){if(Gi(Ee)&&di(Ee,128))return t.createNotEmittedStatement(Ee);switch(Ee.kind){case 95:case 90:return P?void 0:Ee;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(Ee);case 271:return;case 265:return t.createNotEmittedStatement(Ee);case 264:return at(Ee);case 232:return Wt(Ee);case 299:return Ai(Ee);case 234:return Ni(Ee);case 211:return ge(Ee);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(Ee);case 219:return Pn(Ee);case 220:return Uo(Ee);case 170:return ot(Ee);case 218:return ne(Ee);case 217:case 235:return Fe(Ee);case 239:return dt(Ee);case 214:return Lt(Ee);case 215:return Ue(Ee);case 216:return Rt(Ee);case 236:return it(Ee);case 267:return Kt(Ee);case 244:return Ft(Ee);case 261:return ht(Ee);case 268:return Xt(Ee);case 272:return En(Ee);case 286:return It(Ee);case 287:return Ot(Ee);default:return wn(Ee,K,e)}}function Re(Ee){const Y=Vd(d,"alwaysStrict")&&!(zc(Ee)&&h>=5)&&!Ff(Ee);return t.updateSourceFile(Ee,zU(Ee.statements,de,e,0,Y))}function ge(Ee){return t.updateObjectLiteralExpression(Ee,Xn(Ee.properties,re(Ee),ry))}function je(Ee){let Y=0;vt(JU(Ee,!0,!0))&&(Y|=1);const pt=lh(Ee);return pt&&Ul(pt.expression).kind!==106&&(Y|=64),tv(y,Ee)&&(Y|=2),KN(y,Ee)&&(Y|=4),xn(Ee)?Y|=8:Ii(Ee)?Y|=32:ln(Ee)&&(Y|=16),Y}function Ge(Ee){return!!(Ee.transformFlags&8192)}function We(Ee){return pf(Ee)||vt(Ee.typeParameters)||vt(Ee.heritageClauses,Ge)||vt(Ee.members,Ge)}function at(Ee){const Y=je(Ee),pt=g<=1&&!!(Y&7);if(!We(Ee)&&!tv(y,Ee)&&!xn(Ee))return t.updateClassDeclaration(Ee,Xn(Ee.modifiers,lt,Aa),Ee.name,void 0,Xn(Ee.heritageClauses,K,Fp),Xn(Ee.members,Je(Ee),bc));pt&&e.startLexicalEnvironment();const qt=pt||Y&8;let fn=qt?Xn(Ee.modifiers,Be,ml):Xn(Ee.modifiers,K,ml);Y&2&&(fn=gn(fn,Ee));const si=qt&&!Ee.name||Y&4||Y&1?Ee.name??t.getGeneratedNameForNode(Ee):Ee.name,Dr=t.updateClassDeclaration(Ee,fn,si,void 0,Xn(Ee.heritageClauses,K,Fp),cn(Ee));let zn=Qa(Ee);Y&1&&(zn|=64),Cr(Dr,zn);let ro;if(pt){const Eo=[Dr],Ns=yV(ka(N.text,Ee.members.end),20),Da=t.getInternalName(Ee),Qs=t.createPartiallyEmittedExpression(Da);hD(Qs,Ns.end),Cr(Qs,3072);const Sc=t.createReturnStatement(Qs);DM(Sc,Ns.pos),Cr(Sc,3840),Eo.push(Sc),hg(Eo,e.endLexicalEnvironment());const mc=t.createImmediatelyInvokedArrowFunction(Eo);dw(mc,1);const Hs=t.createVariableDeclaration(t.getLocalName(Ee,!1,!1),void 0,void 0,mc);jr(Hs,Ee);const Pl=t.createVariableStatement(void 0,t.createVariableDeclarationList([Hs],1));jr(Pl,Ee),Rc(Pl,Ee),Ua(Pl,cy(Ee)),au(Pl),ro=Pl}else ro=Dr;if(qt){if(Y&8)return[ro,ra(Ee)];if(Y&32)return[ro,t.createExportDefault(t.getLocalName(Ee,!1,!0))];if(Y&16)return[ro,t.createExternalModuleExport(t.getDeclarationName(Ee,!1,!0))]}return ro}function Wt(Ee){let Y=Xn(Ee.modifiers,Be,ml);return tv(y,Ee)&&(Y=gn(Y,Ee)),t.updateClassExpression(Ee,Y,Ee.name,void 0,Xn(Ee.heritageClauses,K,Fp),cn(Ee))}function cn(Ee){const Y=Xn(Ee.members,Je(Ee),bc);let pt;const qt=vg(Ee),fn=qt&&Vn(qt.parameters,ur=>Np(ur,qt));if(fn)for(const ur of fn){const si=t.createPropertyDeclaration(void 0,ur.name,void 0,void 0,void 0);jr(si,ur),pt=Un(pt,si)}return pt?(pt=Xr(pt,Y),bt(t.createNodeArray(pt),Ee.members)):Y}function gn(Ee,Y){const pt=gt(Y,Y);if(vt(pt)){const qt=[];Xr(qt,ZB(Ee,xw)),Xr(qt,Vn(Ee,Wc)),Xr(qt,pt),Xr(qt,Vn(rZ(Ee,xw),Aa)),Ee=bt(t.createNodeArray(qt),Ee)}return Ee}function Kn(Ee,Y,pt){if(ui(pt)&&NG(y,Y,pt)){const qt=gt(Y,pt);if(vt(qt)){const fn=[];Xr(fn,Vn(Ee,Wc)),Xr(fn,qt),Xr(fn,Vn(Ee,Aa)),Ee=bt(t.createNodeArray(fn),Ee)}}return Ee}function gt(Ee,Y){if(y)return en(Ee,Y)}function en(Ee,Y){if(E){let pt;if(or(Ee)){const qt=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:Y},Ee,Y));pt=Un(pt,t.createDecorator(qt))}if(co(Ee)){const qt=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:Y},Ee,Y));pt=Un(pt,t.createDecorator(qt))}if(Di(Ee)){const qt=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:Y},Ee));pt=Un(pt,t.createDecorator(qt))}return pt}}function or(Ee){const Y=Ee.kind;return Y===175||Y===178||Y===179||Y===173}function Di(Ee){return Ee.kind===175}function co(Ee){switch(Ee.kind){case 264:case 232:return vg(Ee)!==void 0;case 175:case 178:case 179:return!0}return!1}function zt(Ee,Y){const pt=Ee.name;return eo(pt)?t.createIdentifier(""):va(pt)?pt.expression:He(pt)?t.createStringLiteral(Kr(pt)):t.cloneNode(pt)}function Zr(Ee){const Y=Ee.name;if(y&&va(Y)&&pf(Ee)){const pt=st(Y.expression,K,St);C.assert(pt);const qt=Fm(pt);if(!B_(qt)){const fn=t.getGeneratedNameForNode(Y);return l(fn),t.updateComputedPropertyName(Y,t.createAssignment(fn,pt))}}return C.checkDefined(st(Y,K,vc))}function Ai(Ee){if(Ee.token!==119)return wn(Ee,K,e)}function Ni(Ee){return t.updateExpressionWithTypeArguments(Ee,C.checkDefined(st(Ee.expression,K,$u)),void 0)}function Pr(Ee){return!Ol(Ee.body)}function Ci(Ee,Y){const pt=Ee.flags&33554432||di(Ee,64);if(pt&&!(y&&pf(Ee)))return;let qt=ui(Y)?pt?Xn(Ee.modifiers,Be,ml):Xn(Ee.modifiers,K,ml):Xn(Ee.modifiers,Ne,ml);return qt=Kn(qt,Ee,Y),pt?t.updatePropertyDeclaration(Ee,lo(qt,t.createModifiersFromModifierFlags(128)),C.checkDefined(st(Ee.name,K,vc)),void 0,void 0,void 0):t.updatePropertyDeclaration(Ee,qt,Zr(Ee),void 0,void 0,st(Ee.initializer,K,St))}function Ye(Ee){if(Pr(Ee))return t.updateConstructorDeclaration(Ee,void 0,Fl(Ee.parameters,K,e),mn(Ee.body,Ee))}function At(Ee,Y,pt,qt,fn,ur){const si=qt[fn],Dr=Y[si];if(Xr(Ee,Xn(Y,K,Gi,pt,si-pt)),A1(Dr)){const zn=[];At(zn,Dr.tryBlock.statements,0,qt,fn+1,ur);const ro=t.createNodeArray(zn);bt(ro,Dr.tryBlock.statements),Ee.push(t.updateTryStatement(Dr,t.updateBlock(Dr.tryBlock,zn),st(Dr.catchClause,K,HS),st(Dr.finallyBlock,K,ea)))}else Xr(Ee,Xn(Y,K,Gi,si,1)),Xr(Ee,ur);Xr(Ee,Xn(Y,K,Gi,si+1))}function mn(Ee,Y){const pt=Y&&Vn(Y.parameters,zn=>Np(zn,Y));if(!vt(pt))return gf(Ee,K,e);let qt=[];o();const fn=t.copyPrologue(Ee.statements,qt,!1,K),ur=_3(Ee.statements,fn),si=ji(pt,dr);ur.length?At(qt,Ee.statements,fn,ur,0,si):(Xr(qt,si),Xr(qt,Xn(Ee.statements,K,Gi,fn))),qt=t.mergeLexicalEnvironment(qt,s());const Dr=t.createBlock(bt(t.createNodeArray(qt),Ee.statements),!0);return bt(Dr,Ee),jr(Dr,Ee),Dr}function dr(Ee){const Y=Ee.name;if(!He(Y))return;const pt=ps(bt(t.cloneNode(Y),Y),Y.parent);Cr(pt,3168);const qt=ps(bt(t.cloneNode(Y),Y),Y.parent);return Cr(qt,3072),au(cw(bt(jr(t.createExpressionStatement(t.createAssignment(bt(t.createPropertyAccessExpression(t.createThis(),pt),Ee.name),qt)),Ee),UT(Ee,-1))))}function ri(Ee,Y){if(!(Ee.transformFlags&1))return Ee;if(!Pr(Ee))return;let pt=ui(Y)?Xn(Ee.modifiers,K,ml):Xn(Ee.modifiers,Ne,ml);return pt=Kn(pt,Ee,Y),t.updateMethodDeclaration(Ee,pt,Ee.asteriskToken,Zr(Ee),void 0,void 0,Fl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e))}function ai(Ee){return!(Ol(Ee.body)&&di(Ee,64))}function Hi(Ee,Y){if(!(Ee.transformFlags&1))return Ee;if(!ai(Ee))return;let pt=ui(Y)?Xn(Ee.modifiers,K,ml):Xn(Ee.modifiers,Ne,ml);return pt=Kn(pt,Ee,Y),t.updateGetAccessorDeclaration(Ee,pt,Zr(Ee),Fl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e)||t.createBlock([]))}function $o(Ee,Y){if(!(Ee.transformFlags&1))return Ee;if(!ai(Ee))return;let pt=ui(Y)?Xn(Ee.modifiers,K,ml):Xn(Ee.modifiers,Ne,ml);return pt=Kn(pt,Ee,Y),t.updateSetAccessorDeclaration(Ee,pt,Zr(Ee),Fl(Ee.parameters,K,e),gf(Ee.body,K,e)||t.createBlock([]))}function Ia(Ee){if(!Pr(Ee))return t.createNotEmittedStatement(Ee);const Y=t.updateFunctionDeclaration(Ee,Xn(Ee.modifiers,lt,Aa),Ee.asteriskToken,Ee.name,void 0,Fl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e)||t.createBlock([]));if(xn(Ee)){const pt=[Y];return la(pt,Ee),pt}return Y}function Pn(Ee){return Pr(Ee)?t.updateFunctionExpression(Ee,Xn(Ee.modifiers,lt,Aa),Ee.asteriskToken,Ee.name,void 0,Fl(Ee.parameters,K,e),void 0,gf(Ee.body,K,e)||t.createBlock([])):t.createOmittedExpression()}function Uo(Ee){return t.updateArrowFunction(Ee,Xn(Ee.modifiers,lt,Aa),void 0,Fl(Ee.parameters,K,e),void 0,Ee.equalsGreaterThanToken,gf(Ee.body,K,e))}function ot(Ee){if(Sb(Ee))return;const Y=t.updateParameterDeclaration(Ee,Xn(Ee.modifiers,pt=>Wc(pt)?K(pt):void 0,ml),Ee.dotDotDotToken,C.checkDefined(st(Ee.name,K,QE)),void 0,void 0,st(Ee.initializer,K,St));return Y!==Ee&&(Rc(Y,Ee),bt(Y,$h(Ee)),Ua(Y,$h(Ee)),Cr(Y.name,64)),Y}function Ft(Ee){if(xn(Ee)){const Y=_M(Ee.declarationList);return Y.length===0?void 0:bt(t.createExpressionStatement(t.inlineExpressions(Bt(Y,le))),Ee)}else return wn(Ee,K,e)}function le(Ee){const Y=Ee.name;return Qo(Y)?w1(Ee,K,e,0,!1,Bl):bt(t.createAssignment(xl(Y),C.checkDefined(st(Ee.initializer,K,St))),Ee)}function ht(Ee){const Y=t.updateVariableDeclaration(Ee,C.checkDefined(st(Ee.name,K,QE)),void 0,void 0,st(Ee.initializer,K,St));return Ee.type&&aie(Y.name,Ee.type),Y}function ne(Ee){const Y=Ul(Ee.expression,-55);if(vS(Y)||ED(Y)){const pt=st(Ee.expression,K,St);return C.assert(pt),t.createPartiallyEmittedExpression(pt,Ee)}return wn(Ee,K,e)}function Fe(Ee){const Y=st(Ee.expression,K,St);return C.assert(Y),t.createPartiallyEmittedExpression(Y,Ee)}function it(Ee){const Y=st(Ee.expression,K,$u);return C.assert(Y),t.createPartiallyEmittedExpression(Y,Ee)}function dt(Ee){const Y=st(Ee.expression,K,St);return C.assert(Y),t.createPartiallyEmittedExpression(Y,Ee)}function Lt(Ee){return t.updateCallExpression(Ee,C.checkDefined(st(Ee.expression,K,St)),void 0,Xn(Ee.arguments,K,St))}function Ue(Ee){return t.updateNewExpression(Ee,C.checkDefined(st(Ee.expression,K,St)),void 0,Xn(Ee.arguments,K,St))}function Rt(Ee){return t.updateTaggedTemplateExpression(Ee,C.checkDefined(st(Ee.tag,K,St)),void 0,C.checkDefined(st(Ee.template,K,lI)))}function It(Ee){return t.updateJsxSelfClosingElement(Ee,C.checkDefined(st(Ee.tagName,K,BN)),void 0,C.checkDefined(st(Ee.attributes,K,US)))}function Ot(Ee){return t.updateJsxOpeningElement(Ee,C.checkDefined(st(Ee.tagName,K,BN)),void 0,C.checkDefined(st(Ee.attributes,K,US)))}function nt(Ee){return!OT(Ee)||Ib(d)}function Kt(Ee){if(!nt(Ee))return t.createNotEmittedStatement(Ee);const Y=[];let pt=4;const qt=xt(Y,Ee);qt&&(h!==4||F!==N)&&(pt|=1024);const fn=Ps(Ee),ur=uo(Ee),si=xn(Ee)?t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0):t.getDeclarationName(Ee,!1,!0);let Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ee)){const ro=t.getLocalName(Ee,!1,!0);Dr=t.createAssignment(ro,Dr)}const zn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Tr(Ee,ur)),void 0,[Dr]));return jr(zn,Ee),qt&&(JT(zn,void 0),FI(zn,void 0)),bt(zn,Ee),Zh(zn,pt),Y.push(zn),Y}function Tr(Ee,Y){const pt=k;k=Y;const qt=[];i();const fn=Bt(Ee.members,Oe);return hg(qt,s()),Xr(qt,fn),k=pt,t.createBlock(bt(t.createNodeArray(qt),Ee.members),!0)}function Oe(Ee){const Y=zt(Ee),pt=u.getEnumMemberValue(Ee),qt=Nt(Ee,pt==null?void 0:pt.value),fn=t.createAssignment(t.createElementAccessExpression(k,Y),qt),ur=typeof(pt==null?void 0:pt.value)=="string"||pt!=null&&pt.isSyntacticallyString?fn:t.createAssignment(t.createElementAccessExpression(k,fn),Y);return bt(t.createExpressionStatement(bt(ur,Ee)),Ee)}function Nt(Ee,Y){return Y!==void 0?typeof Y=="string"?t.createStringLiteral(Y):Y<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Y)):t.createNumericLiteral(Y):(Go(),Ee.initializer?C.checkDefined(st(Ee.initializer,K,St)):t.createVoidZero())}function he(Ee){const Y=jo(Ee,pc);return Y?WU(Y,Ib(d)):!0}function B(Ee){O||(O=new Map);const Y=te(Ee);O.has(Y)||O.set(Y,Ee)}function Ae(Ee){if(O){const Y=te(Ee);return O.get(Y)===Ee}return!0}function te(Ee){return C.assertNode(Ee.name,He),Ee.name.escapedText}function xt(Ee,Y){const pt=t.createVariableDeclaration(t.getLocalName(Y,!1,!0)),qt=F.kind===308?0:1,fn=t.createVariableStatement(Xn(Y.modifiers,lt,Aa),t.createVariableDeclarationList([pt],qt));return jr(pt,Y),JT(pt,void 0),FI(pt,void 0),jr(fn,Y),B(Y),Ae(Y)?(Y.kind===267?Ua(fn.declarationList,Y):Ua(fn,Y),Rc(fn,Y),Zh(fn,2048),Ee.push(fn),!0):!1}function Xt(Ee){if(!he(Ee))return t.createNotEmittedStatement(Ee);C.assertNode(Ee.name,He,"A TypeScript namespace should have an Identifier name."),Tc();const Y=[];let pt=4;const qt=xt(Y,Ee);qt&&(h!==4||F!==N)&&(pt|=1024);const fn=Ps(Ee),ur=uo(Ee),si=xn(Ee)?t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0):t.getDeclarationName(Ee,!1,!0);let Dr=t.createLogicalOr(si,t.createAssignment(si,t.createObjectLiteralExpression()));if(xn(Ee)){const ro=t.getLocalName(Ee,!1,!0);Dr=t.createAssignment(ro,Dr)}const zn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,fn)],void 0,Pe(Ee,ur)),void 0,[Dr]));return jr(zn,Ee),qt&&(JT(zn,void 0),FI(zn,void 0)),bt(zn,Ee),Zh(zn,pt),Y.push(zn),Y}function Pe(Ee,Y){const pt=k,qt=P,fn=O;k=Y,P=Ee,O=void 0;const ur=[];i();let si,Dr;if(Ee.body)if(Ee.body.kind===269)ye(Ee.body,ro=>Xr(ur,Xn(ro.statements,X,Gi))),si=Ee.body.statements,Dr=Ee.body;else{const ro=Xt(Ee.body);ro&&(Mo(ro)?Xr(ur,ro):ur.push(ro));const Eo=yt(Ee).body;si=UT(Eo.statements,-1)}hg(ur,s()),k=pt,P=qt,O=fn;const zn=t.createBlock(bt(t.createNodeArray(ur),si),!0);return bt(zn,Dr),(!Ee.body||Ee.body.kind!==269)&&Cr(zn,Qa(zn)|3072),zn}function yt(Ee){if(Ee.body.kind===268)return yt(Ee.body)||Ee.body}function Gt(Ee){if(!Ee.importClause)return Ee;if(Ee.importClause.isTypeOnly)return;const Y=st(Ee.importClause,gr,jm);return Y?t.updateImportDeclaration(Ee,void 0,Y,Ee.moduleSpecifier,Ee.attributes):void 0}function gr(Ee){C.assert(Ee.phaseModifier!==156);const Y=Fs(Ee)?Ee.name:void 0,pt=st(Ee.namedBindings,nr,rG);return Y||pt?t.updateImportClause(Ee,Ee.phaseModifier,Y,pt):void 0}function nr(Ee){if(Ee.kind===275)return Fs(Ee)?Ee:void 0;{const Y=d.verbatimModuleSyntax,pt=Xn(Ee.elements,Jn,Eu);return Y||vt(pt)?t.updateNamedImports(Ee,pt):void 0}}function Jn(Ee){return!Ee.isTypeOnly&&Fs(Ee)?Ee:void 0}function ft(Ee){return d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ee)?wn(Ee,K,e):void 0}function Mt(Ee){if(Ee.isTypeOnly)return;if(!Ee.exportClause||W_(Ee.exportClause))return t.updateExportDeclaration(Ee,Ee.modifiers,Ee.isTypeOnly,Ee.exportClause,Ee.moduleSpecifier,Ee.attributes);const Y=!!d.verbatimModuleSyntax,pt=st(Ee.exportClause,qt=>In(qt,Y),q9);return pt?t.updateExportDeclaration(Ee,void 0,Ee.isTypeOnly,pt,Ee.moduleSpecifier,Ee.attributes):void 0}function jt(Ee,Y){const pt=Xn(Ee.elements,yn,ou);return Y||vt(pt)?t.updateNamedExports(Ee,pt):void 0}function Qt(Ee){return t.updateNamespaceExport(Ee,C.checkDefined(st(Ee.name,K,He)))}function In(Ee,Y){return W_(Ee)?Qt(Ee):jt(Ee,Y)}function yn(Ee){return!Ee.isTypeOnly&&(d.verbatimModuleSyntax||u.isValueAliasDeclaration(Ee))?Ee:void 0}function wt(Ee){return Fs(Ee)||!zc(N)&&u.isTopLevelValueImportEqualsWithEntityName(Ee)}function En(Ee){if(Ee.isTypeOnly)return;if(FT(Ee))return Fs(Ee)?wn(Ee,K,e):void 0;if(!wt(Ee))return;const Y=Tw(t,Ee.moduleReference);return Cr(Y,7168),ln(Ee)||!xn(Ee)?jr(bt(t.createVariableStatement(Xn(Ee.modifiers,lt,Aa),t.createVariableDeclarationList([jr(t.createVariableDeclaration(Ee.name,void 0,void 0,Y),Ee)])),Ee),Ee):jr(zo(Ee.name,Y,Ee),Ee)}function xn(Ee){return P!==void 0&&di(Ee,32)}function kn(Ee){return P===void 0&&di(Ee,32)}function ln(Ee){return kn(Ee)&&!di(Ee,2048)}function Ii(Ee){return kn(Ee)&&di(Ee,2048)}function ra(Ee){const Y=t.createAssignment(t.getExternalModuleOrNamespaceExportName(k,Ee,!1,!0),t.getLocalName(Ee));Ua(Y,Bf(Ee.name?Ee.name.pos:Ee.pos,Ee.end));const pt=t.createExpressionStatement(Y);return Ua(pt,Bf(-1,Ee.end)),pt}function la(Ee,Y){Ee.push(ra(Y))}function zo(Ee,Y,pt){return bt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(k,Ee,!1,!0),Y)),pt)}function Bl(Ee,Y,pt){return bt(t.createAssignment(xl(Ee),Y),pt)}function xl(Ee){return t.getNamespaceMemberName(k,Ee,!1,!0)}function Ps(Ee){const Y=t.getGeneratedNameForNode(Ee);return Ua(Y,Ee.name),Y}function uo(Ee){return t.getGeneratedNameForNode(Ee)}function Go(){G&8||(G|=8,e.enableSubstitution(80))}function Tc(){G&2||(G|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268))}function $s(Ee){return yl(Ee).kind===268}function Ra(Ee){return yl(Ee).kind===267}function ec(Ee,Y,pt){const qt=j,fn=N;Yi(Y)&&(N=Y),G&2&&$s(Y)&&(j|=2),G&8&&Ra(Y)&&(j|=8),A(Ee,Y,pt),j=qt,N=fn}function bf(Ee,Y){return Y=R(Ee,Y),Ee===1?fa(Y):Ud(Y)?Lo(Y):Y}function Lo(Ee){if(G&2){const Y=Ee.name,pt=qa(Y);if(pt){if(Ee.objectAssignmentInitializer){const qt=t.createAssignment(pt,Ee.objectAssignmentInitializer);return bt(t.createPropertyAssignment(Y,qt),Ee)}return bt(t.createPropertyAssignment(Y,pt),Ee)}}return Ee}function fa(Ee){switch(Ee.kind){case 80:return is(Ee);case 212:return Zt(Ee);case 213:return As(Ee)}return Ee}function is(Ee){return qa(Ee)||Ee}function qa(Ee){if(G&j&&!fl(Ee)&&!my(Ee)){const Y=u.getReferencedExportContainer(Ee,!1);if(Y&&Y.kind!==308&&(j&2&&Y.kind===268||j&8&&Y.kind===267))return bt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Y),Ee),Ee)}}function Zt(Ee){return lc(Ee)}function As(Ee){return lc(Ee)}function Hl(Ee){return Ee.replace(/\*\//g,"*_/")}function lc(Ee){const Y=vd(Ee);if(Y!==void 0){iie(Ee,Y);const pt=typeof Y=="string"?t.createStringLiteral(Y):Y<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Y)):t.createNumericLiteral(Y);if(!d.removeComments){const qt=yl(Ee,Ks);OM(pt,3,` ${Hl(Al(qt))} `)}return pt}return Ee}function vd(Ee){if(!vm(d))return qr(Ee)||Ws(Ee)?u.getConstantValue(Ee):void 0}function Fs(Ee){return d.verbatimModuleSyntax||Ir(Ee)||u.isReferencedAliasDeclaration(Ee)}}function Mae(e){const{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:u}=e,d=e.getEmitResolver(),g=e.getCompilerOptions(),h=Ga(g),y=Jk(g),E=!!g.experimentalDecorators,A=!y,R=y&&h<9,N=A||R,P=h<9,k=h<99?-1:y?0:3,F=h<9,O=F&&h>=2,G=N||P||k===-1,j=e.onSubstituteNode;e.onSubstituteNode=Hl;const J=e.onEmitNode;e.onEmitNode=As;let Z=!1,q=0,ye,ie,K,pe;const de=new Map,fe=new Set;let ve,xe,X=!1,Ce=!1;return hh(e,Je);function Je(Y){if(Y.isDeclarationFile||(pe=void 0,Z=!!(zm(Y)&32),!G&&!Z))return Y;const pt=wn(Y,re,e);return Ig(pt,e.readEmitHelpers()),pt}function Se(Y){switch(Y.kind){case 129:return At()?void 0:Y;default:return ni(Y,Aa)}}function re(Y){if(!(Y.transformFlags&16777216)&&!(Y.transformFlags&134234112))return Y;switch(Y.kind){case 264:return Kt(Y);case 232:return Oe(Y);case 176:case 173:return C.fail("Use `classElementVisitor` instead.");case 304:return We(Y);case 244:return at(Y);case 261:return Wt(Y);case 170:return cn(Y);case 209:return gn(Y);case 278:return Kn(Y);case 81:return je(Y);case 212:return $o(Y);case 213:return Ia(Y);case 225:case 226:return Pn(Y,!1);case 227:return it(Y,!1);case 218:return Lt(Y,!1);case 214:return le(Y);case 245:return ot(Y);case 216:return ht(Y);case 249:return Uo(Y);case 110:return B(Y);case 263:case 219:return zt(void 0,be,Y);case 177:case 175:case 178:case 179:return zt(Y,be,Y);default:return be(Y)}}function be(Y){return wn(Y,re,e)}function Ne(Y){switch(Y.kind){case 225:case 226:return Pn(Y,!0);case 227:return it(Y,!0);case 357:return dt(Y);case 218:return Lt(Y,!0);default:return re(Y)}}function Be(Y){switch(Y.kind){case 299:return wn(Y,Be,e);case 234:return Ot(Y);default:return re(Y)}}function lt(Y){switch(Y.kind){case 211:case 210:return Zt(Y);default:return re(Y)}}function ce(Y){switch(Y.kind){case 177:return zt(Y,or,Y);case 178:case 179:case 175:return zt(Y,co,Y);case 173:return zt(Y,mn,Y);case 176:return zt(Y,he,Y);case 168:return en(Y);case 241:return Y;default:return ml(Y)?Se(Y):re(Y)}}function Re(Y){switch(Y.kind){case 168:return en(Y);default:return re(Y)}}function ge(Y){switch(Y.kind){case 173:return Ye(Y);case 178:case 179:return ce(Y);default:C.assertMissingNode(Y,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function je(Y){return!P||Gi(Y.parent)?Y:jr(t.createIdentifier(""),Y)}function Ge(Y){const pt=Go(Y.left);if(pt){const qt=st(Y.right,re,St);return jr(r().createClassPrivateFieldInHelper(pt.brandCheckIdentifier,qt),Y)}return wn(Y,re,e)}function We(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),wn(Y,re,e)}function at(Y){const pt=K;K=[];const qt=wn(Y,re,e),fn=vt(K)?[qt,...K]:qt;return K=pt,fn}function Wt(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),wn(Y,re,e)}function cn(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),wn(Y,re,e)}function gn(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),wn(Y,re,e)}function Kn(Y){return Lp(Y,Fe)&&(Y=zp(e,Y,!0,Y.isExportEquals?"":"default")),wn(Y,re,e)}function gt(Y){return vt(ie)&&(Ou(Y)?(ie.push(Y.expression),Y=t.updateParenthesizedExpression(Y,t.inlineExpressions(ie))):(ie.push(Y),Y=t.inlineExpressions(ie)),ie=void 0),Y}function en(Y){const pt=st(Y.expression,re,St);return t.updateComputedPropertyName(Y,gt(pt))}function or(Y){return ve?xt(Y,ve):be(Y)}function Di(Y){return!!(P||wc(Y)&&zm(Y)&32)}function co(Y){if(C.assert(!pf(Y)),!nu(Y)||!Di(Y))return wn(Y,ce,e);const pt=Go(Y.name);if(C.assert(pt,"Undeclared private name for property declaration."),!pt.isValid)return Y;const qt=Zr(Y);qt&&kn().push(t.createAssignment(qt,t.createFunctionExpression(Vn(Y.modifiers,fn=>Aa(fn)&&!jI(fn)&&!vj(fn)),Y.asteriskToken,qt,void 0,Fl(Y.parameters,re,e),void 0,gf(Y.body,re,e))))}function zt(Y,pt,qt){if(Y!==xe){const fn=xe;xe=Y;const ur=pt(qt);return xe=fn,ur}return pt(qt)}function Zr(Y){C.assert(eo(Y.name));const pt=Go(Y.name);if(C.assert(pt,"Undeclared private name for property declaration."),pt.kind==="m")return pt.methodName;if(pt.kind==="a"){if(pg(Y))return pt.getterName;if(jh(Y))return pt.setterName}}function Ai(){const Y=En();return Y.classThis??Y.classConstructor??(ve==null?void 0:ve.name)}function Ni(Y){const pt=e_(Y),qt=lv(Y),fn=Y.name;let ur=fn,si=fn;if(va(fn)&&!B_(fn.expression)){const Qs=w4(fn);if(Qs)ur=t.updateComputedPropertyName(fn,st(fn.expression,re,St)),si=t.updateComputedPropertyName(fn,Qs.left);else{const Sc=t.createTempVariable(i);Ua(Sc,fn.expression);const mc=st(fn.expression,re,St),Hs=t.createAssignment(Sc,mc);Ua(Hs,fn.expression),ur=t.updateComputedPropertyName(fn,Hs),si=t.updateComputedPropertyName(fn,Sc)}}const Dr=Xn(Y.modifiers,Se,Aa),zn=qj(t,Y,Dr,Y.initializer);jr(zn,Y),Cr(zn,3072),Ua(zn,qt);const ro=ua(Y)?Ai()??t.createThis():t.createThis(),Eo=roe(t,Y,Dr,ur,ro);jr(Eo,Y),Rc(Eo,pt),Ua(Eo,qt);const Ns=t.createModifiersFromModifierFlags(Yh(Dr)),Da=ioe(t,Y,Ns,si,ro);return jr(Da,Y),Cr(Da,3072),Ua(Da,qt),sP([zn,Eo,Da],ge,bc)}function Pr(Y){if(Di(Y)){const pt=Go(Y.name);if(C.assert(pt,"Undeclared private name for property declaration."),!pt.isValid)return Y;if(pt.isStatic&&!P){const qt=Gt(Y,t.createThis());if(qt)return t.createClassStaticBlockDeclaration(t.createBlock([qt],!0))}return}return A&&!ua(Y)&&(pe!=null&&pe.data)&&pe.data.facts&16?t.updatePropertyDeclaration(Y,Xn(Y.modifiers,re,ml),Y.name,void 0,void 0,void 0):(Lp(Y,Fe)&&(Y=zp(e,Y)),t.updatePropertyDeclaration(Y,Xn(Y.modifiers,Se,Aa),st(Y.name,Re,vc),void 0,void 0,st(Y.initializer,re,St)))}function Ci(Y){if(N&&!Yu(Y)){const pt=In(Y.name,!!Y.initializer||y);if(pt&&kn().push(...ooe(pt)),ua(Y)&&!P){const qt=Gt(Y,t.createThis());if(qt){const fn=t.createClassStaticBlockDeclaration(t.createBlock([qt]));return jr(fn,Y),Rc(fn,Y),Rc(qt,{pos:-1,end:-1}),JT(qt,void 0),FI(qt,void 0),fn}}return}return t.updatePropertyDeclaration(Y,Xn(Y.modifiers,Se,Aa),st(Y.name,Re,vc),void 0,void 0,st(Y.initializer,re,St))}function Ye(Y){return C.assert(!pf(Y),"Decorators should already have been transformed and elided."),nu(Y)?Pr(Y):Ci(Y)}function At(){return k===-1||k===3&&!!(pe!=null&&pe.data)&&!!(pe.data.facts&16)}function mn(Y){return Yu(Y)&&(At()||wc(Y)&&zm(Y)&32)?Ni(Y):Ye(Y)}function dr(){return!!xe&&wc(xe)&&fb(xe)&&Yu(yl(xe))}function ri(Y){if(dr()){const pt=Ul(Y);pt.kind===110&&fe.add(pt)}}function ai(Y,pt){return pt=st(pt,re,St),ri(pt),Hi(Y,pt)}function Hi(Y,pt){switch(Rc(pt,UT(pt,-1)),Y.kind){case"a":return r().createClassPrivateFieldGetHelper(pt,Y.brandCheckIdentifier,Y.kind,Y.getterName);case"m":return r().createClassPrivateFieldGetHelper(pt,Y.brandCheckIdentifier,Y.kind,Y.methodName);case"f":return r().createClassPrivateFieldGetHelper(pt,Y.brandCheckIdentifier,Y.kind,Y.isStatic?Y.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(Y,"Unknown private element type")}}function $o(Y){if(eo(Y.name)){const pt=Go(Y.name);if(pt)return bt(jr(ai(pt,Y.expression),Y),Y)}if(O&&xe&&mp(Y)&&He(Y.name)&&fP(xe)&&(pe!=null&&pe.data)){const{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt(Y);if(pt&&qt){const ur=t.createReflectGetCall(qt,t.createStringLiteralFromNode(Y.name),pt);return jr(ur,Y.expression),bt(ur,Y.expression),ur}}return wn(Y,re,e)}function Ia(Y){if(O&&xe&&mp(Y)&&fP(xe)&&(pe!=null&&pe.data)){const{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt(Y);if(pt&&qt){const ur=t.createReflectGetCall(qt,st(Y.argumentExpression,re,St),pt);return jr(ur,Y.expression),bt(ur,Y.expression),ur}}return wn(Y,re,e)}function Pn(Y,pt){if(Y.operator===46||Y.operator===47){const qt=us(Y.operand);if(zR(qt)){let fn;if(fn=Go(qt.name)){const ur=st(qt.expression,re,St);ri(ur);const{readExpression:si,initializeExpression:Dr}=Ft(ur);let zn=ai(fn,si);const ro=YT(Y)||pt?void 0:t.createTempVariable(i);return zn=C4(t,Y,zn,i,ro),zn=Ue(fn,Dr||si,zn,64),jr(zn,Y),bt(zn,Y),ro&&(zn=t.createComma(zn,ro),bt(zn,Y)),zn}}else if(O&&xe&&mp(qt)&&fP(xe)&&(pe!=null&&pe.data)){const{classConstructor:fn,superClassReference:ur,facts:si}=pe.data;if(si&1){const Dr=Qt(qt);return YT(Y)?t.updatePrefixUnaryExpression(Y,Dr):t.updatePostfixUnaryExpression(Y,Dr)}if(fn&&ur){let Dr,zn;if(qr(qt)?He(qt.name)&&(zn=Dr=t.createStringLiteralFromNode(qt.name)):B_(qt.argumentExpression)?zn=Dr=qt.argumentExpression:(zn=t.createTempVariable(i),Dr=t.createAssignment(zn,st(qt.argumentExpression,re,St))),Dr&&zn){let ro=t.createReflectGetCall(ur,zn,fn);bt(ro,qt);const Eo=pt?void 0:t.createTempVariable(i);return ro=C4(t,Y,ro,i,Eo),ro=t.createReflectSetCall(ur,Dr,ro,fn),jr(ro,Y),bt(ro,Y),Eo&&(ro=t.createComma(ro,Eo),bt(ro,Y)),ro}}}}return wn(Y,re,e)}function Uo(Y){return t.updateForStatement(Y,st(Y.initializer,Ne,Of),st(Y.condition,re,St),st(Y.incrementor,Ne,St),Wu(Y.statement,re,e))}function ot(Y){return t.updateExpressionStatement(Y,st(Y.expression,Ne,St))}function Ft(Y){const pt=Os(Y)?Y:t.cloneNode(Y);if(Y.kind===110&&fe.has(Y)&&fe.add(pt),B_(Y))return{readExpression:pt,initializeExpression:void 0};const qt=t.createTempVariable(i),fn=t.createAssignment(qt,pt);return{readExpression:qt,initializeExpression:fn}}function le(Y){var pt;if(zR(Y.expression)&&Go(Y.expression.name)){const{thisArg:qt,target:fn}=t.createCallBinding(Y.expression,i,h);return XE(Y)?t.updateCallChain(Y,t.createPropertyAccessChain(st(fn,re,St),Y.questionDotToken,"call"),void 0,void 0,[st(qt,re,St),...Xn(Y.arguments,re,St)]):t.updateCallExpression(Y,t.createPropertyAccessExpression(st(fn,re,St),"call"),void 0,[st(qt,re,St),...Xn(Y.arguments,re,St)])}if(O&&xe&&mp(Y.expression)&&fP(xe)&&((pt=pe==null?void 0:pe.data)!=null&&pt.classConstructor)){const qt=t.createFunctionCallCall(st(Y.expression,re,St),pe.data.classConstructor,Xn(Y.arguments,re,St));return jr(qt,Y),bt(qt,Y),qt}return wn(Y,re,e)}function ht(Y){var pt;if(zR(Y.tag)&&Go(Y.tag.name)){const{thisArg:qt,target:fn}=t.createCallBinding(Y.tag,i,h);return t.updateTaggedTemplateExpression(Y,t.createCallExpression(t.createPropertyAccessExpression(st(fn,re,St),"bind"),void 0,[st(qt,re,St)]),void 0,st(Y.template,re,lI))}if(O&&xe&&mp(Y.tag)&&fP(xe)&&((pt=pe==null?void 0:pe.data)!=null&&pt.classConstructor)){const qt=t.createFunctionBindCall(st(Y.tag,re,St),pe.data.classConstructor,[]);return jr(qt,Y),bt(qt,Y),t.updateTaggedTemplateExpression(Y,qt,void 0,st(Y.template,re,lI))}return wn(Y,re,e)}function ne(Y){if(pe&&de.set(yl(Y),pe),P){if(pP(Y)){const fn=st(Y.body.statements[0].expression,re,St);return id(fn,!0)&&fn.left===fn.right?void 0:fn}if(lx(Y))return st(Y.body.statements[0].expression,re,St);s();let pt=zt(Y,fn=>Xn(fn,re,Gi),Y.body.statements);pt=t.mergeLexicalEnvironment(pt,o());const qt=t.createImmediatelyInvokedArrowFunction(pt);return jr(us(qt.expression),Y),Zh(us(qt.expression),4),jr(qt,Y),bt(qt,Y),qt}}function Fe(Y){if(uc(Y)&&!Y.name){const pt=g3(Y);return vt(pt,lx)?!1:(P||!!zm(Y))&&vt(pt,fn=>Ql(fn)||nu(fn)||N&&Hw(fn))}return!1}function it(Y,pt){if(rv(Y)){const qt=ie;ie=void 0,Y=t.updateBinaryExpression(Y,st(Y.left,lt,St),Y.operatorToken,st(Y.right,re,St));const fn=vt(ie)?t.inlineExpressions(m2([...ie,Y])):Y;return ie=qt,fn}if(id(Y)){Lp(Y,Fe)&&(Y=zp(e,Y),C.assertNode(Y,id));const qt=Ul(Y.left,9);if(zR(qt)){const fn=Go(qt.name);if(fn)return bt(jr(Ue(fn,qt.expression,Y.right,Y.operatorToken.kind),Y),Y)}else if(O&&xe&&mp(Y.left)&&fP(xe)&&(pe!=null&&pe.data)){const{classConstructor:fn,superClassReference:ur,facts:si}=pe.data;if(si&1)return t.updateBinaryExpression(Y,Qt(Y.left),Y.operatorToken,st(Y.right,re,St));if(fn&&ur){let Dr=Ws(Y.left)?st(Y.left.argumentExpression,re,St):He(Y.left.name)?t.createStringLiteralFromNode(Y.left.name):void 0;if(Dr){let zn=st(Y.right,re,St);if(cP(Y.operatorToken.kind)){let Eo=Dr;B_(Dr)||(Eo=t.createTempVariable(i),Dr=t.createAssignment(Eo,Dr));const Ns=t.createReflectGetCall(ur,Eo,fn);jr(Ns,Y.left),bt(Ns,Y.left),zn=t.createBinaryExpression(Ns,dP(Y.operatorToken.kind),zn),bt(zn,Y)}const ro=pt?void 0:t.createTempVariable(i);return ro&&(zn=t.createAssignment(ro,zn),bt(ro,Y)),zn=t.createReflectSetCall(ur,Dr,zn,fn),jr(zn,Y),bt(zn,Y),ro&&(zn=t.createComma(zn,ro),bt(zn,Y)),zn}}}}return _qe(Y)?Ge(Y):wn(Y,re,e)}function dt(Y,pt){const qt=f3(Y.elements,Ne);return t.updateCommaListExpression(Y,qt)}function Lt(Y,pt){const qt=pt?Ne:re,fn=st(Y.expression,qt,St);return t.updateParenthesizedExpression(Y,fn)}function Ue(Y,pt,qt,fn){if(pt=st(pt,re,St),qt=st(qt,re,St),ri(pt),cP(fn)){const{readExpression:ur,initializeExpression:si}=Ft(pt);pt=si||ur,qt=t.createBinaryExpression(Hi(Y,ur),dP(fn),qt)}switch(Rc(pt,UT(pt,-1)),Y.kind){case"a":return r().createClassPrivateFieldSetHelper(pt,Y.brandCheckIdentifier,qt,Y.kind,Y.setterName);case"m":return r().createClassPrivateFieldSetHelper(pt,Y.brandCheckIdentifier,qt,Y.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(pt,Y.brandCheckIdentifier,qt,Y.kind,Y.isStatic?Y.variableName:void 0);case"untransformed":return C.fail("Access helpers should not be created for untransformed private elements");default:C.assertNever(Y,"Unknown private element type")}}function Rt(Y){return Vn(Y.members,vae)}function It(Y){var pt;let qt=0;const fn=yl(Y);ui(fn)&&tv(E,fn)&&(qt|=1),P&&(YU(Y)||b3(Y))&&(qt|=2);let ur=!1,si=!1,Dr=!1,zn=!1;for(const Eo of Y.members)ua(Eo)?((Eo.name&&(eo(Eo.name)||Yu(Eo))&&P||Yu(Eo)&&k===-1&&!Y.name&&!((pt=Y.emitNode)!=null&&pt.classThis))&&(qt|=2),(Po(Eo)||Ql(Eo))&&(F&&Eo.transformFlags&16384&&(qt|=8,qt&1||(qt|=2)),O&&Eo.transformFlags&134217728&&(qt&1||(qt|=6)))):LS(yl(Eo))||(Yu(Eo)?(zn=!0,Dr||(Dr=nu(Eo))):nu(Eo)?(Dr=!0,d.hasNodeCheckFlag(Eo,262144)&&(qt|=2)):Po(Eo)&&(ur=!0,si||(si=!!Eo.initializer)));return(R&&ur||A&&si||P&&Dr||P&&zn&&k===-1)&&(qt|=16),qt}function Ot(Y){var pt;if((((pt=pe==null?void 0:pe.data)==null?void 0:pt.facts)||0)&4){const fn=t.createTempVariable(i,!0);return En().superClassReference=fn,t.updateExpressionWithTypeArguments(Y,t.createAssignment(fn,st(Y.expression,re,St)),void 0)}return wn(Y,re,e)}function nt(Y,pt){var qt;const fn=ve,ur=ie,si=pe;ve=Y,ie=void 0,yn();const Dr=zm(Y)&32;if(P||Dr){const Eo=Oo(Y);if(Eo&&He(Eo))xn().data.className=Eo;else if((qt=Y.emitNode)!=null&&qt.assignedName&&wa(Y.emitNode.assignedName)){if(Y.emitNode.assignedName.textSourceNode&&He(Y.emitNode.assignedName.textSourceNode))xn().data.className=Y.emitNode.assignedName.textSourceNode;else if(fp(Y.emitNode.assignedName.text,h)){const Ns=t.createIdentifier(Y.emitNode.assignedName.text);xn().data.className=Ns}}}if(P){const Eo=Rt(Y);vt(Eo)&&(xn().data.weakSetName=Ps("instances",Eo[0].name))}const zn=It(Y);zn&&(En().facts=zn),zn&8&&Mt();const ro=pt(Y,zn);return wt(),C.assert(pe===si),ve=fn,ie=ur,ro}function Kt(Y){return nt(Y,Tr)}function Tr(Y,pt){var qt,fn;let ur;if(pt&2)if(P&&((qt=Y.emitNode)!=null&&qt.classThis))En().classConstructor=Y.emitNode.classThis,ur=t.createAssignment(Y.emitNode.classThis,t.getInternalName(Y));else{const Hs=t.createTempVariable(i,!0);En().classConstructor=t.cloneNode(Hs),ur=t.createAssignment(Hs,t.getInternalName(Y))}(fn=Y.emitNode)!=null&&fn.classThis&&(En().classThis=Y.emitNode.classThis);const si=d.hasNodeCheckFlag(Y,262144),Dr=di(Y,32),zn=di(Y,2048);let ro=Xn(Y.modifiers,Se,Aa);const Eo=Xn(Y.heritageClauses,Be,Fp),{members:Ns,prologue:Da}=Ae(Y),Qs=[];if(ur&&kn().unshift(ur),vt(ie)&&Qs.push(t.createExpressionStatement(t.inlineExpressions(ie))),A||P||zm(Y)&32){const Hs=g3(Y);vt(Hs)&&yt(Qs,Hs,t.getInternalName(Y))}Qs.length>0&&Dr&&zn&&(ro=Xn(ro,Hs=>xw(Hs)?void 0:Hs,Aa),Qs.push(t.createExportAssignment(void 0,!1,t.getLocalName(Y,!1,!0))));const Sc=En().classConstructor;si&&Sc&&(ft(),ye[Fu(Y)]=Sc);const mc=t.updateClassDeclaration(Y,ro,Y.name,void 0,Eo,Ns);return Qs.unshift(mc),Da&&Qs.unshift(t.createExpressionStatement(Da)),Qs}function Oe(Y){return nt(Y,Nt)}function Nt(Y,pt){var qt,fn,ur;const si=!!(pt&1),Dr=g3(Y),zn=d.hasNodeCheckFlag(Y,262144),ro=d.hasNodeCheckFlag(Y,32768);let Eo;function Ns(){var Pd;if(P&&((Pd=Y.emitNode)!=null&&Pd.classThis))return En().classConstructor=Y.emitNode.classThis;const nf=t.createTempVariable(ro?u:i,!0);return En().classConstructor=t.cloneNode(nf),nf}(qt=Y.emitNode)!=null&&qt.classThis&&(En().classThis=Y.emitNode.classThis),pt&2&&(Eo??(Eo=Ns()));const Da=Xn(Y.modifiers,Se,Aa),Qs=Xn(Y.heritageClauses,Be,Fp),{members:Sc,prologue:mc}=Ae(Y),Hs=t.updateClassExpression(Y,Da,Y.name,void 0,Qs,Sc),Pl=[];if(mc&&Pl.push(mc),(P||zm(Y)&32)&&vt(Dr,Pd=>Ql(Pd)||nu(Pd)||N&&Hw(Pd))||vt(ie))if(si)C.assertIsDefined(K,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),vt(ie)&&Xr(K,Bt(ie,t.createExpressionStatement)),vt(Dr)&&yt(K,Dr,((fn=Y.emitNode)==null?void 0:fn.classThis)??t.getInternalName(Y)),Eo?Pl.push(t.createAssignment(Eo,Hs)):P&&((ur=Y.emitNode)!=null&&ur.classThis)?Pl.push(t.createAssignment(Y.emitNode.classThis,Hs)):Pl.push(Hs);else{if(Eo??(Eo=Ns()),zn){ft();const Pd=t.cloneNode(Eo);Pd.emitNode.autoGenerate.flags&=-9,ye[Fu(Y)]=Pd}Pl.push(t.createAssignment(Eo,Hs)),Xr(Pl,ie),Xr(Pl,gr(Dr,Eo)),Pl.push(t.cloneNode(Eo))}else Pl.push(Hs);return Pl.length>1&&(Zh(Hs,131072),Pl.forEach(au)),t.inlineExpressions(Pl)}function he(Y){if(!P)return wn(Y,re,e)}function B(Y){if(F&&xe&&Ql(xe)&&(pe!=null&&pe.data)){const{classThis:pt,classConstructor:qt}=pe.data;return pt??qt??Y}return Y}function Ae(Y){const pt=!!(zm(Y)&32);if(P||Z){for(const Dr of Y.members)if(nu(Dr))if(Di(Dr))xl(Dr,Dr.name,ln);else{const zn=xn();k1(zn,Dr.name,{kind:"untransformed"})}if(P&&vt(Rt(Y))&&te(),At()){for(const Dr of Y.members)if(Yu(Dr)){const zn=t.getGeneratedPrivateNameForNode(Dr.name,void 0,"_accessor_storage");if(P||pt&&wc(Dr))xl(Dr,zn,Ii);else{const ro=xn();k1(ro,zn,{kind:"untransformed"})}}}}let qt=Xn(Y.members,ce,bc),fn;vt(qt,Ml)||(fn=xt(void 0,Y));let ur,si;if(!P&&vt(ie)){let Dr=t.createExpressionStatement(t.inlineExpressions(ie));if(Dr.transformFlags&134234112){const ro=t.createTempVariable(i),Eo=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Dr]));ur=t.createAssignment(ro,Eo),Dr=t.createExpressionStatement(t.createCallExpression(ro,void 0,[]))}const zn=t.createBlock([Dr]);si=t.createClassStaticBlockDeclaration(zn),ie=void 0}if(fn||si){let Dr;const zn=hn(qt,pP),ro=hn(qt,lx);Dr=Un(Dr,zn),Dr=Un(Dr,ro),Dr=Un(Dr,fn),Dr=Un(Dr,si);const Eo=zn||ro?Vn(qt,Ns=>Ns!==zn&&Ns!==ro):qt;Dr=Xr(Dr,Eo),qt=bt(t.createNodeArray(Dr),Y.members)}return{members:qt,prologue:ur}}function te(){const{weakSetName:Y}=xn().data;C.assert(Y,"weakSetName should be set in private identifier environment"),kn().push(t.createAssignment(Y,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function xt(Y,pt){if(Y=st(Y,re,Ml),!(pe!=null&&pe.data)||!(pe.data.facts&16))return Y;const qt=lh(pt),fn=!!(qt&&Ul(qt.expression).kind!==106),ur=Fl(Y?Y.parameters:void 0,re,e),si=Pe(pt,Y,fn);return si?Y?(C.assert(ur),t.updateConstructorDeclaration(Y,void 0,ur,si)):au(jr(bt(t.createConstructorDeclaration(void 0,ur??[],si),Y||pt),Y)):Y}function Xt(Y,pt,qt,fn,ur,si,Dr){const zn=fn[ur],ro=pt[zn];if(Xr(Y,Xn(pt,re,Gi,qt,zn-qt)),qt=zn+1,A1(ro)){const Eo=[];Xt(Eo,ro.tryBlock.statements,0,fn,ur+1,si,Dr);const Ns=t.createNodeArray(Eo);bt(Ns,ro.tryBlock.statements),Y.push(t.updateTryStatement(ro,t.updateBlock(ro.tryBlock,Eo),st(ro.catchClause,re,HS),st(ro.finallyBlock,re,ea)))}else{for(Xr(Y,Xn(pt,re,Gi,zn,1));qt!!mc.initializer||eo(mc.name)||Xh(mc)));const Dr=Rt(Y),zn=vt(si)||vt(Dr);if(!pt&&!zn)return gf(void 0,re,e);l();const ro=!pt&&qt;let Eo=0,Ns=[];const Da=[],Qs=t.createThis();if(jt(Da,Dr,Qs),pt){const mc=Vn(ur,Pl=>Np(yl(Pl),pt)),Hs=Vn(si,Pl=>!Np(yl(Pl),pt));yt(Da,mc,Qs),yt(Da,Hs,Qs)}else yt(Da,si,Qs);if(pt!=null&&pt.body){Eo=t.copyPrologue(pt.body.statements,Ns,!1,re);const mc=_3(pt.body.statements,Eo);if(mc.length)Xt(Ns,pt.body.statements,Eo,mc,0,Da,pt);else{for(;Eo=Ns.length?pt.body.multiLine??Ns.length>0:Ns.length>0;return bt(t.createBlock(bt(t.createNodeArray(Ns),((fn=pt==null?void 0:pt.body)==null?void 0:fn.statements)??Y.members),Sc),pt==null?void 0:pt.body)}function yt(Y,pt,qt){for(const fn of pt){if(ua(fn)&&!P)continue;const ur=Gt(fn,qt);ur&&Y.push(ur)}}function Gt(Y,pt){const qt=Ql(Y)?zt(Y,ne,Y):nr(Y,pt);if(!qt)return;const fn=t.createExpressionStatement(qt);jr(fn,Y),Zh(fn,Qa(Y)&3072),Rc(fn,Y);const ur=yl(Y);return to(ur)?(Ua(fn,ur),cw(fn)):Ua(fn,$h(Y)),JT(qt,void 0),FI(qt,void 0),Xh(ur)&&Zh(fn,3072),fn}function gr(Y,pt){const qt=[];for(const fn of Y){const ur=Ql(fn)?zt(fn,ne,fn):zt(fn,()=>nr(fn,pt),void 0);ur&&(au(ur),jr(ur,fn),Zh(ur,Qa(fn)&3072),Ua(ur,$h(fn)),Rc(ur,fn),qt.push(ur))}return qt}function nr(Y,pt){var qt;const fn=xe,ur=Jn(Y,pt);return ur&&wc(Y)&&((qt=pe==null?void 0:pe.data)!=null&&qt.facts)&&(jr(ur,Y),Zh(ur,4),Ua(ur,lv(Y.name)),de.set(yl(Y),pe)),xe=fn,ur}function Jn(Y,pt){const qt=!y;Lp(Y,Fe)&&(Y=zp(e,Y));const fn=Xh(Y)?t.getGeneratedPrivateNameForNode(Y.name):va(Y.name)&&!B_(Y.name.expression)?t.updateComputedPropertyName(Y.name,t.getGeneratedNameForNode(Y.name)):Y.name;if(wc(Y)&&(xe=Y),eo(fn)&&Di(Y)){const Dr=Go(fn);if(Dr)return Dr.kind==="f"?Dr.isStatic?pqe(t,Dr.variableName,st(Y.initializer,re,St)):fqe(t,pt,st(Y.initializer,re,St),Dr.brandCheckIdentifier):void 0;C.fail("Undeclared private name for property declaration.")}if((eo(fn)||wc(Y))&&!Y.initializer)return;const ur=yl(Y);if(di(ur,64))return;let si=st(Y.initializer,re,St);if(Np(ur,ur.parent)&&He(fn)){const Dr=t.cloneNode(fn);si?(Ou(si)&&Sw(si.expression)&&WM(si.expression.left,"___runInitializers")&&KI(si.expression.right)&&np(si.expression.right.expression)&&(si=si.expression.left),si=t.inlineExpressions([si,Dr])):si=Dr,Cr(fn,3168),Ua(Dr,ur.name),Cr(Dr,3072)}else si??(si=t.createVoidZero());if(qt||eo(fn)){const Dr=C1(t,pt,fn,fn);return Zh(Dr,1024),t.createAssignment(Dr,si)}else{const Dr=va(fn)?fn.expression:He(fn)?t.createStringLiteral(Bi(fn.escapedText)):fn,zn=t.createPropertyDescriptor({value:si,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(pt,Dr,zn)}}function ft(){q&1||(q|=1,e.enableSubstitution(80),ye=[])}function Mt(){q&2||(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 jt(Y,pt,qt){if(!P||!vt(pt))return;const{weakSetName:fn}=xn().data;C.assert(fn,"weakSetName should be set in private identifier environment"),Y.push(t.createExpressionStatement(mqe(t,qt,fn)))}function Qt(Y){return qr(Y)?t.updatePropertyAccessExpression(Y,t.createVoidZero(),Y.name):t.updateElementAccessExpression(Y,t.createVoidZero(),st(Y.argumentExpression,re,St))}function In(Y,pt){if(va(Y)){const qt=w4(Y),fn=st(Y.expression,re,St),ur=Fm(fn),si=B_(ur);if(!(!!qt||id(ur)&&fl(ur.left))&&!si&&pt){const zn=t.getGeneratedNameForNode(Y);return d.hasNodeCheckFlag(Y,32768)?u(zn):i(zn),t.createAssignment(zn,fn)}return si||He(ur)?void 0:fn}}function yn(){pe={previous:pe,data:void 0}}function wt(){pe=pe==null?void 0:pe.previous}function En(){return C.assert(pe),pe.data??(pe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function xn(){return C.assert(pe),pe.privateEnv??(pe.privateEnv=Tae({className:void 0,weakSetName:void 0}))}function kn(){return ie??(ie=[])}function ln(Y,pt,qt,fn,ur,si,Dr){Yu(Y)?Bl(Y,pt,qt,fn,ur,si):Po(Y)?Ii(Y,pt,qt,fn,ur,si):Nl(Y)?ra(Y,pt,qt,fn,ur,si):Hf(Y)?la(Y,pt,qt,fn,ur,si,Dr):gp(Y)&&zo(Y,pt,qt,fn,ur,si,Dr)}function Ii(Y,pt,qt,fn,ur,si,Dr){if(ur){const zn=C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"),ro=uo(pt);k1(fn,pt,{kind:"f",isStatic:!0,brandCheckIdentifier:zn,variableName:ro,isValid:si})}else{const zn=uo(pt);k1(fn,pt,{kind:"f",isStatic:!1,brandCheckIdentifier:zn,isValid:si}),kn().push(t.createAssignment(zn,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function ra(Y,pt,qt,fn,ur,si,Dr){const zn=uo(pt),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");k1(fn,pt,{kind:"m",methodName:zn,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function la(Y,pt,qt,fn,ur,si,Dr){const zn=uo(pt,"_get"),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");(Dr==null?void 0:Dr.kind)==="a"&&Dr.isStatic===ur&&!Dr.getterName?Dr.getterName=zn:k1(fn,pt,{kind:"a",getterName:zn,setterName:void 0,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function zo(Y,pt,qt,fn,ur,si,Dr){const zn=uo(pt,"_set"),ro=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");(Dr==null?void 0:Dr.kind)==="a"&&Dr.isStatic===ur&&!Dr.setterName?Dr.setterName=zn:k1(fn,pt,{kind:"a",getterName:void 0,setterName:zn,brandCheckIdentifier:ro,isStatic:ur,isValid:si})}function Bl(Y,pt,qt,fn,ur,si,Dr){const zn=uo(pt,"_get"),ro=uo(pt,"_set"),Eo=ur?C.checkDefined(qt.classThis??qt.classConstructor,"classConstructor should be set in private identifier environment"):C.checkDefined(fn.data.weakSetName,"weakSetName should be set in private identifier environment");k1(fn,pt,{kind:"a",getterName:zn,setterName:ro,brandCheckIdentifier:Eo,isStatic:ur,isValid:si})}function xl(Y,pt,qt){const fn=En(),ur=xn(),si=XU(ur,pt),Dr=wc(Y),zn=!hqe(pt)&&si===void 0;qt(Y,pt,fn,ur,Dr,zn,si)}function Ps(Y,pt,qt){const{className:fn}=xn().data,ur=fn?{prefix:"_",node:fn,suffix:"_"}:"_",si=typeof Y=="object"?t.getGeneratedNameForNode(Y,24,ur,qt):typeof Y=="string"?t.createUniqueName(Y,16,ur,qt):t.createTempVariable(void 0,!0,ur,qt);return d.hasNodeCheckFlag(pt,32768)?u(si):i(si),si}function uo(Y,pt){const qt=UN(Y);return Ps((qt==null?void 0:qt.substring(1))??Y,Y,pt)}function Go(Y){const pt=Sae(pe,Y);return(pt==null?void 0:pt.kind)==="untransformed"?void 0:pt}function Tc(Y){const pt=t.getGeneratedNameForNode(Y),qt=Go(Y.name);if(!qt)return wn(Y,re,e);let fn=Y.expression;return(lk(Y)||mp(Y)||!XS(Y.expression))&&(fn=t.createTempVariable(i,!0),kn().push(t.createBinaryExpression(fn,64,st(Y.expression,re,St)))),t.createAssignmentTargetWrapper(pt,Ue(qt,fn,pt,64))}function $s(Y){if(Fa(Y)||Cd(Y))return Zt(Y);if(zR(Y))return Tc(Y);if(O&&xe&&mp(Y)&&fP(xe)&&(pe!=null&&pe.data)){const{classConstructor:pt,superClassReference:qt,facts:fn}=pe.data;if(fn&1)return Qt(Y);if(pt&&qt){const ur=Ws(Y)?st(Y.argumentExpression,re,St):He(Y.name)?t.createStringLiteralFromNode(Y.name):void 0;if(ur){const si=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(si,t.createReflectSetCall(qt,ur,si,pt))}}}return wn(Y,re,e)}function Ra(Y){if(Lp(Y,Fe)&&(Y=zp(e,Y)),id(Y,!0)){const pt=$s(Y.left),qt=st(Y.right,re,St);return t.updateBinaryExpression(Y,pt,Y.operatorToken,qt)}return $s(Y)}function ec(Y){if($u(Y.expression)){const pt=$s(Y.expression);return t.updateSpreadElement(Y,pt)}return wn(Y,re,e)}function bf(Y){if(V2(Y)){if(qf(Y))return ec(Y);if(!Jc(Y))return Ra(Y)}return wn(Y,re,e)}function Lo(Y){const pt=st(Y.name,re,vc);if(id(Y.initializer,!0)){const qt=Ra(Y.initializer);return t.updatePropertyAssignment(Y,pt,qt)}if($u(Y.initializer)){const qt=$s(Y.initializer);return t.updatePropertyAssignment(Y,pt,qt)}return wn(Y,re,e)}function fa(Y){return Lp(Y,Fe)&&(Y=zp(e,Y)),wn(Y,re,e)}function is(Y){if($u(Y.expression)){const pt=$s(Y.expression);return t.updateSpreadAssignment(Y,pt)}return wn(Y,re,e)}function qa(Y){return C.assertNode(Y,G2),Rg(Y)?is(Y):Ud(Y)?fa(Y):Cc(Y)?Lo(Y):wn(Y,re,e)}function Zt(Y){return Cd(Y)?t.updateArrayLiteralExpression(Y,Xn(Y.elements,bf,St)):t.updateObjectLiteralExpression(Y,Xn(Y.properties,qa,ry))}function As(Y,pt,qt){const fn=yl(pt),ur=de.get(fn);if(ur){const si=pe,Dr=Ce;pe=ur,Ce=X,X=!Ql(fn)||!(zm(fn)&32),J(Y,pt,qt),X=Ce,Ce=Dr,pe=si;return}switch(pt.kind){case 219:if(Xs(fn)||Qa(pt)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{const si=pe,Dr=Ce;pe=void 0,Ce=X,X=!1,J(Y,pt,qt),X=Ce,Ce=Dr,pe=si;return}case 168:{const si=pe,Dr=X;pe=pe==null?void 0:pe.previous,X=Ce,J(Y,pt,qt),X=Dr,pe=si;return}}J(Y,pt,qt)}function Hl(Y,pt){return pt=j(Y,pt),Y===1?lc(pt):pt}function lc(Y){switch(Y.kind){case 80:return Fs(Y);case 110:return vd(Y)}return Y}function vd(Y){if(q&2&&(pe!=null&&pe.data)&&!fe.has(Y)){const{facts:pt,classConstructor:qt,classThis:fn}=pe.data,ur=X?fn??qt:qt;if(ur)return bt(jr(t.cloneNode(ur),Y),Y);if(pt&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return Y}function Fs(Y){return Ee(Y)||Y}function Ee(Y){if(q&1&&d.hasNodeCheckFlag(Y,536870912)){const pt=d.getReferencedValueDeclaration(Y);if(pt){const qt=ye[pt.id];if(qt){const fn=t.cloneNode(qt);return Ua(fn,Y),Rc(fn,Y),fn}}}}}function pqe(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function fqe(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function mqe(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function hqe(e){return!$E(e)&&e.escapedText==="#constructor"}function _qe(e){return eo(e.left)&&e.operatorToken.kind===103}function gqe(e){return Po(e)&&wc(e)}function fP(e){return Ql(e)||gqe(e)}function Pae(e){const{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=Ga(o),l=Vd(o,"strictNullChecks");let u,d;return{serializeTypeNode:(ie,K)=>g(ie,N,K),serializeTypeOfNode:(ie,K,pe)=>g(ie,y,K,pe),serializeParameterTypesOfNode:(ie,K,pe)=>g(ie,E,K,pe),serializeReturnTypeOfNode:(ie,K)=>g(ie,R,K)};function g(ie,K,pe,de){const fe=u,ve=d;u=ie.currentLexicalScope,d=ie.currentNameScope;const xe=de===void 0?K(pe):K(pe,de);return u=fe,d=ve,xe}function h(ie,K){const pe=PS(K.members,ie);return pe.setAccessor&&Pne(pe.setAccessor)||pe.getAccessor&&kp(pe.getAccessor)}function y(ie,K){switch(ie.kind){case 173:case 170:return N(ie.type);case 179:case 178:return N(h(ie,K));case 264:case 232:case 175:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(ie,K){const pe=ui(ie)?vg(ie):Yo(ie)&&mm(ie.body)?ie:void 0,de=[];if(pe){const fe=A(pe,K),ve=fe.length;for(let xe=0;xefe.parent&&BS(fe.parent)&&(fe.parent.trueType===fe||fe.parent.falseType===fe)))return t.createIdentifier("Object");const pe=j(ie.typeName),de=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(de,pe),"function"),void 0,de,void 0,t.createIdentifier("Object"));case 1:return J(ie.typeName);case 2:return t.createVoidZero();case 4:return ye("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 ye("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(ie,K){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ie),t.createStringLiteral("undefined")),K)}function j(ie){if(ie.kind===80){const de=J(ie);return G(de,de)}if(ie.left.kind===80)return G(J(ie.left),J(ie));const K=j(ie.left),pe=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(K.left,t.createStrictInequality(t.createAssignment(pe,K.right),t.createVoidZero())),t.createPropertyAccessExpression(pe,ie.right))}function J(ie){switch(ie.kind){case 80:const K=ps(bt(i0.cloneNode(ie),ie),ie.parent);return K.original=void 0,ps(K,jo(u)),K;case 167:return Z(ie)}}function Z(ie){return t.createPropertyAccessExpression(J(ie.left),ie.right)}function q(ie){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ie),"function"),void 0,t.createIdentifier(ie),void 0,t.createIdentifier("Object"))}function ye(ie,K){return sxw(At)||Wc(At)?void 0:At,ml),Kn=$h(We),gt=Be(We),en=l<2?t.getInternalName(We,!1,!0):t.getLocalName(We,!1,!0),or=Xn(We.heritageClauses,y,Fp);let Di=Xn(We.members,y,bc),co=[];({members:Di,decorationStatements:co}=P(We,Di));const zt=l>=9&&!!gt&&vt(Di,At=>Po(At)&&di(At,256)||Ql(At));zt&&(Di=bt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(gt,t.createThis()))])),...Di]),Di));const Zr=t.createClassExpression(gn,at&&fl(at)?void 0:at,void 0,or,Di);jr(Zr,We),bt(Zr,Kn);const Ai=gt&&!zt?t.createAssignment(gt,Zr):Zr,Ni=t.createVariableDeclaration(en,void 0,void 0,Ai);jr(Ni,We);const Pr=t.createVariableDeclarationList([Ni],1),Ci=t.createVariableStatement(void 0,Pr);jr(Ci,We),bt(Ci,Kn),Rc(Ci,We);const Ye=[Ci];if(Xr(Ye,co),Ce(Ye,We),Wt)if(cn){const At=t.createExportDefault(en);Ye.push(At)}else{const At=t.createExternalModuleExport(t.getDeclarationName(We));Ye.push(At)}return Ye}function O(We){return t.updateClassExpression(We,Xn(We.modifiers,h,Aa),We.name,void 0,Xn(We.heritageClauses,y,Fp),Xn(We.members,y,bc))}function G(We){return t.updateConstructorDeclaration(We,Xn(We.modifiers,h,Aa),Xn(We.parameters,y,to),st(We.body,y,ea))}function j(We,at){return We!==at&&(Rc(We,at),Ua(We,$h(at))),We}function J(We){return j(t.updateMethodDeclaration(We,Xn(We.modifiers,h,Aa),We.asteriskToken,C.checkDefined(st(We.name,y,vc)),void 0,void 0,Xn(We.parameters,y,to),void 0,st(We.body,y,ea)),We)}function Z(We){return j(t.updateGetAccessorDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,vc)),Xn(We.parameters,y,to),void 0,st(We.body,y,ea)),We)}function q(We){return j(t.updateSetAccessorDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,vc)),Xn(We.parameters,y,to),st(We.body,y,ea)),We)}function ye(We){if(!(We.flags&33554432||di(We,128)))return j(t.updatePropertyDeclaration(We,Xn(We.modifiers,h,Aa),C.checkDefined(st(We.name,y,vc)),void 0,void 0,st(We.initializer,y,St)),We)}function ie(We){const at=t.updateParameterDeclaration(We,noe(t,We.modifiers),We.dotDotDotToken,C.checkDefined(st(We.name,y,QE)),void 0,void 0,st(We.initializer,y,St));return at!==We&&(Rc(at,We),bt(at,$h(We)),Ua(at,$h(We)),Cr(at.name,64)),at}function K(We){return WM(We.expression,"___metadata")}function pe(We){if(!We)return;const{false:at,true:Wt}=VB(We.decorators,K),cn=[];return Xr(cn,Bt(at,Se)),Xr(cn,Ki(We.parameters,re)),Xr(cn,Bt(Wt,Se)),cn}function de(We,at,Wt){Xr(We,Bt(xe(at,Wt),cn=>t.createExpressionStatement(cn)))}function fe(We,at,Wt){return uk(!0,We,Wt)&&at===ua(We)}function ve(We,at){return Vn(We.members,Wt=>fe(Wt,at,We))}function xe(We,at){const Wt=ve(We,at);let cn;for(const gn of Wt)cn=Un(cn,X(We,gn));return cn}function X(We,at){const Wt=y3(at,We,!0),cn=pe(Wt);if(!cn)return;const gn=ce(We,at),Kn=be(at,!di(at,128)),gt=Po(at)&&!Xh(at)?t.createVoidZero():t.createNull(),en=r().createDecorateHelper(cn,gn,Kn,gt);return Cr(en,3072),Ua(en,$h(at)),en}function Ce(We,at){const Wt=Je(at);Wt&&We.push(jr(t.createExpressionStatement(Wt),at))}function Je(We){const at=KU(We,!0),Wt=pe(at);if(!Wt)return;const cn=d&&d[Fu(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),Ua(gt,$h(We)),gt}function Se(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(Se(cn),at);bt(gn,cn.expression),Cr(gn,3072),Wt.push(gn)}}return Wt}function be(We,at){const Wt=We.name;return eo(Wt)?t.createIdentifier(""):va(Wt)?at&&!B_(Wt.expression)?t.getGeneratedNameForNode(Wt):Wt.expression:He(Wt)?t.createStringLiteral(Kr(Wt)):t.cloneNode(Wt)}function Ne(){d||(e.enableSubstitution(80),d=[])}function Be(We){if(o.hasNodeCheckFlag(We,262144)){Ne();const at=t.createUniqueName(We.name&&!fl(We.name)?Kr(We.name):"default");return d[Fu(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 Re(We,at){return at=u(We,at),We===1?ge(at):at}function ge(We){switch(We.kind){case 80:return je(We)}return We}function je(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 Ua(cn,We),Rc(cn,We),cn}}}}}function kae(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=Ga(e.getCompilerOptions());let u,d,g,h,y,E;return hh(e,A);function A(B){u=void 0,E=!1;const Ae=wn(B,q,e);return Ig(Ae,e.readEmitHelpers()),E&&(_1(Ae,32),E=!1),Ae}function R(){switch(d=void 0,g=void 0,h=void 0,u==null?void 0:u.kind){case"class":d=u.classInfo;break;case"class-element":d=u.next.classInfo,g=u.classThis,h=u.classSuper;break;case"name":const B=u.next.next.next;(B==null?void 0:B.kind)==="class-element"&&(d=B.next.classInfo,g=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==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,R()}function k(B){var Ae,te;C.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(Ql(B)||Po(B)&&wc(B))&&(u.classThis=(Ae=u.next.classInfo)==null?void 0:Ae.classThis,u.classSuper=(te=u.next.classInfo)==null?void 0:te.classSuper),R()}function F(){var B;C.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),C.assert(((B=u.next)==null?void 0:B.kind)==="class","Incorrect value for top.next.kind.",()=>{var Ae;return`Expected top.next.kind to be 'class' but got '${(Ae=u.next)==null?void 0:Ae.kind}' instead.`}),u=u.next,R()}function O(){C.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},R()}function G(){C.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,R()}function j(){(u==null?void 0: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==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0: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)||!!g&&!!(B.transformFlags&16384)||!!g&&!!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 Je(B);case 232:return Se(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 co(B,!1);case 304:return Ci(B);case 261:return Ye(B);case 209:return At(B);case 278:return ot(B);case 110:return We(B);case 249:return or(B);case 245:return Di(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 Ae=wn(B,ye,e);return J(),Ae}default:return wn(B,ye,e)}}function ye(B){switch(B.kind){case 171:return;default:return q(B)}}function ie(B){switch(B.kind){case 171:return;default:return B}}function K(B){switch(B.kind){case 177:return Ne(B);case 175:return ce(B);case 178:return Re(B);case 179:return ge(B);case 173:return Ge(B);case 176:return je(B);default:return q(B)}}function pe(B){switch(B.kind){case 225:case 226:return zt(B,!0);case 227:return co(B,!0);case 357:return Zr(B,!0);case 218:return Ft(B,!0);default:return q(B)}}function de(B){let Ae=B.name&&He(B.name)&&!fl(B.name)?Kr(B.name):B.name&&eo(B.name)&&!fl(B.name)?Kr(B.name).slice(1):B.name&&wa(B.name)&&fp(B.name.text,99)?B.name.text:ui(B)?"class":"member";return pg(B)&&(Ae=`get_${Ae}`),jh(B)&&(Ae=`set_${Ae}`),B.name&&eo(B.name)&&(Ae=`private_${Ae}`),ua(B)&&(Ae=`static_${Ae}`),"_"+Ae}function fe(B,Ae){return t.createUniqueName(`${de(B)}_${Ae}`,24)}function ve(B,Ae){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(B,void 0,void 0,Ae)],1))}function xe(B){const Ae=t.createUniqueName("_metadata",48);let te,xt,Xt=!1,Pe=!1,yt=!1,Gt,gr,nr;if(YR(!1,B)){const Jn=vt(B.members,ft=>(nu(ft)||Yu(ft))&&wc(ft));Gt=t.createUniqueName("_classThis",Jn?24:48)}for(const Jn of B.members){if(sI(Jn)&&uk(!1,Jn,B))if(wc(Jn)){if(!xt){xt=t.createUniqueName("_staticExtraInitializers",48);const ft=r().createRunInitializersHelper(Gt??t.createThis(),xt);Ua(ft,B.name??cy(B)),gr??(gr=[]),gr.push(ft)}}else{if(!te){te=t.createUniqueName("_instanceExtraInitializers",48);const ft=r().createRunInitializersHelper(t.createThis(),te);Ua(ft,B.name??cy(B)),nr??(nr=[]),nr.push(ft)}te??(te=t.createUniqueName("_instanceExtraInitializers",48))}if(Ql(Jn)?lx(Jn)||(Xt=!0):Po(Jn)&&(wc(Jn)?Xt||(Xt=!!Jn.initializer||pf(Jn)):Pe||(Pe=!TG(Jn))),(nu(Jn)||Yu(Jn))&&wc(Jn)&&(yt=!0),xt&&te&&Xt&&Pe&&yt)break}return{class:B,classThis:Gt,metadataReference:Ae,instanceMethodExtraInitializersName:te,staticMethodExtraInitializersName:xt,hasStaticInitializers:Xt,hasNonAmbientInstanceFields:Pe,hasStaticPrivateClassElements:yt,pendingStaticInitializers:gr,pendingInstanceInitializers:nr}}function X(B){i(),!$U(B)&&tv(!1,B)&&(B=T3(e,B,t.createStringLiteral("")));const Ae=t.getLocalName(B,!1,!1,!0),te=xe(B),xt=[];let Xt,Pe,yt,Gt,gr=!1;const nr=it(KU(B,!1));nr&&(te.classDecoratorsName=t.createUniqueName("_classDecorators",48),te.classDescriptorName=t.createUniqueName("_classDescriptor",48),te.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),C.assertIsDefined(te.classThis),xt.push(ve(te.classDecoratorsName,t.createArrayLiteralExpression(nr)),ve(te.classDescriptorName),ve(te.classExtraInitializersName,t.createArrayLiteralExpression()),ve(te.classThis)),te.hasStaticPrivateClassElements&&(gr=!0,E=!0));const Jn=Dk(B.heritageClauses,96),ft=Jn&&Ac(Jn.types),Mt=ft&&st(ft.expression,q,St);if(Mt){te.classSuper=t.createUniqueName("_classSuper",48);const xn=Ul(Mt),kn=uc(xn)&&!xn.name||Us(xn)&&!xn.name||Xs(xn)?t.createComma(t.createNumericLiteral(0),Mt):Mt;xt.push(ve(te.classSuper,kn));const ln=t.updateExpressionWithTypeArguments(ft,te.classSuper,void 0),Ii=t.updateHeritageClause(Jn,[ln]);Gt=t.createNodeArray([Ii])}const jt=te.classThis??t.createThis();N(te),Xt=Un(Xt,Oe(te.metadataReference,te.classSuper));let Qt=B.members;if(Qt=Xn(Qt,xn=>Ml(xn)?xn:K(xn),bc),Qt=Xn(Qt,xn=>Ml(xn)?K(xn):xn,bc),y){let xn;for(let kn of y){kn=st(kn,function Ii(ra){if(!(ra.transformFlags&16384))return ra;switch(ra.kind){case 110:return xn||(xn=t.createUniqueName("_outerThis",16),xt.unshift(ve(xn,t.createThis()))),xn;default:return wn(ra,Ii,e)}},St);const ln=t.createExpressionStatement(kn);Xt=Un(Xt,ln)}y=void 0}if(P(),vt(te.pendingInstanceInitializers)&&!vg(B)){const xn=re(B,te);if(xn){const kn=lh(B),ln=!!(kn&&Ul(kn.expression).kind!==106),Ii=[];if(ln){const la=t.createSpreadElement(t.createIdentifier("arguments")),zo=t.createCallExpression(t.createSuper(),void 0,[la]);Ii.push(t.createExpressionStatement(zo))}Xr(Ii,xn);const ra=t.createBlock(Ii,!0);yt=t.createConstructorDeclaration(void 0,[],ra)}}if(te.staticMethodExtraInitializersName&&xt.push(ve(te.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),te.instanceMethodExtraInitializersName&&xt.push(ve(te.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),te.memberInfos&&Hc(te.memberInfos,(xn,kn)=>{ua(kn)&&(xt.push(ve(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(ve(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(ve(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(ve(xn.memberDescriptorName)))}),te.memberInfos&&Hc(te.memberInfos,(xn,kn)=>{ua(kn)||(xt.push(ve(xn.memberDecoratorsName)),xn.memberInitializersName&&xt.push(ve(xn.memberInitializersName,t.createArrayLiteralExpression())),xn.memberExtraInitializersName&&xt.push(ve(xn.memberExtraInitializersName,t.createArrayLiteralExpression())),xn.memberDescriptorName&&xt.push(ve(xn.memberDescriptorName)))}),Xt=Xr(Xt,te.staticNonFieldDecorationStatements),Xt=Xr(Xt,te.nonStaticNonFieldDecorationStatements),Xt=Xr(Xt,te.staticFieldDecorationStatements),Xt=Xr(Xt,te.nonStaticFieldDecorationStatements),te.classDescriptorName&&te.classDecoratorsName&&te.classExtraInitializersName&&te.classThis){Xt??(Xt=[]);const xn=t.createPropertyAssignment("value",jt),kn=t.createObjectLiteralExpression([xn]),ln=t.createAssignment(te.classDescriptorName,kn),Ii=t.createPropertyAccessExpression(jt,"name"),ra=r().createESDecorateHelper(t.createNull(),ln,te.classDecoratorsName,{kind:"class",name:Ii,metadata:te.metadataReference},t.createNull(),te.classExtraInitializersName),la=t.createExpressionStatement(ra);Ua(la,cy(B)),Xt.push(la);const zo=t.createPropertyAccessExpression(te.classDescriptorName,"value"),Bl=t.createAssignment(te.classThis,zo),xl=t.createAssignment(Ae,Bl);Xt.push(t.createExpressionStatement(xl))}if(Xt.push(Nt(jt,te.metadataReference)),vt(te.pendingStaticInitializers)){for(const xn of te.pendingStaticInitializers){const kn=t.createExpressionStatement(xn);Ua(kn,lv(xn)),Pe=Un(Pe,kn)}te.pendingStaticInitializers=void 0}if(te.classExtraInitializersName){const xn=r().createRunInitializersHelper(jt,te.classExtraInitializersName),kn=t.createExpressionStatement(xn);Ua(kn,B.name??cy(B)),Pe=Un(Pe,kn)}Xt&&Pe&&!te.hasStaticInitializers&&(Xr(Xt,Pe),Pe=void 0);const In=Xt&&t.createClassStaticBlockDeclaration(t.createBlock(Xt,!0));In&&gr&&dw(In,32);const yn=Pe&&t.createClassStaticBlockDeclaration(t.createBlock(Pe,!0));if(In||yt||yn){const xn=[],kn=Qt.findIndex(lx);In?(Xr(xn,Qt,0,kn+1),xn.push(In),Xr(xn,Qt,kn+1)):Xr(xn,Qt),yt&&xn.push(yt),yn&&xn.push(yn),Qt=bt(t.createNodeArray(xn),Qt)}const wt=o();let En;if(nr){En=t.createClassExpression(void 0,void 0,void 0,Gt,Qt),te.classThis&&(En=xae(t,En,te.classThis));const xn=t.createVariableDeclaration(Ae,void 0,void 0,En),kn=t.createVariableDeclarationList([xn]),ln=te.classThis?t.createAssignment(Ae,te.classThis):Ae;xt.push(t.createVariableStatement(void 0,kn),t.createReturnStatement(ln))}else En=t.createClassExpression(void 0,B.name,void 0,Gt,Qt),xt.push(t.createReturnStatement(En));if(gr){_1(En,32);for(const xn of En.members)(nu(xn)||Yu(xn))&&wc(xn)&&_1(xn,32)}return jr(En,B),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(xt,wt))}function Ce(B){return tv(!1,B)||KN(!1,B)}function Je(B){if(Ce(B)){const Ae=[],te=yl(B,ui)??B,xt=te.name?t.createStringLiteralFromNode(te.name):t.createStringLiteral("default"),Xt=di(B,32),Pe=di(B,2048);if(B.name||(B=T3(e,B,xt)),Xt&&Pe){const yt=X(B);if(B.name){const Gt=t.createVariableDeclaration(t.getLocalName(B),void 0,void 0,yt);jr(Gt,B);const gr=t.createVariableDeclarationList([Gt],1),nr=t.createVariableStatement(void 0,gr);Ae.push(nr);const Jn=t.createExportDefault(t.getDeclarationName(B));jr(Jn,B),Rc(Jn,e_(B)),Ua(Jn,cy(B)),Ae.push(Jn)}else{const Gt=t.createExportDefault(yt);jr(Gt,B),Rc(Gt,e_(B)),Ua(Gt,cy(B)),Ae.push(Gt)}}else{C.assertIsDefined(B.name,"A class declaration that is not a default export must have a name.");const yt=X(B),Gt=Xt?jt=>VI(jt)?void 0:ie(jt):ie,gr=Xn(B.modifiers,Gt,Aa),nr=t.getLocalName(B,!1,!0),Jn=t.createVariableDeclaration(nr,void 0,void 0,yt);jr(Jn,B);const ft=t.createVariableDeclarationList([Jn],1),Mt=t.createVariableStatement(gr,ft);if(jr(Mt,B),Rc(Mt,e_(B)),Ae.push(Mt),Xt){const jt=t.createExternalModuleExport(nr);jr(jt,B),Ae.push(jt)}}return x_(Ae)}else{const Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.heritageClauses,q,Fp);N(void 0);const xt=Xn(B.members,K,bc);return P(),t.updateClassDeclaration(B,Ae,B.name,void 0,te,xt)}}function Se(B){if(Ce(B)){const Ae=X(B);return jr(Ae,B),Ae}else{const Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.heritageClauses,q,Fp);N(void 0);const xt=Xn(B.members,K,bc);return P(),t.updateClassExpression(B,Ae,B.name,void 0,te,xt)}}function re(B,Ae){if(vt(Ae.pendingInstanceInitializers)){const te=[];return te.push(t.createExpressionStatement(t.inlineExpressions(Ae.pendingInstanceInitializers))),Ae.pendingInstanceInitializers=void 0,te}}function be(B,Ae,te,xt,Xt,Pe){const yt=xt[Xt],Gt=Ae[yt];if(Xr(B,Xn(Ae,q,Gi,te,yt-te)),A1(Gt)){const gr=[];be(gr,Gt.tryBlock.statements,0,xt,Xt+1,Pe);const nr=t.createNodeArray(gr);bt(nr,Gt.tryBlock.statements),B.push(t.updateTryStatement(Gt,t.updateBlock(Gt.tryBlock,gr),st(Gt.catchClause,q,HS),st(Gt.finallyBlock,q,ea)))}else Xr(B,Xn(Ae,q,Gi,yt,1)),Xr(B,Pe);Xr(B,Xn(Ae,q,Gi,yt+1))}function Ne(B){k(B);const Ae=Xn(B.modifiers,ie,Aa),te=Xn(B.parameters,q,to);let xt;if(B.body&&d){const Xt=re(d.class,d);if(Xt){const Pe=[],yt=t.copyPrologue(B.body.statements,Pe,!1,q),Gt=_3(B.body.statements,yt);Gt.length>0?be(Pe,B.body.statements,yt,Gt,0,Xt):(Xr(Pe,Xt),Xr(Pe,Xn(B.body.statements,q,Gi))),xt=t.createBlock(Pe,!0),jr(xt,B.body),bt(xt,B.body)}}return xt??(xt=st(B.body,q,ea)),F(),t.updateConstructorDeclaration(B,Ae,te,xt)}function Be(B,Ae){return B!==Ae&&(Rc(B,Ae),Ua(B,cy(Ae))),B}function lt(B,Ae,te){let xt,Xt,Pe,yt,Gt,gr;if(!Ae){const ft=Xn(B.modifiers,ie,Aa);return O(),Xt=Ni(B.name),G(),{modifiers:ft,referencedName:xt,name:Xt,initializersName:Pe,descriptorName:gr,thisArg:Gt}}const nr=it(y3(B,Ae.class,!1)),Jn=Xn(B.modifiers,ie,Aa);if(nr){const ft=fe(B,"decorators"),Mt=t.createArrayLiteralExpression(nr),jt=t.createAssignment(ft,Mt),Qt={memberDecoratorsName:ft};Ae.memberInfos??(Ae.memberInfos=new Map),Ae.memberInfos.set(B,Qt),y??(y=[]),y.push(jt);const In=sI(B)||Yu(B)?ua(B)?Ae.staticNonFieldDecorationStatements??(Ae.staticNonFieldDecorationStatements=[]):Ae.nonStaticNonFieldDecorationStatements??(Ae.nonStaticNonFieldDecorationStatements=[]):Po(B)&&!Yu(B)?ua(B)?Ae.staticFieldDecorationStatements??(Ae.staticFieldDecorationStatements=[]):Ae.nonStaticFieldDecorationStatements??(Ae.nonStaticFieldDecorationStatements=[]):C.fail(),yn=Hf(B)?"getter":gp(B)?"setter":Nl(B)?"method":Yu(B)?"accessor":Po(B)?"field":C.fail();let wt;if(He(B.name)||eo(B.name))wt={computed:!1,name:B.name};else if(Jh(B.name))wt={computed:!0,name:t.createStringLiteralFromNode(B.name)};else{const xn=B.name.expression;Jh(xn)&&!He(xn)?wt={computed:!0,name:t.createStringLiteralFromNode(xn)}:(O(),{referencedName:xt,name:Xt}=Ai(B.name),wt={computed:!0,name:xt},G())}const En={kind:yn,name:wt,static:ua(B),private:eo(B.name),access:{get:Po(B)||Hf(B)||Nl(B),set:Po(B)||gp(B)},metadata:Ae.metadataReference};if(sI(B)){const xn=ua(B)?Ae.staticMethodExtraInitializersName:Ae.instanceMethodExtraInitializersName;C.assertIsDefined(xn);let kn;nu(B)&&te&&(kn=te(B,Xn(Jn,ra=>ni(ra,FM),Aa)),Qt.memberDescriptorName=gr=fe(B,"descriptor"),kn=t.createAssignment(gr,kn));const ln=r().createESDecorateHelper(t.createThis(),kn??t.createNull(),ft,En,t.createNull(),xn),Ii=t.createExpressionStatement(ln);Ua(Ii,cy(B)),In.push(Ii)}else if(Po(B)){Pe=Qt.memberInitializersName??(Qt.memberInitializersName=fe(B,"initializers")),yt=Qt.memberExtraInitializersName??(Qt.memberExtraInitializersName=fe(B,"extraInitializers")),ua(B)&&(Gt=Ae.classThis);let xn;nu(B)&&Xh(B)&&te&&(xn=te(B,void 0),Qt.memberDescriptorName=gr=fe(B,"descriptor"),xn=t.createAssignment(gr,xn));const kn=r().createESDecorateHelper(Yu(B)?t.createThis():t.createNull(),xn??t.createNull(),ft,En,Pe,yt),ln=t.createExpressionStatement(kn);Ua(ln,cy(B)),In.push(ln)}}return Xt===void 0&&(O(),Xt=Ni(B.name),G()),!vt(Jn)&&(Nl(B)||Po(B))&&Cr(Xt,1024),{modifiers:Jn,referencedName:xt,name:Xt,initializersName:Pe,extraInitializersName:yt,descriptorName:gr,thisArg:Gt}}function ce(B){k(B);const{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,Ue);if(xt)return F(),Be(nt(Ae,te,xt),B);{const Xt=Xn(B.parameters,q,to),Pe=st(B.body,q,ea);return F(),Be(t.updateMethodDeclaration(B,Ae,B.asteriskToken,te,void 0,void 0,Xt,void 0,Pe),B)}}function Re(B){k(B);const{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,Rt);if(xt)return F(),Be(Kt(Ae,te,xt),B);{const Xt=Xn(B.parameters,q,to),Pe=st(B.body,q,ea);return F(),Be(t.updateGetAccessorDeclaration(B,Ae,te,Xt,void 0,Pe),B)}}function ge(B){k(B);const{modifiers:Ae,name:te,descriptorName:xt}=lt(B,d,It);if(xt)return F(),Be(Tr(Ae,te,xt),B);{const Xt=Xn(B.parameters,q,to),Pe=st(B.body,q,ea);return F(),Be(t.updateSetAccessorDeclaration(B,Ae,te,Xt,Pe),B)}}function je(B){k(B);let Ae;if(lx(B))Ae=wn(B,q,e);else if(pP(B)){const te=g;g=void 0,Ae=wn(B,q,e),g=te}else if(B=wn(B,q,e),Ae=B,d&&(d.hasStaticInitializers=!0,vt(d.pendingStaticInitializers))){const te=[];for(const Pe of d.pendingStaticInitializers){const yt=t.createExpressionStatement(Pe);Ua(yt,lv(Pe)),te.push(yt)}const xt=t.createBlock(te,!0);Ae=[t.createClassStaticBlockDeclaration(xt),Ae],d.pendingStaticInitializers=void 0}return F(),Ae}function Ge(B){Lp(B,gt)&&(B=zp(e,B,en(B.initializer))),k(B),C.assert(!TG(B),"Not yet implemented.");const{modifiers:Ae,name:te,initializersName:xt,extraInitializersName:Xt,descriptorName:Pe,thisArg:yt}=lt(B,d,Xh(B)?Ot:void 0);i();let Gt=st(B.initializer,q,St);xt&&(Gt=r().createRunInitializersHelper(yt??t.createThis(),xt,Gt??t.createVoidZero())),ua(B)&&d&&Gt&&(d.hasStaticInitializers=!0);const gr=o();if(vt(gr)&&(Gt=t.createImmediatelyInvokedArrowFunction([...gr,t.createReturnStatement(Gt)])),d&&(ua(B)?(Gt=Fe(d,!0,Gt),Xt&&(d.pendingStaticInitializers??(d.pendingStaticInitializers=[]),d.pendingStaticInitializers.push(r().createRunInitializersHelper(d.classThis??t.createThis(),Xt)))):(Gt=Fe(d,!1,Gt),Xt&&(d.pendingInstanceInitializers??(d.pendingInstanceInitializers=[]),d.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Xt))))),F(),Xh(B)&&Pe){const nr=e_(B),Jn=lv(B),ft=B.name;let Mt=ft,jt=ft;if(va(ft)&&!B_(ft.expression)){const En=w4(ft);if(En)Mt=t.updateComputedPropertyName(ft,st(ft.expression,q,St)),jt=t.updateComputedPropertyName(ft,En.left);else{const xn=t.createTempVariable(s);Ua(xn,ft.expression);const kn=st(ft.expression,q,St),ln=t.createAssignment(xn,kn);Ua(ln,ft.expression),Mt=t.updateComputedPropertyName(ft,ln),jt=t.updateComputedPropertyName(ft,xn)}}const Qt=Xn(Ae,En=>En.kind!==129?En:void 0,Aa),In=qj(t,B,Qt,Gt);jr(In,B),Cr(In,3072),Ua(In,Jn),Ua(In.name,B.name);const yn=Kt(Qt,Mt,Pe);jr(yn,B),Rc(yn,nr),Ua(yn,Jn);const wt=Tr(Qt,jt,Pe);return jr(wt,B),Cr(wt,3072),Ua(wt,Jn),[In,yn,wt]}return Be(t.updatePropertyDeclaration(B,Ae,te,void 0,void 0,Gt),B)}function We(B){return g??B}function at(B){if(mp(B.expression)&&g){const Ae=st(B.expression,q,St),te=Xn(B.arguments,q,St),xt=t.createFunctionCallCall(Ae,g,te);return jr(xt,B),bt(xt,B),xt}return wn(B,q,e)}function Wt(B){if(mp(B.tag)&&g){const Ae=st(B.tag,q,St),te=t.createFunctionBindCall(Ae,g,[]);jr(te,B),bt(te,B);const xt=st(B.template,q,lI);return t.updateTaggedTemplateExpression(B,te,void 0,xt)}return wn(B,q,e)}function cn(B){if(mp(B)&&He(B.name)&&g&&h){const Ae=t.createStringLiteralFromNode(B.name),te=t.createReflectGetCall(h,Ae,g);return jr(te,B.expression),bt(te,B.expression),te}return wn(B,q,e)}function gn(B){if(mp(B)&&g&&h){const Ae=st(B.argumentExpression,q,St),te=t.createReflectGetCall(h,Ae,g);return jr(te,B.expression),bt(te,B.expression),te}return wn(B,q,e)}function Kn(B){Lp(B,gt)&&(B=zp(e,B,en(B.initializer)));const Ae=t.updateParameterDeclaration(B,void 0,B.dotDotDotToken,st(B.name,q,QE),void 0,void 0,st(B.initializer,q,St));return Ae!==B&&(Rc(Ae,B),bt(Ae,$h(B)),Ua(Ae,$h(B)),Cr(Ae.name,64)),Ae}function gt(B){return uc(B)&&!B.name&&Ce(B)}function en(B){const Ae=Ul(B);return uc(Ae)&&!Ae.name&&!tv(!1,Ae)}function or(B){return t.updateForStatement(B,st(B.initializer,pe,Of),st(B.condition,q,St),st(B.incrementor,pe,St),Wu(B.statement,q,e))}function Di(B){return wn(B,pe,e)}function co(B,Ae){if(rv(B)){const te=Uo(B.left),xt=st(B.right,q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}if(id(B)){if(Lp(B,gt))return B=zp(e,B,en(B.right)),wn(B,q,e);if(mp(B.left)&&g&&h){let te=Ws(B.left)?st(B.left.argumentExpression,q,St):He(B.left.name)?t.createStringLiteralFromNode(B.left.name):void 0;if(te){let xt=st(B.right,q,St);if(cP(B.operatorToken.kind)){let Pe=te;B_(te)||(Pe=t.createTempVariable(s),te=t.createAssignment(Pe,te));const yt=t.createReflectGetCall(h,Pe,g);jr(yt,B.left),bt(yt,B.left),xt=t.createBinaryExpression(yt,dP(B.operatorToken.kind),xt),bt(xt,B)}const Xt=Ae?void 0:t.createTempVariable(s);return Xt&&(xt=t.createAssignment(Xt,xt),bt(Xt,B)),xt=t.createReflectSetCall(h,te,xt,g),jr(xt,B),bt(xt,B),Xt&&(xt=t.createComma(xt,Xt),bt(xt,B)),xt}}}if(B.operatorToken.kind===28){const te=st(B.left,pe,St),xt=st(B.right,Ae?pe:q,St);return t.updateBinaryExpression(B,te,B.operatorToken,xt)}return wn(B,q,e)}function zt(B,Ae){if(B.operator===46||B.operator===47){const te=us(B.operand);if(mp(te)&&g&&h){let xt=Ws(te)?st(te.argumentExpression,q,St):He(te.name)?t.createStringLiteralFromNode(te.name):void 0;if(xt){let Xt=xt;B_(xt)||(Xt=t.createTempVariable(s),xt=t.createAssignment(Xt,xt));let Pe=t.createReflectGetCall(h,Xt,g);jr(Pe,B),bt(Pe,B);const yt=Ae?void 0:t.createTempVariable(s);return Pe=C4(t,B,Pe,s,yt),Pe=t.createReflectSetCall(h,xt,Pe,g),jr(Pe,B),bt(Pe,B),yt&&(Pe=t.createComma(Pe,yt),bt(Pe,B)),Pe}}}return wn(B,q,e)}function Zr(B,Ae){const te=Ae?f3(B.elements,pe):f3(B.elements,q,pe);return t.updateCommaListExpression(B,te)}function Ai(B){if(Jh(B)||eo(B)){const Pe=t.createStringLiteralFromNode(B),yt=st(B,q,vc);return{referencedName:Pe,name:yt}}if(Jh(B.expression)&&!He(B.expression)){const Pe=t.createStringLiteralFromNode(B.expression),yt=st(B,q,vc);return{referencedName:Pe,name:yt}}const Ae=t.getGeneratedNameForNode(B);s(Ae);const te=r().createPropKeyHelper(st(B.expression,q,St)),xt=t.createAssignment(Ae,te),Xt=t.updateComputedPropertyName(B,ne(xt));return{referencedName:Ae,name:Xt}}function Ni(B){return va(B)?Pr(B):st(B,q,vc)}function Pr(B){let Ae=st(B.expression,q,St);return B_(Ae)||(Ae=ne(Ae)),t.updateComputedPropertyName(B,Ae)}function Ci(B){return Lp(B,gt)&&(B=zp(e,B,en(B.initializer))),wn(B,q,e)}function Ye(B){return Lp(B,gt)&&(B=zp(e,B,en(B.initializer))),wn(B,q,e)}function At(B){return Lp(B,gt)&&(B=zp(e,B,en(B.initializer))),wn(B,q,e)}function mn(B){if(Fa(B)||Cd(B))return Uo(B);if(mp(B)&&g&&h){const Ae=Ws(B)?st(B.argumentExpression,q,St):He(B.name)?t.createStringLiteralFromNode(B.name):void 0;if(Ae){const te=t.createTempVariable(void 0),xt=t.createAssignmentTargetWrapper(te,t.createReflectSetCall(h,Ae,te,g));return jr(xt,B),bt(xt,B),xt}}return wn(B,q,e)}function dr(B){if(id(B,!0)){Lp(B,gt)&&(B=zp(e,B,en(B.right)));const Ae=mn(B.left),te=st(B.right,q,St);return t.updateBinaryExpression(B,Ae,B.operatorToken,te)}else return mn(B)}function ri(B){if($u(B.expression)){const Ae=mn(B.expression);return t.updateSpreadElement(B,Ae)}return wn(B,q,e)}function ai(B){return C.assertNode(B,V2),qf(B)?ri(B):Jc(B)?wn(B,q,e):dr(B)}function Hi(B){const Ae=st(B.name,q,vc);if(id(B.initializer,!0)){const te=dr(B.initializer);return t.updatePropertyAssignment(B,Ae,te)}if($u(B.initializer)){const te=mn(B.initializer);return t.updatePropertyAssignment(B,Ae,te)}return wn(B,q,e)}function $o(B){return Lp(B,gt)&&(B=zp(e,B,en(B.objectAssignmentInitializer))),wn(B,q,e)}function Ia(B){if($u(B.expression)){const Ae=mn(B.expression);return t.updateSpreadAssignment(B,Ae)}return wn(B,q,e)}function Pn(B){return C.assertNode(B,G2),Rg(B)?Ia(B):Ud(B)?$o(B):Cc(B)?Hi(B):wn(B,q,e)}function Uo(B){if(Cd(B)){const Ae=Xn(B.elements,ai,St);return t.updateArrayLiteralExpression(B,Ae)}else{const Ae=Xn(B.properties,Pn,ry);return t.updateObjectLiteralExpression(B,Ae)}}function ot(B){return Lp(B,gt)&&(B=zp(e,B,en(B.expression))),wn(B,q,e)}function Ft(B,Ae){const te=Ae?pe:q,xt=st(B.expression,te,St);return t.updateParenthesizedExpression(B,xt)}function le(B,Ae){const te=q,xt=st(B.expression,te,St);return t.updatePartiallyEmittedExpression(B,xt)}function ht(B,Ae){return vt(B)&&(Ae?Ou(Ae)?(B.push(Ae.expression),Ae=t.updateParenthesizedExpression(Ae,t.inlineExpressions(B))):(B.push(Ae),Ae=t.inlineExpressions(B)):Ae=t.inlineExpressions(B)),Ae}function ne(B){const Ae=ht(y,B);return C.assertIsDefined(Ae),Ae!==B&&(y=void 0),Ae}function Fe(B,Ae,te){const xt=ht(Ae?B.pendingStaticInitializers:B.pendingInstanceInitializers,te);return xt!==te&&(Ae?B.pendingStaticInitializers=void 0:B.pendingInstanceInitializers=void 0),xt}function it(B){if(!B)return;const Ae=[];return Xr(Ae,Bt(B.decorators,dt)),Ae}function dt(B){const Ae=st(B.expression,q,St);Cr(Ae,3072);const te=Ul(Ae);if(Ks(te)){const{target:xt,thisArg:Xt}=t.createCallBinding(Ae,s,l,!0);return t.restoreOuterExpressions(Ae,t.createFunctionBindCall(xt,Xt,[]))}return Ae}function Lt(B,Ae,te,xt,Xt,Pe,yt){const Gt=t.createFunctionExpression(te,xt,void 0,void 0,Pe,void 0,yt??t.createBlock([]));jr(Gt,B),Ua(Gt,cy(B)),Cr(Gt,3072);const gr=Xt==="get"||Xt==="set"?Xt:void 0,nr=t.createStringLiteralFromNode(Ae,void 0),Jn=r().createSetFunctionNameHelper(Gt,nr,gr),ft=t.createPropertyAssignment(t.createIdentifier(Xt),Jn);return jr(ft,B),Ua(ft,cy(B)),Cr(ft,3072),ft}function Ue(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,B.asteriskToken,"value",Xn(B.parameters,q,to),st(B.body,q,ea))])}function Rt(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"get",[],st(B.body,q,ea))])}function It(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"set",Xn(B.parameters,q,to),st(B.body,q,ea))])}function Ot(B,Ae){return t.createObjectLiteralExpression([Lt(B,B.name,Ae,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(B.name)))])),Lt(B,B.name,Ae,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,Ae,te){return B=Xn(B,xt=>jI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ae,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(te,t.createIdentifier("value")))]))}function Kt(B,Ae,te){return B=Xn(B,xt=>jI(xt)?xt:void 0,Aa),t.createGetAccessorDeclaration(B,Ae,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(te,t.createIdentifier("get")),t.createThis(),[]))]))}function Tr(B,Ae,te){return B=Xn(B,xt=>jI(xt)?xt:void 0,Aa),t.createSetAccessorDeclaration(B,Ae,[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,Ae){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,[Ae?he(Ae):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([te],2))}function Nt(B,Ae){const te=t.createObjectDefinePropertyCall(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:Ae},!0));return Cr(t.createIfStatement(Ae,t.createExpressionStatement(te)),1)}function he(B){return t.createBinaryExpression(t.createElementAccessExpression(B,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function wae(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Ga(u);let g=0,h=0,y,E,A,R;const N=[];let P=0;const k=e.onEmitNode,F=e.onSubstituteNode;return e.onEmitNode=Di,e.onSubstituteNode=co,hh(e,O);function O(Ye){if(Ye.isDeclarationFile)return Ye;G(1,!1),G(2,!bG(Ye,u));const At=wn(Ye,K,e);return Ig(At,e.readEmitHelpers()),At}function G(Ye,At){P=At?P|Ye:P&~Ye}function j(Ye){return(P&Ye)!==0}function J(){return!j(1)}function Z(){return j(2)}function q(Ye,At,mn){const dr=Ye&~P;if(dr){G(dr,!0);const ri=At(mn);return G(dr,!1),ri}return At(mn)}function ye(Ye){return wn(Ye,K,e)}function ie(Ye){switch(Ye.kind){case 219:case 263:case 175:case 178:case 179:case 177:return Ye;case 170:case 209:case 261:break;case 80:if(R&&l.isArgumentsLocalBinding(Ye))return R;break}return wn(Ye,ie,e)}function K(Ye){if(!(Ye.transformFlags&256))return R?ie(Ye):Ye;switch(Ye.kind){case 134:return;case 224:return Ce(Ye);case 175:return q(3,Se,Ye);case 263:return q(3,Ne,Ye);case 219:return q(3,Be,Ye);case 220:return q(1,lt,Ye);case 212:return E&&qr(Ye)&&Ye.expression.kind===108&&E.add(Ye.name.escapedText),wn(Ye,K,e);case 213:return E&&Ye.expression.kind===108&&(A=!0),wn(Ye,K,e);case 178:return q(3,re,Ye);case 179:return q(3,be,Ye);case 177:return q(3,Je,Ye);case 264:case 232:return q(3,ye,Ye);default:return wn(Ye,K,e)}}function pe(Ye){if(vne(Ye))switch(Ye.kind){case 244:return fe(Ye);case 249:return X(Ye);case 250:return ve(Ye);case 251:return xe(Ye);case 300:return de(Ye);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return wn(Ye,pe,e);default:return C.assertNever(Ye,"Unhandled node.")}return K(Ye)}function de(Ye){const At=new Set;ce(Ye.variableDeclaration,At);let mn;if(At.forEach((dr,ri)=>{y.has(ri)&&(mn||(mn=new Set(y)),mn.delete(ri))}),mn){const dr=y;y=mn;const ri=wn(Ye,pe,e);return y=dr,ri}else return wn(Ye,pe,e)}function fe(Ye){if(Re(Ye.declarationList)){const At=ge(Ye.declarationList,!1);return At?t.createExpressionStatement(At):void 0}return wn(Ye,K,e)}function ve(Ye){return t.updateForInStatement(Ye,Re(Ye.initializer)?ge(Ye.initializer,!0):C.checkDefined(st(Ye.initializer,K,Of)),C.checkDefined(st(Ye.expression,K,St)),Wu(Ye.statement,pe,e))}function xe(Ye){return t.updateForOfStatement(Ye,st(Ye.awaitModifier,K,yj),Re(Ye.initializer)?ge(Ye.initializer,!0):C.checkDefined(st(Ye.initializer,K,Of)),C.checkDefined(st(Ye.expression,K,St)),Wu(Ye.statement,pe,e))}function X(Ye){const At=Ye.initializer;return t.updateForStatement(Ye,Re(At)?ge(At,!1):st(Ye.initializer,K,Of),st(Ye.condition,K,St),st(Ye.incrementor,K,St),Wu(Ye.statement,pe,e))}function Ce(Ye){return J()?wn(Ye,K,e):jr(bt(t.createYieldExpression(void 0,st(Ye.expression,K,St)),Ye),Ye)}function Je(Ye){const At=R;R=void 0;const mn=t.updateConstructorDeclaration(Ye,Xn(Ye.modifiers,K,Aa),Fl(Ye.parameters,K,e),Wt(Ye));return R=At,mn}function Se(Ye){let At;const mn=dc(Ye),dr=R;R=void 0;const ri=t.updateMethodDeclaration(Ye,Xn(Ye.modifiers,K,ml),Ye.asteriskToken,Ye.name,void 0,void 0,At=mn&2?gn(Ye):Fl(Ye.parameters,K,e),void 0,mn&2?Kn(Ye,At):Wt(Ye));return R=dr,ri}function re(Ye){const At=R;R=void 0;const mn=t.updateGetAccessorDeclaration(Ye,Xn(Ye.modifiers,K,ml),Ye.name,Fl(Ye.parameters,K,e),void 0,Wt(Ye));return R=At,mn}function be(Ye){const At=R;R=void 0;const mn=t.updateSetAccessorDeclaration(Ye,Xn(Ye.modifiers,K,ml),Ye.name,Fl(Ye.parameters,K,e),Wt(Ye));return R=At,mn}function Ne(Ye){let At;const mn=R;R=void 0;const dr=dc(Ye),ri=t.updateFunctionDeclaration(Ye,Xn(Ye.modifiers,K,ml),Ye.asteriskToken,Ye.name,void 0,At=dr&2?gn(Ye):Fl(Ye.parameters,K,e),void 0,dr&2?Kn(Ye,At):gf(Ye.body,K,e));return R=mn,ri}function Be(Ye){let At;const mn=R;R=void 0;const dr=dc(Ye),ri=t.updateFunctionExpression(Ye,Xn(Ye.modifiers,K,Aa),Ye.asteriskToken,Ye.name,void 0,At=dr&2?gn(Ye):Fl(Ye.parameters,K,e),void 0,dr&2?Kn(Ye,At):gf(Ye.body,K,e));return R=mn,ri}function lt(Ye){let At;const mn=dc(Ye);return t.updateArrowFunction(Ye,Xn(Ye.modifiers,K,Aa),void 0,At=mn&2?gn(Ye):Fl(Ye.parameters,K,e),void 0,Ye.equalsGreaterThanToken,mn&2?Kn(Ye,At):gf(Ye.body,K,e))}function ce({name:Ye},At){if(He(Ye))At.add(Ye.escapedText);else for(const mn of Ye.elements)Jc(mn)||ce(mn,At)}function Re(Ye){return!!Ye&&_d(Ye)&&!(Ye.flags&7)&&Ye.declarations.some(at)}function ge(Ye,At){je(Ye);const mn=_M(Ye);return mn.length===0?At?st(t.converters.convertToAssignmentElementTarget(Ye.declarations[0].name),K,St):void 0:t.inlineExpressions(Bt(mn,We))}function je(Ye){$e(Ye.declarations,Ge)}function Ge({name:Ye}){if(He(Ye))s(Ye);else for(const At of Ye.elements)Jc(At)||Ge(At)}function We(Ye){const At=Ua(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ye.name),Ye.initializer),Ye);return C.checkDefined(st(At,K,St))}function at({name:Ye}){if(He(Ye))return y.has(Ye.escapedText);for(const At of Ye.elements)if(!Jc(At)&&at(At))return!0;return!1}function Wt(Ye){C.assertIsDefined(Ye.body);const At=E,mn=A;E=new Set,A=!1;let dr=gf(Ye.body,K,e);const ri=yl(Ye,Ms);if(d>=2&&(l.hasNodeCheckFlag(Ye,256)||l.hasNodeCheckFlag(Ye,128))&&(dc(ri)&3)!==3){if(or(),E.size){const Hi=S3(t,l,Ye,E);N[ls(Hi)]=!0;const $o=dr.statements.slice();hg($o,[Hi]),dr=t.updateBlock(dr,$o)}A&&(l.hasNodeCheckFlag(Ye,256)?zI(dr,p4):l.hasNodeCheckFlag(Ye,128)&&zI(dr,u4))}return E=At,A=mn,dr}function cn(){C.assert(R);const Ye=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),At=t.createVariableStatement(void 0,[Ye]);return au(At),Zh(At,2097152),At}function gn(Ye){if(qw(Ye.parameters))return Fl(Ye.parameters,K,e);const At=[];for(const dr of Ye.parameters){if(dr.initializer||dr.dotDotDotToken){if(Ye.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 mn=t.createNodeArray(At);return bt(mn,Ye.parameters),mn}function Kn(Ye,At){const mn=qw(Ye.parameters)?void 0:Fl(Ye.parameters,K,e);i();const ri=yl(Ye,Yo).type,ai=d<2?en(ri):void 0,Hi=Ye.kind===220,$o=R,Pn=l.hasNodeCheckFlag(Ye,512)&&!R;Pn&&(R=t.createUniqueName("arguments"));let Uo;if(mn)if(Hi){const it=[];C.assert(At.length<=Ye.parameters.length);for(let dt=0;dt=2&&(l.hasNodeCheckFlag(Ye,256)||l.hasNodeCheckFlag(Ye,128));if(dt&&(or(),E.size)){const Ue=S3(t,l,Ye,E);N[ls(Ue)]=!0,hg(it,[Ue])}Pn&&hg(it,[cn()]);const Lt=t.createBlock(it,!0);bt(Lt,Ye.body),dt&&A&&(l.hasNodeCheckFlag(Ye,256)?zI(Lt,p4):l.hasNodeCheckFlag(Ye,128)&&zI(Lt,u4)),Fe=Lt}return y=ot,Hi||(E=Ft,A=le,R=$o),Fe}function gt(Ye,At){return ea(Ye)?t.updateBlock(Ye,Xn(Ye.statements,pe,Gi,At)):t.converters.convertToFunctionBlock(C.checkDefined(st(Ye,pe,SF)))}function en(Ye){const At=Ye&&ck(Ye);if(At&&Mu(At)){const mn=l.getTypeReferenceSerializationKind(At);if(mn===1||mn===0)return At}}function or(){g&1||(g|=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 Di(Ye,At,mn){if(g&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(Ye,At,mn),h=ri;return}}else if(g&&N[ls(At)]){const dr=h;h=0,k(Ye,At,mn),h=dr;return}k(Ye,At,mn)}function co(Ye,At){return At=F(Ye,At),Ye===1&&h?zt(At):At}function zt(Ye){switch(Ye.kind){case 212:return Zr(Ye);case 213:return Ai(Ye);case 214:return Ni(Ye)}return Ye}function Zr(Ye){return Ye.expression.kind===108?bt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ye.name),Ye):Ye}function Ai(Ye){return Ye.expression.kind===108?Ci(Ye.argumentExpression,Ye):Ye}function Ni(Ye){const At=Ye.expression;if(mp(At)){const mn=qr(At)?Zr(At):Ai(At);return t.createCallExpression(t.createPropertyAccessExpression(mn,"call"),void 0,[t.createThis(),...Ye.arguments])}return Ye}function Pr(Ye){const At=Ye.kind;return At===264||At===177||At===175||At===178||At===179}function Ci(Ye,At){return h&256?bt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),"value"),At):bt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),At)}}function S3(e,t,r,i){const o=t.hasNodeCheckFlag(r,256),s=[];return i.forEach((l,u)=>{const d=Bi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Cr(e.createPropertyAccessExpression(Cr(e.createSuper(),8),d),8)))),o&&g.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(g)))}),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 Oae(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),u=e.getCompilerOptions(),d=Ga(u),g=e.onEmitNode;e.onEmitNode=$o;const h=e.onSubstituteNode;e.onSubstituteNode=Ia;let y=!1,E=0,A,R,N=0,P=0,k,F,O,G;const j=[];return hh(e,ie);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 ye(ne){F=Un(F,t.createVariableDeclaration(ne))}function ie(ne){if(ne.isDeclarationFile)return ne;k=ne;const Fe=lt(ne);return Ig(Fe,e.readEmitHelpers()),k=void 0,F=void 0,Fe}function K(ne){return xe(ne,!1)}function pe(ne){return xe(ne,!0)}function de(ne){if(ne.kind!==134)return ne}function fe(ne,Fe,it,dt){if(J(it,dt)){const Lt=Z(it,dt),Ue=ne(Fe);return q(Lt),Ue}return ne(Fe)}function ve(ne){return wn(ne,K,e)}function xe(ne,Fe){if(!(ne.transformFlags&128))return ne;switch(ne.kind){case 224:return X(ne);case 230:return Ce(ne);case 254:return Je(ne);case 257:return Se(ne);case 211:return be(ne);case 227:return Re(ne,Fe);case 357:return ge(ne,Fe);case 300:return je(ne);case 244:return Ge(ne);case 261:return We(ne);case 247:case 248:case 250:return fe(ve,ne,0,2);case 251:return gn(ne,void 0);case 249:return fe(Wt,ne,0,2);case 223:return cn(ne);case 177:return fe(Zr,ne,2,1);case 175:return fe(Pr,ne,2,1);case 178:return fe(Ai,ne,2,1);case 179:return fe(Ni,ne,2,1);case 263:return fe(Ci,ne,2,1);case 219:return fe(At,ne,2,1);case 220:return fe(Ye,ne,2,0);case 170:return co(ne);case 245:return Ne(ne);case 218:return Be(ne,Fe);case 216:return ce(ne);case 212:return O&&qr(ne)&&ne.expression.kind===108&&O.add(ne.name.escapedText),wn(ne,K,e);case 213:return O&&ne.expression.kind===108&&(G=!0),wn(ne,K,e);case 264:case 232:return fe(ve,ne,2,1);default:return wn(ne,K,e)}}function X(ne){return A&2&&A&1?jr(bt(t.createYieldExpression(void 0,r().createAwaitHelper(st(ne.expression,K,St))),ne),ne):wn(ne,K,e)}function Ce(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 wn(ne,K,e)}function Je(ne){return A&2&&A&1?t.updateReturnStatement(ne,en(ne.expression?st(ne.expression,K,St):t.createVoidZero())):wn(ne,K,e)}function Se(ne){if(A&2){const Fe=CG(ne);return Fe.kind===251&&Fe.awaitModifier?gn(Fe,ne):t.restoreEnclosingLabel(st(Fe,K,Gi,t.liftToBlock),ne)}return wn(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=Un(Fe,dt.kind===304?t.createPropertyAssignment(dt.name,st(dt.initializer,K,St)):st(dt,K,ry));return Fe&&it.push(t.createObjectLiteralExpression(Fe)),it}function be(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){Hi();const nt=S3(t,l,ne,O);j[ls(nt)]=!0,hg(Lt,[nt])}Lt.push(Rt);const Ot=t.updateBlock(ne.body,Lt);return It&&G&&(l.hasNodeCheckFlag(ne,256)?zI(Ot,p4):l.hasNodeCheckFlag(ne,128)&&zI(Ot,u4)),O=it,G=dt,Ot}function ri(ne){i();let Fe=0;const it=[],dt=st(ne.body,K,SF)??t.createBlock([]);ea(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 Ue=t.converters.convertToFunctionBlock(dt,!0);return hg(it,Lt),Xr(it,Ue.statements.slice(Fe)),t.updateBlock(Ue,bt(t.createNodeArray(it),Ue.statements))}return dt}function ai(ne,Fe){let it=!1;for(const dt of Fe.parameters)if(it){if(Qo(dt.name)){if(dt.name.elements.length>0){const Lt=YS(dt,K,e,0,t.getGeneratedNameForNode(dt));if(vt(Lt)){const Ue=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,Ue);Cr(Rt,2097152),ne=Un(ne,Rt)}}else if(dt.initializer){const Lt=t.getGeneratedNameForNode(dt),Ue=st(dt.initializer,K,St),Rt=t.createAssignment(Lt,Ue),It=t.createExpressionStatement(Rt);Cr(It,2097152),ne=Un(ne,It)}}else if(dt.initializer){const Lt=t.cloneNode(dt.name);bt(Lt,dt.name),Cr(Lt,96);const Ue=st(dt.initializer,K,St);Zh(Ue,3168);const Rt=t.createAssignment(Lt,Ue);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);au(nt),bt(nt,dt),Cr(nt,2101056),ne=Un(ne,nt)}}else if(dt.transformFlags&65536){it=!0;const Lt=YS(dt,K,e,1,t.getGeneratedNameForNode(dt),!1,!0);if(vt(Lt)){const Ue=t.createVariableDeclarationList(Lt),Rt=t.createVariableStatement(void 0,Ue);Cr(Rt,2097152),ne=Un(ne,Rt)}}return ne}function Hi(){E&1||(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 $o(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,g(ne,Fe,it),N=Lt;return}}else if(E&&j[ls(Fe)]){const dt=N;N=0,g(ne,Fe,it),N=dt;return}g(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?ht(ne.argumentExpression,ne):ne}function Ft(ne){const Fe=ne.expression;if(mp(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 ht(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 Wae(e){const t=e.factory;return hh(e,r);function r(s){return s.isDeclarationFile?s:wn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 300:return o(s);default:return wn(s,i,e)}}function o(s){return s.variableDeclaration?wn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),st(s.block,i,ea))}}function Fae(e){const{factory:t,hoistVariableDeclaration:r}=e;return hh(e,i);function i(R){return R.isDeclarationFile?R:wn(R,o,e)}function o(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 214:{const N=d(R,!1);return C.assertNotNode(N,YI),N}case 212:case 213:if(tu(R)){const N=h(R,!1,!1);return C.assertNotNode(N,YI),N}return wn(R,o,e);case 227:return R.operatorToken.kind===61?E(R):wn(R,o,e);case 221:return A(R);default:return wn(R,o,e)}}function s(R){C.assertNotNode(R,_F);const N=[R];for(;!R.questionDotToken&&!XT(R);)R=ha(Fm(R.expression),tu),C.assertNotNode(R,_F),N.unshift(R);return{expression:R.expression,chain:N}}function l(R,N,P){const k=g(R.expression,N,P);return YI(k)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,k.expression),k.thisArg):t.updateParenthesizedExpression(R,k)}function u(R,N,P){if(tu(R))return h(R,N,P);let k=st(R.expression,o,St);C.assertNotNode(k,YI);let F;return N&&(XS(k)?F=k:(F=t.createTempVariable(r),k=t.createAssignment(F,k))),k=R.kind===212?t.updatePropertyAccessExpression(R,k,st(R.name,o,He)):t.updateElementAccessExpression(R,k,st(R.argumentExpression,o,St)),F?t.createSyntheticReferenceExpression(k,F):k}function d(R,N){if(tu(R))return h(R,N,!1);if(Ou(R.expression)&&tu(us(R.expression))){const P=l(R.expression,!0,!1),k=Xn(R.arguments,o,St);return YI(P)?bt(t.createFunctionCallCall(P.expression,P.thisArg,k),R):t.updateCallExpression(R,P,void 0,k)}return wn(R,o,e)}function g(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),O=g(Fm(k),XE(F[0]),!1);let G=YI(O)?O.thisArg:void 0,j=YI(O)?O.expression:O,J=t.restoreOuterExpressions(k,j,8);XS(j)||(j=t.createTempVariable(r),J=t.createAssignment(j,J));let Z=j,q;for(let ie=0;iexe&&Xr(X,Xn(fe.statements,y,Gi,xe,Ce-xe));break}Ce++}C.assert(CeP(X,xe))))],xe,ve===2)}return wn(fe,y,e)}function F(fe,ve,xe,X,Ce){const Je=[];for(let be=ve;bet&&(t=i)}return t}function vqe(e){let t=0;for(const r of e){const i=ZU(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}function jae(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions();let o,s;return hh(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 Re=u(ce);return h(Re)}function g(){return h("Fragment")}function h(ce){var Re,ge;const je=ce==="createElement"?s.importSpecifier:B6(s.importSpecifier,i),Ge=(ge=(Re=s.utilizedImplicitRuntimeImports)==null?void 0:Re.get(je))==null?void 0:ge.get(ce);if(Ge)return Ge.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let We=s.utilizedImplicitRuntimeImports.get(je);We||(We=new Map,s.utilizedImplicitRuntimeImports.set(je,We));const at=t.createUniqueName(`_${ce}`,112),Wt=t.createImportSpecifier(!1,t.createIdentifier(ce),at);return lie(at,Wt),We.set(ce,Wt),at}function y(ce){if(ce.isDeclarationFile)return ce;o=ce,s={},s.importSpecifier=Xk(i,ce);let Re=wn(ce,E,e);Ig(Re,e.readEmitHelpers());let ge=Re.statements;if(s.filenameDeclaration&&(ge=t1(ge.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(const[je,Ge]of Co(s.utilizedImplicitRuntimeImports.entries()))if(zc(ce)){const We=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports(Co(Ge.values()))),t.createStringLiteral(je),void 0);qT(We,!1),ge=t1(ge.slice(),We)}else if(Pp(ce)){const We=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Co(Ge.values(),at=>t.createBindingElement(void 0,at.propertyName,at.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(je)]))],2));qT(We,!1),ge=t1(ge.slice(),We)}}return ge!==Re.statements&&(Re=t.updateSourceFile(Re,ge)),s=void 0,Re}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 O(ce,!1);case 289:return G(ce,!1);case 295:return lt(ce);default:return wn(ce,E,e)}}function R(ce){switch(ce.kind){case 12:return Ce(ce);case 295:return lt(ce);case 285:return F(ce,!0);case 286:return O(ce,!0);case 289:return G(ce,!0);default:return C.failBadSyntaxKind(ce)}}function N(ce){return ce.properties.some(Re=>Cc(Re)&&(He(Re.name)&&Kr(Re.name)==="__proto__"||wa(Re.name)&&Re.name.text==="__proto__"))}function P(ce){let Re=!1;for(const ge of ce.attributes.properties)if($I(ge)&&(!Fa(ge.expression)||ge.expression.properties.some(Rg)))Re=!0;else if(Re&&o_(ge)&&He(ge.name)&&ge.name.escapedText==="key")return!0;return!1}function k(ce){return s.importSpecifier===void 0||P(ce)}function F(ce,Re){return(k(ce.openingElement)?ye:Z)(ce.openingElement,ce.children,Re,ce)}function O(ce,Re){return(k(ce)?ye:Z)(ce,void 0,Re,ce)}function G(ce,Re){return(s.importSpecifier===void 0?K:ie)(ce.openingFragment,ce.children,Re,ce)}function j(ce){const Re=J(ce);return Re&&t.createObjectLiteralExpression([Re])}function J(ce){const Re=iD(ce);if(Ze(Re)===1&&!Re[0].dotDotDotToken){const je=R(Re[0]);return je&&t.createPropertyAssignment("children",je)}const ge=ji(ce,R);return Ze(ge)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(ge)):void 0}function Z(ce,Re,ge,je){const Ge=Ne(ce),We=Re&&Re.length?J(Re):void 0,at=hn(ce.attributes.properties,gn=>!!gn.name&&He(gn.name)&&gn.name.escapedText==="key"),Wt=at?Vn(ce.attributes.properties,gn=>gn!==at):ce.attributes.properties,cn=Ze(Wt)?de(Wt,We):t.createObjectLiteralExpression(We?[We]:se);return q(Ge,cn,at,Re||se,ge,je)}function q(ce,Re,ge,je,Ge,We){var at;const Wt=iD(je),cn=Ze(Wt)>1||!!((at=Wt[0])!=null&&at.dotDotDotToken),gn=[ce,Re];if(ge&&gn.push(X(ge.initializer)),i.jsx===5){const gt=yl(o);if(gt&&Yi(gt)){ge===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&&au(Kn),Kn}function ye(ce,Re,ge,je){const Ge=Ne(ce),We=ce.attributes.properties,at=Ze(We)?de(We):t.createNull(),Wt=s.importSpecifier===void 0?wj(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,ce):h("createElement"),cn=Vie(t,Wt,Ge,at,ji(Re,R),je);return ge&&au(cn),cn}function ie(ce,Re,ge,je){let Ge;if(Re&&Re.length){const We=j(Re);We&&(Ge=We)}return q(g(),Ge||t.createObjectLiteralExpression([]),void 0,Re,ge,je)}function K(ce,Re,ge,je){const Ge=jie(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,ji(Re,R),ce,je);return ge&&au(Ge),Ge}function pe(ce){return Fa(ce.expression)&&!N(ce.expression)?Zi(ce.expression.properties,Re=>C.checkDefined(st(Re,E,ry))):t.createSpreadAssignment(C.checkDefined(st(ce.expression,E,St)))}function de(ce,Re){const ge=Ga(i);return ge&&ge>=5?t.createObjectLiteralExpression(fe(ce,Re)):ve(ce,Re)}function fe(ce,Re){const ge=ia(f2(ce,$I,(je,Ge)=>ia(Bt(je,We=>Ge?pe(We):xe(We)))));return Re&&ge.push(Re),ge}function ve(ce,Re){const ge=[];let je=[];for(const We of ce){if($I(We)){if(Fa(We.expression)&&!N(We.expression)){for(const at of We.expression.properties){if(Rg(at)){Ge(),ge.push(C.checkDefined(st(at.expression,E,St)));continue}je.push(C.checkDefined(st(at,E)))}continue}Ge(),ge.push(C.checkDefined(st(We.expression,E,St)));continue}je.push(xe(We))}return Re&&je.push(Re),Ge(),ge.length&&!Fa(ge[0])&&ge.unshift(t.createObjectLiteralExpression()),ag(ge)||r().createAssignHelper(ge);function Ge(){je.length&&(ge.push(t.createObjectLiteralExpression(je)),je=[])}}function xe(ce){const Re=Be(ce),ge=X(ce.initializer);return t.createPropertyAssignment(Re,ge)}function X(ce){if(ce===void 0)return t.createTrue();if(ce.kind===11){const Re=ce.singleQuote!==void 0?ce.singleQuote:!r6(ce,o),ge=t.createStringLiteral(be(ce.text)||ce.text,Re);return bt(ge,ce)}return ce.kind===295?ce.expression===void 0?t.createTrue():C.checkDefined(st(ce.expression,E,St)):i_(ce)?F(ce,!1):x1(ce)?O(ce,!1):e0(ce)?G(ce,!1):C.failBadSyntaxKind(ce)}function Ce(ce){const Re=Je(ce.text);return Re===void 0?void 0:t.createStringLiteral(Re)}function Je(ce){let Re,ge=0,je=-1;for(let Ge=0;Ge{if(We)return CN(parseInt(We,10));if(at)return CN(parseInt(at,16));{const cn=bqe.get(Wt);return cn?CN(cn):Re}})}function be(ce){const Re=re(ce);return Re===ce?void 0:Re}function Ne(ce){if(ce.kind===285)return Ne(ce.openingElement);{const Re=ce.tagName;return He(Re)&&oD(Re.escapedText)?t.createStringLiteral(Kr(Re)):fh(Re)?t.createStringLiteral(Kr(Re.namespace)+":"+Kr(Re.name)):Tw(t,Re)}}function Be(ce){const Re=ce.name;if(He(Re)){const ge=Kr(Re);return/^[A-Z_]\w*$/i.test(ge)?Re:t.createStringLiteral(ge)}return t.createStringLiteral(Kr(Re.namespace)+":"+Kr(Re.name))}function lt(ce){const Re=st(ce.expression,E,St);return ce.dotDotDotToken?t.createSpreadElement(Re):Re}}var bqe=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 Uae(e){const{factory:t,hoistVariableDeclaration:r}=e;return hh(e,i);function i(d){return d.isDeclarationFile?d:wn(d,o,e)}function o(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 227:return s(d);default:return wn(d,o,e)}}function s(d){switch(d.operatorToken.kind){case 68:return l(d);case 43:return u(d);default:return wn(d,o,e)}}function l(d){let g,h;const y=st(d.left,o,St),E=st(d.right,o,St);if(Ws(y)){const A=t.createTempVariable(r),R=t.createTempVariable(r);g=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);g=bt(t.createPropertyAccessExpression(bt(t.createAssignment(A,y.expression),y.expression),y.name),y),h=bt(t.createPropertyAccessExpression(A,y.name),y)}else g=y,h=y;return bt(t.createAssignment(g,bt(t.createGlobalMethodCall("Math","pow",[h,E]),d)),d)}function u(d){const g=st(d.left,o,St),h=st(d.right,o,St);return bt(t.createGlobalMethodCall("Math","pow",[g,h]),d)}}function sAe(e,t){return{kind:e,expression:t}}function Hae(e){const{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=e.getEmitResolver(),g=e.onSubstituteNode,h=e.onEmitNode;e.onEmitNode=ld,e.onSubstituteNode=Xf;let y,E,A,R;function N(oe){R=Un(R,t.createVariableDeclaration(oe))}let P,k=0;return hh(e,F);function F(oe){if(oe.isDeclarationFile)return oe;y=oe,E=oe.text;const ut=de(oe);return Ig(ut,e.readEmitHelpers()),y=void 0,E=void 0,R=void 0,A=0,ut}function O(oe,ut){const tn=A;return A=(A&~oe|ut)&32767,tn}function G(oe,ut,tn){A=(A&~ut|tn)&-32768|oe}function j(oe){return(A&8192)!==0&&oe.kind===254&&!oe.expression}function J(oe){return oe.transformFlags&4194304&&(tf(oe)||$T(oe)||xie(oe)||UM(oe)||HM(oe)||xD(oe)||qM(oe)||A1(oe)||HS(oe)||Lb(oe)||mb(oe,!1)||ea(oe))}function Z(oe){return(oe.transformFlags&1024)!==0||P!==void 0||A&8192&&J(oe)||mb(oe,!1)&&uo(oe)||(zm(oe)&1)!==0}function q(oe){return Z(oe)?pe(oe,!1):oe}function ye(oe){return Z(oe)?pe(oe,!0):oe}function ie(oe){if(Z(oe)){const ut=yl(oe);if(Po(ut)&&wc(ut)){const tn=O(32670,16449),an=pe(oe,!1);return G(tn,229376,0),an}return pe(oe,!1)}return oe}function K(oe){return oe.kind===108?rf(oe,!0):q(oe)}function pe(oe,ut){switch(oe.kind){case 126:return;case 264:return Ne(oe);case 232:return Be(oe);case 170:return Ia(oe);case 263:return Kt(oe);case 220:return Ot(oe);case 219:return nt(oe);case 261:return nr(oe);case 80:return re(oe);case 262:return Pe(oe);case 256:return fe(oe);case 270:return ve(oe);case 242:return Nt(oe);case 253:case 252:return be(oe);case 257:return Mt(oe);case 247:case 248:return In(oe,void 0);case 249:return yn(oe,void 0);case 250:return En(oe,void 0);case 251:return xn(oe,void 0);case 245:return he(oe);case 211:return la(oe);case 300:return ro(oe);case 305:return Qs(oe);case 168:return Sc(oe);case 210:return Hs(oe);case 214:return Pl(oe);case 215:return nf(oe);case 218:return B(oe,ut);case 227:return Ae(oe,ut);case 357:return te(oe,ut);case 15:case 16:case 17:case 18:return es(oe);case 11:return Va(oe);case 9:return Mc(oe);case 216:return rl(oe);case 229:return Ll(oe);case 230:return mc(oe);case 231:return Za(oe);case 108:return rf(oe,!1);case 110:return Je(oe);case 237:return bd(oe);case 175:return Ns(oe);case 178:case 179:return Da(oe);case 244:return Xt(oe);case 254:return Ce(oe);case 223:return Se(oe);default:return wn(oe,q,e)}}function de(oe){const ut=O(8064,64),tn=[],an=[];i();const On=t.copyPrologue(oe.statements,tn,!1,q);return Xr(an,Xn(oe.statements,q,Gi,On)),R&&an.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(tn,s()),ne(tn,oe),G(ut,0,0),t.updateSourceFile(oe,bt(t.createNodeArray(lo(tn,an)),oe.statements))}function fe(oe){if(P!==void 0){const ut=P.allowedNonLabeledJumps;P.allowedNonLabeledJumps|=2;const tn=wn(oe,q,e);return P.allowedNonLabeledJumps=ut,tn}return wn(oe,q,e)}function ve(oe){const ut=O(7104,0),tn=wn(oe,q,e);return G(ut,0,0),tn}function xe(oe){return jr(t.createReturnStatement(X()),oe)}function X(){return t.createUniqueName("_this",48)}function Ce(oe){return P?(P.nonLocalJumps|=8,j(oe)&&(oe=xe(oe)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),oe.expression?C.checkDefined(st(oe.expression,q,St)):t.createVoidZero())]))):j(oe)?xe(oe):wn(oe,q,e)}function Je(oe){return A|=65536,A&2&&!(A&16384)&&(A|=131072),P?A&2?(P.containsLexicalThis=!0,oe):P.thisName||(P.thisName=t.createUniqueName("this")):oe}function Se(oe){return wn(oe,ye,e)}function re(oe){return P&&d.isArgumentsLocalBinding(oe)?P.argumentsName||(P.argumentsName=t.createUniqueName("arguments")):oe.flags&256?jr(bt(t.createIdentifier(Bi(oe.escapedText)),oe),oe):oe}function be(oe){if(P){const ut=oe.kind===253?2:4;if(!(oe.label&&P.labels&&P.labels.get(Kr(oe.label))||!oe.label&&P.allowedNonLabeledJumps&ut)){let an;const On=oe.label;On?oe.kind===253?(an=`break-${On.escapedText}`,pt(P,!0,Kr(On),an)):(an=`continue-${On.escapedText}`,pt(P,!1,Kr(On),an)):oe.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 Ti;for(let $i=0;$iHe(ut.name)&&!ut.initializer)}function at(oe){if(r1(oe))return!0;if(!(oe.transformFlags&134217728))return!1;switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{const ut=oe;return va(ut.name)?!!Jo(ut.name,at):!1}}return!!Jo(oe,at)}function Wt(oe,ut,tn,an){const On=!!tn&&Ul(tn.expression).kind!==106;if(!oe)return Ge(ut,On);const ar=[],ti=[];o();const Ti=t.copyStandardPrologue(oe.body.statements,ar,0);(an||at(oe.body))&&(A|=8192),Xr(ti,Xn(oe.body.statements,q,Gi,Ti));const $i=On||A&8192;Uo(ar,oe),ht(ar,oe,an),it(ar,oe),$i?Fe(ar,oe,Hi()):ne(ar,oe),t.mergeLexicalEnvironment(ar,s()),$i&&!ai(oe.body)&&ti.push(t.createReturnStatement(X()));const z=t.createBlock(bt(t.createNodeArray([...ar,...ti]),oe.body.statements),!0);return bt(z,oe.body),ri(z,oe.body,an)}function cn(oe){return fl(oe)&&Kr(oe)==="_this"}function gn(oe){return fl(oe)&&Kr(oe)==="_super"}function Kn(oe){return sc(oe)&&oe.declarationList.declarations.length===1&>(oe.declarationList.declarations[0])}function gt(oe){return yi(oe)&&cn(oe.name)&&!!oe.initializer}function en(oe){return id(oe,!0)&&cn(oe.left)}function or(oe){return Zo(oe)&&qr(oe.expression)&&gn(oe.expression.expression)&&He(oe.expression.name)&&(Kr(oe.expression.name)==="call"||Kr(oe.expression.name)==="apply")&&oe.arguments.length>=1&&oe.arguments[0].kind===110}function Di(oe){return Nr(oe)&&oe.operatorToken.kind===57&&oe.right.kind===110&&or(oe.left)}function co(oe){return Nr(oe)&&oe.operatorToken.kind===56&&Nr(oe.left)&&oe.left.operatorToken.kind===38&&gn(oe.left.left)&&oe.left.right.kind===106&&or(oe.right)&&Kr(oe.right.expression.name)==="apply"}function zt(oe){return Nr(oe)&&oe.operatorToken.kind===57&&oe.right.kind===110&&co(oe.left)}function Zr(oe){return en(oe)&&Di(oe.right)}function Ai(oe){return en(oe)&&zt(oe.right)}function Ni(oe){return or(oe)||Di(oe)||Zr(oe)||co(oe)||zt(oe)||Ai(oe)}function Pr(oe){for(let ut=0;ut0;an--){const On=oe.statements[an];if(tf(On)&&On.expression&&cn(On.expression)){const ar=oe.statements[an-1];let ti;if(od(ar)&&Zr(Ul(ar.expression)))ti=ar.expression;else if(tn&&Kn(ar)){const z=ar.declarationList.declarations[0];Ni(Ul(z.initializer))&&(ti=t.createAssignment(X(),z.initializer))}if(!ti)break;const Ti=t.createReturnStatement(ti);jr(Ti,ar),bt(Ti,ar);const $i=t.createNodeArray([...oe.statements.slice(0,an-1),Ti,...oe.statements.slice(an+1)]);return bt($i,oe.statements),t.updateBlock(oe,$i)}}return oe}function Ye(oe){if(Kn(oe)){if(oe.declarationList.declarations[0].initializer.kind===110)return}else if(en(oe))return t.createPartiallyEmittedExpression(oe.right,oe);switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return oe;case 178:case 179:case 175:case 173:{const ut=oe;return va(ut.name)?t.replacePropertyName(ut,wn(ut.name,Ye,void 0)):oe}}return wn(oe,Ye,void 0)}function At(oe,ut){if(ut.transformFlags&16384||A&65536||A&131072)return oe;for(const tn of ut.statements)if(tn.transformFlags&134217728&&!h3(tn))return oe;return t.updateBlock(oe,Xn(oe.statements,Ye,Gi))}function mn(oe){if(or(oe)&&oe.arguments.length===2&&He(oe.arguments[1])&&Kr(oe.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(ql(),t.createNull()),oe);switch(oe.kind){case 220:case 219:case 263:case 177:case 176:return oe;case 178:case 179:case 175:case 173:{const ut=oe;return va(ut.name)?t.replacePropertyName(ut,wn(ut.name,mn,void 0)):oe}}return wn(oe,mn,void 0)}function dr(oe){return t.updateBlock(oe,Xn(oe.statements,mn,Gi))}function ri(oe,ut,tn){const an=oe;return oe=Pr(oe),oe=Ci(oe,ut),oe!==an&&(oe=At(oe,ut)),tn&&(oe=dr(oe)),oe}function ai(oe){if(oe.kind===254)return!0;if(oe.kind===246){const ut=oe;if(ut.elseStatement)return ai(ut.thenStatement)&&ai(ut.elseStatement)}else if(oe.kind===242){const ut=tl(oe.statements);if(ut&&ai(ut))return!0}return!1}function Hi(){return Cr(t.createThis(),8)}function $o(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(ql(),t.createNull()),t.createFunctionApplyCall(ql(),Hi(),t.createIdentifier("arguments"))),Hi())}function Ia(oe){if(!oe.dotDotDotToken)return Qo(oe.name)?jr(bt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(oe),void 0,void 0,void 0),oe),oe):oe.initializer?jr(bt(t.createParameterDeclaration(void 0,void 0,oe.name,void 0,void 0,void 0),oe),oe):oe}function Pn(oe){return oe.initializer!==void 0||Qo(oe.name)}function Uo(oe,ut){if(!vt(ut.parameters,Pn))return!1;let tn=!1;for(const an of ut.parameters){const{name:On,initializer:ar,dotDotDotToken:ti}=an;ti||(Qo(On)?tn=ot(oe,an,On,ar)||tn:ar&&(Ft(oe,an,On,ar),tn=!0))}return tn}function ot(oe,ut,tn,an){return tn.elements.length>0?(t1(oe,Cr(t.createVariableStatement(void 0,t.createVariableDeclarationList(YS(ut,q,e,0,t.getGeneratedNameForNode(ut)))),2097152)),!0):an?(t1(oe,Cr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(ut),C.checkDefined(st(an,q,St)))),2097152)),!0):!1}function Ft(oe,ut,tn,an){an=C.checkDefined(st(an,q,St));const On=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|Qa(an)|3072)),ut),3072))]),ut),3905));au(On),bt(On,ut),Cr(On,2101056),t1(oe,On)}function le(oe,ut){return!!(oe&&oe.dotDotDotToken&&!ut)}function ht(oe,ut,tn){const an=[],On=tl(ut.parameters);if(!le(On,tn))return!1;const ar=On.name.kind===80?ps(bt(t.cloneNode(On.name),On.name),On.name.parent):t.createTempVariable(void 0);Cr(ar,96);const ti=On.name.kind===80?t.cloneNode(On.name):ar,Ti=ut.parameters.length-1,$i=t.createLoopVariable();an.push(Cr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ar,void 0,void 0,t.createArrayLiteralExpression([]))])),On),2097152));const z=t.createForStatement(bt(t.createVariableDeclarationList([t.createVariableDeclaration($i,void 0,void 0,t.createNumericLiteral(Ti))]),On),bt(t.createLessThan($i,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),On),bt(t.createPostfixIncrement($i),On),t.createBlock([au(bt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ti,Ti===0?$i:t.createSubtract($i,t.createNumericLiteral(Ti))),t.createElementAccessExpression(t.createIdentifier("arguments"),$i))),On))]));return Cr(z,2097152),au(z),an.push(z),On.name.kind!==80&&an.push(Cr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList(YS(On,q,e,0,ti))),On),2097152)),uG(oe,an),!0}function ne(oe,ut){return A&131072&&ut.kind!==220?(Fe(oe,ut,t.createThis()),!0):!1}function Fe(oe,ut,tn){Au();const an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(X(),void 0,void 0,tn)]));Cr(an,2100224),Ua(an,ut),t1(oe,an)}function it(oe,ut){if(A&32768){let tn;switch(ut.kind){case 220:return oe;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(ut))),void 0,t.createPropertyAccessExpression(Cr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return C.failBadSyntaxKind(ut)}const an=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,tn)]));Cr(an,2100224),t1(oe,an)}return oe}function dt(oe,ut){for(const tn of ut.members)switch(tn.kind){case 241:oe.push(Lt(tn));break;case 175:oe.push(Ue(Tf(ut,tn),tn,ut));break;case 178:case 179:const an=PS(ut.members,tn);tn===an.firstAccessor&&oe.push(Rt(Tf(ut,tn),an,ut));break;case 177:case 176:break;default:C.failBadSyntaxKind(tn,y&&y.fileName);break}}function Lt(oe){return bt(t.createEmptyStatement(),oe)}function Ue(oe,ut,tn){const an=e_(ut),On=lv(ut),ar=Tr(ut,ut,void 0,tn),ti=st(ut.name,q,vc);C.assert(ti);let Ti;if(!eo(ti)&&Jk(e.getCompilerOptions())){const z=va(ti)?ti.expression:He(ti)?t.createStringLiteral(Bi(ti.escapedText)):ti;Ti=t.createObjectDefinePropertyCall(oe,z,t.createPropertyDescriptor({value:ar,enumerable:!1,writable:!0,configurable:!0}))}else{const z=C1(t,oe,ti,ut.name);Ti=t.createAssignment(z,ar)}Cr(ar,3072),Ua(ar,On);const $i=bt(t.createExpressionStatement(Ti),ut);return jr($i,ut),Rc($i,an),Cr($i,96),$i}function Rt(oe,ut,tn){const an=t.createExpressionStatement(It(oe,ut,tn,!1));return Cr(an,3072),Ua(an,lv(ut.firstAccessor)),an}function It(oe,{firstAccessor:ut,getAccessor:tn,setAccessor:an},On,ar){const ti=ps(bt(t.cloneNode(oe),oe),oe.parent);Cr(ti,3136),Ua(ti,ut.name);const Ti=st(ut.name,q,vc);if(C.assert(Ti),eo(Ti))return C.failBadSyntaxKind(Ti,"Encountered unhandled private identifier while transforming ES2015.");const $i=Wj(t,Ti);Cr($i,3104),Ua($i,ut.name);const z=[];if(tn){const kt=Tr(tn,void 0,void 0,On);Ua(kt,lv(tn)),Cr(kt,1024);const Wn=t.createPropertyAssignment("get",kt);Rc(Wn,e_(tn)),z.push(Wn)}if(an){const kt=Tr(an,void 0,void 0,On);Ua(kt,lv(an)),Cr(kt,1024);const Wn=t.createPropertyAssignment("set",kt);Rc(Wn,e_(an)),z.push(Wn)}z.push(t.createPropertyAssignment("enumerable",tn||an?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Ve=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[ti,$i,t.createObjectLiteralExpression(z,!0)]);return ar&&au(Ve),Ve}function Ot(oe){oe.transformFlags&16384&&!(A&16384)&&(A|=131072);const ut=P;P=void 0;const tn=O(15232,66),an=t.createFunctionExpression(void 0,void 0,void 0,void 0,Fl(oe.parameters,q,e),void 0,Oe(oe));return bt(an,oe),jr(an,oe),Cr(an,16),G(tn,0,0),P=ut,an}function nt(oe){const ut=Qa(oe)&524288?O(32662,69):O(32670,65),tn=P;P=void 0;const an=Fl(oe.parameters,q,e),On=Oe(oe),ar=A&32768?t.getLocalName(oe):oe.name;return G(ut,229376,0),P=tn,t.updateFunctionExpression(oe,void 0,oe.asteriskToken,ar,void 0,an,void 0,On)}function Kt(oe){const ut=P;P=void 0;const tn=O(32670,65),an=Fl(oe.parameters,q,e),On=Oe(oe),ar=A&32768?t.getLocalName(oe):oe.name;return G(tn,229376,0),P=ut,t.updateFunctionDeclaration(oe,Xn(oe.modifiers,q,Aa),oe.asteriskToken,ar,void 0,an,void 0,On)}function Tr(oe,ut,tn,an){const On=P;P=void 0;const ar=an&&ui(an)&&!ua(oe)?O(32670,73):O(32670,65),ti=Fl(oe.parameters,q,e),Ti=Oe(oe);return A&32768&&!tn&&(oe.kind===263||oe.kind===219)&&(tn=t.getGeneratedNameForNode(oe)),G(ar,229376,0),P=On,jr(bt(t.createFunctionExpression(void 0,oe.asteriskToken,tn,void 0,ti,void 0,Ti),ut),oe)}function Oe(oe){let ut=!1,tn=!1,an,On;const ar=[],ti=[],Ti=oe.body;let $i;if(o(),ea(Ti)&&($i=t.copyStandardPrologue(Ti.statements,ar,0,!1),$i=t.copyCustomPrologue(Ti.statements,ti,$i,q,VF),$i=t.copyCustomPrologue(Ti.statements,ti,$i,q,jF)),ut=Uo(ti,oe)||ut,ut=ht(ti,oe,!1)||ut,ea(Ti))$i=t.copyCustomPrologue(Ti.statements,ti,$i,q),an=Ti.statements,Xr(ti,Xn(Ti.statements,q,Gi,$i)),!ut&&Ti.multiLine&&(ut=!0);else{C.assert(oe.kind===220),an=R6(Ti,-1);const Ve=oe.equalsGreaterThanToken;!Os(Ve)&&!Os(Ti)&&(Gk(Ve,Ti,y)?tn=!0:ut=!0);const kt=st(Ti,q,St),Wn=t.createReturnStatement(kt);bt(Wn,Ti),nie(Wn,Ti),Cr(Wn,2880),ti.push(Wn),On=Ti}if(t.mergeLexicalEnvironment(ar,s()),it(ar,oe),ne(ar,oe),vt(ar)&&(ut=!0),ti.unshift(...ar),ea(Ti)&&Qp(ti,Ti.statements))return Ti;const z=t.createBlock(bt(t.createNodeArray(ti),an),ut);return bt(z,oe.body),!ut&&tn&&Cr(z,1),On&&tie(z,20,On),jr(z,oe.body),z}function Nt(oe,ut){const tn=A&256?O(7104,512):O(6976,128),an=wn(oe,q,e);return G(tn,0,0),an}function he(oe){return wn(oe,ye,e)}function B(oe,ut){return wn(oe,ut?ye:q,e)}function Ae(oe,ut){return rv(oe)?w1(oe,q,e,0,!ut):oe.operatorToken.kind===28?t.updateBinaryExpression(oe,C.checkDefined(st(oe.left,ye,St)),oe.operatorToken,C.checkDefined(st(oe.right,ut?ye:q,St))):wn(oe,q,e)}function te(oe,ut){if(ut)return wn(oe,ye,e);let tn;for(let On=0;On$i.name)),Ti=an?t.createYieldExpression(t.createToken(42),Cr(ti,8388608)):ti;if(ar)On.push(t.createExpressionStatement(Ti)),Fs(ut.loopOutParameters,1,0,On);else{const $i=t.createUniqueName("state"),z=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration($i,void 0,void 0,Ti)]));if(On.push(z),Fs(ut.loopOutParameters,1,0,On),ut.nonLocalJumps&8){let Ve;tn?(tn.nonLocalJumps|=8,Ve=t.createReturnStatement($i)):Ve=t.createReturnStatement(t.createPropertyAccessExpression($i,"value")),On.push(t.createIfStatement(t.createTypeCheck($i,"object"),Ve))}if(ut.nonLocalJumps&2&&On.push(t.createIfStatement(t.createStrictEquality($i,t.createStringLiteral("break")),t.createBreakStatement())),ut.labeledNonLocalBreaks||ut.labeledNonLocalContinues){const Ve=[];qt(ut.labeledNonLocalBreaks,!0,$i,tn,Ve),qt(ut.labeledNonLocalContinues,!1,$i,tn,Ve),On.push(t.createSwitchStatement($i,t.createCaseBlock(Ve)))}}return On}function pt(oe,ut,tn,an){ut?(oe.labeledNonLocalBreaks||(oe.labeledNonLocalBreaks=new Map),oe.labeledNonLocalBreaks.set(tn,an)):(oe.labeledNonLocalContinues||(oe.labeledNonLocalContinues=new Map),oe.labeledNonLocalContinues.set(tn,an))}function qt(oe,ut,tn,an,On){oe&&oe.forEach((ar,ti)=>{const Ti=[];if(!an||an.labels&&an.labels.get(ti)){const $i=t.createIdentifier(ti);Ti.push(ut?t.createBreakStatement($i):t.createContinueStatement($i))}else pt(an,ut,ti,ar),Ti.push(t.createReturnStatement(tn));On.push(t.createCaseClause(t.createStringLiteral(ar),Ti))})}function fn(oe,ut,tn,an,On){const ar=ut.name;if(Qo(ar))for(const ti of ar.elements)Jc(ti)||fn(oe,ti,tn,an,On);else{tn.push(t.createParameterDeclaration(void 0,void 0,ar));const ti=d.hasNodeCheckFlag(ut,65536);if(ti||On){const Ti=t.createUniqueName("out_"+Kr(ar));let $i=0;ti&&($i|=1),QT(oe)&&(oe.initializer&&d.isBindingCapturedByNode(oe.initializer,ut)&&($i|=2),(oe.condition&&d.isBindingCapturedByNode(oe.condition,ut)||oe.incrementor&&d.isBindingCapturedByNode(oe.incrementor,ut))&&($i|=1)),an.push({flags:$i,originalName:ar,outParamName:Ti})}}}function ur(oe,ut,tn,an){const On=ut.properties,ar=On.length;for(let ti=an;tisc(Ca)&&!!$a(Ca.declarationList.declarations).initializer,an=P;P=void 0;const On=Xn(ut.statements,ie,Gi);P=an;const ar=Vn(On,tn),ti=Vn(On,Ca=>!tn(Ca)),$i=ha($a(ar),sc).declarationList.declarations[0],z=Ul($i.initializer);let Ve=ni(z,id);!Ve&&Nr(z)&&z.operatorToken.kind===28&&(Ve=ni(z.left,id));const kt=ha(Ve?Ul(Ve.right):z,Zo),Wn=ha(Ul(kt.expression),Us),vo=Wn.body.statements;let ta=0,Ao=-1;const Vo=[];if(Ve){const Ca=ni(vo[ta],od);Ca&&(Vo.push(Ca),ta++),Vo.push(vo[ta]),ta++,Vo.push(t.createExpressionStatement(t.createAssignment(Ve.left,ha($i.name,He))))}for(;!tf(Qv(vo,Ao));)Ao--;Xr(Vo,vo,ta,Ao),Ao<-1&&Xr(Vo,vo,Ao+1);const hl=ni(Qv(vo,Ao),tf);for(const Ca of ti)tf(Ca)&&(hl!=null&&hl.expression)&&!He(hl.expression)?Vo.push(hl):Vo.push(Ca);return Xr(Vo,ar,1),t.restoreOuterExpressions(oe.expression,t.restoreOuterExpressions($i.initializer,t.restoreOuterExpressions(Ve&&Ve.right,t.updateCallExpression(kt,t.restoreOuterExpressions(kt.expression,t.updateFunctionExpression(Wn,void 0,void 0,void 0,void 0,Wn.parameters,void 0,t.updateBlock(Wn.body,Vo))),void 0,kt.arguments))))}function Pd(oe,ut){if(oe.transformFlags&32768||oe.expression.kind===108||mp(Ul(oe.expression))){const{target:tn,thisArg:an}=t.createCallBinding(oe.expression,l);oe.expression.kind===108&&Cr(an,8);let On;if(oe.transformFlags&32768?On=t.createFunctionApplyCall(C.checkDefined(st(tn,K,St)),oe.expression.kind===108?an:C.checkDefined(st(an,q,St)),op(oe.arguments,!0,!1,!1)):On=bt(t.createFunctionCallCall(C.checkDefined(st(tn,K,St)),oe.expression.kind===108?an:C.checkDefined(st(an,q,St)),Xn(oe.arguments,q,St)),oe),oe.expression.kind===108){const ar=t.createLogicalOr(On,Hi());On=t.createAssignment(X(),ar)}return jr(On,oe)}return r1(oe)&&(A|=131072),wn(oe,q,e)}function nf(oe){if(vt(oe.arguments,qf)){const{target:ut,thisArg:tn}=t.createCallBinding(t.createPropertyAccessExpression(oe.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(C.checkDefined(st(ut,q,St)),tn,op(t.createNodeArray([t.createVoidZero(),...oe.arguments]),!0,!1,!1)),void 0,[])}return wn(oe,q,e)}function op(oe,ut,tn,an){const On=oe.length,ar=ia(f2(oe,ze,(z,Ve,kt,Wn)=>Ve(z,tn,an&&Wn===On)));if(ar.length===1){const z=ar[0];if(ut&&!u.downlevelIteration||qV(z.expression)||WM(z.expression,"___spreadArray"))return z.expression}const ti=r(),Ti=ar[0].kind!==0;let $i=Ti?t.createArrayLiteralExpression():ar[0].expression;for(let z=Ti?0:1;z0&&an.push(t.createStringLiteral(tn.literal.text)),ut=t.createCallExpression(t.createPropertyAccessExpression(ut,"concat"),void 0,an)}return bt(ut,oe)}function ql(){return t.createUniqueName("_super",48)}function rf(oe,ut){const tn=A&8&&!ut?t.createPropertyAccessExpression(jr(ql(),oe),"prototype"):ql();return jr(tn,oe),Rc(tn,oe),Ua(tn,oe),tn}function bd(oe){return oe.keywordToken===105&&oe.name.escapedText==="target"?(A|=32768,t.createUniqueName("_newTarget",48)):oe}function ld(oe,ut,tn){if(k&1&&Yo(ut)){const an=O(32670,Qa(ut)&16?81:65);h(oe,ut,tn),G(an,0,0);return}h(oe,ut,tn)}function jp(){k&2||(k|=2,e.enableSubstitution(80))}function Au(){k&1||(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 Xf(oe,ut){return ut=g(oe,ut),oe===1?Mg(ut):He(ut)?V_(ut):ut}function V_(oe){if(k&2&&!Fj(oe)){const ut=jo(oe,He);if(ut&&Ng(ut))return bt(t.getGeneratedNameForNode(ut),oe)}return oe}function Ng(oe){switch(oe.parent.kind){case 209:case 264:case 267:case 261:return oe.parent.name===oe&&d.isDeclarationWithCollidingName(oe.parent)}return!1}function Mg(oe){switch(oe.kind){case 80:return ap(oe);case 110:return bh(oe)}return oe}function ap(oe){if(k&2&&!Fj(oe)){const ut=d.getReferencedDeclarationWithCollidingName(oe);if(ut&&!(ui(ut)&&Xc(ut,oe)))return bt(t.getGeneratedNameForNode(Oo(ut)),oe)}return oe}function Xc(oe,ut){let tn=jo(ut);if(!tn||tn===oe||tn.end<=oe.pos||tn.pos>=oe.end)return!1;const an=sh(oe);for(;tn;){if(tn===an||tn===oe)return!1;if(bc(tn)&&tn.parent===oe)return!0;tn=tn.parent}return!1}function bh(oe){return k&1&&A&16?bt(X(),oe):oe}function Tf(oe,ut){return ua(ut)?t.getInternalName(oe):t.createPropertyAccessExpression(t.getInternalName(oe),"prototype")}function f_(oe,ut){if(!oe||!ut||vt(oe.parameters))return!1;const tn=Ac(oe.body.statements);if(!tn||!Os(tn)||tn.kind!==245)return!1;const an=tn.expression;if(!Os(an)||an.kind!==214)return!1;const On=an.expression;if(!Os(On)||On.kind!==108)return!1;const ar=ag(an.arguments);if(!ar||!Os(ar)||ar.kind!==231)return!1;const ti=ar.expression;return He(ti)&&ti.escapedText==="arguments"}}function Tqe(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 qae(e){const{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,u=e.getCompilerOptions(),d=Ga(u),g=e.getEmitResolver(),h=e.onSubstituteNode;e.onSubstituteNode=he;let y,E,A,R,N,P,k,F,O,G,j=1,J,Z,q,ye,ie=0,K=0,pe,de,fe,ve,xe,X,Ce,Je;return hh(e,Se);function Se(ze){if(ze.isDeclarationFile||!(ze.transformFlags&2048))return ze;const Jt=wn(ze,re,e);return Ig(Jt,e.readEmitHelpers()),Jt}function re(ze){const Jt=ze.transformFlags;return R?be(ze):A?Ne(ze):Ms(ze)&&ze.asteriskToken?lt(ze):Jt&2048?wn(ze,re,e):ze}function be(ze){switch(ze.kind){case 247:return $o(ze);case 248:return Pn(ze);case 256:return It(ze);case 257:return nt(ze);default:return Ne(ze)}}function Ne(ze){switch(ze.kind){case 263:return ce(ze);case 219:return Re(ze);case 178:case 179:return ge(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?wn(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 co(ze);case 213:return zt(ze);case 214:return Zr(ze);case 215:return Ai(ze);default:return wn(ze,re,e)}}function lt(ze){switch(ze.kind){case 263:return ce(ze);case 219:return Re(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,Fl(ze.parameters,re,e),void 0,je(ze.body)),ze),ze);else{const Jt=A,tr=R;A=!1,R=!1,ze=wn(ze,re,e),A=Jt,R=tr}if(A){s(ze);return}else return ze}function Re(ze){if(ze.asteriskToken)ze=jr(bt(t.createFunctionExpression(void 0,void 0,ze.name,void 0,Fl(ze.parameters,re,e),void 0,je(ze.body)),ze),ze);else{const Jt=A,tr=R;A=!1,R=!1,ze=wn(ze,re,e),A=Jt,R=tr}return ze}function ge(ze){const Jt=A,tr=R;return A=!1,R=!1,ze=wn(ze,re,e),A=Jt,R=tr,ze}function je(ze){const Jt=[],tr=A,yo=R,Za=N,es=P,Va=k,Mc=F,rl=O,Ll=G,ql=j,rf=J,bd=Z,ld=q,jp=ye;A=!0,R=!1,N=void 0,P=void 0,k=void 0,F=void 0,O=void 0,G=void 0,j=1,J=void 0,Z=void 0,q=void 0,ye=t.createTempVariable(void 0),i();const Au=t.copyPrologue(ze.statements,Jt,!1,re);Ni(ze.statements,Au);const Xf=pt();return hg(Jt,o()),Jt.push(t.createReturnStatement(Xf)),A=tr,R=yo,N=Za,P=es,k=Va,F=Mc,O=rl,G=Ll,j=ql,J=rf,Z=bd,q=ld,ye=jp,bt(t.createBlock(Jt,ze.multiLine),ze)}function Ge(ze){if(ze.transformFlags&1048576){dr(ze.declarationList);return}else{if(Qa(ze)&2097152)return ze;for(const tr of ze.declarationList.declarations)l(tr.name);const Jt=_M(ze.declarationList);return Jt.length===0?void 0:Ua(t.createExpressionStatement(t.inlineExpressions(Bt(Jt,ri))),ze)}}function We(ze){const Jt=YG(ze);switch(Jt){case 0:return Wt(ze);case 1:return at(ze);default:return C.assertNever(Jt)}}function at(ze){const{left:Jt,right:tr}=ze;if(Oe(tr)){let yo;switch(Jt.kind){case 212:yo=t.updatePropertyAccessExpression(Jt,te(C.checkDefined(st(Jt.expression,re,$u))),Jt.name);break;case 213:yo=t.updateElementAccessExpression(Jt,te(C.checkDefined(st(Jt.expression,re,$u))),te(C.checkDefined(st(Jt.argumentExpression,re,St))));break;default:yo=C.checkDefined(st(Jt,re,St));break}const Za=ze.operatorToken.kind;return cP(Za)?bt(t.createAssignment(yo,bt(t.createBinaryExpression(te(yo),dP(Za),C.checkDefined(st(tr,re,St))),ze)),ze):t.updateBinaryExpression(ze,yo,ze.operatorToken,C.checkDefined(st(tr,re,St)))}return wn(ze,re,e)}function Wt(ze){return Oe(ze.right)?Gne(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))):wn(ze,re,e)}function cn(ze){let Jt=[];return tr(ze.left),tr(ze.right),t.inlineExpressions(Jt);function tr(yo){Nr(yo)&&yo.operatorToken.kind===28?(tr(yo.left),tr(yo.right)):(Oe(yo)&&Jt.length>0&&(Y(1,[t.createExpressionStatement(t.inlineExpressions(Jt))]),Jt=[]),Jt.push(C.checkDefined(st(yo,re,St))))}}function gn(ze){let Jt=[];for(const tr of ze.elements)Nr(tr)&&tr.operatorToken.kind===28?Jt.push(cn(tr)):(Oe(tr)&&Jt.length>0&&(Y(1,[t.createExpressionStatement(t.inlineExpressions(Jt))]),Jt=[]),Jt.push(C.checkDefined(st(tr,re,St))));return t.inlineExpressions(Jt)}function Kn(ze){const Jt=Xt(),tr=xt();return is(tr,C.checkDefined(st(ze.left,re,St)),ze.left),ze.operatorToken.kind===56?As(Jt,tr,ze.left):Zt(Jt,tr,ze.left),is(tr,C.checkDefined(st(ze.right,re,St)),ze.right),Pe(Jt),tr}function gt(ze){if(Oe(ze.whenTrue)||Oe(ze.whenFalse)){const Jt=Xt(),tr=Xt(),yo=xt();return As(Jt,C.checkDefined(st(ze.condition,re,St)),ze.condition),is(yo,C.checkDefined(st(ze.whenTrue,re,St)),ze.whenTrue),qa(tr),Pe(Jt),is(yo,C.checkDefined(st(ze.whenFalse,re,St)),ze.whenFalse),Pe(tr),yo}return wn(ze,re,e)}function en(ze){const Jt=Xt(),tr=st(ze.expression,re,St);if(ze.asteriskToken){const yo=Qa(ze.expression)&8388608?tr:bt(r().createValuesHelper(tr),ze);Hl(yo,ze)}else lc(tr,ze);return Pe(Jt),bf(ze)}function or(ze){return Di(ze.elements,void 0,void 0,ze.multiLine)}function Di(ze,Jt,tr,yo){const Za=Nt(ze);let es;if(Za>0){es=xt();const rl=Xn(ze,re,St,0,Za);is(es,t.createArrayLiteralExpression(Jt?[Jt,...rl]:rl)),Jt=void 0}const Va=gu(ze,Mc,[],Za);return es?t.createArrayConcatCall(es,[t.createArrayLiteralExpression(Va,yo)]):bt(t.createArrayLiteralExpression(Jt?[Jt,...Va]:Va,yo),tr);function Mc(rl,Ll){if(Oe(Ll)&&rl.length>0){const ql=es!==void 0;es||(es=xt()),is(es,ql?t.createArrayConcatCall(es,[t.createArrayLiteralExpression(rl,yo)]):t.createArrayLiteralExpression(Jt?[Jt,...rl]:rl,yo)),Jt=void 0,rl=[]}return rl.push(C.checkDefined(st(Ll,re,St))),rl}}function co(ze){const Jt=ze.properties,tr=ze.multiLine,yo=Nt(Jt),Za=xt();is(Za,t.createObjectLiteralExpression(Xn(Jt,re,ry,0,yo),tr));const es=gu(Jt,Va,[],yo);return es.push(tr?au(ps(bt(t.cloneNode(Za),Za),Za.parent)):Za),t.inlineExpressions(es);function Va(Mc,rl){Oe(rl)&&Mc.length>0&&(fa(t.createExpressionStatement(t.inlineExpressions(Mc))),Mc=[]);const Ll=Uie(t,ze,rl,Za),ql=st(Ll,re,St);return ql&&(tr&&au(ql),Mc.push(ql)),Mc}}function zt(ze){return Oe(ze.argumentExpression)?t.updateElementAccessExpression(ze,te(C.checkDefined(st(ze.expression,re,$u))),C.checkDefined(st(ze.argumentExpression,re,St))):wn(ze,re,e)}function Zr(ze){if(!Qu(ze)&&$e(ze.arguments,Oe)){const{target:Jt,thisArg:tr}=t.createCallBinding(ze.expression,l,d,!0);return jr(bt(t.createFunctionApplyCall(te(C.checkDefined(st(Jt,re,$u))),tr,Di(ze.arguments)),ze),ze)}return wn(ze,re,e)}function Ai(ze){if($e(ze.arguments,Oe)){const{target:Jt,thisArg:tr}=t.createCallBinding(t.createPropertyAccessExpression(ze.expression,"bind"),l);return jr(bt(t.createNewExpression(t.createFunctionApplyCall(te(C.checkDefined(st(Jt,re,St))),tr,Di(ze.arguments,t.createVoidZero())),void 0,[]),ze),ze)}return wn(ze,re,e)}function Ni(ze,Jt=0){const tr=ze.length;for(let yo=Jt;yo0)break;Za.push(ri(Va))}Za.length&&(fa(t.createExpressionStatement(t.inlineExpressions(Za))),yo+=Za.length,Za=[])}}function ri(ze){return Ua(t.createAssignment(Ua(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 Jt=Xt(),tr=ze.elseStatement?Xt():void 0;As(ze.elseStatement?tr:Jt,C.checkDefined(st(ze.expression,re,St)),ze.expression),Pr(ze.thenStatement),ze.elseStatement&&(qa(Jt),Pe(tr),Pr(ze.elseStatement)),Pe(Jt)}else fa(st(ze,re,Gi));else fa(st(ze,re,Gi))}function Hi(ze){if(Oe(ze)){const Jt=Xt(),tr=Xt();wt(Jt),Pe(tr),Pr(ze.statement),Pe(Jt),Zt(tr,C.checkDefined(st(ze.expression,re,St))),En()}else fa(st(ze,re,Gi))}function $o(ze){return R?(yn(),ze=wn(ze,re,e),En(),ze):wn(ze,re,e)}function Ia(ze){if(Oe(ze)){const Jt=Xt(),tr=wt(Jt);Pe(Jt),As(tr,C.checkDefined(st(ze.expression,re,St))),Pr(ze.statement),qa(Jt),En()}else fa(st(ze,re,Gi))}function Pn(ze){return R?(yn(),ze=wn(ze,re,e),En(),ze):wn(ze,re,e)}function Uo(ze){if(Oe(ze)){const Jt=Xt(),tr=Xt(),yo=wt(tr);if(ze.initializer){const Za=ze.initializer;_d(Za)?dr(Za):fa(bt(t.createExpressionStatement(C.checkDefined(st(Za,re,St))),Za))}Pe(Jt),ze.condition&&As(yo,C.checkDefined(st(ze.condition,re,St))),Pr(ze.statement),Pe(tr),ze.incrementor&&fa(bt(t.createExpressionStatement(C.checkDefined(st(ze.incrementor,re,St))),ze.incrementor)),qa(Jt),En()}else fa(st(ze,re,Gi))}function ot(ze){R&&yn();const Jt=ze.initializer;if(Jt&&_d(Jt)){for(const yo of Jt.declarations)l(yo.name);const tr=_M(Jt);ze=t.updateForStatement(ze,tr.length>0?t.inlineExpressions(Bt(tr,ri)):void 0,st(ze.condition,re,St),st(ze.incrementor,re,St),Wu(ze.statement,re,e))}else ze=wn(ze,re,e);return R&&En(),ze}function Ft(ze){if(Oe(ze)){const Jt=xt(),tr=xt(),yo=xt(),Za=t.createLoopVariable(),es=ze.initializer;l(Za),is(Jt,C.checkDefined(st(ze.expression,re,St))),is(tr,t.createArrayLiteralExpression()),fa(t.createForInStatement(yo,Jt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(tr,"push"),void 0,[yo])))),is(Za,t.createNumericLiteral(0));const Va=Xt(),Mc=Xt(),rl=wt(Mc);Pe(Va),As(rl,t.createLessThan(Za,t.createPropertyAccessExpression(tr,"length"))),is(yo,t.createElementAccessExpression(tr,Za)),As(Mc,t.createBinaryExpression(yo,103,Jt));let Ll;if(_d(es)){for(const ql of es.declarations)l(ql.name);Ll=t.cloneNode(es.declarations[0].name)}else Ll=C.checkDefined(st(es,re,St)),C.assert($u(Ll));is(Ll,yo),Pr(ze.statement),Pe(Mc),fa(t.createExpressionStatement(t.createPostfixIncrement(Za))),qa(Va),En()}else fa(st(ze,re,Gi))}function le(ze){R&&yn();const Jt=ze.initializer;if(_d(Jt)){for(const tr of Jt.declarations)l(tr.name);ze=t.updateForInStatement(ze,Jt.declarations[0].name,C.checkDefined(st(ze.expression,re,St)),C.checkDefined(st(ze.statement,re,Gi,t.liftToBlock)))}else ze=wn(ze,re,e);return R&&En(),ze}function ht(ze){const Jt=Go(ze.label?Kr(ze.label):void 0);Jt>0?qa(Jt,ze):fa(ze)}function ne(ze){if(R){const Jt=Go(ze.label&&Kr(ze.label));if(Jt>0)return Ra(Jt,ze)}return wn(ze,re,e)}function Fe(ze){const Jt=uo(ze.label?Kr(ze.label):void 0);Jt>0?qa(Jt,ze):fa(ze)}function it(ze){if(R){const Jt=uo(ze.label&&Kr(ze.label));if(Jt>0)return Ra(Jt,ze)}return wn(ze,re,e)}function dt(ze){vd(st(ze.expression,re,St),ze)}function Lt(ze){return ec(st(ze.expression,re,St),ze)}function Ue(ze){Oe(ze)?(Jn(te(C.checkDefined(st(ze.expression,re,St)))),Pr(ze.statement),ft()):fa(st(ze,re,Gi))}function Rt(ze){if(Oe(ze.caseBlock)){const Jt=ze.caseBlock,tr=Jt.clauses.length,yo=kn(),Za=te(C.checkDefined(st(ze.expression,re,St))),es=[];let Va=-1;for(let Ll=0;Ll0)break;rl.push(t.createCaseClause(C.checkDefined(st(rf.expression,re,St)),[Ra(es[ql],rf.expression)]))}else Ll++}rl.length&&(fa(t.createSwitchStatement(Za,t.createCaseBlock(rl))),Mc+=rl.length,rl=[]),Ll>0&&(Mc+=Ll,Ll=0)}Va>=0?qa(es[Va]):qa(yo);for(let Ll=0;Ll=0;tr--){const yo=F[tr];if(Bl(yo)){if(yo.labelText===ze)return!0}else break}return!1}function uo(ze){if(F)if(ze)for(let Jt=F.length-1;Jt>=0;Jt--){const tr=F[Jt];if(Bl(tr)&&tr.labelText===ze)return tr.breakLabel;if(zo(tr)&&Ps(ze,Jt-1))return tr.breakLabel}else for(let Jt=F.length-1;Jt>=0;Jt--){const tr=F[Jt];if(zo(tr))return tr.breakLabel}return 0}function Go(ze){if(F)if(ze)for(let Jt=F.length-1;Jt>=0;Jt--){const tr=F[Jt];if(xl(tr)&&Ps(ze,Jt-1))return tr.continueLabel}else for(let Jt=F.length-1;Jt>=0;Jt--){const tr=F[Jt];if(xl(tr))return tr.continueLabel}return 0}function Tc(ze){if(ze!==void 0&&ze>0){G===void 0&&(G=[]);const Jt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return G[ze]===void 0?G[ze]=[Jt]:G[ze].push(Jt),Jt}return t.createOmittedExpression()}function $s(ze){const Jt=t.createNumericLiteral(ze);return OM(Jt,3,Tqe(ze)),Jt}function Ra(ze,Jt){return C.assertLessThan(0,ze,"Invalid label"),bt(t.createReturnStatement(t.createArrayLiteralExpression([$s(3),Tc(ze)])),Jt)}function ec(ze,Jt){return bt(t.createReturnStatement(t.createArrayLiteralExpression(ze?[$s(2),ze]:[$s(2)])),Jt)}function bf(ze){return bt(t.createCallExpression(t.createPropertyAccessExpression(ye,"sent"),void 0,[]),ze)}function Lo(){Y(0)}function fa(ze){ze?Y(1,[ze]):Lo()}function is(ze,Jt,tr){Y(2,[ze,Jt],tr)}function qa(ze,Jt){Y(3,[ze],Jt)}function Zt(ze,Jt,tr){Y(4,[ze,Jt],tr)}function As(ze,Jt,tr){Y(5,[ze,Jt],tr)}function Hl(ze,Jt){Y(7,[ze],Jt)}function lc(ze,Jt){Y(6,[ze],Jt)}function vd(ze,Jt){Y(8,[ze],Jt)}function Fs(ze,Jt){Y(9,[ze],Jt)}function Ee(){Y(10)}function Y(ze,Jt,tr){J===void 0&&(J=[],Z=[],q=[]),O===void 0&&Pe(Xt());const yo=J.length;J[yo]=ze,Z[yo]=Jt,q[yo]=tr}function pt(){ie=0,K=0,pe=void 0,de=!1,fe=!1,ve=void 0,xe=void 0,X=void 0,Ce=void 0,Je=void 0;const ze=qt();return r().createGeneratorHelper(Cr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ye)],void 0,t.createBlock(ze,ze.length>0)),1048576))}function qt(){if(J){for(let ze=0;ze=0;Jt--){const tr=Je[Jt];xe=[t.createWithStatement(tr.expression,t.createBlock(xe))]}if(Ce){const{startLabel:Jt,catchLabel:tr,finallyLabel:yo,endLabel:Za}=Ce;xe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ye,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Tc(Jt),Tc(tr),Tc(yo),Tc(Za)])]))),Ce=void 0}ze&&xe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ye,"label"),t.createNumericLiteral(K+1))))}ve.push(t.createCaseClause(t.createNumericLiteral(K),xe||[])),xe=void 0}function zn(ze){if(O)for(let Jt=0;Jt{(!ds(te.arguments[0])||Tk(te.arguments[0].text,u))&&(k=Un(k,te))});const Ae=t(y)(he);return N=void 0,P=void 0,O=!1,Ae}function j(){return Sg(N.fileName)&&N.commonJsModuleIndicator&&(!N.externalModuleIndicator||N.externalModuleIndicator===!0)?!1:!!(!P.exportEquals&&zc(N))}function J(he){o();const B=[],Ae=Vd(u,"alwaysStrict")||zc(N),te=r.copyPrologue(he.statements,B,Ae&&!Ff(he),de);if(j()&&Un(B,Fe()),vt(P.exportedNames))for(let Pe=0;PeGt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Gt.text)),yt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Gt))),yt),r.createVoidZero())));for(const Xt of P.exportedFunctions)le(B,Xt);Un(B,st(P.externalHelpersImportDeclaration,de,Gi)),Xr(B,Xn(he.statements,de,Gi,te)),pe(B,!1),hg(B,s());const xt=r.updateSourceFile(he,bt(r.createNodeArray(B),he.statements));return Ig(xt,e.readEmitHelpers()),xt}function Z(he){const B=r.createIdentifier("define"),Ae=Aw(r,he,g,u),te=Ff(he)&&he,{aliasedModuleNames:xt,unaliasedModuleNames:Xt,importAliasNames:Pe}=ye(he,!0),yt=r.updateSourceFile(he,bt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(B,void 0,[...Ae?[Ae]:[],r.createArrayLiteralExpression(te?se:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...xt,...Xt]),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"),...Pe],void 0,K(he))]))]),he.statements));return Ig(yt,e.readEmitHelpers()),yt}function q(he){const{aliasedModuleNames:B,unaliasedModuleNames:Ae,importAliasNames:te}=ye(he,!1),xt=Aw(r,he,g,u),Xt=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,...Ae]),r.createIdentifier("factory")]))])))],!0),void 0)),Pe=r.updateSourceFile(he,bt(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Xt,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(he))]))]),he.statements));return Ig(Pe,e.readEmitHelpers()),Pe}function ye(he,B){const Ae=[],te=[],xt=[];for(const Xt of he.amdDependencies)Xt.name?(Ae.push(r.createStringLiteral(Xt.path)),xt.push(r.createParameterDeclaration(void 0,void 0,Xt.name))):te.push(r.createStringLiteral(Xt.path));for(const Xt of P.externalImports){const Pe=ZI(r,Xt,N,g,d,u),yt=PD(r,Xt,N);Pe&&(B&&yt?(Cr(yt,8),Ae.push(Pe),xt.push(r.createParameterDeclaration(void 0,void 0,yt))):te.push(Pe))}return{aliasedModuleNames:Ae,unaliasedModuleNames:te,importAliasNames:xt}}function ie(he){if(Fc(he)||fc(he)||!ZI(r,he,N,g,d,u))return;const B=PD(r,he,N),Ae=Ni(he,B);if(Ae!==B)return r.createExpressionStatement(r.createAssignment(B,Ae))}function K(he){o();const B=[],Ae=r.copyPrologue(he.statements,B,!0,de);j()&&Un(B,Fe()),vt(P.exportedNames)&&Un(B,r.createExpressionStatement(gu(P.exportedNames,(xt,Xt)=>Xt.kind===11?r.createAssignment(r.createElementAccessExpression(r.createIdentifier("exports"),r.createStringLiteral(Xt.text)),xt):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(Kr(Xt))),xt),r.createVoidZero())));for(const xt of P.exportedFunctions)le(B,xt);Un(B,st(P.externalHelpersImportDeclaration,de,Gi)),y===2&&Xr(B,ji(P.externalImports,ie)),Xr(B,Xn(he.statements,de,Gi,Ae)),pe(B,!0),hg(B,s());const te=r.createBlock(B,!0);return O&&zI(te,Sqe),te}function pe(he,B){if(P.exportEquals){const Ae=st(P.exportEquals.expression,xe,St);if(Ae)if(B){const te=r.createReturnStatement(Ae);bt(te,P.exportEquals),Cr(te,3840),he.push(te)}else{const te=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),Ae));bt(te,P.exportEquals),Cr(te,3072),he.push(te)}}}function de(he){switch(he.kind){case 273:return Pr(he);case 272:return Ye(he);case 279:return At(he);case 278:return mn(he);default:return fe(he)}}function fe(he){switch(he.kind){case 244:return ai(he);case 263:return dr(he);case 264:return ri(he);case 249:return Se(he,!0);case 250:return re(he);case 251:return be(he);case 247:return Ne(he);case 248:return Be(he);case 257:return lt(he);case 255:return ce(he);case 246:return Re(he);case 256:return ge(he);case 270:return je(he);case 297:return Ge(he);case 298:return We(he);case 259:return at(he);case 300:return Wt(he);case 242:return cn(he);default:return xe(he)}}function ve(he,B){if(!(he.transformFlags&276828160)&&!(k!=null&&k.length))return he;switch(he.kind){case 249:return Se(he,!1);case 245:return gn(he);case 218:return Kn(he,B);case 356:return gt(he,B);case 214:const Ae=he===Ac(k);if(Ae&&k.shift(),Qu(he)&&g.shouldTransformImportCall(N))return Di(he,Ae);if(Ae)return or(he);break;case 227:if(rv(he))return Je(he,B);break;case 225:case 226:return en(he,B)}return wn(he,xe,e)}function xe(he){return ve(he,!1)}function X(he){return ve(he,!0)}function Ce(he){if(Fa(he))for(const B of he.properties)switch(B.kind){case 304:if(Ce(B.initializer))return!0;break;case 305:if(Ce(B.name))return!0;break;case 306:if(Ce(B.expression))return!0;break;case 175:case 178:case 179:return!1;default:C.assertNever(B,"Unhandled object member kind")}else if(Cd(he)){for(const B of he.elements)if(qf(B)){if(Ce(B.expression))return!0}else if(Ce(B))return!0}else if(He(he))return Ze(Nt(he))>(N4(he)?1:0);return!1}function Je(he,B){return Ce(he.left)?w1(he,xe,e,0,!B,Hi):wn(he,xe,e)}function Se(he,B){if(B&&he.initializer&&_d(he.initializer)&&!(he.initializer.flags&7)){const Ae=ot(void 0,he.initializer,!1);if(Ae){const te=[],xt=st(he.initializer,X,_d),Xt=r.createVariableStatement(void 0,xt);te.push(Xt),Xr(te,Ae);const Pe=st(he.condition,xe,St),yt=st(he.incrementor,X,St),Gt=Wu(he.statement,B?fe:xe,e);return te.push(r.updateForStatement(he,void 0,Pe,yt,Gt)),te}}return r.updateForStatement(he,st(he.initializer,X,Of),st(he.condition,xe,St),st(he.incrementor,X,St),Wu(he.statement,B?fe:xe,e))}function re(he){if(_d(he.initializer)&&!(he.initializer.flags&7)){const B=ot(void 0,he.initializer,!0);if(vt(B)){const Ae=st(he.initializer,X,Of),te=st(he.expression,xe,St),xt=Wu(he.statement,fe,e),Xt=ea(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0);return r.updateForInStatement(he,Ae,te,Xt)}}return r.updateForInStatement(he,st(he.initializer,X,Of),st(he.expression,xe,St),Wu(he.statement,fe,e))}function be(he){if(_d(he.initializer)&&!(he.initializer.flags&7)){const B=ot(void 0,he.initializer,!0),Ae=st(he.initializer,X,Of),te=st(he.expression,xe,St);let xt=Wu(he.statement,fe,e);return vt(B)&&(xt=ea(xt)?r.updateBlock(xt,[...B,...xt.statements]):r.createBlock([...B,xt],!0)),r.updateForOfStatement(he,he.awaitModifier,Ae,te,xt)}return r.updateForOfStatement(he,he.awaitModifier,st(he.initializer,X,Of),st(he.expression,xe,St),Wu(he.statement,fe,e))}function Ne(he){return r.updateDoStatement(he,Wu(he.statement,fe,e),st(he.expression,xe,St))}function Be(he){return r.updateWhileStatement(he,st(he.expression,xe,St),Wu(he.statement,fe,e))}function lt(he){return r.updateLabeledStatement(he,he.label,st(he.statement,fe,Gi,r.liftToBlock)??bt(r.createEmptyStatement(),he.statement))}function ce(he){return r.updateWithStatement(he,st(he.expression,xe,St),C.checkDefined(st(he.statement,fe,Gi,r.liftToBlock)))}function Re(he){return r.updateIfStatement(he,st(he.expression,xe,St),st(he.thenStatement,fe,Gi,r.liftToBlock)??r.createBlock([]),st(he.elseStatement,fe,Gi,r.liftToBlock))}function ge(he){return r.updateSwitchStatement(he,st(he.expression,xe,St),C.checkDefined(st(he.caseBlock,fe,HM)))}function je(he){return r.updateCaseBlock(he,Xn(he.clauses,fe,AF))}function Ge(he){return r.updateCaseClause(he,st(he.expression,xe,St),Xn(he.statements,fe,Gi))}function We(he){return wn(he,fe,e)}function at(he){return wn(he,fe,e)}function Wt(he){return r.updateCatchClause(he,he.variableDeclaration,C.checkDefined(st(he.block,fe,ea)))}function cn(he){return he=wn(he,fe,e),he}function gn(he){return r.updateExpressionStatement(he,st(he.expression,X,St))}function Kn(he,B){return r.updateParenthesizedExpression(he,st(he.expression,B?X:xe,St))}function gt(he,B){return r.updatePartiallyEmittedExpression(he,st(he.expression,B?X:xe,St))}function en(he,B){if((he.operator===46||he.operator===47)&&He(he.operand)&&!fl(he.operand)&&!my(he.operand)&&!TV(he.operand)){const Ae=Nt(he.operand);if(Ae){let te,xt=st(he.operand,xe,St);YT(he)?xt=r.updatePrefixUnaryExpression(he,xt):(xt=r.updatePostfixUnaryExpression(he,xt),B||(te=r.createTempVariable(l),xt=r.createAssignment(te,xt),bt(xt,he)),xt=r.createComma(xt,r.cloneNode(he.operand)),bt(xt,he));for(const Xt of Ae)F[ls(xt)]=!0,xt=dt(Xt,xt),bt(xt,he);return te&&(F[ls(xt)]=!0,xt=r.createComma(xt,te),bt(xt,he)),xt}}return wn(he,xe,e)}function or(he){return r.updateCallExpression(he,he.expression,void 0,Xn(he.arguments,B=>B===he.arguments[0]?ds(B)?ax(B,u):i().createRewriteRelativeImportExtensionsHelper(B):xe(B),St))}function Di(he,B){if(y===0&&h>=7)return wn(he,xe,e);const Ae=ZI(r,he,N,g,d,u),te=st(Ac(he.arguments),xe,St),xt=Ae&&(!te||!wa(te)||te.text!==Ae.text)?Ae:te&&B?wa(te)?ax(te,u):i().createRewriteRelativeImportExtensionsHelper(te):te,Xt=!!(he.transformFlags&16384);switch(u.module){case 2:return zt(xt,Xt);case 3:return co(xt??r.createVoidZero(),Xt);case 1:default:return Zr(xt)}}function co(he,B){if(O=!0,XS(he)){const Ae=fl(he)?he:wa(he)?r.createStringLiteralFromNode(he):Cr(bt(r.cloneNode(he),he),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(he),void 0,zt(Ae,B))}else{const Ae=r.createTempVariable(l);return r.createComma(r.createAssignment(Ae,he),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Zr(Ae,!0),void 0,zt(Ae,B)))}}function zt(he,B){const Ae=r.createUniqueName("resolve"),te=r.createUniqueName("reject"),xt=[r.createParameterDeclaration(void 0,void 0,Ae),r.createParameterDeclaration(void 0,void 0,te)],Xt=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([he||r.createOmittedExpression()]),Ae,te]))]);let Pe;h>=2?Pe=r.createArrowFunction(void 0,void 0,xt,void 0,void 0,Xt):(Pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,xt,void 0,Xt),B&&Cr(Pe,16));const yt=r.createNewExpression(r.createIdentifier("Promise"),void 0,[Pe]);return Qh(u)?r.createCallExpression(r.createPropertyAccessExpression(yt,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):yt}function Zr(he,B){const Ae=he&&!B_(he)&&!B,te=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,Ae?h>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(he,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[he])]:[]);let xt=r.createCallExpression(r.createIdentifier("require"),void 0,Ae?[r.createIdentifier("s")]:he?[he]:[]);Qh(u)&&(xt=i().createImportStarHelper(xt));const Xt=Ae?[r.createParameterDeclaration(void 0,void 0,"s")]:[];let Pe;return h>=2?Pe=r.createArrowFunction(void 0,void 0,Xt,void 0,void 0,xt):Pe=r.createFunctionExpression(void 0,void 0,void 0,void 0,Xt,void 0,r.createBlock([r.createReturnStatement(xt)])),r.createCallExpression(r.createPropertyAccessExpression(te,"then"),void 0,[Pe])}function Ai(he,B){return!Qh(u)||zm(he)&2?B:yae(he)?i().createImportStarHelper(B):B}function Ni(he,B){return!Qh(u)||zm(he)&2?B:m3(he)?i().createImportStarHelper(B):HU(he)?i().createImportDefaultHelper(B):B}function Pr(he){let B;const Ae=ZR(he);if(y!==2)if(he.importClause){const te=[];Ae&&!l1(he)?te.push(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,Ni(he,Ci(he)))):(te.push(r.createVariableDeclaration(r.getGeneratedNameForNode(he),void 0,void 0,Ni(he,Ci(he)))),Ae&&l1(he)&&te.push(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,r.getGeneratedNameForNode(he)))),B=Un(B,jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList(te,h>=2?2:0)),he),he))}else return jr(bt(r.createExpressionStatement(Ci(he)),he),he);else Ae&&l1(he)&&(B=Un(B,r.createVariableStatement(void 0,r.createVariableDeclarationList([jr(bt(r.createVariableDeclaration(r.cloneNode(Ae.name),void 0,void 0,r.getGeneratedNameForNode(he)),he),he)],h>=2?2:0))));return B=Ia(B,he),x_(B)}function Ci(he){const B=ZI(r,he,N,g,d,u),Ae=[];return B&&Ae.push(ax(B,u)),r.createCallExpression(r.createIdentifier("require"),void 0,Ae)}function Ye(he){C.assert(FT(he),"import= for internal module references should be handled in an earlier transformer.");let B;return y!==2?di(he,32)?B=Un(B,jr(bt(r.createExpressionStatement(dt(he.name,Ci(he))),he),he)):B=Un(B,jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(he.name),void 0,void 0,Ci(he))],h>=2?2:0)),he),he)):di(he,32)&&(B=Un(B,jr(bt(r.createExpressionStatement(dt(r.getExportName(he),r.getLocalName(he))),he),he))),B=Pn(B,he),x_(B)}function At(he){if(!he.moduleSpecifier)return;const B=r.getGeneratedNameForNode(he);if(he.exportClause&&Jf(he.exportClause)){const Ae=[];y!==2&&Ae.push(jr(bt(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(B,void 0,void 0,Ci(he))])),he),he));for(const te of he.exportClause.elements){const xt=te.propertyName||te.name,Pe=!!Qh(u)&&!(zm(he)&2)&&M_(xt)?i().createImportDefaultHelper(B):B,yt=xt.kind===11?r.createElementAccessExpression(Pe,xt):r.createPropertyAccessExpression(Pe,xt);Ae.push(jr(bt(r.createExpressionStatement(dt(te.name.kind===11?r.cloneNode(te.name):r.getExportName(te),yt,void 0,!0)),te),te))}return x_(Ae)}else if(he.exportClause){const Ae=[];return Ae.push(jr(bt(r.createExpressionStatement(dt(r.cloneNode(he.exportClause.name),Ai(he,y!==2?Ci(he):OF(he)||he.exportClause.name.kind===11?B:r.createIdentifier(Kr(he.exportClause.name))))),he),he)),x_(Ae)}else return jr(bt(r.createExpressionStatement(i().createExportStarHelper(y!==2?Ci(he):B)),he),he)}function mn(he){if(!he.isExportEquals)return it(r.createIdentifier("default"),st(he.expression,xe,St),he,!0)}function dr(he){let B;return di(he,32)?B=Un(B,jr(bt(r.createFunctionDeclaration(Xn(he.modifiers,Lt,Aa),he.asteriskToken,r.getDeclarationName(he,!0,!0),void 0,Xn(he.parameters,xe,to),void 0,wn(he.body,xe,e)),he),he)):B=Un(B,wn(he,xe,e)),x_(B)}function ri(he){let B;return di(he,32)?B=Un(B,jr(bt(r.createClassDeclaration(Xn(he.modifiers,Lt,ml),r.getDeclarationName(he,!0,!0),void 0,Xn(he.heritageClauses,xe,Fp),Xn(he.members,xe,bc)),he),he)):B=Un(B,wn(he,xe,e)),B=le(B,he),x_(B)}function ai(he){let B,Ae,te;if(di(he,32)){let xt,Xt=!1;for(const Pe of he.declarationList.declarations)if(He(Pe.name)&&my(Pe.name))if(xt||(xt=Xn(he.modifiers,Lt,Aa)),Pe.initializer){const yt=r.updateVariableDeclaration(Pe,Pe.name,void 0,void 0,dt(Pe.name,st(Pe.initializer,xe,St)));Ae=Un(Ae,yt)}else Ae=Un(Ae,Pe);else if(Pe.initializer)if(!Qo(Pe.name)&&(Xs(Pe.initializer)||Us(Pe.initializer)||uc(Pe.initializer))){const yt=r.createAssignment(bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),Pe.name),Pe.name),r.createIdentifier(zf(Pe.name))),Gt=r.createVariableDeclaration(Pe.name,Pe.exclamationToken,Pe.type,st(Pe.initializer,xe,St));Ae=Un(Ae,Gt),te=Un(te,yt),Xt=!0}else te=Un(te,$o(Pe));if(Ae&&(B=Un(B,r.updateVariableStatement(he,xt,r.updateVariableDeclarationList(he.declarationList,Ae)))),te){const Pe=jr(bt(r.createExpressionStatement(r.inlineExpressions(te)),he),he);Xt&&cw(Pe),B=Un(B,Pe)}}else B=Un(B,wn(he,xe,e));return B=Uo(B,he),x_(B)}function Hi(he,B,Ae){const te=Nt(he);if(te){let xt=N4(he)?B:r.createAssignment(he,B);for(const Xt of te)Cr(xt,8),xt=dt(Xt,xt,Ae);return xt}return r.createAssignment(he,B)}function $o(he){return Qo(he.name)?w1(st(he,xe,Vk),xe,e,0,!1,Hi):r.createAssignment(bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),he.name),he.name),he.initializer?st(he.initializer,xe,St):r.createVoidZero())}function Ia(he,B){if(P.exportEquals)return he;const Ae=B.importClause;if(!Ae)return he;const te=new jD;Ae.name&&(he=ht(he,te,Ae));const xt=Ae.namedBindings;if(xt)switch(xt.kind){case 275:he=ht(he,te,xt);break;case 276:for(const Xt of xt.elements)he=ht(he,te,Xt,!0);break}return he}function Pn(he,B){return P.exportEquals?he:ht(he,new jD,B)}function Uo(he,B){return ot(he,B.declarationList,!1)}function ot(he,B,Ae){if(P.exportEquals)return he;for(const te of B.declarations)he=Ft(he,te,Ae);return he}function Ft(he,B,Ae){if(P.exportEquals)return he;if(Qo(B.name))for(const te of B.name.elements)Jc(te)||(he=Ft(he,te,Ae));else!fl(B.name)&&(!yi(B)||B.initializer||Ae)&&(he=ht(he,new jD,B));return he}function le(he,B){if(P.exportEquals)return he;const Ae=new jD;if(di(B,32)){const te=di(B,2048)?r.createIdentifier("default"):r.getDeclarationName(B);he=ne(he,Ae,te,r.getLocalName(B),B)}return B.name&&(he=ht(he,Ae,B)),he}function ht(he,B,Ae,te){const xt=r.getDeclarationName(Ae),Xt=P.exportSpecifiers.get(xt);if(Xt)for(const Pe of Xt)he=ne(he,B,Pe.name,xt,Pe.name,void 0,te);return he}function ne(he,B,Ae,te,xt,Xt,Pe){if(Ae.kind!==11){if(B.has(Ae))return he;B.set(Ae,!0)}return he=Un(he,it(Ae,te,xt,Xt,Pe)),he}function Fe(){const he=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(he,2097152),he}function it(he,B,Ae,te,xt){const Xt=bt(r.createExpressionStatement(dt(he,B,void 0,xt)),Ae);return au(Xt),te||Cr(Xt,3072),Xt}function dt(he,B,Ae,te){return bt(te?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(he),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(he.kind===11?r.createElementAccessExpression(r.createIdentifier("exports"),r.cloneNode(he)):r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(he)),B),Ae)}function Lt(he){switch(he.kind){case 95:case 90:return}return he}function Ue(he,B,Ae){B.kind===308?(N=B,P=R[Fu(N)],A(he,B,Ae),N=void 0,P=void 0):A(he,B,Ae)}function Rt(he,B){return B=E(he,B),B.id&&F[B.id]?B:he===1?Ot(B):Ud(B)?It(B):B}function It(he){const B=he.name,Ae=Tr(B);if(Ae!==B){if(he.objectAssignmentInitializer){const te=r.createAssignment(Ae,he.objectAssignmentInitializer);return bt(r.createPropertyAssignment(B,te),he)}return bt(r.createPropertyAssignment(B,Ae),he)}return he}function Ot(he){switch(he.kind){case 80:return Tr(he);case 214:return nt(he);case 216:return Kt(he);case 227:return Oe(he)}return he}function nt(he){if(He(he.expression)){const B=Tr(he.expression);if(F[ls(B)]=!0,!He(B)&&!(Qa(he.expression)&8192))return _1(r.updateCallExpression(he,B,void 0,he.arguments),16)}return he}function Kt(he){if(He(he.tag)){const B=Tr(he.tag);if(F[ls(B)]=!0,!He(B)&&!(Qa(he.tag)&8192))return _1(r.updateTaggedTemplateExpression(he,B,void 0,he.template),16)}return he}function Tr(he){var B,Ae;if(Qa(he)&8192){const te=Ew(N);return te?r.createPropertyAccessExpression(te,he):he}else if(!(fl(he)&&!(he.emitNode.autoGenerate.flags&64))&&!my(he)){const te=d.getReferencedExportContainer(he,N4(he));if(te&&te.kind===308)return bt(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(he)),he);const xt=d.getReferencedImportDeclaration(he);if(xt){if(jm(xt))return bt(r.createPropertyAccessExpression(r.getGeneratedNameForNode(xt.parent),r.createIdentifier("default")),he);if(Eu(xt)){const Xt=xt.propertyName||xt.name,Pe=r.getGeneratedNameForNode(((Ae=(B=xt.parent)==null?void 0:B.parent)==null?void 0:Ae.parent)||xt);return bt(Xt.kind===11?r.createElementAccessExpression(Pe,r.cloneNode(Xt)):r.createPropertyAccessExpression(Pe,r.cloneNode(Xt)),he)}}}return he}function Oe(he){if(ly(he.operatorToken.kind)&&He(he.left)&&(!fl(he.left)||F2(he.left))&&!my(he.left)){const B=Nt(he.left);if(B){let Ae=he;for(const te of B)F[ls(Ae)]=!0,Ae=dt(te,Ae,he);return Ae}}return he}function Nt(he){if(fl(he)){if(F2(he)){const B=P==null?void 0:P.exportSpecifiers.get(he);if(B){const Ae=[];for(const te of B)Ae.push(te.name);return Ae}}}else{const B=d.getReferencedImportDeclaration(he);if(B)return P==null?void 0:P.exportedBindings[Fu(B)];const Ae=new Set,te=d.getReferencedValueDeclarations(he);if(te){for(const xt of te){const Xt=P==null?void 0:P.exportedBindings[Fu(xt)];if(Xt)for(const Pe of Xt)Ae.add(Pe)}if(Ae.size)return Co(Ae)}}}}var Sqe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function Jae(e){const{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),u=e.getEmitHost(),d=e.onSubstituteNode,g=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,O,G;return hh(e,j);function j(Oe){if(Oe.isDeclarationFile||!(HR(Oe,s)||Oe.transformFlags&8388608))return Oe;const Nt=Fu(Oe);R=Oe,O=Oe,N=h[Nt]=qU(e,Oe),P=t.createUniqueName("exports"),y[Nt]=P,k=A[Nt]=t.createUniqueName("context");const he=J(N.externalImports),B=Z(Oe,he),Ae=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=Aw(t,Oe,u,s),xt=t.createArrayLiteralExpression(Bt(he,Pe=>Pe.name)),Xt=Cr(t.updateSourceFile(Oe,bt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,te?[te,xt,Ae]:[xt,Ae]))]),Oe.statements)),2048);return s.outFile||oie(Xt,B,Pe=>!Pe.scoped),G&&(E[Nt]=G,G=void 0),R=void 0,N=void 0,P=void 0,k=void 0,F=void 0,O=void 0,Xt}function J(Oe){const Nt=new Map,he=[];for(const B of Oe){const Ae=ZI(t,B,R,u,l,s);if(Ae){const te=Ae.text,xt=Nt.get(te);xt!==void 0?he[xt].externalImports.push(B):(Nt.set(te,he.length),he.push({name:Ae,externalImports:[B]}))}}return he}function Z(Oe,Nt){const he=[];r();const B=Vd(s,"alwaysStrict")||zc(R),Ae=t.copyPrologue(Oe.statements,he,B,K);he.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,Gi);const te=Xn(Oe.statements,K,Gi,Ae);Xr(he,F),hg(he,i());const xt=q(he),Xt=Oe.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Pe=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ie(xt,Nt)),t.createPropertyAssignment("execute",t.createFunctionExpression(Xt,void 0,void 0,void 0,[],void 0,t.createBlock(te,!0)))],!0);return he.push(t.createReturnStatement(Pe)),t.createBlock(he,!0)}function q(Oe){if(!N.hasExportStarsToExportValues)return;if(!vt(N.exportedNames)&&N.exportedFunctions.size===0&&N.exportSpecifiers.size===0){let Ae=!1;for(const te of N.externalImports)if(te.kind===279&&te.exportClause){Ae=!0;break}if(!Ae){const te=ye(void 0);return Oe.push(te),te.name}}const Nt=[];if(N.exportedNames)for(const Ae of N.exportedNames)M_(Ae)||Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ae),t.createTrue()));for(const Ae of N.exportedFunctions)di(Ae,2048)||(C.assert(!!Ae.name),Nt.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Ae.name),t.createTrue())));const he=t.createUniqueName("exportedNames");Oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(he,void 0,void 0,t.createObjectLiteralExpression(Nt,!0))])));const B=ye(he);return Oe.push(B),B.name}function ye(Oe){const Nt=t.createUniqueName("exportStar"),he=t.createIdentifier("m"),B=t.createIdentifier("n"),Ae=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,he)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ae,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(B)]),he,t.createBlock([Cr(t.createIfStatement(te,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Ae,B),t.createElementAccessExpression(he,B)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[Ae]))],!0))}function ie(Oe,Nt){const he=[];for(const B of Nt){const Ae=$e(B.externalImports,Xt=>PD(t,Xt,R)),te=Ae?t.getGeneratedNameForNode(Ae):t.createUniqueName(""),xt=[];for(const Xt of B.externalImports){const Pe=PD(t,Xt,R);switch(Xt.kind){case 273:if(!Xt.importClause)break;case 272:C.assert(Pe!==void 0),xt.push(t.createExpressionStatement(t.createAssignment(Pe,te))),di(Xt,32)&&xt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(Kr(Pe)),te])));break;case 279:if(C.assert(Pe!==void 0),Xt.exportClause)if(Jf(Xt.exportClause)){const yt=[];for(const Gt of Xt.exportClause.elements)yt.push(t.createPropertyAssignment(t.createStringLiteral(yb(Gt.name)),t.createElementAccessExpression(te,t.createStringLiteral(yb(Gt.propertyName||Gt.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(yb(Xt.exportClause.name)),te])));else xt.push(t.createExpressionStatement(t.createCallExpression(Oe,void 0,[te])));break}}he.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(he,!0)}function K(Oe){switch(Oe.kind){case 273:return pe(Oe);case 272:return fe(Oe);case 279:return de(Oe);case 278:return ve(Oe);default:return cn(Oe)}}function pe(Oe){let Nt;return Oe.importClause&&o(PD(t,Oe,R)),x_(lt(Nt,Oe))}function de(Oe){C.assertIsDefined(Oe)}function fe(Oe){C.assert(FT(Oe),"import= for internal module references should be handled in an earlier transformer.");let Nt;return o(PD(t,Oe,R)),x_(ce(Nt,Oe))}function ve(Oe){if(Oe.isExportEquals)return;const Nt=st(Oe.expression,ai,St);return at(t.createIdentifier("default"),Nt,!0)}function xe(Oe){di(Oe,32)?F=Un(F,t.updateFunctionDeclaration(Oe,Xn(Oe.modifiers,ht,ml),Oe.asteriskToken,t.getDeclarationName(Oe,!0,!0),void 0,Xn(Oe.parameters,ai,to),void 0,st(Oe.body,ai,ea))):F=Un(F,wn(Oe,ai,e)),F=je(F,Oe)}function X(Oe){let Nt;const he=t.getLocalName(Oe);return o(he),Nt=Un(Nt,bt(t.createExpressionStatement(t.createAssignment(he,bt(t.createClassExpression(Xn(Oe.modifiers,ht,ml),Oe.name,void 0,Xn(Oe.heritageClauses,ai,Fp),Xn(Oe.members,ai,bc)),Oe))),Oe)),Nt=je(Nt,Oe),x_(Nt)}function Ce(Oe){if(!Se(Oe.declarationList))return st(Oe,ai,Gi);let Nt;if(ik(Oe.declarationList)||rk(Oe.declarationList)){const he=Xn(Oe.modifiers,ht,ml),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 Ae=t.updateVariableDeclarationList(Oe.declarationList,B);Nt=Un(Nt,t.updateVariableStatement(Oe,he,Ae))}else{let he;const B=di(Oe,32);for(const Ae of Oe.declarationList.declarations)Ae.initializer?he=Un(he,re(Ae,B)):Je(Ae);he&&(Nt=Un(Nt,bt(t.createExpressionStatement(t.inlineExpressions(he)),Oe)))}return Nt=Re(Nt,Oe,!1),x_(Nt)}function Je(Oe){if(Qo(Oe.name))for(const Nt of Oe.name.elements)Jc(Nt)||Je(Nt);else o(t.cloneNode(Oe.name))}function Se(Oe){return(Qa(Oe)&4194304)===0&&(O.kind===308||(yl(Oe).flags&7)===0)}function re(Oe,Nt){const he=Nt?be:Ne;return Qo(Oe.name)?w1(Oe,ai,e,0,!1,he):Oe.initializer?he(Oe.name,st(Oe.initializer,ai,St)):Oe.name}function be(Oe,Nt,he){return Be(Oe,Nt,he,!0)}function Ne(Oe,Nt,he){return Be(Oe,Nt,he,!1)}function Be(Oe,Nt,he,B){return o(t.cloneNode(Oe)),B?Wt(Oe,Kt(bt(t.createAssignment(Oe,Nt),he))):Kt(bt(t.createAssignment(Oe,Nt),he))}function lt(Oe,Nt){if(N.exportEquals)return Oe;const he=Nt.importClause;if(!he)return Oe;he.name&&(Oe=Ge(Oe,he));const B=he.namedBindings;if(B)switch(B.kind){case 275:Oe=Ge(Oe,B);break;case 276:for(const Ae of B.elements)Oe=Ge(Oe,Ae);break}return Oe}function ce(Oe,Nt){return N.exportEquals?Oe:Ge(Oe,Nt)}function Re(Oe,Nt,he){if(N.exportEquals)return Oe;for(const B of Nt.declarationList.declarations)(B.initializer||he)&&(Oe=ge(Oe,B));return Oe}function ge(Oe,Nt,he){if(N.exportEquals)return Oe;if(Qo(Nt.name))for(const B of Nt.name.elements)Jc(B)||(Oe=ge(Oe,B));else fl(Nt.name)||(Oe=Ge(Oe,Nt,void 0));return Oe}function je(Oe,Nt){if(N.exportEquals)return Oe;let he;if(di(Nt,32)){const B=di(Nt,2048)?t.createStringLiteral("default"):Nt.name;Oe=We(Oe,B,t.getLocalName(Nt)),he=zf(B)}return Nt.name&&(Oe=Ge(Oe,Nt,he)),Oe}function Ge(Oe,Nt,he){if(N.exportEquals)return Oe;const B=t.getDeclarationName(Nt),Ae=N.exportSpecifiers.get(B);if(Ae)for(const te of Ae)yb(te.name)!==he&&(Oe=We(Oe,te.name,B));return Oe}function We(Oe,Nt,he,B){return Oe=Un(Oe,at(Nt,he,B)),Oe}function at(Oe,Nt,he){const B=t.createExpressionStatement(Wt(Oe,Nt));return au(B),he||Cr(B,3072),B}function Wt(Oe,Nt){const he=He(Oe)?t.createStringLiteralFromNode(Oe):Oe;return Cr(Nt,Qa(Nt)|3072),Rc(t.createCallExpression(P,void 0,[he,Nt]),Nt)}function cn(Oe){switch(Oe.kind){case 244:return Ce(Oe);case 263:return xe(Oe);case 264:return X(Oe);case 249:return gn(Oe,!0);case 250:return Kn(Oe);case 251:return gt(Oe);case 247:return Di(Oe);case 248:return co(Oe);case 257:return zt(Oe);case 255:return Zr(Oe);case 246:return Ai(Oe);case 256:return Ni(Oe);case 270:return Pr(Oe);case 297:return Ci(Oe);case 298:return Ye(Oe);case 259:return At(Oe);case 300:return mn(Oe);case 242:return dr(Oe);default:return ai(Oe)}}function gn(Oe,Nt){const he=O;return O=Oe,Oe=t.updateForStatement(Oe,st(Oe.initializer,Nt?or:Hi,Of),st(Oe.condition,ai,St),st(Oe.incrementor,Hi,St),Wu(Oe.statement,Nt?cn:ai,e)),O=he,Oe}function Kn(Oe){const Nt=O;return O=Oe,Oe=t.updateForInStatement(Oe,or(Oe.initializer),st(Oe.expression,ai,St),Wu(Oe.statement,cn,e)),O=Nt,Oe}function gt(Oe){const Nt=O;return O=Oe,Oe=t.updateForOfStatement(Oe,Oe.awaitModifier,or(Oe.initializer),st(Oe.expression,ai,St),Wu(Oe.statement,cn,e)),O=Nt,Oe}function en(Oe){return _d(Oe)&&Se(Oe)}function or(Oe){if(en(Oe)){let Nt;for(const he of Oe.declarations)Nt=Un(Nt,re(he,!1)),he.initializer||Je(he);return Nt?t.inlineExpressions(Nt):t.createOmittedExpression()}else return st(Oe,Hi,Of)}function Di(Oe){return t.updateDoStatement(Oe,Wu(Oe.statement,cn,e),st(Oe.expression,ai,St))}function co(Oe){return t.updateWhileStatement(Oe,st(Oe.expression,ai,St),Wu(Oe.statement,cn,e))}function zt(Oe){return t.updateLabeledStatement(Oe,Oe.label,st(Oe.statement,cn,Gi,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}function Zr(Oe){return t.updateWithStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.statement,cn,Gi,t.liftToBlock)))}function Ai(Oe){return t.updateIfStatement(Oe,st(Oe.expression,ai,St),st(Oe.thenStatement,cn,Gi,t.liftToBlock)??t.createBlock([]),st(Oe.elseStatement,cn,Gi,t.liftToBlock))}function Ni(Oe){return t.updateSwitchStatement(Oe,st(Oe.expression,ai,St),C.checkDefined(st(Oe.caseBlock,cn,HM)))}function Pr(Oe){const Nt=O;return O=Oe,Oe=t.updateCaseBlock(Oe,Xn(Oe.clauses,cn,AF)),O=Nt,Oe}function Ci(Oe){return t.updateCaseClause(Oe,st(Oe.expression,ai,St),Xn(Oe.statements,cn,Gi))}function Ye(Oe){return wn(Oe,cn,e)}function At(Oe){return wn(Oe,cn,e)}function mn(Oe){const Nt=O;return O=Oe,Oe=t.updateCatchClause(Oe,Oe.variableDeclaration,C.checkDefined(st(Oe.block,cn,ea))),O=Nt,Oe}function dr(Oe){const Nt=O;return O=Oe,Oe=wn(Oe,cn,e),O=Nt,Oe}function ri(Oe,Nt){if(!(Oe.transformFlags&276828160))return Oe;switch(Oe.kind){case 249:return gn(Oe,!1);case 245:return $o(Oe);case 218:return Ia(Oe,Nt);case 356:return Pn(Oe,Nt);case 227:if(rv(Oe))return ot(Oe,Nt);break;case 214:if(Qu(Oe))return Uo(Oe);break;case 225:case 226:return le(Oe,Nt)}return wn(Oe,ai,e)}function ai(Oe){return ri(Oe,!1)}function Hi(Oe){return ri(Oe,!0)}function $o(Oe){return t.updateExpressionStatement(Oe,st(Oe.expression,Hi,St))}function Ia(Oe,Nt){return t.updateParenthesizedExpression(Oe,st(Oe.expression,Nt?Hi:ai,St))}function Pn(Oe,Nt){return t.updatePartiallyEmittedExpression(Oe,st(Oe.expression,Nt?Hi:ai,St))}function Uo(Oe){const Nt=ZI(t,Oe,R,u,l,s),he=st(Ac(Oe.arguments),ai,St),B=Nt&&(!he||!wa(he)||he.text!==Nt.text)?Nt:he;return t.createCallExpression(t.createPropertyAccessExpression(k,t.createIdentifier("import")),void 0,B?[B]:[])}function ot(Oe,Nt){return Ft(Oe.left)?w1(Oe,ai,e,0,!Nt):wn(Oe,ai,e)}function Ft(Oe){if(id(Oe,!0))return Ft(Oe.left);if(qf(Oe))return Ft(Oe.expression);if(Fa(Oe))return vt(Oe.properties,Ft);if(Cd(Oe))return vt(Oe.elements,Ft);if(Ud(Oe))return Ft(Oe.name);if(Cc(Oe))return Ft(Oe.initializer);if(He(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)&&He(Oe.operand)&&!fl(Oe.operand)&&!my(Oe.operand)&&!TV(Oe.operand)){const he=Ot(Oe.operand);if(he){let B,Ae=st(Oe.operand,ai,St);YT(Oe)?Ae=t.updatePrefixUnaryExpression(Oe,Ae):(Ae=t.updatePostfixUnaryExpression(Oe,Ae),Nt||(B=t.createTempVariable(o),Ae=t.createAssignment(B,Ae),bt(Ae,Oe)),Ae=t.createComma(Ae,t.cloneNode(Oe.operand)),bt(Ae,Oe));for(const te of he)Ae=Wt(te,Kt(Ae));return B&&(Ae=t.createComma(Ae,B),bt(Ae,Oe)),Ae}}return wn(Oe,ai,e)}function ht(Oe){switch(Oe.kind){case 95:case 90:return}return Oe}function ne(Oe,Nt,he){if(Nt.kind===308){const B=Fu(Nt);R=Nt,N=h[B],P=y[B],G=E[B],k=A[B],G&&delete E[B],g(Oe,Nt,he),R=void 0,N=void 0,P=void 0,k=void 0,G=void 0}else g(Oe,Nt,he)}function Fe(Oe,Nt){return Nt=d(Oe,Nt),Tr(Nt)?Nt:Oe===1?Lt(Nt):Oe===4?it(Nt):Nt}function it(Oe){switch(Oe.kind){case 305:return dt(Oe)}return Oe}function dt(Oe){var Nt,he;const B=Oe.name;if(!fl(B)&&!my(B)){const Ae=l.getReferencedImportDeclaration(B);if(Ae){if(jm(Ae))return bt(t.createPropertyAssignment(t.cloneNode(B),t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ae.parent),t.createIdentifier("default"))),Oe);if(Eu(Ae)){const te=Ae.propertyName||Ae.name,xt=t.getGeneratedNameForNode(((he=(Nt=Ae.parent)==null?void 0:Nt.parent)==null?void 0:he.parent)||Ae);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 Ue(Oe);case 227:return Rt(Oe);case 237:return It(Oe)}return Oe}function Ue(Oe){var Nt,he;if(Qa(Oe)&8192){const B=Ew(R);return B?t.createPropertyAccessExpression(B,Oe):Oe}if(!fl(Oe)&&!my(Oe)){const B=l.getReferencedImportDeclaration(Oe);if(B){if(jm(B))return bt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(B.parent),t.createIdentifier("default")),Oe);if(Eu(B)){const Ae=B.propertyName||B.name,te=t.getGeneratedNameForNode(((he=(Nt=B.parent)==null?void 0:Nt.parent)==null?void 0:he.parent)||B);return bt(Ae.kind===11?t.createElementAccessExpression(te,t.cloneNode(Ae)):t.createPropertyAccessExpression(te,t.cloneNode(Ae)),Oe)}}}return Oe}function Rt(Oe){if(ly(Oe.operatorToken.kind)&&He(Oe.left)&&(!fl(Oe.left)||F2(Oe.left))&&!my(Oe.left)){const Nt=Ot(Oe.left);if(Nt){let he=Oe;for(const B of Nt)he=Wt(B,Kt(he));return he}}return Oe}function It(Oe){return KR(Oe)?t.createPropertyAccessExpression(k,t.createIdentifier("meta")):Oe}function Ot(Oe){let Nt;const he=nt(Oe);if(he){const B=l.getReferencedExportContainer(Oe,!1);B&&B.kind===308&&(Nt=Un(Nt,t.getDeclarationName(he))),Nt=Xr(Nt,N==null?void 0:N.exportedBindings[Fu(he)])}else if(fl(Oe)&&F2(Oe)){const B=N==null?void 0:N.exportSpecifiers.get(Oe);if(B){const Ae=[];for(const te of B)Ae.push(te.name);return Ae}}return Nt}function nt(Oe){if(!fl(Oe)){const Nt=l.getReferencedImportDeclaration(Oe);if(Nt)return Nt;const he=l.getReferencedValueDeclaration(Oe);if(he&&(N!=null&&N.exportedBindings[Fu(he)]))return he;const B=l.getReferencedValueDeclarations(Oe);if(B){for(const Ae of B)if(Ae!==he&&(N!=null&&N.exportedBindings[Fu(Ae)]))return Ae}return he}}function Kt(Oe){return G===void 0&&(G=[]),G[ls(Oe)]=!0,Oe}function Tr(Oe){return G&&Oe.id&&G[Oe.id]}}function tH(e){const{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Ga(s),u=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=q,e.onSubstituteNode=ye,e.enableEmitNotification(308),e.enableSubstitution(80);const g=new Set;let h,y,E,A;return hh(e,R);function R(K){if(K.isDeclarationFile)return K;if(zc(K)||vm(s)){E=K,A=void 0,s.rewriteRelativeImportExtensions&&(E.flags&4194304||Ir(K))&&a4(K,!1,!1,de=>{(!ds(de.arguments[0])||Tk(de.arguments[0].text,s))&&(h=Un(h,de))});let pe=N(K);return Ig(pe,e.readEmitHelpers()),E=void 0,A&&(pe=t.updateSourceFile(pe,bt(t.createNodeArray(uG(pe.statements.slice(),A)),pe.statements))),!zc(K)||bu(s)===200||vt(pe.statements,U2)?pe:t.updateSourceFile(pe,bt(t.createNodeArray([...pe.statements,bw(t)]),pe.statements))}return K}function N(K){const pe=Bj(t,r(),K,s);if(pe){const de=[],fe=t.copyPrologue(K.statements,de);return Xr(de,sP([pe],P,Gi)),Xr(de,Xn(K.statements,P,Gi,fe)),t.updateSourceFile(K,bt(t.createNodeArray(de),K.statements))}else return wn(K,P,e)}function P(K){switch(K.kind){case 272:return bu(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==null?void 0:h[0]))return F(h.shift());default:if(h!=null&&h.length&&tp(K,h[0]))return wn(K,P,e)}return K}function k(K){if(!s.rewriteRelativeImportExtensions)return K;const pe=ax(K.moduleSpecifier,s);return pe===K.moduleSpecifier?K:t.updateImportDeclaration(K,K.modifiers,K.importClause,pe,K.attributes)}function F(K){return t.updateCallExpression(K,K.expression,K.typeArguments,[ds(K.arguments[0])?ax(K.arguments[0],s):r().createRewriteRelativeImportExtensionsHelper(K.arguments[0]),...K.arguments.slice(1)])}function O(K){const pe=ZI(t,K,C.checkDefined(E),i,o,s),de=[];if(pe&&de.push(ax(pe,s)),bu(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,de);if(!A){const ve=t.createUniqueName("_createRequire",48),xe=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ve)])),t.createStringLiteral("module"),void 0),X=t.createUniqueName("__require",48),Ce=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(X,void 0,void 0,t.createCallExpression(t.cloneNode(ve),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));A=[xe,Ce]}const fe=A[1].declarationList.declarations[0].name;return C.assertNode(fe,He),t.createCallExpression(t.cloneNode(fe),void 0,de)}function G(K){C.assert(FT(K),"import= for internal module references should be handled in an earlier transformer.");let pe;return pe=Un(pe,jr(bt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(K.name),void 0,void 0,O(K))],l>=2?2:0)),K),K)),pe=j(pe,K),x_(pe)}function j(K,pe){return di(pe,32)&&(K=Un(K,t.createExportDeclaration(void 0,pe.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Kr(pe.name))])))),K}function J(K){return K.isExportEquals?bu(s)===200?jr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),K.expression)),K):void 0:K}function Z(K){const pe=ax(K.moduleSpecifier,s);if(s.module!==void 0&&s.module>5||!K.exportClause||!W_(K.exportClause)||!K.moduleSpecifier)return!K.moduleSpecifier||pe===K.moduleSpecifier?K:t.updateExportDeclaration(K,K.modifiers,K.isTypeOnly,K.exportClause,pe,K.attributes);const de=K.exportClause.name,fe=t.getGeneratedNameForNode(de),ve=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(fe)),pe,K.attributes);jr(ve,K.exportClause);const xe=OF(K)?t.createExportDefault(fe):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,fe,de)]));return jr(xe,K),[ve,xe]}function q(K,pe,de){Yi(pe)?((zc(pe)||vm(s))&&s.importHelpers&&(y=new Map),E=pe,u(K,pe,de),E=void 0,y=void 0):u(K,pe,de)}function ye(K,pe){return pe=d(K,pe),pe.id&&g.has(pe.id)?pe:He(pe)&&Qa(pe)&8192?ie(pe):pe}function ie(K){const pe=E&&Ew(E);if(pe)return g.add(ls(K)),t.createPropertyAccessExpression(pe,K);if(y){const de=Kr(K);let fe=y.get(de);return fe||y.set(de,fe=t.createUniqueName(de,48)),fe}return K}}function Kae(e){const t=e.onSubstituteNode,r=e.onEmitNode,i=tH(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;const l=eH(e),u=e.onSubstituteNode,d=e.onEmitNode,g=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 Yi(F)?(h=F,t(k,F)):h?g(h)>=5?o(k,F):u(k,F):t(k,F)}function E(k,F,O){return Yi(F)&&(h=F),h?g(h)>=5?s(k,F,O):d(k,F,O):r(k,F,O)}function A(k){return g(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(Yi(F)),F}function N(k){return k.kind===308?R(k):P(k)}function P(k){return e.factory.createBundle(Bt(k.sourceFiles,R))}}function Jw(e){return yi(e)||Po(e)||Su(e)||Ha(e)||jh(e)||pg(e)||GM(e)||UI(e)||Nl(e)||Vm(e)||Zl(e)||to(e)||cl(e)||uy(e)||Fc(e)||bm(e)||Ml(e)||Mb(e)||qr(e)||Ws(e)||Nr(e)||_m(e)}function Xae(e){if(jh(e)||pg(e))return t;return Vm(e)||Nl(e)?i:l0(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 l0(e){if(yi(e)||Po(e)||Su(e)||qr(e)||Ws(e)||Nr(e)||Ha(e)||Ml(e))return r;return jh(e)||pg(e)?i:GM(e)||UI(e)||Nl(e)||Vm(e)||Zl(e)||Mb(e)?o:to(e)?Np(e,e.parent)&&di(e.parent,2)?r:s:cl(e)?u:uy(e)?d:Fc(e)?g:bm(e)||_m(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 Dc(e.parent.parent)?y=Fp(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:Oo(e.parent.parent)}}function g(){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:_m(e)?C.checkDefined(e.typeExpression):e.type,typeName:_m(e)?Oo(e):e.name}}}function Yae(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,Fp))return Ar(P,f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((qh(P)||zS(P.parent))&&(Mu(P)||Ds(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 g(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)||Gi(F)||yi(F)||Po(F)||to(F));if(k)return dl(k)?k:tf(k)?Dn(k,F=>Ms(F)&&!Ml(F)):Gi(k)?void 0:k}function s(P){const{getAccessor:k,setAccessor:F}=PS(P.symbol.declarations,P),O=(jh(P)?P.parameters[0]:P)??P,G=Ar(O,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 O=dl(F)||!F.name?"":Al(F.name,!1);pa(k,Ar(F,t[F.kind],O))}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 g(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=Al(P.name,!1);return pa(k,Ar(P,t[P.kind],F)),k}function E(P){if(jh(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],O=Ar(P,F),G=Al(P.name,!1);return pa(O,Ar(P,t[P.kind],G)),O}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,Al(P,!1));return l(P,k),k}function N(P,k){const F=o(P);let O;if(F){const G=dl(F)||!F.name?"":Al(F.name,!1),j=Dn(P.parent,J=>dl(J)||(Gi(J)?"quit":!Ou(J)&&!v4(J)&&!SD(J)));F===j?(O=Ar(P,k??r[F.kind]),pa(O,Ar(F,t[F.kind],G))):(O=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations),pa(O,Ar(F,t[F.kind],G)),pa(O,Ar(P,f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else O=Ar(P,k??f.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return O}}function $ae(e,t,r){const i=e.getCompilerOptions(),o=Vn(y6(e,r),t6);return Ln(o,r)?$w(t,e,L,i,[r],[nH],!1).diagnostics:void 0}var Kw=531469,Xw=8;function nH(e){const t=()=>C.fail("Diagnostic emitted without context");let r=t,i=!0,o=!1,s=!1,l=!1,u=!1,d,g,h,y;const{factory:E}=e,A=e.getEmitHost();let R=()=>{};const N={trackSymbol:fe,reportInaccessibleThisError:Je,reportInaccessibleUniqueSymbolError:X,reportCyclicStructureError:Ce,reportPrivateInBaseOfClassExpression:ve,reportLikelyUnsafeImportRequiredError:Se,reportTruncationError:re,moduleResolverHost:A,reportNonlocalAugmentation:be,reportNonSerializableProperty:Ne,reportInferenceFallback:pe,pushErrorFallbackNode(le){const ht=k,ne=R;R=()=>{R=ne,k=ht},k=le},popErrorFallbackNode(){R()}};let P,k,F,O,G,j;const J=e.getEmitResolver(),Z=e.getCompilerOptions(),q=Yae(J),{stripInternal:ye,isolatedDeclarations:ie}=Z;return lt;function K(le){J.getPropertiesOfContainerFunction(le).forEach(ht=>{if(WI(ht.valueDeclaration)){const ne=Nr(ht.valueDeclaration)?ht.valueDeclaration.left:ht.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 pe(le){!ie||Pu(F)||Fn(le)===F&&(yi(le)&&J.isExpandoFunctionDeclaration(le)?K(le):e.addDiagnostic(q(le)))}function de(le){if(le.accessibility===0){if(le.aliasesToMakeVisible)if(!g)g=le.aliasesToMakeVisible;else for(const ht of le.aliasesToMakeVisible)kf(g,ht)}else if(le.accessibility!==3){const ht=r(le);if(ht)return ht.typeName?e.addDiagnostic(Ar(le.errorNode||ht.errorNode,ht.diagnosticMessage,Al(ht.typeName),le.errorSymbolName,le.errorModuleName)):e.addDiagnostic(Ar(le.errorNode||ht.errorNode,ht.diagnosticMessage,le.errorSymbolName,le.errorModuleName)),!0}return!1}function fe(le,ht,ne){return le.flags&262144?!1:de(J.isSymbolAccessible(le,ht,ne,!0))}function ve(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,xe())]:[]))}function xe(){return P?ws(P):k&&Oo(k)?ws(Oo(k)):k&&dl(k)?k.isExportEquals?"export=":"default":"(Missing)"}function X(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe(),"unique symbol"))}function Ce(){(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,xe()))}function Je(){(P||k)&&e.addDiagnostic(Ar(P||k,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe(),"this"))}function Se(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,xe(),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 be(le,ht,ne){var Fe;const it=(Fe=ht.declarations)==null?void 0:Fe.find(Lt=>Fn(Lt)===le),dt=Vn(ne.declarations,Lt=>Fn(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 Ne(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 ht=r;r=Fe=>Fe.errorNode&&Jw(Fe.errorNode)?l0(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,Kw,Xw,N);return r=ht,ne}function lt(le){if(le.kind===308&&le.isDeclarationFile)return le;if(le.kind===309){o=!0,O=[],G=[],j=[];let Rt=!1;const It=E.createBundle(Bt(le.sourceFiles,nt=>{if(nt.isDeclarationFile)return;if(Rt=Rt||nt.hasNoDefaultLib,F=nt,d=nt,g=void 0,y=!1,h=new Map,r=t,l=!1,u=!1,Fe(nt),Pp(nt)||Ff(nt)){s=!1,i=!1;const Tr=Pu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Ci,Gi);return E.updateSourceFile(nt,[E.createModuleDeclaration([E.createModifier(138)],E.createStringLiteral(nV(e.getEmitHost(),nt)),E.createModuleBlock(bt(E.createNodeArray(Ai(Tr)),nt.statements)))],!0,[],[],!1,[])}i=!0;const Kt=Pu(nt)?E.createNodeArray(Be(nt)):Xn(nt.statements,Ci,Gi);return E.updateSourceFile(nt,Ai(Kt),!0,[],[],!1,[])})),Ot=ci(Bd(hP(le,A,!0).declarationFilePath));return It.syntheticFileReferences=Ue(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,g=void 0,h=new Map,O=[],G=[],j=[],Fe(F);let ht;if(Pu(F))ht=E.createNodeArray(Be(le));else{const Rt=Xn(le.statements,Ci,Gi);ht=bt(E.createNodeArray(Ai(Rt)),le.statements),zc(le)&&(!s||l&&!u)&&(ht=bt(E.createNodeArray([...ht,bw(E)]),ht))}const ne=ci(Bd(hP(le,A,!0).declarationFilePath));return E.updateSourceFile(le,ht,!0,Ue(ne),dt(),le.hasNoDefaultLib,Lt());function Fe(Rt){O=lo(O,Bt(Rt.referencedFiles,It=>[Rt,It])),G=lo(G,Rt.typeReferenceDirectives),j=lo(j,Rt.libReferenceDirectives)}function it(Rt){const It={...Rt};return It.pos=-1,It.end=-1,It}function dt(){return ji(G,Rt=>{if(Rt.preserve)return it(Rt)})}function Lt(){return ji(j,Rt=>{if(Rt.preserve)return it(Rt)})}function Ue(Rt){return ji(O,([It,Ot])=>{if(!Ot.preserve)return;const nt=A.getSourceFileFromReference(It,Ot);if(!nt)return;let Kt;if(nt.isDeclarationFile)Kt=nt.fileName;else{if(o&&Ln(le.sourceFiles,nt))return;const Nt=hP(nt,A,!0);Kt=Nt.declarationFilePath||Nt.jsFilePath||nt.fileName}if(!Kt)return;const Tr=PR(Rt,Kt,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,ht,bF)):E.updateObjectBindingPattern(le,Xn(le.elements,ht,Ha));function ht(ne){return ne.kind===233?ne:(ne.propertyName&&va(ne.propertyName)&&Ds(ne.propertyName.expression)&&en(ne.propertyName.expression,d),E.updateBindingElement(ne,ne.dotDotDotToken,ne.propertyName,ce(ne.name),void 0))}}function Re(le,ht){let ne;y||(ne=r,r=l0(le));const Fe=E.updateParameterDeclaration(le,Aqe(E,le,ht),le.dotDotDotToken,ce(le.name),J.isOptionalParameter(le)?le.questionToken||E.createToken(58):void 0,Ge(le,!0),je(le));return y||(r=ne),Fe}function ge(le){return cAe(le)&&!!le.initializer&&J.isLiteralConstDeclaration(jo(le))}function je(le){if(ge(le)){const ht=Vre(le.initializer);return r4(ht)||pe(le),J.createLiteralConstValue(jo(le,cAe),N)}}function Ge(le,ht){if(!ht&&wp(le,2)||ge(le))return;if(!dl(le)&&!Ha(le)&&le.type&&(!to(le)||!J.requiresAddingImplicitUndefined(le,d)))return st(le.type,Ni,Ri);const ne=P;P=le.name;let Fe;y||(Fe=r,Jw(le)&&(r=l0(le)));let it;return i4(le)?it=J.createTypeOfDeclaration(le,d,Kw,Xw,N):Yo(le)?it=J.createReturnTypeOfSignatureDeclaration(le,d,Kw,Xw,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 ht;if(le.body)return!0;const ne=(ht=le.symbol.declarations)==null?void 0:ht.filter(Fe=>Zl(Fe)&&!Fe.body);return!ne||ne.indexOf(le)===ne.length-1}function Wt(le){return Jc(le)?!1:Qo(le.name)?vt(le.name.elements,Wt):J.isDeclarationVisible(le)}function cn(le,ht,ne){if(wp(le,2))return E.createNodeArray();const Fe=Bt(ht,it=>Re(it,ne));return Fe?E.createNodeArray(Fe,ht.hasTrailingComma):E.createNodeArray()}function gn(le,ht){let ne;if(!ht){const Fe=NS(le);Fe&&(ne=[Re(Fe)])}if(gp(le)){let Fe;if(!ht){const it=uM(le);it&&(Fe=Re(it))}Fe||(Fe=E.createParameterDeclaration(void 0,void 0,"value")),ne=Un(ne,Fe)}return E.createNodeArray(ne||se)}function Kn(le,ht){return wp(le,2)?void 0:Xn(ht,Ni,cl)}function gt(le){return Yi(le)||bm(le)||pc(le)||Dc(le)||gd(le)||Yo(le)||Mb(le)||T1(le)}function en(le,ht){const ne=J.isEntityNameVisible(le,ht);de(ne)}function or(le,ht){return ef(le)&&ef(ht)&&(le.jsDoc=ht.jsDoc),Rc(le,e_(ht))}function Di(le,ht){if(ht){if(s=s||le.kind!==268&&le.kind!==206,ds(ht)&&o){const ne=Dne(e.getEmitHost(),J,le);if(ne)return E.createStringLiteral(ne)}return ht}}function co(le){if(J.isDeclarationVisible(le))if(le.moduleReference.kind===284){const ht=XN(le);return E.updateImportEqualsDeclaration(le,le.modifiers,le.isTypeOnly,le.name,E.updateExternalModuleReference(le.moduleReference,Di(le,ht)))}else{const ht=r;return r=l0(le),en(le.moduleReference,d),r=ht,le}}function zt(le){if(!le.importClause)return E.updateImportDeclaration(le,le.modifiers,le.importClause,Di(le,le.moduleSpecifier),Zr(le.attributes));const ht=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,ht,ne,void 0),Di(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,ht,ne,it),Di(le,le.moduleSpecifier),Zr(le.attributes)):void 0}const Fe=ji(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,ht,ne,Fe&&Fe.length?E.updateNamedImports(le.importClause.namedBindings,Fe):void 0),Di(le,le.moduleSpecifier),Zr(le.attributes));if(J.isImportRequiredByAugmentation(le))return ie&&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,Di(le,le.moduleSpecifier),Zr(le.attributes))}function Zr(le){const ht=HD(le);return le&&ht!==void 0?le:void 0}function Ai(le){for(;Ze(g);){const ne=g.shift();if(!FF(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&&Yi(ne.parent)&&!(zc(ne.parent)&&o);const it=mn(ne);i=Fe,h.set(Fu(ne),it)}return Xn(le,ht,Gi);function ht(ne){if(FF(ne)){const Fe=Fu(ne);if(h.has(Fe)){const it=h.get(Fe);return h.delete(Fe),it&&((Mo(it)?vt(it,TF):TF(it))&&(l=!0),Yi(ne.parent)&&(Mo(it)?vt(it,U2):U2(it))&&(s=!0)),it}}return ne}}function Ni(le){if($o(le))return;if(rd(le)){if(We(le))return;if(ay(le)){if(ie){if(!J.isDefinitelyReferenceToGlobalSymbolObject(le.name.expression)){if(Dc(le.parent)||Fa(le.parent)){e.addDiagnostic(Ar(le,f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((gd(le.parent)||wu(le.parent))&&!Ds(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))||!Ds(le.name.expression))return}}if(Yo(le)&&J.isImplementationOfOverload(le)||Iie(le))return;let ht;gt(le)&&(ht=d,d=le);const ne=r,Fe=Jw(le),it=y;let dt=(le.kind===188||le.kind===201)&&le.parent.kind!==266;if((Nl(le)||Vm(le))&&wp(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=l0(le)),zS(le)&&en(le.exprName,d),dt&&(y=!0),xqe(le))switch(le.kind){case 234:{(Mu(le.expression)||Ds(le.expression))&&en(le.expression,d);const Ue=wn(le,Ni,e);return Lt(E.updateExpressionWithTypeArguments(Ue,Ue.expression,Ue.typeArguments))}case 184:{en(le.typeName,d);const Ue=wn(le,Ni,e);return Lt(E.updateTypeReferenceNode(Ue,Ue.typeName,Ue.typeArguments))}case 181:return Lt(E.updateConstructSignature(le,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le)));case 177:{const Ue=E.createConstructorDeclaration(Uo(le),cn(le,le.parameters,0),void 0);return Lt(Ue)}case 175:{if(eo(le.name))return Lt(void 0);const Ue=E.createMethodDeclaration(Uo(le),void 0,le.name,le.questionToken,Kn(le,le.typeParameters),cn(le,le.parameters),Ge(le),void 0);return Lt(Ue)}case 178:return eo(le.name)?Lt(void 0):Lt(E.updateGetAccessorDeclaration(le,Uo(le),le.name,gn(le,wp(le,2)),Ge(le),void 0));case 179:return eo(le.name)?Lt(void 0):Lt(E.updateSetAccessorDeclaration(le,Uo(le),le.name,gn(le,wp(le,2)),void 0));case 173:return eo(le.name)?Lt(void 0):Lt(E.updatePropertyDeclaration(le,Uo(le),le.name,le.questionToken,Ge(le),je(le)));case 172:return eo(le.name)?Lt(void 0):Lt(E.updatePropertySignature(le,Uo(le),le.name,le.questionToken,Ge(le)));case 174:return eo(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,Ni,Ri)||E.createKeywordTypeNode(133)));case 261:return Qo(le.name)?ri(le.name):(dt=!0,y=!0,Lt(E.updateVariableDeclaration(le,le.name,void 0,Ge(le),je(le))));case 169:return Pr(le)&&(le.default||le.constraint)?Lt(E.updateTypeParameterDeclaration(le,le.modifiers,le.name,void 0,void 0)):Lt(wn(le,Ni,e));case 195:{const Ue=st(le.checkType,Ni,Ri),Rt=st(le.extendsType,Ni,Ri),It=d;d=le.trueType;const Ot=st(le.trueType,Ni,Ri);d=It;const nt=st(le.falseType,Ni,Ri);return C.assert(Ue),C.assert(Rt),C.assert(Ot),C.assert(nt),Lt(E.updateConditionalTypeNode(le,Ue,Rt,Ot,nt))}case 185:return Lt(E.updateFunctionTypeNode(le,Xn(le.typeParameters,Ni,cl),cn(le,le.parameters),C.checkDefined(st(le.type,Ni,Ri))));case 186:return Lt(E.updateConstructorTypeNode(le,Uo(le),Xn(le.typeParameters,Ni,cl),cn(le,le.parameters),C.checkDefined(st(le.type,Ni,Ri))));case 206:return iy(le)?Lt(E.updateImportTypeNode(le,E.updateLiteralTypeNode(le.argument,Di(le,le.argument.literal)),le.attributes,le.qualifier,Xn(le.typeArguments,Ni,Ri),le.isTypeOf)):Lt(le);default:C.assertNever(le,`Attempted to process unhandled node kind: ${C.formatSyntaxKind(le.kind)}`)}return qI(le)&&ca(F,le.pos).line===ca(F,le.end).line&&Cr(le,1),Lt(wn(le,Ni,e));function Lt(Ue){return Ue&&Fe&&ay(le)&&Hi(le),gt(le)&&(d=ht),Fe&&!y&&(r=ne),dt&&(y=it),Ue===le?Ue:Ue&&jr(or(Ue,le),le)}}function Pr(le){return le.parent.kind===175&&wp(le.parent,2)}function Ci(le){if(!Iqe(le)||$o(le))return;switch(le.kind){case 279:return Yi(le.parent)&&(s=!0),u=!0,E.updateExportDeclaration(le,le.modifiers,le.isTypeOnly,le.exportClause,Di(le,le.moduleSpecifier),Zr(le.attributes));case 278:{if(Yi(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),cw(le),[dt,E.updateExportAssignment(le,le.modifiers,ne)]}}}const ht=mn(le);return h.set(Fu(le),ht),le}function Ye(le){if(Fc(le)||wp(le,2048)||!Sm(le))return le;const ht=E.createModifiersFromModifierFlags(Gd(le)&131039);return E.replaceModifiers(le,ht)}function At(le,ht,ne,Fe){const it=E.updateModuleDeclaration(le,ht,ne,Fe);if(yu(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 mn(le){if(g)for(;mN(g,le););if($o(le))return;switch(le.kind){case 272:return co(le);case 273:return zt(le)}if(rd(le)&&We(le)||a_(le)||Yo(le)&&J.isImplementationOfOverload(le))return;let ht;gt(le)&&(ht=d,d=le);const ne=Jw(le),Fe=r;ne&&(r=l0(le));const it=i;switch(le.kind){case 266:{i=!1;const Lt=dt(E.updateTypeAliasDeclaration(le,Uo(le),le.name,Xn(le.typeParameters,Ni,cl),C.checkDefined(st(le.type,Ni,Ri))));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,Ni,gS)));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 Ue=J.getPropertiesOfContainerFunction(le);ie&&K(le);const Rt=i0.createModuleDeclaration(void 0,Lt.name||E.createIdentifier("_default"),E.createModuleBlock([]),32);ps(Rt,d),Rt.locals=da(Ue),Rt.symbol=Ue[0].parent;const It=[];let Ot=ji(Ue,he=>{if(!WI(he.valueDeclaration))return;const B=Bi(he.escapedName);if(!fp(B,99))return;r=l0(he.valueDeclaration);const Ae=J.createTypeOfDeclaration(he.valueDeclaration,Rt,Kw,Xw|2,N);r=Fe;const te=SI(B),xt=te?E.getGeneratedNameForNode(he.valueDeclaration):E.createIdentifier(B);te&&It.push([xt,B]);const Xt=E.createVariableDeclaration(xt,void 0,Ae,void 0);return E.createVariableStatement(te?void 0:[E.createToken(95)],E.createVariableDeclarationList([Xt]))});It.length?Ot.push(E.createExportDeclaration(void 0,!1,E.createNamedExports(Bt(It,([he,B])=>E.createExportSpecifier(!1,he,B))))):Ot=ji(Ot,he=>E.replaceModifiers(he,0));const nt=E.createModuleDeclaration(Uo(le),le.name,E.createModuleBlock(Ot),32);if(!wp(Lt,2048))return[Lt,nt];const Kt=E.createModifiersFromModifierFlags(Gd(Lt)&-2081|128),Tr=E.updateFunctionDeclaration(Lt,Kt,void 0,Lt.name,Lt.typeParameters,Lt.parameters,Lt.type,void 0),Oe=E.updateModuleDeclaration(nt,Kt,nt.name,nt.body),Nt=E.createExportAssignment(void 0,!1,nt.name);return Yi(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 Ue=l,Rt=u;u=!1,l=!1;const It=Xn(Lt.statements,Ci,Gi);let Ot=Ai(It);le.flags&33554432&&(l=!1),!P_(le)&&!Pn(Ot)&&!u&&(l?Ot=E.createNodeArray([...Ot,bw(E)]):Ot=Xn(Ot,Ye,Gi));const nt=E.updateModuleBlock(Lt,Ot);i=it,l=Ue,u=Rt;const Kt=Uo(le);return dt(At(le,Kt,SS(le)?Di(le,le.name):le.name,nt))}else{i=it;const Ue=Uo(le);i=!1,st(Lt,Ci);const Rt=Fu(Lt),It=h.get(Rt);return h.delete(Rt),dt(At(le,Ue,le.name,It))}}case 264:{P=le.name,k=le;const Lt=E.createNodeArray(Uo(le)),Ue=Kn(le,le.typeParameters),Rt=vg(le);let It;if(Rt){const he=r;It=m2(Ki(Rt.parameters,B=>{if(!di(B,31)||$o(B))return;if(r=l0(B),B.name.kind===80)return or(E.createPropertyDeclaration(Uo(B),B.name,B.questionToken,Ge(B),je(B)),B);return Ae(B.name);function Ae(te){let xt;for(const Xt of te.elements)Jc(Xt)||(Qo(Xt.name)&&(xt=lo(xt,Ae(Xt.name))),xt=xt||[],xt.push(E.createPropertyDeclaration(Uo(B),Xt.name,void 0,Ge(Xt),void 0)));return xt}})),r=he}const nt=vt(le.members,he=>!!he.name&&eo(he.name))?[E.createPropertyDeclaration(void 0,E.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Kt=J.createLateBoundIndexSignatures(le,d,Kw,Xw,N),Tr=lo(lo(lo(nt,Kt),It),Xn(le.members,Ni,bc)),Oe=E.createNodeArray(Tr),Nt=lh(le);if(Nt&&!Ds(Nt.expression)&&Nt.expression.kind!==106){const he=le.name?Bi(le.name.escapedText):"default",B=E.createUniqueName(`${he}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Nt,typeName:le.name});const Ae=E.createVariableDeclaration(B,void 0,J.createTypeOfExpression(Nt.expression,le,Kw,Xw,N),void 0),te=E.createVariableStatement(i?[E.createModifier(138)]:[],E.createVariableDeclarationList([Ae],2)),xt=E.createNodeArray(Bt(le.heritageClauses,Xt=>{if(Xt.token===96){const Pe=r;r=l0(Xt.types[0]);const yt=E.updateHeritageClause(Xt,Bt(Xt.types,Gt=>E.updateExpressionWithTypeArguments(Gt,B,Xn(Gt.typeArguments,Ni,Ri))));return r=Pe,yt}return E.updateHeritageClause(Xt,Xn(E.createNodeArray(Vn(Xt.types,Pe=>Ds(Pe.expression)||Pe.expression.kind===106)),Ni,uy))}));return[te,dt(E.updateClassDeclaration(le,Lt,le.name,Ue,xt,Oe))]}else{const he=Ft(le.heritageClauses);return dt(E.updateClassDeclaration(le,Lt,le.name,Ue,he,Oe))}}case 244:return dt(dr(le));case 267:return dt(E.updateEnumDeclaration(le,E.createNodeArray(Uo(le)),le.name,E.createNodeArray(ji(le.members,Lt=>{if($o(Lt))return;const Ue=J.getEnumMemberValue(Lt),Rt=Ue==null?void 0:Ue.value;ie&&Lt.initializer&&(Ue!=null&&Ue.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=ht),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(!$e(le.declarationList.declarations,Wt))return;const ht=Xn(le.declarationList.declarations,Ni,yi);if(!Ze(ht))return;const ne=E.createNodeArray(Uo(le));let Fe;return ik(le.declarationList)||rk(le.declarationList)?(Fe=E.createVariableDeclarationList(ht,2),jr(Fe,le.declarationList),bt(Fe,le.declarationList),Rc(Fe,le.declarationList)):Fe=E.updateVariableDeclarationList(le.declarationList,ht),E.updateVariableStatement(le,ne,Fe)}function ri(le){return ia(ji(le.elements,ht=>ai(ht)))}function ai(le){if(le.kind!==233&&le.name)return Wt(le)?Qo(le.name)?ri(le.name):E.createVariableDeclaration(le.name,void 0,Ge(le),void 0):void 0}function Hi(le){let ht;y||(ht=r,r=Xae(le)),P=le.name,C.assert(ay(le));const Fe=le.name.expression;en(Fe,d),y||(r=ht),P=void 0}function $o(le){return!!ye&&!!le&&Ete(le,F)}function Ia(le){return dl(le)||fc(le)}function Pn(le){return vt(le,Ia)}function Uo(le){const ht=Gd(le),ne=ot(le);return ht===ne?sP(le.modifiers,Fe=>ni(Fe,Aa),Aa):E.createModifiersFromModifierFlags(ne)}function ot(le){let ht=130030,ne=i&&!Eqe(le)?128:0;const Fe=le.parent.kind===308;return(!Fe||o&&Fe&&zc(le.parent))&&(ht^=128,ne=0),lAe(le,ht,ne)}function Ft(le){return E.createNodeArray(Vn(Bt(le,ht=>E.updateHeritageClause(ht,Xn(E.createNodeArray(Vn(ht.types,ne=>Ds(ne.expression)||ht.token===96&&ne.expression.kind===106)),Ni,uy))),ht=>ht.types&&!!ht.types.length))}}function Eqe(e){return e.kind===265}function Aqe(e,t,r,i){return e.createModifiersFromModifierFlags(lAe(t,r,i))}function lAe(e,t=131070,r=0){let i=Gd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function cAe(e){switch(e.kind){case 173:case 172:return!wp(e,2);case 170:case 261:return!0}return!1}function Iqe(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 xqe(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 Rqe(e){switch(e){case 200:return tH;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return Kae;case 4:return Jae;default:return eH}}var Qae={scriptTransformers:se,declarationTransformers:se};function Zae(e,t,r){return{scriptTransformers:Dqe(e,t,r),declarationTransformers:Cqe(t)}}function Dqe(e,t,r){if(r)return se;const i=Ga(e),o=bu(e),s=Jk(e),l=[];return Xr(l,t&&Bt(t.before,uAe)),l.push(Nae),e.experimentalDecorators&&l.push(Lae),z6(e)&&l.push(jae),i<99&&l.push(Bae),!e.experimentalDecorators&&(i<99||!s)&&l.push(kae),l.push(Mae),i<8&&l.push(zae),i<7&&l.push(Fae),i<6&&l.push(Wae),i<5&&l.push(Oae),i<4&&l.push(wae),i<3&&l.push(Uae),i<2&&(l.push(Hae),l.push(qae)),l.push(Rqe(o)),Xr(l,t&&Bt(t.after,uAe)),l}function Cqe(e){const t=[];return t.push(nH),Xr(t,e&&Bt(e.afterDeclarations,Mqe)),t}function Nqe(e){return t=>Mie(t)?e.transformBundle(t):e.transformSourceFile(t)}function dAe(e,t){return r=>{const i=e(r);return typeof i=="function"?t(r,i):Nqe(i)}}function uAe(e){return dAe(e,hh)}function Mqe(e){return dAe(e,(t,r)=>r)}function mP(e,t){return t}function Yw(e,t,r){r(e,t)}function $w(e,t,r,i,o,s,l){var u,d;const g=new Array(359);let h,y,E,A=0,R=[],N=[],P=[],k=[],F=0,O=!1,G=[],j=0,J,Z,q=mP,ye=Yw,ie=0;const K=[],pe={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Nu(()=>uie(pe)),startLexicalEnvironment:ce,suspendLexicalEnvironment:Re,resumeLexicalEnvironment:ge,endLexicalEnvironment:je,setLexicalEnvironmentFlags:Ge,getLexicalEnvironmentFlags:We,hoistVariableDeclaration:Ne,hoistFunctionDeclaration:Be,addInitializationStatement:lt,startBlockScope:at,endBlockScope:Wt,addBlockScopedVariable:cn,requestEmitHelper:gn,readEmitHelpers:Kn,enableSubstitution:X,enableEmitNotification:Se,isSubstitutionEnabled:Ce,isEmitNotificationEnabled:re,get onSubstituteNode(){return q},set onSubstituteNode(en){C.assert(ie<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),q=en},get onEmitNode(){return ye},set onEmitNode(en){C.assert(ie<1,"Cannot modify transformation hooks after initialization has completed."),C.assert(en!==void 0,"Value must not be 'undefined'"),ye=en},addDiagnostic(en){K.push(en)}};for(const en of o)cj(Fn(jo(en)));Rl("beforeTransform");const de=s.map(en=>en(pe)),fe=en=>{for(const or of de)en=or(en);return en};ie=1;const ve=[];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}),ve.push((l?fe:xe)(en)),(d=xr)==null||d.pop();return ie=2,Rl("afterTransform"),wf("transformTime","beforeTransform","afterTransform"),{transformed:ve,substituteNode:Je,emitNodeWithNotification:be,isEmitNotificationEnabled:re,dispose:gt,diagnostics:K};function xe(en){return en&&(!Yi(en)||!en.isDeclarationFile)?fe(en):en}function X(en){C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),g[en]|=1}function Ce(en){return(g[en.kind]&1)!==0&&(Qa(en)&8)===0}function Je(en,or){return C.assert(ie<3,"Cannot substitute a node after the result is disposed."),or&&Ce(or)&&q(en,or)||or}function Se(en){C.assert(ie<2,"Cannot modify the transformation context after transformation has completed."),g[en]|=2}function re(en){return(g[en.kind]&2)!==0||(Qa(en)&4)!==0}function be(en,or,Di){C.assert(ie<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),or&&(re(or)?ye(en,or,Di):Di(en,or))}function Ne(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<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(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),y?y.push(en):y=[en]}function lt(en){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),Cr(en,2097152),E?E.push(en):E=[en]}function ce(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"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 Re(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"Lexical environment is already suspended."),O=!0}function ge(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(O,"Lexical environment is not suspended."),O=!1}function je(){C.assert(ie>0,"Cannot modify the lexical environment during initialization."),C.assert(ie<2,"Cannot modify the lexical environment after transformation has completed."),C.assert(!O,"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(ie>0,"Cannot start a block scope during initialization."),C.assert(ie<2,"Cannot start a block scope after transformation has completed."),G[j]=J,j++,J=void 0}function Wt(){C.assert(ie>0,"Cannot end a block scope during initialization."),C.assert(ie<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(ie>0,"Cannot modify the transformation context during initialization."),C.assert(ie<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=Un(Z,en)}function Kn(){C.assert(ie>0,"Cannot modify the transformation context during initialization."),C.assert(ie<2,"Cannot modify the transformation context after transformation has completed.");const en=Z;return Z=void 0,en}function gt(){if(ie<3){for(const en of o)cj(Fn(jo(en)));h=void 0,R=void 0,y=void 0,N=void 0,q=void 0,ye=void 0,Z=void 0,ie=3}}}var Qw={factory:L,getCompilerOptions:()=>({}),getEmitResolver:_a,getEmitHost:_a,getEmitHelperFactory:_a,startLexicalEnvironment:gs,resumeLexicalEnvironment:gs,suspendLexicalEnvironment:gs,endLexicalEnvironment:pS,setLexicalEnvironmentFlags:gs,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:gs,hoistFunctionDeclaration:gs,addInitializationStatement:gs,startBlockScope:gs,endBlockScope:pS,addBlockScopedVariable:gs,requestEmitHelper:gs,readEmitHelpers:_a,enableSubstitution:gs,enableEmitNotification:gs,isSubstitutionEnabled:_a,isEmitNotificationEnabled:_a,onSubstituteNode:mP,onEmitNode:Yw,addDiagnostic:gs},pAe=Lqe();function ese(e){return El(e,".tsbuildinfo")}function rH(e,t,r,i=!1,o,s){const l=Mo(r)?r:y6(e,r,i),u=e.getCompilerOptions();if(!o)if(u.outFile){if(l.length){const d=L.createBundle(l),g=t(hP(d,e,i),d);if(g)return g}}else for(const d of l){const g=t(hP(d,e,i),d);if(g)return g}if(s){const d=c0(u);if(d)return t({buildInfoPath:d},void 0)}}function c0(e){const t=e.configFilePath;if(!Pqe(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const r=e.outFile;let i;if(r)i=Tu(r);else{if(!t)return;const o=Tu(t);i=e.outDir?e.rootDir?ab(e.outDir,cf(e.rootDir,o,!0)):Qr(e.outDir,Ic(o)):o}return i+".tsbuildinfo"}function Pqe(e){return wS(e)||!!e.tscBuild}function tse(e,t){const r=e.outFile,i=e.emitDeclarationOnly?void 0:r,o=i&&fAe(i,e),s=t||_p(e)?Tu(r)+".d.ts":void 0,l=s&&w6(e)?s+".map":void 0;return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l}}function hP(e,t,r){const i=t.getCompilerOptions();if(e.kind===309)return tse(i,r);{const o=Cne(e.fileName,t,Zw(e.fileName,i)),s=Ff(e),l=s&&ey(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||l?void 0:o,d=!u||Ff(e)?void 0:fAe(u,i),g=r||_p(i)&&!s?Nne(e.fileName,t):void 0,h=g&&w6(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:d,declarationFilePath:g,declarationMapPath:h}}}function fAe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Zw(e,t){return El(e,".json")?".json":t.jsx===1&&$l(e,[".jsx",".tsx"])?".jsx":$l(e,[".mts",".mjs"])?".mjs":$l(e,[".cts",".cjs"])?".cjs":".js"}function mAe(e,t,r,i){return r?ab(r,cf(i(),e,t)):e}function _P(e,t,r,i=()=>O1(t,r)){return iH(e,t.options,r,i)}function iH(e,t,r,i){return av(mAe(e,r,t.declarationDir||t.outDir,i),_6(e))}function hAe(e,t,r,i=()=>O1(t,r)){if(t.options.emitDeclarationOnly)return;const o=El(e,".json"),s=oH(e,t.options,r,i);return!o||ey(e,s,C.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function oH(e,t,r,i){return av(mAe(e,r,t.outDir,i),Zw(e,t))}function _Ae(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||se}}function gAe(e,t){const{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s}=tse(e.options,!1);t(r),t(i),t(o),t(s)}function yAe(e,t,r,i,o){if(ad(t))return;const s=hAe(t,e,r,o);if(i(s),!El(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),_p(e.options))){const l=_P(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function gP(e,t,r,i,o){let s;return e.rootDir?(s=So(e.rootDir,r),o==null||o(e.rootDir)):e.composite&&e.configFilePath?(s=ci(Bd(e.configFilePath)),o==null||o(s)):s=cse(t(),r,i),s&&s[s.length-1]!==Js&&(s+=Js),s}function O1({options:e,fileNames:t},r){return gP(e,()=>Vn(t,i=>!(e.noEmitForJsFiles&&$l(i,fD))&&!ad(i)),ci(Bd(C.checkDefined(e.configFilePath))),Fd(!r))}function E3(e,t){const{addOutput:r,getOutputs:i}=_Ae();if(e.options.outFile)gAe(e,r);else{const o=Nu(()=>O1(e,t));for(const s of e.fileNames)yAe(e,s,t,r,o)}return r(c0(e.options)),i()}function vAe(e,t,r){t=ya(t),C.assert(Ln(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:o}=_Ae();return e.options.outFile?gAe(e,i):yAe(e,t,r,i),o()}function aH(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=Nu(()=>O1(e,t));for(const o of e.fileNames){if(ad(o))continue;const s=hAe(o,e,t,r);if(s)return s;if(!El(o,".json")&&_p(e.options))return _P(o,e,t,r)}const i=c0(e.options);return i||C.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function sH(e,t){return!!t&&!!e}function lH(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,u,d){var g=t.getCompilerOptions(),h=g.sourceMap||g.inlineSourceMap||w6(g)?[]:void 0,y=g.listEmittedFiles?[]:void 0,E=cM(),A=iv(g),R=kk(A),{enter:N,exit:P}=t9("printTime","beforePrint","afterPrint"),k=!1;return N(),rH(t,F,y6(t,r,u),u,l,!r&&!d),P(),{emitSkipped:k,diagnostics:E.getDiagnostics(),emittedFiles:y,sourceMaps:h};function F({jsFilePath:de,sourceMapFilePath:fe,declarationFilePath:ve,declarationMapPath:xe,buildInfoPath:X},Ce){var Je,Se,re,be,Ne,Be;(Je=xr)==null||Je.push(xr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:de}),G(Ce,de,fe),(Se=xr)==null||Se.pop(),(re=xr)==null||re.push(xr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:ve}),j(Ce,ve,xe),(be=xr)==null||be.pop(),(Ne=xr)==null||Ne.push(xr.Phase.Emit,"emitBuildInfo",{buildInfoPath:X}),O(X),(Be=xr)==null||Be.pop()}function O(de){if(!de||r)return;if(t.isEmitBlocked(de)){k=!0;return}const fe=t.getBuildInfo()||{version:Le};b6(t,E,de,nse(fe),!1,void 0,{buildInfo:fe}),y==null||y.push(de)}function G(de,fe,ve){if(!de||s||!fe)return;if(t.isEmitBlocked(fe)||g.noEmit){k=!0;return}(Yi(de)?[de]:Vn(de.sourceFiles,t6)).forEach(Je=>{(g.noCheck||!xM(Je,g))&&Z(Je)});const xe=$w(e,t,L,g,[de],i,!1),X={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:g.noEmitHelpers,module:bu(g),moduleResolution:iu(g),target:Ga(g),sourceMap:g.sourceMap,inlineSourceMap:g.inlineSourceMap,inlineSources:g.inlineSources,extendedDiagnostics:g.extendedDiagnostics},Ce=zb(X,{hasGlobalName:e.hasGlobalName,onEmitNode:xe.emitNodeWithNotification,isEmitNotificationEnabled:xe.isEmitNotificationEnabled,substituteNode:xe.substituteNode});C.assert(xe.transformed.length===1,"Should only see one output from the transform"),q(fe,ve,xe,Ce,g),xe.dispose(),y&&(y.push(fe),ve&&y.push(ve))}function j(de,fe,ve){if(!de||s===0)return;if(!fe){(s||g.emitDeclarationOnly)&&(k=!0);return}const xe=Yi(de)?[de]:de.sourceFiles,X=u?xe:Vn(xe,t6),Ce=g.outFile?[L.createBundle(X)]:X;X.forEach(re=>{(s&&!_p(g)||g.noCheck||sH(s,u)||!xM(re,g))&&J(re)});const Je=$w(e,t,L,g,Ce,o,!1);if(Ze(Je.diagnostics))for(const re of Je.diagnostics)E.add(re);const Se=!!Je.diagnostics&&!!Je.diagnostics.length||!!t.isEmitBlocked(fe)||!!g.noEmit;if(k=k||Se,!Se||u){C.assert(Je.transformed.length===1,"Should only see one output from the decl transform");const re={removeComments:g.removeComments,newLine:g.newLine,noEmitHelpers:!0,module:g.module,moduleResolution:g.moduleResolution,target:g.target,sourceMap:s!==2&&g.declarationMap,inlineSourceMap:g.inlineSourceMap,extendedDiagnostics:g.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},be=zb(re,{hasGlobalName:e.hasGlobalName,onEmitNode:Je.emitNodeWithNotification,isEmitNotificationEnabled:Je.isEmitNotificationEnabled,substituteNode:Je.substituteNode}),Ne=q(fe,ve,Je,be,{sourceMap:re.sourceMap,sourceRoot:g.sourceRoot,mapRoot:g.mapRoot,extendedDiagnostics:g.extendedDiagnostics});y&&(Ne&&y.push(fe),ve&&y.push(ve))}Je.dispose()}function J(de){if(dl(de)){de.expression.kind===80&&e.collectLinkedAliases(de.expression,!0);return}else if(ou(de)){e.collectLinkedAliases(de.propertyName||de.name,!0);return}Jo(de,J)}function Z(de){Pu(de)||ex(de,fe=>{if(Fc(fe)&&!(nv(fe)&32)||vl(fe))return"skip";e.markLinkedReferences(fe)})}function q(de,fe,ve,xe,X){const Ce=ve.transformed[0],Je=Ce.kind===309?Ce:void 0,Se=Ce.kind===308?Ce:void 0,re=Je?Je.sourceFiles:[Se];let be;ye(X,Ce)&&(be=pae(t,Ic(Bd(de)),ie(X),K(X,de,Se),X)),Je?xe.writeBundle(Je,R,be):xe.writeFile(Se,R,be);let Ne;if(be){h&&h.push({inputSourceFileNames:be.getSources(),sourceMap:be.toJSON()});const ce=pe(X,be,de,fe,Se);if(ce&&(R.isAtStartOfLine()||R.rawWrite(A),Ne=R.getTextPos(),R.writeComment(`//# sourceMappingURL=${ce}`)),fe){const Re=be.toString();b6(t,E,fe,Re,!1,re)}}else R.writeLine();const Be=R.getText(),lt={sourceMapUrlPos:Ne,diagnostics:ve.diagnostics};return b6(t,E,de,Be,!!g.emitBOM,re,lt),R.clear(),!lt.skippedDtsWrite}function ye(de,fe){return(de.sourceMap||de.inlineSourceMap)&&(fe.kind!==308||!El(fe.fileName,".json"))}function ie(de){const fe=Bd(de.sourceRoot||"");return fe&&Uc(fe)}function K(de,fe,ve){if(de.sourceRoot)return t.getCommonSourceDirectory();if(de.mapRoot){let xe=Bd(de.mapRoot);return ve&&(xe=ci(v6(ve.fileName,t,xe))),Bh(xe)===0&&(xe=Qr(t.getCommonSourceDirectory(),xe)),xe}return ci(ya(fe))}function pe(de,fe,ve,xe,X){if(de.inlineSourceMap){const Je=fe.toString();return`data:application/json;base64,${qne(jc,Je)}`}const Ce=Ic(Bd(C.checkDefined(xe)));if(de.mapRoot){let Je=Bd(de.mapRoot);return X&&(Je=ci(v6(X.fileName,t,Je))),Bh(Je)===0?(Je=Qr(t.getCommonSourceDirectory(),Je),encodeURI(PR(ci(ya(ve)),Qr(Je,Ce),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Qr(Je,Ce))}return encodeURI(Ce)}}function nse(e){return JSON.stringify(e)}function cH(e,t){return gV(e,t)}var rse={hasGlobalName:_a,getReferencedExportContainer:_a,getReferencedImportDeclaration:_a,getReferencedDeclarationWithCollidingName:_a,isDeclarationWithCollidingName:_a,isValueAliasDeclaration:_a,isReferencedAliasDeclaration:_a,isTopLevelValueImportEqualsWithEntityName:_a,hasNodeCheckFlag:_a,isDeclarationVisible:_a,isLateBound:e=>!1,collectLinkedAliases:_a,markLinkedReferences:_a,isImplementationOfOverload:_a,requiresAddingImplicitUndefined:_a,isExpandoFunctionDeclaration:_a,getPropertiesOfContainerFunction:_a,createTypeOfDeclaration:_a,createReturnTypeOfSignatureDeclaration:_a,createTypeOfExpression:_a,createLiteralConstValue:_a,isSymbolAccessible:_a,isEntityNameVisible:_a,getConstantValue:_a,getEnumMemberValue:_a,getReferencedValueDeclaration:_a,getReferencedValueDeclarations:_a,getTypeReferenceSerializationKind:_a,isOptionalParameter:_a,isArgumentsLocalBinding:_a,getExternalModuleFileFromDeclaration:_a,isLiteralConstDeclaration:_a,getJsxFactoryEntity:_a,getJsxFragmentFactoryEntity:_a,isBindingCapturedByNode:_a,getDeclarationStatementsForSourceFile:_a,isImportRequiredByAugmentation:_a,isDefinitelyReferenceToGlobalSymbolObject:_a,createLateBoundIndexSignatures:_a,symbolToDeclarations:_a},ise=Nu(()=>zb({})),$S=Nu(()=>zb({removeComments:!0})),ose=Nu(()=>zb({removeComments:!0,neverAsciiEscape:!0})),dH=Nu(()=>zb({removeComments:!0,omitTrailingSemicolon:!0}));function zb(e={},t={}){var{hasGlobalName:r,onEmitNode:i=Yw,isEmitNotificationEnabled:o,substituteNode:s=mP,onBeforeEmitNode:l,onAfterEmitNode:u,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:g,onBeforeEmitToken:h,onAfterEmitToken:y}=t,E=!!e.extendedDiagnostics,A=!!e.omitBraceSourceMapPositions,R=iv(e),N=bu(e),P=new Map,k,F,O,G,j,J,Z,q,ye,ie,K,pe,de,fe,ve,xe=e.preserveSourceNewlines,X,Ce,Je,Se=xC,re,be=!0,Ne,Be,lt=-1,ce,Re=-1,ge=-1,je=-1,Ge=-1,We,at,Wt=!1,cn=!!e.removeComments,gn,Kn,{enter:gt,exit:en}=ETe(E,"commentTime","beforeComment","afterComment"),or=L.parenthesizer,Di={select:D=>D===0?or.parenthesizeLeadingTypeArgument:void 0},co=Mc();return $o(),{printNode:zt,printList:Zr,printFile:Ni,printBundle:Ai,writeNode:Pr,writeList:Ci,writeFile:At,writeBundle:Ye};function zt(D,me,Et){switch(D){case 0:C.assert(Yi(me),"Expected a SourceFile node.");break;case 2:C.assert(He(me),"Expected an Identifier node.");break;case 1:C.assert(St(me),"Expected an Expression node.");break}switch(me.kind){case 308:return Ni(me);case 309:return Ai(me)}return Pr(D,me,Et,mn()),dr()}function Zr(D,me,Et){return Ci(D,me,Et,mn()),dr()}function Ai(D){return Ye(D,mn(),void 0),dr()}function Ni(D){return At(D,mn(),void 0),dr()}function Pr(D,me,Et,An){const vi=Ce;Hi(An,void 0),ri(D,me,Et),$o(),Ce=vi}function Ci(D,me,Et,An){const vi=Ce;Hi(An,void 0),Et&&ai(Et),Jr(void 0,me,D),$o(),Ce=vi}function Ye(D,me,Et){re=!1;const An=Ce;Hi(me,Et),Iv(D),Km(D),Kt(D),rL(D);for(const vi of D.sourceFiles)ri(0,vi,vi);$o(),Ce=An}function At(D,me,Et){re=!0;const An=Ce;Hi(me,Et),Iv(D),Km(D),ri(0,D,D),$o(),Ce=An}function mn(){return Je||(Je=kk(R))}function dr(){const D=Je.getText();return Je.clear(),D}function ri(D,me,Et){Et&&ai(Et),ne(D,me,void 0)}function ai(D){k=D,We=void 0,at=void 0,D&&yE(D)}function Hi(D,me){D&&e.omitTrailingSemicolon&&(D=tV(D)),Ce=D,Ne=me,be=!Ce||!Ne}function $o(){F=[],O=[],G=[],j=new Set,J=[],Z=new Map,q=[],ye=0,ie=[],K=0,pe=[],de=void 0,fe=[],ve=void 0,k=void 0,We=void 0,at=void 0,Hi(void 0,void 0)}function Ia(){return We||(We=sg(C.checkDefined(k)))}function Pn(D,me){D!==void 0&&ne(4,D,me)}function Uo(D){D!==void 0&&ne(2,D,void 0)}function ot(D,me){D!==void 0&&ne(1,D,me)}function Ft(D){ne(wa(D)?6:4,D)}function le(D){xe&&zm(D)&4&&(xe=!1)}function ht(D){xe=D}function ne(D,me,Et){Kn=Et,dt(0,D,me)(D,me),Kn=void 0}function Fe(D){return!cn&&!Yi(D)}function it(D){return!be&&!Yi(D)&&!e6(D)}function dt(D,me,Et){switch(D){case 0:if(i!==Yw&&(!o||o(Et)))return Ue;case 1:if(s!==mP&&(gn=s(me,Et)||Et)!==Et)return Kn&&(gn=Kn(gn)),nt;case 2:if(Fe(Et))return _E;case 3:if(it(Et))return pA;case 4:return Rt;default:return C.assertNever(D)}}function Lt(D,me,Et){return dt(D+1,me,Et)}function Ue(D,me){const Et=Lt(0,D,me);i(D,me,Et)}function Rt(D,me){if(l==null||l(me),xe){const Et=xe;le(me),It(D,me),ht(Et)}else It(D,me);u==null||u(me),Kn=void 0}function It(D,me,Et=!0){if(Et){const An=uj(me);if(An)return he(D,me,An)}if(D===0)return D0(ha(me,Yi));if(D===2)return te(ha(me,He));if(D===6)return Nt(ha(me,wa),!0);if(D===3)return Ot(ha(me,cl));if(D===7)return m_(ha(me,I1));if(D===5)return C.assertNode(me,Sj),bh(!0);if(D===4){switch(me.kind){case 16:case 17:case 18:return Nt(me,!1);case 80:return te(me);case 81:return xt(me);case 167:return Xt(me);case 168:return yt(me);case 169:return Gt(me);case 170:return gr(me);case 171:return nr(me);case 172:return Jn(me);case 173:return ft(me);case 174:return Mt(me);case 175:return jt(me);case 176:return Qt(me);case 177:return In(me);case 178:case 179:return yn(me);case 180:return wt(me);case 181:return En(me);case 182:return xn(me);case 183:return Ii(me);case 184:return ra(me);case 185:return la(me);case 186:return Tc(me);case 187:return $s(me);case 188:return Ra(me);case 189:return ec(me);case 190:return Lo(me);case 191:return is(me);case 193:return qa(me);case 194:return Zt(me);case 195:return As(me);case 196:return Hl(me);case 197:return lc(me);case 234:return ld(me);case 198:return vd();case 199:return Fs(me);case 200:return Ee(me);case 201:return Y(me);case 202:return pt(me);case 203:return fa(me);case 204:return qt(me);case 205:return kn(me);case 206:return fn(me);case 207:return ur(me);case 208:return si(me);case 209:return Dr(me);case 240:return Ng(me);case 241:return ln();case 242:return Mg(me);case 244:return Xc(me);case 243:return bh(!1);case 245:return Tf(me);case 246:return f_(me);case 247:return ut(me);case 248:return tn(me);case 249:return an(me);case 250:return On(me);case 251:return ar(me);case 252:return Ti(me);case 253:return $i(me);case 254:return ta(me);case 255:return Ao(me);case 256:return Vo(me);case 257:return hl(me);case 258:return Ca(me);case 259:return cd(me);case 260:return Up(me);case 261:return Sf(me);case 262:return Yf(me);case 263:return Sy(me);case 264:return Rn(me);case 265:return Lr(me);case 266:return Yn(me);case 267:return cr(me);case 268:return Oi(me);case 269:return Ro(me);case 270:return _i(me);case 271:return H_(me);case 272:return Do(me);case 273:return _l(me);case 274:return sp(me);case 275:return Rm(me);case 281:return TC(me);case 276:return Td(me);case 277:return Dm(me);case 278:return Hp(me);case 279:return b0(me);case 280:return tL(me);case 282:return SC(me);case 301:return U_(me);case 302:return T0(me);case 283:return;case 284:return J1(me);case 12:return X1(me);case 287:case 290:return nL(me);case 288:case 291:return Cx(me);case 292:return EC(me);case 293:return E0(me);case 294:return Y1(me);case 295:return Mx(me);case 296:return Px(me);case 297:return Jb(me);case 298:return Ev(me);case 299:return Ay(me);case 300:return Iy(me);case 304:return Kb(me);case 305:return A0(me);case 306:return $1(me);case 307:return I0(me);case 308:return D0(me);case 309:return C.fail("Bundles should be printed using printBundle");case 310:return R0(me);case 311:return Ry(me);case 313:return zr("*");case 314:return zr("?");case 315:return Ps(me);case 316:return uo(me);case 317:return Go(me);case 318:return xl(me);case 192:case 319:return bf(me);case 320:return;case 321:return ns(me);case 323:return Iu(me);case 324:return J_(me);case 328:case 333:case 338:return x0(me);case 329:case 330:return q_(me);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return lp(me);case 340:return Jd(me);case 342:case 349:return Gu(me);case 341:case 343:case 344:case 345:case 350:case 351:return Q1(me);case 346:return ul(me);case 347:return qd(me);case 348:return AC(me);case 352:return xy(me);case 354:case 355:return}if(St(me)&&(D=1,s!==mP)){const An=s(D,me)||me;An!==me&&(me=An,Kn&&(me=Kn(me)))}}if(D===1)switch(me.kind){case 9:case 10:return Oe(me);case 11:case 14:case 15:return Nt(me,!1);case 80:return te(me);case 81:return xt(me);case 210:return zn(me);case 211:return ro(me);case 212:return Eo(me);case 213:return Da(me);case 214:return Qs(me);case 215:return Sc(me);case 216:return mc(me);case 217:return Hs(me);case 218:return Pl(me);case 219:return vh(me);case 220:return Pd(me);case 221:return ze(me);case 222:return Jt(me);case 223:return tr(me);case 224:return yo(me);case 225:return Za(me);case 226:return Va(me);case 227:return co(me);case 228:return rl(me);case 229:return Ll(me);case 230:return ql(me);case 231:return rf(me);case 232:return bd(me);case 233:return;case 235:return jp(me);case 236:return Au(me);case 234:return ld(me);case 239:return Xf(me);case 237:return V_(me);case 238:return C.fail("SyntheticExpression should never be printed.");case 283:return;case 285:return Sv(me);case 286:return K1(me);case 289:return Dx(me);case 353:return C.fail("SyntaxList should not be printed");case 354:return;case 356:return Qe(me);case 357:return Z1(me);case 358:return C.fail("SyntheticReferenceExpression should not be printed")}if(ep(me.kind))return rA(me,Wo);if(J9(me.kind))return rA(me,zr);C.fail(`Unhandled SyntaxKind: ${C.formatSyntaxKind(me.kind)}.`)}function Ot(D){Pn(D.name),Mr(),Wo("in"),Mr(),Pn(D.constraint)}function nt(D,me){const Et=Lt(1,D,me);C.assertIsDefined(gn),me=gn,gn=void 0,Et(D,me)}function Kt(D){let me=!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 Bl(D){Mr(),Pn(D.type)}function xl(D){Wo("function"),N0(D,D.parameters),zr(":"),Pn(D.type)}function Ps(D){zr("?"),Pn(D.type)}function uo(D){zr("!"),Pn(D.type)}function Go(D){Pn(D.type),zr("=")}function Tc(D){Sh(D,D.modifiers),Wo("new"),Mr(),Bu(D,zo,Bl)}function $s(D){Wo("typeof"),Mr(),Pn(D.exprName),$f(D,D.typeArguments)}function Ra(D){Ym(D),$e(D.members,hE),zr("{");const me=Qa(D)&1?768:32897;Jr(D,D.members,me|524288),zr("}"),My(D)}function ec(D){Pn(D.elementType,or.parenthesizeNonArrayTypeOfPostfixType),zr("["),zr("]")}function bf(D){zr("..."),Pn(D.type)}function Lo(D){z(23,D.pos,zr,D);const me=Qa(D)&1?528:657;Jr(D,D.elements,me|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 is(D){Pn(D.type,or.parenthesizeTypeOfOptionalType),zr("?")}function qa(D){Jr(D,D.types,516,or.parenthesizeConstituentTypeOfUnionType)}function Zt(D){Jr(D,D.types,520,or.parenthesizeConstituentTypeOfIntersectionType)}function As(D){Pn(D.checkType,or.parenthesizeCheckTypeOfConditionalType),Mr(),Wo("extends"),Mr(),Pn(D.extendsType,or.parenthesizeExtendsTypeOfConditionalType),Mr(),zr("?"),Mr(),Pn(D.trueType),Mr(),zr(":"),Mr(),Pn(D.falseType)}function Hl(D){Wo("infer"),Mr(),Pn(D.typeParameter)}function lc(D){zr("("),Pn(D.type),zr(")")}function vd(){Wo("this")}function Fs(D){Qb(D.operator,Wo),Mr();const me=D.operator===148?or.parenthesizeOperandOfReadonlyTypeOperator:or.parenthesizeOperandOfTypeOperator;Pn(D.type,me)}function Ee(D){Pn(D.objectType,or.parenthesizeNonArrayTypeOfPostfixType),zr("["),Pn(D.indexType),zr("]")}function Y(D){const me=Qa(D);zr("{"),me&1?Mr():(du(),K_()),D.readonlyToken&&(Pn(D.readonlyToken),D.readonlyToken.kind!==148&&Wo("readonly"),Mr()),zr("["),ne(3,D.typeParameter),D.nameType&&(Mr(),Wo("as"),Mr(),Pn(D.nameType)),zr("]"),D.questionToken&&(Pn(D.questionToken),D.questionToken.kind!==58&&zr("?")),zr(":"),Mr(),Pn(D.type),Ru(),me&1?Mr():(du(),Eh()),Jr(D,D.members,2),zr("}")}function pt(D){ot(D.literal)}function qt(D){Pn(D.head),Jr(D,D.templateSpans,262144)}function fn(D){D.isTypeOf&&(Wo("typeof"),Mr()),Wo("import"),zr("("),Pn(D.argument),D.attributes&&(zr(","),Mr(),ne(7,D.attributes)),zr(")"),D.qualifier&&(zr("."),Pn(D.qualifier)),$f(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),C0(D.initializer,D.name.end,D,or.parenthesizeExpressionForDisallowedComma)}function zn(D){const me=D.elements,Et=D.multiLine?65536:0;Vr(D,me,8914|Et,or.parenthesizeExpressionForDisallowedComma)}function ro(D){Ym(D),$e(D.properties,hE);const me=Qa(D)&131072;me&&K_();const Et=D.multiLine?65536:0,An=k&&k.languageVersion>=1&&!Ff(k)?64:0;Jr(D,D.properties,526226|An|Et),me&&Eh(),My(D)}function Eo(D){ot(D.expression,or.parenthesizeLeftSideOfAccess);const me=D.questionDotToken||uh(L.createToken(25),D.expression.end,D.name.pos),Et=__(D,D.expression,me),An=__(D,me,D.name);Qf(Et,!1),me.kind!==29&&Ns(D.expression)&&!Ce.hasTrailingComment()&&!Ce.hasTrailingWhitespace()&&zr("."),D.questionDotToken?Pn(me):z(me.kind,D.expression.end,zr,D),Qf(An,!1),Pn(D.name),cp(Et,An)}function Ns(D){if(D=Fm(D),np(D)){const me=tT(D,void 0,!0,!1);return!(D.numericLiteralFlags&448)&&!me.includes(ga(25))&&!me.includes("E")&&!me.includes("e")}else if(Ks(D)){const me=rie(D);return typeof me=="number"&&isFinite(me)&&me>=0&&Math.floor(me)===me}}function Da(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 Qs(D){const me=zm(D)&16;me&&(zr("("),Cy("0"),zr(","),Mr()),ot(D.expression,or.parenthesizeLeftSideOfAccess),me&&zr(")"),Pn(D.questionDotToken),$f(D,D.typeArguments),Vr(D,D.arguments,2576,or.parenthesizeExpressionForDisallowedComma)}function Sc(D){z(105,D.pos,Wo,D),Mr(),ot(D.expression,or.parenthesizeExpressionOfNew),$f(D,D.typeArguments),Vr(D,D.arguments,18960,or.parenthesizeExpressionForDisallowedComma)}function mc(D){const me=zm(D)&16;me&&(zr("("),Cy("0"),zr(","),Mr()),ot(D.tag,or.parenthesizeLeftSideOfAccess),me&&zr(")"),$f(D,D.typeArguments),Mr(),ot(D.template)}function Hs(D){zr("<"),Pn(D.type),zr(">"),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function Pl(D){const me=z(21,D.pos,zr,D),Et=Zb(D.expression,D);ot(D.expression,void 0),wx(D.expression,D),cp(Et),z(22,D.expression?D.expression.end:me,zr,D)}function vh(D){Og(D.name),Tv(D)}function Pd(D){Sh(D,D.modifiers),Bu(D,nf,op)}function nf(D){kg(D,D.typeParameters),h_(D,D.parameters),Nm(D.type),Mr(),Pn(D.equalsGreaterThanToken)}function op(D){ea(D.body)?Xe(D.body):(Mr(),ot(D.body,or.parenthesizeConciseBodyOfArrowFunction))}function ze(D){z(91,D.pos,Wo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function Jt(D){z(114,D.pos,Wo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function tr(D){z(116,D.pos,Wo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function yo(D){z(135,D.pos,Wo,D),Mr(),ot(D.expression,or.parenthesizeOperandOfPrefixUnary)}function Za(D){Qb(D.operator,vp),es(D)&&Mr(),ot(D.operand,or.parenthesizeOperandOfPrefixUnary)}function es(D){const me=D.operand;return me.kind===225&&(D.operator===40&&(me.operator===40||me.operator===46)||D.operator===41&&(me.operator===41||me.operator===47))}function Va(D){ot(D.operand,or.parenthesizeOperandOfPostfixUnary),Qb(D.operator,vp)}function Mc(){return k4(D,me,Et,An,vi,void 0);function D(Io,ki){if(ki){ki.stackIndex++,ki.preserveSourceNewlinesStack[ki.stackIndex]=xe,ki.containerPosStack[ki.stackIndex]=ge,ki.containerEndStack[ki.stackIndex]=je,ki.declarationListContainerEndStack[ki.stackIndex]=Ge;const Ja=ki.shouldEmitCommentsStack[ki.stackIndex]=Fe(Io),_c=ki.shouldEmitSourceMapsStack[ki.stackIndex]=it(Io);l==null||l(Io),Ja&&Ah(Io),_c&&os(Io),le(Io)}else ki={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ki}function me(Io,ki,Ja){return wi(Io,Ja,"left")}function Et(Io,ki,Ja){const _c=Io.kind!==28,Kd=__(Ja,Ja.left,Io),Vu=__(Ja,Io,Ja.right);Qf(Kd,_c),Fg(Io.pos),rA(Io,Io.kind===103?Wo:vp),$m(Io.end,!0),Qf(Vu,!0)}function An(Io,ki,Ja){return wi(Io,Ja,"right")}function vi(Io,ki){const Ja=__(Io,Io.left,Io.operatorToken),_c=__(Io,Io.operatorToken,Io.right);if(cp(Ja,_c),ki.stackIndex>0){const Kd=ki.preserveSourceNewlinesStack[ki.stackIndex],Vu=ki.containerPosStack[ki.stackIndex],G0=ki.containerEndStack[ki.stackIndex],ju=ki.declarationListContainerEndStack[ki.stackIndex],iT=ki.shouldEmitCommentsStack[ki.stackIndex],qx=ki.shouldEmitSourceMapsStack[ki.stackIndex];ht(Kd),qx&&Wr(Io),iT&&rT(Io,Vu,G0,ju),u==null||u(Io),ki.stackIndex--}}function wi(Io,ki,Ja){const _c=Ja==="left"?or.getParenthesizeLeftSideOfBinaryForOperator(ki.operatorToken.kind):or.getParenthesizeRightSideOfBinaryForOperator(ki.operatorToken.kind);let Kd=dt(0,1,Io);if(Kd===nt&&(C.assertIsDefined(gn),Io=_c(ha(gn,St)),Kd=Lt(1,1,Io),gn=void 0),(Kd===_E||Kd===pA||Kd===Rt)&&Nr(Io))return Io;Kn=_c,Kd(1,Io)}}function rl(D){const me=__(D,D.condition,D.questionToken),Et=__(D,D.questionToken,D.whenTrue),An=__(D,D.whenTrue,D.colonToken),vi=__(D,D.colonToken,D.whenFalse);ot(D.condition,or.parenthesizeConditionOfConditionalExpression),Qf(me,!0),Pn(D.questionToken),Qf(Et,!0),ot(D.whenTrue,or.parenthesizeBranchOfConditionalExpression),cp(me,Et),Qf(An,!0),Pn(D.colonToken),Qf(vi,!0),ot(D.whenFalse,or.parenthesizeBranchOfConditionalExpression),cp(An,vi)}function Ll(D){Pn(D.head),Jr(D,D.templateSpans,262144)}function ql(D){z(127,D.pos,Wo,D),Pn(D.asteriskToken),xv(D.expression&&Wn(D.expression),vo)}function rf(D){z(26,D.pos,zr,D),ot(D.expression,or.parenthesizeExpressionForDisallowedComma)}function bd(D){Og(D.name),Qn(D)}function ld(D){ot(D.expression,or.parenthesizeLeftSideOfAccess),$f(D,D.typeArguments)}function jp(D){ot(D.expression,void 0),D.type&&(Mr(),Wo("as"),Mr(),Pn(D.type))}function Au(D){ot(D.expression,or.parenthesizeLeftSideOfAccess),vp("!")}function Xf(D){ot(D.expression,void 0),D.type&&(Mr(),Wo("satisfies"),Mr(),Pn(D.type))}function V_(D){$b(D.keywordToken,D.pos,zr),zr("."),Pn(D.name)}function Ng(D){ot(D.expression),Pn(D.literal)}function Mg(D){ap(D,!D.multiLine&&eT(D))}function ap(D,me){z(19,D.pos,zr,D);const Et=me||Qa(D)&1?768:129;Jr(D,D.statements,Et),z(20,D.statements.end,zr,D,!!(Et&1))}function Xc(D){xu(D,D.modifiers,!1),Pn(D.declarationList),Ru()}function bh(D){D?zr(";"):Ru()}function Tf(D){ot(D.expression,or.parenthesizeExpressionOfExpressionStatement),(!k||!Ff(k)||Os(D.expression))&&Ru()}function f_(D){const me=z(101,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Dy(D,D.thenStatement),D.elseStatement&&(Af(D,D.thenStatement,D.elseStatement),z(93,D.thenStatement.end,Wo,D),D.elseStatement.kind===246?(Mr(),Pn(D.elseStatement)):Dy(D,D.elseStatement))}function oe(D,me){const Et=z(117,me,Wo,D);Mr(),z(21,Et,zr,D),ot(D.expression),z(22,D.expression.end,zr,D)}function ut(D){z(92,D.pos,Wo,D),Dy(D,D.statement),ea(D.statement)&&!xe?Mr():Af(D,D.statement,D.expression),oe(D,D.statement.end),Ru()}function tn(D){oe(D,D.pos),Dy(D,D.statement)}function an(D){const me=z(99,D.pos,Wo,D);Mr();let Et=z(21,me,zr,D);ti(D.initializer),Et=z(27,D.initializer?D.initializer.end:Et,zr,D),xv(D.condition),Et=z(27,D.condition?D.condition.end:Et,zr,D),xv(D.incrementor),z(22,D.incrementor?D.incrementor.end:Et,zr,D),Dy(D,D.statement)}function On(D){const me=z(99,D.pos,Wo,D);Mr(),z(21,me,zr,D),ti(D.initializer),Mr(),z(103,D.initializer.end,Wo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),Dy(D,D.statement)}function ar(D){const me=z(99,D.pos,Wo,D);Mr(),eA(D.awaitModifier),z(21,me,zr,D),ti(D.initializer),Mr(),z(165,D.initializer.end,Wo,D),Mr(),ot(D.expression),z(22,D.expression.end,zr,D),Dy(D,D.statement)}function ti(D){D!==void 0&&(D.kind===262?Pn(D):ot(D))}function Ti(D){z(88,D.pos,Wo,D),Ef(D.label),Ru()}function $i(D){z(83,D.pos,Wo,D),Ef(D.label),Ru()}function z(D,me,Et,An,vi){const wi=jo(An),Io=wi&&wi.kind===An.kind,ki=me;if(Io&&k&&(me=ka(k.text,me)),Io&&An.pos!==ki){const Ja=vi&&k&&!Gf(ki,me,k);Ja&&K_(),Fg(ki),Ja&&Eh()}if(!A&&(D===19||D===20)?me=$b(D,me,Et,An):me=Qb(D,Et,me),Io&&An.end!==me){const Ja=An.kind===295;$m(me,!Ja,Ja)}return me}function Ve(D){return D.kind===2||!!D.hasTrailingNewLine}function kt(D){if(!k)return!1;const me=cg(k.text,D.pos);if(me){const Et=jo(D);if(Et&&Ou(Et.parent))return!0}return vt(me,Ve)||vt(gD(D),Ve)?!0:Aie(D)?D.pos!==D.expression.pos&&vt(sb(k.text,D.expression.pos),Ve)?!0:kt(D.expression):!1}function Wn(D){if(!cn)switch(D.kind){case 356:if(kt(D)){const me=jo(D);if(me&&Ou(me)){const Et=L.createParenthesizedExpression(D.expression);return jr(Et,D),bt(Et,me),Et}return L.createParenthesizedExpression(D)}return L.updatePartiallyEmittedExpression(D,Wn(D.expression));case 212:return L.updatePropertyAccessExpression(D,Wn(D.expression),D.name);case 213:return L.updateElementAccessExpression(D,Wn(D.expression),D.argumentExpression);case 214:return L.updateCallExpression(D,Wn(D.expression),D.typeArguments,D.arguments);case 216:return L.updateTaggedTemplateExpression(D,Wn(D.tag),D.typeArguments,D.template);case 226:return L.updatePostfixUnaryExpression(D,Wn(D.operand));case 227:return L.updateBinaryExpression(D,Wn(D.left),D.operatorToken,D.right);case 228:return L.updateConditionalExpression(D,Wn(D.condition),D.questionToken,D.whenTrue,D.colonToken,D.whenFalse);case 235:return L.updateAsExpression(D,Wn(D.expression),D.type);case 239:return L.updateSatisfiesExpression(D,Wn(D.expression),D.type);case 236:return L.updateNonNullExpression(D,Wn(D.expression))}return D}function vo(D){return Wn(or.parenthesizeExpressionForDisallowedComma(D))}function ta(D){z(107,D.pos,Wo,D),xv(D.expression&&Wn(D.expression),Wn),Ru()}function Ao(D){const me=z(118,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Dy(D,D.statement)}function Vo(D){const me=z(109,D.pos,Wo,D);Mr(),z(21,me,zr,D),ot(D.expression),z(22,D.expression.end,zr,D),Mr(),Pn(D.caseBlock)}function hl(D){Pn(D.label),z(59,D.label.end,zr,D),Mr(),Pn(D.statement)}function Ca(D){z(111,D.pos,Wo,D),xv(Wn(D.expression),Wn),Ru()}function cd(D){z(113,D.pos,Wo,D),Mr(),Pn(D.tryBlock),D.catchClause&&(Af(D,D.tryBlock,D.catchClause),Pn(D.catchClause)),D.finallyBlock&&(Af(D,D.catchClause||D.tryBlock,D.finallyBlock),z(98,(D.catchClause||D.tryBlock).end,Wo,D),Mr(),Pn(D.finallyBlock))}function Up(D){$b(89,D.pos,Wo),Ru()}function Sf(D){var me,Et,An;Pn(D.name),Pn(D.exclamationToken),Nm(D.type),C0(D.initializer,((me=D.type)==null?void 0:me.end)??((An=(Et=D.name.emitNode)==null?void 0:Et.typeNode)==null?void 0:An.end)??D.name.end,D,or.parenthesizeExpressionForDisallowedComma)}function Yf(D){if(rk(D))Wo("await"),Mr(),Wo("using");else{const me=GF(D)?"let":JR(D)?"const":ik(D)?"using":"var";Wo(me)}Mr(),Jr(D,D.declarations,528)}function Sy(D){Tv(D)}function Tv(D){xu(D,D.modifiers,!1),Wo("function"),Pn(D.asteriskToken),Mr(),Uo(D.name),Bu(D,xm,j_)}function Bu(D,me,Et){const An=Qa(D)&131072;An&&K_(),Ym(D),$e(D.parameters,dd),me(D),Et(D),My(D),An&&Eh()}function j_(D){const me=D.body;me?Xe(me):Ru()}function Th(D){Ru()}function xm(D){kg(D,D.typeParameters),N0(D,D.parameters),Nm(D.type)}function Hb(D){if(Qa(D)&1)return!0;if(D.multiLine||!Os(D)&&k&&!f1(D,k)||Dv(D,Ac(D.statements),2)||kx(D,tl(D.statements),2,D.statements))return!1;let me;for(const Et of D.statements){if(P0(me,Et,2)>0)return!1;me=Et}return!0}function Xe(D){dd(D),l==null||l(D),Mr(),zr("{"),K_();const me=Hb(D)?mt:Yt;gE(D,D.statements,me),Eh(),$b(20,D.statements.end,zr,D),u==null||u(D)}function mt(D){Yt(D,!0)}function Yt(D,me){const Et=Lg(D.statements),An=Ce.getTextPos();Kt(D),Et===0&&An===Ce.getTextPos()&&me?(Eh(),Jr(D,D.statements,768),K_()):Jr(D,D.statements,1,void 0,Et)}function Rn(D){Qn(D)}function Qn(D){xu(D,D.modifiers,!0),z(86,$h(D).pos,Wo,D),D.name&&(Mr(),Uo(D.name));const me=Qa(D)&131072;me&&K_(),kg(D,D.typeParameters),Jr(D,D.heritageClauses,0),Mr(),zr("{"),Ym(D),$e(D.members,hE),Jr(D,D.members,129),My(D),zr("}"),me&&Eh()}function Lr(D){xu(D,D.modifiers,!1),Wo("interface"),Mr(),Pn(D.name),kg(D,D.typeParameters),Jr(D,D.heritageClauses,512),Mr(),zr("{"),Ym(D),$e(D.members,hE),Jr(D,D.members,129),My(D),zr("}")}function Yn(D){xu(D,D.modifiers,!1),Wo("type"),Mr(),Pn(D.name),kg(D,D.typeParameters),Mr(),zr("="),Mr(),Pn(D.type),Ru()}function cr(D){xu(D,D.modifiers,!1),Wo("enum"),Mr(),Pn(D.name),Mr(),zr("{"),Jr(D,D.members,145),zr("}")}function Oi(D){xu(D,D.modifiers,!1),~D.flags&2048&&(Wo(D.flags&32?"namespace":"module"),Mr()),Pn(D.name);let me=D.body;if(!me)return Ru();for(;me&&pc(me);)zr("."),Pn(me.name),me=me.body;Mr(),Pn(me)}function Ro(D){Ym(D),$e(D.statements,dd),ap(D,eT(D)),My(D)}function _i(D){z(19,D.pos,zr,D),Jr(D,D.clauses,129),z(20,D.clauses.end,zr,D,!0)}function Do(D){xu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Wo,D),Mr(),D.isTypeOnly&&(z(156,D.pos,Wo,D),Mr()),Pn(D.name),Mr(),z(64,D.name.end,zr,D),Mr(),Qi(D.moduleReference),Ru()}function Qi(D){D.kind===80?ot(D):Pn(D)}function _l(D){xu(D,D.modifiers,!1),z(102,D.modifiers?D.modifiers.end:D.pos,Wo,D),Mr(),D.importClause&&(Pn(D.importClause),Mr(),z(161,D.importClause.end,Wo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&Ef(D.attributes),Ru()}function sp(D){D.phaseModifier!==void 0&&(z(D.phaseModifier,D.pos,Wo,D),Mr()),Pn(D.name),D.name&&D.namedBindings&&(z(28,D.name.end,zr,D),Mr()),Pn(D.namedBindings)}function Rm(D){const me=z(42,D.pos,zr,D);Mr(),z(130,me,Wo,D),Mr(),Pn(D.name)}function Td(D){Pg(D)}function Dm(D){S0(D)}function Hp(D){const me=z(95,D.pos,Wo,D);Mr(),D.isExportEquals?z(64,me,vp,D):z(90,me,Wo,D),Mr(),ot(D.expression,D.isExportEquals?or.getParenthesizeRightSideOfBinaryForOperator(64):or.parenthesizeExpressionOfExportDefault),Ru()}function b0(D){xu(D,D.modifiers,!1);let me=z(95,D.pos,Wo,D);if(Mr(),D.isTypeOnly&&(me=z(156,me,Wo,D),Mr()),D.exportClause?Pn(D.exportClause):me=z(42,me,zr,D),D.moduleSpecifier){Mr();const Et=D.exportClause?D.exportClause.end:me;z(161,Et,Wo,D),Mr(),ot(D.moduleSpecifier)}D.attributes&&Ef(D.attributes),Ru()}function m_(D){zr("{"),Mr(),Wo(D.token===132?"assert":"with"),zr(":"),Mr();const me=D.elements;Jr(D,me,526226),Mr(),zr("}")}function U_(D){z(D.token,D.pos,Wo,D),Mr();const me=D.elements;Jr(D,me,526226)}function T0(D){Pn(D.name),zr(":"),Mr();const me=D.value;if(!(Qa(me)&1024)){const Et=e_(me);$m(Et.pos)}Pn(me)}function H_(D){let me=z(95,D.pos,Wo,D);Mr(),me=z(130,me,Wo,D),Mr(),me=z(145,me,Wo,D),Mr(),Pn(D.name),Ru()}function TC(D){const me=z(42,D.pos,zr,D);Mr(),z(130,me,Wo,D),Mr(),Pn(D.name)}function tL(D){Pg(D)}function SC(D){S0(D)}function Pg(D){zr("{"),Jr(D,D.elements,525136),zr("}")}function S0(D){D.isTypeOnly&&(Wo("type"),Mr()),D.propertyName&&(Pn(D.propertyName),Mr(),z(130,D.propertyName.end,Wo,D),Mr()),Pn(D.name)}function J1(D){Wo("require"),zr("("),ot(D.expression),zr(")")}function Sv(D){Pn(D.openingElement),Jr(D,D.children,262144),Pn(D.closingElement)}function K1(D){zr("<"),dE(D.tagName),$f(D,D.typeArguments),Mr(),Pn(D.attributes),zr("/>")}function Dx(D){Pn(D.openingFragment),Jr(D,D.children,262144),Pn(D.closingFragment)}function nL(D){if(zr("<"),ph(D)){const me=Zb(D.tagName,D);dE(D.tagName),$f(D,D.typeArguments),D.attributes.properties&&D.attributes.properties.length>0&&Mr(),Pn(D.attributes),wx(D.attributes,D),cp(me)}zr(">")}function X1(D){Ce.writeLiteral(D.text)}function Cx(D){zr("")}function E0(D){Jr(D,D.properties,262656)}function EC(D){Pn(D.name),ja("=",zr,D.initializer,Ft)}function Y1(D){zr("{..."),ot(D.expression),zr("}")}function Nx(D){let me=!1;return R2((k==null?void 0:k.text)||"",D+1,()=>me=!0),me}function cE(D){let me=!1;return x2((k==null?void 0:k.text)||"",D+1,()=>me=!0),me}function qb(D){return Nx(D)||cE(D)}function Mx(D){var me;if(D.expression||!cn&&!Os(D)&&qb(D.pos)){const Et=k&&!Os(D)&&ca(k,D.pos).line!==ca(k,D.end).line;Et&&Ce.increaseIndent();const An=z(19,D.pos,zr,D);Pn(D.dotDotDotToken),ot(D.expression),z(20,((me=D.expression)==null?void 0:me.end)||An,zr,D),Et&&Ce.decreaseIndent()}}function Px(D){Uo(D.namespace),zr(":"),Uo(D.name)}function dE(D){D.kind===80?ot(D):Pn(D)}function Jb(D){z(84,D.pos,Wo,D),Mr(),ot(D.expression,or.parenthesizeExpressionForDisallowedComma),Ey(D,D.statements,D.expression.end)}function Ev(D){const me=z(90,D.pos,Wo,D);Ey(D,D.statements,me)}function Ey(D,me,Et){const An=me.length===1&&(!k||Os(D)||Os(me[0])||D6(D,me[0],k));let vi=163969;An?($b(59,Et,zr,D),Mr(),vi&=-130):z(59,Et,zr,D),Jr(D,me,vi)}function Ay(D){Mr(),Qb(D.token,Wo),Mr(),Jr(D,D.types,528)}function Iy(D){const me=z(85,D.pos,Wo,D);Mr(),D.variableDeclaration&&(z(21,me,zr,D),Pn(D.variableDeclaration),z(22,D.variableDeclaration.end,zr,D),Mr()),Pn(D.block)}function Kb(D){Pn(D.name),zr(":"),Mr();const me=D.initializer;if(!(Qa(me)&1024)){const Et=e_(me);$m(Et.pos)}ot(me,or.parenthesizeExpressionForDisallowedComma)}function A0(D){Pn(D.name),D.objectAssignmentInitializer&&(Mr(),zr("="),Mr(),ot(D.objectAssignmentInitializer,or.parenthesizeExpressionForDisallowedComma))}function $1(D){D.expression&&(z(26,D.pos,zr,D),ot(D.expression,or.parenthesizeExpressionForDisallowedComma))}function I0(D){Pn(D.name),C0(D.initializer,D.name.end,D,or.parenthesizeExpressionForDisallowedComma)}function ns(D){if(Se("/**"),D.comment){const me=O2(D.comment);if(me){const Et=me.split(/\r\n?|\n/);for(const An of Et)du(),Mr(),zr("*"),Mr(),Se(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(),Se("*/")}function Q1(D){Cm(D.tagName),R0(D.typeExpression),Jm(D.comment)}function AC(D){Cm(D.tagName),Pn(D.name),Jm(D.comment)}function xy(D){Cm(D.tagName),Mr(),D.importClause&&(Pn(D.importClause),Mr(),z(161,D.importClause.end,Wo,D),Mr()),ot(D.moduleSpecifier),D.attributes&&Ef(D.attributes),Jm(D.comment)}function Ry(D){Mr(),zr("{"),Pn(D.name),zr("}")}function q_(D){Cm(D.tagName),Mr(),zr("{"),Pn(D.class),zr("}"),Jm(D.comment)}function ul(D){Cm(D.tagName),R0(D.constraint),Mr(),Jr(D,D.typeParameters,528),Jm(D.comment)}function qd(D){Cm(D.tagName),D.typeExpression&&(D.typeExpression.kind===310?R0(D.typeExpression):(Mr(),zr("{"),Se("Object"),D.typeExpression.isArrayType&&(zr("["),zr("]")),zr("}"))),D.fullName&&(Mr(),Pn(D.fullName)),Jm(D.comment),D.typeExpression&&D.typeExpression.kind===323&&Iu(D.typeExpression)}function lp(D){Cm(D.tagName),D.name&&(Mr(),Pn(D.name)),Jm(D.comment),J_(D.typeExpression)}function Jd(D){Jm(D.comment),J_(D.typeExpression)}function x0(D){Cm(D.tagName),Jm(D.comment)}function Iu(D){Jr(D,L.createNodeArray(D.jsDocPropertyTags),33)}function J_(D){D.typeParameters&&Jr(D,L.createNodeArray(D.typeParameters),33),D.parameters&&Jr(D,L.createNodeArray(D.parameters),33),D.type&&(du(),Mr(),zr("*"),Mr(),Pn(D.type))}function Gu(D){Cm(D.tagName),R0(D.typeExpression),Mr(),D.isBracketed&&zr("["),Pn(D.name),D.isBracketed&&zr("]"),Jm(D.comment)}function Cm(D){zr("@"),Pn(D)}function Jm(D){const me=O2(D);me&&(Mr(),Se(me))}function R0(D){D&&(Mr(),zr("{"),Pn(D.type),zr("}"))}function D0(D){du();const me=D.statements;if(me.length===0||!Hh(me[0])||Os(me[0])){gE(D,me,uE);return}uE(D)}function rL(D){Av(!!D.hasNoDefaultLib,D.syntheticFileReferences||[],D.syntheticTypeReferences||[],D.syntheticLibReferences||[])}function IC(D){D.isDeclarationFile&&Av(D.hasNoDefaultLib,D.referencedFiles,D.typeReferenceDirectives,D.libReferenceDirectives)}function Av(D,me,Et,An){if(D&&(Yb('/// '),du()),k&&k.moduleName&&(Yb(`/// `),du()),k&&k.amdDependencies)for(const wi of k.amdDependencies)wi.name?Yb(`/// `):Yb(`/// `),du();function vi(wi,Io){for(const ki of Io){const Ja=ki.resolutionMode?`resolution-mode="${ki.resolutionMode===99?"import":"require"}" `:"",_c=ki.preserve?'preserve="true" ':"";Yb(`/// `),du()}}vi("path",me),vi("types",Et),vi("lib",An)}function uE(D){const me=D.statements;Ym(D),$e(D.statements,dd),Kt(D);const Et=so(me,An=>!Hh(An));IC(D),Jr(D,me,1,void 0,Et===-1?me.length:Et),My(D)}function Qe(D){const me=Qa(D);!(me&1024)&&D.pos!==D.expression.pos&&$m(D.expression.pos),ot(D.expression),!(me&2048)&&D.end!==D.expression.end&&Fg(D.expression.end)}function Z1(D){Vr(D,D.elements,528,void 0)}function Lg(D,me,Et){let An=!!me;for(let vi=0;vi=Et.length||Io===0;if(Ja&&An&32768){d==null||d(Et),g==null||g(Et);return}An&15360&&(zr(kqe(An)),Ja&&Et&&$m(Et.pos,!0)),d==null||d(Et),Ja?An&1&&!(xe&&(!me||k&&f1(me,k)))?du():An&256&&!(An&524288)&&Mr():tA(D,me,Et,An,vi,wi,Io,Et.hasTrailingComma,Et),g==null||g(Et),An&15360&&(Ja&&Et&&Fg(Et.end),zr(wqe(An)))}function tA(D,me,Et,An,vi,wi,Io,ki,Ja){const _c=(An&262144)===0;let Kd=_c;const Vu=Dv(me,Et[wi],An);Vu?(du(Vu),Kd=!1):An&256&&Mr(),An&128&&K_();const G0=zqe(D,vi);let ju,iT=!1;for(let Pv=0;Pv0){if(An&131||(K_(),iT=!0),Kd&&An&60&&!dh(Qm.pos)){const vE=e_(Qm);$m(vE.pos,!!(An&512),!0)}du(Lv),Kd=!1}else ju&&An&512&&Mr()}if(Kd){const Lv=e_(Qm);$m(Lv.pos)}else Kd=_c;X=Qm.pos,G0(Qm,D,vi,Pv),iT&&(Eh(),iT=!1),ju=Qm}const qx=ju?Qa(ju):0,Mm=cn||!!(qx&2048),bl=ki&&An&64&&An&16;bl&&(ju&&!Mm?z(28,ju.end,zr,ju):zr(",")),ju&&(me?me.end:-1)!==ju.end&&An&60&&!Mm&&Fg(bl&&(Ja!=null&&Ja.end)?Ja.end:ju.end),An&128&&Eh();const hA=kx(me,Et[wi+Io-1],An,Ja);hA?du(hA):An&2097408&&Mr()}function Cy(D){Ce.writeLiteral(D)}function mE(D){Ce.writeStringLiteral(D)}function xC(D){Ce.write(D)}function iL(D,me){Ce.writeSymbol(D,me)}function zr(D){Ce.writePunctuation(D)}function Ru(){Ce.writeTrailingSemicolon(";")}function Wo(D){Ce.writeKeyword(D)}function vp(D){Ce.writeOperator(D)}function nA(D){Ce.writeParameter(D)}function Yb(D){Ce.writeComment(D)}function Mr(){Ce.writeSpace(" ")}function RC(D){Ce.writeProperty(D)}function Lx(D){Ce.nonEscapingWrite?Ce.nonEscapingWrite(D):Ce.write(D)}function du(D=1){for(let me=0;me0)}function K_(){Ce.increaseIndent()}function Eh(){Ce.decreaseIndent()}function $b(D,me,Et,An){return be?Qb(D,Et,me):fA(An,D,Et,me,Qb)}function rA(D,me){h&&h(D),me(ga(D.kind)),y&&y(D)}function Qb(D,me,Et){const An=ga(D);return me(An),Et<0?Et:Et+An.length}function Af(D,me,Et){if(Qa(D)&1)Mr();else if(xe){const An=__(D,me,Et);An?du(An):Mr()}else du()}function Xm(D){const me=D.split(/\r\n?|\n/),Et=Ste(me);for(const An of me){const vi=Et?An.slice(Et):An;vi.length&&(du(),Se(vi))}}function Qf(D,me){D?(K_(),du(D)):me&&Mr()}function cp(D,me){D&&Eh(),me&&Eh()}function Dv(D,me,Et){if(Et&2||xe){if(Et&65536)return 1;if(me===void 0)return!D||k&&f1(D,k)?0:1;if(me.pos===X||me.kind===12)return 0;if(k&&D&&!dh(D.pos)&&!Os(me)&&(!me.parent||yl(me.parent)===yl(D)))return xe?L0(An=>$ne(me.pos,D.pos,k,An)):D6(D,me,k)?0:1;if(Ny(me,Et))return 1}return Et&1?1:0}function P0(D,me,Et){if(Et&2||xe){if(D===void 0||me===void 0||me.kind===12)return 0;if(k&&!Os(D)&&!Os(me))return xe&&uu(D,me)?L0(An=>vV(D,me,k,An)):!xe&&Gx(D,me)?Gk(D,me,k)?0:1:Et&65536?1:0;if(Ny(D,Et)||Ny(me,Et))return 1}else if(wM(me))return 1;return Et&1?1:0}function kx(D,me,Et,An){if(Et&2||xe){if(Et&65536)return 1;if(me===void 0)return!D||k&&f1(D,k)?0:1;if(k&&D&&!dh(D.pos)&&!Os(me)&&(!me.parent||me.parent===D)){if(xe){const vi=An&&!dh(An.end)?An.end:me.end;return L0(wi=>Qne(vi,D.end,k,wi))}return Kne(D,me,k)?0:1}if(Ny(me,Et))return 1}return Et&1&&!(Et&131072)?1:0}function L0(D){C.assert(!!xe);const me=D(!0);return me===0?D(!1):me}function Zb(D,me){const Et=xe&&Dv(me,D,0);return Et&&Qf(Et,!1),!!Et}function wx(D,me){const Et=xe&&kx(me,D,0,void 0);Et&&du(Et)}function Ny(D,me){if(Os(D)){const Et=wM(D);return Et===void 0?(me&65536)!==0:Et}return(me&65536)!==0}function __(D,me,Et){return Qa(D)&262144?0:(D=k0(D),me=k0(me),Et=k0(Et),wM(Et)?1:k&&!Os(D)&&!Os(me)&&!Os(Et)?xe?L0(An=>vV(me,Et,k,An)):Gk(me,Et,k)?0:1:0)}function eT(D){return D.statements.length===0&&(!k||Gk(D,D,k))}function k0(D){for(;D.kind===218&&Os(D);)D=D.expression;return D}function Cv(D,me){if(fl(D)||$E(D))return w0(D);if(wa(D)&&D.textSourceNode)return Cv(D.textSourceNode,me);const Et=k,An=!!Et&&!!D.parent&&!Os(D);if(ug(D)){if(!An||Fn(D)!==yl(Et))return Kr(D)}else if(fh(D)){if(!An||Fn(D)!==yl(Et))return LM(D)}else if(C.assertNode(D,YE),!An)return D.text;return bS(Et,D,me)}function tT(D,me=k,Et,An){if(D.kind===11&&D.textSourceNode){const wi=D.textSourceNode;if(He(wi)||eo(wi)||np(wi)||fh(wi)){const Io=np(wi)?wi.text:Cv(wi);return An?`"${eV(Io)}"`:Et||Qa(D)&16777216?`"${w_(Io)}"`:`"${f6(Io)}"`}else return tT(wi,Fn(wi),Et,An)}const vi=(Et?1:0)|(An?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return wte(D,me,vi)}function Ym(D){q.push(ye),ye=0,fe.push(ve),!(D&&Qa(D)&1048576)&&(ie.push(K),K=0,J.push(Z),Z=void 0,pe.push(de))}function My(D){ye=q.pop(),ve=fe.pop(),!(D&&Qa(D)&1048576)&&(K=ie.pop(),Z=J.pop(),de=pe.pop())}function wg(D){(!de||de===tl(pe))&&(de=new Set),de.add(D)}function nT(D){(!ve||ve===tl(fe))&&(ve=new Set),ve.add(D)}function dd(D){if(D)switch(D.kind){case 242:$e(D.statements,dd);break;case 257:case 255:case 247:case 248:dd(D.statement);break;case 246:dd(D.thenStatement),dd(D.elseStatement);break;case 249:case 251:case 250:dd(D.initializer),dd(D.statement);break;case 256:dd(D.caseBlock);break;case 270:$e(D.clauses,dd);break;case 297:case 298:$e(D.statements,dd);break;case 259:dd(D.tryBlock),dd(D.catchClause),dd(D.finallyBlock);break;case 300:dd(D.variableDeclaration),dd(D.block);break;case 244:dd(D.declarationList);break;case 262:$e(D.declarations,dd);break;case 261:case 170:case 209:case 264:Og(D.name);break;case 263:Og(D.name),Qa(D)&1048576&&($e(D.parameters,dd),dd(D.body));break;case 207:case 208:$e(D.elements,dd);break;case 273:dd(D.importClause);break;case 274:Og(D.name),dd(D.namedBindings);break;case 275:Og(D.name);break;case 281:Og(D.name);break;case 276:$e(D.elements,dd);break;case 277:Og(D.propertyName||D.name);break}}function hE(D){if(D)switch(D.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:Og(D.name);break}}function Og(D){D&&(fl(D)||$E(D)?w0(D):Qo(D)&&dd(D))}function w0(D){const me=D.emitNode.autoGenerate;if((me.flags&7)===4)return iA(Rw(D),eo(D),me.flags,me.prefix,me.suffix);{const Et=me.id;return G[Et]||(G[Et]=Zf(D))}}function iA(D,me,Et,An,vi){const wi=ls(D),Io=me?O:F;return Io[wi]||(Io[wi]=dp(D,me,Et??0,kD(An,w0),kD(vi)))}function Wg(D,me){return Ox(D)&&!DC(D,me)&&!j.has(D)}function DC(D,me){let Et,An;if(me?(Et=ve,An=fe):(Et=de,An=pe),Et!=null&&Et.has(D))return!0;for(let vi=An.length-1;vi>=0;vi--)if(Et!==An[vi]&&(Et=An[vi],Et!=null&&Et.has(D)))return!0;return!1}function Ox(D,me){return k?kF(k,D,r):!0}function Wx(D,me){for(let Et=me;Et&&RS(Et,me);Et=Et.nextContainer)if(C_(Et)&&Et.locals){const An=Et.locals.get(Cl(D));if(An&&An.flags&3257279)return!1}return!0}function oL(D){switch(D){case"":return K;case"#":return ye;default:return(Z==null?void 0:Z.get(D))??0}}function Fx(D,me){switch(D){case"":K=me;break;case"#":ye=me;break;default:Z??(Z=new Map),Z.set(D,me);break}}function O0(D,me,Et,An,vi){An.length>0&&An.charCodeAt(0)===35&&(An=An.slice(1));const wi=r0(Et,An,"",vi);let Io=oL(wi);if(D&&!(Io&D)){const Ja=r0(Et,An,D===268435456?"_i":"_n",vi);if(Wg(Ja,Et))return Io|=D,Et?nT(Ja):me&&wg(Ja),Fx(wi,Io),Ja}for(;;){const ki=Io&268435455;if(Io++,ki!==8&&ki!==13){const Ja=ki<26?"_"+String.fromCharCode(97+ki):"_"+(ki-26),_c=r0(Et,An,Ja,vi);if(Wg(_c,Et))return Et?nT(_c):me&&wg(_c),Fx(wi,Io),_c}}}function Py(D,me=Wg,Et,An,vi,wi,Io){if(D.length>0&&D.charCodeAt(0)===35&&(D=D.slice(1)),wi.length>0&&wi.charCodeAt(0)===35&&(wi=wi.slice(1)),Et){const Ja=r0(vi,wi,D,Io);if(me(Ja,vi))return vi?nT(Ja):An?wg(Ja):j.add(Ja),Ja}D.charCodeAt(D.length-1)!==95&&(D+="_");let ki=1;for(;;){const Ja=r0(vi,wi,D+ki,Io);if(me(Ja,vi))return vi?nT(Ja):An?wg(Ja):j.add(Ja),Ja;ki++}}function CC(D){return Py(D,Ox,!0,!1,!1,"","")}function W0(D){const me=Cv(D.name);return Wx(me,ni(D,C_))?me:Py(me,Wg,!1,!1,!1,"","")}function oA(D){const me=yI(D),Et=wa(me)?Wte(me.text):"module";return Py(Et,Wg,!1,!1,!1,"","")}function hc(){return Py("default",Wg,!1,!1,!1,"","")}function ud(){return Py("class",Wg,!1,!1,!1,"","")}function zx(D,me,Et,An){return He(D.name)?iA(D.name,me):O0(0,!1,me,Et,An)}function dp(D,me,Et,An,vi){switch(D.kind){case 80:case 81:return Py(Cv(D),Wg,!!(Et&16),!!(Et&8),me,An,vi);case 268:case 267:return C.assert(!An&&!vi&&!me),W0(D);case 273:case 279:return C.assert(!An&&!vi&&!me),oA(D);case 263:case 264:{C.assert(!An&&!vi&&!me);const wi=D.name;return wi&&!fl(wi)?dp(wi,!1,Et,An,vi):hc()}case 278:return C.assert(!An&&!vi&&!me),hc();case 232:return C.assert(!An&&!vi&&!me),ud();case 175:case 178:case 179:return zx(D,me,An,vi);case 168:return O0(0,!0,me,An,vi);default:return O0(0,!1,me,An,vi)}}function Zf(D){const me=D.emitNode.autoGenerate,Et=kD(me.prefix,w0),An=kD(me.suffix);switch(me.flags&7){case 1:return O0(0,!!(me.flags&8),eo(D),Et,An);case 2:return C.assertNode(D,He),O0(268435456,!!(me.flags&8),!1,Et,An);case 3:return Py(Kr(D),me.flags&32?Ox:Wg,!!(me.flags&16),!!(me.flags&8),eo(D),Et,An)}return C.fail(`Unsupported GeneratedIdentifierKind: ${C.formatEnum(me.flags&7,l9,!0)}.`)}function _E(D,me){const Et=Lt(2,D,me),An=ge,vi=je,wi=Ge;Ah(me),Et(D,me),rT(me,An,vi,wi)}function Ah(D){const me=Qa(D),Et=e_(D);Nv(D,me,Et.pos,Et.end),me&4096&&(cn=!0)}function rT(D,me,Et,An){const vi=Qa(D),wi=e_(D);vi&4096&&(cn=!1),Bx(D,vi,wi.pos,wi.end,me,Et,An);const Io=sie(D);Io&&Bx(D,vi,Io.pos,Io.end,me,Et,An)}function Nv(D,me,Et,An){gt(),Wt=!1;const vi=Et<0||(me&1024)!==0||D.kind===12,wi=An<0||(me&2048)!==0||D.kind===12;(Et>0||An>0)&&Et!==An&&(vi||bp(Et,D.kind!==354),(!vi||Et>=0&&me&1024)&&(ge=Et),(!wi||An>=0&&me&2048)&&(je=An,D.kind===262&&(Ge=An))),$e(gD(D),aL),en()}function Bx(D,me,Et,An,vi,wi,Io){gt();const ki=An<0||(me&2048)!==0||D.kind===12;$e(uw(D),Gl),(Et>0||An>0)&&Et!==An&&(ge=vi,je=wi,Ge=Io,!ki&&D.kind!==354&&Vx(An)),en()}function aL(D){(D.hasLeadingNewline||D.kind===2)&&Ce.writeLine(),NC(D),D.hasTrailingNewLine||D.kind===2?Ce.writeLine():Ce.writeSpace(" ")}function Gl(D){Ce.isAtStartOfLine()||Ce.writeSpace(" "),NC(D),D.hasTrailingNewLine&&Ce.writeLine()}function NC(D){const me=aA(D),Et=D.kind===3?iI(me):void 0;sD(me,Et,Ce,0,me.length,R)}function aA(D){return D.kind===3?`/*${D.text}*/`:`//${D.text}`}function gE(D,me,Et){gt();const{pos:An,end:vi}=me,wi=Qa(D),Io=An<0||(wi&1024)!==0,ki=cn||vi<0||(wi&2048)!==0;Io||qp(me),en(),wi&4096&&!cn?(cn=!0,Et(D),cn=!1):Et(D),gt(),ki||(bp(me.end,!0),Wt&&!Ce.isAtStartOfLine()&&Ce.writeLine()),en()}function Gx(D,me){return D=yl(D),D.parent&&D.parent===yl(me).parent}function uu(D,me){if(me.pos-1&&An.indexOf(me)===vi+1}function bp(D,me){Wt=!1,me?D===0&&(k!=null&&k.isDeclarationFile)?Ux(D,F0):Ux(D,lA):D===0&&Ux(D,sA)}function sA(D,me,Et,An,vi){uA(D,me)&&lA(D,me,Et,An,vi)}function F0(D,me,Et,An,vi){uA(D,me)||lA(D,me,Et,An,vi)}function Tp(D,me){return e.onlyPrintJsDocStyle?Jj(D,me)||wF(D,me):!0}function lA(D,me,Et,An,vi){!k||!Tp(k.text,D)||(Wt||(kne(Ia(),Ce,vi,D),Wt=!0),Yc(D),sD(k.text,Ia(),Ce,D,me,R),Yc(me),An?Ce.writeLine():Et===3&&Ce.writeSpace(" "))}function Fg(D){cn||D===-1||bp(D,!0)}function Vx(D){dA(D,cA)}function cA(D,me,Et,An){!k||!Tp(k.text,D)||(Ce.isAtStartOfLine()||Ce.writeSpace(" "),Yc(D),sD(k.text,Ia(),Ce,D,me,R),Yc(me),An&&Ce.writeLine())}function $m(D,me,Et){cn||(gt(),dA(D,me?cA:Et?jx:MC),en())}function jx(D,me,Et){k&&(Yc(D),sD(k.text,Ia(),Ce,D,me,R),Yc(me),Et===2&&Ce.writeLine())}function MC(D,me,Et,An){k&&(Yc(D),sD(k.text,Ia(),Ce,D,me,R),Yc(me),An?Ce.writeLine():Ce.writeSpace(" "))}function Ux(D,me){k&&(ge===-1||D!==ge)&&(Hx(D)?Mv(me):x2(k.text,D,me,D))}function dA(D,me){k&&(je===-1||D!==je&&D!==Ge)&&R2(k.text,D,me)}function Hx(D){return at!==void 0&&Ba(at).nodePos===D}function Mv(D){if(!k)return;const me=Ba(at).detachedCommentEndPos;at.length-1?at.pop():at=void 0,x2(k.text,me,D,me)}function qp(D){const me=k&&wne(k.text,Ia(),Ce,g_,D,R,cn);me&&(at?at.push(me):at=[me])}function g_(D,me,Et,An,vi,wi){!k||!Tp(k.text,An)||(Yc(An),sD(D,me,Et,An,vi,wi),Yc(vi))}function uA(D,me){return!!k&&pG(k.text,D,me)}function pA(D,me){const Et=Lt(3,D,me);os(me),Et(D,me),Wr(me)}function os(D){const me=Qa(D),Et=lv(D),An=Et.source||Be;D.kind!==354&&!(me&32)&&Et.pos>=0&&z0(Et.source||Be,If(An,Et.pos)),me&128&&(be=!0)}function Wr(D){const me=Qa(D),Et=lv(D);me&128&&(be=!1),D.kind!==354&&!(me&64)&&Et.end>=0&&z0(Et.source||Be,Et.end)}function If(D,me){return D.skipTrivia?D.skipTrivia(me):ka(D.text,me)}function Yc(D){if(be||dh(D)||mA(Be))return;const{line:me,character:Et}=ca(Be,D);Ne.addMapping(Ce.getLine(),Ce.getColumn(),lt,me,Et,void 0)}function z0(D,me){if(D!==Be){const Et=Be,An=lt;yE(D),Yc(me),B0(Et,An)}else Yc(me)}function fA(D,me,Et,An,vi){if(be||D&&e6(D))return vi(me,Et,An);const wi=D&&D.emitNode,Io=wi&&wi.flags||0,ki=wi&&wi.tokenSourceMapRanges&&wi.tokenSourceMapRanges[me],Ja=ki&&ki.source||Be;return An=If(Ja,ki?ki.pos:An),!(Io&256)&&An>=0&&z0(Ja,An),An=vi(me,Et,An),ki&&(An=ki.end),!(Io&512)&&An>=0&&z0(Ja,An),An}function yE(D){if(!be){if(Be=D,D===ce){lt=Re;return}mA(D)||(lt=Ne.addSource(D.fileName),e.inlineSources&&Ne.setSourceContent(lt,D.text),ce=D,Re=lt)}}function B0(D,me){Be=D,lt=me}function mA(D){return El(D.fileName,".json")}}function Lqe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function kqe(e){return pAe[e&15360][0]}function wqe(e){return pAe[e&15360][1]}function Oqe(e,t,r,i){t(e)}function Wqe(e,t,r,i){t(e,r.select(i))}function Fqe(e,t,r,i){t(e,r)}function zqe(e,t){return e.length===1?Oqe:typeof t=="object"?Wqe:Fqe}function A3(e,t,r){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=Fd(r);return{useCaseSensitiveFileNames:r,fileExists:A,readFile:(q,ye)=>e.readFile(q,ye),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 ks(q,t,o)}function l(q){return i.get(Uc(q))}function u(q){const ye=l(ci(q));return ye&&(ye.sortedAndCanonicalizedFiles||(ye.sortedAndCanonicalizedFiles=ye.files.map(o).sort(),ye.sortedAndCanonicalizedDirectories=ye.directories.map(o).sort()),ye)}function d(q){return Ic(ya(q))}function g(q,ye){var ie;if(!e.realpath||Uc(s(e.realpath(q)))===ye){const K={files:Bt(e.readDirectory(q,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(q)||[]};return i.set(Uc(ye),K),K}if((ie=e.directoryExists)!=null&&ie.call(e,q))return i.set(ye,!1),!1}function h(q,ye){ye=Uc(ye);const ie=l(ye);if(ie)return ie;try{return g(q,ye)}catch{C.assert(!i.has(Uc(ye)));return}}function y(q,ye){return Zv(q,ye,Vs,Wd)>=0}function E(q,ye,ie){const K=s(q),pe=u(K);return pe&&J(pe,d(q),!0),e.writeFile(q,ye,ie)}function A(q){const ye=s(q),ie=u(ye);return ie&&y(ie.sortedAndCanonicalizedFiles,o(d(q)))||e.fileExists(q)}function R(q){const ye=s(q);return i.has(Uc(ye))||e.directoryExists(q)}function N(q){const ye=s(q),ie=u(ye);if(ie){const K=d(q),pe=o(K),de=ie.sortedAndCanonicalizedDirectories;$v(de,pe,Wd)&&ie.directories.push(K)}e.createDirectory(q)}function P(q){const ye=s(q),ie=h(q,ye);return ie?ie.directories.slice():e.getDirectories(q)}function k(q,ye,ie,K,pe){const de=s(q),fe=h(q,de);let ve;if(fe!==void 0)return bre(q,ye,ie,K,r,t,pe,xe,F);return e.readDirectory(q,ye,ie,K,pe);function xe(Ce){const Je=s(Ce);if(Je===de)return fe||X(Ce,Je);const Se=h(Ce,Je);return Se!==void 0?Se||X(Ce,Je):xre}function X(Ce,Je){if(ve&&Je===de)return ve;const Se={files:Bt(e.readDirectory(Ce,void 0,void 0,["*.*"]),d)||se,directories:e.getDirectories(Ce)||se};return Je===de&&(ve=Se),Se}}function F(q){return e.realpath?e.realpath(q):q}function O(q){AN(ci(q),ye=>i.delete(Uc(ye))?!0:void 0)}function G(q,ye){if(l(ye)!==void 0){Z();return}const K=u(ye);if(!K){O(ye);return}if(!e.directoryExists){Z();return}const pe=d(q),de={fileExists:e.fileExists(q),directoryExists:e.directoryExists(q)};return de.directoryExists||y(K.sortedAndCanonicalizedDirectories,o(pe))?Z():J(K,pe,de.fileExists),de}function j(q,ye,ie){if(ie===1)return;const K=u(ye);K?J(K,d(q),ie===0):O(ye)}function J(q,ye,ie){const K=q.sortedAndCanonicalizedFiles,pe=o(ye);if(ie)$v(K,pe,Wd)&&q.files.push(ye);else{const de=Zv(K,pe,Vs,Wd);if(de>=0){K.splice(de,1);const fe=q.files.findIndex(ve=>o(ve)===pe);q.files.splice(fe,1)}}}function Z(){i.clear()}}var ase=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(ase||{});function I3(e,t,r,i,o){var s;const l=AR(((s=t==null?void 0:t.configFile)==null?void 0:s.extendedSourceFiles)||se,o);r.forEach((u,d)=>{l.has(d)||(u.projects.delete(e),u.close())}),l.forEach((u,d)=>{const g=r.get(d);g?g.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 uH(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function x3(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&x3(e,o,r)})}function pH(e,t,r){yM(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:Gm})}function eO(e,t,r){t?yM(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Kf,onExistingValue:o}):hp(e,Kf);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 tO({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:u,useCaseSensitiveFileNames:d,writeLog:g,toPath:h,getScriptKind:y}){const E=z3(r);if(!E)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(NR(r)&&!(zV(t,o,l)||k()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Noe(t,o.configFile.configFileSpecs,So(ci(i),u),d,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||o.outFile||o.outDir)return!1;if(ad(r)){if(o.declarationDir)return!1}else if(!$l(r,fD))return!1;const A=Tu(r),R=Mo(s)?void 0:VH(s)?s.getProgramOrUndefined():s,N=!R&&!Mo(s)?s:void 0;if(P(A+".ts")||P(A+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function P(F){return R?!!R.getSourceFileByPath(F):N?N.state.fileInfos.has(F):!!hn(s,O=>h(O)===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 xb(o);case 6:return kS(o);case 0:return!1}}}function sse(e,t){return e?e.isEmittedFile(t):!1}var lse=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(lse||{});function fH(e,t,r,i){_ee(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:SP;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(N){return(P,k,F,O,G,j)=>{var J;return $4(P,N==="watchFile"?O==null?void 0:O.excludeFiles:O==null?void 0:O.excludeDirectories,g(),((J=e.getCurrentDirectory)==null?void 0:J.call(e))||"")?u(P,F,O,G,j):l[N].call(void 0,P,k,F,O,G,j)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function h(N,P,k,F,O){return r(`ExcludeWatcher:: Added:: ${R(N,P,k,F,O,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${R(N,P,k,F,O,i)}`)}}function y(N,P,k,F,O,G){r(`FileWatcher:: Added:: ${R(N,k,F,O,G,i)}`);const j=s.watchFile(N,P,k,F,O,G);return{close:()=>{r(`FileWatcher:: Close:: ${R(N,k,F,O,G,i)}`),j.close()}}}function E(N,P,k,F,O,G){const j=`DirectoryWatcher:: Added:: ${R(N,k,F,O,G,i)}`;r(j);const J=Ls(),Z=s.watchDirectory(N,P,k,F,O,G),q=Ls()-J;return r(`Elapsed:: ${q}ms ${j}`),{close:()=>{const ye=`DirectoryWatcher:: Close:: ${R(N,k,F,O,G,i)}`;r(ye);const ie=Ls();Z.close();const K=Ls()-ie;r(`Elapsed:: ${K}ms ${ye}`)}}}function A(N){return(P,k,F,O,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,O,G,j,i)}`;r(Z);const q=Ls();k.call(void 0,...J);const ye=Ls()-q;r(`Elapsed:: ${ye}ms ${Z}`)},F,O,G,j)}function R(N,P,k,F,O,G){return`WatchInfo: ${N} ${P} ${JSON.stringify(k)} ${G?G(F,O):O===void 0?F:`${F} ${O}`}`}}function nO(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Kf(e){e.watcher.close()}function mH(e,t,r="tsconfig.json"){return AN(e,i=>{const o=Qr(i,r);return t(o)?o:void 0})}function hH(e,t){const r=ci(t),i=Cp(e)?e:Qr(r,e);return ya(i)}function cse(e,t,r){let i;return $e(e,s=>{const l=tF(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{Rl("beforeIORead"),s=e(r),Rl("afterIORead"),wf("I/O Read","beforeIORead","afterIORead")}catch(l){o&&o(l.message),s=""}return s!==void 0?tx(r,s,i,t):void 0}}function gH(e,t,r){return(i,o,s,l)=>{try{Rl("beforeIOWrite"),aV(i,o,s,e,t,r),Rl("afterIOWrite"),wf("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){l&&l(u.message)}}}function R3(e,t,r=jc){const i=new Map,o=Fd(r.useCaseSensitiveFileNames);function s(h){return i.has(h)?!0:(g.directoryExists||r.directoryExists)(h)?(i.set(h,!0),!0):!1}function l(){return ci(ya(r.getExecutingFilePath()))}const u=iv(e),d=r.realpath&&(h=>r.realpath(h)),g={getSourceFile:_H(h=>g.readFile(h),t),getDefaultLibLocation:l,getDefaultLibFileName:h=>Qr(l(),C2(h)),writeFile:gH((h,y,E)=>r.writeFile(h,y,E),h=>(g.createDirectory||r.createDirectory)(h),h=>s(h)),getCurrentDirectory:Nu(()=>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 g}function yP(e,t,r){const i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,u=e.writeFile,d=new Map,g=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:!El(N,".json")&&!ese(N)?i.call(e,N):A(P,N)};const R=r?(N,P,k,F)=>{const O=t(N),G=typeof P=="object"?P.impliedNodeFormat:void 0,j=y.get(G),J=j==null?void 0:j.get(O);if(J)return J;const Z=r(N,P,k,F);return Z&&(ad(N)||El(N,".json"))&&y.set(G,(j||new Map).set(O,Z)),Z}:void 0;return e.fileExists=N=>{const P=t(N),k=g.get(P);if(k!==void 0)return k;const F=o.call(e,N);return g.set(P,!!F),F},u&&(e.writeFile=(N,P,...k)=>{const F=t(N);g.delete(F);const O=d.get(F);O!==void 0&&O!==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 bAe(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)),_p(e.getCompilerOptions())&&(i=Xr(i,e.getDeclarationDiagnostics(t,r))),wR(i||se)}function TAe(e,t){let r="";for(const i of e)r+=yH(i,t);return r}function yH(e,t){const r=`${UE(e)} TS${e.code}: ${s_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:o}=ca(e.file,e.start),s=e.file.fileName;return`${EN(s,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${o+1}): `+r}return r}var use=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(use||{}),pse="\x1B[7m",fse=" ",SAe="\x1B[0m",EAe="...",Bqe=" ",AAe=" ";function IAe(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 QS(e,t){return t+e+SAe}function xAe(e,t,r,i,o,s){const{line:l,character:u}=ca(e,t),{line:d,character:g}=ca(e,t+r),h=ca(e,e.text.length).line,y=d-l>=4;let E=(d+1+"").length;y&&(E=Math.max(EAe.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 mse(e,t){let r="";for(const i of e){if(i.file){const{file:o,start:s}=i;r+=vH(o,s,t),r+=" - "}if(r+=QS(UE(i),IAe(i.category)),r+=QS(` TS${i.code}: `,"\x1B[90m"),r+=s_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=xAe(i.file,i.start,i.length,"",IAe(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+=Bqe+vH(o,s,t),r+=xAe(o,s,l,AAe,"\x1B[96m",t)),r+=t.getNewLine(),r+=AAe+s_(u,t.getNewLine())}r+=t.getNewLine()}return r}function s_(e,t,r=0){if(Bo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;oTH(t,e,r)};function SH(e,t,r,i,o){return{nameAndMode:C3,resolve:(s,l)=>P1(s,e,r,i,o,t,l)}}function gse(e){return Bo(e)?e:e.fileName}var NAe={getName:gse,getMode:(e,t,r)=>hse(e,t&&L3(t,r))};function N3(e,t,r,i,o){return{nameAndMode:NAe,resolve:(s,l)=>zoe(s,e,r,i,t,o,l)}}function rO(e,t,r,i,o,s,l,u){if(e.length===0)return se;const d=[],g=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==null?void 0:r.commandLine.options)||i),R=rP(E,A);let N=g.get(R);N||g.set(R,N=h.resolve(E,A)),d.push(N)}return d}var vP="__inferred type names__.ts";function M3(e,t,r){const i=e.configFilePath?ci(e.configFilePath):t;return Qr(i,`__lib_node_modules_lookup_${r}__.ts`)}function EH(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 d0(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function qD(e){return e.pos!==void 0}function bP(e,t){var r,i,o,s;const l=C.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:d}=t;let g,h,y;switch(u){case 3:const E=aO(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};g=ka(l.text,E.pos),h=E.end;break;case 4:({pos:g,end:h}=l.referencedFiles[d]);break;case 5:({pos:g,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:g,end:h}=l.libReferenceDirectives[d]);break;default:return C.assertNever(u)}return{file:l,pos:g,end:h,packageId:y}}function AH(e,t,r,i,o,s,l,u,d,g){if(!e||u!=null&&u()||!Qp(e.getRootFileNames(),t))return!1;let h;if(!Qp(e.getProjectReferences(),g,N)||e.getSourceFiles().some(A))return!1;const y=e.getMissingFilePaths();if(y&&Hc(y,o))return!1;const E=e.getCompilerOptions();if(!EV(E,r)||e.resolvedLibReferences&&Hc(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,O){return lG(k,F)&&P(e.getResolvedProjectReferences()[O],k)}function P(k,F){if(k){if(Ln(h,k))return!0;const G=cx(F),j=d(G);return!j||k.commandLine.options.configFile!==j.options.configFile||!Qp(k.commandLine.fileNames,j.fileNames)?!1:((h||(h=[])).push(k),!$e(k.references,(J,Z)=>!P(J,k.commandLine.projectReferences[Z])))}const O=cx(F);return!d(O)}}function ZS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function iO(e,t,r,i){const o=P3(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function P3(e,t,r,i){const o=iu(i),s=3<=o&&o<=99||Wb(e);return $l(e,[".d.mts",".mts",".mjs"])?99:$l(e,[".d.cts",".cts",".cjs"])?1:s&&$l(e,[".d.ts",".ts",".tsx",".js",".jsx"])?l():void 0;function l(){const u=iP(t,r,i),d=[];u.failedLookupLocations=d,u.affectingLocations=d;const g=oP(ci(e),u);return{impliedNodeFormat:(g==null?void 0:g.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:d,packageJsonScope:g}}}var MAe=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 Gqe(e,t){return e?uI(e.getCompilerOptions(),t,tU):!1}function Vqe(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function oO(e,t,r,i,o){var s,l,u,d,g,h,y,E,A,R,N,P,k,F,O,G;let j=Mo(e)?Vqe(e,t,r,i,o):e;const{rootNames:J,options:Z,configFileParsingDiagnostics:q,projectReferences:ye,typeScriptVersion:ie,host:K}=j;let{oldProgram:pe}=j;j=void 0,e=void 0;for(const Xe of yoe)if(Rs(Z,Xe.name)&&typeof Z[Xe.name]=="string")throw new Error(`${Xe.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);const de=Nu(()=>kt("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations));let fe,ve,xe,X,Ce,Je,Se,re,be;const Ne=yse(Ao);let Be,lt,ce,Re,ge,je,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),Rl("beforeProgram");const gt=K||dse(Z),en=w3(gt);let or=Z.noLib;const Di=Nu(()=>gt.getDefaultLibFileName(Z)),co=gt.getDefaultLibLocation?gt.getDefaultLibLocation():ci(Di());let zt=!1;const Zr=gt.getCurrentDirectory(),Ai=SM(Z),Ni=$k(Z,Ai),Pr=new Map;let Ci,Ye,At,mn;const dr=gt.hasInvalidatedResolutions||Zg;gt.resolveModuleNameLiterals?(mn=gt.resolveModuleNameLiterals.bind(gt),At=(l=gt.getModuleResolutionCache)==null?void 0:l.call(gt)):gt.resolveModuleNames?(mn=(Xe,mt,Yt,Rn,Qn,Lr)=>gt.resolveModuleNames(Xe.map(_se),mt,Lr==null?void 0:Lr.map(_se),Yt,Rn,Qn).map(Yn=>Yn?Yn.extension!==void 0?{resolvedModule:Yn}:{resolvedModule:{...Yn,extension:AM(Yn.resolvedFileName)}}:CAe),At=(u=gt.getModuleResolutionCache)==null?void 0:u.call(gt)):(At=zD(Zr,Xc,Z),mn=(Xe,mt,Yt,Rn,Qn)=>rO(Xe,mt,Yt,Rn,Qn,gt,At,SH));let ri;if(gt.resolveTypeReferenceDirectiveReferences)ri=gt.resolveTypeReferenceDirectiveReferences.bind(gt);else if(gt.resolveTypeReferenceDirectives)ri=(Xe,mt,Yt,Rn,Qn)=>gt.resolveTypeReferenceDirectives(Xe.map(gse),mt,Yt,Rn,Qn==null?void 0:Qn.impliedNodeFormat).map(Lr=>({resolvedTypeReferenceDirective:Lr}));else{const Xe=r3(Zr,Xc,void 0,At==null?void 0:At.getPackageJsonInfoCache(),At==null?void 0:At.optionsToRedirectsKey);ri=(mt,Yt,Rn,Qn,Lr)=>rO(mt,Yt,Rn,Qn,Lr,gt,Xe,N3)}const ai=gt.hasInvalidatedLibResolutions||Zg;let Hi;if(gt.resolveLibrary)Hi=gt.resolveLibrary.bind(gt);else{const Xe=zD(Zr,Xc,Z,At==null?void 0:At.getPackageJsonInfoCache());Hi=(mt,Yt,Rn)=>i3(mt,Yt,Rn,gt,Xe)}const $o=new Map;let Ia=new Map,Pn=dm(),Uo;const ot=new Map;let Ft=new Map;const le=gt.useCaseSensitiveFileNames()?new Map:void 0;let ht,ne,Fe,it;const dt=!!((d=gt.useSourceOfProjectReferenceRedirect)!=null&&d.call(gt))&&!Z.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Lt,fileExists:Ue,directoryExists:Rt}=jqe({compilerHost:gt,getSymlinkCache:Sf,useSourceOfProjectReferenceRedirect:dt,toPath:jt,getResolvedProjectReferences:la,getRedirectFromOutput:ql,forEachResolvedProjectReference:Ll}),It=gt.readFile.bind(gt);(g=xr)==null||g.push(xr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!pe});const Ot=Gqe(pe,Z);(h=xr)==null||h.pop();let nt;if((y=xr)==null||y.push(xr.Phase.Program,"tryReuseStructureFromOldProgram",{}),nt=kn(),(E=xr)==null||E.pop(),nt!==2){if(fe=[],ve=[],ye&&(ht||(ht=ye.map(f_)),J.length&&(ht==null||ht.forEach((Xe,mt)=>{if(!Xe)return;const Yt=Xe.commandLine.options.outFile;if(dt){if(Yt||bu(Xe.commandLine.options)===0)for(const Rn of Xe.commandLine.fileNames)op(Rn,{kind:1,index:mt})}else if(Yt)op(av(Yt,".d.ts"),{kind:2,index:mt});else if(bu(Xe.commandLine.options)===0){const Rn=Nu(()=>O1(Xe.commandLine,!gt.useCaseSensitiveFileNames()));for(const Qn of Xe.commandLine.fileNames)!ad(Qn)&&!El(Qn,".json")&&op(_P(Qn,Xe.commandLine,!gt.useCaseSensitiveFileNames(),Rn),{kind:2,index:mt})}}))),(A=xr)==null||A.push(xr.Phase.Program,"processRootFiles",{count:J.length}),$e(J,(Xe,mt)=>Da(Xe,!1,!1,{kind:0,index:mt})),(R=xr)==null||R.pop(),Be??(Be=J.length?t3(Z,gt):se),lt=FD(),Be.length){(N=xr)==null||N.push(xr.Phase.Program,"processTypeReferences",{count:Be.length});const Xe=Z.configFilePath?ci(Z.configFilePath):Zr,mt=Qr(Xe,vP),Yt=wt(Be,mt);for(let Rn=0;Rn{Da(Ng(mt),!0,!1,{kind:6,index:Yt})})}xe=xp(fe,ft).concat(ve),fe=void 0,ve=void 0,Se=void 0}if(pe&>.onReleaseOldSourceFile){const Xe=pe.getSourceFiles();for(const mt of Xe){const Yt=Ra(mt.resolvedPath);(Ot||!Yt||Yt.impliedNodeFormat!==mt.impliedNodeFormat||mt.resolvedPath===mt.path&&Yt.resolvedPath!==mt.path)&>.onReleaseOldSourceFile(mt,pe.getCompilerOptions(),!!Ra(mt.path),Yt)}gt.getParsedCommandLine||pe.forEachResolvedProjectReference(mt=>{bd(mt.sourceFile.path)||gt.onReleaseOldSourceFile(mt.sourceFile,pe.getCompilerOptions(),!1,void 0)})}pe&>.onReleaseParsedCommandLine&&kM(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,mt,Yt)=>{const Rn=(mt==null?void 0:mt.commandLine.projectReferences[Yt])||pe.getProjectReferences()[Yt],Qn=cx(Rn);ne!=null&&ne.has(jt(Qn))||gt.onReleaseParsedCommandLine(Qn,Xe,pe.getCompilerOptions())}),pe=void 0,Re=void 0,je=void 0,We=void 0;const Kt={getRootFileNames:()=>J,getSourceFile:$s,getSourceFileByPath:Ra,getSourceFiles:()=>xe,getMissingFilePaths:()=>Ft,getModuleResolutionCache:()=>At,getFilesByNameMap:()=>ot,getCompilerOptions:()=>Z,getSyntacticDiagnostics:bf,getOptionsDiagnostics:zn,getGlobalDiagnostics:Eo,getSemanticDiagnostics:Lo,getCachedSemanticDiagnostics:fa,getSuggestionDiagnostics:pt,getDeclarationDiagnostics:Zt,getBindAndCheckDiagnostics:is,getProgramDiagnostics:qa,getTypeChecker:Ps,getClassifiableNames:In,getCommonSourceDirectory:Qt,emit:uo,getCurrentDirectory:()=>Zr,getNodeCount:()=>Ps().getNodeCount(),getIdentifierCount:()=>Ps().getIdentifierCount(),getSymbolCount:()=>Ps().getSymbolCount(),getTypeCount:()=>Ps().getTypeCount(),getInstantiationCount:()=>Ps().getInstantiationCount(),getRelationCacheSizes:()=>Ps().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Ne.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>Be,getAutomaticTypeDirectiveResolutions:()=>lt,isSourceFileFromExternalLibrary:Bl,isSourceFileDefaultLibrary:xl,getModeForUsageLocation:Yf,getEmitSyntaxForUsageLocation:Sy,getModeForResolutionAtIndex:Tv,getSourceFileFromReference:vh,getLibFileFromReference:Pl,sourceFileToPackageName:Ia,redirectTargetsMap:Pn,usesUriStyleNodeCoreModules:Uo,resolvedModules:ge,resolvedTypeReferenceDirectiveNames:Ge,resolvedLibReferences:ce,getProgramDiagnosticsContainer:()=>Ne,getResolvedModule:Tr,getResolvedModuleFromModuleSpecifier:Oe,getResolvedTypeReferenceDirective:Nt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:he,forEachResolvedModule:B,forEachResolvedTypeReferenceDirective:Ae,getCurrentPackagesMap:()=>at,typesPackageExists:Xt,packageBundlesTypes:Pe,isEmittedFile:cd,getConfigFileParsingDiagnostics:Ns,getProjectReferences:zo,getResolvedProjectReferences:la,getRedirectFromSourceFile:rl,getResolvedProjectReferenceByPath:bd,forEachResolvedProjectReference:Ll,isSourceOfProjectReferenceRedirect:rf,getRedirectFromOutput:ql,getCompilerOptionsForFile:Au,getDefaultResolutionModeForFile:Bu,getEmitModuleFormatOfFile:Th,getImpliedNodeFormatForEmit:j_,shouldTransformImportCall:xm,emitBuildInfo:ra,fileExists:Ue,readFile:It,directoryExists:Rt,getSymlinkCache:Sf,realpath:(O=gt.realpath)==null?void 0:O.bind(gt),useCaseSensitiveFileNames:()=>gt.useCaseSensitiveFileNames(),getCanonicalFileName:Xc,getFileIncludeReasons:()=>Ne.getFileReasons(),structureIsReused:nt,writeFile:Ii,getGlobalTypingsCacheLocation:oa(gt,gt.getGlobalTypingsCacheLocation)};return Lt(),zt||oe(),Rl("afterProgram"),wf("Program","beforeProgram","afterProgram"),(G=xr)==null||G.pop(),Kt;function Tr(Xe,mt,Yt){var Rn;return(Rn=ge==null?void 0:ge.get(Xe.path))==null?void 0:Rn.get(mt,Yt)}function Oe(Xe,mt){return mt??(mt=Fn(Xe)),C.assertIsDefined(mt,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),Tr(mt,Xe.text,Yf(mt,Xe))}function Nt(Xe,mt,Yt){var Rn;return(Rn=Ge==null?void 0:Ge.get(Xe.path))==null?void 0:Rn.get(mt,Yt)}function he(Xe,mt){return Nt(mt,Xe.fileName,Hb(Xe,mt))}function B(Xe,mt){te(ge,Xe,mt)}function Ae(Xe,mt){te(Ge,Xe,mt)}function te(Xe,mt,Yt){var Rn;Yt?(Rn=Xe==null?void 0:Xe.get(Yt.path))==null||Rn.forEach((Qn,Lr,Yn)=>mt(Qn,Lr,Yn,Yt.path)):Xe==null||Xe.forEach((Qn,Lr)=>Qn.forEach((Yn,cr,Oi)=>mt(Yn,cr,Oi,Lr)))}function xt(){return at||(at=new Map,B(({resolvedModule:Xe})=>{Xe!=null&&Xe.packageId&&at.set(Xe.packageId.name,Xe.extension===".d.ts"||!!at.get(Xe.packageId.name))}),at)}function Xt(Xe){return xt().has(s3(Xe))}function Pe(Xe){return!!xt().get(Xe)}function yt(Xe){var mt;(mt=Xe.resolutionDiagnostics)!=null&&mt.length&&Ne.addFileProcessingDiagnostic({kind:2,diagnostics:Xe.resolutionDiagnostics})}function Gt(Xe,mt,Yt,Rn){if(gt.resolveModuleNameLiterals||!gt.resolveModuleNames)return yt(Yt);if(!At||td(mt))return;const Qn=So(Xe.originalFileName,Zr),Lr=ci(Qn),Yn=Jn(Xe),cr=At.getFromNonRelativeNameCache(mt,Rn,Lr,Yn);cr&&yt(cr)}function gr(Xe,mt,Yt){var Rn,Qn;const Lr=So(mt.originalFileName,Zr),Yn=Jn(mt);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Lr}),Rl("beforeResolveModule");const cr=mn(Xe,Lr,Yn,Z,mt,Yt);return Rl("afterResolveModule"),wf("ResolveModule","beforeResolveModule","afterResolveModule"),(Qn=xr)==null||Qn.pop(),cr}function nr(Xe,mt,Yt){var Rn,Qn;const Lr=Bo(mt)?void 0:mt,Yn=Bo(mt)?mt:So(mt.originalFileName,Zr),cr=Lr&&Jn(Lr);(Rn=xr)==null||Rn.push(xr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Yn}),Rl("beforeResolveTypeReference");const Oi=ri(Xe,Yn,cr,Z,Lr,Yt);return Rl("afterResolveTypeReference"),wf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Qn=xr)==null||Qn.pop(),Oi}function Jn(Xe){var mt,Yt;const Rn=rl(Xe.originalFileName);if(Rn||!ad(Xe.originalFileName))return Rn==null?void 0:Rn.resolvedRef;const Qn=(mt=ql(Xe.path))==null?void 0:mt.resolvedRef;if(Qn)return Qn;if(!gt.realpath||!Z.preserveSymlinks||!Xe.originalFileName.includes(Dg))return;const Lr=jt(gt.realpath(Xe.originalFileName));return Lr===Xe.path||(Yt=ql(Lr))==null?void 0:Yt.resolvedRef}function ft(Xe,mt){return js(Mt(Xe),Mt(mt))}function Mt(Xe){if(pm(co,Xe.fileName,!1)){const mt=Ic(Xe.fileName);if(mt==="lib.d.ts"||mt==="lib.es6.d.ts")return 0;const Yt=RR(hN(mt,"lib."),".d.ts"),Rn=F4.indexOf(Yt);if(Rn!==-1)return Rn+1}return F4.length+2}function jt(Xe){return ks(Xe,Zr,Xc)}function Qt(){let Xe=Ne.getCommonSourceDirectory();if(Xe!==void 0)return Xe;const mt=Vn(xe,Yt=>CS(Yt,Kt));return Xe=gP(Z,()=>ji(mt,Yt=>Yt.isDeclarationFile?void 0:Yt.fileName),Zr,Xc,Yt=>Tf(mt,Yt)),Ne.setCommonSourceDirectory(Xe),Xe}function In(){var Xe;if(!Je){Ps(),Je=new Set;for(const mt of xe)(Xe=mt.classifiableNames)==null||Xe.forEach(Yt=>Je.add(Yt))}return Je}function yn(Xe,mt){return En({entries:Xe,containingFile:mt,containingSourceFile:mt,redirectedReference:Jn(mt),nameAndModeGetter:C3,resolutionWorker:gr,getResolutionFromOldProgram:(Yt,Rn)=>pe==null?void 0:pe.getResolvedModule(mt,Yt,Rn),getResolved:pI,canReuseResolutionsInFile:()=>mt===(pe==null?void 0:pe.getSourceFile(mt.fileName))&&!dr(mt.path),resolveToOwnAmbientModule:!0})}function wt(Xe,mt){const Yt=Bo(mt)?void 0:mt;return En({entries:Xe,containingFile:mt,containingSourceFile:Yt,redirectedReference:Yt&&Jn(Yt),nameAndModeGetter:NAe,resolutionWorker:nr,getResolutionFromOldProgram:(Rn,Qn)=>{var Lr;return Yt?pe==null?void 0:pe.getResolvedTypeReferenceDirective(Yt,Rn,Qn):(Lr=pe==null?void 0:pe.getAutomaticTypeDirectiveResolutions())==null?void 0:Lr.get(Rn,Qn)},getResolved:MF,canReuseResolutionsInFile:()=>Yt?Yt===(pe==null?void 0:pe.getSourceFile(Yt.fileName))&&!dr(Yt.path):!dr(jt(mt))})}function En({entries:Xe,containingFile:mt,containingSourceFile:Yt,redirectedReference:Rn,nameAndModeGetter:Qn,resolutionWorker:Lr,getResolutionFromOldProgram:Yn,getResolved:cr,canReuseResolutionsInFile:Oi,resolveToOwnAmbientModule:Ro}){if(!Xe.length)return se;if(nt===0&&(!Ro||!Yt.ambientModuleNames.length))return Lr(Xe,mt,void 0);let _i,Do,Qi,_l;const sp=Oi();for(let Td=0;TdQi[Do[Dm]]=Td),Qi):Rm}function xn(){return!kM(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,mt,Yt)=>{const Rn=(mt?mt.commandLine.projectReferences:ye)[Yt],Qn=f_(Rn);return Xe?!Qn||Qn.sourceFile!==Xe.sourceFile||!Qp(Xe.commandLine.fileNames,Qn.commandLine.fileNames):Qn!==void 0},(Xe,mt)=>{const Yt=mt?bd(mt.sourceFile.path).commandLine.projectReferences:ye;return!Qp(Xe,Yt,lG)})}function kn(){var Xe;if(!pe)return 0;const mt=pe.getCompilerOptions();if(CF(mt,Z))return 0;const Yt=pe.getRootFileNames();if(!Qp(Yt,J)||!xn())return 0;ye&&(ht=ye.map(f_));const Rn=[],Qn=[];if(nt=2,Hc(pe.getMissingFilePaths(),_i=>gt.fileExists(_i)))return 0;const Lr=pe.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 Do=yo(_i.fileName,At,gt,Z);let Qi=gt.getSourceFileByPath?gt.getSourceFileByPath(_i.fileName,_i.resolvedPath,Do,void 0,Ot):gt.getSourceFile(_i.fileName,Do,void 0,Ot);if(!Qi)return 0;Qi.packageJsonLocations=(Xe=Do.packageJsonLocations)!=null&&Xe.length?Do.packageJsonLocations:void 0,Qi.packageJsonScope=Do.packageJsonScope,C.assert(!Qi.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let _l;if(_i.redirectInfo){if(Qi!==_i.redirectInfo.unredirected)return 0;_l=!1,Qi=_i}else if(pe.redirectTargetsMap.has(_i.path)){if(Qi!==_i)return 0;_l=!1}else _l=Qi!==_i;Qi.path=_i.path,Qi.originalFileName=_i.originalFileName,Qi.resolvedPath=_i.resolvedPath,Qi.fileName=_i.fileName;const sp=pe.sourceFileToPackageName.get(_i.path);if(sp!==void 0){const Rm=cr.get(sp),Td=_l?1:0;if(Rm!==void 0&&Td===1||Rm===1)return 0;cr.set(sp,Td)}_l?(_i.impliedNodeFormat!==Qi.impliedNodeFormat?nt=1:Qp(_i.libReferenceDirectives,Qi.libReferenceDirectives,Qs)?_i.hasNoDefaultLib!==Qi.hasNoDefaultLib?nt=1:Qp(_i.referencedFiles,Qi.referencedFiles,Qs)?(Hs(Qi),Qp(_i.imports,Qi.imports,Sc)&&Qp(_i.moduleAugmentations,Qi.moduleAugmentations,Sc)?(_i.flags&12582912)!==(Qi.flags&12582912)?nt=1:Qp(_i.typeReferenceDirectives,Qi.typeReferenceDirectives,Qs)||(nt=1):nt=1):nt=1:nt=1,Qn.push(Qi)):dr(_i.path)&&(nt=1,Qn.push(Qi)),Rn.push(Qi)}if(nt!==2)return nt;for(const _i of Qn){const Do=LAe(_i),Qi=yn(Do,_i);(je??(je=new Map)).set(_i.path,Qi);const _l=Au(_i);dG(Do,Qi,Hp=>pe.getResolvedModule(_i,Hp.text,D3(_i,Hp,_l)),Dte)&&(nt=1);const Rm=_i.typeReferenceDirectives,Td=wt(Rm,_i);(We??(We=new Map)).set(_i.path,Td),dG(Rm,Td,Hp=>pe.getResolvedTypeReferenceDirective(_i,gse(Hp),Hb(Hp,_i)),Cte)&&(nt=1)}if(nt!==2)return nt;if(xte(mt,Z)||pe.resolvedLibReferences&&Hc(pe.resolvedLibReferences,(_i,Do)=>Mg(Do).actual!==_i.actual))return 1;if(gt.hasChangedAutomaticTypeDirectiveNames){if(gt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Be=t3(Z,gt),!Qp(pe.getAutomaticTypeDirectiveNames(),Be))return 1;Ft=pe.getMissingFilePaths(),C.assert(Rn.length===pe.getSourceFiles().length);for(const _i of Rn)ot.set(_i.path,_i);pe.getFilesByNameMap().forEach((_i,Do)=>{if(!_i){ot.set(Do,_i);return}if(_i.path===Do){pe.isSourceFileFromExternalLibrary(_i)&&Kn.set(_i.path,!0);return}ot.set(Do,ot.get(_i.path))});const Ro=mt.configFile&&mt.configFile===Z.configFile||!mt.configFile&&!Z.configFile&&!uI(mt,Z,Hm);return Ne.reuseStateFromOldProgram(pe.getProgramDiagnosticsContainer(),Ro),zt=Ro,xe=Rn,Be=pe.getAutomaticTypeDirectiveNames(),lt=pe.getAutomaticTypeDirectiveResolutions(),Ia=pe.sourceFileToPackageName,Pn=pe.redirectTargetsMap,Uo=pe.usesUriStyleNodeCoreModules,ge=pe.resolvedModules,Ge=pe.resolvedTypeReferenceDirectiveNames,ce=pe.resolvedLibReferences,at=pe.getCurrentPackagesMap(),2}function ln(Xe){return{getCanonicalFileName:Xc,getCommonSourceDirectory:Kt.getCommonSourceDirectory,getCompilerOptions:Kt.getCompilerOptions,getCurrentDirectory:()=>Zr,getSourceFile:Kt.getSourceFile,getSourceFileByPath:Kt.getSourceFileByPath,getSourceFiles:Kt.getSourceFiles,isSourceFileFromExternalLibrary:Bl,getRedirectFromSourceFile:rl,isSourceOfProjectReferenceRedirect:rf,getSymlinkCache:Sf,writeFile:Xe||Ii,isEmitBlocked:Go,shouldTransformImportCall:xm,getEmitModuleFormatOfFile:Th,getDefaultResolutionModeForFile:Bu,getModeForResolutionAtIndex:Tv,readFile:mt=>gt.readFile(mt),fileExists:mt=>{const Yt=jt(mt);return Ra(Yt)?!0:Ft.has(Yt)?!1:gt.fileExists(mt)},realpath:oa(gt,gt.realpath),useCaseSensitiveFileNames:()=>gt.useCaseSensitiveFileNames(),getBuildInfo:()=>{var mt;return(mt=Kt.getBuildInfo)==null?void 0:mt.call(Kt)},getSourceFileFromReference:(mt,Yt)=>Kt.getSourceFileFromReference(mt,Yt),redirectTargetsMap:Pn,getFileIncludeReasons:Kt.getFileIncludeReasons,createHash:oa(gt,gt.createHash),getModuleResolutionCache:()=>Kt.getModuleResolutionCache(),trace:oa(gt,gt.trace),getGlobalTypingsCacheLocation:Kt.getGlobalTypingsCacheLocation}}function Ii(Xe,mt,Yt,Rn,Qn,Lr){gt.writeFile(Xe,mt,Yt,Rn,Qn,Lr)}function ra(Xe){var mt,Yt;(mt=xr)==null||mt.push(xr.Phase.Emit,"emitBuildInfo",{},!0),Rl("beforeEmit");const Rn=lH(rse,ln(Xe),void 0,Qae,!1,!0);return Rl("afterEmit"),wf("Emit","beforeEmit","afterEmit"),(Yt=xr)==null||Yt.pop(),Rn}function la(){return ht}function zo(){return ye}function Bl(Xe){return!!Kn.get(Xe.path)}function xl(Xe){if(!Xe.isDeclarationFile)return!1;if(Xe.hasNoDefaultLib)return!0;if(Z.noLib)return!1;const mt=gt.useCaseSensitiveFileNames()?fS:rb;return Z.lib?vt(Z.lib,Yt=>{const Rn=ce.get(Yt);return!!Rn&&mt(Xe.fileName,Rn.actual)}):mt(Xe.fileName,Di())}function Ps(){return Ce||(Ce=dae(Kt))}function uo(Xe,mt,Yt,Rn,Qn,Lr,Yn){var cr,Oi;(cr=xr)==null||cr.push(xr.Phase.Emit,"emit",{path:Xe==null?void 0:Xe.path},!0);const Ro=Hl(()=>Tc(Kt,Xe,mt,Yt,Rn,Qn,Lr,Yn));return(Oi=xr)==null||Oi.pop(),Ro}function Go(Xe){return Pr.has(jt(Xe))}function Tc(Xe,mt,Yt,Rn,Qn,Lr,Yn,cr){if(!Yn){const Do=xH(Xe,mt,Yt,Rn);if(Do)return Do}const Oi=Ps(),Ro=Oi.getEmitResolver(Z.outFile?void 0:mt,Rn,sH(Qn,Yn));Rl("beforeEmit");const _i=Oi.runWithCancellationToken(Rn,()=>lH(Ro,ln(Yt),mt,Zae(Z,Lr,Qn),Qn,!1,Yn,cr));return Rl("afterEmit"),wf("Emit","beforeEmit","afterEmit"),_i}function $s(Xe){return Ra(jt(Xe))}function Ra(Xe){return ot.get(Xe)||void 0}function ec(Xe,mt,Yt){return wR(Xe?mt(Xe,Yt):Ki(Kt.getSourceFiles(),Rn=>(Yt&&Yt.throwIfCancellationRequested(),mt(Rn,Yt))))}function bf(Xe,mt){return ec(Xe,As,mt)}function Lo(Xe,mt,Yt){return ec(Xe,(Rn,Qn)=>lc(Rn,Qn,Yt),mt)}function fa(Xe){return re==null?void 0:re.get(Xe.path)}function is(Xe,mt){return vd(Xe,mt,void 0)}function qa(Xe){var mt;if(mD(Xe,Z,Kt))return se;const Yt=Ne.getCombinedDiagnostics(Kt).getDiagnostics(Xe.fileName);return(mt=Xe.commentDirectives)!=null&&mt.length?Y(Xe,Xe.commentDirectives,Yt).diagnostics:Yt}function Zt(Xe,mt){return ec(Xe,Dr,mt)}function As(Xe){return Pu(Xe)?(Xe.additionalSyntacticDiagnostics||(Xe.additionalSyntacticDiagnostics=fn(Xe)),lo(Xe.additionalSyntacticDiagnostics,Xe.parseDiagnostics)):Xe.parseDiagnostics}function Hl(Xe){try{return Xe()}catch(mt){throw mt instanceof TN&&(Ce=void 0),mt}}function lc(Xe,mt,Yt){return lo(k3(vd(Xe,mt,Yt),Z),qa(Xe))}function vd(Xe,mt,Yt){if(Yt)return Fs(Xe,mt,Yt);let Rn=re==null?void 0:re.get(Xe.path);return Rn||(re??(re=new Map)).set(Xe.path,Rn=Fs(Xe,mt)),Rn}function Fs(Xe,mt,Yt){return Hl(()=>{if(mD(Xe,Z,Kt))return se;const Rn=Ps();C.assert(!!Xe.bindDiagnostics);const Qn=Xe.scriptKind===1||Xe.scriptKind===2,Lr=VN(Xe,Z.checkJs),Yn=Qn&&IM(Xe,Z);let cr=Xe.bindDiagnostics,Oi=Rn.getDiagnostics(Xe,mt,Yt);return Lr&&(cr=Vn(cr,Ro=>MAe.has(Ro.code)),Oi=Vn(Oi,Ro=>MAe.has(Ro.code))),Ee(Xe,!Lr,!!Yt,cr,Oi,Yn?Xe.jsDocDiagnostics:void 0)})}function Ee(Xe,mt,Yt,...Rn){var Qn;const Lr=ia(Rn);if(!mt||!((Qn=Xe.commentDirectives)!=null&&Qn.length))return Lr;const{diagnostics:Yn,directives:cr}=Y(Xe,Xe.commentDirectives,Lr);if(Yt)return Yn;for(const Oi of cr.getUnusedExpectations())Yn.push(qte(Xe,Oi.range,f.Unused_ts_expect_error_directive));return Yn}function Y(Xe,mt,Yt){const Rn=Pte(Xe,mt);return{diagnostics:Yt.filter(Lr=>qt(Lr,Rn)===-1),directives:Rn}}function pt(Xe,mt){return Hl(()=>Ps().getSuggestionDiagnostics(Xe,mt))}function qt(Xe,mt){const{file:Yt,start:Rn}=Xe;if(!Yt)return-1;const Qn=sg(Yt);let Lr=LR(Qn,Rn).line-1;for(;Lr>=0;){if(mt.markUsed(Lr))return Lr;const Yn=Yt.text.slice(Qn[Lr],Qn[Lr+1]).trim();if(Yn!==""&&!/^\s*\/\/.*$/.test(Yn))return-1;Lr--}return-1}function fn(Xe){return Hl(()=>{const mt=[];return Yt(Xe,Xe),ex(Xe,Yt,Rn),mt;function Yt(cr,Oi){switch(Oi.kind){case 170:case 173:case 175:if(Oi.questionToken===cr)return mt.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(Oi.type===cr)return mt.push(Yn(cr,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(cr.kind){case 274:if(cr.isTypeOnly)return mt.push(Yn(Oi,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 279:if(cr.isTypeOnly)return mt.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 mt.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,Eu(cr)?"import...type":"export...type")),"skip";break;case 272:return mt.push(Yn(cr,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 278:if(cr.isExportEquals)return mt.push(Yn(cr,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 299:if(cr.token===119)return mt.push(Yn(cr,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 265:const _i=ga(120);return C.assertIsDefined(_i),mt.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,_i)),"skip";case 268:const Do=cr.flags&32?ga(145):ga(144);return C.assertIsDefined(Do),mt.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,Do)),"skip";case 266:return mt.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:(mt.push(Yn(cr,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 267:const Qi=C.checkDefined(ga(94));return mt.push(Yn(cr,f._0_declarations_can_only_be_used_in_TypeScript_files,Qi)),"skip";case 236:return mt.push(Yn(cr,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return mt.push(Yn(cr.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 239:return mt.push(Yn(cr.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 217:C.fail()}}function Rn(cr,Oi){if(jj(Oi)){const Ro=hn(Oi.modifiers,Wc);Ro&&mt.push(Yn(Ro,f.Decorators_are_not_valid_here))}else if(JS(Oi)&&Oi.modifiers){const Ro=so(Oi.modifiers,Wc);if(Ro>=0){if(to(Oi)&&!Z.experimentalDecorators)mt.push(Yn(Oi.modifiers[Ro],f.Decorators_are_not_valid_here));else if(Dc(Oi)){const _i=so(Oi.modifiers,VI);if(_i>=0){const Do=so(Oi.modifiers,_4);if(Ro>_i&&Do>=0&&Ro=0&&Ro<_i){const Qi=so(Oi.modifiers,Wc,_i);Qi>=0&&mt.push(pa(Yn(Oi.modifiers[Qi],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Yn(Oi.modifiers[Ro],f.Decorator_used_before_export_here)))}}}}}switch(Oi.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(cr===Oi.typeParameters)return mt.push(Lr(cr,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 244:if(cr===Oi.modifiers)return Qn(Oi.modifiers,Oi.kind===244),"skip";break;case 173:if(cr===Oi.modifiers){for(const Ro of cr)Aa(Ro)&&Ro.kind!==126&&Ro.kind!==129&&mt.push(Yn(Ro,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ga(Ro.kind)));return"skip"}break;case 170:if(cr===Oi.modifiers&&vt(cr,Aa))return mt.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===Oi.typeArguments)return mt.push(Lr(cr,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Qn(cr,Oi){for(const Ro of cr)switch(Ro.kind){case 87:if(Oi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:mt.push(Yn(Ro,f.The_0_modifier_can_only_be_used_in_TypeScript_files,ga(Ro.kind)));break;case 126:case 95:case 90:case 129:}}function Lr(cr,Oi,...Ro){const _i=cr.pos;return Oc(Xe,_i,cr.end-_i,Oi,...Ro)}function Yn(cr,Oi,...Ro){return Wf(Xe,cr,Oi,...Ro)}})}function ur(Xe,mt){let Yt=be==null?void 0:be.get(Xe.path);return Yt||(be??(be=new Map)).set(Xe.path,Yt=si(Xe,mt)),Yt}function si(Xe,mt){return Hl(()=>{const Yt=Ps().getEmitResolver(Xe,mt);return $ae(ln(gs),Yt,Xe)||se})}function Dr(Xe,mt){return Xe.isDeclarationFile?se:ur(Xe,mt)}function zn(){return wR(lo(Ne.getCombinedDiagnostics(Kt).getGlobalDiagnostics(),ro()))}function ro(){if(!Z.configFile)return se;let Xe=Ne.getCombinedDiagnostics(Kt).getDiagnostics(Z.configFile.fileName);return Ll(mt=>{Xe=lo(Xe,Ne.getCombinedDiagnostics(Kt).getDiagnostics(mt.sourceFile.fileName))}),Xe}function Eo(){return J.length?wR(Ps().getGlobalDiagnostics().slice()):se}function Ns(){return q||se}function Da(Xe,mt,Yt,Rn){nf(ya(Xe),mt,Yt,void 0,Rn)}function Qs(Xe,mt){return Xe.fileName===mt.fileName}function Sc(Xe,mt){return Xe.kind===80?mt.kind===80&&Xe.escapedText===mt.escapedText:mt.kind===11&&Xe.text===mt.text}function mc(Xe,mt){const Yt=L.createStringLiteral(Xe),Rn=L.createImportDeclaration(void 0,void 0,Yt);return _1(Rn,2),ps(Yt,Rn),ps(Rn,mt),Yt.flags&=-17,Rn.flags&=-17,Yt}function Hs(Xe){if(Xe.imports)return;const mt=Pu(Xe),Yt=zc(Xe);let Rn,Qn,Lr;if(mt||!Xe.isDeclarationFile&&(vm(Z)||zc(Xe))){Z.importHelpers&&(Rn=[mc(hb,Xe)]);const cr=B6(Xk(Z,Xe),Z);cr&&(Rn||(Rn=[])).push(mc(cr,Xe))}for(const cr of Xe.statements)Yn(cr,!1);(Xe.flags&4194304||mt)&&a4(Xe,!0,!0,(cr,Oi)=>{qT(cr,!1),Rn=Un(Rn,Oi)}),Xe.imports=Rn||se,Xe.moduleAugmentations=Qn||se,Xe.ambientModuleNames=Lr||se;return;function Yn(cr,Oi){if(Z2(cr)){const Ro=yI(cr);Ro&&wa(Ro)&&Ro.text&&(!Oi||!td(Ro.text))&&(qT(cr,!1),Rn=Un(Rn,Ro),!Uo&&cn===0&&!Xe.isDeclarationFile&&(fo(Ro.text,"node:")&&!o4.has(Ro.text)?Uo=!0:Uo===void 0&&Ure.has(Ro.text)&&(Uo=!1)))}else if(pc(cr)&&yu(cr)&&(Oi||di(cr,128)||Xe.isDeclarationFile)){cr.name.parent=cr;const Ro=zf(cr.name);if(Yt||Oi&&!td(Ro))(Qn||(Qn=[])).push(cr.name);else if(!Oi){Xe.isDeclarationFile&&(Lr||(Lr=[])).push(Ro);const _i=cr.body;if(_i)for(const Do of _i.statements)Yn(Do,!0)}}}}function Pl(Xe){var mt;const Yt=tj(Xe),Rn=Yt&&((mt=ce==null?void 0:ce.get(Yt))==null?void 0:mt.actual);return Rn!==void 0?$s(Rn):void 0}function vh(Xe,mt){return Pd(hH(mt.fileName,Xe.fileName),$s)}function Pd(Xe,mt,Yt,Rn){if(NR(Xe)){const Qn=gt.getCanonicalFileName(Xe);if(!Z.allowNonTsExtensions&&!$e(ia(Ni),Yn=>El(Qn,Yn))){Yt&&(Sg(Qn)?Yt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Xe):Yt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Xe,"'"+ia(Ai).join("', '")+"'"));return}const Lr=mt(Xe);if(Yt)if(Lr)d0(Rn)&&Qn===gt.getCanonicalFileName(Ra(Rn.file).fileName)&&Yt(f.A_file_cannot_have_a_reference_to_itself);else{const Yn=rl(Xe);Yn!=null&&Yn.outputDts?Yt(f.Output_file_0_has_not_been_built_from_source_file_1,Yn.outputDts,Xe):Yt(f.File_0_not_found,Xe)}return Lr}else{const Qn=Z.allowNonTsExtensions&&mt(Xe);if(Qn)return Qn;if(Yt&&Z.allowNonTsExtensions){Yt(f.File_0_not_found,Xe);return}const Lr=$e(Ai[0],Yn=>mt(Xe+Yn));return Yt&&!Lr&&Yt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Xe,"'"+ia(Ai).join("', '")+"'"),Lr}}function nf(Xe,mt,Yt,Rn,Qn){Pd(Xe,Lr=>tr(Lr,mt,Yt,Qn,Rn),(Lr,...Yn)=>ar(void 0,Qn,Lr,Yn),Qn)}function op(Xe,mt){return nf(Xe,!1,!1,void 0,mt)}function ze(Xe,mt,Yt){!d0(Yt)&&vt(Ne.getFileReasons().get(mt.path),d0)?ar(mt,Yt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[mt.fileName,Xe]):ar(mt,Yt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Xe,mt.fileName])}function Jt(Xe,mt,Yt,Rn,Qn,Lr,Yn){var cr;const Oi=i0.createRedirectedSourceFile({redirectTarget:Xe,unredirected:mt});return Oi.fileName=Yt,Oi.path=Rn,Oi.resolvedPath=Qn,Oi.originalFileName=Lr,Oi.packageJsonLocations=(cr=Yn.packageJsonLocations)!=null&&cr.length?Yn.packageJsonLocations:void 0,Oi.packageJsonScope=Yn.packageJsonScope,Kn.set(Rn,cn>0),Oi}function tr(Xe,mt,Yt,Rn,Qn){var Lr,Yn;(Lr=xr)==null||Lr.push(xr.Phase.Program,"findSourceFile",{fileName:Xe,isDefaultLib:mt||void 0,fileIncludeKind:c9[Rn.kind]});const cr=Za(Xe,mt,Yt,Rn,Qn);return(Yn=xr)==null||Yn.pop(),cr}function yo(Xe,mt,Yt,Rn){const Qn=P3(So(Xe,Zr),mt==null?void 0:mt.getPackageJsonInfoCache(),Yt,Rn),Lr=Ga(Rn),Yn=Uk(Rn);return typeof Qn=="object"?{...Qn,languageVersion:Lr,setExternalModuleIndicator:Yn,jsDocParsingMode:Yt.jsDocParsingMode}:{languageVersion:Lr,impliedNodeFormat:Qn,setExternalModuleIndicator:Yn,jsDocParsingMode:Yt.jsDocParsingMode}}function Za(Xe,mt,Yt,Rn,Qn){var Lr,Yn;const cr=jt(Xe);if(dt){let Qi=ql(cr);if(!Qi&>.realpath&&Z.preserveSymlinks&&ad(Xe)&&Xe.includes(Dg)){const _l=jt(gt.realpath(Xe));_l!==cr&&(Qi=ql(_l))}if(Qi!=null&&Qi.source){const _l=tr(Qi.source,mt,Yt,Rn,Qn);return _l&&Va(_l,cr,Xe,void 0),_l}}const Oi=Xe;if(ot.has(cr)){const Qi=ot.get(cr),_l=es(Qi||void 0,Rn,!0);if(Qi&&_l&&Z.forceConsistentCasingInFileNames!==!1){const sp=Qi.fileName;jt(sp)!==jt(Xe)&&(Xe=((Lr=rl(Xe))==null?void 0:Lr.outputDts)||Xe);const Td=R9(sp,Zr),Dm=R9(Xe,Zr);Td!==Dm&&ze(Xe,Qi,Rn)}return Qi&&Kn.get(Qi.path)&&cn===0?(Kn.set(Qi.path,!1),Z.noResolve||(ld(Qi,mt),jp(Qi)),Z.noLib||ap(Qi),gn.set(Qi.path,!1),bh(Qi)):Qi&&gn.get(Qi.path)&&cnar(void 0,Rn,f.Cannot_read_file_0_Colon_1,[Xe,Qi]),Ot);if(Qn){const Qi=wT(Qn),_l=$o.get(Qi);if(_l){const sp=Jt(_l,Do,Xe,cr,jt(Xe),Oi,_i);return Pn.add(_l.path,Xe),Va(sp,cr,Xe,Ro),es(sp,Rn,!1),Ia.set(cr,LF(Qn)),ve.push(sp),sp}else Do&&($o.set(Qi,Do),Ia.set(cr,LF(Qn)))}if(Va(Do,cr,Xe,Ro),Do){if(Kn.set(cr,cn>0),Do.fileName=Xe,Do.path=cr,Do.resolvedPath=jt(Xe),Do.originalFileName=Oi,Do.packageJsonLocations=(Yn=_i.packageJsonLocations)!=null&&Yn.length?_i.packageJsonLocations:void 0,Do.packageJsonScope=_i.packageJsonScope,es(Do,Rn,!1),gt.useCaseSensitiveFileNames()){const Qi=tb(cr),_l=le.get(Qi);_l?ze(Xe,_l,Rn):le.set(Qi,Do)}or=or||Do.hasNoDefaultLib&&!Yt,Z.noResolve||(ld(Do,mt),jp(Do)),Z.noLib||ap(Do),bh(Do),mt?fe.push(Do):ve.push(Do),(Se??(Se=new Set)).add(Do.path)}return Do}function es(Xe,mt,Yt){return Xe&&(!Yt||!d0(mt)||!(Se!=null&&Se.has(mt.file)))?(Ne.getFileReasons().add(Xe.path,mt),!0):!1}function Va(Xe,mt,Yt,Rn){Rn?(Mc(Yt,Rn,Xe),Mc(Yt,mt,Xe||!1)):Mc(Yt,mt,Xe)}function Mc(Xe,mt,Yt){ot.set(mt,Yt),Yt!==void 0?Ft.delete(mt):Ft.set(mt,Xe)}function rl(Xe){return Fe==null?void 0:Fe.get(jt(Xe))}function Ll(Xe){return nj(ht,Xe)}function ql(Xe){return it==null?void 0:it.get(Xe)}function rf(Xe){return dt&&!!rl(Xe)}function bd(Xe){if(ne)return ne.get(Xe)||void 0}function ld(Xe,mt){$e(Xe.referencedFiles,(Yt,Rn)=>{nf(hH(Yt.fileName,Xe.fileName),mt,!1,void 0,{kind:4,file:Xe.path,index:Rn})})}function jp(Xe){const mt=Xe.typeReferenceDirectives;if(!mt.length)return;const Yt=(We==null?void 0:We.get(Xe.path))||wt(mt,Xe),Rn=FD();(Ge??(Ge=new Map)).set(Xe.path,Rn);for(let Qn=0;Qn{const Rn=tj(mt);Rn?Da(Ng(Rn),!0,!0,{kind:7,file:Xe.path,index:Yt}):Ne.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:Xe.path,index:Yt}})})}function Xc(Xe){return gt.getCanonicalFileName(Xe)}function bh(Xe){if(Hs(Xe),Xe.imports.length||Xe.moduleAugmentations.length){const mt=LAe(Xe),Yt=(je==null?void 0:je.get(Xe.path))||yn(mt,Xe);C.assert(Yt.length===mt.length);const Rn=Au(Xe),Qn=FD();(ge??(ge=new Map)).set(Xe.path,Qn);for(let Lr=0;LrWt,sp=Qi&&!RH(Rn,Yn,Xe)&&!Rn.noResolve&&LrO1(Yn.commandLine,!gt.useCaseSensitiveFileNames()));Qn.fileNames.forEach(Ro=>{const _i=jt(Ro);let Do;!ad(Ro)&&!El(Ro,".json")&&(Qn.options.outFile?Do=cr:(Do=_P(Ro,Yn.commandLine,!gt.useCaseSensitiveFileNames(),Oi),it.set(jt(Do),{resolvedRef:Yn,source:Ro}))),Fe.set(_i,{resolvedRef:Yn,outputDts:Do})})}return Qn.projectReferences&&(Yn.references=Qn.projectReferences.map(f_)),Yn}function oe(){Z.strictPropertyInitialization&&!Vd(Z,"strictNullChecks")&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),Z.exactOptionalPropertyTypes&&!Vd(Z,"strictNullChecks")&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(Z.isolatedModules||Z.verbatimModuleSyntax)&&Z.outFile&&Ve(f.Option_0_cannot_be_specified_with_option_1,"outFile",Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),Z.isolatedDeclarations&&(xb(Z)&&Ve(f.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),_p(Z)||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite")),Z.inlineSourceMap&&(Z.sourceMap&&Ve(f.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),Z.mapRoot&&Ve(f.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),Z.composite&&(Z.declaration===!1&&Ve(f.Composite_projects_may_not_disable_declaration_emit,"declaration"),Z.incremental===!1&&Ve(f.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const Xe=Z.outFile;if(!Z.tsBuildInfoFile&&Z.incremental&&!Xe&&!Z.configFilePath&&Ne.addConfigDiagnostic(Il(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(jt));for(const cr of xe)CS(cr,Kt)&&!Yn.has(cr.path)&&Ne.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(Rs(Z.paths,Yn))if(PV(Yn)||$i(!0,Yn,f.Pattern_0_can_have_at_most_one_Asterisk_character,Yn),Mo(Z.paths[Yn])){const cr=Z.paths[Yn].length;cr===0&&$i(!1,Yn,f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,Yn);for(let Oi=0;Oizc(Yn)&&!Yn.isDeclarationFile);if(Z.isolatedModules||Z.verbatimModuleSyntax)Z.module===0&&mt<2&&Z.isolatedModules&&Ve(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&&Ve(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,Z.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Yt&&mt<2&&Z.module===0){const Yn=n1(Yt,typeof Yt.externalModuleIndicator=="boolean"?Yt:Yt.externalModuleIndicator);Ne.addConfigDiagnostic(Oc(Yt,Yn.start,Yn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Xe&&!Z.emitDeclarationOnly){if(Z.module&&!(Z.module===2||Z.module===4))Ve(f.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(Z.module===void 0&&Yt){const Yn=n1(Yt,typeof Yt.externalModuleIndicator=="boolean"?Yt:Yt.externalModuleIndicator);Ne.addConfigDiagnostic(Oc(Yt,Yn.start,Yn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(kS(Z)&&(iu(Z)===1?Ve(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):O6(Z)||Ve(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||_p(Z)&&Z.declarationDir){const Yn=Qt();Z.outDir&&Yn===""&&xe.some(cr=>Bh(cr.fileName)>1)&&Ve(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}Z.checkJs&&!xb(Z)&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),Z.emitDeclarationOnly&&(_p(Z)||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite")),Z.emitDecoratorMetadata&&!Z.experimentalDecorators&&Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),Z.jsxFactory?(Z.reactNamespace&&Ve(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",Mw.get(""+Z.jsx)),nx(Z.jsxFactory,mt)||kt("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,Z.jsxFactory)):Z.reactNamespace&&!fp(Z.reactNamespace,mt)&&kt("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,Z.reactNamespace),Z.jsxFragmentFactory&&(Z.jsxFactory||Ve(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(Z.jsx===4||Z.jsx===5)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",Mw.get(""+Z.jsx)),nx(Z.jsxFragmentFactory,mt)||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)&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",Mw.get(""+Z.jsx)),Z.jsxImportSource&&Z.jsx===2&&Ve(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",Mw.get(""+Z.jsx));const Rn=bu(Z);Z.verbatimModuleSyntax&&(Rn===2||Rn===3||Rn===4)&&Ve(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=iu(Z);if(Z.resolvePackageJsonExports&&!pD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),Z.resolvePackageJsonImports&&!pD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),Z.customConditions&&!pD(Qn)&&Ve(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Qn===100&&!Kk(Rn)&&Rn!==200&&kt("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),CR[Rn]&&100<=Rn&&Rn<=199&&!(3<=Qn&&Qn<=99)){const Yn=CR[Rn],cr=DR[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(DR[Qn]&&3<=Qn&&Qn<=99&&!(100<=Rn&&Rn<=199)){const Yn=DR[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;rH(Yn,Oi=>{Z.emitDeclarationOnly||Lr(Oi.jsFilePath,cr),Lr(Oi.declarationFilePath,cr)})}function Lr(Yn,cr){if(Yn){const Oi=jt(Yn);if(ot.has(Oi)){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),Ca(Yn,L6(_i))}const Ro=gt.useCaseSensitiveFileNames()?Oi:tb(Oi);cr.has(Ro)?Ca(Yn,Il(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Yn)):cr.add(Ro)}}}function ut(){const Xe=Z.ignoreDeprecations;if(Xe){if(Xe==="5.0")return new ih(Xe);de()}return ih.zero}function tn(Xe,mt,Yt,Rn){const Qn=new ih(Xe),Lr=new ih(mt),Yn=new ih(ie||_e),cr=ut(),Oi=Lr.compareTo(Yn)!==1,Ro=!Oi&&cr.compareTo(Qn)===-1;(Oi||Ro)&&Rn((_i,Do,Qi)=>{Oi?Do===void 0?Yt(_i,Do,Qi,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,_i):Yt(_i,Do,Qi,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,_i,Do):Do===void 0?Yt(_i,Do,Qi,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,_i,mt,Xe):Yt(_i,Do,Qi,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,_i,Do,mt,Xe)})}function an(){function Xe(mt,Yt,Rn,Qn,...Lr){if(Rn){const Yn=qo(void 0,f.Use_0_instead,Rn),cr=qo(Yn,Qn,...Lr);vo(!Yt,mt,void 0,cr)}else vo(!Yt,mt,void 0,Qn,...Lr)}tn("5.0","5.5",Xe,mt=>{Z.target===0&&mt("target","ES3"),Z.noImplicitUseStrict&&mt("noImplicitUseStrict"),Z.keyofStringsOnly&&mt("keyofStringsOnly"),Z.suppressExcessPropertyErrors&&mt("suppressExcessPropertyErrors"),Z.suppressImplicitAnyIndexErrors&&mt("suppressImplicitAnyIndexErrors"),Z.noStrictGenericChecks&&mt("noStrictGenericChecks"),Z.charset&&mt("charset"),Z.out&&mt("out",void 0,"outFile"),Z.importsNotUsedAsValues&&mt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),Z.preserveValueImports&&mt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function On(Xe,mt,Yt){function Rn(Qn,Lr,Yn,cr,...Oi){Wn(mt,Yt,cr,...Oi)}tn("5.0","5.5",Rn,Qn=>{Xe.prepend&&Qn("prepend")})}function ar(Xe,mt,Yt,Rn){Ne.addFileProcessingDiagnostic({kind:1,file:Xe&&Xe.path,fileProcessingReason:mt,diagnostic:Yt,args:Rn})}function ti(){const Xe=Z.suppressOutputPathCheck?void 0:c0(Z);kM(ye,ht,(mt,Yt,Rn)=>{const Qn=(Yt?Yt.commandLine.projectReferences:ye)[Rn],Lr=Yt&&Yt.sourceFile;if(On(Qn,Lr,Rn),!mt){Wn(Lr,Rn,f.File_0_not_found,Qn.path);return}const Yn=mt.commandLine.options;(!Yn.composite||Yn.noEmit)&&(Yt?Yt.commandLine.fileNames:J).length&&(Yn.composite||Wn(Lr,Rn,f.Referenced_project_0_must_have_setting_composite_Colon_true,Qn.path),Yn.noEmit&&Wn(Lr,Rn,f.Referenced_project_0_may_not_disable_emit,Qn.path)),!Yt&&Xe&&Xe===c0(Yn)&&(Wn(Lr,Rn,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Xe,Qn.path),Pr.set(jt(Xe),!0))})}function Ti(Xe,mt,Yt,...Rn){let Qn=!0;z(Lr=>{Fa(Lr.initializer)&&XR(Lr.initializer,Xe,Yn=>{const cr=Yn.initializer;Cd(cr)&&cr.elements.length>mt&&(Ne.addConfigDiagnostic(Wf(Z.configFile,cr.elements[mt],Yt,...Rn)),Qn=!1)})}),Qn&&ta(Yt,...Rn)}function $i(Xe,mt,Yt,...Rn){let Qn=!0;z(Lr=>{Fa(Lr.initializer)&&hl(Lr.initializer,Xe,mt,void 0,Yt,...Rn)&&(Qn=!1)}),Qn&&ta(Yt,...Rn)}function z(Xe){return ij(Ao(),"paths",Xe)}function Ve(Xe,mt,Yt,Rn){vo(!0,mt,Yt,Xe,mt,Yt,Rn)}function kt(Xe,mt,...Yt){vo(!1,Xe,void 0,mt,...Yt)}function Wn(Xe,mt,Yt,...Rn){const Qn=ak(Xe||Z.configFile,"references",Lr=>Cd(Lr.initializer)?Lr.initializer:void 0);Qn&&Qn.elements.length>mt?Ne.addConfigDiagnostic(Wf(Xe||Z.configFile,Qn.elements[mt],Yt,...Rn)):Ne.addConfigDiagnostic(Il(Yt,...Rn))}function vo(Xe,mt,Yt,Rn,...Qn){const Lr=Ao();(!Lr||!hl(Lr,Xe,mt,Yt,Rn,...Qn))&&ta(Rn,...Qn)}function ta(Xe,...mt){const Yt=Vo();Yt?"messageText"in Xe?Ne.addConfigDiagnostic(_g(Z.configFile,Yt.name,Xe)):Ne.addConfigDiagnostic(Wf(Z.configFile,Yt.name,Xe,...mt)):"messageText"in Xe?Ne.addConfigDiagnostic(L6(Xe)):Ne.addConfigDiagnostic(Il(Xe,...mt))}function Ao(){if(Ci===void 0){const Xe=Vo();Ci=Xe&&ni(Xe.initializer,Fa)||!1}return Ci||void 0}function Vo(){return Ye===void 0&&(Ye=XR(JN(Z.configFile),"compilerOptions",Vs)||!1),Ye||void 0}function hl(Xe,mt,Yt,Rn,Qn,...Lr){let Yn=!1;return XR(Xe,Yt,cr=>{"messageText"in Qn?Ne.addConfigDiagnostic(_g(Z.configFile,mt?cr.name:cr.initializer,Qn)):Ne.addConfigDiagnostic(Wf(Z.configFile,mt?cr.name:cr.initializer,Qn,...Lr)),Yn=!0},Rn),Yn}function Ca(Xe,mt){Pr.set(jt(Xe),!0),Ne.addConfigDiagnostic(mt)}function cd(Xe){if(Z.noEmit)return!1;const mt=jt(Xe);if(Ra(mt))return!1;const Yt=Z.outFile;if(Yt)return Up(mt,Yt)||Up(mt,Tu(Yt)+".d.ts");if(Z.declarationDir&&pm(Z.declarationDir,mt,Zr,!gt.useCaseSensitiveFileNames()))return!0;if(Z.outDir)return pm(Z.outDir,mt,Zr,!gt.useCaseSensitiveFileNames());if($l(mt,fD)||ad(mt)){const Rn=Tu(mt);return!!Ra(Rn+".ts")||!!Ra(Rn+".tsx")}return!1}function Up(Xe,mt){return ey(Xe,mt,Zr,!gt.useCaseSensitiveFileNames())===0}function Sf(){return gt.getSymlinkCache?gt.getSymlinkCache():(X||(X=LV(Zr,Xc)),xe&&!X.hasProcessedResolutions()&&X.setSymlinksFromResolutions(B,Ae,lt),X)}function Yf(Xe,mt){return D3(Xe,mt,Au(Xe))}function Sy(Xe,mt){return DAe(Xe,mt,Au(Xe))}function Tv(Xe,mt){return Yf(Xe,aO(Xe,mt))}function Bu(Xe){return L3(Xe,Au(Xe))}function j_(Xe){return W1(Xe,Au(Xe))}function Th(Xe){return TP(Xe,Au(Xe))}function xm(Xe){return PAe(Xe,Au(Xe))}function Hb(Xe,mt){return Xe.resolutionMode||Bu(mt)}}function PAe(e,t){const r=bu(t);return 100<=r&&r<=199||r===200?!1:TP(e,t)<5}function TP(e,t){return W1(e,t)??bu(t)}function W1(e,t){var r,i;const o=bu(t);if(100<=o&&o<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(((r=e.packageJsonScope)==null?void 0:r.contents.packageJsonContent.type)==="commonjs"||$l(e.fileName,[".cjs",".cts"])))return 1;if(e.impliedNodeFormat===99&&(((i=e.packageJsonScope)==null?void 0:i.contents.packageJsonContent.type)==="module"||$l(e.fileName,[".mjs",".mts"])))return 99}function L3(e,t){return NV(t)?W1(e,t):void 0}function jqe(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()||!ad(A)?!1:E(A,!0)}function g(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}${Js}`;return mg(t,P=>R===P||fo(P,N)||fo(R,`${P}/`))}function y(A){var R;if(!e.getResolvedProjectReferences()||CM(A)||!s||!A.includes(Dg))return;const N=e.getSymlinkCache(),P=Uc(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=Uc(e.toPath(k)))===P){N.setSymlinkedDirectory(P,!1);return}N.setSymlinkedDirectory(A,{real:Uc(k),realPath:F})}function E(A,R){var N;const P=R?g:h,k=P(A);if(k!==void 0)return k;const F=e.getSymlinkCache(),O=F.getSymlinkedDirectories();if(!O)return!1;const G=e.toPath(A);return G.includes(Dg)?R&&((N=F.getSymlinkedFiles())!=null&&N.has(G))?!0:Zn(O.entries(),([j,J])=>{if(!J||!fo(G,j))return;const Z=P(G.replace(j,J.realPath));if(R&&Z){const q=So(A,e.compilerHost.getCurrentDirectory());F.setSymlinkedFile(G,`${J.real}${q.replace(new RegExp(j,"i"),"")}`)}return Z})||!1:!1}}var IH={diagnostics:se,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function xH(e,t,r,i){const o=e.getCompilerOptions();if(o.noEmit)return t?IH: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&&_p(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 k3(e,t){return Vn(e,r=>!r.skippedOn||!t[r.skippedOn])}function w3(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||pS,trace:e.trace?r=>e.trace(r):void 0}}function cx(e){return nq(e.path)}function RH(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 xb(e)||!Vd(e,"noImplicitAny")?void 0:f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return kS(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 LAe({imports:e,moduleAugmentations:t}){const r=e.map(i=>i);for(const i of t)i.kind===11&&r.push(i);return r}function aO({imports:e,moduleAugmentations:t},r){if(rt.add(R)),i==null||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||se));case 0:return t.add(g(A,R));case 2:return R.diagnostics.forEach(N=>t.add(N));default:C.assertNever(R)}}),l==null||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 g(A,{reason:R}){const{file:N,pos:P,end:k}=bP(A,R),F=N.libReferenceDirectives[R.index],O=ej(F),G=RR(hN(O,"lib."),".d.ts"),j=mS(G,F4,Vs);return Oc(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,O,j)}function h(A,R,N,P,k){let F,O,G,j,J,Z;const q=R&&r.get(R.path);let ye=d0(N)?N:void 0,ie=R&&(u==null?void 0:u.get(R.path));ie?(ie.fileIncludeReasonDetails?(F=new Set(q),q==null||q.forEach(fe)):q==null||q.forEach(de),J=ie.redirectInfo):(q==null||q.forEach(de),J=R&&UH(R,A.getCompilerOptionsForFile(R))),N&&de(N);const K=(F==null?void 0:F.size)!==(q==null?void 0:q.length);ye&&(F==null?void 0:F.size)===1&&(F=void 0),F&&ie&&(ie.details&&!K?Z=qo(ie.details,P,...k??se):ie.fileIncludeReasonDetails&&(K?ve()?O=Un(ie.fileIncludeReasonDetails.next.slice(0,q.length),O[0]):O=[...ie.fileIncludeReasonDetails.next,O[0]]:ve()?O=ie.fileIncludeReasonDetails.next.slice(0,q.length):j=ie.fileIncludeReasonDetails)),Z||(j||(j=F&&qo(O,f.The_file_is_in_the_program_because_Colon)),Z=qo(J?j?[j,...J]:J:j,P,...k||se)),R&&(ie?(!ie.fileIncludeReasonDetails||!K&&j)&&(ie.fileIncludeReasonDetails=j):(u??(u=new Map)).set(R.path,ie={fileIncludeReasonDetails:j,redirectInfo:J}),!ie.details&&!K&&(ie.details=Z.next));const pe=ye&&bP(A,ye);return pe&&qD(pe)?BF(pe.file,pe.pos,pe.end-pe.pos,Z,G):L6(Z,G);function de(xe){F!=null&&F.has(xe)||((F??(F=new Set)).add(xe),(O??(O=[])).push(JH(A,xe)),fe(xe))}function fe(xe){!ye&&d0(xe)?ye=xe:ye!==xe&&(G=Un(G,y(A,xe)))}function ve(){var xe;return((xe=ie.fileIncludeReasonDetails.next)==null?void 0:xe.length)!==(q==null?void 0:q.length)}}function y(A,R){let N=d==null?void 0: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(d0(R)){const G=bP(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)?Oc(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,O;switch(R.kind){case 0:if(!k.configFile.configFileSpecs)return;const G=So(P[R.index],N),j=HH(A,G);if(j){F=qF(k.configFile,"files",j),O=f.File_is_matched_by_files_list_specified_here;break}const J=qH(A,G);if(!J||!Bo(J))return;F=qF(k.configFile,"include",J),O=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const Z=A.getResolvedProjectReferences(),q=A.getProjectReferences(),ye=C.checkDefined(Z==null?void 0:Z[R.index]),ie=kM(q,Z,(ve,xe,X)=>ve===ye?{sourceFile:(xe==null?void 0:xe.sourceFile)||k.configFile,index:X}:void 0);if(!ie)return;const{sourceFile:K,index:pe}=ie,de=ak(K,"references",ve=>Cd(ve.initializer)?ve.initializer:void 0);return de&&de.elements.length>pe?Wf(K,de.elements[pe],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=rj(e(),"types",R.typeReference),O=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(R.index!==void 0){F=rj(e(),"lib",k.lib[R.index]),O=f.File_is_library_specified_here;break}const fe=W6(Ga(k));F=fe?qre(e(),"target",fe):void 0,O=f.File_is_default_library_for_target_specified_here;break;default:C.assertNever(R)}return F&&Wf(k.configFile,F,O)}}function vse(e,t,r,i,o,s){const l=[],{emitSkipped:u,diagnostics:d}=e.emit(t,g,i,r,o,s);return{outputFiles:l,emitSkipped:u,diagnostics:d};function g(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||{}),_h;(e=>{function t(){function ie(K,pe,de){const fe={getKeys:ve=>pe.get(ve),getValues:ve=>K.get(ve),keys:()=>K.keys(),size:()=>K.size,deleteKey:ve=>{(de||(de=new Set)).add(ve);const xe=K.get(ve);return xe?(xe.forEach(X=>i(pe,X,ve)),K.delete(ve),!0):!1},set:(ve,xe)=>{de==null||de.delete(ve);const X=K.get(ve);return K.set(ve,xe),X==null||X.forEach(Ce=>{xe.has(Ce)||i(pe,Ce,ve)}),xe.forEach(Ce=>{X!=null&&X.has(Ce)||r(pe,Ce,ve)}),fe}};return fe}return ie(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(ie,K,pe){let de=ie.get(K);de||(de=new Set,ie.set(K,de)),de.add(pe)}function i(ie,K,pe){const de=ie.get(K);return de!=null&&de.delete(pe)?(de.size||ie.delete(K),!0):!1}function o(ie){return ji(ie.declarations,K=>{var pe;return(pe=Fn(K))==null?void 0:pe.resolvedPath})}function s(ie,K){const pe=ie.getSymbolAtLocation(K);return pe&&o(pe)}function l(ie,K,pe,de){var fe;return ks(((fe=ie.getRedirectFromSourceFile(K))==null?void 0:fe.outputDts)||K,pe,de)}function u(ie,K,pe){let de;if(K.imports&&K.imports.length>0){const X=ie.getTypeChecker();for(const Ce of K.imports){const Je=s(X,Ce);Je==null||Je.forEach(xe)}}const fe=ci(K.resolvedPath);if(K.referencedFiles&&K.referencedFiles.length>0)for(const X of K.referencedFiles){const Ce=l(ie,X.fileName,fe,pe);xe(Ce)}if(ie.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:X})=>{if(!X)return;const Ce=X.resolvedFileName,Je=l(ie,Ce,fe,pe);xe(Je)},K),K.moduleAugmentations.length){const X=ie.getTypeChecker();for(const Ce of K.moduleAugmentations){if(!wa(Ce))continue;const Je=X.getSymbolAtLocation(Ce);Je&&ve(Je)}}for(const X of ie.getTypeChecker().getAmbientModules())X.declarations&&X.declarations.length>1&&ve(X);return de;function ve(X){if(X.declarations)for(const Ce of X.declarations){const Je=Fn(Ce);Je&&Je!==K&&xe(Je.resolvedPath)}}function xe(X){(de||(de=new Set)).add(X)}}function d(ie,K){return K&&!K.referencedMap==!ie}e.canReuseOldState=d;function g(ie){return ie.module!==0&&!ie.outFile?t():void 0}e.createReferencedMap=g;function h(ie,K,pe){var de,fe;const ve=new Map,xe=ie.getCompilerOptions(),X=g(xe),Ce=d(X,K);ie.getTypeChecker();for(const Je of ie.getSourceFiles()){const Se=C.checkDefined(Je.version,"Program intended to be used with Builder should have source files with versions set"),re=Ce?(de=K.oldSignatures)==null?void 0:de.get(Je.resolvedPath):void 0,be=re===void 0?Ce?(fe=K.fileInfos.get(Je.resolvedPath))==null?void 0:fe.signature:void 0:re||void 0;if(X){const Ne=u(ie,Je,ie.getCanonicalFileName);Ne&&X.set(Je.resolvedPath,Ne)}ve.set(Je.resolvedPath,{version:Se,signature:be,affectsGlobalScope:xe.outFile?void 0:J(Je)||void 0,impliedFormat:Je.impliedNodeFormat})}return{fileInfos:ve,referencedMap:X,useFileVersionAsSignature:!pe&&!Ce}}e.create=h;function y(ie){ie.allFilesExcludingDefaultLibraryFile=void 0,ie.allFileNames=void 0}e.releaseCache=y;function E(ie,K,pe,de,fe){var ve;const xe=A(ie,K,pe,de,fe);return(ve=ie.oldSignatures)==null||ve.clear(),xe}e.getFilesAffectedBy=E;function A(ie,K,pe,de,fe){const ve=K.getSourceFileByPath(pe);return ve?P(ie,K,ve,de,fe)?(ie.referencedMap?ye:q)(ie,K,ve,de,fe):[ve]:se}e.getFilesAffectedByWithOldState=A;function R(ie,K,pe){ie.fileInfos.get(pe).signature=K,(ie.hasCalledUpdateShapeSignature||(ie.hasCalledUpdateShapeSignature=new Set)).add(pe)}e.updateSignatureOfFile=R;function N(ie,K,pe,de,fe){ie.emit(K,(ve,xe,X,Ce,Je,Se)=>{C.assert(ad(ve),`File extension for signature expected to be dts: Got:: ${ve}`),fe(NH(ie,K,xe,de,Se),Je)},pe,2,void 0,!0)}e.computeDtsSignature=N;function P(ie,K,pe,de,fe,ve=ie.useFileVersionAsSignature){var xe;if((xe=ie.hasCalledUpdateShapeSignature)!=null&&xe.has(pe.resolvedPath))return!1;const X=ie.fileInfos.get(pe.resolvedPath),Ce=X.signature;let Je;return!pe.isDeclarationFile&&!ve&&N(K,pe,de,fe,Se=>{Je=Se,fe.storeSignatureInfo&&(ie.signatureInfo??(ie.signatureInfo=new Map)).set(pe.resolvedPath,0)}),Je===void 0&&(Je=pe.version,fe.storeSignatureInfo&&(ie.signatureInfo??(ie.signatureInfo=new Map)).set(pe.resolvedPath,2)),(ie.oldSignatures||(ie.oldSignatures=new Map)).set(pe.resolvedPath,Ce||!1),(ie.hasCalledUpdateShapeSignature||(ie.hasCalledUpdateShapeSignature=new Set)).add(pe.resolvedPath),X.signature=Je,Je!==Ce}e.updateShapeSignature=P;function k(ie,K,pe){if(K.getCompilerOptions().outFile||!ie.referencedMap||J(pe))return F(ie,K);const fe=new Set,ve=[pe.resolvedPath];for(;ve.length;){const xe=ve.pop();if(!fe.has(xe)){fe.add(xe);const X=ie.referencedMap.getValues(xe);if(X)for(const Ce of X.keys())ve.push(Ce)}}return Co(cm(fe.keys(),xe=>{var X;return((X=K.getSourceFileByPath(xe))==null?void 0:X.fileName)??xe}))}e.getAllDependencies=k;function F(ie,K){if(!ie.allFileNames){const pe=K.getSourceFiles();ie.allFileNames=pe===se?se:pe.map(de=>de.fileName)}return ie.allFileNames}function O(ie,K){const pe=ie.referencedMap.getKeys(K);return pe?Co(pe.keys()):[]}e.getReferencedByPaths=O;function G(ie){for(const K of ie.statements)if(!WF(K))return!1;return!0}function j(ie){return vt(ie.moduleAugmentations,K=>P_(K.parent))}function J(ie){return j(ie)||!Pp(ie)&&!Ff(ie)&&!G(ie)}function Z(ie,K,pe){if(ie.allFilesExcludingDefaultLibraryFile)return ie.allFilesExcludingDefaultLibraryFile;let de;pe&&fe(pe);for(const ve of K.getSourceFiles())ve!==pe&&fe(ve);return ie.allFilesExcludingDefaultLibraryFile=de||se,ie.allFilesExcludingDefaultLibraryFile;function fe(ve){K.isSourceFileDefaultLibrary(ve)||(de||(de=[])).push(ve)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function q(ie,K,pe){const de=K.getCompilerOptions();return de&&de.outFile?[pe]:Z(ie,K,pe)}function ye(ie,K,pe,de,fe){if(J(pe))return Z(ie,K,pe);const ve=K.getCompilerOptions();if(ve&&(vm(ve)||ve.outFile))return[pe];const xe=new Map;xe.set(pe.resolvedPath,pe);const X=O(ie,pe.resolvedPath);for(;X.length>0;){const Ce=X.pop();if(!xe.has(Ce)){const Je=K.getSourceFileByPath(Ce);xe.set(Ce,Je),Je&&P(ie,K,Je,de,fe)&&X.push(...O(ie,Je.resolvedPath))}}return Co(cm(xe.values(),Ce=>Ce))}})(_h||(_h={}));var Tse=(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))(Tse||{});function JD(e){return e.program!==void 0}function Uqe(e){return C.assert(JD(e)),e}function Bb(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),_p(e)&&(t=t|24),e.declarationMap&&(t=t|32),e.emitDeclarationOnly&&(t=t&56),t}function O3(e,t){const r=t&&(eb(t)?t:Bb(t)),i=eb(e)?e:Bb(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 Hqe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!mg(e,r=>!t.has(r))}function qqe(e,t){var r,i;const o=_h.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!=null&&t.outSignature)&&l===t.compilerOptions.outFile&&(o.outSignature=t.outSignature&&kAe(s,t.compilerOptions,t.outSignature)),o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t==null?void 0:t.latestChangedDtsFile:void 0,o.checkPending=o.compilerOptions.noCheck?!0:void 0;const u=_h.canReuseOldState(o.referencedMap,t),d=u?t.compilerOptions:void 0;let g=u&&!fre(s,d);const h=s.composite&&(t==null?void 0:t.emitSignatures)&&!l&&!hre(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&&(g=!1,y=!1),o.hasErrorsFromOldState=t.hasErrors):o.buildInfoEmitPending=wS(s);const E=o.referencedMap,A=u?t.referencedMap:void 0,R=g&&!s.skipLibCheck==!d.skipLibCheck,N=R&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((k,F)=>{var O;let G,j;if(!u||!(G=t.fileInfos.get(F))||G.version!==k.version||G.impliedFormat!==k.impliedFormat||!Hqe(j=E&&E.getValues(F),A&&A.getValues(F))||j&&mg(j,J=>!o.fileInfos.has(J)&&t.fileInfos.has(J)))P(F);else{const J=e.getSourceFileByPath(F),Z=y?(O=t.emitDiagnosticsPerFile)==null?void 0:O.get(F):void 0;if(Z&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(F,t.hasReusableDiagnostic?OAe(Z,F,e):wAe(Z,e)),g){if(J.isDeclarationFile&&!R||J.hasNoDefaultLib&&!N)return;const q=t.semanticDiagnosticsPerFile.get(F);q&&(o.semanticDiagnosticsPerFile.set(F,t.hasReusableDiagnostic?OAe(q,F,e):wAe(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,kAe(s,t.compilerOptions,J))}}),u&&Hc(t.fileInfos,(k,F)=>o.fileInfos.has(F)?!1:k.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!!l)))_h.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(k=>P(k.resolvedPath));else if(d){const k=mre(s,d)?Bb(s):O3(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)||PH(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&&(g=!1,y=!1,o.semanticDiagnosticsFromOldState=void 0,o.semanticDiagnosticsPerFile.clear(),o.emitDiagnosticsPerFile=void 0),o.buildInfoEmitPending=!0,o.programEmitPending=void 0}}function kAe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Bo(r)?[r]:r[0]}function wAe(e,t){return e.length?Zi(e,r=>{if(Bo(r.messageText))return r;const i=Sse(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 Sse(e,t,r,i){const o=i(e);if(o===!0)return{...cG(t),next:Ese(e.next,t,r,i)};if(o)return{...PF(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:Ese(e.next,t,r,i)};const s=Ese(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function Ese(e,t,r,i){return Zi(e,o=>Sse(o,t,r,i))}function OAe(e,t,r){if(!e.length)return se;let i;return e.map(s=>{const l=WAe(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=>WAe(d,t,r,o)):[]:void 0,l});function o(s){return i??(i=ci(So(c0(r.getCompilerOptions()),r.getCurrentDirectory()))),ks(s,i,r.getCanonicalFileName)}}function WAe(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:Sse(e.messageText,s,r,l=>l.info)}}function Jqe(e){_h.releaseCache(e),e.program=void 0}function Ase(e,t){C.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function FAe(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 W3(e,t,r,i){let o=O3(e,t);return r&&(o=o&56),i&&(o=o&8),o}function DH(e){return e?8:56}function Kqe(e,t,r){var i;if((i=e.affectedFilesPendingEmit)!=null&&i.size)return Hc(e.affectedFilesPendingEmit,(o,s)=>{var l;const u=e.program.getSourceFileByPath(s);if(!u||!CS(u,e.program)){e.affectedFilesPendingEmit.delete(s);return}const d=(l=e.seenEmittedFiles)==null?void 0:l.get(u.resolvedPath),g=W3(o,d,t,r);if(g)return{affectedFile:u,emitKind:g}})}function Xqe(e,t){var r;if((r=e.emitDiagnosticsPerFile)!=null&&r.size)return Hc(e.emitDiagnosticsPerFile,(i,o)=>{var s;const l=e.program.getSourceFileByPath(o);if(!l||!CS(l,e.program)){e.emitDiagnosticsPerFile.delete(o);return}const u=((s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath))||0;if(!(u&DH(t)))return{affectedFile:l,diagnostics:i,seenKind:u}})}function BAe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();$e(e.program.getSourceFiles(),r=>e.program.isSourceFileDefaultLibrary(r)&&!Dre(r,t,e.program)&&xse(e,r.resolvedPath))}}function Yqe(e,t,r,i){if(xse(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){BAe(e),_h.updateShapeSignature(e,e.program,t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||$qe(e,t,r,i)}function Ise(e,t,r,i,o){if(xse(e,t),!e.changedFilesSet.has(t)){const s=e.program.getSourceFileByPath(t);s&&(_h.updateShapeSignature(e,e.program,s,i,o,!0),r?PH(e,t,Bb(e.compilerOptions)):_p(e.compilerOptions)&&PH(e,t,e.compilerOptions.declarationMap?56:24))}}function xse(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function GAe(e,t){const r=C.checkDefined(e.oldSignatures).get(t)||void 0;return C.checkDefined(e.fileInfos.get(t)).signature!==r}function Rse(e,t,r,i,o){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(_h.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(l=>Ise(e,l.resolvedPath,r,i,o)),BAe(e),!0):!1}function $qe(e,t,r,i){var o,s;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!GAe(e,t.resolvedPath))return;if(vm(e.compilerOptions)){const d=new Map;d.set(t.resolvedPath,!0);const g=_h.getReferencedByPaths(e,t.resolvedPath);for(;g.length>0;){const h=g.pop();if(!d.has(h)){if(d.set(h,!0),Rse(e,h,!1,r,i))return;if(Ise(e,h,!1,r,i),GAe(e,h)){const y=e.program.getSourceFileByPath(h);g.push(..._h.getReferencedByPaths(e,y.resolvedPath))}}}}const l=new Set,u=!!((o=t.symbol)!=null&&o.exports)&&!!Hc(t.symbol.exports,d=>{if(d.flags&128)return!0;const g=xd(d,e.program.getTypeChecker());return g===d?!1:(g.flags&128)!==0&&vt(g.declarations,h=>Fn(h)===t)});(s=e.referencedMap.getKeys(t.resolvedPath))==null||s.forEach(d=>{if(Rse(e,d,u,r,i))return!0;const g=e.referencedMap.getKeys(d);return g&&mg(g,h=>VAe(e,h,u,l,r,i))})}function VAe(e,t,r,i,o,s){var l;if(rh(i,t)){if(Rse(e,t,r,o,s))return!0;Ise(e,t,r,o,s),(l=e.referencedMap.getKeys(t))==null||l.forEach(u=>VAe(e,u,r,i,o,s))}}function CH(e,t,r,i){return e.compilerOptions.noCheck?se:lo(Qqe(e,t,r,i),e.program.getProgramDiagnostics(t))}function Qqe(e,t,r,i){i??(i=e.semanticDiagnosticsPerFile);const o=t.resolvedPath,s=i.get(o);if(s)return k3(s,e.compilerOptions);const l=e.program.getBindAndCheckDiagnostics(t,r);return i.set(o,l),e.buildInfoEmitPending=!0,k3(l,e.compilerOptions)}function Dse(e){var t;return!!((t=e.options)!=null&&t.outFile)}function sO(e){return!!e.fileNames}function Zqe(e){return!sO(e)&&!!e.root}function jAe(e){e.hasErrors===void 0&&(wS(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)})&&(UAe(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!=null&&o.length)||!!((i=(r=e.emitDiagnosticsPerFile)==null?void 0:r.get(t.resolvedPath))!=null&&i.length)})||UAe(e))}function UAe(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function HAe(e){return jAe(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}function eJe(e){var t,r;const i=e.program.getCurrentDirectory(),o=ci(So(c0(e.compilerOptions),i)),s=e.latestChangedDtsFile?F(e.latestChangedDtsFile):void 0,l=[],u=new Map,d=new Set(e.program.getRootFileNames().map(X=>ks(X,i,e.program.getCanonicalFileName)));if(jAe(e),!wS(e.compilerOptions))return{root:Co(d,Ce=>O(Ce)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Le};const g=[];if(e.compilerOptions.outFile){const X=Co(e.fileInfos.entries(),([Je,Se])=>{const re=G(Je);return J(Je,re),Se.impliedFormat?{version:Se.version,impliedFormat:Se.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Se.version});return{fileNames:l,fileInfos:X,root:g,resolvedRoot:Z(),options:q(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:ie(),emitDiagnosticsPerFile:K(),changeFileSet:xe(),outSignature:e.outSignature,latestChangedDtsFile:s,pendingEmit:e.programEmitPending?e.programEmitPending===Bb(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Le}}let h,y,E;const A=Co(e.fileInfos.entries(),([X,Ce])=>{var Je,Se;const re=G(X);J(X,re),C.assert(l[re-1]===O(X));const be=(Je=e.oldSignatures)==null?void 0:Je.get(X),Ne=be!==void 0?be||void 0:Ce.signature;if(e.compilerOptions.composite){const Be=e.program.getSourceFileByPath(X);if(!Ff(Be)&&CS(Be,e.program)){const lt=(Se=e.emitSignatures)==null?void 0:Se.get(X);lt!==Ne&&(E=Un(E,lt===void 0?re:[re,!Bo(lt)&<[0]===Ne?se:lt]))}}return Ce.version===Ne?Ce.affectsGlobalScope||Ce.impliedFormat?{version:Ce.version,signature:void 0,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:Ce.version:Ne!==void 0?be===void 0?Ce:{version:Ce.version,signature:Ne,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}:{version:Ce.version,signature:!1,affectsGlobalScope:Ce.affectsGlobalScope,impliedFormat:Ce.impliedFormat}});let R;(t=e.referencedMap)!=null&&t.size()&&(R=Co(e.referencedMap.keys()).sort(Wd).map(X=>[G(X),j(e.referencedMap.getValues(X))]));const N=ie();let P;if((r=e.affectedFilesPendingEmit)!=null&&r.size){const X=Bb(e.compilerOptions),Ce=new Set;for(const Je of Co(e.affectedFilesPendingEmit.keys()).sort(Wd))if(rh(Ce,Je)){const Se=e.program.getSourceFileByPath(Je);if(!Se||!CS(Se,e.program))continue;const re=G(Je),be=e.affectedFilesPendingEmit.get(Je);P=Un(P,be===X?re:be===24?[re]:[re,be])}}return{fileNames:l,fileIdsList:h,fileInfos:A,root:g,resolvedRoot:Z(),options:q(e.compilerOptions),referencedMap:R,semanticDiagnosticsPerFile:N,emitDiagnosticsPerFile:K(),changeFileSet:xe(),affectedFilesPendingEmit:P,emitSignatures:E,latestChangedDtsFile:s,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:Le};function F(X){return O(So(X,i))}function O(X){return HE(cf(o,X,e.program.getCanonicalFileName))}function G(X){let Ce=u.get(X);return Ce===void 0&&(l.push(O(X)),u.set(X,Ce=l.length)),Ce}function j(X){const Ce=Co(X.keys(),G).sort(js),Je=Ce.join();let Se=y==null?void 0:y.get(Je);return Se===void 0&&(h=Un(h,Ce),(y??(y=new Map)).set(Je,Se=h.length)),Se}function J(X,Ce){const Je=e.program.getSourceFile(X);if(!e.program.getFileIncludeReasons().get(Je.path).some(Ne=>Ne.kind===0))return;if(!g.length)return g.push(Ce);const Se=g[g.length-1],re=Mo(Se);if(re&&Se[1]===Ce-1)return Se[1]=Ce;if(re||g.length===1||Se!==Ce-1)return g.push(Ce);const be=g[g.length-2];return!eb(be)||be!==Se-1?g.push(Ce):(g[g.length-2]=[be,Ce],g.length=g.length-1)}function Z(){let X;return d.forEach(Ce=>{const Je=e.program.getSourceFileByPath(Ce);Je&&Ce!==Je.resolvedPath&&(X=Un(X,[G(Je.resolvedPath),G(Ce)]))}),X}function q(X){let Ce;const{optionsNameMap:Je}=OD();for(const Se of Fh(X).sort(Wd)){const re=Je.get(Se.toLowerCase());re!=null&&re.affectsBuildInfo&&((Ce||(Ce={}))[Se]=ye(re,X[Se]))}return Ce}function ye(X,Ce){if(X){if(C.assert(X.type!=="listOrElement"),X.type==="list"){const Je=Ce;if(X.element.isFilePath&&Je.length)return Je.map(F)}else if(X.isFilePath)return F(Ce)}return Ce}function ie(){let X;return e.fileInfos.forEach((Ce,Je)=>{const Se=e.semanticDiagnosticsPerFile.get(Je);Se?Se.length&&(X=Un(X,[G(Je),pe(Se,Je)])):e.changedFilesSet.has(Je)||(X=Un(X,G(Je)))}),X}function K(){var X;let Ce;if(!((X=e.emitDiagnosticsPerFile)!=null&&X.size))return Ce;for(const Je of Co(e.emitDiagnosticsPerFile.keys()).sort(Wd)){const Se=e.emitDiagnosticsPerFile.get(Je);Ce=Un(Ce,[G(Je),pe(Se,Je)])}return Ce}function pe(X,Ce){return C.assert(!!X.length),X.map(Je=>{const Se=de(Je,Ce);Se.reportsUnnecessary=Je.reportsUnnecessary,Se.reportDeprecated=Je.reportsDeprecated,Se.source=Je.source,Se.skippedOn=Je.skippedOn;const{relatedInformation:re}=Je;return Se.relatedInformation=re?re.length?re.map(be=>de(be,Ce)):[]:void 0,Se})}function de(X,Ce){const{file:Je}=X;return{...X,file:Je?Je.resolvedPath===Ce?void 0:O(Je.resolvedPath):!1,messageText:Bo(X.messageText)?X.messageText:fe(X.messageText)}}function fe(X){if(X.repopulateInfo)return{info:X.repopulateInfo(),next:ve(X.next)};const Ce=ve(X.next);return Ce===X.next?X:{...X,next:Ce}}function ve(X){return X&&($e(X,(Ce,Je)=>{const Se=fe(Ce);if(Ce===Se)return;const re=Je>0?X.slice(0,Je-1):[];re.push(Se);for(let be=Je+1;be(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Cse||{});function F3(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()):Mo(e)?(d=i,u=oO({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||se}}function qAe(e,t){return(t==null?void 0:t.sourceMapUrlPos)!==void 0?e.substring(0,t.sourceMapUrlPos):e}function NH(e,t,r,i,o){var s;r=qAe(r,o);let l;return(s=o==null?void 0:o.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(g=>`${d(g)}${K8[g.category]}${g.code}: ${u(g.messageText)}`).join(` `)),(i.createHash??S2)(r);function u(g){return Bo(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` `):g.messageText}function d(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(l===void 0&&(l=ci(t.resolvedPath)),`${HE(cf(l,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function tJe(e,t,r){return(t.createHash??S2)(qAe(e,r))}function MH(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=qqe(t,s);t.getBuildInfo=()=>eJe(Uqe(l)),t=void 0,i=void 0,s=void 0;const u=kH(l,o);return u.state=l,u.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,u.getAllDependencies=F=>_h.getAllDependencies(l,C.checkDefined(l.program),F),u.getSemanticDiagnostics=k,u.getDeclarationDiagnostics=N,u.emit=A,u.releaseProgram=()=>Jqe(l),e===0?u.getSemanticDiagnosticsOfNextAffectedFile=P:e===1?(u.getSemanticDiagnosticsOfNextAffectedFile=P,u.emitNextAffectedFile=y,u.emitBuildInfo=d):_a(),u;function d(F,O){if(C.assert(JD(l)),HAe(l)){const G=l.program.emitBuildInfo(F||oa(r,r.writeFile),O);return l.buildInfoEmitPending=!1,G}return IH}function g(F,O,G,j,J){var Z,q,ye,ie;C.assert(JD(l));let K=FAe(l,O,r);const pe=Bb(l.compilerOptions);let de=J?8:G?pe&56:pe;if(!K){if(l.compilerOptions.outFile){if(l.programEmitPending&&(de=W3(l.programEmitPending,l.seenProgramEmit,G,J),de&&(K=l.program)),!K&&((Z=l.emitDiagnosticsPerFile)!=null&&Z.size)){const xe=l.seenProgramEmit||0;if(!(xe&DH(J))){l.seenProgramEmit=DH(J)|xe;const X=[];return l.emitDiagnosticsPerFile.forEach(Ce=>Xr(X,Ce)),{result:{emitSkipped:!0,diagnostics:X},affected:l.program}}}}else{const xe=Kqe(l,G,J);if(xe)({affectedFile:K,emitKind:de}=xe);else{const X=Xqe(l,J);if(X)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(X.affectedFile.resolvedPath,X.seenKind|DH(J)),{result:{emitSkipped:!0,diagnostics:X.diagnostics},affected:X.affectedFile}}}if(!K){if(J||!HAe(l))return;const xe=l.program,X=xe.emitBuildInfo(F||oa(r,r.writeFile),O);return l.buildInfoEmitPending=!1,{result:X,affected:xe}}}let fe;de&7&&(fe=0),de&56&&(fe=fe===void 0?1:void 0);const ve=J?{emitSkipped:!0,diagnostics:l.program.getDeclarationDiagnostics(K===l.program?void 0:K,O)}:l.program.emit(K===l.program?void 0:K,E(F,j),O,fe,j,void 0,!0);if(K!==l.program){const xe=K;l.seenAffectedFiles.add(xe.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;const X=((q=l.seenEmittedFiles)==null?void 0:q.get(xe.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(xe.resolvedPath,de|X);const Ce=((ye=l.affectedFilesPendingEmit)==null?void 0:ye.get(xe.resolvedPath))||pe,Je=O3(Ce,de|X);Je?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(xe.resolvedPath,Je):(ie=l.affectedFilesPendingEmit)==null||ie.delete(xe.resolvedPath),ve.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(xe.resolvedPath,ve.diagnostics)}else l.changedFilesSet.clear(),l.programEmitPending=l.changedFilesSet.size?O3(pe,de):l.programEmitPending?O3(l.programEmitPending,de):void 0,l.seenProgramEmit=de|(l.seenProgramEmit||0),h(ve.diagnostics),l.buildInfoEmitPending=!0;return{result:ve,affected:K}}function h(F){let O;F.forEach(G=>{if(!G.file)return;let j=O==null?void 0:O.get(G.file.resolvedPath);j||(O??(O=new Map)).set(G.file.resolvedPath,j=[]),j.push(G)}),O&&(l.emitDiagnosticsPerFile=O)}function y(F,O,G,j){return g(F,O,G,j,!1)}function E(F,O){return C.assert(JD(l)),_p(l.compilerOptions)?(G,j,J,Z,q,ye)=>{var ie,K,pe;if(ad(G))if(l.compilerOptions.outFile){if(l.compilerOptions.composite){const fe=de(l.outSignature,void 0);if(!fe)return ye.skippedDtsWrite=!0;l.outSignature=fe}}else{C.assert((q==null?void 0:q.length)===1);let fe;if(!O){const ve=q[0],xe=l.fileInfos.get(ve.resolvedPath);if(xe.signature===ve.version){const X=NH(l.program,ve,j,r,ye);(ie=ye==null?void 0:ye.diagnostics)!=null&&ie.length||(fe=X),X!==ve.version&&(r.storeSignatureInfo&&(l.signatureInfo??(l.signatureInfo=new Map)).set(ve.resolvedPath,1),l.affectedFiles&&((K=l.oldSignatures)==null?void 0:K.get(ve.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(ve.resolvedPath,xe.signature||!1),xe.signature=X)}}if(l.compilerOptions.composite){const ve=q[0].resolvedPath;if(fe=de((pe=l.emitSignatures)==null?void 0:pe.get(ve),fe),!fe)return ye.skippedDtsWrite=!0;(l.emitSignatures??(l.emitSignatures=new Map)).set(ve,fe)}}F?F(G,j,J,Z,q,ye):r.writeFile?r.writeFile(G,j,J,Z,q,ye):l.program.writeFile(G,j,J,Z,q,ye);function de(fe,ve){const xe=!fe||Bo(fe)?fe:fe[0];if(ve??(ve=tJe(j,r,ye)),ve===xe){if(fe===xe)return;ye?ye.differsOnlyInMap=!0:ye={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=G;return ve}}:F||oa(r,r.writeFile)}function A(F,O,G,j,J){C.assert(JD(l)),e===1&&Ase(l,F);const Z=xH(u,F,O,G);if(Z)return Z;if(!F)if(e===1){let ye=[],ie=!1,K,pe=[],de;for(;de=y(O,G,j,J);)ie=ie||de.result.emitSkipped,K=Xr(K,de.result.diagnostics),pe=Xr(pe,de.result.emittedFiles),ye=Xr(ye,de.result.sourceMaps);return{emitSkipped:ie,diagnostics:K||se,emittedFiles:pe,sourceMaps:ye}}else zAe(l,j,!1);const q=l.program.emit(F,E(O,J),G,j,J);return R(F,j,!1,q.diagnostics),q}function R(F,O,G,j){!F&&e!==1&&(zAe(l,O,G),h(j))}function N(F,O){var G;if(C.assert(JD(l)),e===1){Ase(l,F);let j,J;for(;j=g(void 0,O,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)||se}else{const j=l.program.getDeclarationDiagnostics(F,O);return R(F,void 0,!0,j),j}}function P(F,O){for(C.assert(JD(l));;){const G=FAe(l,F,r);let j;if(G)if(G!==l.program){const J=G;if((!O||!O(J))&&(j=CH(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,CH(l,q,F,Z))),l.semanticDiagnosticsPerFile=Z,j=J||se,l.changedFilesSet.clear(),l.programEmitPending=Bb(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,O){if(C.assert(JD(l)),Ase(l,F),F)return CH(l,F,O);for(;;){const j=P(O);if(!j)break;if(j.affected===l.program)return j.result}let G;for(const j of l.program.getSourceFiles())G=Xr(G,CH(l,j,O));return l.checkPending&&!l.compilerOptions.noCheck&&(l.checkPending=void 0,l.buildInfoEmitPending=!0),G||se}}function PH(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 Nse(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 Mse(e,t){return eb(e)?t:e[1]||24}function Pse(e,t){return e||Bb(t||{})}function Lse(e,t,r){var i,o,s,l;const u=ci(So(t,r.getCurrentDirectory())),d=Fd(r.useCaseSensitiveFileNames());let g;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(Bt(e.changeFileSet,k));if(Dse(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)}),g={fileInfos:A,compilerOptions:e.options?J4(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:Pse(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,ye)=>{const ie=k(ye+1),K=Nse(q);A.set(ie,K),J&&K.signature&&J.set(ie,K.signature)}),(l=e.emitSignatures)==null||l.forEach(q=>{if(eb(q))J.delete(k(q));else{const ye=k(q[0]);J.set(ye,!Bo(q[1])&&!q[1].length?[J.get(ye)]:q[1])}});const Z=e.affectedFilesPendingEmit?Bb(e.options||{}):void 0;g={fileInfos:A,compilerOptions:e.options?J4(e.options,P):{},referencedMap:O(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:G(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:j(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:R,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&AR(e.affectedFilesPendingEmit,q=>k(eb(q)?q:q[0]),q=>Mse(q,Z)),latestChangedDtsFile:E,emitSignatures:J!=null&&J.size?J:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:g,getProgram:_a,getProgramOrUndefined:pS,releaseProgram:gs,getCompilerOptions:()=>g.compilerOptions,getSourceFile:_a,getSourceFiles:_a,getOptionsDiagnostics:_a,getGlobalDiagnostics:_a,getConfigFileParsingDiagnostics:_a,getSyntacticDiagnostics:_a,getDeclarationDiagnostics:_a,getSemanticDiagnostics:_a,emit:_a,getAllDependencies:_a,getCurrentDirectory:_a,emitNextAffectedFile:_a,getSemanticDiagnosticsOfNextAffectedFile:_a,emitBuildInfo:_a,close:gs,hasChangedEmitSignature:Zg};function N(J){return ks(J,u,d)}function P(J){return So(J,u)}function k(J){return h[J-1]}function F(J){return y[J-1]}function O(J,Z){const q=_h.createReferencedMap(Z);return!q||!J||J.forEach(([ye,ie])=>q.set(k(ye),F(ie))),q}function G(J){const Z=new Map(cm(A.keys(),q=>R.has(q)?void 0:[q,se]));return J==null||J.forEach(q=>{eb(q)?Z.delete(k(q)):Z.set(k(q[0]),q[1])}),Z}function j(J){return J&&AR(J,Z=>k(Z[0]),Z=>Z[1])}}function LH(e,t,r){const i=ci(So(t,r.getCurrentDirectory())),o=Fd(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=ks(e.fileNames[y],i,o),A=Bo(h)?h:h.version;if(s.set(E,A),lks(s,i,o))}function kH(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:_a,getCurrentDirectory:()=>r().getCurrentDirectory(),close:gs};function r(){return C.checkDefined(e.program)}}function JAe(e,t,r,i,o,s){return MH(0,F3(e,t,r,i,o,s))}function wH(e,t,r,i,o,s){return MH(1,F3(e,t,r,i,o,s))}function KAe(e,t,r,i,o,s){const{newProgram:l,configFileParsingDiagnostics:u}=F3(e,t,r,i,o,s);return kH({program:l,compilerOptions:l.getCompilerOptions()},u)}function z3(e){return nl(e,"/node_modules/.staging")?RR(e,"/.staging"):vt($8,t=>e.includes(t))?void 0:e}function wse(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-z]:/i)===0;if(e[0]!==Js&&!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 OH(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const r=wse(e,t);return t>r+1}function lO(e){return OH(zd(e))}function Ose(e){return YAe(ci(e))}function XAe(e,t){if(t.lengtho.length+1?Fse(g,d,Math.max(o.length+1,h+1),E):{dir:r,dirPath:i,nonRecursive:!0}:$Ae(g,d,d.length-1,h,y,o,E,u)}function $Ae(e,t,r,i,o,s,l,u){if(o!==-1)return Fse(e,t,o+1,l);let d=!0,g=r;if(!u){for(let h=0;h=r&&i+2nJe(i,o,s,e,r,t,l)}}function nJe(e,t,r,i,o,s,l){const u=B3(e),d=P1(r,i,o,u,t,s,l);if(!e.getGlobalTypingsCacheLocation)return d;const g=e.getGlobalTypingsCacheLocation();if(g!==void 0&&!td(r)&&!(d.resolvedModule&&X6(d.resolvedModule.extension))){const{resolvedModule:h,failedLookupLocations:y,affectingLocations:E,resolutionDiagnostics:A}=Qoe(C.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,u,g,t);if(h)return d.resolvedModule=h,d.failedLookupLocations=WD(d.failedLookupLocations,y),d.affectingLocations=WD(d.affectingLocations,E),d.resolutionDiagnostics=WD(d.resolutionDiagnostics,A),d}return d}function FH(e,t,r){let i,o,s;const l=new Set,u=new Set,d=new Set,g=new Map,h=new Map;let y=!1,E,A,R,N,P,k=!1;const F=Nu(()=>e.getCurrentDirectory()),O=e.getCachedDirectoryStructureHost(),G=new Map,j=zD(F(),e.getCanonicalFileName,e.getCompilationSettings()),J=new Map,Z=r3(F(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache(),j.optionsToRedirectsKey),q=new Map,ye=zD(F(),e.getCanonicalFileName,vU(e.getCompilationSettings()),j.getPackageJsonInfoCache()),ie=new Map,K=new Map,pe=Bse(t,F),de=e.toPath(pe),fe=zd(de),ve=OH(fe),xe=new Map,X=new Map,Ce=new Map,Je=new Map;return{rootDirForResolution:t,resolvedModuleNames:G,resolvedTypeReferenceDirectives:J,resolvedLibraries:q,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:d,directoryWatchesOfFailedLookups:ie,fileWatchesOfAffectingLocations:K,packageDirWatchers:X,dirPathToSymlinkPackageRefCount:Ce,watchFailedLookupLocationsOfExternalModuleResolutions:en,getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:be,finishRecordingFilesWithChangedResolutions:Ne,startCachingPerDirectoryResolution:ce,finishCachingPerDirectoryResolution:ge,resolveModuleNameLiterals:cn,resolveTypeReferenceDirectiveReferences:Wt,resolveLibrary:gn,resolveSingleModuleNameWithoutWatching:Kn,removeResolutionsFromProjectReferenceRedirects:ai,removeResolutionsOfFile:Hi,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:Ia,invalidateResolutionsOfFailedLookupLocations:Ft,setFilesWithInvalidatedNonRelativeUnresolvedImports:Pn,createHasInvalidatedResolutions:lt,isFileWithInvalidatedNonRelativeUnresolvedImports:Be,updateTypeRootsWatch:dt,closeTypeRootsWatch:Fe,clear:Se,onChangesAffectModuleResolution:re};function Se(){hp(ie,Kf),hp(K,Kf),xe.clear(),X.clear(),Ce.clear(),l.clear(),Fe(),G.clear(),J.clear(),g.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()),ye.clear(),h.clear(),q.clear(),y=!1}function re(){k=!0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),Z.update(e.getCompilationSettings())}function be(){i=[]}function Ne(){const Ue=i;return i=void 0,Ue}function Be(Ue){if(!s)return!1;const Rt=s.get(Ue);return!!Rt&&!!Rt.length}function lt(Ue,Rt){Ft();const It=o;return o=void 0,{hasInvalidatedResolutions:Ot=>Ue(Ot)||k||!!(It!=null&&It.has(Ot))||Be(Ot),hasInvalidatedLibResolutions:Ot=>{var nt;return Rt(Ot)||!!((nt=q==null?void 0:q.get(Ot))!=null&&nt.isInvalidated)}}}function ce(){j.isReadonly=void 0,Z.isReadonly=void 0,ye.isReadonly=void 0,j.getPackageJsonInfoCache().isReadonly=void 0,j.clearAllExceptPackageJsonInfoCache(),Z.clearAllExceptPackageJsonInfoCache(),ye.clearAllExceptPackageJsonInfoCache(),Ai(),xe.clear()}function Re(Ue){q.forEach((Rt,It)=>{var Ot;(Ot=Ue==null?void 0:Ue.resolvedLibReferences)!=null&&Ot.has(It)||(At(Rt,e.toPath(M3(e.getCompilationSettings(),F(),It)),pI),q.delete(It))})}function ge(Ue,Rt){s=void 0,k=!1,Ai(),Ue!==Rt&&(Re(Ue),Ue==null||Ue.getSourceFiles().forEach(It=>{var Ot;const nt=((Ot=It.packageJsonLocations)==null?void 0:Ot.length)??0,Kt=h.get(It.resolvedPath)??se;for(let Tr=Kt.length;Trnt)for(let Tr=nt;Tr{const nt=Ue==null?void 0:Ue.getSourceFileByPath(Ot);(!nt||nt.resolvedPath!==Ot)&&(It.forEach(Kt=>K.get(Kt).files--),h.delete(Ot))})),ie.forEach(Ge),K.forEach(We),X.forEach(je),y=!1,j.isReadonly=!0,Z.isReadonly=!0,ye.isReadonly=!0,j.getPackageJsonInfoCache().isReadonly=!0,xe.clear()}function je(Ue,Rt){Ue.dirPathToWatcher.size===0&&X.delete(Rt)}function Ge(Ue,Rt){Ue.refCount===0&&(ie.delete(Rt),Ue.watcher.close())}function We(Ue,Rt){var It;Ue.files===0&&Ue.resolutions===0&&!((It=Ue.symlinks)!=null&&It.size)&&(K.delete(Rt),Ue.watcher.close())}function at({entries:Ue,containingFile:Rt,containingSourceFile:It,redirectedReference:Ot,options:nt,perFileCache:Kt,reusedNames:Tr,loader:Oe,getResolutionWithResolvedFileName:Nt,deferWatchingNonRelativeResolution:he,shouldRetryResolution:B,logChanges:Ae}){var te;const xt=e.toPath(Rt),Xt=Kt.get(xt)||Kt.set(xt,FD()).get(xt),Pe=[],yt=Ae&&Be(xt),Gt=e.getCurrentProgram(),gr=Gt&&((te=Gt.getRedirectFromSourceFile(Rt))==null?void 0:te.resolvedRef),nr=gr?!Ot||Ot.sourceFile.path!==gr.sourceFile.path:!!Ot,Jn=FD();for(const Mt of Ue){const jt=Oe.nameAndMode.getName(Mt),Qt=Oe.nameAndMode.getMode(Mt,It,(Ot==null?void 0:Ot.commandLine.options)||nt);let In=Xt.get(jt,Qt);if(!Jn.has(jt,Qt)&&(k||nr||!In||In.isInvalidated||yt&&!td(jt)&&B(In))){const yn=In;In=Oe.resolve(jt,Qt),e.onDiscoveredSymlink&&rJe(In)&&e.onDiscoveredSymlink(),Xt.set(jt,Qt,In),In!==yn&&(en(jt,In,xt,Nt,he),yn&&At(yn,xt,Nt)),Ae&&i&&!ft(yn,In)&&(i.push(xt),Ae=!1)}else{const yn=B3(e);if(wb(nt,yn)&&!Jn.has(jt,Qt)){const wt=Nt(In);xo(yn,Kt===G?wt!=null&&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!=null&&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,jt,Rt,wt==null?void 0:wt.resolvedFileName,(wt==null?void 0:wt.packageId)&&wT(wt.packageId))}}C.assert(In!==void 0&&!In.isInvalidated),Jn.set(jt,Qt,!0),Pe.push(In)}return Tr==null||Tr.forEach(Mt=>Jn.set(Oe.nameAndMode.getName(Mt),Oe.nameAndMode.getMode(Mt,It,(Ot==null?void 0:Ot.commandLine.options)||nt),!0)),Xt.size()!==Jn.size()&&Xt.forEach((Mt,jt,Qt)=>{Jn.has(jt,Qt)||(At(Mt,xt,Nt),Xt.delete(jt,Qt))}),Pe;function ft(Mt,jt){if(Mt===jt)return!0;if(!Mt||!jt)return!1;const Qt=Nt(Mt),In=Nt(jt);return Qt===In?!0:!Qt||!In?!1:Qt.resolvedFileName===In.resolvedFileName}}function Wt(Ue,Rt,It,Ot,nt,Kt){return at({entries:Ue,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Kt,perFileCache:J,loader:N3(Rt,It,Ot,B3(e),Z),getResolutionWithResolvedFileName:MF,shouldRetryResolution:Tr=>Tr.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function cn(Ue,Rt,It,Ot,nt,Kt){return at({entries:Ue,containingFile:Rt,containingSourceFile:nt,redirectedReference:It,options:Ot,reusedNames:Kt,perFileCache:G,loader:Gse(Rt,It,Ot,e,j),getResolutionWithResolvedFileName:pI,shouldRetryResolution:Tr=>!Tr.resolvedModule||!EM(Tr.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function gn(Ue,Rt,It,Ot){const nt=B3(e);let Kt=q==null?void 0:q.get(Ot);if(!Kt||Kt.isInvalidated){const Tr=Kt;Kt=i3(Ue,Rt,It,nt,ye);const Oe=e.toPath(Rt);en(Ue,Kt,Oe,pI,!1),q.set(Ot,Kt),Tr&&At(Tr,Oe,pI)}else if(wb(It,nt)){const Tr=pI(Kt);xo(nt,Tr!=null&&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,Ue,Rt,Tr==null?void 0:Tr.resolvedFileName,(Tr==null?void 0:Tr.packageId)&&wT(Tr.packageId))}return Kt}function Kn(Ue,Rt){var It,Ot;const nt=e.toPath(Rt),Kt=G.get(nt),Tr=Kt==null?void 0:Kt.get(Ue,void 0);if(Tr&&!Tr.isInvalidated)return Tr;const Oe=(It=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:It.call(e,j),Nt=B3(e),he=P1(Ue,Rt,e.getCompilationSettings(),Nt,j);return(Ot=e.afterResolveSingleModuleNameWithoutWatching)==null||Ot.call(e,j,Ue,Rt,he,Oe),he}function gt(Ue){return nl(Ue,"/node_modules/@types")}function en(Ue,Rt,It,Ot,nt){if((Rt.files??(Rt.files=new Set)).add(It),Rt.files.size!==1)return;!nt||td(Ue)?Di(Rt):l.add(Rt);const Kt=Ot(Rt);if(Kt&&Kt.resolvedFileName){const Tr=e.toPath(Kt.resolvedFileName);let Oe=g.get(Tr);Oe||g.set(Tr,Oe=new Set),Oe.add(Rt)}}function or(Ue,Rt){const It=e.toPath(Ue),Ot=WH(Ue,It,pe,de,fe,ve,F,e.preferNonRecursiveWatch);if(Ot){const{dir:nt,dirPath:Kt,nonRecursive:Tr,packageDir:Oe,packageDirPath:Nt}=Ot;Kt===de?(C.assert(Tr),C.assert(!Oe),Rt=!0):Pr(nt,Kt,Oe,Nt,Tr)}return Rt}function Di(Ue){var Rt;C.assert(!!((Rt=Ue.files)!=null&&Rt.size));const{failedLookupLocations:It,affectingLocations:Ot,alternateResult:nt}=Ue;if(!(It!=null&&It.length)&&!(Ot!=null&&Ot.length)&&!nt)return;(It!=null&&It.length||nt)&&u.add(Ue);let Kt=!1;if(It)for(const Tr of It)Kt=or(Tr,Kt);nt&&(Kt=or(nt,Kt)),Kt&&Pr(pe,de,void 0,void 0,!0),co(Ue,!(It!=null&&It.length)&&!nt)}function co(Ue,Rt){var It;C.assert(!!((It=Ue.files)!=null&&It.size));const{affectingLocations:Ot}=Ue;if(Ot!=null&&Ot.length){Rt&&d.add(Ue);for(const nt of Ot)zt(nt,!0)}}function zt(Ue,Rt){const It=K.get(Ue);if(It){Rt?It.resolutions++:It.files++;return}let Ot=Ue,nt=!1,Kt;e.realpath&&(Ot=e.realpath(Ue),Ue!==Ot&&(nt=!0,Kt=K.get(Ot)));const Tr=Rt?1:0,Oe=Rt?0:1;if(!nt||!Kt){const Nt={watcher:Wse(e.toPath(Ot))?e.watchAffectingFileLocation(Ot,(he,B)=>{O==null||O.addOrDeleteFile(he,e.toPath(Ot),B),Zr(Ot,j.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):XD,resolutions:nt?0:Tr,files:nt?0:Oe,symlinks:void 0};K.set(Ot,Nt),nt&&(Kt=Nt)}if(nt){C.assert(!!Kt);const Nt={watcher:{close:()=>{var he;const B=K.get(Ot);(he=B==null?void 0:B.symlinks)!=null&&he.delete(Ue)&&!B.symlinks.size&&!B.resolutions&&!B.files&&(K.delete(Ot),B.watcher.close())}},resolutions:Tr,files:Oe,symlinks:void 0};K.set(Ue,Nt),(Kt.symlinks??(Kt.symlinks=new Set)).add(Ue)}}function Zr(Ue,Rt){var It;const Ot=K.get(Ue);Ot!=null&&Ot.resolutions&&(A??(A=new Set)).add(Ue),Ot!=null&&Ot.files&&(E??(E=new Set)).add(Ue),(It=Ot==null?void 0:Ot.symlinks)==null||It.forEach(nt=>Zr(nt,Rt)),Rt==null||Rt.delete(e.toPath(Ue))}function Ai(){l.forEach(Di),l.clear()}function Ni(Ue,Rt,It,Ot,nt){C.assert(!nt);let Kt=xe.get(Ot),Tr=X.get(Ot);if(Kt===void 0){const he=e.realpath(It);Kt=he!==It&&e.toPath(he)!==Ot,xe.set(Ot,Kt),Tr?Tr.isSymlink!==Kt&&(Tr.dirPathToWatcher.forEach(B=>{mn(Tr.isSymlink?Ot:Rt),B.watcher=Nt()}),Tr.isSymlink=Kt):X.set(Ot,Tr={dirPathToWatcher:new Map,isSymlink:Kt})}else C.assertIsDefined(Tr),C.assert(Kt===Tr.isSymlink);const Oe=Tr.dirPathToWatcher.get(Rt);Oe?Oe.refCount++:(Tr.dirPathToWatcher.set(Rt,{watcher:Nt(),refCount:1}),Kt&&Ce.set(Rt,(Ce.get(Rt)??0)+1));function Nt(){return Kt?Ci(It,Ot,nt):Ci(Ue,Rt,nt)}}function Pr(Ue,Rt,It,Ot,nt){!Ot||!e.realpath?Ci(Ue,Rt,nt):Ni(Ue,Rt,It,Ot,nt)}function Ci(Ue,Rt,It){let Ot=ie.get(Rt);return Ot?(C.assert(!!It==!!Ot.nonRecursive),Ot.refCount++):ie.set(Rt,Ot={watcher:dr(Ue,Rt,It),refCount:1,nonRecursive:It}),Ot}function Ye(Ue,Rt){const It=e.toPath(Ue),Ot=WH(Ue,It,pe,de,fe,ve,F,e.preferNonRecursiveWatch);if(Ot){const{dirPath:nt,packageDirPath:Kt}=Ot;if(nt===de)Rt=!0;else if(Kt&&e.realpath){const Tr=X.get(Kt),Oe=Tr.dirPathToWatcher.get(nt);if(Oe.refCount--,Oe.refCount===0&&(mn(Tr.isSymlink?Kt:nt),Tr.dirPathToWatcher.delete(nt),Tr.isSymlink)){const Nt=Ce.get(nt)-1;Nt===0?Ce.delete(nt):Ce.set(nt,Nt)}}else mn(nt)}return Rt}function At(Ue,Rt,It){if(C.checkDefined(Ue.files).delete(Rt),Ue.files.size)return;Ue.files=void 0;const Ot=It(Ue);if(Ot&&Ot.resolvedFileName){const Oe=e.toPath(Ot.resolvedFileName),Nt=g.get(Oe);Nt!=null&&Nt.delete(Ue)&&!Nt.size&&g.delete(Oe)}const{failedLookupLocations:nt,affectingLocations:Kt,alternateResult:Tr}=Ue;if(u.delete(Ue)){let Oe=!1;if(nt)for(const Nt of nt)Oe=Ye(Nt,Oe);Tr&&(Oe=Ye(Tr,Oe)),Oe&&mn(de)}else Kt!=null&&Kt.length&&d.delete(Ue);if(Kt)for(const Oe of Kt){const Nt=K.get(Oe);Nt.resolutions--}}function mn(Ue){const Rt=ie.get(Ue);Rt.refCount--}function dr(Ue,Rt,It){return e.watchDirectoryOfFailedLookupLocation(Ue,Ot=>{const nt=e.toPath(Ot);O&&O.addOrDeleteFileOrDirectory(Ot,nt),Uo(nt,Rt===nt)},It?0:1)}function ri(Ue,Rt,It){const Ot=Ue.get(Rt);Ot&&(Ot.forEach(nt=>At(nt,Rt,It)),Ue.delete(Rt))}function ai(Ue){if(!El(Ue,".json"))return;const Rt=e.getCurrentProgram();if(!Rt)return;const It=Rt.getResolvedProjectReferenceByPath(Ue);It&&It.commandLine.fileNames.forEach(Ot=>Hi(e.toPath(Ot)))}function Hi(Ue){ri(G,Ue,pI),ri(J,Ue,MF)}function $o(Ue,Rt){if(!Ue)return!1;let It=!1;return Ue.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,vP)}}),It}function Ia(Ue){Hi(Ue);const Rt=y;$o(g.get(Ue),uS)&&y&&!Rt&&e.onChangedAutomaticTypeDirectiveNames()}function Pn(Ue){C.assert(s===Ue||s===void 0),s=Ue}function Uo(Ue,Rt){if(Rt)(P||(P=new Set)).add(Ue);else{const It=z3(Ue);if(!It||(Ue=It,e.fileIsOpen(Ue)))return!1;const Ot=ci(Ue);if(gt(Ue)||rF(Ue)||gt(Ot)||rF(Ot))(R||(R=new Set)).add(Ue),(N||(N=new Set)).add(Ue);else{if(sse(e.getCurrentProgram(),Ue)||El(Ue,".map"))return!1;(R||(R=new Set)).add(Ue),(N||(N=new Set)).add(Ue);const nt=Bw(Ue,!0);nt&&(N||(N=new Set)).add(nt)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ot(){const Ue=j.getPackageJsonInfoCache().getInternalMap();Ue&&(R||N||P)&&Ue.forEach((Rt,It)=>ht(It)?Ue.delete(It):void 0)}function Ft(){var Ue;if(k)return E=void 0,ot(),(R||N||P||A)&&$o(q,le),R=void 0,N=void 0,P=void 0,A=void 0,!0;let Rt=!1;return E&&((Ue=e.getCurrentProgram())==null||Ue.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=$o(u,le)||Rt,ot(),R=void 0,N=void 0,P=void 0,Rt=$o(d,ne)||Rt,A=void 0),Rt}function le(Ue){var Rt;return ne(Ue)?!0:!R&&!N&&!P?!1:((Rt=Ue.failedLookupLocations)==null?void 0:Rt.some(It=>ht(e.toPath(It))))||!!Ue.alternateResult&&ht(e.toPath(Ue.alternateResult))}function ht(Ue){return(R==null?void 0:R.has(Ue))||Zn((N==null?void 0:N.keys())||[],Rt=>fo(Ue,Rt)?!0:void 0)||Zn((P==null?void 0:P.keys())||[],Rt=>Ue.length>Rt.length&&fo(Ue,Rt)&&(I9(Rt)||Ue[Rt.length]===Js)?!0:void 0)}function ne(Ue){var Rt;return!!A&&((Rt=Ue.affectingLocations)==null?void 0:Rt.some(It=>A.has(It)))}function Fe(){hp(Je,Gm)}function it(Ue){return Lt(Ue)?e.watchTypeRootsDirectory(Ue,Rt=>{const It=e.toPath(Rt);O&&O.addOrDeleteFileOrDirectory(Rt,It),y=!0,e.onChangedAutomaticTypeDirectiveNames();const Ot=zse(Ue,e.toPath(Ue),de,fe,ve,F,e.preferNonRecursiveWatch,nt=>ie.has(nt)||Ce.has(nt));Ot&&Uo(It,Ot===It)},1):XD}function dt(){const Ue=e.getCompilationSettings();if(Ue.types){Fe();return}const Rt=nP(Ue,{getCurrentDirectory:F});Rt?yM(Je,new Set(Rt),{createNewValue:it,onDeleteValue:Gm}):Fe()}function Lt(Ue){return e.getCompilationSettings().typeRoots?!0:Ose(e.toPath(Ue))}}function rJe(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var QAe=jc?{getCurrentDirectory:()=>jc.getCurrentDirectory(),getNewLine:()=>jc.newLine,getCanonicalFileName:Fd(jc.useCaseSensitiveFileNames)}:void 0;function dx(e,t){const r=e===jc&&QAe?QAe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Fd(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(yH(o,r));const i=new Array(1);return o=>{i[0]=o,e.write(mse(i,r)+r.getNewLine()),i[0]=void 0}}function ZAe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&Ln(eIe,t.code)?(e.clearScreen(),!0):!1}var eIe=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code];function iJe(e,t){return Ln(eIe,e.code)?t+t:t}function cO(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function zH(e,t){return t?(r,i,o)=>{ZAe(e,r,o);let s=`[${QS(cO(e),"\x1B[90m")}] `;s+=`${s_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";ZAe(e,r,o)||(s+=i),s+=`${cO(e)} - `,s+=`${s_(r.messageText,e.newLine)}${iJe(r,i)}`,e.write(s)}}function Vse(e,t,r,i,o,s){const l=o;l.onUnRecoverableConfigFileDiagnostic=d=>rIe(o,s,d);const u=Lw(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,u}function G3(e){return _o(e,t=>t.category===1)}function V3(e){return Vn(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=hn(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 BH(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function tIe(e,t){const r=QS(":"+e.line,"\x1B[90m");return SN(e.fileName)&&SN(t)?cf(t,e.fileName,!1)+r:e.fileName+r}function GH(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]&&tIe(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=Il(...u),g=s.length>1?oJe(o,i):"";return`${r}${s_(d.messageText,r)}${r}${r}${g}`}function oJe(e,t){const r=e.filter((y,E,A)=>E===A.findIndex(R=>(R==null?void 0:R.fileName)===(y==null?void 0:y.fileName)));if(r.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,o=r.map(y=>[y,_o(e,E=>E.fileName===y.fileName)]),s=qB(o,0,y=>y[1]),l=f.Errors_Files.message,u=l.split(" ")[0].length,d=Math.max(u,i(s)),g=Math.max(i(s)-u,0);let h="";return h+=" ".repeat(g)+l+` `,o.forEach(y=>{const[E,A]=y,R=Math.log(A)*Math.LOG10E+1|0,N=R{t(i.fileName)})}function jH(e,t){var r,i;const o=e.getFileIncludeReasons(),s=l=>EN(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(const l of e.getSourceFiles())t(`${KD(l,s)}`),(r=o.get(l.path))==null||r.forEach(u=>t(` ${JH(e,u,s).messageText}`)),(i=UH(l,e.getCompilerOptionsForFile(l),s))==null||i.forEach(u=>t(` ${u.messageText}`))}function UH(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,KD(e.originalFileName,r))),e.redirectInfo&&(o??(o=[])).push(qo(void 0,f.File_redirects_to_file_0,KD(e.redirectInfo.redirectTarget,r))),Pp(e))switch(W1(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,KD(Ba(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,KD(Ba(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 HH(e,t){var r;const i=e.getCompilerOptions().configFile;if(!((r=i==null?void 0:i.configFileSpecs)!=null&&r.validatedFilesSpec))return;const o=e.getCanonicalFileName(t),s=ci(So(i.fileName,e.getCurrentDirectory())),l=so(i.configFileSpecs.validatedFilesSpec,u=>e.getCanonicalFileName(So(u,s))===o);return l!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[l]:void 0}function qH(e,t){var r,i;const o=e.getCompilerOptions().configFile;if(!((r=o==null?void 0:o.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;const s=El(t,".json"),l=ci(So(o.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames(),d=so((i=o==null?void 0:o.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,g=>{if(s&&!nl(g,".json"))return!1;const h=OV(g,l,"files");return!!h&&ov(`(?:${h})$`,u).test(t)});return d!==-1?o.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[d]:void 0}function JH(e,t,r){var i,o;const s=e.getCompilerOptions();if(d0(t)){const l=bP(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===hb?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,KD(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=So(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(HH(e,l))return qo(void 0,f.Part_of_files_list_in_tsconfig_json);const d=qH(e,l);return Bo(d)?qo(void 0,f.Matched_by_include_pattern_0_in_1,d,KD(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 g=t.kind===2,h=C.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return qo(void 0,s.outFile?g?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:g?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,KD(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=W6(Ga(s)),E=y?[f.Default_library_for_target_0,y]:[f.Default_library];return qo(void 0,...E)}default:C.assertNever(t)}}function KD(e,t){const r=Bo(e)?e:e.fileName;return t?t(r):r}function j3(e,t,r,i,o,s,l,u){const d=e.getCompilerOptions(),g=e.getConfigFileParsingDiagnostics().slice(),h=g.length;Xr(g,e.getSyntacticDiagnostics(void 0,s)),g.length===h&&(Xr(g,e.getOptionsDiagnostics(s)),d.listFilesOnly||(Xr(g,e.getGlobalDiagnostics(s)),g.length===h&&Xr(g,e.getSemanticDiagnostics(void 0,s)),d.noEmit&&_p(d)&&g.length===h&&Xr(g,e.getDeclarationDiagnostics(void 0,s))));const y=d.listFilesOnly?{emitSkipped:!0,diagnostics:se}:e.emit(void 0,o,s,l,u);Xr(g,y.diagnostics);const E=wR(g);if(E.forEach(t),r){const A=e.getCurrentDirectory();$e(y.emittedFiles,R=>{const N=So(R,A);r(`TSFILE: ${N}`)}),aJe(e,r)}return i&&i(G3(E),V3(E)),{emitResult:y,diagnostics:E}}function KH(e,t,r,i,o,s,l,u){const{emitResult:d,diagnostics:g}=j3(e,t,r,i,o,s,l,u);return d.emitSkipped&&g.length>0?1:g.length>0?2:0}var XD={close:gs},SP=()=>XD;function XH(e=jc,t){return{onWatchStatusChange:t||zH(e),watchFile:oa(e,e.watchFile)||SP,watchDirectory:oa(e,e.watchDirectory)||SP,setTimeout:oa(e,e.setTimeout)||gs,clearTimeout:oa(e,e.clearTimeout)||gs,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var sd={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 YH(e,t){const r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):gs,o=fH(e,r,i);return o.writeLog=i,o}function $H(e,t,r=e){const i=e.useCaseSensitiveFileNames(),o={getSourceFile:_H((s,l)=>l?e.readFile(s,l):o.readFile(s),void 0),getDefaultLibLocation:oa(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:gH((s,l,u)=>e.writeFile(s,l,u),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Nu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Fd(i),getNewLine:()=>iv(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 U3(e,t){if(t.match(fae)){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||!eu(s)){i=o;continue}break}const l=t.substring(i,r);if(l.match(BU)){t=t.substring(0,i);break}else if(!l.match(GU))break;r=i}}return(e.createHash||S2)(t)}function H3(e){const t=e.getSourceFile;e.getSourceFile=(...r)=>{const i=t.call(e,...r);return i&&(i.version=U3(e,i.text)),i}}function QH(e,t){const r=Nu(()=>ci(ya(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Nu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>Qr(r(),C2(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||wH,storeSignatureInfo:e.storeSignatureInfo,now:oa(e,e.now)}}function nIe(e=jc,t,r,i){const o=l=>e.write(l+e.newLine),s=QH(e,t);return UB(s,XH(e,i)),s.afterProgramCreate=l=>{const u=l.getCompilerOptions(),d=iv(u);j3(l,r,o,g=>s.onWatchStatusChange(Il(BH(g),g),d,u,g))},s}function rIe(e,t,r){t(r),e.exit(1)}function ZH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const d=l||dx(o),g=nIe(o,s,d,u);return g.onUnRecoverableConfigFileDiagnostic=h=>rIe(o,d,h),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function eq({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:u}){const d=nIe(o,s,l||dx(o),u);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function jse(e){const t=e.system||jc,r=e.host||(e.host=J3(e.options,t)),i=Use(e),o=KH(i,e.reportDiagnostic||dx(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(GH(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}function q3(e,t){const r=c0(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=cH(r,o)}if(!(!i||i.version!==Le||!sO(i)))return Lse(i,r,t)}function J3(e,t=jc){const r=R3(e,void 0,t);return r.createHash=oa(t,t.createHash),r.storeSignatureInfo=t.storeSignatureInfo,H3(r),yP(r,i=>ks(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function Use({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||J3(t),s=s||wH;const l=q3(t,o);return s(e,t,o,l,r,i)}function iIe(e,t,r,i,o,s,l,u){return Mo(e)?eq({rootFiles:e,options:t,watchOptions:u,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):ZH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:u,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function tq(e){let t,r,i,o,s=new Map([[void 0,void 0]]),l,u,d,g,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:O,extraFileExtensions:G,createProgram:j}=e;let{rootFiles:J,options:Z,watchOptions:q,projectReferences:ye}=e,ie,K,pe=!1,de=!1;const fe=k===void 0?void 0:A3(e,P,N),ve=fe||e,xe=w3(e,ve);let X=Kn();k&&e.configFileParsingResult&&(Pn(e.configFileParsingResult),X=Kn()),Ni(f.Starting_compilation_in_watch_mode),k&&!e.configFileParsingResult&&(X=iv(F),C.assert(!J),Ia(),X=Kn()),C.assert(Z),C.assert(J);const{watchFile:Ce,watchDirectory:Je,writeLog:Se}=YH(e,Z),re=Fd(N);Se(`Current directory: ${P} CaseSensitiveFileNames: ${N}`);let be;k&&(be=Ce(k,dr,2e3,q,sd.ConfigFile));const Ne=$H(e,()=>Z,ve);H3(Ne);const Be=Ne.getSourceFile;Ne.getSourceFile=(It,...Ot)=>co(It,gt(It),...Ot),Ne.getSourceFileByPath=co,Ne.getNewLine=()=>X,Ne.fileExists=Di,Ne.onReleaseOldSourceFile=Ai,Ne.onReleaseParsedCommandLine=Ft,Ne.toPath=gt,Ne.getCompilationSettings=()=>Z,Ne.useSourceOfProjectReferenceRedirect=oa(e,e.useSourceOfProjectReferenceRedirect),Ne.preferNonRecursiveWatch=e.preferNonRecursiveWatch,Ne.watchDirectoryOfFailedLookupLocation=(It,Ot,nt)=>Je(It,Ot,nt,q,sd.FailedLookupLocations),Ne.watchAffectingFileLocation=(It,Ot)=>Ce(It,Ot,2e3,q,sd.AffectingFileLocation),Ne.watchTypeRootsDirectory=(It,Ot,nt)=>Je(It,Ot,nt,q,sd.TypeRoots),Ne.getCachedDirectoryStructureHost=()=>fe,Ne.scheduleInvalidateResolutionsOfFailedLookupLocations=Ye,Ne.onInvalidatedResolution=mn,Ne.onChangedAutomaticTypeDirectiveNames=mn,Ne.fileIsOpen=Zg,Ne.getCurrentProgram=at,Ne.writeLog=Se,Ne.getParsedCommandLine=Uo;const lt=FH(Ne,k?ci(So(k,P)):P,!1);Ne.resolveModuleNameLiterals=oa(e,e.resolveModuleNameLiterals),Ne.resolveModuleNames=oa(e,e.resolveModuleNames),!Ne.resolveModuleNameLiterals&&!Ne.resolveModuleNames&&(Ne.resolveModuleNameLiterals=lt.resolveModuleNameLiterals.bind(lt)),Ne.resolveTypeReferenceDirectiveReferences=oa(e,e.resolveTypeReferenceDirectiveReferences),Ne.resolveTypeReferenceDirectives=oa(e,e.resolveTypeReferenceDirectives),!Ne.resolveTypeReferenceDirectiveReferences&&!Ne.resolveTypeReferenceDirectives&&(Ne.resolveTypeReferenceDirectiveReferences=lt.resolveTypeReferenceDirectiveReferences.bind(lt)),Ne.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):lt.resolveLibrary.bind(lt),Ne.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?oa(e,e.getModuleResolutionCache):()=>lt.getModuleResolutionCache();const Re=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?oa(e,e.hasInvalidatedResolutions)||uS:Zg,ge=e.resolveLibrary?oa(e,e.hasInvalidatedLibResolutions)||uS:Zg;return t=q3(Z,Ne),Wt(),k?{getCurrentProgram:We,getProgram:ai,close:je,getResolutionCache:Ge}:{getCurrentProgram:We,getProgram:ai,updateRootFileNames:gn,close:je,getResolutionCache:Ge};function je(){Ci(),lt.clear(),hp(E,It=>{It&&It.fileWatcher&&(It.fileWatcher.close(),It.fileWatcher=void 0)}),be&&(be.close(),be=void 0),h==null||h.clear(),h=void 0,g&&(hp(g,Kf),g=void 0),o&&(hp(o,Kf),o=void 0),i&&(hp(i,Gm),i=void 0),d&&(hp(d,It=>{var Ot;(Ot=It.watcher)==null||Ot.close(),It.watcher=void 0,It.watchedDirectories&&hp(It.watchedDirectories,Kf),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(){Se("Synchronizing program"),C.assert(Z),C.assert(J),Ci();const It=We();R&&(X=Kn(),It&&CF(It.getCompilerOptions(),Z)&<.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Ot,hasInvalidatedLibResolutions:nt}=lt.createHasInvalidatedResolutions(Re,ge),{originalReadFile:Kt,originalFileExists:Tr,originalDirectoryExists:Oe,originalCreateDirectory:Nt,originalWriteFile:he,readFileWithCache:B}=yP(Ne,gt);return AH(at(),J,Z,Ae=>Zr(Ae,B),Ae=>Ne.fileExists(Ae),Ot,nt,Pr,Uo,ye)?de&&(y&&Ni(f.File_change_detected_Starting_incremental_compilation),t=j(void 0,void 0,Ne,t,K,ye),de=!1):(y&&Ni(f.File_change_detected_Starting_incremental_compilation),cn(Ot,nt)),y=!1,e.afterProgramCreate&&It!==t&&e.afterProgramCreate(t),Ne.readFile=Kt,Ne.fileExists=Tr,Ne.directoryExists=Oe,Ne.createDirectory=Nt,Ne.writeFile=he,s==null||s.forEach((Ae,te)=>{if(!te)dt(),k&&Ue(gt(k),Z,q,sd.ExtendedConfigFile);else{const xt=d==null?void 0:d.get(te);xt&&Rt(Ae,te,xt)}}),s=void 0,t}function cn(It,Ot){Se("CreatingProgramWith::"),Se(` roots: ${JSON.stringify(J)}`),Se(` options: ${JSON.stringify(Z)}`),ye&&Se(` projectReferences: ${JSON.stringify(ye)}`);const nt=R||!at();R=!1,de=!1,lt.startCachingPerDirectoryResolution(),Ne.hasInvalidatedResolutions=It,Ne.hasInvalidatedLibResolutions=Ot,Ne.hasChangedAutomaticTypeDirectiveNames=Pr;const Kt=at();if(t=j(J,Z,Ne,t,K,ye),lt.finishCachingPerDirectoryResolution(t.getProgram(),Kt),pH(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,mn()}function Kn(){return iv(Z||F)}function gt(It){return ks(It,P,re)}function en(It){return typeof It=="boolean"}function or(It){return typeof It.version=="boolean"}function Di(It){const Ot=gt(It);return en(E.get(Ot))?!1:ve.fileExists(It)}function co(It,Ot,nt,Kt,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 he=Be(It,nt,Kt);if(Oe)he?(Oe.sourceFile=he,Oe.version=he.version,Oe.fileWatcher||(Oe.fileWatcher=le(Ot,It,ht,250,q,sd.SourceFile))):(Oe.fileWatcher&&Oe.fileWatcher.close(),E.set(Ot,!1));else if(he){const B=le(Ot,It,ht,250,q,sd.SourceFile);E.set(Ot,{sourceFile:he,version:he.version,fileWatcher:B})}else E.set(Ot,!1);return he}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 Kt=Ot(It);return Kt!==void 0?U3(Ne,Kt):void 0}function Ai(It,Ot,nt){const Kt=E.get(It.resolvedPath);Kt!==void 0&&(en(Kt)?(A||(A=[])).push(It.path):Kt.sourceFile===It&&(Kt.fileWatcher&&Kt.fileWatcher.close(),E.delete(It.resolvedPath),nt||lt.removeResolutionsOfFile(It.path)))}function Ni(It){e.onWatchStatusChange&&e.onWatchStatusChange(Il(It),X,Z||F)}function Pr(){return lt.hasChangedAutomaticTypeDirectiveNames()}function Ci(){return u?(e.clearTimeout(u),u=void 0,!0):!1}function Ye(){if(!e.setTimeout||!e.clearTimeout)return lt.invalidateResolutionsOfFailedLookupLocations();const It=Ci();Se(`Scheduling invalidateFailedLookup${It?", Cancelled earlier one":""}`),u=e.setTimeout(At,250,"timerToInvalidateFailedLookupResolutions")}function At(){u=void 0,lt.invalidateResolutionsOfFailedLookupLocations()&&mn()}function mn(){!e.setTimeout||!e.clearTimeout||(l&&e.clearTimeout(l),Se("Scheduling update"),l=e.setTimeout(ri,250,"timerToUpdateProgram"))}function dr(){C.assert(!!k),r=2,mn()}function ri(){l=void 0,y=!0,ai()}function ai(){switch(r){case 1:Hi();break;case 2:$o();break;default:Wt();break}return We()}function Hi(){Se("Reloading new file names and options"),C.assert(Z),C.assert(k),r=0,J=eP(Z.configFile.configFileSpecs,So(ci(k),P),Z,xe,G),Y4(J,So(k,P),Z.configFile.configFileSpecs,K,pe)&&(de=!0),Wt()}function $o(){C.assert(k),Se(`Reloading config file: ${k}`),r=0,fe&&fe.clearCache(),Ia(),R=!0,(s??(s=new Map)).set(void 0,void 0),Wt()}function Ia(){C.assert(k),Pn(Lw(k,F,xe,h||(h=new Map),O,G))}function Pn(It){J=It.fileNames,Z=It.options,q=It.watchOptions,ye=It.projectReferences,ie=It.wildcardDirectories,K=ZS(It).slice(),pe=Fw(It.raw),de=!0}function Uo(It){const Ot=gt(It);let nt=d==null?void 0:d.get(Ot);if(nt){if(!nt.updateLevel)return nt.parsedCommandLine;if(nt.parsedCommandLine&&nt.updateLevel===1&&!e.getParsedCommandLine){Se("Reloading new file names and options"),C.assert(Z);const Tr=eP(nt.parsedCommandLine.options.configFile.configFileSpecs,So(ci(It),P),Z,xe);return nt.parsedCommandLine={...nt.parsedCommandLine,fileNames:Tr},nt.updateLevel=void 0,nt.parsedCommandLine}}Se(`Loading config file: ${It}`);const Kt=e.getParsedCommandLine?e.getParsedCommandLine(It):ot(It);return nt?(nt.parsedCommandLine=Kt,nt.updateLevel=void 0):(d||(d=new Map)).set(Ot,nt={parsedCommandLine:Kt}),(s??(s=new Map)).set(Ot,It),Kt}function ot(It){const Ot=xe.onUnRecoverableConfigFileDiagnostic;xe.onUnRecoverableConfigFileDiagnostic=gs;const nt=Lw(It,void 0,xe,h||(h=new Map),O);return xe.onUnRecoverableConfigFileDiagnostic=Ot,nt}function Ft(It){var Ot;const nt=gt(It),Kt=d==null?void 0:d.get(nt);Kt&&(d.delete(nt),Kt.watchedDirectories&&hp(Kt.watchedDirectories,Kf),(Ot=Kt.watcher)==null||Ot.close(),uH(nt,g))}function le(It,Ot,nt,Kt,Tr,Oe){return Ce(Ot,(Nt,he)=>nt(Nt,he,It),Kt,Tr,Oe)}function ht(It,Ot,nt){ne(It,nt,Ot),Ot===2&&E.has(nt)&<.invalidateResolutionOfFile(nt),zt(nt),mn()}function ne(It,Ot,nt){fe&&fe.addOrDeleteFile(It,Ot,nt)}function Fe(It,Ot){return d!=null&&d.has(It)?XD:le(It,Ot,it,500,q,sd.MissingFile)}function it(It,Ot,nt){ne(It,nt,Ot),Ot===0&&i.has(nt)&&(i.get(nt).close(),i.delete(nt),zt(nt),mn())}function dt(){eO(o||(o=new Map),ie,Lt)}function Lt(It,Ot){return Je(It,nt=>{C.assert(k),C.assert(Z);const Kt=gt(nt);fe&&fe.addOrDeleteFileOrDirectory(nt,Kt),zt(Kt),!tO({watchedDirPath:gt(It),fileOrDirectory:nt,fileOrDirectoryPath:Kt,configFileName:k,extraFileExtensions:G,options:Z,program:We()||J,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Se,toPath:gt})&&r!==2&&(r=1,mn())},Ot,q,sd.WildcardDirectory)}function Ue(It,Ot,nt,Kt){I3(It,Ot,g||(g=new Map),(Tr,Oe)=>Ce(Tr,(Nt,he)=>{var B;ne(Tr,Oe,he),h&&x3(h,Oe,gt);const Ae=(B=g.get(Oe))==null?void 0:B.projects;Ae!=null&&Ae.size&&Ae.forEach(te=>{if(k&>(k)===te)r=2;else{const xt=d==null?void 0:d.get(te);xt&&(xt.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(te)}mn()})},2e3,nt,Kt),gt)}function Rt(It,Ot,nt){var Kt,Tr,Oe,Nt;nt.watcher||(nt.watcher=Ce(It,(he,B)=>{ne(It,Ot,B);const Ae=d==null?void 0:d.get(Ot);Ae&&(Ae.updateLevel=2),lt.removeResolutionsFromProjectReferenceRedirects(Ot),mn()},2e3,((Kt=nt.parsedCommandLine)==null?void 0:Kt.watchOptions)||q,sd.ConfigFileOfReferencedProject)),eO(nt.watchedDirectories||(nt.watchedDirectories=new Map),(Tr=nt.parsedCommandLine)==null?void 0:Tr.wildcardDirectories,(he,B)=>{var Ae;return Je(he,te=>{const xt=gt(te);fe&&fe.addOrDeleteFileOrDirectory(te,xt),zt(xt);const Xt=d==null?void 0:d.get(Ot);Xt!=null&&Xt.parsedCommandLine&&(tO({watchedDirPath:gt(he),fileOrDirectory:te,fileOrDirectoryPath:xt,configFileName:It,options:Xt.parsedCommandLine.options,program:Xt.parsedCommandLine.fileNames,currentDirectory:P,useCaseSensitiveFileNames:N,writeLog:Se,toPath:gt})||Xt.updateLevel!==2&&(Xt.updateLevel=1,mn()))},B,((Ae=nt.parsedCommandLine)==null?void 0:Ae.watchOptions)||q,sd.WildcardDirectoryOfReferencedProject)}),Ue(Ot,(Oe=nt.parsedCommandLine)==null?void 0:Oe.options,((Nt=nt.parsedCommandLine)==null?void 0:Nt.watchOptions)||q,sd.ExtendedConfigOfReferencedProject)}}var Hse=(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))(Hse||{});function nq(e){return El(e,".json")?e:Qr(e,"tsconfig.json")}var sJe=new Date(-864e13);function lJe(e,t,r){const i=e.get(t);let o;return i||(o=r(),e.set(t,o)),i||o}function qse(e,t){return lJe(e,t,()=>new Map)}function rq(e){return e.now?e.now():new Date}function ux(e){return!!e&&!!e.buildOrder}function dO(e){return ux(e)?e.buildOrder:e}function K3(e,t){return r=>{let i=t?`[${QS(cO(e),"\x1B[90m")}] `:`${cO(e)} - `;i+=`${s_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function oIe(e,t,r,i){const o=QH(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):pS,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):gs,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):gs,o.reportDiagnostic=r||dx(e),o.reportSolutionBuilderStatus=i||K3(e),o.now=oa(e,e.now),o}function Jse(e=jc,t,r,i,o){const s=oIe(e,t,r,i);return s.reportErrorSummary=o,s}function Kse(e=jc,t,r,i,o){const s=oIe(e,t,r,i),l=XH(e,o);return UB(s,l),s}function cJe(e){const t={};return z4.forEach(r=>{Rs(e,r.name)&&(t[r.name]=e[r.name])}),t.tscBuild=!0,t}function Xse(e,t,r){return xIe(!1,e,t,r)}function Yse(e,t,r,i){return xIe(!0,e,t,r,i)}function dJe(e,t,r,i,o){const s=t,l=t,u=cJe(i),d=$H(s,()=>N.projectCompilerOptions);H3(d),d.getParsedCommandLine=P=>YD(N,P,G_(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 g,h;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(g=zD(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(P,k,F,O,G)=>rO(P,k,F,O,G,s,g,SH),d.getModuleResolutionCache=()=>g),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(h=r3(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache(),g==null?void 0:g.optionsToRedirectsKey),d.resolveTypeReferenceDirectiveReferences=(P,k,F,O,G)=>rO(P,k,F,O,G,s,h,N3));let y;d.resolveLibrary||(y=zD(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),d.resolveLibrary=(P,k,F)=>i3(P,k,F,s,y)),d.getBuildInfo=(P,k)=>gIe(N,P,G_(N,k),void 0);const{watchFile:E,watchDirectory:A,writeLog:R}=YH(l,i),N={host:s,hostWithWatch:l,parseConfigFileHost:w3(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:g,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 qm(e,t){return ks(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function G_(e,t){const{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;const o=qm(e,t);return r.set(t,o),o}function aIe(e){return!!e.options}function uJe(e,t){const r=e.configFileCache.get(t);return r&&aIe(r)?r:void 0}function YD(e,t,r){const{configFileCache:i}=e,o=i.get(r);if(o)return aIe(o)?o:void 0;Rl("SolutionBuilder::beforeConfigFileParsing");let s;const{parseConfigFileHost:l,baseCompilerOptions:u,baseWatchOptions:d,extendedConfigCache:g,host:h}=e;let y;return h.getParsedCommandLine?(y=h.getParsedCommandLine(t),y||(s=Il(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,y=Lw(t,u,l,g,d),l.onUnRecoverableConfigFileDiagnostic=gs),i.set(r,y||s),Rl("SolutionBuilder::afterConfigFileParsing"),wf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function uO(e,t){return nq(ab(e.compilerHost.getCurrentDirectory(),t))}function sIe(e,t){const r=new Map,i=new Map,o=[];let s,l;for(const d of t)u(d);return l?{buildOrder:s||se,circularDiagnostics:l}:s||se;function u(d,g){const h=G_(e,d);if(i.has(h))return;if(r.has(h)){g||(l||(l=[])).push(Il(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=YD(e,d,h);if(y&&y.projectReferences)for(const E of y.projectReferences){const A=uO(e,E.path);u(A,g||E.circular)}o.pop(),i.set(h,!0),(s||(s=[])).push(d)}}function X3(e){return e.buildOrder||pJe(e)}function pJe(e){const t=sIe(e,e.rootNames.map(o=>uO(e,o)));e.resolvedConfigFilePaths.clear();const r=new Set(dO(t).map(o=>G_(e,o))),i={onDeleteValue:gs};return bg(e.configFileCache,r,i),bg(e.projectStatus,r,i),bg(e.builderPrograms,r,i),bg(e.diagnostics,r,i),bg(e.projectPendingBuild,r,i),bg(e.projectErrorsReported,r,i),bg(e.buildInfoCache,r,i),bg(e.outputTimeStamps,r,i),bg(e.lastCachedPackageJsonLookups,r,i),e.watch&&(bg(e.allWatchedConfigFiles,r,{onDeleteValue:Gm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),bg(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Kf)}),bg(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(Gm)}),bg(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(Gm)})),e.buildOrder=t}function lIe(e,t,r){const i=t&&uO(e,t),o=X3(e);if(ux(o))return o;if(i){const l=G_(e,i);if(so(o,d=>G_(e,d)===l)===-1)return}const s=i?sIe(e,[i]):o;return C.assert(!ux(s)),C.assert(!r||i!==void 0),C.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function cIe(e){e.cache&&$se(e);const{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:g,getSourceFileWithCache:h,readFileWithCache:y}=yP(r,E=>qm(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=y,t.getSourceFile=h,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:o}}function $se(e){if(!e.cache)return;const{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:u}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s==null||s.clear(),l==null||l.clear(),u==null||u.clear(),e.cache=void 0}function dIe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function uIe({projectPendingBuild:e},t,r){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(G_(e,i),0)),t&&t.throwIfCancellationRequested()}var Qse=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(Qse||{});function fIe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function fJe(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:()=>{vIe(e,i,r),s=!1},done:()=>(s&&vIe(e,i,r),Rl("SolutionBuilder::Timestamps only updates"),fIe(e,r))}}function mJe(e,t,r,i,o,s,l){let u=0,d,g;return{kind:0,project:t,projectPath:r,buildOrder:l,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>y(Vs),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,O,G)=>P||O?y(j=>{var J,Z;return j.emit(P,k,F,O,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),Rl("SolutionBuilder::Projects built"),fIe(e,r)}function y(P){return N(0),d&&P(d)}function E(P){return y(P)||se}function A(){var P,k,F;if(C.assert(d===void 0),e.options.dry){Bp(e,f.A_non_dry_build_would_build_project_0,t),g=1,u=2;return}if(e.options.verbose&&Bp(e,f.Building_project_0,t),o.fileNames.length===0){pO(e,r,ZS(o)),g=0,u=2;return}const{host:O,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=O.createProgram(o.fileNames,o.options,G,hJe(e,r,o),ZS(o),o.projectReferences),e.watch){const j=(F=e.moduleResolutionCache)==null?void 0:F.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(r,j&&new Set(Co(j.values(),J=>e.host.realpath&&(n3(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 O,G,j;C.assertIsDefined(d),C.assert(u===1);const{host:J,compilerHost:Z}=e,q=new Map,ye=d.getCompilerOptions(),ie=wS(ye);let K,pe;const{emitResult:de,diagnostics:fe}=j3(d,ve=>J.reportDiagnostic(ve),e.write,void 0,(ve,xe,X,Ce,Je,Se)=>{var re;const be=qm(e,ve);if(q.set(qm(e,ve),ve),Se!=null&&Se.buildInfo){pe||(pe=rq(e.host));const Be=(re=d.hasChangedEmitSignature)==null?void 0:re.call(d),lt=aq(e,ve,r);lt?(lt.buildInfo=Se.buildInfo,lt.modifiedTime=pe,Be&&(lt.latestChangedDtsTime=pe)):e.buildInfoCache.set(r,{path:qm(e,ve),buildInfo:Se.buildInfo,modifiedTime:pe,latestChangedDtsTime:Be?pe:void 0})}const Ne=Se!=null&&Se.differsOnlyInMap?tI(e.host,ve):void 0;(P||Z.writeFile)(ve,xe,X,Ce,Je,Se),Se!=null&&Se.differsOnlyInMap?e.host.setModifiedTime(ve,Ne):!ie&&e.watch&&(K||(K=ele(e,r))).set(be,pe||(pe=rq(e.host)))},k,void 0,F||((G=(O=e.host).getCustomTransformers)==null?void 0:G.call(O,t)));return(!ye.noEmitOnError||!fe.length)&&(q.size||s.type!==8)&&yIe(e,o,r,f.Updating_unchanged_output_timestamps_of_project_0,q),e.projectErrorsReported.set(r,!0),g=(j=d.hasChangedEmitSignature)!=null&&j.call(d)?0:2,fe.length?(e.diagnostics.set(r,fe),e.projectStatus.set(r,{type:0,reason:"it had errors"}),g|=4):(e.diagnostics.delete(r),e.projectStatus.set(r,{type:1,oldestOutputFileName:B8(q.values())??aH(o,!J.useCaseSensitiveFileNames())})),_Je(e,d),u=2,de}function N(P,k,F,O){for(;u<=P&&u<3;){const G=u;switch(u){case 0:A();break;case 1:R(F,k,O);break;case 2:bJe(e,t,r,i,o,l,C.checkDefined(g)),u++;break}C.assert(u>G)}}}function mIe(e,t,r){if(!e.projectPendingBuild.size||ux(t))return;const{options:i,projectPendingBuild:o}=e;for(let s=0;s{const A=C.checkDefined(e.filesWatched.get(u));C.assert(iq(A)),A.modifiedTime=E,A.callbacks.forEach(R=>R(h,y,E))},i,o,s,l);e.filesWatched.set(u,{callbacks:[r],watcher:g,modifiedTime:d})}return{close:()=>{const g=C.checkDefined(e.filesWatched.get(u));C.assert(iq(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Kf(g)):ZA(g.callbacks,r)}}}function ele(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function aq(e,t,r){const i=qm(e,t),o=e.buildInfoCache.get(r);return(o==null?void 0:o.path)===i?o:void 0}function gIe(e,t,r,i){const o=qm(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?cH(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:u||!1,modifiedTime:i||Dp}),u}function tle(e,t,r,i){const o=_Ie(e,t);if(rG&&(O=fe,G=ve),J.add(xe)}let q;if(P?(Z||(Z=LH(P,y,h)),q=Hc(Z.roots,(fe,ve)=>J.has(ve)?void 0:ve)):q=$e(kse(N,y,h),fe=>J.has(fe)?void 0:fe),q)return{type:10,buildInfoFile:y,inputFile:q};if(!E){const fe=E3(t,!h.useCaseSensitiveFileNames()),ve=ele(e,r);for(const xe of fe){if(xe===y)continue;const X=qm(e,xe);let Ce=ve==null?void 0:ve.get(X);if(Ce||(Ce=tI(e.host,xe),ve==null||ve.set(X,Ce)),Ce===Dp)return{type:3,missingOutputFileName:xe};if(Cetle(e,fe,k,F));if(K)return K;const pe=e.lastCachedPackageJsonLookups.get(r),de=pe&&mg(pe,fe=>tle(e,fe,k,F));return de||{type:ye?2:j?15:1,newestInputFileTime:G,newestInputFileName:O,oldestOutputFileName:F}}function yJe(e,t,r){return e.buildInfoCache.get(r).path===t.path}function nle(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;Rl("SolutionBuilder::beforeUpToDateCheck");const o=gJe(e,t,r);return Rl("SolutionBuilder::afterUpToDateCheck"),wf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function yIe(e,t,r,i,o){if(t.options.noEmit)return;let s;const l=c0(t.options),u=wS(t.options);if(l&&u){o!=null&&o.has(qm(e,l))||(e.options.verbose&&Bp(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=rq(e.host)),aq(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}const{host:d}=e,g=E3(t,!d.useCaseSensitiveFileNames()),h=ele(e,r),y=h?new Set:void 0;if(!o||g.length!==o.size){let E=!!e.options.verbose;for(const A of g){const R=qm(e,A);o!=null&&o.has(R)||(E&&(E=!1,Bp(e,i,t.options.configFilePath)),d.setModifiedTime(A,s||(s=rq(e.host))),A===l?aq(e,l,r).modifiedTime=s:h&&(h.set(R,s),y.add(R)))}}h==null||h.forEach((E,A)=>{!(o!=null&&o.has(A))&&!y.has(A)&&h.delete(A)})}function vJe(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&&sO(i.buildInfo)&&i.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(So(i.buildInfo.latestChangedDtsFile,ci(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function vIe(e,t,r){if(e.options.dry)return Bp(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);yIe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:aH(t,!e.host.useCaseSensitiveFileNames())})}function bJe(e,t,r,i,o,s,l){if(!(e.options.stopBuildOnErrors&&l&4)&&o.options.composite)for(let u=i+1;ue.diagnostics.has(G_(e,g)))?d?2:1:0}function TIe(e,t,r){Rl("SolutionBuilder::beforeClean");const i=SJe(e,t,r);return Rl("SolutionBuilder::afterClean"),wf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function SJe(e,t,r){const i=lIe(e,t,r);if(!i)return 3;if(ux(i))return sq(e,i.circularDiagnostics),4;const{options:o,host:s}=e,l=o.dry?[]:void 0;for(const u of i){const d=G_(e,u),g=YD(e,u,d);if(g===void 0){RIe(e,d);continue}const h=E3(g,!s.useCaseSensitiveFileNames());if(!h.length)continue;const y=new Set(g.fileNames.map(E=>qm(e,E)));for(const E of h)y.has(qm(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),rle(e,d,0)))}return l&&Bp(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(u=>`\r * ${u}`).join("")),0}function rle(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,dIe(e,t),uIe(e,t,r),cIe(e)}function Y3(e,t,r){e.reportFileChangeDetected=!0,rle(e,t,r),SIe(e,250,!0)}function SIe(e,t,r){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(EJe,t,"timerToBuildInvalidatedProject",e,r))}function EJe(e,t,r){Rl("SolutionBuilder::beforeBuild");const i=AJe(t,r);Rl("SolutionBuilder::afterBuild"),wf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&DIe(t,i)}function AJe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),ale(e,f.File_change_detected_Starting_incremental_compilation));let r=0;const i=X3(e),o=Zse(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const s=mIe(e,i,!1);if(!s)break;if(s.kind!==1&&(t||r===5)){SIe(e,100,!1);return}hIe(e,s,i).done(),s.kind!==1&&r++}return $se(e),i}function EIe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,oq(e,t,()=>Y3(e,r,2),2e3,i==null?void 0:i.watchOptions,sd.ConfigFile,t))}function AIe(e,t,r){I3(t,r==null?void 0:r.options,e.allWatchedExtendedConfigFiles,(i,o)=>oq(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>Y3(e,l,2))},2e3,r==null?void 0:r.watchOptions,sd.ExtendedConfigFile),i=>qm(e,i))}function IIe(e,t,r,i){e.watch&&eO(qse(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var u;tO({watchedDirPath:qm(e,o),fileOrDirectory:l,fileOrDirectoryPath:qm(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((u=uJe(e,r))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>qm(e,d)})||Y3(e,r,1)},s,i==null?void 0:i.watchOptions,sd.WildcardDirectory,t))}function ile(e,t,r,i){e.watch&&yM(qse(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>oq(e,o,()=>Y3(e,r,0),250,i==null?void 0:i.watchOptions,sd.SourceFile,t),onDeleteValue:Gm})}function ole(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||yM(qse(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>oq(e,o,()=>Y3(e,r,0),2e3,i==null?void 0:i.watchOptions,sd.PackageJson,t),onDeleteValue:Gm})}function IJe(e,t){if(e.watchAllProjectsPending){Rl("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const r of dO(t)){const i=G_(e,r),o=YD(e,r,i);EIe(e,r,i,o),AIe(e,i,o),o&&(IIe(e,r,i,o),ile(e,r,i,o),ole(e,r,i,o))}Rl("SolutionBuilder::afterWatcherCreation"),wf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function xJe(e){hp(e.allWatchedConfigFiles,Gm),hp(e.allWatchedExtendedConfigFiles,Kf),hp(e.allWatchedWildcardDirectories,t=>hp(t,Kf)),hp(e.allWatchedInputFiles,t=>hp(t,Gm)),hp(e.allWatchedPackageJsonFiles,t=>hp(t,Gm))}function xIe(e,t,r,i,o){const s=dJe(e,t,r,i,o);return{build:(l,u,d,g)=>bIe(s,l,u,d,g),clean:l=>TIe(s,l),buildReferences:(l,u,d,g)=>bIe(s,l,u,d,g,!0),cleanReferences:l=>TIe(s,l,!0),getNextInvalidatedProject:l=>(pIe(s,l),Zse(s,X3(s),!1)),getBuildOrder:()=>X3(s),getUpToDateStatusOfProject:l=>{const u=uO(s,l),d=G_(s,u);return nle(s,YD(s,u,d),d)},invalidateProject:(l,u)=>rle(s,l,u||0),close:()=>xJe(s)}}function Nd(e,t){return EN(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Bp(e,t,...r){e.host.reportSolutionBuilderStatus(Il(t,...r))}function ale(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,Il(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function sq({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function pO(e,t,r){sq(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function RIe(e,t){pO(e,t,[e.configFileCache.get(t)])}function DIe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,s=[];ux(t)?(CIe(e,t.buildOrder),sq(e,t.circularDiagnostics),r&&(o+=G3(t.circularDiagnostics)),r&&(s=[...s,...V3(t.circularDiagnostics)])):(t.forEach(l=>{const u=G_(e,l);e.projectErrorsReported.has(u)||sq(e,i.get(u)||se)}),r&&i.forEach(l=>o+=G3(l)),r&&i.forEach(l=>[...s,...V3(l)])),e.watch?ale(e,BH(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function CIe(e,t){e.options.verbose&&Bp(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r * `+Nd(e,r)).join(""))}function RJe(e,t,r){switch(r.type){case 5:return Bp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nd(e,t),Nd(e,r.outOfDateOutputFileName),Nd(e,r.newerInputFileName));case 6:return Bp(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Nd(e,t),Nd(e,r.outOfDateOutputFileName),Nd(e,r.newerProjectName));case 3:return Bp(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Nd(e,t),Nd(e,r.missingOutputFileName));case 4:return Bp(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Nd(e,t),Nd(e,r.fileName));case 7:return Bp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Nd(e,t),Nd(e,r.buildInfoFile));case 8:return Bp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,Nd(e,t),Nd(e,r.buildInfoFile));case 9:return Bp(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Nd(e,t),Nd(e,r.buildInfoFile));case 10:return Bp(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,Nd(e,t),Nd(e,r.buildInfoFile),Nd(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Bp(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Nd(e,t),Nd(e,r.newestInputFileName||""),Nd(e,r.oldestOutputFileName||""));break;case 2:return Bp(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Nd(e,t));case 15:return Bp(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Nd(e,t));case 11:return Bp(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Nd(e,t),Nd(e,r.upstreamProjectName));case 12:return Bp(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,Nd(e,t),Nd(e,r.upstreamProjectName));case 0:return Bp(e,f.Project_0_is_out_of_date_because_1,Nd(e,t),r.reason);case 14:return Bp(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Nd(e,t),r.version,Le);case 17:return Bp(e,f.Project_0_is_being_forcibly_rebuilt,Nd(e,t))}}function lq(e,t,r){e.options.verbose&&RJe(e,t,r)}var sle=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(sle||{});function DJe(e){const t=CJe();return $e(e.getSourceFiles(),r=>{const i=NJe(e,r),o=sg(r).length;t.set(i,t.get(i)+o)}),t}function CJe(){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 NJe(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";const r=t.path;return $l(r,WV)?"TypeScript":$l(r,fD)?"JavaScript":El(r,".json")?"JSON":"Other"}function cq(e,t,r){return $3(e,r)?dx(e,!0):t}function NIe(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function $3(e,t){return!t||typeof t.pretty>"u"?NIe(e):t.pretty}function MIe(e){return e.options.all?xp(Hm.concat(N1),(t,r)=>y2(t.name,r.name)):Vn(Hm.concat(N1),t=>!!t.showInSimplifiedHelpView)}function dq(e){e.write(rp(f.Version_0,Le)+e.newLine)}function uq(e){if(!NIe(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?g(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 g(h){return`\x1B[97m${h}\x1B[39m`}return{bold:r,blue:l,brightWhite:g,blueBackground:d}}function PIe(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function MJe(e,t,r,i){var o;const s=[],l=uq(e),u=PIe(t),d=R(t),g=typeof t.defaultValueDescription=="object"?rp(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=rp(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),g&&s.push(...A(rp(f.default_Colon),g,r,i,h,!1),e.newLine)),s.push(e.newLine)}else{if(s.push(l.blue(u),e.newLine),t.description){const N=rp(t.description);s.push(N)}if(s.push(e.newLine),E(d,t)){if(d&&s.push(`${d.valueType} ${d.possibleValues}`),g){d&&s.push(e.newLine);const N=rp(f.default_Colon);s.push(`${N} ${g}`)}s.push(e.newLine)}s.push(e.newLine)}return s;function y(N,P){return N!==void 0&&typeof P=="object"?Co(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"],O=P.defaultValueDescription;return!(P.category===f.Command_line_Options||Ln(k,N==null?void 0:N.possibleValues)&&Ln(F,O))}function A(N,P,k,F,O,G){const j=[];let J=!0,Z=P;const q=O-F;for(;Z.length>0;){let ye="";J?(ye=N.padStart(k),ye=ye.padEnd(F),ye=G?l.blue(ye):ye):ye="".padStart(F);const ie=Z.substr(0,q);Z=Z.slice(q),j.push(`${ye}${ie}`),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 rp(f.type_Colon);case"list":return rp(f.one_or_more_Colon);default:return rp(f.one_of_Colon)}}function k(F){let O;switch(F.type){case"string":case"number":case"boolean":O=F.type;break;case"list":case"listOrElement":O=k(F.element);break;case"object":O="";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 O}}}function LIe(e,t){let r=0;for(const l of t){const u=PIe(l).length;r=r>u?r:u}const i=r+2,o=i+2;let s=[];for(const l of t){const u=MJe(e,l,i,o);s=[...s,...u]}return s[s.length-2]!==e.newLine&&s.push(e.newLine),s}function fO(e,t,r,i,o,s){let l=[];if(l.push(uq(e).bold(t)+e.newLine+e.newLine),o&&l.push(o+e.newLine+e.newLine),!i)return l=[...l,...LIe(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 g=rp(d.category),h=u.get(g)??[];h.push(d),u.set(g,h)}return u.forEach((d,g)=>{l.push(`### ${g}${e.newLine}${e.newLine}`),l=[...l,...LIe(e,d)]}),s&&l.push(s+e.newLine+e.newLine),l}function PJe(e,t){const r=uq(e);let i=[...pq(e,`${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0,Le)}`)];i.push(r.bold(rp(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=>!Ln(o,u));i=[...i,...fO(e,rp(f.COMMAND_LINE_FLAGS),o,!1,void 0,void 0),...fO(e,rp(f.COMMON_COMPILER_OPTIONS),s,!1,void 0,MI(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 g=typeof u=="string"?[u]:u;for(const h of g)i.push(" "+r.blue(h)+e.newLine);i.push(" "+rp(d)+e.newLine+e.newLine)}}function LJe(e,t,r,i){let o=[...pq(e,`${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0,Le)}`)];o=[...o,...fO(e,rp(f.ALL_COMPILER_OPTIONS),t,!0,void 0,MI(f.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],o=[...o,...fO(e,rp(f.WATCH_OPTIONS),i,!1,rp(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,...fO(e,rp(f.BUILD_OPTIONS),Vn(r,s=>s!==N1),!1,MI(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 kIe(e,t){let r=[...pq(e,`${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0,Le)}`)];r=[...r,...fO(e,rp(f.BUILD_OPTIONS),Vn(t,i=>i!==N1),!1,MI(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 pq(e,t){var r;const i=uq(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 wIe(e,t){t.options.all?LJe(e,MIe(t),nU,rx):PJe(e,MIe(t))}function OIe(e,t,r){let i=dx(e),o;if(r.options.locale&&F9(r.options.locale,e,r.errors),r.errors.length>0)return r.errors.forEach(i),e.exit(1);if(r.options.init)return WJe(e,i,r.options),e.exit(0);if(r.options.version)return dq(e),e.exit(0);if(r.options.help||r.options.all)return wIe(e,r),e.exit(0);if(r.options.watch&&r.options.listFilesOnly)return i(Il(f.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(r.options.project){if(r.fileNames.length!==0)return i(Il(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(Il(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(Il(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=mH(u,d=>e.fileExists(d))}if(r.fileNames.length===0&&!o)return r.options.showConfig?i(Il(f.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,ya(e.getCurrentDirectory()))):(dq(e),wIe(e,r)),e.exit(1);const s=e.getCurrentDirectory(),l=J4(r.options,u=>So(u,s));if(o){const u=new Map,d=Vse(o,l,u,r.watchOptions,e,i);if(l.showConfig)return d.errors.length!==0?(i=cq(e,i,d.options),d.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(cU(d,o,e),null,4)+e.newLine),e.exit(0));if(i=cq(e,i,d.options),SV(d.options))return cle(e,i)?void 0:kJe(e,t,i,d,l,r.watchOptions,u);wS(d.options)?BIe(e,t,i,d):zIe(e,t,i,d)}else{if(l.showConfig)return e.write(JSON.stringify(cU(r,Qr(s,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=cq(e,i,l),SV(l))return cle(e,i)?void 0:wJe(e,t,i,r.fileNames,l,r.watchOptions);wS(l)?BIe(e,t,i,{...r,options:l}):zIe(e,t,i,{...r,options:l})}}function lle(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===N1.name||t===N1.shortName}return!1}function WIe(e,t,r){if(lle(r)){const{buildOptions:o,watchOptions:s,projects:l,errors:u}=Aoe(r);if(o.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(o.generateCpuProfile,()=>FIe(e,t,o,s,l,u));else return FIe(e,t,o,s,l,u)}const i=Soe(r,o=>e.readFile(o));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>OIe(e,t,i));else return OIe(e,t,i)}function cle(e,t){return!e.watchFile||!e.watchDirectory?(t(Il(f.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var Q3=2;function FIe(e,t,r,i,o,s){const l=cq(e,dx(e),r);if(r.locale&&F9(r.locale,e,s),s.length>0)return s.forEach(l),e.exit(1);if(r.help||o.length===0)return dq(e),kIe(e,Pw),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||r.clean&&!e.deleteFile)return l(Il(f.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(r.watch){if(cle(e,l))return;const y=Kse(e,void 0,l,K3(e,$3(e,r)),ule(e,r));y.jsDocParsingMode=Q3;const E=UIe(e,r);GIe(e,t,y,E);const A=y.onWatchStatusChange;let R=!1;y.onWatchStatusChange=(P,k,F,O)=>{A==null||A(P,k,F,O),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=Yse(y,o,r,i);return N.build(),ple(N,E),R=!0,N}const u=Jse(e,void 0,l,K3(e,$3(e,r)),dle(e,r));u.jsDocParsingMode=Q3;const d=UIe(e,r);GIe(e,t,u,d);const g=Xse(u,o,r),h=r.clean?g.clean():g.build();return ple(g,d),mZ(),e.exit(h)}function dle(e,t){return $3(e,t)?(r,i)=>e.write(GH(r,i,e.newLine,e)):void 0}function zIe(e,t,r,i){const{fileNames:o,options:s,projectReferences:l}=i,u=R3(s,void 0,e);u.jsDocParsingMode=Q3;const d=u.getCurrentDirectory(),g=Fd(u.useCaseSensitiveFileNames());yP(u,A=>ks(A,d,g)),fle(e,s,!1);const h={rootNames:o,options:s,projectReferences:l,host:u,configFileParsingDiagnostics:ZS(i)},y=oO(h),E=KH(y,r,A=>e.write(A+e.newLine),dle(e,s));return mq(e,y,void 0),t(y),e.exit(E)}function BIe(e,t,r,i){const{options:o,fileNames:s,projectReferences:l}=i;fle(e,o,!1);const u=J3(o,e);u.jsDocParsingMode=Q3;const d=jse({host:u,system:e,rootNames:s,options:o,configFileParsingDiagnostics:ZS(i),projectReferences:l,reportDiagnostic:r,reportErrorSummary:dle(e,o),afterProgramEmitAndDiagnostics:g=>{mq(e,g.getProgram(),void 0),t(g)}});return e.exit(d)}function GIe(e,t,r,i){VIe(e,r,!0),r.afterProgramEmitAndDiagnostics=o=>{mq(e,o.getProgram(),i),t(o)}}function VIe(e,t,r){const i=t.createProgram;t.createProgram=(o,s,l,u,d,g)=>(C.assert(o!==void 0||s===void 0&&!!u),s!==void 0&&fle(e,s,r),i(o,s,l,u,d,g))}function jIe(e,t,r){r.jsDocParsingMode=Q3,VIe(e,r,!1);const i=r.afterProgramCreate;r.afterProgramCreate=o=>{i(o),mq(e,o.getProgram(),void 0),t(o)}}function ule(e,t){return zH(e,$3(e,t))}function kJe(e,t,r,i,o,s,l){const u=ZH({configFileName:i.options.configFilePath,optionsToExtend:o,watchOptionsToExtend:s,system:e,reportDiagnostic:r,reportWatchStatus:ule(e,i.options)});return jIe(e,t,u),u.configFileParsingResult=i,u.extendedConfigCache=l,tq(u)}function wJe(e,t,r,i,o,s){const l=eq({rootFiles:i,options:o,watchOptions:s,system:e,reportDiagnostic:r,reportWatchStatus:ule(e,o)});return jIe(e,t,l),tq(l)}function UIe(e,t){if(e===jc&&t.extendedDiagnostics)return r9(),OJe()}function OJe(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:r,clear:i};function t(o){const s=e==null?void 0: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==null||e.forEach(o)}function i(){e=void 0}}function ple(e,t){if(!t)return;if(!uZ()){jc.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:dO(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)}),n9((s,l)=>{fq(s)&&r.push({name:`${o(s)} time`,value:l,type:0})}),pZ(),r9(),t.clear(),JIe(jc,r);function i(s){const l=ITe(s);l&&r.push({name:o(s),value:l,type:1})}function o(s){return s.replace("SolutionBuilder::","")}}function HIe(e,t){return e===jc&&(t.diagnostics||t.extendedDiagnostics)}function qIe(e,t){return e===jc&&t.generateTrace}function fle(e,t,r){HIe(e,t)&&r9(e),qIe(e,t)&&fZ(r?"build":"project",t.generateTrace,t.configFilePath)}function fq(e){return fo(e,"SolutionBuilder::")}function mq(e,t,r){var i;const o=t.getCompilerOptions();qIe(e,o)&&((i=xr)==null||i.stopTracing());let s;if(HIe(e,o)){s=[];const g=e.getMemoryUsage?e.getMemoryUsage():-1;u("Files",t.getSourceFiles().length);const h=DJe(t);if(o.extendedDiagnostics)for(const[P,k]of h.entries())u("Lines of "+P,k);else u("Lines",jn(h.values(),(P,k)=>P+k,0));u("Identifiers",t.getIdentifierCount()),u("Symbols",t.getSymbolCount()),u("Types",t.getTypeCount()),u("Instantiations",t.getInstantiationCount()),g>=0&&l({name:"Memory used",value:g,type:2},!0);const y=uZ(),E=y?bN("Program"):0,A=y?bN("Bind"):0,R=y?bN("Check"):0,N=y?bN("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&&n9((k,F)=>{fq(k)||d(`${k} time`,F,!0)})}else y&&(d("I/O read",bN("I/O Read"),!0),d("I/O write",bN("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),JIe(e,s),y?r?(n9(P=>{fq(P)||RTe(P)}),xTe(P=>{fq(P)||DTe(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(g,h){s.push(g),h&&(r==null||r.addAggregateStatistic(g))}function u(g,h){l({name:g,value:h,type:1},!0)}function d(g,h,y){l({name:g,value:h,type:0},y)}}function JIe(e,t){let r=0,i=0;for(const o of t){o.name.length>r&&(r=o.name.length);const s=KIe(o);s.length>i&&(i=s.length)}for(const o of t)e.write(`${o.name}:`.padEnd(r+2)+KIe(o).toString().padStart(i)+e.newLine)}function KIe(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 WJe(e,t,r){const i=e.getCurrentDirectory(),o=ya(Qr(i,"tsconfig.json"));if(e.fileExists(o))t(Il(f.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,Doe(r,e.newLine));const s=[e.newLine,...pq(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 l_(e,t=!0){return{type:e,reportFallback:t}}var XIe=l_(void 0,!1),YIe=l_(void 0,!1),EP=l_(void 0,!0);function mle(e,t){const r=Vd(e,"strictNullChecks");return{serializeTypeOfDeclaration:h,serializeReturnTypeForSignature:E,serializeTypeOfExpression:g,serializeTypeOfAccessor:d,tryReuseExistingTypeNode(ge,je){if(t.canReuseTypeNode(ge,je))return o(ge,je)}};function i(ge,je,Ge=je){return je===void 0?void 0:t.markNodeReuse(ge,je.flags&16?je:L.cloneNode(je),Ge??je)}function o(ge,je){const{finalizeBoundary:Ge,startRecoveryScope:We,hadError:at,markError:Wt}=t.createRecoveryBoundary(ge),cn=st(je,gn,Ri);if(!Ge())return;return ge.approximateLength+=je.end-je.pos,cn;function gn(zt){if(at())return zt;const Zr=We(),Ai=Hre(zt)?t.enterNewScope(ge,zt):void 0,Ni=co(zt);return Ai==null||Ai(),at()?Ri(zt)&&!HI(zt)?(Zr(),t.serializeExistingTypeNode(ge,zt)):zt:Ni?t.markNodeReuse(ge,Ni,zt):void 0}function Kn(zt){const Zr=tM(zt);switch(Zr.kind){case 184:return Di(Zr);case 187:return or(Zr);case 200:return gt(Zr);case 199:const Ai=Zr;if(Ai.operator===143)return en(Ai)}return st(zt,gn,Ri)}function gt(zt){const Zr=Kn(zt.objectType);if(Zr!==void 0)return L.updateIndexedAccessTypeNode(zt,Zr,st(zt.indexType,gn,Ri))}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:Ai}=t.trackExistingEntityName(ge,zt.exprName);if(!Zr)return L.updateTypeQueryNode(zt,Ai,Xn(zt.typeArguments,gn,Ri));const Ni=t.serializeTypeName(ge,zt.exprName,!0);if(Ni)return t.markNodeReuse(ge,Ni,zt.exprName)}function Di(zt){if(t.canReuseTypeNode(ge,zt)){const{introducesError:Zr,node:Ai}=t.trackExistingEntityName(ge,zt.typeName),Ni=Xn(zt.typeArguments,gn,Ri);if(Zr){const Pr=t.serializeTypeName(ge,zt.typeName,!1,Ni);if(Pr)return t.markNodeReuse(ge,Pr,zt.typeName)}else{const Pr=L.updateTypeReferenceNode(zt,Ai,Ni);return t.markNodeReuse(ge,Pr,zt)}}}function co(zt){var Zr;if(t0(zt))return st(zt.type,gn,Ri);if(kie(zt)||zt.kind===320)return L.createKeywordTypeNode(133);if(wie(zt))return L.createKeywordTypeNode(159);if(RD(zt))return L.createUnionTypeNode([st(zt.type,gn,Ri),L.createLiteralTypeNode(L.createNull())]);if(Ij(zt))return L.createUnionTypeNode([st(zt.type,gn,Ri),L.createKeywordTypeNode(157)]);if(E4(zt))return st(zt.type,gn);if(A4(zt))return L.createArrayTypeNode(st(zt.type,gn,Ri));if(R1(zt))return L.createTypeLiteralNode(Bt(zt.jsDocPropertyTags,At=>{const mn=st(He(At.name)?At.name:At.name.right,gn,He),dr=t.getJsDocPropertyOverride(ge,zt,At);return L.createPropertySignature(void 0,mn,At.isBracketed||At.typeExpression&&Ij(At.typeExpression.type)?L.createToken(58):void 0,dr||At.typeExpression&&st(At.typeExpression.type,gn,Ri)||L.createKeywordTypeNode(133))}));if(Wp(zt)&&He(zt.typeName)&&zt.typeName.escapedText==="")return jr(L.createKeywordTypeNode(133),zt);if((uy(zt)||Wp(zt))&&n6(zt))return L.createTypeLiteralNode([L.createIndexSignature(void 0,[L.createParameterDeclaration(void 0,void 0,"x",void 0,st(zt.typeArguments[0],gn,Ri))],st(zt.typeArguments[1],gn,Ri))]);if(DD(zt))if(bI(zt)){let At;return L.createConstructorTypeNode(void 0,Xn(zt.typeParameters,gn,cl),ji(zt.parameters,(mn,dr)=>mn.name&&He(mn.name)&&mn.name.escapedText==="new"?(At=mn.type,void 0):L.createParameterDeclaration(void 0,Pr(mn),t.markNodeReuse(ge,L.createIdentifier(Ci(mn,dr)),mn),L.cloneNode(mn.questionToken),st(mn.type,gn,Ri),void 0)),st(At||zt.type,gn,Ri)||L.createKeywordTypeNode(133))}else return L.createFunctionTypeNode(Xn(zt.typeParameters,gn,cl),Bt(zt.parameters,(At,mn)=>L.createParameterDeclaration(void 0,Pr(At),t.markNodeReuse(ge,L.createIdentifier(Ci(At,mn)),At),L.cloneNode(At.questionToken),st(At.type,gn,Ri),void 0)),st(zt.type,gn,Ri)||L.createKeywordTypeNode(133));if(VM(zt))return t.canReuseTypeNode(ge,zt)||Wt(),zt;if(cl(zt)){const{node:At}=t.trackExistingEntityName(ge,zt.name);return L.updateTypeParameterDeclaration(zt,Xn(zt.modifiers,gn,Aa),At,st(zt.constraint,gn,Ri),st(zt.default,gn,Ri))}if(GS(zt)){const At=gt(zt);return At||(Wt(),zt)}if(Wp(zt)){const At=Di(zt);return At||(Wt(),zt)}if(iy(zt)){if(((Zr=zt.attributes)==null?void 0:Zr.token)===132)return Wt(),zt;if(!t.canReuseTypeNode(ge,zt))return t.serializeExistingTypeNode(ge,zt);const At=Ye(zt,zt.argument.literal),mn=At===zt.argument.literal?i(ge,zt.argument.literal):At;return L.updateImportTypeNode(zt,mn===zt.argument.literal?i(ge,zt.argument):L.createLiteralTypeNode(mn),st(zt.attributes,gn,I1),st(zt.qualifier,gn,Mu),Xn(zt.typeArguments,gn,Ri),zt.isTypeOf)}if(nd(zt)&&zt.name.kind===168&&!t.hasLateBindableName(zt)){if(!ay(zt))return Ai(zt,gn);if(t.shouldRemoveDeclaration(ge,zt))return}if(Yo(zt)&&!zt.type||Po(zt)&&!zt.type&&!zt.initializer||Su(zt)&&!zt.type&&!zt.initializer||to(zt)&&!zt.type&&!zt.initializer){let At=Ai(zt,gn);return At===zt&&(At=t.markNodeReuse(ge,L.cloneNode(zt),zt)),At.type=L.createKeywordTypeNode(133),to(zt)&&(At.modifiers=void 0),At}if(zS(zt)){const At=or(zt);return At||(Wt(),zt)}if(va(zt)&&Ds(zt.expression)){const{node:At,introducesError:mn}=t.trackExistingEntityName(ge,zt.expression);if(mn){const dr=t.serializeTypeOfExpression(ge,zt.expression);let ri;if(uv(dr))ri=dr.literal;else{const ai=t.evaluateEntityNameExpression(zt.expression),Hi=typeof ai.value=="string"?L.createStringLiteral(ai.value,void 0):typeof ai.value=="number"?L.createNumericLiteral(ai.value,0):void 0;if(!Hi)return t_(dr)&&t.trackComputedName(ge,zt.expression),zt;ri=Hi}return ri.kind===11&&fp(ri.text,Ga(e))?L.createIdentifier(ri.text):ri.kind===9&&!ri.text.startsWith("-")?ri:L.updateComputedPropertyName(zt,ri)}else return L.updateComputedPropertyName(zt,At)}if(HI(zt)){let At;if(He(zt.parameterName)){const{node:mn,introducesError:dr}=t.trackExistingEntityName(ge,zt.parameterName);dr&&Wt(),At=mn}else At=L.cloneNode(zt.parameterName);return L.updateTypePredicateNode(zt,L.cloneNode(zt.assertsModifier),At,st(zt.type,gn,Ri))}if(qI(zt)||wu(zt)||T1(zt)){const At=Ai(zt,gn),mn=t.markNodeReuse(ge,At===zt?L.cloneNode(zt):At,zt),dr=Qa(mn);return Cr(mn,dr|(ge.flags&1024&&wu(zt)?0:1)),mn}if(wa(zt)&&ge.flags&268435456&&!zt.singleQuote){const At=L.cloneNode(zt);return At.singleQuote=!0,At}if(BS(zt)){const At=st(zt.checkType,gn,Ri),mn=t.enterNewScope(ge,zt),dr=st(zt.extendsType,gn,Ri),ri=st(zt.trueType,gn,Ri);mn();const ai=st(zt.falseType,gn,Ri);return L.updateConditionalTypeNode(zt,At,dr,ri,ai)}if(KT(zt)){if(zt.operator===158&&zt.type.kind===155){if(!t.canReuseTypeNode(ge,zt))return Wt(),zt}else if(zt.operator===143){const At=en(zt);return At||(Wt(),zt)}}return Ai(zt,gn);function Ai(At,mn){const dr=!ge.enclosingFile||ge.enclosingFile!==Fn(At);return wn(At,mn,void 0,dr?Ni:void 0)}function Ni(At,mn,dr,ri,ai){let Hi=Xn(At,mn,dr,ri,ai);return Hi&&(Hi.pos!==-1||Hi.end!==-1)&&(Hi===At&&(Hi=L.createNodeArray(At.slice(),At.hasTrailingComma)),uh(Hi,-1,-1)),Hi}function Pr(At){return At.dotDotDotToken||(At.type&&A4(At.type)?L.createToken(26):void 0)}function Ci(At,mn){return At.name&&He(At.name)&&At.name.escapedText==="this"?"this":Pr(At)?"args":`arg${mn}`}function Ye(At,mn){const dr=t.getModuleSpecifierOverride(ge,At,mn);return dr?jr(L.createStringLiteral(dr),mn):mn}}}function s(ge,je,Ge){if(!ge)return;let We;return(!Ge||Be(ge))&&t.canReuseTypeNode(je,ge)&&(We=o(je,ge),We!==void 0&&(We=Ne(We,Ge,void 0,je))),We}function l(ge,je,Ge,We,at,Wt=at!==void 0){if(!ge||!t.canReuseTypeNodeAnnotation(je,Ge,ge,We,at)&&(!at||!t.canReuseTypeNodeAnnotation(je,Ge,ge,We,!1)))return;let cn;return(!at||Be(ge))&&(cn=s(ge,je,at)),cn!==void 0||!Wt?cn:(je.tracker.reportInferenceFallback(Ge),t.serializeExistingTypeNode(je,ge,at)??L.createKeywordTypeNode(133))}function u(ge,je,Ge,We){if(!ge)return;const at=s(ge,je,Ge);return at!==void 0?at:(je.tracker.reportInferenceFallback(ge),t.serializeExistingTypeNode(je,ge,Ge)??L.createKeywordTypeNode(133))}function d(ge,je,Ge){return N(ge,je,Ge)??Z(ge,t.getAllAccessorDeclarations(ge),Ge,je)}function g(ge,je,Ge,We){const at=ie(ge,je,!1,Ge,We);return at.type!==void 0?at.type:j(ge,je,at.reportFallback)}function h(ge,je,Ge){switch(ge.kind){case 170:case 342:return k(ge,je,Ge);case 261:return P(ge,je,Ge);case 172:case 349:case 173:return O(ge,je,Ge);case 209:return G(ge,je,Ge);case 278:return g(ge.expression,Ge,void 0,!0);case 212:case 213:case 227:return F(ge,je,Ge);case 304:case 305:return y(ge,je,Ge);default:C.assertNever(ge,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(ge.kind)}`)}}function y(ge,je,Ge){const We=xc(ge);let at;if(We&&t.canReuseTypeNodeAnnotation(Ge,ge,We,je)&&(at=s(We,Ge)),!at&&ge.kind===304){const Wt=ge.initializer,cn=qS(Wt)?MD(Wt):Wt.kind===235||Wt.kind===217?Wt.type:void 0;cn&&!Wm(cn)&&t.canReuseTypeNodeAnnotation(Ge,ge,cn,je)&&(at=s(cn,Ge))}return at??G(ge,je,Ge,!1)}function E(ge,je,Ge){switch(ge.kind){case 178:return d(ge,je,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(ge,je,Ge);default:C.assertNever(ge,`Node needs to be an inferrable node, found ${C.formatSyntaxKind(ge.kind)}`)}}function A(ge){if(ge)return ge.kind===178?Ir(ge)&&$y(ge)||kp(ge):lV(ge)}function R(ge,je){let Ge=A(ge);return!Ge&&ge!==je.firstAccessor&&(Ge=A(je.firstAccessor)),!Ge&&je.secondAccessor&&ge!==je.secondAccessor&&(Ge=A(je.secondAccessor)),Ge}function N(ge,je,Ge){const We=t.getAllAccessorDeclarations(ge),at=R(ge,We);if(at&&!HI(at))return q(Ge,ge,()=>l(at,Ge,ge,je)??G(ge,je,Ge));if(We.getAccessor)return q(Ge,We.getAccessor,()=>lt(We.getAccessor,je,Ge))}function P(ge,je,Ge){var We;const at=xc(ge);let Wt=EP;return at?Wt=l_(l(at,Ge,ge,je)):ge.initializer&&(((We=je.declarations)==null?void 0:We.length)===1||_o(je.declarations,yi)===1)&&!t.isExpandoFunctionDeclaration(ge)&&!Re(ge)&&(Wt=ie(ge.initializer,Ge,void 0,void 0,Xte(ge))),Wt.type!==void 0?Wt.type:G(ge,je,Ge,Wt.reportFallback)}function k(ge,je,Ge){const We=ge.parent;if(We.kind===179)return d(We,void 0,Ge);const at=xc(ge),Wt=t.requiresAddingImplicitUndefined(ge,je,Ge.enclosingDeclaration);let cn=EP;return at?cn=l_(l(at,Ge,ge,je,Wt)):to(ge)&&ge.initializer&&He(ge.name)&&!Re(ge)&&(cn=ie(ge.initializer,Ge,void 0,Wt)),cn.type!==void 0?cn.type:G(ge,je,Ge,cn.reportFallback)}function F(ge,je,Ge){const We=xc(ge);let at;We&&(at=l(We,Ge,ge,je));const Wt=Ge.suppressReportInferenceFallback;Ge.suppressReportInferenceFallback=!0;const cn=at??G(ge,je,Ge,!1);return Ge.suppressReportInferenceFallback=Wt,cn}function O(ge,je,Ge){const We=xc(ge),at=t.requiresAddingImplicitUndefined(ge,je,Ge.enclosingDeclaration);let Wt=EP;if(We)Wt=l_(l(We,Ge,ge,je,at));else{const cn=Po(ge)?ge.initializer:void 0;if(cn&&!Re(ge)){const gn=nk(ge);Wt=ie(cn,Ge,void 0,at,gn)}}return Wt.type!==void 0?Wt.type:G(ge,je,Ge,Wt.reportFallback)}function G(ge,je,Ge,We=!0){return We&&Ge.tracker.reportInferenceFallback(ge),Ge.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(Ge,ge,je)}function j(ge,je,Ge=!0,We){return C.assert(!We),Ge&&je.tracker.reportInferenceFallback(ge),je.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeTypeOfExpression(je,ge)??L.createKeywordTypeNode(133)}function J(ge,je,Ge,We){return We&&je.tracker.reportInferenceFallback(ge),je.noInferenceFallback===!0?L.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(je,ge,Ge)??L.createKeywordTypeNode(133)}function Z(ge,je,Ge,We,at=!0){return ge.kind===178?lt(ge,We,Ge,at):(at&&Ge.tracker.reportInferenceFallback(ge),(je.getAccessor&<(je.getAccessor,We,Ge,at))??t.serializeTypeOfDeclaration(Ge,ge,We)??L.createKeywordTypeNode(133))}function q(ge,je,Ge){const We=t.enterNewScope(ge,je),at=Ge();return We(),at}function ye(ge,je,Ge,We){return Wm(je)?ie(ge,Ge,!0,We):l_(u(je,Ge,We))}function ie(ge,je,Ge=!1,We=!1,at=!1){switch(ge.kind){case 218:return qS(ge)?ye(ge.expression,MD(ge),je,We):ie(ge.expression,je,Ge,We);case 80:if(t.isUndefinedIdentifierExpression(ge))return l_(re());break;case 106:return l_(r?Ne(L.createLiteralTypeNode(L.createNull()),We,ge,je):L.createKeywordTypeNode(133));case 220:case 219:return C.type(ge),q(je,ge,()=>K(ge,je));case 217:case 235:const Wt=ge;return ye(Wt.expression,Wt.type,je,We);case 225:const cn=ge;if(r4(cn))return be(cn.operator===40?cn.operand:cn,cn.operand.kind===10?163:150,je,Ge||at,We);break;case 210:return de(ge,je,Ge,We);case 211:return ve(ge,je,Ge,We);case 232:return l_(j(ge,je,!0,We));case 229:if(!Ge&&!at)return l_(L.createKeywordTypeNode(154));break;default:let gn,Kn=ge;switch(ge.kind){case 9:gn=150;break;case 15:Kn=L.createStringLiteral(ge.text),gn=154;break;case 11:gn=154;break;case 10:gn=163;break;case 112:case 97:gn=136;break}if(gn)return be(Kn,gn,je,Ge||at,We)}return EP}function K(ge,je){const Ge=lt(ge,void 0,je),We=Ce(ge.typeParameters,je),at=ge.parameters.map(Wt=>X(Wt,je));return l_(L.createFunctionTypeNode(We,at,Ge))}function pe(ge,je,Ge){if(!Ge)return je.tracker.reportInferenceFallback(ge),!1;for(const We of ge.elements)if(We.kind===231)return je.tracker.reportInferenceFallback(We),!1;return!0}function de(ge,je,Ge,We){if(!pe(ge,je,Ge))return We||rd(Bm(ge).parent)?YIe:l_(j(ge,je,!1,We));const at=je.noInferenceFallback;je.noInferenceFallback=!0;const Wt=[];for(const gn of ge.elements)if(C.assert(gn.kind!==231),gn.kind===233)Wt.push(re());else{const Kn=ie(gn,je,Ge),gt=Kn.type!==void 0?Kn.type:j(gn,je,Kn.reportFallback);Wt.push(gt)}const cn=L.createTupleTypeNode(Wt);return cn.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},je.noInferenceFallback=at,XIe}function fe(ge,je){let Ge=!0;for(const We of ge.properties){if(We.flags&262144){Ge=!1;break}if(We.kind===305||We.kind===306)je.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;!r4(at,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(at)&&(je.tracker.reportInferenceFallback(We.name),Ge=!1)}}return Ge}function ve(ge,je,Ge,We){if(!fe(ge,je))return We||rd(Bm(ge).parent)?YIe:l_(j(ge,je,!1,We));const at=je.noInferenceFallback;je.noInferenceFallback=!0;const Wt=[],cn=je.flags;je.flags|=4194304;for(const Kn of ge.properties){C.assert(!Ud(Kn)&&!Rg(Kn));const gt=Kn.name;let en;switch(Kn.kind){case 175:en=q(je,Kn,()=>Je(Kn,gt,je,Ge));break;case 304:en=xe(Kn,gt,je,Ge);break;case 179:case 178:en=Se(Kn,gt,je);break}en&&(Rc(en,Kn),Wt.push(en))}je.flags=cn;const gn=L.createTypeLiteralNode(Wt);return je.flags&1024||Cr(gn,1),je.noInferenceFallback=at,XIe}function xe(ge,je,Ge,We){const at=We?[L.createModifier(148)]:[],Wt=ie(ge.initializer,Ge,We),cn=Wt.type!==void 0?Wt.type:G(ge,void 0,Ge,Wt.reportFallback);return L.createPropertySignature(at,i(Ge,je),void 0,cn)}function X(ge,je){return L.updateParameterDeclaration(ge,void 0,i(je,ge.dotDotDotToken),t.serializeNameOfParameter(je,ge),t.isOptionalParameter(ge)?L.createToken(58):void 0,k(ge,void 0,je),void 0)}function Ce(ge,je){return ge==null?void 0:ge.map(Ge=>{var We;const{node:at}=t.trackExistingEntityName(je,Ge.name);return L.updateTypeParameterDeclaration(Ge,(We=Ge.modifiers)==null?void 0:We.map(Wt=>i(je,Wt)),at,u(Ge.constraint,je),u(Ge.default,je))})}function Je(ge,je,Ge,We){const at=lt(ge,void 0,Ge),Wt=Ce(ge.typeParameters,Ge),cn=ge.parameters.map(gn=>X(gn,Ge));return We?L.createPropertySignature([L.createModifier(148)],i(Ge,je),i(Ge,ge.questionToken),L.createFunctionTypeNode(Wt,cn,at)):(He(je)&&je.escapedText==="new"&&(je=L.createStringLiteral("new")),L.createMethodSignature([],i(Ge,je),i(Ge,ge.questionToken),Wt,cn,at))}function Se(ge,je,Ge){const We=t.getAllAccessorDeclarations(ge),at=We.getAccessor&&A(We.getAccessor),Wt=We.setAccessor&&A(We.setAccessor);if(at!==void 0&&Wt!==void 0)return q(Ge,ge,()=>{const cn=ge.parameters.map(gn=>X(gn,Ge));return pg(ge)?L.updateGetAccessorDeclaration(ge,[],i(Ge,je),cn,u(at,Ge),void 0):L.updateSetAccessorDeclaration(ge,[],i(Ge,je),cn,void 0)});if(We.firstAccessor===ge){const gn=(at?q(Ge,We.getAccessor,()=>u(at,Ge)):Wt?q(Ge,We.setAccessor,()=>u(Wt,Ge)):void 0)??Z(ge,We,Ge,void 0);return L.createPropertySignature(We.setAccessor===void 0?[L.createModifier(148)]:[],i(Ge,je),void 0,gn)}}function re(){return r?L.createKeywordTypeNode(157):L.createKeywordTypeNode(133)}function be(ge,je,Ge,We,at){let Wt;return We?(ge.kind===225&&ge.operator===40&&(Wt=L.createLiteralTypeNode(i(Ge,ge.operand))),Wt=L.createLiteralTypeNode(i(Ge,ge))):Wt=L.createKeywordTypeNode(je),l_(Ne(Wt,at,ge,Ge))}function Ne(ge,je,Ge,We){const at=Ge&&Bm(Ge).parent,Wt=at&&rd(at)&&wI(at);return!r||!(je||Wt)?ge:(Be(ge)||We.tracker.reportInferenceFallback(ge),dv(ge)?L.createUnionTypeNode([...ge.types,L.createKeywordTypeNode(157)]):L.createUnionTypeNode([ge,L.createKeywordTypeNode(157)]))}function Be(ge){return!r||ep(ge.kind)||ge.kind===202||ge.kind===185||ge.kind===186||ge.kind===189||ge.kind===190||ge.kind===188||ge.kind===204||ge.kind===198?!0:ge.kind===197?Be(ge.type):ge.kind===193||ge.kind===194?ge.types.every(Be):!1}function lt(ge,je,Ge,We=!0){let at=EP;const Wt=bI(ge)?xc(ge.parameters[0]):kp(ge);return Wt?at=l_(l(Wt,Ge,ge,je)):c1(ge)&&(at=ce(ge,Ge)),at.type!==void 0?at.type:J(ge,Ge,je,We&&at.reportFallback&&!Wt)}function ce(ge,je){let Ge;if(ge&&!Ol(ge.body)){if(dc(ge)&3)return EP;const at=ge.body;at&&ea(at)?vb(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(Re(Ge)){const We=qS(Ge)?MD(Ge):SD(Ge)||v4(Ge)?Ge.type:void 0;if(We&&!Wm(We))return l_(s(We,je))}else return ie(Ge,je);return EP}function Re(ge){return Dn(ge.parent,je=>Zo(je)||!Ms(je)&&!!xc(je)||i_(je)||ID(je))}}var Gb={};x(Gb,{NameValidationResult:()=>rxe,discoverTypings:()=>BJe,isTypingUpToDate:()=>txe,loadSafeList:()=>FJe,loadTypesMap:()=>zJe,nonRelativeModuleNameForTypingCache:()=>nxe,renderPackageNameValidationFailure:()=>VJe,validatePackageName:()=>GJe});var Z3="action::set",e7="action::invalidate",t7="action::packageInstalled",hq="event::typesRegistry",_q="event::beginInstallTypes",gq="event::endInstallTypes",hle="event::initializationFailed",mO="action::watchTypingLocations",yq;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(yq||(yq={}));function $Ie(e){return jc.args.includes(e)}function QIe(e){const t=jc.args.indexOf(e);return t>=0&&te.readFile(i));return new Map(Object.entries(r.config))}function zJe(e,t){var r;const i=kw(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function BJe(e,t,r,i,o,s,l,u,d,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const h=new Map;r=ji(r,G=>{const j=ya(G);if(Sg(j))return j});const y=[];l.include&&k(l.include,"Explicitly included types");const E=l.exclude||[];if(!g.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||O(r),u){const G=dS(u.map(nxe),fS,Wd);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&&txe(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:${u0(N)}`),N;function P(G){h.has(G)||h.set(G,!1)}function k(G,j){t&&t(`${j}: ${JSON.stringify(G)}`),$e(G,P)}function F(G,j,J,Z){const q=Qr(G,j);let ye,ie;e.fileExists(q)&&(Z.push(q),ye=kw(q,fe=>e.readFile(fe)).config,ie=Ki([ye.dependencies,ye.devDependencies,ye.optionalDependencies,ye.peerDependencies],Fh),k(ie,`Typing names in '${q}' dependencies`));const K=Qr(G,J);if(Z.push(K),!e.directoryExists(K))return;const pe=[],de=ie?ie.map(fe=>Qr(K,fe,j)):e.readDirectory(K,[".json"],void 0,void 0,3).filter(fe=>{if(Ic(fe)!==j)return!1;const ve=zd(ya(fe)),xe=ve[ve.length-3][0]==="@";return xe&&tb(ve[ve.length-4])===J||!xe&&tb(ve[ve.length-3])===J});t&&t(`Searching for typing names in ${K}; all files: ${JSON.stringify(de)}`);for(const fe of de){const ve=ya(fe),X=kw(ve,Je=>e.readFile(Je)).config;if(!X.name)continue;const Ce=X.types||X.typings;if(Ce){const Je=So(Ce,ci(ve));e.fileExists(Je)?(t&&t(` Package '${X.name}' provides its own types.`),h.set(X.name,Je)):t&&t(` Package '${X.name}' provides its own types but they are missing.`)}else pe.push(X.name)}k(pe," Found package names")}function O(G){const j=ji(G,Z=>{if(!Sg(Z))return;const q=Tu(tb(Ic(Z))),ye=YB(q);return o.get(ye)});j.length&&k(j,"Inferred typings from file names"),vt(G,Z=>El(Z,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),P("react"))}}var rxe=(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))(rxe||{}),ixe=214;function GJe(e){return _le(e,!0)}function _le(e,t){if(!e)return 1;if(e.length>ixe)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=_le(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};const o=_le(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function VJe(e,t){return typeof e=="object"?oxe(t,e.result,e.name,e.isScopeName):oxe(t,e,t,!1)}function oxe(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 ${ixe} 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 n7;(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})(n7||(n7={}));var gle=(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))(gle||{}),yle=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(yle||{}),vle=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(vle||{}),Em={},ble=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(ble||{}),vq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(vq||{}),bq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(bq||{}),Tle=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(Tle||{}),Sle=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(Sle||{}),Ele=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(Ele||{}),Tq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Tq||{});function r7(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 axe=r7(` `),i7=(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))(i7||{}),Ale=(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))(Ale||{}),Ile=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(Ile||{}),xle=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(xle||{}),Rle=(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))(Rle||{}),Dle=(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))(Dle||{}),Cle=(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))(Cle||{}),Nle=(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))(Nle||{}),Mle=(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))(Mle||{}),Sq=(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))(Sq||{}),yd=dg(99,!0),Ple=(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))(Ple||{});function o7(e){switch(e.kind){case 261:return Ir(e)&&V9(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 yu(e)||hy(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 F1(e){e=wq(e);const t=e.parent;return e.kind===308?1:dl(t)||ou(t)||py(t)||Eu(t)||jm(t)||Fc(t)&&e===t.name?7:a7(e)?jJe(e):k_(e)?o7(t):Mu(e)&&Dn(e,Rp(JM,cI,n0))?7:JJe(e)?2:UJe(e)?4:cl(t)?(C.assert(Tm(t.parent)),2):uv(t)?3:1}function jJe(e){const t=e.kind===167?e:ku(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===272?7:4}function a7(e){if(!e.parent)return!1;for(;e.parent.kind===167;)e=e.parent;return i1(e.parent)&&e.parent.moduleReference===e}function UJe(e){return HJe(e)||qJe(e)}function HJe(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 qJe(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 JJe(e){switch(fM(e)&&(e=e.parent),e.kind){case 110:return!L_(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return qh(e.parent)}return!1}function Eq(e,t=!1,r=!1){return hO(e,Zo,Iq,t,r)}function IP(e,t=!1,r=!1){return hO(e,VS,Iq,t,r)}function Aq(e,t=!1,r=!1){return hO(e,Vh,Iq,t,r)}function Lle(e,t=!1,r=!1){return hO(e,XT,KJe,t,r)}function kle(e,t=!1,r=!1){return hO(e,Wc,Iq,t,r)}function wle(e,t=!1,r=!1){return hO(e,ru,XJe,t,r)}function Iq(e){return e.expression}function KJe(e){return e.tag}function XJe(e){return e.tagName}function hO(e,t,r,i,o){let s=i?YJe(e):s7(e);return o&&(s=Ul(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function s7(e){return $D(e)?e.parent:e}function YJe(e){return $D(e)||Cq(e)?e.parent:e}function l7(e,t){for(;e;){if(e.kind===257&&e.label.escapedText===t)return e.label;e=e.parent}}function _O(e,t){return qr(e.expression)?e.expression.name.text===t:!1}function gO(e){var t;return He(e)&&((t=ni(e.parent,kN))==null?void 0:t.label)===e}function xq(e){var t;return He(e)&&((t=ni(e.parent,Lb))==null?void 0:t.label)===e}function Rq(e){return xq(e)||gO(e)}function Dq(e){var t;return((t=ni(e.parent,VR))==null?void 0:t.tagName)===e}function Ole(e){var t;return((t=ni(e.parent,ku))==null?void 0:t.right)===e}function $D(e){var t;return((t=ni(e.parent,qr))==null?void 0:t.name)===e}function Cq(e){var t;return((t=ni(e.parent,Ws))==null?void 0:t.argumentExpression)===e}function Nq(e){var t;return((t=ni(e.parent,pc))==null?void 0:t.name)===e}function Mq(e){var t;return He(e)&&((t=ni(e.parent,Yo))==null?void 0:t.name)===e}function c7(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return Oo(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 Wle(e){return FT(e.parent.parent)&&XN(e.parent.parent)===e}function z1(e){for(_m(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 eE(e){switch(e.kind){case 308:return zc(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(Kh(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 Yo(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=ac(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const l=eE(o);return l===""?"const":l;case 3:return Us(o)?"method":"property";case 4:return"property";case 5:return Us(o)?"method":"property";case 6:return"local class";default:return""}case 80:return jm(e.parent)?"alias":"";case 278:const s=eE(e.expression);return s===""?"const":s;default:return""}function t(r){return JR(r)?"const":GF(r)?"let":"var"}}function QD(e){switch(e.kind){case 110:return!0;case 80:return sV(e)&&e.parent.kind===170;default:return!1}}var $Je=/^\/\/\/\s*=r}function xP(e,t,r){return u7(e.pos,e.end,t,r)}function d7(e,t,r,i){return u7(e.getStart(t),e.end,r,i)}function u7(e,t,r,i){const o=Math.max(e,r),s=Math.min(t,i);return oi.kind===t)}function p7(e){const t=hn(e.parent.getChildren(),r=>ND(r)&&tp(r,e));return C.assert(!t||Ln(t.getChildren(),e)),t}function sxe(e){return e.kind===90}function QJe(e){return e.kind===86}function ZJe(e){return e.kind===100}function eKe(e){if(nd(e))return e.name;if(Dc(e)){const t=e.modifiers&&hn(e.modifiers,sxe);if(t)return t}if(uc(e)){const t=hn(e.getChildren(),QJe);if(t)return t}}function tKe(e){if(nd(e))return e.name;if(Zl(e)){const t=hn(e.modifiers,sxe);if(t)return t}if(Us(e)){const t=hn(e.getChildren(),ZJe);if(t)return t}}function nKe(e){let t;return Dn(e,r=>(Ri(r)&&(t=r),!ku(r.parent)&&!Ri(r.parent)&&!gS(r.parent))),t}function f7(e,t){if(e.flags&16777216)return;const r=C7(e,t);if(r)return r;const i=nKe(e);return i&&t.getTypeAtLocation(i)}function rKe(e,t){if(!t)switch(e.kind){case 264:case 232:return eKe(e);case 263:case 219:return tKe(e);case 177:return e}if(nd(e))return e.name}function lxe(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(r_(e.importClause.namedBindings)){const r=ag(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(xg(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function cxe(e,t){if(e.exportClause){if(Jf(e.exportClause))return ag(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(W_(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function iKe(e){if(e.types.length===1)return e.types[0].expression}function dxe(e,t){const{parent:r}=e;if(Aa(e)&&(t||e.kind!==90)?Sm(r)&&Ln(r.modifiers,e):e.kind===86?Dc(r)||uc(e):e.kind===100?Zl(r)||Us(e):e.kind===120?gd(r):e.kind===94?ZT(r):e.kind===156?bm(r):e.kind===145||e.kind===144?pc(r):e.kind===102?Fc(r):e.kind===139?Hf(r):e.kind===153&&gp(r)){const i=rKe(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&_d(r)&&r.declarations.length===1){const i=r.declarations[0];if(He(i.name))return i.name}if(e.kind===156){if(jm(r)&&r.isTypeOnly){const i=lxe(r.parent,t);if(i)return i}if(fc(r)&&r.isTypeOnly){const i=cxe(r,t);if(i)return i}}if(e.kind===130){if(Eu(r)&&r.propertyName||ou(r)&&r.propertyName||xg(r)||W_(r))return r.name;if(fc(r)&&r.exportClause&&W_(r.exportClause))return r.exportClause.name}if(e.kind===102&&vl(r)){const i=lxe(r,t);if(i)return i}if(e.kind===95){if(fc(r)){const i=cxe(r,t);if(i)return i}if(dl(r))return Ul(r.expression)}if(e.kind===149&&py(r))return r.expression;if(e.kind===161&&(vl(r)||fc(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Fp(r)&&r.token===e.kind){const i=iKe(r);if(i)return i}if(e.kind===96){if(cl(r)&&r.constraint&&Wp(r.constraint))return r.constraint.typeName;if(BS(r)&&Wp(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&v1(r))return r.typeParameter.name;if(e.kind===103&&cl(r)&&T1(r.parent))return r.name;if(e.kind===143&&KT(r)&&r.operator===143&&Wp(r.type))return r.type.typeName;if(e.kind===148&&KT(r)&&r.operator===148&&hw(r.type)&&Wp(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&VS(r)||e.kind===116&&KI(r)||e.kind===114&&TD(r)||e.kind===135&&Pb(r)||e.kind===127&&_w(r)||e.kind===91&&Eie(r))&&r.expression)return Ul(r.expression);if((e.kind===103||e.kind===104)&&Nr(r)&&r.operatorToken===e)return Ul(r.right);if(e.kind===130&&SD(r)&&Wp(r.type))return r.type.typeName;if(e.kind===103&&T4(r)||e.kind===165&&gw(r))return Ul(r.expression)}return e}function wq(e){return dxe(e,!1)}function m7(e){return dxe(e,!0)}function ip(e,t){return eC(e,t,r=>Jh(r)||ep(r.kind)||eo(r))}function eC(e,t,r){return uxe(e,t,!1,r,!1)}function Fi(e,t){return uxe(e,t,!0,void 0,!1)}function uxe(e,t,r,i,o){let s=e,l;e:for(;;){const d=s.getChildren(e),g=YA(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(g>=0&&d[g]){s=d[g];continue e}return s}function u(d,g,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)&&qle(s,r)?i(s):void 0)}}function Bc(e,t,r,i){const o=s(r||t);return C.assert(!(o&&h7(o))),o;function s(l){if(pxe(l)&&l.kind!==1)return l;const u=l.getChildren(t),d=YA(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||!qle(h,t)||h7(h)){const A=Vle(u,d,t,l.kind);return A?!i&&IF(A)&&A.getChildren(t).length?s(A):Gle(A,t):void 0}else return s(h)}C.assert(r!==void 0||l.kind===308||l.kind===1||IF(l));const g=Vle(u,u.length,t,l.kind);return g&&Gle(g,t)}}function pxe(e){return oI(e)&&!h7(e)}function Gle(e,t){if(pxe(e))return e;const r=e.getChildren(t);if(r.length===0)return e;const i=Vle(r,r.length,t,e.kind);return i&&Gle(i,t)}function Vle(e,t,r,i){for(let o=t-1;o>=0;o--){const s=e[o];if(h7(s))o===0&&(i===12||i===286)&&C.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(qle(e[o],r))return e[o]}}function px(e,t,r=Bc(t,e)){if(r&&X9(r)){const i=r.getStart(e),o=r.getEnd();if(ir.getStart(e)}function Ule(e,t){const r=Fi(e,t);return!!(BI(r)||r.kind===19&&ID(r.parent)&&i_(r.parent.parent)||r.kind===30&&ru(r.parent)&&i_(r.parent.parent))}function _7(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(Fi(e,t))}function g7(e,t,r){const i=ga(e.kind),o=ga(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 Fq(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=Bc(r.getFullStart(),t),r&&r.kind===29&&(r=Bc(r.getFullStart(),t)),!r||!He(r))return;if(!i)return k_(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=g7(r,19,t),!r)return;break;case 22:if(r=g7(r,21,t),!r)return;break;case 24:if(r=g7(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(Ri(r))break;return}r=Bc(r.getFullStart(),t)}}function mv(e,t,r){return Nc.getRangeOfEnclosingComment(e,t,void 0,r)}function Hle(e,t){const r=Fi(e,t);return!!Dn(r,mh)}function qle(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function DP(e,t=0){const r=[],i=rd(e)?W9(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||Ql(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 Jle(e){if(e.kind===184||e.kind===214)return e.typeArguments;if(Yo(e)||e.kind===264||e.kind===265)return e.typeParameters}function y7(e){return e===2||e===3}function zq(e){return!!(e===11||e===14||db(e))}function fxe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Kle(e){if(!e.isIntersection())return!1;const{types:t,checker:r}=e;return t.length===2&&(fxe(r,t[0],t[1])||fxe(r,t[1],t[0]))}function TO(e,t,r){return db(e.kind)&&e.getStart(r){const r=ls(t);return!e[r]&&(e[r]=!0)}}function fx(e){return e.getText(0,e.getLength())}function EO(e,t){let r="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Qle(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function Jq(e){return!!e.module||Ga(e)>=2||!!e.noEmit}function p0(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 Kq(e,t){return{...p0(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function S7(e){return e===2||e>=3&&e<=99||e===100}function Vb(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"?NP(r,i):r,void 0)}function NP(e,t){return L.createStringLiteral(e,t===0)}var Zle=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(Zle||{});function Xq(e,t){return r6(e,t)?1:0}function Gp(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const r=gg(e)&&e.imports&&hn(e.imports,i=>wa(i)&&!Os(i.parent));return r?Xq(r,e):1}}function Yq(e){switch(e){case 0:return"'";case 1:return'"';default:return C.assertNever(e)}}function $q(e){const t=E7(e);return t===void 0?void 0:Bi(t)}function E7(e){return e.escapedName!=="default"?e.escapedName:Bn(e.declarations,t=>{const r=Oo(t);return r&&r.kind===80?r.escapedText:void 0})}function A7(e){return ds(e)&&(py(e.parent)||vl(e.parent)||a_(e.parent)||Zu(e.parent,!1)&&e.parent.arguments[0]===e||Qu(e.parent)&&e.parent.arguments[0]===e)}function IO(e){return Ha(e)&&ff(e.parent)&&He(e.name)&&!e.propertyName}function I7(e,t){const r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function xO(e,t,r){if(e)for(;e.parent;){if(Yi(e.parent)||!aKe(r,e.parent,t))return e;e=e.parent}}function aKe(e,t,r){return k9(e,t.getStart(r))&&t.getEnd()<=Dl(e)}function nC(e,t){return Sm(e)?hn(e.modifiers,r=>r.kind===t):void 0}function Qq(e,t,r,i,o){var s;const u=(Mo(r)?r[0]:r).kind===244?fk:mI,d=Vn(t.statements,u),{comparer:g,isSorted:h}=v0.getOrganizeImportsStringComparerWithDetection(d,o),y=Mo(r)?xp(r,(E,A)=>v0.compareImportsOrRequireStatements(E,A,g)):[r];if(!(d!=null&&d.length)){if(gg(t))e.insertNodesAtTopOfFile(t,y,i);else for(const E of y)e.insertStatementsInNewFile(t.fileName,[E],(s=yl(E))==null?void 0:s.getSourceFile());return}if(C.assert(gg(t)),d&&h)for(const E of y){const A=v0.getImportDeclarationInsertionIndex(d,E,g);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 Zq(e,t){return C.assert(e.isTypeOnly),ha(e.getChildAt(0,t),hxe)}function rC(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function eJ(e,t,r){return(r?fS:rb)(e.fileName,t.fileName)&&rC(e.textSpan,t.textSpan)}function tJ(e){return(t,r)=>eJ(t,r,e)}function nJ(e,t){if(e){for(let r=0;rto(r)?!0:Ha(r)||ff(r)||pv(r)?!1:"quit")}var tce=new Map;function sKe(e){return e=e||GN,tce.has(e)||tce.set(e,lKe(e)),tce.get(e)}function lKe(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!=="..."&&(lg(E.charCodeAt(E.length-1))||r.push(yp(" ",16)),r.push(yp("...",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:g,writeLine:h,write:l,writeComment:l,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:_a,getIndent:()=>o,increaseIndent:()=>{o++},decreaseIndent:()=>{o--},clear:y};function u(){if(!(s>t)&&i){const E=m6(o);E&&(s+=E.length,r.push(yp(E,16))),i=!1}}function d(E,A){s>t||(u(),s+=E.length,r.push(yp(E,A)))}function g(E,A){s>t||(u(),s+=E.length,r.push(cKe(E,A)))}function h(){s>t||(s+=1,r.push(iC()),i=!0)}function y(){r=[],i=!0,o=0,s=0}}function cKe(e,t){return yp(e,r(t));function r(i){const o=i.flags;return o&3?iJ(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 yp(e,t){return{text:e,kind:i7[t]}}function zl(){return yp(" ",16)}function Vp(e){return yp(ga(e),5)}function lu(e){return yp(ga(e),15)}function PP(e){return yp(ga(e),12)}function nce(e){return yp(e,13)}function rce(e){return yp(e,14)}function oJ(e){const t=qE(e);return t===void 0?yf(e):Vp(t)}function yf(e){return yp(e,17)}function ice(e){return yp(e,0)}function oce(e){return yp(e,18)}function ace(e){return yp(e,24)}function dKe(e,t){return{text:e,kind:i7[23],target:{fileName:Fn(t).fileName,textSpan:zu(t)}}}function _xe(e){return yp(e,22)}function sce(e,t){var r;const i=Pie(e)?"link":Lie(e)?"linkcode":"linkplain",o=[_xe(`{@${i} `)];if(!e.name)e.text&&o.push(ace(e.text));else{const s=t==null?void 0:t.getSymbolAtLocation(e.name),l=s&&t?lJ(s,t):void 0,u=pKe(e.text),d=Al(e.name)+e.text.slice(0,u),g=uKe(e.text.slice(u)),h=(l==null?void 0:l.valueDeclaration)||((r=l==null?void 0:l.declarations)==null?void 0:r[0]);if(h)o.push(dKe(d,h)),g&&o.push(ace(g));else{const y=u===0||e.text.charCodeAt(u)===124&&d.charCodeAt(d.length-1)!==32?" ":"";o.push(ace(d+y+g))}}return o.push(_xe("}")),o}function uKe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&r--,i++,!r)return i}return 0}var fKe=` `;function gy(e,t){var r;return(t==null?void 0:t.newLineCharacter)||((r=e.getNewLine)==null?void 0:r.call(e))||fKe}function iC(){return yp(` `,6)}function jb(e,t){const r=sKe(t);try{return e(r),r.displayParts()}finally{r.clear()}}function RO(e,t,r,i=0,o,s,l){return jb(u=>{e.writeType(t,r,i|1024|16384,u,o,s,l)},o)}function LP(e,t,r,i,o=0){return jb(s=>{e.writeSymbol(t,r,i,o|8,s)})}function aJ(e,t,r,i=0,o,s,l){return i|=25632,jb(u=>{e.writeSignature(t,r,i,void 0,u,o,s,l)},o)}function lce(e){return!!e.parent&&ub(e.parent)&&e.parent.propertyName===e}function sJ(e,t){return U6(e,t.getScriptKind&&t.getScriptKind(e))}function lJ(e,t){let r=e;for(;mKe(r)||fg(r)&&r.links.target;)fg(r)&&r.links.target?r=r.links.target:r=xd(r,t);return r}function mKe(e){return(e.flags&2097152)!==0}function cce(e,t){return Ta(xd(e,t))}function dce(e,t){for(;lg(e.charCodeAt(t));)t+=1;return t}function R7(e,t){for(;t>-1&&Gh(e.charCodeAt(t));)t-=1;return t+1}function B1(e,t){const r=e.getSourceFile(),i=r.text;hKe(e,i)?oC(e,t,r):CO(e,t,r),kP(e,t,r)}function hKe(e,t){const r=e.getFullStart(),i=e.getStart();for(let o=r;o=0),s}function oC(e,t,r,i,o){x2(r.text,e.pos,uce(t,r,i,o,Cb))}function kP(e,t,r,i,o){R2(r.text,e.end,uce(t,r,i,o,OM))}function CO(e,t,r,i,o){R2(r.text,e.pos,uce(t,r,i,o,Cb))}function uce(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 _Ke(e,t){if(fo(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 D7(e){return Nr(e)&&e.operatorToken.kind===28||Fa(e)||(SD(e)||ED(e))&&Fa(e.expression)}function C7(e,t,r){const i=Bm(e.parent);switch(i.kind){case 215:return t.getContextualType(i,r);case 227:{const{left:o,operatorToken:s,right:l}=i;return N7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 297:return dJ(i,t);default:return t.getContextualType(e,r)}}function wP(e,t,r){const i=Gp(e,t),o=JSON.stringify(r);return i===0?`'${gm(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function N7(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 cJ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function dJ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var uJ="anonymous function";function OP(e,t,r,i){const o=r.getTypeChecker();let s=!0;const l=()=>s=!1,u=o.typeToTypeNode(e,t,1,8,{trackSymbol:(d,g,h)=>(s=s&&o.isSymbolAccessible(d,g,h,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:Kq(r,i)});return s?u:void 0}function fce(e){return e===180||e===181||e===182||e===172||e===174}function gxe(e){return e===263||e===177||e===175||e===178||e===179}function yxe(e){return e===268}function mce(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 gKe=Rp(fce,gxe,yxe,mce);function yKe(e,t){const r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(fce(e.kind)){if(r&&r.kind===28)return!1}else if(yxe(e.kind)){const u=Ba(e.getChildren(t));if(u&&n_(u))return!1}else if(gxe(e.kind)){const u=Ba(e.getChildren(t));if(u&&ES(u))return!1}else if(!mce(e.kind))return!1;if(e.kind===247)return!0;const i=Dn(e,u=>!u.parent),o=tE(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 M7(e,t,r){const i=Dn(t,o=>o.end!==e?"quit":gKe(o.kind));return!!i&&yKe(i,r)}function NO(e){let t=0,r=0;const i=5;return Jo(e,function o(s){if(mce(s.kind)){const l=s.getLastToken(e);(l==null?void 0:l.kind)===27?t++:r++}else if(fce(s.kind)){const l=s.getLastToken(e);if((l==null?void 0:l.kind)===27)t++;else if(l&&l.kind!==28){const u=ca(e,l.getStart(e)).line,d=ca(e,Uh(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 P7(e,t){return hce(e,e.getDirectories,t)||[]}function pJ(e,t,r,i,o){return hce(e,e.readDirectory,t,r,i,o)||se}function WP(e,t){return hce(e,e.fileExists,t)}function L7(e,t){return k7(()=>ch(t,e))||!1}function k7(e){try{return e()}catch{return}}function hce(e,t,...r){return k7(()=>t&&t.apply(e,r))}function fJ(e,t){const r=[];return F_(t,e,i=>{const o=Qr(i,"package.json");WP(t,o)&&r.push(o)}),r}function _ce(e,t){let r;return F_(t,e,i=>{if(i==="node_modules"||(r=mH(i,o=>WP(t,o),"package.json"),r))return!0}),r}function vKe(e,t){if(!t.fileExists)return[];const r=[];return F_(t,ci(e),i=>{const o=Qr(i,"package.json");if(t.fileExists(o)){const s=mJ(o,t);s&&r.push(s)}}),r}function mJ(e,t){if(!t.readFile)return;const r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=Bk(i),s={};if(o)for(const d of r){const g=o[d];if(!g)continue;const h=new Map;for(const y in g)h.set(y,g[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,g){return!!u(d,g)}};function u(d,g=15){for(const[h,y]of l)if(y&&g&h){const E=y.get(d);if(E!==void 0)return E}}}function aC(e,t,r){const i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||vKe(e.fileName,r)).filter(R=>R.parseable);let o,s,l;return{allowsImportingAmbientModule:d,getSourceFileInfo:g,allowsImportingSpecifier:h};function u(R){const N=A(R);for(const P of i)if(P.has(N)||P.has(s3(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=gm(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 O=u(F)||u(P);return s.set(R,O),O}function g(R,N){if(!i.length)return{importable:!0,packageName:void 0};if(!l)l=new Map;else{const O=l.get(R);if(O!==void 0)return O}const P=E(R.fileName,N);if(!P){const O={importable:!0,packageName:P};return l.set(R,O),O}const F={importable:u(P),packageName:P};return l.set(R,F),F}function h(R){return!i.length||y(R)||Zp(R)||Cp(R)?!0:u(R)}function y(R){return!!(gg(e)&&Pu(e)&&_D.has(R)&&(o===void 0&&(o=w7(e)),o))}function E(R,N){if(!R.includes("node_modules"))return;const P=_y.getNodeModulesPackageName(r.getCompilationSettings(),e,R,N,t);if(P&&!Zp(P)&&!Cp(P))return A(P)}function A(R){const N=zd(aP(R)).slice(1);return fo(N[0],"@")?`${N[0]}/${N[1]}`:N[0]}}function w7(e){return vt(e.imports,({text:t})=>_D.has(t))}function MO(e){return Ln(zd(e),"node_modules")}function vxe(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function gce(e,t){const r=zu(e),i=YA(t,r,Vs,G8);if(i>=0){const o=t[i];return C.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ha(o,vxe)}}function yce(e,t){var r;let i=YA(t,e.start,l=>l.start,js);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;const o=[],s=Dl(e);for(;;){const l=ni(t[i],vxe);if(!l||l.start>s)break;Nee(e,l)&&o.push(l),i++}return o}function mx({startPosition:e,endPosition:t}){return oc(e,t===void 0?e:t)}function hJ(e,t){const r=Fi(e,t.start);return Dn(r,o=>o.getStart(e)Dl(t)?"quit":St(o)&&rC(t,zu(o,e)))}function _J(e,t,r=Vs){return e?Mo(e)?r(Bt(e,t)):t(e,0):void 0}function gJ(e){return Mo(e)?$a(e):e}function O7(e,t,r){return e.escapedName==="export="||e.escapedName==="default"?yJ(e)||PO(bKe(e),t,!!r):e.name}function yJ(e){return Bn(e.declarations,t=>{var r,i,o;if(dl(t))return(r=ni(Ul(t.expression),He))==null?void 0:r.text;if(ou(t)&&t.symbol.flags===2097152)return(i=ni(t.propertyName,He))==null?void 0:i.text;const s=(o=ni(Oo(t),He))==null?void 0:o.text;if(s)return s;if(e.parent&&!dI(e.parent))return e.parent.getName()})}function bKe(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 PO(e,t,r){return LO(Tu(gm(e.name)),t,r)}function LO(e,t,r){const i=Ic(RR(Tu(e),"/index"));let o="",s=!0;const l=i.charCodeAt(0);D_(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||{}),Tce=(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))(Tce||{});function SJ(e){let t=1;const r=dm(),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,O,G)=>{A!==s&&(l.clear(),s=A);let j;if(k){const xe=Z6(k.fileName);if(xe){const{topLevelNodeModulesIndex:X,topLevelPackageNameIndex:Ce,packageRootIndex:Je}=xe;if(j=Vw(aP(k.fileName.substring(Ce+1,Je))),fo(A,k.path.substring(0,X))){const Se=o.get(j),re=k.fileName.substring(0,Ce+1);if(Se){const be=Se.indexOf(Dg);X>be&&o.set(j,re)}else o.set(j,re)}}}const Z=F===1&&mM(R)||R,q=F===0||dI(Z)?Bi(N):SKe(Z,G,void 0),ye=typeof q=="string"?q:q[0],ie=typeof q=="string"?void 0:q[1],K=gm(P.name),pe=t++,de=xd(R,G),fe=R.flags&33554432?void 0:R,ve=P.flags&33554432?void 0:P;(!fe||!ve)&&i.set(pe,[R,P]),r.add(d(ye,R,td(K)?void 0:K,G),{id:pe,symbolTableKey:N,symbolName:ye,capitalizedSymbolName:ie,moduleName:K,moduleFile:k,moduleFileName:k==null?void 0:k.fileName,packageName:j,exportKind:F,targetFlags:de.flags,isFromPackageJson:O,symbol:fe,moduleSymbol:ve})},get:(A,R)=>{if(A!==s)return;const N=r.get(R);return N==null?void 0:N.map(u)},search:(A,R,N,P)=>{if(A===s)return Hc(r,(k,F)=>{const{symbolName:O,ambientModuleName:G}=g(F),j=R&&k[0].capitalizedSymbolName||O;if(N(j,k[0].targetFlags)){const Z=k.map(u).filter((q,ye)=>E(q,k[ye].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&&w7(A)!==w7(R)||!Qp(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,[O,G]=i.get(R)||se;if(O&&G)return{symbol:O,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||O||C.checkDefined(N===2?j.resolveExternalModuleSymbol(J):j.tryGetMemberInModuleExportsAndProperties(Bi(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(xd(R,P))} ${A} ${k}`}function g(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),O=k.substring(P+1);return{symbolName:F,ambientModuleName:O===""?void 0:O}}function h(A){return!A.commonJsModuleIndicator&&!A.externalModuleIndicator&&!A.moduleAugmentations&&!A.ambientModuleNames}function y(A,R){if(!Qp(A.ambientModuleNames,R.ambientModuleNames))return!1;let N=-1,P=-1;for(const k of R.ambientModuleNames){const F=O=>gG(O)&&O.name.text===k;if(N=so(A.statements,F,N+1),P=so(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&&fo(A.moduleFileName,N))return!0;const P=o.get(R);return!P||fo(A.moduleFileName,P)}}function EJ(e,t,r,i,o,s,l,u){var d;if(!r){let A;const R=gm(i.name);return _D.has(R)&&(A=F7(t,e))!==void 0?A===fo(R,"node:"):!s||s.allowsImportingAmbientModule(i,l)||Sce(t,R)}if(C.assertIsDefined(r),t===r)return!1;const g=u==null?void 0:u.get(t.path,r.path,o,{});if((g==null?void 0:g.isBlockedByPackageJsonDependencies)!==void 0)return!g.isBlockedByPackageJsonDependencies||!!g.packageName&&Sce(t,g.packageName);const h=sy(l),y=(d=l.getGlobalTypingsCacheLocation)==null?void 0:d.call(l),E=!!_y.forEachFileNameOfModule(t.fileName,r.fileName,l,!1,A=>{const R=e.getSourceFile(A);return(R===r||!R)&&TKe(t.fileName,A,h,y,l)});if(s){const A=E?s.getSourceFileInfo(r,l):void 0;return u==null||u.setBlockedByPackageJsonDependencies(t.path,r.path,o,{},A==null?void 0:A.packageName,!(A!=null&&A.importable)),!!(A!=null&&A.importable)||E&&!!(A!=null&&A.packageName)&&Sce(t,A.packageName)}return E}function Sce(e,t){return e.imports&&e.imports.some(r=>r.text===t||r.text.startsWith(t+"/"))}function TKe(e,t,r,i,o){const s=F_(o,t,u=>Ic(u)==="node_modules"?u:void 0),l=s&&ci(r(s));return l===void 0||fo(r(e),l)||!!i&&fo(r(i),l)}function AJ(e,t,r,i,o){var s,l;const u=u1(t),d=r.autoImportFileExcludePatterns&&bxe(r,u);Txe(e.getTypeChecker(),e.getSourceFiles(),d,t,(h,y)=>o(h,y,e,!1));const g=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(g){const h=Ls(),y=e.getTypeChecker();Txe(g.getTypeChecker(),g.getSourceFiles(),d,t,(E,A)=>{(A&&!e.getSourceFile(A.fileName)||!A&&!y.resolveName(E.name,void 0,1536,!1))&&o(E,A,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ls()-h}`)}}function bxe(e,t){return ji(e.autoImportFileExcludePatterns,r=>{const i=V6(r,"","exclude");return i?ov(i,t):void 0})}function Txe(e,t,r,i,o){var s;const l=r&&Sxe(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)Pp(u)&&!(l!=null&&l(u))&&o(e.getMergedSymbol(u.symbol),u)}function Sxe(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!=null&&i.size&&Wb(o)){let l=ci(o);return F_(t,ci(s),u=>{const d=i.get(Uc(u));if(d)return d.some(g=>e.some(h=>h.test(o.replace(l,g))));l=ci(l)})??!1}return!1}}function Ece(e,t){return t.autoImportFileExcludePatterns?Sxe(bxe(t,u1(e)),e):()=>!1}function wO(e,t,r,i,o){var s,l,u,d,g;const h=Ls();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);const y=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||SJ({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{AJ(r,t,i,!0,(A,R,N,P)=>{++E%100===0&&(o==null||o.throwIfCancellationRequested());const k=new Set,F=N.getTypeChecker(),O=V7(A,F);O&&Exe(O.symbol,F)&&y.add(e.path,O.symbol,O.exportKind===1?"default":"export=",A,R,O.exportKind,P,F),F.forEachExportAndPropertyOfModule(A,(G,j)=>{G!==(O==null?void 0:O.symbol)&&Exe(G,F)&&ym(k,j)&&y.add(e.path,G,j,A,R,0,P,F)})})}catch(A){throw y.clear(),A}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Ls()-h} ms`),y}function V7(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 Exe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!sM(e)&&!Ane(e)}function SKe(e,t,r){let i;return j7(e,t,r,(o,s)=>(i=s?[o,s]:o,!0)),C.checkDefined(i)}function j7(e,t,r,i){let o,s=e;const l=new Set;for(;s;){const u=yJ(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=Un(o,s),!ym(l,s))break;s=s.flags&2097152?t.getImmediateAliasedSymbol(s):void 0}for(const u of o??se)if(u.parent&&dI(u.parent)){const d=i(PO(u.parent,r,!1),PO(u.parent,r,!0));if(d)return d}}function Axe(){const e=dg(99,!1);function t(i,o,s){return xKe(r(i,o,s),i)}function r(i,o,s){let l=0,u=0;const d=[],{prefix:g,pushTemplate:h}=CKe(o);i=g+i;const y=g.length;h&&d.push(16),e.setText(i);let E=0;const A=[];let R=0;do{l=e.scan(),rD(l)||(N(),u=l);const P=e.getTokenEnd();if(IKe(e.getTokenStart(),P,y,PKe(l),A),P>=i.length){const k=AKe(e,l,tl(d));k!==void 0&&(E=k)}}while(l!==1);function N(){switch(l){case 44:case 69:!EKe[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(!ep(l))break;(u===25||ep(u)&&ep(l)&&!DKe(u,l))&&(l=80)}}return{endOfLineState:E,spans:A}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}var EKe=qQ([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function AKe(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?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(db(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 IKe(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 xKe(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:RKe(g)}),o=u+d}const s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function RKe(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 DKe(e,t){if(!Bq(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function CKe(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 NKe(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 MKe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function PKe(e){if(ep(e))return 3;if(NKe(e)||MKe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return db(e)?6:2}}function Ace(e,t,r,i,o){return Rxe(IJ(e,t,r,i,o))}function Ixe(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function IJ(e,t,r,i,o){const s=[];return r.forEachChild(function u(d){if(!(!d||!M2(o,d.pos,d.getFullWidth()))){if(Ixe(t,d.kind),He(d)&&!Ol(d)&&i.has(d.escapedText)){const g=e.getSymbolAtLocation(d),h=g&&xxe(g,F1(d),e);h&&l(d.getStart(r),d.getEnd(),h)}d.forEachChild(u)}}),{spans:s,endOfLineState:0};function l(u,d,g){const h=d-u;C.assert(h>0,`Classification had non-positive length of ${h}`),s.push(u),s.push(h),s.push(g)}}function xxe(e,t,r){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&LKe(e)?14:void 0:i&2097152?xxe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function LKe(e){return vt(e.declarations,t=>pc(t)&&hy(t)===1)}function kKe(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 Rxe(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,ye=t.text.substr(j,J),ie=Z.exec(ye);if(!ie||!ie[3]||!(ie[3]in X8))return!1;let K=j;y(K,ie[1].length),K+=ie[1].length,d(K,ie[2].length,10),K+=ie[2].length,d(K,ie[3].length,21),K+=ie[3].length;const pe=ie[4];let de=K;for(;;){const ve=q.exec(pe);if(!ve)break;const xe=K+ve.index+ve[1].length;xe>de&&(y(de,xe-de),de=xe),d(de,ve[2].length,22),de+=ve[2].length,ve[3].length&&(y(de,ve[3].length),de+=ve[3].length),d(de,ve[4].length,5),de+=ve[4].length,ve[5].length&&(y(de,ve[5].length),de+=ve[5].length),d(de,ve[6].length,24),de+=ve[6].length}K+=ie[4].length,K>de&&y(de,K-de),ie[5]&&(d(K,ie[5].length,10),K+=ie[5].length);const fe=j+J;return K=0),q>0){const ye=J||O(j.kind,j);ye&&d(Z,q,ye)}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 O(j,J){if(ep(j))return 3;if((j===30||j===32)&&J&&Jle(J.parent))return 10;if(UG(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(db(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?Eb(J)?3:17:void 0}if(Wm(J.parent))return 3}return 2}}}function G(j){if(j&&P2(i,o,j.pos,j.getFullWidth())){Ixe(e,j.kind);for(const J of j.getChildren(t))k(J)||G(J)}}}var U7;(e=>{function t(K,pe,de,fe,ve){const xe=ip(de,fe);if(xe.parent&&(ph(xe.parent)&&xe.parent.tagName===xe||jS(xe.parent))){const{openingElement:X,closingElement:Ce}=xe.parent.parent,Je=[X,Ce].map(({tagName:Se})=>r(Se,de));return[{fileName:de.fileName,highlightSpans:Je}]}return i(fe,xe,K,pe,ve)||o(xe,de)}e.getDocumentHighlights=t;function r(K,pe){return{fileName:pe.fileName,textSpan:zu(K,pe),kind:"none"}}function i(K,pe,de,fe,ve){const xe=new Set(ve.map(Se=>Se.fileName)),X=Ys.getReferenceEntriesForNode(K,pe,de,ve,fe,void 0,xe);if(!X)return;const Ce=_2(X.map(Ys.toHighlightSpan),Se=>Se.fileName,Se=>Se.span),Je=Fd(de.useCaseSensitiveFileNames());return Co(cm(Ce.entries(),([Se,re])=>{if(!xe.has(Se)){if(!de.redirectTargetsMap.has(ks(Se,de.getCurrentDirectory(),Je)))return;const be=de.getSourceFile(Se);Se=hn(ve,Be=>!!Be.redirectInfo&&Be.redirectInfo.redirectTarget===be).fileName,C.assert(xe.has(Se))}return{fileName:Se,highlightSpans:re}}))}function o(K,pe){const de=s(K,pe);return de&&[{fileName:pe.fileName,highlightSpans:de}]}function s(K,pe){switch(K.kind){case 101:case 93:return $T(K.parent)?q(K.parent,pe):void 0;case 107:return fe(K.parent,tf,G);case 111:return fe(K.parent,Aj,O);case 113:case 85:case 98:const xe=K.kind===85?K.parent.parent:K.parent;return fe(xe,A1,F);case 109:return fe(K.parent,UM,k);case 84:case 90:return qM(K.parent)||xD(K.parent)?fe(K.parent.parent.parent,UM,k):void 0;case 83:case 88:return fe(K.parent,kN,P);case 99:case 117:case 92:return fe(K.parent,X=>mb(X,!0),N);case 137:return de(Ml,[137]);case 139:case 153:return de(fb,[139,153]);case 135:return fe(K.parent,Pb,j);case 134:return ve(j(K));case 127:return ve(J(K));case 103:case 147:return;default:return pb(K.kind)&&(rd(K.parent)||sc(K.parent))?ve(E(K.kind,K.parent)):void 0}function de(xe,X){return fe(K.parent,xe,Ce=>{var Je;return ji((Je=ni(Ce,ah))==null?void 0:Je.symbol.declarations,Se=>xe(Se)?hn(Se.getChildren(pe),re=>Ln(X,re.kind)):void 0)})}function fe(xe,X,Ce){return X(xe)?ve(Ce(xe,pe)):void 0}function ve(xe){return xe&&xe.map(X=>r(X,pe))}}function l(K){return Aj(K)?[K]:A1(K)?lo(K.catchClause?l(K.catchClause):K.tryBlock&&l(K.tryBlock),K.finallyBlock&&l(K.finallyBlock)):Yo(K)?void 0:g(K,l)}function u(K){let pe=K;for(;pe.parent;){const de=pe.parent;if(ES(de)||de.kind===308)return de;if(A1(de)&&de.tryBlock===pe&&de.catchClause)return pe;pe=de}}function d(K){return kN(K)?[K]:Yo(K)?void 0:g(K,d)}function g(K,pe){const de=[];return K.forEachChild(fe=>{const ve=pe(fe);ve!==void 0&&de.push(...QA(ve))}),de}function h(K,pe){const de=y(pe);return!!de&&de===K}function y(K){return Dn(K,pe=>{switch(pe.kind){case 256:if(K.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!K.label||ie(pe,K.label.escapedText);default:return Yo(pe)&&"quit"}})}function E(K,pe){return ji(A(pe,II(K)),de=>nC(de,K))}function A(K,pe){const de=K.parent;switch(de.kind){case 269:case 308:case 242:case 297:case 298:return pe&64&&Dc(K)?[...K.members,K]:de.statements;case 177:case 175:case 263:return[...de.parameters,...ui(de.parent)?de.parent.members:[]];case 264:case 232:case 265:case 188:const fe=de.members;if(pe&15){const ve=hn(de.members,Ml);if(ve)return[...fe,...ve.parameters]}else if(pe&64)return[...fe,de];return fe;default:return}}function R(K,pe,...de){return pe&&Ln(de,pe.kind)?(K.push(pe),!0):!1}function N(K){const pe=[];if(R(pe,K.getFirstToken(),99,117,92)&&K.kind===247){const de=K.getChildren();for(let fe=de.length-1;fe>=0&&!R(pe,de[fe],117);fe--);}return $e(d(K.statement),de=>{h(K,de)&&R(pe,de.getFirstToken(),83,88)}),pe}function P(K){const pe=y(K);if(pe)switch(pe.kind){case 249:case 250:case 251:case 247:case 248:return N(pe);case 256:return k(pe)}}function k(K){const pe=[];return R(pe,K.getFirstToken(),109),$e(K.caseBlock.clauses,de=>{R(pe,de.getFirstToken(),84,90),$e(d(de),fe=>{h(K,fe)&&R(pe,fe.getFirstToken(),83)})}),pe}function F(K,pe){const de=[];if(R(de,K.getFirstToken(),113),K.catchClause&&R(de,K.catchClause.getFirstToken(),85),K.finallyBlock){const fe=Es(K,98,pe);R(de,fe,98)}return de}function O(K,pe){const de=u(K);if(!de)return;const fe=[];return $e(l(de),ve=>{fe.push(Es(ve,111,pe))}),ES(de)&&vb(de,ve=>{fe.push(Es(ve,107,pe))}),fe}function G(K,pe){const de=df(K);if(!de)return;const fe=[];return vb(ha(de.body,ea),ve=>{fe.push(Es(ve,107,pe))}),$e(l(de.body),ve=>{fe.push(Es(ve,111,pe))}),fe}function j(K){const pe=df(K);if(!pe)return;const de=[];return pe.modifiers&&pe.modifiers.forEach(fe=>{R(de,fe,134)}),Jo(pe,fe=>{Z(fe,ve=>{Pb(ve)&&R(de,ve.getFirstToken(),135)})}),de}function J(K){const pe=df(K);if(!pe)return;const de=[];return Jo(pe,fe=>{Z(fe,ve=>{_w(ve)&&R(de,ve.getFirstToken(),127)})}),de}function Z(K,pe){pe(K),!Yo(K)&&!ui(K)&&!gd(K)&&!pc(K)&&!bm(K)&&!Ri(K)&&Jo(K,de=>Z(de,pe))}function q(K,pe){const de=ye(K,pe),fe=[];for(let ve=0;ve=xe.end;Je--)if(!Gh(pe.text.charCodeAt(Je))){Ce=!1;break}if(Ce){fe.push({fileName:pe.fileName,textSpan:oc(xe.getStart(),X.end),kind:"reference"}),ve++;continue}}fe.push(r(de[ve],pe))}return fe}function ye(K,pe){const de=[];for(;$T(K.parent)&&K.parent.elseStatement===K;)K=K.parent;for(;;){const fe=K.getChildren(pe);R(de,fe[0],101);for(let ve=fe.length-1;ve>=0&&!R(de,fe[ve],93);ve--);if(!K.elseStatement||!$T(K.elseStatement))break;K=K.elseStatement}return de}function ie(K,pe){return!!Dn(K.parent,de=>Lb(de)?de.label.escapedText===pe:"quit")}})(U7||(U7={}));function OO(e){return!!e.sourceFile}function xce(e,t,r){return RJ(e,t,r)}function RJ(e,t="",r,i){const o=new Map,s=Fd(!!e);function l(){const P=Co(o.keys()).filter(k=>k&&k.charAt(0)==="_").map(k=>{const F=o.get(k),O=[];return F.forEach((G,j)=>{OO(G)?O.push({name:j,scriptKind:G.sourceFile.scriptKind,refCount:G.languageServiceRefCount}):G.forEach((J,Z)=>O.push({name:j,scriptKind:Z,refCount:J.languageServiceRefCount}))}),O.sort((G,j)=>j.refCount-G.refCount),{bucket:k,sourceFiles:O}});return JSON.stringify(P,void 0,2)}function u(P){return typeof P.getCompilationSettings=="function"?P.getCompilationSettings():P}function d(P,k,F,O,G,j){const J=ks(P,t,s),Z=DJ(u(k));return g(P,J,k,Z,F,O,G,j)}function g(P,k,F,O,G,j,J,Z){return A(P,k,F,O,G,j,!0,J,Z)}function h(P,k,F,O,G,j){const J=ks(P,t,s),Z=DJ(u(k));return y(P,J,k,Z,F,O,G,j)}function y(P,k,F,O,G,j,J,Z){return A(P,k,u(F),O,G,j,!1,J,Z)}function E(P,k){const F=OO(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==null?void 0:F.sourceFile.scriptKind}, !entry: ${!F}`),F}function A(P,k,F,O,G,j,J,Z,q){var ye,ie,K,pe;Z=U6(P,Z);const de=u(F),fe=F===de?void 0:F,ve=Z===6?100:Ga(de),xe=typeof q=="object"?q:{languageVersion:ve,impliedNodeFormat:fe&&iO(k,(pe=(K=(ie=(ye=fe.getCompilerHost)==null?void 0:ye.call(fe))==null?void 0:ie.getModuleResolutionCache)==null?void 0:K.call(ie))==null?void 0:pe.getPackageJsonInfoCache(),fe,de),setExternalModuleIndicator:Uk(de),jsDocParsingMode:r};xe.languageVersion=ve,C.assertEqual(r,xe.jsDocParsingMode);const X=o.size,Ce=Rce(O,xe.impliedNodeFormat),Je=KA(o,Ce,()=>new Map);if(xr){o.size>X&&xr.instant(xr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:de.configFilePath,key:Ce});const Ne=!ad(k)&&Hc(o,(Be,lt)=>lt!==Ce&&Be.has(k)&<);Ne&&xr.instant(xr.Phase.Session,"documentRegistryBucketOverlap",{path:k,key1:Ne,key2:Ce})}const Se=Je.get(k);let re=Se&&E(Se,Z);if(!re&&i){const Ne=i.getDocument(Ce,k);Ne&&Ne.scriptKind===Z&&Ne.text===fx(G)&&(C.assert(J),re={sourceFile:Ne,languageServiceRefCount:0},be())}if(re)re.sourceFile.version!==j&&(re.sourceFile=sK(re.sourceFile,G,j,G.getChangeRange(re.sourceFile.scriptSnapshot)),i&&i.setDocument(Ce,k,re.sourceFile)),J&&re.languageServiceRefCount++;else{const Ne=az(P,G,xe,j,!1,Z);i&&i.setDocument(Ce,k,Ne),re={sourceFile:Ne,languageServiceRefCount:1},be()}return C.assert(re.languageServiceRefCount!==0),re.sourceFile;function be(){if(!Se)Je.set(k,re);else if(OO(Se)){const Ne=new Map;Ne.set(Se.sourceFile.scriptKind,Se),Ne.set(Z,re),Je.set(k,Ne)}else Se.set(Z,re)}}function R(P,k,F,O){const G=ks(P,t,s),j=DJ(k);return N(G,j,F,O)}function N(P,k,F,O){const G=C.checkDefined(o.get(Rce(k,O))),j=G.get(P),J=E(j,F);J.languageServiceRefCount--,C.assert(J.languageServiceRefCount>=0),J.languageServiceRefCount===0&&(OO(j)?G.delete(P):(j.delete(F),j.size===1&&G.set(P,Zn(j.values(),Vs))))}return{acquireDocument:d,acquireDocumentWithKey:g,updateDocument:h,updateDocumentWithKey:y,releaseDocument:R,releaseDocumentWithKey:N,getKeyForCompilationSettings:DJ,getDocumentRegistryBucketKeyWithMode:Rce,reportStats:l,getBuckets:()=>o}}function DJ(e){return yU(e,tU)}function Rce(e,t){return t?`${e}|${t}`:e}function Dce(e,t,r,i,o,s,l){const u=u1(i),d=Fd(u),g=CJ(t,r,d,l),h=CJ(r,t,d,l);return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},y=>{OKe(e,y,g,t,r,i.getCurrentDirectory(),u),WKe(e,y,g,h,i,d)})}function CJ(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:wKe(u.fileName,d,l,r):d};function s(l){if(r(l)===o)return t;const u=kV(l,o,r);return u===void 0?void 0:t+"/"+u}}function wKe(e,t,r,i){const o=MR(e,t,i);return Cce(ci(r),o)}function OKe(e,t,r,i,o,s,l){const{configFile:u}=e.getCompilerOptions();if(!u)return;const d=ci(u.fileName),g=JN(u);if(!g)return;Nce(g,(A,R)=>{switch(R){case"files":case"include":case"exclude":{if(h(A)||R!=="include"||!Cd(A.initializer))return;const P=ji(A.initializer.elements,F=>wa(F)?F.text:void 0);if(P.length===0)return;const k=j6(d,[],P,l,s);ov(C.checkDefined(k.includeFilePattern),l).test(i)&&!ov(C.checkDefined(k.includeFilePattern),l).test(o)&&t.insertNodeAfter(u,Ba(A.initializer.elements),L.createStringLiteral(E(o)));return}case"compilerOptions":Nce(A.initializer,(N,P)=>{const k=iU(P);C.assert((k==null?void 0:k.type)!=="listOrElement"),k&&(k.isFilePath||k.type==="list"&&k.element.isFilePath)?h(N):P==="paths"&&Nce(N.initializer,F=>{if(Cd(F.initializer))for(const O of F.initializer.elements)y(O)})});return}});function h(A){const R=Cd(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(!wa(A))return!1;const R=Cce(d,A.text),N=r(R);return N!==void 0?(t.replaceRangeWithText(u,Cxe(A,u),E(N)),!0):!1}function E(A){return cf(d,A,!l)}}function WKe(e,t,r,i,o,s){const l=e.getSourceFiles();for(const u of l){const d=r(u.fileName),g=d??u.fileName,h=ci(g),y=i(u.fileName),E=y||u.fileName,A=ci(E),R=d!==void 0||y!==void 0;BKe(u,t,N=>{if(!Zp(N))return;const P=Cce(A,N),k=r(P);return k===void 0?void 0:HE(cf(h,k,s))},N=>{const P=e.getTypeChecker().getSymbolAtLocation(N);if(P!=null&&P.declarations&&P.declarations.some(F=>yu(F)))return;const k=y!==void 0?Dxe(N,P1(N.text,E,e.getCompilerOptions(),o),r,l):zKe(P,N,u,e,o,r);return k!==void 0&&(k.updated||R&&Zp(N.text))?_y.updateModuleSpecifier(e.getCompilerOptions(),u,g,k.newFileName,p0(e,o),N.text):void 0})}}function FKe(e,t){return ya(Qr(e,t))}function Cce(e,t){return HE(FKe(e,t))}function zKe(e,t,r,i,o,s){if(e){const l=hn(e.declarations,Yi).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 Dxe(t,u,s,i.getSourceFiles())}}function Dxe(e,t,r,i){if(!t)return;if(t.resolvedModule){const d=u(t.resolvedModule.resolvedFileName);if(d)return d}const o=$e(t.failedLookupLocations,s)||Zp(e.text)&&$e(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){const g=r(d);return g&&hn(i,h=>h.fileName===g)?l(d):void 0}function l(d){return nl(d,"/package.json")?void 0:u(d)}function u(d){const g=r(d);return g&&{newFileName:g,updated:!0}}}function BKe(e,t,r,i){for(const o of e.referencedFiles||se){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,Cxe(o,e),s)}}function Cxe(e,t){return Bf(e.getStart(t)+1,e.end-1)}function Nce(e,t){if(Fa(e))for(const r of e.properties)Cc(r)&&wa(r.name)&&t(r,r.name.text)}var NJ=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(NJ||{});function FP(e,t){return{kind:e,isCaseSensitive:t}}function Mce(e){const t=new Map,r=e.trim().split(".").map(i=>UKe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>FP(2,!0),getFullMatch:()=>FP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>GKe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Pce(i,Ba(r),t),patternContainsDots:r.length>1}}function GKe(e,t,r,i){if(!Pce(t,Ba(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=Pxe(s,Pce(e[u],r[l],i));return s}function Nxe(e,t){let r=t.get(e);return r||t.set(e,r=Fce(e)),r}function Mxe(e,t,r){const i=HKe(e,t.textLowerCase);if(i===0)return FP(t.text.length===e.length?0:1,fo(e,t.text));if(t.isLowerCase){if(i===-1)return;const o=Nxe(e,r);for(const s of o)if(Lce(e,s,t.text,!0))return FP(2,Lce(e,s,t.text,!1));if(t.text.length0)return FP(2,!0);if(t.characterSpans.length>0){const o=Nxe(e,r),s=Lxe(e,o,t,!1)?!0:Lxe(e,o,t,!0)?!1:void 0;if(s!==void 0)return FP(3,s)}}}function Pce(e,t,r){if(MJ(t.totalTextChunk.text,s=>s!==32&&s!==42)){const s=Mxe(e,t.totalTextChunk,r);if(s)return s}const i=t.subWordTextChunks;let o;for(const s of i)o=Pxe(o,Mxe(e,s,r));return o}function Pxe(e,t){return JB([e,t],VKe)}function VKe(e,t){return e===void 0?1:t===void 0?-1:js(e.kind,t.kind)||NT(!e.isCaseSensitive,!t.isCaseSensitive)}function Lce(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&Wxe(0,o.length,s=>jKe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function jKe(e,t,r){return r?kce(e)===kce(t):e===t}function Lxe(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||!oF(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function kxe(e){if(e>=97&&e<=122)return!0;if(e<127||!oF(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function HKe(e,t){const r=e.length-t.length;for(let i=0;i<=r;i++)if(MJ(t,(o,s)=>kce(e.charCodeAt(s+i))===o))return i;return-1}function kce(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function wce(e){return e>=48&&e<=57}function qKe(e){return lC(e)||kxe(e)||wce(e)||e===95||e===36}function JKe(e){const t=[];let r=0,i=0;for(let o=0;o0&&(t.push(Oce(e.substr(r,i))),i=0)}return i>0&&t.push(Oce(e.substr(r,i))),t}function Oce(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Wce(e)}}function Wce(e){return wxe(e,!1)}function Fce(e){return wxe(e,!0)}function wxe(e,t){const r=[];let i=0;for(let o=1;ozce(i)&&i!==95,t,r)}function KKe(e,t,r){return t!==r&&t+1t(e.charCodeAt(o),o))}function Fxe(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,g=!1;function h(){return l=u,u=yd.scan(),u===19?d++:u===20&&d--,u}function y(){const j=yd.getTokenValue(),J=yd.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&&(g=!0)}function N(){let j=yd.getToken();return j===138?(j=h(),j===144&&(j=h(),j===11&&E()),!0):!1}function P(){if(l===25)return!1;let j=yd.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&&yd.lookAhead(()=>{const Z=yd.scan();return Z!==161&&(Z===42||Z===19||Z===80||ep(Z))})&&(j=h()),j===80||ep(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||ep(j))&&(j=h(),j===161&&(j=h(),j===11&&A()))))}return!0}return!1}function k(){let j=yd.getToken();if(j===95){if(R(),j=h(),j===156&&yd.lookAhead(()=>{const Z=yd.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&&yd.lookAhead(()=>{const Z=yd.scan();return Z===80||ep(Z)})&&(j=h()),(j===80||ep(j))&&(j=h(),j===64&&F(!0))))return!0;return!0}return!1}function F(j,J=!1){let Z=j?h():yd.getToken();return Z===149?(Z=h(),Z===21&&(Z=h(),(Z===11||J&&Z===15)&&A()),!0):!1}function O(){let j=yd.getToken();if(j===80&&yd.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(yd.setText(e),h();yd.getToken()!==1;){if(yd.getToken()===16){const j=[yd.getToken()];e:for(;Ze(j);){const J=yd.scan();switch(J){case 1:break e;case 102:P();break;case 16:j.push(J);break;case 19:Ze(j)&&j.push(J);break;case 20:Ze(j)&&(tl(j)===16?yd.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}h()}N()||P()||k()||r&&(F(!1,!0)||O())||h()}yd.setText(void 0)}if(t&&G(),Yj(i,e),$j(i,gs),g){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 YKe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function Bce(e){const t=Fd(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 ks(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 O=y(R);F=O&&PJ({getSourceFileLike:y,getCanonicalFileName:t,log:G=>e.log(G)},R,VU(O.text,sg(O)),G=>!e.fileExists||e.fileExists(G)?e.readFile(G):void 0)}return o.set(P,F||UU),F||UU}function u(R){if(!ad(R.fileName)||!g(R.fileName))return;const P=l(R.fileName).getSourcePosition(R);return!P||P===R?void 0:u(P)||P}function d(R){if(ad(R.fileName))return;const N=g(R.fileName);if(!N)return;const P=e.getProgram();if(P.isSourceOfProjectReferenceRedirect(N.fileName))return;const F=P.getCompilerOptions().outFile,O=F?Tu(F)+".d.ts":h6(R.fileName,P.getCompilerOptions(),P);if(O===void 0)return;const G=l(O,R.fileName).getGeneratedPosition(R);return G===R?void 0:G}function g(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?$Ke(k):!1;return i.set(N,F),F||void 0}function y(R){return e.getSourceFileLike?e.getSourceFileLike(R):g(R)||h(R)}function E(R,N){return y(R).getLineAndCharacterOfPosition(N)}function A(){i.clear(),o.clear()}}function PJ(e,t,r,i){let o=mae(r);if(o){const u=YKe.exec(o);if(u){if(u[1]){const d=u[1];return zxe(e,Jne(jc,d),t)}o=void 0}}const s=[];o&&s.push(o),s.push(t+".map");const l=o&&So(o,ci(t));for(const u of s){const d=So(u,ci(t)),g=i(d,l);if(Bo(g))return zxe(e,g,d);if(g!==void 0)return g||void 0}}function zxe(e,t,r){const i=hae(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Bo)))return gae(e,i,r)}function $Ke(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return LR(sg(this),r)}}}var Gce=new Map;function LJ(e,t,r){var i;t.getSemanticDiagnostics(e,r);const o=[],s=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||$l(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Qle(t)||Jq(t.getCompilerOptions()))&&QKe(e)&&o.push(Ar(nXe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=Pu(e);if(Gce.clear(),d(e),PI(t.getCompilerOptions()))for(const g of e.imports){const h=eM(g);if(Fc(h)&&di(h,32))continue;const y=ZKe(h);if(!y)continue;const E=(i=t.getResolvedModuleFromModuleSpecifier(g,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((g,h)=>g.start-h.start),o;function d(g){if(u)iXe(g,s)&&o.push(Ar(yi(g.parent)?g.parent.name:g,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(sc(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){const y=g.declarationList.declarations[0].initializer;y&&Zu(y,!0)&&o.push(Ar(y,f.require_call_may_be_converted_to_an_import))}const h=cu.getJSDocTypedefNodes(g);for(const y of h)o.push(Ar(y,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));cu.parameterShouldGetTypeFromJSDoc(g)&&o.push(Ar(g.name||g,f.JSDoc_types_may_be_moved_to_TypeScript_types))}OJ(g)&&eXe(g,s,o),g.forEachChild(d)}}function QKe(e){return e.statements.some(t=>{switch(t.kind){case 244:return t.declarationList.declarations.some(r=>!!r.initializer&&Zu(Bxe(r.initializer),!0));case 245:{const{expression:r}=t;if(!Nr(r))return Zu(r,!0);const i=ac(r);return i===1||i===2}default:return!1}})}function Bxe(e){return qr(e)?Bxe(e.expression):e}function ZKe(e){switch(e.kind){case 273:const{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===275&&wa(r)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function eXe(e,t,r){tXe(e,t)&&!Gce.has(Uxe(e))&&r.push(Ar(!e.name&&yi(e.parent)&&He(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function tXe(e,t){return!oM(e)&&e.body&&ea(e.body)&&rXe(e.body,t)&&kJ(e,t)}function kJ(e,t){const r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function nXe(e){return Nr(e)?e.left:e}function rXe(e,t){return!!vb(e,r=>H7(r,t))}function H7(e,t){return tf(e)&&!!e.expression&&wJ(e.expression,t)}function wJ(e,t){if(!Gxe(e)||!Vxe(e)||!e.arguments.every(i=>jxe(i,t)))return!1;let r=e.expression.expression;for(;Gxe(r)||qr(r);)if(Zo(r)){if(!Vxe(r)||!r.arguments.every(i=>jxe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function Gxe(e){return Zo(e)&&(_O(e,"then")||_O(e,"catch")||_O(e,"finally"))}function Vxe(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||He(i)&&i.text==="undefined")}function jxe(e,t){switch(e.kind){case 263:case 219:if(dc(e)&1)return!1;case 220:Gce.set(Uxe(e),!0);case 106:return!0;case 80:case 212:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||vt(xd(i,t).declarations,o=>Yo(o)||Zy(o)&&!!o.initializer&&Yo(o.initializer)):!1}default:return!1}}function Uxe(e){return`${e.pos.toString()}:${e.end.toString()}`}function iXe(e,t){var r,i,o,s;if(Us(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 Zl(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function OJ(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var oXe=new Set(["isolatedModules"]);function Vce(e,t){return qxe(e,t,!1)}function Hxe(e,t){return qxe(e,t,!0)}var aXe=`/// 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; }`,q7="lib.d.ts",jce;function qxe(e,t,r){jce??(jce=tx(q7,aXe,{languageVersion:99}));const i=[],o=t.compilerOptions?WJ(t.compilerOptions,i):{},s=oz();for(const N in s)Rs(s,N)&&o[N]===void 0&&(o[N]=s[N]);for(const N of goe)o.verbatimModuleSyntax&&oXe.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=iv(o),u={getSourceFile:N=>N===ya(d)?g:N===ya(q7)?jce:void 0,writeFile:(N,P)=>{El(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:()=>q7,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:N=>N,getCurrentDirectory:()=>"",getNewLine:()=>l,fileExists:N=>N===d||!!r&&N===q7,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),g=tx(d,e,{languageVersion:Ga(o),impliedNodeFormat:iO(ks(d,"",u.getCanonicalFileName),void 0,u,o),setExternalModuleIndicator:Uk(o),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(g.moduleName=t.moduleName),t.renamedDependencies&&(g.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,y;const A=oO(r?[d,q7]:[d],o,u);t.reportDiagnostics&&(Xr(i,A.getSyntacticDiagnostics(g)),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 Jxe(e,t,r,i,o){const s=Vce(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Xr(i,s.diagnostics),s.outputText}var Uce;function WJ(e,t){Uce=Uce||Vn(Hm,r=>typeof r.type=="object"&&!Hc(r.type,i=>typeof i!="number")),e=Gq(e);for(const r of Uce){if(!Rs(e,r.name))continue;const i=e[r.name];Bo(i)?e[r.name]=V4(r,i,t):Hc(r.type,o=>o===i)||t.push(voe(r))}return e}var Hce={};x(Hce,{getNavigateToItems:()=>Kxe});function Kxe(e,t,r,i,o,s,l){const u=Mce(i);if(!u)return se;const d=[],g=e.length===1?e[0]:void 0;for(const h of e)r.throwIfCancellationRequested(),!(s&&h.isDeclarationFile)&&(Xxe(h,!!l,g)||h.getNamedDeclarations().forEach((y,E)=>{sXe(u,E,y,t,h.fileName,!!l,g,d)}));return d.sort(uXe),(o===void 0?d:d.slice(0,o)).map(pXe)}function Xxe(e,t,r){return e!==r&&t&&(MO(e.path)||e.hasNoDefaultLib)}function sXe(e,t,r,i,o,s,l,u){const d=e.getMatchForLastSegmentOfPattern(t);if(d){for(const g of r)if(lXe(g,i,s,l))if(e.patternContainsDots){const h=e.getFullMatch(dXe(g),t);h&&u.push({name:t,fileName:o,matchKind:h.kind,isCaseSensitive:h.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:g})}}function lXe(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=>Xxe(u.getSourceFile(),r,i)));default:return!0}}function cXe(e,t){const r=Oo(e);return!!r&&(Yxe(r,t)||r.kind===168&&qce(r.expression,t))}function qce(e,t){return Yxe(e,t)||qr(e)&&(t.push(e.name.text),!0)&&qce(e.expression,t)}function Yxe(e,t){return Jh(e)&&(t.push(zf(e)),!0)}function dXe(e){const t=[],r=Oo(e);if(r&&r.kind===168&&!qce(r.expression,t))return se;t.shift();let i=z1(e);for(;i;){if(!cXe(i,t))return se;i=z1(i)}return t.reverse(),t}function uXe(e,t){return js(e.matchKind,t.matchKind)||v2(e.name,t.name)}function pXe(e){const t=e.declaration,r=z1(t),i=r&&Oo(r);return{name:e.name,kind:eE(t),kindModifiers:DP(t),matchKind:NJ[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:zu(t),containerName:i?i.text:"",containerKind:i?eE(r):""}}var Jce={};x(Jce,{getNavigationBarItems:()=>Qxe,getNavigationTree:()=>Zxe});var fXe=/\s+/g,Kce=150,FJ,WO,J7=[],gv,$xe=[],cC,Xce=[];function Qxe(e,t){FJ=t,WO=e;try{return Bt(yXe(nRe(e)),vXe)}finally{eRe()}}function Zxe(e,t){FJ=t,WO=e;try{return uRe(nRe(e))}finally{eRe()}}function eRe(){WO=void 0,FJ=void 0,J7=[],gv=void 0,Xce=[]}function K7(e){return zP(e.getText(WO))}function zJ(e){return e.node.kind}function tRe(e,t){e.children?e.children.push(t):e.children=[t]}function nRe(e){C.assert(!J7.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};gv=t;for(const r of e.statements)_x(r);return f0(),C.assert(!gv&&!J7.length),t}function rE(e,t){tRe(gv,Yce(e,t))}function Yce(e,t){return{node:e,name:t||(rd(e)||St(e)?Oo(e):void 0),additionalNodes:void 0,parent:gv,children:void 0,indent:gv.indent+1}}function rRe(e){cC||(cC=new Map),cC.set(e,!0)}function iRe(e){for(let t=0;t0;i--){const o=r[i];iE(e,o)}return[r.length-1,r[0]]}function iE(e,t){const r=Yce(e,t);tRe(gv,r),J7.push(gv),$xe.push(cC),cC=void 0,gv=r}function f0(){gv.children&&(BJ(gv.children,gv),Zce(gv.children)),gv=J7.pop(),cC=$xe.pop()}function m0(e,t,r){iE(e,r),_x(t),f0()}function aRe(e){e.initializer&&TXe(e.initializer)?(iE(e),Jo(e.initializer,_x),f0()):m0(e,e.initializer)}function $ce(e){const t=Oo(e);if(t===void 0)return!1;if(va(t)){const r=t.expression;return Ds(r)||np(r)||uf(r)}return!!t}function _x(e){if(FJ.throwIfCancellationRequested(),!(!e||oI(e)))switch(e.kind){case 177:const t=e;m0(t,t.body);for(const l of t.parameters)Np(l,t)&&rE(l);break;case 175:case 178:case 179:case 174:$ce(e)&&m0(e,e.body);break;case 173:$ce(e)&&aRe(e);break;case 172:$ce(e)&&rE(e);break;case 274:const r=e;r.name&&rE(r.name);const{namedBindings:i}=r;if(i)if(i.kind===275)rE(i);else for(const l of i.elements)rE(l);break;case 305:m0(e,e.name);break;case 306:const{expression:o}=e;He(o)?rE(e,o):rE(e);break;case 209:case 304:case 261:{const l=e;Qo(l.name)?_x(l.name):aRe(l);break}case 263:const s=e.name;s&&He(s)&&rRe(s.text),m0(e,e.body);break;case 220:case 219:m0(e,e.body);break;case 267:iE(e);for(const l of e.members)bXe(l)||rE(l);f0();break;case 264:case 232:case 265:iE(e);for(const l of e.members)_x(l);f0();break;case 268:m0(e,fRe(e).body);break;case 278:{const l=e.expression,u=Fa(l)||Zo(l)?l:Xs(l)||Us(l)?l.body:void 0;u?(iE(e),_x(u),f0()):rE(e);break}case 282:case 272:case 182:case 180:case 181:case 266:rE(e);break;case 214:case 227:{const l=ac(e);switch(l){case 1:case 2:m0(e,e.right);return;case 6:case 3:{const u=e,d=u.left,g=l===3?d.expression:d;let h=0,y;He(g.expression)?(rRe(g.expression.text),y=g.expression):[h,y]=oRe(u,g.expression),l===6?Fa(u.right)&&u.right.properties.length>0&&(iE(u,y),Jo(u.right,_x),f0()):Us(u.right)||Xs(u.right)?m0(e,u.right,y):(iE(u,y),m0(e,u.right,d.name),f0()),iRe(h);return}case 7:case 9:{const u=e,d=l===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[h,y]=oRe(e,d);iE(e,y),iE(e,bt(L.createIdentifier(g.text),g)),_x(e.arguments[2]),f0(),f0(),iRe(h);return}case 5:{const u=e,d=u.left,g=d.expression;if(He(g)&&oy(d)!=="prototype"&&cC&&cC.has(g.text)){Us(u.right)||Xs(u.right)?m0(e,u.right,g):IS(d)&&(iE(u,g),m0(u.left,u.right,gk(d)),f0());return}break}case 4:case 0:case 8:break;default:C.assertNever(l)}}default:ef(e)&&$e(e.jsDoc,l=>{$e(l.tags,u=>{_m(u)&&rE(u)})}),Jo(e,_x)}}function BJ(e,t){const r=new Map;el(e,(i,o)=>{const s=i.name||Oo(i.node),l=s&&K7(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(sRe(d,i,o,t))return!1;return u.push(i),!0}else{const d=u;return sRe(d,i,o,t)?!1:(r.set(l,[d,i]),!0)}})}var FO={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function mXe(e,t,r,i){function o(u){return Us(u)||Zl(u)||yi(u)}const s=Nr(t.node)||Zo(t.node)?ac(t.node):0,l=Nr(e.node)||Zo(e.node)?ac(e.node):0;if(FO[s]&&FO[l]||o(e.node)&&FO[s]||o(t.node)&&FO[l]||Dc(e.node)&&Qce(e.node)&&FO[s]||Dc(t.node)&&FO[l]||Dc(e.node)&&Qce(e.node)&&o(t.node)||Dc(t.node)&&o(e.node)&&Qce(e.node)){let u=e.additionalNodes&&tl(e.additionalNodes)||e.node;if(!Dc(e.node)&&!Dc(t.node)||o(e.node)||o(t.node)){const g=o(e.node)?e.node:o(t.node)?t.node:void 0;if(g!==void 0){const h=bt(L.createConstructorDeclaration(void 0,[],void 0),g),y=Yce(h);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?lo([y],t.children||[t]):lo(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=lo(e.children||[{...e}],t.children||[t]),e.children&&(BJ(e.children,e),Zce(e.children)));u=e.node=bt(L.createClassDeclaration(void 0,e.name||L.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=lo(e.children,t.children),e.children&&BJ(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 sRe(e,t,r,i){return mXe(e,t,r,i)?!0:hXe(e.node,t.node,i)?(_Xe(e,t),!0):!1}function hXe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(lRe(e,r)&&lRe(t,r)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return ua(e)===ua(t);case 268:return cRe(e,t)&&nde(e)===nde(t);default:return!0}}function Qce(e){return!!(e.flags&16)}function lRe(e,t){if(e.parent===void 0)return!1;const r=n_(e.parent)?e.parent.parent:e.parent;return r===t.node||Ln(t.additionalNodes,r)}function cRe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==268||cRe(e.body,t.body))}function _Xe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=lo(e.children,t.children),e.children&&(BJ(e.children,e),Zce(e.children))}function Zce(e){e.sort(gXe)}function gXe(e,t){return v2(dRe(e.node),dRe(t.node))||js(zJ(e),zJ(t))}function dRe(e){if(e.kind===268)return pRe(e);const t=Oo(e);if(t&&vc(t)){const r=d1(t);return r&&Bi(r)}switch(e.kind){case 219:case 220:case 232:return hRe(e);default:return}}function ede(e,t){if(e.kind===268)return zP(pRe(e));if(t){const r=He(t)?t.text:Ws(t)?`[${K7(t.argumentExpression)}]`:K7(t);if(r.length>0)return zP(r)}switch(e.kind){case 308:const r=e;return zc(r)?`"${w_(Ic(Tu(ya(r.fileName))))}"`:"";case 278:return dl(e)&&e.isExportEquals?"export=":"default";case 220:case 263:case 219:case 264:case 232:return nv(e)&2048?"default":hRe(e);case 177:return"constructor";case 181:return"new()";case 180:return"()";case 182:return"[]";default:return""}}function yXe(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(zJ(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(zJ(l.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function uRe(e){return{text:ede(e.node,e.name),kind:eE(e.node),kindModifiers:mRe(e.node),spans:tde(e),nameSpan:e.name&&rde(e.name),childItems:Bt(e.children,uRe)}}function vXe(e){return{text:ede(e.node,e.name),kind:eE(e.node),kindModifiers:mRe(e.node),spans:tde(e),childItems:Bt(e.children,t)||Xce,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:ede(r.node,r.name),kind:eE(r.node),kindModifiers:DP(r.node),spans:tde(r),childItems:Xce,indent:0,bolded:!1,grayed:!1}}}function tde(e){const t=[rde(e.node)];if(e.additionalNodes)for(const r of e.additionalNodes)t.push(rde(r));return t}function pRe(e){return yu(e)?Al(e.name):nde(e)}function nde(e){const t=[zf(e.name)];for(;e.body&&e.body.kind===268;)e=e.body,t.push(zf(e.name));return t.join(".")}function fRe(e){return e.body&&pc(e.body)?fRe(e.body):e}function bXe(e){return!e.name||e.name.kind===168}function rde(e){return e.kind===308?_v(e):zu(e,WO)}function mRe(e){return e.parent&&e.parent.kind===261&&(e=e.parent),DP(e)}function hRe(e){const{parent:t}=e;if(e.name&&K2(e.name)>0)return zP(ws(e.name));if(yi(t))return zP(ws(t.name));if(Nr(t)&&t.operatorToken.kind===64)return K7(t.left).replace(fXe,"");if(Cc(t))return K7(t.name);if(nv(e)&2048)return"default";if(ui(e))return"";if(Zo(t)){let r=_Re(t.expression);if(r!==void 0){if(r=zP(r),r.length>Kce)return`${r} callback`;const i=zP(ji(t.arguments,o=>ds(o)||lI(o)?o.getText(WO):void 0).join(", "));return`${r}(${i}) callback`}}return""}function _Re(e){if(He(e))return e.text;if(qr(e)){const t=_Re(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function TXe(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}function zP(e){return e=e.length>Kce?e.substring(0,Kce)+"...":e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var gx={};x(gx,{addExportsInOldFile:()=>mde,addImportsForMovedSymbols:()=>hde,addNewFileToTsconfig:()=>fde,addOrRemoveBracesToArrowFunction:()=>_Ye,addTargetFileImports:()=>Ade,containsJsx:()=>yde,convertArrowFunctionOrFunctionExpression:()=>TYe,convertParamsToDestructuredObject:()=>PYe,convertStringOrTemplateLiteral:()=>YYe,convertToOptionalChainExpression:()=>a$e,createNewFileName:()=>gde,doChangeNamedToNamespaceOrDefault:()=>SRe,extractSymbol:()=>mDe,generateGetAccessorAndSetAccessor:()=>j$e,getApplicableRefactors:()=>SXe,getEditsForRefactor:()=>EXe,getExistingLocals:()=>Sde,getIdentifierForNode:()=>Ede,getNewStatementsAndRemoveFromOldFile:()=>pde,getStatementsToMove:()=>zO,getUsageInfo:()=>X7,inferFunctionReturnType:()=>U$e,isInImport:()=>XJ,isRefactorErrorInfo:()=>yy,refactorKindBeginsWith:()=>h0,registerRefactor:()=>Cg});var ide=new Map;function Cg(e,t){ide.set(e,t)}function SXe(e,t){return Co(lf(ide.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>h0(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function EXe(e,t,r,i){const o=ide.get(t);return o&&o.getEditsForAction(e,r,i)}var ode="Convert export",GJ={name:"Convert default export to named export",description:Ho(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},VJ={name:"Convert named export to default export",description:Ho(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};Cg(ode,{kinds:[GJ.kind,VJ.kind],getAvailableActions:function(t){const r=gRe(t,t.triggerReason==="invoked");if(!r)return se;if(!yy(r)){const i=r.wasDefault?GJ:VJ;return[{name:ode,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:ode,description:Ho(f.Convert_default_export_to_named_export),actions:[{...GJ,notApplicableReason:r.error},{...VJ,notApplicableReason:r.error}]}]:se},getEditsForAction:function(t,r){C.assert(r===GJ.name||r===VJ.name,"Unexpected action name");const i=gRe(t);return C.assert(i&&!yy(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>AXe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function gRe(e,t=!0){const{file:r,program:i}=e,o=mx(e),s=Fi(r,o.start),l=s.parent&&nv(s.parent)&32&&t?s.parent:xO(s,r,o);if(!l||!Yi(l.parent)&&!(n_(l.parent)&&yu(l.parent.parent)))return{error:Ho(f.Could_not_find_export_statement)};const u=i.getTypeChecker(),d=CXe(l.parent,u),g=nv(l)||(dl(l)&&!l.isExportEquals?2080:0),h=!!(g&2048);if(!(g&32)||!h&&d.exports.has("default"))return{error:Ho(f.This_file_already_has_a_default_export)};const y=E=>He(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=$a(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 AXe(e,t,r,i,o){IXe(e,r,i,t.getTypeChecker()),xXe(t,r,i,o)}function IXe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(dl(r)&&!r.isExportEquals){const l=r.expression,u=yRe(l.text,l.text);o.replaceNode(e,r,L.createExportDeclaration(void 0,!1,L.createNamedExports([u])))}else o.delete(e,C.checkDefined(nC(r,90),"Should find a default keyword in modifier list"));else{const l=C.checkDefined(nC(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=$a(r.declarationList.declarations);if(!Ys.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 xXe(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");Ys.Core.eachExportReference(e.getSourceFiles(),l,s,u,i,r.text,t,d=>{if(r===d)return;const g=d.getSourceFile();t?RXe(g,d,o,r.text):DXe(g,d,o)})}function RXe(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,ade(i,l.name.text));break}case 274:{const l=o;C.assert(l.name===t,"Import clause name should match provided ref");const u=ade(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 g=wa(l.parent.moduleSpecifier)?Xq(l.parent.moduleSpecifier,e):1,h=Vb(void 0,[ade(i,t.text)],l.parent.moduleSpecifier,g);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 DXe(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,yRe("default",i.name.text));break}default:C.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function ade(e,t){return L.createImportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function yRe(e,t){return L.createExportSpecifier(!1,e===t?void 0:L.createIdentifier(e),L.createIdentifier(t))}function CXe(e,t){if(Yi(e))return e.symbol;const r=e.parent.symbol;return r.valueDeclaration&&SS(r.valueDeclaration)?t.getMergedSymbol(r):r}var sde="Convert import",jJ={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"}};Cg(sde,{kinds:$A(jJ).map(e=>e.kind),getAvailableActions:function(t){const r=vRe(t,t.triggerReason==="invoked");if(!r)return se;if(!yy(r)){const i=jJ[r.convertTo];return[{name:sde,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?$A(jJ).map(i=>({name:sde,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):se},getEditsForAction:function(t,r){C.assert(vt($A(jJ),s=>s.name===r),"Unexpected action name");const i=vRe(t);return C.assert(i&&!yy(i),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(t,s=>NXe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}});function vRe(e,t=!0){const{file:r}=e,i=mx(e),o=Fi(r,i.start),s=t?Dn(o,Rp(vl,a_)):xO(o,r,i);if(s===void 0||!(vl(s)||a_(s)))return{error:"Selection is not an import declaration."};const l=i.start+i.length,u=tE(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}:bRe(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 bRe(e,t){return PI(e.getCompilerOptions())&&LXe(t.parent.moduleSpecifier,e.getTypeChecker())}function NXe(e,t,r,i){const o=t.getTypeChecker();i.convertTo===0?MXe(e,o,r,i.import,PI(t.getCompilerOptions())):SRe(e,t,r,i.import,i.convertTo===1)}function MXe(e,t,r,i,o){let s=!1;const l=[],u=new Map;Ys.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!j2(y.parent))s=!0;else{const E=TRe(y.parent).text;t.resolveName(E,y,-1,!0)&&u.set(E,!0),C.assert(PXe(y.parent)===y,"Parent expression should match id"),l.push(y.parent)}});const d=new Map;for(const y of l){const E=TRe(y).text;let A=d.get(E);A===void 0&&d.set(E,A=u.has(E)?G1(E,e):E),r.replaceNode(e,y,L.createIdentifier(A))}const g=[];d.forEach((y,E)=>{g.push(L.createImportSpecifier(!1,y===E?void 0:L.createIdentifier(E),L.createIdentifier(y)))});const h=i.parent.parent;if(s&&!o&&vl(h))r.insertNodeAfter(e,h,ERe(h,void 0,g));else{const y=s?L.createIdentifier(i.name.text):void 0;r.replaceNode(e,i.parent,ARe(y,g))}}function TRe(e){return qr(e)?e.name:e.right}function PXe(e){return qr(e)?e.expression:e.left}function SRe(e,t,r,i,o=bRe(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 g=u&&wa(u)?LO(u.text,99):"module";function h(R){return!!Ys.Core.eachSymbolReferenceInFile(R.name,s,e,N=>{const P=s.resolveName(g,N,-1,!0);return P?d.has(P)?ou(N.parent):!0:!1})}const E=i.elements.some(h)?G1(g,e):g,A=new Set;for(const R of i.elements){const N=R.propertyName||R.name;Ys.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));Ud(P.parent)?r.replaceNode(e,P.parent,L.createPropertyAssignment(P.text,k)):ou(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&&vl(l)){const R=Co(A.values(),N=>L.createImportSpecifier(N.isTypeOnly,N.propertyName&&L.cloneNode(N.propertyName),L.cloneNode(N.name)));r.insertNodeAfter(e,i.parent.parent,ERe(l,void 0,R))}}function LXe(e,t){const r=t.resolveExternalModuleName(e);if(!r)return!1;const i=t.resolveExternalModuleSymbol(r);return r!==i}function ERe(e,t,r){return L.createImportDeclaration(void 0,ARe(t,r),e.moduleSpecifier,void 0)}function ARe(e,t){return L.createImportClause(void 0,e,t&&t.length?L.createNamedImports(t):void 0)}var lde="Extract type",UJ={name:"Extract to type alias",description:Ho(f.Extract_to_type_alias),kind:"refactor.extract.type"},HJ={name:"Extract to interface",description:Ho(f.Extract_to_interface),kind:"refactor.extract.interface"},qJ={name:"Extract to typedef",description:Ho(f.Extract_to_typedef),kind:"refactor.extract.typedef"};Cg(lde,{kinds:[UJ.kind,HJ.kind,qJ.kind],getAvailableActions:function(t){const{info:r,affectedTextRange:i}=IRe(t,t.triggerReason==="invoked");return r?yy(r)?t.preferences.provideRefactorNotApplicableReason?[{name:lde,description:Ho(f.Extract_type),actions:[{...qJ,notApplicableReason:r.error},{...UJ,notApplicableReason:r.error},{...HJ,notApplicableReason:r.error}]}]:se:[{name:lde,description:Ho(f.Extract_type),actions:r.isJS?[qJ]:Un([UJ],r.typeElements&&HJ)}].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}))})):se},getEditsForAction:function(t,r){const{file:i}=t,{info:o}=IRe(t);C.assert(o&&!yy(o),"Expected to find a range to extract");const s=G1("NewType",i),l=Rr.ChangeTracker.with(t,g=>{switch(r){case UJ.name:return C.assert(!o.isJS,"Invalid actionName/JS combo"),OXe(g,i,s,o);case qJ.name:return C.assert(o.isJS,"Invalid actionName/JS combo"),FXe(g,t,i,s,o);case HJ.name:return C.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),WXe(g,i,s,o);default:C.fail("Unexpected action name")}}),u=i.fileName,d=DO(l,u,s,!1);return{edits:l,renameFilename:u,renameLocation:d}}});function IRe(e,t=!0){const{file:r,startPosition:i}=e,o=Pu(r),s=v7(mx(e)),l=s.pos===s.end&&t,u=kXe(r,i,s,l);if(!u||!Ri(u))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=e.program.getTypeChecker(),g=zXe(u,o);if(g===void 0)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const h=BXe(u,g);if(!Ri(h))return{info:{error:Ho(f.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const y=[];(dv(h.parent)||JI(h.parent))&&s.end>u.end&&Xr(y,h.parent.types.filter(P=>d7(P,r,s.pos,s.end)));const E=y.length>1?y:h,{typeParameters:A,affectedTextRange:R}=wXe(d,E,g,r);if(!A)return{info:{error:Ho(f.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const N=JJ(d,E);return{info:{isJS:o,selection:E,enclosingNode:g,typeParameters:A,typeElements:N},affectedTextRange:R}}function kXe(e,t,r,i){const o=[()=>Fi(e,t),()=>eC(e,t,()=>!0)];for(const s of o){const l=s(),u=d7(l,e,r.pos,r.end),d=Dn(l,g=>g.parent&&Ri(g)&&!oE(r,g.parent,e)&&(i||u));if(d)return d}}function JJ(e,t){if(t){if(Mo(t)){const r=[];for(const i of t){const o=JJ(e,i);if(!o)return;Xr(r,o)}return r}if(JI(t)){const r=[],i=new Set;for(const o of t.types){const s=JJ(e,o);if(!s||!s.every(l=>l.name&&ym(i,AO(l.name))))return;Xr(r,s)}return r}else{if(b1(t))return JJ(e,t.type);if(wu(t))return t.members}}}function oE(e,t,r){return vO(e,ka(r.text,t.pos),t.end)}function wXe(e,t,r,i){const o=[],s=QA(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(Wp(d)){if(He(d.typeName)){const g=d.typeName,h=e.resolveName(g.text,g,262144,!0);for(const y of(h==null?void 0:h.declarations)||se)if(cl(y)&&y.getSourceFile()===i){if(y.name.escapedText===g.escapedText&&oE(y,l,i))return!0;if(oE(r,y,i)&&!oE(l,y,i)){kf(o,y);break}}}}else if(v1(d)){const g=Dn(d,h=>BS(h)&&oE(h.extendsType,d,i));if(!g||!oE(l,g,i))return!0}else if(HI(d)||VM(d)){const g=Dn(d.parent,Yo);if(g&&g.type&&oE(g.type,d,i)&&!oE(l,g,i))return!0}else if(zS(d)){if(He(d.exprName)){const g=e.resolveName(d.exprName.text,d.exprName,111551,!1);if(g!=null&&g.valueDeclaration&&oE(r,g.valueDeclaration,i)&&!oE(l,g.valueDeclaration,i))return!0}else if(Eb(d.exprName.left)&&!oE(l,d.parent,i))return!0}return i&&qI(d)&&ca(i,d.pos).line===ca(i,d.end).line&&Cr(d,1),Jo(d,u)}}function OXe(e,t,r,i){const{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:u,newTypeNode:d}=cde(i),g=L.createTypeAliasDeclaration(void 0,r,s.map(h=>L.updateTypeParameterDeclaration(h,h.modifiers,h.name,h.constraint,void 0)),d);e.insertNodeBefore(t,o,fj(g),!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 WXe(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,fj(d),!0);const{firstTypeNode:g,lastTypeNode:h}=cde(i);e.replaceNodeRange(t,g,h,L.createTypeReferenceNode(r,l.map(y=>L.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.ExcludeWhitespace})}function FXe(e,t,r,i,o){var s;QA(o.selection).forEach(R=>{Cr(R,7168)});const{enclosingNode:l,typeParameters:u}=o,{firstTypeNode:d,lastTypeNode:g,newTypeNode:h}=cde(o),y=L.createJSDocTypedefTag(L.createIdentifier("typedef"),L.createJSDocTypeExpression(h),L.createIdentifier(i)),E=[];$e(u,R=>{const N=WR(R),P=L.createTypeParameterDeclaration(void 0,R.name),k=L.createJSDocTemplateTag(L.createIdentifier("template"),N&&ha(N,t0),[P]);E.push(k)});const A=L.createJSDocComment(void 0,L.createNodeArray(lo(E,[y])));if(mh(l)){const R=l.getStart(r),N=gy(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),A,{suffix:N+N+r.text.slice(R7(r.text,R-1),R)})}else e.insertNodeBefore(r,l,A,!0);e.replaceNodeRange(r,d,g,L.createTypeReferenceNode(i,u.map(R=>L.createTypeReferenceNode(R.name,void 0))))}function cde(e){return Mo(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:dv(e.selection[0].parent)?L.createUnionTypeNode(e.selection):L.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function zXe(e,t){return Dn(e,Gi)||(t?Dn(e,mh):void 0)}function BXe(e,t){return Dn(e,r=>r===t?"quit":!!(dv(r.parent)||JI(r.parent)))??e}var KJ="Move to file",dde=Ho(f.Move_to_file),ude={name:"Move to file",description:dde,kind:"refactor.move.file"};Cg(KJ,{kinds:[ude.kind],getAvailableActions:function(t,r){const i=t.file,o=zO(t);if(!r)return se;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){const s=Dn(Fi(i,t.startPosition),hx),l=Dn(Fi(i,t.endPosition),hx);if(s&&!Yi(s)&&l&&!Yi(l))return se}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,Ba(o.all).end).line,offset:ca(i,Ba(o.all).end).character}};return[{name:KJ,description:dde,actions:[{...ude,range:s}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:KJ,description:dde,actions:[{...ude,notApplicableReason:Ho(f.Selection_is_not_a_valid_statement_or_statements)}]}]:se},getEditsForAction:function(t,r,i){C.assert(r===KJ,"Wrong refactor invoked");const o=C.checkDefined(zO(t)),{host:s,program:l}=t;C.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return Sg(u)||m1(u)?s.fileExists(u)&&l.getSourceFile(u)===void 0?xRe(Ho(f.Cannot_move_statements_to_the_selected_file)):{edits:Rr.ChangeTracker.with(t,g=>GXe(t,t.file,i.targetFile,t.program,o,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:xRe(Ho(f.Cannot_move_to_file_selected_file_is_invalid))}});function xRe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function GXe(e,t,r,i,o,s,l,u){const d=i.getTypeChecker(),g=!l.fileExists(r),h=g?G7(r,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,l):C.checkDefined(i.getSourceFile(r)),y=cu.createImportAdder(t,e.program,e.preferences,e.host),E=cu.createImportAdder(h,e.program,e.preferences,e.host);pde(t,h,X7(t,o.all,d,g?void 0:Sde(h,o.all,d)),s,o,i,l,u,E,y),g&&fde(i,s,t.fileName,r,sy(l))}function pde(e,t,r,i,o,s,l,u,d,g){const h=s.getTypeChecker(),y=ZB(e.statements,Hh),E=!TJ(t.fileName,s,l,!!e.commonJsModuleIndicator),A=Gp(e,u);hde(r.oldFileImportsFromTargetFile,t.fileName,g,s),jXe(e,o.all,r.unusedImportsFromOldFile,g),g.writeFixes(i,A),VXe(e,o.ranges,i),UXe(i,s,l,e,r.movedSymbols,t.fileName,A),mde(e,r.targetFileImportsFromOldFile,i,E),Ade(e,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,h,s,d),!gg(t)&&y.length&&i.insertStatementsInNewFile(t.fileName,y,e),d.writeFixes(i,A);const R=YXe(e,o.all,Co(r.oldFileImportsFromTargetFile.keys()),E);gg(t)&&t.statements.length>0?pYe(i,s,R,t,o):gg(t)?i.insertNodesAtEndOfFile(t,R,!1):i.insertStatementsInNewFile(t.fileName,d.hasFixes()?[4,...R]:R,e)}function fde(e,t,r,i,o){const s=e.getCompilerOptions().configFile;if(!s)return;const l=ya(Qr(r,"..",i)),u=MR(s.fileName,l,o),d=s.statements[0]&&ni(s.statements[0].expression,Fa),g=d&&hn(d.properties,h=>Cc(h)&&wa(h.name)&&h.name.text==="files");g&&Cd(g.initializer)&&t.insertNodeInListAfter(s,Ba(g.initializer.elements),L.createStringLiteral(u),g.initializer.elements)}function VXe(e,t,r){for(const{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function jXe(e,t,r,i){for(const o of e.statements)Ln(t,o)||DRe(o,s=>{CRe(s,l=>{r.has(l.symbol)&&i.removeExistingImport(l)})})}function mde(e,t,r,i){const o=tC();t.forEach((s,l)=>{if(l.declarations)for(const u of l.declarations){if(!Tde(u))continue;const d=iYe(u);if(!d)continue;const g=LRe(u);o(g)&&oYe(e,g,d,r,i)}})}function UXe(e,t,r,i,o,s,l){const u=t.getTypeChecker();for(const d of t.getSourceFiles())if(d!==i)for(const g of d.statements)DRe(g,h=>{if(u.getSymbolAtLocation(KXe(h))!==i.symbol)return;const y=P=>{const k=Ha(P.parent)?I7(u,P.parent):xd(u.getSymbolAtLocation(P),u);return!!k&&o.has(k)};$Xe(d,h,e,y);const E=ab(ci(So(i.fileName,t.getCurrentDirectory())),s);if(xR(!t.useCaseSensitiveFileNames())(E,d.fileName)===0)return;const A=_y.getModuleSpecifier(t.getCompilerOptions(),d,d.fileName,E,p0(t,r)),R=tYe(h,NP(A,l),y);R&&e.insertNodeAfter(d,g,R);const N=HXe(h);N&&qXe(e,d,u,o,A,N,h,l)})}function HXe(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,He);default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function qXe(e,t,r,i,o,s,l,u){const d=LO(o,99);let g=!1;const h=[];if(Ys.Core.eachSymbolReferenceInFile(s,r,t,y=>{qr(y.parent)&&(g=g||!!r.resolveName(d,y,-1,!0),i.has(r.getSymbolAtLocation(y.parent.name))&&h.push(y))}),h.length){const y=g?G1(d,t):d;for(const E of h)e.replaceNode(t,E,L.createIdentifier(y));e.insertNodeAfter(t,l,JXe(l,d,o,u))}}function JXe(e,t,r,i){const o=L.createIdentifier(t),s=NP(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,RRe(s));default:return C.assertNever(e,`Unexpected node kind ${e.kind}`)}}function RRe(e){return L.createCallExpression(L.createIdentifier("require"),void 0,[e])}function KXe(e){return e.kind===273?e.moduleSpecifier:e.kind===272?e.moduleReference.expression:e.initializer.arguments[0]}function DRe(e,t){if(vl(e))wa(e.moduleSpecifier)&&t(e);else if(Fc(e))py(e.moduleReference)&&ds(e.moduleReference.expression)&&t(e);else if(sc(e))for(const r of e.declarationList.declarations)r.initializer&&Zu(r.initializer,!0)&&t(r)}function CRe(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)He(u.name)&&t(u)}}function hde(e,t,r,i){for(const[o,s]of e){const l=O7(o,Ga(i.getCompilerOptions())),u=o.name==="default"&&o.parent?1:0;r.addImportForNonExistentExport(l,t,u,o.flags,s)}}function XXe(e,t,r,i=2){return L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(e,void 0,t,r)],i))}function YXe(e,t,r,i){return Ki(t,o=>{if(MRe(o)&&!NRe(e,o,i)&&bde(o,s=>{var l;return r.includes(C.checkDefined((l=ni(s,ah))==null?void 0:l.symbol))})){const s=QXe(_s(o),i);if(s)return s}return _s(o)})}function NRe(e,t,r,i){var o;return r?!od(t)&&di(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&_de(t).some(s=>e.symbol.exports.has(Cl(s)))}function $Xe(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)}CRe(t,o=>{o.name&&He(o.name)&&i(o.name)&&r.delete(e,o)})}function MRe(e){return C.assert(Yi(e.parent),"Node parent should be a SourceFile"),ORe(e)||sc(e)}function QXe(e,t){return t?[ZXe(e)]:eYe(e)}function ZXe(e){const t=Sm(e)?lo([L.createModifier(95)],hS(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=JS(e)?lb(e):void 0;return L.updateClassDeclaration(e,lo(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 eYe(e){return[e,..._de(e).map(PRe)]}function PRe(e){return L.createExpressionStatement(L.createBinaryExpression(L.createPropertyAccessExpression(L.createIdentifier("exports"),L.createIdentifier(e)),64,L.createIdentifier(e)))}function _de(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return ji(e.declarationList.declarations,t=>He(t.name)?t.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return se;case 245:return C.fail("Can't export an ExpressionStatement");default:return C.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function tYe(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&&nYe(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=rYe(e.name,r);return i?XXe(i,e.type,RRe(t),e.parent.flags):void 0}default:return C.assertNever(e,`Unexpected import kind ${e.kind}`)}}function nYe(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 rYe(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||!He(i.name)||t(i.name));return r.length?L.createObjectBindingPattern(r):void 0}}}function iYe(e){return od(e)?ni(e.expression.left.name,He):ni(e.name,He)}function LRe(e){switch(e.kind){case 261:return e.parent.parent;case 209:return LRe(ha(e.parent.parent,t=>yi(t)||Ha(t)));default:return e}}function oYe(e,t,r,i,o){if(!NRe(e,t,o,r))if(o)od(t)||i.insertExportModifier(e,t);else{const s=_de(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(PRe))}}function gde(e,t,r,i){const o=t.getTypeChecker();if(i){const s=X7(e,i.all,o),l=ci(e.fileName),u=AM(e.fileName);return Qr(l,cYe(dYe(s.oldFileImportsFromTargetFile,s.movedSymbols),u,l,r))+u}return""}function aYe(e){const{file:t}=e,r=v7(mx(e)),{statements:i}=t;let o=so(i,g=>g.end>r.pos);if(o===-1)return;const s=i[o],l=WRe(t,s);l&&(o=l.start);let u=so(i,g=>g.end>=r.end,o);u!==-1&&r.end<=i[u].getStart()&&u--;const d=WRe(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 zO(e){const t=aYe(e);if(t===void 0)return;const r=[],i=[],{toMove:o,afterLast:s}=t;return wB(o,sYe,(l,u)=>{for(let d=l;d!!(t.transformFlags&2))}function sYe(e){return!lYe(e)&&!Hh(e)}function lYe(e){switch(e.kind){case 273:return!0;case 272:return!di(e,32);case 244:return e.declarationList.declarations.every(t=>!!t.initializer&&Zu(t.initializer,!0));default:return!1}}function X7(e,t,r,i=new Set,o){var s;const l=new Set,u=new Map,d=new Map,g=E(yde(t));g&&u.set(g,[!1,ni((s=g.declarations)==null?void 0:s[0],A=>Eu(A)||jm(A)||xg(A)||Fc(A)||Ha(A)||yi(A))]);for(const A of t)bde(A,R=>{l.add(C.checkDefined(od(R)?r.getSymbolAtLocation(R.expression.left):R.symbol,"Need a symbol here"))});const h=new Set;for(const A of t)vde(A,r,o,(R,N)=>{if(!vt(R.declarations))return;if(i.has(xd(R,r))){h.add(R);return}const P=hn(R.declarations,XJ);if(P){const k=u.get(R);u.set(R,[(k===void 0||k)&&N,ni(P,F=>Eu(F)||jm(F)||xg(F)||Fc(F)||Ha(F)||yi(F))])}else!l.has(R)&&Hn(R.declarations,k=>Tde(k)&&uYe(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)Ln(t,A)||(g&&A.transformFlags&2&&h.delete(g),vde(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,XJ)?N:void 0}}function cYe(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 dYe(e,t){return mg(e,$q)||mg(t,$q)||"newFile"}function vde(e,t,r,i){e.forEachChild(function o(s){if(He(s)&&!k_(s)){if(r&&!tp(r,s))return;const l=t.getSymbolAtLocation(s);l&&i(l,HT(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 Bn(e.declarationList.declarations,r=>wRe(r.name,t));case 245:{const{expression:r}=e;return Nr(r)&&ac(r)===1?t(e):void 0}}}function XJ(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return kRe(e);case 209:return yi(e.parent.parent)&&kRe(e.parent.parent);default:return!1}}function kRe(e){return Yi(e.parent.parent.parent)&&!!e.initializer&&Zu(e.initializer,!0)}function Tde(e){return ORe(e)&&Yi(e.parent)||yi(e)&&Yi(e.parent.parent.parent)}function uYe(e){return yi(e)?e.parent.parent.parent:e.parent}function wRe(e,t){switch(e.kind){case 80:return t(ha(e.parent,r=>yi(r)||Ha(r)));case 208:case 207:return Bn(e.elements,r=>Jc(r)?void 0:wRe(r.name,t));default:return C.assertNever(e,`Unexpected name kind ${e.kind}`)}}function ORe(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function pYe(e,t,r,i,o){var s;const l=new Set,u=(s=i.symbol)==null?void 0:s.exports;if(u){const g=t.getTypeChecker(),h=new Map;for(const y of o.all)MRe(y)&&di(y,32)&&bde(y,E=>{var A;const R=ah(E)?(A=u.get(E.symbol.escapedName))==null?void 0:A.declarations:void 0,N=Bn(R,P=>fc(P)?P:ou(P)?ni(P.parent.parent,fc):void 0);N&&N.moduleSpecifier&&h.set(N,(h.get(N)||new Set).add(E))});for(const[y,E]of Co(h))if(y.exportClause&&Jf(y.exportClause)&&Ze(y.exportClause.elements)){const A=y.exportClause.elements,R=Vn(A,N=>hn(xd(N.symbol,g).declarations,P=>Tde(P)&&E.has(P))===void 0);if(Ze(R)===0){e.deleteNode(i,y),l.add(y);continue}Ze(R)fc(g)&&!!g.moduleSpecifier&&!l.has(g));d?e.insertNodesBefore(i,d,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function WRe(e,t){if(Ms(t)){const r=t.symbol.declarations;if(r===void 0||Ze(r)<=1||!Ln(r,t))return;const i=r[0],o=r[Ze(r)-1],s=ji(r,d=>Fn(d)===e&&Gi(d)?d:void 0),l=so(e.statements,d=>d.end>=o.end),u=so(e.statements,d=>d.end>=i.end);return{toMove:s,start:u,end:l}}}function Sde(e,t,r){const i=new Set;for(const o of e.imports){const s=eM(o);if(vl(s)&&s.importClause&&s.importClause.namedBindings&&r_(s.importClause.namedBindings))for(const l of s.importClause.namedBindings.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(xd(u,r))}if(pk(s.parent)&&ff(s.parent.name))for(const l of s.parent.name.elements){const u=r.getSymbolAtLocation(l.propertyName||l.name);u&&i.add(xd(u,r))}}for(const o of t)vde(o,r,void 0,s=>{const l=xd(s,r);l.valueDeclaration&&Fn(l.valueDeclaration).path===e.path&&i.add(l)});return i}function yy(e){return e.error!==void 0}function h0(e,t){return t?e.substr(0,t.length)===t:!0}function Ede(e,t,r,i){return qr(e)&&!ui(t)&&!r.resolveName(e.name.text,e,111551,!1)&&!eo(e.name)&&!KE(e.name)?e.name.text:G1(ui(t)?"newProperty":"newLocal",i)}function Ade(e,t,r,i,o,s){t.forEach(([l,u],d)=>{var g;const h=xd(d,i);i.isUnknownSymbol(h)?s.addVerbatimImport(C.checkDefined(u??Dn((g=d.declarations)==null?void 0:g[0],Bte))):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)}),hde(r,e.fileName,s,o)}var Y7="Inline variable",Ide=Ho(f.Inline_variable),xde={name:Y7,description:Ide,kind:"refactor.inline.variable"};Cg(Y7,{kinds:[xde.kind],getAvailableActions(e){const{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=FRe(t,o,s==="invoked",r);return l?gx.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:Y7,description:Ide,actions:[{...xde,notApplicableReason:l.error}]}]:se:[{name:Y7,description:Ide,actions:[xde]}]:se},getEditsForAction(e,t){C.assert(t===Y7,"Unexpected refactor invoked");const{file:r,program:i,startPosition:o}=e,s=FRe(r,o,!0,i);if(!s||gx.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=wa(d)&&He(y)&&Bm(y.parent);E&&AD(E)&&!XT(E.parent.parent)?mYe(h,r,E,d):h.replaceNode(r,y,fYe(y,d))}h.delete(r,u)})}}});function FRe(e,t,r,i){var o,s;const l=i.getTypeChecker(),u=ip(e,t),d=u.parent;if(He(u)){if(Vk(d)&&qN(d)&&He(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(zRe(d))return;const g=BRe(d,l,e);return g&&{references:g,declaration:d,replacement:d.initializer}}if(r){let g=l.resolveName(u.text,u,111551,!1);if(g=g&&l.getMergedSymbol(g),((s=g==null?void 0:g.declarations)==null?void 0:s.length)!==1)return{error:Ho(f.Variables_with_multiple_declarations_cannot_be_inlined)};const h=g.declarations[0];if(!Vk(h)||!qN(h)||!He(h.name)||zRe(h))return;const y=BRe(h,l,e);return y&&{references:y,declaration:h,replacement:h.initializer}}return{error:Ho(f.Could_not_find_variable_to_inline)}}}function zRe(e){const t=ha(e.parent.parent,sc);return vt(t.modifiers,VI)}function BRe(e,t,r){const i=[],o=Ys.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(Ys.isWriteAccessForReference(s)&&!Ud(s.parent)||ou(s.parent)||dl(s.parent)||zS(s.parent)||N2(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function fYe(e,t){t=_s(t);const{parent:r}=e;return St(r)&&(lM(t)hYe(t.file,t.program,i,s,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function hYe(e,t,r,i,o,s,l){const u=t.getTypeChecker(),d=X7(e,r.all,u),g=gde(e,t,o,r),h=G7(g,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,o),y=cu.createImportAdder(e,s.program,s.preferences,s.host),E=cu.createImportAdder(h,s.program,s.preferences,s.host);pde(e,h,d,i,r,t,o,l,E,y),fde(t,i,e.fileName,g,sy(o))}var _Ye={},Cde="Convert overload list to single signature",GRe=Ho(f.Convert_overload_list_to_single_signature),VRe={name:Cde,description:GRe,kind:"refactor.rewrite.function.overloadList"};Cg(Cde,{kinds:[VRe.kind],getEditsForAction:yYe,getAvailableActions:gYe});function gYe(e){const{file:t,startPosition:r,program:i}=e;return URe(t,r,i)?[{name:Cde,description:GRe,actions:[VRe]}]:se}function yYe(e){const{file:t,startPosition:r,program:i}=e,o=URe(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,g(o),l.type);break}case 175:{u=L.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(o),l.type,l.body);break}case 180:{u=L.updateCallSignature(l,l.typeParameters,g(o),l.type);break}case 177:{u=L.updateConstructorDeclaration(l,l.modifiers,g(o),l.body);break}case 181:{u=L.updateConstructSignature(l,l.typeParameters,g(o),l.type);break}case 263:{u=L.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(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 g(E){const A=E[E.length-1];return Ms(A)&&A.body&&(E=E.slice(0,E.length-1)),L.createNodeArray([L.createParameterDeclaration(void 0,L.createToken(26),"args",void 0,L.createUnionTypeNode(Bt(E,h)))])}function h(E){const A=Bt(E.parameters,y);return Cr(L.createTupleTypeNode(A),vt(A,R=>!!Ze(gD(R)))?0:1)}function y(E){C.assert(He(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=VO(R);N.length&&JT(A,[{text:`* ${N.split(` `).map(P=>` * ${P}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return A}}function jRe(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function URe(e,t,r){const i=Fi(e,t),o=Dn(i,jRe);if(!o||Ms(o)&&o.body&&ZD(o.body,t))return;const s=r.getTypeChecker(),l=o.symbol;if(!l)return;const u=l.declarations;if(Ze(u)<=1||!Hn(u,E=>Fn(E)===e)||!jRe(u[0]))return;const d=u[0].kind;if(!Hn(u,E=>E.kind===d))return;const g=u;if(vt(g,E=>!!E.typeParameters||vt(E.parameters,A=>!!A.modifiers||!He(A.name))))return;const h=ji(g,E=>s.getSignatureFromDeclaration(E));if(Ze(h)!==Ze(u))return;const y=s.getReturnTypeOfSignature(h[0]);if(Hn(h,E=>s.getReturnTypeOfSignature(E)===y))return g}var Nde="Add or remove braces in an arrow function",HRe=Ho(f.Add_or_remove_braces_in_an_arrow_function),YJ={name:"Add braces to arrow function",description:Ho(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},Q7={name:"Remove braces from arrow function",description:Ho(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};Cg(Nde,{kinds:[Q7.kind],getEditsForAction:bYe,getAvailableActions:vYe});function vYe(e){const{file:t,startPosition:r,triggerReason:i}=e,o=qRe(t,r,i==="invoked");return o?yy(o)?e.preferences.provideRefactorNotApplicableReason?[{name:Nde,description:HRe,actions:[{...YJ,notApplicableReason:o.error},{...Q7,notApplicableReason:o.error}]}]:se:[{name:Nde,description:HRe,actions:[o.addBraces?YJ:Q7]}]:se}function bYe(e,t){const{file:r,startPosition:i}=e,o=qRe(r,i);C.assert(o&&!yy(o),"Expected applicable refactor info");const{expression:s,returnStatement:l,func:u}=o;let d;if(t===YJ.name){const h=L.createReturnStatement(s);d=L.createBlock([h],!0),oC(s,h,r,3,!0)}else if(t===Q7.name&&l){const h=s||L.createVoidZero();d=D7(h)?L.createParenthesizedExpression(h):h,CO(l,d,r,3,!1),oC(l,d,r,3,!1),kP(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 qRe(e,t,r=!0,i){const o=Fi(e,t),s=df(o);if(!s)return{error:Ho(f.Could_not_find_a_containing_arrow_function)};if(!Xs(s))return{error:Ho(f.Containing_function_is_not_an_arrow_function)};if(!(!tp(s,o)||tp(s.body,o)&&!r)){if(h0(YJ.kind,i)&&St(s.body))return{func:s,addBraces:!0,expression:s.body};if(h0(Q7.kind,i)&&ea(s.body)&&s.body.statements.length===1){const l=$a(s.body.statements);if(tf(l)){const u=l.expression&&Fa(uD(l.expression,!1))?L.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:u,returnStatement:l}}}}}var TYe={},JRe="Convert arrow function or function expression",SYe=Ho(f.Convert_arrow_function_or_function_expression),Z7={name:"Convert to anonymous function",description:Ho(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},ez={name:"Convert to named function",description:Ho(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},tz={name:"Convert to arrow function",description:Ho(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};Cg(JRe,{kinds:[Z7.kind,ez.kind,tz.kind],getEditsForAction:AYe,getAvailableActions:EYe});function EYe(e){const{file:t,startPosition:r,program:i,kind:o}=e,s=XRe(t,r,i);if(!s)return se;const{selectedVariableDeclaration:l,func:u}=s,d=[],g=[];if(h0(ez.kind,o)){const h=l||Xs(u)&&yi(u.parent)?void 0:Ho(f.Could_not_convert_to_named_function);h?g.push({...ez,notApplicableReason:h}):d.push(ez)}if(h0(Z7.kind,o)){const h=!l&&Xs(u)?void 0:Ho(f.Could_not_convert_to_anonymous_function);h?g.push({...Z7,notApplicableReason:h}):d.push(Z7)}if(h0(tz.kind,o)){const h=Us(u)?void 0:Ho(f.Could_not_convert_to_arrow_function);h?g.push({...tz,notApplicableReason:h}):d.push(tz)}return[{name:JRe,description:SYe,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?g:d}]}function AYe(e,t){const{file:r,startPosition:i,program:o}=e,s=XRe(r,i,o);if(!s)return;const{func:l}=s,u=[];switch(t){case Z7.name:u.push(...DYe(e,l));break;case ez.name:const d=RYe(l);if(!d)return;u.push(...CYe(e,l,d));break;case tz.name:if(!Us(l))return;u.push(...NYe(e,l));break;default:return C.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function KRe(e){let t=!1;return e.forEachChild(function r(i){if(QD(i)){t=!0;return}!ui(i)&&!Zl(i)&&!Us(i)&&Jo(i,r)}),t}function XRe(e,t,r){const i=Fi(e,t),o=r.getTypeChecker(),s=xYe(e,o,i.parent);if(s&&!KRe(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};const l=df(i);if(l&&(Us(l)||Xs(l))&&!tp(l.body,i)&&!KRe(l.body)&&!o.containsArgumentsReference(l))return Us(l)&&$Re(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function IYe(e){return yi(e)||_d(e)&&e.declarations.length===1}function xYe(e,t,r){if(!IYe(r))return;const o=(yi(r)?r:$a(r.declarations)).initializer;if(o&&(Xs(o)||Us(o)&&!$Re(e,t,o)))return o}function YRe(e){if(St(e)){const t=L.createReturnStatement(e),r=e.getSourceFile();return bt(t,e),Op(t),CO(e,t,r,void 0,!0),L.createBlock([t],!0)}else return e}function RYe(e){const t=e.parent;if(!yi(t)||!qN(t))return;const r=t.parent,i=r.parent;if(!(!_d(r)||!sc(i)||!He(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function DYe(e,t){const{file:r}=e,i=YRe(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 CYe(e,t,r){const{file:i}=e,o=YRe(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:u,name:d}=r;aj(u);const g=PT(s)&32|Gd(t),h=L.createModifiersFromModifierFlags(g),y=L.createFunctionDeclaration(Ze(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 NYe(e,t){const{file:r}=e,o=t.body.statements[0];let s;MYe(t.body,o)?(s=o.expression,Op(s),B1(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 MYe(e,t){return e.statements.length===1&&tf(t)&&!!t.expression}function $Re(e,t,r){return!!r.name&&Ys.Core.isSymbolReferencedInFile(r.name,t,e)}var PYe={},$J="Convert parameters to destructured object",LYe=1,QRe=Ho(f.Convert_parameters_to_destructured_object),ZRe={name:$J,description:QRe,kind:"refactor.rewrite.parameters.toDestructured"};Cg($J,{kinds:[ZRe.kind],getEditsForAction:wYe,getAvailableActions:kYe});function kYe(e){const{file:t,startPosition:r}=e;return Pu(t)||!nDe(t,r,e.program.getTypeChecker())?se:[{name:$J,description:QRe,actions:[ZRe]}]}function wYe(e,t){C.assert(t===$J,"Unexpected action name");const{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,u=nDe(r,i,o.getTypeChecker());if(!u||!s)return;const d=WYe(u,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,h=>OYe(r,o,l,h,u,d))}:{edits:[]}}function OYe(e,t,r,i,o,s){const l=s.signature,u=Bt(aDe(o,t,r),h=>_s(h));if(l){const h=Bt(aDe(l,t,r),y=>_s(y));g(l,h)}g(o,u);const d=fN(s.functionCalls,(h,y)=>js(h.pos,y.pos));for(const h of d)if(h.arguments&&h.arguments.length){const y=_s(JYe(o,h.arguments),!0);i.replaceNodeRange(Fn(h),$a(h.arguments),Ba(h.arguments),y,{leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}function g(h,y){i.replaceNodeRangeWithNodes(e,$a(h.parameters),Ba(h.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include})}}function WYe(e,t,r){const i=XYe(e),o=Ml(e)?KYe(e):[],s=dS([...i,...o],nb),l=t.getTypeChecker(),u=Ki(s,y=>Ys.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),r)),d=g(u);return Hn(d.declarations,y=>Ln(s,y))||(d.valid=!1),d;function g(y){const E={accessExpressions:[],typeUsages:[]},A={functionCalls:[],declarations:[],classReferences:E,valid:!0},R=Bt(i,h),N=Bt(o,h),P=Ml(e),k=Bt(i,F=>Mde(F,l));for(const F of y){if(F.kind===Ys.EntryKind.Span){A.valid=!1;continue}if(Ln(k,h(F.node))){if(GYe(F.node.parent)){A.signature=F.node.parent;continue}const G=tDe(F);if(G){A.functionCalls.push(G);continue}}const O=Mde(F.node,l);if(O&&Ln(k,O)){const G=Pde(F);if(G){A.declarations.push(G);continue}}if(Ln(R,h(F.node))||IP(F.node)){if(eDe(F))continue;const j=Pde(F);if(j){A.declarations.push(j);continue}const J=tDe(F);if(J){A.functionCalls.push(J);continue}}if(P&&Ln(N,h(F.node))){if(eDe(F))continue;const j=Pde(F);if(j){A.declarations.push(j);continue}const J=FYe(F);if(J){E.accessExpressions.push(J);continue}if(Dc(e.parent)){const Z=zYe(F);if(Z){E.typeUsages.push(Z);continue}}}A.valid=!1}return A}function h(y){const E=l.getSymbolAtLocation(y);return E&&lJ(E,l)}}function Mde(e,t){const r=jO(e);if(r){const i=t.getContextualTypeForObjectLiteralElement(r),o=i==null?void 0:i.getSymbol();if(o&&!(Wl(o)&6))return o}}function eDe(e){const t=e.node;if(Eu(t.parent)||jm(t.parent)||Fc(t.parent)||xg(t.parent)||ou(t.parent)||dl(t.parent))return t}function Pde(e){if(rd(e.node.parent))return e.node}function tDe(e){if(e.node.parent){const t=e.node,r=t.parent;switch(r.kind){case 214:case 215:const i=ni(r,Vh);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,Vh);if(l&&l.expression===o)return l}break;case 213:const s=ni(r,Ws);if(s&&s.parent&&s.argumentExpression===t){const l=ni(s.parent,Vh);if(l&&l.expression===s)return l}break}}}function FYe(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,Ws);if(o&&o.expression===t)return o;break}}}function zYe(e){const t=e.node;if(F1(t)===2||A6(t.parent))return t}function nDe(e,t,r){const i=eC(e,t),o=rne(i);if(!BYe(i)&&o&&VYe(o,r)&&tp(o,i)&&!(o.body&&tp(o.body,i)))return o}function BYe(e){const t=Dn(e,GR);if(t){const r=Dn(t,i=>!GR(i));return!!r&&Ms(r)}return!1}function GYe(e){return Vm(e)&&(gd(e.parent)||wu(e.parent))}function VYe(e,t){var r;if(!jYe(e.parameters,t))return!1;switch(e.kind){case 263:return rDe(e)&&nz(e,t);case 175:if(Fa(e.parent)){const i=Mde(e.name,t);return((r=i==null?void 0:i.declarations)==null?void 0:r.length)===1&&nz(e,t)}return nz(e,t);case 177:return Dc(e.parent)?rDe(e.parent)&&nz(e,t):iDe(e.parent.parent)&&nz(e,t);case 219:case 220:return iDe(e.parent)}return!1}function nz(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function rDe(e){return e.name?!0:!!nC(e,90)}function jYe(e,t){return HYe(e)>=LYe&&Hn(e,r=>UYe(r,t))}function UYe(e,t){if(N_(e)){const r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&He(e.name)}function iDe(e){return yi(e)&&JR(e)&&He(e.name)&&!e.type}function Lde(e){return e.length>0&&QD(e[0].name)}function HYe(e){return Lde(e)?e.length-1:e.length}function oDe(e){return Lde(e)&&(e=L.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function qYe(e,t){return He(t)&&zf(t)===e?L.createShorthandPropertyAssignment(e):L.createPropertyAssignment(e,t)}function JYe(e,t){const r=oDe(e.parameters),i=N_(Ba(r)),o=i?t.slice(0,r.length-1):t,s=Bt(o,(u,d)=>{const g=QJ(r[d]),h=qYe(g,u);return Op(h.name),Cc(h)&&Op(h.initializer),B1(u,h),h});if(i&&t.length>=r.length){const u=t.slice(r.length-1),d=L.createPropertyAssignment(QJ(Ba(r)),L.createArrayLiteralExpression(u));s.push(d)}return L.createObjectLiteralExpression(s,!1)}function aDe(e,t,r){const i=t.getTypeChecker(),o=oDe(e.parameters),s=Bt(o,h),l=L.createObjectBindingPattern(s),u=y(o);let d;Hn(o,R)&&(d=L.createObjectLiteralExpression());const g=L.createParameterDeclaration(void 0,void 0,l,void 0,u,d);if(Lde(e.parameters)){const N=e.parameters[0],P=L.createParameterDeclaration(void 0,void 0,N.name,void 0,N.type);return Op(P.name),B1(N.name,P.name),N.type&&(Op(P.type),B1(N.type,P.type)),L.createNodeArray([P,g])}return L.createNodeArray([g]);function h(N){const P=L.createBindingElement(void 0,void 0,QJ(N),N_(N)&&R(N)?L.createArrayLiteralExpression():N.initializer);return Op(P),N.initializer&&P.initializer&&B1(N.initializer,P.initializer),P}function y(N){const P=Bt(N,E);return Zh(L.createTypeLiteralNode(P),1)}function E(N){let P=N.type;!P&&(N.initializer||N_(N))&&(P=A(N));const k=L.createPropertySignature(void 0,QJ(N),R(N)?L.createToken(58):N.questionToken,P);return Op(k),B1(N.name,k.name),N.type&&k.type&&B1(N.type,k.type),k}function A(N){const P=i.getTypeAtLocation(N);return OP(P,N,t,r)}function R(N){if(N_(N)){const P=i.getTypeAtLocation(N);return!i.isTupleType(P)}return i.isOptionalParameter(N)}}function QJ(e){return zf(e.name)}function KYe(e){switch(e.parent.kind){case 264:const t=e.parent;return t.name?[t.name]:[C.checkDefined(nC(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 XYe(e){switch(e.kind){case 263:return e.name?[e.name]:[C.checkDefined(nC(e,90),"Nameless function declaration should be a default export")];case 175:return[e.name];case 177:const r=C.checkDefined(Es(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 YYe={},kde="Convert to template string",wde=Ho(f.Convert_to_template_string),Ode={name:kde,description:wde,kind:"refactor.rewrite.string"};Cg(kde,{kinds:[Ode.kind],getEditsForAction:QYe,getAvailableActions:$Ye});function $Ye(e){const{file:t,startPosition:r}=e,i=sDe(t,r),o=Wde(i),s=wa(o),l={name:kde,description:wde,actions:[]};return s&&e.triggerReason!=="invoked"?se:L_(o)&&(s||Nr(o)&&Fde(o).isValidConcatenation)?(l.actions.push(Ode),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...Ode,notApplicableReason:Ho(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):se}function sDe(e,t){const r=Fi(e,t),i=Wde(r);return!Fde(i).isValidConcatenation&&Ou(i.parent)&&Nr(i.parent.parent)?i.parent.parent:r}function QYe(e,t){const{file:r,startPosition:i}=e,o=sDe(r,i);switch(t){case wde:return{edits:ZYe(e,o)};default:return C.fail("invalid action")}}function ZYe(e,t){const r=Wde(t),i=e.file,o=i$e(Fde(r),i),s=sb(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 e$e(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Wde(e){return Dn(e.parent,r=>{switch(r.kind){case 212:case 213:return!1;case 229:case 227:return!(Nr(r.parent)&&e$e(r.parent));default:return"quit"}})||e}function Fde(e){const t=l=>{if(!Nr(l))return{nodes:[l],operators:[],validOperators:!0,hasString:wa(l)||y1(l)};const{nodes:u,operators:d,hasString:g,validOperators:h}=t(l.left);if(!(g||wa(l.right)||b4(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 t$e=(e,t)=>(r,i)=>{r(i,o)=>{for(;i.length>0;){const s=i.shift();kP(e[s],o,t,3,!1),r(s,o)}};function r$e(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function lDe(e){const t=GI(e)||hj(e)?-2:-1;return Al(e).slice(1,t)}function cDe(e,t){const r=[];let i="",o="";for(;e{dDe(O);const j=G===E.templateSpans.length-1,J=O.literal.text+(j?R:""),Z=lDe(O.literal)+(j?N:"");return L.createTemplateSpan(O.expression,k&&j?L.createTemplateTail(J,Z):L.createTemplateMiddle(J,Z))});g.push(...F)}else{const F=k?L.createTemplateTail(R,N):L.createTemplateMiddle(R,N);o(P,F),g.push(L.createTemplateSpan(E,F))}}return L.createTemplateExpression(h,g)}function dDe(e){const t=e.getSourceFile();kP(e,e.expression,t,3,!1),CO(e.expression,e.expression,t,3,!1)}function o$e(e){return Ou(e)&&(dDe(e),e=e.expression),e}var a$e={},ZJ="Convert to optional chain expression",zde=Ho(f.Convert_to_optional_chain_expression),Bde={name:ZJ,description:zde,kind:"refactor.rewrite.expression.optionalChain"};Cg(ZJ,{kinds:[Bde.kind],getEditsForAction:l$e,getAvailableActions:s$e});function s$e(e){const t=uDe(e,e.triggerReason==="invoked");return t?yy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:ZJ,description:zde,actions:[{...Bde,notApplicableReason:t.error}]}]:se:[{name:ZJ,description:zde,actions:[Bde]}]:se}function l$e(e,t){const r=uDe(e);return C.assert(r&&!yy(r),"Expected applicable refactor info"),{edits:Rr.ChangeTracker.with(e,o=>_$e(e.file,e.program.getTypeChecker(),o,r)),renameFilename:void 0,renameLocation:void 0}}function eK(e){return Nr(e)||S1(e)}function c$e(e){return od(e)||tf(e)||sc(e)}function tK(e){return eK(e)||c$e(e)}function uDe(e,t=!0){const{file:r,program:i}=e,o=mx(e),s=o.length===0;if(s&&!t)return;const l=Fi(r,o.start),u=RP(r,o.start+o.length),d=oc(l.pos,u&&u.end>=l.pos?u.getEnd():l.getEnd()),g=s?m$e(l):f$e(l,d),h=g&&tK(g)?h$e(g):void 0;if(!h)return{error:Ho(f.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return S1(h)?d$e(h,y):u$e(h)}function d$e(e,t){const r=e.condition,i=Vde(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Ho(f.Could_not_find_convertible_access_expression)};if((qr(r)||He(r))&&Gde(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(Nr(r)){const o=pDe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}}function u$e(e){if(e.operatorToken.kind!==56)return{error:Ho(f.Can_only_convert_logical_AND_access_chains)};const t=Vde(e.right);if(!t)return{error:Ho(f.Could_not_find_convertible_access_expression)};const r=pDe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:Ho(f.Could_not_find_matching_access_expressions)}}function pDe(e,t){const r=[];for(;Nr(t)&&t.operatorToken.kind===56;){const o=Gde(us(e),us(t.right));if(!o)break;r.push(o),e=o,t=t.left}const i=Gde(e,t);return i&&r.push(i),r.length>0?r:void 0}function Gde(e,t){if(!(!He(t)&&!qr(t)&&!Ws(t)))return p$e(e,t)?t:void 0}function p$e(e,t){for(;(Zo(e)||qr(e)||Ws(e))&&BO(e)!==BO(t);)e=e.expression;for(;qr(e)&&qr(t)||Ws(e)&&Ws(t);){if(BO(e)!==BO(t))return!1;e=e.expression,t=t.expression}return He(e)&&He(t)&&e.getText()===t.getText()}function BO(e){if(He(e)||uf(e))return e.getText();if(qr(e))return BO(e.name);if(Ws(e))return BO(e.argumentExpression)}function f$e(e,t){for(;e.parent;){if(tK(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function m$e(e){for(;e.parent;){if(tK(e)&&!tK(e.parent))return e;e=e.parent}}function h$e(e){if(eK(e))return e;if(sc(e)){const t=TI(e),r=t==null?void 0:t.initializer;return r&&eK(r)?r:void 0}return e.expression&&eK(e.expression)?e.expression:void 0}function Vde(e){if(e=us(e),Nr(e))return Vde(e.left);if((qr(e)||Ws(e)||Zo(e))&&!tu(e))return e}function fDe(e,t,r){if(qr(t)||Ws(t)||Zo(t)){const i=fDe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=(o==null?void 0:o.getText())===t.expression.getText();if(s&&r.pop(),Zo(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(Ws(t))return s?L.createElementAccessChain(i,L.createToken(29),t.argumentExpression):L.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function _$e(e,t,r,i,o){const{finalExpression:s,occurrences:l,expression:u}=i,d=l[l.length-1],g=fDe(t,s,l);g&&(qr(g)||Ws(g)||Zo(g))&&(Nr(u)?r.replaceNodeRange(e,d,s,g):S1(u)&&r.replaceNode(e,u,L.createBinaryExpression(g,L.createToken(61),u.whenFalse)))}var mDe={};x(mDe,{Messages:()=>Md,RangeFacts:()=>gDe,getRangeToExtract:()=>jde,getRefactorActionsToExtractSymbol:()=>hDe,getRefactorEditsToExtractSymbol:()=>_De});var BP="Extract Symbol",GP={name:"Extract Constant",description:Ho(f.Extract_constant),kind:"refactor.extract.constant"},VP={name:"Extract Function",description:Ho(f.Extract_function),kind:"refactor.extract.function"};Cg(BP,{kinds:[GP.kind,VP.kind],getEditsForAction:_De,getAvailableActions:hDe});function hDe(e){const t=e.kind,r=jde(e.file,mx(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return se;const N=[];return h0(VP.kind,t)&&N.push({name:BP,description:VP.description,actions:[{...VP,notApplicableReason:R(r.errors)}]}),h0(GP.kind,t)&&N.push({name:BP,description:GP.description,actions:[{...GP,notApplicableReason:R(r.errors)}]}),N}const{affectedTextRange:o,extractions:s}=S$e(i,e);if(s===void 0)return se;const l=[],u=new Map;let d;const g=[],h=new Map;let y,E=0;for(const{functionExtraction:N,constantExtraction:P}of s){if(h0(VP.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:VP.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:VP.kind})}if(h0(GP.kind,t)){const k=P.description;P.errors.length===0?h.has(k)||(h.set(k,!0),g.push({description:k,name:`constant_scope_${E}`,kind:GP.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:GP.kind})}E++}const A=[];return l.length?A.push({name:BP,description:Ho(f.Extract_function),actions:l}):e.preferences.provideRefactorNotApplicableReason&&d&&A.push({name:BP,description:Ho(f.Extract_function),actions:[d]}),g.length?A.push({name:BP,description:Ho(f.Extract_constant),actions:g}):e.preferences.provideRefactorNotApplicableReason&&y&&A.push({name:BP,description:Ho(f.Extract_constant),actions:[y]}),A.length?A:se;function R(N){let P=N[0].messageText;return typeof P!="string"&&(P=P.messageText),P}}function _De(e,t){const i=jde(e.file,mx(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"),b$e(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"),T$e(i,e,l)}C.fail("Unrecognized action name")}var Md;(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")})(Md||(Md={}));var gDe=(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))(gDe||{});function jde(e,t,r=!0){const{length:i}=t;if(i===0&&!r)return{errors:[Oc(e,t.start,i,Md.cannotExtractEmpty)]};const o=i===0&&r,s=Ble(e,t.start),l=RP(e,Dl(t)),u=s&&l&&r?g$e(s,l,e):t,d=o?V$e(s):xO(s,e,u),g=o?d:xO(l,e,u);let h=0,y;if(!d||!g)return{errors:[Oc(e,t.start,i,Md.cannotExtractRange)]};if(d.flags&16777216)return{errors:[Oc(e,t.start,i,Md.cannotExtractJSDoc)]};if(d.parent!==g.parent)return{errors:[Oc(e,t.start,i,Md.cannotExtractRange)]};if(d!==g){if(!hx(d.parent))return{errors:[Oc(e,t.start,i,Md.cannotExtractRange)]};const F=[];for(const O of d.parent.statements){if(O===d||F.length){const G=k(O);if(G)return{errors:G};F.push(O)}if(O===g)break}return F.length?{targetRange:{range:F,facts:h,thisNode:y}}:{errors:[Oc(e,t.start,i,Md.cannotExtractRange)]}}if(tf(d)&&!d.expression)return{errors:[Oc(e,t.start,i,Md.cannotExtractRange)]};const E=R(d),A=N(E)||k(E);if(A)return{errors:A};return{targetRange:{range:y$e(E),facts:h,thisNode:y}};function R(F){if(tf(F)){if(F.expression)return F.expression}else if(sc(F)||_d(F)){const O=sc(F)?F.declarationList.declarations:F.declarations;let G=0,j;for(const J of O)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(He(od(F)?F.expression:F))return[Ar(F,Md.cannotExtractIdentifier)]}function P(F,O){let G=F;for(;G!==O;){if(G.kind===173){ua(G)&&(h|=32);break}else if(G.kind===170){df(G).kind===177&&(h|=32);break}else G.kind===175&&ua(G)&&(h|=32);G=G.parent}}function k(F){let O;if((ye=>{ye[ye.None=0]="None",ye[ye.Break=1]="Break",ye[ye.Continue=2]="Continue",ye[ye.Return=4]="Return"})(O||(O={})),C.assert(F.pos<=F.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),C.assert(!dh(F.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Gi(F)&&!(L_(F)&&yDe(F))&&!Kde(F))return[Ar(F,Md.statementOrExpressionExpected)];if(F.flags&33554432)return[Ar(F,Md.cannotExtractAmbientBlock)];const G=hd(F);G&&P(F,G);let j,J=4,Z;if(q(F),h&8){const ye=vu(F,!1,!1);(ye.kind===263||ye.kind===175&&ye.parent.kind===211||ye.kind===219)&&(h|=16)}return j;function q(ye){if(j)return!0;if(rd(ye)){const K=ye.kind===261?ye.parent.parent:ye;if(di(K,32))return(j||(j=[])).push(Ar(ye,Md.cannotExtractExportedEntity)),!0}switch(ye.kind){case 273:return(j||(j=[])).push(Ar(ye,Md.cannotExtractImport)),!0;case 278:return(j||(j=[])).push(Ar(ye,Md.cannotExtractExportedEntity)),!0;case 108:if(ye.parent.kind===214){const K=hd(ye);if(K===void 0||K.pos=t.start+t.length)return(j||(j=[])).push(Ar(ye,Md.cannotExtractSuper)),!0}else h|=8,y=ye;break;case 220:Jo(ye,function K(pe){if(QD(pe))h|=8,y=ye;else{if(ui(pe)||Yo(pe)&&!Xs(pe))return!1;Jo(pe,K)}});case 264:case 263:Yi(ye.parent)&&ye.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(Ar(ye,Md.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}const ie=J;switch(ye.kind){case 246:J&=-5;break;case 259:J=0;break;case 242:ye.parent&&ye.parent.kind===259&&ye.parent.finallyBlock===ye&&(J=4);break;case 298:case 297:J|=1;break;default:mb(ye,!1)&&(J|=3);break}switch(ye.kind){case 198:case 110:h|=8,y=ye;break;case 257:{const K=ye.label;(Z||(Z=[])).push(K.escapedText),Jo(ye,q),Z.pop();break}case 253:case 252:{const K=ye.label;K?Ln(Z,K.escapedText)||(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):J&(ye.kind===253?1:2)||(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:h|=4;break;case 230:h|=2;break;case 254:J&4?h|=1:(j||(j=[])).push(Ar(ye,Md.cannotExtractRangeContainingConditionalReturnStatement));break;default:Jo(ye,q);break}J=ie}}}function g$e(e,t,r){const i=e.getStart(r);let o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function y$e(e){if(Gi(e))return[e];if(L_(e))return od(e.parent)?[e.parent]:e;if(Kde(e))return e}function Ude(e){return Xs(e)?nG(e.body):Ms(e)||Yi(e)||n_(e)||ui(e)}function v$e(e){let t=yv(e.range)?$a(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=hd(t);if(i){const o=Dn(t,Ms);return o?[o,i]:[i]}}const r=[];for(;;)if(t=t.parent,t.kind===170&&(t=Dn(t,i=>Ms(i)).parent),Ude(t)&&(r.push(t),t.kind===308))return r}function b$e(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:u}}=Hde(e,t);return C.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),D$e(o,i[r],s[r],u,e,t)}function T$e(e,t,r){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:u}}=Hde(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 C$e(d,i[r],s[r],e.facts,t)}function S$e(e,t){const{scopes:r,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:o,constantErrorsPerScope:s}}=Hde(e,t),l=r.map((u,d)=>{const g=E$e(u),h=A$e(u),y=Ms(u)?I$e(u):ui(u)?x$e(u):R$e(u);let E,A;return y===1?(E=Tg(Ho(f.Extract_to_0_in_1_scope),[g,"global"]),A=Tg(Ho(f.Extract_to_0_in_1_scope),[h,"global"])):y===0?(E=Tg(Ho(f.Extract_to_0_in_1_scope),[g,"module"]),A=Tg(Ho(f.Extract_to_0_in_1_scope),[h,"module"])):(E=Tg(Ho(f.Extract_to_0_in_1),[g,y]),A=Tg(Ho(f.Extract_to_0_in_1),[h,y])),d===0&&!ui(u)&&(A=Tg(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 Hde(e,t){const{file:r}=t,i=v$e(e),o=B$e(e,r),s=G$e(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:o,readsAndWrites:s}}function E$e(e){return Ms(e)?"inner function":ui(e)?"method":"function"}function A$e(e){return ui(e)?"readonly field":"constant"}function I$e(e){switch(e.kind){case 177:return"constructor";case 219:case 263:return e.name?`function '${e.name.text}'`:uJ;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 x$e(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 R$e(e){return e.kind===269?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function D$e(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,u){const d=u.program.getTypeChecker(),g=Ga(u.program.getCompilerOptions()),h=cu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),E=G1(ui(t)?"newMethod":"newFunction",y),A=Ir(t),R=L.createIdentifier(E);let N;const P=[],k=[];let F;r.forEach((re,be)=>{let Ne;if(!A){let lt=d.getTypeOfSymbolAtLocation(re.symbol,re.node);lt=d.getBaseTypeOfLiteralType(lt),Ne=cu.typeToAutoImportableTypeNode(d,h,lt,t,g,1,8)}const Be=L.createParameterDeclaration(void 0,void 0,be,void 0,Ne);P.push(Be),re.usage===2&&(F||(F=[])).push(re),k.push(L.createIdentifier(be))});const O=Co(i.values(),re=>({type:re,declaration:M$e(re,u.startPosition)}));O.sort(P$e);const G=O.length===0?void 0:ji(O,({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}=k$e(e,s,F,o,!!(l.facts&1));Op(J);let q;const ye=!!(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 ye&&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 ie=Rr.ChangeTracker.fromContext(u),K=(yv(l.range)?Ba(l.range):l.range).end,pe=W$e(K,t);pe?ie.insertNodeBefore(u.file,pe,q,!0):ie.insertNodeAtEndOfScope(u.file,t,q),h.writeFixes(ie);const de=[],fe=L$e(t,l,E);ye&&k.unshift(L.createIdentifier("this"));let ve=L.createCallExpression(ye?L.createPropertyAccessExpression(fe,"call"):fe,j,k);if(l.facts&2&&(ve=L.createYieldExpression(L.createToken(42),ve)),l.facts&4&&(ve=L.createAwaitExpression(ve)),Jde(e)&&(ve=L.createJsxExpression(void 0,ve)),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];de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(re.name),void 0,_s(re.type),ve)],re.parent.flags)))}else{const re=[],be=[];let Ne=s[0].parent.flags,Be=!1;for(const ce of s){re.push(L.createBindingElement(void 0,void 0,_s(ce.name)));const Re=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(ce)),t,1,8);be.push(L.createPropertySignature(void 0,ce.symbol.name,void 0,Re)),Be=Be||ce.type!==void 0,Ne=Ne&ce.parent.flags}const lt=Be?L.createTypeLiteralNode(be):void 0;lt&&Cr(lt,1),de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(L.createObjectBindingPattern(re),void 0,lt,ve)],Ne)))}else if(s.length||F){if(s.length)for(const be of s){let Ne=be.parent.flags;Ne&2&&(Ne=Ne&-3|1),de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(be.symbol.name,void 0,Se(be.type))],Ne)))}Z&&de.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Z,void 0,Se(N))],1)));const re=qde(s,F);Z&&re.unshift(L.createShorthandPropertyAssignment(Z)),re.length===1?(C.assert(!Z,"Shouldn't have returnValueProperty here"),de.push(L.createExpressionStatement(L.createAssignment(re[0].name,ve))),l.facts&1&&de.push(L.createReturnStatement())):(de.push(L.createExpressionStatement(L.createAssignment(L.createObjectLiteralExpression(re),ve))),Z&&de.push(L.createReturnStatement(L.createIdentifier(Z))))}else l.facts&1?de.push(L.createReturnStatement(ve)):yv(l.range)?de.push(L.createExpressionStatement(ve)):de.push(ve);yv(l.range)?ie.replaceNodeRangeWithNodes(u.file,$a(l.range),Ba(l.range),de):ie.replaceNodeWithNodes(u.file,l.range,de);const xe=ie.getChanges(),Ce=(yv(l.range)?$a(l.range):l.range).getSourceFile().fileName,Je=DO(xe,Ce,E,!1);return{renameFilename:Ce,renameLocation:Je,edits:xe};function Se(re){if(re===void 0)return;const be=_s(re);let Ne=be;for(;b1(Ne);)Ne=Ne.type;return dv(Ne)&&hn(Ne.types,Be=>Be.kind===157)?be:L.createUnionTypeNode([be,L.createKeywordTypeNode(157)])}}function C$e(e,t,{substitutions:r},i,o){const s=o.program.getTypeChecker(),l=t.getSourceFile(),u=Ede(e,t,s,l),d=Ir(t);let g=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1,8),h=w$e(us(e),r);({variableType:g,initializer:h}=N(g,h)),Op(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,g,h);let F=L.createPropertyAccessExpression(i&32?L.createIdentifier(t.name.getText()):L.createThis(),L.createIdentifier(u));Jde(e)&&(F=L.createJsxExpression(void 0,F));const O=e.pos,G=F$e(O,t);y.insertNodeBefore(o.file,G,k,!0),y.replaceNode(o.file,e,F)}else{const P=L.createVariableDeclaration(u,void 0,g,h),k=N$e(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,Ude)){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)),O=z$e(e,t);if(O.pos===0?y.insertNodeAtTopOfFile(o.file,F,!1):y.insertNodeBefore(o.file,O,F,!1),e.parent.kind===245)y.delete(o.file,e.parent);else{let G=L.createIdentifier(u);Jde(e)&&(G=L.createJsxExpression(void 0,G)),y.replaceNode(o.file,e,G)}}}const E=y.getChanges(),A=e.getSourceFile().fileName,R=DO(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(!Us(k)&&!Xs(k)||k.typeParameters)return{variableType:P,initializer:k};const F=s.getTypeAtLocation(e),O=ag(s.getSignaturesOfType(F,0));if(!O)return{variableType:P,initializer:k};if(O.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,Xs(k))k=L.updateArrowFunction(k,Sm(e)?hS(e):void 0,k.typeParameters,G,k.type||s.typeToTypeNode(O.getReturnType(),t,1,8),k.equalsGreaterThanToken,k.body);else{if(O&&O.thisParameter){const J=Ac(G);if(!J||He(J.name)&&J.name.escapedText!=="this"){const Z=s.getTypeOfSymbolAtLocation(O.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,Sm(e)?hS(e):void 0,k.asteriskToken,k.name,k.typeParameters,G,k.type||s.typeToTypeNode(O.getReturnType(),t,1),k.body)}return{variableType:P,initializer:k}}}function N$e(e,t){let r;for(;e!==void 0&&e!==t;){if(yi(e)&&e.initializer===r&&_d(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function M$e(e,t){let r;const i=e.symbol;if(i&&i.declarations)for(const o of i.declarations)(r===void 0||o.pos0;if(ea(e)&&!s&&i.size===0)return{body:L.createBlock(e.statements,!0),returnValueProperty:void 0};let l,u=!1;const d=L.createNodeArray(ea(e)?e.statements.slice(0):[Gi(e)?e:L.createReturnStatement(us(e))]);if(s||i.size){const h=Xn(d,g,Gi).slice();if(s&&!o&&Gi(e)){const y=qde(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 g(h){if(!u&&tf(h)&&s){const y=qde(t,r);return h.expression&&(l||(l="__return"),y.unshift(L.createPropertyAssignment(l,st(h.expression,g,St)))),y.length===1?L.createReturnStatement(y[0].name):L.createReturnStatement(L.createObjectLiteralExpression(y))}else{const y=u;u=u||Ms(h)||ui(h);const E=i.get(ls(h).toString()),A=E?_s(E):wn(h,g,void 0);return u=y,A}}}function w$e(e,t){return t.size?r(e):e;function r(i){const o=t.get(ls(i).toString());return o?_s(o):wn(i,r,void 0)}}function O$e(e){if(Ms(e)){const t=e.body;if(ea(t))return t.statements}else{if(n_(e)||Yi(e))return e.statements;if(ui(e))return e.members}return se}function W$e(e,t){return hn(O$e(t),r=>r.pos>=e&&Ms(r)&&!Ml(r))}function F$e(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&&!Po(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?C.fail():i}function z$e(e,t){C.assert(!ui(t));let r;for(let i=e;i!==t;i=i.parent)Ude(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(hx(i)){let o;for(const s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&xD(i)?(C.assert(UM(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 qde(e,t){const r=Bt(e,o=>L.createShorthandPropertyAssignment(o.symbol.name)),i=Bt(t,o=>L.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function yv(e){return Mo(e)}function B$e(e,t){return yv(e.range)?{pos:$a(e.range).getStart(t),end:Ba(e.range).getEnd()}:e.range}function G$e(e,t,r,i,o,s){const l=new Map,u=[],d=[],g=[],h=[],y=[],E=new Map,A=[];let R;const N=yv(e.range)?e.range.length===1&&od(e.range[0])?e.range[0].expression:void 0:e.range;let P;if(N===void 0){const de=e.range,fe=$a(de).getStart(),ve=Ba(de).end;P=Oc(i,fe,ve-fe,Md.expressionExpected)}else o.getTypeAtLocation(N).flags&147456&&(P=Ar(N,Md.uselessConstantType));for(const de of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),g.push([]);const fe=[];P&&fe.push(P),ui(de)&&Ir(de)&&fe.push(Ar(de,Md.cannotExtractToJSClass)),Xs(de)&&!ea(de.body)&&fe.push(Ar(de,Md.cannotExtractToExpressionArrowFunction)),h.push(fe)}const k=new Map,F=yv(e.range)?L.createBlock(e.range):e.range,O=yv(e.range)?$a(e.range):e.range,G=j(O);if(Z(F),G&&!yv(e.range)&&!o_(e.range)){const de=o.getContextualType(e.range);J(de)}if(l.size>0){const de=new Map;let fe=0;for(let ve=O;ve!==void 0&&fe{u[fe].typeParameterUsages.set(X,xe)}),fe++),EG(ve))for(const xe of cb(ve)){const X=o.getTypeAtLocation(xe);l.has(X.id.toString())&&de.set(X.id.toString(),X)}C.assert(fe===t.length,"Should have iterated all scopes")}if(y.length){const de=SG(t[0],t[0].parent)?t[0]:sh(t[0]);Jo(de,ie)}for(let de=0;de0&&(fe.usages.size>0||fe.typeParameterUsages.size>0)){const X=yv(e.range)?e.range[0]:e.range;h[de].push(Ar(X,Md.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ui(t[de])&&g[de].push(Ar(e.thisNode,Md.cannotExtractFunctionsContainingThisToMethod));let ve=!1,xe;if(u[de].usages.forEach(X=>{X.usage===2&&(ve=!0,X.symbol.flags&106500&&X.symbol.valueDeclaration&&wp(X.symbol.valueDeclaration,8)&&(xe=X.symbol.valueDeclaration))}),C.assert(yv(e.range)||A.length===0,"No variable declarations expected if something was extracted"),ve&&!yv(e.range)){const X=Ar(e.range,Md.cannotWriteInExpression);g[de].push(X),h[de].push(X)}else if(xe&&de>0){const X=Ar(xe,Md.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[de].push(X),h[de].push(X)}else if(R){const X=Ar(R,Md.cannotExtractExportedEntity);g[de].push(X),h[de].push(X)}}return{target:F,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:h,exposedVariableDeclarations:A};function j(de){return!!Dn(de,fe=>EG(fe)&&cb(fe).length!==0)}function J(de){const fe=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:ve}=fe.walkType(de);for(const xe of ve)xe.isTypeParameter()&&l.set(xe.id.toString(),xe)}function Z(de,fe=1){if(G){const ve=o.getTypeAtLocation(de);J(ve)}if(rd(de)&&de.symbol&&y.push(de),id(de))Z(de.left,2),Z(de.right);else if(ute(de))Z(de.operand,2);else if(qr(de)||Ws(de))Jo(de,Z);else if(He(de)){if(!de.parent||ku(de.parent)&&de!==de.parent.left||qr(de.parent)&&de!==de.parent.expression)return;q(de,fe,qh(de))}else Jo(de,Z)}function q(de,fe,ve){const xe=ye(de,fe,ve);if(xe)for(let X=0;X=fe)return X;if(k.set(X,fe),Ce){for(const re of u)re.usages.get(de.text)&&re.usages.set(de.text,{usage:fe,symbol:xe,node:de});return X}const Je=xe.getDeclarations(),Se=Je&&hn(Je,re=>re.getSourceFile()===i);if(Se&&!vO(r,Se.getStart(),Se.end)){if(e.facts&2&&fe===2){const re=Ar(de,Md.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const be of g)be.push(re);for(const be of h)be.push(re)}for(let re=0;rexe.symbol===fe);if(ve)if(yi(ve)){const xe=ve.symbol.id.toString();E.has(xe)||(A.push(ve),E.set(xe,!0))}else R=R||ve}Jo(de,ie)}function K(de){return de.parent&&Ud(de.parent)&&de.parent.name===de?o.getShorthandAssignmentValueSymbol(de.parent):o.getSymbolAtLocation(de)}function pe(de,fe,ve){if(!de)return;const xe=de.getDeclarations();if(xe&&xe.some(Ce=>Ce.parent===fe))return L.createIdentifier(de.name);const X=pe(de.parent,fe,ve);if(X!==void 0)return ve?L.createQualifiedName(X,L.createIdentifier(de.name)):L.createPropertyAccessExpression(X,de.name)}}function V$e(e){return Dn(e,t=>t.parent&&yDe(t)&&!Nr(t.parent))}function yDe(e){const{parent:t}=e;switch(t.kind){case 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 Jde(e){return Kde(e)||(i_(e)||x1(e)||e0(e))&&(i_(e.parent)||e0(e.parent))}function Kde(e){return wa(e)&&e.parent&&o_(e.parent)}var j$e={},nK="Generate 'get' and 'set' accessors",Xde=Ho(f.Generate_get_and_set_accessors),Yde={name:nK,description:Xde,kind:"refactor.rewrite.property.generateAccessors"};Cg(nK,{kinds:[Yde.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;const i=cu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);C.assert(i&&!yy(i),"Expected applicable refactor info");const o=cu.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=(He(l)?0:-1)+DO(o,s,l.text,to(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return se;const t=cu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?yy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:nK,description:Xde,actions:[{...Yde,notApplicableReason:t.error}]}]:se:[{name:nK,description:Xde,actions:[Yde]}]:se}});var U$e={},rK="Infer function return type",$de=Ho(f.Infer_function_return_type),iK={name:rK,description:$de,kind:"refactor.rewrite.function.returnType"};Cg(rK,{kinds:[iK.kind],getEditsForAction:H$e,getAvailableActions:q$e});function H$e(e){const t=vDe(e);if(t&&!yy(t))return{renameFilename:void 0,renameLocation:void 0,edits:Rr.ChangeTracker.with(e,i=>J$e(e.file,i,t.declaration,t.returnTypeNode))}}function q$e(e){const t=vDe(e);return t?yy(t)?e.preferences.provideRefactorNotApplicableReason?[{name:rK,description:$de,actions:[{...iK,notApplicableReason:t.error}]}]:se:[{name:rK,description:$de,actions:[iK]}]:se}function J$e(e,t,r,i){const o=Es(r,22,e),s=Xs(r)&&o===void 0,l=s?$a(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 vDe(e){if(Ir(e.file)||!h0(iK.kind,e.kind))return;const t=ip(e.file,e.startPosition),r=Dn(t,l=>ea(l)||l.parent&&Xs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":K$e(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(ji(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 K$e(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var bDe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(bDe||{}),TDe=(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))(TDe||{}),SDe=(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))(SDe||{});function EDe(e,t,r,i){const o=Qde(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 Y$e(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||!M2(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;const g=l;if((i_(d)||x1(d))&&(l=!0),ID(d)&&(l=!1),He(d)&&!l&&!eQe(d)&&!NM(d.escapedText)){let h=s.getSymbolAtLocation(d);if(h){h.flags&2097152&&(h=s.getAliasedSymbol(h));let y=$$e(h,F1(d));if(y!==void 0){let E=0;d.parent&&(Ha(d.parent)||xDe.get(d.parent.kind)===y)&&d.parent.name===d&&(E=1),y===6&&IDe(d)&&(y=9),y=Q$e(s,d,y);const A=h.valueDeclaration;if(A){const R=PT(A),N=ny(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)&&Z$e(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=g}u(t)}function $$e(e,t){const r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Ha(i)&&(i=ADe(i)),i&&xDe.get(i.kind)}function Q$e(e,t,r){if(r===7||r===9||r===6){const i=e.getTypeAtLocation(t);if(i){const o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||tQe(t))return r===9?11:10}}return r}function Z$e(e,t){return Ha(e)&&(e=ADe(e)),yi(e)?(!Yi(e.parent.parent.parent)||HS(e.parent))&&e.getSourceFile()===t:Zl(e)?!Yi(e.parent)&&e.getSourceFile()===t:!1}function ADe(e){for(;;)if(Ha(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function eQe(e){const t=e.parent;return t&&(jm(t)||Eu(t)||xg(t))}function tQe(e){for(;IDe(e);)e=e.parent;return Zo(e.parent)&&e.parent.expression===e}function IDe(e){return ku(e.parent)&&e.parent.right===e||qr(e.parent)&&e.parent.name===e}var xDe=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]]),RDe="0.8";function DDe(e,t,r,i){const o=gF(e)?new Zde(e,t,r):e===80?new NDe(80,t,r):e===81?new MDe(81,t,r):new CDe(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}var Zde=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(!dh(this.pos)&&!dh(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Fn(this)}getStart(e,t){return this.assertHasRealPosition(),gb(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=Fn(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"),Lj(this,e)??Fie(this,e,nQe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const r=hn(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 nQe(e,t){const r=[];if(IF(e))return e.forEachChild(l=>{r.push(l)}),r;yd.setText((t||e.getSourceFile()).text);let i=e.pos;const o=l=>{rz(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{rz(r,i,l.pos,e),r.push(rQe(l,e)),i=l.end};return $e(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),rz(r,i,e.end,e),yd.setText(void 0),r}function rz(e,t,r,i){for(yd.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function oK(e,t){if(!e)return se;let r=y0.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(PDe))){const i=new Set;for(const o of e){const s=LDe(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 iz(e,t){if(!e)return se;let r=y0.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(PDe))){const i=new Set;for(const o of e){const s=LDe(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(iC(),r))}}return r}function LDe(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=wc(t);return Bn(rM(o),l=>{const u=e.getTypeAtLocation(l),d=s&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(d,t.symbol.name);return g?r(g):void 0})}var sQe=class extends Zde{constructor(e,t,r){super(e,t,r)}update(e,t){return Kj(this,e,t)}getLineAndCharacterOfPosition(e){return ca(this,e)}getLineStarts(){return sg(this)}getPositionOfLineAndCharacter(e,t,r){return aF(sg(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=dm();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=cF(s);return l&&(va(l)&&qr(l.expression)?l.expression.name.text:vc(l)?AO(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(Qo(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&&(Jf(d.exportClause)?$e(d.exportClause.elements,o):o(d.exportClause.name));break;case 273:const g=s.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===275?t(g.namedBindings):$e(g.namedBindings.elements,o)));break;case 227:ac(s)!==0&&t(s);default:Jo(s,o)}}}},lQe=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}getLineAndCharacterOfPosition(e){return ca(this,e)}};function cQe(){return{getNodeConstructor:()=>Zde,getTokenConstructor:()=>CDe,getIdentifierConstructor:()=>NDe,getPrivateIdentifierConstructor:()=>MDe,getSourceFileConstructor:()=>sQe,getSymbolConstructor:()=>iQe,getTypeConstructor:()=>oQe,getSignatureConstructor:()=>aQe,getSourceMapSourceConstructor:()=>lQe}}function GO(e){let t=!0;for(const i in e)if(Rs(e,i)&&!kDe(i)){t=!1;break}if(t)return e;const r={};for(const i in e)if(Rs(e,i)){const o=kDe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function kDe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function VO(e){return e?Bt(e,t=>t.text).join(""):""}function oz(){return{target:1,jsx:1}}function aK(){return cu.getSupportedErrorCodes()}var dQe=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,u,d;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const h=sJ(e,this.host),y=this.host.getScriptVersion(e);let E;if(this.currentFileName!==e){const A={languageVersion:99,impliedNodeFormat:iO(ks(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||sy(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:Uk(this.host.getCompilationSettings()),jsDocParsingMode:0};E=az(e,g,A,y,!0,h)}else if(this.currentFileVersion!==y){const A=g.getChangeRange(this.currentFileScriptSnapshot);E=sK(this.currentSourceFile,g,y,A)}return E&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=E),this.currentSourceFile}};function wDe(e,t,r){e.version=r,e.scriptSnapshot=t}function az(e,t,r,i,o,s){const l=tx(e,fx(t),r,o,s);return wDe(l,t,i),l}function sK(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=Dl(i.span)!==e.text.length?e.text.substr(Dl(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 g=Kj(e,l,i,o);return wDe(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return az(e.fileName,t,s,r,!0,e.scriptKind)}var uQe={isCancellationRequested:Zg,throwIfCancellationRequested:gs},pQe=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 TN}},tue=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Ls();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 TN}},ODe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],fQe=[...ODe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function nue(e,t=xce(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 dQe(e);let l,u,d=0;const g=e.getCancellationToken?new pQe(e.getCancellationToken()):uQe,h=e.getCurrentDirectory();ore((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(ft){e.log&&e.log(ft)}const E=u1(e),A=Fd(E),R=Bce({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(ft){const Mt=l.getSourceFile(ft);if(!Mt){const jt=new Error(`Could not find source file: '${ft}'.`);throw jt.ProgramFiles=l.getSourceFiles().map(Qt=>Qt.fileName),jt}return Mt}function P(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():k()}function k(){var ft,Mt,jt;if(C.assert(o!==2),e.getProjectVersion){const Lo=e.getProjectVersion();if(Lo){if(u===Lo&&!((ft=e.hasChangedAutomaticTypeDirectiveNames)!=null&&ft.call(e)))return;u=Lo}}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()||oz(),wt=e.hasInvalidatedResolutions||Zg,En=oa(e,e.hasInvalidatedLibResolutions)||Zg,xn=oa(e,e.hasChangedAutomaticTypeDirectiveNames),kn=(Mt=e.getProjectReferences)==null?void 0:Mt.call(e);let ln,Ii={getSourceFile:ec,getSourceFileByPath:bf,getCancellationToken:()=>g,getCanonicalFileName:A,useCaseSensitiveFileNames:()=>E,getNewLine:()=>iv(yn),getDefaultLibFileName:Lo=>e.getDefaultLibFileName(Lo),writeFile:gs,getCurrentDirectory:()=>h,fileExists:Lo=>e.fileExists(Lo),readFile:Lo=>e.readFile&&e.readFile(Lo),getSymlinkCache:oa(e,e.getSymlinkCache),realpath:oa(e,e.realpath),directoryExists:Lo=>ch(Lo,e),getDirectories:Lo=>e.getDirectories?e.getDirectories(Lo):[],readDirectory:(Lo,fa,is,qa,Zt)=>(C.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Lo,fa,is,qa,Zt)),onReleaseOldSourceFile:Ra,onReleaseParsedCommandLine:Tc,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:uo,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:oa(e,e.getGlobalTypingsCacheLocation)};const ra=Ii.getSourceFile,{getSourceFileWithCache:la}=yP(Ii,Lo=>ks(Lo,h,A),(...Lo)=>ra.call(Ii,...Lo));Ii.getSourceFile=la,(jt=e.setCompilerHost)==null||jt.call(e,Ii);const zo={useCaseSensitiveFileNames:E,fileExists:Lo=>Ii.fileExists(Lo),readFile:Lo=>Ii.readFile(Lo),directoryExists:Lo=>Ii.directoryExists(Lo),getDirectories:Lo=>Ii.getDirectories(Lo),realpath:Ii.realpath,readDirectory:(...Lo)=>Ii.readDirectory(...Lo),trace:Ii.trace,getCurrentDirectory:Ii.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:gs},Bl=t.getKeyForCompilationSettings(yn);let xl=new Set;if(AH(l,In,yn,(Lo,fa)=>e.getScriptVersion(fa),Lo=>Ii.fileExists(Lo),wt,En,xn,uo,kn)){Ii=void 0,ln=void 0,xl=void 0;return}l=oO({rootNames:In,options:yn,host:Ii,oldProgram:l,projectReferences:kn}),Ii=void 0,ln=void 0,xl=void 0,R.clearCache(),l.getTypeChecker();return;function uo(Lo){const fa=ks(Lo,h,A),is=ln==null?void 0:ln.get(fa);if(is!==void 0)return is||void 0;const qa=e.getParsedCommandLine?e.getParsedCommandLine(Lo):Go(Lo);return(ln||(ln=new Map)).set(fa,qa||!1),qa}function Go(Lo){const fa=ec(Lo,100);if(fa)return fa.path=ks(Lo,h,A),fa.resolvedPath=fa.path,fa.originalFileName=fa.fileName,Ow(fa,zo,So(ci(Lo),h),void 0,So(Lo,h))}function Tc(Lo,fa,is){var qa;e.getParsedCommandLine?(qa=e.onReleaseParsedCommandLine)==null||qa.call(e,Lo,fa,is):fa&&$s(fa.sourceFile,is)}function $s(Lo,fa){const is=t.getKeyForCompilationSettings(fa);t.releaseDocumentWithKey(Lo.resolvedPath,is,Lo.scriptKind,Lo.impliedNodeFormat)}function Ra(Lo,fa,is,qa){var Zt;$s(Lo,fa),(Zt=e.onReleaseOldSourceFile)==null||Zt.call(e,Lo,fa,is,qa)}function ec(Lo,fa,is,qa){return bf(Lo,ks(Lo,h,A),fa,is,qa)}function bf(Lo,fa,is,qa,Zt){C.assert(Ii,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const As=e.getScriptSnapshot(Lo);if(!As)return;const Hl=sJ(Lo,e),lc=e.getScriptVersion(Lo);if(!Zt){const vd=l&&l.getSourceFileByPath(fa);if(vd){if(Hl===vd.scriptKind||xl.has(vd.resolvedPath))return t.updateDocumentWithKey(Lo,fa,e,Bl,As,lc,Hl,is);t.releaseDocumentWithKey(vd.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),vd.scriptKind,vd.impliedNodeFormat),xl.add(vd.resolvedPath)}}return t.acquireDocumentWithKey(Lo,fa,e,Bl,As,lc,Hl,is)}}function F(){if(o===2){C.assert(l===void 0);return}return P(),l}function O(){var ft;return(ft=e.getPackageJsonAutoImportProvider)==null?void 0:ft.call(e)}function G(ft,Mt){const jt=l.getTypeChecker(),Qt=In();if(!Qt)return!1;for(const wt of ft)for(const En of wt.references){const xn=yn(En);if(C.assertIsDefined(xn),Mt.has(En)||Ys.isDeclarationOfSymbol(xn,Qt)){Mt.add(En),En.isDefinition=!0;const kn=x7(En,R,oa(e,e.fileExists));kn&&Mt.add(kn)}else En.isDefinition=!1}return!0;function In(){for(const wt of ft)for(const En of wt.references){if(Mt.has(En)){const kn=yn(En);return C.assertIsDefined(kn),jt.getSymbolAtLocation(kn)}const xn=x7(En,R,oa(e,e.fileExists));if(xn&&Mt.has(xn)){const kn=yn(xn);if(kn)return jt.getSymbolAtLocation(kn)}}}function yn(wt){const En=l.getSourceFile(wt.fileName);if(!En)return;const xn=ip(En,wt.textSpan.start);return Ys.Core.getAdjustedNode(xn,{use:Ys.FindReferencesUse.References})}}function j(){if(l){const ft=t.getKeyForCompilationSettings(l.getCompilerOptions());$e(l.getSourceFiles(),Mt=>t.releaseDocumentWithKey(Mt.resolvedPath,ft,Mt.scriptKind,Mt.impliedNodeFormat)),l=void 0}}function J(){j(),e=void 0}function Z(ft){return P(),l.getSyntacticDiagnostics(N(ft),g).slice()}function q(ft){P();const Mt=N(ft),jt=l.getSemanticDiagnostics(Mt,g);if(!_p(l.getCompilerOptions()))return jt.slice();const Qt=l.getDeclarationDiagnostics(Mt,g);return[...jt,...Qt]}function ye(ft,Mt){P();const jt=N(ft),Qt=l.getCompilerOptions();if(mD(jt,Qt,l)||!xM(jt,Qt)||l.getCachedSemanticDiagnostics(jt))return;const In=ie(jt,Mt);if(!In)return;const yn=O9(In.map(En=>oc(En.getFullStart(),En.getEnd())));return{diagnostics:l.getSemanticDiagnostics(jt,g,In).slice(),spans:yn}}function ie(ft,Mt){const jt=[],Qt=O9(Mt.map(In=>_v(In)));for(const In of Qt){const yn=K(ft,In);if(!yn)return;jt.push(...yn)}if(jt.length)return jt}function K(ft,Mt){if(w9(Mt,ft))return;const jt=RP(ft,Dl(Mt))||ft,Qt=Dn(jt,yn=>Mee(yn,Mt)),In=[];if(pe(Mt,Qt,In),ft.end===Mt.start+Mt.length&&In.push(ft.endOfFileToken),!vt(In,Yi))return In}function pe(ft,Mt,jt){return de(Mt,ft)?w9(ft,Mt)?(fe(Mt,jt),!0):hx(Mt)?ve(ft,Mt,jt):ui(Mt)?xe(ft,Mt,jt):(fe(Mt,jt),!0):!1}function de(ft,Mt){const jt=Mt.start+Mt.length;return ft.posMt.start}function fe(ft,Mt){for(;ft.parent&&!Bre(ft);)ft=ft.parent;Mt.push(ft)}function ve(ft,Mt,jt){const Qt=[];return Mt.statements.filter(yn=>pe(ft,yn,Qt)).length===Mt.statements.length?(fe(Mt,jt),!0):(jt.push(...Qt),!1)}function xe(ft,Mt,jt){var Qt,In,yn;const wt=kn=>wee(kn,ft);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 fe(Mt,jt),!0;const En=[];return Mt.members.filter(kn=>pe(ft,kn,En)).length===Mt.members.length?(fe(Mt,jt),!0):(jt.push(...En),!1)}function X(ft){return P(),LJ(N(ft),l,g)}function Ce(){return P(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function Je(ft,Mt,jt=Em,Qt){const In={...jt,includeCompletionsForModuleExports:jt.includeCompletionsForModuleExports||jt.includeExternalModuleExports,includeCompletionsWithInsertText:jt.includeCompletionsWithInsertText||jt.includeInsertTextCompletions};return P(),Ex.getCompletionsAtPosition(e,l,y,N(ft),Mt,In,jt.triggerCharacter,jt.triggerKind,g,Qt&&Nc.getFormatContext(Qt,e),jt.includeSymbol)}function Se(ft,Mt,jt,Qt,In,yn=Em,wt){return P(),Ex.getCompletionEntryDetails(l,y,N(ft),Mt,{name:jt,source:In,data:wt},e,Qt&&Nc.getFormatContext(Qt,e),yn,g)}function re(ft,Mt,jt,Qt,In=Em){return P(),Ex.getCompletionEntrySymbol(l,y,N(ft),Mt,{name:jt,source:Qt},e,In)}function be(ft,Mt,jt,Qt){P();const In=N(ft),yn=ip(In,Mt);if(yn===In)return;const wt=l.getTypeChecker(),En=lt(yn),xn=gQe(En,wt);if(!xn||wt.isUnknownSymbol(xn)){const zo=ce(In,En,Mt)?wt.getTypeAtLocation(En):void 0;return zo&&{kind:"",kindModifiers:"",textSpan:zu(En,In),displayParts:wt.runWithCancellationToken(g,Bl=>RO(Bl,zo,z1(En),void 0,Qt)),documentation:zo.symbol?zo.symbol.getDocumentationComment(wt):void 0,tags:zo.symbol?zo.symbol.getJsDocTags(wt):void 0}}const{symbolKind:kn,displayParts:ln,documentation:Ii,tags:ra,canIncreaseVerbosityLevel:la}=wt.runWithCancellationToken(g,zo=>vv.getSymbolDisplayPartsDocumentationAndSymbolKind(zo,xn,In,z1(En),En,void 0,void 0,jt??Ate,Qt));return{kind:kn,kindModifiers:vv.getSymbolModifiers(wt,xn),textSpan:zu(En,In),displayParts:ln,documentation:Ii,tags:ra,canIncreaseVerbosityLevel:la}}function Ne(ft,Mt){return P(),yX.preparePasteEdits(N(ft),Mt,l.getTypeChecker())}function Be(ft,Mt){return P(),vX.pasteEditsProvider(N(ft.targetFile),ft.pastedText,ft.pasteLocations,ft.copiedFrom?{file:N(ft.copiedFrom.file),range:ft.copiedFrom.range}:void 0,e,ft.preferences,Nc.getFormatContext(Mt,e),g)}function lt(ft){return VS(ft.parent)&&ft.pos===ft.parent.pos?ft.parent.expression:bD(ft.parent)&&ft.pos===ft.parent.pos||KR(ft.parent)&&ft.parent.name===ft||fh(ft.parent)?ft.parent:ft}function ce(ft,Mt,jt){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:!Rq(Mt)&&!Dq(Mt)&&!Wm(Mt.parent);case 212:case 167:return!mv(ft,jt);case 110:case 198:case 108:case 203:return!0;case 237:return KR(Mt);default:return!1}}function Re(ft,Mt,jt,Qt){return P(),fC.getDefinitionAtPosition(l,N(ft),Mt,jt,Qt)}function ge(ft,Mt){return P(),fC.getDefinitionAndBoundSpan(l,N(ft),Mt)}function je(ft,Mt){return P(),fC.getTypeDefinitionAtPosition(l.getTypeChecker(),N(ft),Mt)}function Ge(ft,Mt){return P(),Ys.getImplementationsAtPosition(l,g,l.getSourceFiles(),N(ft),Mt)}function We(ft,Mt,jt){const Qt=ya(ft);C.assert(jt.some(wt=>ya(wt)===Qt)),P();const In=ji(jt,wt=>l.getSourceFile(wt)),yn=N(ft);return U7.getDocumentHighlights(l,g,yn,Mt,In)}function at(ft,Mt,jt,Qt,In){P();const yn=N(ft),wt=m7(ip(yn,Mt));if(Rz.nodeIsEligibleForRename(wt))if(He(wt)&&(ph(wt.parent)||jS(wt.parent))&&oD(wt.escapedText)){const{openingElement:En,closingElement:xn}=wt.parent.parent;return[En,xn].map(kn=>{const ln=zu(kn.tagName,yn);return{fileName:yn.fileName,textSpan:ln,...Ys.toContextSpan(ln,yn,kn.parent)}})}else{const En=Gp(yn,In??Em),xn=typeof In=="boolean"?In:In==null?void 0:In.providePrefixAndSuffixTextForRename;return cn(wt,Mt,{findInStrings:jt,findInComments:Qt,providePrefixAndSuffixTextForRename:xn,use:Ys.FindReferencesUse.Rename},(kn,ln,Ii)=>Ys.toRenameLocation(kn,ln,Ii,xn||!1,En))}}function Wt(ft,Mt){return P(),cn(ip(N(ft),Mt),Mt,{use:Ys.FindReferencesUse.References},Ys.toReferenceEntry)}function cn(ft,Mt,jt,Qt){P();const In=jt&&jt.use===Ys.FindReferencesUse.Rename?l.getSourceFiles().filter(yn=>!l.isSourceFileDefaultLibrary(yn)):l.getSourceFiles();return Ys.findReferenceOrRenameEntries(l,g,In,ft,Mt,jt,Qt)}function gn(ft,Mt){return P(),Ys.findReferencedSymbols(l,g,l.getSourceFiles(),N(ft),Mt)}function Kn(ft){return P(),Ys.Core.getReferencesForFileName(ft,l,l.getSourceFiles()).map(Ys.toReferenceEntry)}function gt(ft,Mt,jt,Qt=!1,In=!1){P();const yn=jt?[N(jt)]:l.getSourceFiles();return Kxe(yn,l.getTypeChecker(),g,ft,Mt,Qt,In)}function en(ft,Mt,jt){P();const Qt=N(ft),In=e.getCustomTransformers&&e.getCustomTransformers();return vse(l,Qt,!!Mt,g,In,jt)}function or(ft,Mt,{triggerReason:jt}=Em){P();const Qt=N(ft);return iW.getSignatureHelpItems(l,Qt,Mt,jt,g)}function Di(ft){return s.getCurrentSourceFile(ft)}function co(ft,Mt,jt){const Qt=s.getCurrentSourceFile(ft),In=ip(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($D(yn)||Ole(yn))yn=yn.parent;else if(Nq(yn))if(yn.parent.parent.kind===268&&yn.parent.parent.body===yn.parent)yn=yn.parent.parent.name;else break;else break;return oc(yn.getStart(),In.getEnd())}function zt(ft,Mt){const jt=s.getCurrentSourceFile(ft);return cK.spanInSourceFileAtLocation(jt,Mt)}function Zr(ft){return Qxe(s.getCurrentSourceFile(ft),g)}function Ai(ft){return Zxe(s.getCurrentSourceFile(ft),g)}function Ni(ft,Mt,jt){return P(),(jt||"original")==="2020"?EDe(l,g,N(ft),Mt):Ace(l.getTypeChecker(),g,N(ft),l.getClassifiableNames(),Mt)}function Pr(ft,Mt,jt){return P(),(jt||"original")==="original"?IJ(l.getTypeChecker(),g,N(ft),l.getClassifiableNames(),Mt):Qde(l,g,N(ft),Mt)}function Ci(ft,Mt){return Ice(g,s.getCurrentSourceFile(ft),Mt)}function Ye(ft,Mt){return xJ(g,s.getCurrentSourceFile(ft),Mt)}function At(ft){const Mt=s.getCurrentSourceFile(ft);return rX.collectElements(Mt,g)}const mn=new Map(Object.entries({19:20,21:22,23:24,32:30}));mn.forEach((ft,Mt)=>mn.set(ft.toString(),Number(Mt)));function dr(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=eC(jt,Mt),In=Qt.getStart(jt)===Mt?mn.get(Qt.kind.toString()):void 0,yn=In&&Es(Qt.parent,In,jt);return yn?[zu(Qt,jt),zu(yn,jt)].sort((wt,En)=>wt.start-En.start):se}function ri(ft,Mt,jt){let Qt=Ls();const In=GO(jt),yn=s.getCurrentSourceFile(ft);y("getIndentationAtPosition: getCurrentSourceFile: "+(Ls()-Qt)),Qt=Ls();const wt=Nc.SmartIndenter.getIndentation(Mt,yn,In);return y("getIndentationAtPosition: computeIndentation : "+(Ls()-Qt)),wt}function ai(ft,Mt,jt,Qt){const In=s.getCurrentSourceFile(ft);return Nc.formatSelection(Mt,jt,In,Nc.getFormatContext(GO(Qt),e))}function Hi(ft,Mt){return Nc.formatDocument(s.getCurrentSourceFile(ft),Nc.getFormatContext(GO(Mt),e))}function $o(ft,Mt,jt,Qt){const In=s.getCurrentSourceFile(ft),yn=Nc.getFormatContext(GO(Qt),e);if(!mv(In,Mt))switch(jt){case"{":return Nc.formatOnOpeningCurly(Mt,In,yn);case"}":return Nc.formatOnClosingCurly(Mt,In,yn);case";":return Nc.formatOnSemicolon(Mt,In,yn);case` `:return Nc.formatOnEnter(Mt,In,yn)}return[]}function Ia(ft,Mt,jt,Qt,In,yn=Em){P();const wt=N(ft),En=oc(Mt,jt),xn=Nc.getFormatContext(In,e);return Ki(dS(Qt,nb,js),kn=>(g.throwIfCancellationRequested(),cu.getFixes({errorCode:kn,sourceFile:wt,span:En,program:l,host:e,cancellationToken:g,formatContext:xn,preferences:yn})))}function Pn(ft,Mt,jt,Qt=Em){P(),C.assert(ft.type==="file");const In=N(ft.fileName),yn=Nc.getFormatContext(jt,e);return cu.getAllFixes({fixId:Mt,sourceFile:In,program:l,host:e,cancellationToken:g,formatContext:yn,preferences:Qt})}function Uo(ft,Mt,jt=Em){P(),C.assert(ft.type==="file");const Qt=N(ft.fileName);if(fI(Qt))return se;const In=Nc.getFormatContext(Mt,e),yn=ft.mode??(ft.skipDestructiveCodeActions?"SortAndCombine":"All");return v0.organizeImports(Qt,In,e,l,jt,yn)}function ot(ft,Mt,jt,Qt=Em){return Dce(F(),ft,Mt,e,Nc.getFormatContext(jt,e),Qt,R)}function Ft(ft,Mt){const jt=typeof ft=="string"?Mt:ft;return Mo(jt)?Promise.all(jt.map(Qt=>le(Qt))):le(jt)}function le(ft){const Mt=jt=>ks(jt,h,A);return C.assertEqual(ft.type,"install package"),e.installPackage?e.installPackage({fileName:Mt(ft.file),packageName:ft.packageName}):Promise.reject("Host does not implement `installPackage`")}function ht(ft,Mt,jt,Qt){const In=Qt?Nc.getFormatContext(Qt,e).options:void 0;return y0.getDocCommentTemplateAtPosition(gy(e,In),s.getCurrentSourceFile(ft),Mt,jt)}function ne(ft,Mt,jt){if(jt===60)return!1;const Qt=s.getCurrentSourceFile(ft);if(px(Qt,Mt))return!1;if(jle(Qt,Mt))return jt===123;if(Oq(Qt,Mt))return!1;switch(jt){case 39:case 34:case 96:return!mv(Qt,Mt)}return!0}function Fe(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=Bc(Mt,jt);if(!Qt)return;const In=Qt.kind===32&&ph(Qt.parent)?Qt.parent.parent:BI(Qt)&&i_(Qt.parent)?Qt.parent:void 0;if(In&&Ot(In))return{newText:``};const yn=Qt.kind===32&&Um(Qt.parent)?Qt.parent.parent:BI(Qt)&&e0(Qt.parent)?Qt.parent:void 0;if(yn&&nt(yn))return{newText:""}}function it(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=Bc(Mt,jt);if(!Qt||Qt.parent.kind===308)return;const In="[a-zA-Z0-9:\\-\\._$]*";if(e0(Qt.parent.parent)){const yn=Qt.parent.parent.openingFragment,wt=Qt.parent.parent.closingFragment;if(fI(yn)||fI(wt))return;const En=yn.getStart(jt)+1,xn=wt.getStart(jt)+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=>!!(ph(la)||jS(la)));if(!yn)return;C.assert(ph(yn)||jS(yn),"tag should be opening or closing element");const wt=yn.parent.openingElement,En=yn.parent.closingElement,xn=wt.tagName.getStart(jt),kn=wt.tagName.end,ln=En.tagName.getStart(jt),Ii=En.tagName.end;return xn===wt.getStart(jt)||ln===En.getStart(jt)||kn===wt.getEnd()||Ii===En.getEnd()||!(xn<=Mt&&Mt<=kn||ln<=Mt&&Mt<=Ii)||wt.tagName.getText(jt)!==En.tagName.getText(jt)?void 0:{ranges:[{start:xn,length:kn-xn},{start:ln,length:Ii-ln}],wordPattern:In}}}function dt(ft,Mt){return{lineStarts:ft.getLineStarts(),firstLine:ft.getLineAndCharacterOfPosition(Mt.pos).line,lastLine:ft.getLineAndCharacterOfPosition(Mt.end).line}}function Lt(ft,Mt,jt){const Qt=s.getCurrentSourceFile(ft),In=[],{lineStarts:yn,firstLine:wt,lastLine:En}=dt(Qt,Mt);let xn=jt||!1,kn=Number.MAX_VALUE;const ln=new Map,Ii=new RegExp(/\S/),ra=_7(Qt,yn[wt]),la=ra?"{/*":"//";for(let zo=wt;zo<=En;zo++){const Bl=Qt.text.substring(yn[zo],Qt.getLineEndOfPosition(yn[zo])),xl=Ii.exec(Bl);xl&&(kn=Math.min(kn,xl.index),ln.set(zo.toString(),xl.index),Bl.substr(xl.index,la.length)!==la&&(xn=jt===void 0||jt))}for(let zo=wt;zo<=En;zo++){if(wt!==En&&yn[zo]===Mt.end)continue;const Bl=ln.get(zo.toString());Bl!==void 0&&(ra?In.push(...Ue(ft,{pos:yn[zo]+kn,end:Qt.getLineEndOfPosition(yn[zo])},xn,ra)):xn?In.push({newText:la,span:{length:0,start:yn[zo]+kn}}):Qt.text.substr(yn[zo]+Bl,la.length)===la&&In.push({newText:"",span:{length:la.length,start:yn[zo]+Bl}}))}return In}function Ue(ft,Mt,jt,Qt){var In;const yn=s.getCurrentSourceFile(ft),wt=[],{text:En}=yn;let xn=!1,kn=jt||!1;const ln=[];let{pos:Ii}=Mt;const ra=Qt!==void 0?Qt:_7(yn,Ii),la=ra?"{/*":"/*",zo=ra?"*/}":"*/",Bl=ra?"\\{\\/\\*":"\\/\\*",xl=ra?"\\*\\/\\}":"\\*\\/";for(;Ii<=Mt.end;){const Ps=En.substr(Ii,la.length)===la?la.length:0,uo=mv(yn,Ii+Ps);if(uo)ra&&(uo.pos--,uo.end++),ln.push(uo.pos),uo.kind===3&&ln.push(uo.end),xn=!0,Ii=uo.end+1;else{const Go=En.substring(Ii,Mt.end).search(`(${Bl})|(${xl})`);kn=jt!==void 0?jt:kn||!ece(En,Ii,Go===-1?Mt.end:Ii+Go),Ii=Go===-1?Mt.end+1:Ii+Go+zo.length}}if(kn||!xn){((In=mv(yn,Mt.pos))==null?void 0:In.kind)!==2&&$v(ln,Mt.pos,js),$v(ln,Mt.end,js);const Ps=ln[0];En.substr(Ps,la.length)!==la&&wt.push({newText:la,span:{length:0,start:Ps}});for(let uo=1;uo0?Ps-zo.length:0,Go=En.substr(uo,zo.length)===zo?zo.length:0;wt.push({newText:"",span:{length:la.length,start:Ps-Go}})}return wt}function Rt(ft,Mt){const jt=s.getCurrentSourceFile(ft),{firstLine:Qt,lastLine:In}=dt(jt,Mt);return Qt===In&&Mt.pos!==Mt.end?Ue(ft,Mt,!0):Lt(ft,Mt,!0)}function It(ft,Mt){const jt=s.getCurrentSourceFile(ft),Qt=[],{pos:In}=Mt;let{end:yn}=Mt;In===yn&&(yn+=_7(jt,In)?2:1);for(let wt=In;wt<=yn;wt++){const En=mv(jt,wt);if(En){switch(En.kind){case 2:Qt.push(...Lt(ft,{end:En.end,pos:En.pos+1},!1));break;case 3:Qt.push(...Ue(ft,{end:En.end,pos:En.pos+1},!1))}wt=En.end+1}}return Qt}function Ot({openingElement:ft,closingElement:Mt,parent:jt}){return!a0(ft.tagName,Mt.tagName)||i_(jt)&&a0(ft.tagName,jt.openingElement.tagName)&&Ot(jt)}function nt({closingFragment:ft,parent:Mt}){return!!(ft.flags&262144)||e0(Mt)&&nt(Mt)}function Kt(ft,Mt,jt){const Qt=s.getCurrentSourceFile(ft),In=Nc.getRangeOfEnclosingComment(Qt,Mt);return In&&(!jt||In.kind===3)?_v(In):void 0}function Tr(ft,Mt){P();const jt=N(ft);g.throwIfCancellationRequested();const Qt=jt.text,In=[];if(Mt.length>0&&!xn(jt.fileName)){const kn=wt();let ln;for(;ln=kn.exec(Qt);){g.throwIfCancellationRequested();const Ii=3;C.assert(ln.length===Mt.length+Ii);const ra=ln[1],la=ln.index+ra.length;if(!mv(jt,la))continue;let zo;for(let xl=0;xl"("+yn(uo.text)+")").join("|")+")",zo=/(?:$|\*\/)/.source,Bl=/(?:.*?)/.source,xl="("+la+Bl+")",Ps=ra+xl+zo;return new RegExp(Ps,"gim")}function En(kn){return kn>=97&&kn<=122||kn>=65&&kn<=90||kn>=48&&kn<=57}function xn(kn){return kn.includes("/node_modules/")}}function Oe(ft,Mt,jt){return P(),Rz.getRenameInfo(l,N(ft),Mt,jt||{})}function Nt(ft,Mt,jt,Qt,In,yn){const[wt,En]=typeof Mt=="number"?[Mt,void 0]:[Mt.pos,Mt.end];return{file:ft,startPosition:wt,endPosition:En,program:F(),host:e,formatContext:Nc.getFormatContext(Qt,e),cancellationToken:g,preferences:jt,triggerReason:In,kind:yn}}function he(ft,Mt,jt){return{file:ft,program:F(),host:e,span:Mt,preferences:jt,cancellationToken:g}}function B(ft,Mt){return aX.getSmartSelectionRange(Mt,s.getCurrentSourceFile(ft))}function Ae(ft,Mt,jt=Em,Qt,In,yn){P();const wt=N(ft);return gx.getApplicableRefactors(Nt(wt,Mt,jt,Em,Qt,In),yn)}function te(ft,Mt,jt=Em){P();const Qt=N(ft),In=C.checkDefined(l.getSourceFiles()),yn=AM(ft),wt=zO(Nt(Qt,Mt,jt,Em)),En=yde(wt==null?void 0:wt.all),xn=ji(In,kn=>{const ln=AM(kn.fileName);return!(l!=null&&l.isSourceFileFromExternalLibrary(Qt))&&!(Qt===N(kn.fileName)||yn===".ts"&&ln===".d.ts"||yn===".d.ts"&&fo(Ic(kn.fileName),"lib.")&&ln===".d.ts")&&(yn===ln||(yn===".tsx"&&ln===".ts"||yn===".jsx"&&ln===".js")&&!En)?kn.fileName:void 0});return{newFileName:gde(Qt,l,e,wt),files:xn}}function xt(ft,Mt,jt,Qt,In,yn=Em,wt){P();const En=N(ft);return gx.getEditsForRefactor(Nt(En,jt,yn,Mt),Qt,In,wt)}function Xt(ft,Mt){return Mt===0?{line:0,character:0}:R.toLineColumnOffset(ft,Mt)}function Pe(ft,Mt){P();const jt=yx.resolveCallHierarchyDeclaration(l,ip(N(ft),Mt));return jt&&_J(jt,Qt=>yx.createCallHierarchyItem(l,Qt))}function yt(ft,Mt){P();const jt=N(ft),Qt=gJ(yx.resolveCallHierarchyDeclaration(l,Mt===0?jt:ip(jt,Mt)));return Qt?yx.getIncomingCalls(l,Qt,g):[]}function Gt(ft,Mt){P();const jt=N(ft),Qt=gJ(yx.resolveCallHierarchyDeclaration(l,Mt===0?jt:ip(jt,Mt)));return Qt?yx.getOutgoingCalls(l,Qt):[]}function gr(ft,Mt,jt=Em){P();const Qt=N(ft);return eX.provideInlayHints(he(Qt,Mt,jt))}function nr(ft,Mt,jt,Qt,In){return tX.mapCode(s.getCurrentSourceFile(ft),Mt,jt,e,Nc.getFormatContext(Qt,e),In)}const Jn={dispose:J,cleanupSemanticCache:j,getSyntacticDiagnostics:Z,getSemanticDiagnostics:q,getRegionSemanticDiagnostics:ye,getSuggestionDiagnostics:X,getCompilerOptionsDiagnostics:Ce,getSyntacticClassifications:Ci,getSemanticClassifications:Ni,getEncodedSyntacticClassifications:Ye,getEncodedSemanticClassifications:Pr,getCompletionsAtPosition:Je,getCompletionEntryDetails:Se,getCompletionEntrySymbol:re,getSignatureHelpItems:or,getQuickInfoAtPosition:be,getDefinitionAtPosition:Re,getDefinitionAndBoundSpan:ge,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:je,getReferencesAtPosition:Wt,findReferences:gn,getFileReferences:Kn,getDocumentHighlights:We,getNameOrDottedNameSpan:co,getBreakpointStatementAtPosition:zt,getNavigateToItems:gt,getRenameInfo:Oe,getSmartSelectionRange:B,findRenameLocations:at,getNavigationBarItems:Zr,getNavigationTree:Ai,getOutliningSpans:At,getTodoComments:Tr,getBraceMatchingAtPosition:dr,getIndentationAtPosition:ri,getFormattingEditsForRange:ai,getFormattingEditsForDocument:Hi,getFormattingEditsAfterKeystroke:$o,getDocCommentTemplateAtPosition:ht,isValidBraceCompletionAtPosition:ne,getJsxClosingTagAtPosition:Fe,getLinkedEditingRangeAtPosition:it,getSpanOfEnclosingComment:Kt,getCodeFixesAtPosition:Ia,getCombinedCodeFix:Pn,applyCodeActionCommand:Ft,organizeImports:Uo,getEditsForFileRename:ot,getEmitOutput:en,getNonBoundSourceFile:Di,getProgram:F,getCurrentProgram:()=>l,getAutoImportProvider:O,updateIsDefinitionOfReferencedSymbols:G,getApplicableRefactors:Ae,getEditsForRefactor:xt,getMoveToRefactoringFileSuggestions:te,toLineColumnOffset:Xt,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:Pe,provideCallHierarchyIncomingCalls:yt,provideCallHierarchyOutgoingCalls:Gt,toggleLineComment:Lt,toggleMultilineComment:Ue,commentSelection:Rt,uncommentSelection:It,provideInlayHints:gr,getSupportedCodeFixes:aK,preparePasteEditsForFile:Ne,getPasteEdits:Be,mapCode:nr};switch(o){case 0:break;case 1:ODe.forEach(ft=>Jn[ft]=()=>{throw new Error(`LanguageService Operation: ${ft} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:fQe.forEach(ft=>Jn[ft]=()=>{throw new Error(`LanguageService Operation: ${ft} not allowed in LanguageServiceMode.Syntactic`)});break;default:C.assertNever(o)}return Jn}function lK(e){return e.nameTable||mQe(e),e.nameTable}function mQe(e){const t=e.nameTable=new Map;e.forEachChild(function r(i){if(He(i)&&!Dq(i)&&i.escapedText||uf(i)&&hQe(i)){const o=aM(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(eo(i)){const o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Jo(i,r),ef(i))for(const o of i.jsDoc)Jo(o,r)})}function hQe(e){return k_(e)||e.parent.kind===284||yQe(e)||xk(e)}function jO(e){const t=_Qe(e);return t&&(Fa(t.parent)||US(t.parent))?t:void 0}function _Qe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===168)return iG(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return iG(e.parent)&&(e.parent.parent.kind===211||e.parent.parent.kind===293)&&e.parent.name===e?e.parent:void 0}}function gQe(e,t){const r=jO(e);if(r){const i=t.getContextualType(r.parent),o=i&&sz(r,t,i,!1);if(o&&o.length===1)return $a(o)}return t.getSymbolAtLocation(e)}function sz(e,t,r,i){const o=AO(e.name);if(!o)return se;if(!r.isUnion()){const u=r.getProperty(o);return u?[u]:se}const s=Fa(e.parent)||US(e.parent)?Vn(r.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):r.types,l=ji(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?ji(r.types,u=>u.getProperty(o)):dS(l,nb)}function yQe(e){return e&&e.parent&&e.parent.kind===213&&e.parent.argumentExpression===e}function rue(e){if(jc)return Qr(ci(ya(jc.getExecutingFilePath())),C2(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}rre(cQe());function WDe(e,t,r){const i=[];r=WJ(r,i);const o=Mo(e)?e:[e],s=$w(void 0,void 0,L,r,o,t,!0);return s.diagnostics=lo(s.diagnostics,i),s}var cK={};x(cK,{spanInSourceFileAtLocation:()=>vQe});function vQe(e,t){if(e.isDeclarationFile)return;let r=Fi(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){const y=Bc(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=JS(y)?ma(y.modifiers,Wc):void 0,R=A?ka(e.text,A.end):y.getStart(e);return oc(R,(E||y).getEnd())}function s(y,E){return o(y,tE(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(Ce.declarations[0])}else return h(X.initializer)}function j(X){if(X.initializer)return G(X);if(X.condition)return o(X.condition);if(X.incrementor)return o(X.incrementor)}function J(X){const Ce=$e(X.elements,Je=>Je.kind!==233?Je:void 0);return Ce?h(Ce):X.parent.kind===209?o(X.parent):E(X.parent)}function Z(X){C.assert(X.kind!==208&&X.kind!==207);const Ce=X.kind===210?X.elements:X.properties,Je=$e(Ce,Se=>Se.kind!==233?Se:void 0);return Je?h(Je):o(X.parent.kind===227?X.parent:X)}function q(X){switch(X.parent.kind){case 267:const Ce=X.parent;return l(Bc(X.pos,e,X.parent),Ce.members.length?Ce.members[0]:Ce.getLastToken(e));case 264:const Je=X.parent;return l(Bc(X.pos,e,X.parent),Je.members.length?Je.members[0]:Je.getLastToken(e));case 270:return l(X.parent.parent,X.parent.clauses[0])}return h(X.parent)}function ye(X){switch(X.parent.kind){case 269:if(hy(X.parent.parent)!==1)return;case 267:case 264:return o(X);case 242:if(ES(X.parent))return o(X);case 300:return h(tl(X.parent.statements));case 270:const Ce=X.parent,Je=tl(Ce.clauses);return Je?h(tl(Je.statements)):void 0;case 207:const Se=X.parent;return h(tl(Se.elements)||Se);default:if(hv(X.parent)){const re=X.parent;return o(tl(re.properties)||re)}return h(X.parent)}}function ie(X){switch(X.parent.kind){case 208:const Ce=X.parent;return o(tl(Ce.elements)||Ce);default:if(hv(X.parent)){const Je=X.parent;return o(tl(Je.elements)||Je)}return h(X.parent)}}function K(X){return X.parent.kind===247||X.parent.kind===214||X.parent.kind===215?d(X):X.parent.kind===218?g(X):h(X.parent)}function pe(X){switch(X.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(X);default:return h(X.parent)}}function de(X){return Yo(X.parent)||X.parent.kind===304||X.parent.kind===170?d(X):h(X.parent)}function fe(X){return X.parent.kind===217?g(X):h(X.parent)}function ve(X){return X.parent.kind===247?s(X,X.parent.expression):h(X.parent)}function xe(X){return X.parent.kind===251?g(X):h(X.parent)}}}var yx={};x(yx,{createCallHierarchyItem:()=>iue,getIncomingCalls:()=>RQe,getOutgoingCalls:()=>WQe,resolveCallHierarchyDeclaration:()=>HDe});function bQe(e){return(Us(e)||uc(e))&&nd(e)}function FDe(e){return Po(e)||yi(e)}function UO(e){return(Us(e)||Xs(e)||uc(e))&&FDe(e.parent)&&e===e.parent.initializer&&He(e.parent.name)&&(!!(ny(e.parent)&2)||Po(e.parent))}function zDe(e){return Yi(e)||pc(e)||Zl(e)||Us(e)||Dc(e)||uc(e)||Ql(e)||Nl(e)||Vm(e)||Hf(e)||gp(e)}function dC(e){return Yi(e)||pc(e)&&He(e.name)||Zl(e)||Dc(e)||Ql(e)||Nl(e)||Vm(e)||Hf(e)||gp(e)||bQe(e)||UO(e)}function BDe(e){return Yi(e)?e:nd(e)?e.name:UO(e)?e.parent.name:C.checkDefined(e.modifiers&&hn(e.modifiers,GDe))}function GDe(e){return e.kind===90}function VDe(e,t){const r=BDe(t);return r&&e.getSymbolAtLocation(r)}function TQe(e,t){if(Yi(t))return{text:t.fileName,pos:0,end:0};if((Zl(t)||Dc(t))&&!nd(t)){const o=t.modifiers&&hn(t.modifiers,GDe);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(Ql(t)){const o=t.getSourceFile(),s=ka(o.text,$h(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=UO(t)?t.parent.name:C.checkDefined(Oo(t),"Expected call hierarchy item to have a name");let i=He(r)?Kr(r):uf(r)?r.text:va(r)&&uf(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=dH();i=jR(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function SQe(e){var t,r,i,o;if(UO(e))return Po(e.parent)&&ui(e.parent.parent)?uc(e.parent.parent)?(t=dF(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():n_(e.parent.parent.parent.parent)&&He(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=dF(e.parent))==null?void 0:i.getText():(o=Oo(e.parent))==null?void 0:o.getText();case 263:case 264:case 268:if(n_(e.parent)&&He(e.parent.parent.name))return e.parent.parent.name.getText()}}function jDe(e,t){if(t.body)return t;if(Ml(t))return vg(t.parent);if(Zl(t)||Nl(t)){const r=VDe(e,t);return r&&r.valueDeclaration&&Ms(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function UDe(e,t){const r=VDe(e,t);let i;if(r&&r.declarations){const o=z8(r.declarations),s=Bt(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,g)=>Wd(s[d].file,s[g].file)||s[d].pos-s[g].pos);const l=Bt(o,d=>r.declarations[d]);let u;for(const d of l)dC(d)&&((!u||u.parent!==d.parent||u.end!==d.pos)&&(i=Un(i,d)),u=d)}return i}function dK(e,t){return Ql(t)?t:Ms(t)?jDe(e,t)??UDe(e,t)??t:UDe(e,t)??t}function HDe(e,t){const r=e.getTypeChecker();let i=!1;for(;;){if(dC(t))return dK(r,t);if(zDe(t)){const o=Dn(t,dC);return o&&dK(r,o)}if(k_(t)){if(dC(t.parent))return dK(r,t.parent);if(zDe(t.parent)){const o=Dn(t.parent,dC);return o&&dK(r,o)}return FDe(t.parent)&&t.parent.initializer&&UO(t.parent.initializer)?t.parent.initializer:void 0}if(Ml(t))return dC(t.parent)?t.parent:void 0;if(t.kind===126&&Ql(t.parent)){t=t.parent;continue}if(yi(t)&&t.initializer&&UO(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 iue(e,t){const r=t.getSourceFile(),i=TQe(e,t),o=SQe(t),s=eE(t),l=DP(t),u=oc(ka(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=oc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:u,selectionSpan:d}}function EQe(e){return e!==void 0}function AQe(e){if(e.kind===Ys.EntryKind.Node){const{node:t}=e;if(Aq(t,!0,!0)||Lle(t,!0,!0)||kle(t,!0,!0)||wle(t,!0,!0)||$D(t)||Cq(t)){const r=t.getSourceFile();return{declaration:Dn(t,dC)||r,range:Uq(t,r)}}}}function qDe(e){return ls(e.declaration)}function IQe(e,t){return{from:e,fromSpans:t}}function xQe(e,t){return IQe(iue(e,t[0].declaration),Bt(t,r=>_v(r.range)))}function RQe(e,t,r){if(Yi(t)||pc(t)||Ql(t))return[];const i=BDe(t),o=Vn(Ys.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:Ys.FindReferencesUse.References},AQe),EQe);return o?IR(o,qDe,s=>xQe(e,s)):[]}function DQe(e,t){function r(o){const s=XT(o)?o.tag:ru(o)?o.tagName:Ks(o)||Ql(o)?o:o.expression,l=HDe(e,s);if(l){const u=Uq(s,o.getSourceFile());if(Mo(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(dC(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),$e(o.arguments,i);return;case 215:r(o),i(o.expression),$e(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}qh(o)||Jo(o,i)}}return i}function CQe(e,t){$e(e.statements,t)}function NQe(e,t){!di(e,128)&&e.body&&n_(e.body)&&$e(e.body.statements,t)}function MQe(e,t,r){const i=jDe(e,t);i&&($e(i.parameters,r),r(i.body))}function PQe(e,t){t(e.body)}function LQe(e,t){$e(e.modifiers,t);const r=DS(e);r&&t(r.expression);for(const i of e.members)Sm(i)&&$e(i.modifiers,t),Po(i)?t(i.initializer):Ml(i)&&i.body?($e(i.parameters,t),t(i.body)):Ql(i)&&t(i)}function kQe(e,t){const r=[],i=DQe(e,r);switch(t.kind){case 308:CQe(t,i);break;case 268:NQe(t,i);break;case 263:case 219:case 220:case 175:case 178:case 179:MQe(e.getTypeChecker(),t,i);break;case 264:case 232:LQe(t,i);break;case 176:PQe(t,i);break;default:C.assertNever(t)}return r}function wQe(e,t){return{to:e,fromSpans:t}}function OQe(e,t){return wQe(iue(e,t[0].declaration),Bt(t,r=>_v(r.range)))}function WQe(e,t){return t.flags&33554432||Vm(t)?[]:IR(kQe(e,t),qDe,r=>OQe(e,r))}var oue={};x(oue,{v2020:()=>JDe});var JDe={};x(JDe,{TokenEncodingConsts:()=>bDe,TokenModifier:()=>SDe,TokenType:()=>TDe,getEncodedSemanticClassifications:()=>Qde,getSemanticClassifications:()=>EDe});var cu={};x(cu,{PreserveOptionalFlags:()=>sLe,addNewNodeForMemberSymbol:()=>lLe,codeFixAll:()=>Ss,createCodeFixAction:()=>aa,createCodeFixActionMaybeFixAll:()=>lue,createCodeFixActionWithoutFixAll:()=>yh,createCombinedCodeActions:()=>vx,createFileTextChanges:()=>KDe,createImportAdder:()=>sE,createImportSpecifierResolver:()=>qZe,createMissingMemberNodes:()=>Cpe,createSignatureDeclarationFromCallExpression:()=>Npe,createSignatureDeclarationFromSignature:()=>OK,createStubbedBody:()=>mz,eachDiagnostic:()=>bx,findAncestorMatchingSpan:()=>Wpe,generateAccessorFromProperty:()=>_Le,getAccessorConvertiblePropertyAtPosition:()=>vLe,getAllFixes:()=>GQe,getFixes:()=>BQe,getImportCompletionAction:()=>JZe,getImportKind:()=>TK,getJSDocTypedefNodes:()=>UZe,getNoopSymbolTrackerWithResolver:()=>pC,getPromoteTypeOnlyCompletionAction:()=>KZe,getSupportedErrorCodes:()=>FQe,importFixName:()=>_Ne,importSymbols:()=>V1,parameterShouldGetTypeFromJSDoc:()=>ICe,registerCodeFix:()=>Sa,setJsonCompilerOptionValue:()=>wpe,setJsonCompilerOptionValues:()=>kpe,tryGetAutoImportableReferenceFromTypeNode:()=>lE,typeNodeToAutoImportableTypeNode:()=>Mpe,typePredicateToAutoImportableTypeNode:()=>uLe,typeToAutoImportableTypeNode:()=>WK,typeToMinimizedReferenceType:()=>dLe});var aue=dm(),sue=new Map;function yh(e,t,r){return cue(e,nE(r),t,void 0,void 0)}function aa(e,t,r,i,o,s){return cue(e,nE(r),t,i,nE(o),s)}function lue(e,t,r,i,o,s){return cue(e,nE(r),t,i,o&&nE(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)due=void 0,aue.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)C.assert(!sue.has(t)),sue.set(t,e)}var due;function FQe(){return due??(due=Co(aue.keys()))}function zQe(e,t){const{errorCodes:r}=e;let i=0;for(const s of t)if(Ln(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 BQe(e){const t=XDe(e),r=aue.get(String(e.errorCode));return Ki(r,i=>Bt(i.getCodeActions(e),zQe(i,t)))}function GQe(e){return sue.get(ha(e.fixId,Bo)).getAllCodeActions(e)}function vx(e,t){return{changes:e,commands:t}}function KDe(e,t){return{fileName:e,textChanges:t}}function Ss(e,t,r){const i=[],o=Rr.ChangeTracker.with(e,s=>bx(e,t,l=>r(s,l,i)));return vx(o,i.length===0?void 0:i)}function bx(e,t,r){for(const i of XDe(e))Ln(t,i.code)&&r(i)}function XDe({program:e,sourceFile:t,cancellationToken:r}){const i=[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...LJ(t,e,r)];return _p(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,r)),i}var uue="addConvertToUnknownForNonOverlappingTypes",YDe=[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:YDe,getCodeActions:function(t){const r=QDe(t.sourceFile,t.span.start);if(r===void 0)return;const i=Rr.ChangeTracker.with(t,o=>$De(o,t.sourceFile,r));return[aa(uue,i,f.Add_unknown_conversion_for_non_overlapping_types,uue,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[uue],getAllCodeActions:e=>Ss(e,YDe,(t,r)=>{const i=QDe(r.file,r.start);i&&$De(t,r.file,i)})});function $De(e,t,r){const i=SD(r)?L.createAsExpression(r.expression,L.createKeywordTypeNode(159)):L.createTypeAssertion(L.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function QDe(e,t){if(!Ir(e))return Dn(Fi(e,t),r=>SD(r)||v4(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[yh("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}});var pue="addMissingAsync",ZDe=[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:ZDe,getCodeActions:function(t){const{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,u=hn(s.getTypeChecker().getDiagnostics(r,o),jQe(l,i)),d=u&&u.relatedInformation&&hn(u.relatedInformation,y=>y.code===f.Did_you_mean_to_mark_this_function_as_async.code),g=tCe(r,d);return g?[eCe(t,g,y=>Rr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,r=new Set;return Ss(e,ZDe,(i,o)=>{const s=o.relatedInformation&&hn(o.relatedInformation,d=>d.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=tCe(t,s);return l?eCe(e,l,d=>(d(i),[]),r):void 0})}});function eCe(e,t,r,i){const o=r(s=>VQe(s,e.sourceFile,t,i));return aa(pue,o,f.Add_async_modifier_to_containing_function,pue,f.Add_all_missing_async_modifiers)}function VQe(e,t,r,i){if(i&&i.has(ls(r)))return;i==null||i.add(ls(r));const o=L.replaceModifiers(_s(r,!0),L.createNodeArray(L.createModifiersFromModifierFlags(nv(r)|1024)));e.replaceNode(t,r,o)}function tCe(e,t){if(!t)return;const r=Fi(e,t.start);return Dn(r,o=>o.getStart(e)Dl(t)?"quit":(Xs(o)||Nl(o)||Us(o)||Zl(o))&&rC(t,zu(o,e)))}function jQe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>eb(r)&&eb(i)&&rC({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 fue="addMissingAwait",nCe=f.Property_0_does_not_exist_on_type_1.code,rCe=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],mue=[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,nCe,...rCe];Sa({fixIds:[fue],errorCodes:mue,getCodeActions:function(t){const{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,u=iCe(r,i,o,s,l);if(!u)return;const d=t.program.getTypeChecker(),g=h=>Rr.ChangeTracker.with(t,h);return m2([oCe(t,u,i,d,g),aCe(t,u,i,d,g)])},getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Ss(e,mue,(l,u)=>{const d=iCe(t,u.code,u,i,r);if(!d)return;const g=h=>(h(l),[]);return oCe(e,d,u.code,o,g,s)||aCe(e,d,u.code,o,g,s)})}});function iCe(e,t,r,i,o){const s=hJ(e,r);return s&&UQe(e,t,r,i,o)&&sCe(s)?s:void 0}function oCe(e,t,r,i,o,s){const{sourceFile:l,program:u,cancellationToken:d}=e,g=HQe(t,l,d,u,i);if(g){const h=o(y=>{$e(g.initializers,({expression:E})=>hue(y,r,l,i,E,s)),s&&g.needsSecondPassForFixAll&&hue(y,r,l,i,t,s)});return yh("addMissingAwaitToInitializer",h,g.initializers.length===1?[f.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function aCe(e,t,r,i,o,s){const l=o(u=>hue(u,r,e.sourceFile,i,t,s));return aa(fue,l,f.Add_await,fue,f.Fix_all_expressions_possibly_missing_await)}function UQe(e,t,r,i,o){const l=o.getTypeChecker().getDiagnostics(e,i);return vt(l,({start:u,length:d,relatedInformation:g,code:h})=>eb(u)&&eb(d)&&rC({start:u,length:d},r)&&h===t&&!!g&&vt(g,y=>y.code===f.Did_you_forget_to_use_await.code))}function HQe(e,t,r,i,o){const s=qQe(e,o);if(!s)return;let l=s.isCompleteFix,u;for(const d of s.identifiers){const g=o.getSymbolAtLocation(d);if(!g)continue;const h=ni(g.valueDeclaration,yi),y=h&&ni(h.name,He),E=VT(h,244);if(!h||!E||h.type||!h.initializer||E.getSourceFile()!==t||di(E,32)||!y||!sCe(h.initializer)){l=!1;continue}const A=i.getSemanticDiagnostics(t,r);if(Ys.Core.eachSymbolReferenceInFile(y,o,t,N=>d!==N&&!JQe(N,A,t,o))){l=!1;continue}(u||(u=[])).push({expression:h.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!l}}function qQe(e,t){if(qr(e.parent)&&He(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(He(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(!He(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function JQe(e,t,r,i){const o=qr(e.parent)?e.parent.name:Nr(e.parent)?e.parent:e,s=hn(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&Ln(mue,s.code)||i.getTypeAtLocation(o).flags&1}function sCe(e){return e.flags&65536||!!Dn(e,t=>t.parent&&Xs(t.parent)&&t.parent.body===t||ea(t)&&(t.parent.kind===263||t.parent.kind===219||t.parent.kind===220||t.parent.kind===175))}function hue(e,t,r,i,o,s){if(gw(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&&He(l)){const g=i.getSymbolAtLocation(l);if(g&&s.has(Ta(g)))continue}const u=i.getTypeAtLocation(l),d=i.getPromisedTypeOfPromise(u)?L.createAwaitExpression(l):l;e.replaceNode(r,l,d)}else if(t===nCe&&qr(o.parent)){if(s&&He(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))),lCe(e,o.parent.expression,r)}else if(Ln(rCe,t)&&Vh(o.parent)){if(s&&He(o)){const l=i.getSymbolAtLocation(o);if(l&&s.has(Ta(l)))return}e.replaceNode(r,o,L.createParenthesizedExpression(L.createAwaitExpression(o))),lCe(e,o,r)}else{if(s&&yi(o.parent)&&He(o.parent.name)){const l=i.getSymbolAtLocation(o.parent.name);if(l&&!rh(s,Ta(l)))return}e.replaceNode(r,o,L.createAwaitExpression(o))}}function lCe(e,t,r){const i=Bc(t.pos,r);i&&M7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var _ue="addMissingConst",cCe=[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:cCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>dCe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[aa(_ue,r,f.Add_const_to_unresolved_variable,_ue,f.Add_const_to_all_unresolved_variables)]},fixIds:[_ue],getAllCodeActions:e=>{const t=new Set;return Ss(e,cCe,(r,i)=>dCe(r,i.file,i.start,e.program,t))}});function dCe(e,t,r,i,o){const s=Fi(t,r),l=Dn(s,g=>ZE(g.parent)?g.parent.initializer===g:KQe(g)?!1:"quit");if(l)return uK(e,l,t,o);const u=s.parent;if(Nr(u)&&u.operatorToken.kind===64&&od(u.parent))return uK(e,s,t,o);if(Cd(u)){const g=i.getTypeChecker();return Hn(u.elements,h=>XQe(h,g))?uK(e,u,t,o):void 0}const d=Dn(s,g=>od(g.parent)?!0:YQe(g)?!1:"quit");if(d){const g=i.getTypeChecker();return uCe(d,g)?uK(e,d,t,o):void 0}}function uK(e,t,r,i){(!i||rh(i,t))&&e.insertModifierBefore(r,87,t)}function KQe(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function XQe(e,t){const r=He(e)?e:id(e,!0)&&He(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function YQe(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}function uCe(e,t){return Nr(e)?e.operatorToken.kind===28?Hn([e.left,e.right],r=>uCe(r,t)):e.operatorToken.kind===64&&He(e.left)&&!t.getSymbolAtLocation(e.left):!1}var gue="addMissingDeclareProperty",pCe=[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:pCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>fCe(i,t.sourceFile,t.span.start));if(r.length>0)return[aa(gue,r,f.Prefix_with_declare,gue,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[gue],getAllCodeActions:e=>{const t=new Set;return Ss(e,pCe,(r,i)=>fCe(r,i.file,i.start,t))}});function fCe(e,t,r,i){const o=Fi(t,r);if(!He(o))return;const s=o.parent;s.kind===173&&(!i||rh(i,s))&&e.insertModifierBefore(t,138,s)}var yue="addMissingInvocationForDecorator",mCe=[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:mCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>hCe(i,t.sourceFile,t.span.start));return[aa(yue,r,f.Call_decorator_expression,yue,f.Add_to_all_uncalled_decorators)]},fixIds:[yue],getAllCodeActions:e=>Ss(e,mCe,(t,r)=>hCe(t,r.file,r.start))});function hCe(e,t,r){const i=Fi(t,r),o=Dn(i,Wc);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 vue="addMissingResolutionModeImportAttribute",_Ce=[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:_Ce,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>gCe(i,t.sourceFile,t.span.start,t.program,t.host,t.preferences));return[aa(vue,r,f.Add_resolution_mode_import_attribute,vue,f.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[vue],getAllCodeActions:e=>Ss(e,_Ce,(t,r)=>gCe(t,r.file,r.start,e.program,e.host,e.preferences))});function gCe(e,t,r,i,o,s){var l,u,d;const g=Fi(t,r),h=Dn(g,Rp(vl,t_));C.assert(!!h,"Expected position to be owned by an ImportDeclaration or ImportType.");const y=Gp(t,s)===0,E=gI(h),A=!E||((l=P1(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",yCe=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];Sa({errorCodes:yCe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>vCe(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=>Ss(e,yCe,(t,r)=>vCe(t,r.file,r.start))});function vCe(e,t,r){const i=Fi(t,r),o=i.parent;if(!to(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=bCe(t,o);for(;d;)u=L.createArrayTypeNode(u),l=d.getEnd(),d=bCe(t,d);const g=L.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!hw(u)?L.createArrayTypeNode(u):u,o.initializer);e.replaceRange(t,Bf(o.getStart(t),l),g)}function bCe(e,t){const r=tE(t.name,t.parent,e);if(r&&r.kind===23&&pv(r.parent)&&to(r.parent.parent))return r.parent.parent}var TCe="addOptionalPropertyUndefined",$Qe=[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:$Qe,getCodeActions(e){const t=e.program.getTypeChecker(),r=QQe(e.sourceFile,e.span,t);if(!r.length)return;const i=Rr.ChangeTracker.with(e,o=>eZe(o,r));return[yh(TCe,i,f.Add_undefined_to_optional_property_type)]},fixIds:[TCe]});function QQe(e,t,r){var i,o;const s=SCe(hJ(e,t),r);if(!s)return se;const{source:l,target:u}=s,d=ZQe(l,u,r)?r.getTypeAtLocation(u.expression):r.getTypeAtLocation(u);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(g=>Fn(g).fileName.match(/\.d\.ts$/))?se:r.getExactOptionalProperties(d)}function ZQe(e,t,r){return qr(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function SCe(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(Zo(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!aI(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(He(s))return{source:e,target:s}}else if(Cc(e.parent)&&He(e.parent.name)||Ud(e.parent)){const i=SCe(e.parent.parent,t);if(!i)return;const o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o==null?void 0:o.declarations)==null?void 0:r[0];return s?{source:Cc(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function eZe(e,t){for(const r of t){const i=r.valueDeclaration;if(i&&(Su(i)||Po(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 Tue="annotateWithTypeFromJSDoc",ECe=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code];Sa({errorCodes:ECe,getCodeActions(e){const t=ACe(e.sourceFile,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>RCe(i,e.sourceFile,t));return[aa(Tue,r,f.Annotate_with_type_from_JSDoc,Tue,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[Tue],getAllCodeActions:e=>Ss(e,ECe,(t,r)=>{const i=ACe(r.file,r.start);i&&RCe(t,r.file,i)})});function ACe(e,t){const r=Fi(e,t);return ni(to(r.parent)?r.parent.parent:r.parent,ICe)}function ICe(e){return tZe(e)&&xCe(e)}function xCe(e){return Ms(e)?e.parameters.some(xCe)||!e.type&&!!w2(e):!e.type&&!!$y(e)}function RCe(e,t,r){if(Ms(r)&&(w2(r)||r.parameters.some(i=>!!$y(i)))){if(!r.typeParameters){const o=T6(r);o.length&&e.insertTypeParameters(t,r,o)}const i=Xs(r)&&!Es(r,21,t);i&&e.insertNodeBefore(t,$a(r.parameters),L.createToken(21));for(const o of r.parameters)if(!o.type){const s=$y(o);s&&e.tryInsertTypeAnnotation(t,o,st(s,aE,Ri))}if(i&&e.insertNodeAfter(t,Ba(r.parameters),L.createToken(22)),!r.type){const o=w2(r);o&&e.tryInsertTypeAnnotation(t,r,st(o,aE,Ri))}}else{const i=C.checkDefined($y(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,aE,Ri))}}function tZe(e){return Ms(e)||e.kind===261||e.kind===172||e.kind===173}function aE(e){switch(e.kind){case 313:case 314:return L.createTypeReferenceNode("any",se);case 317:return rZe(e);case 316:return aE(e.type);case 315:return iZe(e);case 319:return oZe(e);case 318:return aZe(e);case 184:return lZe(e);case 323:return nZe(e);default:const t=wn(e,aE,void 0);return Cr(t,1),t}}function nZe(e){const t=L.createTypeLiteralNode(Bt(e.jsDocPropertyTags,r=>L.createPropertySignature(void 0,He(r.name)?r.name:r.name.right,rw(r)?L.createToken(58):void 0,r.typeExpression&&st(r.typeExpression.type,aE,Ri)||L.createKeywordTypeNode(133))));return Cr(t,1),t}function rZe(e){return L.createUnionTypeNode([st(e.type,aE,Ri),L.createTypeReferenceNode("undefined",se)])}function iZe(e){return L.createUnionTypeNode([st(e.type,aE,Ri),L.createTypeReferenceNode("null",se)])}function oZe(e){return L.createArrayTypeNode(st(e.type,aE,Ri))}function aZe(e){return L.createFunctionTypeNode(se,e.parameters.map(sZe),e.type??L.createKeywordTypeNode(133))}function sZe(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,aE,Ri),e.initializer)}function lZe(e){let t=e.typeName,r=e.typeArguments;if(He(e.typeName)){if(n6(e))return cZe(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",se)]):r=Xn(e.typeArguments,aE,Ri)}return L.createTypeReferenceNode(t,r)}function cZe(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 Sue="convertFunctionToEs6Class",DCe=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code];Sa({errorCodes:DCe,getCodeActions(e){const t=Rr.ChangeTracker.with(e,r=>CCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[aa(Sue,t,f.Convert_function_to_an_ES2015_class,Sue,f.Convert_all_constructor_functions_to_classes)]},fixIds:[Sue],getAllCodeActions:e=>Ss(e,DCe,(t,r)=>CCe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function CCe(e,t,r,i,o,s){const l=i.getSymbolAtLocation(Fi(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;const u=l.valueDeclaration;if(Zl(u)||Us(u))e.replaceNode(t,u,h(u));else if(yi(u)){const y=g(u);if(!y)return;const E=u.parent.parent;_d(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&&Fa(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,O,G;if(P==="constructor"&&N.valueDeclaration){const j=(G=(O=(F=(k=y.exports)==null?void 0:k.get("prototype"))==null?void 0:F.declarations)==null?void 0:O[0])==null?void 0:G.parent;j&&Nr(j)&&Fa(j.right)&&vt(j.right.properties,fK)||e.delete(t,N.valueDeclaration.parent);return}R(N,void 0,E)}),E;function A(N,P){return Ks(N)?qr(N)&&fK(N)?!0:Yo(P):Hn(N.properties,k=>!!(Nl(k)||W2(k)||Cc(k)&&Us(k.initializer)&&k.name||fK(k)))}function R(N,P,k){if(!(N.flags&8192)&&!(N.flags&4096))return;const F=N.valueDeclaration,O=F.parent,G=O.right;if(!A(F,G)||vt(k,ye=>{const ie=Oo(ye);return!!(ie&&He(ie)&&Kr(ie)===wl(N))}))return;const j=O.parent&&O.parent.kind===245?O.parent:O;if(e.delete(t,j),!G){k.push(L.createPropertyDeclaration(P,N.name,void 0,void 0,void 0));return}if(Ks(F)&&(Us(G)||Xs(G))){const ye=Gp(t,o),ie=dZe(F,s,ye);ie&&J(k,G,ie);return}else if(Fa(G)){$e(G.properties,ye=>{(Nl(ye)||W2(ye))&&k.push(ye),Cc(ye)&&Us(ye.initializer)&&J(k,ye.initializer,ye.name),fK(ye)});return}else{if(Pu(t)||!qr(F))return;const ye=L.createPropertyDeclaration(P,F.name,void 0,void 0,G);oC(O.parent,ye,t),k.push(ye);return}function J(ye,ie,K){return Us(ie)?Z(ye,ie,K):q(ye,ie,K)}function Z(ye,ie,K){const pe=lo(P,pK(ie,134)),de=L.createMethodDeclaration(pe,void 0,K,void 0,void 0,ie.parameters,void 0,ie.body);oC(O,de,t),ye.push(de)}function q(ye,ie,K){const pe=ie.body;let de;pe.kind===242?de=pe:de=L.createBlock([L.createReturnStatement(pe)]);const fe=lo(P,pK(ie,134)),ve=L.createMethodDeclaration(fe,void 0,K,void 0,void 0,ie.parameters,void 0,de);oC(O,ve,t),ye.push(ve)}}}function g(y){const E=y.initializer;if(!E||!Us(E)||!He(y.name))return;const A=d(y.symbol);E.body&&A.unshift(L.createConstructorDeclaration(void 0,E.parameters,E.body));const R=pK(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=pK(y,95);return L.createClassDeclaration(A,y.name,void 0,void 0,E)}}function pK(e,t){return Sm(e)?Vn(e.modifiers,r=>r.kind===t):void 0}function fK(e){return e.name?!!(He(e.name)&&e.name.text==="constructor"):!1}function dZe(e,t,r){if(qr(e))return e.name;const i=e.argumentExpression;if(np(i))return i;if(ds(i))return fp(i.text,Ga(t))?L.createIdentifier(i.text):y1(i)?L.createStringLiteral(i.text,r===0):i}var Eue="convertToAsyncFunction",NCe=[f.This_may_be_converted_to_an_async_function.code],mK=!0;Sa({errorCodes:NCe,getCodeActions(e){mK=!0;const t=Rr.ChangeTracker.with(e,r=>MCe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return mK?[aa(Eue,t,f.Convert_to_async_function,Eue,f.Convert_all_to_async_functions)]:[]},fixIds:[Eue],getAllCodeActions:e=>Ss(e,NCe,(t,r)=>MCe(t,r.file,r.start,e.program.getTypeChecker()))});function MCe(e,t,r,i){const o=Fi(t,r);let s;if(He(o)&&yi(o.parent)&&o.parent.initializer&&Ms(o.parent.initializer)?s=o.parent.initializer:s=ni(df(Fi(t,r)),OJ),!s)return;const l=new Map,u=Ir(s),d=pZe(s,i),g=fZe(s,i,l);if(!kJ(g,i))return;const h=g.body&&ea(g.body)?uZe(g.body,i):se,y={checker:i,synthNamesMap:l,setOfExpressionsToReturn:d,isInJSFile:u};if(!h.length)return;const E=ka(t.text,$h(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(const A of h)if(Jo(A,function R(N){if(Zo(N)){const P=uC(N,N,y,!1);if(Tx())return!0;e.replaceNodeWithNodes(t,A,P)}else if(!Yo(N)&&(Jo(N,R),Tx()))return!0}),Tx())return}function uZe(e,t){const r=[];return vb(e,i=>{H7(i,t)&&r.push(i)}),r}function pZe(e,t){if(!e.body)return new Set;const r=new Set;return Jo(e.body,function i(o){HO(o,t,"then")?(r.add(ls(o)),$e(o.arguments,i)):HO(o,t,"catch")||HO(o,t,"finally")?(r.add(ls(o)),Jo(o,i)):LCe(o,t)?r.add(ls(o)):Jo(o,i)}),r}function HO(e,t,r){if(!Zo(e))return!1;const o=_O(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function PCe(e,t){return(Hr(e)&4)!==0&&e.target===t}function hK(e,t,r){if(e.expression.name.escapedText==="finally")return;const i=r.getTypeAtLocation(e.expression.expression);if(PCe(i,r.getPromiseType())||PCe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Qv(e.arguments,0))return Qv(e.typeArguments,0);if(t===Qv(e.arguments,1))return Qv(e.typeArguments,1)}else return Qv(e.typeArguments,0)}function LCe(e,t){return St(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function fZe(e,t,r){const i=new Map,o=dm();return Jo(e,function s(l){if(!He(l)){Jo(l,s);return}const u=t.getSymbolAtLocation(l);if(u){const d=t.getTypeAtLocation(l),g=zCe(d,t),h=Ta(u).toString();if(g&&!to(l.parent)&&!Ms(l.parent)&&!r.has(h)){const y=Ac(g.parameters),E=(y==null?void 0:y.valueDeclaration)&&to(y.valueDeclaration)&&ni(y.valueDeclaration.name,He)||L.createUniqueName("result",16),A=kCe(E,o);r.set(h,A),o.add(E.text,u)}else if(l.parent&&(to(l.parent)||yi(l.parent)||Ha(l.parent))){const y=l.text,E=o.get(y);if(E&&E.some(A=>A!==u)){const A=kCe(l,o);i.set(h,A.identifier),r.set(h,A),o.add(y,u)}else{const A=_s(l);r.set(h,jP(A)),o.add(y,u)}}}}),aw(e,!0,s=>{if(Ha(s)&&He(s.name)&&ff(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(He(s)){const l=t.getSymbolAtLocation(s),u=l&&i.get(String(Ta(l)));if(u)return L.createIdentifier(u.text)}})}function kCe(e,t){const r=(t.get(e.text)||se).length,i=r===0?e:L.createIdentifier(e.text+"_"+r);return jP(i)}function Tx(){return!mK}function _0(){return mK=!1,se}function uC(e,t,r,i,o){if(HO(t,r.checker,"then"))return _Ze(t,Qv(t.arguments,0),Qv(t.arguments,1),r,i,o);if(HO(t,r.checker,"catch"))return WCe(t,Qv(t.arguments,0),r,i,o);if(HO(t,r.checker,"finally"))return hZe(t,Qv(t.arguments,0),r,i,o);if(qr(t))return uC(e,t.expression,r,i,o);const s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(C.assertNode(yl(t).parent,qr),gZe(e,t,r,i,o)):_0()}function _K({checker:e},t){if(t.kind===106)return!0;if(He(t)&&!fl(t)&&Kr(t)==="undefined"){const r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function mZe(e){const t=L.createUniqueName(e.identifier.text,16);return jP(t)}function wCe(e,t,r){let i;return r&&!JO(e,t)&&(qO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){const l=mZe(r);t.synthNamesMap.set(s,l)}})):i=jP(L.createUniqueName("result",16),r.types),Rue(i)),i}function OCe(e,t,r,i,o){const s=[];let l;if(i&&!JO(e,t)){l=_s(Rue(i));const u=i.types,d=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),h=[L.createVariableDeclaration(l,void 0,g)],y=L.createVariableStatement(void 0,L.createVariableDeclarationList(h,1));s.push(y)}return s.push(r),o&&l&&bZe(o)&&s.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(jCe(o)),void 0,void 0,l)],2))),s}function hZe(e,t,r,i,o){if(!t||_K(r,t))return uC(e,e.expression.expression,r,i,o);const s=wCe(e,r,o),l=uC(e,e.expression.expression,r,!0,s);if(Tx())return _0();const u=Iue(t,i,void 0,void 0,e,r);if(Tx())return _0();const d=L.createBlock(l),g=L.createBlock(u),h=L.createTryStatement(d,void 0,g);return OCe(e,r,h,s,o)}function WCe(e,t,r,i,o){if(!t||_K(r,t))return uC(e,e.expression.expression,r,i,o);const s=GCe(t,r),l=wCe(e,r,o),u=uC(e,e.expression.expression,r,!0,l);if(Tx())return _0();const d=Iue(t,i,l,s,e,r);if(Tx())return _0();const g=L.createBlock(u),h=L.createCatchClause(s&&_s(lz(s)),L.createBlock(d)),y=L.createTryStatement(g,h,void 0);return OCe(e,r,y,l,o)}function _Ze(e,t,r,i,o,s){if(!t||_K(i,t))return WCe(e,r,i,o,s);if(r&&!_K(i,r))return _0();const l=GCe(t,i),u=uC(e.expression.expression,e.expression.expression,i,!0,l);if(Tx())return _0();const d=Iue(t,o,s,l,e,i);return Tx()?_0():lo(u,d)}function gZe(e,t,r,i,o){if(JO(e,r)){let s=_s(t);return i&&(s=L.createAwaitExpression(s)),[L.createReturnStatement(s)]}return gK(o,L.createAwaitExpression(t),void 0)}function gK(e,t,r){return!e||VCe(e)?[L.createExpressionStatement(t)]:qO(e)&&e.hasBeenDeclared?[L.createExpressionStatement(L.createAssignment(_s(xue(e)),t))]:[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(_s(lz(e)),void 0,r,t)],2))]}function Aue(e,t){if(t&&e){const r=L.createUniqueName("result",16);return[...gK(jP(r),e,t),L.createReturnStatement(r)]}return[L.createReturnStatement(e)]}function Iue(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)?[xue(i)]:[]);if(JO(o,s))return Aue(u,hK(o,e,s.checker));const d=s.checker.getTypeAtLocation(e),g=s.checker.getSignaturesOfType(d,0);if(!g.length)return _0();const h=g[0].getReturnType(),y=gK(r,L.createAwaitExpression(u),hK(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=zCe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(ea(E)){let R=[],N=!1;for(const P of E.statements)if(tf(P))if(N=!0,H7(P,s.checker))R=R.concat(BCe(s,P,t,r));else{const k=A&&P.expression?FCe(s.checker,A,P.expression):P.expression;R.push(...Aue(k,hK(o,e,s.checker)))}else{if(t&&vb(P,uS))return _0();R.push(P)}return JO(o,s)?R.map(P=>_s(P)):yZe(R,r,s,N)}else{const R=wJ(E,s.checker)?BCe(s,L.createReturnStatement(E),t,r):se;if(R.length>0)return R;if(A){const N=FCe(s.checker,A,E);if(JO(o,s))return Aue(N,hK(o,e,s.checker));{const P=gK(r,N,void 0);return r&&r.types.push(s.checker.getAwaitedType(A)||A),P}}else return _0()}}default:return _0()}return se}function FCe(e,t,r){const i=_s(r);return e.getPromisedTypeOfPromise(t)?L.createAwaitExpression(i):i}function zCe(e,t){const r=t.getSignaturesOfType(e,0);return tl(r)}function yZe(e,t,r,i){const o=[];for(const s of e)if(tf(s)){if(s.expression){const l=LCe(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(xue(t),l))):o.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(lz(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(lz(t),void 0,void 0,L.createIdentifier("undefined"))],2))),o}function BCe(e,t,r,i){let o=[];return Jo(t,function s(l){if(Zo(l)){const u=uC(l,l,e,r,i);if(o=o.concat(u),o.length>0)return}else Yo(l)||Jo(l,s)}),o}function GCe(e,t){const r=[];let i;if(Ms(e)){if(e.parameters.length>0){const d=e.parameters[0].name;i=o(d)}}else He(e)?i=s(e):qr(e)&&He(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(d){if(He(d))return s(d);const g=Ki(d.elements,h=>Jc(h)?[]:[o(h.name)]);return vZe(d,g)}function s(d){const g=u(d),h=l(g);return h&&t.synthNamesMap.get(Ta(h).toString())||jP(d,r)}function l(d){var g;return((g=ni(d,ah))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(d)}function u(d){return d.original?d.original:d}}function VCe(e){return e?qO(e)?!e.identifier.text:Hn(e.elements,VCe):!0}function jP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function vZe(e,t=se,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function xue(e){return e.hasBeenReferenced=!0,e.identifier}function lz(e){return qO(e)?Rue(e):jCe(e)}function jCe(e){for(const t of e.elements)lz(t);return e.bindingPattern}function Rue(e){return e.hasBeenDeclared=!0,e.identifier}function qO(e){return e.kind===0}function bZe(e){return e.kind===1}function JO(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(SZe(t,r.getTypeChecker(),s,Ga(r.getCompilerOptions()),Gp(t,i)))for(const u of r.getSourceFiles())TZe(u,t,r,s,Gp(u,i))});return[yh("convertToEsModule",o,f.Convert_to_ES_module)]}});function TZe(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=eM(l);switch(d.kind){case 272:i.replaceNode(e,d,Vb(d.name,void 0,l,o));break;case 214:Zu(d,!1)&&i.replaceNode(e,d,L.createPropertyAccessExpression(_s(d),"default"));break}}}function SZe(e,t,r,i,o){const s={original:wZe(e),additional:new Set},l=EZe(e,t,s);AZe(e,l,r);let u=!1,d;for(const g of Vn(e.statements,sc)){const h=HCe(e,g,r,t,s,i,o);h&&NF(h,d??(d=new Map))}for(const g of Vn(e.statements,h=>!sc(h))){const h=IZe(e,g,t,r,s,i,l,d,o);u=u||h}return d==null||d.forEach((g,h)=>{r.replaceNode(e,h,g)}),u}function EZe(e,t,r){const i=new Map;return UCe(e,o=>{const{text:s}=o.name;!i.has(s)&&(qG(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,yK(`_${s}`,r))}),i}function AZe(e,t,r){UCe(e,(i,o)=>{if(o)return;const{text:s}=i.name;r.replaceNode(e,i,L.createIdentifier(t.get(s)||s))})}function UCe(e,t){e.forEachChild(function r(i){if(qr(i)&&KS(e,i.expression)&&He(i.name)){const{parent:o}=i;t(i,Nr(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function IZe(e,t,r,i,o,s,l,u,d){switch(t.kind){case 244:return HCe(e,t,i,r,o,s,d),!1;case 245:{const{expression:g}=t;switch(g.kind){case 214:return Zu(g,!0)&&i.replaceNode(e,t,Vb(void 0,void 0,g.arguments[0],d)),!1;case 227:{const{operatorToken:h}=g;return h.kind===64&&RZe(e,r,g,i,l,u)}}}default:return!1}}function HCe(e,t,r,i,o,s,l){const{declarationList:u}=t;let d=!1;const g=Bt(u.declarations,h=>{const{name:y,initializer:E}=h;if(E){if(KS(e,E))return d=!0,UP([]);if(Zu(E,!0))return d=!0,LZe(y,E.arguments[0],i,o,s,l);if(qr(E)&&Zu(E.expression,!0))return d=!0,xZe(y,E.name.text,E.expression.arguments[0],o,l)}return UP([L.createVariableStatement(void 0,L.createVariableDeclarationList([h],u.flags))])});if(d){r.replaceNodeWithNodes(e,t,Ki(g,y=>y.newImports));let h;return $e(g,y=>{y.useSitesToUnqualify&&NF(y.useSitesToUnqualify,h??(h=new Map))}),h}}function xZe(e,t,r,i,o){switch(e.kind){case 207:case 208:{const s=yK(t,i);return UP([XCe(s,t,r,o),vK(void 0,e,L.createIdentifier(s))])}case 80:return UP([XCe(e.text,t,r,o)]);default:return C.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function RZe(e,t,r,i,o,s){const{left:l,right:u}=r;if(!qr(l))return!1;if(KS(e,l))if(KS(e,u))i.delete(e,r.parent);else{const d=Fa(u)?DZe(u,s):Zu(u,!0)?NZe(u.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,Bf(l.getStart(e),u.pos),"export default"),!0)}else KS(e,l.expression)&&CZe(e,r,i,o);return!1}function DZe(e,t){const r=DT(e.properties,i=>{switch(i.kind){case 178:case 179:case 305:case 306:return;case 304:return He(i.name)?PZe(i.name.text,i.initializer,t):void 0;case 175:return He(i.name)?KCe(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 CZe(e,t,r,i){const{text:o}=t.left.name,s=i.get(o);if(s!==void 0){const l=[vK(void 0,s,t.right),Nue([L.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else MZe(t,e,r)}function NZe(e,t){const r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:_t;return o.has("export=")?[[Due(r)],!0]:o.has("default")?o.size>1?[[qCe(r),Due(r)],!0]:[[Due(r)],!0]:[[qCe(r)],!1]}function qCe(e){return Nue(void 0,e)}function Due(e){return Nue([L.createExportSpecifier(!1,void 0,"default")],e)}function MZe({left:e,right:t,parent:r},i,o){const s=e.name.text;if((Us(t)||Xs(t)||uc(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=Es(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Es(e,25,i),[L.createToken(95),L.createToken(87)],{joiner:" ",suffix:" "})}function PZe(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 KCe(e,i,t,r);case 232:return WZe(e,i,t,r);default:return o()}function o(){return vK(i,L.createIdentifier(e),Cue(t,r))}}function Cue(e,t){if(!t||!vt(Co(t.keys()),i=>tp(e,i)))return e;return Mo(e)?oj(e,!0,r):aw(e,!0,r);function r(i){if(i.kind===212){const o=t.get(i);return t.delete(i),o}}}function LZe(e,t,r,i,o,s){switch(e.kind){case 207:{const l=DT(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!He(u.propertyName)||!He(u.name)?void 0:YCe(u.propertyName&&u.propertyName.text,u.name.text));if(l)return UP([Vb(void 0,l,t,s)])}case 208:{const l=yK(LO(t.text,o),i);return UP([Vb(L.createIdentifier(l),void 0,t,s),vK(void 0,_s(e),L.createIdentifier(l))])}case 80:return kZe(e,t,r,i,s);default:return C.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function kZe(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=yK(E,i),l.set(E,A)),(d??(d=new Map)).set(y,L.createIdentifier(A))}}else u=!0}const g=l.size===0?void 0:Co(La(l.entries(),([h,y])=>L.createImportSpecifier(!1,h===y?void 0:L.createIdentifier(h),L.createIdentifier(y))));return g||(u=!0),UP([Vb(u?_s(e):void 0,g,t,o)],d)}function yK(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function wZe(e){const t=dm();return JCe(e,r=>t.add(r.text,r)),t}function JCe(e,t){He(e)&&OZe(e)&&t(e),e.forEachChild(r=>JCe(r,t))}function OZe(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 KCe(e,t,r,i){return L.createFunctionDeclaration(lo(t,FS(r.modifiers)),_s(r.asteriskToken),e,FS(r.typeParameters),FS(r.parameters),_s(r.type),L.converters.convertToFunctionBlock(Cue(r.body,i)))}function WZe(e,t,r,i){return L.createClassDeclaration(lo(t,FS(r.modifiers)),e,FS(r.typeParameters),FS(r.heritageClauses),Cue(r.members,i))}function XCe(e,t,r,i){return t==="default"?Vb(L.createIdentifier(e),void 0,r,i):Vb(void 0,[YCe(t,e)],r,i)}function YCe(e,t){return L.createImportSpecifier(!1,e!==void 0&&e!==t?L.createIdentifier(e):void 0,L.createIdentifier(t))}function vK(e,t,r){return L.createVariableStatement(e,L.createVariableDeclarationList([L.createVariableDeclaration(t,void 0,void 0,r)],2))}function Nue(e,t){return L.createExportDeclaration(void 0,!1,e&&L.createNamedExports(e),t===void 0?void 0:L.createStringLiteral(t))}function UP(e,t){return{newImports:e,useSitesToUnqualify:t}}var Mue="correctQualifiedNameToIndexedAccessType",$Ce=[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:$Ce,getCodeActions(e){const t=QCe(e.sourceFile,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,o=>ZCe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[aa(Mue,r,[f.Rewrite_as_the_indexed_access_type_0,i],Mue,f.Rewrite_all_as_indexed_access_types)]},fixIds:[Mue],getAllCodeActions:e=>Ss(e,$Ce,(t,r)=>{const i=QCe(r.file,r.start);i&&ZCe(t,r.file,i)})});function QCe(e,t){const r=Dn(Fi(e,t),ku);return C.assert(!!r,"Expected position to be owned by a qualified name."),He(r.left)?r:void 0}function ZCe(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 Pue=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],Lue="convertToTypeOnlyExport";Sa({errorCodes:Pue,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>tNe(i,eNe(t.span,t.sourceFile),t));if(r.length)return[aa(Lue,r,f.Convert_to_type_only_export,Lue,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Lue],getAllCodeActions:function(t){const r=new Set;return Ss(t,Pue,(i,o)=>{const s=eNe(o,t.sourceFile);s&&ym(r,ls(s.parent.parent))&&tNe(i,s,t)})}});function eNe(e,t){return ni(Fi(t,e.start).parent,ou)}function tNe(e,t,r){if(!t)return;const i=t.parent,o=i.parent,s=FZe(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,Vn(i.elements,d=>!Ln(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 FZe(e,t){const r=e.parent;if(r.elements.length===1)return r.elements;const i=yce(zu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Vn(r.elements,o=>{var s;return o===e||((s=gce(o,i))==null?void 0:s.code)===Pue[0]})}var nNe=[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],bK="convertToTypeOnlyImport";Sa({errorCodes:nNe,getCodeActions:function(t){var r;const i=rNe(t.sourceFile,t.span.start);if(i){const o=Rr.ChangeTracker.with(t,u=>cz(u,t.sourceFile,i)),s=i.kind===277&&vl(i.parent.parent.parent)&&iNe(i,t.sourceFile,t.program)?Rr.ChangeTracker.with(t,u=>cz(u,t.sourceFile,i.parent.parent.parent)):void 0,l=aa(bK,o,i.kind===277?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,bK,f.Fix_all_with_type_only_imports);return vt(s)?[yh(bK,s,f.Use_import_type),l]:[l]}},fixIds:[bK],getAllCodeActions:function(t){const r=new Set;return Ss(t,nNe,(i,o)=>{const s=rNe(o.file,o.start);(s==null?void 0:s.kind)===273&&!r.has(s)?(cz(i,o.file,s),r.add(s)):(s==null?void 0:s.kind)===277&&vl(s.parent.parent.parent)&&!r.has(s.parent.parent.parent)&&iNe(s,o.file,t.program)?(cz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):(s==null?void 0:s.kind)===277&&cz(i,o.file,s)})}});function rNe(e,t){const{parent:r}=Fi(e,t);return Eu(r)||vl(r)&&r.importClause?r:void 0}function iNe(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(Ys.Core.eachSymbolReferenceInFile(s.name,o,t,u=>{const d=o.getSymbolAtLocation(u);return!!d&&o.symbolIsValue(d)||!HT(u)}))return!1;return!0}function cz(e,t,r){var i;if(Eu(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(FS(r.modifiers,!0),L.createImportClause(156,_s(o.name,!0),void 0),_s(r.moduleSpecifier,!0),_s(r.attributes,!0)),L.createImportDeclaration(FS(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,Zi(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 kue="convertTypedefToType",oNe=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];Sa({fixIds:[kue],errorCodes:oNe,getCodeActions(e){const t=gy(e.host,e.formatContext.options),r=Fi(e.sourceFile,e.span.start);if(!r)return;const i=Rr.ChangeTracker.with(e,o=>aNe(o,r,e.sourceFile,t));if(i.length>0)return[aa(kue,i,f.Convert_typedef_to_TypeScript_type,kue,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ss(e,oNe,(t,r)=>{const i=gy(e.host,e.formatContext.options),o=Fi(r.file,r.start);o&&aNe(t,o,r.file,i,!0)})});function aNe(e,t,r,i,o=!1){if(!D1(t))return;const s=BZe(t);if(!s)return;const l=t.parent,{leftSibling:u,rightSibling:d}=zZe(t);let g=l.getStart(),h="";!u&&l.comment&&(g=sNe(l,l.getStart(),t.getStart()),h=`${i} */${i}`),u&&(o&&D1(u)?(g=t.getStart(),h=""):(g=sNe(l,u.getStart(),t.getStart()),h=`${i} */${i}`));let y=l.getEnd(),E="";d&&(o&&D1(d)?(y=d.getStart(),E=`${i}${i}`):(y=d.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:g,end:y},s,{prefix:h,suffix:E})}function zZe(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 BZe(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 GZe(i,r);if(r.kind===310)return VZe(i,r)}}function GZe(e,t){const r=lNe(t);if(vt(r))return L.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function VZe(e,t){const r=_s(t.type);if(r)return L.createTypeAliasDeclaration(void 0,L.createIdentifier(e),void 0,r)}function lNe(e){const t=e.jsDocPropertyTags;return vt(t)?ji(t,i=>{var o;const s=jZe(i),l=(o=i.typeExpression)==null?void 0:o.type,u=i.isBracketed;let d;if(l&&R1(l)){const g=lNe(l);d=L.createTypeLiteralNode(g)}else l&&(d=_s(l));if(d&&s){const g=u?L.createToken(58):void 0;return L.createPropertySignature(void 0,s,g,d)}}):void 0}function jZe(e){return e.name.kind===80?e.name.text:e.name.right.text}function UZe(e){return ef(e)?Ki(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>D1(i))}):[]}var wue="convertLiteralTypeToMappedType",cNe=[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:cNe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=dNe(r,i.start);if(!o)return;const{name:s,constraint:l}=o,u=Rr.ChangeTracker.with(t,d=>uNe(d,r,o));return[aa(wue,u,[f.Convert_0_to_1_in_0,l,s],wue,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[wue],getAllCodeActions:e=>Ss(e,cNe,(t,r)=>{const i=dNe(r.file,r.start);i&&uNe(t,r.file,i)})});function dNe(e,t){const r=Fi(e,t);if(He(r)){const i=ha(r.parent.parent,Su),o=r.getText(e);return{container:ha(i.parent,wu),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function uNe(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 pNe=[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],Oue="fixClassIncorrectlyImplementsInterface";Sa({errorCodes:pNe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=fNe(t,r.start);return ji(nD(i),o=>{const s=Rr.ChangeTracker.with(e,l=>hNe(e,o,t,i,l,e.preferences));return s.length===0?void 0:aa(Oue,s,[f.Implement_interface_0,o.getText(t)],Oue,f.Implement_all_unimplemented_interfaces)})},fixIds:[Oue],getAllCodeActions(e){const t=new Set;return Ss(e,pNe,(r,i)=>{const o=fNe(i.file,i.start);if(ym(t,ls(o)))for(const s of nD(o))hNe(e,s,i.file,o,r,e.preferences)})}});function fNe(e,t){return C.checkDefined(hd(Fi(e,t)),"There should be a containing class")}function mNe(e){return!e.valueDeclaration||!(Gd(e.valueDeclaration)&2)}function hNe(e,t,r,i,o,s){const l=e.program.getTypeChecker(),u=HZe(i,l),d=l.getTypeAtLocation(t),h=l.getPropertiesOfType(d).filter(j8(mNe,P=>!u.has(P.escapedName))),y=l.getTypeAtLocation(i),E=hn(i.members,P=>Ml(P));y.getNumberIndexType()||R(d,1),y.getStringIndexType()||R(d,0);const A=sE(r,e.program,s,e.host);Cpe(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,pC(e)))}function N(P,k,F){E?o.insertNodeAfter(P,E,F):o.insertMemberAtStart(P,k,F)}}function HZe(e,t){const r=lh(e);if(!r)return da();const i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return da(o.filter(mNe))}var _Ne="import",gNe="fixMissingImport",yNe=[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:yNe,getCodeActions(e){const{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=ANe(e,t,o.start,!0);if(l)return l.map(({fix:u,symbolName:d,errorIdentifierText:g})=>zue(e,i,d,u,d!==g,s,r))},fixIds:[gNe],getAllCodeActions:e=>{const{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=vNe(t,r,!0,i,o,s);return bx(e,yNe,u=>l.addImportFromDiagnostic(u,e)),vx(Rr.ChangeTracker.with(e,l.writeFixes))}});function sE(e,t,r,i,o){return vNe(e,t,!1,r,i,o)}function vNe(e,t,r,i,o,s){const l=t.getCompilerOptions(),u=[],d=[],g=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:O,addVerbatimImport:A};function A(q){y.add(q)}function R(q,ye,ie){const K=net(q,ye,ie);!K||!K.length||G($a(K))}function N(q,ye){const ie=ANe(ye,q.code,q.start,r);!ie||!ie.length||G($a(ie))}function P(q,ye,ie){var K,pe;const de=C.checkDefined(q.parent,"Expected exported symbol to have module symbol as parent"),fe=O7(q,Ga(l)),ve=t.getTypeChecker(),xe=ve.getMergedSymbol(xd(q,ve)),X=TNe(e,xe,fe,de,!1,t,o,i,s);if(!X){C.assert((K=i.autoImportFileExcludePatterns)==null?void 0:K.length);return}const Ce=KO(e,t);let Je=Wue(e,X,t,void 0,!!ye,Ce,o,i);if(Je){const Se=((pe=ni(ie==null?void 0:ie.name,He))==null?void 0:pe.text)??fe;let re,be;ie&&FR(ie)&&(Je.kind===3||Je.kind===2)&&Je.addAsTypeOnly===1&&(re=2),q.name!==Se&&(be=q.name),Je={...Je,...re===void 0?{}:{addAsTypeOnly:re},...be===void 0?{}:{propertyName:be}},G({fix:Je,symbolName:Se??fe})}}function k(q,ye,ie){var K,pe,de;const fe=t.getTypeChecker(),ve=fe.getAliasedSymbol(q);C.assert(ve.flags&1536,"Expected symbol to be a module");const xe=p0(t,o),X=_y.getModuleSpecifiersWithCacheInfo(ve,fe,l,e,xe,i,void 0,!0),Ce=KO(e,t);let Je=uz(ye,!0,void 0,q.flags,t.getTypeChecker(),l);Je=Je===1&&FR(ie)?2:1;const Se=vl(ie)?l1(ie)?1:2:Eu(ie)?0:jm(ie)&&ie.name?1:2,re=[{symbol:q,moduleSymbol:ve,moduleFileName:(de=(pe=(K=ve.declarations)==null?void 0:K[0])==null?void 0:pe.getSourceFile())==null?void 0:de.fileName,exportKind:4,targetFlags:q.flags,isFromPackageJson:!1}],be=Wue(e,re,t,void 0,!!ye,Ce,o,i);let Ne;be&&Se!==2&&be.kind!==0&&be.kind!==1?Ne={...be,addAsTypeOnly:Je,importKind:Se}:Ne={kind:3,moduleSpecifierKind:be!==void 0?be.moduleSpecifierKind:X.kind,moduleSpecifier:be!==void 0?be.moduleSpecifier:$a(X.moduleSpecifiers),importKind:Se,addAsTypeOnly:Je,useRequire:Ce},G({fix:Ne,symbolName:q.name})}function F(q,ye,ie,K,pe){const de=t.getSourceFile(ye),fe=KO(e,t);if(de&&de.symbol){const{fixes:ve}=dz([{exportKind:ie,isFromPackageJson:!1,moduleFileName:ye,moduleSymbol:de.symbol,targetFlags:K}],void 0,pe,fe,t,e,o,i);ve.length&&G({fix:ve[0],symbolName:q})}else{const ve=G7(ye,99,t,o),xe=_y.getLocalModuleSpecifierBetweenFileNames(e,ye,l,p0(t,o),i),X=TK(ve,ie,t),Ce=uz(pe,!0,void 0,K,t.getTypeChecker(),l);G({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:xe,importKind:X,addAsTypeOnly:Ce,useRequire:fe},symbolName:q})}}function O(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 ye,ie,K;const{fix:pe,symbolName:de}=q;switch(pe.kind){case 0:u.push(pe);break;case 1:d.push(pe);break;case 2:{const{importClauseOrBindingPattern:X,importKind:Ce,addAsTypeOnly:Je,propertyName:Se}=pe;let re=g.get(X);if(re||g.set(X,re={importClauseOrBindingPattern:X,defaultImport:void 0,namedImports:new Map}),Ce===0){const be=(ye=re==null?void 0:re.namedImports.get(de))==null?void 0:ye.addAsTypeOnly;re.namedImports.set(de,{addAsTypeOnly:fe(be,Je),propertyName:Se})}else C.assert(re.defaultImport===void 0||re.defaultImport.name===de,"(Add to Existing) Default import should be missing or match symbolName"),re.defaultImport={name:de,addAsTypeOnly:fe((ie=re.defaultImport)==null?void 0:ie.addAsTypeOnly,Je)};break}case 3:{const{moduleSpecifier:X,importKind:Ce,useRequire:Je,addAsTypeOnly:Se,propertyName:re}=pe,be=ve(X,Ce,Je,Se);switch(C.assert(be.useRequire===Je,"(Add new) Tried to add an `import` and a `require` for the same module"),Ce){case 1:C.assert(be.defaultImport===void 0||be.defaultImport.name===de,"(Add new) Default import should be missing or match symbolName"),be.defaultImport={name:de,addAsTypeOnly:fe((K=be.defaultImport)==null?void 0:K.addAsTypeOnly,Se)};break;case 0:const Ne=(be.namedImports||(be.namedImports=new Map)).get(de);be.namedImports.set(de,[fe(Ne,Se),re]);break;case 3:if(l.verbatimModuleSyntax){const Be=(be.namedImports||(be.namedImports=new Map)).get(de);be.namedImports.set(de,[fe(Be,Se),re])}else C.assert(be.namespaceLikeImport===void 0||be.namespaceLikeImport.name===de,"Namespacelike import shoudl be missing or match symbolName"),be.namespaceLikeImport={importKind:Ce,name:de,addAsTypeOnly:Se};break;case 2:C.assert(be.namespaceLikeImport===void 0||be.namespaceLikeImport.name===de,"Namespacelike import shoudl be missing or match symbolName"),be.namespaceLikeImport={importKind:Ce,name:de,addAsTypeOnly:Se};break}break}case 4:break;default:C.assertNever(pe,`fix wasn't never - got kind ${pe.kind}`)}function fe(X,Ce){return Math.max(X??0,Ce)}function ve(X,Ce,Je,Se){const re=xe(X,!0),be=xe(X,!1),Ne=E.get(re),Be=E.get(be),lt={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Je};return Ce===1&&Se===2?Ne||(E.set(re,lt),lt):Se===1&&(Ne||Be)?Ne||Be:Be||(E.set(be,lt),lt)}function xe(X,Ce){return`${Ce?1:0}|${X}`}}function j(q,ye){var ie,K;let pe;e.imports!==void 0&&e.imports.length===0&&ye!==void 0?pe=ye:pe=Gp(e,i);for(const ve of u)Bue(q,e,ve);for(const ve of d)LNe(q,e,ve,pe);let de;if(h.size){C.assert(gg(e),"Cannot remove imports from a future source file");const ve=new Set(ji([...h],Se=>Dn(Se,vl))),xe=new Set(ji([...h],Se=>Dn(Se,pk))),X=[...ve].filter(Se=>{var re,be,Ne;return!g.has(Se.importClause)&&(!((re=Se.importClause)!=null&&re.name)||h.has(Se.importClause))&&(!ni((be=Se.importClause)==null?void 0:be.namedBindings,xg)||h.has(Se.importClause.namedBindings))&&(!ni((Ne=Se.importClause)==null?void 0:Ne.namedBindings,r_)||Hn(Se.importClause.namedBindings.elements,Be=>h.has(Be)))}),Ce=[...xe].filter(Se=>(Se.name.kind!==207||!g.has(Se.name))&&(Se.name.kind!==207||Hn(Se.name.elements,re=>h.has(re)))),Je=[...ve].filter(Se=>{var re,be;return((re=Se.importClause)==null?void 0:re.namedBindings)&&X.indexOf(Se)===-1&&!((be=g.get(Se.importClause))!=null&&be.namedImports)&&(Se.importClause.namedBindings.kind===275||Hn(Se.importClause.namedBindings.elements,Ne=>h.has(Ne)))});for(const Se of[...X,...Ce])q.delete(e,Se);for(const Se of Je)q.replaceNode(e,Se.importClause,L.updateImportClause(Se.importClause,Se.importClause.phaseModifier,Se.importClause.name,void 0));for(const Se of h){const re=Dn(Se,vl);re&&X.indexOf(re)===-1&&Je.indexOf(re)===-1?Se.kind===274?q.delete(e,Se.name):(C.assert(Se.kind===277,"NamespaceImport should have been handled earlier"),(ie=g.get(re.importClause))!=null&&ie.namedImports?(de??(de=new Set)).add(Se):q.delete(e,Se)):Se.kind===209?(K=g.get(Se.parent))!=null&&K.namedImports?(de??(de=new Set)).add(Se):q.delete(e,Se):Se.kind===272&&q.delete(e,Se)}}g.forEach(({importClauseOrBindingPattern:ve,defaultImport:xe,namedImports:X})=>{PNe(q,e,ve,xe,Co(X.entries(),([Ce,{addAsTypeOnly:Je,propertyName:Se}])=>({addAsTypeOnly:Je,propertyName:Se,name:Ce})),de,i)});let fe;E.forEach(({useRequire:ve,defaultImport:xe,namedImports:X,namespaceLikeImport:Ce},Je)=>{const Se=Je.slice(2),be=(ve?ONe:wNe)(Se,pe,xe,X&&Co(X.entries(),([Ne,[Be,lt]])=>({addAsTypeOnly:Be,propertyName:lt,name:Ne})),Ce,l,i);fe=XA(fe,be)}),fe=XA(fe,J()),fe&&Qq(q,e,fe,!0,i)}function J(){if(!y.size)return;const q=new Set(ji([...y],ie=>Dn(ie,vl))),ye=new Set(ji([...y],ie=>Dn(ie,fk)));return[...ji([...y],ie=>ie.kind===272?_s(ie,!0):void 0),...[...q].map(ie=>{var K;return y.has(ie)?_s(ie,!0):_s(L.updateImportDeclaration(ie,ie.modifiers,ie.importClause&&L.updateImportClause(ie.importClause,ie.importClause.phaseModifier,y.has(ie.importClause)?ie.importClause.name:void 0,y.has(ie.importClause.namedBindings)?ie.importClause.namedBindings:(K=ni(ie.importClause.namedBindings,r_))!=null&&K.elements.some(pe=>y.has(pe))?L.updateNamedImports(ie.importClause.namedBindings,ie.importClause.namedBindings.elements.filter(pe=>y.has(pe))):void 0),ie.moduleSpecifier,ie.attributes),!0)}),...[...ye].map(ie=>y.has(ie)?_s(ie,!0):_s(L.updateVariableStatement(ie,ie.modifiers,L.updateVariableDeclarationList(ie.declarationList,ji(ie.declarationList.declarations,K=>y.has(K)?K:L.updateVariableDeclaration(K,K.name.kind===207?L.updateObjectBindingPattern(K.name,K.name.elements.filter(pe=>y.has(pe))):K.name,K.exclamationToken,K.type,K.initializer)))),!0))]}function Z(){return u.length>0||d.length>0||g.size>0||E.size>0||y.size>0||h.size>0}}function qZe(e,t,r,i){const o=aC(e,i,r),s=SNe(e,t);return{getModuleSpecifierForBestExportInfo:l};function l(u,d,g,h){const{fixes:y,computedWithoutCacheCount:E}=dz(u,d,g,!1,t,e,r,i,s,h),A=xNe(y,e,t,o,r,i);return A&&{...A,computedWithoutCacheCount:E}}}function JZe(e,t,r,i,o,s,l,u,d,g,h,y){let E;r?(E=wO(i,l,u,h,y).get(i.path,r),C.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=x9(gm(t.name))?[XZe(e,o,t,u,l)]:TNe(i,e,o,t,s,u,l,h,y),C.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));const A=KO(i,u),R=HT(Fi(i,g)),N=C.checkDefined(Wue(i,E,u,g,R,A,l,h));return{moduleSpecifier:N.moduleSpecifier,codeAction:bNe(zue({host:l,formatContext:d,preferences:h},i,o,N,!1,u,h))}}function KZe(e,t,r,i,o,s){const l=r.getCompilerOptions(),u=BB(Fue(e,r.getTypeChecker(),t,l)),d=NNe(e,t,u,r),g=u!==t.text;return d&&bNe(zue({host:i,formatContext:o,preferences:s},e,u,d,g,r,s))}function Wue(e,t,r,i,o,s,l,u){const d=aC(e,u,l);return xNe(dz(t,i,o,s,r,e,l,u).fixes,e,r,d,l,u)}function bNe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function TNe(e,t,r,i,o,s,l,u,d){const g=ENe(s,l),h=u.autoImportFileExcludePatterns&&Ece(l,u),y=s.getTypeChecker().getMergedSymbol(i),E=h&&y.declarations&&ll(y,308),A=E&&h(E);return wO(e,l,s,u,d).search(e.path,o,R=>R===r,R=>{const N=g(R[0].isFromPackageJson);if(N.getMergedSymbol(xd(R[0].symbol,N))===t&&(A||R.some(P=>N.getMergedSymbol(P.moduleSymbol)===i||P.symbol.parent===i)))return R})}function XZe(e,t,r,i,o){var s,l;const u=g(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&&g(d,!0),"Could not find symbol in specified module for code actions");function g(h,y){const E=V7(r,h);if(E&&xd(E.symbol,h)===e)return{symbol:E.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:E.exportKind,targetFlags:xd(e,h).flags,isFromPackageJson:y};const A=h.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&xd(A,h)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:xd(e,h).flags,isFromPackageJson:y}}}function dz(e,t,r,i,o,s,l,u,d=gg(s)?SNe(s,o):void 0,g){const h=o.getTypeChecker(),y=d?Ki(e,d.getImportsForExportInfo):se,E=t!==void 0&&YZe(y,t),A=QZe(y,r,h,o.getCompilerOptions());if(A)return{computedWithoutCacheCount:0,fixes:[...E?[E]:se,A]};const{fixes:R,computedWithoutCacheCount:N=0}=eet(e,y,o,s,t,r,i,l,u,g);return{computedWithoutCacheCount:N,fixes:[...E?[E]:se,...R]}}function YZe(e,t){return Bn(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;const s=$Ze(r),l=s&&((o=gI(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:l}})}function $Ze(e){var t,r,i;switch(e.kind){case 261:return(t=ni(e.name,He))==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,xg))==null?void 0:i.name.text;default:return C.assertNever(e)}}function uz(e,t,r,i,o,s){return e?r&&s.verbatimModuleSyntax&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function QZe(e,t,r,i){let o;for(const l of e){const u=s(l);if(!u)continue;const d=FR(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:g}){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=uz(t,!1,d,g,r,i);if(!(u===1&&(y||A===2&&E))&&!(u===0&&(E==null?void 0:E.kind)===275))return{kind:2,importClauseOrBindingPattern:h,importKind:u,moduleSpecifierKind:void 0,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:A}}}function SNe(e,t){const r=t.getTypeChecker();let i;for(const o of e.imports){const s=eM(o);if(pk(s.parent)){const l=r.resolveExternalModuleName(o);l&&(i||(i=dm())).add(Ta(l),s.parent)}else if(s.kind===273||s.kind===272||s.kind===352){const l=r.getSymbolAtLocation(o);l&&(i||(i=dm())).add(Ta(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:u})=>{const d=i==null?void 0:i.get(Ta(o));if(!d||Pu(e)&&!(l&111551)&&!Hn(d,a_))return se;const g=TK(e,s,t);return d.map(h=>({declaration:h,importKind:g,symbol:u,targetFlags:l}))}}}function KO(e,t){if(!Sg(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 bu(r)<5;if(Vue(e,t)===1)return!0;if(Vue(e,t)===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!Pu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function ENe(e,t){return zh(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function ZZe(e,t,r,i,o,s,l,u,d){const g=Sg(t.fileName),h=e.getCompilerOptions(),y=p0(e,l),E=ENe(e,l),A=iu(h),R=S7(A),N=d?F=>_y.tryGetModuleSpecifiersFromCache(F.moduleSymbol,t,y,u):(F,O)=>_y.getModuleSpecifiersWithCacheInfo(F.moduleSymbol,O,h,t,y,u,void 0,!0);let P=0;const k=Ki(s,(F,O)=>{const G=E(F.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:J,kind:Z}=N(F,G)??{},q=!!(F.targetFlags&111551),ye=uz(i,!0,F.symbol,F.targetFlags,G,h);return P+=j?1:0,ji(J,ie=>{if(R&&Wb(ie))return;if(!q&&g&&r!==void 0)return{kind:1,moduleSpecifierKind:Z,moduleSpecifier:ie,usagePosition:r,exportInfo:F,isReExport:O>0};const K=TK(t,F.exportKind,e);let pe;if(r!==void 0&&K===3&&F.exportKind===0){const de=G.resolveExternalModuleSymbol(F.moduleSymbol);let fe;de!==F.moduleSymbol&&(fe=j7(de,G,Ga(h),Vs)),fe||(fe=PO(F.moduleSymbol,Ga(h),!1)),pe={namespacePrefix:fe,usagePosition:r}}return{kind:3,moduleSpecifierKind:Z,moduleSpecifier:ie,importKind:K,useRequire:o,addAsTypeOnly:ye,exportInfo:F,isReExport:O>0,qualification:pe}})});return{computedWithoutCacheCount:P,fixes:k}}function eet(e,t,r,i,o,s,l,u,d,g){const h=Bn(t,y=>tet(y,s,l,r.getTypeChecker(),r.getCompilerOptions()));return h?{fixes:[h]}:ZZe(r,i,o,s,l,e,u,d,g)}function tet({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,u){var d;const g=(d=gI(e))==null?void 0:d.text;if(g){const h=s?4:uz(o,!0,r,i,l,u);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:g,importKind:t,addAsTypeOnly:h,useRequire:s}}}function ANe(e,t,r,i){const o=Fi(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=aet(e,o);else if(He(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=BB(Fue(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=NNe(e.sourceFile,o,u,e.program);return d&&[{fix:d,symbolName:u,errorIdentifierText:o.text}]}else s=CNe(e,o,i);else return;const l=aC(e.sourceFile,e.preferences,e.host);return s&&INe(s,e.sourceFile,e.program,l,e.host,e.preferences)}function INe(e,t,r,i,o,s){const l=u=>ks(u,o.getCurrentDirectory(),sy(o));return xp(e,(u,d)=>NT(!!u.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||js(u.fix.kind,d.fix.kind)||RNe(u.fix,d.fix,t,r,s,i.allowsImportingSpecifier,l))}function net(e,t,r){const i=CNe(e,t,r),o=aC(e.sourceFile,e.preferences,e.host);return i&&INe(i,e.sourceFile,e.program,o,e.host,e.preferences)}function xNe(e,t,r,i,o,s){if(vt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((l,u)=>RNe(u,l,t,r,s,i.allowsImportingSpecifier,d=>ks(d,o.getCurrentDirectory(),sy(o)))===-1?u:l)}function RNe(e,t,r,i,o,s,l){return e.kind!==0&&t.kind!==0?NT(t.moduleSpecifierKind!=="node_modules"||s(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||s(e.moduleSpecifier))||ret(e,t,o)||oet(e.moduleSpecifier,t.moduleSpecifier,r,i)||NT(DNe(e,r.path,l),DNe(t,r.path,l))||Qk(e.moduleSpecifier,t.moduleSpecifier):0}function ret(e,t,r){return r.importModuleSpecifierPreference==="non-relative"||r.importModuleSpecifierPreference==="project-relative"?NT(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function DNe(e,t,r){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&iet(e.exportInfo.moduleFileName)){const o=r(ci(e.exportInfo.moduleFileName));return fo(t,o)}return!1}function iet(e){return Ic(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function oet(e,t,r,i){return fo(e,"node:")&&!fo(t,"node:")?F7(r,i)?-1:1:fo(t,"node:")&&!fo(e,"node:")?F7(r,i)?1:-1:0}function aet({sourceFile:e,program:t,host:r,preferences:i},o){const s=t.getTypeChecker(),l=set(o,s);if(!l)return;const u=s.getAliasedSymbol(l),d=l.name,g=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],h=KO(e,t);return dz(g,void 0,!1,h,t,e,r,i).fixes.map(E=>{var A;return{fix:E,symbolName:d,errorIdentifierText:(A=ni(o,He))==null?void 0:A.text}})}function set(e,t){const r=He(e)?t.getSymbolAtLocation(e):void 0;if(N6(r))return r;const{parent:i}=e;if(ru(i)&&i.tagName===e||Um(i)){const o=t.resolveName(t.getJsxNamespace(i),ru(i)?e:i,111551,!1);if(N6(o))return o}}function TK(e,t,r,i){if(r.getCompilerOptions().verbatimModuleSyntax&&het(e,r)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return pet(e,r.getCompilerOptions(),!!i);case 3:return cet(e,r,!!i);case 4:return 2;default:return C.assertNever(t)}}function cet(e,t,r){if(PI(t.getCompilerOptions()))return 1;const i=bu(t.getCompilerOptions());switch(i){case 2:case 1:case 3:return Sg(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 Vue(e,t)===99?2:3;default:return C.assertNever(i,`Unexpected moduleKind ${i}`)}}function CNe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){const u=t.getTypeChecker(),d=t.getCompilerOptions();return Ki(Fue(e,u,s,d),g=>{if(g==="default")return;const h=HT(s),y=KO(e,t),E=uet(g,$R(s),F1(s),r,e,t,l,i,o);return Co(lf(E.values(),A=>dz(A,s.getStart(e),h,y,t,e,i,o).fixes),A=>({fix:A,symbolName:g,errorIdentifierText:s.text,isJsxNamespaceFix:g!==s.text}))})}function NNe(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||Fn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Fue(e,t,r,i){const o=r.parent;if((ru(o)||jS(o))&&o.tagName===r&&bJ(i.jsx)){const s=t.getJsxNamespace(e);if(det(s,r,t))return!oD(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function det(e,t,r){if(oD(t.text))return!0;const i=r.resolveName(e,t,111551,!0);return!i||vt(i.declarations,Qy)&&!(i.flags&111551)}function uet(e,t,r,i,o,s,l,u,d){var g;const h=dm(),y=aC(o,d,u),E=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),A=zh(N=>p0(N?u.getPackageJsonAutoImportProvider():s,u));function R(N,P,k,F,O,G){const j=A(G);if(EJ(O,o,P,N,d,y,j,E)){const J=O.getTypeChecker();h.add(cce(k,J).toString(),{symbol:k,moduleSymbol:N,moduleFileName:P==null?void 0:P.fileName,exportKind:F,targetFlags:xd(k,J).flags,isFromPackageJson:G})}}return AJ(s,u,d,l,(N,P,k,F)=>{const O=k.getTypeChecker();i.throwIfCancellationRequested();const G=k.getCompilerOptions(),j=V7(N,O);j&&FNe(O.getSymbolFlags(j.symbol),r)&&j7(j.symbol,O,Ga(G),(Z,q)=>(t?q??Z:Z)===e)&&R(N,P,j.symbol,j.exportKind,k,F);const J=O.tryGetMemberInModuleExportsAndProperties(e,N);J&&FNe(O.getSymbolFlags(J),r)&&R(N,P,J,0,k,F)}),h}function pet(e,t,r){const i=PI(t),o=Sg(e.fileName);if(!o&&bu(t)>=5)return i?1:2;if(o)return e.externalModuleIndicator||r?i?1:2:3;for(const s of e.statements??se)if(Fc(s)&&!Ol(s.moduleReference))return 3;return i?1:3}function zue(e,t,r,i,o,s,l){let u;const d=Rr.ChangeTracker.with(e,g=>{u=fet(g,t,r,i,o,s,l)});return aa(_Ne,d,u,gNe,f.Add_all_missing_imports)}function fet(e,t,r,i,o,s,l){const u=Gp(t,l);switch(i.kind){case 0:return Bue(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return LNe(e,t,i,u),[f.Change_0_to_1,r,kNe(i.moduleSpecifier,u)+r];case 2:{const{importClauseOrBindingPattern:d,importKind:g,addAsTypeOnly:h,moduleSpecifier:y}=i;PNe(e,t,d,g===1?{name:r,addAsTypeOnly:h}:void 0,g===0?[{name:r,addAsTypeOnly:h}]:se,void 0,l);const E=gm(y);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{const{importKind:d,moduleSpecifier:g,addAsTypeOnly:h,useRequire:y,qualification:E}=i,A=y?ONe:wNe,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==null?void 0:E.namespacePrefix)||r,addAsTypeOnly:h}:void 0;return Qq(e,t,A(g,u,R,N,P,s.getCompilerOptions(),l),!0,l),E&&Bue(e,t,E),o?[f.Import_0_from_1,r,g]:[f.Add_import_from_0,g]}case 4:{const{typeOnlyAliasDeclaration:d}=i,g=met(e,d,s,t,l);return g.kind===277?[f.Remove_type_from_import_of_0_from_1,r,MNe(g.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,MNe(g)]}default:return C.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function MNe(e){var t,r;return e.kind===272?((r=ni((t=ni(e.moduleReference,py))==null?void 0:t.expression,ds))==null?void 0:r.text)||e.moduleReference.getText():ha(e.parent.moduleSpecifier,wa).text}function met(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:g}=v0.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,o,i),h=v0.getImportSpecifierInsertionIndex(t.parent.elements,d,g);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:gb(t.getFirstToken()),end:gb(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 g;if(e.delete(i,Zq(d,i)),!s.allowImportingTsExtensions){const h=gI(d.parent),y=h&&((g=r.getResolvedModuleFromModuleSpecifier(h,i))==null?void 0:g.resolvedModule);if(y!=null&&y.resolvedUsingTsExtension){const E=E2(h.text,Zw(h.text,s));e.replaceNode(i,h,L.createStringLiteral(E))}}if(l){const h=ni(d.namedBindings,r_);if(h&&h.elements.length>1){v0.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 PNe(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)]:se,...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==null?void 0:y.addAsTypeOnly)===4),g=r.namedBindings&&((u=ni(r.namedBindings,r_))==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}=v0.getNamedImportSpecifierComparerWithDetection(r.parent,l,t),A=xp(o.map(R=>L.createImportSpecifier((!r.isTypeOnly||d)&&SK(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,xp([...g.filter(R=>!s.has(R)),...A],y)));else if(g!=null&&g.length&&E!==!1){const R=d&&g?L.updateNamedImports(r.namedBindings,Zi(g,N=>L.updateImportSpecifier(N,!0,N.propertyName,N.name))).elements:g;for(const N of A){const P=v0.getImportSpecifierInsertionIndex(R,N,y);e.insertImportSpecifierAtIndex(t,N,r.namedBindings,P)}}else if(g!=null&&g.length)for(const R of A)e.insertNodeInListAfter(t,Ba(g),R,g);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,Zq(r,t)),g))for(const y of g)e.insertModifierBefore(t,156,y);function h(y,E,A){const R=L.createBindingElement(void 0,A,E);y.elements.length?e.insertNodeInListAfter(t,Ba(y.elements),R):e.replaceNode(t,y,L.createObjectBindingPattern([R]))}}function Bue(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function LNe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,kNe(r,o))}function kNe(e,t){const r=Yq(t);return`import(${r}${e}${r}).`}function Gue({addAsTypeOnly:e}){return e===2}function SK(e,t){return Gue(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function wNe(e,t,r,i,o,s,l){const u=NP(e,t);let d;if(r!==void 0||i!=null&&i.length){const g=(!r||Gue(r))&&Hn(i,Gue)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&(r==null?void 0:r.addAsTypeOnly)!==4&&!vt(i,h=>h.addAsTypeOnly===4);d=XA(d,Vb(r&&L.createIdentifier(r.name),i==null?void 0:i.map(h=>L.createImportSpecifier(!g&&SK(h,l),h.propertyName===void 0?void 0:L.createIdentifier(h.propertyName),L.createIdentifier(h.name))),e,t,g))}if(o){const g=o.importKind===3?L.createImportEqualsDeclaration(void 0,SK(o,l),L.createIdentifier(o.name),L.createExternalModuleReference(u)):L.createImportDeclaration(void 0,L.createImportClause(SK(o,l)?156:void 0,void 0,L.createNamespaceImport(L.createIdentifier(o.name))),u,void 0);d=XA(d,g)}return C.checkDefined(d)}function ONe(e,t,r,i,o){const s=NP(e,t);let l;if(r||i!=null&&i.length){const u=(i==null?void 0:i.map(({name:g,propertyName:h})=>L.createBindingElement(void 0,h,g)))||[];r&&u.unshift(L.createBindingElement(void 0,"default",r.name));const d=WNe(L.createObjectBindingPattern(u),s);l=XA(l,d)}if(o){const u=WNe(o.name,s);l=XA(l,u)}return C.checkDefined(l)}function WNe(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 FNe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function Vue(e,t){return gg(e)?t.getImpliedNodeFormatForEmit(e):W1(e,t.getCompilerOptions())}function het(e,t){return gg(e)?t.getEmitModuleFormatOfFile(e):TP(e,t.getCompilerOptions())}var jue="addMissingConstraint",zNe=[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:zNe,getCodeActions(e){const{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=BNe(i,t,r);if(l===void 0)return;const u=Rr.ChangeTracker.with(e,d=>GNe(d,i,o,s,t,l));return[aa(jue,u,f.Add_extends_constraint,jue,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[jue],getAllCodeActions:e=>{const{program:t,preferences:r,host:i}=e,o=new Set;return vx(Rr.ChangeTracker.with(e,s=>{bx(e,zNe,l=>{const u=BNe(t,l.file,Id(l.start,l.length));if(u&&ym(o,ls(u.declaration)))return GNe(s,t,r,i,l.file,u)})}))}});function BNe(e,t,r){const i=hn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=hn(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=Wpe(o.file,Id(o.start,o.length));if(s!==void 0&&(He(s)&&cl(s.parent)&&(s=s.parent),cl(s))){if(T1(s.parent))return;const l=Fi(t,r.start),u=e.getTypeChecker();return{constraint:get(u,l)||_et(o.messageText),declaration:s,token:l}}}function GNe(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 g=Ga(t.getCompilerOptions()),h=pC({program:t,host:i}),y=sE(o,t,r,i),E=WK(d,y,u,void 0,g,void 0,void 0,h);E&&(e.replaceNode(o,l,L.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),y.writeFixes(e))}}function _et(e){const[,t]=s_(e,` `,0).match(/`extends (.*)`/)||[];return t}function get(e,t){return Ri(t.parent)?e.getTypeArgumentConstraint(t.parent):(St(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var VNe="fixOverrideModifier",XO="fixAddOverrideModifier",pz="fixRemoveOverrideModifier",jNe=[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],UNe={[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:XO,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:XO,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:pz,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:pz,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:XO,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:XO,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:XO,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:pz,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:pz,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}};Sa({errorCodes:jNe,getCodeActions:function(t){const{errorCode:r,span:i}=t,o=UNe[r];if(!o)return se;const{descriptions:s,fixId:l,fixAllDescriptions:u}=o,d=Rr.ChangeTracker.with(t,g=>HNe(g,t,r,i.start));return[lue(VNe,d,s,l,u)]},fixIds:[VNe,XO,pz],getAllCodeActions:e=>Ss(e,jNe,(t,r)=>{const{code:i,start:o}=r,s=UNe[i];!s||s.fixId!==e.fixId||HNe(t,e,i,o)})});function HNe(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 yet(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 vet(e,t.sourceFile,i);default:C.fail("Unexpected error code: "+r)}}function yet(e,t,r){const i=JNe(t,r);if(Pu(t)){e.addJSDocTags(t,i,[L.createJSDocOverrideTag(L.createIdentifier("override"))]);return}const o=i.modifiers||se,s=hn(o,jI),l=hn(o,vie),u=hn(o,y=>Bq(y.kind)),d=ma(o,Wc),g=l?l.end:s?s.end:u?u.end:d?ka(t.text,d.end):i.getStart(t),h=u||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,h)}function vet(e,t,r){const i=JNe(t,r);if(Pu(t)){e.filterJSDocTags(t,i,U8(I4));return}const o=hn(i.modifiers,bie);C.assertIsDefined(o),e.deleteModifier(t,o)}function qNe(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return Np(e,e.parent);default:return!1}}function JNe(e,t){const r=Fi(e,t),i=Dn(r,o=>ui(o)?"quit":qNe(o));return C.assert(i&&qNe(i)),i}var Uue="fixNoPropertyAccessFromIndexSignature",KNe=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];Sa({errorCodes:KNe,fixIds:[Uue],getCodeActions(e){const{sourceFile:t,span:r,preferences:i}=e,o=YNe(t,r.start),s=Rr.ChangeTracker.with(e,l=>XNe(l,e.sourceFile,o,i));return[aa(Uue,s,[f.Use_element_access_for_0,o.name.text],Uue,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ss(e,KNe,(t,r)=>XNe(t,r.file,YNe(r.file,r.start),e.preferences))});function XNe(e,t,r,i){const o=Gp(t,i),s=L.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,mF(r)?L.createElementAccessChain(r.expression,r.questionDotToken,s):L.createElementAccessExpression(r.expression,s))}function YNe(e,t){return ha(Fi(e,t).parent,qr)}var Hue="fixImplicitThis",$Ne=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];Sa({errorCodes:$Ne,getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t;let s;const l=Rr.ChangeTracker.with(t,u=>{s=QNe(u,r,o.start,i.getTypeChecker())});return s?[aa(Hue,l,s,Hue,f.Fix_all_implicit_this_errors)]:se},fixIds:[Hue],getAllCodeActions:e=>Ss(e,$Ne,(t,r)=>{QNe(t,r.file,r.start,e.program.getTypeChecker())})});function QNe(e,t,r,i){const o=Fi(t,r);if(!QD(o))return;const s=vu(o,!1,!1);if(!(!Zl(s)&&!Us(s))&&!Yi(vu(s,!1,!1))){const l=C.checkDefined(Es(s,100,t)),{name:u}=s,d=C.checkDefined(s.body);return Us(s)?u&&Ys.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:uJ]):(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 que="fixImportNonExportedMember",ZNe=[f.Module_0_declares_1_locally_but_it_is_not_exported.code];Sa({errorCodes:ZNe,fixIds:[que],getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=eMe(t,r.start,i);if(o===void 0)return;const s=Rr.ChangeTracker.with(e,l=>bet(l,i,o));return[aa(que,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],que,f.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return vx(Rr.ChangeTracker.with(e,r=>{const i=new Map;bx(e,ZNe,o=>{const s=eMe(o.file,o.start,t);if(s===void 0)return;const{exportName:l,node:u,moduleSourceFile:d}=s;if(EK(d,l.isTypeOnly)===void 0&&nw(u))r.insertExportModifier(d,u);else{const g=i.get(d)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(d,g)}}),i.forEach((o,s)=>{const l=EK(s,!0);l&&l.isTypeOnly?(Jue(r,t,s,o.typeOnlyExports,l),Jue(r,t,s,o.exports,EK(s,!1))):Jue(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}});function eMe(e,t,r){var i,o;const s=Fi(e,t);if(He(s)){const l=Dn(s,vl);if(l===void 0)return;const u=wa(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 g=r.getSourceFile(d.resolvedFileName);if(g===void 0||sC(r,g))return;const h=g.symbol,y=(o=ni(h.valueDeclaration,C_))==null?void 0:o.locals;if(y===void 0)return;const E=y.get(s.escapedText);if(E===void 0)return;const A=Tet(E);return A===void 0?void 0:{exportName:{node:s,isTypeOnly:kI(A)},node:A,moduleSourceFile:g,moduleSpecifier:u.text}}}function bet(e,t,{exportName:r,node:i,moduleSourceFile:o}){const s=EK(o,r.isTypeOnly);s?tMe(e,t,o,s,[r]):nw(i)?e.insertExportModifier(o,i):nMe(e,t,o,[r])}function Jue(e,t,r,i,o){Ze(i)&&(o?tMe(e,t,r,o,i):nMe(e,t,r,i))}function EK(e,t){const r=i=>fc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return ma(e.statements,r)}function tMe(e,t,r,i,o){const s=i.exportClause&&Jf(i.exportClause)?i.exportClause.elements:L.createNodeArray([]),l=!i.isTypeOnly&&!!(vm(t.getCompilerOptions())||hn(s,u=>u.isTypeOnly));e.replaceNode(r,i,L.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,L.createNamedExports(L.createNodeArray([...s,...rMe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function nMe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,L.createExportDeclaration(void 0,!1,L.createNamedExports(rMe(i,vm(t.getCompilerOptions()))),void 0,void 0))}function rMe(e,t){return L.createNodeArray(Bt(e,r=>L.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function Tet(e){if(e.valueDeclaration===void 0)return Ac(e.declarations);const t=e.valueDeclaration,r=yi(t)?ni(t.parent.parent,sc):void 0;return r&&Ze(r.declarationList.declarations)===1?r:t}var Kue="fixIncorrectNamedTupleSyntax",Eet=[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:Eet,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Aet(r,i.start),s=Rr.ChangeTracker.with(t,l=>Iet(l,r,o));return[aa(Kue,s,f.Move_labeled_tuple_element_modifiers_to_labels,Kue,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Kue]});function Aet(e,t){const r=Fi(e,t);return Dn(r,i=>i.kind===203)}function Iet(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 iMe="fixSpelling",oMe=[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:oMe,getCodeActions(e){const{sourceFile:t,errorCode:r}=e,i=aMe(t,e.span.start,e,r);if(!i)return;const{node:o,suggestedSymbol:s}=i,l=Ga(e.host.getCompilationSettings()),u=Rr.ChangeTracker.with(e,d=>sMe(d,t,o,s,l));return[aa("spelling",u,[f.Change_spelling_to_0,wl(s)],iMe,f.Fix_all_detected_spelling_errors)]},fixIds:[iMe],getAllCodeActions:e=>Ss(e,oMe,(t,r)=>{const i=aMe(r.file,r.start,e,r.code),o=Ga(e.host.getCompilationSettings());i&&sMe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})});function aMe(e,t,r,i){const o=Fi(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)&&!o_(s))return;const l=r.program.getTypeChecker();let u;if(qr(s)&&s.name===o){C.assert(ug(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&&eo(o)){const d=l.getTypeAtLocation(s.right);u=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(ku(s)&&s.right===o){const d=l.getSymbolAtLocation(s.left);d&&d.flags&1536&&(u=l.getSuggestedSymbolForNonexistentModule(s.right,d))}else if(Eu(s)&&s.name===o){C.assertNode(o,He,"Expected an identifier for spelling (import)");const d=Dn(o,vl),g=Ret(r,d,e);g&&g.symbol&&(u=l.getSuggestedSymbolForNonexistentModule(o,g.symbol))}else if(o_(s)&&s.name===o){C.assertNode(o,He,"Expected an identifier for JSX attribute");const d=Dn(o,ru),g=l.getContextualTypeForArgumentAtIndex(d,0);u=l.getSuggestedSymbolForNonexistentJSXAttribute(o,g)}else if(S6(s)&&bc(s)&&s.name===o){const d=Dn(o,ui),g=d?lh(d):void 0,h=g?l.getTypeAtLocation(g):void 0;h&&(u=l.getSuggestedSymbolForNonexistentClassMember(Al(o),h))}else{const d=F1(o),g=Al(o);C.assert(g!==void 0,"name should be defined"),u=l.getSuggestedSymbolForNonexistentSymbol(o,g,xet(d))}return u===void 0?void 0:{node:o,suggestedSymbol:u}}function sMe(e,t,r,i,o){const s=wl(i);if(!fp(s,o)&&qr(r.parent)){const l=i.valueDeclaration;l&&nd(l)&&eo(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 xet(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function Ret(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 Xue="returnValueCorrect",Yue="fixAddReturnStatement",$ue="fixRemoveBracesFromArrowFunctionBody",Que="fixWrapTheBlockWithParen",lMe=[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:lMe,fixIds:[Yue,$ue,Que],getCodeActions:function(t){const{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=dMe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Un([Cet(t,l.expression,l.statement)],Xs(l.declaration)?Net(t,l.declaration,l.expression,l.commentSource):void 0):[Met(t,l.declaration,l.expression)]},getAllCodeActions:e=>Ss(e,lMe,(t,r)=>{const i=dMe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case Yue:uMe(t,r.file,i.expression,i.statement);break;case $ue:if(!Xs(i.declaration))return;pMe(t,r.file,i.declaration,i.expression,i.commentSource);break;case Que:if(!Xs(i.declaration))return;fMe(t,r.file,i.declaration,i.expression);break;default:C.fail(JSON.stringify(e.fixId))}})});function cMe(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 Zue(e,t,r,i){if(!t.body||!ea(t.body)||Ze(t.body.statements)!==1)return;const o=$a(t.body.statements);if(od(o)&&epe(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(Lb(o)&&od(o.statement)){const s=L.createObjectLiteralExpression([L.createPropertyAssignment(o.label,o.statement.expression)]),l=cMe(e,o.label,o.statement.expression);if(epe(e,t,l,r,i))return Xs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(ea(o)&&Ze(o.statements)===1){const s=$a(o.statements);if(Lb(s)&&od(s.statement)){const l=L.createObjectLiteralExpression([L.createPropertyAssignment(s.label,s.statement.expression)]),u=cMe(e,s.label,s.statement.expression);if(epe(e,t,u,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function epe(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 dMe(e,t,r,i){const o=Fi(t,r);if(!o.parent)return;const s=Dn(o.parent,Ms);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||!tp(s.type,o)?void 0:Zue(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!Zo(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?Zue(e,s,u,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!k_(o)||!HN(o.parent)&&!o_(o.parent))return;const d=Det(o.parent);return!d||!Ms(d)||!d.body?void 0:Zue(e,d,e.getTypeAtLocation(o.parent),!0)}}function Det(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(ID(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function uMe(e,t,r,i){Op(r);const o=NO(t);e.replaceNode(t,i,L.createReturnStatement(r),{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function pMe(e,t,r,i,o,s){const l=D7(i)?L.createParenthesizedExpression(i):i;Op(o),B1(o,l),e.replaceNode(t,r.body,l)}function fMe(e,t,r,i){e.replaceNode(t,r.body,L.createParenthesizedExpression(i))}function Cet(e,t,r){const i=Rr.ChangeTracker.with(e,o=>uMe(o,e.sourceFile,t,r));return aa(Xue,i,f.Add_a_return_statement,Yue,f.Add_all_missing_return_statement)}function Net(e,t,r,i){const o=Rr.ChangeTracker.with(e,s=>pMe(s,e.sourceFile,t,r,i));return aa(Xue,o,f.Remove_braces_from_arrow_function_body,$ue,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function Met(e,t,r){const i=Rr.ChangeTracker.with(e,o=>fMe(o,e.sourceFile,t,r));return aa(Xue,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Que,f.Wrap_all_object_literal_with_parentheses)}var g0="fixMissingMember",AK="fixMissingProperties",IK="fixMissingAttributes",xK="fixMissingFunctionDeclaration",mMe=[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:mMe,getCodeActions(e){const t=e.program.getTypeChecker(),r=hMe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){const i=Rr.ChangeTracker.with(e,o=>IMe(o,e,r));return[aa(AK,i,f.Add_missing_properties,AK,f.Add_all_missing_properties)]}if(r.kind===4){const i=Rr.ChangeTracker.with(e,o=>AMe(o,e,r));return[aa(IK,i,f.Add_missing_attributes,IK,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){const i=Rr.ChangeTracker.with(e,o=>EMe(o,e,r));return[aa(xK,i,[f.Add_missing_function_declaration_0,r.token.text],xK,f.Add_all_missing_function_declarations)]}if(r.kind===1){const i=Rr.ChangeTracker.with(e,o=>SMe(o,e.program.getTypeChecker(),r));return[aa(g0,i,[f.Add_missing_enum_member_0,r.token.text],g0,f.Add_all_missing_members)]}return lo(Oet(e,r),Pet(e,r))}},fixIds:[g0,xK,AK,IK],getAllCodeActions:e=>{const{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Set,s=new Map;return vx(Rr.ChangeTracker.with(e,l=>{bx(e,mMe,u=>{const d=hMe(u.file,u.start,u.code,i,e.program);if(d===void 0)return;const g=ls(d.parentDeclaration)+"#"+(d.kind===3?d.identifier||ls(d.token):d.token.text);if(ym(o,g)){if(r===xK&&(d.kind===2||d.kind===5))EMe(l,e,d);else if(r===AK&&d.kind===3)IMe(l,e,d);else if(r===IK&&d.kind===4)AMe(l,e,d);else if(d.kind===1&&SMe(l,i,d),d.kind===0){const{parentDeclaration:h,token:y}=d,E=KA(s,h,()=>[]);E.some(A=>A.token.text===y.text)||E.push(d)}}}),s.forEach((u,d)=>{const g=wu(d)?void 0:Get(d,i);for(const h of u){if(g!=null&&g.some(k=>{const F=s.get(k);return!!F&&F.some(({token:O})=>O.text===h.token.text)}))continue;const{parentDeclaration:y,declSourceFile:E,modifierFlags:A,token:R,call:N,isJSFile:P}=h;if(N&&!eo(R))TMe(e,l,N,R,A&256,y,E);else if(P&&!gd(y)&&!wu(y))_Me(l,E,y,R,!!(A&256));else{const k=yMe(i,y,R);vMe(l,E,y,R.text,k,A&256)}}})}))}});function hMe(e,t,r,i,o){var s,l;const u=Fi(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&&Fa(d)&&Zo(d.parent)))return;const R=so(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&&to(P)&&He(P.name)))return;const k=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(N,R).getNonNullableType(),!1,!1));return Ze(k)?{kind:3,token:P.name,identifier:P.name.text,properties:k,parentDeclaration:d}:void 0}if(u.kind===19||ED(d)||tf(d)){const R=(ED(d)||tf(d))&&d.expression?d.expression:d;if(Fa(R)){const N=ED(d)?i.getTypeFromTypeNode(d.type):i.getContextualType(R)||i.getTypeAtLocation(R),P=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d),N.getNonNullableType(),!1,!1));return Ze(P)?{kind:3,token:d,identifier:void 0,properties:P,parentDeclaration:R,indentation:tf(R.parent)||_w(R.parent)?0:void 0}:void 0}}if(!ug(u))return;if(He(u)&&Zy(d)&&d.initializer&&Fa(d.initializer)){const R=(s=i.getContextualType(u)||i.getTypeAtLocation(u))==null?void 0:s.getNonNullableType(),N=Co(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),R,!1,!1));return Ze(N)?{kind:3,token:u,identifier:u.text,properties:N,parentDeclaration:d.initializer}:void 0}if(He(u)&&ru(u.parent)){const R=Ga(o.getCompilerOptions()),N=Fet(i,R,u.parent);return Ze(N)?{kind:4,token:u,attributes:N,parentDeclaration:u.parent}:void 0}if(He(u)){const R=(l=i.getContextualType(u))==null?void 0:l.getNonNullableType();if(R&&Hr(R)&16){const N=Ac(i.getSignaturesOfType(R,0));return N===void 0?void 0:{kind:5,token:u,signature:N,sourceFile:e,parentDeclaration:xMe(u)}}if(Zo(d)&&d.expression===u)return{kind:2,token:u,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:xMe(u)}}if(!qr(d))return;const g=qq(i.getTypeAtLocation(d.expression)),h=g.symbol;if(!h||!h.declarations)return;if(He(u)&&Zo(d.parent)){const R=hn(h.declarations,pc),N=R==null?void 0:R.getSourceFile();if(R&&N&&!sC(o,N))return{kind:2,token:u,call:d.parent,sourceFile:N,modifierFlags:32,parentDeclaration:R};const P=hn(h.declarations,Yi);if(e.commonJsModuleIndicator)return;if(P&&!sC(o,P))return{kind:2,token:u,call:d.parent,sourceFile:P,modifierFlags:32,parentDeclaration:P}}const y=hn(h.declarations,ui);if(!y&&eo(u))return;const E=y||hn(h.declarations,R=>gd(R)||wu(R));if(E&&!sC(o,E.getSourceFile())){const R=!wu(E)&&(g.target||g)!==i.getDeclaredTypeOfSymbol(h);if(R&&(eo(u)||gd(E)))return;const N=E.getSourceFile(),P=wu(E)?0:(R?256:0)|(vJ(u.text)?2:0),k=Pu(N),F=ni(d.parent,Zo);return{kind:0,token:u,call:F,modifierFlags:P,parentDeclaration:E,declSourceFile:N,isJSFile:k}}const A=hn(h.declarations,ZT);if(A&&!(g.flags&1056)&&!eo(u)&&!sC(o,A.getSourceFile()))return{kind:1,token:u,parentDeclaration:A}}function Pet(e,t){return t.isJSFile?eI(Let(e,t)):ket(e,t)}function Let(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(gd(t)||wu(t))return;const s=Rr.ChangeTracker.with(e,u=>_Me(u,r,t,o,!!(i&256)));if(s.length===0)return;const l=i&256?f.Initialize_static_property_0:eo(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return aa(g0,s,[l,o.text],g0,f.Add_all_missing_members)}function _Me(e,t,r,i,o){const s=i.text;if(o){if(r.kind===232)return;const l=r.name.getText(),u=gMe(L.createIdentifier(l),s);e.insertNodeAfter(t,r,u)}else if(eo(i)){const l=L.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),u=bMe(r);u?e.insertNodeAfter(t,u,l):e.insertMemberAtStart(t,r,l)}else{const l=vg(r);if(!l)return;const u=gMe(L.createThis(),s);e.insertNodeAtConstructorEnd(t,l,u)}}function gMe(e,t){return L.createExpressionStatement(L.createAssignment(L.createPropertyAccessExpression(e,t),Sx()))}function ket(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){const s=o.text,l=i&256,u=yMe(e.program.getTypeChecker(),t,o),d=h=>Rr.ChangeTracker.with(e,y=>vMe(y,r,t,s,u,h)),g=[aa(g0,d(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],g0,f.Add_all_missing_members)];return l||eo(o)||(i&2&&g.unshift(yh(g0,d(2),[f.Declare_private_property_0,s])),g.push(wet(e,r,t,o.text,u))),g}function yMe(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 vMe(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=bMe(r);d?e.insertNodeAfter(t,d,u):e.insertMemberAtStart(t,r,u)}function bMe(e){let t;for(const r of e.members){if(!Po(r))break;t=r}return t}function wet(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,g=>g.insertMemberAtStart(t,r,u));return yh(g0,d,[f.Add_index_signature_for_property_0,i])}function Oet(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=>TMe(e,y,l,s,h,r,i)),g=[aa(g0,d(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,u],g0,f.Add_all_missing_members)];return o&2&&g.unshift(yh(g0,d(2),[f.Declare_private_method_0,u])),g}function TMe(e,t,r,i,o,s,l){const u=sE(l,e.program,e.preferences,e.host),d=ui(s)?175:174,g=Npe(d,e,u,r,i,o,s),h=zet(s,r);h?t.insertNodeAfter(l,h,g):t.insertMemberAtStart(l,s,g),u.writeFixes(t)}function SMe(e,t,{token:r,parentDeclaration:i}){const o=vt(i.members,d=>{const g=t.getTypeAtLocation(d);return!!(g&&g.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 EMe(e,t,r){const i=Gp(t.sourceFile,t.preferences),o=sE(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Npe(263,t,o,r.call,Kr(r.token),r.modifierFlags,r.parentDeclaration):OK(263,t,i,r.signature,mz(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."),tf(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function AMe(e,t,r){const i=sE(t.sourceFile,t.program,t.preferences,t.host),o=Gp(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,u=vt(l.properties,$I),d=Bt(r.attributes,y=>{const E=RK(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}),g=L.createJsxAttributes(u?[...d,...l.properties]:[...l.properties,...d]),h={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,h),i.writeFixes(e)}function IMe(e,t,r){const i=sE(t.sourceFile,t.program,t.preferences,t.host),o=Gp(t.sourceFile,t.preferences),s=Ga(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),u=Bt(r.properties,g=>{const h=RK(t,l,i,o,l.getTypeOfSymbol(g),r.parentDeclaration);return L.createPropertyAssignment(Bet(g,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 RK(e,t,r,i,o,s){if(o.flags&3)return Sx();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?B8(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 Bn(o.types,u=>RK(e,t,r,i,u,s))??Sx();if(t.isArrayLikeType(o))return L.createArrayLiteralExpression();if(Wet(o)){const l=Bt(t.getPropertiesOfType(o),u=>{const d=RK(e,t,r,i,t.getTypeOfSymbol(u),s);return L.createPropertyAssignment(u.name,d)});return L.createObjectLiteralExpression(l,!0)}if(Hr(o)&16){if(hn(o.symbol.declarations||se,Rp(O_,Vm,Nl))===void 0)return Sx();const u=t.getSignaturesOfType(o,0);return u===void 0?Sx():OK(219,e,i,u[0],mz(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??Sx()}if(Hr(o)&1){const l=dy(o.symbol);if(l===void 0||LS(l))return Sx();const u=vg(l);return u&&Ze(u.parameters)?Sx():L.createNewExpression(L.createIdentifier(o.symbol.name),void 0,void 0)}return Sx()}function Sx(){return L.createIdentifier("undefined")}function Wet(e){return e.flags&524288&&(Hr(e)&128||e.symbol&&ni(ag(e.symbol.declarations),wu))}function Fet(e,t,r){const i=e.getContextualType(r.attributes);if(i===void 0)return se;const o=i.getProperties();if(!Ze(o))return se;const s=new Set;for(const l of r.attributes.properties)if(o_(l)&&s.add(PM(l.name)),$I(l)){const u=e.getTypeAtLocation(l.expression);for(const d of u.getProperties())s.add(d.escapedName)}return Vn(o,l=>fp(l.name,t,1)&&!(l.flags&16777216||Wl(l)&48||s.has(l.escapedName)))}function zet(e,t){if(wu(e))return;const r=Dn(t,i=>Nl(i)||Ml(i));return r&&r.parent===e?r:void 0}function Bet(e,t,r,i){if(fg(e)){const o=i.symbolToNode(e,111551,void 0,void 0,1);if(o&&va(o))return o}return tw(e.name,t,r===0,!1,!1)}function xMe(e){if(Dn(e,ID)){const t=Dn(e.parent,tf);if(t)return t}return Fn(e)}function Get(e,t){const r=[];for(;e;){const i=DS(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;const s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&hn(s.declarations,ui);if(!l)break;r.push(l),e=l}return r}var tpe="addMissingNewOperator",RMe=[f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];Sa({errorCodes:RMe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=Rr.ChangeTracker.with(e,o=>DMe(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=>Ss(e,RMe,(t,r)=>DMe(t,e.sourceFile,r))});function DMe(e,t,r){const i=ha(Vet(t,r),Zo),o=L.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function Vet(e,t){let r=Fi(e,t.start);const i=Dl(t);for(;r.endNK(u,e.program,e.preferences,e.host,i,o)),[Ze(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],DK,f.Add_all_missing_parameters)),Ze(s)&&Un(l,aa(CK,Rr.ChangeTracker.with(e,u=>NK(u,e.program,e.preferences,e.host,i,s)),[Ze(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],CK,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Ss(e,CMe,(t,r)=>{const i=NMe(e.sourceFile,e.program,r.start);if(i){const{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===DK&&NK(t,e.program,e.preferences,e.host,o,s),e.fixId===CK&&NK(t,e.program,e.preferences,e.host,o,l)}})});function NMe(e,t,r){const i=Fi(e,r),o=Dn(i,Zo);if(o===void 0||Ze(o.arguments)===0)return;const s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),u=Vn(l.symbol.declarations,MMe);if(u===void 0)return;const d=tl(u);if(d===void 0||d.body===void 0||sC(t,d.getSourceFile()))return;const g=jet(d);if(g===void 0)return;const h=[],y=[],E=Ze(d.parameters),A=Ze(o.arguments);if(E>A)return;const R=[d,...Het(d,u)];for(let N=0,P=0,k=0;N{const d=Fn(u),g=sE(d,t,r,i);Ze(u.parameters)?e.replaceNodeRangeWithNodes(d,$a(u.parameters),Ba(u.parameters),PMe(g,l,u,s),{joiner:", ",indentation:0,leadingTriviaOption:Rr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Rr.TrailingTriviaOption.Include}):$e(PMe(g,l,u,s),(h,y)=>{Ze(u.parameters)===0&&y===0?e.insertNodeAt(d,u.parameters.end,h):e.insertNodeAtEndOfList(d,u.parameters,h)}),g.writeFixes(e)})}function MMe(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function PMe(e,t,r,i){const o=Bt(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,Ket(e,l.type,t),l.initializer))}return o}function Het(e,t){const r=[];for(const i of t)if(qet(i)){if(Ze(i.parameters)===Ze(e.parameters)){r.push(i);continue}if(Ze(i.parameters)>Ze(e.parameters))return[]}return r}function qet(e){return MMe(e)&&e.body===void 0}function LMe(e,t,r){return L.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function Jet(e,t){return Ze(e)&&vt(e,r=>tSs(e,OMe,(t,r,i)=>{const o=FMe(r.file,r.start);if(o!==void 0)switch(e.fixId){case npe:{const s=zMe(o,e.host,r.code);s&&i.push(WMe(r.file.fileName,s));break}default:C.fail(`Bad fixId: ${e.fixId}`)}})});function WMe(e,t){return{type:"install package",file:e,packageName:t}}function FMe(e,t){const r=ni(Fi(e,t),wa);if(!r)return;const i=r.text,{packageName:o}=o3(i);return td(o)?void 0:o}function zMe(e,t,r){var i;return r===kMe?_D.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?s3(e):void 0}var BMe=[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],rpe="fixClassDoesntImplementInheritedAbstractMember";Sa({errorCodes:BMe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=Rr.ChangeTracker.with(t,s=>VMe(GMe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[aa(rpe,o,f.Implement_inherited_abstract_class,rpe,f.Implement_all_inherited_abstract_classes)]},fixIds:[rpe],getAllCodeActions:function(t){const r=new Set;return Ss(t,BMe,(i,o)=>{const s=GMe(o.file,o.start);ym(r,ls(s))&&VMe(s,t.sourceFile,t,i,t.preferences)})}});function GMe(e,t){const r=Fi(e,t);return ha(r.parent,ui)}function VMe(e,t,r,i,o){const s=lh(e),l=r.program.getTypeChecker(),u=l.getTypeAtLocation(s),d=l.getPropertiesOfType(u).filter(Yet),g=sE(t,r.program,o,r.host);Cpe(e,d,t,r,o,g,h=>i.insertMemberAtStart(t,e,h)),g.writeFixes(i)}function Yet(e){const t=nv($a(e.getDeclarations()));return!(t&2)&&!!(t&64)}var ipe="classSuperMustPrecedeThisAccess",jMe=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];Sa({errorCodes:jMe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=HMe(t,r.start);if(!i)return;const{constructor:o,superCall:s}=i,l=Rr.ChangeTracker.with(e,u=>UMe(u,t,o,s));return[aa(ipe,l,f.Make_super_call_the_first_statement_in_the_constructor,ipe,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[ipe],getAllCodeActions(e){const{sourceFile:t}=e,r=new Set;return Ss(e,jMe,(i,o)=>{const s=HMe(o.file,o.start);if(!s)return;const{constructor:l,superCall:u}=s;ym(r,ls(l.parent))&&UMe(i,t,l,u)})}});function UMe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function HMe(e,t){const r=Fi(e,t);if(r.kind!==110)return;const i=df(r),o=qMe(i.body);return o&&!o.expression.arguments.some(s=>qr(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function qMe(e){return od(e)&&r1(e.expression)?e:Yo(e)?void 0:Jo(e,qMe)}var ope="constructorForDerivedNeedSuperCall",JMe=[f.Constructors_for_derived_classes_must_contain_a_super_call.code];Sa({errorCodes:JMe,getCodeActions(e){const{sourceFile:t,span:r}=e,i=KMe(t,r.start),o=Rr.ChangeTracker.with(e,s=>XMe(s,t,i));return[aa(ope,o,f.Add_missing_super_call,ope,f.Add_all_missing_super_calls)]},fixIds:[ope],getAllCodeActions:e=>Ss(e,JMe,(t,r)=>XMe(t,e.sourceFile,KMe(r.file,r.start)))});function KMe(e,t){const r=Fi(e,t);return C.assert(Ml(r.parent),"token should be at the constructor declaration"),r.parent}function XMe(e,t,r){const i=L.createExpressionStatement(L.createCallExpression(L.createSuper(),void 0,se));e.insertNodeAtConstructorStart(t,r,i)}var YMe="fixEnableJsxFlag",$Me=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];Sa({errorCodes:$Me,getCodeActions:function(t){const{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;const i=Rr.ChangeTracker.with(t,o=>QMe(o,r));return[yh(YMe,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[YMe],getAllCodeActions:e=>Ss(e,$Me,t=>{const{configFile:r}=e.program.getCompilerOptions();r!==void 0&&QMe(t,r)})});function QMe(e,t){wpe(e,t,"jsx",L.createStringLiteral("react"))}var ape="fixNaNEquality",ZMe=[f.This_condition_will_always_return_0.code];Sa({errorCodes:ZMe,getCodeActions(e){const{sourceFile:t,span:r,program:i}=e,o=ePe(i,t,r);if(o===void 0)return;const{suggestion:s,expression:l,arg:u}=o,d=Rr.ChangeTracker.with(e,g=>tPe(g,t,u,l));return[aa(ape,d,[f.Use_0,s],ape,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[ape],getAllCodeActions:e=>Ss(e,ZMe,(t,r)=>{const i=ePe(e.program,r.file,Id(r.start,r.length));i&&tPe(t,r.file,i.arg,i.expression)})});function ePe(e,t,r){const i=hn(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;const o=hn(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=Wpe(o.file,Id(o.start,o.length));if(s!==void 0&&St(s)&&Nr(s.parent))return{suggestion:$et(o.messageText),expression:s.parent,arg:s}}function tPe(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 $et(e){const[,t]=s_(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=bu(r);if(s>=5&&s<99){const g=Rr.ChangeTracker.with(t,h=>{wpe(h,i,"module",L.createStringLiteral("esnext"))});o.push(yh("fixModuleOption",g,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=Ga(r);if(u<4||u>99){const g=Rr.ChangeTracker.with(t,h=>{if(!JN(i))return;const E=[["target",L.createStringLiteral("es2017")]];s===1&&E.push(["module",L.createStringLiteral("commonjs")]),kpe(h,i,E)});o.push(yh("fixTargetOption",g,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}});var spe="fixPropertyAssignment",nPe=[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:nPe,fixIds:[spe],getCodeActions(e){const{sourceFile:t,span:r}=e,i=iPe(t,r.start),o=Rr.ChangeTracker.with(e,s=>rPe(s,e.sourceFile,i));return[aa(spe,o,[f.Change_0_to_1,"=",":"],spe,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ss(e,nPe,(t,r)=>rPe(t,r.file,iPe(r.file,r.start)))});function rPe(e,t,r){e.replaceNode(t,r,L.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function iPe(e,t){return ha(Fi(e,t).parent,Ud)}var lpe="extendsInterfaceBecomesImplements",oPe=[f.Cannot_extend_an_interface_0_Did_you_mean_implements.code];Sa({errorCodes:oPe,getCodeActions(e){const{sourceFile:t}=e,r=aPe(t,e.span.start);if(!r)return;const{extendsToken:i,heritageClauses:o}=r,s=Rr.ChangeTracker.with(e,l=>sPe(l,t,i,o));return[aa(lpe,s,f.Change_extends_to_implements,lpe,f.Change_all_extended_interfaces_to_implements)]},fixIds:[lpe],getAllCodeActions:e=>Ss(e,oPe,(t,r)=>{const i=aPe(r.file,r.start);i&&sPe(t,r.file,i.extendsToken,i.heritageClauses)})});function aPe(e,t){const r=Fi(e,t),i=hd(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function sPe(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(;uuPe(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=>Ss(e,cPe,(t,r)=>{const i=dPe(r.file,r.start,r.code);i&&uPe(t,e.sourceFile,i)})});function dPe(e,t,r){const i=Fi(e,t);if(He(i)||eo(i))return{node:i,className:r===lPe?hd(i).name.text:void 0}}function uPe(e,t,{node:r,className:i}){Op(r),e.replaceNode(t,r,L.createPropertyAccessExpression(i?L.createIdentifier(i):L.createThis(),r))}var dpe="fixInvalidJsxCharacters_expression",MK="fixInvalidJsxCharacters_htmlEntity",pPe=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code];Sa({errorCodes:pPe,fixIds:[dpe,MK],getCodeActions(e){const{sourceFile:t,preferences:r,span:i}=e,o=Rr.ChangeTracker.with(e,l=>upe(l,r,t,i.start,!1)),s=Rr.ChangeTracker.with(e,l=>upe(l,r,t,i.start,!0));return[aa(dpe,o,f.Wrap_invalid_character_in_an_expression_container,dpe,f.Wrap_all_invalid_characters_in_an_expression_container),aa(MK,s,f.Convert_invalid_character_to_its_html_entity_code,MK,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ss(e,pPe,(t,r)=>upe(t,e.preferences,r.file,r.start,e.fixId===MK))}});var fPe={">":">","}":"}"};function Qet(e){return Rs(fPe,e)}function upe(e,t,r,i,o){const s=r.getText()[i];if(!Qet(s))return;const l=o?fPe[s]:`{${wP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var PK="deleteUnmatchedParameter",mPe="renameUnmatchedParameter",hPe=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];Sa({fixIds:[PK,mPe],errorCodes:hPe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=[],s=_Pe(r,i.start);if(s)return Un(o,Zet(t,s)),Un(o,ett(t,s)),o},getAllCodeActions:function(t){const r=new Map;return vx(Rr.ChangeTracker.with(t,i=>{bx(t,hPe,({file:o,start:s})=>{const l=_Pe(o,s);l&&r.set(l.signature,Un(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===PK){const l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,u=>!l.has(u))}})}))}});function Zet(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){const o=Rr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return aa(PK,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],PK,f.Delete_all_unused_param_tags)}function ett(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Ze(i.parameters))return;const s=e.sourceFile,l=kT(i),u=new Set;for(const y of l)mf(y)&&He(y.name)&&u.add(y.name.escapedText);const d=Bn(i.parameters,y=>He(y.name)&&!u.has(y.name.escapedText)?y.name.getText(s):void 0);if(d===void 0)return;const g=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,Bt(l,E=>E===o?g:E)));return yh(mPe,h,[f.Rename_param_tag_name_0_to_1,t.getText(s),d])}function _Pe(e,t){const r=Fi(e,t);if(r.parent&&mf(r.parent)&&He(r.parent.name)){const i=r.parent,o=xS(i),s=BT(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var ppe="fixUnreferenceableDecoratorMetadata",ttt=[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:ttt,getCodeActions:e=>{const t=ntt(e.sourceFile,e.program,e.span.start);if(!t)return;const r=Rr.ChangeTracker.with(e,s=>t.kind===277&&itt(s,e.sourceFile,t,e.program)),i=Rr.ChangeTracker.with(e,s=>rtt(s,e.sourceFile,t,e.program));let o;return r.length&&(o=Un(o,yh(ppe,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=Un(o,yh(ppe,i,f.Use_import_type))),o},fixIds:[ppe]});function ntt(e,t,r){const i=ni(Fi(e,r),He);if(!i||i.parent.kind!==184)return;const s=t.getTypeChecker().getSymbolAtLocation(i);return hn((s==null?void 0:s.declarations)||se,Rp(jm,Eu,Fc))}function rtt(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();hne(o,u=>{if(xd(u.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function itt(e,t,r,i){gx.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var fz="unusedIdentifier",fpe="unusedIdentifier_prefix",mpe="unusedIdentifier_delete",LK="unusedIdentifier_deleteImports",hpe="unusedIdentifier_infer",gPe=[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:gPe,getCodeActions(e){const{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),u=Fi(r,e.span.start);if(Tm(u))return[HP(Rr.ChangeTracker.with(e,y=>y.delete(r,u)),f.Remove_template_tag)];if(u.kind===30){const y=Rr.ChangeTracker.with(e,E=>vPe(E,r,u));return[HP(y,f.Remove_type_parameters)]}const d=bPe(u);if(d){const y=Rr.ChangeTracker.with(e,E=>E.delete(r,d));return[aa(fz,y,[f.Remove_import_from_0,ere(d)],LK,f.Delete_all_unused_imports)]}else if(_pe(u)){const y=Rr.ChangeTracker.with(e,E=>kK(r,u,E,s,l,i,o,!1));if(y.length)return[aa(fz,y,[f.Remove_unused_declaration_for_Colon_0,u.getText(r)],LK,f.Delete_all_unused_imports)]}if(ff(u.parent)||pv(u.parent)){if(to(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,Bt(y,A=>A.getText(r)).join(", ")];return[HP(Rr.ChangeTracker.with(e,A=>ott(A,r,u.parent)),E)]}return[HP(Rr.ChangeTracker.with(e,y=>att(e,y,r,u.parent)),f.Remove_unused_destructuring_declaration)]}if(TPe(r,u))return[HP(Rr.ChangeTracker.with(e,y=>SPe(y,r,u.parent)),f.Remove_variable_statement)];if(He(u)&&Zl(u.parent))return[HP(Rr.ChangeTracker.with(e,y=>xPe(y,r,u.parent)),[f.Remove_unused_declaration_for_Colon_0,u.getText(r)])];const g=[];if(u.kind===140){const y=Rr.ChangeTracker.with(e,A=>yPe(A,r,u)),E=ha(u.parent,v1).typeParameter.name.text;g.push(aa(fz,y,[f.Replace_infer_0_with_unknown,E],hpe,f.Replace_all_unused_infer_with_unknown))}else{const y=Rr.ChangeTracker.with(e,E=>kK(r,u,E,s,l,i,o,!1));if(y.length){const E=va(u.parent)?u.parent:u;g.push(HP(y,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}const h=Rr.ChangeTracker.with(e,y=>EPe(y,t,r,u));return h.length&&g.push(aa(fz,h,[f.Prefix_0_with_an_underscore,u.getText(r)],fpe,f.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[fpe,mpe,LK,hpe],getAllCodeActions:e=>{const{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Ss(e,gPe,(l,u)=>{const d=Fi(t,u.start);switch(e.fixId){case fpe:EPe(l,u.code,t,d);break;case LK:{const g=bPe(d);g?l.delete(t,g):_pe(d)&&kK(t,d,l,o,s,r,i,!0);break}case mpe:{if(d.kind===140||_pe(d))break;if(Tm(d))l.delete(t,d);else if(d.kind===30)vPe(l,t,d);else if(ff(d.parent)){if(d.parent.parent.initializer)break;(!to(d.parent.parent)||APe(d.parent.parent,o,s))&&l.delete(t,d.parent.parent)}else{if(pv(d.parent.parent)&&d.parent.parent.parent.initializer)break;TPe(t,d)?SPe(l,t,d.parent):He(d)&&Zl(d.parent)?xPe(l,t,d.parent):kK(t,d,l,o,s,r,i,!0)}break}case hpe:d.kind===140&&yPe(l,t,d);break;default:C.fail(JSON.stringify(e.fixId))}})}});function yPe(e,t,r){e.replaceNode(t,r.parent,L.createKeywordTypeNode(159))}function HP(e,t){return aa(fz,e,t,mpe,f.Delete_all_unused_declarations)}function vPe(e,t,r){e.delete(t,C.checkDefined(ha(r.parent,AG).typeParameters,"The type parameter to delete should exist"))}function _pe(e){return e.kind===102||e.kind===80&&(e.parent.kind===277||e.parent.kind===274)}function bPe(e){return e.kind===102?ni(e.parent,vl):void 0}function TPe(e,t){return _d(t.parent)&&$a(t.parent.getChildren(e))===t}function SPe(e,t,r){e.delete(t,r.parent.kind===244?r.parent:r)}function ott(e,t,r){$e(r.elements,i=>e.delete(t,i))}function att(e,t,r,{parent:i}){if(yi(i)&&i.initializer&&yS(i.initializer))if(_d(i.parent)&&Ze(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:gy(e.host,e.formatContext.options)+r.text.slice(R7(r.text,s-1),s),suffix:NO(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function EPe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ha(i.parent,v1).typeParameter.name),He(i)&&stt(i)&&(e.replaceNode(r,i,L.createIdentifier(`_${i.text}`)),to(i.parent)&&OR(i.parent).forEach(o=>{He(o.name)&&e.replaceNode(r,o.name,L.createIdentifier(`_${o.name.text}`))})))}function stt(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 kK(e,t,r,i,o,s,l,u){ltt(t,r,e,i,o,s,l,u),He(t)&&Ys.Core.eachSymbolReferenceInFile(t,i,e,d=>{qr(d.parent)&&d.parent.name===d&&(d=d.parent),!u&&ptt(d)&&r.delete(e,d.parent.parent)})}function ltt(e,t,r,i,o,s,l,u){const{parent:d}=e;if(to(d))ctt(t,r,d,i,o,s,l,u);else if(!(u&&He(e)&&Ys.Core.isSymbolReferencedInFile(e,i,r))){const g=jm(d)?e:va(d)?d.parent:d;C.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function ctt(e,t,r,i,o,s,l,u=!1){if(dtt(i,t,r,o,s,l,u))if(r.modifiers&&r.modifiers.length>0&&(!He(r.name)||Ys.Core.isSymbolReferencedInFile(r.name,i,t)))for(const d of r.modifiers)Aa(d)&&e.deleteModifier(t,d);else!r.initializer&&APe(r,i,o)&&e.delete(t,r)}function APe(e,t,r){const i=e.parent.parameters.indexOf(e);return!Ys.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function dtt(e,t,r,i,o,s,l){const{parent:u}=r;switch(u.kind){case 175:case 177:const d=u.parameters.indexOf(r),g=Nl(u)?u.name:u,h=Ys.Core.getReferencedSymbolsForNode(u.pos,g,o,i,s);if(h){for(const y of h)for(const E of y.references)if(E.kind===Ys.EntryKind.Node){const A=zM(E.node)&&Zo(E.node.parent)&&E.node.parent.arguments.length>d,R=qr(E.node.parent)&&zM(E.node.parent.expression)&&Zo(E.node.parent.parent)&&E.node.parent.parent.arguments.length>d,N=(Nl(E.node.parent)||Vm(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&&utt(e,t,u.name)?IPe(u,r,l):!0;case 219:case 220:return IPe(u,r,l);case 179:return!1;case 178:return!0;default:return C.failBadSyntaxKind(u)}}function utt(e,t,r){return!!Ys.Core.eachSymbolReferenceInFile(r,e,t,i=>He(i)&&Zo(i.parent)&&i.parent.arguments.includes(i))}function IPe(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=>He(s.name)&&!s.symbol.isReferenced):o===i.length-1}function ptt(e){return(Nr(e.parent)&&e.parent.left===e||(Tj(e.parent)||YT(e.parent))&&e.parent.operand===e)&&od(e.parent.parent)}function xPe(e,t,r){const i=r.symbol.declarations;if(i)for(const o of i)e.delete(t,o)}var gpe="fixUnreachableCode",RPe=[f.Unreachable_code_detected.code];Sa({errorCodes:RPe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const r=Rr.ChangeTracker.with(e,i=>DPe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[aa(gpe,r,f.Remove_unreachable_code,gpe,f.Remove_all_unreachable_code)]},fixIds:[gpe],getAllCodeActions:e=>Ss(e,RPe,(t,r)=>DPe(t,r.file,r.start,r.length,r.code))});function DPe(e,t,r,i,o){const s=Fi(t,r),l=Dn(s,Gi);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=(ea(l.parent)?l.parent:l).parent;if(!ea(l.parent)||l===$a(l.parent.statements))switch(u.kind){case 246:if(u.elseStatement){if(ea(l.parent))break;e.replaceNode(t,l,L.createBlock(se));return}case 248:case 249:e.delete(t,u);return}if(ea(l.parent)){const d=r+i,g=C.checkDefined(ftt(GV(l.parent.statements,l),h=>h.posNPe(r,e.sourceFile,e.span.start));return[aa(ype,t,f.Remove_unused_label,ype,f.Remove_all_unused_labels)]},fixIds:[ype],getAllCodeActions:e=>Ss(e,CPe,(t,r)=>NPe(t,r.file,r.start))});function NPe(e,t,r){const i=Fi(t,r),o=ha(i.parent,Lb),s=i.getStart(t),l=o.statement.getStart(t),u=Gf(s,l,t)?l:ka(t.text,Es(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:u})}var MPe="fixJSDocTypes_plain",vpe="fixJSDocTypes_nullable",PPe=[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:PPe,getCodeActions(e){const{sourceFile:t}=e,r=e.program.getTypeChecker(),i=kPe(t,e.span.start,r);if(!i)return;const{typeNode:o,type:s}=i,l=o.getText(t),u=[d(s,MPe,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===315&&u.push(d(s,vpe,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function d(g,h,y){const E=Rr.ChangeTracker.with(e,A=>LPe(A,t,o,g,r));return aa("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(g)],h,y)}},fixIds:[MPe,vpe],getAllCodeActions(e){const{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Ss(e,PPe,(s,l)=>{const u=kPe(l.file,l.start,o);if(!u)return;const{typeNode:d,type:g}=u,h=d.kind===315&&t===vpe?o.getNullableType(g,32768):g;LPe(s,i,d,h,o)})}});function LPe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function kPe(e,t,r){const i=Dn(Fi(e,t),mtt),o=i&&i.type;return o&&{typeNode:o,type:htt(r,o)}}function mtt(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 htt(e,t){if(RD(t)){const r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Un([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var bpe="fixMissingCallParentheses",wPe=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];Sa({errorCodes:wPe,fixIds:[bpe],getCodeActions(e){const{sourceFile:t,span:r}=e,i=WPe(t,r.start);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>OPe(s,e.sourceFile,i));return[aa(bpe,o,f.Add_missing_call_parentheses,bpe,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ss(e,wPe,(t,r)=>{const i=WPe(r.file,r.start);i&&OPe(t,r.file,i)})});function OPe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function WPe(e,t){const r=Fi(e,t);if(qr(r.parent)){let i=r.parent;for(;qr(i.parent);)i=i.parent;return i.name}if(He(r))return r}var FPe="fixMissingTypeAnnotationOnExports",Tpe="add-annotation",Spe="add-type-assertion",_tt="extract-expression",zPe=[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],gtt=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),BPe=531469,GPe=1;Sa({errorCodes:zPe,fixIds:[FPe],getCodeActions(e){const t=[];return qP(Tpe,t,e,0,r=>r.addTypeAnnotation(e.span)),qP(Tpe,t,e,1,r=>r.addTypeAnnotation(e.span)),qP(Tpe,t,e,2,r=>r.addTypeAnnotation(e.span)),qP(Spe,t,e,0,r=>r.addInlineAssertion(e.span)),qP(Spe,t,e,1,r=>r.addInlineAssertion(e.span)),qP(Spe,t,e,2,r=>r.addInlineAssertion(e.span)),qP(_tt,t,e,0,r=>r.extractAsVariable(e.span)),t},getAllCodeActions:e=>{const t=VPe(e,0,r=>{bx(e,zPe,i=>{r.addTypeAnnotation(i)})});return vx(t.textChanges)}});function qP(e,t,r,i,o){const s=VPe(r,i,o);s.result&&s.textChanges.length&&t.push(aa(e,s.textChanges,s.result,FPe,f.Add_all_missing_type_annotations))}function VPe(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=Ga(l.getCompilerOptions()),g=sE(e.sourceFile,e.program,e.preferences,e.host),h=new Set,y=new Set,E=zb({preserveSourceNewlines:!1}),A=r({addTypeAnnotation:R,addInlineAssertion:O,extractAsVariable:G});return g.writeFixes(o),{result:A,textChanges:o.getChanges()};function R(Re){e.cancellationToken.throwIfCancellationRequested();const ge=Fi(s,Re.start),je=j(ge);if(je)return Zl(je)?N(je):J(je);const Ge=lt(ge);if(Ge)return J(Ge)}function N(Re){var ge;if(y!=null&&y.has(Re))return;y==null||y.add(Re);const je=u.getTypeAtLocation(Re),Ge=u.getPropertiesOfType(je);if(!Re.name||Ge.length===0)return;const We=[];for(const cn of Ge)fp(cn.name,Ga(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),Re),void 0)]))));if(We.length===0)return;const at=[];(ge=Re.modifiers)!=null&&ge.some(cn=>cn.kind===95)&&at.push(L.createModifier(95)),at.push(L.createModifier(138));const Wt=L.createModuleDeclaration(at,Re.name,L.createModuleBlock(We),101441696);return o.insertNodeAfter(s,Re,Wt),[f.Annotate_types_of_properties_expando_function_in_a_namespace]}function P(Re){return!Ds(Re)&&!Zo(Re)&&!Fa(Re)&&!Cd(Re)}function k(Re,ge){return P(Re)&&(Re=L.createParenthesizedExpression(Re)),L.createAsExpression(Re,ge)}function F(Re,ge){return P(Re)&&(Re=L.createParenthesizedExpression(Re)),L.createAsExpression(L.createSatisfiesExpression(Re,_s(ge)),ge)}function O(Re){e.cancellationToken.throwIfCancellationRequested();const ge=Fi(s,Re.start);if(j(ge))return;const Ge=ce(ge,Re);if(!Ge||c1(Ge)||c1(Ge.parent))return;const We=St(Ge),at=Ud(Ge);if(!at&&rd(Ge)||Dn(Ge,Qo)||Dn(Ge,fy)||We&&(Dn(Ge,Fp)||Dn(Ge,Ri))||qf(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}=fe(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(Re){e.cancellationToken.throwIfCancellationRequested();const ge=Fi(s,Re.start),je=ce(ge,Re);if(!je||c1(je)||c1(je.parent)||!St(je))return;if(Cd(je))return o.replaceNode(s,je,k(je,L.createTypeReferenceNode("const"))),[f.Mark_array_literal_as_const];const We=Dn(je,Cc);if(We){if(We===je.parent&&Ds(je))return;const at=L.createUniqueName(Ede(je,s,u,s),16);let Wt=je,cn=je;if(qf(Wt)&&(Wt=Bm(Wt.parent),Je(Wt.parent)?cn=Wt=Wt.parent:cn=k(Wt,L.createTypeReferenceNode("const"))),Ds(Wt))return;const gn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(at,void 0,void 0,cn)],2)),Kn=Dn(je,Gi);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(Re){const ge=Dn(Re,je=>Gi(je)?"quit":WI(je));if(ge&&WI(ge)){let je=ge;if(Nr(je)&&(je=je.left,!WI(je)))return;const Ge=u.getTypeAtLocation(je.expression);if(!Ge)return;const We=u.getPropertiesOfType(Ge);if(vt(We,at=>at.valueDeclaration===ge||at.valueDeclaration===ge.parent)){const at=Ge.symbol.valueDeclaration;if(at){if(Rb(at)&&yi(at.parent))return at.parent;if(Zl(at))return at}}}}function J(Re){if(!(h!=null&&h.has(Re)))switch(h==null||h.add(Re),Re.kind){case 170:case 173:case 261:return Ne(Re);case 220:case 219:case 263:case 175:case 178:return Z(Re,s);case 278:return q(Re);case 264:return ye(Re);case 207:case 208:return ie(Re);default:throw new Error(`Cannot find a fix for the given node ${Re.kind}`)}}function Z(Re,ge){if(Re.type)return;const{typeNode:je}=fe(Re);if(je)return o.tryInsertTypeAnnotation(ge,Re,je),[f.Add_return_type_0,Be(je)]}function q(Re){if(Re.isExportEquals)return;const{typeNode:ge}=fe(Re.expression);if(!ge)return;const je=L.createUniqueName("_default");return o.replaceNodeWithNodes(s,Re,[L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(je,void 0,ge,Re.expression)],2)),L.updateExportAssignment(Re,Re==null?void 0:Re.modifiers,je)]),[f.Extract_default_export_to_variable]}function ye(Re){var ge,je;const Ge=(ge=Re.heritageClauses)==null?void 0:ge.find(gt=>gt.token===96),We=Ge==null?void 0:Ge.types[0];if(!We)return;const{typeNode:at}=fe(We.expression);if(!at)return;const Wt=L.createUniqueName(Re.name?Re.name.text+"Base":"Anonymous",16),cn=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(Wt,void 0,at,We.expression)],2));o.insertNodeBefore(s,Re,cn);const gn=sb(s.text,We.end),Kn=((je=gn==null?void 0:gn[gn.length-1])==null?void 0:je.end)??We.end;return o.replaceRange(s,{pos:We.getFullStart(),end:Kn},Wt,{prefix:" "}),[f.Extract_base_class_to_variable]}function ie(Re){var ge;const je=Re.parent,Ge=Re.parent.parent.parent;if(!je.initializer)return;let We;const at=[];if(He(je.initializer))We={expression:{kind:3,identifier:je.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,je.initializer)],2)))}const Wt=[];pv(Re)?K(Re,Wt,We):pe(Re,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),Di=L.createVariableDeclarationList([or],2),co=L.createVariableStatement(void 0,Di);at.push(co),cn.set(gt,en)}const Kn=gn.element.name;if(pv(Kn))K(Kn,Wt,gn);else if(ff(Kn))pe(Kn,Wt,gn);else{const{typeNode:gt}=fe(Kn);let en=de(gn,cn);if(gn.element.initializer){const Di=(ge=gn.element)==null?void 0:ge.propertyName,co=L.createUniqueName(Di&&He(Di)?Di.text:"temp",16);at.push(L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(co,void 0,void 0,en)],2))),en=L.createConditionalExpression(L.createBinaryExpression(co,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!==Re.parent)))),o.replaceNodeWithNodes(s,Ge,at),[f.Extract_binding_expressions_to_variable]}function K(Re,ge,je){for(let Ge=0;Ge=0;--We){const at=je[We].expression;at.kind===0?Ge=L.createPropertyAccessChain(Ge,void 0,L.createIdentifier(at.text)):at.kind===1?Ge=L.createElementAccessExpression(Ge,ge.get(at.computed)):at.kind===2&&(Ge=L.createElementAccessExpression(Ge,at.arrayIndex))}return Ge}function fe(Re,ge){if(t===1)return Se(Re);let je;if(c1(Re)){const at=u.getSignatureFromDeclaration(Re);if(at){const Wt=u.getTypePredicateOfSignature(at);if(Wt)return Wt.type?{typeNode:be(Wt,Dn(Re,rd)??s,We(Wt.type)),mutatedTarget:!1}:i;je=u.getReturnTypeOfSignature(at)}}else je=u.getTypeAtLocation(Re);if(!je)return i;if(t===2){ge&&(je=ge);const at=u.getWidenedLiteralType(je);if(u.isTypeAssignableTo(at,je))return i;je=at}const Ge=Dn(Re,rd)??s;return to(Re)&&u.requiresAddingImplicitUndefined(Re,Ge)&&(je=u.getUnionType([u.getUndefinedType(),je],0)),{typeNode:re(je,Ge,We(je)),mutatedTarget:!1};function We(at){return(yi(Re)||Po(Re)&&di(Re,264))&&at.flags&8192?1048576:0}}function ve(Re){return L.createTypeQueryNode(_s(Re))}function xe(Re,ge="temp"){const je=!!Dn(Re,Je);return je?Ce(Re,ge,je,Ge=>Ge.elements,qf,L.createSpreadElement,Ge=>L.createArrayLiteralExpression(Ge,!0),Ge=>L.createTupleTypeNode(Ge.map(L.createRestTypeNode))):i}function X(Re,ge="temp"){const je=!!Dn(Re,Je);return Ce(Re,ge,je,Ge=>Ge.properties,Rg,L.createSpreadAssignment,Ge=>L.createObjectLiteralExpression(Ge,!0),L.createIntersectionTypeNode)}function Ce(Re,ge,je,Ge,We,at,Wt,cn){const gn=[],Kn=[];let gt;const en=Dn(Re,Gi);for(const co of Ge(Re))We(co)?(Di(),Ds(co.expression)?(gn.push(ve(co.expression)),Kn.push(co)):or(co.expression)):(gt??(gt=[])).push(co);if(Kn.length===0)return i;return Di(),o.replaceNode(s,Re,Wt(Kn)),{typeNode:cn(gn),mutatedTarget:!0};function or(co){const zt=L.createUniqueName(ge+"_Part"+(Kn.length+1),16),Zr=je?L.createAsExpression(co,L.createTypeReferenceNode("const")):co,Ai=L.createVariableStatement(void 0,L.createVariableDeclarationList([L.createVariableDeclaration(zt,void 0,void 0,Zr)],2));o.insertNodeBefore(s,en,Ai),gn.push(ve(zt)),Kn.push(at(zt))}function Di(){gt&&(or(Wt(gt)),gt=void 0)}}function Je(Re){return vS(Re)&&Wm(Re.type)}function Se(Re){if(to(Re))return i;if(Ud(Re))return{typeNode:ve(Re.name),mutatedTarget:!1};if(Ds(Re))return{typeNode:ve(Re),mutatedTarget:!1};if(Je(Re))return Se(Re.expression);if(Cd(Re)){const ge=Dn(Re,yi),je=ge&&He(ge.name)?ge.name.text:void 0;return xe(Re,je)}if(Fa(Re)){const ge=Dn(Re,yi),je=ge&&He(ge.name)?ge.name.text:void 0;return X(Re,je)}if(yi(Re)&&Re.initializer)return Se(Re.initializer);if(S1(Re)){const{typeNode:ge,mutatedTarget:je}=Se(Re.whenTrue);if(!ge)return i;const{typeNode:Ge,mutatedTarget:We}=Se(Re.whenFalse);return Ge?{typeNode:L.createUnionTypeNode([ge,Ge]),mutatedTarget:je||We}:i}return i}function re(Re,ge,je=0){let Ge=!1;const We=dLe(u,Re,ge,BPe|je,GPe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});if(!We)return;const at=Mpe(We,g,d);return Ge?L.createKeywordTypeNode(133):at}function be(Re,ge,je=0){let Ge=!1;const We=uLe(u,g,Re,ge,d,BPe|je,GPe,{moduleResolverHost:l,trackSymbol(){return!0},reportTruncationError(){Ge=!0}});return Ge?L.createKeywordTypeNode(133):We}function Ne(Re){const{typeNode:ge}=fe(Re);if(ge)return Re.type?o.replaceNode(Fn(Re),Re.type,ge):o.tryInsertTypeAnnotation(Fn(Re),Re,ge),[f.Add_annotation_of_type_0,Be(ge)]}function Be(Re){Cr(Re,1);const ge=E.printNode(4,Re,s);return ge.length>GN?ge.substring(0,GN-3)+"...":(Cr(Re,0),ge)}function lt(Re){return Dn(Re,ge=>gtt.has(ge.kind)&&(!ff(ge)&&!pv(ge)||yi(ge.parent)))}function ce(Re,ge){for(;Re&&Re.endHPe(s,t,i));return[aa(Epe,o,f.Add_async_modifier_to_containing_function,Epe,f.Add_all_missing_async_modifiers)]},fixIds:[Epe],getAllCodeActions:function(t){const r=new Set;return Ss(t,jPe,(i,o)=>{const s=UPe(o.file,o.start);!s||!ym(r,ls(s.insertBefore))||HPe(i,t.sourceFile,s)})}});function ytt(e){if(e.type)return e.type;if(yi(e.parent)&&e.parent.type&&O_(e.parent.type))return e.parent.type.type}function UPe(e,t){const r=Fi(e,t),i=df(r);if(!i)return;let o;switch(i.kind){case 175:o=i.name;break;case 263:case 219:o=Es(i,100,e);break;case 220:const s=i.typeParameters?30:21;o=Es(i,s,e)||$a(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:ytt(i)}}function HPe(e,t,{insertBefore:r,returnType:i}){if(i){const o=ck(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,L.createTypeReferenceNode("Promise",L.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var qPe=[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],Ape="fixPropertyOverrideAccessor";Sa({errorCodes:qPe,getCodeActions(e){const t=JPe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[aa(Ape,t,f.Generate_get_and_set_accessors,Ape,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Ape],getAllCodeActions:e=>Ss(e,qPe,(t,r)=>{const i=JPe(r.file,r.start,r.length,r.code,e);if(i)for(const o of i)t.pushRaw(e.sourceFile,o)})});function JPe(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=Fi(e,t).parent;if(va(d))return;C.assert(fb(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");const g=d.parent;C.assert(ui(g),"erroneous accessors should only be inside classes");const h=lh(g);if(!h)return;const y=us(h.expression),E=uc(y)?y.symbol:u.getSymbolAtLocation(y);if(!E)return;const A=u.getDeclaredTypeOfSymbol(E),R=u.getPropertyOfType(A,Bi(hI(d.name)));if(!R||!R.valueDeclaration)return;s=R.valueDeclaration.pos,l=R.valueDeclaration.end,e=Fn(R.valueDeclaration)}else C.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return _Le(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Ipe="inferFromUsage",KPe=[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:KPe,getCodeActions(e){const{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:u}=e,d=Fi(t,i);let g;const h=Rr.ChangeTracker.with(e,E=>{g=XPe(E,t,d,o,r,s,uS,l,u)}),y=g&&Oo(g);return!y||h.length===0?void 0:[aa(Ipe,h,[vtt(o,d),Al(y)],Ipe,f.Infer_all_types_from_usage)]},fixIds:[Ipe],getAllCodeActions(e){const{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=tC();return Ss(e,KPe,(u,d)=>{XPe(u,t,Fi(d.file,d.start),d.code,r,i,l,o,s)})}});function vtt(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 gp(df(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 btt(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 XPe(e,t,r,i,o,s,l,u,d){if(!WN(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;const{parent:g}=r,h=sE(t,o,d,u);switch(i=btt(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(g)&&l(g)||Po(g)||Su(g))return YPe(e,h,t,g,o,u,s),h.writeFixes(e),g;if(qr(g)){const A=YO(g.name,o,s),R=OP(A,g,o,u);if(R){const N=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,ha(g.parent.parent,od),[N])}return h.writeFixes(e),g}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)?(YPe(e,h,Fn(A.valueDeclaration),A.valueDeclaration,o,u,s),h.writeFixes(e),A.valueDeclaration):void 0}}const y=df(r);if(y===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(gp(y)){$Pe(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=ha(g,to);Ttt(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:Hf(y)&&He(y.name)&&(wK(e,h,t,y,YO(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:gp(y)&&($Pe(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)&&(Stt(e,t,y,o,u,s),E=y);break;default:return C.fail(String(i))}return h.writeFixes(e),E}function YPe(e,t,r,i,o,s,l){He(i.name)&&wK(e,t,r,i,YO(i.name,o,l),o,s)}function Ttt(e,t,r,i,o,s,l,u){if(!He(i.name))return;const d=Itt(o,r,s,u);if(C.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),Ir(o))QPe(e,r,d,s,l);else{const g=Xs(o)&&!Es(o,21,r);g&&e.insertNodeBefore(r,$a(o.parameters),L.createToken(21));for(const{declaration:h,type:y}of d)h&&!h.type&&!h.initializer&&wK(e,t,r,h,y,s,l);g&&e.insertNodeAfter(r,Ba(o.parameters),L.createToken(22))}}function Stt(e,t,r,i,o,s){const l=ZPe(r,t,i,s);if(!l||!l.length)return;const u=Rpe(i,l,s).thisParameter(),d=OP(u,r,i,o);d&&(Ir(r)?Ett(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function Ett(e,t,r,i){e.addJSDocTags(t,r,[L.createJSDocThisTag(void 0,L.createJSDocTypeExpression(i))])}function $Pe(e,t,r,i,o,s,l){const u=Ac(i.parameters);if(u&&He(i.name)&&He(u.name)){let d=YO(i.name,o,l);d===o.getTypeChecker().getAnyType()&&(d=YO(u.name,o,l)),Ir(i)?QPe(e,r,[{declaration:u,type:d}],o,s):wK(e,t,r,u,d,o,s)}}function wK(e,t,r,i,o,s,l){const u=OP(o,i,s,l);if(u)if(Ir(r)&&i.kind!==172){const d=yi(i)?ni(i.parent.parent,sc):i;if(!d)return;const g=L.createJSDocTypeExpression(u),h=Hf(i)?L.createJSDocReturnTag(void 0,g,void 0):L.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,d,[h])}else Att(u,i,r,e,t,Ga(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,u)}function Att(e,t,r,i,o,s){const l=lE(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?($e(l.symbols,u=>o.addImportFromExportedSymbol(u,!0)),!0):!1}function QPe(e,t,r,i,o){const s=r.length&&r[0].declaration.parent;if(!s)return;const l=ji(r,u=>{const d=u.declaration;if(d.initializer||$y(d)||!He(d.name))return;const g=u.type&&OP(u.type,d,i,o);if(g){const h=L.cloneNode(d.name);return Cr(h,7168),{name:L.cloneNode(d.name),param:d,isOptional:!!u.isOptional,typeNode:g}}});if(l.length)if(Xs(s)||Us(s)){const u=Xs(s)&&!Es(s,21,t);u&&e.insertNodeBefore(t,$a(s.parameters),L.createToken(21)),$e(l,({typeNode:d,param:g})=>{const h=L.createJSDocTypeTag(void 0,L.createJSDocTypeExpression(d)),y=L.createJSDocComment(void 0,[h]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,Ba(s.parameters),L.createToken(22))}else{const u=Bt(l,({name:d,typeNode:g,isOptional:h})=>L.createJSDocParameterTag(void 0,d,!!h,L.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,s,u)}}function xpe(e,t,r){return ji(Ys.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==Ys.EntryKind.Span?ni(i.node,He):void 0)}function YO(e,t,r){const i=xpe(e,t,r);return Rpe(t,i,r).single()}function Itt(e,t,r,i){const o=ZPe(e,t,r,i);return o&&Rpe(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:He(s.name)?YO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function ZPe(e,t,r,i){let o;switch(e.kind){case 177:o=Es(e,137,t);break;case 220:case 219:const s=e.parent;o=(yi(s)||Po(s))&&He(s.name)?s.name:e.name;break;case 263:case 175:case 174:o=e.name;break}if(o)return xpe(o,r,i)}function Rpe(e,t,r){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:g,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(be){const Ne=new Map;for(const lt of be)lt.properties&<.properties.forEach((ce,Re)=>{Ne.has(Re)||Ne.set(Re,[]),Ne.get(Re).push(ce)});const Be=new Map;return Ne.forEach((lt,ce)=>{Be.set(ce,u(lt))}),{isNumber:be.some(lt=>lt.isNumber),isString:be.some(lt=>lt.isString),isNumberOrString:be.some(lt=>lt.isNumberOrString),candidateTypes:Ki(be,lt=>lt.candidateTypes),properties:Be,calls:Ki(be,lt=>lt.calls),constructs:Ki(be,lt=>lt.constructs),numberIndex:$e(be,lt=>lt.numberIndex),stringIndex:$e(be,lt=>lt.stringIndex),candidateThisTypes:Ki(be,lt=>lt.candidateThisTypes),inferredTypes:void 0}}function d(){return ye(y(t))}function g(be){if(t.length===0||!be.parameters)return;const Ne=l();for(const lt of t)r.throwIfCancellationRequested(),E(lt,Ne);const Be=[...Ne.constructs||[],...Ne.calls||[]];return be.parameters.map((lt,ce)=>{const Re=[],ge=N_(lt);let je=!1;for(const We of Be)if(We.argumentTypes.length<=ce)je=Ir(be),Re.push(i.getUndefinedType());else if(ge)for(let at=ce;atBe.every(ce=>!ce(lt)))}function q(be){return ye(K(be))}function ye(be){if(!be.length)return i.getAnyType();const Ne=i.getUnionType([i.getStringType(),i.getNumberType()]);let lt=Z(be,[{high:Re=>Re===i.getStringType()||Re===i.getNumberType(),low:Re=>Re===Ne},{high:Re=>!(Re.flags&16385),low:Re=>!!(Re.flags&16385)},{high:Re=>!(Re.flags&114689)&&!(Hr(Re)&16),low:Re=>!!(Hr(Re)&16)}]);const ce=lt.filter(Re=>Hr(Re)&16);return ce.length&&(lt=lt.filter(Re=>!(Hr(Re)&16)),lt.push(ie(ce))),i.getWidenedType(i.getUnionType(lt.map(i.getBaseTypeOfLiteralType),2))}function ie(be){if(be.length===1)return be[0];const Ne=[],Be=[],lt=[],ce=[];let Re=!1,ge=!1;const je=dm();for(const at of be){for(const gn of i.getPropertiesOfType(at))je.add(gn.escapedName,gn.valueDeclaration?i.getTypeOfSymbolAtLocation(gn,gn.valueDeclaration):i.getAnyType());Ne.push(...i.getSignaturesOfType(at,0)),Be.push(...i.getSignaturesOfType(at,1));const Wt=i.getIndexInfoOfType(at,0);Wt&&(lt.push(Wt.type),Re=Re||Wt.isReadonly);const cn=i.getIndexInfoOfType(at,1);cn&&(ce.push(cn.type),ge=ge||cn.isReadonly)}const Ge=GQ(je,(at,Wt)=>{const cn=Wt.lengthi.getBaseTypeOfLiteralType(je)),ge=(lt=be.calls)!=null&<.length?pe(be):void 0;return ge&&Re?ce.push(i.getUnionType([ge,...Re],2)):(ge&&ce.push(ge),Ze(Re)&&ce.push(...Re)),ce.push(...de(be)),ce}function pe(be){const Ne=new Map;be.properties&&be.properties.forEach((Re,ge)=>{const je=i.createSymbol(4,ge);je.links.type=q(Re),Ne.set(ge,je)});const Be=be.calls?[Je(be.calls)]:[],lt=be.constructs?[Je(be.constructs)]:[],ce=be.stringIndex?[i.createIndexInfo(i.getStringType(),q(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Ne,Be,lt,ce)}function de(be){if(!be.properties||!be.properties.size)return[];const Ne=s.filter(Be=>fe(Be,be));return 0ve(Be,be)):[]}function fe(be,Ne){return Ne.properties?!Hc(Ne.properties,(Be,lt)=>{const ce=i.getTypeOfPropertyOfType(be,lt);return ce?Be.calls?!i.getSignaturesOfType(ce,0).length||!i.isTypeAssignableTo(ce,Ce(Be.calls)):!i.isTypeAssignableTo(ce,q(Be)):!0}):!1}function ve(be,Ne){if(!(Hr(be)&4)||!Ne.properties)return be;const Be=be.target,lt=ag(Be.typeParameters);if(!lt)return be;const ce=[];return Ne.properties.forEach((Re,ge)=>{const je=i.getTypeOfPropertyOfType(Be,ge);C.assert(!!je,"generic should have all the properties of its reference."),ce.push(...xe(je,q(Re),lt))}),o[be.symbol.escapedName](ye(ce))}function xe(be,Ne,Be){if(be===Be)return[Ne];if(be.flags&3145728)return Ki(be.types,Re=>xe(Re,Ne,Be));if(Hr(be)&4&&Hr(Ne)&4){const Re=i.getTypeArguments(be),ge=i.getTypeArguments(Ne),je=[];if(Re&&ge)for(let Ge=0;Gece.argumentTypes.length));for(let ce=0;cege.argumentTypes[ce]||i.getUndefinedType())),be.some(ge=>ge.argumentTypes[ce]===void 0)&&(Re.flags|=16777216),Ne.push(Re)}const lt=q(u(be.map(ce=>ce.return_)));return i.createSignature(void 0,void 0,void 0,Ne,lt,void 0,Be,0)}function Se(be,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(Ne)}function re(be,Ne){Ne&&!(Ne.flags&1)&&!(Ne.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(Ne)}}var Dpe="fixReturnTypeInAsyncFunction",eLe=[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:eLe,fixIds:[Dpe],getCodeActions:function(t){const{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=tLe(r,i.getTypeChecker(),o.start);if(!l)return;const{returnTypeNode:u,returnType:d,promisedTypeNode:g,promisedType:h}=l,y=Rr.ChangeTracker.with(t,E=>nLe(E,r,u,g));return[aa(Dpe,y,[f.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(h)],Dpe,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ss(e,eLe,(t,r)=>{const i=tLe(r.file,e.program.getTypeChecker(),r.start);i&&nLe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})});function tLe(e,t,r){if(Ir(e))return;const i=Fi(e,r),o=Dn(i,Ms),s=o==null?void 0: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 nLe(e,t,r,i){e.replaceNode(t,r,L.createTypeReferenceNode("Promise",[i]))}var rLe="disableJsDiagnostics",iLe="disableJsDiagnostics",oLe=ji(Object.keys(f),e=>{const t=f[e];return t.category===1?t.code:void 0});Sa({errorCodes:oLe,getCodeActions:function(t){const{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!Ir(r)||!IM(r,i.getCompilerOptions()))return;const u=r.checkJsDirective?"":gy(s,l.options),d=[yh(rLe,[KDe(r.fileName,[SO(r.checkJsDirective?oc(r.checkJsDirective.pos,r.checkJsDirective.end):Id(0,0),`// @ts-nocheck${u}`)])],f.Disable_checking_for_this_file)];return Rr.isValidLocationToAddComment(r,o.start)&&d.unshift(aa(rLe,Rr.ChangeTracker.with(t,g=>aLe(g,r,o.start)),f.Ignore_this_error_message,iLe,f.Add_ts_ignore_to_all_error_messages)),d},fixIds:[iLe],getAllCodeActions:e=>{const t=new Set;return Ss(e,oLe,(r,i)=>{Rr.isValidLocationToAddComment(i.file,i.start)&&aLe(r,i.file,i.start,t)})}});function aLe(e,t,r,i){const{line:o}=ca(t,r);(!i||rh(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}function Cpe(e,t,r,i,o,s,l){const u=e.symbol.members;for(const d of t)u.has(d.escapedName)||lLe(d,e,r,i,o,s,l,void 0)}function pC(e){return{trackSymbol:()=>!1,moduleResolverHost:Kq(e.program,e.host)}}var sLe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(sLe||{});function lLe(e,t,r,i,o,s,l,u,d=3,g=!1){const h=e.getDeclarations(),y=Ac(h),E=i.program.getTypeChecker(),A=Ga(i.program.getCompilerOptions()),R=(y==null?void 0:y.kind)??172,N=fe(e,y),P=y?Gd(y):0;let k=P&256;k|=P&1?1:P&4?4:0,y&&Yu(y)&&(k|=512);const F=ye(),O=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),G=!!(e.flags&16777216),j=!!(t.flags&33554432)||g,J=Gp(r,o),Z=1|(J===0?268435456:0);switch(R){case 172:case 173:let ve=E.typeToTypeNode(O,t,Z,8,pC(i));if(s){const X=lE(ve,A);X&&(ve=X.typeNode,V1(s,X.symbols))}l(L.createPropertyDeclaration(F,y?K(N):e.getName(),G&&d&2?L.createToken(58):void 0,ve,void 0));break;case 178:case 179:{C.assertIsDefined(h);let X=E.typeToTypeNode(O,t,Z,void 0,pC(i));const Ce=PS(h,y),Je=Ce.secondAccessor?[Ce.firstAccessor,Ce.secondAccessor]:[Ce.firstAccessor];if(s){const Se=lE(X,A);Se&&(X=Se.typeNode,V1(s,Se.symbols))}for(const Se of Je)if(Hf(Se))l(L.createGetAccessorDeclaration(F,K(N),se,de(X),pe(u,J,j)));else{C.assertNode(Se,gp,"The counterpart to a getter should be a setter");const re=uM(Se),be=re&&He(re.name)?Kr(re.name):void 0;l(L.createSetAccessorDeclaration(F,K(N),Ppe(1,[be],[de(X)],1,!1),pe(u,J,j)))}break}case 174:case 175:C.assertIsDefined(h);const xe=O.isUnion()?Ki(O.types,X=>X.getCallSignatures()):O.getCallSignatures();if(!vt(xe))break;if(h.length===1){C.assert(xe.length===1,"One declaration implies one signature");const X=xe[0];q(J,X,F,K(N),pe(u,J,j));break}for(const X of xe)X.declaration&&X.declaration.flags&33554432||q(J,X,F,K(N));if(!j)if(h.length>xe.length){const X=E.getSignatureFromDeclaration(h[h.length-1]);q(J,X,F,K(N),pe(u,J))}else C.assert(h.length===xe.length,"Declarations and signatures should match count"),l(Ntt(E,i,t,xe,K(N),G&&!!(d&1),F,J,u));break}function q(ve,xe,X,Ce,Je){const Se=OK(175,i,ve,xe,Je,Ce,X,G&&!!(d&1),t,s);Se&&l(Se)}function ye(){let ve;return k&&(ve=XA(ve,L.createModifiersFromModifierFlags(k))),ie()&&(ve=Un(ve,L.createToken(164))),ve&&L.createNodeArray(ve)}function ie(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&LS(y))}function K(ve){return He(ve)&&ve.escapedText==="constructor"?L.createComputedPropertyName(L.createStringLiteral(Kr(ve),J===0)):_s(ve,!1)}function pe(ve,xe,X){return X?void 0:_s(ve,!1)||Lpe(xe)}function de(ve){return _s(ve,!1)}function fe(ve,xe){if(Wl(ve)&262144){const X=ve.links.nameType;if(X&&jf(X))return L.createIdentifier(Bi(Uf(X)))}return _s(Oo(xe),!1)}}function OK(e,t,r,i,o,s,l,u,d,g){const h=t.program,y=h.getTypeChecker(),E=Ga(h.getCompilerOptions()),A=Ir(d),R=524545|(r===0?268435456:0),N=y.signatureToSignatureDeclaration(i,e,d,R,8,pC(t));if(!N)return;let P=A?void 0:N.typeParameters,k=N.parameters,F=A?void 0:_s(N.type);if(g){if(P){const J=Zi(P,Z=>{let q=Z.constraint,ye=Z.default;if(q){const ie=lE(q,E);ie&&(q=ie.typeNode,V1(g,ie.symbols))}if(ye){const ie=lE(ye,E);ie&&(ye=ie.typeNode,V1(g,ie.symbols))}return L.updateTypeParameterDeclaration(Z,Z.modifiers,Z.name,q,ye)});P!==J&&(P=bt(L.createNodeArray(J,P.hasTrailingComma),P))}const j=Zi(k,J=>{let Z=A?void 0:J.type;if(Z){const q=lE(Z,E);q&&(Z=q.typeNode,V1(g,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=lE(F,E);J&&(F=J.typeNode,V1(g,J.symbols))}}const O=u?L.createToken(58):void 0,G=N.asteriskToken;if(Us(N))return L.updateFunctionExpression(N,l,N.asteriskToken,ni(s,He),P,k,F,o??N.body);if(Xs(N))return L.updateArrowFunction(N,l,P,k,F,N.equalsGreaterThanToken,o??N.body);if(Nl(N))return L.updateMethodDeclaration(N,l,G,s??L.createIdentifier(""),O,P,k,F,o);if(Zl(N))return L.updateFunctionDeclaration(N,l,N.asteriskToken,ni(s,He),P,k,F,o??N.body)}function Npe(e,t,r,i,o,s,l){const u=Gp(t.sourceFile,t.preferences),d=Ga(t.program.getCompilerOptions()),g=pC(t),h=t.program.getTypeChecker(),y=Ir(l),{typeArguments:E,arguments:A,parent:R}=i,N=y?void 0:h.getContextualType(i),P=Bt(A,ye=>He(ye)?ye.text:qr(ye)&&He(ye.name)?ye.name.text:void 0),k=y?[]:Bt(A,ye=>h.getTypeAtLocation(ye)),{argumentTypeNodes:F,argumentTypeParameters:O}=Dtt(h,r,k,l,d,1,8,g),G=s?L.createNodeArray(L.createModifiersFromModifierFlags(s)):void 0,j=_w(R)?L.createToken(42):void 0,J=y?void 0:xtt(h,O,E),Z=Ppe(A.length,P,F,void 0,y),q=y||N===void 0?void 0:h.typeToTypeNode(N,l,void 0,void 0,g);switch(e){case 175:return L.createMethodDeclaration(G,j,o,void 0,J,Z,q,Lpe(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"||He(o),"Unexpected name"),L.createFunctionDeclaration(G,j,o,J,Z,q,mz(f.Function_not_implemented.message,u));default:C.fail("Unexpected kind")}}function xtt(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 g;return e.getTypeAtLocation(u)===((g=d[1])==null?void 0:g.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 cLe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function WK(e,t,r,i,o,s,l,u){const d=e.typeToTypeNode(r,i,s,l,u);if(d)return Mpe(d,t,o)}function Mpe(e,t,r){const i=lE(e,r);return i&&(V1(t,i.symbols),e=i.typeNode),_s(e)}function Rtt(e,t){var r;C.assert(t.typeArguments);const i=t.typeArguments,o=t.target;for(let s=0;sd===i[g]))return s}return i.length}function dLe(e,t,r,i,o,s){let l=e.typeToTypeNode(t,r,i,o,s);if(l){if(Wp(l)){const u=t;if(u.typeArguments&&l.typeArguments){const d=Rtt(e,u);if(d=i?L.createToken(58):void 0,o?void 0:(r==null?void 0:r[u])||L.createKeywordTypeNode(159),void 0);s.push(h)}return s}function Ntt(e,t,r,i,o,s,l,u,d){let g=i[0],h=i[0].minArgumentCount,y=!1;for(const N of i)h=Math.min(N.minArgumentCount,h),su(N)&&(y=!0),N.parameters.length>=g.parameters.length&&(!su(N)||su(g))&&(g=N);const E=g.parameters.length-(su(g)?1:0),A=g.parameters.map(N=>N.name),R=Ppe(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 Ptt(l,o,s,void 0,R,Mtt(i,e,t,r),u,d)}function Mtt(e,t,r,i){if(Ze(e)){const o=t.getUnionType(Bt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,8,pC(r))}}function Ptt(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||Lpe(l))}function Lpe(e){return mz(f.Method_not_implemented.message,e)}function mz(e,t){return L.createBlock([L.createThrowStatement(L.createNewExpression(L.createIdentifier("Error"),void 0,[L.createStringLiteral(e,t===0)]))],!0)}function kpe(e,t,r){const i=JN(t);if(!i)return;const o=mLe(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,Ope("compilerOptions",L.createObjectLiteralExpression(r.map(([l,u])=>Ope(l,u)),!0)));return}const s=o.initializer;if(Fa(s))for(const[l,u]of r){const d=mLe(s,l);d===void 0?e.insertNodeAtObjectStart(t,s,Ope(l,u)):e.replaceNode(t,d.initializer,u)}}function wpe(e,t,r,i){kpe(e,t,[[r,i]])}function Ope(e,t){return L.createPropertyAssignment(L.createStringLiteral(e),t)}function mLe(e,t){return hn(e.properties,r=>Cc(r)&&!!r.name&&wa(r.name)&&r.name.text===t)}function lE(e,t){let r;const i=st(e,o,Ri);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(iy(s)&&s.qualifier){const l=Lu(s.qualifier);if(!l.symbol)return wn(s,o,void 0);const u=O7(l.symbol,t),d=u!==l.text?hLe(s.qualifier,L.createIdentifier(u)):s.qualifier;r=Un(r,l.symbol);const g=Xn(s.typeArguments,o,Ri);return L.createTypeReferenceNode(d,g)}return wn(s,o,void 0)}}function hLe(e,t){return e.kind===80?t:L.createQualifiedName(hLe(e.left,t),e.right)}function V1(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function Wpe(e,t){const r=Dl(t);let i=Fi(e,t.start);for(;i.ends.replaceNode(t,r,i));return yh(TLe,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:Htt});function Htt(e){const t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?214:215,i=Dn(Fi(t,e.span.start),s=>s.kind===r);if(!i)return[];const o=i.expression;return ELe(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:qtt});function qtt(e){const t=e.sourceFile,r=Dn(Fi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?ELe(e,r):[]}function ELe(e,t){const r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&fg(r.symbol)&&r.symbol.links.originatingImport))return[];const i=[],o=r.symbol.links.originatingImport;if(Qu(o)||Xr(i,Utt(e,o)),St(t)&&!(nd(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(yh(TLe,l,f.Use_synthetic_default_member))}return i}var Fpe="strictClassInitialization",zpe="addMissingPropertyDefiniteAssignmentAssertions",Bpe="addMissingPropertyUndefinedType",Gpe="addMissingPropertyInitializer",ALe=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];Sa({errorCodes:ALe,getCodeActions:function(t){const r=ILe(t.sourceFile,t.span.start);if(!r)return;const i=[];return Un(i,Ktt(t,r)),Un(i,Jtt(t,r)),Un(i,Xtt(t,r)),i},fixIds:[zpe,Bpe,Gpe],getAllCodeActions:e=>Ss(e,ALe,(t,r)=>{const i=ILe(r.file,r.start);if(i)switch(e.fixId){case zpe:xLe(t,r.file,i.prop);break;case Bpe:RLe(t,r.file,i);break;case Gpe:const o=e.program.getTypeChecker(),s=CLe(o,i.prop);if(!s)return;DLe(t,r.file,i.prop,s);break;default:C.fail(JSON.stringify(e.fixId))}})});function ILe(e,t){const r=Fi(e,t);if(He(r)&&Po(r.parent)){const i=xc(r.parent);if(i)return{type:i,prop:r.parent,isJs:Ir(r.parent)}}}function Jtt(e,t){if(t.isJs)return;const r=Rr.ChangeTracker.with(e,i=>xLe(i,e.sourceFile,t.prop));return aa(Fpe,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],zpe,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function xLe(e,t,r){Op(r);const i=L.updatePropertyDeclaration(r,r.modifiers,r.name,L.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function Ktt(e,t){const r=Rr.ChangeTracker.with(e,i=>RLe(i,e.sourceFile,t));return aa(Fpe,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],Bpe,f.Add_undefined_type_to_all_uninitialized_properties)}function RLe(e,t,r){const i=L.createKeywordTypeNode(157),o=dv(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 Xtt(e,t){if(t.isJs)return;const r=e.program.getTypeChecker(),i=CLe(r,t.prop);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>DLe(s,e.sourceFile,t.prop,i));return aa(Fpe,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],Gpe,f.Add_initializers_to_all_uninitialized_properties)}function DLe(e,t,r,i){Op(r);const o=L.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function CLe(e,t){return NLe(e,e.getTypeFromTypeNode(t.type))}function NLe(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 Bn(t.types,r=>NLe(e,r));if(t.isClass()){const r=dy(t.symbol);if(!r||di(r,64))return;const i=vg(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 Vpe="requireInTs",MLe=[f.require_call_may_be_converted_to_an_import.code];Sa({errorCodes:MLe,getCodeActions(e){const t=LLe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>PLe(i,e.sourceFile,t));return[aa(Vpe,r,f.Convert_require_to_import,Vpe,f.Convert_all_require_to_import)]},fixIds:[Vpe],getAllCodeActions:e=>Ss(e,MLe,(t,r)=>{const i=LLe(r.file,e.program,r.start,e.preferences);i&&PLe(t,e.sourceFile,i)})});function PLe(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 LLe(e,t,r,i){const{parent:o}=Fi(e,r);Zu(o,!0)||C.failBadSyntaxKind(o);const s=ha(o.parent,yi),l=Gp(e,i),u=ni(s.name,He),d=ff(s.name)?Ytt(s.name):void 0;if(u||d){const g=$a(o.arguments);return{allowSyntheticDefaults:PI(t.getCompilerOptions()),defaultImportName:u,namedImports:d,statement:ha(s.parent.parent,sc),moduleSpecifier:y1(g)?L.createStringLiteral(g.text,l===0):g}}}function Ytt(e){const t=[];for(const r of e.elements){if(!He(r.name)||r.initializer)return;t.push(L.createImportSpecifier(!1,ni(r.propertyName,He),r.name))}if(t.length)return L.createNamedImports(t)}var jpe="useDefaultImport",kLe=[f.Import_may_be_converted_to_a_default_import.code];Sa({errorCodes:kLe,getCodeActions(e){const{sourceFile:t,span:{start:r}}=e,i=wLe(t,r);if(!i)return;const o=Rr.ChangeTracker.with(e,s=>OLe(s,t,i,e.preferences));return[aa(jpe,o,f.Convert_to_default_import,jpe,f.Convert_all_to_default_imports)]},fixIds:[jpe],getAllCodeActions:e=>Ss(e,kLe,(t,r)=>{const i=wLe(r.file,r.start);i&&OLe(t,r.file,i,e.preferences)})});function wLe(e,t){const r=Fi(e,t);if(!He(r))return;const{parent:i}=r;if(Fc(i)&&py(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(xg(i)&&vl(i.parent.parent)){const o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function OLe(e,t,r,i){e.replaceNode(t,r.importNode,Vb(r.name,void 0,r.moduleSpecifier,Gp(t,i)))}var Upe="useBigintLiteral",WLe=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];Sa({errorCodes:WLe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>FLe(i,t.sourceFile,t.span));if(r.length>0)return[aa(Upe,r,f.Convert_to_a_bigint_numeric_literal,Upe,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[Upe],getAllCodeActions:e=>Ss(e,WLe,(t,r)=>FLe(t,r.file,r))});function FLe(e,t,r){const i=ni(Fi(t,r.start),np);if(!i)return;const o=i.getText(t)+"n";e.replaceNode(t,i,L.createBigIntLiteral(o))}var $tt="fixAddModuleReferTypeMissingTypeof",Hpe=$tt,zLe=[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:zLe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=BLe(r,i.start),s=Rr.ChangeTracker.with(t,l=>GLe(l,r,o));return[aa(Hpe,s,f.Add_missing_typeof,Hpe,f.Add_missing_typeof)]},fixIds:[Hpe],getAllCodeActions:e=>Ss(e,zLe,(t,r)=>GLe(t,e.sourceFile,BLe(r.file,r.start)))});function BLe(e,t){const r=Fi(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 GLe(e,t,r){const i=L.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var qpe="wrapJsxInFragment",VLe=[f.JSX_expressions_must_have_one_parent_element.code];Sa({errorCodes:VLe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=jLe(r,i.start);if(!o)return;const s=Rr.ChangeTracker.with(t,l=>ULe(l,r,o));return[aa(qpe,s,f.Wrap_in_JSX_fragment,qpe,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[qpe],getAllCodeActions:e=>Ss(e,VLe,(t,r)=>{const i=jLe(e.sourceFile,r.start);i&&ULe(t,e.sourceFile,i)})});function jLe(e,t){let o=Fi(e,t).parent.parent;if(!(!Nr(o)&&(o=o.parent,!Nr(o)))&&Ol(o.operatorToken))return o}function ULe(e,t,r){const i=Qtt(r);i&&e.replaceNode(t,r,L.createJsxFragment(L.createJsxOpeningFragment(),i,L.createJsxJsxClosingFragment()))}function Qtt(e){const t=[];let r=e;for(;;)if(Nr(r)&&Ol(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),J2(r.right))return t.push(r.right),t;if(Nr(r.right)){r=r.right;continue}else return}else return}var Jpe="wrapDecoratorInParentheses",HLe=[f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];Sa({errorCodes:HLe,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>qLe(i,t.sourceFile,t.span.start));return[aa(Jpe,r,f.Wrap_in_parentheses,Jpe,f.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Jpe],getAllCodeActions:e=>Ss(e,HLe,(t,r)=>qLe(t,r.file,r.start))});function qLe(e,t,r){const i=Fi(t,r),o=Dn(i,Wc);C.assert(!!o,"Expected position to be owned by a decorator.");const s=L.createParenthesizedExpression(o.expression);e.replaceNode(t,o.expression,s)}var Kpe="fixConvertToMappedObjectType",JLe=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];Sa({errorCodes:JLe,getCodeActions:function(t){const{sourceFile:r,span:i}=t,o=KLe(r,i.start);if(!o)return;const s=Rr.ChangeTracker.with(t,u=>XLe(u,r,o)),l=Kr(o.container.name);return[aa(Kpe,s,[f.Convert_0_to_mapped_object_type,l],Kpe,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[Kpe],getAllCodeActions:e=>Ss(e,JLe,(t,r)=>{const i=KLe(r.file,r.start);i&&XLe(t,r.file,i)})});function KLe(e,t){const r=Fi(e,t),i=ni(r.parent.parent,Mb);if(!i)return;const o=gd(i.parent)?i.parent:ni(i.parent.parent,bm);if(o)return{indexSignature:i,container:o}}function Ztt(e,t){return L.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function XLe(e,t,{indexSignature:r,container:i}){const s=(gd(i)?i.members:i.type.members).filter(h=>!Mb(h)),l=$a(r.parameters),u=L.createTypeParameterDeclaration(void 0,ha(l.name,He),l.type),d=L.createMappedTypeNode(p1(r)?L.createModifier(148):void 0,u,void 0,r.questionToken,r.type,void 0),g=L.createIntersectionTypeNode([...rM(i),d,...s.length?[L.createTypeLiteralNode(s)]:se]);e.replaceNode(t,i,Ztt(i,g))}var YLe="removeAccidentalCallParentheses",ent=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];Sa({errorCodes:ent,getCodeActions(e){const t=Dn(Fi(e.sourceFile,e.span.start),Zo);if(!t)return;const r=Rr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[yh(YLe,r,f.Remove_parentheses)]},fixIds:[YLe]});var Xpe="removeUnnecessaryAwait",$Le=[f.await_has_no_effect_on_the_type_of_this_expression.code];Sa({errorCodes:$Le,getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>QLe(i,t.sourceFile,t.span));if(r.length>0)return[aa(Xpe,r,f.Remove_unnecessary_await,Xpe,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[Xpe],getAllCodeActions:e=>Ss(e,$Le,(t,r)=>QLe(t,r.file,r))});function QLe(e,t,r){const i=ni(Fi(t,r.start),u=>u.kind===135),o=i&&ni(i.parent,Pb);if(!o)return;let s=o;if(Ou(o.parent)){const u=uD(o.expression,!1);if(He(u)){const d=Bc(o.parent.pos,t);d&&d.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var ZLe=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],Ype="splitTypeOnlyImport";Sa({errorCodes:ZLe,fixIds:[Ype],getCodeActions:function(t){const r=Rr.ChangeTracker.with(t,i=>t2e(i,e2e(t.sourceFile,t.span),t));if(r.length)return[aa(Ype,r,f.Split_into_two_separate_import_declarations,Ype,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ss(e,ZLe,(t,r)=>{t2e(t,e2e(e.sourceFile,r),e)})});function e2e(e,t){return Dn(Fi(e,t.start),vl)}function t2e(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 $pe="fixConvertConstToLet",n2e=[f.Cannot_assign_to_0_because_it_is_a_constant.code];Sa({errorCodes:n2e,getCodeActions:function(t){const{sourceFile:r,span:i,program:o}=t,s=r2e(r,i.start,o);if(s===void 0)return;const l=Rr.ChangeTracker.with(t,u=>i2e(u,r,s.token));return[lue($pe,l,f.Convert_const_to_let,$pe,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,r=new Set;return vx(Rr.ChangeTracker.with(e,i=>{bx(e,n2e,o=>{const s=r2e(o.file,o.start,t);if(s&&ym(r,Ta(s.symbol)))return i2e(i,o.file,s.token)})}))},fixIds:[$pe]});function r2e(e,t,r){var i;const s=r.getTypeChecker().getSymbolAtLocation(Fi(e,t));if(s===void 0)return;const l=ni((i=s==null?void 0:s.valueDeclaration)==null?void 0:i.parent,_d);if(l===void 0)return;const u=Es(l,87,e);if(u!==void 0)return{symbol:s,token:u}}function i2e(e,t,r){e.replaceNode(t,r,L.createToken(121))}var Qpe="fixExpectedComma",tnt=f._0_expected.code,o2e=[tnt];Sa({errorCodes:o2e,getCodeActions(e){const{sourceFile:t}=e,r=a2e(t,e.span.start,e.errorCode);if(!r)return;const i=Rr.ChangeTracker.with(e,o=>s2e(o,t,r));return[aa(Qpe,i,[f.Change_0_to_1,";",","],Qpe,[f.Change_0_to_1,";",","])]},fixIds:[Qpe],getAllCodeActions:e=>Ss(e,o2e,(t,r)=>{const i=a2e(r.file,r.start,r.code);i&&s2e(t,e.sourceFile,i)})});function a2e(e,t,r){const i=Fi(e,t);return i.kind===27&&i.parent&&(Fa(i.parent)||Cd(i.parent))?{node:i}:void 0}function s2e(e,t,{node:r}){const i=L.createToken(28);e.replaceNode(t,r,i)}var nnt="addVoidToPromise",l2e="addVoidToPromise",c2e=[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:c2e,fixIds:[l2e],getCodeActions(e){const t=Rr.ChangeTracker.with(e,r=>d2e(r,e.sourceFile,e.span,e.program));if(t.length>0)return[aa(nnt,t,f.Add_void_to_Promise_resolved_without_a_value,l2e,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ss(e,c2e,(t,r)=>d2e(t,r.file,r,e.program,new Set))}});function d2e(e,t,r,i,o){const s=Fi(t,r.start);if(!He(s)||!Zo(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;const l=i.getTypeChecker(),u=l.getSymbolAtLocation(s),d=u==null?void 0:u.valueDeclaration;if(!d||!to(d)||!VS(d.parent.parent)||o!=null&&o.has(d))return;o==null||o.add(d);const g=rnt(d.parent.parent);if(vt(g)){const h=g[0],y=!dv(h)&&!b1(h)&&b1(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==null?void 0: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,ka(t.text,d.parent.parent.pos),"/** @type {Promise} */(")):(!E||E.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"")}}function rnt(e){var t;if(Ir(e)){if(Ou(e.parent)){const r=(t=LT(e.parent))==null?void 0:t.typeExpression.type;if(r&&Wp(r)&&He(r.typeName)&&Kr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var Ex={};x(Ex,{CompletionKind:()=>R2e,CompletionSource:()=>p2e,SortText:()=>Hd,StringCompletions:()=>XK,SymbolOriginInfoKind:()=>f2e,createCompletionDetails:()=>gz,createCompletionDetailsForSymbol:()=>sfe,getCompletionEntriesFromSymbols:()=>ofe,getCompletionEntryDetails:()=>knt,getCompletionEntrySymbol:()=>Ont,getCompletionsAtPosition:()=>unt,getDefaultCommitCharacters:()=>j1,getPropertiesForObjectExpression:()=>qK,moduleSpecifierResolutionCacheAttemptLimit:()=>u2e,moduleSpecifierResolutionLimit:()=>Zpe});var Zpe=100,u2e=1e3,Hd={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"}},c_=[".",",",";"],FK=[".",";"],p2e=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(p2e||{}),f2e=(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))(f2e||{});function int(e){return!!(e.kind&1)}function ont(e){return!!(e.kind&2)}function hz(e){return!!(e&&e.kind&4)}function JP(e){return!!(e&&e.kind===32)}function ant(e){return hz(e)||JP(e)||efe(e)}function snt(e){return(hz(e)||JP(e))&&!!e.isFromPackageJson}function lnt(e){return!!(e.kind&8)}function cnt(e){return!!(e.kind&16)}function m2e(e){return!!(e&&e.kind&64)}function h2e(e){return!!(e&&e.kind&128)}function dnt(e){return!!(e&&e.kind&256)}function efe(e){return!!(e&&e.kind&512)}function _2e(e,t,r,i,o,s,l,u,d){var g,h,y,E;const A=Ls(),R=l||Hk(i.getCompilerOptions())||((g=s.autoImportSpecifierExcludeRegexes)==null?void 0:g.length);let N=!1,P=0,k=0,F=0,O=0;const G=d({tryResolve:J,skippedAny:()=>N,resolvedAny:()=>k>0,resolvedBeyondLimit:()=>k>Zpe}),j=O?` (${(F/O*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}: ${Ls()-A}`),G;function J(Z,q){if(q){const pe=r.getModuleSpecifierForBestExportInfo(Z,o,u);return pe&&P++,pe||"failed"}const ye=R||s.allowIncompleteCompletions&&k{const R=ji(d.entries,N=>{var P;if(!N.hasAction||!N.source||!N.data||g2e(N.data))return N;if(!j2e(N.name,h))return;const{origin:k}=C.checkDefined(C2e(N.name,N.data,i,o)),F=y.get(t.path,N.data.exportMapKey),O=F&&A.tryResolve(F,!td(gm(k.moduleSymbol.name)));if(O==="skipped")return N;if(!O||O==="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:O.moduleSpecifier};return N.data=I2e(G),N.source=ife(G),N.sourceDisplay=[yf(G.moduleSpecifier)],N});return A.skippedAny()||(d.isIncomplete=void 0),R});return d.entries=E,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=T2e(g),d}function tfe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:j1(!1)}}function y2e(e,t,r,i,o,s){const l=Fi(e,t);if(!VR(l)&&!mh(l))return[];const u=mh(l)?l:l.parent;if(!mh(u))return[];const d=u.parent;if(!Yo(d))return[];const g=Pu(e),h=o.includeCompletionsWithSnippetText||void 0,y=_o(u.tags,E=>mf(E)&&E.getEnd()<=t);return ji(d.parameters,E=>{if(!OR(E).length){if(He(E.name)){const A={tabstop:1},R=E.name.text;let N=$O(R,E.initializer,E.dotDotDotToken,g,!1,!1,r,i,o),P=h?$O(R,E.initializer,E.dotDotDotToken,g,!1,!0,r,i,o,A):void 0;return s&&(N=N.slice(1),P&&(P=P.slice(1))),{name:N,kind:"parameter",sortText:Hd.LocationPriority,insertText:h?P:void 0,isSnippet:h}}else if(E.parent.parameters.indexOf(E)===y){const A=`param${y}`,R=v2e(A,E.name,E.initializer,E.dotDotDotToken,g,!1,r,i,o),N=h?v2e(A,E.name,E.initializer,E.dotDotDotToken,g,!0,r,i,o):void 0;let P=R.join(iv(i)+"* "),k=N==null?void 0:N.join(iv(i)+"* ");return s&&(P=P.slice(1),k&&(k=k.slice(1))),{name:P,kind:"parameter",sortText:Hd.LocationPriority,insertText:h?k:void 0,isSnippet:h}}}})}function v2e(e,t,r,i,o,s,l,u,d){if(!o)return[$O(e,r,i,o,!1,s,l,u,d,{tabstop:1})];return g(e,t,r,i,{tabstop:1});function g(y,E,A,R,N){if(ff(E)&&!R){const k={tabstop:N.tabstop},F=$O(y,A,R,o,!0,s,l,u,d,k);let O=[];for(const G of E.elements){const j=h(y,G,k);if(j)O.push(...j);else{O=void 0;break}}if(O)return N.tabstop=k.tabstop,[F,...O]}return[$O(y,A,R,o,!1,s,l,u,d,N)]}function h(y,E,A){if(!E.propertyName&&He(E.name)||He(E.name)){const R=E.propertyName?UN(E.propertyName):E.name.text;if(!R)return;const N=`${y}.${R}`;return[$O(N,E.initializer,E.dotDotDotToken,o,!1,s,l,u,d,A)]}else if(E.propertyName){const R=UN(E.propertyName);return R&&g(`${y}.${R}`,E.name,E.initializer,E.dotDotDotToken,A)}}}function $O(e,t,r,i,o,s,l,u,d,g){if(s&&C.assertIsDefined(g),t&&(e=fnt(e,t)),s&&(e=WS(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=Gp(R,d)===0?268435456:0,k=l.typeToTypeNode(A,Dn(t,Yo),P);if(k){const F=s?GK({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target}):zb({removeComments:!0,module:u.module,moduleResolution:u.moduleResolution,target:u.target});Cr(k,1),h=F.printNode(4,k,R)}}}s&&h==="*"&&(h=`\${${g.tabstop++}:${h}}`)}const y=!o&&r?"...":"",E=s?`\${${g.tabstop++}}`:"";return`@param {${y}${h}} ${e} ${E}`}else{const h=s?`\${${g.tabstop++}}`:"";return`@param ${e} ${h}`}}function fnt(e,t){const r=t.getText().trim();return r.includes(` `)||r.length>80?`[${e}]`:`[${e}=${r}]`}function mnt(e){return{name:ga(e),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords}}function hnt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:j1(t)}}function b2e(e,t,r){return{kind:4,keywordCompletions:M2e(e,t),isNewIdentifierLocation:r}}function _nt(e){switch(e){case 156:return 8;default:C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function T2e(e){return(e==null?void 0:e.kind)===80?zu(e):void 0}function gnt(e,t,r,i,o,s,l,u,d,g){const{symbols:h,contextToken:y,completionKind:E,isInSnippetScope:A,isNewIdentifierLocation:R,location:N,propertyAccessToConvert:P,keywordFilters:k,symbolToOriginInfoMap:F,recommendedCompletion:O,isJsxInitializer:G,isTypeOnlyLocation:j,isJsxIdentifierExpected:J,isRightOfOpenTag:Z,isRightOfDotOrQuestionDot:q,importStatementCompletion:ye,insideJsDocTagTypeExpression:ie,symbolToSortTextMap:K,hasUnresolvedAutoImports:pe,defaultCommitCharacters:de}=s;let fe=s.literals;const ve=r.getTypeChecker();if(jk(e.scriptKind)===1){const re=vnt(N,e);if(re)return re}const xe=Dn(y,xD);if(xe&&(Tie(y)||RS(y,xe.expression))){const re=B7(ve,xe.parent.clauses);fe=fe.filter(be=>!re.hasValue(be)),h.forEach((be,Ne)=>{if(be.valueDeclaration&&fy(be.valueDeclaration)){const Be=ve.getConstantValue(be.valueDeclaration);Be!==void 0&&re.hasValue(Be)&&(F[Ne]={kind:256})}})}const X=OB(),Ce=S2e(e,i);if(Ce&&!R&&(!h||h.length===0)&&k===0)return;const Je=ofe(h,X,void 0,y,N,d,e,t,r,Ga(i),o,E,l,i,u,j,P,J,G,ye,O,F,K,J,Z,g);if(k!==0)for(const re of M2e(k,!ie&&Pu(e)))(j&&CP(qE(re.name))||!j&&nrt(re.name)||!Je.has(re.name))&&(Je.add(re.name),$v(X,re,_z,void 0,!0));for(const re of Vnt(y,d))Je.has(re.name)||(Je.add(re.name),$v(X,re,_z,void 0,!0));for(const re of fe){const be=Tnt(e,l,re);Je.add(be.name),$v(X,be,_z,void 0,!0)}Ce||bnt(e,N.pos,Je,Ga(i),X);let Se;if(l.includeCompletionsWithInsertText&&y&&!Z&&!q&&(Se=Dn(y,HM))){const re=E2e(Se,e,l,i,t,r,u);re&&X.push(re.entry)}return{flags:s.flags,isGlobalCompletion:A,isIncomplete:l.allowIncompleteCompletions&&pe?!0:void 0,isMemberCompletion:ynt(E),isNewIdentifierLocation:R,optionalReplacementSpan:T2e(N),entries:X,defaultCommitCharacters:de??j1(R)}}function S2e(e,t){return!Pu(e)||!!IM(e,t)}function E2e(e,t,r,i,o,s,l){const u=e.clauses,d=s.getTypeChecker(),g=d.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Hn(g.types,h=>h.isLiteral())){const h=B7(d,u),y=Ga(i),E=Gp(t,r),A=cu.createImportAdder(t,s,r,o),R=[];for(const j of g.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=cu.typeToAutoImportableTypeNode(d,A,j,e,y);if(!Z)return;const q=zK(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=Bt(R,j=>L.createCaseClause(j,[])),P=gy(o,l==null?void 0:l.options),k=GK({removeComments:!0,module:i.module,moduleResolution:i.moduleResolution,target:i.target,newLine:kO(P)}),F=l?j=>k.printAndFormatNode(4,j,t,l):j=>k.printNode(4,j,t),O=Bt(N,(j,J)=>r.includeCompletionsWithSnippetText?`${F(j)}$${J+1}`:`${F(j)}`).join(P);return{entry:{name:`${k.printNode(4,N[0],t)} ...`,kind:"",sortText:Hd.GlobalsOrKeywords,insertText:O,hasAction:A.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:A}}}function zK(e,t,r){switch(e.kind){case 184:const i=e.typeName;return BK(i,t,r);case 200:const o=zK(e.objectType,t,r),s=zK(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=zK(e.type,t,r);return u&&(He(u)?u:L.createParenthesizedExpression(u));case 187:return BK(e.exprName,t,r);case 206:C.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function BK(e,t,r){if(He(e))return e;const i=Bi(e.right.escapedText);return JV(i,t)?L.createPropertyAccessExpression(BK(e.left,t,r),i):L.createElementAccessExpression(BK(e.left,t,r),L.createStringLiteral(i,r===0))}function ynt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function vnt(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=!!Es(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),u=zu(r.tagName),d={name:l,kind:"class",kindModifiers:void 0,sortText:Hd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[d],defaultCommitCharacters:j1(!1)}}}function bnt(e,t,r,i,o){lK(e).forEach((s,l)=>{if(s===t)return;const u=Bi(l);!r.has(u)&&fp(u,i)&&(r.add(u),$v(o,{name:u,kind:"warning",kindModifiers:"",sortText:Hd.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},_z))})}function nfe(e,t,r){return typeof r=="object"?OS(r)+"n":Bo(r)?wP(e,t,r):JSON.stringify(r)}function Tnt(e,t,r){return{name:nfe(e,t,r),kind:"string",kindModifiers:"",sortText:Hd.LocationPriority,commitCharacters:[]}}function Snt(e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N,P,k,F,O,G,j,J,Z){var q,ye;let ie,K,pe=Vq(r,s),de,fe,ve=ife(y),xe,X,Ce;const Je=d.getTypeChecker(),Se=y&&cnt(y),re=y&&ont(y)||h;if(y&&int(y))ie=h?`this${Se?"?.":""}[${rfe(l,F,g)}]`:`this${Se?"?.":"."}${g}`;else if((re||Se)&&A){ie=re?h?`[${rfe(l,F,g)}]`:`[${g}]`:g,(Se||A.questionDotToken)&&(ie=`?.${ie}`);const lt=Es(A,25,l)||Es(A,29,l);if(!lt)return;const ce=fo(g,A.name.text)?A.name.end:lt.end;pe=oc(lt.getStart(l),ce)}if(R&&(ie===void 0&&(ie=g),ie=`{${ie}}`,typeof R!="boolean"&&(pe=zu(R,l))),y&&lnt(y)&&A){ie===void 0&&(ie=g);const lt=Bc(A.pos,l);let ce="";lt&&M7(lt.end,lt.parent,l)&&(ce=";"),ce+=`(await ${A.expression.getText()})`,ie=h?`${ce}${ie}`:`${ce}${Se?"?.":"."}${ie}`;const ge=ni(A.parent,Pb)?A.parent:A.expression;pe=oc(ge.getStart(l),A.end)}if(JP(y)&&(xe=[yf(y.moduleSpecifier)],N&&({insertText:ie,replacementSpan:pe}=Nnt(g,N,y,P,l,d,F),fe=F.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(X=!0),O===0&&i&&((q=Bc(i.pos,l,i))==null?void 0:q.kind)!==28&&(Nl(i.parent.parent)||Hf(i.parent.parent)||gp(i.parent.parent)||Rg(i.parent)||((ye=Dn(i.parent,Cc))==null?void 0:ye.getLastToken(l))===i||Ud(i.parent)&&ca(l,i.getEnd()).line!==ca(l,s).line)&&(ve="ObjectLiteralMemberWithComma/",X=!0),F.includeCompletionsWithClassMemberSnippets&&F.includeCompletionsWithInsertText&&O===3&&Ant(e,o,l)){let lt;const ce=A2e(u,d,k,F,g,e,o,s,i,G);if(ce)({insertText:ie,filterText:K,isSnippet:fe,importAdder:lt}=ce),(lt!=null&<.hasFixes()||ce.eraseRange)&&(X=!0,ve="ClassMemberSnippet/");else return}if(y&&h2e(y)&&({insertText:ie,isSnippet:fe,labelDetails:Ce}=y,F.useLabelDetailsInCompletionEntries||(g=g+Ce.detail,Ce=void 0),ve="ObjectLiteralMethodSnippet/",t=Hd.SortBelow(t)),j&&!J&&F.includeCompletionsWithSnippetText&&F.jsxAttributeCompletionStyle&&F.jsxAttributeCompletionStyle!=="none"&&!(o_(o.parent)&&o.parent.initializer)){let lt=F.jsxAttributeCompletionStyle==="braces";const ce=Je.getTypeOfSymbolAtLocation(e,o);F.jsxAttributeCompletionStyle==="auto"&&!(ce.flags&528)&&!(ce.flags&1048576&&hn(ce.types,Re=>!!(Re.flags&528)))&&(ce.flags&402653316||ce.flags&1048576&&Hn(ce.types,Re=>!!(Re.flags&402686084||Kle(Re)))?(ie=`${WS(g)}=${wP(l,F,"$1")}`,fe=!0):lt=!0),lt&&(ie=`${WS(g)}={$1}`,fe=!0)}if(ie!==void 0&&!F.includeCompletionsWithInsertText)return;(hz(y)||JP(y))&&(de=I2e(y),X=!N);const be=Dn(o,M6);if(be){const lt=Ga(u.getCompilationSettings());if(!fp(g,lt))ie=rfe(l,F,g),be.kind===276&&(yd.setText(l.text),yd.resetTokenState(s),yd.scan()===130&&yd.scan()===80||(ie+=" as "+Ent(g,lt)));else if(be.kind===276){const ce=qE(g);ce&&(ce===135||HG(ce))&&(ie=`${g} as ${g}_`)}}const Ne=vv.getSymbolKind(Je,e,o),Be=Ne==="warning"||Ne==="string"?[]:void 0;return{name:g,kind:Ne,kindModifiers:vv.getSymbolModifiers(Je,e),sortText:t,source:ve,hasAction:X?!0:void 0,isRecommended:Mnt(e,E,Je)||void 0,insertText:ie,filterText:K,replacementSpan:pe,sourceDisplay:xe,labelDetails:Ce,isSnippet:fe,isPackageJsonImport:snt(y)||void 0,isImportStatementCompletion:!!N||void 0,data:de,commitCharacters:Be,...Z?{symbol:e}:void 0}}function Ent(e,t){let r=!1,i="",o;for(let s=0;s=65536?2:1)o=e.codePointAt(s),o!==void 0&&(s===0?D_(o,t):ty(o,t))?(r&&(i+="_"),i+=String.fromCodePoint(o),r=!1):r=!0;return r&&(i+="_"),i||"_"}function Ant(e,t,r){return Ir(t)?!1:!!(e.flags&106500)&&(ui(t)||t.parent&&t.parent.parent&&bc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&ui(t.parent.parent)||t.parent&&ND(t)&&ui(t.parent))}function A2e(e,t,r,i,o,s,l,u,d,g){const h=Dn(l,ui);if(!h)return;let y,E=o;const A=o,R=t.getTypeChecker(),N=l.getSourceFile(),P=GK({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,omitTrailingSemicolon:!1,newLine:kO(gy(e,g==null?void 0:g.options))}),k=cu.createImportAdder(N,t,i,e);let F;if(i.includeCompletionsWithSnippetText){y=!0;const ye=L.createEmptyStatement();F=L.createBlock([ye],!0),pj(ye,{kind:0,order:0})}else F=L.createBlock([],!0);let O=0;const{modifiers:G,range:j,decorators:J}=Int(d,N,u),Z=G&64&&h.modifierFlagsCache&64;let q=[];if(cu.addNewNodeForMemberSymbol(s,h,N,{program:t,host:e},i,k,ye=>{let ie=0;Z&&(ie|=64),bc(ye)&&R.getMemberOverrideModifierStatus(h,ye,s)===1&&(ie|=16),q.length||(O=ye.modifierFlagsCache|ie),ye=L.replaceModifiers(ye,O),q.push(ye)},F,cu.PreserveOptionalFlags.Property,!!Z),q.length){const ye=s.flags&8192;let ie=O|16|1;ye?ie|=1024:ie|=136;const K=G&ie;if(G&~ie)return;if(O&4&&K&1&&(O&=-5),K!==0&&!(K&1)&&(O&=-2),O|=K,q=q.map(de=>L.replaceModifiers(de,O)),J!=null&&J.length){const de=q[q.length-1];JS(de)&&(q[q.length-1]=L.replaceDecoratorsAndModifiers(de,J.concat(hS(de)||[])))}const pe=131073;g?E=P.printAndFormatSnippetList(pe,L.createNodeArray(q),N,g):E=P.printSnippetList(pe,L.createNodeArray(q),N)}return{insertText:E,filterText:A,isSnippet:y,importAdder:k,eraseRange:j}}function Int(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(Po(e.parent)&&(s=xnt(e))){e.parent.modifiers&&(i|=Yh(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Wc)||[],l.pos=Math.min(...e.parent.modifiers.map(d=>d.getStart(t))));const u=II(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(O,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,cu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!N||!O_(N))return;let P;if(s.includeCompletionsWithSnippetText){const F=L.createEmptyStatement();P=L.createBlock([F],!0),pj(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,g,void 0,void 0,k,void 0,P)}default:return}}function GK(e){let t;const r=Rr.createWriter(iv(e)),i=zb(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:g,printAndFormatNode:y};function s(E,A){const R=WS(E);if(R!==E){const N=r.getTextPos();A();const P=r.getTextPos();t=Un(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=z7(N,R),F=Ki(A,G=>{const j=Rr.assignPositionsToNode(G);return Nc.formatNodeGivenIndentation(j,P,R.languageVariant,0,0,{...N,options:k})}),O=t?xp(lo(F,t),(G,j)=>G8(G.span,j.span)):F;return Rr.applyChanges(P.text,O)}function g(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=z7(N,R),F=Rr.assignPositionsToNode(A),O=Nc.formatNodeGivenIndentation(F,P,R.languageVariant,0,0,{...N,options:k}),G=t?xp(lo(O,t),(j,J)=>G8(j.span,J.span)):O;return Rr.applyChanges(P.text,G)}}function I2e(e){const t=e.fileName?void 0:gm(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return JP(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:gm(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function Cnt(e,t,r){const i=e.exportName==="default",o=!!e.isPackageJsonImport;return g2e(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 Nnt(e,t,r,i,o,s,l){const u=t.replacementSpan,d=WS(wP(o,l,r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,h=l.includeCompletionsWithSnippetText?"$1":"",y=cu.getImportKind(o,g,s,!0),E=t.couldBeTypeOnlyImportSpecifier,A=t.isTopLevelTypeOnly?` ${ga(156)} `:" ",R=E?`${ga(156)} `:"",N=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${A}${WS(e)}${h} = require(${d})${N}`};case 1:return{replacementSpan:u,insertText:`import${A}${WS(e)}${h} from ${d}${N}`};case 2:return{replacementSpan:u,insertText:`import${A}* as ${WS(e)} from ${d}${N}`};case 0:return{replacementSpan:u,insertText:`import${A}{ ${R}${WS(e)}${h} } from ${d}${N}`}}}function rfe(e,t,r){return/^\d+$/.test(r)?r:wP(e,t,r)}function Mnt(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function ife(e){if(hz(e))return gm(e.moduleSymbol.name);if(JP(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function ofe(e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N,P,k,F,O,G,j,J,Z,q,ye=!1){const ie=Ls(),K=Qnt(i,o),pe=NO(l),de=d.getTypeChecker(),fe=new Map;for(let X=0;XRe.getSourceFile()===o.getSourceFile()));fe.set(re,ce),$v(t,lt,_z,void 0,!0)}return h("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ls()-ie)),{has:X=>fe.has(X),add:X=>fe.set(X,!0)};function ve(X,Ce){var Je;let Se=X.flags;if(o.parent&&dl(o.parent))return!0;if(K&&ni(K,yi)&&(X.valueDeclaration===K||Qo(K.name)&&K.name.elements.some(Ne=>Ne===X.valueDeclaration)))return!1;const re=X.valueDeclaration??((Je=X.declarations)==null?void 0:Je[0]);if(K&&re){if(to(K)&&to(re)){const Ne=K.parent.parameters;if(re.pos>=K.pos&&re.pos=K.pos&&re.posnfe(r,l,O)===o.name);return F!==void 0?{type:"literal",literal:F}:Bn(g,(O,G)=>{const j=A[G],J=jK(O,Ga(u),j,E,d.isJsxIdentifierExpected);return J&&J.name===o.name&&(o.source==="ClassMemberSnippet/"&&O.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&O.flags&8196||ife(j)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:O,location:y,origin:j,contextToken:R,previousToken:N,isJsxInitializer:P,isTypeOnlyLocation:k}:void 0})||{type:"none"}}function knt(e,t,r,i,o,s,l,u,d){const g=e.getTypeChecker(),h=e.getCompilerOptions(),{name:y,source:E,data:A}=o,{previousToken:R,contextToken:N}=VK(i,r);if(px(r,i,R))return XK.getStringLiteralCompletionDetails(y,r,i,R,e,s,d,u);const P=x2e(e,t,r,i,o,s,u);switch(P.type){case"request":{const{request:k}=P;switch(k.kind){case 1:return y0.getJSDocTagNameCompletionDetails(y);case 2:return y0.getJSDocTagCompletionDetails(y);case 3:return y0.getJSDocParameterNameCompletionDetails(y);case 4:return vt(k.keywordCompletions,F=>F.name===y)?afe(y,"keyword",5):void 0;default:return C.assertNever(k)}}case"symbol":{const{symbol:k,location:F,contextToken:O,origin:G,previousToken:j}=P,{codeActions:J,sourceDisplay:Z}=wnt(y,F,O,G,k,e,s,h,r,i,j,l,u,A,E,d),q=efe(G)?G.symbolName:k.name;return sfe(k,q,g,r,F,d,J,Z)}case"literal":{const{literal:k}=P;return afe(nfe(r,u,k),"string",typeof k=="string"?8:7)}case"cases":{const k=E2e(N.parent,r,u,e.getCompilerOptions(),s,e,void 0);if(k!=null&&k.importAdder.hasFixes()){const{entry:F,importAdder:O}=k,G=Rr.ChangeTracker.with({host:s,formatContext:l,preferences:u},O.writeFixes);return{name:F.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:G,description:nE([f.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return N2e().some(k=>k.name===y)?afe(y,"keyword",5):void 0;default:C.assertNever(P)}}function afe(e,t,r){return gz(e,"",t,[yp(e,r)])}function sfe(e,t,r,i,o,s,l,u){const{displayParts:d,documentation:g,symbolKind:h,tags:y}=r.runWithCancellationToken(s,E=>vv.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return gz(t,vv.getSymbolModifiers(r,e),h,d,g,y,l,u)}function gz(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 wnt(e,t,r,i,o,s,l,u,d,g,h,y,E,A,R,N){if(A!=null&&A.moduleSpecifier&&h&&F2e(r||h,d).replacementSpan)return{codeActions:void 0,sourceDisplay:[yf(A.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){const{importAdder:J,eraseRange:Z}=A2e(l,s,u,E,e,o,t,g,r,y);if(J!=null&&J.hasFixes()||Z)return{sourceDisplay:void 0,codeActions:[{changes:Rr.ChangeTracker.with({host:l,formatContext:y,preferences:E},ye=>{J&&J.writeFixes(ye),Z&&ye.deleteRange(d,Z)}),description:J!=null&&J.hasFixes()?nE([f.Includes_imports_of_types_referenced_by_0,e]):nE([f.Update_modifiers_of_0,e])}]}}if(m2e(i)){const J=cu.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:nE([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(hz(i)||JP(i)))return{codeActions:void 0,sourceDisplay:void 0};const P=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:k}=i,F=P.getMergedSymbol(xd(o.exportSymbol||o,P)),O=(r==null?void 0:r.kind)===30&&ru(r.parent),{moduleSpecifier:G,codeAction:j}=cu.getImportCompletionAction(F,k,A==null?void 0:A.exportMapKey,d,e,O,l,s,y,h&&He(h)?h.getStart(d):g,E,N);return C.assert(!(A!=null&&A.moduleSpecifier)||G===A.moduleSpecifier),{sourceDisplay:[yf(G)],codeActions:[j]}}function Ont(e,t,r,i,o,s,l){const u=x2e(e,t,r,i,o,s,l);return u.type==="symbol"?u.symbol:void 0}var R2e=(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))(R2e||{});function Wnt(e,t,r){return Bn(t&&(t.isUnion()?t.types:[t]),i=>{const o=i&&i.symbol;return o&&o.flags&424&&!Zne(o)?lfe(o,e,r):void 0})}function Fnt(e,t,r,i){const{parent:o}=e;switch(e.kind){case 80:return C7(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,xD);return s?dJ(s,i):void 0;case 19:return ID(o)&&!i_(o.parent)&&!e0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:const l=iW.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):N7(e.kind)&&Nr(o)&&N7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function lfe(e,t,r){const i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?$a(i):e.parent&&(znt(e.parent)?e:lfe(e.parent,t,r))}function znt(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function D2e(e,t,r,i,o,s,l,u,d,g){const h=e.getTypeChecker(),y=S2e(r,i);let E=Ls(),A=Fi(r,o);t("getCompletionData: Get current token: "+(Ls()-E)),E=Ls();const R=mv(r,o,A);t("getCompletionData: Is inside comment: "+(Ls()-E));let N=!1,P=!1,k=!1;if(R){if(Hle(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{const yt=Am(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(yt,o)))return{kind:2}}}const Pe=jnt(A,o);if(Pe){if(Pe.tagName.pos<=o&&o<=Pe.tagName.end)return{kind:1};if(a_(Pe))P=!0;else{const yt=gn(Pe);if(yt&&(A=Fi(r,o),(!A||!k_(A)&&(A.parent.kind!==349||A.parent.name!==A))&&(N=Xt(yt))),!N&&mf(Pe)&&(Ol(Pe.name)||Pe.name.pos<=o&&o<=Pe.name.end))return{kind:3,tag:Pe}}}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=Ls();const F=!N&&!P&&Pu(r),O=VK(o,r),G=O.previousToken;let j=O.contextToken;t("getCompletionData: Get previous token: "+(Ls()-E));let J=A,Z,q=!1,ye=!1,ie=!1,K=!1,pe=!1,de=!1,fe,ve=ip(r,o),xe=0,X=!1,Ce=0,Je;if(j){const Pe=F2e(j,r);if(Pe.keywordCompletion){if(Pe.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[mnt(Pe.keywordCompletion)],isNewIdentifierLocation:Pe.isNewIdentifierLocation};xe=_nt(Pe.keywordCompletion)}if(Pe.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(Ce|=2,fe=Pe,X=Pe.isNewIdentifierLocation),!Pe.replacementSpan&&$o(j))return t("Returning an empty list because completion was requested in an invalid position."),xe?b2e(xe,F,Pn().isNewIdentifierLocation):void 0;let yt=j.parent;if(j.kind===25||j.kind===29)switch(q=j.kind===25,ye=j.kind===29,yt.kind){case 212:Z=yt,J=Z.expression;const Gt=dD(Z);if(Ol(Gt)||(Zo(J)||Yo(J))&&J.end===j.pos&&J.getChildCount(r)&&Ba(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(!fe){if(yt&&yt.kind===212&&(j=yt,yt=yt.parent),A.parent===ve)switch(A.kind){case 32:(A.parent.kind===285||A.parent.kind===287)&&(ve=A);break;case 44:A.parent.kind===286&&(ve=A);break}switch(yt.kind){case 288:j.kind===44&&(K=!0,ve=j);break;case 227:if(!W2e(yt))break;case 286:case 285:case 287:de=!0,j.kind===30&&(ie=!0,ve=j);break;case 295:case 294:(G.kind===20||G.kind===80&&G.parent.kind===292)&&(de=!0);break;case 292:if(yt.initializer===G&&G.endp0(Pe?u.getPackageJsonAutoImportProvider():e,u));if(q||ye)Kn();else if(ie)Ne=h.getJsxIntrinsicTagNamesAt(ve),C.assertEachIsDefined(Ne,"getJsxIntrinsicTagNames() should all be defined"),Di(),re=1,xe=0;else if(K){const Pe=j.parent.parent.openingElement.tagName,yt=h.getSymbolAtLocation(Pe);yt&&(Ne=[yt]),re=1,xe=0}else if(!Di())return xe?b2e(xe,F,X):void 0;t("getCompletionData: Semantic work: "+(Ls()-Se));const Ge=G&&Fnt(G,o,r,h),at=!ni(G,ds)&&!de?ji(Ge&&(Ge.isUnion()?Ge.types:[Ge]),Pe=>Pe.isLiteral()&&!(Pe.flags&1024)?Pe.value:void 0):[],Wt=G&&Ge&&Wnt(G,Ge,h);return{kind:0,symbols:Ne,completionKind:re,isInSnippetScope:k,propertyAccessToConvert:Z,isNewIdentifierLocation:X,location:ve,keywordFilters:xe,literals:at,symbolToOriginInfoMap:lt,recommendedCompletion:Wt,previousToken:G,contextToken:j,isJsxInitializer:pe,insideJsDocTagTypeExpression:N,symbolToSortTextMap:ce,isTypeOnlyLocation:ge,isJsxIdentifierExpected:de,isRightOfOpenTag:ie,isRightOfDotOrQuestionDot:q||ye,importStatementCompletion:fe,hasUnresolvedAutoImports:be,flags:Ce,defaultCommitCharacters:Je};function cn(Pe){switch(Pe.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!Pe.constraint;default:return!1}}function gn(Pe){if(cn(Pe)){const yt=Tm(Pe)?Pe.constraint:Pe.typeExpression;return yt&&yt.kind===310?yt:void 0}if(QI(Pe)||R4(Pe))return Pe.class}function Kn(){re=2;const Pe=iy(J),yt=Pe&&!J.isTypeOf||qh(J.parent)||bO(j,r,h),Gt=a7(J);if(Mu(J)||Pe||qr(J)){const gr=pc(J.parent);gr&&(X=!0,Je=[]);let nr=h.getSymbolAtLocation(J);if(nr&&(nr=xd(nr,h),nr.flags&1920)){const Jn=h.getExportsOfModule(nr);C.assertEachIsDefined(Jn,"getExportsOfModule() should all be defined");const ft=Qt=>h.isValidPropertyAccess(Pe?J:J.parent,Qt.name),Mt=Qt=>dfe(Qt,h),jt=gr?Qt=>{var In;return!!(Qt.flags&1920)&&!((In=Qt.declarations)!=null&&In.every(yn=>yn.parent===J.parent))}:Gt?Qt=>Mt(Qt)||ft(Qt):yt||N?Mt:ft;for(const Qt of Jn)jt(Qt)&&Ne.push(Qt);if(!yt&&!N&&nr.declarations&&nr.declarations.some(Qt=>Qt.kind!==308&&Qt.kind!==268&&Qt.kind!==267)){let Qt=h.getTypeOfSymbolAtLocation(nr,J).getNonOptionalType(),In=!1;if(Qt.isNullableType()){const yn=q&&!ye&&s.includeAutomaticOptionalChainCompletions!==!1;(yn||ye)&&(Qt=Qt.getNonNullableType(),yn&&(In=!0))}gt(Qt,!!(J.flags&65536),In)}return}}if(!yt||EI(J)){h.tryGetThisTypeAt(J,!1);let gr=h.getTypeAtLocation(J).getNonOptionalType();if(yt)gt(gr.getNonNullableType(),!1,!1);else{let nr=!1;if(gr.isNullableType()){const Jn=q&&!ye&&s.includeAutomaticOptionalChainCompletions!==!1;(Jn||ye)&&(gr=gr.getNonNullableType(),Jn&&(nr=!0))}gt(gr,!!(J.flags&65536),nr)}}}function gt(Pe,yt,Gt){Pe.getStringIndexType()&&(X=!0,Je=[]),ye&&vt(Pe.getCallSignatures())&&(X=!0,Je??(Je=c_));const gr=J.kind===206?J:J.parent;if(y)for(const nr of Pe.getApparentProperties())h.isValidPropertyAccessForCompletions(gr,Pe,nr)&&en(nr,!1,Gt);else Ne.push(...Vn(JK(Pe,h),nr=>h.isValidPropertyAccessForCompletions(gr,Pe,nr)));if(yt&&s.includeCompletionsWithInsertText){const nr=h.getPromisedTypeOfPromise(Pe);if(nr)for(const Jn of nr.getApparentProperties())h.isValidPropertyAccessForCompletions(gr,nr,Jn)&&en(Jn,!0,Gt)}}function en(Pe,yt,Gt){var gr;const nr=Bn(Pe.declarations,jt=>ni(Oo(jt),va));if(nr){const jt=or(nr.expression),Qt=jt&&h.getSymbolAtLocation(jt),In=Qt&&lfe(Qt,j,h),yn=In&&Ta(In);if(yn&&ym(Re,yn)){const wt=Ne.length;Ne.push(In),ce[Ta(In)]=Hd.GlobalsOrKeywords;const En=In.parent;if(!En||!dI(En)||h.tryGetMemberInModuleExportsAndProperties(In.name,En)!==In)lt[wt]={kind:Mt(2)};else{const xn=td(gm(En.name))?(gr=X2(En))==null?void 0:gr.fileName:void 0,{moduleSpecifier:kn}=(Be||(Be=cu.createImportSpecifierResolver(r,e,u,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:xn,isFromPackageJson:!1,moduleSymbol:En,symbol:In,targetFlags:xd(In,h).flags}],o,HT(ve))||{};if(kn){const ln={kind:Mt(6),moduleSymbol:En,isDefaultExport:!1,symbolName:In.name,exportName:In.name,fileName:xn,moduleSpecifier:kn};lt[wt]=ln}}}else if(s.includeCompletionsWithInsertText){if(yn&&Re.has(yn))return;ft(Pe),Jn(Pe),Ne.push(Pe)}}else ft(Pe),Jn(Pe),Ne.push(Pe);function Jn(jt){Xnt(jt)&&(ce[Ta(jt)]=Hd.LocalDeclarationPriority)}function ft(jt){s.includeCompletionsWithInsertText&&(yt&&ym(Re,Ta(jt))?lt[Ne.length]={kind:Mt(8)}:Gt&&(lt[Ne.length]={kind:16}))}function Mt(jt){return Gt?jt|16:jt}}function or(Pe){return He(Pe)?Pe:qr(Pe)?or(Pe.expression):void 0}function Di(){return(ot()||Ft()||Zr()||le()||ht()||ne()||co()||Fe()||zt()||(Ai(),1))===1}function co(){return dt(j)?(re=5,X=!0,xe=4,1):0}function zt(){const Pe=Ue(j),yt=Pe&&h.getContextualType(Pe.attributes);if(!yt)return 0;const Gt=Pe&&h.getContextualType(Pe.attributes,4);return Ne=lo(Ne,xt(qK(yt,Gt,Pe.attributes,h),Pe.attributes.properties)),he(),re=3,X=!1,1}function Zr(){return fe?(X=!0,mn(),1):0}function Ai(){xe=Lt(j)?5:1,re=1,{isNewIdentifierLocation:X,defaultCommitCharacters:Je}=Pn(),G!==j&&C.assert(!!G,"Expected 'contextToken' to be defined when different from 'previousToken'.");const Pe=G!==j?G.getStart():o,yt=Hi(j,Pe,r)||r;k=Pr(yt);const Gt=(ge?0:111551)|788968|1920|2097152,gr=G&&!HT(G);Ne=lo(Ne,h.getSymbolsInScope(yt,Gt)),C.assertEachIsDefined(Ne,"getSymbolsInScope() should all be defined");for(let nr=0;nrft.getSourceFile()===r)&&(ce[Ta(Jn)]=Hd.GlobalsOrKeywords),gr&&!(Jn.flags&111551)){const ft=Jn.declarations&&hn(Jn.declarations,FR);if(ft){const Mt={kind:64,declaration:ft};lt[nr]=Mt}}}if(s.includeCompletionsWithInsertText&&yt.kind!==308){const nr=h.tryGetThisTypeAt(yt,!1,ui(yt.parent)?yt:void 0);if(nr&&!Knt(nr,r,h))for(const Jn of JK(nr,h))lt[Ne.length]={kind:1},Ne.push(Jn),ce[Ta(Jn)]=Hd.SuggestedClassMembers}mn(),ge&&(xe=j&&vS(j.parent)?6:7)}function Ni(){var Pe;return fe?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||Jq(e.getCompilerOptions())?!0:((Pe=e.getSymlinkCache)==null?void 0:Pe.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||$le(e):!1}function Pr(Pe){switch(Pe.kind){case 308:case 229:case 295:case 242:return!0;default:return Gi(Pe)}}function Ci(){return N||P||!!fe&&Qy(ve.parent)||!Ye(j)&&(bO(j,r,h)||qh(ve)||At(j))}function Ye(Pe){return Pe&&(Pe.kind===114&&(Pe.parent.kind===187||TD(Pe.parent))||Pe.kind===131&&Pe.parent.kind===183)}function At(Pe){if(Pe){const yt=Pe.parent.kind;switch(Pe.kind){case 59:return yt===173||yt===172||yt===170||yt===261||aI(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 mn(){var Pe,yt;if(!Ni()||(C.assert(!(l!=null&&l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;Ce|=1;const gr=G===j&&fe?"":G&&He(G)?G.text.toLowerCase():"",nr=(Pe=u.getModuleSpecifierCache)==null?void 0:Pe.call(u),Jn=wO(r,u,e,s,g),ft=(yt=u.getPackageJsonAutoImportProvider)==null?void 0:yt.call(u),Mt=l?void 0:aC(r,s,u);_2e("collectAutoImports",u,Be||(Be=cu.createImportSpecifierResolver(r,e,u,s)),e,o,s,!!fe,HT(ve),Qt=>{Jn.search(r.path,ie,(In,yn)=>{if(!fp(In,Ga(u.getCompilationSettings()))||!l&&SI(In)||!ge&&!fe&&!(yn&111551)||ge&&!(yn&790504))return!1;const wt=In.charCodeAt(0);return ie&&(wt<65||wt>90)?!1:l?!0:j2e(In,gr)},(In,yn,wt,En)=>{if(l&&!vt(In,la=>l.source===gm(la.moduleSymbol.name))||(In=Vn(In,jt),!In.length))return;const xn=Qt.tryResolve(In,wt)||{};if(xn==="failed")return;let kn=In[0],ln;xn!=="skipped"&&({exportInfo:kn=In[0],moduleSpecifier:ln}=xn);const Ii=kn.exportKind===1,ra=Ii&&mM(C.checkDefined(kn.symbol))||C.checkDefined(kn.symbol);dr(ra,{kind:ln?32:4,moduleSpecifier:ln,symbolName:yn,exportMapKey:En,exportName:kn.exportKind===2?"export=":C.checkDefined(kn.symbol).name,fileName:kn.moduleFileName,isDefaultExport:Ii,moduleSymbol:kn.moduleSymbol,isFromPackageJson:kn.isFromPackageJson})}),be=Qt.skippedAny(),Ce|=Qt.resolvedAny()?8:0,Ce|=Qt.resolvedBeyondLimit()?16:0});function jt(Qt){return EJ(Qt.isFromPackageJson?ft:e,r,ni(Qt.moduleSymbol.valueDeclaration,Yi),Qt.moduleSymbol,s,Mt,je(Qt.isFromPackageJson),nr)}}function dr(Pe,yt){const Gt=Ta(Pe);ce[Gt]!==Hd.GlobalsOrKeywords&&(lt[Ne.length]=yt,ce[Gt]=fe?Hd.LocationPriority:Hd.AutoImportSuggestions,Ne.push(Pe))}function ri(Pe,yt){Ir(ve)||Pe.forEach(Gt=>{if(!ai(Gt))return;const gr=jK(Gt,Ga(i),void 0,0,!1);if(!gr)return;const{name:nr}=gr,Jn=Rnt(Gt,nr,yt,e,u,i,s,d);if(!Jn)return;const ft={kind:128,...Jn};Ce|=32,lt[Ne.length]=ft,Ne.push(Gt)})}function ai(Pe){return!!(Pe.flags&8196)}function Hi(Pe,yt,Gt){let gr=Pe;for(;gr&&!Pq(gr,yt,Gt);)gr=gr.parent;return gr}function $o(Pe){const yt=Ls(),Gt=Uo(Pe)||It(Pe)||Kt(Pe)||Ia(Pe)||yD(Pe);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ls()-yt)),Gt}function Ia(Pe){if(Pe.kind===12)return!0;if(Pe.kind===32&&Pe.parent){if(ve===Pe.parent&&(ve.kind===287||ve.kind===286))return!1;if(Pe.parent.kind===287)return ve.parent.kind!==287;if(Pe.parent.kind===288||Pe.parent.kind===286)return!!Pe.parent.parent&&Pe.parent.parent.kind===285}return!1}function Pn(){if(j){const Pe=j.parent.kind,yt=HK(j);switch(yt){case 28:switch(Pe){case 214:case 215:{const Gt=j.parent.expression;return ca(r,Gt.end).line!==ca(r,o).line?{defaultCommitCharacters:FK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:c_,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:FK,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}case 21:switch(Pe){case 214:case 215:{const Gt=j.parent.expression;return ca(r,Gt.end).line!==ca(r,o).line?{defaultCommitCharacters:FK,isNewIdentifierLocation:!0}:{defaultCommitCharacters:c_,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:FK,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}case 23:switch(Pe){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:switch(Pe){case 268:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}case 19:switch(Pe){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}case 64:switch(Pe){case 261:case 227:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:c_,isNewIdentifierLocation:Pe===229};case 17:return{defaultCommitCharacters:c_,isNewIdentifierLocation:Pe===240};case 134:return Pe===175||Pe===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:c_,isNewIdentifierLocation:!1};case 42:return Pe===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}if(yz(yt))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:c_,isNewIdentifierLocation:!1}}function Uo(Pe){return(mj(Pe)||X9(Pe))&&(yO(Pe,o)||o===Pe.end&&(!!Pe.isUnterminated||mj(Pe)))}function ot(){const Pe=qnt(j);if(!Pe)return 0;const Gt=(JI(Pe.parent)?Pe.parent:void 0)||Pe,gr=O2e(Gt,h);if(!gr)return 0;const nr=h.getTypeFromTypeNode(Gt),Jn=JK(gr,h),ft=JK(nr,h),Mt=new Set;return ft.forEach(jt=>Mt.add(jt.escapedName)),Ne=lo(Ne,Vn(Jn,jt=>!Mt.has(jt.escapedName))),re=0,X=!0,1}function Ft(){if((j==null?void 0:j.kind)===26)return 0;const Pe=Ne.length,yt=Bnt(j,o,r);if(!yt)return 0;re=0;let Gt,gr;if(yt.kind===211){const nr=Ynt(yt,h);if(nr===void 0)return yt.flags&67108864?2:0;const Jn=h.getContextualType(yt,4),ft=(Jn||nr).getStringIndexType(),Mt=(Jn||nr).getNumberIndexType();if(X=!!ft||!!Mt,Gt=qK(nr,Jn,yt,h),gr=yt.properties,Gt.length===0&&!Mt)return 0}else{C.assert(yt.kind===207),X=!1;const nr=Kh(yt.parent);if(!HN(nr))return C.fail("Root declaration is not variable-like.");let Jn=Zy(nr)||!!xc(nr)||nr.parent.parent.kind===251;if(!Jn&&nr.kind===170&&(St(nr.parent)?Jn=!!h.getContextualType(nr.parent):(nr.parent.kind===175||nr.parent.kind===179)&&(Jn=St(nr.parent.parent)&&!!h.getContextualType(nr.parent.parent))),Jn){const ft=h.getTypeAtLocation(yt);if(!ft)return 2;Gt=h.getPropertiesOfType(ft).filter(Mt=>h.isPropertyAccessible(yt,!1,!1,ft,Mt)),gr=yt.elements}}if(Gt&&Gt.length>0){const nr=Oe(Gt,C.checkDefined(gr));Ne=lo(Ne,nr),he(),yt.kind===211&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Ae(Pe),ri(nr,yt))}return 1}function le(){if(!j)return 0;const Pe=j.kind===19||j.kind===28?ni(j.parent,M6):T7(j)?ni(j.parent.parent,M6):void 0;if(!Pe)return 0;T7(j)||(xe=8);const{moduleSpecifier:yt}=Pe.kind===276?Pe.parent.parent:Pe.parent;if(!yt)return X=!0,Pe.kind===276?2:0;const Gt=h.getSymbolAtLocation(yt);if(!Gt)return X=!0,2;re=3,X=!1;const gr=h.getExportsAndPropertiesOfModule(Gt),nr=new Set(Pe.elements.filter(ft=>!Xt(ft)).map(ft=>TS(ft.propertyName||ft.name))),Jn=gr.filter(ft=>ft.escapedName!=="default"&&!nr.has(ft.escapedName));return Ne=lo(Ne,Jn),Jn.length||(xe=0),1}function ht(){if(j===void 0)return 0;const Pe=j.kind===19||j.kind===28?ni(j.parent,I1):j.kind===59?ni(j.parent.parent,I1):void 0;if(Pe===void 0)return 0;const yt=new Set(Pe.elements.map(n4));return Ne=Vn(h.getTypeAtLocation(Pe).getApparentProperties(),Gt=>!yt.has(Gt.escapedName)),1}function ne(){var Pe;const yt=j&&(j.kind===19||j.kind===28)?ni(j.parent,Jf):void 0;if(!yt)return 0;const Gt=Dn(yt,Rp(Yi,pc));return re=5,X=!1,(Pe=Gt.locals)==null||Pe.forEach((gr,nr)=>{var Jn,ft;Ne.push(gr),(ft=(Jn=Gt.symbol)==null?void 0:Jn.exports)!=null&&ft.has(nr)&&(ce[Ta(gr)]=Hd.OptionalMember)}),1}function Fe(){const Pe=Hnt(r,j,ve,o);if(!Pe)return 0;if(re=3,X=!0,xe=j.kind===42?0:ui(Pe)?2:3,!ui(Pe))return 1;const yt=j.kind===27?j.parent.parent:j.parent;let Gt=bc(yt)?Gd(yt):0;if(j.kind===80&&!Xt(j))switch(j.getText()){case"private":Gt=Gt|2;break;case"static":Gt=Gt|256;break;case"override":Gt=Gt|16;break}if(Ql(yt)&&(Gt|=256),!(Gt&2)){const gr=ui(Pe)&&Gt&16?eI(lh(Pe)):rM(Pe),nr=Ki(gr,Jn=>{const ft=h.getTypeAtLocation(Jn);return Gt&256?(ft==null?void 0:ft.symbol)&&h.getPropertiesOfType(h.getTypeOfSymbolAtLocation(ft.symbol,Pe)):ft&&h.getPropertiesOfType(ft)});Ne=lo(Ne,te(nr,Pe.members,Gt)),$e(Ne,(Jn,ft)=>{const Mt=Jn==null?void 0:Jn.valueDeclaration;if(Mt&&bc(Mt)&&Mt.name&&va(Mt.name)){const jt={kind:512,symbolName:h.symbolToString(Jn)};lt[ft]=jt}})}return 1}function it(Pe){return!!Pe.parent&&to(Pe.parent)&&Ml(Pe.parent.parent)&&(WN(Pe.kind)||k_(Pe))}function dt(Pe){if(Pe){const yt=Pe.parent;switch(Pe.kind){case 21:case 28:return Ml(Pe.parent)?Pe.parent:void 0;default:if(it(Pe))return yt.parent}}}function Lt(Pe){if(Pe){let yt;const Gt=Dn(Pe.parent,gr=>ui(gr)?"quit":Ms(gr)&&yt===gr.body?!0:(yt=gr,!1));return Gt&&Gt}}function Ue(Pe){if(Pe){const yt=Pe.parent;switch(Pe.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(Pe.kind===32){const Gt=Bc(Pe.pos,r,void 0);if(!yt.typeArguments||Gt&&Gt.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(Pe,yt){return r.getLineEndOfPosition(Pe.getEnd())=Pe.pos;case 25:return Gt===208;case 59:return Gt===209;case 23:return Gt===208;case 21:return Gt===300||nt(Gt);case 19:return Gt===267;case 30:return Gt===264||Gt===232||Gt===265||Gt===266||aI(Gt);case 126:return Gt===173&&!ui(yt.parent);case 26:return Gt===170||!!yt.parent&&yt.parent.kind===208;case 125:case 123:case 124:return Gt===170&&!Ml(yt.parent);case 130:return Gt===277||Gt===282||Gt===275;case 139:case 153:return!KK(Pe);case 80:{if((Gt===277||Gt===282)&&Pe===yt.name&&Pe.text==="type"||Dn(Pe.parent,yi)&&Rt(Pe,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 Gt!==277;case 42:return Yo(Pe.parent)&&!Nl(Pe.parent)}if(yz(HK(Pe))&&KK(Pe)||it(Pe)&&(!He(Pe)||WN(HK(Pe))||Xt(Pe)))return!1;switch(HK(Pe)){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 Po(Pe.parent)}if(Dn(Pe.parent,ui)&&Pe===G&&Ot(Pe,o))return!1;const nr=VT(Pe.parent,173);if(nr&&Pe!==G&&ui(G.parent.parent)&&o<=G.end){if(Ot(Pe,G.end))return!1;if(Pe.kind!==64&&(Hw(nr)||xF(nr)))return!0}return k_(Pe)&&!Ud(Pe.parent)&&!o_(Pe.parent)&&!((ui(Pe.parent)||gd(Pe.parent)||cl(Pe.parent))&&(Pe!==G||o>G.end))}function Ot(Pe,yt){return Pe.kind!==64&&(Pe.kind===27||!Gf(Pe.end,yt,r))}function nt(Pe){return aI(Pe)&&Pe!==177}function Kt(Pe){if(Pe.kind===9){const yt=Pe.getFullText();return yt.charAt(yt.length-1)==="."}return!1}function Tr(Pe){return Pe.parent.kind===262&&!bO(Pe,r,h)}function Oe(Pe,yt){if(yt.length===0)return Pe;const Gt=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||Xt(Jn))continue;let ft;if(Rg(Jn))Nt(Jn,Gt);else if(Ha(Jn)&&Jn.propertyName)Jn.propertyName.kind===80&&(ft=Jn.propertyName.escapedText);else{const Mt=Oo(Jn);ft=Mt&&Jh(Mt)?aM(Mt):void 0}ft!==void 0&&gr.add(ft)}const nr=Pe.filter(Jn=>!gr.has(Jn.escapedName));return B(Gt,nr),nr}function Nt(Pe,yt){const Gt=Pe.expression,gr=h.getSymbolAtLocation(Gt),nr=gr&&h.getTypeOfSymbolAtLocation(gr,Gt),Jn=nr&&nr.properties;Jn&&Jn.forEach(ft=>{yt.add(ft.name)})}function he(){Ne.forEach(Pe=>{if(Pe.flags&16777216){const yt=Ta(Pe);ce[yt]=ce[yt]??Hd.OptionalMember}})}function B(Pe,yt){if(Pe.size!==0)for(const Gt of yt)Pe.has(Gt.name)&&(ce[Ta(Gt)]=Hd.MemberDeclaredBySpreadAssignment)}function Ae(Pe){for(let yt=Pe;yt!gr.has(nr.escapedName)&&!!nr.declarations&&!(Vf(nr)&2)&&!(nr.valueDeclaration&&nu(nr.valueDeclaration)))}function xt(Pe,yt){const Gt=new Set,gr=new Set;for(const Jn of yt)Xt(Jn)||(Jn.kind===292?Gt.add(PM(Jn.name)):$I(Jn)&&Nt(Jn,gr));const nr=Pe.filter(Jn=>!Gt.has(Jn.escapedName));return B(gr,nr),nr}function Xt(Pe){return Pe.getStart(r)<=o&&o<=Pe.getEnd()}}function Bnt(e,t,r){var i;if(e){const{parent:o}=e;switch(e.kind){case 19:case 28:if(Fa(o)||ff(o))return o;break;case 42:return Nl(o)?ni(o.parent,Fa):void 0;case 134:return ni(o.parent,Fa);case 80:if(e.text==="async"&&Ud(e.parent))return e.parent.parent;{if(Fa(e.parent.parent)&&(Rg(e.parent)||Ud(e.parent)&&ca(r,e.getEnd()).line!==ca(r,t).line))return e.parent.parent;const l=Dn(o,Cc);if((l==null?void 0:l.getLastToken(r))===e&&Fa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(Nl(o.parent)||Hf(o.parent)||gp(o.parent))&&Fa(o.parent.parent))return o.parent.parent;if(Rg(o)&&Fa(o.parent))return o.parent;const s=Dn(o,Cc);if(e.kind!==59&&(s==null?void 0:s.getLastToken(r))===e&&Fa(s.parent))return s.parent}}}function VK(e,t){const r=Bc(e,t);return r&&e<=r.end&&(ug(r)||ep(r.kind))?{contextToken:Bc(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function C2e(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"&&mM(u)||u,{symbol:u,origin:Cnt(t,e,l)}):void 0}function jK(e,t,r,i,o){if(dnt(r))return;const s=ant(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&mk(s.charCodeAt(0))||sM(e))return;const l={name:s,needsConvertPropertyAccess:!1};if(fp(s,t,o?1:0)||e.valueDeclaration&&nu(e.valueDeclaration))return l;if(e.flags&2097152)return{name:s,needsConvertPropertyAccess:!0};switch(i){case 3:return efe(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 UK=[],N2e=Nu(()=>{const e=[];for(let t=83;t<=166;t++)e.push({name:ga(t),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords});return e});function M2e(e,t){if(!t)return P2e(e);const r=e+8+1;return UK[r]||(UK[r]=P2e(e).filter(i=>!Gnt(qE(i.name))))}function P2e(e){return UK[e]||(UK[e]=N2e().filter(t=>{const r=qE(t.name);switch(e){case 0:return!1;case 1:return k2e(r)||r===138||r===144||r===156||r===145||r===128||CP(r)&&r!==157;case 5:return k2e(r);case 2:return yz(r);case 3:return L2e(r);case 4:return WN(r);case 6:return CP(r)||r===87;case 7:return CP(r);case 8:return r===156;default:return C.assertNever(e)}}))}function Gnt(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 L2e(e){return e===148}function yz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Y9(e)}}function k2e(e){return e===134||e===135||e===160||e===130||e===152||e===156||!c6(e)&&!yz(e)}function HK(e){return He(e)?KE(e)??0:e.kind}function Vnt(e,t){const r=[];if(e){const i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(vl(o)||fc(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:ga(132),kind:"keyword",kindModifiers:"",sortText:Hd.GlobalsOrKeywords})}return r}function jnt(e,t){return Dn(e,r=>VR(r)&&ZD(r,t)?!0:mh(r)?"quit":!1)}function qK(e,t,r,i){const o=t&&t!==e,s=i.getUnionType(Vn(e.flags&1048576?e.types:[e],g=>!i.getPromisedTypeOfPromise(g))),l=o&&!(t.flags&3)?i.getUnionType([s,t]):s,u=Unt(l,r,i);return l.isClass()&&w2e(u)?[]:o?Vn(u,d):u;function d(g){return Ze(g.declarations)?vt(g.declarations,h=>h.parent!==r):!0}}function Unt(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Vn(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&w2e(i.getApparentProperties())))):e.getApparentProperties()}function w2e(e){return vt(e,t=>!!(Vf(t)&6))}function JK(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 Hnt(e,t,r,i){switch(r.kind){case 353:return ni(r.parent,DI);case 1:const o=ni(tl(ha(r.parent,Yi).statements),DI);if(o&&!Es(o,20,e))return o;break;case 81:if(ni(r.parent,Po))return Dn(r,ui);break;case 80:{if(KE(r)||Po(r.parent)&&r.parent.initializer===r)return;if(KK(r))return Dn(r,DI)}}if(t){if(r.kind===137||He(t)&&Po(t.parent)&&ui(r))return Dn(t,ui);switch(t.kind){case 64:return;case 27:case 20:return KK(r)&&r.parent.name===r?r.parent.parent:ni(r,DI);case 19:case 28:return ni(t.parent,DI);default:if(DI(r)){if(ca(e,t.getEnd()).line!==ca(e,i).line)return r;const o=ui(t.parent.parent)?yz:L2e;return o(t.kind)||t.kind===42||He(t)&&o(KE(t)??0)?t.parent.parent:void 0}return}}}function qnt(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(wu(t))return t;break;case 27:case 28:case 80:if(t.kind===172&&wu(t.parent))return t.parent;break}}function O2e(e,t){if(!e)return;if(Ri(e)&&RF(e.parent))return t.getTypeArgumentConstraint(e);const r=O2e(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 KK(e){return e.parent&&vF(e.parent)&&DI(e.parent.parent)}function Jnt(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&&eo(r)&&!!hd(r);case"<":return!!r&&r.kind===30&&(!Nr(r.parent)||W2e(r.parent));case"/":return!!r&&(ds(r)?!!bk(r):r.kind===44&&jS(r.parent));case" ":return!!r&&BM(r)&&r.parent.kind===308;default:return C.assertNever(t)}}function W2e({left:e}){return Ol(e)}function Knt(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 Xnt(e){return!!(e.valueDeclaration&&Gd(e.valueDeclaration)&256&&ui(e.valueDeclaration.parent))}function Ynt(e,t){const r=t.getContextualType(e);if(r)return r;const i=Bm(e.parent);if(Nr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(St(i))return t.getContextualType(i)}function F2e(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,vl))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=ni(u,Fc))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&B2e(u,e),replacementSpan:$nt(u)};function d(){const g=e.parent;if(Fc(g)){const h=g.getLastToken(t);if(He(e)&&h!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,cfe(g.moduleReference)?g:void 0}if(B2e(g,e)&&G2e(g.parent))return g;if(r_(g)||xg(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),G2e(g))if(e.kind===20||e.kind===80)l=!0,s=161;else return g.parent.parent;return}if(fc(g)&&e.kind===42||Jf(g)&&e.kind===20){l=!0,s=161;return}if(BM(e)&&Yi(g))return s=156,e;if(BM(e)&&vl(g))return s=156,cfe(g.moduleSpecifier)?g:void 0}}function $nt(e){var t;if(!e)return;const r=Dn(e,Rp(vl,Fc,a_))??e,i=r.getSourceFile();if(f1(r,i))return zu(r,i);C.assert(r.kind!==102&&r.kind!==277);const o=r.kind===273||r.kind===352?z2e((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(f1(s,i))return _v(s)}function z2e(e){var t;return hn((t=ni(e,r_))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&SI(r.name.text)&&((i=Bc(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function B2e(e,t){return Eu(e)&&(e.isTypeOnly||t===e.name&&T7(t))}function G2e(e){if(!cfe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(r_(e)){const t=z2e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function cfe(e){var t;return Ol(e)?!0:!((t=ni(py(e)?e.expression:e,ds))!=null&&t.text)}function Qnt(e,t){if(!e)return;let r=Dn(e,i=>ES(i)||V2e(i)||Qo(i)?"quit":(to(i)||cl(i))&&!Mb(i.parent));return r||(r=Dn(t,i=>ES(i)||V2e(i)||Qo(i)?"quit":yi(i))),r}function Znt(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 V2e(e){return e.parent&&Xs(e.parent)&&(e.parent.body===e||e.kind===39)}function dfe(e,t,r=new Set){return i(e)||i(xd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&ym(r,o)&&t.getExportsOfModule(o).some(s=>dfe(s,t,r))}}function ert(e,t){const r=xd(e,t).declarations;return!!Ze(r)&&Hn(r,W7)}function j2e(e,t){if(t.length===0)return!0;let r=!1,i,o=0;const s=e.length;for(let l=0;lort,getStringLiteralCompletions:()=>rrt});var U2e={directory:0,script:1,"external module name":2};function ufe(){const e=new Map;function t(r){const i=e.get(r.name);(!i||U2e[i.kind]({name:w_(A.value,y),kindModifiers:"",kind:"string",sortText:Hd.LocationPriority,replacementSpan:Vq(t,d),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:h,entries:E,defaultCommitCharacters:j1(e.isNewIdentifier)}}default:return C.assertNever(e)}}function ort(e,t,r,i,o,s,l,u){if(!i||!ds(i))return;const d=J2e(t,i,r,o,s,u);return d&&art(e,i,d,t,o.getTypeChecker(),l)}function art(e,t,r,i,o,s){switch(r.kind){case 0:{const l=hn(r.paths,u=>u.name===e);return l&&gz(e,q2e(l.extension),l.kind,[yf(e)])}case 1:{const l=hn(r.symbols,u=>u.name===e);return l&&sfe(l,l.name,o,i,t,s)}case 2:return hn(r.types,l=>l.value===e)?gz(e,"","string",[yf(e)]):void 0;default:return C.assertNever(r)}}function H2e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:u})=>({name:o,kind:s,kindModifiers:q2e(u),sortText:Hd.LocationPriority,replacementSpan:l})),defaultCommitCharacters:j1(!0)}}function q2e(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 J2e(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:Y2e(e,t,i,o,s)}:d(G)}case 304:return Fa(u.parent)&&u.name===t?crt(l,u.parent):g()||g(0);case 213:{const{expression:G,argumentExpression:j}=u;return t===us(j)?K2e(l.getTypeAtLocation(G)):void 0}case 214:case 215:case 292:if(!Irt(t)&&!Qu(u)){const G=iW.getArgumentInfoForCompletions(u.kind===292?u.parent:t,r,e,l);return G&&lrt(G.invocation,t,G,l)||g(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:Y2e(e,t,i,o,s)};case 297:const h=B7(l,u.parent.clauses),y=g();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=>TS(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||!nu(J.valueDeclaration)),hasIndexSignature:!1}}return g(0);default:return g()||g(0)}function d(h){switch(h.kind){case 234:case 184:{const A=Dn(u,R=>R.parent===h);return A?{kind:2,types:YK(l.getTypeArgumentConstraint(A)),isNewIdentifier:!1}:void 0}case 200:const{indexType:y,objectType:E}=h;return ZD(y,r)?K2e(l.getTypeFromTypeNode(E)):void 0;case 193:{const A=d(pfe(h.parent));if(!A)return;const R=srt(h,u);return A.kind===1?{kind:1,symbols:A.symbols.filter(N=>!Ln(R,N.name)),hasIndexSignature:A.hasIndexSignature}:{kind:2,types:A.types.filter(N=>!Ln(R,N.value)),isNewIdentifier:!1}}default:return}}function g(h=4){const y=YK(C7(t,l,h));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function pfe(e){switch(e.kind){case 197:return Ik(e);case 218:return Bm(e);default:return e}}function srt(e,t){return ji(e.types,r=>r!==t&&uv(r)&&wa(r.literal)?r.literal.text:void 0)}function lrt(e,t,r,i){let o=!1;const s=new Set,l=ru(e)?C.checkDefined(Dn(t.parent,o_)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,l),d=Ki(u,g=>{if(!su(g)&&r.argumentCount>g.parameters.length)return;let h=g.getTypeParameterAtPosition(r.argumentIndex);if(ru(e)){const y=i.getTypeOfPropertyOfType(h,iw(l.name));y&&(h=y)}return o=o||!!(h.flags&4),YK(h,s)});return Ze(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function K2e(e){return e&&{kind:1,symbols:Vn(e.getApparentProperties(),t=>!(t.valueDeclaration&&nu(t.valueDeclaration))),hasIndexSignature:cJ(e)}}function crt(e,t){const r=e.getContextualType(t);if(!r)return;const i=e.getContextualType(t,4);return{kind:1,symbols:qK(r,i,t,e),hasIndexSignature:cJ(r)}}function YK(e,t=new Set){return e?(e=qq(e),e.isUnion()?Ki(e.types,r=>YK(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&ym(t,e.value)?[e]:se):se}function KP(e,t,r){return{name:e,kind:t,extension:r}}function ffe(e){return KP(e,"directory",void 0)}function X2e(e,t,r){const i=Trt(e,t),o=e.length===0?void 0:Id(t,e.length);return r.map(({name:s,kind:l,extension:u})=>s.includes(Js)||s.includes(Z8)?{name:s,kind:l,extension:u,span:o}:{name:s,kind:l,extension:u,span:i})}function Y2e(e,t,r,i,o){return X2e(t.text,t.getStart(e)+1,drt(e,t,r,i,o))}function drt(e,t,r,i,o){const s=Bd(t.text),l=ds(t)?r.getModeForUsageLocation(e,t):void 0,u=e.path,d=ci(u),g=r.getCompilerOptions(),h=r.getTypeChecker(),y=p0(r,i),E=mfe(g,1,e,h,o,l);return Srt(s)||!g.baseUrl&&!g.paths&&(Cp(s)||yee(s))?urt(s,d,r,i,y,u,E):hrt(s,d,l,r,i,y,E)}function mfe(e,t,r,i,o,s){return{extensionsToSearch:ia(prt(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o==null?void 0:o.importModuleSpecifierEnding,resolutionMode:s}}function urt(e,t,r,i,o,s,l){const u=r.getCompilerOptions();return u.rootDirs?mrt(u.rootDirs,e,t,l,r,i,o,s):Co(QO(e,t,l,r,i,o,!0,s).values())}function prt(e,t){const r=t?ji(t.getAmbientModules(),s=>{const l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...SM(e),r],o=iu(e);return S7(o)?$k(e,i):i}function frt(e,t,r,i){e=e.map(s=>Uc(ya(Cp(s)?s:Qr(t,s))));const o=Bn(e,s=>pm(s,r,t,i)?r.substr(s.length):void 0);return dS([...e.map(s=>Qr(s,o)),r].map(s=>Yy(s)),fS,Wd)}function mrt(e,t,r,i,o,s,l,u){const g=o.getCompilerOptions().project||s.getCurrentDirectory(),h=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),y=frt(e,g,r,h);return dS(Ki(y,E=>Co(QO(t,E,i,o,s,l,!0,u).values())),(E,A)=>E.name===A.name&&E.kind===A.kind&&E.extension===A.extension)}function QO(e,t,r,i,o,s,l,u,d=ufe()){var g;e===void 0&&(e=""),e=Bd(e),ob(e)||(e=ci(e)),e===""&&(e="."+Js),e=Uc(e);const h=ab(t,e),y=ob(h)?h:ci(h);if(!l){const N=_ce(y,o);if(N){const k=lD(N,o).typesVersions;if(typeof k=="object"){const F=(g=e3(k))==null?void 0:g.paths;if(F){const O=ci(N),G=h.slice(Uc(O).length);if(Q2e(d,G,O,r,i,o,s,F))return d}}}}const E=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames());if(!L7(o,y))return d;const A=pJ(o,y,r.extensionsToSearch,void 0,["./*"]);if(A)for(let N of A){if(N=ya(N),u&&ey(N,u,t,E)===0)continue;const{name:P,extension:k}=$2e(Ic(N),i,r,!1);d.add(KP(P,"script",k))}const R=P7(o,y);if(R)for(const N of R){const P=Ic(ya(N));P!=="@types"&&d.add(ffe(P))}return d}function $2e(e,t,r,i){const o=_y.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:Eg(o)};if(r.referenceKind===0)return{name:e,extension:Eg(e)};let s=_y.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($l(e,Yk))return{name:e,extension:Eg(e)};const u=_y.tryGetJSExtensionForFile(e,t.getCompilerOptions());return u?{name:av(e,u),extension:u}:{name:e,extension:Eg(e)}}if(!i&&(s[0]===0||s[0]===1)&&$l(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Tu(e),extension:Eg(e)};const l=_y.tryGetJSExtensionForFile(e,t.getCompilerOptions());return l?{name:av(e,l),extension:l}:{name:e,extension:Eg(e)}}function Q2e(e,t,r,i,o,s,l,u){const d=h=>u[h],g=(h,y)=>{const E=LI(h),A=LI(y),R=typeof E=="object"?E.prefix.length:h.length,N=typeof A=="object"?A.prefix.length:y.length;return js(N,R)};return Z2e(e,!1,!1,t,r,i,o,s,l,Fh(u),d,g)}function Z2e(e,t,r,i,o,s,l,u,d,g,h,y){let E=[],A;for(const R of g){if(R===".")continue;const N=R.replace(/^\.\//,"")+((t||r)&&nl(R,"/")?"*":""),P=h(R);if(P){const k=LI(N);if(!k)continue;const F=typeof k=="object"&&V8(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:_rt(N,P,i,o,s,t,r,l,u,d).map(({name:G,kind:j,extension:J})=>KP(G,j,J))})}}return E.forEach(R=>R.results.forEach(N=>e.add(N))),A!==void 0}function hrt(e,t,r,i,o,s,l){const u=i.getTypeChecker(),d=i.getCompilerOptions(),{baseUrl:g,paths:h}=d,y=ufe(),E=iu(d);if(g){const N=ya(Qr(o.getCurrentDirectory(),g));QO(e,N,l,i,o,s,!1,void 0,y)}if(h){const N=g6(d,o);Q2e(y,e,N,l,i,o,s,h)}const A=tke(e);for(const N of yrt(e,A,u))y.add(KP(N,"external module name",void 0));if(ike(i,o,s,t,A,l,y),S7(E)){let N=!1;if(A===void 0)for(const P of brt(o,t)){const k=KP(P,"external module name",void 0);y.has(k.name)||(N=!0,y.add(k))}if(!N){const P=Hk(d),k=qk(d);let F=!1;const O=j=>{if(k&&!F){const J=Qr(j,"package.json");if(F=WP(o,J)){const Z=lD(J,o);R(Z.imports,e,j,!1,!0)}}};let G=j=>{const J=Qr(j,"node_modules");L7(o,J)&&QO(e,J,l,i,o,s,!1,void 0,y),O(j)};if(A&&P){const j=G;G=J=>{const Z=zd(e);Z.shift();let q=Z.shift();if(!q)return j(J);if(fo(q,"@")){const K=Z.shift();if(!K)return j(J);q=Qr(q,K)}if(k&&fo(q,"#"))return O(J);const ye=Qr(J,"node_modules",q),ie=Qr(ye,"package.json");if(WP(o,ie)){const K=lD(ie,o),pe=Z.join("/")+(Z.length&&ob(e)?"/":"");R(K.exports,pe,ye,!0,!1);return}return j(J)}}F_(o,t,G)}}return Co(y.values());function R(N,P,k,F,O){if(typeof N!="object"||N===null)return;const G=Fh(N),j=Ob(d,r);Z2e(y,F,O,P,k,l,i,o,s,G,J=>{const Z=eke(N[J],j);if(Z!==void 0)return eI(nl(J,"/")&&nl(Z,"/")?Z+"*":Z)},xU)}}function eke(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Mo(e)){for(const r in e)if(r==="default"||t.includes(r)||Gw(t,r)){const i=e[r];return eke(i,t)}}}function tke(e){return hfe(e)?ob(e)?e:ci(e):void 0}function _rt(e,t,r,i,o,s,l,u,d,g){const h=LI(e);if(!h)return se;if(typeof h=="string")return E(e,"script");const y=QB(r,h.prefix);if(y===void 0)return nl(e,"/*")?E(h.prefix,"directory"):Ki(t,R=>{var N;return(N=nke("",i,R,o,s,l,u,d,g))==null?void 0:N.map(({name:P,...k})=>({name:h.prefix+P+h.suffix,...k}))});return Ki(t,A=>nke(y,i,A,o,s,l,u,d,g));function E(A,R){return fo(A,r)?[{name:Yy(A),kind:R,extension:void 0}]:se}}function nke(e,t,r,i,o,s,l,u,d){if(!u.readDirectory)return;const g=LI(r);if(g===void 0||Bo(g))return;const h=ab(g.prefix),y=ob(g.prefix)?h:ci(h),E=ob(g.prefix)?"":Ic(h),A=hfe(e),R=A?ob(e)?e:ci(e):void 0,N=()=>d.getCommonSourceDirectory(),P=!u1(d),k=l.getCompilerOptions().outDir,F=l.getCompilerOptions().declarationDir,O=A?Qr(y,E+R):y,G=ya(Qr(t,O)),j=s&&k&&oV(G,P,k,N),J=s&&F&&oV(G,P,F,N),Z=ya(g.suffix),q=Z&&_6("_"+Z),ye=Z?iV("_"+Z):void 0,ie=[q&&av(Z,q),...ye?ye.map(X=>av(Z,X)):[],Z].filter(Bo),K=Z?ie.map(X=>"**/*"+X):["./*"],pe=(o||s)&&nl(r,"/*");let de=fe(G);return j&&(de=lo(de,fe(j))),J&&(de=lo(de,fe(J))),Z||(de=lo(de,ve(G)),j&&(de=lo(de,ve(j))),J&&(de=lo(de,ve(J)))),de;function fe(X){const Ce=A?X:Uc(X)+E;return ji(pJ(u,X,i.extensionsToSearch,void 0,K),Je=>{const Se=xe(Je,Ce);if(Se){if(hfe(Se))return ffe(zd(rke(Se))[1]);const{name:re,extension:be}=$2e(Se,l,i,pe);return KP(re,"script",be)}})}function ve(X){return ji(P7(u,X),Ce=>Ce==="node_modules"?void 0:ffe(Ce))}function xe(X,Ce){return Bn(ie,Je=>{const Se=grt(ya(X),Ce,Je);return Se===void 0?void 0:rke(Se)})}}function grt(e,t,r){return fo(e,t)&&nl(e,r)?e.slice(t.length,e.length-r.length):void 0}function rke(e){return e[0]===Js?e.slice(1):e}function yrt(e,t,r){const o=r.getAmbientModules().map(s=>gm(s.name)).filter(s=>fo(s,e)&&!s.includes("*"));if(t!==void 0){const s=Uc(t);return o.map(l=>hN(l,s))}return o}function vrt(e,t,r,i,o){const s=r.getCompilerOptions(),l=Fi(e,t),u=cg(e.text,l.pos),d=u&&hn(u,P=>t>=P.pos&&t<=P.end);if(!d)return;const g=e.text.slice(d.pos,t),h=Ert.exec(g);if(!h)return;const[,y,E,A]=h,R=ci(e.path),N=E==="path"?QO(A,R,mfe(s,0,e),r,i,o,!0,e.path):E==="types"?ike(r,i,o,R,tke(A),mfe(s,1,e)):C.fail();return X2e(A,d.pos+y.length,Co(N.values()))}function ike(e,t,r,i,o,s,l=ufe()){const u=e.getCompilerOptions(),d=new Map,g=k7(()=>nP(u,t))||se;for(const y of g)h(y);for(const y of fJ(i,t)){const E=Qr(ci(y),"node_modules/@types");h(E)}return l;function h(y){if(L7(t,y))for(const E of P7(t,y)){const A=Vw(E);if(!(u.types&&!Ln(u.types,A)))if(o===void 0)d.has(A)||(l.add(KP(A,"external module name",void 0)),d.set(A,!0));else{const R=Qr(y,E),N=kV(o,A,sy(t));N!==void 0&&QO(N,R,s,e,t,r,!1,void 0,l)}}}}function brt(e,t){if(!e.readFile||!e.fileExists)return se;const r=[];for(const i of fJ(t,e)){const o=lD(i,e);for(const s of Art){const l=o[s];if(l)for(const u in l)Rs(l,u)&&!fo(u,"@types/")&&r.push(u)}}return r}function Trt(e,t){const r=Math.max(e.lastIndexOf(Js),e.lastIndexOf(Z8)),i=r!==-1?r+1:0,o=e.length-i;return o===0||fp(e.substr(i,o),99)?void 0:Id(t+i,o)}function Srt(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 Ert=/^(\/\/\/\s*Ax,DefinitionKind:()=>uke,EntryKind:()=>pke,ExportKind:()=>oke,FindReferencesUse:()=>fke,ImportExport:()=>ake,createImportTracker:()=>_fe,findModuleReferences:()=>ske,findReferenceOrRenameEntries:()=>zrt,findReferencedSymbols:()=>Ort,getContextNode:()=>U1,getExportInfo:()=>gfe,getImplementationsAtPosition:()=>Frt,getImportOrExportSymbol:()=>dke,getReferenceEntriesForNode:()=>hke,isContextWithStartAndEndNode:()=>vfe,isDeclarationOfSymbol:()=>bke,isWriteAccessForReference:()=>Tfe,toContextSpan:()=>bfe,toHighlightSpan:()=>qrt,toReferenceEntry:()=>yke,toRenameLocation:()=>Grt});function _fe(e,t,r,i){const o=Crt(e,r,i);return(s,l,u)=>{const{directImports:d,indirectUsers:g}=xrt(e,t,o,l,r,i);return{indirectUsers:g,...Rrt(d,s,l.exportKind,r,u)}}}var oke=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(oke||{}),ake=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(ake||{});function xrt(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){const u=tC(),d=tC(),g=[],h=!!i.globalExports,y=h?void 0:[];return A(i),{directImports:g,indirectUsers:E()};function E(){if(h)return e;if(i.declarations)for(const O of i.declarations)SS(O)&&t.has(O.getSourceFile().fileName)&&k(O);return y.map(Fn)}function A(O){const G=F(O);if(G){for(const j of G)if(u(j))switch(l&&l.throwIfCancellationRequested(),j.kind){case 214:if(Qu(j)){R(j);break}if(!h){const Z=j.parent;if(o===2&&Z.kind===261){const{name:q}=Z;if(q.kind===80){g.push(q);break}}}break;case 80:break;case 272:P(j,j.name,di(j,32),!1);break;case 273:case 352:g.push(j);const J=j.importClause&&j.importClause.namedBindings;J&&J.kind===275?P(j,J.name,!1,!0):!h&&l1(j)&&k(vz(j));break;case 279:j.exportClause?j.exportClause.kind===281?k(vz(j),!0):g.push(j):A(krt(j,s));break;case 206:!h&&j.isTypeOf&&!j.qualifier&&N(j)&&k(j.getSourceFile(),!0),g.push(j);break;default:C.failBadSyntaxKind(j,"Unexpected import kind.")}}}function R(O){const G=Dn(O,$K)||O.getSourceFile();k(G,!!N(O,!0))}function N(O,G=!1){return Dn(O,j=>G&&$K(j)?"quit":Sm(j)&&vt(j.modifiers,VI))}function P(O,G,j,J){if(o===2)J||g.push(O);else if(!h){const Z=vz(O);C.assert(Z.kind===308||Z.kind===268),j||Drt(Z,G,s)?k(Z,!0):k(Z)}}function k(O,G=!1){if(C.assert(!h),!d(O)||(y.push(O),!G))return;const J=s.getMergedSymbol(O.symbol);if(!J)return;C.assert(!!(J.flags&1536));const Z=F(J);if(Z)for(const q of Z)t_(q)||k(vz(q),!0)}function F(O){return r.get(Ta(O).toString())}}function Rrt(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){yfe(E)&&g(E.name);return}if(E.kind===80){g(E);return}if(E.kind===206){if(E.qualifier){const N=Lu(E.qualifier);N.escapedText===wl(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&&Jf(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:g(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===E7(t))){const N=i.getSymbolAtLocation(A);u(A,N)}}function g(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(TS(N||R)))if(N)l.push(N),(!o||TS(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 Drt(e,t,r){const i=r.getSymbolAtLocation(t);return!!lke(e,o=>{if(!fc(o))return;const{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&Jf(s)&&s.elements.some(u=>r.getExportSpecifierLocalTargetSymbol(u)===i)})}function ske(e,t,r){var i;const o=[],s=e.getTypeChecker();for(const l of t){const u=r.valueDeclaration;if((u==null?void 0:u.kind)===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 g=(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(d,l))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&o.push({kind:"reference",referencingFile:l,ref:d})}}cke(l,(d,g)=>{s.getSymbolAtLocation(g)===r&&o.push(Os(d)?{kind:"implicit",literal:g,referencingFile:l}:{kind:"import",literal:g})})}return o}function Crt(e,t,r){const i=new Map;for(const o of e)r&&r.throwIfCancellationRequested(),cke(o,(s,l)=>{const u=t.getSymbolAtLocation(l);if(u){const d=Ta(u).toString();let g=i.get(d);g||i.set(d,g=[]),g.push(s)}});return i}function lke(e,t){return $e(e.kind===308?e.statements:e.body.statements,r=>t(r)||$K(r)&&$e(r.body&&r.body.statements,t))}function cke(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const r of e.imports)t(eM(r),r);else lke(e,r=>{switch(r.kind){case 279:case 273:{const i=r;i.moduleSpecifier&&wa(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 272:{const i=r;yfe(i)&&t(i,i.moduleReference.expression);break}}})}function dke(e,t,r,i){return i?o():o()||s();function o(){var d;const{parent:g}=e,h=g.parent;if(t.exportSymbol)return g.kind===212?(d=t.declarations)!=null&&d.some(A=>A===g)&&Nr(h)?E(h,!1):void 0:l(t.exportSymbol,u(g));{const A=Mrt(g,e);if(A&&di(A,32))return Fc(A)&&A.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(A.name)}:l(t,u(A));if(W_(g))return l(t,0);if(dl(g))return y(g);if(dl(h))return y(h);if(Nr(g))return E(g,!0);if(Nr(h))return E(h,!0);if(D1(g)||xj(g))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(ac(A)){case 1:N=0;break;case 2:N=2;break;default:return}const P=R?r.getSymbolAtLocation(xV(ha(A.left,Ks))):t;return P&&l(P,N)}}function s(){if(!Prt(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=Lrt(g,r),g.escapedName==="export="&&(g=Nrt(g,r),g===void 0)))return;const h=E7(g);if(h===void 0||h==="default"||h===t.escapedName)return{kind:0,symbol:g}}function l(d,g){const h=gfe(d,g,r);return h&&{kind:1,symbol:d,exportInfo:h}}function u(d){return di(d,2048)?1:0}}function Nrt(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,ah))==null?void 0:r.symbol;if(Nr(o))return(i=ni(o.right,ah))==null?void 0:i.symbol;if(Yi(o))return o.symbol}function Mrt(e,t){const r=yi(e)?e:Ha(e)?JE(e):void 0;return r?e.name!==t||HS(r.parent)?void 0:sc(r.parent.parent)?r.parent.parent:void 0:e}function Prt(e){const{parent:t}=e;switch(t.kind){case 272:return t.name===e&&yfe(t);case 277:return!t.propertyName;case 274:case 275:return C.assert(t.name===e),!0;case 209:return Ir(e)&&AS(t.parent.parent);default:return!1}}function gfe(e,t,r){const i=e.parent;if(!i)return;const o=r.getMergedSymbol(i);return dI(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function Lrt(e,t){if(e.declarations)for(const r of e.declarations){if(ou(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(qr(r)&&yg(r.expression)&&!eo(r.name))return t.getSymbolAtLocation(r);if(Ud(r)&&Nr(r.parent.parent)&&ac(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function krt(e,t){return t.getMergedSymbol(vz(e).symbol)}function vz(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),ha(t.parent,$K))}function $K(e){return e.kind===268&&e.name.kind===11}function yfe(e){return e.moduleReference.kind===284&&e.moduleReference.expression.kind===11}var uke=(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))(uke||{}),pke=(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))(pke||{});function vy(e,t=1){return{kind:t,node:e.name||e,context:wrt(e)}}function vfe(e){return e&&e.kind===void 0}function wrt(e){if(rd(e))return U1(e);if(e.parent){if(!rd(e.parent)&&!dl(e.parent)){if(Ir(e)){const r=Nr(e.parent)?e.parent:Ks(e.parent)&&Nr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&ac(r)!==0)return U1(r)}if(ph(e.parent)||jS(e.parent))return e.parent.parent;if(x1(e.parent)||Lb(e.parent)||kN(e.parent))return e.parent;if(ds(e)){const r=bk(e);if(r){const i=Dn(r,o=>rd(o)||Gi(o)||VR(o));return rd(i)?U1(i):i}}const t=Dn(e,va);return t?U1(t.parent):void 0}if(e.parent.name===e||Ml(e.parent)||dl(e.parent)||(ub(e.parent)||Ha(e.parent))&&e.parent.propertyName===e||e.kind===90&&di(e.parent,2080))return U1(e.parent)}}function U1(e){if(e)switch(e.kind){case 261:return!_d(e.parent)||e.parent.declarations.length!==1?e:sc(e.parent.parent)?e.parent.parent:ZE(e.parent.parent)?U1(e.parent.parent):e.parent;case 209:return U1(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 od(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return hv(e.parent)?U1(Dn(e.parent,t=>Nr(t)||ZE(t))):e;case 256:return{start:hn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function bfe(e,t,r){if(!r)return;const i=vfe(r)?Tz(r.start,t,r.end):Tz(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var fke=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(fke||{});function Ort(e,t,r,i,o){const s=ip(i,o),l={use:1},u=Ax.getReferencedSymbolsForNode(o,s,e,r,t,l),d=e.getTypeChecker(),g=Ax.getAdjustedNode(s,l),h=Wrt(g)?d.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:ji(u,({definition:y,references:E})=>y&&{definition:d.runWithCancellationToken(t,A=>Brt(y,A,s)),references:E.map(A=>Vrt(A,h))})}function Wrt(e){return e.kind===90||!!nM(e)||xk(e)||e.kind===137&&Ml(e.parent)}function Frt(e,t,r,i,o){const s=ip(i,o);let l;const u=mke(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 g=g2(u),h=new Set;for(;!g.isEmpty();){const y=g.dequeue();if(!ym(h,ls(y.node)))continue;l=Un(l,y);const E=mke(e,t,r,y.node,y.node.pos);E&&g.enqueue(...E)}}const d=e.getTypeChecker();return Bt(l,g=>Urt(g,d))}function mke(e,t,r,i,o){if(i.kind===308)return;const s=e.getTypeChecker();if(i.parent.kind===305){const l=[];return Ax.getReferenceEntriesForShorthandPropertyAssignment(i,s,u=>l.push(vy(u))),l}else if(i.kind===108||mp(i.parent)){const l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[vy(l.valueDeclaration)]}else return hke(o,i,e,r,t,{implementations:!0,use:1})}function zrt(e,t,r,i,o,s,l){return Bt(_ke(Ax.getReferencedSymbolsForNode(o,i,e,r,t,s)),u=>l(u,i,e.getTypeChecker()))}function hke(e,t,r,i,o,s={},l=new Set(i.map(u=>u.fileName))){return _ke(Ax.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function _ke(e){return e&&Ki(e,t=>t.references)}function Brt(e,t,r){const i=(()=>{switch(e.type){case 0:{const{symbol:h}=e,{displayParts:y,kind:E}=gke(h,t,r),A=y.map(P=>P.text).join(""),R=h.declarations&&Ac(h.declarations),N=R?Oo(R)||R:r;return{...bz(N),name:A,kind:E,displayParts:y,context:U1(R)}}case 1:{const{node:h}=e;return{...bz(h),name:h.text,kind:"label",displayParts:[yp(h.text,17)]}}case 2:{const{node:h}=e,y=ga(h.kind);return{...bz(h),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:h}=e,y=t.getSymbolAtLocation(h),E=y&&vv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,h.getSourceFile(),z1(h),h).displayParts||[yf("this")];return{...bz(h),name:"this",kind:"var",displayParts:E}}case 4:{const{node:h}=e;return{...bz(h),name:h.text,kind:"var",displayParts:[yp(Al(h),8)]}}case 5:return{textSpan:_v(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[yp(`"${e.reference.fileName}"`,8)]};default:return C.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:u,displayParts:d,context:g}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:u,name:l,textSpan:s,displayParts:d,...bfe(s,o,g)}}function bz(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:Tz(va(e)?e.expression:e,t)}}function gke(e,t,r){const i=Ax.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Ac(e.declarations)||r,{displayParts:s,symbolKind:l}=vv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function Grt(e,t,r,i,o){return{...QK(e),...i&&jrt(e,t,r,o)}}function Vrt(e,t){const r=yke(e);return t?{...r,isDefinition:e.kind!==0&&bke(e.node,t)}:r}function yke(e){const t=QK(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:r,node:i}=e;return{...t,isWriteAccess:Tfe(i),isInString:r===2?!0:void 0}}function QK(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),r=Tz(e.node,t);return{textSpan:r,fileName:t.fileName,...bfe(r,t,e.context)}}}function jrt(e,t,r,i){if(e.kind!==0&&(He(t)||ds(t))){const{node:o,kind:s}=e,l=o.parent,u=t.text,d=Ud(l);if(d||IO(l)&&l.name===o&&l.dotDotDotToken===void 0){const g={prefixText:u+": "},h={suffixText:": "+u};if(s===3)return g;if(s===4)return h;if(d){const y=l.parent;return Fa(y)&&Nr(y.parent)&&yg(y.parent.left)?g:h}else return g}else if(Eu(l)&&!l.propertyName){const g=ou(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return Ln(g.declarations,l)?{prefixText:u+" as "}:Em}else if(ou(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&np(e.node)&&Ks(e.node.parent)){const o=Yq(i);return{prefixText:o,suffixText:o}}return Em}function Urt(e,t){const r=QK(e);if(e.kind!==0){const{node:i}=e;return{...r,...Hrt(i,t)}}else return{...r,kind:"",displayParts:[]}}function Hrt(e,t){const r=t.getSymbolAtLocation(rd(e)&&e.name?e.name:e);return r?gke(r,t,e):e.kind===211?{kind:"interface",displayParts:[lu(21),yf("object literal"),lu(22)]}:e.kind===232?{kind:"local class",displayParts:[lu(21),yf("anonymous local class"),lu(22)]}:{kind:eE(e),displayParts:[]}}function qrt(e){const t=QK(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const r=Tfe(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 Tz(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return ds(e)&&o-i>2&&(C.assert(r===void 0),i+=1,o-=1),(r==null?void 0:r.kind)===270&&(o=r.getFullStart()),oc(i,o)}function vke(e){return e.kind===0?e.textSpan:Tz(e.node,e.node.getSourceFile())}function Tfe(e){const t=nM(e);return!!t&&Jrt(t)||e.kind===90||RI(e)}function bke(e,t){var r;if(!t)return!1;const i=nM(e)||(e.kind===90?e.parent:xk(e)||e.kind===137&&Ml(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 Jrt(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!hv(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||HS(e.parent);case 174:case 172:case 349:case 342:return!1;default:return C.failBadSyntaxKind(e)}}var Ax;(e=>{function t(ot,Ft,le,ht,ne,Fe={},it=new Set(ht.map(dt=>dt.fileName))){var dt,Lt;if(Ft=r(Ft,Fe),Yi(Ft)){const Tr=fC.getReferenceAtPosition(Ft,ot,le);if(!(Tr!=null&&Tr.file))return;const Oe=le.getTypeChecker().getMergedSymbol(Tr.file.symbol);if(Oe)return g(le,Oe,!1,ht,it);const Nt=le.getFileIncludeReasons();return Nt?[{definition:{type:5,reference:Tr.reference,file:Ft},references:o(Tr.file,Nt,le)||se}]:void 0}if(!Fe.implementations){const Tr=y(Ft,ht,ne);if(Tr)return Tr}const Ue=le.getTypeChecker(),Rt=Ue.getSymbolAtLocation(Ml(Ft)&&Ft.parent.name||Ft);if(!Rt){if(!Fe.implementations&&ds(Ft)){if(A7(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)||se}]}return Ni(Ft,ht,Ue,ne)}return}if(Rt.escapedName==="export=")return g(le,Rt.parent,!1,ht,it);const It=l(Rt,le,ht,ne,Fe,it);if(It&&!(Rt.flags&33554432))return It;const Ot=s(Ft,Rt,Ue),nt=Ot&&l(Ot,le,ht,ne,Fe,it),Kt=E(Rt,Ft,ht,it,Ue,ne,Fe);return u(le,It,Kt,nt)}e.getReferencedSymbolsForNode=t;function r(ot,Ft){return Ft.use===1?ot=wq(ot):Ft.use===2&&(ot=m7(ot)),ot}e.getAdjustedNode=r;function i(ot,Ft,le,ht=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=g(Ft,it,!1,le,ht)[0])==null?void 0:Fe.references)||se;const dt=Ft.getFileIncludeReasons(),Lt=Ft.getSourceFile(ot);return Lt&&dt&&o(Lt,dt,Ft)||se}e.getReferencesForFileName=i;function o(ot,Ft,le){let ht;const ne=Ft.get(ot.path)||se;for(const Fe of ne)if(d0(Fe)){const it=le.getSourceFileByPath(Fe.file),dt=bP(le,Fe);qD(dt)&&(ht=Un(ht,{kind:0,fileName:it.fileName,textSpan:_v(dt)}))}return ht}function s(ot,Ft,le){if(ot.parent&&yw(ot.parent)){const ht=le.getAliasedSymbol(Ft),ne=le.getMergedSymbol(ht);if(ht!==ne)return ne}}function l(ot,Ft,le,ht,ne,Fe){const it=ot.flags&1536&&ot.declarations&&hn(ot.declarations,Yi);if(!it)return;const dt=ot.exports.get("export="),Lt=g(Ft,ot,!!dt,le,Fe);if(!dt||!Fe.has(it.fileName))return Lt;const Ue=Ft.getTypeChecker();return ot=xd(dt,Ue),u(Ft,Lt,E(ot,void 0,le,Fe,Ue,ht,ne))}function u(ot,...Ft){let le;for(const ht of Ft)if(!(!ht||!ht.length)){if(!le){le=ht;continue}for(const ne of ht){if(!ne.definition||ne.definition.type!==0){le.push(ne);continue}const Fe=ne.definition.symbol,it=so(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,Ue)=>{const Rt=d(ot,Lt),It=d(ot,Ue);if(Rt!==It)return js(Rt,It);const Ot=vke(Lt),nt=vke(Ue);return Ot.start!==nt.start?js(Ot.start,nt.start):js(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 g(ot,Ft,le,ht,ne){C.assert(!!Ft.valueDeclaration);const Fe=ji(ske(ot,ht,Ft),dt=>{if(dt.kind==="import"){const Lt=dt.literal.parent;if(uv(Lt)){const Ue=ha(Lt.parent,t_);if(le&&!Ue.qualifier)return}return vy(dt.literal)}else if(dt.kind==="implicit"){const Lt=dt.literal.text!==hb&&ex(dt.referencingFile,Ue=>Ue.transformFlags&2?i_(Ue)||x1(Ue)||e0(Ue)?Ue:void 0:"skip")||dt.referencingFile.statements[0]||dt.referencingFile;return vy(Lt)}else return{kind:0,fileName:dt.referencingFile.fileName,textSpan:_v(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(vy(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!=null&&it.declarations)for(const dt of it.declarations){const Lt=dt.getSourceFile();if(ne.has(Lt.fileName)){const Ue=Nr(dt)&&qr(dt.left)?dt.left.expression:dl(dt)?C.checkDefined(Es(dt,95,Lt)):Oo(dt)||dt;Fe.push(vy(Ue))}}return Fe.length?[{definition:{type:0,symbol:Ft},references:Fe}]:se}function h(ot){return ot.kind===148&&KT(ot.parent)&&ot.parent.operator===148}function y(ot,Ft,le){if(CP(ot.kind))return ot.kind===116&&KI(ot.parent)||ot.kind===148&&!h(ot)?void 0:Je(Ft,ot.kind,le,ot.kind===148?h:void 0);if(KR(ot.parent)&&ot.parent.name===ot)return Ce(Ft,le);if(jI(ot)&&Ql(ot.parent))return[{definition:{type:2,node:ot},references:[vy(ot)]}];if(gO(ot)){const ht=l7(ot.parent,ot.text);return ht&&xe(ht.parent,ht)}else if(xq(ot))return xe(ot.parent,ot);if(QD(ot))return Ai(ot,Ft,le);if(ot.kind===108)return zt(ot)}function E(ot,Ft,le,ht,ne,Fe,it){const dt=Ft&&N(ot,Ft,ne,!Uo(it))||ot,Lt=Ft&&it.use!==2?ri(Ft,dt):7,Ue=[],Rt=new F(le,ht,Ft?R(Ft):0,ne,Fe,Lt,it,Ue),It=!Uo(it)||!dt.declarations?void 0:hn(dt.declarations,ou);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),O(Ft,dt,{exportingModuleSymbol:dt.parent,exportKind:1},Rt);else{const Ot=Rt.createSearch(Ft,dt,void 0,{allSearchSymbols:Ft?Ci(dt,Ft,ne,it.use===2,!!it.providePrefixAndSuffixTextForRename,!!it.implementations):[dt]});A(dt,Rt,Ot)}return Ue}function A(ot,Ft,le){const ht=ye(ot);if(ht)re(ht,ht.getSourceFile(),le,Ft,!(Yi(ht)&&!Ln(Ft.sourceFiles,ht)));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,ht){const{parent:ne}=Ft;return ou(ne)&&ht?ce(Ft,ot,ne,le):Bn(ot.declarations,Fe=>{if(!Fe.parent){if(ot.flags&33554432)return;C.fail(`Unexpected symbol at ${C.formatSyntaxKind(Ft.kind)}: ${C.formatSymbol(ot)}`)}return wu(Fe.parent)&&dv(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&&hn(ot.declarations,le=>!Yi(le)&&!pc(le));return Ft&&Ft.symbol}class F{constructor(Ft,le,ht,ne,Fe,it,dt,Lt){this.sourceFiles=Ft,this.sourceFilesSet=le,this.specialSearchKind=ht,this.checker=ne,this.cancellationToken=Fe,this.searchMeaning=it,this.options=dt,this.result=Lt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=tC(),this.markSeenReExportRHS=tC(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Ft){return this.sourceFilesSet.has(Ft.fileName)}getImportSearches(Ft,le){return this.importTracker||(this.importTracker=_fe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Ft,le,this.options.use===2)}createSearch(Ft,le,ht,ne={}){const{text:Fe=gm(wl(mM(le)||k(le)||le)),allSearchSymbols:it=[le]}=ne,dt=Cl(Fe),Lt=this.options.implementations&&Ft?Pn(Ft,le,this.checker):void 0;return{symbol:le,comingFrom:ht,text:Fe,escapedText:dt,parents:Lt,allSearchSymbols:it,includes:Ue=>Ln(it,Ue)}}referenceAdder(Ft){const le=Ta(Ft);let ht=this.symbolIdToReferences[le];return ht||(ht=this.symbolIdToReferences[le]=[],this.result.push({definition:{type:0,symbol:Ft},references:ht})),(ne,Fe)=>ht.push(vy(ne,Fe))}addStringOrCommentReference(Ft,le){this.result.push({definition:void 0,references:[{kind:0,fileName:Ft,textSpan:le}]})}markSearchedSymbols(Ft,le){const ht=ls(Ft),ne=this.sourceFileToSeenSymbols[ht]||(this.sourceFileToSeenSymbols[ht]=new Set);let Fe=!1;for(const it of le)Fe=rh(ne,Ta(it))||Fe;return Fe}}function O(ot,Ft,le,ht){const{importSearches:ne,singleReferences:Fe,indirectUsers:it}=ht.getImportSearches(Ft,le);if(Fe.length){const dt=ht.referenceAdder(Ft);for(const Lt of Fe)j(Lt,ht)&&dt(Lt)}for(const[dt,Lt]of ne)Se(dt.getSourceFile(),ht.createSearch(dt,Lt,1),ht);if(it.length){let dt;switch(le.exportKind){case 0:dt=ht.createSearch(ot,Ft,1);break;case 1:dt=ht.options.use===2?void 0:ht.createSearch(ot,Ft,1,{text:"default"});break}if(dt)for(const Lt of it)Z(Lt,dt,ht)}}function G(ot,Ft,le,ht,ne,Fe,it,dt){const Lt=_fe(ot,new Set(ot.map(Ot=>Ot.fileName)),Ft,le),{importSearches:Ue,indirectUsers:Rt,singleReferences:It}=Lt(ht,{exportKind:it?1:0,exportingModuleSymbol:ne},!1);for(const[Ot]of Ue)dt(Ot);for(const Ot of It)He(Ot)&&t_(Ot.parent)&&dt(Ot);for(const Ot of Rt)for(const nt of fe(Ot,it?"default":Fe)){const Kt=Ft.getSymbolAtLocation(nt),Tr=vt(Kt==null?void 0:Kt.declarations,Oe=>!!ni(Oe,dl));He(nt)&&!ub(nt.parent)&&(Kt===ht||Tr)&&dt(nt)}}e.eachExportReference=G;function j(ot,Ft){return be(ot,Ft)?Ft.options.use!==2?!0:!He(ot)&&!ub(ot.parent)?!1:!(ub(ot.parent)&&M_(ot)):!1}function J(ot,Ft){if(ot.declarations)for(const le of ot.declarations){const ht=le.getSourceFile();Se(ht,Ft.createSearch(le,ot,0),Ft,Ft.includesSourceFile(ht))}}function Z(ot,Ft,le){lK(ot).get(Ft.escapedText)!==void 0&&Se(ot,Ft,le)}function q(ot,Ft){return hv(ot.parent.parent)?Ft.getPropertySymbolOfDestructuringAssignment(ot):void 0}function ye(ot){const{declarations:Ft,flags:le,parent:ht,valueDeclaration:ne}=ot;if(ne&&(ne.kind===219||ne.kind===232))return ne;if(!Ft)return;if(le&8196){const dt=hn(Ft,Lt=>wp(Lt,2)||nu(Lt));return dt?VT(dt,264):void 0}if(Ft.some(IO))return;const Fe=ht&&!(ot.flags&262144);if(Fe&&!(dI(ht)&&!ht.globalExports))return;let it;for(const dt of Ft){const Lt=z1(dt);if(it&&it!==Lt||!Lt||Lt.kind===308&&!Pp(Lt))return;if(it=Lt,Us(it)){let Ue;for(;Ue=FG(it);)it=Ue}}return Fe?it.getSourceFile():it}function ie(ot,Ft,le,ht=le){return K(ot,Ft,le,()=>!0,ht)||!1}e.isSymbolReferencedInFile=ie;function K(ot,Ft,le,ht,ne=le){const Fe=Np(ot.parent,ot.parent.parent)?$a(Ft.getSymbolsOfParameterPropertyDeclaration(ot.parent,ot.text)):Ft.getSymbolAtLocation(ot);if(Fe)for(const it of fe(le,Fe.name,ne)){if(!He(it)||it===ot||it.escapedText!==ot.escapedText)continue;const dt=Ft.getSymbolAtLocation(it);if(dt===Fe||Ft.getShorthandAssignmentValueSymbol(it.parent)===Fe||ou(it.parent)&&ce(it,dt,it.parent,Ft)===Fe){const Lt=ht(it);if(Lt)return Lt}}}e.eachSymbolReferenceInFile=K;function pe(ot,Ft){return Vn(fe(Ft,ot),ne=>!!nM(ne)).reduce((ne,Fe)=>{const it=ht(Fe);return!vt(ne.declarationNames)||it===ne.depth?(ne.declarationNames.push(Fe),ne.depth=it):itRt===ne)&&ht(it,Lt))return!0}return!1}e.someSignatureUsage=de;function fe(ot,Ft,le=ot){return ji(ve(ot,Ft,le),ht=>{const ne=ip(ot,ht);return ne===ot?void 0:ne})}function ve(ot,Ft,le=ot){const ht=[];if(!Ft||!Ft.length)return ht;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||!ty(ne.charCodeAt(dt-1),99))&&(Lt===Fe||!ty(ne.charCodeAt(Lt),99))&&ht.push(dt),dt=ne.indexOf(Ft,dt+it+1)}return ht}function xe(ot,Ft){const le=ot.getSourceFile(),ht=Ft.text,ne=ji(fe(le,ht,ot),Fe=>Fe===Ft||gO(Fe)&&l7(Fe,ht)===Ft?vy(Fe):void 0);return[{definition:{type:1,node:Ft},references:ne}]}function X(ot,Ft){switch(ot.kind){case 81:if(n0(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&&(c7(le)||Nq(ot)||Wle(ot)||Zo(ot.parent)&&a1(ot.parent)&&ot.parent.arguments[1]===ot||ub(ot.parent))}case 9:return c7(ot)&&ot.text.length===Ft.length;case 90:return Ft.length===7;default:return!1}}function Ce(ot,Ft){const le=Ki(ot,ht=>(Ft.throwIfCancellationRequested(),ji(fe(ht,"meta",ht),ne=>{const Fe=ne.parent;if(KR(Fe))return vy(Fe)})));return le.length?[{definition:{type:2,node:le[0].node},references:le}]:void 0}function Je(ot,Ft,le,ht){const ne=Ki(ot,Fe=>(le.throwIfCancellationRequested(),ji(fe(Fe,ga(Ft),Fe),it=>{if(it.kind===Ft&&(!ht||ht(it)))return vy(it)})));return ne.length?[{definition:{type:2,node:ne[0].node},references:ne}]:void 0}function Se(ot,Ft,le,ht=!0){return le.cancellationToken.throwIfCancellationRequested(),re(ot,ot,Ft,le,ht)}function re(ot,Ft,le,ht,ne){if(ht.markSearchedSymbols(Ft,le.allSearchSymbols))for(const Fe of ve(Ft,le.text,ot))Ne(Ft,Fe,le,ht,ne)}function be(ot,Ft){return!!(F1(ot)&Ft.searchMeaning)}function Ne(ot,Ft,le,ht,ne){const Fe=ip(ot,Ft);if(!X(Fe,le.text)){!ht.options.implementations&&(ht.options.findInStrings&&px(ot,Ft)||ht.options.findInComments&&Yle(ot,Ft))&&ht.addStringOrCommentReference(ot.fileName,Id(Ft,le.text.length));return}if(!be(Fe,ht))return;let it=ht.checker.getSymbolAtLocation(Fe);if(!it)return;const dt=Fe.parent;if(Eu(dt)&&dt.propertyName===Fe)return;if(ou(dt)){C.assert(Fe.kind===80||Fe.kind===11),lt(Fe,it,dt,le,ht,ne);return}if(wN(dt)&&dt.isNameFirst&&dt.typeExpression&&R1(dt.typeExpression.type)&&dt.typeExpression.type.jsDocPropertyTags&&Ze(dt.typeExpression.type.jsDocPropertyTags)){Be(dt.typeExpression.type.jsDocPropertyTags,Fe,le,ht);return}const Lt=dr(le,it,Fe,ht);if(!Lt){je(it,le,ht);return}switch(ht.specialSearchKind){case 0:ne&&Ge(Fe,Lt,ht);break;case 1:We(Fe,ot,le,ht);break;case 2:at(Fe,le,ht);break;default:C.assertNever(ht.specialSearchKind)}Ir(Fe)&&Ha(Fe.parent)&&AS(Fe.parent.parent.parent)&&(it=Fe.parent.symbol,!it)||ge(Fe,it,le,ht)}function Be(ot,Ft,le,ht){const ne=ht.referenceAdder(le.symbol);Ge(Ft,le.symbol,ht),$e(ot,Fe=>{ku(Fe.name)&&ne(Fe.name.left)})}function lt(ot,Ft,le,ht,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:Ue}=le,Rt=dt.parent,It=ce(ot,Ft,le,ne.checker);if(!it&&!ht.includes(It))return;if(Lt?ot===Lt?(Rt.moduleSpecifier||Ot(),Fe&&ne.options.use!==2&&ne.markSeenReExportRHS(Ue)&&Ge(Ue,C.checkDefined(le.symbol),ne)):ne.markSeenReExportRHS(ot)&&Ot():ne.options.use===2&&M_(Ue)||Ot(),!Uo(ne.options)||it){const Kt=M_(ot)||M_(le.name)?1:0,Tr=C.checkDefined(le.symbol),Oe=gfe(Tr,Kt,ne.checker);Oe&&O(ot,Tr,Oe,ne)}if(ht.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,ht){return Re(ot,le)&&ht.getExportSpecifierLocalTargetSymbol(le)||Ft}function Re(ot,Ft){const{parent:le,propertyName:ht,name:ne}=Ft;return C.assert(ht===ot||ne===ot),ht?ht===ot:!le.parent.moduleSpecifier}function ge(ot,Ft,le,ht){const ne=dke(ot,Ft,ht.checker,le.comingFrom===1);if(!ne)return;const{symbol:Fe}=ne;ne.kind===0?Uo(ht.options)||J(Fe,ht):O(ot,Fe,ne.exportInfo,ht)}function je({flags:ot,valueDeclaration:Ft},le,ht){const ne=ht.checker.getShorthandAssignmentValueSymbol(Ft),Fe=Ft&&Oo(Ft);!(ot&33554432)&&Fe&&le.includes(ne)&&Ge(Fe,ne,ht)}function Ge(ot,Ft,le){const{kind:ht,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,ht)}function We(ot,Ft,le,ht){IP(ot)&&Ge(ot,le.symbol,ht);const ne=()=>ht.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,ht))}}function at(ot,Ft,le){Ge(ot,Ft.symbol,le);const ht=ot.parent;if(le.options.use===2||!ui(ht))return;C.assert(ht.name===ot);const ne=le.referenceAdder(Ft.symbol);for(const Fe of ht.members)sI(Fe)&&ua(Fe)&&Fe.body&&Fe.body.forEachChild(function it(dt){dt.kind===110?ne(dt):!Yo(dt)&&!ui(dt)&&dt.forEachChild(it)})}function Wt(ot,Ft,le){const ht=cn(ot);if(ht&&ht.declarations)for(const ne of ht.declarations){const Fe=Es(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&&$o(it,110,dt=>{IP(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 ht of le.declarations){C.assert(ht.kind===177);const ne=ht.body;ne&&$o(ne,108,Fe=>{Eq(Fe)&&Ft(Fe)})}}function Kn(ot){return!!cn(ot.symbol)}function gt(ot,Ft){if(Kn(ot))return;const le=ot.symbol,ht=Ft.createSearch(void 0,le,void 0);A(le,Ft,ht)}function en(ot,Ft,le){if(k_(ot)&&ai(ot.parent)){Ft(ot);return}if(ot.kind!==80)return;ot.parent.kind===305&&Hi(ot,le.checker,Ft);const ht=or(ot);if(ht){Ft(ht);return}const ne=Dn(ot,dt=>!ku(dt.parent)&&!Ri(dt.parent)&&!gS(dt.parent)),Fe=ne.parent;if(xF(Fe)&&Fe.type===ne&&le.markSeenContainingTypeReference(Fe))if(Zy(Fe))it(Fe.initializer);else if(Yo(Fe)&&Fe.body){const dt=Fe.body;dt.kind===242?vb(dt,Lt=>{Lt.expression&&it(Lt.expression)}):it(dt)}else(vS(Fe)||ED(Fe))&&it(Fe.expression);function it(dt){Di(dt)&&Ft(dt)}}function or(ot){return He(ot)||qr(ot)?or(ot.parent):uy(ot)?ni(ot.parent.parent,Rp(ui,gd)):void 0}function Di(ot){switch(ot.kind){case 218:return Di(ot.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function co(ot,Ft,le,ht){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=>rM(dt).some(Lt=>{const Ue=ht.getTypeAtLocation(Lt);return!!Ue&&!!Ue.symbol&&co(Ue.symbol,Ft,le,ht)}));return le.set(ne,it),it}function zt(ot){let Ft=sk(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&=nv(Ft),Ft=Ft.parent;break;default:return}const ht=Ft.getSourceFile(),ne=ji(fe(ht,"super",Ft),Fe=>{if(Fe.kind!==108)return;const it=sk(Fe,!1);return it&&ua(it)===!!le&&it.parent.symbol===Ft.symbol?vy(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 Ai(ot,Ft,le){let ht=vu(ot,!1,!1),ne=256;switch(ht.kind){case 175:case 174:if(hm(ht)){ne&=nv(ht),ht=ht.parent;break}case 173:case 172:case 177:case 178:case 179:ne&=nv(ht),ht=ht.parent;break;case 308:if(zc(ht)||Zr(ot))return;case 263:case 219:break;default:return}const Fe=Ki(ht.kind===308?Ft:[ht.getSourceFile()],dt=>(le.throwIfCancellationRequested(),fe(dt,"this",Yi(ht)?dt:ht).filter(Lt=>{if(!QD(Lt))return!1;const Ue=vu(Lt,!1,!1);if(!ah(Ue))return!1;switch(ht.kind){case 219:case 263:return ht.symbol===Ue.symbol;case 175:case 174:return hm(ht)&&ht.symbol===Ue.symbol;case 232:case 264:case 211:return Ue.parent&&ah(Ue.parent)&&ht.symbol===Ue.parent.symbol&&ua(Ue)===!!ne;case 308:return Ue.kind===308&&!zc(Ue)&&!Zr(Lt)}}))).map(dt=>vy(dt));return[{definition:{type:3,node:Bn(Fe,dt=>to(dt.node.parent)?dt.node:void 0)||ot},references:Fe}]}function Ni(ot,Ft,le,ht){const ne=f7(ot,le),Fe=Ki(Ft,it=>(ht.throwIfCancellationRequested(),ji(fe(it,ot.text),dt=>{if(ds(dt)&&dt.text===ot.text)if(ne){const Lt=f7(dt,le);if(ne!==le.getStringType()&&(ne===Lt||Pr(dt,le)))return vy(dt,2)}else return y1(dt)&&!f1(dt,it)?void 0:vy(dt,2)})));return[{definition:{type:4,node:ot},references:Fe}]}function Pr(ot,Ft){if(Su(ot.parent))return Ft.getPropertyOfType(Ft.getTypeAtLocation(ot.parent.parent),ot.text)}function Ci(ot,Ft,le,ht,ne,Fe){const it=[];return Ye(ot,Ft,le,ht,!(ht&&ne),(dt,Lt,Ue)=>{Ue&&mn(ot)!==mn(Ue)&&(Ue=void 0),it.push(Ue||Lt||dt)},()=>!Fe),it}function Ye(ot,Ft,le,ht,ne,Fe,it){const dt=jO(Ft);if(dt){const Kt=le.getShorthandAssignmentValueSymbol(Ft.parent);if(Kt&&ht)return Fe(Kt,void 0,void 0,3);const Tr=le.getContextualType(dt.parent),Oe=Tr&&Bn(sz(dt,le,Tr,!0),Ae=>Ot(Ae,4));if(Oe)return Oe;const Nt=q(Ft,le),he=Nt&&Fe(Nt,void 0,void 0,4);if(he)return he;const B=Kt&&Fe(Kt,void 0,void 0,3);if(B)return B}const Lt=s(Ft,ot,le);if(Lt){const Kt=Fe(Lt,void 0,void 0,1);if(Kt)return Kt}const Ue=Ot(ot);if(Ue)return Ue;if(ot.valueDeclaration&&Np(ot.valueDeclaration,ot.valueDeclaration.parent)){const Kt=le.getSymbolsOfParameterPropertyDeclaration(ha(ot.valueDeclaration,to),ot.name);return C.assert(Kt.length===2&&!!(Kt[0].flags&1)&&!!(Kt[1].flags&4)),Ot(ot.flags&1?Kt[1]:Kt[0])}const Rt=ll(ot,282);if(!ht||Rt&&!Rt.propertyName){const Kt=Rt&&le.getExportSpecifierLocalTargetSymbol(Rt);if(Kt){const Tr=Fe(Kt,void 0,void 0,1);if(Tr)return Tr}}if(!ht){let Kt;return ne?Kt=IO(Ft.parent)?I7(le,Ft.parent):void 0:Kt=nt(ot,le),Kt&&Ot(Kt,4)}if(C.assert(ht),ne){const Kt=nt(ot,le);return Kt&&Ot(Kt,4)}function Ot(Kt,Tr){return Bn(le.getRootSymbols(Kt),Oe=>Fe(Kt,Oe,void 0,Tr)||(Oe.parent&&Oe.parent.flags&96&&it(Oe)?At(Oe.parent,Oe.name,le,Nt=>Fe(Kt,Oe,Nt,Tr)):void 0))}function nt(Kt,Tr){const Oe=ll(Kt,209);if(Oe&&IO(Oe))return I7(Tr,Oe)}}function At(ot,Ft,le,ht){const ne=new Set;return Fe(ot);function Fe(it){if(!(!(it.flags&96)||!ym(ne,it)))return Bn(it.declarations,dt=>Bn(rM(dt),Lt=>{const Ue=le.getTypeAtLocation(Lt),Rt=Ue.symbol&&le.getPropertyOfType(Ue,Ft);return Rt&&Bn(le.getRootSymbols(Rt),ht)||Ue.symbol&&Fe(Ue.symbol)}))}}function mn(ot){return ot.valueDeclaration?!!(Gd(ot.valueDeclaration)&256):!1}function dr(ot,Ft,le,ht){const{checker:ne}=ht;return Ye(Ft,le,ne,!1,ht.options.use!==2||!!ht.options.providePrefixAndSuffixTextForRename,(Fe,it,dt,Lt)=>(dt&&mn(Ft)!==mn(dt)&&(dt=void 0),ot.includes(dt||it||Fe)?{symbol:it&&!(Wl(Fe)&6)?it:Fe,kind:Lt}:void 0),Fe=>!(ot.parents&&!ot.parents.some(it=>co(Fe.parent,it,ht.inheritsFromCache,ne))))}function ri(ot,Ft){let le=F1(ot);const{declarations:ht}=Ft;if(ht){let ne;do{ne=le;for(const Fe of ht){const it=o7(Fe);it&le&&(le|=it)}}while(le!==ne)}return le}e.getIntersectingMeaningFromDeclarations=ri;function ai(ot){return ot.flags&33554432?!(gd(ot)||bm(ot)):HN(ot)?Zy(ot):Ms(ot)?!!ot.body:ui(ot)||H2(ot)}function Hi(ot,Ft,le){const ht=Ft.getSymbolAtLocation(ot),ne=Ft.getShorthandAssignmentValueSymbol(ht.valueDeclaration);if(ne)for(const Fe of ne.getDeclarations())o7(Fe)&1&&le(Fe)}e.getReferenceEntriesForShorthandPropertyAssignment=Hi;function $o(ot,Ft,le){Jo(ot,ht=>{ht.kind===Ft&&le(ht),$o(ht,Ft,le)})}function Ia(ot){return fV(s7(ot).parent)}function Pn(ot,Ft,le){const ht=$D(ot)?ot.parent:void 0,ne=ht&&le.getTypeAtLocation(ht.expression),Fe=ji(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}})(Ax||(Ax={}));var fC={};x(fC,{createDefinitionInfo:()=>eW,getDefinitionAndBoundSpan:()=>eit,getDefinitionAtPosition:()=>Tke,getReferenceAtPosition:()=>Eke,getTypeDefinitionAtPosition:()=>Qrt});function Tke(e,t,r,i,o){var s;const l=Eke(t,r,e),u=l&&[oit(l.reference.fileName,l.fileName,l.unverified)]||se;if(l!=null&&l.file)return u;const d=ip(t,r);if(d===t)return;const{parent:g}=d,h=e.getTypeChecker();if(d.kind===164||He(d)&&I4(g)&&g.tagName===d){const k=Xrt(h,d);if(k!==void 0||d.kind!==164)return k||se}if(gO(d)){const k=l7(d.parent,d.text);return k?[Sfe(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,UM);if(k)return[iit(k,t)];break}let y;switch(d.kind){case 107:case 135:case 127:y=Ms;const k=Dn(d,y);return k?[Afe(h,k)]:void 0}if(jI(d)&&Ql(d.parent)){const k=d.parent.parent,{symbol:F,failedAliasResolution:O}=ZK(k,h,o),G=Vn(k.members,Ql),j=F?h.symbolToString(F,k):"",J=d.getSourceFile();return Bt(G,Z=>{let{pos:q}=$h(Z);return q=ka(J.text,q),Sfe(h,Z,"constructor","static {}",j,!1,O,{start:q,length:6})})}let{symbol:E,failedAliasResolution:A}=ZK(d,h,o),R=d;if(i&&A){const k=$e([d,...(E==null?void 0:E.declarations)||se],O=>Dn(O,zte)),F=k&&gI(k);F&&({symbol:E,failedAliasResolution:A}=ZK(F,h,o),R=F)}if(!E&&A7(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:Id(0,0),failedAliasResolution:A,isAmbient:ad(k.resolvedFileName),unverified:R!==d}]}if(Aa(d)&&(bc(g)||nd(g))&&(E=g.symbol),!E)return lo(u,tit(d,h));if(i&&Hn(E.declarations,k=>k.getSourceFile().fileName===t.fileName))return;const N=sit(h,d);if(N&&!(ru(d.parent)&&lit(N))){const k=Afe(h,N,A);let F=G=>G!==N;if(h.getRootSymbols(E).some(G=>Krt(G,N))){if(!Ml(N))return[k];F=G=>G!==N&&(Dc(G)||uc(G))}const O=XP(h,E,d,A,F)||se;return d.kind===108?[k,...O]:[...O,k]}if(d.parent.kind===305){const k=h.getShorthandAssignmentValueSymbol(E.valueDeclaration),F=k!=null&&k.declarations?k.declarations.map(O=>eW(O,h,k,d,!1,A)):se;return lo(F,Ske(h,d))}if(vc(d)&&Ha(g)&&ff(g.parent)&&d===(g.propertyName||g.name)){const k=AO(d),F=h.getTypeAtLocation(g.parent);return k===void 0?se:Ki(F.isUnion()?F.types:[F],O=>{const G=O.getProperty(k);return G&&XP(h,G,d)})}const P=Ske(h,d);return lo(u,P.length?P:XP(h,E,d,A))}function Krt(e,t){var r;return e===t.symbol||e===t.symbol.parent||id(t.parent)||!yS(t.parent)&&e===((r=ni(t.parent,ah))==null?void 0:r.symbol)}function Ske(e,t){const r=jO(t);if(r){const i=r&&e.getContextualType(r.parent);if(i)return Ki(sz(r,e,i,!1),o=>XP(e,o,t))}return se}function Xrt(e,t){const r=Dn(t,bc);if(!(r&&r.name))return;const i=Dn(r,ui);if(!i)return;const o=lh(i);if(!o)return;const s=us(o.expression),l=uc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;const u=wc(r)?e.getTypeOfSymbol(l):e.getDeclaredTypeOfSymbol(l);let d;if(va(r.name)){const g=e.getSymbolAtLocation(r.name);if(!g)return;sM(g)?d=hn(e.getPropertiesOfType(u),h=>h.escapedName===g.escapedName):d=e.getPropertyOfType(u,Bi(g.escapedName))}else d=e.getPropertyOfType(u,Bi(hI(r.name)));if(d)return XP(e,d,t)}function Eke(e,t,r){var i,o;const s=tW(e.referencedFiles,t);if(s){const d=r.getSourceFileFromReference(e,s);return d&&{reference:s,fileName:d.fileName,file:d,unverified:!1}}const l=tW(e.typeReferenceDirectives,t);if(l){const d=(i=r.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(l,e))==null?void 0:i.resolvedTypeReferenceDirective,g=d&&r.getSourceFile(d.resolvedFileName);return g&&{reference:l,fileName:g.fileName,file:g,unverified:!1}}const u=tW(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=eC(e,t);let g;if(A7(d)&&td(d.text)&&(g=r.getResolvedModuleFromModuleSpecifier(d,e))){const h=(o=g.resolvedModule)==null?void 0:o.resolvedFileName,y=h||ab(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 Ake=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function Yrt(e,t){const r=t.symbol.name;if(!Ake.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function Ike(e,t){if(!t.aliasSymbol)return!1;const r=t.aliasSymbol.name;if(!Ake.has(r))return!1;const i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function $rt(e,t,r,i){var o,s;if(Hr(t)&4&&Yrt(e,t))return ZO(e.getTypeArguments(t)[0],e,r,i);if(Ike(e,t)&&t.aliasTypeArguments)return ZO(t.aliasTypeArguments[0],e,r,i);if(Hr(t)&32&&t.target&&Ike(e,t.target)){const l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&bm(l)&&Wp(l.type)&&l.type.typeArguments)return ZO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function Qrt(e,t,r){const i=ip(t,r);if(i===t)return;if(KR(i.parent)&&i.parent.name===i)return ZO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=ZK(i,e,!1);if(Aa(i)&&(bc(i.parent)||nd(i.parent))&&(o=i.parent.symbol,s=!1),!o)return;const l=e.getTypeOfSymbolAtLocation(o,i),u=Zrt(o,l,e),d=u&&ZO(u,e,i,s),[g,h]=d&&d.length!==0?[u,d]:[l,ZO(l,e,i,s)];return h.length?[...$rt(e,g,i,s),...h]:!(o.flags&111551)&&o.flags&788968?XP(e,xd(o,e),i,s):void 0}function ZO(e,t,r,i){return Ki(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&XP(t,o.symbol,r,i))}function Zrt(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($a(i))}}function eit(e,t,r){const i=Tke(e,t,r);if(!i||i.length===0)return;const o=tW(t.referencedFiles,r)||tW(t.typeReferenceDirectives,r)||tW(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:_v(o)};const s=ip(t,r),l=Id(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function tit(e,t){return ji(t.getIndexInfosAtLocation(e),r=>r.declaration&&Afe(t,r.declaration))}function ZK(e,t,r){const i=t.getSymbolAtLocation(e);let o=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!r&&nit(e,i.declarations[0])){const s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function nit(e,t){return e.kind!==80&&(e.kind!==11||!ub(e.parent))?!1:e.parent===t?!0:t.kind!==275}function rit(e){if(!$N(e))return!1;const t=Dn(e,r=>id(r)?!0:$N(r)?!1:"quit");return!!t&&ac(t)===5}function XP(e,t,r,i,o){const s=o!==void 0?Vn(t.declarations,o):t.declarations,l=!o&&(g()||h());if(l)return l;const u=Vn(s,E=>!rit(E)),d=vt(u)?u:s;return Bt(d,E=>eW(E,e,t,r,!1,i));function g(){if(t.flags&32&&!(t.flags&19)&&(IP(r)||r.kind===137)){const E=hn(s,ui);return E&&y(E.members,!0)}}function h(){return Aq(r)||Mq(r)?y(s,!1):void 0}function y(E,A){if(!E)return;const R=E.filter(A?Ml:Yo),N=R.filter(P=>!!P.body);return R.length?N.length!==0?N.map(P=>eW(P,e,t,r)):[eW(Ba(R),e,t,r,!1,i)]:void 0}}function eW(e,t,r,i,o,s){const l=t.symbolToString(r),u=vv.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return Sfe(t,e,u,l,d,o,s)}function Sfe(e,t,r,i,o,s,l,u){const d=t.getSourceFile();if(!u){const g=Oo(t)||t;u=zu(g,d)}return{fileName:d.fileName,textSpan:u,kind:r,name:i,containerKind:void 0,containerName:o,...Ys.toContextSpan(u,d,Ys.getContextNode(t)),isLocal:!Efe(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function iit(e,t){const r=Ys.getContextNode(e),i=zu(vfe(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...Ys.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Efe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Zy(t.parent)&&t.parent.initializer===t)return Efe(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(wp(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return Efe(e,t.parent);default:return!1}}function Afe(e,t,r){return eW(t,e,t.symbol,t,!1,r)}function tW(e,t){return hn(e,r=>N2(r,t))}function oit(e,t,r){return{fileName:t,textSpan:oc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function ait(e){const t=Dn(e,i=>!$D(i)),r=t==null?void 0:t.parent;return r&&yS(r)&&$F(r)===t?r:void 0}function sit(e,t){const r=ait(t),i=r&&e.getResolvedSignature(r);return ni(i&&i.declaration,o=>Yo(o)&&!O_(o))}function lit(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var eX={};x(eX,{provideInlayHints:()=>pit});var cit=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function dit(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function uit(e){return e.includeInlayParameterNameHints==="literals"}function Ife(e){return e.interactiveInlayHints===!0}function pit(e){const{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,u=r.getCompilerOptions(),d=Gp(t,s),g=r.getTypeChecker(),h=[];return y(t),h;function y(Se){if(!(!Se||Se.getFullWidth()===0)){switch(Se.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:o.throwIfCancellationRequested()}if(M2(i,Se.pos,Se.getFullWidth())&&!(Ri(Se)&&!uy(Se)))return s.includeInlayVariableTypeHints&&yi(Se)||s.includeInlayPropertyDeclarationTypeHints&&Po(Se)?F(Se):s.includeInlayEnumMemberValueHints&&fy(Se)?P(Se):dit(s)&&(Zo(Se)||VS(Se))?O(Se):(s.includeInlayFunctionParameterTypeHints&&Ms(Se)&&Q6(Se)&&ye(Se),s.includeInlayFunctionLikeReturnTypeHints&&E(Se)&&Z(Se)),Jo(Se,y)}}function E(Se){return Xs(Se)||Us(Se)||Zl(Se)||Nl(Se)||Hf(Se)}function A(Se,re,be,Ne){let Be=`${Ne?"...":""}${Se}`,lt;Ife(s)?(lt=[Je(Be,re),{text:":"}],Be=""):Be+=":",h.push({text:Be,position:be,kind:"Parameter",whitespaceAfter:!0,displayParts:lt})}function R(Se,re){h.push({text:typeof Se=="string"?`: ${Se}`:"",displayParts:typeof Se=="string"?void 0:[{text:": "},...Se],position:re,kind:"Type",whitespaceBefore:!0})}function N(Se,re){h.push({text:`= ${Se}`,position:re,kind:"Enum",whitespaceBefore:!0})}function P(Se){if(Se.initializer)return;const re=g.getConstantValue(Se);re!==void 0&&N(re.toString(),Se.end)}function k(Se){return Se.symbol&&Se.symbol.flags&1536}function F(Se){if(Se.initializer===void 0&&!(Po(Se)&&!(g.getTypeAtLocation(Se).flags&1))||Qo(Se.name)||yi(Se)&&!Ce(Se)||xc(Se))return;const be=g.getTypeAtLocation(Se);if(k(be))return;const Ne=fe(be);if(Ne){const Be=typeof Ne=="string"?Ne:Ne.map(ce=>ce.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&rb(Se.name.getText(),Be))return;R(Ne,Se.name.end)}}function O(Se){const re=Se.arguments;if(!re||!re.length)return;const be=g.getResolvedSignature(Se);if(be===void 0)return;let Ne=0;for(const Be of re){const lt=us(Be);if(uit(s)&&!J(lt)){Ne++;continue}let ce=0;if(qf(lt)){const ge=g.getTypeAtLocation(lt.expression);if(g.isTupleType(ge)){const{elementFlags:je,fixedLength:Ge}=ge.target;if(Ge===0)continue;const We=so(je,Wt=>!(Wt&1));(We<0?Ge:We)>0&&(ce=We<0?Ge:We)}}const Re=g.getParameterIdentifierInfoAtPosition(be,Ne);if(Ne=Ne+(ce||1),Re){const{parameter:ge,parameterName:je,isRestParameter:Ge}=Re;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!G(lt,je))&&!Ge)continue;const at=Bi(je);if(j(lt,at))continue;A(at,ge,Be.getStart(),Ge)}}}function G(Se,re){return He(Se)?Se.text===re:qr(Se)?Se.name.text===re:!1}function j(Se,re){if(!fp(re,Ga(u),jk(t.scriptKind)))return!1;const be=cg(l,Se.pos);if(!(be!=null&&be.length))return!1;const Ne=cit(re);return vt(be,Be=>Ne.test(l.substring(Be.pos,Be.end)))}function J(Se){switch(Se.kind){case 225:{const re=Se.operand;return YE(re)||He(re)&&NM(re.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{const re=Se.escapedText;return X(re)||NM(re)}}return YE(Se)}function Z(Se){if(Xs(Se)&&!Es(Se,21,t)||kp(Se)||!Se.body)return;const be=g.getSignatureFromDeclaration(Se);if(!be)return;const Ne=g.getTypePredicateOfSignature(be);if(Ne!=null&&Ne.type){const ce=ve(Ne);if(ce){R(ce,q(Se));return}}const Be=g.getReturnTypeOfSignature(be);if(k(Be))return;const lt=fe(Be);lt&&R(lt,q(Se))}function q(Se){const re=Es(Se,22,t);return re?re.end:Se.parameters.end}function ye(Se){const re=g.getSignatureFromDeclaration(Se);if(!re)return;let be=0;for(const Ne of Se.parameters)Ce(Ne)&&ie(Ne,Sb(Ne)?re.thisParameter:re.parameters[be]),!Sb(Ne)&&be++}function ie(Se,re){if(xc(Se)||re===void 0)return;const Ne=K(re);Ne!==void 0&&R(Ne,Se.questionToken?Se.questionToken.end:Se.name.end)}function K(Se){const re=Se.valueDeclaration;if(!re||!to(re))return;const be=g.getTypeOfSymbolAtLocation(Se,re);if(!k(be))return fe(be)}function pe(Se){const be=$S();return jR(Ne=>{const Be=g.typeToTypeNode(Se,void 0,71286784);C.assertIsDefined(Be,"should always get typenode"),be.writeNode(4,Be,t,Ne)})}function de(Se){const be=$S();return jR(Ne=>{const Be=g.typePredicateToTypePredicateNode(Se,void 0,71286784);C.assertIsDefined(Be,"should always get typePredicateNode"),be.writeNode(4,Be,t,Ne)})}function fe(Se){if(!Ife(s))return pe(Se);const be=g.typeToTypeNode(Se,void 0,71286784);return C.assertIsDefined(be,"should always get typeNode"),xe(be)}function ve(Se){if(!Ife(s))return de(Se);const be=g.typePredicateToTypePredicateNode(Se,void 0,71286784);return C.assertIsDefined(be,"should always get typenode"),xe(be)}function xe(Se){const re=[];return be(Se),re;function be(ce){var Re,ge;if(!ce)return;const je=ga(ce.kind);if(je){re.push({text:je});return}if(YE(ce)){re.push({text:lt(ce)});return}switch(ce.kind){case 80:C.assertNode(ce,He);const Ge=Kr(ce),We=ce.symbol&&ce.symbol.declarations&&ce.symbol.declarations.length&&Oo(ce.symbol.declarations[0]);We?re.push(Je(Ge,We)):re.push({text:Ge});break;case 167:C.assertNode(ce,ku),be(ce.left),re.push({text:"."}),be(ce.right);break;case 183:C.assertNode(ce,HI),ce.assertsModifier&&re.push({text:"asserts "}),be(ce.parameterName),ce.type&&(re.push({text:" is "}),be(ce.type));break;case 184:C.assertNode(ce,Wp),be(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," "),be(ce.name),ce.constraint&&(re.push({text:" extends "}),be(ce.constraint)),ce.default&&(re.push({text:" = "}),be(ce.default));break;case 170:C.assertNode(ce,to),ce.modifiers&&Be(ce.modifiers," "),ce.dotDotDotToken&&re.push({text:"..."}),be(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 186:C.assertNode(ce,vD),re.push({text:"new "}),Ne(ce),re.push({text:" => "}),be(ce.type);break;case 187:C.assertNode(ce,zS),re.push({text:"typeof "}),be(ce.exprName),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 188:C.assertNode(ce,wu),re.push({text:"{"}),ce.members.length&&(re.push({text:" "}),Be(ce.members,"; "),re.push({text:" "})),re.push({text:"}"});break;case 189:C.assertNode(ce,hw),be(ce.elementType),re.push({text:"[]"});break;case 190:C.assertNode(ce,qI),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 203:C.assertNode(ce,bD),ce.dotDotDotToken&&re.push({text:"..."}),be(ce.name),ce.questionToken&&re.push({text:"?"}),re.push({text:": "}),be(ce.type);break;case 191:C.assertNode(ce,g4),be(ce.type),re.push({text:"?"});break;case 192:C.assertNode(ce,y4),re.push({text:"..."}),be(ce.type);break;case 193:C.assertNode(ce,dv),Be(ce.types," | ");break;case 194:C.assertNode(ce,JI),Be(ce.types," & ");break;case 195:C.assertNode(ce,BS),be(ce.checkType),re.push({text:" extends "}),be(ce.extendsType),re.push({text:" ? "}),be(ce.trueType),re.push({text:" : "}),be(ce.falseType);break;case 196:C.assertNode(ce,v1),re.push({text:"infer "}),be(ce.typeParameter);break;case 197:C.assertNode(ce,b1),re.push({text:"("}),be(ce.type),re.push({text:")"});break;case 199:C.assertNode(ce,KT),re.push({text:`${ga(ce.operator)} `}),be(ce.type);break;case 200:C.assertNode(ce,GS),be(ce.objectType),re.push({text:"["}),be(ce.indexType),re.push({text:"]"});break;case 201:C.assertNode(ce,T1),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:"["}),be(ce.typeParameter),ce.nameType&&(re.push({text:" as "}),be(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&&be(ce.type),re.push({text:"; }"});break;case 202:C.assertNode(ce,uv),be(ce.literal);break;case 185:C.assertNode(ce,O_),Ne(ce),re.push({text:" => "}),be(ce.type);break;case 206:C.assertNode(ce,t_),ce.isTypeOf&&re.push({text:"typeof "}),re.push({text:"import("}),be(ce.argument),ce.assertions&&(re.push({text:", { assert: "}),Be(ce.assertions.assertClause.elements,", "),re.push({text:" }"})),re.push({text:")"}),ce.qualifier&&(re.push({text:"."}),be(ce.qualifier)),ce.typeArguments&&(re.push({text:"<"}),Be(ce.typeArguments,", "),re.push({text:">"}));break;case 172:C.assertNode(ce,Su),(Re=ce.modifiers)!=null&&Re.length&&(Be(ce.modifiers," "),re.push({text:" "})),be(ce.name),ce.questionToken&&re.push({text:"?"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 182:C.assertNode(ce,Mb),re.push({text:"["}),Be(ce.parameters,", "),re.push({text:"]"}),ce.type&&(re.push({text:": "}),be(ce.type));break;case 174:C.assertNode(ce,Vm),(ge=ce.modifiers)!=null&&ge.length&&(Be(ce.modifiers," "),re.push({text:" "})),be(ce.name),ce.questionToken&&re.push({text:"?"}),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 180:C.assertNode(ce,UI),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 181:C.assertNode(ce,GM),re.push({text:"new "}),Ne(ce),ce.type&&(re.push({text:": "}),be(ce.type));break;case 208:C.assertNode(ce,pv),re.push({text:"["}),Be(ce.elements,", "),re.push({text:"]"});break;case 207:C.assertNode(ce,ff),re.push({text:"{"}),ce.elements.length&&(re.push({text:" "}),Be(ce.elements,", "),re.push({text:" "})),re.push({text:"}"});break;case 209:C.assertNode(ce,Ha),be(ce.name);break;case 225:C.assertNode(ce,YT),re.push({text:ga(ce.operator)}),be(ce.operand);break;case 204:C.assertNode(ce,Sie),be(ce.head),ce.templateSpans.forEach(be);break;case 16:C.assertNode(ce,GI),re.push({text:lt(ce)});break;case 205:C.assertNode(ce,bj),be(ce.type),be(ce.literal);break;case 17:C.assertNode(ce,hj),re.push({text:lt(ce)});break;case 18:C.assertNode(ce,f4),re.push({text:lt(ce)});break;case 198:C.assertNode(ce,VM),re.push({text:"this"});break;case 168:C.assertNode(ce,va),re.push({text:"["}),be(ce.expression),re.push({text:"]"});break;default:C.failBadSyntaxKind(ce)}}function Ne(ce){ce.typeParameters&&(re.push({text:"<"}),Be(ce.typeParameters,", "),re.push({text:">"})),re.push({text:"("}),Be(ce.parameters,", "),re.push({text:")"})}function Be(ce,Re){ce.forEach((ge,je)=>{je>0&&re.push({text:Re}),be(ge)})}function lt(ce){switch(ce.kind){case 11:return d===0?`'${w_(ce.text,39)}'`:`"${w_(ce.text,34)}"`;case 16:case 17:case 18:{const Re=ce.rawText??QG(w_(ce.text,96));switch(ce.kind){case 16:return"`"+Re+"${";case 17:return"}"+Re+"${";case 18:return"}"+Re+"`"}}}return ce.text}}function X(Se){return Se==="undefined"}function Ce(Se){if((jT(Se)||yi(Se)&&JR(Se))&&Se.initializer){const re=us(Se.initializer);return!(J(re)||VS(re)||Fa(re)||vS(re))}return!0}function Je(Se,re){const be=re.getSourceFile();return{text:Se,span:zu(re,be),file:be.fileName}}}var y0={};x(y0,{getDocCommentTemplateAtPosition:()=>Eit,getJSDocParameterNameCompletionDetails:()=>Sit,getJSDocParameterNameCompletions:()=>Tit,getJSDocTagCompletionDetails:()=>Pke,getJSDocTagCompletions:()=>bit,getJSDocTagNameCompletionDetails:()=>vit,getJSDocTagNameCompletions:()=>yit,getJsDocCommentsFromDeclarations:()=>fit,getJsDocTagsFromDeclarations:()=>_it});var xke=["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"],Rke,Dke;function fit(e,t){const r=[];return nJ(e,i=>{for(const o of hit(i)){const s=mh(o)&&o.tags&&hn(o.tags,u=>u.kind===328&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||mh(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?mC(o.comment,t):[];s&&s.comment&&(l=l.concat(mC(s.comment,t))),Ln(r,l,mit)||r.push(l)}}),ia(To(r,[iC()]))}function mit(e,t){return Qp(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function hit(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(CD(e.parent))return[e.parent.parent];default:return WG(e)}}function _it(e,t){const r=[];return nJ(e,i=>{const o=kT(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:Mke(s,t)}),r.push(...Cke(Nke(s),t))}),r}function Cke(e,t){return Ki(e,r=>lo([{name:r.tagName.text,text:Mke(r,t)}],Cke(Nke(r),t)))}function Nke(e){return wN(e)&&e.isNameFirst&&e.typeExpression&&R1(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function mC(e,t){return typeof e=="string"?[yf(e)]:Ki(e,r=>r.kind===322?[yf(r.text)]:sce(r,t))}function Mke(e,t){const{comment:r,kind:i}=e,o=git(i);switch(i){case 350:const u=e.typeExpression;return u?s(u):r===void 0?void 0:mC(r,t);case 330:return s(e.class);case 329:return s(e.class);case 346:const d=e,g=[];if(d.constraint&&g.push(yf(d.constraint.getText())),Ze(d.typeParameters)){Ze(g)&&g.push(zl());const y=d.typeParameters[d.typeParameters.length-1];$e(d.typeParameters,E=>{g.push(o(E.getText())),y!==E&&g.push(lu(28),zl())})}return r&&g.push(zl(),...mC(r,t)),g;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:mC(r,t);default:return r===void 0?void 0:mC(r,t)}function s(u){return l(u.getText())}function l(u){return r?u.match(/^https?$/)?[yf(u),...mC(r,t)]:[o(u),zl(),...mC(r,t)]:[yf(u)]}}function git(e){switch(e){case 342:return nce;case 349:return rce;case 346:return oce;case 347:case 339:return ice;default:return yf}}function yit(){return Rke||(Rke=Bt(xke,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Ex.SortText.LocationPriority})))}var vit=Pke;function bit(){return Dke||(Dke=Bt(xke,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Ex.SortText.LocationPriority})))}function Pke(e){return{name:e,kind:"",kindModifiers:"",displayParts:[yf(e)],documentation:se,tags:void 0,codeActions:void 0}}function Tit(e){if(!He(e.name))return se;const t=e.name.text,r=e.parent,i=r.parent;return Yo(i)?ji(i.parameters,o=>{if(!He(o.name))return;const s=o.name.text;if(!(r.tags.some(l=>l!==e&&mf(l)&&He(l.name)&&l.name.escapedText===s)||t!==void 0&&!fo(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:Ex.SortText.LocationPriority}}):[]}function Sit(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[yf(e)],documentation:se,tags:void 0,codeActions:void 0}}function Eit(e,t,r,i){const o=Fi(t,r),s=Dn(o,mh);if(s&&(s.comment!==void 0||Ze(s.tags)))return;const l=o.getStart(t);if(!s&&l0;if(N&&!F){const O=P+e+A+" * ",G=l===r?e+A:"";return{newText:O+e+N+A+k+G,caretOffset:O.length}}return{newText:P+k,caretOffset:3}}function Ait(e,t){const{text:r}=e,i=Am(t,e);let o=i;for(;o<=t&&Gh(r.charCodeAt(o));o++);return r.slice(i,o)}function Iit(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 xit(e,t){return`${e} * @returns${t}`}function Rit(e,t){return Rte(e,r=>xfe(r,t))}function xfe(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:Sz(r,t)};case 304:return xfe(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{const o=e;return o.type&&O_(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:Sz(o.type,t)}:{commentOwner:e}}case 244:{const s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?Dit(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:Sz(l,t)}:{commentOwner:e}}case 308:return"quit";case 268:return e.parent.kind===268?void 0:{commentOwner:e};case 245:return xfe(e.expression,t);case 227:{const o=e;return ac(o)===0?"quit":Yo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:Sz(o.right,t)}:{commentOwner:e}}case 173:const i=e.initializer;if(i&&(Us(i)||Xs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:Sz(i,t)}}}function Sz(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(O_(e)||Xs(e)&&St(e.body)||Ms(e)&&e.body&&ea(e.body)&&!!vb(e.body,r=>r))}function Dit(e){for(;e.kind===218;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return hn(e.members,Ml)}}var tX={};x(tX,{mapCode:()=>Cit});function Cit(e,t,r,i,o,s){return Rr.ChangeTracker.with({host:i,formatContext:o,preferences:s},l=>{const u=t.map(g=>Nit(e,g)),d=r&&ia(r);for(const g of u)Mit(e,l,g,d)})}function Nit(e,t){const r=[{parse:()=>tx("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:s=>s.statements},{parse:()=>tx("__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 Mit(e,t,r,i){bc(r[0])||gS(r[0])?Pit(e,t,r,i):Lit(e,t,r,i)}function Pit(e,t,r,i){let o;if(!i||!i.length?o=hn(e.statements,Rp(ui,gd)):o=$e(i,l=>Dn(Fi(e,l.start),Rp(ui,gd))),!o)return;const s=o.members.find(l=>r.some(u=>Ez(u,l)));if(s){const l=ma(o.members,u=>r.some(d=>Ez(d,u)));$e(r,nX),t.replaceNodeRangeWithNodes(e,s,l,r);return}$e(r,nX),t.insertNodesAfter(e,o.members[o.members.length-1],r)}function Lit(e,t,r,i){if(!(i!=null&&i.length)){t.insertNodesAtEndOfFile(e,r,!1);return}for(const s of i){const l=Dn(Fi(e,s.start),u=>Rp(ea,Yi)(u)&&vt(u.statements,d=>r.some(g=>Ez(g,d))));if(l){const u=l.statements.find(d=>r.some(g=>Ez(g,d)));if(u){const d=ma(l.statements,g=>r.some(h=>Ez(h,g)));$e(r,nX),t.replaceNodeRangeWithNodes(e,u,d,r);return}}}let o=e.statements;for(const s of i){const l=Dn(Fi(e,s.start),ea);if(l){o=l.statements;break}}$e(r,nX),t.insertNodesAfter(e,o[o.length-1],r)}function Ez(e,t){var r,i,o,s,l,u;return e.kind!==t.kind?!1:e.kind===177?e.kind===t.kind:nd(e)&&nd(t)?e.name.getText()===t.name.getText():$T(e)&&$T(t)||Ej(e)&&Ej(t)?e.expression.getText()===t.expression.getText():QT(e)&&QT(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()):ZE(e)&&ZE(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():Lb(e)&&Lb(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function nX(e){Lke(e),e.parent=void 0}function Lke(e){e.pos=-1,e.end=-1,e.forEachChild(Lke)}var v0={};x(v0,{compareImportsOrRequireStatements:()=>kfe,compareModuleSpecifiers:()=>Qit,getImportDeclarationInsertionIndex:()=>Kit,getImportSpecifierInsertionIndex:()=>Xit,getNamedImportSpecifierComparerWithDetection:()=>Jit,getOrganizeImportsStringComparerWithDetection:()=>qit,organizeImports:()=>kit,testCoalesceExports:()=>$it,testCoalesceImports:()=>Yit});function kit(e,t,r,i,o,s){const l=Rr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),u=s==="SortAndCombine"||s==="All",d=u,g=s==="RemoveUnused"||s==="All",h=e.statements.filter(vl),y=Dfe(e,h),{comparersToTest:E,typeOrdersToTest:A}=Rfe(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}=Oke(y,E)),!N.typeOrder||typeof o.organizeImportsIgnoreCase!="boolean"){const O=Pfe(h,E,A);if(O){const{namedImportComparer:G,typeOrder:j}=O;N.namedImportComparer=N.namedImportComparer??G,N.typeOrder=N.typeOrder??j}}y.forEach(O=>k(O,N)),s!=="RemoveUnused"&&Oit(e).forEach(O=>F(O,N.namedImportComparer));for(const O of e.statements.filter(yu)){if(!O.body)continue;if(Dfe(e,O.body.statements.filter(vl)).forEach(j=>k(j,N)),s!=="RemoveUnused"){const j=O.body.statements.filter(fc);F(j,N.namedImportComparer)}}return l.getChanges();function P(O,G){if(Ze(O)===0)return;Cr(O[0],1024);const j=d?IR(O,q=>Az(q.moduleSpecifier)):[O],J=u?xp(j,(q,ye)=>Nfe(q[0].moduleSpecifier,ye[0].moduleSpecifier,N.moduleSpecifierComparer??R)):j,Z=Ki(J,q=>Az(q[0].moduleSpecifier)||q[0].moduleSpecifier===void 0?G(q):q);if(Z.length===0)l.deleteNodes(e,O,{leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include},!0);else{const q={leadingTriviaOption:Rr.LeadingTriviaOption.Exclude,trailingTriviaOption:Rr.TrailingTriviaOption.Include,suffix:gy(r,t.options)};l.replaceNodeWithNodes(e,O[0],Z,q);const ye=l.nodeHasTrailingComment(e,O[0],q);l.deleteNodes(e,O.slice(1),{trailingTriviaOption:Rr.TrailingTriviaOption.Include},ye)}}function k(O,G){const j=G.moduleSpecifierComparer??R,J=G.namedImportComparer??R,Z=G.typeOrder??"last",q=rW({organizeImportsTypeOrder:Z},J);P(O,ie=>(g&&(ie=Wit(ie,e,i)),d&&(ie=kke(ie,j,q,e)),u&&(ie=xp(ie,(K,pe)=>kfe(K,pe,j))),ie))}function F(O,G){const j=rW(o,G);P(O,J=>wke(J,j))}}function Rfe(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[Lfe(e,e.organizeImportsIgnoreCase)]:[Lfe(e,!0),Lfe(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function Dfe(e,t){const r=dg(e.languageVersion,!1,e.languageVariant),i=[];let o=0;for(const s of t)i[o]&&wit(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function wit(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 Oit(e){const t=[],r=e.statements,i=Ze(r);let o=0,s=0;for(;oDfe(e,l))}function Wit(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&&!g(A)&&(A=void 0),R)if(xg(R))g(R.name)||(R=void 0);else{const N=R.elements.filter(P=>g(P.name));N.length{if(l.attributes){let u=l.attributes.token+" ";for(const d of xp(l.attributes.elements,(g,h)=>Wd(g.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:g,regularImports:h}=Fit(u);d&&s.push(d);for(const y of[h,g]){const E=y===g,{defaultImports:A,namespaceImports:R,namedImports:N}=y;if(!E&&A.length===1&&R.length===1&&N.length===0){const q=A[0];s.push(nW(q,q.importClause.name,R[0].importClause.namedBindings));continue}const P=xp(R,(q,ye)=>t(q.importClause.namedBindings.name.text,ye.importClause.namedBindings.name.text));for(const q of P)s.push(nW(q,void 0,q.importClause.namedBindings));const k=Ac(A),F=Ac(N),O=k??F;if(!O)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(...Git(N));const J=L.createNodeArray(xp(j,r),F==null?void 0:F.importClause.namedBindings.elements.hasTrailingComma),Z=J.length===0?G?void 0:L.createNamedImports(se):F?L.updateNamedImports(F.importClause.namedBindings,J):L.createNamedImports(J);i&&Z&&(F!=null&&F.importClause.namedBindings)&&!f1(F.importClause.namedBindings,i)&&Cr(Z,2),E&&G&&Z?(s.push(nW(O,G,void 0)),s.push(nW(F??O,void 0,Z))):s.push(nW(O,G,Z))}}return s}function wke(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(...Ki(u,y=>y.exportClause&&Jf(y.exportClause)?y.exportClause.elements:se));const g=xp(d,t),h=u[0];s.push(L.updateExportDeclaration(h,h.modifiers,h.isTypeOnly,h.exportClause&&(Jf(h.exportClause)?L.updateNamedExports(h.exportClause,g):L.updateNamespaceExport(h.exportClause,h.exportClause.name)),h.moduleSpecifier,h.attributes))}return s;function l(u){let d;const g=[],h=[];for(const y of u)y.exportClause===void 0?d=d||y:y.isTypeOnly?h.push(y):g.push(y);return{exportWithoutClause:d,namedExports:g,typeOnlyExports:h}}}function nW(e,t,r){return L.updateImportDeclaration(e,e.modifiers,L.updateImportClause(e.importClause,e.importClause.phaseModifier,t,r),e.moduleSpecifier,e.attributes)}function Cfe(e,t,r,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return NT(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return NT(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function Nfe(e,t,r){const i=e===void 0?void 0:Az(e),o=t===void 0?void 0:Az(t);return NT(i===void 0,o===void 0)||NT(td(i),td(o))||r(i,o)}function zit(e){return e.map(t=>Az(Mfe(t))||"")}function Mfe(e){var t;switch(e.kind){case 272:return(t=ni(e.moduleReference,py))==null?void 0:t.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function Bit(e,t){const r=wa(t)&&t.text;return Bo(r)&&vt(e.moduleAugmentations,i=>wa(i)&&i.text===r)}function Git(e){return Ki(e,t=>Bt(Vit(t),r=>r.name&&r.propertyName&&TS(r.name)===TS(r.propertyName)?L.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function Vit(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&r_(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function Oke(e,t){const r=[];return e.forEach(i=>{r.push(zit(i))}),Fke(r,t)}function Pfe(e,t,r){let i=!1;const o=e.filter(d=>{var g,h;const y=(h=ni((g=d.importClause)==null?void 0:g.namedBindings,r_))==null?void 0:h.elements;return y!=null&&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 g,h;return(h=ni((g=d.importClause)==null?void 0:g.namedBindings,r_))==null?void 0:h.elements}).filter(d=>d!==void 0);if(!i||r.length===0){const d=Fke(s.map(g=>g.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 g={first:0,last:0,inline:0};for(const h of s)for(const y of r)g[y]=(g[y]??0)+Wke(h,(E,A)=>Cfe(E,A,d,{organizeImportsTypeOrder:y}));for(const h of r){const y=h;g[y]0&&r++;return r}function Fke(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=Wke(l,o);s+=u}sCfe(i,o,r,e)}function Jit(e,t,r){const{comparersToTest:i,typeOrdersToTest:o}=Rfe(t),s=Pfe([e],i,o);let l=rW(t,i[0]),u;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(s){const{namedImportComparer:d,typeOrder:g,isSorted:h}=s;u=h,l=rW({organizeImportsTypeOrder:g},d)}else if(r){const d=Pfe(r.statements.filter(vl),i,o);if(d){const{namedImportComparer:g,typeOrder:h,isSorted:y}=d;u=y,l=rW({organizeImportsTypeOrder:h},g)}}}return{specifierComparer:l,isSorted:u}}function Kit(e,t,r){const i=Zv(e,t,Vs,(o,s)=>kfe(o,s,r));return i<0?~i:i}function Xit(e,t,r){const i=Zv(e,t,Vs,r);return i<0?~i:i}function kfe(e,t,r){return Nfe(Mfe(e),Mfe(t),r)||jit(e,t)}function Yit(e,t,r,i){const o=Iz(t),s=rW({organizeImportsTypeOrder:i==null?void 0:i.organizeImportsTypeOrder},o);return kke(e,o,s,r)}function $it(e,t,r){return wke(e,(o,s)=>Cfe(o,s,Iz(t),{organizeImportsTypeOrder:(r==null?void 0:r.organizeImportsTypeOrder)??"last"}))}function Qit(e,t,r){const i=Iz(!!r);return Nfe(e,t,i)}var rX={};x(rX,{collectElements:()=>Zit});function Zit(e,t){const r=[];return eot(e,t,r),tot(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start),r}function eot(e,t,r){let i=40,o=0;const s=e.statements,l=s.length;for(;o1&&i.push(xz(s,l,"comment"))}}function Gke(e,t,r,i){BI(e)||wfe(e.pos,t,r,i)}function xz(e,t,r){return Ix(oc(e,t),r)}function rot(e,t){switch(e.kind){case 242:if(Yo(e.parent))return iot(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=Es(A,98,t);if(R)return h(R)}default:return Ix(zu(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,!qI(e.parent),23);case 297:case 298:return y(e.statements);case 211:return g(e);case 210:return g(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,!Ha(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=Es(A,19,t),N=Es(A,20,t);if(!(!R||!N||Gf(R.pos,N.pos,t)))return iX(R,N,A,t,!1,!1)}function i(A){if(!A.arguments.length)return;const R=Es(A,21,t),N=Es(A,22,t);if(!(!R||!N||Gf(R.pos,N.pos,t)))return iX(R,N,A,t,!1,!0)}function o(A){if(ea(A.body)||Ou(A.body)||Gf(A.body.getFullStart(),A.body.getEnd(),t))return;const R=oc(A.body.getFullStart(),A.body.getEnd());return Ix(R,"code",zu(A))}function s(A){const R=oc(A.openingElement.getStart(t),A.closingElement.getEnd()),N=A.openingElement.tagName.getText(t),P="<"+N+">...";return Ix(R,"code",R,!1,P)}function l(A){const R=oc(A.openingFragment.getStart(t),A.closingFragment.getEnd());return Ix(R,"code",R,!1,"<>...")}function u(A){if(A.properties.length!==0)return xz(A.getStart(t),A.getEnd(),"code")}function d(A){if(!(A.kind===15&&A.text.length===0))return xz(A.getStart(t),A.getEnd(),"code")}function g(A,R=19){return h(A,!1,!Cd(A.parent)&&!Zo(A.parent),R)}function h(A,R=!1,N=!0,P=19,k=P===19?20:24){const F=Es(e,P,t),O=Es(e,k,t);return F&&O&&iX(F,O,A,t,R,N)}function y(A){return A.length?Ix(_v(A),"code"):void 0}function E(A){if(Gf(A.getStart(),A.getEnd(),t))return;const R=oc(A.getStart(),A.getEnd());return Ix(R,"code",zu(A))}}function iot(e,t,r){const i=oot(e,t,r),o=Es(t,20,r);return i&&o&&iX(i,o,e,r,e.kind!==220)}function iX(e,t,r,i,o=!1,s=!0){const l=oc(s?e.getFullStart():e.getStart(i),t.getEnd());return Ix(l,"code",zu(r,i),o)}function Ix(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function oot(e,t,r){if(Yne(e.parameters,r)){const i=Es(e,21,r);if(i)return i}return Es(t,19,r)}var Rz={};x(Rz,{getRenameInfo:()=>aot,nodeIsEligibleForRename:()=>jke});function aot(e,t,r,i){const o=m7(ip(t,r));if(jke(o)){const s=sot(o,e.getTypeChecker(),t,e,i);if(s)return s}return oX(f.You_cannot_rename_this_element)}function sot(e,t,r,i,o){const s=t.getSymbolAtLocation(e);if(!s){if(ds(e)){const E=f7(e,t);if(E&&(E.flags&128||E.flags&1048576&&Hn(E.types,A=>!!(A.flags&128))))return Ofe(e.text,e.text,"string","",e,r)}else if(Rq(e)){const E=Al(e);return Ofe(E,E,"label","",e,r)}return}const{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>lot(i,E)))return oX(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(He(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(ds(e)&&bk(e))return o.allowRenameOfImportPath?dot(e,r,s):void 0;const u=cot(r,s,t,o);if(u)return oX(u);const d=vv.getSymbolKind(t,s,e),g=lce(e)||uf(e)&&e.parent.kind===168?gm(zf(e)):void 0,h=g||t.symbolToString(s),y=g||t.getFullyQualifiedName(s);return Ofe(h,y,d,vv.getSymbolModifiers(t,s),e,r)}function lot(e,t){const r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&El(r.fileName,".d.ts")}function cot(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const l=t.declarations&&hn(t.declarations,u=>Eu(u));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}const{declarations:o}=t;if(!o)return;const s=Vke(e.path);if(s===void 0)return vt(o,l=>MO(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=Vke(l.getSourceFile().path);if(u){const d=Math.min(s.length,u.length);for(let g=0;g<=d;g++)if(Wd(s[g],u[g])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function Vke(e){const t=zd(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function dot(e,t,r){if(!td(e.text))return oX(f.You_cannot_rename_a_module_via_a_global_import);const i=r.declarations&&hn(r.declarations,Yi);if(!i)return;const o=nl(e.text,"/index")||nl(e.text,"/index.js")?void 0:ZQ(Tu(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,d=Id(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 Ofe(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:uot(o,s)}}function oX(e){return{canRename:!1,localizedErrorMessage:Ho(e)}}function uot(e,t){let r=e.getStart(t),i=e.getWidth(t);return ds(e)&&(r+=1,i-=2),Id(r,i)}function jke(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return c7(e);default:return!1}}var iW={};x(iW,{getArgumentInfoForCompletions:()=>_ot,getSignatureHelpItems:()=>pot});function pot(e,t,r,i,o){const s=e.getTypeChecker(),l=RP(t,r);if(!l)return;const u=!!i&&i.kind==="characterTyped";if(u&&(px(t,r,l)||mv(t,r)))return;const d=!!i&&i.kind==="invoked",g=Cot(l,r,t,s,d);if(!g)return;o.throwIfCancellationRequested();const h=fot(g,s,t,l,u);return o.throwIfCancellationRequested(),h?s.runWithCancellationToken(o,y=>h.kind===0?$ke(h.candidates,h.resolvedSignature,g,t,y):Mot(h.symbol,g,t,y)):Pu(t)?hot(g,e,o):void 0}function fot({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!mot(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&&!Uke(o,i,He(l)?l.parent:l))return;const u=Wq(l,t,r);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:$a(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 mot(e,t,r){if(!Vh(t))return!1;const i=t.getChildren(r);switch(e.kind){case 21:return Ln(i,e);case 28:{const o=p7(e);return!!o&&Ln(i,o)}case 30:return Uke(e,r,t.expression);default:return!1}}function hot(e,t,r){if(e.invocation.kind===2)return;const i=Xke(e.invocation),o=qr(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:Bn(t.getSourceFiles(),l=>Bn(l.getNamedDeclarations().get(o),u=>{const d=u.symbol&&s.getTypeOfSymbolAtLocation(u.symbol,u),g=d&&d.getCallSignatures();if(g&&g.length)return s.runWithCancellationToken(r,h=>$ke(g,g[0],e,l,h,!0))}))}function Uke(e,t,r){const i=e.getFullStart();let o=e.parent;for(;o;){const s=Bc(i,t,o,!0);if(s)return tp(r,s);o=o.parent}return C.fail("Could not find preceding token")}function _ot(e,t,r,i){const o=qke(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 Hke(e,t,r,i){const o=got(e,r,i);if(!o)return;const{list:s,argumentIndex:l}=o,u=Iot(i,s),d=Rot(s,r);return{list:s,argumentIndex:l,argumentCount:u,argumentsSpan:d}}function got(e,t,r){if(e.kind===30||e.kind===21)return{list:Not(e.parent,e,t),argumentIndex:0};{const i=p7(e);return i&&{list:i,argumentIndex:Aot(r,i,e)}}}function qke(e,t,r,i){const{parent:o}=e;if(Vh(o)){const s=o,l=Hke(e,t,r,i);if(!l)return;const{list:u,argumentIndex:d,argumentCount:g,argumentsSpan:h}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===u.pos,invocation:{kind:0,node:s},argumentsSpan:h,argumentIndex:d,argumentCount:g}}else{if(y1(e)&&XT(o))return TO(e,t,r)?Ffe(o,0,r):void 0;if(GI(e)&&o.parent.kind===216){const s=o,l=s.parent;C.assert(s.kind===229);const u=TO(e,t,r)?0:1;return Ffe(l,u,r)}else if(AD(o)&&XT(o.parent.parent)){const s=o,l=o.parent.parent;if(f4(e)&&!TO(e,t,r))return;const u=s.parent.templateSpans.indexOf(s),d=xot(u,e,t,r);return Ffe(l,d,r)}else if(ru(o)){const s=o.attributes.pos,l=ka(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:Id(s,l-s),argumentIndex:0,argumentCount:1}}else{const s=Fq(e,r);if(s){const{called:l,nTypeArguments:u}=s,d={kind:1,called:l},g=oc(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:d,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function yot(e,t,r,i){return vot(e,t,r,i)||qke(e,t,r,i)}function Jke(e){return Nr(e.parent)?Jke(e.parent):e}function Wfe(e){return Nr(e.left)?Wfe(e.left)+1:2}function vot(e,t,r,i){const o=bot(e);if(o===void 0)return;const s=Tot(o,r,t,i);if(s===void 0)return;const{contextualType:l,argumentIndex:u,argumentCount:d,argumentsSpan:g}=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:Sot(y)},argumentsSpan:g,argumentIndex:u,argumentCount:d}}function bot(e){switch(e.kind){case 21:case 28:return e;default:return Dn(e.parent,t=>to(t)?!0:Ha(t)||ff(t)||pv(t)?!1:"quit")}}function Tot(e,t,r,i){const{parent:o}=e;switch(o.kind){case 218:case 175:case 219:case 220:const s=Hke(e,r,t,i);if(!s)return;const{argumentIndex:l,argumentCount:u,argumentsSpan:d}=s,g=Nl(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return g&&{contextualType:g,argumentIndex:l,argumentCount:u,argumentsSpan:d};case 227:{const h=Jke(o),y=i.getContextualType(h),E=e.kind===21?0:Wfe(o)-1,A=Wfe(h);return y&&{contextualType:y,argumentIndex:E,argumentCount:A,argumentsSpan:zu(o)}}default:return}}function Sot(e){return e.name==="__type"&&Bn(e.declarations,t=>{var r;return O_(t)?(r=ni(t.parent,ah))==null?void 0:r.symbol:void 0})||e}function Eot(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=so(i,l=>!(l&1));return s<0?o:s}return 0}function Aot(e,t,r){return Kke(e,t,r)}function Iot(e,t){return Kke(e,t,void 0)}function Kke(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(qf(l)){o+=Eot(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Ba(i).kind===28?o+1:o}function xot(e,t,r,i){return C.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),rte(t)?TO(t,r,i)?0:e+2:e+1}function Ffe(e,t,r){const i=y1(e.template)?1:e.template.templateSpans.length+1;return t!==0&&C.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Dot(e,r),argumentIndex:t,argumentCount:i}}function Rot(e,t){const r=e.getFullStart(),i=ka(t.text,e.getEnd(),!1);return Id(r,i-r)}function Dot(e,t){const r=e.template,i=r.getStart();let o=r.getEnd();return r.kind===229&&Ba(r.templateSpans).literal.getFullWidth()===0&&(o=ka(t.text,o,!1)),Id(i,o-i)}function Cot(e,t,r,i,o){for(let s=e;!Yi(s)&&(o||!ea(s));s=s.parent){C.assert(tp(s.parent,s),"Not a subspan",()=>`Child: ${C.formatSyntaxKind(s.kind)}, parent: ${C.formatSyntaxKind(s.parent.kind)}`);const l=yot(s,t,r,i);if(l)return l}}function Not(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 Xke(e){return e.kind===0?$F(e.node):e.called}function Yke(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var Dz=70246400;function $ke(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},u,d,g){var h;const y=Yke(s),E=s.kind===2?s.symbol:d.getSymbolAtLocation(Xke(s))||g&&((h=t.declaration)==null?void 0:h.symbol),A=E?LP(d,E,g?u:void 0,void 0):se,R=Bt(e,O=>Lot(O,A,r,d,y,u));let N=0,P=0;for(let O=0;O1)){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:ic(R,Vs),applicableSpan:o,selectedItemIndex:N,argumentIndex:l,argumentCount:i},F=k.items[N];if(F.isVariadic){const O=so(F.parameters,G=>!!G.isRest);-1Zke(y,r,i,o,l)),d=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,lu(30)],suffixDisplayParts:[lu(32)],separatorDisplayParts:Qke,parameters:u,documentation:d,tags:g}}var Qke=[lu(28),zl()];function Lot(e,t,r,i,o,s){const l=(r?wot:Oot)(e,i,o,s);return Bt(l,({isVariadic:u,parameters:d,prefix:g,suffix:h})=>{const y=[...t,...g],E=[...h,...kot(e,o,i)],A=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:E,separatorDisplayParts:Qke,parameters:d,documentation:A,tags:R}})}function kot(e,t,r){return jb(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 wot(e,t,r,i){const o=(e.target||e).typeParameters,s=$S(),l=(o||se).map(d=>Zke(d,t,r,i,s)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,Dz)]:[];return t.getExpandedParameters(e).map(d=>{const g=L.createNodeArray([...u,...Bt(d,y=>t.symbolToParameterDeclaration(y,r,Dz))]),h=jb(y=>{s.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:l,prefix:[lu(30)],suffix:[lu(32),...h]}})}function Oot(e,t,r,i){const o=$S(),s=jb(d=>{if(e.typeParameters&&e.typeParameters.length){const g=L.createNodeArray(e.typeParameters.map(h=>t.typeParameterToDeclaration(h,r,Dz)));o.writeList(53776,g,i,d)}}),l=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?l.length===1?d=>!0:d=>{var g;return!!(d.length&&((g=ni(d[d.length-1],fg))==null?void 0:g.links.checkFlags)&32768)}:d=>!1;return l.map(d=>({isVariadic:u(d),parameters:d.map(g=>Wot(g,t,r,i,o)),prefix:[...s,lu(21)],suffix:[lu(22)]}))}function Wot(e,t,r,i,o){const s=jb(d=>{const g=t.symbolToParameterDeclaration(e,r,Dz);o.writeNode(4,g,i,d)}),l=t.isOptionalParameter(e.valueDeclaration),u=fg(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:u}}function Zke(e,t,r,i,o){const s=jb(l=>{const u=t.typeParameterToDeclaration(e,r,Dz);o.writeNode(4,u,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var aX={};x(aX,{getSmartSelectionRange:()=>Fot});function Fot(e,t){var r,i;let o={textSpan:oc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){const d=Got(s);if(!d.length)break;for(let g=0;ge)break e;const A=ag(sb(t.text,y.end));if(A&&A.kind===2&&u(A.pos,A.end),zot(t,e,y)){if(nG(y)&&Ms(s)&&!Gf(y.getStart(t),y.getEnd(),t)&&l(y.getStart(t),y.getEnd()),ea(y)||AD(y)||GI(y)||f4(y)||h&&GI(h)||_d(y)&&sc(s)||ND(y)&&_d(s)||yi(y)&&ND(s)&&d.length===1||t0(y)||fv(y)||R1(y)){s=y;break}if(AD(s)&&E&&yF(E)){const k=y.getFullStart()-2,F=E.getStart()+1;l(k,F)}const R=ND(y)&&Vot(h)&&jot(E)&&!Gf(h.getStart(),E.getStart(),t);let N=R?h.getEnd():y.getStart();const P=R?E.getStart():Uot(t,y);if(ef(y)&&((r=y.jsDoc)!=null&&r.length)&&l($a(y.jsDoc).getStart(),P),ND(y)){const k=y.getChildren()[0];k&&ef(k)&&((i=k.jsDoc)!=null&&i.length)&&k.getStart()!==y.pos&&(N=Math.min(N,$a(k.jsDoc).getStart()))}l(N,P),(wa(y)||lI(y))&&l(N+1,P-1),s=y;break}if(g===d.length-1)break e}}return o;function l(d,g){if(d!==g){const h=oc(d,g);(!o||!rC(h,o.textSpan)&&kee(h,e))&&(o={textSpan:h,...o&&{parent:o}})}}function u(d,g){l(d,g);let h=d;for(;t.text.charCodeAt(h)===47;)h++;l(h,g)}}function zot(e,t,r){return C.assert(r.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),l=oW(s,({kind:u})=>u===23||u===169||u===24);return[r,aW(sX(l,({kind:u})=>u===59)),o]}if(Su(e)){const r=oW(e.getChildren(),l=>l===e.name||Ln(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===321?r[0]:void 0,o=i?r.slice(1):r,s=sX(o,({kind:l})=>l===59);return i?[i,aW(s)]:s}if(to(e)){const r=oW(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=oW(r,o=>o===r[0]||o===e.questionToken);return sX(i,({kind:o})=>o===64)}return Ha(e)?sX(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function oW(e,t){const r=[];let i;for(const o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(aW(i)),i=void 0),r.push(o));return i&&r.push(aW(i)),r}function sX(e,t,r=!0){if(e.length<2)return e;const i=so(e,t);if(i===-1)return e;const o=e.slice(0,i),s=e[i],l=Ba(e),u=r&&l.kind===27,d=e.slice(i+1,u?e.length-1:void 0),g=m2([o.length?aW(o):void 0,s,d.length?aW(d):void 0]);return u?g.concat(l):g}function aW(e){return C.assertGreaterThanOrEqual(e.length,1),uh(i0.createSyntaxList(e),e[0].pos,Ba(e).end)}function Vot(e){const t=e&&e.kind;return t===19||t===23||t===21||t===287}function jot(e){const t=e&&e.kind;return t===20||t===24||t===22||t===288}function Uot(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 vv={};x(vv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>qot,getSymbolKind:()=>twe,getSymbolModifiers:()=>Hot});var ewe=70246400;function twe(e,t,r){const i=nwe(e,t,r);if(i!=="")return i;const o=cD(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 nwe(e,t,r){const i=e.getRootSymbols(t);if(i.length===1&&$a(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)||MS(r))return"parameter";const o=cD(t);if(o&3)return iJ(t)?"parameter":t.valueDeclaration&&JR(t.valueDeclaration)?"const":t.valueDeclaration&&ik(t.valueDeclaration)?"using":t.valueDeclaration&&rk(t.valueDeclaration)?"await using":$e(t.declarations,GF)?"let":owe(t)?"local var":"var";if(o&16)return owe(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=$e(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function rwe(e){if(e.declarations&&e.declarations.length){const[t,...r]=e.declarations,i=Ze(r)&&W7(t)&&vt(r,s=>!W7(s))?65536:0,o=DP(t,i);if(o)return o.split(",")}return[]}function Hot(e,t){if(!t)return"";const r=new Set(rwe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&$e(rwe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?Co(r.values()).join(","):""}function iwe(e,t,r,i,o,s,l,u,d,g){var h;const y=[];let E=[],A=[];const R=cD(t);let N=l&1?nwe(e,t,o):"",P=!1;const k=o.kind===110&&QF(o)||MS(o);let F,O,G=!1;const j={canIncreaseExpansionDepth:!1,truncated:!1};let J=!1;if(o.kind===110&&!k)return{displayParts:[Vp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(N!==""||R&32||R&2097152){if(N==="getter"||N==="setter"){const be=hn(t.declarations,Ne=>Ne.name===o&&Ne.kind!==212);if(be)switch(be.kind){case 178:N="getter";break;case 179:N="setter";break;case 173:N="accessor";break;default:C.assertNever(be)}else N="property"}let Se;if(s??(s=k?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===212){const be=o.parent.name;(be===o||be&&be.getFullWidth()===0)&&(o=o.parent)}let re;if(Vh(o)?re=o:(Eq(o)||IP(o)||o.parent&&(ru(o.parent)||XT(o.parent))&&Yo(t.valueDeclaration))&&(re=o.parent),re){Se=e.getResolvedSignature(re);const be=re.kind===215||Zo(re)&&re.expression.kind===108,Ne=be?s.getConstructSignatures():s.getCallSignatures();if(Se&&!Ln(Ne,Se.target)&&!Ln(Ne,Se)&&(Se=Ne.length?Ne[0]:void 0),Se){switch(be&&R&32?(N="constructor",xe(s.symbol,N)):R&2097152?(N="alias",X(N),y.push(zl()),be&&(Se.flags&4&&(y.push(Vp(128)),y.push(zl())),y.push(Vp(105)),y.push(zl())),ve(t)):xe(t,N),N){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(lu(59)),y.push(zl()),!(Hr(s)&16)&&s.symbol&&(Xr(y,LP(e,s.symbol,i,void 0,5)),y.push(iC())),be&&(Se.flags&4&&(y.push(Vp(128)),y.push(zl())),y.push(Vp(105)),y.push(zl())),Ce(Se,Ne,262144);break;default:Ce(Se,Ne)}P=!0,G=Ne.length>1}}else if(Mq(o)&&!(R&98304)||o.kind===137&&o.parent.kind===177){const be=o.parent;if(t.declarations&&hn(t.declarations,Be=>Be===(o.kind===137?be.parent:be))){const Be=be.kind===177?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(be)?Se=Be[0]:Se=e.getSignatureFromDeclaration(be),be.kind===177?(N="constructor",xe(s.symbol,N)):xe(be.kind===180&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,N),Se&&Ce(Se,Be),P=!0,G=Be.length>1}}}if(R&32&&!P&&!k){ie();const Se=ll(t,232);Se&&(X("local class"),y.push(zl())),fe(t,l)||(Se||(y.push(Vp(86)),y.push(zl())),ve(t),Je(t,r))}if(R&64&&l&2&&(ye(),fe(t,l)||(y.push(Vp(120)),y.push(zl()),ve(t),Je(t,r))),R&524288&&l&2&&(ye(),y.push(Vp(156)),y.push(zl()),ve(t),Je(t,r),y.push(zl()),y.push(PP(64)),y.push(zl()),Xr(y,RO(e,o.parent&&Wm(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608,d,g,j))),R&384&&(ye(),fe(t,l)||(vt(t.declarations,Se=>ZT(Se)&&OT(Se))&&(y.push(Vp(87)),y.push(zl())),y.push(Vp(94)),y.push(zl()),ve(t,void 0))),R&1536&&!k&&(ye(),!fe(t,l))){const Se=ll(t,268),re=Se&&Se.name&&Se.name.kind===80;y.push(Vp(re?145:144)),y.push(zl()),ve(t)}if(R&262144&&l&2)if(ye(),y.push(lu(21)),y.push(yf("type parameter")),y.push(lu(22)),y.push(zl()),ve(t),t.parent)K(),ve(t.parent,i),Je(t.parent,i);else{const Se=ll(t,169);if(Se===void 0)return C.fail();const re=Se.parent;if(re)if(Yo(re)){K();const be=e.getSignatureFromDeclaration(re);re.kind===181?(y.push(Vp(105)),y.push(zl())):re.kind!==180&&re.name&&ve(re.symbol),Xr(y,aJ(e,be,r,32))}else bm(re)&&(K(),y.push(Vp(156)),y.push(zl()),ve(re.symbol),Je(re.symbol,r))}if(R&8){N="enum member",xe(t,"enum member");const Se=(h=t.declarations)==null?void 0:h[0];if((Se==null?void 0:Se.kind)===307){const re=e.getConstantValue(Se);re!==void 0&&(y.push(zl()),y.push(PP(64)),y.push(zl()),y.push(yp(Ote(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(ye(),!P||E.length===0&&A.length===0){const Se=e.getAliasedSymbol(t);if(Se!==t&&Se.declarations&&Se.declarations.length>0){const re=Se.declarations[0],be=Oo(re);if(be&&!P){const Ne=WF(re)&&di(re,128),Be=t.name!=="default"&&!Ne,lt=iwe(e,Se,Fn(re),i,be,s,l,Be?t:Se,d,g);y.push(...lt.displayParts),y.push(iC()),F=lt.documentation,O=lt.tags,j&<.canIncreaseVerbosityLevel&&(j.canIncreaseExpansionDepth=!0)}else F=Se.getContextualDocumentationComment(re,e),O=Se.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:y.push(Vp(95)),y.push(zl()),y.push(Vp(145));break;case 278:y.push(Vp(95)),y.push(zl()),y.push(Vp(t.declarations[0].isExportEquals?64:90));break;case 282:y.push(Vp(95));break;default:y.push(Vp(102))}y.push(zl()),ve(t),$e(t.declarations,Se=>{if(Se.kind===272){const re=Se;if(FT(re))y.push(zl()),y.push(PP(64)),y.push(zl()),y.push(Vp(149)),y.push(lu(21)),y.push(yp(Al(XN(re)),8)),y.push(lu(22));else{const be=e.getSymbolAtLocation(re.moduleReference);be&&(y.push(zl()),y.push(PP(64)),y.push(zl()),ve(be,i))}return!0}})}if(!P)if(N!==""){if(s){if(k?(ye(),y.push(Vp(110))):xe(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(lu(59)),y.push(zl()),s.symbol&&s.symbol.flags&262144&&N!=="index"){const Se=jb(re=>{const be=e.typeParameterToDeclaration(s,i,ewe,void 0,void 0,d,g,j);q().writeNode(4,be,Fn(jo(i)),re)},d);Xr(y,Se)}else Xr(y,RO(e,s,i,void 0,d,g,j));if(fg(t)&&t.links.target&&fg(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const Se=t.links.target.links.tupleLabelDeclaration;C.assertNode(Se.name,He),y.push(zl()),y.push(lu(21)),y.push(yf(Kr(Se.name))),y.push(lu(22))}}else if(R&16||R&8192||R&16384||R&131072||R&98304||N==="method"){const Se=s.getNonNullableType().getCallSignatures();Se.length&&(Ce(Se[0],Se),G=Se.length>1)}}}else N=twe(e,t,o);if(E.length===0&&!G&&(E=t.getContextualDocumentationComment(i,e)),E.length===0&&R&4&&t.parent&&t.declarations&&$e(t.parent.declarations,Se=>Se.kind===308))for(const Se of t.declarations){if(!Se.parent||Se.parent.kind!==227)continue;const re=e.getSymbolAtLocation(Se.parent.right);if(re&&(E=re.getDocumentationComment(e),A=re.getJsDocTags(e),E.length>0))break}if(E.length===0&&He(o)&&t.valueDeclaration&&Ha(t.valueDeclaration)){const Se=t.valueDeclaration,re=Se.parent,be=Se.propertyName||Se.name;if(He(be)&&ff(re)){const Ne=zf(be),Be=e.getTypeAtLocation(re);E=Bn(Be.isUnion()?Be.types:[Be],lt=>{const ce=lt.getProperty(Ne);return ce?ce.getDocumentationComment(e):void 0})||se}}A.length===0&&!G&&!YN(o)&&(A=t.getContextualJsDocTags(i,e)),E.length===0&&F&&(E=F),A.length===0&&O&&(A=O);const Z=!j.truncated&&j.canIncreaseExpansionDepth;return{displayParts:y,documentation:E,symbolKind:N,tags:A.length===0?void 0:A,canIncreaseVerbosityLevel:g!==void 0?Z:void 0};function q(){return $S()}function ye(){y.length&&y.push(iC()),ie()}function ie(){u&&(X("alias"),y.push(zl()))}function K(){y.push(zl()),y.push(Vp(103)),y.push(zl())}function pe(Se,re){if(g===void 0)return!1;const be=Se.flags&96?e.getDeclaredTypeOfSymbol(Se):e.getTypeOfSymbolAtLocation(Se,o);return!be||e.isLibType(be)?!1:0{const lt=e.getEmitResolver().symbolToDeclarations(Se,be,17408,d,g!==void 0?g-1:void 0,j),ce=q(),Re=Se.valueDeclaration&&Fn(Se.valueDeclaration);lt.forEach((ge,je)=>{je>0&&Be.writeLine(),ce.writeNode(4,ge,Re,Be)})},d);return Xr(y,Ne),J=!0,!0}return!1}function ve(Se,re){let be;u&&Se===t&&(Se=u),N==="index"&&(be=e.getIndexInfosOfIndexSymbol(Se));let Ne=[];Se.flags&131072&&be?(Se.parent&&(Ne=LP(e,Se.parent)),Ne.push(lu(23)),be.forEach((Be,lt)=>{Ne.push(...RO(e,Be.keyType)),lt!==be.length-1&&(Ne.push(zl()),Ne.push(lu(52)),Ne.push(zl()))}),Ne.push(lu(24))):Ne=LP(e,Se,re||r,void 0,7),Xr(y,Ne),t.flags&16777216&&y.push(lu(58))}function xe(Se,re){ye(),re&&(X(re),Se&&!vt(Se.declarations,be=>Xs(be)||(Us(be)||uc(be))&&!be.name)&&(y.push(zl()),ve(Se)))}function X(Se){switch(Se){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":y.push(oJ(Se));return;default:y.push(lu(21)),y.push(oJ(Se)),y.push(lu(22));return}}function Ce(Se,re,be=0){Xr(y,aJ(e,Se,i,be|32,d,g,j)),re.length>1&&(y.push(zl()),y.push(lu(21)),y.push(PP(40)),y.push(yp((re.length-1).toString(),7)),y.push(zl()),y.push(yf(re.length===2?"overload":"overloads")),y.push(lu(22))),E=Se.getDocumentationComment(e),A=Se.getJsDocTags(),re.length>1&&E.length===0&&A.length===0&&(E=re[0].getDocumentationComment(e),A=re[0].getJsDocTags().filter(Ne=>Ne.name!=="deprecated"))}function Je(Se,re){const be=jb(Ne=>{const Be=e.symbolToTypeParameterDeclarations(Se,re,ewe);q().writeList(53776,Be,Fn(jo(re)),Ne)});Xr(y,be)}}function qot(e,t,r,i,o,s=F1(o),l,u,d){return iwe(e,t,r,i,o,void 0,s,l,u,d)}function owe(e){return e.parent?!1:$e(e.declarations,t=>{if(t.kind===219)return!0;if(t.kind!==261&&t.kind!==263)return!1;for(let r=t.parent;!ES(r);r=r.parent)if(r.kind===308||r.kind===269)return!1;return!0})}var Rr={};x(Rr,{ChangeTracker:()=>Xot,LeadingTriviaOption:()=>lwe,TrailingTriviaOption:()=>cwe,applyChanges:()=>jfe,assignPositionsToNode:()=>uX,createWriter:()=>uwe,deleteNode:()=>by,getAdjustedEndPosition:()=>xx,isThisTypeAnnotatable:()=>Kot,isValidLocationToAddComment:()=>pwe});function awe(e){const t=e.__pos;return C.assert(typeof t=="number"),t}function zfe(e,t){C.assert(typeof t=="number"),e.__pos=t}function swe(e){const t=e.__end;return C.assert(typeof t=="number"),t}function Bfe(e,t){C.assert(typeof t=="number"),e.__end=t}var lwe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(lwe||{}),cwe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(cwe||{});function dwe(e,t){return ka(e,t,!1,!0)}function Jot(e,t){let r=t;for(;r0?1:0;let E=_b(dM(e,g)+y,e);return E=dwe(e.text,E),_b(dM(e,E),e)}function Gfe(e,t,r){const{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){const s=sb(e.text,i);if(s){const l=dM(e,t.end);for(const u of s){if(u.kind===2||dM(e,u.pos)>l)break;if(dM(e,u.end)>l)return ka(e.text,u.end,!0,!0)}}}}function xx(e,t,r){var i;const{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){const d=lo(sb(e.text,o),cg(e.text,o)),g=(i=d==null?void 0:d[d.length-1])==null?void 0:i.end;return g||o}const l=Gfe(e,t,r);if(l)return l;const u=ka(e.text,o,!0);return u!==o&&(s===2||eu(e.text.charCodeAt(u-1)))?u:o}function lX(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===211)}function Kot(e){return Us(e)||Zl(e)}var Xot=class Uye{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Uye(gy(t.host,t.formatContext.options),t.formatContext)}static with(t,r){const i=Uye.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:v7(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,lW(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(const s of r){const l=H1(t,s,i,o),u=xx(t,s,i);this.deleteRange(t,{pos:l,end:u}),o=!!Gfe(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:ka(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){const s=H1(t,r,o),l=xx(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){const s=H1(t,r,o),l=i===void 0?t.text.length:H1(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=sW){this.replaceRange(t,lW(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=sW){this.replaceRange(t,lW(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=sW){this.replaceRangeWithNodes(t,lW(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,lW(t,r,r,sW),i)}replaceNodeRangeWithNodes(t,r,i,o,s=sW){this.replaceRangeWithNodes(t,lW(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=sW){return!!Gfe(t,r,i)}nextCommaToken(t,r){const i=tE(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,Bf(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,Bf(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=rat(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(eu(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Mo(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=dm()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){const o=Ac(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,H1(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,H1(t,r,s),i,this.getOptionsForInsertNodeBefore(r,$a(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=_b(r,t),l=dce(t.text,s),u=pwe(t,l),d=eC(t,u?l:i),g=t.text.slice(s,l),h=`${u?"":this.newLineCharacter}//${o}${this.newLineCharacter}${g}`;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:Am(u.getStart(t),t),end:xx(t,u,{})});const s=R7(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){const i=Ki(r.jsDoc,s=>Bo(s.comment)?L.createJSDocText(s.comment):s.comment),o=ag(r.jsDoc);return o&&Gf(o.pos,o.end,t)&&Ze(i)===0?void 0:L.createNodeArray(To(i,L.createJSDocText(` `)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,Yot(r),L.createJSDocComment(this.createJSDocText(t,r),L.createNodeArray(i)))}addJSDocTags(t,r,i){const o=ic(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((u,d)=>{const g=$ot(u,l);return g&&(o[d]=g),!!g}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Vn(ic(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,Bf(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(Yo(r)){if(o=Es(r,22,t),!o){if(!Xs(r))return!1;o=$a(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=Es(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){const o=(Es(r,21,t)||$a(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Gi(t)||bc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:yi(t)?{suffix:", "}:to(t)?to(r)?{suffix:", "}:{}:wa(t)&&vl(t.parent)||r_(t)?{suffix:", "}:Eu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:C.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){const o=Ac(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=hn(r.body.statements,s=>od(s)&&r1(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=H1(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:eu(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,cX(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(const s of cX(r)){if(D6(o,s,t))return;const l=s.getStart(t),u=Nc.SmartIndenter.findFirstNonWhitespaceColumn(Am(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 Nc.SmartIndenter.findFirstNonWhitespaceColumn(Am(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){const s=cX(r).length===0,l=!this.classesWithNodesInsertedAtStart.has(ls(r));l&&this.classesWithNodesInsertedAtStart.set(ls(r),{node:r,sourceFile:t});const u=Fa(r)&&(!Ff(t)||!s),d=Fa(r)&&Ff(t)&&s&&!l;return{indentation:i,prefix:(d?",":"")+this.newLineCharacter,suffix:u?",":gd(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,$a(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return iat(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,Bf(r.end),L.createToken(27)),xx(t,r,{})}getInsertNodeAfterOptions(t,r){const i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Gi(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(Gi(t)||vF(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(C.assert(!r.name),r.kind===220){const o=Es(r,39,t),s=Es(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[L.createToken(100),L.createIdentifier(i)],{joiner:" "}),by(this,t,o)):(this.insertText(t,$a(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=Es(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,!Gf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=Nc.SmartIndenter.getContainingList(r,t)){if(!o){C.fail("node is not a list element");return}const s=UR(o,r);if(s<0)return;const l=r.getEnd();if(s!==o.length-1){const u=Fi(t,r.end);if(u&&lX(r,u)){const d=o[s+1],g=dwe(t.text,d.getFullStart()),h=`${ga(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:h})}}else{const u=r.getStart(t),d=Am(u,t);let g,h=!1;if(o.length===1)g=28;else{const y=Bc(r.pos,t);g=lX(r,y)?y.kind:28,h=Am(o[s-1].getStart(t),t)!==d}if((Jot(t.text,r.end)||!Gf(o.pos,o.end,t))&&(h=!0),h){this.replaceRange(t,Bf(l),L.createToken(g));const y=Nc.SmartIndenter.findFirstNonWhitespaceColumn(d,u,t,this.formatContext.options);let E=ka(t.text,l,!0,!1);for(;E!==l&&eu(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,Bf(E),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Bf(l),i,{prefix:`${ga(g)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,VV(r),L.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{const[i,o]=Zot(t,r);if(i!==void 0&&o!==void 0){const s=cX(t).length===0,l=Gf(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,Bf(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&&Fle(o.node,i))||(Mo(i)?this.deleteRange(r,jV(r,i)):Ufe.deleteDeclaration(this,t,r,i));t.forEach(r=>{const i=r.getSourceFile(),o=Nc.SmartIndenter.getContainingList(r,i);if(r!==Ba(o))return;const s=Zs(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:Vfe(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const r=dX.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(dX.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}};function Yot(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 $ot(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{const r=e,i=t;return He(r.name)&&He(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 Vfe(e,t){return ka(e.text,H1(e,t,{leadingTriviaOption:1}),!1,!0)}function Qot(e,t,r,i){const o=Vfe(e,i);if(r===void 0||Gf(xx(e,t,{}),o,e))return o;const s=Bc(i.getStart(e),e);if(lX(t,s)){const l=Bc(t.getStart(e),e);if(lX(r,l)){const u=ka(e.text,s.getEnd(),!0,!0);if(Gf(l.getStart(e),s.getStart(e),e))return eu(e.text.charCodeAt(u-1))?u-1:u;if(eu(e.text.charCodeAt(u)))return u}}return o}function Zot(e,t){const r=Es(e,19,t),i=Es(e,20,t);return[r==null?void 0:r.end,i==null?void 0:i.end]}function cX(e){return Fa(e)?e.properties:e.members}var dX;(e=>{function t(u,d,g,h){return ji(IR(u,y=>y.sourceFile.path),y=>{const E=y[0].sourceFile,A=xp(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=ji(A,N=>{const P=_v(N.range),k=N.kind===1?Fn(yl(N.node))??N.sourceFile:N.kind===2?Fn(yl(N.nodes[0]))??N.sourceFile:N.sourceFile,F=o(N,k,E,d,g,h);if(!(P.length===F.length&&vce(k.text,F,P.start)))return SO(P,F)});return R.length>0?{fileName:E.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function r(u,d,g,h){const y=i(H6(u),d,g,h);return{fileName:u,textChanges:[SO(Id(0,0),y)],isNewFile:!0}}e.newFileChanges=r;function i(u,d,g,h){const y=Ki(d,R=>R.statements.map(N=>N===4?"":l(N,R.oldFile,g).text)).join(g),E=tx("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),A=Nc.formatDocument(E,h);return jfe(y,A)+g}e.newFileChangesWorker=i;function o(u,d,g,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=O=>s(O,d,g,N,R,h,y,E),k=u.kind===2?u.nodes.map(O=>RR(P(O),h)).join(((A=u.options)==null?void 0:A.joiner)||h):P(u.node),F=R.indentation!==void 0||Am(N,d)===N?k:k.replace(/^\s+/,"");return(R.prefix||"")+F+(!R.suffix||nl(F,R.suffix)?"":R.suffix)}function s(u,d,g,h,{indentation:y,prefix:E,delta:A},R,N,P){const{node:k,text:F}=l(u,d,R);P&&P(k,F);const O=z7(N,d),G=y!==void 0?y:Nc.SmartIndenter.getIndentation(h,g,O,E===R||Am(h,d)===h);A===void 0&&(A=Nc.SmartIndenter.shouldIndentChildNode(O,u)&&O.indentSize||0);const j={text:F,getLineAndCharacterOfPosition(Z){return ca(this,Z)}},J=Nc.formatNodeGivenIndentation(k,j,d.languageVariant,G,A,{...N,options:O});return jfe(F,J)}function l(u,d,g){const h=uwe(g),y=kO(g);return zb({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},h).writeNode(4,u,d,h),{text:h.getText(),node:uX(u)}}e.getNonformattedText=l})(dX||(dX={}));function jfe(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(Dl(i))}`}return e}function eat(e){return ka(e,0)===e.length}var tat={...Qw,factory:sw(Qw.factory.flags|1,Qw.factory.baseFactory)};function uX(e){const t=wn(e,uX,tat,nat,uX),r=Os(t)?t:Object.create(t);return uh(r,awe(e),swe(e)),r}function nat(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 uh(l,awe(e),swe(e)),l}function uwe(e){let t=0;const r=kk(e),i=X=>{X&&zfe(X,t)},o=X=>{X&&Bfe(X,t)},s=X=>{X&&zfe(X,t)},l=X=>{X&&Bfe(X,t)},u=X=>{X&&zfe(X,t)},d=X=>{X&&Bfe(X,t)};function g(X,Ce){if(Ce||!eat(X)){t=r.getTextPos();let Je=0;for(;lg(X.charCodeAt(X.length-Je-1));)Je++;t-=Je}}function h(X){r.write(X),g(X,!1)}function y(X){r.writeComment(X)}function E(X){r.writeKeyword(X),g(X,!1)}function A(X){r.writeOperator(X),g(X,!1)}function R(X){r.writePunctuation(X),g(X,!1)}function N(X){r.writeTrailingSemicolon(X),g(X,!1)}function P(X){r.writeParameter(X),g(X,!1)}function k(X){r.writeProperty(X),g(X,!1)}function F(X){r.writeSpace(X),g(X,!1)}function O(X){r.writeStringLiteral(X),g(X,!1)}function G(X,Ce){r.writeSymbol(X,Ce),g(X,!1)}function j(X){r.writeLine(X)}function J(){r.increaseIndent()}function Z(){r.decreaseIndent()}function q(){return r.getText()}function ye(X){r.rawWrite(X),g(X,!1)}function ie(X){r.writeLiteral(X),g(X,!0)}function K(){return r.getTextPos()}function pe(){return r.getLine()}function de(){return r.getColumn()}function fe(){return r.getIndent()}function ve(){return r.isAtStartOfLine()}function xe(){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:O,writeSymbol:G,writeLine:j,increaseIndent:J,decreaseIndent:Z,getText:q,rawWrite:ye,writeLiteral:ie,getTextPos:K,getLine:pe,getColumn:de,getIndent:fe,isAtStartOfLine:ve,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:xe}}function rat(e){let t;for(const g of e.statements)if(Hh(g))t=g;else break;let r=0;const i=e.text;if(t)return r=t.end,d(),r;const o=sF(i);o!==void 0&&(r=o.length,d());const s=cg(i,r);if(!s)return r;let l,u;for(const g of s){if(g.kind===3){if(wF(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(pG(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;const h=e.getLineAndCharacterOfPosition(g.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(g.end).line;if(u{function t(s,l,u,d){switch(d.kind){case 170:{const A=d.parent;Xs(A)&&A.parameters.length===1&&!Es(A,21,u)?s.replaceNodeWithText(u,d,"()"):cW(s,l,u,d);break}case 273:case 272:const g=u.imports.length&&d===$a(u.imports).parent||d===hn(u.statements,mI);by(s,u,d,{leadingTriviaOption:g?0:ef(d)?2:3});break;case 209:const h=d.parent;h.kind===208&&d!==Ba(h.elements)?by(s,u,d):cW(s,l,u,d);break;case 261:o(s,l,u,d);break;case 169:cW(s,l,u,d);break;case 277:const E=d.parent;E.elements.length===1?i(s,u,E):cW(s,l,u,d);break;case 275:i(s,u,d);break;case 27:by(s,u,d,{trailingTriviaOption:0});break;case 100:by(s,u,d,{leadingTriviaOption:0});break;case 264:case 263:by(s,u,d,{leadingTriviaOption:ef(d)?2:3});break;default:d.parent?jm(d.parent)&&d.parent.name===d?r(s,u,d.parent):Zo(d.parent)&&Ln(d.parent.arguments,d)?cW(s,l,u,d):by(s,u,d):by(s,u,d)}}e.deleteDeclaration=t;function r(s,l,u){if(!u.namedBindings)by(s,l,u.parent);else{const d=u.name.getStart(l),g=Fi(l,u.name.end);if(g&&g.kind===28){const h=ka(l.text,g.end,!1,!0);s.deleteRange(l,{pos:d,end:h})}else by(s,l,u.name)}}function i(s,l,u){if(u.parent.name){const d=C.checkDefined(Fi(l,u.pos-1));s.deleteRange(l,{pos:d.getStart(l),end:u.end})}else{const d=VT(u,273);by(s,l,d)}}function o(s,l,u,d){const{parent:g}=d;if(g.kind===300){s.deleteNodeRange(u,Es(g,21,u),Es(g,22,u));return}if(g.declarations.length!==1){cW(s,l,u,d);return}const h=g.parent;switch(h.kind){case 251:case 250:s.replaceNode(u,d,L.createObjectLiteralExpression());break;case 249:by(s,u,g);break;case 244:by(s,u,h,{leadingTriviaOption:ef(h)?2:3});break;default:C.assertNever(h)}}})(Ufe||(Ufe={}));function by(e,t,r,i={leadingTriviaOption:1}){const o=H1(t,r,i),s=xx(t,r,i);e.deleteRange(t,{pos:o,end:s})}function cW(e,t,r,i){const o=C.checkDefined(Nc.SmartIndenter.getContainingList(i,r)),s=UR(o,i);if(C.assert(s!==-1),o.length===1){by(e,r,i);return}C.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:Vfe(r,i),end:s===o.length-1?xx(r,i,{}):Qot(r,i,o[s-1],o[s+1])})}var Nc={};x(Nc,{FormattingContext:()=>mwe,FormattingRequestKind:()=>fwe,RuleAction:()=>hwe,RuleFlags:()=>_we,SmartIndenter:()=>u_,anyContext:()=>pX,createTextRangeWithKind:()=>_X,formatDocument:()=>Xat,formatNodeGivenIndentation:()=>nst,formatOnClosingCurly:()=>Kat,formatOnEnter:()=>Hat,formatOnOpeningCurly:()=>Jat,formatOnSemicolon:()=>qat,formatSelection:()=>Yat,getAllRules:()=>gwe,getFormatContext:()=>Wat,getFormattingScanner:()=>Hfe,getIndentationString:()=>ome,getRangeOfEnclosingComment:()=>Vwe});var fwe=(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))(fwe||{}),mwe=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=C.checkDefined(e),this.currentTokenParent=C.checkDefined(t),this.nextTokenSpan=C.checkDefined(r),this.nextTokenParent=C.checkDefined(i),this.contextNode=C.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){const t=Es(e,19,this.sourceFile),r=Es(e,20,this.sourceFile);if(t&&r){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}},oat=dg(99,!1,0),aat=dg(99,!1,1);function Hfe(e,t,r,i,o){const s=t===1?aat:oat;s.setText(e),s.resetTokenState(r);let l=!0,u,d,g,h,y;const E=o({advance:A,readTokenInfo:j,readEOFTokenRange:Z,isOnToken:q,isOnEOF:ye,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:K,skipToStartOf:pe,getTokenFullStart:()=>(y==null?void 0:y.token.pos)??s.getTokenStart(),getStartPos:()=>(y==null?void 0:y.token.pos)??s.getTokenStart()});return y=void 0,s.setText(void 0),E;function A(){y=void 0,s.getTokenFullStart()!==r?l=!!d&&Ba(d).kind===4:s.scan(),u=void 0,d=void 0;let fe=s.getTokenFullStart();for(;fe(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))(hwe||{}),_we=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(_we||{});function gwe(){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=YP([...e,3]),o=YP([...e,1]),s=vwe(83,166),l=vwe(30,79),u=[103,104,165,130,142,152],d=[46,47,55,54],g=[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,...Hq],P=i,k=YP([80,32,3,86,95,102]),F=YP([22,3,92,113,98,93,85]),O=[oi("IgnoreBeforeComment",r,R,pX,1),oi("IgnoreAfterLineComment",2,r,pX,1),oi("NotSpaceBeforeColon",r,59,[no,Cz,Swe],16),oi("SpaceAfterColon",59,r,[no,Cz,Eat],4),oi("NoSpaceBeforeQuestionMark",r,58,[no,Cz,Swe],16),oi("SpaceAfterQuestionMarkInConditionalOperator",58,r,[no,dat],4),oi("NoSpaceAfterQuestionMark",58,r,[no,cat],16),oi("NoSpaceBeforeDot",r,[25,29],[no,Oat],16),oi("NoSpaceAfterDot",[25,29],r,[no],16),oi("NoSpaceBetweenImportParenInImportType",102,21,[no,Tat],16),oi("NoSpaceAfterUnaryPrefixOperator",d,g,[no,Cz],16),oi("NoSpaceAfterUnaryPreincrementOperator",46,h,[no],16),oi("NoSpaceAfterUnaryPredecrementOperator",47,E,[no],16),oi("NoSpaceBeforeUnaryPostincrementOperator",y,46,[no,Fwe],16),oi("NoSpaceBeforeUnaryPostdecrementOperator",A,47,[no,Fwe],16),oi("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[no,Ub],4),oi("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[no,Ub],4),oi("SpaceAfterAddWhenFollowedByPreincrement",40,46,[no,Ub],4),oi("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[no,Ub],4),oi("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[no,Ub],4),oi("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[no,Ub],4),oi("NoSpaceAfterCloseBrace",20,[28,27],[no],16),oi("NewLineBeforeCloseBraceInBlockContext",i,20,[Awe],8),oi("SpaceAfterCloseBrace",20,t(22),[no,fat],4),oi("SpaceBetweenCloseBraceAndElse",20,93,[no],4),oi("SpaceBetweenCloseBraceAndWhile",20,117,[no],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[no,Nwe],16),oi("SpaceAfterConditionalClosingParen",22,23,[Nz],4),oi("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Rwe],16),oi("SpaceAfterStarInGeneratorDeclaration",42,80,[Rwe],4),oi("SpaceAfterFunctionInFuncDecl",100,r,[q1],4),oi("NewLineAfterOpenBraceInBlockContext",19,r,[Awe],8),oi("SpaceAfterGetSetInMember",[139,153],80,[q1],4),oi("NoSpaceBetweenYieldKeywordAndStar",127,42,[no,Wwe],16),oi("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[no,Wwe],4),oi("NoSpaceBetweenReturnAndSemicolon",107,27,[no],16),oi("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[no],4),oi("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[no,xat],4),oi("NoSpaceBeforeOpenParenInFuncCall",r,21,[no,_at,gat],16),oi("SpaceBeforeBinaryKeywordOperator",r,u,[no,Ub],4),oi("SpaceAfterBinaryKeywordOperator",u,r,[no,Ub],4),oi("SpaceAfterVoidOperator",116,r,[no,Mat],4),oi("SpaceBetweenAsyncAndOpenParen",134,21,[bat,no],4),oi("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[no],4),oi("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[no],16),oi("SpaceBeforeJsxAttribute",r,80,[Sat,no],4),oi("SpaceBeforeSlashInJsxOpeningElement",r,44,[kwe,no],4),oi("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[kwe,no],16),oi("NoSpaceBeforeEqualInJsxAttribute",r,64,[Pwe,no],16),oi("NoSpaceAfterEqualInJsxAttribute",64,r,[Pwe,no],16),oi("NoSpaceBeforeJsxNamespaceColon",80,59,[Lwe],16),oi("NoSpaceAfterJsxNamespaceColon",59,80,[Lwe],16),oi("NoSpaceAfterModuleImport",[144,149],21,[no],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,[no],4),oi("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[no],4),oi("SpaceAfterModuleName",11,19,[Rat],4),oi("SpaceBeforeArrow",r,39,[no],4),oi("SpaceAfterArrow",39,r,[no],4),oi("NoSpaceAfterEllipsis",26,80,[no],16),oi("NoSpaceAfterOptionalParameters",58,[22,28],[no,Cz],16),oi("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[no,Dat],16),oi("NoSpaceBeforeOpenAngularBracket",N,30,[no,Mz],16),oi("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[no,Mz],16),oi("NoSpaceAfterOpenAngularBracket",30,r,[no,Mz],16),oi("NoSpaceBeforeCloseAngularBracket",r,32,[no,Mz],16),oi("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[no,Mz,pat,Nat],16),oi("SpaceBeforeAt",[22,80],60,[no],4),oi("NoSpaceAfterAt",60,r,[no],16),oi("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Iat],4),oi("NoSpaceBeforeNonNullAssertionOperator",r,54,[no,Pat],16),oi("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[no,Cat],16),oi("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[no],4)],G=[oi("SpaceAfterConstructor",137,21,[vf("insertSpaceAfterConstructor"),no],4),oi("NoSpaceAfterConstructor",137,21,[d_("insertSpaceAfterConstructor"),no],16),oi("SpaceAfterComma",28,r,[vf("insertSpaceAfterCommaDelimiter"),no,Qfe,yat,vat],4),oi("NoSpaceAfterComma",28,r,[d_("insertSpaceAfterCommaDelimiter"),no,Qfe],16),oi("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[vf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),q1],4),oi("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[d_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),q1],16),oi("SpaceAfterKeywordInControl",s,21,[vf("insertSpaceAfterKeywordsInControlFlowStatements"),Nz],4),oi("NoSpaceAfterKeywordInControl",s,21,[d_("insertSpaceAfterKeywordsInControlFlowStatements"),Nz],16),oi("SpaceAfterOpenParen",21,r,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("SpaceBeforeCloseParen",r,22,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("SpaceBetweenOpenParens",21,21,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],4),oi("NoSpaceBetweenParens",21,22,[no],16),oi("NoSpaceAfterOpenParen",21,r,[d_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],16),oi("NoSpaceBeforeCloseParen",r,22,[d_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),no],16),oi("SpaceAfterOpenBracket",23,r,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],4),oi("SpaceBeforeCloseBracket",r,24,[vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],4),oi("NoSpaceBetweenBrackets",23,24,[no],16),oi("NoSpaceAfterOpenBracket",23,r,[d_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],16),oi("NoSpaceBeforeCloseBracket",r,24,[d_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),no],16),oi("SpaceAfterOpenBrace",19,r,[Twe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ewe],4),oi("SpaceBeforeCloseBrace",r,20,[Twe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ewe],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[no,Nwe],16),oi("NoSpaceAfterOpenBrace",19,r,[qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),no],16),oi("NoSpaceBeforeCloseBrace",r,20,[qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),no],16),oi("SpaceBetweenEmptyBraceBrackets",19,20,[vf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),oi("NoSpaceBetweenEmptyBraceBrackets",19,20,[qfe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),no],16),oi("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[vf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Mwe],4,1),oi("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[vf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),no],4),oi("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[d_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Mwe],16,1),oi("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[d_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),no],16),oi("SpaceAfterOpenBraceInJsxExpression",19,r,[vf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,mX],4),oi("SpaceBeforeCloseBraceInJsxExpression",r,20,[vf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,mX],4),oi("NoSpaceAfterOpenBraceInJsxExpression",19,r,[d_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,mX],16),oi("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[d_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),no,mX],16),oi("SpaceAfterSemicolonInFor",27,r,[vf("insertSpaceAfterSemicolonInForStatements"),no,Kfe],4),oi("NoSpaceAfterSemicolonInFor",27,r,[d_("insertSpaceAfterSemicolonInForStatements"),no,Kfe],16),oi("SpaceBeforeBinaryOperator",r,l,[vf("insertSpaceBeforeAndAfterBinaryOperators"),no,Ub],4),oi("SpaceAfterBinaryOperator",l,r,[vf("insertSpaceBeforeAndAfterBinaryOperators"),no,Ub],4),oi("NoSpaceBeforeBinaryOperator",r,l,[d_("insertSpaceBeforeAndAfterBinaryOperators"),no,Ub],16),oi("NoSpaceAfterBinaryOperator",l,r,[d_("insertSpaceBeforeAndAfterBinaryOperators"),no,Ub],16),oi("SpaceBeforeOpenParenInFuncDecl",r,21,[vf("insertSpaceBeforeFunctionParenthesis"),no,q1],4),oi("NoSpaceBeforeOpenParenInFuncDecl",r,21,[d_("insertSpaceBeforeFunctionParenthesis"),no,q1],16),oi("NewLineBeforeOpenBraceInControl",F,19,[vf("placeOpenBraceOnNewLineForControlBlocks"),Nz,$fe],8,1),oi("NewLineBeforeOpenBraceInFunction",P,19,[vf("placeOpenBraceOnNewLineForFunctions"),q1,$fe],8,1),oi("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[vf("placeOpenBraceOnNewLineForFunctions"),Dwe,$fe],8,1),oi("SpaceAfterTypeAssertion",32,r,[vf("insertSpaceAfterTypeAssertion"),no,eme],4),oi("NoSpaceAfterTypeAssertion",32,r,[d_("insertSpaceAfterTypeAssertion"),no,eme],16),oi("SpaceBeforeTypeAnnotation",r,[58,59],[vf("insertSpaceBeforeTypeAnnotation"),no,Xfe],4),oi("NoSpaceBeforeTypeAnnotation",r,[58,59],[d_("insertSpaceBeforeTypeAnnotation"),no,Xfe],16),oi("NoOptionalSemicolon",27,o,[bwe("semicolons","remove"),kat],32),oi("OptionalSemicolon",r,o,[bwe("semicolons","insert"),wat],64)],j=[oi("NoSpaceBeforeSemicolon",r,27,[no],16),oi("SpaceBeforeOpenBraceInControl",F,19,[Jfe("placeOpenBraceOnNewLineForControlBlocks"),Nz,Zfe,Yfe],4,1),oi("SpaceBeforeOpenBraceInFunction",P,19,[Jfe("placeOpenBraceOnNewLineForFunctions"),q1,fX,Zfe,Yfe],4,1),oi("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",k,19,[Jfe("placeOpenBraceOnNewLineForFunctions"),Dwe,Zfe,Yfe],4,1),oi("NoSpaceBeforeComma",r,28,[no],16),oi("NoSpaceBeforeOpenBracket",t(134,84),23,[no],16),oi("NoSpaceAfterCloseBracket",24,r,[no,Aat],16),oi("SpaceAfterSemicolon",27,r,[no],4),oi("SpaceBetweenForAndAwaitKeyword",99,135,[no],4),oi("SpaceBetweenDotDotDotAndTypeName",26,N,[no],16),oi("SpaceBetweenStatements",[22,92,93,84],r,[no,Qfe,sat],4),oi("SpaceAfterTryCatchFinally",[113,85,98],19,[no],4)];return[...O,...G,...j]}function oi(e,t,r,i,o,s=0){return{leftTokenRange:ywe(t),rightTokenRange:ywe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function YP(e){return{tokens:e,isSpecific:!0}}function ywe(e){return typeof e=="number"?YP([e]):Mo(e)?YP(e):e}function vwe(e,t,r=[]){const i=[];for(let o=e;o<=t;o++)Ln(r,o)||i.push(o);return YP(i)}function bwe(e,t){return r=>r.options&&r.options[e]===t}function vf(e){return t=>t.options&&Rs(t.options,e)&&!!t.options[e]}function qfe(e){return t=>t.options&&Rs(t.options,e)&&!t.options[e]}function d_(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]}function Jfe(e){return t=>!t.options||!Rs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Twe(e){return t=>!t.options||!Rs(t.options,e)||!!t.options[e]}function Kfe(e){return e.contextNode.kind===249}function sat(e){return!Kfe(e)}function Ub(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 Cz(e){return!Ub(e)}function Swe(e){return!Xfe(e)}function Xfe(e){const t=e.contextNode.kind;return t===173||t===172||t===170||t===261||aI(t)}function lat(e){return Po(e.contextNode)&&e.contextNode.questionToken}function cat(e){return!lat(e)}function dat(e){return e.contextNode.kind===228||e.contextNode.kind===195}function Yfe(e){return e.TokensAreOnSameLine()||fX(e)}function Ewe(e){return e.contextNode.kind===207||e.contextNode.kind===201||uat(e)}function $fe(e){return fX(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Awe(e){return Iwe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uat(e){return Iwe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Iwe(e){return xwe(e.contextNode)}function fX(e){return xwe(e.nextTokenParent)}function xwe(e){if(Cwe(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function q1(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 pat(e){return!q1(e)}function Rwe(e){return e.contextNode.kind===263||e.contextNode.kind===219}function Dwe(e){return Cwe(e.contextNode)}function Cwe(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 fat(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 Nz(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 Nwe(e){return e.contextNode.kind===211}function mat(e){return e.contextNode.kind===214}function hat(e){return e.contextNode.kind===215}function _at(e){return mat(e)||hat(e)}function gat(e){return e.currentTokenSpan.kind!==28}function yat(e){return e.nextTokenSpan.kind!==24}function vat(e){return e.nextTokenSpan.kind!==22}function bat(e){return e.contextNode.kind===220}function Tat(e){return e.contextNode.kind===206}function no(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function Mwe(e){return e.contextNode.kind!==12}function Qfe(e){return e.contextNode.kind!==285&&e.contextNode.kind!==289}function mX(e){return e.contextNode.kind===295||e.contextNode.kind===294}function Sat(e){return e.nextTokenParent.kind===292||e.nextTokenParent.kind===296&&e.nextTokenParent.parent.kind===292}function Pwe(e){return e.contextNode.kind===292}function Eat(e){return e.nextTokenParent.kind!==296}function Lwe(e){return e.nextTokenParent.kind===296}function kwe(e){return e.contextNode.kind===286}function Aat(e){return!q1(e)&&!fX(e)}function Iat(e){return e.TokensAreOnSameLine()&&pf(e.contextNode)&&wwe(e.currentTokenParent)&&!wwe(e.nextTokenParent)}function wwe(e){for(;e&&St(e);)e=e.parent;return e&&e.kind===171}function xat(e){return e.currentTokenParent.kind===262&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Zfe(e){return e.formattingRequestKind!==2}function Rat(e){return e.contextNode.kind===268}function Dat(e){return e.contextNode.kind===188}function Cat(e){return e.contextNode.kind===181}function Owe(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 Mz(e){return Owe(e.currentTokenSpan,e.currentTokenParent)||Owe(e.nextTokenSpan,e.nextTokenParent)}function eme(e){return e.contextNode.kind===217}function Nat(e){return!eme(e)}function Mat(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===223}function Wwe(e){return e.contextNode.kind===230&&e.contextNode.expression!==void 0}function Pat(e){return e.contextNode.kind===236}function Fwe(e){return!Lat(e)}function Lat(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function kat(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(rD(t)){const s=e.nextTokenParent===e.currentTokenParent?tE(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?!Su(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Po(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 wat(e){return M7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Oat(e){return!qr(e.contextNode)||!np(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Wat(e,t){return{options:e,getRules:Fat(),host:t}}var tme;function Fat(){return tme===void 0&&(tme=Bat(gwe())),tme}function zat(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function Bat(e){const t=Gat(e);return r=>{const i=t[zwe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){const o=[];let s=0;for(const l of i){const u=~zat(s);l.action&u&&Hn(l.context,d=>d(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function Gat(e){const t=new Array(nme*nme),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=zwe(s,l);let d=t[u];d===void 0&&(d=t[u]=[]),Vat(d,i.rule,o,r,u)}}return t}function zwe(e,t){return C.assert(e<=166&&t<=166,"Must compute formatting context from tokens"),e*nme+t}var $P=5,hX=31,nme=167,dW=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=$P*1]="StopRulesAny",e[e.ContextRulesSpecific=$P*2]="ContextRulesSpecific",e[e.ContextRulesAny=$P*3]="ContextRulesAny",e[e.NoContextRulesSpecific=$P*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=$P*5]="NoContextRulesAny",e))(dW||{});function Vat(e,t,r,i,o){const s=t.action&3?r?0:dW.StopRulesAny:t.context!==pX?r?dW.ContextRulesSpecific:dW.ContextRulesAny:r?dW.NoContextRulesSpecific:dW.NoContextRulesAny,l=i[o]||0;e.splice(jat(l,s),0,t),i[o]=Uat(l,s)}function jat(e,t){let r=0;for(let i=0;i<=t;i+=$P)r+=e&hX,e>>=$P;return r}function Uat(e,t){const r=(e>>t&hX)+1;return C.assert((r&hX)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(hX<C.formatSyntaxKind(r)}),i}function Hat(e,t,r){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=Y2(i,t);for(;Gh(t.text.charCodeAt(o));)o--;eu(t.text.charCodeAt(o))&&o--;const s={pos:_b(i-1,t),end:o+1};return Pz(s,t,r,2)}function qat(e,t,r){const i=rme(e,27,t);return Bwe(ime(i),t,r,3)}function Jat(e,t,r){const i=rme(e,19,t);if(!i)return[];const o=i.parent,s=ime(o),l={pos:Am(s.getStart(t),t),end:e};return Pz(l,t,r,4)}function Kat(e,t,r){const i=rme(e,20,t);return Bwe(ime(i),t,r,5)}function Xat(e,t){const r={pos:0,end:e.text.length};return Pz(r,e,t,0)}function Yat(e,t,r,i){const o={pos:Am(e,r),end:t};return Pz(o,r,i,1)}function rme(e,t,r){const i=Bc(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function ime(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!$at(t.parent,t);)t=t.parent;return t}function $at(e,t){switch(e.kind){case 264:case 265:return tp(e.members,t);case 268:const r=e.body;return!!r&&r.kind===269&&tp(r.statements,t);case 308:case 242:case 269:return tp(e.statements,t);case 300:return tp(e.block.statements,t)}return!1}function Qat(e,t){return r(t);function r(i){const o=Jo(i,s=>bV(s.getStart(t),s.end,e)&&s);if(o){const s=r(o);if(s)return s}return i}}function Zat(e,t){if(!e.length)return o;const r=e.filter(s=>xP(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(u7(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function est(e,t,r){const i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;const o=Bc(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function tst(e,t,r){let i=-1,o;for(;e;){const s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(u_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function nst(e,t,r,i,o,s){const l={pos:e.pos,end:e.end};return Hfe(t.text,r,l.pos,l.end,u=>Gwe(l,e,i,o,u,s,1,d=>!1,t))}function Bwe(e,t,r,i){if(!e)return[];const o={pos:Am(e.getStart(t),t),end:e.end};return Pz(o,t,r,i)}function Pz(e,t,r,i){const o=Qat(e,t);return Hfe(t.text,t.languageVariant,est(o,e,t),e.end,s=>Gwe(e,o,u_.getIndentationForNode(o,e,t,r.options),tst(o,r.options,t),s,r,i,Zat(t.parseDiagnostics,e),t))}function Gwe(e,t,r,i,o,{options:s,getRules:l,host:u},d,g,h){var y;const E=new mwe(h,d,s);let A,R,N,P,k,F=-1;const O=[];if(o.advance(),o.isOnToken()){const ce=h.getLineAndCharacterOfPosition(t.getStart(h)).line;let Re=ce;pf(t)&&(Re=h.getLineAndCharacterOfPosition(fG(t,h)).line),ye(t,t,ce,Re,r,i)}const G=o.getCurrentLeadingTrivia();if(G){const ce=u_.nodeWillIndentChild(s,t,void 0,h,!1)?r+s.indentSize:r;ie(G,ce,!0,Re=>{pe(Re,h.getLineAndCharacterOfPosition(Re.pos),t,t,void 0),fe(Re.pos,ce,!1)}),s.trimTrailingWhitespace!==!1&&Se(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 Re=((y=Bc(ce.end,h,t))==null?void 0:y.parent)||N;de(ce,h.getLineAndCharacterOfPosition(ce.pos).line,Re,R,P,N,Re,void 0)}}return O;function j(ce,Re,ge,je,Ge){if(xP(je,ce,Re)||vO(je,ce,Re)){if(Ge!==-1)return Ge}else{const We=h.getLineAndCharacterOfPosition(ce).line,at=Am(ce,h),Wt=u_.findFirstNonWhitespaceColumn(at,ce,h,s);if(We!==ge||ce===Wt){const cn=u_.getBaseIndentation(s);return cn>Wt?cn:Wt}}return-1}function J(ce,Re,ge,je,Ge,We){const at=u_.shouldIndentChildNode(s,ce)?s.indentSize:0;return We===Re?{indentation:Re===k?F:Ge.getIndentation(),delta:Math.min(s.indentSize,Ge.getDelta(ce)+at)}:ge===-1?ce.kind===21&&Re===k?{indentation:F,delta:Ge.getDelta(ce)}:u_.childStartsOnTheSameLineWithElseInIfStatement(je,ce,Re,h)||u_.childIsUnindentedBranchOfConditionalExpression(je,ce,Re,h)||u_.argumentStartsOnSameLineAsPreviousArgument(je,ce,Re,h)?{indentation:Ge.getIndentation(),delta:at}:{indentation:Ge.getIndentation()+Ge.getDelta(ce),delta:at}:{indentation:ge,delta:at}}function Z(ce){if(Sm(ce)){const Re=hn(ce.modifiers,Aa,so(ce.modifiers,Wc));if(Re)return Re.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 Re=Oo(ce);if(Re)return Re.kind}}function q(ce,Re,ge,je){return{getIndentationForComment:(at,Wt,cn)=>{switch(at){case 20:case 24:case 22:return ge+We(cn)}return Wt!==-1?Wt:ge},getIndentationForToken:(at,Wt,cn,gn)=>!gn&&Ge(at,Wt,cn)?ge+We(cn):ge,getIndentation:()=>ge,getDelta:We,recomputeIndentation:(at,Wt)=>{u_.shouldIndentChildNode(s,Wt,ce,h)&&(ge+=at?s.indentSize:-s.indentSize,je=u_.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 Re!==at&&!(pf(ce)&&Wt===Z(ce))}function We(at){return u_.nodeWillIndentChild(s,ce,at,h,!0)?je:0}}function ye(ce,Re,ge,je,Ge,We){if(!xP(e,ce.getStart(h),ce.getEnd()))return;const at=q(ce,ge,Ge,We);let Wt=Re;for(Jo(ce,gt=>{cn(gt,-1,ce,at,ge,je,!1)},gt=>{gn(gt,ce,ge,at)});o.isOnToken()&&o.getTokenFullStart()Math.min(ce.end,e.end))break;Kn(gt,ce,at,ce)}function cn(gt,en,or,Di,co,zt,Zr,Ai){if(C.assert(!Os(gt)),Ol(gt)||Mte(or,gt))return en;const Ni=gt.getStart(h),Pr=h.getLineAndCharacterOfPosition(Ni).line;let Ci=Pr;pf(gt)&&(Ci=h.getLineAndCharacterOfPosition(fG(gt,h)).line);let Ye=-1;if(Zr&&tp(e,or)&&(Ye=j(Ni,gt.end,co,e,en),Ye!==-1&&(en=Ye)),!xP(e,gt.pos,gt.end))return gt.ende.end)return en;if(dr.token.end>Ni){dr.token.pos>Ni&&o.skipToStartOf(gt);break}Kn(dr,ce,Di,ce)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return en;if(oI(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,Di,gt),en}const At=gt.kind===171?Pr:zt,mn=J(gt,Pr,Ye,ce,Di,At);return ye(gt,Wt,Pr,Ci,mn.indentation,mn.delta),Wt=ce,Ai&&or.kind===210&&en===-1&&(en=mn.indentation),en}function gn(gt,en,or,Di){C.assert(_S(gt)),C.assert(!Os(gt));const co=rst(en,gt);let zt=Di,Zr=or;if(!xP(e,gt.pos,gt.end)){gt.endgt.pos)break;if(Pr.token.kind===co){Zr=h.getLineAndCharacterOfPosition(Pr.token.pos).line,Kn(Pr,en,Di,en);let Ci;if(F!==-1)Ci=F;else{const Ye=Am(Pr.token.pos,h);Ci=u_.findFirstNonWhitespaceColumn(Ye,Pr.token.pos,h,s)}zt=q(en,or,Ci,s.indentSize)}else Kn(Pr,en,Di,en)}let Ai=-1;for(let Pr=0;Prfe(mn.pos,At,!1))}Ci!==-1&&Ye&&(fe(gt.token.pos,Ci,Ai===1),k=Pr.line,F=Ci)}o.advance(),Wt=en}}function ie(ce,Re,ge,je){for(const Ge of ce){const We=tp(e,Ge);switch(Ge.kind){case 3:We&&X(Ge,Re,!ge),ge=!1;break;case 2:ge&&We&&je(Ge),ge=!1;break;case 4:ge=!0;break}}return ge}function K(ce,Re,ge,je){for(const Ge of ce)if(y7(Ge.kind)&&tp(e,Ge)){const We=h.getLineAndCharacterOfPosition(Ge.pos);pe(Ge,We,Re,ge,je)}}function pe(ce,Re,ge,je,Ge){const We=g(ce);let at=0;if(!We)if(R)at=de(ce,Re.line,ge,R,P,N,je,Ge);else{const Wt=h.getLineAndCharacterOfPosition(e.pos);Ce(Wt.line,Re.line)}return R=ce,A=ce.end,N=ge,P=Re.line,at}function de(ce,Re,ge,je,Ge,We,at,Wt){E.updateContext(je,We,ce,ge,at);const cn=l(E);let gn=E.options.trimTrailingWhitespace!==!1,Kn=0;return cn?Mn(cn,gt=>{if(Kn=lt(gt,je,Ge,ce,Re),Wt)switch(Kn){case 2:ge.getStart(h)===ce.pos&&Wt.recomputeIndentation(!1,at);break;case 1:ge.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,Re!==Ge&&gn&&Ce(Ge,Re,je),Kn}function fe(ce,Re,ge){const je=ome(Re,s);if(ge)Ne(ce,0,je);else{const Ge=h.getLineAndCharacterOfPosition(ce),We=_b(Ge.line,h);(Re!==ve(We,Ge.character)||xe(je,We))&&Ne(We,Ge.character,je)}}function ve(ce,Re){let ge=0;for(let je=0;je0){const zt=ome(co,s);Ne(or,Di.character,zt)}else be(or,Di.character)}}function Ce(ce,Re,ge){for(let je=ce;jeWe)continue;const at=Je(Ge,We);at!==-1&&(C.assert(at===Ge||!Gh(h.text.charCodeAt(at-1))),be(at,We+1-at))}}function Je(ce,Re){let ge=Re;for(;ge>=ce&&Gh(h.text.charCodeAt(ge));)ge--;return ge!==Re?ge+1:-1}function Se(ce){let Re=R?R.end:e.pos;for(const ge of ce)y7(ge.kind)&&(ReyO(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function rst(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 ist(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var gX,uW,pW;function ome(e,t){if((!gX||gX.tabSize!==t.tabSize||gX.indentSize!==t.indentSize)&&(gX={tabSize:t.tabSize,indentSize:t.indentSize},uW=pW=void 0),t.convertTabsToSpaces){let i;const o=Math.floor(e/t.indentSize),s=e%t.indentSize;return pW||(pW=[]),pW[o]===void 0?(i=EO(" ",t.indentSize*o),pW[o]=i):i=pW[o],s?i+EO(" ",s):i}else{const i=Math.floor(e/t.tabSize),o=e-i*t.tabSize;let s;return uW||(uW=[]),uW[i]===void 0?uW[i]=s=EO(" ",i):s=uW[i],o?s+EO(" ",o):s}}var u_;(e=>{let t;(X=>{X[X.Unknown=-1]="Unknown"})(t||(t={}));function r(X,Ce,Je,Se=!1){if(X>Ce.text.length)return u(Je);if(Je.indentStyle===0)return 0;const re=Bc(X,Ce,void 0,!0),be=Vwe(Ce,X,re||null);if(be&&be.kind===3)return i(Ce,X,Je,be);if(!re)return u(Je);if(zq(re.kind)&&re.getStart(Ce)<=X&&X=0),re<=be)return pe(_b(be,X),Ce,X,Je);const Ne=_b(re,X),{column:Be,character:lt}=K(Ne,Ce,X,Je);return Be===0?Be:X.text.charCodeAt(Ne+lt)===42?Be-1:Be}function o(X,Ce,Je){let Se=Ce;for(;Se>0;){const be=X.text.charCodeAt(Se);if(!lg(be))break;Se--}const re=Am(Se,X);return pe(re,Se,X,Je)}function s(X,Ce,Je,Se,re,be){let Ne,Be=Je;for(;Be;){if(Pq(Be,Ce,X)&&ve(be,Be,Ne,X,!0)){const ce=R(Be,X),Re=A(Je,Be,Se,X),ge=Re!==0?re&&Re===2?be.indentSize:0:Se!==ce.line?be.indentSize:0;return d(Be,ce,void 0,ge,X,!0,be)}const lt=q(Be,X,be,!0);if(lt!==-1)return lt;Ne=Be,Be=Be.parent}return u(be)}function l(X,Ce,Je,Se){const re=Je.getLineAndCharacterOfPosition(X.getStart(Je));return d(X,re,Ce,0,Je,!1,Se)}e.getIndentationForNode=l;function u(X){return X.baseIndentSize||0}e.getBaseIndentation=u;function d(X,Ce,Je,Se,re,be,Ne){var Be;let lt=X.parent;for(;lt;){let ce=!0;if(Je){const Ge=X.getStart(re);ce=GeJe.end}const Re=g(lt,X,re),ge=Re.line===Ce.line||P(lt,X,Ce.line,re);if(ce){const Ge=(Be=O(X,re))==null?void 0:Be[0],We=!!Ge&&R(Ge,re).line>Re.line;let at=q(X,re,Ne,We);if(at!==-1||(at=y(X,lt,Ce,ge,re,Ne),at!==-1))return at+Se}ve(Ne,lt,X,re,be)&&!ge&&(Se+=Ne.indentSize);const je=N(lt,X,Ce.line,re);X=lt,lt=X.parent,Ce=je?re.getLineAndCharacterOfPosition(X.getStart(re)):Re}return Se+u(Ne)}function g(X,Ce,Je){const Se=O(Ce,Je),re=Se?Se.pos:X.getStart(Je);return Je.getLineAndCharacterOfPosition(re)}function h(X,Ce,Je){const Se=zle(X);return Se&&Se.listItemIndex>0?ye(Se.list.getChildren(),Se.listItemIndex-1,Ce,Je):-1}function y(X,Ce,Je,Se,re,be){return(rd(X)||q2(X))&&(Ce.kind===308||!Se)?ie(Je,re,be):-1}let E;(X=>{X[X.Unknown=0]="Unknown",X[X.OpenBrace=1]="OpenBrace",X[X.CloseBrace=2]="CloseBrace"})(E||(E={}));function A(X,Ce,Je,Se){const re=tE(X,Ce,Se);if(!re)return 0;if(re.kind===19)return 1;if(re.kind===20){const be=R(re,Se).line;return Je===be?2:0}return 0}function R(X,Ce){return Ce.getLineAndCharacterOfPosition(X.getStart(Ce))}function N(X,Ce,Je,Se){if(!(Zo(X)&&Ln(X.arguments,Ce)))return!1;const re=X.expression.getEnd();return ca(Se,re).line===Je}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=N;function P(X,Ce,Je,Se){if(X.kind===246&&X.elseStatement===Ce){const re=Es(X,93,Se);return C.assert(re!==void 0),R(re,Se).line===Je}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=P;function k(X,Ce,Je,Se){if(S1(X)&&(Ce===X.whenTrue||Ce===X.whenFalse)){const re=ca(Se,X.condition.end).line;if(Ce===X.whenTrue)return Je===re;{const be=R(X.whenTrue,Se).line,Ne=ca(Se,X.whenTrue.end).line;return re===be&&Ne===Je}}return!1}e.childIsUnindentedBranchOfConditionalExpression=k;function F(X,Ce,Je,Se){if(Vh(X)){if(!X.arguments)return!1;const re=hn(X.arguments,lt=>lt.pos===Ce.pos);if(!re)return!1;const be=X.arguments.indexOf(re);if(be===0)return!1;const Ne=X.arguments[be-1],Be=ca(Se,Ne.getEnd()).line;if(Je===Be)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=F;function O(X,Ce){return X.parent&&j(X.getStart(Ce),X.getEnd(),X.parent,Ce)}e.getContainingList=O;function G(X,Ce,Je){return Ce&&j(X,X,Ce,Je)}function j(X,Ce,Je,Se){switch(Je.kind){case 184:return re(Je.typeArguments);case 211:return re(Je.properties);case 210:return re(Je.elements);case 188:return re(Je.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return re(Je.typeParameters)||re(Je.parameters);case 178:return re(Je.parameters);case 264:case 232:case 265:case 266:case 346:return re(Je.typeParameters);case 215:case 214:return re(Je.typeArguments)||re(Je.arguments);case 262:return re(Je.declarations);case 276:case 280:return re(Je.elements);case 207:case 208:return re(Je.elements)}function re(be){return be&&vO(J(Je,be,Se),X,Ce)?be:void 0}}function J(X,Ce,Je){const Se=X.getChildren(Je);for(let re=1;re=0&&Ce=0;Ne--){if(X[Ne].kind===28)continue;if(Je.getLineAndCharacterOfPosition(X[Ne].end).line!==be.line)return ie(be,Je,Se);be=R(X[Ne],Je)}return-1}function ie(X,Ce,Je){const Se=Ce.getPositionOfLineAndCharacter(X.line,0);return pe(Se,Se+X.character,Ce,Je)}function K(X,Ce,Je,Se){let re=0,be=0;for(let Ne=X;Neost});function ost(e,t,r){let i=!1;return t.forEach(o=>{const s=Dn(Fi(e,o.pos),l=>tp(l,o));s&&Jo(s,function l(u){var d;if(!i){if(He(u)&&ZD(o,u.getStart(e))){const g=r.resolveName(u.text,u,-1,!1);if(g&&g.declarations){for(const h of g.declarations)if(XJ(h)||u.text&&e.symbol&&((d=e.symbol.exports)!=null&&d.has(u.escapedText))){i=!0;return}}}u.forEachChild(l)}})}),i}var vX={};x(vX,{pasteEditsProvider:()=>sst});var ast="providePostPasteEdits";function sst(e,t,r,i,o,s,l,u){return{edits:Rr.ChangeTracker.with({host:o,formatContext:l,preferences:s},g=>lst(e,t,r,i,o,s,l,u,g)),fixId:ast}}function lst(e,t,r,i,o,s,l,u,d){let g;t.length!==r.length&&(g=t.length===1?t[0]:t.join(gy(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=g?y.slice(0,R)+g+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=cu.createImportAdder(N,A,s,o),i!=null&&i.range){C.assert(i.range.length===t.length),i.range.forEach(G=>{const j=i.file.statements,J=so(j,q=>q.end>G.pos);if(J===-1)return;let Z=so(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=cst(i),F=X7(i.file,h,P,Sde(N,h,P),k),O=!TJ(e.fileName,R,o,!!i.file.commonJsModuleIndicator);mde(i.file,F.targetFileImportsFromOldFile,d,O),Ade(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,O)=>{const G=F.end-F.pos,j=g??t[O],J=F.pos+k,Z=J+j.length,q={pos:J,end:Z};k+=j.length-G;const ye=Dn(Fi(P.sourceFile,q.pos),ie=>tp(ie,q));ye&&Jo(ye,function ie(K){if(He(K)&&ZD(q,K.getStart(N))&&!(A!=null&&A.getTypeChecker().resolveName(K.text,K,-1,!1)))return E.addImportForUnresolvedIdentifier(P,K,!0);K.forEachChild(ie)})})}E.writeFixes(d,Gp(i?i.file:e,s))}),E.hasFixes()&&r.forEach((A,R)=>{d.replaceRangeWithText(e,{pos:A.pos,end:A.end},g??t[R])})}function cst({file:e,range:t}){const r=t[0].pos,i=t[t.length-1].end,o=Fi(e,r),s=RP(e,r)??Fi(e,i);return{pos:He(o)&&r<=o.getStart(e)?o.getFullStart():r,end:He(s)&&i===s.getEnd()?Rr.getAdjustedEndPosition(e,s,{}):i}}var jwe={};x(jwe,{ANONYMOUS:()=>uJ,AccessFlags:()=>FZ,AssertionLevel:()=>KQ,AssignmentDeclarationKind:()=>JZ,AssignmentKind:()=>gne,Associativity:()=>Ine,BreakpointResolver:()=>cK,BuilderFileEmit:()=>Tse,BuilderProgramKind:()=>Cse,BuilderState:()=>_h,CallHierarchy:()=>yx,CharacterCodes:()=>iee,CheckFlags:()=>kZ,CheckMode:()=>kU,ClassificationType:()=>Sq,ClassificationTypeNames:()=>Mle,CommentDirectiveType:()=>vZ,Comparison:()=>Ke,CompletionInfoFlags:()=>Ale,CompletionTriggerKind:()=>bq,Completions:()=>Ex,ContainerFlags:()=>tae,ContextFlags:()=>xZ,Debug:()=>C,DiagnosticCategory:()=>K8,Diagnostics:()=>f,DocumentHighlights:()=>U7,ElementFlags:()=>WZ,EmitFlags:()=>v9,EmitHint:()=>lee,EmitOnly:()=>TZ,EndOfLineState:()=>Rle,ExitStatus:()=>SZ,ExportKind:()=>Tce,Extension:()=>oee,ExternalEmitHelpers:()=>see,FileIncludeKind:()=>c9,FilePreprocessingDiagnosticsKind:()=>bZ,FileSystemEntryKind:()=>gee,FileWatcherEventKind:()=>mee,FindAllReferences:()=>Ys,FlattenLevel:()=>Eae,FlowFlags:()=>J8,ForegroundColorEscapeSequences:()=>use,FunctionFlags:()=>Ene,GeneratedIdentifierFlags:()=>l9,GetLiteralTextFlags:()=>kte,GoToDefinition:()=>fC,HighlightSpanKind:()=>Sle,IdentifierNameMap:()=>jD,ImportKind:()=>bce,ImportsNotUsedAsValues:()=>ZZ,IndentStyle:()=>Ele,IndexFlags:()=>zZ,IndexKind:()=>VZ,InferenceFlags:()=>HZ,InferencePriority:()=>UZ,InlayHintKind:()=>Tle,InlayHints:()=>eX,InternalEmitFlags:()=>aee,InternalNodeBuilderFlags:()=>DZ,InternalSymbolName:()=>wZ,IntersectionFlags:()=>IZ,InvalidatedProjectKind:()=>Qse,JSDocParsingMode:()=>fee,JsDoc:()=>y0,JsTyping:()=>Gb,JsxEmit:()=>QZ,JsxFlags:()=>hZ,JsxReferenceKind:()=>BZ,LanguageFeatureMinimumTarget:()=>ed,LanguageServiceMode:()=>vle,LanguageVariant:()=>nee,LexicalEnvironmentFlags:()=>dee,ListFormat:()=>uee,LogLevel:()=>iZ,MapCode:()=>tX,MemberOverrideStatus:()=>EZ,ModifierFlags:()=>a9,ModuleDetectionKind:()=>KZ,ModuleInstanceState:()=>Zoe,ModuleKind:()=>CR,ModuleResolutionKind:()=>DR,ModuleSpecifierEnding:()=>Sre,NavigateTo:()=>Hce,NavigationBar:()=>Jce,NewLineKind:()=>eee,NodeBuilderFlags:()=>RZ,NodeCheckFlags:()=>p9,NodeFactoryFlags:()=>eie,NodeFlags:()=>o9,NodeResolutionFeatures:()=>joe,ObjectFlags:()=>m9,OperationCanceledException:()=>TN,OperatorPrecedence:()=>xne,OrganizeImports:()=>v0,OrganizeImportsMode:()=>vq,OuterExpressionKinds:()=>cee,OutliningElementsCollector:()=>rX,OutliningSpanKind:()=>Ile,OutputFileType:()=>xle,PackageJsonAutoImportPreference:()=>yle,PackageJsonDependencyGroup:()=>gle,PatternMatchKind:()=>NJ,PollingInterval:()=>b9,PollingWatchKind:()=>$Z,PragmaKindFlags:()=>pee,PredicateSemantics:()=>_Z,PreparePasteEdits:()=>yX,PrivateIdentifierKind:()=>die,ProcessLevel:()=>Rae,ProgramUpdateLevel:()=>ase,QuotePreference:()=>Zle,RegularExpressionFlags:()=>gZ,RelationComparisonResult:()=>s9,Rename:()=>Rz,ScriptElementKind:()=>Cle,ScriptElementKindModifier:()=>Nle,ScriptKind:()=>_9,ScriptSnapshot:()=>n7,ScriptTarget:()=>tee,SemanticClassificationFormat:()=>ble,SemanticMeaning:()=>Ple,SemicolonPreference:()=>Tq,SignatureCheckMode:()=>wU,SignatureFlags:()=>h9,SignatureHelp:()=>iW,SignatureInfo:()=>bse,SignatureKind:()=>GZ,SmartSelectionRange:()=>aX,SnippetKind:()=>y9,StatisticType:()=>sle,StructureIsReused:()=>d9,SymbolAccessibility:()=>MZ,SymbolDisplay:()=>vv,SymbolDisplayPartKind:()=>i7,SymbolFlags:()=>u9,SymbolFormatFlags:()=>NZ,SyntaxKind:()=>i9,Ternary:()=>qZ,ThrottledCancellationToken:()=>tue,TokenClass:()=>Dle,TokenFlags:()=>yZ,TransformFlags:()=>g9,TypeFacts:()=>LU,TypeFlags:()=>f9,TypeFormatFlags:()=>CZ,TypeMapKind:()=>jZ,TypePredicateKind:()=>PZ,TypeReferenceSerializationKind:()=>LZ,UnionReduction:()=>AZ,UpToDateStatusType:()=>Hse,VarianceFlags:()=>OZ,Version:()=>ih,VersionRange:()=>q8,WatchDirectoryFlags:()=>ree,WatchDirectoryKind:()=>YZ,WatchFileKind:()=>XZ,WatchLogLevel:()=>lse,WatchType:()=>sd,accessPrivateIdentifier:()=>Sae,addEmitFlags:()=>Zh,addEmitHelper:()=>zI,addEmitHelpers:()=>Ig,addInternalEmitFlags:()=>_1,addNodeFactoryPatcher:()=>oSe,addObjectAllocatorPatcher:()=>j0e,addRange:()=>Xr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>Cb,addSyntheticTrailingComment:()=>OM,addToSeen:()=>ym,advancedAsyncSuperHelper:()=>p4,affectsDeclarationPathOptionDeclarations:()=>hoe,affectsEmitOptionDeclarations:()=>moe,allKeysStartWithDot:()=>a3,altDirectorySeparator:()=>Z8,and:()=>j8,append:()=>Un,appendIfUnique:()=>Qg,arrayFrom:()=>Co,arrayIsEqualTo:()=>Qp,arrayIsHomogeneous:()=>Mre,arrayOf:()=>UQ,arrayReverseIterator:()=>WB,arrayToMap:()=>AR,arrayToMultiMap:()=>_2,arrayToNumericMap:()=>qQ,assertType:()=>gTe,assign:()=>VE,asyncSuperHelper:()=>u4,attachFileToDiagnostics:()=>NI,base64decode:()=>Jne,base64encode:()=>qne,binarySearch:()=>Zv,binarySearchKey:()=>YA,bindSourceFile:()=>nae,breakIntoCharacterSpans:()=>Wce,breakIntoWordSpans:()=>Fce,buildLinkParts:()=>sce,buildOpts:()=>Pw,buildOverload:()=>qwe,bundlerModuleNameResolver:()=>Uoe,canBeConvertedToAsync:()=>OJ,canHaveDecorators:()=>JS,canHaveExportModifier:()=>nw,canHaveFlowNode:()=>eD,canHaveIllegalDecorators:()=>jj,canHaveIllegalModifiers:()=>Xie,canHaveIllegalType:()=>MSe,canHaveIllegalTypeParameters:()=>Kie,canHaveJSDoc:()=>Ek,canHaveLocals:()=>C_,canHaveModifiers:()=>Sm,canHaveModuleSpecifier:()=>mne,canHaveSymbol:()=>ah,canIncludeBindAndCheckDiagnostics:()=>xM,canJsonReportNoInputFiles:()=>Fw,canProduceDiagnostics:()=>Jw,canUsePropertyAccess:()=>JV,canWatchAffectingLocation:()=>Wse,canWatchAtTypes:()=>Ose,canWatchDirectoryOrFile:()=>OH,canWatchDirectoryOrFilePath:()=>lO,cartesianProduct:()=>nZ,cast:()=>ha,chainBundle:()=>hh,chainDiagnosticMessages:()=>qo,changeAnyExtension:()=>E2,changeCompilerHostLikeToUseCache:()=>yP,changeExtension:()=>av,changeFullExtension:()=>nF,changesAffectModuleResolution:()=>CF,changesAffectingProgramStructure:()=>xte,characterCodeToRegularExpressionFlag:()=>M9,childIsDecorated:()=>KN,classElementOrClassElementParameterIsDecorated:()=>NG,classHasClassThisAssignment:()=>YU,classHasDeclaredOrExplicitlyAssignedName:()=>$U,classHasExplicitlyAssignedName:()=>b3,classOrConstructorParameterIsDecorated:()=>tv,classicNameResolver:()=>$oe,classifier:()=>oue,cleanExtendedConfigCache:()=>x3,clear:()=>hi,clearMap:()=>hp,clearSharedExtendedConfigFileWatcher:()=>uH,climbPastPropertyAccess:()=>s7,clone:()=>JQ,cloneCompilerOptions:()=>Gq,closeFileWatcher:()=>Gm,closeFileWatcherOf:()=>Kf,codefix:()=>cu,collapseTextChangeRangesAcrossMultipleVersions:()=>Fee,collectExternalModuleInfo:()=>qU,combine:()=>XA,combinePaths:()=>Qr,commandLineOptionOfCustomType:()=>yoe,commentPragmas:()=>X8,commonOptionsWithBuild:()=>z4,compact:()=>m2,compareBooleans:()=>NT,compareDataObjects:()=>EV,compareDiagnostics:()=>vM,compareEmitHelpers:()=>pie,compareNumberOfDirectorySeparators:()=>Qk,comparePaths:()=>ey,comparePathsCaseInsensitive:()=>jTe,comparePathsCaseSensitive:()=>VTe,comparePatternKeys:()=>xU,compareProperties:()=>QQ,compareStringsCaseInsensitive:()=>y2,compareStringsCaseInsensitiveEslintCompatible:()=>XQ,compareStringsCaseSensitive:()=>Wd,compareStringsCaseSensitiveUI:()=>v2,compareTextSpans:()=>G8,compareValues:()=>js,compilerOptionsAffectDeclarationPath:()=>hre,compilerOptionsAffectEmit:()=>mre,compilerOptionsAffectSemanticDiagnostics:()=>fre,compilerOptionsDidYouMeanDiagnostics:()=>j4,compilerOptionsIndicateEsModules:()=>Jq,computeCommonSourceDirectoryOfFilenames:()=>cse,computeLineAndCharacterOfPosition:()=>LR,computeLineOfPosition:()=>IN,computeLineStarts:()=>iI,computePositionOfLineAndCharacter:()=>aF,computeSignatureWithDiagnostics:()=>NH,computeSuggestionDiagnostics:()=>LJ,computedOptions:()=>bM,concatenate:()=>lo,concatenateDiagnosticMessageChains:()=>are,consumesNodeCoreModules:()=>w7,contains:()=>Ln,containsIgnoredPath:()=>CM,containsObjectRestOrSpread:()=>Dw,containsParseError:()=>fI,containsPath:()=>pm,convertCompilerOptionsForTelemetry:()=>Loe,convertCompilerOptionsFromJson:()=>BEe,convertJsonOption:()=>M1,convertToBase64:()=>Hne,convertToJson:()=>ww,convertToObject:()=>Roe,convertToOptionsWithAbsolutePaths:()=>J4,convertToRelativePath:()=>EN,convertToTSConfig:()=>cU,convertTypeAcquisitionFromJson:()=>GEe,copyComments:()=>B1,copyEntries:()=>NF,copyLeadingComments:()=>oC,copyProperties:()=>UB,copyTrailingAsLeadingComments:()=>CO,copyTrailingComments:()=>kP,couldStartTrivia:()=>Aee,countWhere:()=>_o,createAbstractBuilder:()=>KAe,createAccessorPropertyBackingField:()=>qj,createAccessorPropertyGetRedirector:()=>roe,createAccessorPropertySetRedirector:()=>ioe,createBaseNodeFactory:()=>Xre,createBinaryExpressionTrampoline:()=>k4,createBuilderProgram:()=>MH,createBuilderProgramUsingIncrementalBuildInfo:()=>Lse,createBuilderStatusReporter:()=>K3,createCacheableExportInfoMap:()=>SJ,createCachedDirectoryStructureHost:()=>A3,createClassifier:()=>Axe,createCommentDirectivesMap:()=>Pte,createCompilerDiagnostic:()=>Il,createCompilerDiagnosticForInvalidCustomType:()=>voe,createCompilerDiagnosticFromMessageChain:()=>L6,createCompilerHost:()=>dse,createCompilerHostFromProgramHost:()=>$H,createCompilerHostWorker:()=>R3,createDetachedDiagnostic:()=>CI,createDiagnosticCollection:()=>cM,createDiagnosticForFileFromMessageChain:()=>IG,createDiagnosticForNode:()=>Ar,createDiagnosticForNodeArray:()=>qR,createDiagnosticForNodeArrayFromMessageChain:()=>tk,createDiagnosticForNodeFromMessageChain:()=>_g,createDiagnosticForNodeInSourceFile:()=>Wf,createDiagnosticForRange:()=>qte,createDiagnosticMessageChainFromDiagnostic:()=>Hte,createDiagnosticReporter:()=>dx,createDocumentPositionMapper:()=>gae,createDocumentRegistry:()=>xce,createDocumentRegistryInternal:()=>RJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>wH,createEmitHelperFactory:()=>uie,createEmptyExports:()=>bw,createEvaluator:()=>Gre,createExpressionForJsxElement:()=>Vie,createExpressionForJsxFragment:()=>jie,createExpressionForObjectLiteralElementLike:()=>Uie,createExpressionForPropertyName:()=>Wj,createExpressionFromEntityName:()=>Tw,createExternalHelpersImportDeclarationIfNeeded:()=>Bj,createFileDiagnostic:()=>Oc,createFileDiagnosticFromMessageChain:()=>BF,createFlowNode:()=>z_,createForOfBindingStatement:()=>Oj,createFutureSourceFile:()=>G7,createGetCanonicalFileName:()=>Fd,createGetIsolatedDeclarationErrors:()=>Yae,createGetSourceFile:()=>_H,createGetSymbolAccessibilityDiagnosticForNode:()=>l0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Xae,createGetSymbolWalker:()=>rae,createIncrementalCompilerHost:()=>J3,createIncrementalProgram:()=>Use,createJsxFactoryExpression:()=>wj,createLanguageService:()=>nue,createLanguageServiceSourceFile:()=>az,createMemberAccessForPropertyName:()=>C1,createModeAwareCache:()=>FD,createModeAwareCacheKey:()=>rP,createModeMismatchDetails:()=>cG,createModuleNotFoundChain:()=>PF,createModuleResolutionCache:()=>zD,createModuleResolutionLoader:()=>SH,createModuleResolutionLoaderUsingGlobalCache:()=>Gse,createModuleSpecifierResolutionHost:()=>p0,createMultiMap:()=>dm,createNameResolver:()=>QV,createNodeConverters:()=>Qre,createNodeFactory:()=>sw,createOptionNameMap:()=>G4,createOverload:()=>bX,createPackageJsonImportFilter:()=>aC,createPackageJsonInfo:()=>mJ,createParenthesizerRules:()=>Yre,createPatternMatcher:()=>Mce,createPrinter:()=>zb,createPrinterWithDefaults:()=>ise,createPrinterWithRemoveComments:()=>$S,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>ose,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>dH,createProgram:()=>oO,createProgramDiagnostics:()=>yse,createProgramHost:()=>QH,createPropertyNameNodeForIdentifierOrLiteral:()=>tw,createQueue:()=>g2,createRange:()=>Bf,createRedirectedBuilderProgram:()=>kH,createResolutionCache:()=>FH,createRuntimeTypeSerializer:()=>Pae,createScanner:()=>dg,createSemanticDiagnosticsBuilderProgram:()=>JAe,createSet:()=>HB,createSolutionBuilder:()=>Xse,createSolutionBuilderHost:()=>Jse,createSolutionBuilderWithWatch:()=>Yse,createSolutionBuilderWithWatchHost:()=>Kse,createSortedArray:()=>OB,createSourceFile:()=>tx,createSourceMapGenerator:()=>pae,createSourceMapSource:()=>cSe,createSuperAccessVariableStatement:()=>S3,createSymbolTable:()=>da,createSymlinkCache:()=>LV,createSyntacticTypeNodeBuilder:()=>mle,createSystemWatchFunctions:()=>wTe,createTextChange:()=>SO,createTextChangeFromStartLength:()=>b7,createTextChangeRange:()=>L2,createTextRangeFromNode:()=>Uq,createTextRangeFromSpan:()=>v7,createTextSpan:()=>Id,createTextSpanFromBounds:()=>oc,createTextSpanFromNode:()=>zu,createTextSpanFromRange:()=>_v,createTextSpanFromStringLiteralLikeContent:()=>jq,createTextWriter:()=>kk,createTokenRange:()=>yV,createTypeChecker:()=>dae,createTypeReferenceDirectiveResolutionCache:()=>r3,createTypeReferenceResolutionLoader:()=>N3,createWatchCompilerHost:()=>iIe,createWatchCompilerHostOfConfigFile:()=>ZH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>eq,createWatchFactory:()=>YH,createWatchHost:()=>XH,createWatchProgram:()=>tq,createWatchStatusReporter:()=>zH,createWriteFileMeasuringIO:()=>gH,declarationNameToString:()=>ws,decodeMappings:()=>jU,decodedTextSpanIntersectsWith:()=>P2,deduplicate:()=>dS,defaultHoverMaximumTruncationLength:()=>Ate,defaultInitCompilerOptions:()=>aEe,defaultMaximumTruncationLength:()=>GN,diagnosticCategoryName:()=>UE,diagnosticToString:()=>nE,diagnosticsEqualityComparer:()=>k6,directoryProbablyExists:()=>ch,directorySeparator:()=>Js,displayPart:()=>yp,displayPartsToString:()=>VO,disposeEmitNodes:()=>cj,documentSpansEqual:()=>eJ,dumpTracingLegend:()=>mZ,elementAt:()=>Qv,elideNodes:()=>noe,emitDetachedComments:()=>wne,emitFiles:()=>lH,emitFilesAndReportErrors:()=>j3,emitFilesAndReportErrorsAndGetExitStatus:()=>KH,emitModuleKindIsNonNodeESM:()=>Kk,emitNewLineBeforeLeadingCommentOfPosition:()=>kne,emitResolverSkipsTypeChecking:()=>sH,emitSkippedWithNoDiagnostics:()=>IH,emptyArray:()=>se,emptyFileSystemEntries:()=>xre,emptyMap:()=>_t,emptyOptions:()=>Em,endsWith:()=>nl,ensurePathIsNonModuleName:()=>HE,ensureScriptKind:()=>U6,ensureTrailingDirectorySeparator:()=>Uc,entityNameToString:()=>Mp,enumerateInsertsAndDeletes:()=>H8,equalOwnProperties:()=>HQ,equateStringsCaseInsensitive:()=>rb,equateStringsCaseSensitive:()=>fS,equateValues:()=>nb,escapeJsxAttributeString:()=>eV,escapeLeadingUnderscores:()=>Cl,escapeNonAsciiString:()=>f6,escapeSnippetText:()=>WS,escapeString:()=>w_,escapeTemplateSubstitution:()=>QG,evaluatorResult:()=>qc,every:()=>Hn,exclusivelyPrefixedNodeCoreModules:()=>o4,executeCommandLine:()=>WIe,expandPreOrPostfixIncrementOrDecrementExpression:()=>C4,explainFiles:()=>jH,explainIfFileIsRedirectAndImpliedFormat:()=>UH,exportAssignmentIsAlias:()=>Rk,expressionResultIsUnused:()=>Lre,extend:()=>jB,extensionFromPath:()=>AM,extensionIsTS:()=>X6,extensionsNotSupportingExtensionlessResolution:()=>K6,externalHelpersModuleNameText:()=>hb,factory:()=>L,fileExtensionIs:()=>El,fileExtensionIsOneOf:()=>$l,fileIncludeReasonToDiagnostics:()=>JH,fileShouldUseJavaScriptRequire:()=>TJ,filter:()=>Vn,filterMutate:()=>el,filterSemanticDiagnostics:()=>k3,find:()=>hn,findAncestor:()=>Dn,findBestPatternMatch:()=>$B,findChildOfKind:()=>Es,findComputedPropertyNameCacheAssignment:()=>w4,findConfigFile:()=>mH,findConstructorDeclaration:()=>ow,findContainingList:()=>p7,findDiagnosticForNode:()=>gce,findFirstNonJsxWhitespaceToken:()=>Ble,findIndex:()=>so,findLast:()=>ma,findLastIndex:()=>Zs,findListItemInfo:()=>zle,findModifier:()=>nC,findNextToken:()=>tE,findPackageJson:()=>_ce,findPackageJsons:()=>fJ,findPrecedingMatchingToken:()=>g7,findPrecedingToken:()=>Bc,findSuperStatementIndexPath:()=>_3,findTokenOnLeftOfPosition:()=>RP,findUseStrictPrologue:()=>zj,first:()=>$a,firstDefined:()=>Bn,firstDefinedIterator:()=>Zn,firstIterator:()=>zB,firstOrOnly:()=>gJ,firstOrUndefined:()=>Ac,firstOrUndefinedIterator:()=>B8,fixupCompilerOptions:()=>WJ,flatMap:()=>Ki,flatMapIterator:()=>lf,flatMapToMutable:()=>ic,flatten:()=>ia,flattenCommaList:()=>ooe,flattenDestructuringAssignment:()=>w1,flattenDestructuringBinding:()=>YS,flattenDiagnosticMessageText:()=>s_,forEach:()=>$e,forEachAncestor:()=>Rte,forEachAncestorDirectory:()=>AN,forEachAncestorDirectoryStoppingAtGlobalCache:()=>F_,forEachChild:()=>Jo,forEachChildRecursively:()=>ex,forEachDynamicImportOrRequireCall:()=>a4,forEachEmittedFile:()=>rH,forEachEnclosingBlockScopeContainer:()=>Vte,forEachEntry:()=>Hc,forEachExternalModuleToImportFrom:()=>AJ,forEachImportClauseDeclaration:()=>hne,forEachKey:()=>mg,forEachLeadingCommentRange:()=>x2,forEachNameInAccessChainWalkingLeft:()=>tre,forEachNameOfDefaultExport:()=>j7,forEachOptionsSyntaxByName:()=>ij,forEachProjectReference:()=>kM,forEachPropertyAssignment:()=>XR,forEachResolvedProjectReference:()=>nj,forEachReturnStatement:()=>vb,forEachRight:()=>Mn,forEachTrailingCommentRange:()=>R2,forEachTsConfigPropArray:()=>ak,forEachUnique:()=>nJ,forEachYieldExpression:()=>Yte,formatColorAndReset:()=>QS,formatDiagnostic:()=>yH,formatDiagnostics:()=>TAe,formatDiagnosticsWithColorAndContext:()=>mse,formatGeneratedName:()=>r0,formatGeneratedNamePart:()=>kD,formatLocation:()=>vH,formatMessage:()=>MI,formatStringFromArgs:()=>Tg,formatting:()=>Nc,generateDjb2Hash:()=>S2,generateTSConfig:()=>Doe,getAdjustedReferenceLocation:()=>wq,getAdjustedRenameLocation:()=>m7,getAliasDeclarationFromName:()=>VG,getAllAccessorDeclarations:()=>PS,getAllDecoratorsOfClass:()=>KU,getAllDecoratorsOfClassElement:()=>y3,getAllJSDocTags:()=>fF,getAllJSDocTagsOfKind:()=>p0e,getAllKeys:()=>fTe,getAllProjectOutputs:()=>E3,getAllSuperTypeNodes:()=>rM,getAllowImportingTsExtensions:()=>lre,getAllowJSCompilerOption:()=>xb,getAllowSyntheticDefaultImports:()=>PI,getAncestor:()=>VT,getAnyExtensionFromPath:()=>nI,getAreDeclarationMapsEnabled:()=>w6,getAssignedExpandoInitializer:()=>_I,getAssignedName:()=>dF,getAssignmentDeclarationKind:()=>ac,getAssignmentDeclarationPropertyAccessKind:()=>yk,getAssignmentTargetKind:()=>bb,getAutomaticTypeDirectiveNames:()=>t3,getBaseFileName:()=>Ic,getBinaryOperatorPrecedence:()=>Mk,getBuildInfo:()=>cH,getBuildInfoFileVersionMap:()=>LH,getBuildInfoText:()=>nse,getBuildOrderFromAnyBuildOrder:()=>dO,getBuilderCreationParameters:()=>F3,getBuilderFileEmit:()=>Bb,getCanonicalDiagnostic:()=>Jte,getCheckFlags:()=>Wl,getClassExtendsHeritageElement:()=>DS,getClassLikeDeclarationOfSymbol:()=>dy,getCombinedLocalAndExportSymbolFlags:()=>cD,getCombinedModifierFlags:()=>PT,getCombinedNodeFlags:()=>ny,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>W9,getCommentRange:()=>e_,getCommonSourceDirectory:()=>gP,getCommonSourceDirectoryOfConfig:()=>O1,getCompilerOptionValue:()=>F6,getConditions:()=>Ob,getConfigFileParsingDiagnostics:()=>ZS,getConstantValue:()=>rie,getContainerFlags:()=>DU,getContainerNode:()=>z1,getContainingClass:()=>hd,getContainingClassExcludingClassDecorators:()=>KF,getContainingClassStaticBlock:()=>ine,getContainingFunction:()=>df,getContainingFunctionDeclaration:()=>rne,getContainingFunctionOrClassStaticBlock:()=>JF,getContainingNodeArray:()=>kre,getContainingObjectLiteralElement:()=>jO,getContextualTypeFromParent:()=>C7,getContextualTypeFromParentOrAncestorTypeNode:()=>f7,getDeclarationDiagnostics:()=>$ae,getDeclarationEmitExtensionForPath:()=>_6,getDeclarationEmitOutputFilePath:()=>Nne,getDeclarationEmitOutputFilePathWorker:()=>h6,getDeclarationFileExtension:()=>W4,getDeclarationFromName:()=>nM,getDeclarationModifierFlagsFromSymbol:()=>Vf,getDeclarationOfKind:()=>ll,getDeclarationsOfKind:()=>Ite,getDeclaredExpandoInitializer:()=>QN,getDecorators:()=>lb,getDefaultCompilerOptions:()=>oz,getDefaultFormatCodeSettings:()=>r7,getDefaultLibFileName:()=>C2,getDefaultLibFilePath:()=>rue,getDefaultLikeExportInfo:()=>V7,getDefaultLikeExportNameFromDeclaration:()=>yJ,getDefaultResolutionModeForFileWorker:()=>L3,getDiagnosticText:()=>rp,getDiagnosticsWithinSpan:()=>yce,getDirectoryPath:()=>ci,getDirectoryToWatchFailedLookupLocation:()=>WH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>zse,getDocumentPositionMapper:()=>PJ,getDocumentSpansEqualityComparer:()=>tJ,getESModuleInterop:()=>Qh,getEditsForFileRename:()=>Dce,getEffectiveBaseTypeNode:()=>lh,getEffectiveConstraintOfTypeParameter:()=>WR,getEffectiveContainerForJSDocTemplateTag:()=>a6,getEffectiveImplementsTypeNodes:()=>nD,getEffectiveInitializer:()=>hk,getEffectiveJSDocHost:()=>GT,getEffectiveModifierFlags:()=>Gd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zne,getEffectiveModifierFlagsNoCache:()=>Bne,getEffectiveReturnTypeNode:()=>kp,getEffectiveSetAccessorTypeAnnotationNode:()=>lV,getEffectiveTypeAnnotationNode:()=>xc,getEffectiveTypeParameterDeclarations:()=>cb,getEffectiveTypeRoots:()=>nP,getElementOrPropertyAccessArgumentExpressionOrName:()=>o6,getElementOrPropertyAccessName:()=>oy,getElementsOfBindingOrAssignmentPattern:()=>LD,getEmitDeclarations:()=>_p,getEmitFlags:()=>Qa,getEmitHelpers:()=>dj,getEmitModuleDetectionKind:()=>cre,getEmitModuleFormatOfFileWorker:()=>TP,getEmitModuleKind:()=>bu,getEmitModuleResolutionKind:()=>iu,getEmitScriptTarget:()=>Ga,getEmitStandardClassFields:()=>MV,getEnclosingBlockScopeContainer:()=>sh,getEnclosingContainer:()=>zF,getEncodedSemanticClassifications:()=>IJ,getEncodedSyntacticClassifications:()=>xJ,getEndLinePosition:()=>Y2,getEntityNameFromTypeNode:()=>ck,getEntrypointsFromPackageJsonInfo:()=>EU,getErrorCountForSummary:()=>G3,getErrorSpanForNode:()=>n1,getErrorSummaryText:()=>GH,getEscapedTextOfIdentifierOrLiteral:()=>aM,getEscapedTextOfJsxAttributeName:()=>PM,getEscapedTextOfJsxNamespacedName:()=>OI,getExpandoInitializer:()=>zT,getExportAssignmentExpression:()=>jG,getExportInfoMap:()=>wO,getExportNeedsImportStarHelper:()=>yae,getExpressionAssociativity:()=>YG,getExpressionPrecedence:()=>lM,getExternalHelpersModuleName:()=>Ew,getExternalModuleImportEqualsDeclarationExpression:()=>XN,getExternalModuleName:()=>yI,getExternalModuleNameFromDeclaration:()=>Dne,getExternalModuleNameFromPath:()=>rV,getExternalModuleNameLiteral:()=>ZI,getExternalModuleRequireArgument:()=>PG,getFallbackOptions:()=>nO,getFileEmitOutput:()=>vse,getFileMatcherPatterns:()=>j6,getFileNamesFromConfigSpecs:()=>eP,getFileWatcherEventKind:()=>E9,getFilesInErrorForSummary:()=>V3,getFirstConstructorWithBody:()=>vg,getFirstIdentifier:()=>Lu,getFirstNonSpaceCharacterPosition:()=>dce,getFirstProjectOutput:()=>aH,getFixableErrorSpanExpression:()=>hJ,getFormatCodeSettingsForWriting:()=>z7,getFullWidth:()=>K2,getFunctionFlags:()=>dc,getHeritageClause:()=>Dk,getHostSignatureFromJSDoc:()=>BT,getIdentifierAutoGenerate:()=>pSe,getIdentifierGeneratedImportReference:()=>cie,getIdentifierTypeArguments:()=>g1,getImmediatelyInvokedFunctionExpression:()=>WT,getImpliedNodeFormatForEmitWorker:()=>W1,getImpliedNodeFormatForFile:()=>iO,getImpliedNodeFormatForFileWorker:()=>P3,getImportNeedsImportDefaultHelper:()=>HU,getImportNeedsImportStarHelper:()=>m3,getIndentString:()=>m6,getInferredLibraryNameResolveFrom:()=>M3,getInitializedVariables:()=>_M,getInitializerOfBinaryExpression:()=>OG,getInitializerOfBindingOrAssignmentElement:()=>Iw,getInterfaceBaseTypeNodes:()=>iM,getInternalEmitFlags:()=>zm,getInvokedExpression:()=>$F,getIsFileExcluded:()=>Ece,getIsolatedModules:()=>vm,getJSDocAugmentsTag:()=>Kee,getJSDocClassTag:()=>B9,getJSDocCommentRanges:()=>RG,getJSDocCommentsAndTags:()=>WG,getJSDocDeprecatedTag:()=>G9,getJSDocDeprecatedTagNoCache:()=>tte,getJSDocEnumTag:()=>V9,getJSDocHost:()=>xS,getJSDocImplementsTags:()=>Xee,getJSDocOverloadTags:()=>zG,getJSDocOverrideTagNoCache:()=>ete,getJSDocParameterTags:()=>OR,getJSDocParameterTagsNoCache:()=>Uee,getJSDocPrivateTag:()=>l0e,getJSDocPrivateTagNoCache:()=>$ee,getJSDocProtectedTag:()=>c0e,getJSDocProtectedTagNoCache:()=>Qee,getJSDocPublicTag:()=>s0e,getJSDocPublicTagNoCache:()=>Yee,getJSDocReadonlyTag:()=>d0e,getJSDocReadonlyTagNoCache:()=>Zee,getJSDocReturnTag:()=>nte,getJSDocReturnType:()=>w2,getJSDocRoot:()=>tD,getJSDocSatisfiesExpressionType:()=>XV,getJSDocSatisfiesTag:()=>j9,getJSDocTags:()=>kT,getJSDocTemplateTag:()=>u0e,getJSDocThisTag:()=>uF,getJSDocType:()=>$y,getJSDocTypeAliasName:()=>Vj,getJSDocTypeAssertionType:()=>MD,getJSDocTypeParameterDeclarations:()=>T6,getJSDocTypeParameterTags:()=>Hee,getJSDocTypeParameterTagsNoCache:()=>qee,getJSDocTypeTag:()=>LT,getJSXImplicitImportBase:()=>Xk,getJSXRuntimeImport:()=>B6,getJSXTransformEnabled:()=>z6,getKeyForCompilerOptions:()=>yU,getLanguageVariant:()=>jk,getLastChild:()=>AV,getLeadingCommentRanges:()=>cg,getLeadingCommentRangesOfNode:()=>xG,getLeftmostAccessExpression:()=>dD,getLeftmostExpression:()=>uD,getLibFileNameFromLibReference:()=>tj,getLibNameFromLibReference:()=>ej,getLibraryNameFromLibFileName:()=>EH,getLineAndCharacterOfPosition:()=>ca,getLineInfo:()=>VU,getLineOfLocalPosition:()=>dM,getLineStartPositionForPosition:()=>Am,getLineStarts:()=>sg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Qne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>$ne,getLinesBetweenPositions:()=>xN,getLinesBetweenRangeEndAndRangeStart:()=>vV,getLinesBetweenRangeEndPositions:()=>G0e,getLiteralText:()=>wte,getLocalNameForExternalImport:()=>PD,getLocalSymbolForExportDefault:()=>mM,getLocaleSpecificMessage:()=>Ho,getLocaleTimeString:()=>cO,getMappedContextSpan:()=>rJ,getMappedDocumentSpan:()=>x7,getMappedLocation:()=>MP,getMatchedFileSpec:()=>HH,getMatchedIncludeSpec:()=>qH,getMeaningFromDeclaration:()=>o7,getMeaningFromLocation:()=>F1,getMembersOfDeclaration:()=>$te,getModeForFileReference:()=>hse,getModeForResolutionAtIndex:()=>RAe,getModeForUsageLocation:()=>TH,getModifiedTime:()=>tI,getModifiers:()=>hS,getModuleInstanceState:()=>hy,getModuleNameStringLiteralAt:()=>aO,getModuleSpecifierEndingPreference:()=>Ere,getModuleSpecifierResolverHost:()=>Kq,getNameForExportedSymbol:()=>O7,getNameFromImportAttribute:()=>n4,getNameFromIndexInfo:()=>jte,getNameFromPropertyName:()=>AO,getNameOfAccessExpression:()=>xV,getNameOfCompilerOptionValue:()=>q4,getNameOfDeclaration:()=>Oo,getNameOfExpando:()=>LG,getNameOfJSDocTypedef:()=>jee,getNameOfScriptTarget:()=>W6,getNameOrArgument:()=>gk,getNameTable:()=>lK,getNamespaceDeclarationNode:()=>ZR,getNewLineCharacter:()=>iv,getNewLineKind:()=>kO,getNewLineOrDefaultFromHost:()=>gy,getNewTargetContainer:()=>ane,getNextJSDocCommentLocation:()=>FG,getNodeChildren:()=>Lj,getNodeForGeneratedName:()=>Rw,getNodeId:()=>ls,getNodeKind:()=>eE,getNodeModifiers:()=>DP,getNodeModulePathParts:()=>Z6,getNonAssignedNameOfDeclaration:()=>cF,getNonAssignmentOperatorForCompoundAssignment:()=>dP,getNonAugmentationDeclaration:()=>vG,getNonDecoratorTokenPosOfNode:()=>fG,getNonIncrementalBuildInfoRoots:()=>kse,getNonModifierTokenPosOfNode:()=>Lte,getNormalizedAbsolutePath:()=>So,getNormalizedAbsolutePathWithoutRoot:()=>R9,getNormalizedPathComponents:()=>tF,getObjectFlags:()=>Hr,getOperatorAssociativity:()=>$G,getOperatorPrecedence:()=>Nk,getOptionFromName:()=>iU,getOptionsForLibraryResolution:()=>vU,getOptionsNameMap:()=>OD,getOptionsSyntaxByArrayElementValue:()=>rj,getOptionsSyntaxByValue:()=>qre,getOrCreateEmitNode:()=>jd,getOrUpdate:()=>KA,getOriginalNode:()=>yl,getOriginalNodeId:()=>Fu,getOutputDeclarationFileName:()=>_P,getOutputDeclarationFileNameWorker:()=>iH,getOutputExtension:()=>Zw,getOutputFileNames:()=>vAe,getOutputJSFileNameWorker:()=>oH,getOutputPathsFor:()=>hP,getOwnEmitOutputFilePath:()=>Cne,getOwnKeys:()=>Fh,getOwnValues:()=>$A,getPackageJsonTypesVersionsPaths:()=>e3,getPackageNameFromTypesPackageName:()=>aP,getPackageScopeForPath:()=>oP,getParameterSymbolFromJSDoc:()=>Ak,getParentNodeInSpan:()=>xO,getParseTreeNode:()=>jo,getParsedCommandLineOfConfigFile:()=>Lw,getPathComponents:()=>zd,getPathFromPathComponents:()=>MT,getPathUpdater:()=>CJ,getPathsBasePath:()=>g6,getPatternFromSpec:()=>OV,getPendingEmitKindWithSeen:()=>W3,getPositionOfLineAndCharacter:()=>A2,getPossibleGenericSignatures:()=>Wq,getPossibleOriginalInputExtensionForExtension:()=>iV,getPossibleOriginalInputPathWithoutChangingExt:()=>oV,getPossibleTypeArgumentsInfo:()=>Fq,getPreEmitDiagnostics:()=>bAe,getPrecedingNonSpaceCharacterPosition:()=>R7,getPrivateIdentifier:()=>XU,getProperties:()=>JU,getProperty:()=>h2,getPropertyAssignmentAliasLikeExpression:()=>Sne,getPropertyNameForPropertyNameNode:()=>d1,getPropertyNameFromType:()=>Uf,getPropertyNameOfBindingOrAssignmentElement:()=>Gj,getPropertySymbolFromBindingElement:()=>I7,getPropertySymbolsFromContextualType:()=>sz,getQuoteFromPreference:()=>Yq,getQuotePreference:()=>Gp,getRangesWhere:()=>wB,getRefactorContextSpan:()=>mx,getReferencedFileLocation:()=>bP,getRegexFromPattern:()=>ov,getRegularExpressionForWildcard:()=>TM,getRegularExpressionsForWildcards:()=>G6,getRelativePathFromDirectory:()=>cf,getRelativePathFromFile:()=>MR,getRelativePathToDirectoryOrUrl:()=>PR,getRenameLocation:()=>DO,getReplacementSpanForContextToken:()=>Vq,getResolutionDiagnostic:()=>RH,getResolutionModeOverride:()=>HD,getResolveJsonModule:()=>kS,getResolvePackageJsonExports:()=>Hk,getResolvePackageJsonImports:()=>qk,getResolvedExternalModuleName:()=>nV,getResolvedModuleFromResolution:()=>pI,getResolvedTypeReferenceDirectiveFromResolution:()=>MF,getRestIndicatorOfBindingOrAssignmentElement:()=>P4,getRestParameterElementType:()=>DG,getRightMostAssignedExpression:()=>_k,getRootDeclaration:()=>Kh,getRootDirectoryOfResolutionCache:()=>Bse,getRootLength:()=>Bh,getScriptKind:()=>sJ,getScriptKindFromFileName:()=>H6,getScriptTargetFeatures:()=>mG,getSelectedEffectiveModifierFlags:()=>AI,getSelectedSyntacticModifierFlags:()=>Wne,getSemanticClassifications:()=>Ace,getSemanticJsxChildren:()=>iD,getSetAccessorTypeAnnotationNode:()=>Pne,getSetAccessorValueParameter:()=>uM,getSetExternalModuleIndicator:()=>Uk,getShebang:()=>sF,getSingleVariableOfVariableStatement:()=>TI,getSnapshotText:()=>fx,getSnippetElement:()=>uj,getSourceFileOfModule:()=>X2,getSourceFileOfNode:()=>Fn,getSourceFilePathInNewDir:()=>v6,getSourceFileVersionAsHashFromText:()=>U3,getSourceFilesToEmit:()=>y6,getSourceMapRange:()=>lv,getSourceMapper:()=>Bce,getSourceTextOfNodeFromSourceFile:()=>bS,getSpanOfTokenAtPosition:()=>Uh,getSpellingSuggestion:()=>mS,getStartPositionOfLine:()=>_b,getStartPositionOfRange:()=>hM,getStartsOnNewLine:()=>wM,getStaticPropertiesAndClassStaticBlock:()=>g3,getStrictOptionValue:()=>Vd,getStringComparer:()=>xR,getSubPatternFromSpec:()=>V6,getSuperCallFromStatement:()=>h3,getSuperContainer:()=>sk,getSupportedCodeFixes:()=>aK,getSupportedExtensions:()=>SM,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>$k,getSwitchedType:()=>dJ,getSymbolId:()=>Ta,getSymbolNameForPrivateIdentifier:()=>Ck,getSymbolTarget:()=>lJ,getSyntacticClassifications:()=>Ice,getSyntacticModifierFlags:()=>nv,getSyntacticModifierFlagsNoCache:()=>uV,getSynthesizedDeepClone:()=>_s,getSynthesizedDeepCloneWithReplacements:()=>aw,getSynthesizedDeepClones:()=>FS,getSynthesizedDeepClonesWithReplacements:()=>oj,getSyntheticLeadingComments:()=>gD,getSyntheticTrailingComments:()=>uw,getTargetLabel:()=>l7,getTargetOfBindingOrAssignmentElement:()=>kb,getTemporaryModuleResolutionState:()=>iP,getTextOfConstantValue:()=>Ote,getTextOfIdentifierOrLiteral:()=>zf,getTextOfJSDocComment:()=>O2,getTextOfJsxAttributeName:()=>iw,getTextOfJsxNamespacedName:()=>LM,getTextOfNode:()=>Al,getTextOfNodeFromSourceText:()=>jN,getTextOfPropertyName:()=>hI,getThisContainer:()=>vu,getThisParameter:()=>NS,getTokenAtPosition:()=>Fi,getTokenPosOfNode:()=>gb,getTokenSourceMapRange:()=>dSe,getTouchingPropertyName:()=>ip,getTouchingToken:()=>eC,getTrailingCommentRanges:()=>sb,getTrailingSemicolonDeferringWriter:()=>tV,getTransformers:()=>Zae,getTsBuildInfoEmitOutputFilePath:()=>c0,getTsConfigObjectLiteralExpression:()=>JN,getTsConfigPropArrayElementValue:()=>qF,getTypeAnnotationNode:()=>Lne,getTypeArgumentOrTypeParameterList:()=>Jle,getTypeKeywordOfTypeOnlyImport:()=>Zq,getTypeNode:()=>sie,getTypeNodeIfAccessible:()=>OP,getTypeParameterFromJsDoc:()=>_ne,getTypeParameterOwner:()=>r0e,getTypesPackageName:()=>s3,getUILocale:()=>YQ,getUniqueName:()=>G1,getUniqueSymbolId:()=>cce,getUseDefineForClassFields:()=>Jk,getWatchErrorSummaryDiagnosticMessage:()=>BH,getWatchFactory:()=>fH,group:()=>IR,groupBy:()=>VB,guessIndentation:()=>Ste,handleNoEmitOptions:()=>xH,handleWatchOptionsConfigDirTemplateSubstitution:()=>K4,hasAbstractModifier:()=>LS,hasAccessorModifier:()=>Xh,hasAmbientModifier:()=>dV,hasChangesInResolutions:()=>dG,hasContextSensitiveParameters:()=>Q6,hasDecorators:()=>pf,hasDocComment:()=>Hle,hasDynamicName:()=>ay,hasEffectiveModifier:()=>wp,hasEffectiveModifiers:()=>cV,hasEffectiveReadonlyModifier:()=>p1,hasExtension:()=>NR,hasImplementationTSFileExtension:()=>Tre,hasIndexSignature:()=>cJ,hasInferredType:()=>i4,hasInitializer:()=>Zy,hasInvalidEscape:()=>ZG,hasJSDocNodes:()=>ef,hasJSDocParameterTags:()=>Jee,hasJSFileExtension:()=>Sg,hasJsonModuleEmitEnabled:()=>O6,hasOnlyExpressionInitializer:()=>e1,hasOverrideModifier:()=>S6,hasPossibleExternalModuleReference:()=>Gte,hasProperty:()=>Rs,hasPropertyAccessExpressionWithName:()=>_O,hasQuestionToken:()=>vI,hasRecordedExternalHelpers:()=>Jie,hasResolutionModeOverride:()=>zre,hasRestParameter:()=>oG,hasScopeMarker:()=>fte,hasStaticModifier:()=>wc,hasSyntacticModifier:()=>di,hasSyntacticModifiers:()=>One,hasTSFileExtension:()=>m1,hasTabstop:()=>Ore,hasTrailingDirectorySeparator:()=>ob,hasType:()=>xF,hasTypeArguments:()=>M0e,hasZeroOrOneAsteriskCharacter:()=>PV,hostGetCanonicalFileName:()=>sy,hostUsesCaseSensitiveFileNames:()=>u1,idText:()=>Kr,identifierIsThisKeyword:()=>sV,identifierToKeywordKind:()=>KE,identity:()=>Vs,identitySourceMapConsumer:()=>UU,ignoreSourceNewlines:()=>fj,ignoredPaths:()=>$8,importFromModuleSpecifier:()=>eM,importSyntaxAffectsModuleResolution:()=>NV,indexOfAnyCharCode:()=>Li,indexOfNode:()=>UR,indicesOf:()=>z8,inferredTypesContainingFile:()=>vP,injectClassNamedEvaluationHelperBlockIfMissing:()=>T3,injectClassThisAssignmentIfMissing:()=>xae,insertImports:()=>Qq,insertSorted:()=>$v,insertStatementAfterCustomPrologue:()=>t1,insertStatementAfterStandardPrologue:()=>A0e,insertStatementsAfterCustomPrologue:()=>uG,insertStatementsAfterStandardPrologue:()=>hg,intersperse:()=>To,intrinsicTagNameToString:()=>YV,introducesArgumentsExoticObject:()=>ene,inverseJsxOptionMap:()=>Mw,isAbstractConstructorSymbol:()=>Zne,isAbstractModifier:()=>vie,isAccessExpression:()=>Ks,isAccessibilityModifier:()=>Bq,isAccessor:()=>fb,isAccessorModifier:()=>vj,isAliasableExpression:()=>s6,isAmbientModule:()=>yu,isAmbientPropertyDeclaration:()=>TG,isAnyDirectorySeparator:()=>A9,isAnyImportOrBareOrAccessedRequire:()=>zte,isAnyImportOrReExport:()=>Z2,isAnyImportOrRequireStatement:()=>Bte,isAnyImportSyntax:()=>mI,isAnySupportedFileExtension:()=>tSe,isApplicableVersionedTypesKey:()=>Gw,isArgumentExpressionOfElementAccess:()=>Cq,isArray:()=>Mo,isArrayBindingElement:()=>bF,isArrayBindingOrAssignmentElement:()=>V2,isArrayBindingOrAssignmentPattern:()=>Z9,isArrayBindingPattern:()=>pv,isArrayLiteralExpression:()=>Cd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>hv,isArrayTypeNode:()=>hw,isArrowFunction:()=>Xs,isAsExpression:()=>SD,isAssertClause:()=>Rie,isAssertEntry:()=>TSe,isAssertionExpression:()=>vS,isAssertsKeyword:()=>gie,isAssignmentDeclaration:()=>$N,isAssignmentExpression:()=>id,isAssignmentOperator:()=>ly,isAssignmentPattern:()=>zN,isAssignmentTarget:()=>Tb,isAsteriskToken:()=>fw,isAsyncFunction:()=>oM,isAsyncModifier:()=>FM,isAutoAccessorPropertyDeclaration:()=>Yu,isAwaitExpression:()=>Pb,isAwaitKeyword:()=>yj,isBigIntLiteral:()=>yD,isBinaryExpression:()=>Nr,isBinaryLogicalOperator:()=>wk,isBinaryOperatorToken:()=>toe,isBindableObjectDefinePropertyCall:()=>a1,isBindableStaticAccessExpression:()=>IS,isBindableStaticElementAccessExpression:()=>i6,isBindableStaticNameExpression:()=>s1,isBindingElement:()=>Ha,isBindingElementOfBareOrAccessedRequire:()=>cne,isBindingName:()=>QE,isBindingOrAssignmentElement:()=>cte,isBindingOrAssignmentPattern:()=>B2,isBindingPattern:()=>Qo,isBlock:()=>ea,isBlockLike:()=>hx,isBlockOrCatchScoped:()=>hG,isBlockScope:()=>SG,isBlockScopedContainerTopLevel:()=>Fte,isBooleanLiteral:()=>FN,isBreakOrContinueStatement:()=>kN,isBreakStatement:()=>ySe,isBuildCommand:()=>lle,isBuildInfoFile:()=>ese,isBuilderProgram:()=>VH,isBundle:()=>Mie,isCallChain:()=>XE,isCallExpression:()=>Zo,isCallExpressionTarget:()=>Eq,isCallLikeExpression:()=>yS,isCallLikeOrFunctionLikeExpression:()=>eG,isCallOrNewExpression:()=>Vh,isCallOrNewExpressionTarget:()=>Aq,isCallSignatureDeclaration:()=>UI,isCallToHelper:()=>WM,isCaseBlock:()=>HM,isCaseClause:()=>xD,isCaseKeyword:()=>Tie,isCaseOrDefaultClause:()=>AF,isCatchClause:()=>HS,isCatchClauseVariableDeclaration:()=>wre,isCatchClauseVariableDeclarationOrBindingElement:()=>_G,isCheckJsEnabledForFile:()=>IM,isCircularBuildOrder:()=>ux,isClassDeclaration:()=>Dc,isClassElement:()=>bc,isClassExpression:()=>uc,isClassInstanceProperty:()=>ste,isClassLike:()=>ui,isClassMemberModifier:()=>Y9,isClassNamedEvaluationHelperBlock:()=>lx,isClassOrTypeElement:()=>vF,isClassStaticBlockDeclaration:()=>Ql,isClassThisAssignmentBlock:()=>pP,isColonToken:()=>hie,isCommaExpression:()=>Sw,isCommaListExpression:()=>jM,isCommaSequence:()=>YM,isCommaToken:()=>mie,isComment:()=>y7,isCommonJsExportPropertyAssignment:()=>UF,isCommonJsExportedExpression:()=>Qte,isCompoundAssignment:()=>cP,isComputedNonLiteralName:()=>ek,isComputedPropertyName:()=>va,isConciseBody:()=>SF,isConditionalExpression:()=>S1,isConditionalTypeNode:()=>BS,isConstAssertion:()=>$V,isConstTypeReference:()=>Wm,isConstructSignatureDeclaration:()=>GM,isConstructorDeclaration:()=>Ml,isConstructorTypeNode:()=>vD,isContextualKeyword:()=>c6,isContinueStatement:()=>gSe,isCustomPrologue:()=>ok,isDebuggerStatement:()=>vSe,isDeclaration:()=>rd,isDeclarationBindingElement:()=>z2,isDeclarationFileName:()=>ad,isDeclarationName:()=>k_,isDeclarationNameOfEnumOrNamespace:()=>TV,isDeclarationReadonly:()=>nk,isDeclarationStatement:()=>gte,isDeclarationWithTypeParameterChildren:()=>AG,isDeclarationWithTypeParameters:()=>EG,isDecorator:()=>Wc,isDecoratorTarget:()=>kle,isDefaultClause:()=>qM,isDefaultImport:()=>l1,isDefaultModifier:()=>_4,isDefaultedExpandoInitializer:()=>dne,isDeleteExpression:()=>Eie,isDeleteTarget:()=>GG,isDeprecatedDeclaration:()=>W7,isDestructuringAssignment:()=>rv,isDiskPathRoot:()=>I9,isDoStatement:()=>_Se,isDocumentRegistryEntry:()=>OO,isDotDotDotToken:()=>m4,isDottedName:()=>Wk,isDynamicName:()=>u6,isEffectiveExternalModule:()=>HR,isEffectiveStrictModeSourceFile:()=>bG,isElementAccessChain:()=>U9,isElementAccessExpression:()=>Ws,isEmittedFileOfProgram:()=>sse,isEmptyArrayLiteral:()=>Une,isEmptyBindingElement:()=>Bee,isEmptyBindingPattern:()=>zee,isEmptyObjectLiteral:()=>_V,isEmptyStatement:()=>Sj,isEmptyStringLiteral:()=>MG,isEntityName:()=>Mu,isEntityNameExpression:()=>Ds,isEnumConst:()=>OT,isEnumDeclaration:()=>ZT,isEnumMember:()=>fy,isEqualityOperatorKind:()=>N7,isEqualsGreaterThanToken:()=>_ie,isExclamationToken:()=>mw,isExcludedFile:()=>Noe,isExclusivelyTypeOnlyImportOrExport:()=>bH,isExpandoPropertyDeclaration:()=>WI,isExportAssignment:()=>dl,isExportDeclaration:()=>fc,isExportModifier:()=>VI,isExportName:()=>N4,isExportNamespaceAsDefaultDeclaration:()=>OF,isExportOrDefaultModifier:()=>xw,isExportSpecifier:()=>ou,isExportsIdentifier:()=>o1,isExportsOrModuleExportsOrAlias:()=>KS,isExpression:()=>St,isExpressionNode:()=>L_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Wle,isExpressionOfOptionalChainRoot:()=>hF,isExpressionStatement:()=>od,isExpressionWithTypeArguments:()=>uy,isExpressionWithTypeArgumentsInClassExtendsClause:()=>A6,isExternalModule:()=>zc,isExternalModuleAugmentation:()=>SS,isExternalModuleImportEqualsDeclaration:()=>FT,isExternalModuleIndicator:()=>U2,isExternalModuleNameRelative:()=>td,isExternalModuleReference:()=>py,isExternalModuleSymbol:()=>dI,isExternalOrCommonJsModule:()=>Pp,isFileLevelReservedGeneratedIdentifier:()=>F2,isFileLevelUniqueName:()=>kF,isFileProbablyExternalModule:()=>Cw,isFirstDeclarationOfSymbolParameter:()=>iJ,isFixablePromiseHandler:()=>wJ,isForInOrOfStatement:()=>ZE,isForInStatement:()=>T4,isForInitializer:()=>Of,isForOfStatement:()=>gw,isForStatement:()=>QT,isFullSourceFile:()=>gg,isFunctionBlock:()=>ES,isFunctionBody:()=>nG,isFunctionDeclaration:()=>Zl,isFunctionExpression:()=>Us,isFunctionExpressionOrArrowFunction:()=>Rb,isFunctionLike:()=>Yo,isFunctionLikeDeclaration:()=>Ms,isFunctionLikeKind:()=>aI,isFunctionLikeOrClassStaticBlockDeclaration:()=>BR,isFunctionOrConstructorTypeNode:()=>lte,isFunctionOrModuleBlock:()=>$9,isFunctionSymbol:()=>fne,isFunctionTypeNode:()=>O_,isGeneratedIdentifier:()=>fl,isGeneratedPrivateIdentifier:()=>$E,isGetAccessor:()=>pg,isGetAccessorDeclaration:()=>Hf,isGetOrSetAccessorDeclaration:()=>W2,isGlobalScopeAugmentation:()=>P_,isGlobalSourceFile:()=>ev,isGrammarError:()=>Mte,isHeritageClause:()=>Fp,isHoistedFunction:()=>VF,isHoistedVariableStatement:()=>jF,isIdentifier:()=>He,isIdentifierANonContextualKeyword:()=>qG,isIdentifierName:()=>Tne,isIdentifierOrThisTypeNode:()=>$ie,isIdentifierPart:()=>ty,isIdentifierStart:()=>D_,isIdentifierText:()=>fp,isIdentifierTypePredicate:()=>tne,isIdentifierTypeReference:()=>Nre,isIfStatement:()=>$T,isIgnoredFileFromWildCardWatching:()=>tO,isImplicitGlob:()=>wV,isImportAttribute:()=>Die,isImportAttributeName:()=>ate,isImportAttributes:()=>I1,isImportCall:()=>Qu,isImportClause:()=>jm,isImportDeclaration:()=>vl,isImportEqualsDeclaration:()=>Fc,isImportKeyword:()=>BM,isImportMeta:()=>KR,isImportOrExportSpecifier:()=>ub,isImportOrExportSpecifierName:()=>lce,isImportSpecifier:()=>Eu,isImportTypeAssertionContainer:()=>bSe,isImportTypeNode:()=>t_,isImportable:()=>EJ,isInComment:()=>mv,isInCompoundLikeAssignment:()=>BG,isInExpressionContext:()=>QF,isInJSDoc:()=>YN,isInJSFile:()=>Ir,isInJSXText:()=>Ule,isInJsonFile:()=>e6,isInNonReferenceComment:()=>Yle,isInReferenceComment:()=>Xle,isInRightSideOfInternalImportEqualsDeclaration:()=>a7,isInString:()=>px,isInTemplateString:()=>Oq,isInTopLevelContext:()=>XF,isInTypeQuery:()=>EI,isIncrementalBuildInfo:()=>sO,isIncrementalBundleEmitBuildInfo:()=>Dse,isIncrementalCompilation:()=>wS,isIndexSignatureDeclaration:()=>Mb,isIndexedAccessTypeNode:()=>GS,isInferTypeNode:()=>v1,isInfinityOrNaNString:()=>NM,isInitializedProperty:()=>Hw,isInitializedVariable:()=>Vk,isInsideJsxElement:()=>_7,isInsideJsxElementOrAttribute:()=>jle,isInsideNodeModules:()=>MO,isInsideTemplateLiteral:()=>TO,isInstanceOfExpression:()=>I6,isInstantiatedModule:()=>WU,isInterfaceDeclaration:()=>gd,isInternalDeclaration:()=>Ete,isInternalModuleImportEqualsDeclaration:()=>i1,isInternalName:()=>Fj,isIntersectionTypeNode:()=>JI,isIntrinsicJsxName:()=>oD,isIterationStatement:()=>mb,isJSDoc:()=>mh,isJSDocAllType:()=>kie,isJSDocAugmentsTag:()=>QI,isJSDocAuthorTag:()=>ISe,isJSDocCallbackTag:()=>xj,isJSDocClassTag:()=>Oie,isJSDocCommentContainingNode:()=>IF,isJSDocConstructSignature:()=>bI,isJSDocDeprecatedTag:()=>Mj,isJSDocEnumTag:()=>vw,isJSDocFunctionType:()=>DD,isJSDocImplementsTag:()=>R4,isJSDocImportTag:()=>a_,isJSDocIndexSignature:()=>n6,isJSDocLikeText:()=>Jj,isJSDocLink:()=>Pie,isJSDocLinkCode:()=>Lie,isJSDocLinkLike:()=>cI,isJSDocLinkPlain:()=>ESe,isJSDocMemberName:()=>n0,isJSDocNameReference:()=>JM,isJSDocNamepathType:()=>ASe,isJSDocNamespaceBody:()=>g0e,isJSDocNode:()=>GR,isJSDocNonNullableType:()=>E4,isJSDocNullableType:()=>RD,isJSDocOptionalParameter:()=>e4,isJSDocOptionalType:()=>Ij,isJSDocOverloadTag:()=>CD,isJSDocOverrideTag:()=>I4,isJSDocParameterTag:()=>mf,isJSDocPrivateTag:()=>Dj,isJSDocPropertyLikeTag:()=>wN,isJSDocPropertyTag:()=>Wie,isJSDocProtectedTag:()=>Cj,isJSDocPublicTag:()=>Rj,isJSDocReadonlyTag:()=>Nj,isJSDocReturnTag:()=>x4,isJSDocSatisfiesExpression:()=>KV,isJSDocSatisfiesTag:()=>D4,isJSDocSeeTag:()=>xSe,isJSDocSignature:()=>fv,isJSDocTag:()=>VR,isJSDocTemplateTag:()=>Tm,isJSDocThisTag:()=>Pj,isJSDocThrowsTag:()=>DSe,isJSDocTypeAlias:()=>_m,isJSDocTypeAssertion:()=>qS,isJSDocTypeExpression:()=>t0,isJSDocTypeLiteral:()=>R1,isJSDocTypeTag:()=>KM,isJSDocTypedefTag:()=>D1,isJSDocUnknownTag:()=>RSe,isJSDocUnknownType:()=>wie,isJSDocVariadicType:()=>A4,isJSXTagName:()=>$R,isJsonEqual:()=>Y6,isJsonSourceFile:()=>Ff,isJsxAttribute:()=>o_,isJsxAttributeLike:()=>EF,isJsxAttributeName:()=>Fre,isJsxAttributes:()=>US,isJsxCallLike:()=>Tte,isJsxChild:()=>J2,isJsxClosingElement:()=>jS,isJsxClosingFragment:()=>Nie,isJsxElement:()=>i_,isJsxExpression:()=>ID,isJsxFragment:()=>e0,isJsxNamespacedName:()=>fh,isJsxOpeningElement:()=>ph,isJsxOpeningFragment:()=>Um,isJsxOpeningLikeElement:()=>ru,isJsxOpeningLikeElementTagName:()=>wle,isJsxSelfClosingElement:()=>x1,isJsxSpreadAttribute:()=>$I,isJsxTagNameExpression:()=>BN,isJsxText:()=>BI,isJumpStatementTarget:()=>gO,isKeyword:()=>ep,isKeywordOrPunctuation:()=>l6,isKnownSymbol:()=>sM,isLabelName:()=>Rq,isLabelOfLabeledStatement:()=>xq,isLabeledStatement:()=>Lb,isLateVisibilityPaintedStatement:()=>FF,isLeftHandSideExpression:()=>$u,isLet:()=>GF,isLineBreak:()=>eu,isLiteralComputedPropertyDeclarationName:()=>xk,isLiteralExpression:()=>YE,isLiteralExpressionOfObject:()=>K9,isLiteralImportTypeNode:()=>iy,isLiteralKind:()=>ON,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>c7,isLiteralTypeLiteral:()=>pte,isLiteralTypeNode:()=>uv,isLocalName:()=>my,isLogicalOperator:()=>Gne,isLogicalOrCoalescingAssignmentExpression:()=>pV,isLogicalOrCoalescingAssignmentOperator:()=>pM,isLogicalOrCoalescingBinaryExpression:()=>Ok,isLogicalOrCoalescingBinaryOperator:()=>E6,isMappedTypeNode:()=>T1,isMemberName:()=>ug,isMetaProperty:()=>E1,isMethodDeclaration:()=>Nl,isMethodOrAccessor:()=>sI,isMethodSignature:()=>Vm,isMinusToken:()=>gj,isMissingDeclaration:()=>SSe,isMissingPackageJsonInfo:()=>Goe,isModifier:()=>Aa,isModifierKind:()=>pb,isModifierLike:()=>ml,isModuleAugmentationExternal:()=>yG,isModuleBlock:()=>n_,isModuleBody:()=>mte,isModuleDeclaration:()=>pc,isModuleExportName:()=>S4,isModuleExportsAccessExpression:()=>yg,isModuleIdentifier:()=>kG,isModuleName:()=>eoe,isModuleOrEnumDeclaration:()=>H2,isModuleReference:()=>vte,isModuleSpecifierLike:()=>A7,isModuleWithStringLiteralName:()=>WF,isNameOfFunctionDeclaration:()=>Mq,isNameOfModuleDeclaration:()=>Nq,isNamedDeclaration:()=>nd,isNamedEvaluation:()=>Lp,isNamedEvaluationSource:()=>JG,isNamedExportBindings:()=>q9,isNamedExports:()=>Jf,isNamedImportBindings:()=>rG,isNamedImports:()=>r_,isNamedImportsOrExports:()=>M6,isNamedTupleMember:()=>bD,isNamespaceBody:()=>_0e,isNamespaceExport:()=>W_,isNamespaceExportDeclaration:()=>yw,isNamespaceImport:()=>xg,isNamespaceReexportDeclaration:()=>lne,isNewExpression:()=>VS,isNewExpressionTarget:()=>IP,isNewScopeNode:()=>Hre,isNoSubstitutionTemplateLiteral:()=>y1,isNodeArray:()=>_S,isNodeArrayMultiLine:()=>Yne,isNodeDescendantOf:()=>RS,isNodeKind:()=>gF,isNodeLikeSystem:()=>e9,isNodeModulesDirectory:()=>rF,isNodeWithPossibleHoistedDeclaration:()=>vne,isNonContextualKeyword:()=>HG,isNonGlobalAmbientModule:()=>gG,isNonNullAccess:()=>Wre,isNonNullChain:()=>_F,isNonNullExpression:()=>XI,isNonStaticMethodOrAccessorWithPrivateName:()=>vae,isNotEmittedStatement:()=>Cie,isNullishCoalesce:()=>H9,isNumber:()=>eb,isNumericLiteral:()=>np,isNumericLiteralName:()=>Ag,isObjectBindingElementWithoutPropertyName:()=>IO,isObjectBindingOrAssignmentElement:()=>G2,isObjectBindingOrAssignmentPattern:()=>Q9,isObjectBindingPattern:()=>ff,isObjectLiteralElement:()=>iG,isObjectLiteralElementLike:()=>ry,isObjectLiteralExpression:()=>Fa,isObjectLiteralMethod:()=>hm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>HF,isObjectTypeDeclaration:()=>DI,isOmittedExpression:()=>Jc,isOptionalChain:()=>tu,isOptionalChainRoot:()=>PN,isOptionalDeclaration:()=>wI,isOptionalJSDocPropertyLikeTag:()=>rw,isOptionalTypeNode:()=>g4,isOuterExpression:()=>M4,isOutermostOptionalChain:()=>LN,isOverrideModifier:()=>bie,isPackageJsonInfo:()=>n3,isPackedArrayLiteral:()=>qV,isParameter:()=>to,isParameterPropertyDeclaration:()=>Np,isParameterPropertyModifier:()=>WN,isParenthesizedExpression:()=>Ou,isParenthesizedTypeNode:()=>b1,isParseTreeNode:()=>MN,isPartOfParameterDeclaration:()=>jT,isPartOfTypeNode:()=>qh,isPartOfTypeOnlyImportOrExportDeclaration:()=>ote,isPartOfTypeQuery:()=>ZF,isPartiallyEmittedExpression:()=>Aie,isPatternMatch:()=>V8,isPinnedComment:()=>wF,isPlainJsFile:()=>VN,isPlusToken:()=>_j,isPossiblyTypeArgumentPosition:()=>bO,isPostfixUnaryExpression:()=>Tj,isPrefixUnaryExpression:()=>YT,isPrimitiveLiteralValue:()=>r4,isPrivateIdentifier:()=>eo,isPrivateIdentifierClassElementDeclaration:()=>nu,isPrivateIdentifierPropertyAccessExpression:()=>zR,isPrivateIdentifierSymbol:()=>Ane,isProgramUptoDate:()=>AH,isPrologueDirective:()=>Hh,isPropertyAccessChain:()=>mF,isPropertyAccessEntityNameExpression:()=>Fk,isPropertyAccessExpression:()=>qr,isPropertyAccessOrQualifiedName:()=>j2,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>dte,isPropertyAssignment:()=>Cc,isPropertyDeclaration:()=>Po,isPropertyName:()=>vc,isPropertyNameLiteral:()=>Jh,isPropertySignature:()=>Su,isPrototypeAccess:()=>Ab,isPrototypePropertyAssignment:()=>vk,isPunctuation:()=>UG,isPushOrUnshiftIdentifier:()=>KG,isQualifiedName:()=>ku,isQuestionDotToken:()=>h4,isQuestionOrExclamationToken:()=>Yie,isQuestionOrPlusOrMinusToken:()=>Zie,isQuestionToken:()=>Nb,isReadonlyKeyword:()=>yie,isReadonlyKeywordOrPlusOrMinusToken:()=>Qie,isRecognizedTripleSlashComment:()=>pG,isReferenceFileLocation:()=>qD,isReferencedFile:()=>d0,isRegularExpressionLiteral:()=>mj,isRequireCall:()=>Zu,isRequireVariableStatement:()=>fk,isRestParameter:()=>N_,isRestTypeNode:()=>y4,isReturnStatement:()=>tf,isReturnStatementWithFixablePromiseHandler:()=>H7,isRightSideOfAccessExpression:()=>hV,isRightSideOfInstanceofExpression:()=>jne,isRightSideOfPropertyAccess:()=>$D,isRightSideOfQualifiedName:()=>Ole,isRightSideOfQualifiedNameOrPropertyAccess:()=>fM,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vne,isRootedDiskPath:()=>Cp,isSameEntityName:()=>QR,isSatisfiesExpression:()=>ED,isSemicolonClassElement:()=>Iie,isSetAccessor:()=>jh,isSetAccessorDeclaration:()=>gp,isShiftOperatorOrHigher:()=>Uj,isShorthandAmbientModuleSymbol:()=>Q2,isShorthandPropertyAssignment:()=>Ud,isSideEffectImport:()=>ZV,isSignedNumericLiteral:()=>d6,isSimpleCopiableExpression:()=>XS,isSimpleInlineableExpression:()=>B_,isSimpleParameterList:()=>qw,isSingleOrDoubleQuote:()=>mk,isSolutionConfig:()=>fU,isSourceElement:()=>Bre,isSourceFile:()=>Yi,isSourceFileFromLibrary:()=>sC,isSourceFileJS:()=>Pu,isSourceFileNotJson:()=>t6,isSourceMapping:()=>_ae,isSpecialPropertyDeclaration:()=>pne,isSpreadAssignment:()=>Rg,isSpreadElement:()=>qf,isStatement:()=>Gi,isStatementButNotDeclaration:()=>q2,isStatementOrBlock:()=>yte,isStatementWithLocals:()=>Nte,isStatic:()=>ua,isStaticModifier:()=>jI,isString:()=>Bo,isStringANonContextualKeyword:()=>SI,isStringAndEmptyAnonymousObjectIntersection:()=>Kle,isStringDoubleQuoted:()=>r6,isStringLiteral:()=>wa,isStringLiteralLike:()=>ds,isStringLiteralOrJsxExpression:()=>bte,isStringLiteralOrTemplate:()=>pce,isStringOrNumericLiteralLike:()=>uf,isStringOrRegularExpressionOrTemplateLiteral:()=>zq,isStringTextContainingNode:()=>X9,isSuperCall:()=>r1,isSuperKeyword:()=>zM,isSuperProperty:()=>mp,isSupportedSourceFileName:()=>zV,isSwitchStatement:()=>UM,isSyntaxList:()=>ND,isSyntheticExpression:()=>hSe,isSyntheticReference:()=>YI,isTagName:()=>Dq,isTaggedTemplateExpression:()=>XT,isTaggedTemplateTag:()=>Lle,isTemplateExpression:()=>b4,isTemplateHead:()=>GI,isTemplateLiteral:()=>lI,isTemplateLiteralKind:()=>db,isTemplateLiteralToken:()=>rte,isTemplateLiteralTypeNode:()=>Sie,isTemplateLiteralTypeSpan:()=>bj,isTemplateMiddle:()=>hj,isTemplateMiddleOrTemplateTail:()=>yF,isTemplateSpan:()=>AD,isTemplateTail:()=>f4,isTextWhiteSpaceLike:()=>ece,isThis:()=>QD,isThisContainerOrFunctionBlock:()=>one,isThisIdentifier:()=>Eb,isThisInTypeQuery:()=>MS,isThisInitializedDeclaration:()=>YF,isThisInitializedObjectBindingExpression:()=>sne,isThisProperty:()=>lk,isThisTypeNode:()=>VM,isThisTypeParameter:()=>MM,isThisTypePredicate:()=>nne,isThrowStatement:()=>Aj,isToken:()=>oI,isTokenKind:()=>J9,isTraceEnabled:()=>wb,isTransientSymbol:()=>fg,isTrivia:()=>rD,isTryStatement:()=>A1,isTupleTypeNode:()=>qI,isTypeAlias:()=>Sk,isTypeAliasDeclaration:()=>bm,isTypeAssertionExpression:()=>v4,isTypeDeclaration:()=>kI,isTypeElement:()=>gS,isTypeKeyword:()=>CP,isTypeKeywordTokenOrIdentifier:()=>T7,isTypeLiteralNode:()=>wu,isTypeNode:()=>Ri,isTypeNodeKind:()=>IV,isTypeOfExpression:()=>TD,isTypeOnlyExportDeclaration:()=>ite,isTypeOnlyImportDeclaration:()=>FR,isTypeOnlyImportOrExportDeclaration:()=>Qy,isTypeOperatorNode:()=>KT,isTypeParameterDeclaration:()=>cl,isTypePredicateNode:()=>HI,isTypeQueryNode:()=>zS,isTypeReferenceNode:()=>Wp,isTypeReferenceType:()=>RF,isTypeUsableAsPropertyName:()=>jf,isUMDExportSymbol:()=>N6,isUnaryExpression:()=>tG,isUnaryExpressionWithWrite:()=>ute,isUnicodeIdentifierStart:()=>oF,isUnionTypeNode:()=>dv,isUrl:()=>yee,isValidBigIntString:()=>$6,isValidESSymbolDeclaration:()=>Zte,isValidTypeOnlyAliasUseSite:()=>HT,isValueSignatureDeclaration:()=>c1,isVarAwaitUsing:()=>rk,isVarConst:()=>JR,isVarConstLike:()=>Xte,isVarUsing:()=>ik,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>qN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>AS,isVariableDeclarationInitializedToRequire:()=>pk,isVariableDeclarationList:()=>_d,isVariableLike:()=>HN,isVariableStatement:()=>sc,isVoidExpression:()=>KI,isWatchSet:()=>SV,isWhileStatement:()=>Ej,isWhiteSpaceLike:()=>lg,isWhiteSpaceSingleLine:()=>Gh,isWithStatement:()=>xie,isWriteAccess:()=>RI,isWriteOnlyAccess:()=>C6,isYieldExpression:()=>_w,jsxModeNeedsExplicitImport:()=>bJ,keywordPart:()=>Vp,last:()=>Ba,lastOrUndefined:()=>tl,length:()=>Ze,libMap:()=>Qj,libs:()=>F4,lineBreakPart:()=>iC,loadModuleFromGlobalCache:()=>Qoe,loadWithModeAwareCache:()=>rO,makeIdentifierFromModuleName:()=>Wte,makeImport:()=>Vb,makeStringLiteral:()=>NP,mangleScopedPackageName:()=>GD,map:()=>Bt,mapAllOrFail:()=>DT,mapDefined:()=>ji,mapDefinedIterator:()=>cm,mapEntries:()=>GQ,mapIterator:()=>La,mapOneOrMany:()=>_J,mapToDisplayParts:()=>jb,matchFiles:()=>bre,matchPatternOrExact:()=>BV,matchedText:()=>tZ,matchesExclude:()=>$4,matchesExcludeWorker:()=>Q4,maxBy:()=>qB,maybeBind:()=>oa,maybeSetLocalizedDiagnosticMessages:()=>ore,memoize:()=>Nu,memoizeOne:()=>zh,min:()=>JB,minAndMax:()=>Rre,missingFileModifiedTime:()=>Dp,modifierToFlag:()=>II,modifiersToFlags:()=>Yh,moduleExportNameIsDefault:()=>M_,moduleExportNameTextEscaped:()=>TS,moduleExportNameTextUnescaped:()=>yb,moduleOptionDeclaration:()=>poe,moduleResolutionIsEqualTo:()=>Dte,moduleResolutionNameAndModeGetter:()=>C3,moduleResolutionOptionDeclarations:()=>eU,moduleResolutionSupportsPackageJsonExportsAndImports:()=>pD,moduleResolutionUsesNodeModules:()=>S7,moduleSpecifierToValidIdentifier:()=>LO,moduleSpecifiers:()=>_y,moduleSupportsImportAttributes:()=>pre,moduleSymbolToValidIdentifier:()=>PO,moveEmitHelpers:()=>oie,moveRangeEnd:()=>R6,moveRangePastDecorators:()=>cy,moveRangePastModifiers:()=>$h,moveRangePos:()=>UT,moveSyntheticComments:()=>nie,mutateMap:()=>yM,mutateMapSkippingNewValues:()=>bg,needsParentheses:()=>D7,needsScopeMarker:()=>TF,newCaseClauseTracker:()=>B7,newPrivateEnvironment:()=>Tae,noEmitNotification:()=>Yw,noEmitSubstitution:()=>mP,noTransformers:()=>Qae,noTruncationMaximumTruncationLength:()=>sG,nodeCanBeDecorated:()=>dk,nodeCoreModules:()=>_D,nodeHasName:()=>k2,nodeIsDecorated:()=>YR,nodeIsMissing:()=>Ol,nodeIsPresent:()=>mm,nodeIsSynthesized:()=>Os,nodeModuleNameResolver:()=>Hoe,nodeModulesPathPart:()=>Dg,nodeNextJsonConfigResolver:()=>qoe,nodeOrChildIsDecorated:()=>uk,nodeOverlapsWithStartEnd:()=>d7,nodePosToString:()=>b0e,nodeSeenTracker:()=>tC,nodeStartsNewLexicalEnvironment:()=>XG,noop:()=>gs,noopFileWatcher:()=>XD,normalizePath:()=>ya,normalizeSlashes:()=>Bd,normalizeSpans:()=>O9,not:()=>U8,notImplemented:()=>_a,notImplementedResolver:()=>rse,nullNodeConverters:()=>Zre,nullParenthesizerRules:()=>$re,nullTransformationContext:()=>Qw,objectAllocator:()=>Rd,operatorPart:()=>PP,optionDeclarations:()=>Hm,optionMapToObject:()=>H4,optionsAffectingProgramStructure:()=>_oe,optionsForBuild:()=>nU,optionsForWatch:()=>rx,optionsHaveChanges:()=>uI,or:()=>Rp,orderedRemoveItem:()=>mN,orderedRemoveItemAt:()=>ib,packageIdToPackageName:()=>LF,packageIdToString:()=>wT,parameterIsThisKeyword:()=>Sb,parameterNamePart:()=>nce,parseBaseNodeFactory:()=>aoe,parseBigInt:()=>Cre,parseBuildCommand:()=>Aoe,parseCommandLine:()=>Soe,parseCommandLineWorker:()=>rU,parseConfigFileTextToJson:()=>oU,parseConfigFileWithSystem:()=>Vse,parseConfigHostFromCompilerHostLike:()=>w3,parseCustomTypeOption:()=>V4,parseIsolatedEntityName:()=>nx,parseIsolatedJSDocComment:()=>loe,parseJSDocTypeExpressionForTests:()=>QSe,parseJsonConfigFileContent:()=>DEe,parseJsonSourceFileConfigFileContent:()=>Ow,parseJsonText:()=>Nw,parseListTypeOption:()=>boe,parseNodeFactory:()=>i0,parseNodeModuleFromPath:()=>Bw,parsePackageName:()=>o3,parsePseudoBigInt:()=>RM,parseValidBigInt:()=>UV,pasteEdits:()=>vX,patchWriteFileEnsuringDirectory:()=>OTe,pathContainsNodeModules:()=>Wb,pathIsAbsolute:()=>SN,pathIsBareSpecifier:()=>x9,pathIsRelative:()=>Zp,patternText:()=>eZ,performIncrementalCompilation:()=>jse,performance:()=>cZ,positionBelongsToNode:()=>Pq,positionIsASICandidate:()=>M7,positionIsSynthesized:()=>dh,positionsAreOnSameLine:()=>Gf,preProcessFile:()=>Fxe,probablyUsesSemicolons:()=>NO,processCommentPragmas:()=>Yj,processPragmasIntoFields:()=>$j,processTaggedTemplateExpression:()=>QU,programContainsEsModules:()=>Qle,programContainsModules:()=>$le,projectReferenceIsEqualTo:()=>lG,propertyNamePart:()=>rce,pseudoBigIntToString:()=>OS,punctuationPart:()=>lu,pushIfUnique:()=>kf,quote:()=>wP,quotePreferenceFromString:()=>Xq,rangeContainsPosition:()=>ZD,rangeContainsPositionExclusive:()=>yO,rangeContainsRange:()=>tp,rangeContainsRangeExclusive:()=>Fle,rangeContainsStartEnd:()=>vO,rangeEndIsOnSameLineAsRangeStart:()=>Gk,rangeEndPositionsAreOnSameLine:()=>Kne,rangeEquals:()=>FB,rangeIsOnSingleLine:()=>f1,rangeOfNode:()=>VV,rangeOfTypeParameters:()=>jV,rangeOverlapsWithStartEnd:()=>xP,rangeStartIsOnSameLineAsRangeEnd:()=>Xne,rangeStartPositionsAreOnSameLine:()=>D6,readBuilderProgram:()=>q3,readConfigFile:()=>kw,readJson:()=>lD,readJsonConfigFile:()=>Ioe,readJsonOrUndefined:()=>gV,reduceEachLeadingCommentRange:()=>xee,reduceEachTrailingCommentRange:()=>Ree,reduceLeft:()=>gu,reduceLeftIterator:()=>jn,reducePathComponents:()=>rI,refactor:()=>gx,regExpEscape:()=>X0e,regularExpressionFlagToCharacterCode:()=>KTe,relativeComplement:()=>VQ,removeAllComments:()=>cw,removeEmitHelper:()=>uSe,removeExtension:()=>Zk,removeFileExtension:()=>Tu,removeIgnoredPath:()=>z3,removeMinAndVersionNumbers:()=>YB,removePrefix:()=>hN,removeSuffix:()=>RR,removeTrailingDirectorySeparator:()=>Yy,repeatString:()=>EO,replaceElement:()=>GB,replaceFirstStar:()=>h1,resolutionExtensionIsTSOrJson:()=>EM,resolveConfigFileProjectName:()=>nq,resolveJSModule:()=>a1e,resolveLibrary:()=>i3,resolveModuleName:()=>P1,resolveModuleNameFromCache:()=>i1e,resolvePackageNameToPackageJson:()=>gU,resolvePath:()=>ab,resolveProjectReferencePath:()=>cx,resolveTripleslashReference:()=>hH,resolveTypeReferenceDirective:()=>zoe,resolvingEmptyArray:()=>aG,returnFalse:()=>Zg,returnNoopFileWatcher:()=>SP,returnTrue:()=>uS,returnUndefined:()=>pS,returnsPromise:()=>kJ,rewriteModuleSpecifier:()=>ax,sameFlatMap:()=>Om,sameMap:()=>Zi,sameMapping:()=>X1e,scanTokenAtPosition:()=>Kte,scanner:()=>yd,semanticDiagnosticsOptionDeclarations:()=>foe,serializeCompilerOptions:()=>dU,server:()=>Jwe,servicesVersion:()=>RDe,setCommentRange:()=>Rc,setConfigFileInOptions:()=>uU,setConstantValue:()=>iie,setEmitFlags:()=>Cr,setGetSourceFileAsHashVersioned:()=>H3,setIdentifierAutoGenerate:()=>pw,setIdentifierGeneratedImportReference:()=>lie,setIdentifierTypeArguments:()=>cv,setInternalEmitFlags:()=>dw,setLocalizedDiagnosticMessages:()=>ire,setNodeChildren:()=>Fie,setNodeFlags:()=>Pre,setObjectAllocator:()=>rre,setOriginalNode:()=>jr,setParent:()=>ps,setParentRecursive:()=>qT,setPrivateIdentifier:()=>k1,setSnippetElement:()=>pj,setSourceMapRange:()=>Ua,setStackTraceLimit:()=>CTe,setStartsOnNewLine:()=>c4,setSyntheticLeadingComments:()=>JT,setSyntheticTrailingComments:()=>FI,setSys:()=>WTe,setSysLog:()=>_ee,setTextRange:()=>bt,setTextRangeEnd:()=>hD,setTextRangePos:()=>DM,setTextRangePosEnd:()=>uh,setTextRangePosWidth:()=>HV,setTokenSourceMapRange:()=>tie,setTypeNode:()=>aie,setUILocale:()=>$Q,setValueDeclaration:()=>ZN,shouldAllowImportingTsExtension:()=>VD,shouldPreserveConstEnums:()=>Ib,shouldRewriteModuleSpecifier:()=>Tk,shouldUseUriStyleNodeCoreModules:()=>F7,showModuleSpecifier:()=>ere,signatureHasRestParameter:()=>su,signatureToDisplayParts:()=>aJ,single:()=>BB,singleElementArray:()=>eI,singleIterator:()=>F8,singleOrMany:()=>x_,singleOrUndefined:()=>ag,skipAlias:()=>xd,skipConstraint:()=>qq,skipOuterExpressions:()=>Ul,skipParentheses:()=>us,skipPartiallyEmittedExpressions:()=>Fm,skipTrivia:()=>ka,skipTypeChecking:()=>mD,skipTypeCheckingIgnoringNoCheck:()=>Dre,skipTypeParentheses:()=>tM,skipWhile:()=>rZ,sliceAfter:()=>GV,some:()=>vt,sortAndDeduplicate:()=>fN,sortAndDeduplicateDiagnostics:()=>wR,sourceFileAffectingCompilerOptions:()=>tU,sourceFileMayBeEmitted:()=>CS,sourceMapCommentRegExp:()=>BU,sourceMapCommentRegExpDontCareLineStart:()=>fae,spacePart:()=>zl,spanMap:()=>f2,startEndContainsRange:()=>bV,startEndOverlapsWithStartEnd:()=>u7,startOnNewLine:()=>au,startTracing:()=>fZ,startsWith:()=>fo,startsWithDirectory:()=>C9,startsWithUnderscore:()=>vJ,startsWithUseStrict:()=>Hie,stringContainsAt:()=>vce,stringToToken:()=>qE,stripQuotes:()=>gm,supportedDeclarationExtensions:()=>J6,supportedJSExtensionsFlat:()=>fD,supportedLocaleDirectories:()=>Vee,supportedTSExtensionsFlat:()=>WV,supportedTSImplementationExtensions:()=>Yk,suppressLeadingAndTrailingTrivia:()=>Op,suppressLeadingTrivia:()=>aj,suppressTrailingTrivia:()=>Jre,symbolEscapedNameNoDefault:()=>E7,symbolName:()=>wl,symbolNameNoDefault:()=>$q,symbolToDisplayParts:()=>LP,sys:()=>jc,sysLog:()=>Q8,tagNamesAreEquivalent:()=>a0,takeWhile:()=>ZB,targetOptionDeclaration:()=>Zj,targetToLibMap:()=>Dee,testFormatSettings:()=>axe,textChangeRangeIsUnchanged:()=>Wee,textChangeRangeNewSpan:()=>NN,textChanges:()=>Rr,textOrKeywordPart:()=>oJ,textPart:()=>yf,textRangeContainsPositionInclusive:()=>N2,textRangeContainsTextSpan:()=>Mee,textRangeIntersectsWithTextSpan:()=>wee,textSpanContainsPosition:()=>k9,textSpanContainsTextRange:()=>w9,textSpanContainsTextSpan:()=>Nee,textSpanEnd:()=>Dl,textSpanIntersection:()=>Oee,textSpanIntersectsWith:()=>M2,textSpanIntersectsWithPosition:()=>kee,textSpanIntersectsWithTextSpan:()=>Lee,textSpanIsEmpty:()=>Cee,textSpanOverlap:()=>Pee,textSpanOverlapsWith:()=>n0e,textSpansEqual:()=>rC,textToKeywordObj:()=>iF,timestamp:()=>Ls,toArray:()=>QA,toBuilderFileEmit:()=>Mse,toBuilderStateFileInfoForMultiEmit:()=>Nse,toEditorSettings:()=>GO,toFileNameLowerCase:()=>tb,toPath:()=>ks,toProgramEmitPending:()=>Pse,toSorted:()=>xp,tokenIsIdentifierOrKeyword:()=>Xu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>bee,tokenToString:()=>ga,trace:()=>xo,tracing:()=>xr,tracingEnabled:()=>T2,transferSourceFileChildren:()=>zie,transform:()=>WDe,transformClassFields:()=>Mae,transformDeclarations:()=>nH,transformECMAScriptModule:()=>tH,transformES2015:()=>Hae,transformES2016:()=>Uae,transformES2017:()=>wae,transformES2018:()=>Oae,transformES2019:()=>Wae,transformES2020:()=>Fae,transformES2021:()=>zae,transformESDecorators:()=>kae,transformESNext:()=>Bae,transformGenerators:()=>qae,transformImpliedNodeFormatDependentModule:()=>Kae,transformJsx:()=>jae,transformLegacyDecorators:()=>Lae,transformModule:()=>eH,transformNamedEvaluation:()=>zp,transformNodes:()=>$w,transformSystemModule:()=>Jae,transformTypeScript:()=>Nae,transpile:()=>Jxe,transpileDeclaration:()=>Hxe,transpileModule:()=>Vce,transpileOptionValueCompilerOptions:()=>goe,tryAddToSet:()=>rh,tryAndIgnoreErrors:()=>k7,tryCast:()=>ni,tryDirectoryExists:()=>L7,tryExtractTSExtension:()=>x6,tryFileExists:()=>WP,tryGetClassExtendingExpressionWithTypeArguments:()=>fV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>mV,tryGetDirectories:()=>P7,tryGetExtensionFromPath:()=>Eg,tryGetImportFromModuleSpecifier:()=>bk,tryGetJSDocSatisfiesTypeNode:()=>t4,tryGetModuleNameFromFile:()=>Aw,tryGetModuleSpecifierFromDeclaration:()=>gI,tryGetNativePerformanceHooks:()=>lZ,tryGetPropertyAccessOrIdentifierToString:()=>zk,tryGetPropertyNameOfBindingOrAssignmentElement:()=>L4,tryGetSourceMappingURL:()=>mae,tryGetTextOfPropertyName:()=>UN,tryParseJson:()=>Bk,tryParsePattern:()=>LI,tryParsePatterns:()=>ew,tryParseRawSourceMap:()=>hae,tryReadDirectory:()=>pJ,tryReadFile:()=>ZM,tryRemoveDirectoryPrefix:()=>kV,tryRemoveExtension:()=>Ire,tryRemovePrefix:()=>QB,tryRemoveSuffix:()=>ZQ,tscBuildOption:()=>N1,typeAcquisitionDeclarations:()=>B4,typeAliasNamePart:()=>ice,typeDirectiveIsEqualTo:()=>Cte,typeKeywords:()=>Hq,typeParameterNamePart:()=>oce,typeToDisplayParts:()=>RO,unchangedPollThresholds:()=>Y8,unchangedTextChangeRange:()=>lF,unescapeLeadingUnderscores:()=>Bi,unmangleScopedPackageName:()=>Vw,unorderedRemoveItem:()=>ZA,unprefixedNodeCoreModules:()=>Ure,unreachableCodeIsError:()=>dre,unsetNodeChildren:()=>kj,unusedLabelIsError:()=>ure,unwrapInnermostStatementOfLabel:()=>CG,unwrapParenthesizedExpression:()=>Vre,updateErrorForNoInputFiles:()=>Y4,updateLanguageServiceSourceFile:()=>sK,updateMissingFilePathsWatch:()=>pH,updateResolutionField:()=>WD,updateSharedExtendedConfigFileWatcher:()=>I3,updateSourceFile:()=>Kj,updateWatchingWildcardDirectories:()=>eO,usingSingleLineStringWriter:()=>jR,utf16EncodeAsString:()=>CN,validateLocaleAndSetLanguage:()=>F9,version:()=>Le,versionMajorMinor:()=>_e,visitArray:()=>sP,visitCommaListElements:()=>f3,visitEachChild:()=>wn,visitFunctionBody:()=>gf,visitIterationBody:()=>Wu,visitLexicalEnvironment:()=>zU,visitNode:()=>st,visitNodes:()=>Xn,visitParameterList:()=>Fl,walkUpBindingElementsAndPatterns:()=>JE,walkUpOuterExpressions:()=>qie,walkUpParenthesizedExpressions:()=>Bm,walkUpParenthesizedTypes:()=>Ik,walkUpParenthesizedTypesAndGetParentAndChild:()=>bne,whitespaceOrMapCommentRegExp:()=>GU,writeCommentRange:()=>sD,writeFile:()=>b6,writeFileEnsuringDirectories:()=>aV,zipWith:()=>Ji});var Uwe;function dst(){return Uwe??(Uwe=new ih(Le))}function Hwe(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?` ${Tg(o,[e])}`:"",s}function ust(e,t,r,i){const o=Hwe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function pst(e,t,r,i){let o=!1;return()=>{o||(C.log.warn(Hwe(e,!1,t,r,i)),o=!0)}}function fst(e,t={}){const r=typeof t.typeScriptVersion=="string"?new ih(t.typeScriptVersion):t.typeScriptVersion??dst(),i=typeof t.errorAfter=="string"?new ih(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new ih(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new ih(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,u=!o||r.compareTo(o)>=0;return l?ust(e,i,s,t.message):u?pst(e,i,s,t.message):gs}function mst(e,t){return function(){return e(),t.apply(this,arguments)}}function hst(e,t){const r=fst((t==null?void 0:t.name)??C.getFunctionName(e),t);return mst(r,e)}function bX(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)&&Rs(t,`${u}`)&&(t[u]=hst(t[u],{...i[u],name:e}))}const o=_st(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 _st(e,t){return r=>{for(let i=0;Rs(e,`${i}`)&&Rs(t,`${i}`);i++){const o=t[i];if(o(r))return i}}}function qwe(e){return{overload:t=>({bind:r=>({finish:()=>bX(e,t,r),deprecate:i=>({finish:()=>bX(e,t,r,i)})})})}}var Jwe={};x(Jwe,{ActionInvalidate:()=>e7,ActionPackageInstalled:()=>t7,ActionSet:()=>Z3,ActionWatchTypingLocations:()=>mO,Arguments:()=>yq,AutoImportProviderProject:()=>Nme,AuxiliaryProject:()=>Dme,CharRangeSection:()=>nhe,CloseFileWatcherEvent:()=>LX,CommandNames:()=>IOe,ConfigFileDiagEvent:()=>DX,ConfiguredProject:()=>Mme,ConfiguredProjectLoadKind:()=>Wme,CreateDirectoryWatcherEvent:()=>PX,CreateFileWatcherEvent:()=>MX,Errors:()=>Ty,EventBeginInstallTypes:()=>_q,EventEndInstallTypes:()=>gq,EventInitializationFailed:()=>hle,EventTypesRegistry:()=>hq,ExternalProject:()=>SX,GcTimer:()=>_me,InferredProject:()=>Rme,LargeFileReferencedEvent:()=>RX,LineIndex:()=>vW,LineLeaf:()=>Oz,LineNode:()=>bC,LogLevel:()=>sme,Msg:()=>lme,OpenFileInfoTelemetryEvent:()=>Pme,Project:()=>Rx,ProjectInfoTelemetryEvent:()=>NX,ProjectKind:()=>ZP,ProjectLanguageServiceStateEvent:()=>CX,ProjectLoadingFinishEvent:()=>xX,ProjectLoadingStartEvent:()=>IX,ProjectService:()=>qme,ProjectsUpdatedInBackgroundEvent:()=>Lz,ScriptInfo:()=>bme,ScriptVersionCache:()=>HX,Session:()=>LOe,TextStorage:()=>vme,ThrottledOperations:()=>hme,TypingsInstallerAdapter:()=>zOe,allFilesAreJsOrDts:()=>Ame,allRootFilesAreJsOrDts:()=>Eme,asNormalizedPath:()=>$we,convertCompilerOptions:()=>kz,convertFormatOptions:()=>gC,convertScriptKindName:()=>wX,convertTypeAcquisition:()=>kme,convertUserPreferences:()=>wme,convertWatchOptions:()=>gW,countEachFileTypes:()=>fW,createInstallTypingsRequest:()=>cme,createModuleSpecifierCache:()=>Xme,createNormalizedPathMap:()=>Qwe,createPackageJsonCache:()=>Yme,createSortedArray:()=>mme,emptyArray:()=>Kc,findArgument:()=>QIe,formatDiagnosticToProtocol:()=>yW,formatMessage:()=>$me,getBaseConfigFileName:()=>TX,getDetailWatchInfo:()=>zX,getLocationInNewDocument:()=>the,hasArgument:()=>$Ie,hasNoTypeScriptSource:()=>Ime,indent:()=>AP,isBackgroundProject:()=>hW,isConfigFile:()=>Jme,isConfiguredProject:()=>bv,isDynamicFileName:()=>QP,isExternalProject:()=>mW,isInferredProject:()=>_C,isInferredProjectName:()=>dme,isProjectDeferredClose:()=>_W,makeAutoImportProviderProjectName:()=>pme,makeAuxiliaryProjectName:()=>fme,makeInferredProjectName:()=>ume,maxFileSize:()=>AX,maxProgramSizeForNonTsFiles:()=>EX,normalizedPathToPath:()=>hC,nowString:()=>ZIe,nullCancellationToken:()=>SOe,nullTypingsInstaller:()=>wz,protocol:()=>gme,scriptInfoIsContainedByBackgroundProject:()=>Tme,scriptInfoIsContainedByDeferredClosedProject:()=>Sme,stringifyIndented:()=>u0,toEvent:()=>Qme,toNormalizedPath:()=>Cs,tryConvertScriptKindName:()=>kX,typingsInstaller:()=>ame,updateProjectIfDirty:()=>Im});var ame={};x(ame,{TypingsInstaller:()=>vst,getNpmCommandForInstallation:()=>Xwe,installNpmPackages:()=>yst,typingsName:()=>Ywe});var gst={isEnabled:()=>!1,writeLine:gs};function Kwe(e,t,r,i){try{const o=P1(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 yst(e,t,r,i){let o=!1;for(let s=r.length;s>0;){const l=Xwe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function Xwe(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 vst=class{constructor(e,t,r,i,o,s=gst){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:hq,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:mO,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${u0(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=Gb.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=AN(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}.`,g={kind:t7,projectName:i,id:s,success:u,message:d};this.sendResponse(g)});else{const u={kind:t7,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=Gb.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=Gb.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}':${u0(i)}`),this.log.writeLine(`Loaded content of '${r}':${u0(o)}`)),i.devDependencies&&(o.packages||o.dependencies))for(const s in i.devDependencies){if(o.packages&&!Rs(o.packages,`node_modules/${s}`)||o.dependencies&&!Rs(o.dependencies,s))continue;const l=Ic(s);if(!l)continue;const u=Kwe(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 g=o.packages&&h2(o.packages,`node_modules/${s}`)||h2(o.dependencies,s),h=g&&g.version;if(!h)continue;const y={typingLocation:u,version:new ih(h)};this.packageNameToTypingLocation.set(l,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return ji(e,t=>{const r=GD(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}const i=Gb.validatePackageName(t);if(i!==Gb.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(Gb.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)&&Gb.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:_q,eventId:s,typingsInstallerVersion:Le,projectName:e.projectName});const l=o.map(Ywe);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 g of o)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);const d=[];for(const g of o){const h=Kwe(t,g,this.installTypingHost,this.log);if(!h){this.missingTypingsSet.add(g);continue}const y=this.typesRegistry.get(g),E=new ih(y[`ts${_e}`]||y[this.latestDistTag]),A={typingLocation:h,version:E};this.packageNameToTypingLocation.set(g,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:gq,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:u,typingsInstallerVersion:Le};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||mg(i,o=>!r.has(o))||mg(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:mO,projectName:e,files:t})):this.sendResponse({kind:mO,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Z3}}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 Ywe(e){return`@types/${e}@ts${_e}`}var sme=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(sme||{}),Kc=mme(),lme=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(lme||{});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 Ty;(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})(Ty||(Ty={}));function Cs(e){return ya(e)}function hC(e,t,r){const i=Cp(e)?e:So(e,t);return r(i)}function $we(e){return e}function Qwe(){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 dme(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function ume(e){return`/dev/null/inferredProject${e}*`}function pme(e){return`/dev/null/autoImportProviderProject${e}*`}function fme(e){return`/dev/null/auxiliaryProject${e}*`}function mme(){return[]}var hme=class k7e{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(k7e.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()}},_me=class w7e{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(w7e.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 TX(e){const t=Ic(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}var gme={};x(gme,{ClassificationType:()=>Sq,CommandTypes:()=>yme,CompletionTriggerKind:()=>bq,IndentStyle:()=>nOe,JsxEmit:()=>rOe,ModuleKind:()=>iOe,ModuleResolutionKind:()=>oOe,NewLineKind:()=>aOe,OrganizeImportsMode:()=>vq,PollingWatchKind:()=>tOe,ScriptTarget:()=>sOe,SemicolonPreference:()=>Tq,WatchDirectoryKind:()=>eOe,WatchFileKind:()=>Zwe});var yme=(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))(yme||{}),Zwe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Zwe||{}),eOe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(eOe||{}),tOe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(tOe||{}),nOe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(nOe||{}),rOe=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(rOe||{}),iOe=(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))(iOe||{}),oOe=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(oOe||{}),aOe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(aOe||{}),sOe=(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))(sOe||{}),vme=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=fx(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===Dp.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||Dp).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=n7.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(!m1(this.info.fileName)){const o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>AX)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=HX.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=HX.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=iI(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 VU(this.text,t)}};function QP(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Ic(e)[0]==="^"||e.includes(":^")&&!e.includes(Js)}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=QP(t),this.textStorage=new vme(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||H6(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 Ln(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:mN(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){bv(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&&!_C(e)&&e.addMissingFileRoot(t.fileName)}hi(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Ty.ThrowNoProject();case 1:return _W(this.containingProjects[0])||hW(this.containingProjects[0])?Ty.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){bst(e);const t=this.textStorage.positionToLineOffset(e);return Tst(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Bo(this.sourceMapFilePath)&&(Kf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function bst(e){C.assert(typeof e=="number",`Expected position ${e} to be a number.`),C.assert(e>=0,"Expected position to be non-negative.")}function Tst(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 Tme(e){return vt(e.containingProjects,hW)}function Sme(e){return vt(e.containingProjects,_W)}var ZP=(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))(ZP||{});function fW(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:ad(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 Sst(e){const t=fW(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function Eme(e){const t=fW(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Ame(e){const t=fW(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Ime(e){return!e.some(t=>El(t,".ts")&&!ad(t)||El(t,".tsx"))}function xme(e){return e.generatedFilePath!==void 0}function lOe(e,t){if(e===t||(e||Kc).length===0&&(t||Kc).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 Est(e,t){return e.enable!==t.enable||!lOe(e.include,t.include)||!lOe(e.exclude,t.exclude)}function Ast(e,t){return xb(e)!==xb(t)}function Ist(e,t){return e===t?!1:!Qp(e,t)}var Rx=class O7e{constructor(t,r,i,o,s,l,u,d,g,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=Kc,this.moduleSpecifierCache=Xme(this),this.createHash=oa(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=Gb.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,i.logger.info(`Creating ${ZP[r]}Project: ${t}, currentDirectory: ${h}`),this.projectName=t,this.directoryStructureHost=g,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||xb(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=oz(),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=FH(this,this.currentDirectory,!0),this.languageService=nue(this,this.projectService.documentRegistry,this.projectService.serverMode),s&&this.disableLanguageService(s),this.markAsDirty(),hW(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(t){}isNonTsProject(){return Im(this),Ame(this)}isJsOnlyProject(){return Im(this),Sst(this)}static resolveModule(t,r,i,o){return O7e.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=Bd(i.resolvePath(Qr(u,"node_modules")));o(`Loading ${t.name} from ${u} (resolved to ${d})`);const g=i.require(d,t.name);if(!g.error){l=g.module;break}const h=g.error.stack||g.error.message||JSON.stringify(g.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 g;try{g=await i.importPlugin(d,t.name)}catch(y){g={module:void 0,error:y}}if(!g.error){l=g.module;break}const h=g.error.stack||g.error.message||JSON.stringify(g.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=LV(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 se;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Xr(t,this.typingFiles)||se}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,C2(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 ks(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),sd.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),sd.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),sd.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 Vn(this.projectErrors,t=>!t.file)||Kc}getAllProjectErrors(){return this.projectErrors||Kc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Im(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?(Im(this),this.builderState=_h.create(this.program,this.builderState,!0),ji(_h.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:Kc};const{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const l of s){const u=So(l.name,this.currentDirectory);r(u,l.text,l.writeByteOrderMark)}if(this.builderState&&_p(this.compilerOptions)){const l=s.filter(u=>ad(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):S2(l[0].text);_h.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 xp(Ki(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(),$e(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&&(hp(this.missingFilesMap,Gm),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&&Co(cm(this.rootFilesMap.values(),t=>{var r;return(r=t.info)==null?void 0:r.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Co(cm(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?Bt(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 Kc}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){const s=rue(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(){Im(this)}updateGraph(){var t,r;(t=xr)==null||t.push(xr.Phase.Session,"updateGraph",{name:this.projectName,kind:ZP[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const i=this.updateGraphWorker(),o=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const s=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Kc;for(const u of s)this.cachedUnresolvedImportsPerFile.delete(u);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((i||s.length)&&(this.lastCachedUnresolvedImportsList=xst(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===wz)return;const i=this.typingsCache;(t||!i||Est(r,i.typeAcquisition)||Ast(this.getCompilationSettings(),i.compilerOptions)||Ist(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?Kc:xp(o);H8(s,this.typingFiles,xR(!this.useCaseSensitiveFileNames()),gs,l=>this.detachScriptInfoFromProject(l))&&(this.typingFiles=s,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&hp(this.typingWatchers,Gm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:e7})}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"?sd.TypingInstallerLocationFile:sd.TypingInstallerLocationDirectory;this.typingWatchers.set(l,lO(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(!El(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(ey(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}:: ${zX(u,this)}`),XD))}};for(const o of t){const s=Ic(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(pm(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){const l=o.indexOf(Js,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(pm(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=t3(this.getCompilerOptions(),this);return Vn(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=Ls(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(Zg,Zg);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==null||R.detachFromProject(this))}),pH(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(h,y)=>this.addMissingFileWatcher(h,y)),this.generatedFilesMap){const h=this.compilerOptions.outFile;xme(this.generatedFilesMap)?(!h||!this.isValidGeneratedFileWatcher(Tu(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(h6(A.fileName,this.compilerOptions,this.program),y))&&(Kf(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&&mg(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||Kc;this.externalFiles=this.getExternalFiles(),H8(this.externalFiles,d,xR(!this.useCaseSensitiveFileNames()),h=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(h,this.currentDirectory,this.directoryStructureHost,!1);y==null||y.attachToProject(this)},h=>this.detachScriptInfoFromProject(h));const g=Ls()-o;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${d9[this.program.structureIsReused]}`:""} Elapsed: ${g}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(bv(this)){const s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s==null?void 0:s.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return XD}const o=this.projectService.watchFactory.watchFile(So(r,this.currentDirectory),(s,l)=>{bv(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),sd.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(xme(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),sd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(xme(this.generatedFilesMap)?Kf(this.generatedFilesMap):hp(this.generatedFilesMap,Kf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?Ty.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+=` `,jH(this.program,l=>s+=` ${l} `))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${ZP[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()),CF(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=>Co(d.entries(),([g,h])=>({fileName:g,isSourceOfProjectReferenceRedirect:h})):d=>Co(d.keys());this.initialLoadPending||Im(this);const l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:_C(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,g=((i=this.externalFiles)==null?void 0:i.map(N=>({fileName:Cs(N),isSourceOfProjectReferenceRedirect:!1})))||Kc,h=AR(this.getFileNamesWithRedirectInfo(!!r).concat(g),N=>N.fileName,N=>N.isSourceOfProjectReferenceRedirect),y=new Map,E=new Map,A=u?Co(u.keys()):[],R=[];return Hc(h,(N,P)=>{d.has(P)?r&&N!==d.get(P)&&R.push({fileName:P,isSourceOfProjectReferenceRedirect:N}):y.set(P,N)}),Hc(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),g=((o=this.externalFiles)==null?void 0:o.map(y=>({fileName:Cs(y),isSourceOfProjectReferenceRedirect:!1})))||Kc,h=d.concat(g);return this.lastReportedFileNames=AR(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:jwe}),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?Kc:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t,this)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Qr(this.currentDirectory,vP),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=SJ(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||MO(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(Im(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=Ls();if(this.autoImportProviderHost=Nme.create(o,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Im(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Ls()-s),(r=xr)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=xr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Hc(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 Dme(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,g=C.checkDefined((o=this.program)==null?void 0:o.getSourceFile(t),"Expected file to be part of program"),h=C.checkDefined(g.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:se,lib:se,noLib:!0}}};function xst(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=>gm(u.getName())),l=fN(Ki(o,u=>Rst(e,u,s,t)));return(i=xr)==null||i.pop(),l}function Rst(e,t,r,i){return KA(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!EM(s.extension))&&!td(l)&&!r.some(u=>u===l)&&(o=Un(o,o3(l).packageName))},t),o||Kc})}var Rme=class extends Rx{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=Gq(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(){$e(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Eme(this),include:se,exclude:se}}},Dme=class extends Rx{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(){}},Cme=class Hye extends Rx{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 se;const u=r.getCurrentProgram();if(!u)return se;const d=Ls();let g,h;const y=Qr(r.currentDirectory,vP),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(g){const G=r.getSymlinkCache();for(const j of Co(g.keys())){if(t===2&&A>=this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),se;const J=gU(j,r.currentDirectory,o,i,u.getModuleResolutionCache());if(J){const q=F(J,u,G);if(q){A+=P(q);continue}}if(!$e([r.currentDirectory,r.getGlobalTypingsCacheLocation()],q=>{if(q){const ye=gU(`@types/${j}`,q,o,i,u.getModuleResolutionCache());if(ye){const ie=F(ye,u,G);return A+=P(ie),!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!=null&&R.length&&r.projectService.getHostPreferences().includeCompletionsForModuleExports&&R.forEach(G=>{if(G!=null&&G.commandLine.options.outFile)N+=P(O([av(G.commandLine.options.outFile,".d.ts")]));else if(G){const j=Nu(()=>O1(G.commandLine,!r.useCaseSensitiveFileNames()));N+=P(O(ji(G.commandLine.fileNames,J=>!ad(J)&&!El(J,".json")&&!u.getSourceFile(J)?_P(J,G.commandLine,!r.useCaseSensitiveFileNames(),j):void 0)))}}),h!=null&&h.size&&r.log(`AutoImportProviderProject: found ${h.size} root files in ${A} dependencies ${N} referenced projects in ${Ls()-d} ms`),h?Co(h.values()):se;function P(G){return G!=null&&G.length?(h??(h=new Set),G.forEach(j=>h.add(j)),1):0}function k(G){fo(G,"@types/")||(g||(g=new Set)).add(G)}function F(G,j,J,Z){var q;const ye=EU(G,o,i,j.getModuleResolutionCache(),Z);if(ye){const ie=(q=i.realpath)==null?void 0:q.call(i,G.packageDirectory),K=ie?r.toPath(ie):void 0,pe=K&&K!==r.toPath(G.packageDirectory);return pe&&J.setSymlinkedDirectory(G.packageDirectory,{real:Uc(ie),realPath:Uc(K)}),O(ye,pe?de=>de.replace(G.packageDirectory,ie):void 0)}}function O(G,j){return ji(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 Hye(r,s,o)}isEmpty(){return!vt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Hye.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||se}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()}};Cme.maxDependencies=10,Cme.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:se,lib:se,noLib:!0};var Nme=Cme,Mme=class extends Rx{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=Cs(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(Cs(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 Vn(this.projectErrors,e=>!e.file)||Kc}getAllProjectErrors(){return this.projectErrors||Kc}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 nP(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,Y4(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,Fw(e.raw))}},SX=class extends Rx{constructor(e,t,r,i,o,s,l){super(e,2,t,!0,i,r,o,l,t.host,ci(s||Bd(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 _C(e){return e.projectKind===0}function bv(e){return e.projectKind===1}function mW(e){return e.projectKind===2}function hW(e){return e.projectKind===3||e.projectKind===4}function _W(e){return bv(e)&&!!e.deferredClose}var EX=20*1024*1024,AX=4*1024*1024,Lz="projectsUpdatedInBackground",IX="projectLoadingStart",xX="projectLoadingFinish",RX="largeFileReferenced",DX="configFileDiag",CX="projectLanguageServiceState",NX="projectInfo",Pme="openFileInfo",MX="createFileWatcher",PX="createDirectoryWatcher",LX="closeFileWatcher",cOe="*ensureProjectForOpenFiles*";function dOe(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 Dst=dOe(Hm),Cst=dOe(rx),Nst=new Map(Object.entries({none:0,block:1,smart:2})),Lme={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 gC(e){return Bo(e.indentStyle)&&(e.indentStyle=Nst.get(e.indentStyle.toLowerCase()),C.assert(e.indentStyle!==void 0)),e}function kz(e){return Dst.forEach((t,r)=>{const i=e[r];Bo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function gW(e,t){let r,i;return rx.forEach(o=>{const s=e[o.name];if(s===void 0)return;const l=Cst.get(o.name);(r||(r={}))[o.name]=l?Bo(s)?l.get(s.toLowerCase()):s:M1(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function kme(e){let t;return B4.forEach(r=>{const i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function kX(e){return Bo(e)?wX(e):e}function wX(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function wme(e){const{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}var OX={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){const i=nI(e);i&&vt(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>vt(t,r=>r.isMixedContent&&El(e,r.extension))},WX={getFileName:e=>e.fileName,getScriptKind:e=>kX(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function uOe(e,t){for(const r of t)if(r.getProjectName()===e)return r}var wz={isKnownTypesPackageName:Zg,installPackage:_a,enqueueInstallTypingsRequest:gs,attach:gs,onProjectClosed:gs,globalTypingsCacheLocation:void 0},Ome={close:gs};function pOe(e,t){if(!t)return;const r=t.get(e.path);if(r!==void 0)return FX(e)?r&&!Bo(r)?r.get(e.fileName):void 0:Bo(r)||!r?r:r.get(!1)}function fOe(e){return!!e.containingProjects}function FX(e){return!!e.configFileInfo}var Wme=(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))(Wme||{});function mOe(e){return e-1}function hOe(e,t,r,i,o,s,l,u,d){for(var g;;){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&&((g=t.parsedCommandLine)!=null&&g.options.composite)&&y.project.setPotentialProjectReference(t.canonicalConfigFilePath);const E=r(y);if(E)return E;t=y.project}}function _Oe(e,t,r,i,o,s,l,u){const d=t.options.disableReferencedProjectLoad?0:i;let g;return $e(t.projectReferences,h=>{var y;const E=Cs(cx(h)),A=e.projectService.toCanonicalFileName(E),R=u==null?void 0:u.get(A);if(R!==void 0&&R>=d)return;const N=e.projectService.configFileExistenceInfoCache.get(A);let P=d===0?N!=null&&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),(g??(g=[])).push(P)}})||$e(g,h=>h.projectReferences&&_Oe(e,h,r,d,o,s,l,u))}function Fme(e,t,r,i,o){let s=!1,l;switch(t){case 2:case 3:Vme(e)&&(l=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(l=Gme(e),l)break;case 5:s=Pst(e,r);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,i,o),l=Gme(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 gOe(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&mg(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&mg(e.resolvedChildConfigs,t)):void 0}function Mst(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?gOe(e,i):$e(e.getProjectReferences(),r)}function zme(e,t,r){const i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function yOe(e,t){return Mst(e,r=>zme(e,t,r.sourceFile.path),r=>zme(e,t,e.toPath(cx(r))),r=>zme(e,t,r))}function zX(e,t){return`${Bo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Bme(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Im(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function vOe(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 Pst(e,t){if(t){if(vOe(e,t,!1))return!0}else Im(e);return!1}function Gme(e){const t=Cs(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),Vme(e))return r}function Vme(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!fU(e.parsedCommandLine))}function Lst(e){return Vme(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function kst(e){return`Creating possible configured project for ${e.fileName} to open`}function BX(e){return`User requested reload projects: ${e}`}function jme(e){bv(e)&&(e.projectOptions=!0)}function Ume(e){let t=1;return()=>e(t++)}function Hme(){return{idToCallbacks:new Map,pathToId:new Map}}function bOe(e,t){return!!t&&!!e.eventHandler&&!!e.session}function wst(e,t){if(!bOe(e,t))return;const r=Hme(),i=Hme(),o=Hme();let s=1;return e.session.addProtocolHandler("watchChange",A=>(g(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:MX,data:{id:N,path:A}}))}function u(A,R,N){return d(N?o:i,A,R,P=>({eventName:PX,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 O=A.get(F);O||A.set(F,O=s++);let G=R.get(O);return G||(R.set(O,G=new Set),e.eventHandler(k(O))),G.add(P),{close(){const j=R.get(O);j!=null&&j.delete(P)&&(j.size||(R.delete(O),A.delete(F),e.eventHandler({eventName:LX,data:{id:O}})))}}}function g(A){Mo(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!=null&&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(O=>P(F,Bd(O)))})}}var TOe=class qye{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=Ume(ume),this.newAutoImportProviderProjectName=Ume(pme),this.newAuxiliaryProjectName=Ume(fme),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=Lme,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||wz,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Kc,this.pluginProbeLocations=t.pluginProbeLocations||Kc,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=dm()),this.currentDirectory=Cs(this.host.getCurrentDirectory()),this.toCanonicalFileName=Fd(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Uc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new hme(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:r7(this.host.newLine),preferences:Em,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=RJ(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=Yme(this),this.watchFactory=this.serverMode!==0?{watchFile:SP,watchDirectory:SP}:fH(wst(this,t.canUseWatchEvents)||this.host,i,o,zX),this.canUseWatchEvents=bOe(this,t.canUseWatchEvents),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return ks(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return So(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:CX,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)Rs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=Lme,this.legacySafelist.clear()}}updateTypingsForProject(t){const r=this.findProject(t.projectName);if(r)switch(t.kind){case Z3:r.updateTypingFiles(t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings);return;case e7: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(cOe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(_W(t)||(t.markAsDirty(),hW(t)))return;const r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&Im(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:Lz,data:{openFiles:Co(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;const i={eventName:RX,data:{file:t,fileSize:r,maxFileSize:AX}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:IX,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const r={eventName:xX,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=kz(t),o=gW(t,r),s=kme(t);i.allowNonTsExtensions=!0;const l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(const u of this.inferredProjects)(l?u.projectRootPath===l:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(s),u.setWatchOptions(o==null?void 0:o.watchOptions),u.setProjectErrors(o==null?void 0:o.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return dme(t)?uOe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Cs(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),Ty.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const r=i=>{t=Im(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==null?void 0: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)),sd.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(Ic(l)==="package.json"&&!MO(l)&&(u&&u.fileExists||!u&&this.host.fileExists(s))){const g=this.getNormalizedAbsolutePath(s);this.logger.info(`Config: ${r} Detected new package.json: ${g}`),this.packageJsonCache.addOrUpdate(g,l),this.watchPackageJsonFile(g,l,o)}u!=null&&u.fileExists||this.sendSourceFileChange(l);const d=this.findConfiguredProjectByProjectName(r);tO({watchedDirPath:this.toPath(t),fileOrDirectory:s,fileOrDirectoryPath:l,configFileName:r,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:i.parsedCommandLine.options,program:(d==null?void 0:d.getCurrentProgram())||i.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:g=>this.logger.info(g),toPath:g=>this.toPath(g),getScriptKind:d?g=>d.getScriptKind(g):void 0})||(i.updateLevel!==2&&(i.updateLevel=1),i.projects.forEach((g,h)=>{var y;if(!g)return;const E=this.getConfiguredProjectByCanonicalConfigFilePath(h);if(!E)return;if(d!==E&&this.getHostPreferences().includeCompletionsForModuleExports){const R=this.toPath(r);hn((y=E.getCurrentProgram())==null?void 0:y.getResolvedProjectReferences(),N=>(N==null?void 0: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!=null&&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,g;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&&hn((g=h.getCurrentProgram())==null?void 0:g.getResolvedProjectReferences(),E=>(E==null?void 0:E.sourceFile.path)===y)&&h.markAutoImportProviderAsDirty()}}),o}onConfigFileChanged(t,r,i){const o=this.configFileExistenceInfoCache.get(r),s=this.getConfiguredProjectByCanonicalConfigFilePath(r),l=s==null?void 0: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 g,h;const y=this.configFileForOpenFiles.get(d);if(!((g=o.openFilesImpactedByConfigFile)!=null&&g.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(Co(cm(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:ZA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:ZA(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(Cp(t.fileName)?t.fileName:So(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(mN(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&&$e(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(bv(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==null?void 0:l.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions,ci(t)),sd.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,uH(t,this.sharedExtendedConfigFileWatchers),C.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?l.inferredProjectRoots?lO(ci(t))||(l.watcher.close(),l.watcher=Ome):(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==null?void 0: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=lO(ci(r))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(i,r,l),2e3,this.hostConfiguration.watchOptions,sd.ConfigFileForInferredRoot):Ome)}))}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;C.assert(!fOe(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=()=>pm(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!l();let d=!0,g=!0;FX(t)&&(nl(t.fileName,"tsconfig.json")?d=!1:d=g=!1);do{const h=hC(s,this.currentDirectory,this.toCanonicalFileName);if(d){const E=Qr(s,"tsconfig.json");if(r(Qr(h,"tsconfig.json"),E))return E}if(g){const E=Qr(s,"jsconfig.json");if(r(Qr(h,"jsconfig.json"),E))return E}if(rF(h))break;const y=ci(s);if(y===s)break;s=y,d=g=!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=pOe(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return pOe(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,r){if(!this.openFiles.has(t.path))return;const i=r||!1;if(!FX(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(Kme),this.configuredProjects.forEach(Kme),this.inferredProjects.forEach(Kme),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!=null&&o.deferredClose?void 0:o}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return uOe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=EX;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(!m1(d)&&(l+=this.host.getFileSize(d),l>EX||l>s)){const g=i.map(h=>o.getFileName(h)).filter(h=>!m1(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: ${g.map(h=>`${h.name}:${h.size}`).join(", ")}`),d}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){const l=kz(i),u=gW(i,ci(Bd(t))),d=new SX(t,this,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,WX),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return d.setProjectErrors(u==null?void 0:u.errors),d.excludedFiles=s,this.addFilesToNonInferredProject(d,r,WX,o),this.externalProjects.push(d),d}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){jme(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){jme(t);return}const r=bv(t)?t.projectOptions:void 0;jme(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:fW(t.getScriptInfos(),!0),compilerOptions:Loe(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 SX?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:Le};this.eventHandler({eventName:NX,data:i});function o(){return bv(t)&&TX(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:A3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const l=new Mme(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=Cs(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 g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,d,u.fileNames,OX);g?(t.disableLanguageService(g),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,OX,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)||A3(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=ZM(t,N=>this.host.readFile(N)),h=Nw(t,Bo(g)?g:""),y=h.parseDiagnostics;Bo(g)||y.push(g);const E=ci(t),A=Ow(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&&!Y6(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),I3(r,A.options,this.sharedExtendedConfigFileWatchers,(N,P)=>this.watchFactory.watchFile(N,()=>{var k;x3(this.extendedConfigCache,P,O=>this.toPath(O));let F=!1;(k=this.sharedExtendedConfigFileWatchers.get(P))==null||k.projects.forEach(O=>{F=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(O,`Change in extended config file ${N} detected`)||F}),F&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,sd.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,eO(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;hp(i.watchedDirectories,Kf),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),!Hc(i.config.projects,Vs)&&(i.config.watchedDirectories&&(hp(i.config.watchedDirectories,Kf),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),g=Cs(d),h=QP(g);let y;if(!h&&!t.fileExists(d)){y=hC(g,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=g):s.set(y,{fileName:g})}else{const E=i.getScriptKind(u,this.hostConfiguration.extraFileExtensions),A=i.hasMixedContent(u,this.hostConfiguration.extraFileExtensions),R=C.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(g,t.currentDirectory,E,A,t.directoryStructureHost,!1));y=R.path;const N=s.get(y);!N||N.info!==R?(t.addRoot(R,g),R.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(R)):N.fileName=g}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)),OX),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=eP(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,OX)}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,BX(r)),!0)}setProjectForReload(t,r,i){r===2&&this.clearSemanticCache(t),t.pendingUpdateReason=i&&BX(i),t.pendingUpdateLevel=r}reloadConfiguredProject(t,r){t.initialLoadPending=!1,this.setProjectForReload(t,0),this.loadConfiguredProject(t,r),vOe(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:DX,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&&pm(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 Rme(this,o,s==null?void 0:s.watchOptions,i,t,l);return u.setProjectErrors(s==null?void 0:s.errors),r?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,r,i,o){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Cs(t),r,void 0,void 0,i,o)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Cs(t))}getScriptInfoOrConfig(t){const r=Cs(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=Co(cm(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&&$e(this.realpathToScriptInfos.get(o),i),$e(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?Hc(r,(l,u)=>u===o.path?!1:Ln(l,s))||r.add(o.path,s):(r=dm(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(C.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!fo(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,sd.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=z3(this.toPath(s));if(!u)return;const d=Ic(u);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(d==="package.json"||d==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(g=>{var h;(h=g.getModuleSpecifierCache())==null||h.clear()}),o.refreshScriptInfoRefCount)if(r===u)this.refreshScriptInfosInDirectory(r);else{const g=this.filenameToScriptInfo.get(u);g?Bme(g)&&this.refreshScriptInfo(g):NR(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,sd.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)||Dp).getTime()}refreshScriptInfo(t){const r=this.getModifiedTime(t);if(r!==t.mTime){const i=E9(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Js,this.filenameToScriptInfo.forEach(r=>{Bme(r)&&fo(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(Cp(t)||QP(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 g=hC(t,r,this.toCanonicalFileName);let h=this.filenameToScriptInfo.get(g);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=QP(t);if(C.assert(Cp(t)||y||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(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(!Cp(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:Co(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:Co(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,g,this.filenameToScriptInfoVersion.get(g)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!Cp(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!Cp(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(hC(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 g=this.getScriptInfoForPath(o.sourceMapFilePath);if(g&&(g.getSnapshot(),g.documentPositionMapper!==void 0))return g.sourceInfos=this.addSourceInfoToSourceMap(i,t,g.sourceInfos),g.documentPositionMapper?g.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=(g,h)=>{const y=this.getOrCreateScriptInfoNotOpenedByClient(g,t.currentDirectory,this.host,!0);if(s=y||h,!y||y.deferredDelete)return;const E=y.getSnapshot();return y.documentPositionMapper!==void 0?y.documentPositionMapper:fx(E)};const u=t.projectName,d=PJ({getCanonicalFileName:this.toCanonicalFileName,log:g=>this.logger.info(g),getSourceFileLike:g=>this.getSourceFileLike(g,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:So(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,sd.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(Cs(t.file));i&&(i.setOptions(gC(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,...gC(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=gW(t.watchOptions))==null?void 0:r.watchOptions,o=K4(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?K4(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=Nu(()=>this.host.fileExists(r.fileName)?r.deferredDelete?0:1:2);if(t){if(Bme(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(cOe),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);hn(s.containingProjects,mW)||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()&&_C(r)&&r.isRoot(t)&&$e(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==null||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(Im),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(Cs(t),r,i,!1,o?Cs(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:Cs(s),path:this.toPath(s)},d=this.getConfigFileNameForFile(u,!1);if(!d)return;let g=this.findConfiguredProjectByProjectName(d);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l!=null&&l.containingProjects.length?o:r;g=this.createConfiguredProject(d,`Creating project for original file: ${u.fileName}${r!==o?" for location: "+r.fileName:""}`)}const h=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(u,5,Fme(g,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=>{bv(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 hn(this.externalProjects,r=>(Im(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(Im),t.isOrphan()&&(s==null||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,g){let h=g??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=Lst(h);break;case 4:case 5:h??(h=this.createConfiguredProject(t,i)),u||({sentConfigFileDiag:y,configFileExistenceInfo:E}=Fme(h,r,s));break;case 6:if(h??(h=this.createConfiguredProject(t,BX(i))),h.projectService.reloadConfiguredProjectOptimized(h,i,l),E=Gme(h),E)break;case 7:h??(h=this.createConfiguredProject(t,BX(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=mOe(r),u=this.findCreateOrReloadConfiguredProject(s,l,kst(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(zV(i.fileName,r.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:o,validatedIncludeSpecs:s,validatedExcludeSpecs:l}=r.options.configFile.configFileSpecs,u=Cs(So(ci(t),this.currentDirectory));return o!=null&&o.some(d=>this.toPath(So(d,u))===i.path)?!0:!(s!=null&&s.length)||Q4(i.fileName,l,this.host.useCaseSensitiveFileNames,this.currentDirectory,u)?!1:s==null?void 0:s.some(d=>{const g=OV(d,u,"files");return!!g&&ov(`(${g})$`,this.host.useCaseSensitiveFileNames).test(i.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(t,r,i,o,s,l){const u=fOe(t),d=mOe(r),g=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:g,seenConfigs:h};function P(J){return O(J,J.project)??G(J.project)??j(J.project)}function k(J,Z,q,ye,ie,K){if(Z){if(g.has(Z))return;g.set(Z,d)}else{if(h!=null&&h.has(K))return;(h??(h=new Set)).add(K)}if(!ie.projectService.isMatchedByConfig(q,J.config.parsedCommandLine,t)){ie.languageServiceEnabled&&ie.projectService.watchWildcards(q,J,ie);return}const pe=Z?Fme(Z,r,t.fileName,ye,l):ie.projectService.findCreateOrReloadConfiguredProject(q,r,ye,s,t.fileName,l);if(!pe){C.assert(r===3);return}return g.set(pe.project,d),pe.sentConfigFileDiag&&y.add(pe.project),F(pe.project,ie)}function F(J,Z){if(g.get(J)===r)return;g.set(J,r);const q=u?t:J.projectService.getScriptInfo(t.fileName),ye=q&&J.containsScriptInfo(q);if(ye&&!J.isSourceOfProjectReferenceRedirect(q.path))return R=Z,E=J;!A&&u&&ye&&(N=Z,A=J)}function O(J,Z){return J.sentConfigFileDiag&&y.add(J.project),J.configFileExistenceInfo?k(J.configFileExistenceInfo,J.project,Cs(J.project.getConfigFilePath()),J.reason,J.project,J.project.canonicalConfigFilePath):F(J.project,Z)}function G(J){return J.parsedCommandLine&&_Oe(J,J.parsedCommandLine,k,d,o(J),s,l)}function j(J){return u?hOe(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:g}=l;return u&&hOe(t,d,h=>{g.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(cm(this.configuredProjects.entries(),([o,s])=>s.initialLoadPending?void 0:o)));const r=new Set,i=Co(this.configuredProjects.values());for(const o of i)gOe(o,s=>t.has(s))&&Im(o),this.ensureProjectChildren(o,t,r)}ensureProjectChildren(t,r,i){var o;if(!rh(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=nj(l.references,h=>r.has(h.sourceFile.path)?h:void 0);if(!u)continue;const d=Cs(l.sourceFile.fileName),g=this.findConfiguredProjectByProjectName(d)??this.createConfiguredProject(d,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Im(g),this.ensureProjectChildren(g,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)||Ln(r.config.parsedCommandLine.fileNames,t.fileName,this.host.useCaseSensitiveFileNames?fS:rb)||(s=r.config.watchedDirectories)==null||s.forEach((l,u)=>{pm(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(hC(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,...g}=this.assignProjectToOpenedScriptInfo(u);return this.cleanupProjectsAndScriptInfos(d,new Set([u.path]),void 0),this.telemetryOnOpenFile(u),this.printProjects(),g}getOrphanConfiguredProjects(t,r,i){const o=new Set(this.configuredProjects.values()),s=g=>{g.originalConfiguredProjects&&(bv(g)||!g.isOrphan())&&g.originalConfiguredProjects.forEach((h,y)=>{const E=this.getConfiguredProjectByCanonicalConfigFilePath(y);return E&&d(E)})};if(t==null||t.forEach((g,h)=>d(h)),!o.size||(this.inferredProjects.forEach(s),this.externalProjects.forEach(s),this.externalProjectToConfiguredProjectMap.forEach((g,h)=>{i!=null&&i.has(h)||g.forEach(d)}),!o.size)||(Hc(this.openFiles,(g,h)=>{if(r!=null&&r.has(h))return;const y=this.getScriptInfoForPath(h);if(hn(y.containingProjects,mW))return;const E=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(y,1);if(E!=null&&E.defaultProject&&(E==null||E.seenProjects.forEach((A,R)=>d(R)),!o.size))return o}),!o.size))return o;return Hc(this.configuredProjects,g=>{if(o.has(g)&&(u(g)||yOe(g,l))&&(d(g),!o.size))return o}),o;function l(g){return!o.has(g)||u(g)}function u(g){var h,y;return(g.deferredClose||g.projectService.hasPendingProjectUpdate(g))&&!!((y=(h=g.projectService.configFileExistenceInfoCache.get(g.canonicalConfigFilePath))==null?void 0:h.openFilesImpactedByConfigFile)!=null&&y.size)}function d(g){o.delete(g)&&(s(g),yOe(g,d))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.deferredDelete){if(!r.isScriptOpen()&&r.isOrphan()&&!Sme(r)&&!Tme(r)){if(!r.sourceMapFilePath)return;let i;if(Bo(r.sourceMapFilePath)){const o=this.filenameToScriptInfo.get(r.sourceMapFilePath);i=o==null?void 0:o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!mg(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!=null&&o.deferredDelete?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(o.fileName,r.path),sourceInfos:o.sourceInfos}:t.delete(r.sourceMapFilePath),i=o==null?void 0: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()||!ym(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:Pme,data:{info:{checkJs:o}}})}closeClientFile(t,r){const i=this.getScriptInfoForNormalizedPath(Cs(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=hn(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,cm(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(hC(Cs(d.fileName),d.projectRootPath?this.getNormalizedAbsolutePath(d.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const g=this.getOrCreateOpenScriptInfo(Cs(d.fileName),d.content,kX(d.scriptKind),d.hasMixedContent,d.projectRootPath?Cs(d.projectRootPath):void 0);(s||(s=[])).push(g)}if(r)for(const d of r){const g=this.getScriptInfo(d.fileName);C.assert(!!g),this.applyChangesToFile(g,d.changes)}if(i)for(const d of i)l=this.closeClientFile(d,!0)||l;let u;$e(o,(d,g)=>!d&&s[g]&&!s[g].isDynamic?this.tryInvokeWildCardDirectories(s[g]):void 0),s==null||s.forEach(d=>{var g;return(g=this.assignProjectToOpenedScriptInfo(d).retainProjects)==null?void 0:g.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()):Ze(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=Cs(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=Lme}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==null?void 0:i.excludedFiles)??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const o=i.include||(i.include=[]),s=[],l=r.map(y=>Bd(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])?qye.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=qye.escapeFilenameForRegex(A);s.includes(R)||s.push(R)}}}const u=s.map(y=>new RegExp(y,"i"));let d,g;for(let y=0;yE.test(l[y])))h(y);else{if(i.enable){const E=Ic(tb(l[y]));if(El(E,"js")){const A=Tu(E),R=YB(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==null||d.push(r[y])}return g?{rootFiles:d,excludedFiles:g}:void 0;function h(y){g||(C.assert(!d),d=r.slice(0,y),g=[]),g.push(l[y])}}openExternalProject(t,r){const i=this.findExternalProjectByProjectName(t.projectFileName);let o,s=[];for(const l of t.rootFiles){const u=Cs(l.fileName);if(TX(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=Ime(s.map(g=>g.fileName)));const u=this.applySafeListWorker(t,s,l),d=(u==null?void 0:u.excludedFiles)??[];if(s=(u==null?void 0:u.rootFiles)??s,i){i.excludedFiles=d;const g=kz(t.options),h=gW(t.options,i.getCurrentDirectory()),y=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,g,s,WX);y?i.disableLanguageService(y):i.enableLanguageService(),i.setProjectErrors(h==null?void 0:h.errors),this.updateRootAndOptionsOfNonInferredProject(i,s,WX,g,l,t.options.compileOnSave,h==null?void 0: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||td(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=Rx.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,Rx.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 $e(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=Co(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(Bt(t,async([i,o])=>{const s=await Promise.all(o);if(i.isClosed()||_W(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 g=Qr(d,"package.json");this.watchPackageJsonFile(g,this.toPath(g),r);const h=o.getInDirectory(d);h&&l.push(h)}if(s&&s===d)return!0};return F_(r,ci(t),u),l}getNearestAncestorDirectoryWithPackageJson(t,r){return F_(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,sd.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=Ost())}};TOe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var qme=TOe;function Ost(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Jme(e){return e.kind!==void 0}function Kme(e){e.print(!1,!1,!1)}function Xme(e){let t,r,i;const o={get(d,g,h,y){if(!(!r||i!==l(d,h,y)))return r.get(g)},set(d,g,h,y,E,A,R){if(s(d,h,y).set(g,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(Dg)+Dg.length-1),k=e.toPath(P);t!=null&&t.has(k)||(t||(t=new Map)).set(k,e.watchNodeModulesForPackageJsonChanges(P))}}},setModulePaths(d,g,h,y,E){const A=s(d,h,y),R=A.get(g);R?R.modulePaths=E:A.set(g,u(void 0,E,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(d,g,h,y,E,A){const R=s(d,h,y),N=R.get(g);N?(N.isBlockedByPackageJsonDependencies=A,N.packageName=E):R.set(g,u(void 0,void 0,void 0,E,A))},clear(){t==null||t.forEach(Gm),r==null||r.clear(),t==null||t.clear(),i=void 0},count(){return r?r.size:0}};return C.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(d,g,h){const y=l(d,g,h);return r&&i!==y&&o.clear(),i=y,r||(r=new Map)}function l(d,g,h){return`${d},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${h.overrideImportMode}`}function u(d,g,h,y,E){return{kind:d,modulePaths:g,moduleSpecifiers:h,packageName:y,isBlockedByPackageJsonDependencies:E}}}function Yme(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)=>{F_(u,l,d=>{const g=e.toPath(d);if(s(g)!==3)return!0;const h=Qr(d,"package.json");WP(e,h)?i(h,Qr(g,"package.json")):r.set(g,!0)})}};function i(l,u){const d=C.checkDefined(mJ(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 SOe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Wst(e){const t=e[0],r=e[1];return(1e9*t+r)/1e6}function EOe(e,t){if((_C(e)||mW(e))&&e.isJsOnlyProject()){const r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function Fst(e){return _p(e)||!!e.emitDecoratorMetadata}function AOe(e,t,r){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:s_(r.messageText,` `),code:r.code,category:UE(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:Bt(r.relatedInformation,GX)}}function GX(e){return e.file?{span:{start:yC(ca(e.file,e.start)),end:yC(ca(e.file,e.start+e.length)),file:e.file.fileName},message:s_(e.messageText,` `),category:UE(e),code:e.code}:{message:s_(e.messageText,` `),category:UE(e),code:e.code}}function yC(e){return{line:e.line+1,offset:e.character+1}}function yW(e,t){const r=e.file&&yC(ca(e.file,e.start)),i=e.file&&yC(ca(e.file,e.start+e.length)),o=s_(e.messageText,` `),{code:s,source:l}=e,u=UE(e),d={start:r,end:i,text:o,code:s,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:Bt(e.relatedInformation,GX)};return t?{...d,fileName:e.file&&e.file.fileName}:d}function zst(e,t){return e.every(r=>Dl(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 TN?(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 Qme(e,t){return{seq:0,type:"event",event:e,body:t}}function Gst(e,t,r,i){const o=ic(Mo(r)?r:r.projects,s=>i(s,e));return!Mo(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{const u=t(l);o.push(...Ki(s,d=>i(d,u)))}),dS(o,nb)}function VX(e){return HB(({textSpan:t})=>t.start+100003*t.length,tJ(e))}function Vst(e,t,r,i,o,s,l){const u=Zme(e,t,r,xOe(t,r,!0),COe,(h,y)=>h.getLanguageService().findRenameLocations(y.fileName,y.pos,i,o,s),(h,y)=>y(eL(h)));if(Mo(u))return u;const d=[],g=VX(l);return u.forEach((h,y)=>{for(const E of h)!g.has(E)&&!jX(eL(E),y)&&(d.push(E),g.add(E))}),d}function xOe(e,t,r){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Ac(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function jst(e,t,r,i,o){var s,l;const u=Zme(e,t,r,xOe(t,r,!1),COe,(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(eL(y.definition));for(const A of y.references)E(eL(A))});if(Mo(u))return u;const d=u.get(t);if(((l=(s=d==null?void 0: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=VX(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 g=[],h=VX(i);return u.forEach((y,E)=>{for(const A of y){const R=jX(eL(A.definition),E),N=R===void 0?A.definition:{...A.definition,textSpan:Id(R.pos,A.definition.textSpan.length),fileName:R.fileName,contextSpan:Hst(A.definition,E)};let P=hn(g,k=>eJ(k.definition,N,i));P||(P={definition:N,references:[]},g.push(P));for(const k of A.references)!h.has(k)&&!jX(eL(k),E)&&(h.add(k),P.references.push(k))}}),g.filter(y=>y.references.length!==0)}function ROe(e,t,r){for(const i of Mo(e)?e:e.projects)r(i,t);!Mo(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(const s of i)r(s,o)})}function Zme(e,t,r,i,o,s,l){const u=new Map,d=g2();d.enqueue({project:t,location:r}),ROe(e,r.fileName,(N,P)=>{const k={fileName:P,pos:r.pos};d.enqueue({project:N,location:k})});const g=t.projectService,h=t.getCancellationToken(),y=Nu(()=>t.isSourceOfProjectReferenceRedirect(i.fileName)?i:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(i)),E=Nu(()=>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)||NOe(N,P)||(Im(N),!N.containsFile(Cs(P.fileName))))continue;const k=R(N,P);u.set(N,k??Kc),A.add(Ust(N))}i&&(g.loadAncestorProjectTree(A),g.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 zB(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,O=>{const G=g.getOriginalLocationEnsuringConfiguredProject(N,O);if(!G)return;const j=g.getScriptInfo(G.fileName);for(const Z of j.containingProjects)!Z.isOrphan()&&!u.has(Z)&&d.enqueue({project:Z,location:G});const J=g.getSymlinkedProjects(j);J&&J.forEach((Z,q)=>{for(const ye of Z)!ye.isOrphan()&&!u.has(ye)&&d.enqueue({project:ye,location:{fileName:q,pos:G.pos}})})});return k}}function DOe(e,t){if(t.containsFile(Cs(e.fileName))&&!NOe(t,e))return e}function COe(e,t,r,i){const o=DOe(e,t);if(o)return o;const s=r();if(s&&t.containsFile(Cs(s.fileName)))return s;const l=i();return l&&t.containsFile(Cs(l.fileName))?l:void 0}function NOe(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 Ust(e){return bv(e)?e.canonicalConfigFilePath:e.getProjectName()}function eL({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function jX(e,t){return MP(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function MOe(e,t){return x7(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function Hst(e,t){return rJ(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}var POe=["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"],qst=[...POe,"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"],LOe=class Z${constructor(t){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{const s={version:Le};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=Bt(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&&La(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&La(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:cm(WB(l.textChanges),u=>{const d=C.checkDefined(this.projectService.getScriptInfo(l.fileName)),g=d.lineOffsetToPosition(u.start.line,u.start.offset),h=d.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:h-g},newText:u.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&La(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:WB(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(Cs(s.arguments.file),s.arguments.fileContent,wX(s.arguments.scriptKindName),s.arguments.projectRootPath?Cs(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||wz,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 Bst(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 qme(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new _me(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:POe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:qst.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&&kOe(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 Lz:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case IX:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case xX:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case RX:case MX:case PX:case LX:this.event(t.data,t.eventName);break;case DX:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Bt(t.data.diagnostics,r=>yW(r,!0))},t.eventName);break;case CX:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case NX:{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},Lz))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`: `+AP(t.message),t.stack&&(o+=` `+AP(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=fx(u.getSnapshot());o+=` File text of ${i.file}:${AP(d)} `}}catch{}if(t.ProgramFiles){o+=` Program files: ${JSON.stringify(t.ProgramFiles)} `,o+=` Projects:: `;let s=0;const l=u=>{o+=` Project '${u.projectName}' (${ZP[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: ${u0(t)}`);return}this.writeMessage(t)}writeMessage(t){const r=$me(t,this.logger,this.byteLength,this.host.newLine);this.host.write(r)}event(t,r){this.send(Qme(r,t))}doOutput(t,r,i,o,s,l){const u={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:s&&kOe(s)};if(o){let d;if(Mo(t))u.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:g,...h}=t;u.body=h,d=g}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=Ls();(i=xr)==null||i.push(xr.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});const l=EOe(r,t)?Kc: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=Ls();(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=Ls();(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=Ls();(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=Ls()-s,g={file:t,diagnostics:i.map(h=>AOe(t,r,h)),spans:l==null?void 0:l.map(h=>p_(h,u))};this.event(g,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)},g=(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(Im(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",()=>g(A,R))});t.immediate("semanticCheck",()=>g(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",Co(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=Cs(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=Vn(lo(o,s),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):Bt(l,u=>yW(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:s_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:UE(r),code:r.code,source:r.source,startLocation:r.file&&yC(ca(r.file,r.start)),endLocation:r.file&&yC(ca(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:Bt(r.relatedInformation,GX)}))}getCompilerOptionsDiagnostics(t){const r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Vn(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:s_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:UE(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:Bt(i.relatedInformation,GX)}))}getDiagnosticsWorker(t,r,i,o){const{project:s,file:l}=this.getFileAndProject(t);if(r&&EOe(s,l))return Kc;const u=s.getScriptInfoForNormalizedPath(l),d=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(d,u):d.map(g=>AOe(l,s,g))}getDefinition(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||Kc,o);return r?this.mapDefinitionInfo(l,o):l.map(Z$.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{const o=MOe(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:Kc,textSpan:void 0};const d=this.mapDefinitionInfoLocations(u.definitions,o),{textSpan:g}=u;return r?{definitions:this.mapDefinitionInfo(d,o),textSpan:p_(g,l)}:{definitions:d.map(Z$.mapToOriginalLocation),textSpan:g}}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||Kc,o).slice();if(this.projectService.serverMode===0&&(!vt(u,A=>Cs(A.fileName)!==i&&!A.isAmbient)||vt(u,A=>!!A.failedAliasResolution))){const A=HB(k=>k.textSpan.start,tJ(this.host.useCaseSensitiveFileNames));u==null||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=>Cs(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 O of F)A.add(O);continue}}A.add(k)}else{const k=u.filter(F=>Cs(F.fileName)!==i&&F.isAmbient);for(const F of vt(k)?k:h()){const O=g(F.fileName,i,R);if(!O)continue;const G=this.projectService.getOrCreateScriptInfoNotOpenedByClient(O,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(O));for(const Z of E(F.name,J,j))A.add(Z)}}u=Co(A.values())}return u=u.filter(A=>!A.isAmbient&&!A.failedAliasResolution),this.mapDefinitionInfo(u,o);function g(A,R,N){var P,k,F;const O=Z6(A);if(O&&A.lastIndexOf(Dg)===O.topLevelNodeModulesIndex){const G=A.substring(0,O.packageRootIndex),j=(P=o.getModuleResolutionCache())==null?void 0:P.getPackageJsonInfoCache(),J=o.getCompilationSettings(),Z=oP(So(G,o.getCurrentDirectory()),iP(j,o,J));if(!Z)return;const q=EU(Z,{moduleResolution:2},o,o.getModuleResolutionCache()),ye=A.substring(O.topLevelPackageNameIndex+1,O.packageRootIndex),ie=aP(Vw(ye)),K=o.toPath(A);if(q&&vt(q,pe=>o.toPath(pe)===K))return(k=N.resolutionCache.resolveSingleModuleNameWithoutWatching(ie,R).resolvedModule)==null?void 0:k.resolvedFileName;{const pe=A.substring(O.packageRootIndex+1),de=`${ie}/${Tu(pe)}`;return(F=N.resolutionCache.resolveSingleModuleNameWithoutWatching(de,R).resolvedModule)==null?void 0:F.resolvedFileName}}}function h(){const A=o.getLanguageService(),R=A.getProgram(),N=ip(R.getSourceFile(i),s);return(ds(N)||He(N))&&Ks(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(O=>Cs(O.fileName)!==i&&O.isAmbient).map(O=>({fileName:O.fileName,name:zf(N)}));if(vt(F))return F})||Kc}function y(A,R,N){var P;const k=N.getSourceFile(A.fileName);if(!k)return;const F=ip(R.getSourceFile(i),s),O=R.getTypeChecker().getSymbolAtLocation(F),G=O&&ll(O,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=Ys.Core.getTopMostDeclarationNamesInFile(A,R);return ji(P,k=>{const F=N.getTypeChecker().getSymbolAtLocation(k),O=nM(k);if(F&&O)return fC.createDefinitionInfo(O,N.getTypeChecker(),F,O,!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=>yW(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,Dl(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)||Kc,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{const o=MOe(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)||Kc,o);return r?l.map(({fileName:u,textSpan:d,contextSpan:g})=>this.toFileSpanWithContext(u,d,g,o)):l.map(Z$.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:r}=this.getConfigFileAndProject(t);return r?Kc: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?Kc: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 Kst(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 g=o.getScriptInfo(u);return{file:u,highlightSpans:d.map(({textSpan:h,kind:y,contextSpan:E})=>({...ehe(h,E,g),kind:y}))}}):l:Kc}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==null?void 0:d.map(({text:g,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:g,span:{start:E.positionToLineOffset(h.start),end:E.positionToLineOffset(h.start+h.length),file:y}}}else return{text:g}})}})}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}})),g=l.mapCode(s,t.mapping.contents,d,i,o);return this.mapTextChangesToCodeEdits(g)}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 Im(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(Cs(d.getConfigFilePath())):(l??(l=[])).push(Cs(d.getConfigFilePath())))}),(r=o.seenConfigs)==null||r.forEach(u=>(s??(s=[])).push(u)),{notMatchedByConfig:s,notInProject:l,defaultProject:o.defaultProject&&Cs(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?Kc:(this.projectService.logErrorForScriptInfoNotFound(t.file),Ty.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=Vn(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),Ty.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 Ty.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){const i=Cs(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 g=Vst(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return r?{info:d,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,r){if(t.canRename){const{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:g}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:u,kindModifiers:d,triggerSpan:p_(g,r)}}else return t}toSpanGroups(t){const r=new Map;for(const{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:u,originalFileName:d,...g}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({...ehe(o,s,y),...g})}return Co(r.values())}getReferences(t,r){const i=Cs(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=jst(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),g=d.getScriptInfoForNormalizedPath(i),h=d.getLanguageService().getQuickInfoAtPosition(i,s),y=h?VO(h.displayParts):"",E=h&&h.textSpan,A=E?g.positionToLineOffset(E.start).offset:0,R=E?g.getSnapshot().getText(E.start,Dl(E)):"";return{refs:Ki(l,P=>P.references.map(k=>OOe(this.projectService,k,u))),symbolName:R,symbolStartOffset:A,symbolDisplayString:y}}getFileReferences(t,r){const i=this.getProjects(t),o=Cs(t.file),s=this.getPreferences(o),l={fileName:o,pos:0},u=Zme(i,this.getDefaultProject(t),l,l,DOe,h=>(this.logger.info(`Finding references to file ${o} in project ${h.getProjectName()}`),h.getLanguageService().getFileReferences(o)));let d;if(Mo(u))d=u;else{d=[];const h=VX(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=>OOe(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=Cs(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:p_(u.textSpan,l),hintSpan:p_(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?gC(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 g=VO(u.displayParts);return{kind:u.kind,kindModifiers:u.kindModifiers,start:s.positionToLineOffset(u.textSpan.start),end:s.positionToLineOffset(Dl(u.textSpan)),displayString:g,documentation:d?this.mapDisplayParts(u.documentation,o):VO(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?gC(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?gC(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){const{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?gC(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||zst(u,s))){const{lineText:d,absolutePosition:g}=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(Dl(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,{...wme(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||"",g=ji(u.entries,y=>{if(u.isMemberCompletion||fo(y.name.toLowerCase(),d.toLowerCase())){const E=y.replacementSpan?p_(y.replacementSpan,s):void 0;return{...y,replacementSpan:E,hasAction:y.hasAction||void 0,symbol:void 0}}});return r==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&p_(u.optionalReplacementSpan,s),entries:g}}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,g=ji(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?ha(A,Zst):void 0)});return r?d?g:g.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)})):g.map(h=>({...h,codeActions:Bt(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?Gst(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const l=o.getCompilationSettings();if(!(l.noEmit||ad(s.fileName)&&!Fst(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!l.outFile}}):Kc}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||Ty.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(u,d,g)=>this.host.writeFile(u,d,g));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(u=>yW(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 g=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(g.start),end:s.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,o,d)}}else return d||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,o,!1)}))}}toPendingErrorCheck(t){const r=Cs(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,F8({span:{start:i,length:o-i},newText:t.insertString})))}reload(t){const r=Cs(t.file),i=t.tmpfile===void 0?void 0:Cs(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 Bt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>p_(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=>p_(i,r)),nameSpan:t.nameSpan&&p_(t.nameSpan,r),childItems:Bt(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?Ki(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(Dl(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})):Ki(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=>g(E));else{const E=this.getProjects(t);ROe(E,void 0,A=>g(A))}return u;function g(E){const A=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),R=Vn(A,N=>h(N)&&!jX(eL(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 aK();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||Ty.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:yC({line:u.range.start.line,character:u.range.start.offset}),end:yC({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:g}=l;let h;if(u!==void 0&&d!==void 0){const y=o.getScriptInfoForNormalizedPath(Cs(u));h=the(fx(y.getSnapshot()),u,d,g)}return{renameLocation:h,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),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(QP(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(Cs(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=Cs(t.oldFilePath),o=Cs(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),u=new Set,d=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{const h=g.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(g=>this.mapTextChangeToCodeEdit(g)):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(g){const h=g instanceof Error?g:new Error(g),y=o.getLanguageService(),E=[...y.getSyntacticDiagnostics(i),...y.getSemanticDiagnostics(i),...y.getSuggestionDiagnostics(i)].filter(R=>P2(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(g=>this.mapCodeFixAction(g)):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 QA(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=>Jst(i,r))}:Yst(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=>p_(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=[],g=[],h=[],y=Cs(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):ad(N)?h.push(N):g.push(N);const R=[...u,...d,...g,...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 Bt(i,u=>{const d=this.getPosition(u,l),g=s.getSmartSelectionRange(o,d);return r?this.mapSelectionRange(g,l):g})}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(g=>this.convertTextChangeToCodeEdit(g,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(g=>this.convertTextChangeToCodeEdit(g,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(g=>this.convertTextChangeToCodeEdit(g,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(g=>this.convertTextChangeToCodeEdit(g,d))}return u}mapSelectionRange(t,r){const i={textSpan:p_(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=Cs(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),Ty.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:p_(t.span,r),selectionSpan:p_(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>p_(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>p_(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&&_J(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:tb(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:${u0(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 g;const h=this.performanceData;this.logger.hasLevel(2)&&(g=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${AP(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=Wst(this.hrtime(g)).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 TN){(u=xr)==null||u.instant(xr.Phase.Session,"commandCanceled",{seq:y==null?void 0:y.seq,command:y==null?void 0: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==null?void 0:y.seq,command:y==null?void 0: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 kOe(e){const t=e.diagnosticsDuration&&Co(e.diagnosticsDuration,([r,i])=>({...i,file:r}));return{...e,diagnosticsDuration:t}}function p_(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Dl(e))}}function ehe(e,t,r){const i=p_(e,r),o=t&&p_(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function Jst(e,t){return{start:wOe(t,e.span.start),end:wOe(t,Dl(e.span)),newText:e.newText}}function wOe(e,t){return Jme(e)?Xst(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Kst(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 Xst(e){return{line:e.line+1,offset:e.character+1}}function Yst(e){C.assert(e.textChanges.length===1);const t=$a(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=$st(e,t,i),{line:s,character:l}=LR(iI(o),r);return{line:s+1,offset:l+1}}function $st(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 OOe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){const u=C.checkDefined(e.getScriptInfo(t)),d=ehe(r,i,u),g=l?void 0:Qst(u,d);return{file:t,...d,lineText:g,isWriteAccess:o,isDefinition:s}}function Qst(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Dl(r)).replace(/\r|\n/g,"")}function Zst(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 vC=4,nhe=(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))(nhe||{}),elt=class{constructor(){this.goSubtree=!0,this.lineIndex=new vW,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new bC,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=vW.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[g];u=y.insertAt(d,u),g--,d=y}let h=u.length;for(;h>0;){const y=new bC;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 Oz(""):new bC}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)}},tlt=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return L2(Id(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},UX=class VA{constructor(){this.changes=[],this.versions=new Array(VA.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%VA.maxVersions}currentVersionToIndex(){return this.currentVersion%VA.maxVersions}edit(t,r,i){this.changes.push(new tlt(t,r,i)),(this.changes.length>VA.changeNumberThreshold||r>VA.changeLengthThreshold||i&&i.length>VA.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 WOe(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=VA.maxVersions&&(this.minVersion=this.currentVersion-VA.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 Id(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 Fee(i)}else return;else return lF}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new VA,i=new WOe(0,r,new vW);r.versions[r.currentVersion]=i;const o=vW.linesFromText(t);return i.index.load(o.lines),r}};UX.changeNumberThreshold=8,UX.changeLengthThreshold=256,UX.maxVersions=8;var HX=UX,WOe=class W7e{constructor(t,r,i,o=Kc){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 W7e&&this.cache===t.cache)return this.version<=t.version?lF:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},vW=class Jye{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(Jye.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 elt;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:g}=this.positionToColumnAndLineText(u);d===0&&(r+=g.length,i=i?i+g:g)}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}}},bC=class Kye{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{(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:${u0(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 mO: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:${u0(t)}`),this.installer.send(t)},F7e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};FOe.requestDelayMillis=100;var zOe=FOe,BOe={};x(BOe,{ActionInvalidate:()=>e7,ActionPackageInstalled:()=>t7,ActionSet:()=>Z3,ActionWatchTypingLocations:()=>mO,Arguments:()=>yq,AutoImportProviderProject:()=>Nme,AuxiliaryProject:()=>Dme,CharRangeSection:()=>nhe,CloseFileWatcherEvent:()=>LX,CommandNames:()=>IOe,ConfigFileDiagEvent:()=>DX,ConfiguredProject:()=>Mme,ConfiguredProjectLoadKind:()=>Wme,CreateDirectoryWatcherEvent:()=>PX,CreateFileWatcherEvent:()=>MX,Errors:()=>Ty,EventBeginInstallTypes:()=>_q,EventEndInstallTypes:()=>gq,EventInitializationFailed:()=>hle,EventTypesRegistry:()=>hq,ExternalProject:()=>SX,GcTimer:()=>_me,InferredProject:()=>Rme,LargeFileReferencedEvent:()=>RX,LineIndex:()=>vW,LineLeaf:()=>Oz,LineNode:()=>bC,LogLevel:()=>sme,Msg:()=>lme,OpenFileInfoTelemetryEvent:()=>Pme,Project:()=>Rx,ProjectInfoTelemetryEvent:()=>NX,ProjectKind:()=>ZP,ProjectLanguageServiceStateEvent:()=>CX,ProjectLoadingFinishEvent:()=>xX,ProjectLoadingStartEvent:()=>IX,ProjectService:()=>qme,ProjectsUpdatedInBackgroundEvent:()=>Lz,ScriptInfo:()=>bme,ScriptVersionCache:()=>HX,Session:()=>LOe,TextStorage:()=>vme,ThrottledOperations:()=>hme,TypingsInstallerAdapter:()=>zOe,allFilesAreJsOrDts:()=>Ame,allRootFilesAreJsOrDts:()=>Eme,asNormalizedPath:()=>$we,convertCompilerOptions:()=>kz,convertFormatOptions:()=>gC,convertScriptKindName:()=>wX,convertTypeAcquisition:()=>kme,convertUserPreferences:()=>wme,convertWatchOptions:()=>gW,countEachFileTypes:()=>fW,createInstallTypingsRequest:()=>cme,createModuleSpecifierCache:()=>Xme,createNormalizedPathMap:()=>Qwe,createPackageJsonCache:()=>Yme,createSortedArray:()=>mme,emptyArray:()=>Kc,findArgument:()=>QIe,formatDiagnosticToProtocol:()=>yW,formatMessage:()=>$me,getBaseConfigFileName:()=>TX,getDetailWatchInfo:()=>zX,getLocationInNewDocument:()=>the,hasArgument:()=>$Ie,hasNoTypeScriptSource:()=>Ime,indent:()=>AP,isBackgroundProject:()=>hW,isConfigFile:()=>Jme,isConfiguredProject:()=>bv,isDynamicFileName:()=>QP,isExternalProject:()=>mW,isInferredProject:()=>_C,isInferredProjectName:()=>dme,isProjectDeferredClose:()=>_W,makeAutoImportProviderProjectName:()=>pme,makeAuxiliaryProjectName:()=>fme,makeInferredProjectName:()=>ume,maxFileSize:()=>AX,maxProgramSizeForNonTsFiles:()=>EX,normalizedPathToPath:()=>hC,nowString:()=>ZIe,nullCancellationToken:()=>SOe,nullTypingsInstaller:()=>wz,protocol:()=>gme,scriptInfoIsContainedByBackgroundProject:()=>Tme,scriptInfoIsContainedByDeferredClosedProject:()=>Sme,stringifyIndented:()=>u0,toEvent:()=>Qme,toNormalizedPath:()=>Cs,tryConvertScriptKindName:()=>kX,typingsInstaller:()=>ame,updateProjectIfDirty:()=>Im}),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 xT},set exports(_){xT=_}});var RBe=xT.createClassifier,sTe=xT.createLanguageService,DBe=xT.displayPartsToString,CBe=xT.EndOfLineState,NBe=xT.flattenDiagnosticMessageText,MBe=xT.IndentStyle,dN=xT.ScriptKind,PBe=xT.ScriptTarget,LBe=xT.TokenClass,lTe=xT,kBe=Object.freeze({__proto__:null,EndOfLineState:CBe,IndentStyle:MBe,ScriptKind:dN,ScriptTarget:PBe,TokenClass:LBe,createClassifier:RBe,createLanguageService:sTe,displayPartsToString:DBe,flattenDiagnosticMessageText:NBe,typescript:lTe});const Vi={};Vi["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. ***************************************************************************** */ /// /// /// /// /// `,Vi["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; } `,Vi["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; `,Vi["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; } `,Vi["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 \`