????

Your IP : 3.144.232.164


Current Path : C:/Program Files/Azure Data Studio/resources/app/out/vs/platform/files/node/watcher/
Upload File :
Current File : C:/Program Files/Azure Data Studio/resources/app/out/vs/platform/files/node/watcher/watcherMain.js

/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/(function(){var ge=["require","exports","vs/base/common/platform","vs/base/common/path","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/errors","vs/base/common/strings","vs/base/common/types","vs/base/common/uri","vs/base/common/async","vs/base/common/cancellation","vs/base/common/arrays","vs/base/common/extpath","vs/base/common/buffer","vs/base/common/normalization","vs/base/common/glob","vs/base/node/pfs","fs","vs/base/parts/ipc/common/ipc","vs/base/common/functional","vs/base/common/lazy","vs/base/common/map","vs/base/common/ternarySearchTree","vs/base/parts/sandbox/node/electronTypes","vs/nls","vs/nls!vs/platform/files/node/watcher/watcherMain","vs/base/common/process","vs/base/common/processes","vs/base/common/network","vs/base/common/resources","vs/base/node/extpath","vs/platform/files/common/watcher","vs/platform/files/node/watcher/nodejs/nodejsWatcherLib","vs/base/common/decorators","vs/base/common/iterator","vs/base/common/linkedList","vs/base/common/stopwatch","vs/base/common/cache","vs/base/common/stream","vs/base/common/symbols","vs/base/common/objects","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/common/platform","vs/base/common/console","vs/base/common/marshalling","os","vs/base/node/processes","vs/base/parts/ipc/node/ipc.cp","vs/base/parts/ipc/node/ipc.mp","vs/nls!vs/platform/files/common/files","vs/platform/instantiation/common/instantiation","vs/platform/files/common/files","vs/platform/files/node/watcher/nodejs/nodejsWatcher","vs/platform/files/node/watcher/parcel/parcelWatcher","vs/platform/files/node/watcher/watcher","util","child_process","@parcel/watcher","vs/platform/files/node/watcher/watcherMain"],we=function(fe){for(var e=[],R=0,U=fe.length;R<U;R++)e[R]=ge[fe[R]];return e};define(ge[34],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=void 0;function R(H){return(k,S,_)=>{let F=null,M=null;if(typeof _.value=="function"?(F="value",M=_.value):typeof _.get=="function"&&(F="get",M=_.get),!M)throw new Error("not supported");_[F]=H(M,S)}}function U(H,k,S){let _=null,F=null;if(typeof S.value=="function"?(_="value",F=S.value,F.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof S.get=="function"&&(_="get",F=S.get),!F)throw new Error("not supported");const M=`$memoize$${k}`;S[_]=function(...N){return this.hasOwnProperty(M)||Object.defineProperty(this,M,{configurable:!1,enumerable:!1,writable:!1,value:F.apply(this,N)}),this[M]}}e.memoize=U;function W(H,k,S){return R((_,F)=>{const M=`$debounce$${F}`,N=`$debounce$result$${F}`;return function(...m){this[N]||(this[N]=S?S():void 0),clearTimeout(this[M]),k&&(this[N]=k(this[N],...m),m=[this[N]]),this[M]=setTimeout(()=>{_.apply(this,m),this[N]=S?S():void 0},H)}})}e.debounce=W;function $(H,k,S){return R((_,F)=>{const M=`$throttle$timer$${F}`,N=`$throttle$result$${F}`,m=`$throttle$lastRun$${F}`,d=`$throttle$pending$${F}`;return function(...D){if(this[N]||(this[N]=S?S():void 0),(this[m]===null||this[m]===void 0)&&(this[m]=-Number.MAX_VALUE),k&&(this[N]=k(this[N],...D)),this[d])return;const n=this[m]+H;n<=Date.now()?(this[m]=Date.now(),_.apply(this,[this[N]]),this[N]=S?S():void 0):(this[d]=!0,this[M]=setTimeout(()=>{this[d]=!1,this[m]=Date.now(),_.apply(this,[this[N]]),this[N]=S?S():void 0},n-Date.now()))}})}e.throttle=$}),define(ge[6],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BugIndicatingError=e.ErrorNoTelemetry=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isCancellationError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.isSigPipeError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class R{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(i){setTimeout(()=>{throw i.stack?L.isErrorNoTelemetry(i)?new L(i.message+`

`+i.stack):new Error(i.message+`

`+i.stack):i},0)}}addListener(i){return this.listeners.push(i),()=>{this._removeListener(i)}}emit(i){this.listeners.forEach(u=>{u(i)})}_removeListener(i){this.listeners.splice(this.listeners.indexOf(i),1)}setUnexpectedErrorHandler(i){this.unexpectedErrorHandler=i}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(i){this.unexpectedErrorHandler(i),this.emit(i)}onUnexpectedExternalError(i){this.unexpectedErrorHandler(i)}}e.ErrorHandler=R,e.errorHandler=new R;function U(t){e.errorHandler.setUnexpectedErrorHandler(t)}e.setUnexpectedErrorHandler=U;function W(t){if(!t||typeof t!="object")return!1;const i=t;return i.code==="EPIPE"&&i.syscall?.toUpperCase()==="WRITE"}e.isSigPipeError=W;function $(t){_(t)||e.errorHandler.onUnexpectedError(t)}e.onUnexpectedError=$;function H(t){_(t)||e.errorHandler.onUnexpectedExternalError(t)}e.onUnexpectedExternalError=H;function k(t){if(t instanceof Error){const{name:i,message:u}=t;let c=t.errorCode;const f=t.stacktrace||t.stack;return{$isError:!0,name:i,message:u,stack:f,errorCode:c,data:t.data}}return t}e.transformErrorForSerialization=k;const S="Canceled";function _(t){return t instanceof F?!0:t instanceof Error&&t.name===S&&t.message===S}e.isCancellationError=_;class F extends Error{constructor(){super(S),this.name=this.message}}e.CancellationError=F;function M(){const t=new Error(S);return t.name=t.message,t}e.canceled=M;function N(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}e.illegalArgument=N;function m(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}e.illegalState=m;function d(t){return t?new Error(`readonly property '${t} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=d;function D(t){const i=new Error(`${t} has been disposed`);return i.name="DISPOSED",i}e.disposed=D;function n(t){return t?t.message?t.message:t.stack?t.stack.split(`
`)[0]:String(t):"Error"}e.getErrorMessage=n;class w extends Error{constructor(i){super("NotImplemented"),i&&(this.message=i)}}e.NotImplementedError=w;class o extends Error{constructor(i){super("NotSupported"),i&&(this.message=i)}}e.NotSupportedError=o;class C extends Error{constructor(){super(...arguments),this.isExpected=!0}}e.ExpectedError=C;class L extends Error{constructor(i){super(i),this.name="CodeExpectedError"}static fromError(i){if(i instanceof L)return i;const u=new L;return u.message=i.message,u.stack=i.stack,u}static isErrorNoTelemetry(i){return i.name==="CodeExpectedError"}}e.ErrorNoTelemetry=L;class g extends Error{constructor(i){super(i||"An unexpected bug occurred."),Object.setPrototypeOf(this,g.prototype)}}e.BugIndicatingError=g}),define(ge[12],we([0,1,6]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=e.ArrayQueue=e.findMaxIdxBy=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.reverseOrder=e.booleanComparator=e.numberComparator=e.tieBreakComparators=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushMany=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.lastOrDefault=e.firstOrDefault=e.findLastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function U(E,O=0){return E[E.length-(1+O)]}e.tail=U;function W(E){if(E.length===0)throw new Error("Invalid tail call");return[E.slice(0,E.length-1),E[E.length-1]]}e.tail2=W;function $(E,O,I=(z,ee)=>z===ee){if(E===O)return!0;if(!E||!O||E.length!==O.length)return!1;for(let z=0,ee=E.length;z<ee;z++)if(!I(E[z],O[z]))return!1;return!0}e.equals=$;function H(E,O){const I=E.length-1;O<I&&(E[O]=E[I]),E.pop()}e.removeFastWithoutKeepingOrder=H;function k(E,O,I){return S(E.length,z=>I(E[z],O))}e.binarySearch=k;function S(E,O){let I=0,z=E-1;for(;I<=z;){const ee=(I+z)/2|0,ue=O(ee);if(ue<0)I=ee+1;else if(ue>0)z=ee-1;else return ee}return-(I+1)}e.binarySearch2=S;function _(E,O){let I=0,z=E.length;if(z===0)return 0;for(;I<z;){const ee=Math.floor((I+z)/2);O(E[ee])?z=ee:I=ee+1}return I}e.findFirstInSorted=_;function F(E,O,I){if(E=E|0,E>=O.length)throw new TypeError("invalid index");const z=O[Math.floor(O.length*Math.random())],ee=[],ue=[],Ee=[];for(const ve of O){const Ce=I(ve,z);Ce<0?ee.push(ve):Ce>0?ue.push(ve):Ee.push(ve)}return E<ee.length?F(E,ee,I):E<ee.length+Ee.length?Ee[0]:F(E-(ee.length+Ee.length),ue,I)}e.quickSelect=F;function M(E,O){const I=[];let z;for(const ee of E.slice(0).sort(O))!z||O(z[0],ee)!==0?(z=[ee],I.push(z)):z.push(ee);return I}e.groupBy=M;function N(E,O,I){const z=[];function ee(ve,Ce,be){if(Ce===0&&be.length===0)return;const _e=z[z.length-1];_e&&_e.start+_e.deleteCount===ve?(_e.deleteCount+=Ce,_e.toInsert.push(...be)):z.push({start:ve,deleteCount:Ce,toInsert:be})}let ue=0,Ee=0;for(;;){if(ue===E.length){ee(ue,0,O.slice(Ee));break}if(Ee===O.length){ee(ue,E.length-ue,[]);break}const ve=E[ue],Ce=O[Ee],be=I(ve,Ce);be===0?(ue+=1,Ee+=1):be<0?(ee(ue,1,[]),ue+=1):be>0&&(ee(ue,0,[Ce]),Ee+=1)}return z}e.sortedDiff=N;function m(E,O,I){const z=N(E,O,I),ee=[],ue=[];for(const Ee of z)ee.push(...E.slice(Ee.start,Ee.start+Ee.deleteCount)),ue.push(...Ee.toInsert);return{removed:ee,added:ue}}e.delta=m;function d(E,O,I){if(I===0)return[];const z=E.slice(0,I).sort(O);return n(E,O,z,I,E.length),z}e.top=d;function D(E,O,I,z,ee){return I===0?Promise.resolve([]):new Promise((ue,Ee)=>{(async()=>{const ve=E.length,Ce=E.slice(0,I).sort(O);for(let be=I,_e=Math.min(I+z,ve);be<ve;be=_e,_e=Math.min(_e+z,ve)){if(be>I&&await new Promise(Oe=>setTimeout(Oe)),ee&&ee.isCancellationRequested)throw new R.CancellationError;n(E,O,Ce,be,_e)}return Ce})().then(ue,Ee)})}e.topAsync=D;function n(E,O,I,z,ee){for(const ue=I.length;z<ee;z++){const Ee=E[z];if(O(Ee,I[ue-1])<0){I.pop();const ve=_(I,Ce=>O(Ee,Ce)<0);I.splice(ve,0,Ee)}}}function w(E){return E.filter(O=>!!O)}e.coalesce=w;function o(E){let O=0;for(let I=0;I<E.length;I++)E[I]&&(E[O]=E[I],O+=1);E.length=O}e.coalesceInPlace=o;function C(E,O,I){E.splice(I,0,E.splice(O,1)[0])}e.move=C;function L(E){return!Array.isArray(E)||E.length===0}e.isFalsyOrEmpty=L;function g(E){return Array.isArray(E)&&E.length>0}e.isNonEmptyArray=g;function t(E,O=I=>I){const I=new Set;return E.filter(z=>{const ee=O(z);return I.has(ee)?!1:(I.add(ee),!0)})}e.distinct=t;function i(E){const O=new Set;return I=>{const z=E(I);return O.has(z)?!1:(O.add(z),!0)}}e.uniqueFilter=i;function u(E,O){const I=c(E,O);if(I!==-1)return E[I]}e.findLast=u;function c(E,O){for(let I=E.length-1;I>=0;I--){const z=E[I];if(O(z))return I}return-1}e.findLastIndex=c;function f(E,O){return E.length>0?E[0]:O}e.firstOrDefault=f;function s(E,O){return E.length>0?E[E.length-1]:O}e.lastOrDefault=s;function l(E,O,I=(z,ee)=>z===ee){let z=0;for(let ee=0,ue=Math.min(E.length,O.length);ee<ue&&I(E[ee],O[ee]);ee++)z++;return z}e.commonPrefixLength=l;function A(E){return[].concat(...E)}e.flatten=A;function T(E,O){let I=typeof O=="number"?E:0;typeof O=="number"?I=E:(I=0,O=E);const z=[];if(I<=O)for(let ee=I;ee<O;ee++)z.push(ee);else for(let ee=I;ee>O;ee--)z.push(ee);return z}e.range=T;function h(E,O,I){return E.reduce((z,ee)=>(z[O(ee)]=I?I(ee):ee,z),Object.create(null))}e.index=h;function y(E,O){return E.push(O),()=>q(E,O)}e.insert=y;function q(E,O){const I=E.indexOf(O);if(I>-1)return E.splice(I,1),O}e.remove=q;function J(E,O,I){const z=E.slice(0,O),ee=E.slice(O);return z.concat(I,ee)}e.arrayInsert=J;function oe(E,O){let I;if(typeof O=="number"){let z=O;I=()=>{const ee=Math.sin(z++)*179426549;return ee-Math.floor(ee)}}else I=Math.random;for(let z=E.length-1;z>0;z-=1){const ee=Math.floor(I()*(z+1)),ue=E[z];E[z]=E[ee],E[ee]=ue}}e.shuffle=oe;function ae(E,O){const I=E.indexOf(O);I>-1&&(E.splice(I,1),E.unshift(O))}e.pushToStart=ae;function me(E,O){const I=E.indexOf(O);I>-1&&(E.splice(I,1),E.push(O))}e.pushToEnd=me;function he(E,O){for(const I of O)E.push(I)}e.pushMany=he;function X(E,O){return Array.isArray(E)?E.map(O):O(E)}e.mapArrayOrNot=X;function re(E){return Array.isArray(E)?E:[E]}e.asArray=re;function le(E){return E[Math.floor(Math.random()*E.length)]}e.getRandomElement=le;function K(E,O){for(const I of E){const z=O(I);if(z!==void 0)return z}}e.mapFind=K;function p(E,O,I){const z=r(E,O),ee=E.length,ue=I.length;E.length=ee+ue;for(let Ee=ee-1;Ee>=z;Ee--)E[Ee+ue]=E[Ee];for(let Ee=0;Ee<ue;Ee++)E[Ee+z]=I[Ee]}e.insertInto=p;function a(E,O,I,z){const ee=r(E,O),ue=E.splice(ee,I);return p(E,ee,z),ue}e.splice=a;function r(E,O){return O<0?Math.max(O+E.length,0):Math.min(O,E.length)}var P;(function(E){function O(ue){return ue<0}E.isLessThan=O;function I(ue){return ue<=0}E.isLessThanOrEqual=I;function z(ue){return ue>0}E.isGreaterThan=z;function ee(ue){return ue===0}E.isNeitherLessOrGreaterThan=ee,E.greaterThan=1,E.lessThan=-1,E.neitherLessOrGreaterThan=0})(P||(e.CompareResult=P={}));function G(E,O){return(I,z)=>O(E(I),E(z))}e.compareBy=G;function V(...E){return(O,I)=>{for(const z of E){const ee=z(O,I);if(!P.isNeitherLessOrGreaterThan(ee))return ee}return P.neitherLessOrGreaterThan}}e.tieBreakComparators=V;const Z=(E,O)=>E-O;e.numberComparator=Z;const ie=(E,O)=>(0,e.numberComparator)(E?1:0,O?1:0);e.booleanComparator=ie;function Q(E){return(O,I)=>-E(O,I)}e.reverseOrder=Q;function b(E,O){if(E.length===0)return;let I=E[0];for(let z=1;z<E.length;z++){const ee=E[z];O(ee,I)>0&&(I=ee)}return I}e.findMaxBy=b;function B(E,O){if(E.length===0)return;let I=E[0];for(let z=1;z<E.length;z++){const ee=E[z];O(ee,I)>=0&&(I=ee)}return I}e.findLastMaxBy=B;function Y(E,O){return b(E,(I,z)=>-O(I,z))}e.findMinBy=Y;function te(E,O){if(E.length===0)return-1;let I=0;for(let z=1;z<E.length;z++){const ee=E[z];O(ee,E[I])>0&&(I=z)}return I}e.findMaxIdxBy=te;class ce{constructor(O){this.items=O,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(O){let I=this.firstIdx;for(;I<this.items.length&&O(this.items[I]);)I++;const z=I===this.firstIdx?null:this.items.slice(this.firstIdx,I);return this.firstIdx=I,z}takeFromEndWhile(O){let I=this.lastIdx;for(;I>=0&&O(this.items[I]);)I--;const z=I===this.lastIdx?null:this.items.slice(I+1,this.lastIdx+1);return this.lastIdx=I,z}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const O=this.items[this.firstIdx];return this.firstIdx++,O}removeLast(){const O=this.items[this.lastIdx];return this.lastIdx--,O}takeCount(O){const I=this.items.slice(this.firstIdx,this.firstIdx+O);return this.firstIdx+=O,I}}e.ArrayQueue=ce;class ne{static{this.empty=new ne(O=>{})}constructor(O){this.iterate=O}forEach(O){this.iterate(I=>(O(I),!0))}toArray(){const O=[];return this.iterate(I=>(O.push(I),!0)),O}filter(O){return new ne(I=>this.iterate(z=>O(z)?I(z):!0))}map(O){return new ne(I=>this.iterate(z=>I(O(z))))}some(O){let I=!1;return this.iterate(z=>(I=O(z),!I)),I}findFirst(O){let I;return this.iterate(z=>O(z)?(I=z,!1):!0),I}findLast(O){let I;return this.iterate(z=>(O(z)&&(I=z),!0)),I}findLastMaxBy(O){let I,z=!0;return this.iterate(ee=>((z||P.isGreaterThan(O(ee,I)))&&(z=!1,I=ee),!0)),I}}e.CallbackIterable=ne}),define(ge[20],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function R(U){const W=this;let $=!1,H;return function(){return $||($=!0,H=U.apply(W,arguments)),H}}e.once=R}),define(ge[35],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var R;(function(U){function W(L){return L&&typeof L=="object"&&typeof L[Symbol.iterator]=="function"}U.is=W;const $=Object.freeze([]);function H(){return $}U.empty=H;function*k(L){yield L}U.single=k;function S(L){return W(L)?L:k(L)}U.wrap=S;function _(L){return L||$}U.from=_;function F(L){return!L||L[Symbol.iterator]().next().done===!0}U.isEmpty=F;function M(L){return L[Symbol.iterator]().next().value}U.first=M;function N(L,g){for(const t of L)if(g(t))return!0;return!1}U.some=N;function m(L,g){for(const t of L)if(g(t))return t}U.find=m;function*d(L,g){for(const t of L)g(t)&&(yield t)}U.filter=d;function*D(L,g){let t=0;for(const i of L)yield g(i,t++)}U.map=D;function*n(...L){for(const g of L)for(const t of g)yield t}U.concat=n;function w(L,g,t){let i=t;for(const u of L)i=g(i,u);return i}U.reduce=w;function*o(L,g,t=L.length){for(g<0&&(g+=L.length),t<0?t+=L.length:t>L.length&&(t=L.length);g<t;g++)yield L[g]}U.slice=o;function C(L,g=Number.POSITIVE_INFINITY){const t=[];if(g===0)return[t,L];const i=L[Symbol.iterator]();for(let u=0;u<g;u++){const c=i.next();if(c.done)return[t,U.empty()];t.push(c.value)}return[t,{[Symbol.iterator](){return i}}]}U.consume=C})(R||(e.Iterable=R={}))}),define(ge[21],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class R{constructor(W){this.executor=W,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(W){this._error=W}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}e.Lazy=R}),define(ge[4],we([0,1,20,35]),function(fe,e,R,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisposableMap=e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.disposeIfDisposable=e.dispose=e.isDisposable=e.markAsSingleton=e.setDisposableTracker=void 0;const W=!1;let $=null;function H(s){$=s}if(e.setDisposableTracker=H,W){const s="__is_disposable_tracked__";H(new class{trackDisposable(l){const A=new Error("Potentially leaked disposable").stack;setTimeout(()=>{l[s]||console.log(A)},3e3)}setParent(l,A){if(l&&l!==o.None)try{l[s]=!0}catch{}}markAsDisposed(l){if(l&&l!==o.None)try{l[s]=!0}catch{}}markAsSingleton(l){}})}function k(s){return $?.trackDisposable(s),s}function S(s){$?.markAsDisposed(s)}function _(s,l){$?.setParent(s,l)}function F(s,l){if($)for(const A of s)$.setParent(A,l)}function M(s){return $?.markAsSingleton(s),s}e.markAsSingleton=M;function N(s){return typeof s.dispose=="function"&&s.dispose.length===0}e.isDisposable=N;function m(s){if(U.Iterable.is(s)){const l=[];for(const A of s)if(A)try{A.dispose()}catch(T){l.push(T)}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Encountered errors while disposing of store");return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}e.dispose=m;function d(s){for(const l of s)N(l)&&l.dispose();return[]}e.disposeIfDisposable=d;function D(...s){const l=n(()=>m(s));return F(s,l),l}e.combinedDisposable=D;function n(s){const l=k({dispose:(0,R.once)(()=>{S(l),s()})});return l}e.toDisposable=n;class w{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,k(this)}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(l){if(!l)return l;if(l===this)throw new Error("Cannot register a disposable on itself!");return _(l,this),this._isDisposed?w.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(l),l}}e.DisposableStore=w;class o{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new w,k(this),_(this._store,this)}dispose(){S(this),this._store.dispose()}_register(l){if(l===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(l)}}e.Disposable=o;class C{constructor(){this._isDisposed=!1,k(this)}get value(){return this._isDisposed?void 0:this._value}set value(l){this._isDisposed||l===this._value||(this._value?.dispose(),l&&_(l,this),this._value=l)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,S(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const l=this._value;return this._value=void 0,l&&_(l,null),l}}e.MutableDisposable=C;class L{constructor(l){this._disposable=l,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}e.RefCountedDisposable=L;class g{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,k(this)}set(l){let A=l;return this.unset=()=>A=void 0,this.isset=()=>A!==void 0,this.dispose=()=>{A&&(A(),A=void 0,S(this))},this}}e.SafeDisposable=g;class t{constructor(){this.references=new Map}acquire(l,...A){let T=this.references.get(l);T||(T={counter:0,object:this.createReferencedObject(l,...A)},this.references.set(l,T));const{object:h}=T,y=(0,R.once)(()=>{--T.counter===0&&(this.destroyReferencedObject(l,T.object),this.references.delete(l))});return T.counter++,{object:h,dispose:y}}}e.ReferenceCollection=t;class i{constructor(l){this.referenceCollection=l}async acquire(l,...A){const T=this.referenceCollection.acquire(l,...A);try{return{object:await T.object,dispose:()=>T.dispose()}}catch(h){throw T.dispose(),h}}}e.AsyncReferenceCollection=i;class u{constructor(l){this.object=l}dispose(){}}e.ImmortalReference=u;function c(s){const l=new w;try{s(l)}finally{l.dispose()}}e.disposeOnReturn=c;class f{constructor(){this._store=new Map,this._isDisposed=!1,k(this)}dispose(){S(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{m(this._store.values())}finally{this._store.clear()}}has(l){return this._store.has(l)}get(l){return this._store.get(l)}set(l,A,T=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),T||this._store.get(l)?.dispose(),this._store.set(l,A)}deleteAndDispose(l){this._store.get(l)?.dispose(),this._store.delete(l)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}e.DisposableMap=f}),define(ge[36],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class R{static{this.Undefined=new R(void 0)}constructor($){this.element=$,this.next=R.Undefined,this.prev=R.Undefined}}class U{constructor(){this._first=R.Undefined,this._last=R.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===R.Undefined}clear(){let $=this._first;for(;$!==R.Undefined;){const H=$.next;$.prev=R.Undefined,$.next=R.Undefined,$=H}this._first=R.Undefined,this._last=R.Undefined,this._size=0}unshift($){return this._insert($,!1)}push($){return this._insert($,!0)}_insert($,H){const k=new R($);if(this._first===R.Undefined)this._first=k,this._last=k;else if(H){const _=this._last;this._last=k,k.prev=_,_.next=k}else{const _=this._first;this._first=k,k.next=_,_.prev=k}this._size+=1;let S=!1;return()=>{S||(S=!0,this._remove(k))}}shift(){if(this._first!==R.Undefined){const $=this._first.element;return this._remove(this._first),$}}pop(){if(this._last!==R.Undefined){const $=this._last.element;return this._remove(this._last),$}}_remove($){if($.prev!==R.Undefined&&$.next!==R.Undefined){const H=$.prev;H.next=$.next,$.next.prev=H}else $.prev===R.Undefined&&$.next===R.Undefined?(this._first=R.Undefined,this._last=R.Undefined):$.next===R.Undefined?(this._last=this._last.prev,this._last.next=R.Undefined):$.prev===R.Undefined&&(this._first=this._first.next,this._first.prev=R.Undefined);this._size-=1}*[Symbol.iterator](){let $=this._first;for(;$!==R.Undefined;)yield $.element,$=$.next}}e.LinkedList=U}),define(ge[22],we([0,1]),function(fe,e){"use strict";var R,U,W;Object.defineProperty(e,"__esModule",{value:!0}),e.CounterSet=e.LRUCache=e.LinkedMap=e.Touch=e.ResourceSet=e.ResourceMap=e.setToString=e.mapToString=e.getOrSet=void 0;function $(D,n,w){let o=D.get(n);return o===void 0&&(o=w,D.set(n,o)),o}e.getOrSet=$;function H(D){const n=[];return D.forEach((w,o)=>{n.push(`${o} => ${w}`)}),`Map(${D.size}) {${n.join(", ")}}`}e.mapToString=H;function k(D){const n=[];return D.forEach(w=>{n.push(w)}),`Set(${D.size}) {${n.join(", ")}}`}e.setToString=k;class S{constructor(n,w){this.uri=n,this.value=w}}class _{static{this.defaultToKey=n=>n.toString()}constructor(n,w){this[R]="ResourceMap",n instanceof _?(this.map=new Map(n.map),this.toKey=w??_.defaultToKey):(this.map=new Map,this.toKey=n??_.defaultToKey)}set(n,w){return this.map.set(this.toKey(n),new S(n,w)),this}get(n){return this.map.get(this.toKey(n))?.value}has(n){return this.map.has(this.toKey(n))}get size(){return this.map.size}clear(){this.map.clear()}delete(n){return this.map.delete(this.toKey(n))}forEach(n,w){typeof w<"u"&&(n=n.bind(w));for(const[o,C]of this.map)n(C.value,C.uri,this)}*values(){for(const n of this.map.values())yield n.value}*keys(){for(const n of this.map.values())yield n.uri}*entries(){for(const n of this.map.values())yield[n.uri,n.value]}*[(R=Symbol.toStringTag,Symbol.iterator)](){for(const[,n]of this.map)yield[n.uri,n.value]}}e.ResourceMap=_;class F{constructor(n,w){this[U]="ResourceSet",!n||typeof n=="function"?this._map=new _(n):(this._map=new _(w),n.forEach(this.add,this))}get size(){return this._map.size}add(n){return this._map.set(n,n),this}clear(){this._map.clear()}delete(n){return this._map.delete(n)}forEach(n,w){this._map.forEach((o,C)=>n.call(w,C,C,this))}has(n){return this._map.has(n)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(U=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=F;var M;(function(D){D[D.None=0]="None",D[D.AsOld=1]="AsOld",D[D.AsNew=2]="AsNew"})(M||(e.Touch=M={}));class N{constructor(){this[W]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(n){return this._map.has(n)}get(n,w=0){const o=this._map.get(n);if(o)return w!==0&&this.touch(o,w),o.value}set(n,w,o=0){let C=this._map.get(n);if(C)C.value=w,o!==0&&this.touch(C,o);else{switch(C={key:n,value:w,next:void 0,previous:void 0},o){case 0:this.addItemLast(C);break;case 1:this.addItemFirst(C);break;case 2:this.addItemLast(C);break;default:this.addItemLast(C);break}this._map.set(n,C),this._size++}return this}delete(n){return!!this.remove(n)}remove(n){const w=this._map.get(n);if(w)return this._map.delete(n),this.removeItem(w),this._size--,w.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const n=this._head;return this._map.delete(n.key),this.removeItem(n),this._size--,n.value}forEach(n,w){const o=this._state;let C=this._head;for(;C;){if(w?n.bind(w)(C.value,C.key,this):n(C.value,C.key,this),this._state!==o)throw new Error("LinkedMap got modified during iteration.");C=C.next}}keys(){const n=this,w=this._state;let o=this._head;const C={[Symbol.iterator](){return C},next(){if(n._state!==w)throw new Error("LinkedMap got modified during iteration.");if(o){const L={value:o.key,done:!1};return o=o.next,L}else return{value:void 0,done:!0}}};return C}values(){const n=this,w=this._state;let o=this._head;const C={[Symbol.iterator](){return C},next(){if(n._state!==w)throw new Error("LinkedMap got modified during iteration.");if(o){const L={value:o.value,done:!1};return o=o.next,L}else return{value:void 0,done:!0}}};return C}entries(){const n=this,w=this._state;let o=this._head;const C={[Symbol.iterator](){return C},next(){if(n._state!==w)throw new Error("LinkedMap got modified during iteration.");if(o){const L={value:[o.key,o.value],done:!1};return o=o.next,L}else return{value:void 0,done:!0}}};return C}[(W=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(n){if(n>=this.size)return;if(n===0){this.clear();return}let w=this._head,o=this.size;for(;w&&o>n;)this._map.delete(w.key),w=w.next,o--;this._head=w,this._size=o,w&&(w.previous=void 0),this._state++}addItemFirst(n){if(!this._head&&!this._tail)this._tail=n;else if(this._head)n.next=this._head,this._head.previous=n;else throw new Error("Invalid list");this._head=n,this._state++}addItemLast(n){if(!this._head&&!this._tail)this._head=n;else if(this._tail)n.previous=this._tail,this._tail.next=n;else throw new Error("Invalid list");this._tail=n,this._state++}removeItem(n){if(n===this._head&&n===this._tail)this._head=void 0,this._tail=void 0;else if(n===this._head){if(!n.next)throw new Error("Invalid list");n.next.previous=void 0,this._head=n.next}else if(n===this._tail){if(!n.previous)throw new Error("Invalid list");n.previous.next=void 0,this._tail=n.previous}else{const w=n.next,o=n.previous;if(!w||!o)throw new Error("Invalid list");w.previous=o,o.next=w}n.next=void 0,n.previous=void 0,this._state++}touch(n,w){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(w!==1&&w!==2)){if(w===1){if(n===this._head)return;const o=n.next,C=n.previous;n===this._tail?(C.next=void 0,this._tail=C):(o.previous=C,C.next=o),n.previous=void 0,n.next=this._head,this._head.previous=n,this._head=n,this._state++}else if(w===2){if(n===this._tail)return;const o=n.next,C=n.previous;n===this._head?(o.previous=void 0,this._head=o):(o.previous=C,C.next=o),n.next=void 0,n.previous=this._tail,this._tail.next=n,this._tail=n,this._state++}}}toJSON(){const n=[];return this.forEach((w,o)=>{n.push([o,w])}),n}fromJSON(n){this.clear();for(const[w,o]of n)this.set(w,o)}}e.LinkedMap=N;class m extends N{constructor(n,w=1){super(),this._limit=n,this._ratio=Math.min(Math.max(0,w),1)}get limit(){return this._limit}set limit(n){this._limit=n,this.checkTrim()}get ratio(){return this._ratio}set ratio(n){this._ratio=Math.min(Math.max(0,n),1),this.checkTrim()}get(n,w=2){return super.get(n,w)}peek(n){return super.get(n,0)}set(n,w){return super.set(n,w,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=m;class d{constructor(){this.map=new Map}add(n){return this.map.set(n,(this.map.get(n)||0)+1),this}delete(n){let w=this.map.get(n)||0;return w===0?!1:(w--,w===0?this.map.delete(n):this.map.set(n,w),!0)}has(n){return this.map.has(n)}}e.CounterSet=d}),define(ge[15],we([0,1,22]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const U=new R.LRUCache(1e4);function W(_){return S(_,"NFC",U)}e.normalizeNFC=W;const $=new R.LRUCache(1e4);function H(_){return S(_,"NFD",$)}e.normalizeNFD=H;const k=/[^\u0000-\u0080]/;function S(_,F,M){if(!_)return _;const N=M.get(_);if(N)return N;let m;return k.test(_)?m=_.normalize(F):m=_,M.set(_,m),m}e.removeAccents=function(){const _=/[\u0300-\u036f]/g;return function(F){return H(F).replace(_,"")}}()}),define(ge[37],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const R=globalThis.performance&&typeof globalThis.performance.now=="function";class U{static create($){return new U($)}constructor($){this._now=R&&$===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}e.StopWatch=U}),define(ge[5],we([0,1,6,20,4,36,37]),function(fe,e,R,U,W,$,H){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.DynamicListEventMultiplexer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.createEventDeliveryQueue=e.Emitter=e.setGlobalLeakWarningThreshold=e.EventProfiling=e.Event=void 0;const k=!1,S=!1;var _;(function(T){T.None=()=>W.Disposable.None;function h(ne){if(S){const{onDidAddListener:E}=ne,O=d.create();let I=0;ne.onDidAddListener=()=>{++I===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),O.print()),E?.()}}}function y(ne,E){return le(ne,()=>{},0,void 0,!0,void 0,E)}T.defer=y;function q(ne){return(E,O=null,I)=>{let z=!1,ee;return ee=ne(ue=>{if(!z)return ee?ee.dispose():z=!0,E.call(O,ue)},null,I),z&&ee.dispose(),ee}}T.once=q;function J(ne,E,O){return re((I,z=null,ee)=>ne(ue=>I.call(z,E(ue)),null,ee),O)}T.map=J;function oe(ne,E,O){return re((I,z=null,ee)=>ne(ue=>{E(ue),I.call(z,ue)},null,ee),O)}T.forEach=oe;function ae(ne,E,O){return re((I,z=null,ee)=>ne(ue=>E(ue)&&I.call(z,ue),null,ee),O)}T.filter=ae;function me(ne){return ne}T.signal=me;function he(...ne){return(E,O=null,I)=>(0,W.combinedDisposable)(...ne.map(z=>z(ee=>E.call(O,ee),null,I)))}T.any=he;function X(ne,E,O,I){let z=O;return J(ne,ee=>(z=E(z,ee),z),I)}T.reduce=X;function re(ne,E){let O;const I={onWillAddFirstListener(){O=ne(z.fire,z)},onDidRemoveLastListener(){O?.dispose()}};E||h(I);const z=new C(I);return E?.add(z),z.event}function le(ne,E,O=100,I=!1,z=!1,ee,ue){let Ee,ve,Ce,be=0,_e;const Oe={leakWarningThreshold:ee,onWillAddFirstListener(){Ee=ne(Ne=>{be++,ve=E(ve,Ne),I&&!Ce&&(Pe.fire(ve),ve=void 0),_e=()=>{const Me=ve;ve=void 0,Ce=void 0,(!I||be>1)&&Pe.fire(Me),be=0},typeof O=="number"?(clearTimeout(Ce),Ce=setTimeout(_e,O)):Ce===void 0&&(Ce=0,queueMicrotask(_e))})},onWillRemoveListener(){z&&be>0&&_e?.()},onDidRemoveLastListener(){_e=void 0,Ee.dispose()}};ue||h(Oe);const Pe=new C(Oe);return ue?.add(Pe),Pe.event}T.debounce=le;function K(ne,E=0,O){return T.debounce(ne,(I,z)=>I?(I.push(z),I):[z],E,void 0,!0,void 0,O)}T.accumulate=K;function p(ne,E=(I,z)=>I===z,O){let I=!0,z;return ae(ne,ee=>{const ue=I||!E(ee,z);return I=!1,z=ee,ue},O)}T.latch=p;function a(ne,E,O){return[T.filter(ne,E,O),T.filter(ne,I=>!E(I),O)]}T.split=a;function r(ne,E=!1,O=[]){let I=O.slice(),z=ne(Ee=>{I?I.push(Ee):ue.fire(Ee)});const ee=()=>{I?.forEach(Ee=>ue.fire(Ee)),I=null},ue=new C({onWillAddFirstListener(){z||(z=ne(Ee=>ue.fire(Ee)))},onDidAddFirstListener(){I&&(E?setTimeout(ee):ee())},onDidRemoveLastListener(){z&&z.dispose(),z=null}});return ue.event}T.buffer=r;class P{constructor(E){this.event=E,this.disposables=new W.DisposableStore}map(E){return new P(J(this.event,E,this.disposables))}forEach(E){return new P(oe(this.event,E,this.disposables))}filter(E){return new P(ae(this.event,E,this.disposables))}reduce(E,O){return new P(X(this.event,E,O,this.disposables))}latch(){return new P(p(this.event,void 0,this.disposables))}debounce(E,O=100,I=!1,z=!1,ee){return new P(le(this.event,E,O,I,z,ee,this.disposables))}on(E,O,I){return this.event(E,O,I)}once(E,O,I){return q(this.event)(E,O,I)}dispose(){this.disposables.dispose()}}function G(ne){return new P(ne)}T.chain=G;function V(ne,E,O=I=>I){const I=(...Ee)=>ue.fire(O(...Ee)),z=()=>ne.on(E,I),ee=()=>ne.removeListener(E,I),ue=new C({onWillAddFirstListener:z,onDidRemoveLastListener:ee});return ue.event}T.fromNodeEventEmitter=V;function Z(ne,E,O=I=>I){const I=(...Ee)=>ue.fire(O(...Ee)),z=()=>ne.addEventListener(E,I),ee=()=>ne.removeEventListener(E,I),ue=new C({onWillAddFirstListener:z,onDidRemoveLastListener:ee});return ue.event}T.fromDOMEventEmitter=Z;function ie(ne){return new Promise(E=>q(ne)(E))}T.toPromise=ie;function Q(ne){const E=new C;return ne.then(O=>{E.fire(O)},()=>{E.fire(void 0)}).finally(()=>{E.dispose()}),E.event}T.fromPromise=Q;function b(ne,E){return E(void 0),ne(O=>E(O))}T.runAndSubscribe=b;function B(ne,E){let O=null;function I(ee){O?.dispose(),O=new W.DisposableStore,E(ee,O)}I(void 0);const z=ne(ee=>I(ee));return(0,W.toDisposable)(()=>{z.dispose(),O?.dispose()})}T.runAndSubscribeWithStore=B;class Y{constructor(E,O){this._observable=E,this._counter=0,this._hasChanged=!1;const I={onWillAddFirstListener:()=>{E.addObserver(this)},onDidRemoveLastListener:()=>{E.removeObserver(this)}};O||h(I),this.emitter=new C(I),O&&O.add(this.emitter)}beginUpdate(E){this._counter++}handlePossibleChange(E){}handleChange(E,O){this._hasChanged=!0}endUpdate(E){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function te(ne,E){return new Y(ne,E).emitter.event}T.fromObservable=te;function ce(ne){return E=>{let O=0,I=!1;const z={beginUpdate(){O++},endUpdate(){O--,O===0&&(ne.reportChanges(),I&&(I=!1,E()))},handlePossibleChange(){},handleChange(){I=!0}};return ne.addObserver(z),ne.reportChanges(),{dispose(){ne.removeObserver(z)}}}}T.fromObservableLight=ce})(_||(e.Event=_={}));class F{static{this.all=new Set}static{this._idPool=0}constructor(h){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${h}_${F._idPool++}`,F.all.add(this)}start(h){this._stopWatch=new H.StopWatch,this.listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this.durations.push(h),this.elapsedOverall+=h,this.invocationCount+=1,this._stopWatch=void 0}}}e.EventProfiling=F;let M=-1;function N(T){const h=M;return M=T,{dispose(){M=h}}}e.setGlobalLeakWarningThreshold=N;class m{constructor(h,y=Math.random().toString(18).slice(2,5)){this.threshold=h,this.name=y,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(h,y){const q=this.threshold;if(q<=0||y<q)return;this._stacks||(this._stacks=new Map);const J=this._stacks.get(h.value)||0;if(this._stacks.set(h.value,J+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=q*.5;let oe,ae=0;for(const[me,he]of this._stacks)(!oe||ae<he)&&(oe=me,ae=he);console.warn(`[${this.name}] potential listener LEAK detected, having ${y} listeners already. MOST frequent listener (${ae}):`),console.warn(oe)}return()=>{const oe=this._stacks.get(h.value)||0;this._stacks.set(h.value,oe-1)}}}class d{static create(){return new d(new Error().stack??"")}constructor(h){this.value=h}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}let D=0;class n{constructor(h){this.value=h,this.id=D++}}const w=2,o=(T,h)=>{if(T instanceof n)h(T);else for(let y=0;y<T.length;y++){const q=T[y];q&&h(q)}};class C{constructor(h){this._size=0,this._options=h,this._leakageMon=M>0||this._options?.leakWarningThreshold?new m(this._options?.leakWarningThreshold??M):void 0,this._perfMon=this._options?._profName?new F(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(k){const h=this._listeners;queueMicrotask(()=>{o(h,y=>y.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(h,y,q)=>{if(this._disposed)return W.Disposable.None;y&&(h=h.bind(y));const J=new n(h);let oe,ae;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(J.stack=d.create(),oe=this._leakageMon.check(J.stack,this._size+1)),k&&(J.stack=ae??d.create()),this._listeners?this._listeners instanceof n?(this._deliveryQueue??=new g,this._listeners=[this._listeners,J]):this._listeners.push(J):(this._options?.onWillAddFirstListener?.(this),this._listeners=J,this._options?.onDidAddFirstListener?.(this)),this._size++;const me=(0,W.toDisposable)(()=>{oe?.(),this._removeListener(J)});return q instanceof W.DisposableStore?q.add(me):Array.isArray(q)&&q.push(me),me},this._event}_removeListener(h){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const y=this._listeners,q=y.indexOf(h);if(q===-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--,y[q]=void 0;const J=this._deliveryQueue.current===this;if(this._size*w<=y.length){let oe=0;for(let ae=0;ae<y.length;ae++)y[ae]?y[oe++]=y[ae]:J&&(this._deliveryQueue.end--,oe<this._deliveryQueue.i&&this._deliveryQueue.i--);y.length=oe}}_deliver(h,y){if(!h)return;const q=this._options?.onListenerError||R.onUnexpectedError;if(!q){h.value(y);return}try{h.value(y)}catch(J){q(J)}}_deliverQueue(h){const y=h.current._listeners;for(;h.i<h.end;)this._deliver(y[h.i++],h.value);h.reset()}fire(h){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof n)this._deliver(this._listeners,h);else{const y=this._deliveryQueue;y.enqueue(this,h,this._listeners.length),this._deliverQueue(y)}this._perfMon?.stop()}hasListeners(){return this._size>0}}e.Emitter=C;const L=()=>new g;e.createEventDeliveryQueue=L;class g{constructor(){this.i=-1,this.end=0}enqueue(h,y,q){this.i=0,this.end=q,this.current=h,this.value=y}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class t extends C{async fireAsync(h,y,q){if(this._listeners)for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new $.LinkedList),o(this._listeners,J=>this._asyncDeliveryQueue.push([J.value,h]));this._asyncDeliveryQueue.size>0&&!y.isCancellationRequested;){const[J,oe]=this._asyncDeliveryQueue.shift(),ae=[],me={...oe,token:y,waitUntil:he=>{if(Object.isFrozen(ae))throw new Error("waitUntil can NOT be called asynchronous");q&&(he=q(he,J)),ae.push(he)}};try{J(me)}catch(he){(0,R.onUnexpectedError)(he);continue}Object.freeze(ae),await Promise.allSettled(ae).then(he=>{for(const X of he)X.status==="rejected"&&(0,R.onUnexpectedError)(X.reason)})}}}e.AsyncEmitter=t;class i extends C{get isPaused(){return this._isPaused!==0}constructor(h){super(h),this._isPaused=0,this._eventQueue=new $.LinkedList,this._mergeFn=h?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._size&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}e.PauseableEmitter=i;class u extends i{constructor(h){super(h),this._delay=h.delay??100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}e.DebounceEmitter=u;class c extends C{constructor(h){super(h),this._queuedEvents=[],this._mergeFn=h?.merge}fire(h){this.hasListeners()&&(this._queuedEvents.push(h),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(y=>super.fire(y)),this._queuedEvents=[]}))}}e.MicrotaskEmitter=c;class f{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new C({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(h){const y={event:h,listener:null};this.events.push(y),this.hasListeners&&this.hook(y);const q=()=>{this.hasListeners&&this.unhook(y);const J=this.events.indexOf(y);this.events.splice(J,1)};return(0,W.toDisposable)((0,U.once)(q))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(h=>this.hook(h))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(h=>this.unhook(h))}hook(h){h.listener=h.event(y=>this.emitter.fire(y))}unhook(h){h.listener&&h.listener.dispose(),h.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=f;class s{constructor(h,y,q,J){this._store=new W.DisposableStore;const oe=this._store.add(new f),ae=this._store.add(new W.DisposableMap);function me(he){ae.set(he,oe.add(J(he)))}for(const he of h)me(he);this._store.add(y(he=>{me(he)})),this._store.add(q(he=>{ae.deleteAndDispose(he)})),this.event=oe.event}dispose(){this._store.dispose()}}e.DynamicListEventMultiplexer=s;class l{constructor(){this.buffers=[]}wrapEvent(h){return(y,q,J)=>h(oe=>{const ae=this.buffers[this.buffers.length-1];ae?ae.push(()=>y.call(q,oe)):y.call(q,oe)},void 0,J)}bufferEvents(h){const y=[];this.buffers.push(y);const q=h();return this.buffers.pop(),y.forEach(J=>J()),q}}e.EventBufferer=l;class A{constructor(){this.listening=!1,this.inputEvent=_.None,this.inputEventListener=W.Disposable.None,this.emitter=new C({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=A}),define(ge[11],we([0,1,5]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const U=Object.freeze(function(k,S){const _=setTimeout(k.bind(S),0);return{dispose(){clearTimeout(_)}}});var W;(function(k){function S(_){return _===k.None||_===k.Cancelled||_ instanceof $?!0:!_||typeof _!="object"?!1:typeof _.isCancellationRequested=="boolean"&&typeof _.onCancellationRequested=="function"}k.isCancellationToken=S,k.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:R.Event.None}),k.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:U})})(W||(e.CancellationToken=W={}));class ${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?U:(this._emitter||(this._emitter=new R.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class H{constructor(S){this._token=void 0,this._parentListener=void 0,this._parentListener=S&&S.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new $),this._token}cancel(){this._token?this._token instanceof $&&this._token.cancel():this._token=W.Cancelled}dispose(S=!1){S&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof $&&this._token.dispose():this._token=W.None}}e.CancellationTokenSource=H}),define(ge[38],we([0,1,11]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class U{constructor(k){this.task=k,this.result=null}get(){if(this.result)return this.result;const k=new R.CancellationTokenSource,S=this.task(k.token);return this.result={promise:S,dispose:()=>{this.result=null,k.cancel(),k.dispose()}},this.result}}e.Cache=U;class W{constructor(k){this.fn=k,this.lastCache=void 0,this.lastArgKey=void 0}get(k){const S=JSON.stringify(k);return this.lastArgKey!==S&&(this.lastArgKey=S,this.lastCache=this.fn(k)),this.lastCache}}e.LRUCachedFunction=W;class ${get cachedValues(){return this._map}constructor(k){this.fn=k,this._map=new Map}get(k){if(this._map.has(k))return this._map.get(k);const S=this.fn(k);return this._map.set(k,S),S}}e.CachedFunction=$}),define(ge[39],we([0,1,6,4]),function(fe,e,R,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.listenStream=e.consumeStream=e.peekReadable=e.consumeReadable=e.newWriteableStream=e.isReadableBufferedStream=e.isReadableStream=e.isReadable=void 0;function W(L){const g=L;return g?typeof g.read=="function":!1}e.isReadable=W;function $(L){const g=L;return g?[g.on,g.pause,g.resume,g.destroy].every(t=>typeof t=="function"):!1}e.isReadableStream=$;function H(L){const g=L;return g?$(g.stream)&&Array.isArray(g.buffer)&&typeof g.ended=="boolean":!1}e.isReadableBufferedStream=H;function k(L,g){return new S(L,g)}e.newWriteableStream=k;class S{constructor(g,t){this.reducer=g,this.options=t,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]},this.pendingWritePromises=[]}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(g){if(!this.state.destroyed){if(this.state.flowing)this.emitData(g);else if(this.buffer.data.push(g),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(t=>this.pendingWritePromises.push(t))}}error(g){this.state.destroyed||(this.state.flowing?this.emitError(g):this.buffer.error.push(g))}end(g){this.state.destroyed||(typeof g<"u"&&this.write(g),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(g){this.listeners.data.slice(0).forEach(t=>t(g))}emitError(g){this.listeners.error.length===0?(0,R.onUnexpectedError)(g):this.listeners.error.slice(0).forEach(t=>t(g))}emitEnd(){this.listeners.end.slice(0).forEach(g=>g())}on(g,t){if(!this.state.destroyed)switch(g){case"data":this.listeners.data.push(t),this.resume();break;case"end":this.listeners.end.push(t),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(t),this.state.flowing&&this.flowErrors();break}}removeListener(g,t){if(this.state.destroyed)return;let i;switch(g){case"data":i=this.listeners.data;break;case"end":i=this.listeners.end;break;case"error":i=this.listeners.error;break}if(i){const u=i.indexOf(t);u>=0&&i.splice(u,1)}}flowData(){if(this.buffer.data.length>0){const g=this.reducer(this.buffer.data);this.emitData(g),this.buffer.data.length=0;const t=[...this.pendingWritePromises];this.pendingWritePromises.length=0,t.forEach(i=>i())}}flowErrors(){if(this.listeners.error.length>0){for(const g of this.buffer.error)this.emitError(g);this.buffer.error.length=0}}flowEnd(){return this.state.ended?(this.emitEnd(),this.listeners.end.length>0):!1}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0,this.pendingWritePromises.length=0)}}function _(L,g){const t=[];let i;for(;(i=L.read())!==null;)t.push(i);return g(t)}e.consumeReadable=_;function F(L,g,t){const i=[];let u;for(;(u=L.read())!==null&&i.length<t;)i.push(u);return u===null&&i.length>0?g(i):{read:()=>{if(i.length>0)return i.shift();if(typeof u<"u"){const c=u;return u=void 0,c}return L.read()}}}e.peekReadable=F;function M(L,g){return new Promise((t,i)=>{const u=[];N(L,{onData:c=>{g&&u.push(c)},onError:c=>{g?i(c):t(void 0)},onEnd:()=>{t(g?g(u):void 0)}})})}e.consumeStream=M;function N(L,g,t){L.on("error",i=>{t?.isCancellationRequested||g.onError(i)}),L.on("end",()=>{t?.isCancellationRequested||g.onEnd()}),L.on("data",i=>{t?.isCancellationRequested||g.onData(i)})}e.listenStream=N;function m(L,g){return new Promise((t,i)=>{const u=new U.DisposableStore,c=[],f=A=>{if(c.push(A),c.length>g)return u.dispose(),L.pause(),t({stream:L,buffer:c,ended:!1})},s=A=>i(A),l=()=>t({stream:L,buffer:c,ended:!0});u.add((0,U.toDisposable)(()=>L.removeListener("error",s))),L.on("error",s),u.add((0,U.toDisposable)(()=>L.removeListener("end",l))),L.on("end",l),u.add((0,U.toDisposable)(()=>L.removeListener("data",f))),L.on("data",f)})}e.peekStream=m;function d(L,g){const t=k(g);return t.end(L),t}e.toStream=d;function D(){const L=k(()=>{throw new Error("not supported")});return L.end(),L}e.emptyStream=D;function n(L){let g=!1;return{read:()=>g?null:(g=!0,L)}}e.toReadable=n;function w(L,g,t){const i=k(t);return N(L,{onData:u=>i.write(g.data(u)),onError:u=>i.error(g.error?g.error(u):u),onEnd:()=>i.end()}),i}e.transform=w;function o(L,g,t){let i=!1;return{read:()=>{const u=g.read();return i?u:(i=!0,u!==null?t([L,u]):L)}}}e.prefixedReadable=o;function C(L,g,t){let i=!1;const u=k(t);return N(g,{onData:c=>i?u.write(c):(i=!0,u.write(t([L,c]))),onError:c=>u.error(c),onEnd:()=>{i||(i=!0,u.write(L)),u.end()}}),u}e.prefixedStream=C}),define(ge[14],we([0,1,21,39]),function(fe,e,R,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=e.prefixedBufferStream=e.prefixedBufferReadable=e.newWriteableBufferStream=e.streamToBufferReadableStream=e.bufferToStream=e.bufferedStreamToBuffer=e.streamToBuffer=e.bufferToReadable=e.readableToBuffer=e.writeUInt8=e.readUInt8=e.writeUInt32LE=e.readUInt32LE=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.binaryIndexOf=e.VSBuffer=void 0;const W=typeof Buffer<"u",$=new R.Lazy(()=>new Uint8Array(256));let H,k;class S{static alloc(y){return W?new S(Buffer.allocUnsafe(y)):new S(new Uint8Array(y))}static wrap(y){return W&&!Buffer.isBuffer(y)&&(y=Buffer.from(y.buffer,y.byteOffset,y.byteLength)),new S(y)}static fromString(y,q){return!(q?.dontUseNodeBuffer||!1)&&W?new S(Buffer.from(y)):(H||(H=new TextEncoder),new S(H.encode(y)))}static fromByteArray(y){const q=S.alloc(y.length);for(let J=0,oe=y.length;J<oe;J++)q.buffer[J]=y[J];return q}static concat(y,q){if(typeof q>"u"){q=0;for(let ae=0,me=y.length;ae<me;ae++)q+=y[ae].byteLength}const J=S.alloc(q);let oe=0;for(let ae=0,me=y.length;ae<me;ae++){const he=y[ae];J.set(he,oe),oe+=he.byteLength}return J}constructor(y){this.buffer=y,this.byteLength=this.buffer.byteLength}clone(){const y=S.alloc(this.byteLength);return y.set(this),y}toString(){return W?this.buffer.toString():(k||(k=new TextDecoder),k.decode(this.buffer))}slice(y,q){return new S(this.buffer.subarray(y,q))}set(y,q){if(y instanceof S)this.buffer.set(y.buffer,q);else if(y instanceof Uint8Array)this.buffer.set(y,q);else if(y instanceof ArrayBuffer)this.buffer.set(new Uint8Array(y),q);else if(ArrayBuffer.isView(y))this.buffer.set(new Uint8Array(y.buffer,y.byteOffset,y.byteLength),q);else throw new Error("Unknown argument 'array'")}readUInt32BE(y){return N(this.buffer,y)}writeUInt32BE(y,q){m(this.buffer,y,q)}readUInt32LE(y){return d(this.buffer,y)}writeUInt32LE(y,q){D(this.buffer,y,q)}readUInt8(y){return n(this.buffer,y)}writeUInt8(y,q){w(this.buffer,y,q)}indexOf(y,q=0){return _(this.buffer,y instanceof S?y.buffer:y,q)}}e.VSBuffer=S;function _(h,y,q=0){const J=y.byteLength,oe=h.byteLength;if(J===0)return 0;if(J===1)return h.indexOf(y[0]);if(J>oe-q)return-1;const ae=$.value;ae.fill(y.length);for(let re=0;re<y.length;re++)ae[y[re]]=y.length-re-1;let me=q+y.length-1,he=me,X=-1;for(;me<oe;)if(h[me]===y[he]){if(he===0){X=me;break}me--,he--}else me+=Math.max(y.length-he,ae[h[me]]),he=y.length-1;return X}e.binaryIndexOf=_;function F(h,y){return h[y+0]<<0>>>0|h[y+1]<<8>>>0}e.readUInt16LE=F;function M(h,y,q){h[q+0]=y&255,y=y>>>8,h[q+1]=y&255}e.writeUInt16LE=M;function N(h,y){return h[y]*2**24+h[y+1]*2**16+h[y+2]*2**8+h[y+3]}e.readUInt32BE=N;function m(h,y,q){h[q+3]=y,y=y>>>8,h[q+2]=y,y=y>>>8,h[q+1]=y,y=y>>>8,h[q]=y}e.writeUInt32BE=m;function d(h,y){return h[y+0]<<0>>>0|h[y+1]<<8>>>0|h[y+2]<<16>>>0|h[y+3]<<24>>>0}e.readUInt32LE=d;function D(h,y,q){h[q+0]=y&255,y=y>>>8,h[q+1]=y&255,y=y>>>8,h[q+2]=y&255,y=y>>>8,h[q+3]=y&255}e.writeUInt32LE=D;function n(h,y){return h[y]}e.readUInt8=n;function w(h,y,q){h[q]=y}e.writeUInt8=w;function o(h){return U.consumeReadable(h,y=>S.concat(y))}e.readableToBuffer=o;function C(h){return U.toReadable(h)}e.bufferToReadable=C;function L(h){return U.consumeStream(h,y=>S.concat(y))}e.streamToBuffer=L;async function g(h){return h.ended?S.concat(h.buffer):S.concat([...h.buffer,await L(h.stream)])}e.bufferedStreamToBuffer=g;function t(h){return U.toStream(h,y=>S.concat(y))}e.bufferToStream=t;function i(h){return U.transform(h,{data:y=>typeof y=="string"?S.fromString(y):S.wrap(y)},y=>S.concat(y))}e.streamToBufferReadableStream=i;function u(h){return U.newWriteableStream(y=>S.concat(y),h)}e.newWriteableBufferStream=u;function c(h,y){return U.prefixedReadable(h,y,q=>S.concat(q))}e.prefixedBufferReadable=c;function f(h,y){return U.prefixedStream(h,y,q=>S.concat(q))}e.prefixedBufferStream=f;function s(h){let y=0,q=0,J=0;const oe=new Uint8Array(Math.floor(h.length/4*3)),ae=he=>{switch(q){case 3:oe[J++]=y|he,q=0;break;case 2:oe[J++]=y|he>>>2,y=he<<6,q=3;break;case 1:oe[J++]=y|he>>>4,y=he<<4,q=2;break;default:y=he<<2,q=1}};for(let he=0;he<h.length;he++){const X=h.charCodeAt(he);if(X>=65&&X<=90)ae(X-65);else if(X>=97&&X<=122)ae(X-97+26);else if(X>=48&&X<=57)ae(X-48+52);else if(X===43||X===45)ae(62);else if(X===47||X===95)ae(63);else{if(X===61)break;throw new SyntaxError(`Unexpected base64 character ${h[he]}`)}}const me=J;for(;q>0;)ae(0);return S.wrap(oe).slice(0,me)}e.decodeBase64=s;const l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function T({buffer:h},y=!0,q=!1){const J=q?A:l;let oe="";const ae=h.byteLength%3;let me=0;for(;me<h.byteLength-ae;me+=3){const he=h[me+0],X=h[me+1],re=h[me+2];oe+=J[he>>>2],oe+=J[(he<<4|X>>>4)&63],oe+=J[(X<<2|re>>>6)&63],oe+=J[re&63]}if(ae===1){const he=h[me+0];oe+=J[he>>>2],oe+=J[he<<4&63],y&&(oe+="==")}else if(ae===2){const he=h[me+0],X=h[me+1];oe+=J[he>>>2],oe+=J[(he<<4|X>>>4)&63],oe+=J[X<<2&63],y&&(oe+="=")}return oe}e.encodeBase64=T}),define(ge[7],we([0,1,38,21]),function(fe,e,R,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InvisibleCharacters=e.AmbiguousCharacters=e.noBreakWhitespace=e.getLeftDeleteOffset=e.GraphemeBreakType=e.getGraphemeBreakType=e.singleLetterHash=e.getNLines=e.uppercaseFirstLetter=e.containsUppercaseCharacter=e.fuzzyContains=e.repeat=e.stripUTF8BOM=e.startsWithUTF8BOM=e.UTF8_BOM_CHARACTER=e.removeAnsiEscapeCodes=e.lcut=e.isEmojiImprecise=e.isFullWidthCharacter=e.containsUnusualLineTerminators=e.UNUSUAL_LINE_TERMINATORS=e.isBasicASCII=e.containsRTL=e.charCount=e.getCharContainingOffset=e.prevCharLength=e.nextCharLength=e.GraphemeIterator=e.CodePointIterator=e.getNextCodePoint=e.computeCodePoint=e.isLowSurrogate=e.isHighSurrogate=e.commonSuffixLength=e.commonPrefixLength=e.startsWithIgnoreCase=e.equalsIgnoreCase=e.isUpperAsciiLetter=e.isLowerAsciiLetter=e.isAsciiDigit=e.compareSubstringIgnoreCase=e.compareIgnoreCase=e.compareSubstring=e.compare=e.replaceAsync=e.lastNonWhitespaceIndex=e.getLeadingWhitespace=e.firstNonWhitespaceIndex=e.splitLines=e.regExpLeadsToEndlessLoop=e.createRegExp=e.stripWildcards=e.convertSimple2RegExpPattern=e.rtrim=e.ltrim=e.trim=e.truncate=e.count=e.escapeRegExpCharacters=e.escape=e.format2=e.format=e.isFalsyOrWhitespace=void 0;function W(v){return!v||typeof v!="string"?!0:v.trim().length===0}e.isFalsyOrWhitespace=W;const $=/{(\d+)}/g;function H(v,...j){return j.length===0?v:v.replace($,function(x,se){const de=parseInt(se,10);return isNaN(de)||de<0||de>=j.length?x:j[de]})}e.format=H;const k=/{([^}]+)}/g;function S(v,j){return v.replace(k,(x,se)=>j[se]??x)}e.format2=S;function _(v){return v.replace(/[<>&]/g,function(j){switch(j){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return j}})}e.escape=_;function F(v){return v.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=F;function M(v,j){let x=0;const se=j.charCodeAt(0);for(let de=v.length-1;de>=0;de--)v.charCodeAt(de)===se&&x++;return x}e.count=M;function N(v,j,x="\u2026"){return v.length<=j?v:`${v.substr(0,j)}${x}`}e.truncate=N;function m(v,j=" "){const x=d(v,j);return D(x,j)}e.trim=m;function d(v,j){if(!v||!j)return v;const x=j.length;if(x===0||v.length===0)return v;let se=0;for(;v.indexOf(j,se)===se;)se=se+x;return v.substring(se)}e.ltrim=d;function D(v,j){if(!v||!j)return v;const x=j.length,se=v.length;if(x===0||se===0)return v;let de=se,ye=-1;for(;ye=v.lastIndexOf(j,de-1),!(ye===-1||ye+x!==de);){if(ye===0)return"";de=ye}return v.substring(0,de)}e.rtrim=D;function n(v){return v.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=n;function w(v){return v.replace(/\*/g,"")}e.stripWildcards=w;function o(v,j,x={}){if(!v)throw new Error("Cannot create regex from empty string");j||(v=F(v)),x.wholeWord&&(/\B/.test(v.charAt(0))||(v="\\b"+v),/\B/.test(v.charAt(v.length-1))||(v=v+"\\b"));let se="";return x.global&&(se+="g"),x.matchCase||(se+="i"),x.multiline&&(se+="m"),x.unicode&&(se+="u"),new RegExp(v,se)}e.createRegExp=o;function C(v){return v.source==="^"||v.source==="^$"||v.source==="$"||v.source==="^\\s*$"?!1:!!(v.exec("")&&v.lastIndex===0)}e.regExpLeadsToEndlessLoop=C;function L(v){return v.split(/\r\n|\r|\n/)}e.splitLines=L;function g(v){for(let j=0,x=v.length;j<x;j++){const se=v.charCodeAt(j);if(se!==32&&se!==9)return j}return-1}e.firstNonWhitespaceIndex=g;function t(v,j=0,x=v.length){for(let se=j;se<x;se++){const de=v.charCodeAt(se);if(de!==32&&de!==9)return v.substring(j,se)}return v.substring(j,x)}e.getLeadingWhitespace=t;function i(v,j=v.length-1){for(let x=j;x>=0;x--){const se=v.charCodeAt(x);if(se!==32&&se!==9)return x}return-1}e.lastNonWhitespaceIndex=i;function u(v,j,x){const se=[];let de=0;for(const ye of v.matchAll(j)){if(se.push(v.slice(de,ye.index)),ye.index===void 0)throw new Error("match.index should be defined");de=ye.index+ye[0].length,se.push(x(ye[0],...ye.slice(1),ye.index,v,ye.groups))}return se.push(v.slice(de)),Promise.all(se).then(ye=>ye.join(""))}e.replaceAsync=u;function c(v,j){return v<j?-1:v>j?1:0}e.compare=c;function f(v,j,x=0,se=v.length,de=0,ye=j.length){for(;x<se&&de<ye;x++,de++){const De=v.charCodeAt(x),pe=j.charCodeAt(de);if(De<pe)return-1;if(De>pe)return 1}const Ae=se-x,Re=ye-de;return Ae<Re?-1:Ae>Re?1:0}e.compareSubstring=f;function s(v,j){return l(v,j,0,v.length,0,j.length)}e.compareIgnoreCase=s;function l(v,j,x=0,se=v.length,de=0,ye=j.length){for(;x<se&&de<ye;x++,de++){let De=v.charCodeAt(x),pe=j.charCodeAt(de);if(De===pe)continue;if(De>=128||pe>=128)return f(v.toLowerCase(),j.toLowerCase(),x,se,de,ye);T(De)&&(De-=32),T(pe)&&(pe-=32);const Le=De-pe;if(Le!==0)return Le}const Ae=se-x,Re=ye-de;return Ae<Re?-1:Ae>Re?1:0}e.compareSubstringIgnoreCase=l;function A(v){return v>=48&&v<=57}e.isAsciiDigit=A;function T(v){return v>=97&&v<=122}e.isLowerAsciiLetter=T;function h(v){return v>=65&&v<=90}e.isUpperAsciiLetter=h;function y(v,j){return v.length===j.length&&l(v,j)===0}e.equalsIgnoreCase=y;function q(v,j){const x=j.length;return j.length>v.length?!1:l(v,j,0,x)===0}e.startsWithIgnoreCase=q;function J(v,j){const x=Math.min(v.length,j.length);let se;for(se=0;se<x;se++)if(v.charCodeAt(se)!==j.charCodeAt(se))return se;return x}e.commonPrefixLength=J;function oe(v,j){const x=Math.min(v.length,j.length);let se;const de=v.length-1,ye=j.length-1;for(se=0;se<x;se++)if(v.charCodeAt(de-se)!==j.charCodeAt(ye-se))return se;return x}e.commonSuffixLength=oe;function ae(v){return 55296<=v&&v<=56319}e.isHighSurrogate=ae;function me(v){return 56320<=v&&v<=57343}e.isLowSurrogate=me;function he(v,j){return(v-55296<<10)+(j-56320)+65536}e.computeCodePoint=he;function X(v,j,x){const se=v.charCodeAt(x);if(ae(se)&&x+1<j){const de=v.charCodeAt(x+1);if(me(de))return he(se,de)}return se}e.getNextCodePoint=X;function re(v,j){const x=v.charCodeAt(j-1);if(me(x)&&j>1){const se=v.charCodeAt(j-2);if(ae(se))return he(se,x)}return x}class le{get offset(){return this._offset}constructor(j,x=0){this._str=j,this._len=j.length,this._offset=x}setOffset(j){this._offset=j}prevCodePoint(){const j=re(this._str,this._offset);return this._offset-=j>=65536?2:1,j}nextCodePoint(){const j=X(this._str,this._len,this._offset);return this._offset+=j>=65536?2:1,j}eol(){return this._offset>=this._len}}e.CodePointIterator=le;class K{get offset(){return this._iterator.offset}constructor(j,x=0){this._iterator=new le(j,x)}nextGraphemeLength(){const j=Pe.getInstance(),x=this._iterator,se=x.offset;let de=j.getGraphemeBreakType(x.nextCodePoint());for(;!x.eol();){const ye=x.offset,Ae=j.getGraphemeBreakType(x.nextCodePoint());if(_e(de,Ae)){x.setOffset(ye);break}de=Ae}return x.offset-se}prevGraphemeLength(){const j=Pe.getInstance(),x=this._iterator,se=x.offset;let de=j.getGraphemeBreakType(x.prevCodePoint());for(;x.offset>0;){const ye=x.offset,Ae=j.getGraphemeBreakType(x.prevCodePoint());if(_e(Ae,de)){x.setOffset(ye);break}de=Ae}return se-x.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=K;function p(v,j){return new K(v,j).nextGraphemeLength()}e.nextCharLength=p;function a(v,j){return new K(v,j).prevGraphemeLength()}e.prevCharLength=a;function r(v,j){j>0&&me(v.charCodeAt(j))&&j--;const x=j+p(v,j);return[x-a(v,x),x]}e.getCharContainingOffset=r;function P(v){const j=new K(v);let x=0;for(;!j.eol();)x++,j.nextGraphemeLength();return x}e.charCount=P;let G;function V(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function Z(v){return G||(G=V()),G.test(v)}e.containsRTL=Z;const ie=/^[\t\n\r\x20-\x7E]*$/;function Q(v){return ie.test(v)}e.isBasicASCII=Q,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function b(v){return e.UNUSUAL_LINE_TERMINATORS.test(v)}e.containsUnusualLineTerminators=b;function B(v){return v>=11904&&v<=55215||v>=63744&&v<=64255||v>=65281&&v<=65374}e.isFullWidthCharacter=B;function Y(v){return v>=127462&&v<=127487||v===8986||v===8987||v===9200||v===9203||v>=9728&&v<=10175||v===11088||v===11093||v>=127744&&v<=128591||v>=128640&&v<=128764||v>=128992&&v<=129008||v>=129280&&v<=129535||v>=129648&&v<=129782}e.isEmojiImprecise=Y;function te(v,j){if(v.length<j)return v;const x=/\b/g;let se=0;for(;x.test(v)&&!(v.length-x.lastIndex<j);)se=x.lastIndex,x.lastIndex+=1;return v.substring(se).replace(/^\s/,"")}e.lcut=te;const ce=/(:?\x1b\[|\x9B)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/g,ne=/\x1b\].*?\x07/g;function E(v){return v&&(v=v.replace(ce,"").replace(ne,"")),v}e.removeAnsiEscapeCodes=E,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function O(v){return!!(v&&v.length>0&&v.charCodeAt(0)===65279)}e.startsWithUTF8BOM=O;function I(v){return O(v)?v.substr(1):v}e.stripUTF8BOM=I;function z(v,j){let x="";for(let se=0;se<j;se++)x+=v;return x}e.repeat=z;function ee(v,j){if(!v||!j||v.length<j.length)return!1;const x=j.length,se=v.toLowerCase();let de=0,ye=-1;for(;de<x;){const Ae=se.indexOf(j[de],ye+1);if(Ae<0)return!1;ye=Ae,de++}return!0}e.fuzzyContains=ee;function ue(v,j=!1){return v?(j&&(v=v.replace(/\\./g,"")),v.toLowerCase()!==v):!1}e.containsUppercaseCharacter=ue;function Ee(v){return v.charAt(0).toUpperCase()+v.slice(1)}e.uppercaseFirstLetter=Ee;function ve(v,j=1){if(j===0)return"";let x=-1;do x=v.indexOf(`
`,x+1),j--;while(j>0&&x>=0);return x===-1?v:(v[x-1]==="\r"&&x--,v.substr(0,x))}e.getNLines=ve;function Ce(v){return v=v%(2*26),v<26?String.fromCharCode(97+v):String.fromCharCode(65+v-26)}e.singleLetterHash=Ce;function be(v){return Pe.getInstance().getGraphemeBreakType(v)}e.getGraphemeBreakType=be;function _e(v,j){return v===0?j!==5&&j!==7:v===2&&j===3?!1:v===4||v===2||v===3||j===4||j===2||j===3?!0:!(v===8&&(j===8||j===9||j===11||j===12)||(v===11||v===9)&&(j===9||j===10)||(v===12||v===10)&&j===10||j===5||j===13||j===7||v===1||v===13&&j===14||v===6&&j===6)}var Oe;(function(v){v[v.Other=0]="Other",v[v.Prepend=1]="Prepend",v[v.CR=2]="CR",v[v.LF=3]="LF",v[v.Control=4]="Control",v[v.Extend=5]="Extend",v[v.Regional_Indicator=6]="Regional_Indicator",v[v.SpacingMark=7]="SpacingMark",v[v.L=8]="L",v[v.V=9]="V",v[v.T=10]="T",v[v.LV=11]="LV",v[v.LVT=12]="LVT",v[v.ZWJ=13]="ZWJ",v[v.Extended_Pictographic=14]="Extended_Pictographic"})(Oe||(e.GraphemeBreakType=Oe={}));class Pe{static{this._INSTANCE=null}static getInstance(){return Pe._INSTANCE||(Pe._INSTANCE=new Pe),Pe._INSTANCE}constructor(){this._data=Ne()}getGraphemeBreakType(j){if(j<32)return j===10?3:j===13?2:4;if(j<127)return 0;const x=this._data,se=x.length/3;let de=1;for(;de<=se;)if(j<x[3*de])de=2*de;else if(j>x[3*de+1])de=2*de+1;else return x[3*de+2];return 0}}function Ne(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function Me(v,j){if(v===0)return 0;const x=$e(v,j);if(x!==void 0)return x;const se=new le(j,v);return se.prevCodePoint(),se.offset}e.getLeftDeleteOffset=Me;function $e(v,j){const x=new le(j,v);let se=x.prevCodePoint();for(;Be(se)||se===65039||se===8419;){if(x.offset===0)return;se=x.prevCodePoint()}if(!Y(se))return;let de=x.offset;return de>0&&x.prevCodePoint()===8205&&(de=x.offset),de}function Be(v){return 127995<=v&&v<=127999}var We;(function(v){v[v.zwj=8205]="zwj",v[v.emojiVariantSelector=65039]="emojiVariantSelector",v[v.enclosingKeyCap=8419]="enclosingKeyCap"})(We||(We={})),e.noBreakWhitespace="\xA0";class Fe{static{this.ambiguousCharacterData=new U.Lazy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))}static{this.cache=new R.LRUCachedFunction(j=>{function x(Le){const Ie=new Map;for(let Se=0;Se<Le.length;Se+=2)Ie.set(Le[Se],Le[Se+1]);return Ie}function se(Le,Ie){const Se=new Map(Le);for(const[ke,Ue]of Ie)Se.set(ke,Ue);return Se}function de(Le,Ie){if(!Le)return Ie;const Se=new Map;for(const[ke,Ue]of Le)Ie.has(ke)&&Se.set(ke,Ue);return Se}const ye=this.ambiguousCharacterData.value;let Ae=j.filter(Le=>!Le.startsWith("_")&&Le in ye);Ae.length===0&&(Ae=["_default"]);let Re;for(const Le of Ae){const Ie=x(ye[Le]);Re=de(Re,Ie)}const De=x(ye._common),pe=se(De,Re);return new Fe(pe)})}static getInstance(j){return Fe.cache.get(Array.from(j))}static{this._locales=new U.Lazy(()=>Object.keys(Fe.ambiguousCharacterData.value).filter(j=>!j.startsWith("_")))}static getLocales(){return Fe._locales.value}constructor(j){this.confusableDictionary=j}isAmbiguous(j){return this.confusableDictionary.has(j)}getPrimaryConfusable(j){return this.confusableDictionary.get(j)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=Fe;class Te{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(Te.getRawData())),this._data}static isInvisibleCharacter(j){return Te.getData().has(j)}static get codePoints(){return Te.getData()}}e.InvisibleCharacters=Te}),define(ge[40],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MicrotaskDelay=void 0,e.MicrotaskDelay=Symbol("MicrotaskDelay")}),define(ge[23],we([0,1,12,7]),function(fe,e,R,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class W{constructor(){this._value="",this._pos=0}reset(m){return this._value=m,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(m){const d=m.charCodeAt(0),D=this._value.charCodeAt(this._pos);return d-D}value(){return this._value[this._pos]}}e.StringIterator=W;class ${constructor(m=!0){this._caseSensitive=m}reset(m){return this._value=m,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let m=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(m)this._from++;else break;else m=!1;return this}cmp(m){return this._caseSensitive?(0,U.compareSubstring)(m,this._value,0,m.length,this._from,this._to):(0,U.compareSubstringIgnoreCase)(m,this._value,0,m.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=$;class H{constructor(m=!0,d=!0){this._splitOnBackslash=m,this._caseSensitive=d}reset(m){this._from=0,this._to=0,this._value=m,this._valueLen=m.length;for(let d=m.length-1;d>=0;d--,this._valueLen--){const D=this._value.charCodeAt(d);if(!(D===47||this._splitOnBackslash&&D===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let m=!0;for(;this._to<this._valueLen;this._to++){const d=this._value.charCodeAt(this._to);if(d===47||this._splitOnBackslash&&d===92)if(m)this._from++;else break;else m=!1}return this}cmp(m){return this._caseSensitive?(0,U.compareSubstring)(m,this._value,0,m.length,this._from,this._to):(0,U.compareSubstringIgnoreCase)(m,this._value,0,m.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=H;var k;(function(N){N[N.Scheme=1]="Scheme",N[N.Authority=2]="Authority",N[N.Path=3]="Path",N[N.Query=4]="Query",N[N.Fragment=5]="Fragment"})(k||(k={}));class S{constructor(m,d){this._ignorePathCasing=m,this._ignoreQueryAndFragment=d,this._states=[],this._stateIdx=0}reset(m){return this._value=m,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new H(!1,!this._ignorePathCasing(m)),this._pathIterator.reset(m.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(m)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(m){if(this._states[this._stateIdx]===1)return(0,U.compareIgnoreCase)(m,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,U.compareIgnoreCase)(m,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(m);if(this._states[this._stateIdx]===4)return(0,U.compare)(m,this._value.query);if(this._states[this._stateIdx]===5)return(0,U.compare)(m,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}e.UriIterator=S;class _{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const m=this.right;return this.right=m.left,m.left=this,this.updateHeight(),m.updateHeight(),m}rotateRight(){const m=this.left;return this.left=m.right,m.right=this,this.updateHeight(),m.updateHeight(),m}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}var F;(function(N){N[N.Left=-1]="Left",N[N.Mid=0]="Mid",N[N.Right=1]="Right"})(F||(F={}));class M{static forUris(m=()=>!1,d=()=>!1){return new M(new S(m,d))}static forPaths(m=!1){return new M(new H(void 0,!m))}static forStrings(){return new M(new W)}static forConfigKeys(){return new M(new $)}constructor(m){this._iter=m}clear(){this._root=void 0}fill(m,d){if(d){const D=d.slice(0);(0,R.shuffle)(D);for(const n of D)this.set(n,m)}else{const D=m.slice(0);(0,R.shuffle)(D);for(const n of D)this.set(n[0],n[1])}}set(m,d){const D=this._iter.reset(m);let n;this._root||(this._root=new _,this._root.segment=D.value());const w=[];for(n=this._root;;){const C=D.cmp(n.segment);if(C>0)n.left||(n.left=new _,n.left.segment=D.value()),w.push([-1,n]),n=n.left;else if(C<0)n.right||(n.right=new _,n.right.segment=D.value()),w.push([1,n]),n=n.right;else if(D.hasNext())D.next(),n.mid||(n.mid=new _,n.mid.segment=D.value()),w.push([0,n]),n=n.mid;else break}const o=n.value;n.value=d,n.key=m;for(let C=w.length-1;C>=0;C--){const L=w[C][1];L.updateHeight();const g=L.balanceFactor();if(g<-1||g>1){const t=w[C][0],i=w[C+1][0];if(t===1&&i===1)w[C][1]=L.rotateLeft();else if(t===-1&&i===-1)w[C][1]=L.rotateRight();else if(t===1&&i===-1)L.right=w[C+1][1]=w[C+1][1].rotateRight(),w[C][1]=L.rotateLeft();else if(t===-1&&i===1)L.left=w[C+1][1]=w[C+1][1].rotateLeft(),w[C][1]=L.rotateRight();else throw new Error;if(C>0)switch(w[C-1][0]){case-1:w[C-1][1].left=w[C][1];break;case 1:w[C-1][1].right=w[C][1];break;case 0:w[C-1][1].mid=w[C][1];break}else this._root=w[0][1]}}return o}get(m){return this._getNode(m)?.value}_getNode(m){const d=this._iter.reset(m);let D=this._root;for(;D;){const n=d.cmp(D.segment);if(n>0)D=D.left;else if(n<0)D=D.right;else if(d.hasNext())d.next(),D=D.mid;else break}return D}has(m){const d=this._getNode(m);return!(d?.value===void 0&&d?.mid===void 0)}delete(m){return this._delete(m,!1)}deleteSuperstr(m){return this._delete(m,!0)}_delete(m,d){const D=this._iter.reset(m),n=[];let w=this._root;for(;w;){const o=D.cmp(w.segment);if(o>0)n.push([-1,w]),w=w.left;else if(o<0)n.push([1,w]),w=w.right;else if(D.hasNext())D.next(),n.push([0,w]),w=w.mid;else break}if(w){if(d?(w.left=void 0,w.mid=void 0,w.right=void 0,w.height=1):(w.key=void 0,w.value=void 0),!w.mid&&!w.value)if(w.left&&w.right){const o=this._min(w.right);if(o.key){const{key:C,value:L,segment:g}=o;this._delete(o.key,!1),w.key=C,w.value=L,w.segment=g}}else{const o=w.left??w.right;if(n.length>0){const[C,L]=n[n.length-1];switch(C){case-1:L.left=o;break;case 0:L.mid=o;break;case 1:L.right=o;break}}else this._root=o}for(let o=n.length-1;o>=0;o--){const C=n[o][1];C.updateHeight();const L=C.balanceFactor();if(L>1?(C.right.balanceFactor()>=0||(C.right=C.right.rotateRight()),n[o][1]=C.rotateLeft()):L<-1&&(C.left.balanceFactor()<=0||(C.left=C.left.rotateLeft()),n[o][1]=C.rotateRight()),o>0)switch(n[o-1][0]){case-1:n[o-1][1].left=n[o][1];break;case 1:n[o-1][1].right=n[o][1];break;case 0:n[o-1][1].mid=n[o][1];break}else this._root=n[0][1]}}}_min(m){for(;m.left;)m=m.left;return m}findSubstr(m){const d=this._iter.reset(m);let D=this._root,n;for(;D;){const w=d.cmp(D.segment);if(w>0)D=D.left;else if(w<0)D=D.right;else if(d.hasNext())d.next(),n=D.value||n,D=D.mid;else break}return D&&D.value||n}findSuperstr(m){return this._findSuperstrOrElement(m,!1)}_findSuperstrOrElement(m,d){const D=this._iter.reset(m);let n=this._root;for(;n;){const w=D.cmp(n.segment);if(w>0)n=n.left;else if(w<0)n=n.right;else if(D.hasNext())D.next(),n=n.mid;else return n.mid?this._entries(n.mid):d?n.value:void 0}}hasElementOrSubtree(m){return this._findSuperstrOrElement(m,!0)!==void 0}forEach(m){for(const[d,D]of this)m(D,d)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(m){const d=[];return this._dfsEntries(m,d),d[Symbol.iterator]()}_dfsEntries(m,d){m&&(m.left&&this._dfsEntries(m.left,d),m.value&&d.push([m.key,m.value]),m.mid&&this._dfsEntries(m.mid,d),m.right&&this._dfsEntries(m.right,d))}_isBalanced(){const m=d=>{if(!d)return!0;const D=d.balanceFactor();return D<-1||D>1?!1:m(d.left)&&m(d.right)};return m(this._root)}}e.TernarySearchTree=M}),define(ge[8],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withNullAsUndefined=e.validateConstraint=e.validateConstraints=e.areFunctions=e.isFunction=e.isEmptyObject=e.assertAllDefined=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isStringArray=e.isString=void 0;function R(t){return typeof t=="string"}e.isString=R;function U(t){return Array.isArray(t)&&t.every(i=>R(i))}e.isStringArray=U;function W(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}e.isObject=W;function $(t){const i=Object.getPrototypeOf(Uint8Array);return typeof t=="object"&&t instanceof i}e.isTypedArray=$;function H(t){return typeof t=="number"&&!isNaN(t)}e.isNumber=H;function k(t){return!!t&&typeof t[Symbol.iterator]=="function"}e.isIterable=k;function S(t){return t===!0||t===!1}e.isBoolean=S;function _(t){return typeof t>"u"}e.isUndefined=_;function F(t){return!M(t)}e.isDefined=F;function M(t){return _(t)||t===null}e.isUndefinedOrNull=M;function N(t,i){if(!t)throw new Error(i?`Unexpected type, expected '${i}'`:"Unexpected type")}e.assertType=N;function m(t){if(M(t))throw new Error("Assertion Failed: argument is undefined or null");return t}e.assertIsDefined=m;function d(...t){const i=[];for(let u=0;u<t.length;u++){const c=t[u];if(M(c))throw new Error(`Assertion Failed: argument at index ${u} is undefined or null`);i.push(c)}return i}e.assertAllDefined=d;const D=Object.prototype.hasOwnProperty;function n(t){if(!W(t))return!1;for(const i in t)if(D.call(t,i))return!1;return!0}e.isEmptyObject=n;function w(t){return typeof t=="function"}e.isFunction=w;function o(...t){return t.length>0&&t.every(w)}e.areFunctions=o;function C(t,i){const u=Math.min(t.length,i.length);for(let c=0;c<u;c++)L(t[c],i[c])}e.validateConstraints=C;function L(t,i){if(R(i)){if(typeof t!==i)throw new Error(`argument does not match constraint: typeof ${i}`)}else if(w(i)){try{if(t instanceof i)return}catch{}if(!M(t)&&t.constructor===i||i.length===1&&i.call(void 0,t)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}e.validateConstraint=L;function g(t){return t===null?void 0:t}e.withNullAsUndefined=g}),define(ge[41],we([0,1,8]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.filter=e.getCaseInsensitive=e.distinct=e.getOrDefault=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function U(o){if(!o||typeof o!="object"||o instanceof RegExp)return o;const C=Array.isArray(o)?[]:{};return Object.entries(o).forEach(([L,g])=>{C[L]=g&&typeof g=="object"?U(g):g}),C}e.deepClone=U;function W(o){if(!o||typeof o!="object")return o;const C=[o];for(;C.length>0;){const L=C.shift();Object.freeze(L);for(const g in L)if($.call(L,g)){const t=L[g];typeof t=="object"&&!Object.isFrozen(t)&&!(0,R.isTypedArray)(t)&&C.push(t)}}return o}e.deepFreeze=W;const $=Object.prototype.hasOwnProperty;function H(o,C){return k(o,C,new Set)}e.cloneAndChange=H;function k(o,C,L){if((0,R.isUndefinedOrNull)(o))return o;const g=C(o);if(typeof g<"u")return g;if(Array.isArray(o)){const t=[];for(const i of o)t.push(k(i,C,L));return t}if((0,R.isObject)(o)){if(L.has(o))throw new Error("Cannot clone recursive data-structure");L.add(o);const t={};for(const i in o)$.call(o,i)&&(t[i]=k(o[i],C,L));return L.delete(o),t}return o}function S(o,C,L=!0){return(0,R.isObject)(o)?((0,R.isObject)(C)&&Object.keys(C).forEach(g=>{g in o?L&&((0,R.isObject)(o[g])&&(0,R.isObject)(C[g])?S(o[g],C[g],L):o[g]=C[g]):o[g]=C[g]}),o):C}e.mixin=S;function _(o,C){if(o===C)return!0;if(o==null||C===null||C===void 0||typeof o!=typeof C||typeof o!="object"||Array.isArray(o)!==Array.isArray(C))return!1;let L,g;if(Array.isArray(o)){if(o.length!==C.length)return!1;for(L=0;L<o.length;L++)if(!_(o[L],C[L]))return!1}else{const t=[];for(g in o)t.push(g);t.sort();const i=[];for(g in C)i.push(g);if(i.sort(),!_(t,i))return!1;for(L=0;L<t.length;L++)if(!_(o[t[L]],C[t[L]]))return!1}return!0}e.equals=_;function F(o){const C=new Set;return JSON.stringify(o,(L,g)=>{if((0,R.isObject)(g)||Array.isArray(g)){if(C.has(g))return"[Circular]";C.add(g)}return g})}e.safeStringify=F;function M(o,C,L){const g=C(o);return typeof g>"u"?L:g}e.getOrDefault=M;function N(o,C){const L=Object.create(null);return!o||!C||Object.keys(C).forEach(t=>{const i=o[t],u=C[t];_(i,u)||(L[t]=u)}),L}e.distinct=N;function m(o,C){const L=C.toLowerCase(),g=Object.keys(o).find(t=>t.toLowerCase()===L);return g?o[g]:o[C]}e.getCaseInsensitive=m;function d(o,C){const L=Object.create(null);for(const[g,t]of Object.entries(o))C(g,t)&&(L[g]=t);return L}e.filter=d;function D(o){let C=[];for(;Object.prototype!==o;)C=C.concat(Object.getOwnPropertyNames(o)),o=Object.getPrototypeOf(o);return C}e.getAllPropertyNames=D;function n(o){const C=[];for(const L of D(o))typeof o[L]=="function"&&C.push(L);return C}e.getAllMethodNames=n;function w(o,C){const L=t=>function(){const i=Array.prototype.slice.call(arguments,0);return C(t,i)},g={};for(const t of o)g[t]=L(t);return g}e.createProxyObject=w}),define(ge[24],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUtilityProcess=void 0;function R(U){return!!U.parentPort}e.isUtilityProcess=R}),define(ge[42],we([25,26]),function(fe,e){return fe.create("vs/base/common/errorMessage",e)}),define(ge[43],we([0,1,12,8,42]),function(fe,e,R,U,W){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.toErrorMessage=void 0;function $(M,N){return N&&(M.stack||M.stacktrace)?W.localize(0,null,k(M),H(M.stack)||H(M.stacktrace)):k(M)}function H(M){return Array.isArray(M)?M.join(`
`):M}function k(M){return M.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${M.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof M.code=="string"&&typeof M.errno=="number"&&typeof M.syscall=="string"?W.localize(1,null,M.message):M.message||W.localize(2,null)}function S(M=null,N=!1){if(!M)return W.localize(3,null);if(Array.isArray(M)){const m=R.coalesce(M),d=S(m[0],N);return m.length>1?W.localize(4,null,d,m.length):d}if(U.isString(M))return M;if(M.detail){const m=M.detail;if(m.error)return $(m.error,N);if(m.exception)return $(m.exception,N)}return M.stack?$(M,N):M.message?M.message:W.localize(5,null)}e.toErrorMessage=S;function _(M){const N=M;return N instanceof Error&&Array.isArray(N.actions)}e.isErrorWithActions=_;function F(M,N){let m;return typeof M=="string"?m=new Error(M):m=M,m.actions=N,m}e.createErrorWithActions=F}),define(ge[44],we([25,26]),function(fe,e){return fe.create("vs/base/common/platform",e)}),define(ge[2],we([0,1,44]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.OperatingSystem=e.setTimeout0=e.setTimeout0IsFaster=e.translationsConfigFile=e.platformLocale=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.isMobile=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=e.LANGUAGE_DEFAULT=void 0,e.LANGUAGE_DEFAULT="en";let U=!1,W=!1,$=!1,H=!1,k=!1,S=!1,_=!1,F=!1,M=!1,N=!1,m,d=e.LANGUAGE_DEFAULT,D=e.LANGUAGE_DEFAULT,n,w;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let o;typeof e.globals.vscode<"u"&&typeof e.globals.vscode.process<"u"?o=e.globals.vscode.process:typeof process<"u"&&(o=process);const C=typeof o?.versions?.electron=="string",L=C&&o?.type==="renderer";if(typeof navigator=="object"&&!L)w=navigator.userAgent,U=w.indexOf("Windows")>=0,W=w.indexOf("Macintosh")>=0,F=(w.indexOf("Macintosh")>=0||w.indexOf("iPad")>=0||w.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,$=w.indexOf("Linux")>=0,N=w?.indexOf("Mobi")>=0,S=!0,m=R.getConfiguredDefaultLocale(R.localize(0,null))||e.LANGUAGE_DEFAULT,d=m,D=navigator.language;else if(typeof o=="object"){U=o.platform==="win32",W=o.platform==="darwin",$=o.platform==="linux",H=$&&!!o.env.SNAP&&!!o.env.SNAP_REVISION,_=C,M=!!o.env.CI||!!o.env.BUILD_ARTIFACTSTAGINGDIRECTORY,m=e.LANGUAGE_DEFAULT,d=e.LANGUAGE_DEFAULT;const A=o.env.VSCODE_NLS_CONFIG;if(A)try{const T=JSON.parse(A),h=T.availableLanguages["*"];m=T.locale,D=T.osLocale,d=h||e.LANGUAGE_DEFAULT,n=T._translationsConfigFile}catch{}k=!0}else console.error("Unable to resolve platform.");var g;(function(A){A[A.Web=0]="Web",A[A.Mac=1]="Mac",A[A.Linux=2]="Linux",A[A.Windows=3]="Windows"})(g||(e.Platform=g={}));function t(A){switch(A){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=t;let i=0;W?i=1:U?i=3:$&&(i=2),e.isWindows=U,e.isMacintosh=W,e.isLinux=$,e.isLinuxSnap=H,e.isNative=k,e.isElectron=_,e.isWeb=S,e.isWebWorker=S&&typeof e.globals.importScripts=="function",e.isIOS=F,e.isMobile=N,e.isCI=M,e.platform=i,e.userAgent=w,e.language=d;var u;(function(A){function T(){return e.language}A.value=T;function h(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}A.isDefaultVariant=h;function y(){return e.language==="en"}A.isDefault=y})(u||(e.Language=u={})),e.locale=m,e.platformLocale=D,e.translationsConfigFile=n,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const A=[];e.globals.addEventListener("message",h=>{if(h.data&&h.data.vscodeScheduleAsyncWork)for(let y=0,q=A.length;y<q;y++){const J=A[y];if(J.id===h.data.vscodeScheduleAsyncWork){A.splice(y,1),J.callback();return}}});let T=0;return h=>{const y=++T;A.push({id:y,callback:h}),e.globals.postMessage({vscodeScheduleAsyncWork:y},"*")}}return A=>setTimeout(A)})();var c;(function(A){A[A.Windows=1]="Windows",A[A.Macintosh=2]="Macintosh",A[A.Linux=3]="Linux"})(c||(e.OperatingSystem=c={})),e.OS=W||F?2:U?1:3;let f=!0,s=!1;function l(){if(!s){s=!0;const A=new Uint8Array(2);A[0]=1,A[1]=2,f=new Uint16Array(A.buffer)[0]===(2<<8)+1}return f}e.isLittleEndian=l,e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(ge[27],we([0,1,2]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let U;if(typeof R.globals.vscode<"u"&&typeof R.globals.vscode.process<"u"){const W=R.globals.vscode.process;U={get platform(){return W.platform},get arch(){return W.arch},get env(){return W.env},cwd(){return W.cwd()}}}else typeof process<"u"?U={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:U={get platform(){return R.isWindows?"win32":R.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=U.cwd,e.env=U.env,e.platform=U.platform,e.arch=U.arch}),define(ge[3],we([0,1,27]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delimiter=e.sep=e.toNamespacedPath=e.parse=e.format=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.join=e.isAbsolute=e.normalize=e.posix=e.win32=void 0;const U=65,W=97,$=90,H=122,k=46,S=47,_=92,F=58,M=63;class N extends Error{constructor(i,u,c){let f;typeof u=="string"&&u.indexOf("not ")===0?(f="must not be",u=u.replace(/^not /,"")):f="must be";const s=i.indexOf(".")!==-1?"property":"argument";let l=`The "${i}" ${s} ${f} of type ${u}`;l+=`. Received type ${typeof c}`,super(l),this.code="ERR_INVALID_ARG_TYPE"}}function m(t,i){if(t===null||typeof t!="object")throw new N(i,"Object",t)}function d(t,i){if(typeof t!="string")throw new N(i,"string",t)}const D=R.platform==="win32";function n(t){return t===S||t===_}function w(t){return t===S}function o(t){return t>=U&&t<=$||t>=W&&t<=H}function C(t,i,u,c){let f="",s=0,l=-1,A=0,T=0;for(let h=0;h<=t.length;++h){if(h<t.length)T=t.charCodeAt(h);else{if(c(T))break;T=S}if(c(T)){if(!(l===h-1||A===1))if(A===2){if(f.length<2||s!==2||f.charCodeAt(f.length-1)!==k||f.charCodeAt(f.length-2)!==k){if(f.length>2){const y=f.lastIndexOf(u);y===-1?(f="",s=0):(f=f.slice(0,y),s=f.length-1-f.lastIndexOf(u)),l=h,A=0;continue}else if(f.length!==0){f="",s=0,l=h,A=0;continue}}i&&(f+=f.length>0?`${u}..`:"..",s=2)}else f.length>0?f+=`${u}${t.slice(l+1,h)}`:f=t.slice(l+1,h),s=h-l-1;l=h,A=0}else T===k&&A!==-1?++A:A=-1}return f}function L(t,i){m(i,"pathObject");const u=i.dir||i.root,c=i.base||`${i.name||""}${i.ext||""}`;return u?u===i.root?`${u}${c}`:`${u}${t}${c}`:c}e.win32={resolve(...t){let i="",u="",c=!1;for(let f=t.length-1;f>=-1;f--){let s;if(f>=0){if(s=t[f],d(s,"path"),s.length===0)continue}else i.length===0?s=R.cwd():(s=R.env[`=${i}`]||R.cwd(),(s===void 0||s.slice(0,2).toLowerCase()!==i.toLowerCase()&&s.charCodeAt(2)===_)&&(s=`${i}\\`));const l=s.length;let A=0,T="",h=!1;const y=s.charCodeAt(0);if(l===1)n(y)&&(A=1,h=!0);else if(n(y))if(h=!0,n(s.charCodeAt(1))){let q=2,J=q;for(;q<l&&!n(s.charCodeAt(q));)q++;if(q<l&&q!==J){const oe=s.slice(J,q);for(J=q;q<l&&n(s.charCodeAt(q));)q++;if(q<l&&q!==J){for(J=q;q<l&&!n(s.charCodeAt(q));)q++;(q===l||q!==J)&&(T=`\\\\${oe}\\${s.slice(J,q)}`,A=q)}}}else A=1;else o(y)&&s.charCodeAt(1)===F&&(T=s.slice(0,2),A=2,l>2&&n(s.charCodeAt(2))&&(h=!0,A=3));if(T.length>0)if(i.length>0){if(T.toLowerCase()!==i.toLowerCase())continue}else i=T;if(c){if(i.length>0)break}else if(u=`${s.slice(A)}\\${u}`,c=h,h&&i.length>0)break}return u=C(u,!c,"\\",n),c?`${i}\\${u}`:`${i}${u}`||"."},normalize(t){d(t,"path");const i=t.length;if(i===0)return".";let u=0,c,f=!1;const s=t.charCodeAt(0);if(i===1)return w(s)?"\\":t;if(n(s))if(f=!0,n(t.charCodeAt(1))){let A=2,T=A;for(;A<i&&!n(t.charCodeAt(A));)A++;if(A<i&&A!==T){const h=t.slice(T,A);for(T=A;A<i&&n(t.charCodeAt(A));)A++;if(A<i&&A!==T){for(T=A;A<i&&!n(t.charCodeAt(A));)A++;if(A===i)return`\\\\${h}\\${t.slice(T)}\\`;A!==T&&(c=`\\\\${h}\\${t.slice(T,A)}`,u=A)}}}else u=1;else o(s)&&t.charCodeAt(1)===F&&(c=t.slice(0,2),u=2,i>2&&n(t.charCodeAt(2))&&(f=!0,u=3));let l=u<i?C(t.slice(u),!f,"\\",n):"";return l.length===0&&!f&&(l="."),l.length>0&&n(t.charCodeAt(i-1))&&(l+="\\"),c===void 0?f?`\\${l}`:l:f?`${c}\\${l}`:`${c}${l}`},isAbsolute(t){d(t,"path");const i=t.length;if(i===0)return!1;const u=t.charCodeAt(0);return n(u)||i>2&&o(u)&&t.charCodeAt(1)===F&&n(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let i,u;for(let s=0;s<t.length;++s){const l=t[s];d(l,"path"),l.length>0&&(i===void 0?i=u=l:i+=`\\${l}`)}if(i===void 0)return".";let c=!0,f=0;if(typeof u=="string"&&n(u.charCodeAt(0))){++f;const s=u.length;s>1&&n(u.charCodeAt(1))&&(++f,s>2&&(n(u.charCodeAt(2))?++f:c=!1))}if(c){for(;f<i.length&&n(i.charCodeAt(f));)f++;f>=2&&(i=`\\${i.slice(f)}`)}return e.win32.normalize(i)},relative(t,i){if(d(t,"from"),d(i,"to"),t===i)return"";const u=e.win32.resolve(t),c=e.win32.resolve(i);if(u===c||(t=u.toLowerCase(),i=c.toLowerCase(),t===i))return"";let f=0;for(;f<t.length&&t.charCodeAt(f)===_;)f++;let s=t.length;for(;s-1>f&&t.charCodeAt(s-1)===_;)s--;const l=s-f;let A=0;for(;A<i.length&&i.charCodeAt(A)===_;)A++;let T=i.length;for(;T-1>A&&i.charCodeAt(T-1)===_;)T--;const h=T-A,y=l<h?l:h;let q=-1,J=0;for(;J<y;J++){const ae=t.charCodeAt(f+J);if(ae!==i.charCodeAt(A+J))break;ae===_&&(q=J)}if(J!==y){if(q===-1)return c}else{if(h>y){if(i.charCodeAt(A+J)===_)return c.slice(A+J+1);if(J===2)return c.slice(A+J)}l>y&&(t.charCodeAt(f+J)===_?q=J:J===2&&(q=3)),q===-1&&(q=0)}let oe="";for(J=f+q+1;J<=s;++J)(J===s||t.charCodeAt(J)===_)&&(oe+=oe.length===0?"..":"\\..");return A+=q,oe.length>0?`${oe}${c.slice(A,T)}`:(c.charCodeAt(A)===_&&++A,c.slice(A,T))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const i=e.win32.resolve(t);if(i.length<=2)return t;if(i.charCodeAt(0)===_){if(i.charCodeAt(1)===_){const u=i.charCodeAt(2);if(u!==M&&u!==k)return`\\\\?\\UNC\\${i.slice(2)}`}}else if(o(i.charCodeAt(0))&&i.charCodeAt(1)===F&&i.charCodeAt(2)===_)return`\\\\?\\${i}`;return t},dirname(t){d(t,"path");const i=t.length;if(i===0)return".";let u=-1,c=0;const f=t.charCodeAt(0);if(i===1)return n(f)?t:".";if(n(f)){if(u=c=1,n(t.charCodeAt(1))){let A=2,T=A;for(;A<i&&!n(t.charCodeAt(A));)A++;if(A<i&&A!==T){for(T=A;A<i&&n(t.charCodeAt(A));)A++;if(A<i&&A!==T){for(T=A;A<i&&!n(t.charCodeAt(A));)A++;if(A===i)return t;A!==T&&(u=c=A+1)}}}}else o(f)&&t.charCodeAt(1)===F&&(u=i>2&&n(t.charCodeAt(2))?3:2,c=u);let s=-1,l=!0;for(let A=i-1;A>=c;--A)if(n(t.charCodeAt(A))){if(!l){s=A;break}}else l=!1;if(s===-1){if(u===-1)return".";s=u}return t.slice(0,s)},basename(t,i){i!==void 0&&d(i,"ext"),d(t,"path");let u=0,c=-1,f=!0,s;if(t.length>=2&&o(t.charCodeAt(0))&&t.charCodeAt(1)===F&&(u=2),i!==void 0&&i.length>0&&i.length<=t.length){if(i===t)return"";let l=i.length-1,A=-1;for(s=t.length-1;s>=u;--s){const T=t.charCodeAt(s);if(n(T)){if(!f){u=s+1;break}}else A===-1&&(f=!1,A=s+1),l>=0&&(T===i.charCodeAt(l)?--l===-1&&(c=s):(l=-1,c=A))}return u===c?c=A:c===-1&&(c=t.length),t.slice(u,c)}for(s=t.length-1;s>=u;--s)if(n(t.charCodeAt(s))){if(!f){u=s+1;break}}else c===-1&&(f=!1,c=s+1);return c===-1?"":t.slice(u,c)},extname(t){d(t,"path");let i=0,u=-1,c=0,f=-1,s=!0,l=0;t.length>=2&&t.charCodeAt(1)===F&&o(t.charCodeAt(0))&&(i=c=2);for(let A=t.length-1;A>=i;--A){const T=t.charCodeAt(A);if(n(T)){if(!s){c=A+1;break}continue}f===-1&&(s=!1,f=A+1),T===k?u===-1?u=A:l!==1&&(l=1):u!==-1&&(l=-1)}return u===-1||f===-1||l===0||l===1&&u===f-1&&u===c+1?"":t.slice(u,f)},format:L.bind(null,"\\"),parse(t){d(t,"path");const i={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return i;const u=t.length;let c=0,f=t.charCodeAt(0);if(u===1)return n(f)?(i.root=i.dir=t,i):(i.base=i.name=t,i);if(n(f)){if(c=1,n(t.charCodeAt(1))){let q=2,J=q;for(;q<u&&!n(t.charCodeAt(q));)q++;if(q<u&&q!==J){for(J=q;q<u&&n(t.charCodeAt(q));)q++;if(q<u&&q!==J){for(J=q;q<u&&!n(t.charCodeAt(q));)q++;q===u?c=q:q!==J&&(c=q+1)}}}}else if(o(f)&&t.charCodeAt(1)===F){if(u<=2)return i.root=i.dir=t,i;if(c=2,n(t.charCodeAt(2))){if(u===3)return i.root=i.dir=t,i;c=3}}c>0&&(i.root=t.slice(0,c));let s=-1,l=c,A=-1,T=!0,h=t.length-1,y=0;for(;h>=c;--h){if(f=t.charCodeAt(h),n(f)){if(!T){l=h+1;break}continue}A===-1&&(T=!1,A=h+1),f===k?s===-1?s=h:y!==1&&(y=1):s!==-1&&(y=-1)}return A!==-1&&(s===-1||y===0||y===1&&s===A-1&&s===l+1?i.base=i.name=t.slice(l,A):(i.name=t.slice(l,s),i.base=t.slice(l,A),i.ext=t.slice(s,A))),l>0&&l!==c?i.dir=t.slice(0,l-1):i.dir=i.root,i},sep:"\\",delimiter:";",win32:null,posix:null};const g=(()=>{if(D){const t=/\\/g;return()=>{const i=R.cwd().replace(t,"/");return i.slice(i.indexOf("/"))}}return()=>R.cwd()})();e.posix={resolve(...t){let i="",u=!1;for(let c=t.length-1;c>=-1&&!u;c--){const f=c>=0?t[c]:g();d(f,"path"),f.length!==0&&(i=`${f}/${i}`,u=f.charCodeAt(0)===S)}return i=C(i,!u,"/",w),u?`/${i}`:i.length>0?i:"."},normalize(t){if(d(t,"path"),t.length===0)return".";const i=t.charCodeAt(0)===S,u=t.charCodeAt(t.length-1)===S;return t=C(t,!i,"/",w),t.length===0?i?"/":u?"./":".":(u&&(t+="/"),i?`/${t}`:t)},isAbsolute(t){return d(t,"path"),t.length>0&&t.charCodeAt(0)===S},join(...t){if(t.length===0)return".";let i;for(let u=0;u<t.length;++u){const c=t[u];d(c,"path"),c.length>0&&(i===void 0?i=c:i+=`/${c}`)}return i===void 0?".":e.posix.normalize(i)},relative(t,i){if(d(t,"from"),d(i,"to"),t===i||(t=e.posix.resolve(t),i=e.posix.resolve(i),t===i))return"";const u=1,c=t.length,f=c-u,s=1,l=i.length-s,A=f<l?f:l;let T=-1,h=0;for(;h<A;h++){const q=t.charCodeAt(u+h);if(q!==i.charCodeAt(s+h))break;q===S&&(T=h)}if(h===A)if(l>A){if(i.charCodeAt(s+h)===S)return i.slice(s+h+1);if(h===0)return i.slice(s+h)}else f>A&&(t.charCodeAt(u+h)===S?T=h:h===0&&(T=0));let y="";for(h=u+T+1;h<=c;++h)(h===c||t.charCodeAt(h)===S)&&(y+=y.length===0?"..":"/..");return`${y}${i.slice(s+T)}`},toNamespacedPath(t){return t},dirname(t){if(d(t,"path"),t.length===0)return".";const i=t.charCodeAt(0)===S;let u=-1,c=!0;for(let f=t.length-1;f>=1;--f)if(t.charCodeAt(f)===S){if(!c){u=f;break}}else c=!1;return u===-1?i?"/":".":i&&u===1?"//":t.slice(0,u)},basename(t,i){i!==void 0&&d(i,"ext"),d(t,"path");let u=0,c=-1,f=!0,s;if(i!==void 0&&i.length>0&&i.length<=t.length){if(i===t)return"";let l=i.length-1,A=-1;for(s=t.length-1;s>=0;--s){const T=t.charCodeAt(s);if(T===S){if(!f){u=s+1;break}}else A===-1&&(f=!1,A=s+1),l>=0&&(T===i.charCodeAt(l)?--l===-1&&(c=s):(l=-1,c=A))}return u===c?c=A:c===-1&&(c=t.length),t.slice(u,c)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===S){if(!f){u=s+1;break}}else c===-1&&(f=!1,c=s+1);return c===-1?"":t.slice(u,c)},extname(t){d(t,"path");let i=-1,u=0,c=-1,f=!0,s=0;for(let l=t.length-1;l>=0;--l){const A=t.charCodeAt(l);if(A===S){if(!f){u=l+1;break}continue}c===-1&&(f=!1,c=l+1),A===k?i===-1?i=l:s!==1&&(s=1):i!==-1&&(s=-1)}return i===-1||c===-1||s===0||s===1&&i===c-1&&i===u+1?"":t.slice(i,c)},format:L.bind(null,"/"),parse(t){d(t,"path");const i={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return i;const u=t.charCodeAt(0)===S;let c;u?(i.root="/",c=1):c=0;let f=-1,s=0,l=-1,A=!0,T=t.length-1,h=0;for(;T>=c;--T){const y=t.charCodeAt(T);if(y===S){if(!A){s=T+1;break}continue}l===-1&&(A=!1,l=T+1),y===k?f===-1?f=T:h!==1&&(h=1):f!==-1&&(h=-1)}if(l!==-1){const y=s===0&&u?1:s;f===-1||h===0||h===1&&f===l-1&&f===s+1?i.base=i.name=t.slice(y,l):(i.name=t.slice(y,f),i.base=t.slice(y,l),i.ext=t.slice(f,l))}return s>0?i.dir=t.slice(0,s-1):u&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=D?e.win32.normalize:e.posix.normalize,e.isAbsolute=D?e.win32.isAbsolute:e.posix.isAbsolute,e.join=D?e.win32.join:e.posix.join,e.resolve=D?e.win32.resolve:e.posix.resolve,e.relative=D?e.win32.relative:e.posix.relative,e.dirname=D?e.win32.dirname:e.posix.dirname,e.basename=D?e.win32.basename:e.posix.basename,e.extname=D?e.win32.extname:e.posix.extname,e.format=D?e.win32.format:e.posix.format,e.parse=D?e.win32.parse:e.posix.parse,e.toNamespacedPath=D?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=D?e.win32.sep:e.posix.sep,e.delimiter=D?e.win32.delimiter:e.posix.delimiter}),define(ge[13],we([0,1,3,2,7,8]),function(fe,e,R,U,W,$){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomPath=e.parseLineAndColumnAware=e.indexOfPath=e.getDriveLetter=e.hasDriveLetter=e.isRootOrDriveLetter=e.sanitizeFilePath=e.isWindowsDriveLetter=e.isEqualOrParent=e.isEqual=e.isValidBasename=e.isUNC=e.getRoot=e.toPosixPath=e.toSlashes=e.isPathSeparator=void 0;function H(s){return s===47||s===92}e.isPathSeparator=H;function k(s){return s.replace(/[\\/]/g,R.posix.sep)}e.toSlashes=k;function S(s){return s.indexOf("/")===-1&&(s=k(s)),/^[a-zA-Z]:(\/|$)/.test(s)&&(s="/"+s),s}e.toPosixPath=S;function _(s,l=R.posix.sep){if(!s)return"";const A=s.length,T=s.charCodeAt(0);if(H(T)){if(H(s.charCodeAt(1))&&!H(s.charCodeAt(2))){let y=3;const q=y;for(;y<A&&!H(s.charCodeAt(y));y++);if(q!==y&&!H(s.charCodeAt(y+1))){for(y+=1;y<A;y++)if(H(s.charCodeAt(y)))return s.slice(0,y+1).replace(/[\\/]/g,l)}}return l}else if(w(T)&&s.charCodeAt(1)===58)return H(s.charCodeAt(2))?s.slice(0,2)+l:s.slice(0,2);let h=s.indexOf("://");if(h!==-1){for(h+=3;h<A;h++)if(H(s.charCodeAt(h)))return s.slice(0,h+1)}return""}e.getRoot=_;function F(s){if(!U.isWindows||!s||s.length<5)return!1;let l=s.charCodeAt(0);if(l!==92||(l=s.charCodeAt(1),l!==92))return!1;let A=2;const T=A;for(;A<s.length&&(l=s.charCodeAt(A),l!==92);A++);return!(T===A||(l=s.charCodeAt(A+1),isNaN(l)||l===92))}e.isUNC=F;const M=/[\\/:\*\?"<>\|]/g,N=/[\\/]/g,m=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function d(s,l=U.isWindows){const A=l?M:N;return!(!s||s.length===0||/^\s+$/.test(s)||(A.lastIndex=0,A.test(s))||l&&m.test(s)||s==="."||s===".."||l&&s[s.length-1]==="."||l&&s.length!==s.trim().length||s.length>255)}e.isValidBasename=d;function D(s,l,A){const T=s===l;return!A||T?T:!s||!l?!1:(0,W.equalsIgnoreCase)(s,l)}e.isEqual=D;function n(s,l,A,T=R.sep){if(s===l)return!0;if(!s||!l||l.length>s.length)return!1;if(A){if(!(0,W.startsWithIgnoreCase)(s,l))return!1;if(l.length===s.length)return!0;let y=l.length;return l.charAt(l.length-1)===T&&y--,s.charAt(y)===T}return l.charAt(l.length-1)!==T&&(l+=T),s.indexOf(l)===0}e.isEqualOrParent=n;function w(s){return s>=65&&s<=90||s>=97&&s<=122}e.isWindowsDriveLetter=w;function o(s,l){return U.isWindows&&s.endsWith(":")&&(s+=R.sep),(0,R.isAbsolute)(s)||(s=(0,R.join)(l,s)),s=(0,R.normalize)(s),U.isWindows?(s=(0,W.rtrim)(s,R.sep),s.endsWith(":")&&(s+=R.sep)):(s=(0,W.rtrim)(s,R.sep),s||(s=R.sep)),s}e.sanitizeFilePath=o;function C(s){const l=(0,R.normalize)(s);return U.isWindows?s.length>3?!1:L(l)&&(s.length===2||l.charCodeAt(2)===92):l===R.posix.sep}e.isRootOrDriveLetter=C;function L(s,l=U.isWindows){return l?w(s.charCodeAt(0))&&s.charCodeAt(1)===58:!1}e.hasDriveLetter=L;function g(s,l=U.isWindows){return L(s,l)?s[0]:void 0}e.getDriveLetter=g;function t(s,l,A){return l.length>s.length?-1:s===l?0:(A&&(s=s.toLowerCase(),l=l.toLowerCase()),s.indexOf(l))}e.indexOfPath=t;function i(s){const l=s.split(":");let A,T,h;for(const y of l){const q=Number(y);(0,$.isNumber)(q)?T===void 0?T=q:h===void 0&&(h=q):A=A?[A,y].join(":"):y}if(!A)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:A,line:T!==void 0?T:void 0,column:h!==void 0?h:T!==void 0?1:void 0}}e.parseLineAndColumnAware=i;const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",c="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789";function f(s,l,A=8){let T="";for(let y=0;y<A;y++){let q;y===0&&U.isWindows&&!l&&(A===3||A===4)?q=c:q=u,T+=q.charAt(Math.floor(Math.random()*q.length))}let h;return l?h=`${l}-${T}`:h=T,s?(0,R.join)(s,h):h}e.randomPath=f}),define(ge[28],we([0,1,2]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDangerousEnvVariables=e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var U;(function(k){k[k.stdout=0]="stdout",k[k.stderr=1]="stderr"})(U||(e.Source=U={}));var W;(function(k){k[k.Success=0]="Success",k[k.Unknown=1]="Unknown",k[k.AccessDenied=2]="AccessDenied",k[k.ProcessNotFound=3]="ProcessNotFound"})(W||(e.TerminateResponseCode=W={}));function $(k,...S){const _=S.reduce((N,m)=>(N[m]=!0,N),{}),F=[/^ELECTRON_.+$/,/^VSCODE_(?!(PORTABLE|SHELL_LOGIN|ENV_REPLACE|ENV_APPEND|ENV_PREPEND)).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/];Object.keys(k).filter(N=>!_[N]).forEach(N=>{for(let m=0;m<F.length;m++)if(N.search(F[m])!==-1){delete k[N];break}})}e.sanitizeProcessEnvironment=$;function H(k){k&&(delete k.DEBUG,R.isMacintosh&&delete k.DYLD_LIBRARY_PATH,R.isLinux&&delete k.LD_PRELOAD)}e.removeDangerousEnvVariables=H}),define(ge[9],we([0,1,3,2]),function(fe,e,R,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.isUriComponents=e.URI=void 0;const W=/^\w[\w\d+.-]*$/,$=/^\//,H=/^\/\//;function k(c,f){if(!c.scheme&&f)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${c.authority}", path: "${c.path}", query: "${c.query}", fragment: "${c.fragment}"}`);if(c.scheme&&!W.test(c.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(c.path){if(c.authority){if(!$.test(c.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(H.test(c.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function S(c,f){return!c&&!f?"file":c}function _(c,f){switch(c){case"https":case"http":case"file":f?f[0]!==M&&(f=M+f):f=M;break}return f}const F="",M="/",N=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{static isUri(f){return f instanceof m?!0:f?typeof f.authority=="string"&&typeof f.fragment=="string"&&typeof f.path=="string"&&typeof f.query=="string"&&typeof f.scheme=="string"&&typeof f.fsPath=="string"&&typeof f.with=="function"&&typeof f.toString=="function":!1}constructor(f,s,l,A,T,h=!1){typeof f=="object"?(this.scheme=f.scheme||F,this.authority=f.authority||F,this.path=f.path||F,this.query=f.query||F,this.fragment=f.fragment||F):(this.scheme=S(f,h),this.authority=s||F,this.path=_(this.scheme,l||F),this.query=A||F,this.fragment=T||F,k(this,h))}get fsPath(){return L(this,!1)}with(f){if(!f)return this;let{scheme:s,authority:l,path:A,query:T,fragment:h}=f;return s===void 0?s=this.scheme:s===null&&(s=F),l===void 0?l=this.authority:l===null&&(l=F),A===void 0?A=this.path:A===null&&(A=F),T===void 0?T=this.query:T===null&&(T=F),h===void 0?h=this.fragment:h===null&&(h=F),s===this.scheme&&l===this.authority&&A===this.path&&T===this.query&&h===this.fragment?this:new n(s,l,A,T,h)}static parse(f,s=!1){const l=N.exec(f);return l?new n(l[2]||F,u(l[4]||F),u(l[5]||F),u(l[7]||F),u(l[9]||F),s):new n(F,F,F,F,F)}static file(f){let s=F;if(U.isWindows&&(f=f.replace(/\\/g,M)),f[0]===M&&f[1]===M){const l=f.indexOf(M,2);l===-1?(s=f.substring(2),f=M):(s=f.substring(2,l),f=f.substring(l)||M)}return new n("file",s,f,F,F)}static from(f,s){return new n(f.scheme,f.authority,f.path,f.query,f.fragment,s)}static joinPath(f,...s){if(!f.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let l;return U.isWindows&&f.scheme==="file"?l=m.file(R.win32.join(L(f,!0),...s)).path:l=R.posix.join(f.path,...s),f.with({path:l})}toString(f=!1){return g(this,f)}toJSON(){return this}static revive(f){if(f){if(f instanceof m)return f;{const s=new n(f);return s._formatted=f.external??null,s._fsPath=f._sep===D?f.fsPath??null:null,s}}else return}}e.URI=m;function d(c){return!c||typeof c!="object"?!1:typeof c.scheme=="string"&&(typeof c.authority=="string"||typeof c.authority>"u")&&(typeof c.path=="string"||typeof c.path>"u")&&(typeof c.query=="string"||typeof c.query>"u")&&(typeof c.fragment=="string"||typeof c.fragment>"u")}e.isUriComponents=d;const D=U.isWindows?1:void 0;class n extends m{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=L(this,!1)),this._fsPath}toString(f=!1){return f?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)}toJSON(){const f={$mid:1};return this._fsPath&&(f.fsPath=this._fsPath,f._sep=D),this._formatted&&(f.external=this._formatted),this.path&&(f.path=this.path),this.scheme&&(f.scheme=this.scheme),this.authority&&(f.authority=this.authority),this.query&&(f.query=this.query),this.fragment&&(f.fragment=this.fragment),f}}const w={[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 o(c,f,s){let l,A=-1;for(let T=0;T<c.length;T++){const h=c.charCodeAt(T);if(h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===45||h===46||h===95||h===126||f&&h===47||s&&h===91||s&&h===93||s&&h===58)A!==-1&&(l+=encodeURIComponent(c.substring(A,T)),A=-1),l!==void 0&&(l+=c.charAt(T));else{l===void 0&&(l=c.substr(0,T));const y=w[h];y!==void 0?(A!==-1&&(l+=encodeURIComponent(c.substring(A,T)),A=-1),l+=y):A===-1&&(A=T)}}return A!==-1&&(l+=encodeURIComponent(c.substring(A))),l!==void 0?l:c}function C(c){let f;for(let s=0;s<c.length;s++){const l=c.charCodeAt(s);l===35||l===63?(f===void 0&&(f=c.substr(0,s)),f+=w[l]):f!==void 0&&(f+=c[s])}return f!==void 0?f:c}function L(c,f){let s;return c.authority&&c.path.length>1&&c.scheme==="file"?s=`//${c.authority}${c.path}`:c.path.charCodeAt(0)===47&&(c.path.charCodeAt(1)>=65&&c.path.charCodeAt(1)<=90||c.path.charCodeAt(1)>=97&&c.path.charCodeAt(1)<=122)&&c.path.charCodeAt(2)===58?f?s=c.path.substr(1):s=c.path[1].toLowerCase()+c.path.substr(2):s=c.path,U.isWindows&&(s=s.replace(/\//g,"\\")),s}e.uriToFsPath=L;function g(c,f){const s=f?C:o;let l="",{scheme:A,authority:T,path:h,query:y,fragment:q}=c;if(A&&(l+=A,l+=":"),(T||A==="file")&&(l+=M,l+=M),T){let J=T.indexOf("@");if(J!==-1){const oe=T.substr(0,J);T=T.substr(J+1),J=oe.lastIndexOf(":"),J===-1?l+=s(oe,!1,!1):(l+=s(oe.substr(0,J),!1,!1),l+=":",l+=s(oe.substr(J+1),!1,!0)),l+="@"}T=T.toLowerCase(),J=T.lastIndexOf(":"),J===-1?l+=s(T,!1,!0):(l+=s(T.substr(0,J),!1,!0),l+=T.substr(J))}if(h){if(h.length>=3&&h.charCodeAt(0)===47&&h.charCodeAt(2)===58){const J=h.charCodeAt(1);J>=65&&J<=90&&(h=`/${String.fromCharCode(J+32)}:${h.substr(3)}`)}else if(h.length>=2&&h.charCodeAt(1)===58){const J=h.charCodeAt(0);J>=65&&J<=90&&(h=`${String.fromCharCode(J+32)}:${h.substr(2)}`)}l+=s(h,!0,!1)}return y&&(l+="?",l+=s(y,!1,!1)),q&&(l+="#",l+=f?q:o(q,!1,!1)),l}function t(c){try{return decodeURIComponent(c)}catch{return c.length>3?c.substr(0,3)+t(c.substr(3)):c}}const i=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function u(c){return c.match(i)?c.replace(i,f=>t(f)):c}}),define(ge[45],we([0,1,9]),function(fe,e,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.getFirstFrame=e.parse=e.isRemoteConsoleLog=void 0;function U(_){const F=_;return F&&typeof F.type=="string"&&typeof F.severity=="string"}e.isRemoteConsoleLog=U;function W(_){const F=[];let M;try{const N=JSON.parse(_.arguments),m=N[N.length-1];m&&m.__$stack&&(N.pop(),M=m.__$stack),F.push(...N)}catch{F.push("Unable to log remote console arguments",_.arguments)}return{args:F,stack:M}}e.parse=W;function $(_){if(typeof _!="string")return $(W(_).stack);const F=_;if(F){const M=H(F),N=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(M||"");if(N&&N.length===4)return{uri:R.URI.file(N[1]),line:Number(N[2]),column:Number(N[3])}}}e.getFirstFrame=$;function H(_){if(!_)return _;const F=_.indexOf(`
`);return F===-1?_:_.substring(0,F)}function k(_,F){const{args:M,stack:N}=W(_),m=typeof M[0]=="string"&&M.length===1;let d=H(N);d&&(d=`(${d.trim()})`);let D=[];if(typeof M[0]=="string"?d&&m?D=[`%c[${F}] %c${M[0]} %c${d}`,S("blue"),S(""),S("grey")]:D=[`%c[${F}] %c${M[0]}`,S("blue"),S(""),...M.slice(1)]:D=[`%c[${F}]%`,S("blue"),...M],d&&!m&&D.push(d),typeof console[_.severity]!="function")throw new Error("Unknown console method");console[_.severity].apply(console,D)}e.log=k;function S(_){return`color: ${_}`}}),define(ge[46],we([0,1,14,9]),function(fe,e,R,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=e.stringify=void 0;function W(S){return JSON.stringify(S,H)}e.stringify=W;function $(S){let _=JSON.parse(S);return _=k(_),_}e.parse=$;function H(S,_){return _ instanceof RegExp?{$mid:2,source:_.source,flags:_.flags}:_}function k(S,_=0){if(!S||_>200)return S;if(typeof S=="object"){switch(S.$mid){case 1:return U.URI.revive(S);case 2:return new RegExp(S.source,S.flags);case 16:return new Date(S.source)}if(S instanceof R.VSBuffer||S instanceof Uint8Array)return S;if(Array.isArray(S))for(let F=0;F<S.length;++F)S[F]=k(S[F],_+1);else for(const F in S)Object.hasOwnProperty.call(S,F)&&(S[F]=k(S[F],_+1))}return S}e.revive=k}),define(ge[29],we([0,1,6,2,9]),function(fe,e,R,U,W){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COI=e.FileAccess=e.nodeModulesAsarUnpackedPath=e.nodeModulesAsarPath=e.nodeModulesPath=e.builtinExtensionsPath=e.RemoteAuthorities=e.connectionTokenQueryName=e.connectionTokenCookieName=e.Schemas=void 0;var $;(function(_){_.inMemory="inmemory",_.vscode="vscode",_.internal="private",_.walkThrough="walkThrough",_.walkThroughSnippet="walkThroughSnippet",_.http="http",_.https="https",_.file="file",_.mailto="mailto",_.untitled="untitled",_.data="data",_.attachment="attachment",_.command="command",_.vscodeRemote="vscode-remote",_.vscodeRemoteResource="vscode-remote-resource",_.vscodeManagedRemoteResource="vscode-managed-remote-resource",_.vscodeUserData="vscode-userdata",_.vscodeCustomEditor="vscode-custom-editor",_.vscodeNotebookCell="vscode-notebook-cell",_.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",_.vscodeNotebookCellOutput="vscode-notebook-cell-output",_.vscodeInteractiveInput="vscode-interactive-input",_.vscodeSettings="vscode-settings",_.vscodeWorkspaceTrust="vscode-workspace-trust",_.vscodeTerminal="vscode-terminal",_.vscodeChatSesssion="vscode-chat-editor",_.webviewPanel="webview-panel",_.vscodeWebview="vscode-webview",_.extension="extension",_.vscodeFileResource="vscode-file",_.tmp="tmp",_.vsls="vsls",_.vscodeSourceControl="vscode-scm"})($||(e.Schemas=$={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn";class H{constructor(){this._defaultWebPort=80,this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${$.vscodeRemoteResource}`}setPreferredWebSchema(F){this._preferredWebSchema=F}setDelegate(F){this._delegate=F}setServerRootPath(F){this._remoteResourcesPath=`${F}/${$.vscodeRemoteResource}`}set(F,M,N){this._hosts[F]=M,this._ports[F]=N}setConnectionToken(F,M){this._connectionTokens[F]=M}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(F){if(this._delegate)try{return this._delegate(F)}catch(n){return R.onUnexpectedError(n),F}const M=F.authority;let N=this._hosts[M];N&&N.indexOf(":")!==-1&&N.indexOf("[")===-1&&(N=`[${N}]`);const m=this._ports[M],d=this._connectionTokens[M];let D=`path=${encodeURIComponent(F.path)}`;return typeof d=="string"&&(D+=`&${e.connectionTokenQueryName}=${encodeURIComponent(d)}`),W.URI.from({scheme:U.isWeb?this._preferredWebSchema:$.vscodeRemoteResource,authority:U.isWeb&&m===this._defaultWebPort?`${N}`:`${N}:${m}`,path:this._remoteResourcesPath,query:D})}}e.RemoteAuthorities=new H,e.builtinExtensionsPath="vs/../../extensions",e.nodeModulesPath="vs/../../node_modules",e.nodeModulesAsarPath="vs/../../node_modules.asar",e.nodeModulesAsarUnpackedPath="vs/../../node_modules.asar.unpacked";class k{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(F){const M=this.toUri(F,fe);return this.uriToBrowserUri(M)}uriToBrowserUri(F){return F.scheme===$.vscodeRemote?e.RemoteAuthorities.rewrite(F):F.scheme===$.file&&(U.isNative||U.isWebWorker&&U.globals.origin===`${$.vscodeFileResource}://${k.FALLBACK_AUTHORITY}`)?F.with({scheme:$.vscodeFileResource,authority:F.authority||k.FALLBACK_AUTHORITY,query:null,fragment:null}):F}asFileUri(F){const M=this.toUri(F,fe);return this.uriToFileUri(M)}uriToFileUri(F){return F.scheme===$.vscodeFileResource?F.with({scheme:$.file,authority:F.authority!==k.FALLBACK_AUTHORITY?F.authority:null,query:null,fragment:null}):F}toUri(F,M){return W.URI.isUri(F)?F:W.URI.parse(M.toUrl(F))}}e.FileAccess=new k;var S;(function(_){const F=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);_.CoopAndCoep=Object.freeze(F.get("3"));const M="vscode-coi";function N(d){let D;typeof d=="string"?D=new URL(d).searchParams:d instanceof URL?D=d.searchParams:W.URI.isUri(d)&&(D=new URL(d.toString(!0)).searchParams);const n=D?.get(M);if(n)return F.get(n)}_.getHeadersFromQuery=N;function m(d,D,n){if(!globalThis.crossOriginIsolated)return;const w=D&&n?"3":n?"2":"1";d instanceof URLSearchParams?d.set(M,w):d[M]=w}_.addSearchParam=m})(S||(e.COI=S={}))}),define(ge[30],we([0,1,13,29,3,2,7,9]),function(fe,e,R,U,W,$,H,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalResource=e.DataUri=e.distinctParents=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function S(m){return(0,k.uriToFsPath)(m,!0)}e.originalFSPath=S;class _{constructor(d){this._ignorePathCasing=d}compare(d,D,n=!1){return d===D?0:(0,H.compare)(this.getComparisonKey(d,n),this.getComparisonKey(D,n))}isEqual(d,D,n=!1){return d===D?!0:!d||!D?!1:this.getComparisonKey(d,n)===this.getComparisonKey(D,n)}getComparisonKey(d,D=!1){return d.with({path:this._ignorePathCasing(d)?d.path.toLowerCase():void 0,fragment:D?null:void 0}).toString()}ignorePathCasing(d){return this._ignorePathCasing(d)}isEqualOrParent(d,D,n=!1){if(d.scheme===D.scheme){if(d.scheme===U.Schemas.file)return R.isEqualOrParent(S(d),S(D),this._ignorePathCasing(d))&&d.query===D.query&&(n||d.fragment===D.fragment);if((0,e.isEqualAuthority)(d.authority,D.authority))return R.isEqualOrParent(d.path,D.path,this._ignorePathCasing(d),"/")&&d.query===D.query&&(n||d.fragment===D.fragment)}return!1}joinPath(d,...D){return k.URI.joinPath(d,...D)}basenameOrAuthority(d){return(0,e.basename)(d)||d.authority}basename(d){return W.posix.basename(d.path)}extname(d){return W.posix.extname(d.path)}dirname(d){if(d.path.length===0)return d;let D;return d.scheme===U.Schemas.file?D=k.URI.file(W.dirname(S(d))).path:(D=W.posix.dirname(d.path),d.authority&&D.length&&D.charCodeAt(0)!==47&&(console.error(`dirname("${d.toString})) resulted in a relative path`),D="/")),d.with({path:D})}normalizePath(d){if(!d.path.length)return d;let D;return d.scheme===U.Schemas.file?D=k.URI.file(W.normalize(S(d))).path:D=W.posix.normalize(d.path),d.with({path:D})}relativePath(d,D){if(d.scheme!==D.scheme||!(0,e.isEqualAuthority)(d.authority,D.authority))return;if(d.scheme===U.Schemas.file){const o=W.relative(S(d),S(D));return $.isWindows?R.toSlashes(o):o}let n=d.path||"/";const w=D.path||"/";if(this._ignorePathCasing(d)){let o=0;for(const C=Math.min(n.length,w.length);o<C&&!(n.charCodeAt(o)!==w.charCodeAt(o)&&n.charAt(o).toLowerCase()!==w.charAt(o).toLowerCase());o++);n=w.substr(0,o)+n.substr(o)}return W.posix.relative(n,w)}resolvePath(d,D){if(d.scheme===U.Schemas.file){const n=k.URI.file(W.resolve(S(d),D));return d.with({authority:n.authority,path:n.path})}return D=R.toPosixPath(D),d.with({path:W.posix.resolve(d.path,D)})}isAbsolutePath(d){return!!d.path&&d.path[0]==="/"}isEqualAuthority(d,D){return d===D||d!==void 0&&D!==void 0&&(0,H.equalsIgnoreCase)(d,D)}hasTrailingPathSeparator(d,D=W.sep){if(d.scheme===U.Schemas.file){const n=S(d);return n.length>R.getRoot(n).length&&n[n.length-1]===D}else{const n=d.path;return n.length>1&&n.charCodeAt(n.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(d.fsPath)}}removeTrailingPathSeparator(d,D=W.sep){return(0,e.hasTrailingPathSeparator)(d,D)?d.with({path:d.path.substr(0,d.path.length-1)}):d}addTrailingPathSeparator(d,D=W.sep){let n=!1;if(d.scheme===U.Schemas.file){const w=S(d);n=w!==void 0&&w.length===R.getRoot(w).length&&w[w.length-1]===D}else{D="/";const w=d.path;n=w.length===1&&w.charCodeAt(w.length-1)===47}return!n&&!(0,e.hasTrailingPathSeparator)(d,D)?d.with({path:d.path+"/"}):d}}e.ExtUri=_,e.extUri=new _(()=>!1),e.extUriBiasedIgnorePathCase=new _(m=>m.scheme===U.Schemas.file?!$.isLinux:!0),e.extUriIgnorePathCase=new _(m=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);function F(m,d){const D=[];for(let n=0;n<m.length;n++){const w=d(m[n]);m.some((o,C)=>C===n?!1:(0,e.isEqualOrParent)(w,d(o)))||D.push(m[n])}return D}e.distinctParents=F;var M;(function(m){m.META_DATA_LABEL="label",m.META_DATA_DESCRIPTION="description",m.META_DATA_SIZE="size",m.META_DATA_MIME="mime";function d(D){const n=new Map;D.path.substring(D.path.indexOf(";")+1,D.path.lastIndexOf(";")).split(";").forEach(C=>{const[L,g]=C.split(":");L&&g&&n.set(L,g)});const o=D.path.substring(0,D.path.indexOf(";"));return o&&n.set(m.META_DATA_MIME,o),n}m.parseMetaData=d})(M||(e.DataUri=M={}));function N(m,d,D){if(d){let n=m.path;return n&&n[0]!==W.posix.sep&&(n=W.posix.sep+n),m.with({scheme:D,authority:d,path:n})}return m.with({scheme:D})}e.toLocalResource=N}),define(ge[10],we([0,1,11,6,5,4,30,2,40]),function(fe,e,R,U,W,$,H,k,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IntervalCounter=e.TaskSequentializer=e.retry=e.IdleValue=e.runWhenIdle=e.ThrottledWorker=e.RunOnceWorker=e.ProcessTimeRunOnceScheduler=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.ResourceQueue=e.LimitedQueue=e.Queue=e.Limiter=e.firstParallel=e.first=e.sequence=e.disposableTimeout=e.timeout=e.AutoOpenBarrier=e.Barrier=e.ThrottledDelayer=e.Delayer=e.SequencerByKey=e.Sequencer=e.Throttler=e.asPromise=e.raceTimeout=e.raceCancellablePromises=e.raceCancellationError=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function _(Q){return!!Q&&typeof Q.then=="function"}e.isThenable=_;function F(Q){const b=new R.CancellationTokenSource,B=Q(b.token),Y=new Promise((te,ce)=>{const ne=b.token.onCancellationRequested(()=>{ne.dispose(),b.dispose(),ce(new U.CancellationError)});Promise.resolve(B).then(E=>{ne.dispose(),b.dispose(),te(E)},E=>{ne.dispose(),b.dispose(),ce(E)})});return new class{cancel(){b.cancel()}then(te,ce){return Y.then(te,ce)}catch(te){return this.then(void 0,te)}finally(te){return Y.finally(te)}}}e.createCancelablePromise=F;function M(Q,b,B){return new Promise((Y,te)=>{const ce=b.onCancellationRequested(()=>{ce.dispose(),Y(B)});Q.then(Y,te).finally(()=>ce.dispose())})}e.raceCancellation=M;function N(Q,b){return new Promise((B,Y)=>{const te=b.onCancellationRequested(()=>{te.dispose(),Y(new U.CancellationError)});Q.then(B,Y).finally(()=>te.dispose())})}e.raceCancellationError=N;async function m(Q){let b=-1;const B=Q.map((Y,te)=>Y.then(ce=>(b=te,ce)));try{return await Promise.race(B)}finally{Q.forEach((Y,te)=>{te!==b&&Y.cancel()})}}e.raceCancellablePromises=m;function d(Q,b,B){let Y;const te=setTimeout(()=>{Y?.(void 0),B?.()},b);return Promise.race([Q.finally(()=>clearTimeout(te)),new Promise(ce=>Y=ce)])}e.raceTimeout=d;function D(Q){return new Promise((b,B)=>{const Y=Q();_(Y)?Y.then(b,B):b(Y)})}e.asPromise=D;class n{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(b){if(this.isDisposed)throw new Error("Throttler is disposed");if(this.activePromise){if(this.queuedPromiseFactory=b,!this.queuedPromise){const B=()=>{if(this.queuedPromise=null,this.isDisposed)return;const Y=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,Y};this.queuedPromise=new Promise(Y=>{this.activePromise.then(B,B).then(Y)})}return new Promise((B,Y)=>{this.queuedPromise.then(B,Y)})}return this.activePromise=b(),new Promise((B,Y)=>{this.activePromise.then(te=>{this.activePromise=null,B(te)},te=>{this.activePromise=null,Y(te)})})}dispose(){this.isDisposed=!0}}e.Throttler=n;class w{constructor(){this.current=Promise.resolve(null)}queue(b){return this.current=this.current.then(()=>b(),()=>b())}}e.Sequencer=w;class o{constructor(){this.promiseMap=new Map}queue(b,B){const te=(this.promiseMap.get(b)??Promise.resolve()).catch(()=>{}).then(B).finally(()=>{this.promiseMap.get(b)===te&&this.promiseMap.delete(b)});return this.promiseMap.set(b,te),te}}e.SequencerByKey=o;const C=(Q,b)=>{let B=!0;const Y=setTimeout(()=>{B=!1,b()},Q);return{isTriggered:()=>B,dispose:()=>{clearTimeout(Y),B=!1}}},L=Q=>{let b=!0;return queueMicrotask(()=>{b&&(b=!1,Q())}),{isTriggered:()=>b,dispose:()=>{b=!1}}};class g{constructor(b){this.defaultDelay=b,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(b,B=this.defaultDelay){this.task=b,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((te,ce)=>{this.doResolve=te,this.doReject=ce}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const te=this.task;return this.task=null,te()}}));const Y=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=B===S.MicrotaskDelay?L(Y):C(B,Y),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new U.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=g;class t{constructor(b){this.delayer=new g(b),this.throttler=new n}trigger(b,B){return this.delayer.trigger(()=>this.throttler.queue(b),B)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}e.ThrottledDelayer=t;class i{constructor(){this._isOpen=!1,this._promise=new Promise((b,B)=>{this._completePromise=b})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=i;class u extends i{constructor(b){super(),this._timeout=setTimeout(()=>this.open(),b)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=u;function c(Q,b){return b?new Promise((B,Y)=>{const te=setTimeout(()=>{ce.dispose(),B()},Q),ce=b.onCancellationRequested(()=>{clearTimeout(te),ce.dispose(),Y(new U.CancellationError)})}):F(B=>c(Q,B))}e.timeout=c;function f(Q,b=0){const B=setTimeout(Q,b);return(0,$.toDisposable)(()=>clearTimeout(B))}e.disposableTimeout=f;function s(Q){const b=[];let B=0;const Y=Q.length;function te(){return B<Y?Q[B++]():null}function ce(ne){ne!=null&&b.push(ne);const E=te();return E?E.then(ce):Promise.resolve(b)}return Promise.resolve(null).then(ce)}e.sequence=s;function l(Q,b=Y=>!!Y,B=null){let Y=0;const te=Q.length,ce=()=>{if(Y>=te)return Promise.resolve(B);const ne=Q[Y++];return Promise.resolve(ne()).then(O=>b(O)?Promise.resolve(O):ce())};return ce()}e.first=l;function A(Q,b=Y=>!!Y,B=null){if(Q.length===0)return Promise.resolve(B);let Y=Q.length;const te=()=>{Y=-1;for(const ce of Q)ce.cancel?.()};return new Promise((ce,ne)=>{for(const E of Q)E.then(O=>{--Y>=0&&b(O)?(te(),ce(O)):Y===0&&ce(B)}).catch(O=>{--Y>=0&&(te(),ne(O))})})}e.firstParallel=A;class T{constructor(b){this._size=0,this.maxDegreeOfParalellism=b,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new W.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(b){return this._size++,new Promise((B,Y)=>{this.outstandingPromises.push({factory:b,c:B,e:Y}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const b=this.outstandingPromises.shift();this.runningPromises++;const B=b.factory();B.then(b.c,b.e),B.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}}e.Limiter=T;class h extends T{constructor(){super(1)}}e.Queue=h;class y{constructor(){this.sequentializer=new K,this.tasks=0}queue(b){return this.sequentializer.isRunning()?this.sequentializer.queue(()=>this.sequentializer.run(this.tasks++,b())):this.sequentializer.run(this.tasks++,b())}}e.LimitedQueue=y;class q{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const b=new r;return this.drainers.add(b),b.p}isDrained(){for(const[,b]of this.queues)if(b.size>0)return!1;return!0}queueFor(b,B=H.extUri){const Y=B.getComparisonKey(b);let te=this.queues.get(Y);return te||(te=new h,W.Event.once(te.onDrained)(()=>{te?.dispose(),this.queues.delete(Y),this.onDidQueueDrain()}),this.queues.set(Y,te)),te}onDidQueueDrain(){this.isDrained()&&this.releaseDrainers()}releaseDrainers(){for(const b of this.drainers)b.complete();this.drainers.clear()}dispose(){for(const[,b]of this.queues)b.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=q;class J{constructor(b,B){this._token=-1,typeof b=="function"&&typeof B=="number"&&this.setIfNotSet(b,B)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(b,B){this.cancel(),this._token=setTimeout(()=>{this._token=-1,b()},B)}setIfNotSet(b,B){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,b()},B))}}e.TimeoutTimer=J;class oe{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(b,B){this.cancel(),this._token=setInterval(()=>{b()},B)}}e.IntervalTimer=oe;class ae{constructor(b,B){this.timeoutToken=-1,this.runner=b,this.timeout=B,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(b=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,b)}get delay(){return this.timeout}set delay(b){this.timeout=b}isScheduled(){return this.timeoutToken!==-1}flush(){this.isScheduled()&&(this.cancel(),this.doRun())}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=ae;class me{constructor(b,B){B%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${B}ms is not a multiple of 1000ms.`),this.runner=b,this.timeout=B,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(b=this.timeout){b%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${b}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(b/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,!(this.counter>0)&&(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner?.())}}e.ProcessTimeRunOnceScheduler=me;class he extends ae{constructor(b,B){super(b,B),this.units=[]}work(b){this.units.push(b),this.isScheduled()||this.schedule()}doRun(){const b=this.units;this.units=[],this.runner?.(b)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=he;class X extends $.Disposable{constructor(b,B){super(),this.options=b,this.handler=B,this.pendingWork=[],this.throttler=this._register(new $.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(b){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+b.length>this.options.maxBufferedWork)return!1}else if(this.pending+b.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}for(const B of b)this.pendingWork.push(B);return this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new ae(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=X,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=Q=>{(0,k.setTimeout0)(()=>{if(b)return;const B=Date.now()+15;Q(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,B-Date.now())}}))});let b=!1;return{dispose(){b||(b=!0)}}}:e.runWhenIdle=(Q,b)=>{const B=requestIdleCallback(Q,typeof b=="number"?{timeout:b}:void 0);let Y=!1;return{dispose(){Y||(Y=!0,cancelIdleCallback(B))}}}}();class re{constructor(b){this._didRun=!1,this._executor=()=>{try{this._value=b()}catch(B){this._error=B}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.IdleValue=re;async function le(Q,b,B){let Y;for(let te=0;te<B;te++)try{return await Q()}catch(ce){Y=ce,await c(b)}throw Y}e.retry=le;class K{isRunning(b){return typeof b=="number"?this._running?.taskId===b:!!this._running}get running(){return this._running?.promise}cancelRunning(){this._running?.cancel()}run(b,B,Y){return this._running={taskId:b,cancel:()=>Y?.(),promise:B},B.then(()=>this.doneRunning(b),()=>this.doneRunning(b)),B}doneRunning(b){this._running&&b===this._running.taskId&&(this._running=void 0,this.runQueued())}runQueued(){if(this._queued){const b=this._queued;this._queued=void 0,b.run().then(b.promiseResolve,b.promiseReject)}}queue(b){if(this._queued)this._queued.run=b;else{let B,Y;const te=new Promise((ce,ne)=>{B=ce,Y=ne});this._queued={run:b,promise:te,promiseResolve:B,promiseReject:Y}}return this._queued.promise}hasQueued(){return!!this._queued}async join(){return this._queued?.promise??this._running?.promise}}e.TaskSequentializer=K;class p{constructor(b,B=()=>Date.now()){this.interval=b,this.nowFn=B,this.lastIncrementTime=0,this.value=0}increment(){const b=this.nowFn();return b-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=b,this.value=0),this.value++,this.value}}e.IntervalCounter=p;var a;(function(Q){Q[Q.Resolved=0]="Resolved",Q[Q.Rejected=1]="Rejected"})(a||(a={}));class r{get isRejected(){return this.outcome?.outcome===1}get isResolved(){return this.outcome?.outcome===0}get isSettled(){return!!this.outcome}get value(){return this.outcome?.outcome===0?this.outcome?.value:void 0}constructor(){this.p=new Promise((b,B)=>{this.completeCallback=b,this.errorCallback=B})}complete(b){return new Promise(B=>{this.completeCallback(b),this.outcome={outcome:0,value:b},B()})}error(b){return new Promise(B=>{this.errorCallback(b),this.outcome={outcome:1,value:b},B()})}cancel(){return this.error(new U.CancellationError)}}e.DeferredPromise=r;var P;(function(Q){async function b(Y){let te;const ce=await Promise.all(Y.map(ne=>ne.then(E=>E,E=>{te||(te=E)})));if(typeof te<"u")throw te;return ce}Q.settled=b;function B(Y){return new Promise(async(te,ce)=>{try{await Y(te,ce)}catch(ne){ce(ne)}})}Q.withAsyncBody=B})(P||(e.Promises=P={}));var G;(function(Q){Q[Q.Initial=0]="Initial",Q[Q.DoneOK=1]="DoneOK",Q[Q.DoneError=2]="DoneError"})(G||(G={}));class V{static fromArray(b){return new V(B=>{B.emitMany(b)})}static fromPromise(b){return new V(async B=>{B.emitMany(await b)})}static fromPromises(b){return new V(async B=>{await Promise.all(b.map(async Y=>B.emitOne(await Y)))})}static merge(b){return new V(async B=>{await Promise.all(b.map(async Y=>{for await(const te of Y)B.emitOne(te)}))})}static{this.EMPTY=V.fromArray([])}constructor(b){this._state=0,this._results=[],this._error=null,this._onStateChanged=new W.Emitter,queueMicrotask(async()=>{const B={emitOne:Y=>this.emitOne(Y),emitMany:Y=>this.emitMany(Y),reject:Y=>this.reject(Y)};try{await Promise.resolve(b(B)),this.resolve()}catch(Y){this.reject(Y)}finally{B.emitOne=void 0,B.emitMany=void 0,B.reject=void 0}})}[Symbol.asyncIterator](){let b=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(b<this._results.length)return{done:!1,value:this._results[b++]};if(this._state===1)return{done:!0,value:void 0};await W.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(b,B){return new V(async Y=>{for await(const te of b)Y.emitOne(B(te))})}map(b){return V.map(this,b)}static filter(b,B){return new V(async Y=>{for await(const te of b)B(te)&&Y.emitOne(te)})}filter(b){return V.filter(this,b)}static coalesce(b){return V.filter(b,B=>!!B)}coalesce(){return V.coalesce(this)}static async toPromise(b){const B=[];for await(const Y of b)B.push(Y);return B}toPromise(){return V.toPromise(this)}emitOne(b){this._state===0&&(this._results.push(b),this._onStateChanged.fire())}emitMany(b){this._state===0&&(this._results=this._results.concat(b),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(b){this._state===0&&(this._state=2,this._error=b,this._onStateChanged.fire())}}e.AsyncIterableObject=V;class Z extends V{constructor(b,B){super(B),this._source=b}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=Z;function ie(Q){const b=new R.CancellationTokenSource,B=Q(b.token);return new Z(b,async Y=>{const te=b.token.onCancellationRequested(()=>{te.dispose(),b.dispose(),Y.reject(new U.CancellationError)});try{for await(const ce of B){if(b.token.isCancellationRequested)return;Y.emitOne(ce)}te.dispose(),b.dispose()}catch(ce){te.dispose(),b.dispose(),Y.reject(ce)}})}e.createCancelableAsyncIterable=ie}),define(ge[16],we([0,1,12,10,13,22,3,2,7]),function(fe,e,R,U,W,$,H,k,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.patternsEquals=e.getPathTerms=e.getBasenameTerms=e.isRelativePattern=e.parse=e.match=e.splitGlobAware=e.GLOB_SPLIT=e.GLOBSTAR=e.getEmptyExpression=void 0;function _(){return Object.create(null)}e.getEmptyExpression=_,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const F="[/\\\\]",M="[^/\\\\]",N=/\//g;function m(K,p){switch(K){case 0:return"";case 1:return`${M}*?`;default:return`(?:${F}|${M}+${F}${p?`|${F}${M}+`:""})*?`}}function d(K,p){if(!K)return[];const a=[];let r=!1,P=!1,G="";for(const V of K){switch(V){case p:if(!r&&!P){a.push(G),G="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":P=!0;break;case"]":P=!1;break}G+=V}return G&&a.push(G),a}e.splitGlobAware=d;function D(K){if(!K)return"";let p="";const a=d(K,e.GLOB_SPLIT);if(a.every(r=>r===e.GLOBSTAR))p=".*";else{let r=!1;a.forEach((P,G)=>{if(P===e.GLOBSTAR){if(r)return;p+=m(2,G===a.length-1)}else{let V=!1,Z="",ie=!1,Q="";for(const b of P){if(b!=="}"&&V){Z+=b;continue}if(ie&&(b!=="]"||!Q)){let B;b==="-"?B=b:(b==="^"||b==="!")&&!Q?B="^":b===e.GLOB_SPLIT?B="":B=(0,S.escapeRegExpCharacters)(b),Q+=B;continue}switch(b){case"{":V=!0;continue;case"[":ie=!0;continue;case"}":{const Y=`(?:${d(Z,",").map(te=>D(te)).join("|")})`;p+=Y,V=!1,Z="";break}case"]":{p+="["+Q+"]",ie=!1,Q="";break}case"?":p+=M;continue;case"*":p+=m(1);continue;default:p+=(0,S.escapeRegExpCharacters)(b)}}G<a.length-1&&(a[G+1]!==e.GLOBSTAR||G+2<a.length)&&(p+=F)}r=P===e.GLOBSTAR})}return p}const n=/^\*\*\/\*\.[\w\.-]+$/,w=/^\*\*\/([\w\.-]+)\/?$/,o=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,C=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,L=/^\*\*((\/[\w\.-]+)+)\/?$/,g=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,t=new $.LRUCache(1e4),i=function(){return!1},u=function(){return null};function c(K,p){if(!K)return u;let a;typeof K!="string"?a=K.pattern:a=K,a=a.trim();const r=`${a}_${!!p.trimForExclusions}`;let P=t.get(r);if(P)return f(P,K);let G;return n.test(a)?P=l(a.substr(4),a):(G=w.exec(s(a,p)))?P=A(G[1],a):(p.trimForExclusions?C:o).test(a)?P=T(a,p):(G=L.exec(s(a,p)))?P=h(G[1].substr(1),a,!0):(G=g.exec(s(a,p)))?P=h(G[1],a,!1):P=y(a),t.set(r,P),f(P,K)}function f(K,p){if(typeof p=="string")return K;const a=function(r,P){return(0,W.isEqualOrParent)(r,p.base,!k.isLinux)?K((0,S.ltrim)(r.substr(p.base.length),H.sep),P):null};return a.allBasenames=K.allBasenames,a.allPaths=K.allPaths,a.basenames=K.basenames,a.patterns=K.patterns,a}function s(K,p){return p.trimForExclusions&&K.endsWith("/**")?K.substr(0,K.length-2):K}function l(K,p){return function(a,r){return typeof a=="string"&&a.endsWith(K)?p:null}}function A(K,p){const a=`/${K}`,r=`\\${K}`,P=function(V,Z){return typeof V!="string"?null:Z?Z===K?p:null:V===K||V.endsWith(a)||V.endsWith(r)?p:null},G=[K];return P.basenames=G,P.patterns=[p],P.allBasenames=G,P}function T(K,p){const a=re(K.slice(1,-1).split(",").map(Z=>c(Z,p)).filter(Z=>Z!==u),K),r=a.length;if(!r)return u;if(r===1)return a[0];const P=function(Z,ie){for(let Q=0,b=a.length;Q<b;Q++)if(a[Q](Z,ie))return K;return null},G=a.find(Z=>!!Z.allBasenames);G&&(P.allBasenames=G.allBasenames);const V=a.reduce((Z,ie)=>ie.allPaths?Z.concat(ie.allPaths):Z,[]);return V.length&&(P.allPaths=V),P}function h(K,p,a){const r=H.sep===H.posix.sep,P=r?K:K.replace(N,H.sep),G=H.sep+P,V=H.posix.sep+K;let Z;return a?Z=function(ie,Q){return typeof ie=="string"&&(ie===P||ie.endsWith(G)||!r&&(ie===K||ie.endsWith(V)))?p:null}:Z=function(ie,Q){return typeof ie=="string"&&(ie===P||!r&&ie===K)?p:null},Z.allPaths=[(a?"*/":"./")+K],Z}function y(K){try{const p=new RegExp(`^${D(K)}$`);return function(a){return p.lastIndex=0,typeof a=="string"&&p.test(a)?K:null}}catch{return u}}function q(K,p,a){return!K||typeof p!="string"?!1:J(K)(p,void 0,a)}e.match=q;function J(K,p={}){if(!K)return i;if(typeof K=="string"||oe(K)){const a=c(K,p);if(a===u)return i;const r=function(P,G){return!!a(P,G)};return a.allBasenames&&(r.allBasenames=a.allBasenames),a.allPaths&&(r.allPaths=a.allPaths),r}return he(K,p)}e.parse=J;function oe(K){const p=K;return p?typeof p.base=="string"&&typeof p.pattern=="string":!1}e.isRelativePattern=oe;function ae(K){return K.allBasenames||[]}e.getBasenameTerms=ae;function me(K){return K.allPaths||[]}e.getPathTerms=me;function he(K,p){const a=re(Object.getOwnPropertyNames(K).map(Z=>X(Z,K[Z],p)).filter(Z=>Z!==u)),r=a.length;if(!r)return u;if(!a.some(Z=>!!Z.requiresSiblings)){if(r===1)return a[0];const Z=function(b,B){let Y;for(let te=0,ce=a.length;te<ce;te++){const ne=a[te](b,B);if(typeof ne=="string")return ne;(0,U.isThenable)(ne)&&(Y||(Y=[]),Y.push(ne))}return Y?(async()=>{for(const te of Y){const ce=await te;if(typeof ce=="string")return ce}return null})():null},ie=a.find(b=>!!b.allBasenames);ie&&(Z.allBasenames=ie.allBasenames);const Q=a.reduce((b,B)=>B.allPaths?b.concat(B.allPaths):b,[]);return Q.length&&(Z.allPaths=Q),Z}const P=function(Z,ie,Q){let b,B;for(let Y=0,te=a.length;Y<te;Y++){const ce=a[Y];ce.requiresSiblings&&Q&&(ie||(ie=(0,H.basename)(Z)),b||(b=ie.substr(0,ie.length-(0,H.extname)(Z).length)));const ne=ce(Z,ie,b,Q);if(typeof ne=="string")return ne;(0,U.isThenable)(ne)&&(B||(B=[]),B.push(ne))}return B?(async()=>{for(const Y of B){const te=await Y;if(typeof te=="string")return te}return null})():null},G=a.find(Z=>!!Z.allBasenames);G&&(P.allBasenames=G.allBasenames);const V=a.reduce((Z,ie)=>ie.allPaths?Z.concat(ie.allPaths):Z,[]);return V.length&&(P.allPaths=V),P}function X(K,p,a){if(p===!1)return u;const r=c(K,a);if(r===u)return u;if(typeof p=="boolean")return r;if(p){const P=p.when;if(typeof P=="string"){const G=(V,Z,ie,Q)=>{if(!Q||!r(V,Z))return null;const b=P.replace("$(basename)",()=>ie),B=Q(b);return(0,U.isThenable)(B)?B.then(Y=>Y?K:null):B?K:null};return G.requiresSiblings=!0,G}}return r}function re(K,p){const a=K.filter(Z=>!!Z.basenames);if(a.length<2)return K;const r=a.reduce((Z,ie)=>{const Q=ie.basenames;return Q?Z.concat(Q):Z},[]);let P;if(p){P=[];for(let Z=0,ie=r.length;Z<ie;Z++)P.push(p)}else P=a.reduce((Z,ie)=>{const Q=ie.patterns;return Q?Z.concat(Q):Z},[]);const G=function(Z,ie){if(typeof Z!="string")return null;if(!ie){let b;for(b=Z.length;b>0;b--){const B=Z.charCodeAt(b-1);if(B===47||B===92)break}ie=Z.substr(b)}const Q=r.indexOf(ie);return Q!==-1?P[Q]:null};G.basenames=r,G.patterns=P,G.allBasenames=r;const V=K.filter(Z=>!Z.basenames);return V.push(G),V}function le(K,p){return(0,R.equals)(K,p,(a,r)=>typeof a=="string"&&typeof r=="string"?a===r:typeof a!="string"&&typeof r!="string"?a.base===r.base&&a.pattern===r.pattern:!1)}e.patternsEquals=le}),define(ge[17],we([0,1,18,47,57,10,13,15,3,2,30,9]),function(fe,e,R,U,W,$,H,k,S,_,F,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Promises=e.writeFileSync=e.configureFlushOnWrite=e.SymlinkSupport=e.whenDeleted=e.readdirSync=e.rimrafSync=e.RimRafMode=void 0;var N;(function(X){X[X.UNLINK=0]="UNLINK",X[X.MOVE=1]="MOVE"})(N||(e.RimRafMode=N={}));async function m(X,re=N.UNLINK,le){if((0,H.isRootOrDriveLetter)(X))throw new Error("rimraf - will refuse to recursively delete root");return re===N.UNLINK?D(X):d(X,le)}async function d(X,re=(0,H.randomPath)((0,U.tmpdir)())){try{try{await R.promises.rename(X,re)}catch(le){return le.code==="ENOENT"?void 0:D(X)}D(re).catch(le=>{})}catch(le){if(le.code!=="ENOENT")throw le}}async function D(X){return(0,W.promisify)(R.rm)(X,{recursive:!0,force:!0,maxRetries:3})}function n(X){if((0,H.isRootOrDriveLetter)(X))throw new Error("rimraf - will refuse to recursively delete root");R.rmSync(X,{recursive:!0,force:!0,maxRetries:3})}e.rimrafSync=n;async function w(X,re){return L(await(re?o(X):(0,W.promisify)(R.readdir)(X)))}async function o(X){try{return await(0,W.promisify)(R.readdir)(X,{withFileTypes:!0})}catch(K){console.warn("[node.js fs] readdir with filetypes failed with error: ",K)}const re=[],le=await w(X);for(const K of le){let p=!1,a=!1,r=!1;try{const P=await e.Promises.lstat((0,S.join)(X,K));p=P.isFile(),a=P.isDirectory(),r=P.isSymbolicLink()}catch(P){console.warn("[node.js fs] unexpected error from lstat after readdir: ",P)}re.push({name:K,isFile:()=>p,isDirectory:()=>a,isSymbolicLink:()=>r})}return re}function C(X){return L(R.readdirSync(X))}e.readdirSync=C;function L(X){return X.map(re=>typeof re=="string"?_.isMacintosh?(0,k.normalizeNFC)(re):re:(re.name=_.isMacintosh?(0,k.normalizeNFC)(re.name):re.name,re))}async function g(X){const re=await w(X),le=[];for(const K of re)await i.existsDirectory((0,S.join)(X,K))&&le.push(K);return le}function t(X,re=1e3){return new Promise(le=>{let K=!1;const p=setInterval(()=>{K||(K=!0,R.access(X,a=>{K=!1,a&&(clearInterval(p),le(void 0))}))},re)})}e.whenDeleted=t;var i;(function(X){async function re(p){let a;try{if(a=await e.Promises.lstat(p),!a.isSymbolicLink())return{stat:a}}catch{}try{return{stat:await e.Promises.stat(p),symbolicLink:a?.isSymbolicLink()?{dangling:!1}:void 0}}catch(r){if(r.code==="ENOENT"&&a)return{stat:a,symbolicLink:{dangling:!0}};if(_.isWindows&&r.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(p)),symbolicLink:{dangling:!1}}}catch(P){if(P.code==="ENOENT"&&a)return{stat:a,symbolicLink:{dangling:!0}};throw P}throw r}}X.stat=re;async function le(p){try{const{stat:a,symbolicLink:r}=await X.stat(p);return a.isFile()&&r?.dangling!==!0}catch{}return!1}X.existsFile=le;async function K(p){try{const{stat:a,symbolicLink:r}=await X.stat(p);return a.isDirectory()&&r?.dangling!==!0}catch{}return!1}X.existsDirectory=K})(i||(e.SymlinkSupport=i={}));const u=new $.ResourceQueue;function c(X,re,le){return u.queueFor(M.URI.file(X),F.extUriBiasedIgnorePathCase).queue(()=>{const K=T(le);return new Promise((p,a)=>l(X,re,K,r=>r?a(r):p()))})}let f=!0;function s(X){f=X}e.configureFlushOnWrite=s;function l(X,re,le,K){if(!f)return R.writeFile(X,re,{mode:le.mode,flag:le.flag},K);R.open(X,le.flag,le.mode,(p,a)=>{if(p)return K(p);R.writeFile(a,re,r=>{if(r)return R.close(a,()=>K(r));R.fdatasync(a,P=>(P&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",P),s(!1)),R.close(a,G=>K(G))))})})}function A(X,re,le){const K=T(le);if(!f)return R.writeFileSync(X,re,{mode:K.mode,flag:K.flag});const p=R.openSync(X,K.flag,K.mode);try{R.writeFileSync(p,re);try{R.fdatasyncSync(p)}catch(a){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",a),s(!1)}}finally{R.closeSync(p)}}e.writeFileSync=A;function T(X){return X?{mode:typeof X.mode=="number"?X.mode:438,flag:typeof X.flag=="string"?X.flag:"w"}:{mode:438,flag:"w"}}async function h(X,re,le=6e4){if(X!==re)try{_.isWindows&&typeof le=="number"?await y(X,re,Date.now(),le):await(0,W.promisify)(R.rename)(X,re)}catch(K){if(X.toLowerCase()!==re.toLowerCase()&&K.code==="EXDEV"||X.endsWith("."))await q(X,re,{preserveSymlinks:!1}),await m(X,N.MOVE);else throw K}}async function y(X,re,le,K,p=0){try{return await(0,W.promisify)(R.rename)(X,re)}catch(a){if(a.code!=="EACCES"&&a.code!=="EPERM"&&a.code!=="EBUSY")throw a;if(Date.now()-le>=K)throw console.error(`[node.js fs] rename failed after ${p} retries with error: ${a}`),a;if(p===0){let r=!1;try{const{stat:P}=await i.stat(re);P.isFile()||(r=!0)}catch{}if(r)throw a}return await(0,$.timeout)(Math.min(100,p*10)),y(X,re,le,K,p+1)}}async function q(X,re,le){return oe(X,re,{root:{source:X,target:re},options:le,handledSourcePaths:new Set})}const J=511;async function oe(X,re,le){if(le.handledSourcePaths.has(X))return;le.handledSourcePaths.add(X);const{stat:K,symbolicLink:p}=await i.stat(X);if(p){if(le.options.preserveSymlinks)try{return await he(X,re,le)}catch(a){console.warn("[node.js fs] copy of symlink failed: ",a)}if(p.dangling)return}return K.isDirectory()?ae(X,re,K.mode&J,le):me(X,re,K.mode&J)}async function ae(X,re,le,K){await e.Promises.mkdir(re,{recursive:!0,mode:le});const p=await w(X);for(const a of p)await oe((0,S.join)(X,a),(0,S.join)(re,a),K)}async function me(X,re,le){await e.Promises.copyFile(X,re),await e.Promises.chmod(re,le)}async function he(X,re,le){let K=await e.Promises.readlink(X);(0,H.isEqualOrParent)(K,le.root.source,!_.isLinux)&&(K=(0,S.join)(le.root.target,K.substr(le.root.source.length+1))),await e.Promises.symlink(K,re)}e.Promises=new class{get access(){return(0,W.promisify)(R.access)}get stat(){return(0,W.promisify)(R.stat)}get lstat(){return(0,W.promisify)(R.lstat)}get utimes(){return(0,W.promisify)(R.utimes)}get read(){return(X,re,le,K,p)=>new Promise((a,r)=>{R.read(X,re,le,K,p,(P,G,V)=>P?r(P):a({bytesRead:G,buffer:V}))})}get readFile(){return(0,W.promisify)(R.readFile)}get write(){return(X,re,le,K,p)=>new Promise((a,r)=>{R.write(X,re,le,K,p,(P,G,V)=>P?r(P):a({bytesWritten:G,buffer:V}))})}get appendFile(){return(0,W.promisify)(R.appendFile)}get fdatasync(){return(0,W.promisify)(R.fdatasync)}get truncate(){return(0,W.promisify)(R.truncate)}get copyFile(){return(0,W.promisify)(R.copyFile)}get open(){return(0,W.promisify)(R.open)}get close(){return(0,W.promisify)(R.close)}get symlink(){return(0,W.promisify)(R.symlink)}get readlink(){return(0,W.promisify)(R.readlink)}get chmod(){return(0,W.promisify)(R.chmod)}get mkdir(){return(0,W.promisify)(R.mkdir)}get unlink(){return(0,W.promisify)(R.unlink)}get rmdir(){return(0,W.promisify)(R.rmdir)}get realpath(){return(0,W.promisify)(R.realpath)}async exists(X){try{return await e.Promises.access(X),!0}catch{return!1}}get readdir(){return w}get readDirsInDir(){return g}get writeFile(){return c}get rm(){return m}get rename(){return h}get copy(){return q}}}),define(ge[31],we([0,1,18,3,2,7,17]),function(fe,e,R,U,W,$,H){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.realpathSync=e.realpath=e.realcase=e.realcaseSync=void 0;function k(N){if(W.isLinux)return N;const m=(0,U.dirname)(N);if(N===m)return N;const d=((0,U.basename)(N)||N).toLowerCase();try{const n=(0,H.readdirSync)(m).filter(w=>w.toLowerCase()===d);if(n.length===1){const w=k(m);if(w)return(0,U.join)(w,n[0])}else if(n.length>1){const w=n.indexOf(d);if(w>=0){const o=k(m);if(o)return(0,U.join)(o,n[w])}}}catch{}return null}e.realcaseSync=k;async function S(N){if(W.isLinux)return N;const m=(0,U.dirname)(N);if(N===m)return N;const d=((0,U.basename)(N)||N).toLowerCase();try{const n=(await H.Promises.readdir(m)).filter(w=>w.toLowerCase()===d);if(n.length===1){const w=await S(m);if(w)return(0,U.join)(w,n[0])}else if(n.length>1){const w=n.indexOf(d);if(w>=0){const o=await S(m);if(o)return(0,U.join)(o,n[w])}}}catch{}return null}e.realcase=S;async function _(N){try{return await H.Promises.realpath(N)}catch{const d=M(N);return await H.Promises.access(d,R.constants.R_OK),d}}e.realpath=_;function F(N){try{return R.realpathSync(N)}catch{const d=M(N);return R.accessSync(d,R.constants.R_OK),d}}e.realpathSync=F;function M(N){return(0,$.rtrim)((0,U.normalize)(N),U.sep)}}),define(ge[48],we([0,1,3,2,27,28,8,17]),function(fe,e,R,U,W,$,H,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.win32=e.createQueuedSender=e.getWindowsShell=e.TerminateResponseCode=e.Source=void 0,Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return $.Source}}),Object.defineProperty(e,"TerminateResponseCode",{enumerable:!0,get:function(){return $.TerminateResponseCode}});function S(M=W.env){return M.comspec||"cmd.exe"}e.getWindowsShell=S;function _(M){let N=[],m=!1;const d=function(D){if(m){N.push(D);return}(!M.send(D,w=>{if(w&&console.error(w),m=!1,N.length>0){const o=N.slice(0);N=[],o.forEach(C=>d(C))}})||U.isWindows)&&(m=!0)};return{send:d}}e.createQueuedSender=_;var F;(function(M){async function N(m,d,D){if(R.isAbsolute(m))return m;if(d===void 0&&(d=W.cwd()),R.dirname(m)!=="."||(D===void 0&&H.isString(W.env.PATH)&&(D=W.env.PATH.split(R.delimiter)),D===void 0||D.length===0))return R.join(d,m);async function w(o){if(await k.Promises.exists(o)){let C;try{C=await k.Promises.stat(o)}catch(L){L.message.startsWith("EACCES")&&(C=await k.Promises.lstat(o))}return C?!C.isDirectory():!1}return!1}for(const o of D){let C;if(R.isAbsolute(o)?C=R.join(o,m):C=R.join(d,o,m),await w(C))return C;let L=C+".com";if(await w(L)||(L=C+".exe",await w(L)))return L}return R.join(d,m)}M.findExecutable=N})(F||(e.win32=F={}))});var qe=this&&this.__decorate||function(fe,e,R,U){var W=arguments.length,$=W<3?e:U===null?U=Object.getOwnPropertyDescriptor(e,R):U,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(fe,e,R,U);else for(var k=fe.length-1;k>=0;k--)(H=fe[k])&&($=(W<3?H($):W>3?H(e,R,$):H(e,R))||$);return W>3&&$&&Object.defineProperty(e,R,$),$};define(ge[19],we([0,1,12,10,14,11,34,6,5,4,46,7,8]),function(fe,e,R,U,W,$,H,k,S,_,F,M,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPCLogger=e.ProxyChannel=e.StaticRouter=e.getNextTickChannel=e.getDelayedChannel=e.IPCClient=e.IPCServer=e.ChannelClient=e.RequestInitiator=e.ChannelServer=e.deserialize=e.serialize=e.BufferWriter=e.BufferReader=void 0;var m;(function(p){p[p.Promise=100]="Promise",p[p.PromiseCancel=101]="PromiseCancel",p[p.EventListen=102]="EventListen",p[p.EventDispose=103]="EventDispose"})(m||(m={}));function d(p){switch(p){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}var D;(function(p){p[p.Initialize=200]="Initialize",p[p.PromiseSuccess=201]="PromiseSuccess",p[p.PromiseError=202]="PromiseError",p[p.PromiseErrorObj=203]="PromiseErrorObj",p[p.EventFire=204]="EventFire"})(D||(D={}));function n(p){switch(p){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}var w;(function(p){p[p.Uninitialized=0]="Uninitialized",p[p.Idle=1]="Idle"})(w||(w={}));function o(p){let a=0;for(let r=0;;r+=7){const P=p.read(1);if(a|=(P.buffer[0]&127)<<r,!(P.buffer[0]&128))return a}}const C=u(0);function L(p,a){if(a===0){p.write(C);return}let r=0;for(let G=a;G!==0;G=G>>>7)r++;const P=W.VSBuffer.alloc(r);for(let G=0;a!==0;G++)P.buffer[G]=a&127,a=a>>>7,a>0&&(P.buffer[G]|=128);p.write(P)}class g{constructor(a){this.buffer=a,this.pos=0}read(a){const r=this.buffer.slice(this.pos,this.pos+a);return this.pos+=r.byteLength,r}}e.BufferReader=g;class t{constructor(){this.buffers=[]}get buffer(){return W.VSBuffer.concat(this.buffers)}write(a){this.buffers.push(a)}}e.BufferWriter=t;var i;(function(p){p[p.Undefined=0]="Undefined",p[p.String=1]="String",p[p.Buffer=2]="Buffer",p[p.VSBuffer=3]="VSBuffer",p[p.Array=4]="Array",p[p.Object=5]="Object",p[p.Int=6]="Int"})(i||(i={}));function u(p){const a=W.VSBuffer.alloc(1);return a.writeUInt8(p,0),a}const c={Undefined:u(i.Undefined),String:u(i.String),Buffer:u(i.Buffer),VSBuffer:u(i.VSBuffer),Array:u(i.Array),Object:u(i.Object),Uint:u(i.Int)},f=typeof Buffer<"u";function s(p,a){if(typeof a>"u")p.write(c.Undefined);else if(typeof a=="string"){const r=W.VSBuffer.fromString(a);p.write(c.String),L(p,r.byteLength),p.write(r)}else if(f&&Buffer.isBuffer(a)){const r=W.VSBuffer.wrap(a);p.write(c.Buffer),L(p,r.byteLength),p.write(r)}else if(a instanceof W.VSBuffer)p.write(c.VSBuffer),L(p,a.byteLength),p.write(a);else if(Array.isArray(a)){p.write(c.Array),L(p,a.length);for(const r of a)s(p,r)}else if(typeof a=="number"&&(a|0)===a)p.write(c.Uint),L(p,a);else{const r=W.VSBuffer.fromString(JSON.stringify(a));p.write(c.Object),L(p,r.byteLength),p.write(r)}}e.serialize=s;function l(p){switch(p.read(1).readUInt8(0)){case i.Undefined:return;case i.String:return p.read(o(p)).toString();case i.Buffer:return p.read(o(p)).buffer;case i.VSBuffer:return p.read(o(p));case i.Array:{const r=o(p),P=[];for(let G=0;G<r;G++)P.push(l(p));return P}case i.Object:return JSON.parse(p.read(o(p)).toString());case i.Int:return o(p)}}e.deserialize=l;class A{constructor(a,r,P=null,G=1e3){this.protocol=a,this.ctx=r,this.logger=P,this.timeoutDelay=G,this.channels=new Map,this.activeRequests=new Map,this.pendingRequests=new Map,this.protocolListener=this.protocol.onMessage(V=>this.onRawMessage(V)),this.sendResponse({type:200})}registerChannel(a,r){this.channels.set(a,r),setTimeout(()=>this.flushPendingRequests(a),0)}sendResponse(a){switch(a.type){case 200:{const r=this.send([a.type]);this.logger?.logOutgoing(r,0,1,n(a.type));return}case 201:case 202:case 204:case 203:{const r=this.send([a.type,a.id],a.data);this.logger?.logOutgoing(r,a.id,1,n(a.type),a.data);return}}}send(a,r=void 0){const P=new t;return s(P,a),s(P,r),this.sendBuffer(P.buffer)}sendBuffer(a){try{return this.protocol.send(a),a.byteLength}catch{return 0}}onRawMessage(a){const r=new g(a),P=l(r),G=l(r),V=P[0];switch(V){case 100:return this.logger?.logIncoming(a.byteLength,P[1],1,`${d(V)}: ${P[2]}.${P[3]}`,G),this.onPromise({type:V,id:P[1],channelName:P[2],name:P[3],arg:G});case 102:return this.logger?.logIncoming(a.byteLength,P[1],1,`${d(V)}: ${P[2]}.${P[3]}`,G),this.onEventListen({type:V,id:P[1],channelName:P[2],name:P[3],arg:G});case 101:return this.logger?.logIncoming(a.byteLength,P[1],1,`${d(V)}`),this.disposeActiveRequest({type:V,id:P[1]});case 103:return this.logger?.logIncoming(a.byteLength,P[1],1,`${d(V)}`),this.disposeActiveRequest({type:V,id:P[1]})}}onPromise(a){const r=this.channels.get(a.channelName);if(!r){this.collectPendingRequest(a);return}const P=new $.CancellationTokenSource;let G;try{G=r.call(this.ctx,a.name,a.arg,P.token)}catch(ie){G=Promise.reject(ie)}const V=a.id;G.then(ie=>{this.sendResponse({id:V,data:ie,type:201}),this.activeRequests.delete(a.id)},ie=>{ie instanceof Error?this.sendResponse({id:V,data:{message:ie.message,name:ie.name,stack:ie.stack?ie.stack.split?ie.stack.split(`
`):ie.stack:void 0},type:202}):this.sendResponse({id:V,data:ie,type:203}),this.activeRequests.delete(a.id)});const Z=(0,_.toDisposable)(()=>P.cancel());this.activeRequests.set(a.id,Z)}onEventListen(a){const r=this.channels.get(a.channelName);if(!r){this.collectPendingRequest(a);return}const P=a.id,V=r.listen(this.ctx,a.name,a.arg)(Z=>this.sendResponse({id:P,data:Z,type:204}));this.activeRequests.set(a.id,V)}disposeActiveRequest(a){const r=this.activeRequests.get(a.id);r&&(r.dispose(),this.activeRequests.delete(a.id))}collectPendingRequest(a){let r=this.pendingRequests.get(a.channelName);r||(r=[],this.pendingRequests.set(a.channelName,r));const P=setTimeout(()=>{console.error(`Unknown channel: ${a.channelName}`),a.type===100&&this.sendResponse({id:a.id,data:{name:"Unknown channel",message:`Channel name '${a.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);r.push({request:a,timeoutTimer:P})}flushPendingRequests(a){const r=this.pendingRequests.get(a);if(r){for(const P of r)switch(clearTimeout(P.timeoutTimer),P.request.type){case 100:this.onPromise(P.request);break;case 102:this.onEventListen(P.request);break}this.pendingRequests.delete(a)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,_.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelServer=A;var T;(function(p){p[p.LocalSide=0]="LocalSide",p[p.OtherSide=1]="OtherSide"})(T||(e.RequestInitiator=T={}));class h{constructor(a,r=null){this.protocol=a,this.isDisposed=!1,this.state=w.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new S.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(P=>this.onBuffer(P)),this.logger=r}getChannel(a){const r=this;return{call(P,G,V){return r.isDisposed?Promise.reject(new k.CancellationError):r.requestPromise(a,P,G,V)},listen(P,G){return r.isDisposed?S.Event.None:r.requestEvent(a,P,G)}}}requestPromise(a,r,P,G=$.CancellationToken.None){const V=this.lastRequestId++,ie={id:V,type:100,channelName:a,name:r,arg:P};if(G.isCancellationRequested)return Promise.reject(new k.CancellationError);let Q;return new Promise((B,Y)=>{if(G.isCancellationRequested)return Y(new k.CancellationError);const te=()=>{const O=I=>{switch(I.type){case 201:this.handlers.delete(V),B(I.data);break;case 202:{this.handlers.delete(V);const z=new Error(I.data.message);z.stack=Array.isArray(I.data.stack)?I.data.stack.join(`
`):I.data.stack,z.name=I.data.name,Y(z);break}case 203:this.handlers.delete(V),Y(I.data);break}};this.handlers.set(V,O),this.sendRequest(ie)};let ce=null;this.state===w.Idle?te():(ce=(0,U.createCancelablePromise)(O=>this.whenInitialized()),ce.then(()=>{ce=null,te()}));const ne=()=>{ce?(ce.cancel(),ce=null):this.sendRequest({id:V,type:101}),Y(new k.CancellationError)},E=G.onCancellationRequested(ne);Q=(0,_.combinedDisposable)((0,_.toDisposable)(ne),E),this.activeRequests.add(Q)}).finally(()=>{this.activeRequests.delete(Q)})}requestEvent(a,r,P){const G=this.lastRequestId++,Z={id:G,type:102,channelName:a,name:r,arg:P};let ie=null;const Q=new S.Emitter({onWillAddFirstListener:()=>{ie=(0,U.createCancelablePromise)(B=>this.whenInitialized()),ie.then(()=>{ie=null,this.activeRequests.add(Q),this.sendRequest(Z)})},onDidRemoveLastListener:()=>{ie?(ie.cancel(),ie=null):(this.activeRequests.delete(Q),this.sendRequest({id:G,type:103}))}}),b=B=>Q.fire(B.data);return this.handlers.set(G,b),Q.event}sendRequest(a){switch(a.type){case 100:case 102:{const r=this.send([a.type,a.id,a.channelName,a.name],a.arg);this.logger?.logOutgoing(r,a.id,0,`${d(a.type)}: ${a.channelName}.${a.name}`,a.arg);return}case 101:case 103:{const r=this.send([a.type,a.id]);this.logger?.logOutgoing(r,a.id,0,d(a.type));return}}}send(a,r=void 0){const P=new t;return s(P,a),s(P,r),this.sendBuffer(P.buffer)}sendBuffer(a){try{return this.protocol.send(a),a.byteLength}catch{return 0}}onBuffer(a){const r=new g(a),P=l(r),G=l(r),V=P[0];switch(V){case 200:return this.logger?.logIncoming(a.byteLength,0,0,n(V)),this.onResponse({type:P[0]});case 201:case 202:case 204:case 203:return this.logger?.logIncoming(a.byteLength,P[1],0,n(V),G),this.onResponse({type:P[0],id:P[1],data:G})}}onResponse(a){if(a.type===200){this.state=w.Idle,this._onDidInitialize.fire();return}this.handlers.get(a.id)?.(a)}get onDidInitializePromise(){return S.Event.toPromise(this.onDidInitialize)}whenInitialized(){return this.state===w.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.isDisposed=!0,this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,_.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelClient=h,qe([H.memoize],h.prototype,"onDidInitializePromise",null);class y{get connections(){const a=[];return this._connections.forEach(r=>a.push(r)),a}constructor(a){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new S.Emitter,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new S.Emitter,this.onDidRemoveConnection=this._onDidRemoveConnection.event,a(({protocol:r,onDidClientDisconnect:P})=>{S.Event.once(r.onMessage)(V=>{const Z=new g(V),ie=l(Z),Q=new A(r,ie),b=new h(r);this.channels.forEach((Y,te)=>Q.registerChannel(te,Y));const B={channelServer:Q,channelClient:b,ctx:ie};this._connections.add(B),this._onDidAddConnection.fire(B),P(()=>{Q.dispose(),b.dispose(),this._connections.delete(B),this._onDidRemoveConnection.fire(B)})})})}getChannel(a,r){const P=this;return{call(G,V,Z){let ie;if((0,N.isFunction)(r)){const b=(0,R.getRandomElement)(P.connections.filter(r));ie=b?Promise.resolve(b):S.Event.toPromise(S.Event.filter(P.onDidAddConnection,r))}else ie=r.routeCall(P,G,V);const Q=ie.then(b=>b.channelClient.getChannel(a));return J(Q).call(G,V,Z)},listen(G,V){if((0,N.isFunction)(r))return P.getMulticastEvent(a,r,G,V);const Z=r.routeEvent(P,G,V).then(ie=>ie.channelClient.getChannel(a));return J(Z).listen(G,V)}}}getMulticastEvent(a,r,P,G){const V=this;let Z=new _.DisposableStore;const ie=new S.Emitter({onWillAddFirstListener:()=>{Z=new _.DisposableStore;const Q=new S.EventMultiplexer,b=new Map,B=te=>{const ne=te.channelClient.getChannel(a).listen(P,G),E=Q.add(ne);b.set(te,E)},Y=te=>{const ce=b.get(te);ce&&(ce.dispose(),b.delete(te))};V.connections.filter(r).forEach(B),S.Event.filter(V.onDidAddConnection,r)(B,void 0,Z),V.onDidRemoveConnection(Y,void 0,Z),Q.event(ie.fire,ie,Z),Z.add(Q)},onDidRemoveLastListener:()=>{Z.dispose()}});return ie.event}registerChannel(a,r){this.channels.set(a,r),this._connections.forEach(P=>{P.channelServer.registerChannel(a,r)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}}e.IPCServer=y;class q{constructor(a,r,P=null){const G=new t;s(G,r),a.send(G.buffer),this.channelClient=new h(a,P),this.channelServer=new A(a,r,P)}getChannel(a){return this.channelClient.getChannel(a)}registerChannel(a,r){this.channelServer.registerChannel(a,r)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}e.IPCClient=q;function J(p){return{call(a,r,P){return p.then(G=>G.call(a,r,P))},listen(a,r){const P=new S.Relay;return p.then(G=>P.input=G.listen(a,r)),P.event}}}e.getDelayedChannel=J;function oe(p){let a=!1;return{call(r,P,G){return a?p.call(r,P,G):(0,U.timeout)(0).then(()=>a=!0).then(()=>p.call(r,P,G))},listen(r,P){if(a)return p.listen(r,P);const G=new S.Relay;return(0,U.timeout)(0).then(()=>a=!0).then(()=>G.input=p.listen(r,P)),G.event}}}e.getNextTickChannel=oe;class ae{constructor(a){this.fn=a}routeCall(a){return this.route(a)}routeEvent(a){return this.route(a)}async route(a){for(const r of a.connections)if(await Promise.resolve(this.fn(r.ctx)))return Promise.resolve(r);return await S.Event.toPromise(a.onDidAddConnection),await this.route(a)}}e.StaticRouter=ae;var me;(function(p){function a(V,Z){const ie=V,Q=Z&&Z.disableMarshalling,b=new Map;for(const B in ie)P(B)&&b.set(B,S.Event.buffer(ie[B],!0));return new class{listen(B,Y,te){const ce=b.get(Y);if(ce)return ce;if(G(Y)){const ne=ie[Y];if(typeof ne=="function")return ne.call(ie,te)}throw new k.ErrorNoTelemetry(`Event not found: ${Y}`)}call(B,Y,te){const ce=ie[Y];if(typeof ce=="function"){if(!Q&&Array.isArray(te))for(let ne=0;ne<te.length;ne++)te[ne]=(0,F.revive)(te[ne]);return ce.apply(ie,te)}throw new k.ErrorNoTelemetry(`Method not found: ${Y}`)}}}p.fromService=a;function r(V,Z){const ie=Z&&Z.disableMarshalling;return new Proxy({},{get(Q,b){if(typeof b=="string")return Z?.properties?.has(b)?Z.properties.get(b):G(b)?function(B){return V.listen(b,B)}:P(b)?V.listen(b):async function(...B){let Y;Z&&!(0,N.isUndefinedOrNull)(Z.context)?Y=[Z.context,...B]:Y=B;const te=await V.call(b,Y);return ie?te:(0,F.revive)(te)};throw new k.ErrorNoTelemetry(`Property not found: ${String(b)}`)}})}p.toService=r;function P(V){return V[0]==="o"&&V[1]==="n"&&M.isUpperAsciiLetter(V.charCodeAt(2))}function G(V){return/^onDynamic/.test(V)&&M.isUpperAsciiLetter(V.charCodeAt(9))}})(me||(e.ProxyChannel=me={}));const he=[["#2977B1","#FC802D","#34A13A","#D3282F","#9366BA"],["#8B564C","#E177C0","#7F7F7F","#BBBE3D","#2EBECD"]];function X(p){if(Array.isArray(p))return p;if(p&&typeof p=="object"&&typeof p.toString=="function"){const a=p.toString();if(a!=="[object Object]")return a}return p}function re(p){return Array.isArray(p)?p.map(X):X(p)}function le(p,a,r,P,G,V,Z){Z=re(Z);const ie=he[G],Q=ie[P%ie.length];let b=[`%c[${p}]%c[${String(a).padStart(7," ")}]%c[len: ${String(r).padStart(5," ")}]%c${String(P).padStart(5," ")} - ${V}`,"color: darkgreen","color: grey","color: grey",`color: ${Q}`];/\($/.test(V)?(b=b.concat(Z),b.push(")")):b.push(Z),console.log.apply(console,b)}class K{constructor(a,r){this._outgoingPrefix=a,this._incomingPrefix=r,this._totalIncoming=0,this._totalOutgoing=0}logOutgoing(a,r,P,G,V){this._totalOutgoing+=a,le(this._outgoingPrefix,this._totalOutgoing,a,r,P,G,V)}logIncoming(a,r,P,G,V){this._totalIncoming+=a,le(this._incomingPrefix,this._totalIncoming,a,r,P,G,V)}}e.IPCLogger=K}),define(ge[49],we([0,1,58,10,14,11,45,6,5,4,41,48,28,19]),function(fe,e,R,U,W,$,H,k,S,_,F,M,N,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Client=e.Server=void 0;class d extends m.ChannelServer{constructor(w){super({send:o=>{try{process.send?.(o.buffer.toString("base64"))}catch{}},onMessage:S.Event.fromNodeEventEmitter(process,"message",o=>W.VSBuffer.wrap(Buffer.from(o,"base64")))},w),process.once("disconnect",()=>this.dispose())}}e.Server=d;class D{constructor(w,o){this.modulePath=w,this.options=o,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new S.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const C=o&&o.timeout?o.timeout:6e4;this.disposeDelayer=new U.Delayer(C),this.child=null,this._client=null}getChannel(w){const o=this;return{call(C,L,g){return o.requestPromise(w,C,L,g)},listen(C,L){return o.requestEvent(w,C,L)}}}requestPromise(w,o,C,L=$.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(L.isCancellationRequested)return Promise.reject(k.canceled());this.disposeDelayer.cancel();const g=this.getCachedChannel(w),t=(0,U.createCancelablePromise)(c=>g.call(o,C,c)),i=L.onCancellationRequested(()=>t.cancel()),u=(0,_.toDisposable)(()=>t.cancel());return this.activeRequests.add(u),t.finally(()=>{i.dispose(),this.activeRequests.delete(u),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),t}requestEvent(w,o,C){if(!this.disposeDelayer)return S.Event.None;this.disposeDelayer.cancel();let L;const g=new S.Emitter({onWillAddFirstListener:()=>{L=this.getCachedChannel(w).listen(o,C)(g.fire,g),this.activeRequests.add(L)},onDidRemoveLastListener:()=>{this.activeRequests.delete(L),L.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return g.event}get client(){if(!this._client){const w=this.options&&this.options.args?this.options.args:[],o=Object.create(null);o.env={...(0,F.deepClone)(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(o.env={...o.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(o.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(o.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(o.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),o.execArgv===void 0&&(o.execArgv=process.execArgv.filter(f=>!/^--inspect(-brk)?=/.test(f)).filter(f=>!f.startsWith("--vscode-"))),(0,N.removeDangerousEnvVariables)(o.env),this.child=(0,R.fork)(this.modulePath,w,o);const C=new S.Emitter;S.Event.fromNodeEventEmitter(this.child,"message",f=>f)(f=>{if((0,H.isRemoteConsoleLog)(f)){(0,H.log)(f,`IPC Library: ${this.options.serverName}`);return}C.fire(W.VSBuffer.wrap(Buffer.from(f,"base64")))});const g=this.options.useQueue?(0,M.createQueuedSender)(this.child):this.child,t=f=>this.child&&this.child.connected&&g.send(f.buffer.toString("base64")),i=C.event,u={send:t,onMessage:i};this._client=new m.ChannelClient(u);const c=()=>this.disposeClient();process.once("exit",c),this.child.on("error",f=>console.warn('IPC "'+this.options.serverName+'" errored with '+f)),this.child.on("exit",(f,s)=>{process.removeListener("exit",c),this.activeRequests.forEach(l=>(0,_.dispose)(l)),this.activeRequests.clear(),f!==0&&s!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+f+" and signal "+s),this.disposeDelayer?.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:f,signal:s})})}return this._client}getCachedChannel(w){let o=this.channels.get(w);return o||(o=this.client.getChannel(w),this.channels.set(w,o)),o}disposeClient(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer?.cancel(),this.disposeDelayer=void 0,this.disposeClient(),this.activeRequests.clear()}}e.Client=D}),define(ge[50],we([0,1,24,14,19,5,8,12]),function(fe,e,R,U,W,$,H,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=e.Server=void 0;class S{constructor(N){this.port=N,this.onMessage=$.Event.fromNodeEventEmitter(this.port,"message",m=>U.VSBuffer.wrap(m.data)),N.start()}send(N){this.port.postMessage(N.buffer)}disconnect(){this.port.close()}}class _ extends W.IPCServer{static getOnDidClientConnect(N){(0,H.assertType)((0,R.isUtilityProcess)(process),"Electron Utility Process");const m=new $.Emitter;return process.parentPort.on("message",d=>{if(N?.handledClientConnection(d))return;const D=(0,k.firstOrDefault)(d.ports);D&&m.fire(D)}),$.Event.map(m.event,d=>({protocol:new S(d),onDidClientDisconnect:$.Event.fromNodeEventEmitter(d,"close")}))}constructor(N){super(_.getOnDidClientConnect(N))}}e.Server=_;function F(M,N,m){const d=D=>{D.data===N&&(M.removeListener("message",d),m())};M.on("message",d)}e.once=F}),define(ge[51],we([25,26]),function(fe,e){return fe.create("vs/platform/files/common/files",e)}),define(ge[52],we([0,1]),function(fe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var R;(function(H){H.serviceIds=new Map,H.DI_TARGET="$di$target",H.DI_DEPENDENCIES="$di$dependencies";function k(S){return S[H.DI_DEPENDENCIES]||[]}H.getServiceDependencies=k})(R||(e._util=R={})),e.IInstantiationService=W("instantiationService");function U(H,k,S){k[R.DI_TARGET]===k?k[R.DI_DEPENDENCIES].push({id:H,index:S}):(k[R.DI_DEPENDENCIES]=[{id:H,index:S}],k[R.DI_TARGET]=k)}function W(H){if(R.serviceIds.has(H))return R.serviceIds.get(H);const k=function(S,_,F){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");U(k,S,F)};return k.toString=()=>H,R.serviceIds.set(H,k),k}e.createDecorator=W;function $(H){return H}e.refineServiceDecorator=$}),define(ge[53],we([0,1,23,3,7,8,9,51,52,2,29]),function(fe,e,R,U,W,$,H,k,S,_,F){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLargeFileConfirmationLimit=e.ByteSize=e.whenProviderRegistered=e.etag=e.ETAG_DISABLED=e.FileKind=e.FILES_READONLY_FROM_PERMISSIONS_CONFIG=e.FILES_READONLY_EXCLUDE_CONFIG=e.FILES_READONLY_INCLUDE_CONFIG=e.FILES_EXCLUDE_CONFIG=e.FILES_ASSOCIATIONS_CONFIG=e.HotExitConfiguration=e.AutoSaveConfiguration=e.FileOperationResult=e.NotModifiedSinceFileOperationError=e.TooLargeFileOperationError=e.FileOperationError=e.isParent=e.FileChangesEvent=e.FileChangeType=e.FileOperationEvent=e.FileOperation=e.toFileOperationResult=e.toFileSystemProviderErrorCode=e.markAsFileSystemProviderError=e.ensureFileSystemProviderError=e.createFileSystemProviderError=e.FileSystemProviderError=e.FileSystemProviderErrorCode=e.hasReadonlyCapability=e.hasFileAtomicDeleteCapability=e.hasFileAtomicWriteCapability=e.hasFileAtomicReadCapability=e.hasFileReadStreamCapability=e.hasOpenReadWriteCloseCapability=e.hasFileCloneCapability=e.hasFileFolderCopyCapability=e.hasReadWriteCapability=e.FileSystemProviderCapabilities=e.FilePermission=e.FileType=e.isFileOpenForWriteOptions=e.IFileService=void 0,e.IFileService=(0,S.createDecorator)("fileService");function M(r){return r.create===!0}e.isFileOpenForWriteOptions=M;var N;(function(r){r[r.Unknown=0]="Unknown",r[r.File=1]="File",r[r.Directory=2]="Directory",r[r.SymbolicLink=64]="SymbolicLink"})(N||(e.FileType=N={}));var m;(function(r){r[r.Readonly=1]="Readonly",r[r.Locked=2]="Locked"})(m||(e.FilePermission=m={}));var d;(function(r){r[r.None=0]="None",r[r.FileReadWrite=2]="FileReadWrite",r[r.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",r[r.FileReadStream=16]="FileReadStream",r[r.FileFolderCopy=8]="FileFolderCopy",r[r.PathCaseSensitive=1024]="PathCaseSensitive",r[r.Readonly=2048]="Readonly",r[r.Trash=4096]="Trash",r[r.FileWriteUnlock=8192]="FileWriteUnlock",r[r.FileAtomicRead=16384]="FileAtomicRead",r[r.FileAtomicWrite=32768]="FileAtomicWrite",r[r.FileAtomicDelete=65536]="FileAtomicDelete",r[r.FileClone=131072]="FileClone"})(d||(e.FileSystemProviderCapabilities=d={}));function D(r){return!!(r.capabilities&2)}e.hasReadWriteCapability=D;function n(r){return!!(r.capabilities&8)}e.hasFileFolderCopyCapability=n;function w(r){return!!(r.capabilities&131072)}e.hasFileCloneCapability=w;function o(r){return!!(r.capabilities&4)}e.hasOpenReadWriteCloseCapability=o;function C(r){return!!(r.capabilities&16)}e.hasFileReadStreamCapability=C;function L(r){return D(r)?!!(r.capabilities&16384):!1}e.hasFileAtomicReadCapability=L;function g(r){return D(r)?!!(r.capabilities&32768):!1}e.hasFileAtomicWriteCapability=g;function t(r){return!!(r.capabilities&65536)}e.hasFileAtomicDeleteCapability=t;function i(r){return!!(r.capabilities&2048)}e.hasReadonlyCapability=i;var u;(function(r){r.FileExists="EntryExists",r.FileNotFound="EntryNotFound",r.FileNotADirectory="EntryNotADirectory",r.FileIsADirectory="EntryIsADirectory",r.FileExceedsStorageQuota="EntryExceedsStorageQuota",r.FileTooLarge="EntryTooLarge",r.FileWriteLocked="EntryWriteLocked",r.NoPermissions="NoPermissions",r.Unavailable="Unavailable",r.Unknown="Unknown"})(u||(e.FileSystemProviderErrorCode=u={}));class c extends Error{static create(P,G){const V=new c(P.toString(),G);return l(V,G),V}constructor(P,G){super(P),this.code=G}}e.FileSystemProviderError=c;function f(r,P){return c.create(r,P)}e.createFileSystemProviderError=f;function s(r){return r||f((0,k.localize)(0,null),u.Unknown)}e.ensureFileSystemProviderError=s;function l(r,P){return r.name=P?`${P} (FileSystemError)`:"FileSystemError",r}e.markAsFileSystemProviderError=l;function A(r){if(!r)return u.Unknown;if(r instanceof c)return r.code;const P=/^(.+) \(FileSystemError\)$/.exec(r.name);if(!P)return u.Unknown;switch(P[1]){case u.FileExists:return u.FileExists;case u.FileIsADirectory:return u.FileIsADirectory;case u.FileNotADirectory:return u.FileNotADirectory;case u.FileNotFound:return u.FileNotFound;case u.FileTooLarge:return u.FileTooLarge;case u.FileWriteLocked:return u.FileWriteLocked;case u.NoPermissions:return u.NoPermissions;case u.Unavailable:return u.Unavailable}return u.Unknown}e.toFileSystemProviderErrorCode=A;function T(r){if(r instanceof ae)return r.fileOperationResult;switch(A(r)){case u.FileNotFound:return 1;case u.FileIsADirectory:return 0;case u.FileNotADirectory:return 9;case u.FileWriteLocked:return 5;case u.NoPermissions:return 6;case u.FileExists:return 4;case u.FileTooLarge:return 7;default:return 10}}e.toFileOperationResult=T;var h;(function(r){r[r.CREATE=0]="CREATE",r[r.DELETE=1]="DELETE",r[r.MOVE=2]="MOVE",r[r.COPY=3]="COPY",r[r.WRITE=4]="WRITE"})(h||(e.FileOperation=h={}));class y{constructor(P,G,V){this.resource=P,this.operation=G,this.target=V}isOperation(P){return this.operation===P}}e.FileOperationEvent=y;var q;(function(r){r[r.UPDATED=0]="UPDATED",r[r.ADDED=1]="ADDED",r[r.DELETED=2]="DELETED"})(q||(e.FileChangeType=q={}));class J{constructor(P,G){this.added=void 0,this.updated=void 0,this.deleted=void 0,this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];const V=new Map;for(const Z of P){const ie=V.get(Z.type);switch(ie?ie.push([Z.resource,Z]):V.set(Z.type,[[Z.resource,Z]]),Z.type){case 1:this.rawAdded.push(Z.resource);break;case 0:this.rawUpdated.push(Z.resource);break;case 2:this.rawDeleted.push(Z.resource);break}}for(const[Z,ie]of V)switch(Z){case 1:this.added=R.TernarySearchTree.forUris(()=>G),this.added.fill(ie);break;case 0:this.updated=R.TernarySearchTree.forUris(()=>G),this.updated.fill(ie);break;case 2:this.deleted=R.TernarySearchTree.forUris(()=>G),this.deleted.fill(ie);break}}contains(P,...G){return this.doContains(P,{includeChildren:!1},...G)}affects(P,...G){return this.doContains(P,{includeChildren:!0},...G)}doContains(P,G,...V){if(!P)return!1;const Z=V.length>0;return!!((!Z||V.includes(1))&&(this.added?.get(P)||G.includeChildren&&this.added?.findSuperstr(P))||(!Z||V.includes(0))&&(this.updated?.get(P)||G.includeChildren&&this.updated?.findSuperstr(P))||(!Z||V.includes(2))&&(this.deleted?.findSubstr(P)||G.includeChildren&&this.deleted?.findSuperstr(P)))}gotAdded(){return!!this.added}gotDeleted(){return!!this.deleted}gotUpdated(){return!!this.updated}}e.FileChangesEvent=J;function oe(r,P,G){return!r||!P||r===P||P.length>r.length?!1:(P.charAt(P.length-1)!==U.sep&&(P+=U.sep),G?(0,W.startsWithIgnoreCase)(r,P):r.indexOf(P)===0)}e.isParent=oe;class ae extends Error{constructor(P,G,V){super(P),this.fileOperationResult=G,this.options=V}}e.FileOperationError=ae;class me extends ae{constructor(P,G,V,Z){super(P,G,Z),this.fileOperationResult=G,this.size=V}}e.TooLargeFileOperationError=me;class he extends ae{constructor(P,G,V){super(P,2,V),this.stat=G}}e.NotModifiedSinceFileOperationError=he;var X;(function(r){r[r.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",r[r.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",r[r.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",r[r.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",r[r.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",r[r.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",r[r.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",r[r.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",r[r.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",r[r.FILE_NOT_DIRECTORY=9]="FILE_NOT_DIRECTORY",r[r.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"})(X||(e.FileOperationResult=X={})),e.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},e.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},e.FILES_ASSOCIATIONS_CONFIG="files.associations",e.FILES_EXCLUDE_CONFIG="files.exclude",e.FILES_READONLY_INCLUDE_CONFIG="files.readonlyInclude",e.FILES_READONLY_EXCLUDE_CONFIG="files.readonlyExclude",e.FILES_READONLY_FROM_PERMISSIONS_CONFIG="files.readonlyFromPermissions";var re;(function(r){r[r.FILE=0]="FILE",r[r.FOLDER=1]="FOLDER",r[r.ROOT_FOLDER=2]="ROOT_FOLDER"})(re||(e.FileKind=re={})),e.ETAG_DISABLED="";function le(r){if(!(typeof r.size!="number"||typeof r.mtime!="number"))return r.mtime.toString(29)+r.size.toString(31)}e.etag=le;async function K(r,P){if(!P.hasProvider(H.URI.from({scheme:r.scheme})))return new Promise(G=>{const V=P.onDidChangeFileSystemProviderRegistrations(Z=>{Z.scheme===r.scheme&&Z.added&&(V.dispose(),G())})})}e.whenProviderRegistered=K;class p{static{this.KB=1024}static{this.MB=p.KB*p.KB}static{this.GB=p.MB*p.KB}static{this.TB=p.GB*p.KB}static formatSize(P){return(0,$.isNumber)(P)||(P=0),P<p.KB?(0,k.localize)(1,null,P.toFixed(0)):P<p.MB?(0,k.localize)(2,null,(P/p.KB).toFixed(2)):P<p.GB?(0,k.localize)(3,null,(P/p.MB).toFixed(2)):P<p.TB?(0,k.localize)(4,null,(P/p.GB).toFixed(2)):(0,k.localize)(5,null,(P/p.TB).toFixed(2))}}e.ByteSize=p;function a(r){const P=typeof r=="string"||r?.scheme===F.Schemas.vscodeRemote;return typeof r!="string"&&r?.scheme===F.Schemas.file?1024*p.MB:P?10*p.MB:_.isWeb?50*p.MB:1024*p.MB}e.getLargeFileConfirmationLimit=a}),define(ge[32],we([0,1,16,4,3,2,9,53]),function(fe,e,R,U,W,$,H,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseWatcherPatterns=e.normalizeWatcherPattern=e.coalesceEvents=e.toFileChanges=e.AbstractUniversalWatcherClient=e.AbstractNonRecursiveWatcherClient=e.AbstractWatcherClient=e.isRecursiveWatchRequest=void 0;function S(w){return w.recursive===!0}e.isRecursiveWatchRequest=S;class _ extends U.Disposable{static{this.MAX_RESTARTS=5}constructor(o,C,L,g){super(),this.onFileChanges=o,this.onLogMessage=C,this.verboseLogging=L,this.options=g,this.watcherDisposables=this._register(new U.MutableDisposable),this.requests=void 0,this.restartCounter=0}init(){const o=new U.DisposableStore;this.watcherDisposables.value=o,this.watcher=this.createWatcher(o),this.watcher.setVerboseLogging(this.verboseLogging),o.add(this.watcher.onDidChangeFile(C=>this.onFileChanges(C))),o.add(this.watcher.onDidLogMessage(C=>this.onLogMessage(C))),o.add(this.watcher.onDidError(C=>this.onError(C)))}onError(o){this.options.restartOnError?this.restartCounter<_.MAX_RESTARTS&&this.requests?(this.error(`restarting watcher after error: ${o}`),this.restart(this.requests)):this.error(`gave up attempting to restart watcher after error: ${o}`):this.error(o)}restart(o){this.restartCounter++,this.init(),this.watch(o)}async watch(o){this.requests=o,await this.watcher?.watch(o)}async setVerboseLogging(o){this.verboseLogging=o,await this.watcher?.setVerboseLogging(o)}error(o){this.onLogMessage({type:"error",message:`[File Watcher (${this.options.type})] ${o}`})}trace(o){this.onLogMessage({type:"trace",message:`[File Watcher (${this.options.type})] ${o}`})}dispose(){return this.watcher=void 0,super.dispose()}}e.AbstractWatcherClient=_;class F extends _{constructor(o,C,L){super(o,C,L,{type:"node.js",restartOnError:!1})}}e.AbstractNonRecursiveWatcherClient=F;class M extends _{constructor(o,C,L){super(o,C,L,{type:"universal",restartOnError:!0})}}e.AbstractUniversalWatcherClient=M;function N(w){return w.map(o=>({type:o.type,resource:H.URI.file(o.path)}))}e.toFileChanges=N;function m(w){const o=new n;for(const C of w)o.processEvent(C);return o.coalesce()}e.coalesceEvents=m;function d(w,o){return typeof o=="string"&&!o.startsWith(R.GLOBSTAR)&&!(0,W.isAbsolute)(o)?{base:w,pattern:o}:o}e.normalizeWatcherPattern=d;function D(w,o){const C=[];for(const L of o)C.push((0,R.parse)(d(w,L)));return C}e.parseWatcherPatterns=D;class n{constructor(){this.coalesced=new Set,this.mapPathToChange=new Map}toKey(o){return $.isLinux?o.path:o.path.toLowerCase()}processEvent(o){const C=this.mapPathToChange.get(this.toKey(o));let L=!1;if(C){const g=C.type,t=o.type;C.path!==o.path&&(o.type===2||o.type===1)?L=!0:g===1&&t===2?(this.mapPathToChange.delete(this.toKey(o)),this.coalesced.delete(C)):g===2&&t===1?C.type=0:g===1&&t===0||(C.type=t)}else L=!0;L&&(this.coalesced.add(o),this.mapPathToChange.set(this.toKey(o),o))}coalesce(){const o=[],C=[];return Array.from(this.coalesced).filter(L=>L.type!==2?(o.push(L),!1):!0).sort((L,g)=>L.path.length-g.path.length).filter(L=>C.some(g=>(0,k.isParent)(L.path,g,!$.isLinux))?!1:(C.push(L.path),!0)).concat(o)}}}),define(ge[33],we([0,1,18,10,11,13,4,15,3,2,31,17,32]),function(fe,e,R,U,W,$,H,k,S,_,F,M,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.watchFileContents=e.NodeJSFileWatcherLibrary=void 0;class m extends H.Disposable{static{this.FILE_DELETE_HANDLER_DELAY=100}static{this.FILE_CHANGES_HANDLER_DELAY=75}constructor(n,w,o,C){super(),this.request=n,this.onDidFilesChange=w,this.onLogMessage=o,this.verboseLogging=C,this.throttledFileChangesEmitter=this._register(new U.ThrottledWorker({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},L=>this.onDidFilesChange(L))),this.fileChangesAggregator=this._register(new U.RunOnceWorker(L=>this.handleFileChanges(L),m.FILE_CHANGES_HANDLER_DELAY)),this.excludes=(0,N.parseWatcherPatterns)(this.request.path,this.request.excludes),this.includes=this.request.includes?(0,N.parseWatcherPatterns)(this.request.path,this.request.includes):void 0,this.cts=new W.CancellationTokenSource,this.ready=this.watch()}async watch(){try{const n=await this.normalizePath(this.request);if(this.cts.token.isCancellationRequested)return;const w=await M.Promises.stat(n);this._register(await this.doWatch(n,w.isDirectory()))}catch(n){n.code!=="ENOENT"?this.error(n):this.trace(n)}}async normalizePath(n){let w=n.path;try{w=await M.Promises.realpath(n.path),n.path===w&&(w=await(0,F.realcase)(n.path)??n.path),n.path!==w&&this.trace(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${n.path}, real: ${w})`)}catch{}return w}async doWatch(n,w){if(_.isMacintosh&&(0,$.isEqualOrParent)(n,"/Volumes/",!0))return this.error(`Refusing to watch ${n} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`),H.Disposable.None;const o=new W.CancellationTokenSource(this.cts.token),C=new H.DisposableStore;try{const L=(0,S.basename)(n),g=(0,R.watch)(n);C.add((0,H.toDisposable)(()=>{g.removeAllListeners(),g.close()})),this.trace(`Started watching: '${n}'`);const t=new Set;if(w)try{for(const u of await M.Promises.readdir(n))t.add(u)}catch(u){this.error(u)}const i=new Map;C.add((0,H.toDisposable)(()=>{for(const[,u]of i)u.dispose();i.clear()})),g.on("error",(u,c)=>{this.error(`Failed to watch ${n} for changes using fs.watch() (${u}, ${c})`),this.dispose()}),g.on("change",(u,c)=>{if(o.token.isCancellationRequested)return;this.trace(`[raw] ["${u}"] ${c}`);let f="";if(c&&(f=c.toString(),_.isMacintosh&&(f=(0,k.normalizeNFC)(f))),!(!f||u!=="change"&&u!=="rename"))if(w)if(u==="rename"){i.get(f)?.dispose();const s=setTimeout(async()=>{if(i.delete(f),f===L&&!await M.Promises.exists(n)){this.warn("Watcher shutdown because watched path got deleted"),this.dispose();return}const l=await this.existsChildStrictCase((0,S.join)(n,f));if(o.token.isCancellationRequested)return;let A;l?t.has(f)?A=0:(A=1,t.add(f)):(t.delete(f),A=2),this.onFileChange({path:(0,S.join)(this.request.path,f),type:A})},m.FILE_DELETE_HANDLER_DELAY);i.set(f,(0,H.toDisposable)(()=>clearTimeout(s)))}else{let s;t.has(f)?s=0:(s=1,t.add(f)),this.onFileChange({path:(0,S.join)(this.request.path,f),type:s})}else if(u==="rename"||f!==L){const s=setTimeout(async()=>{const l=await M.Promises.exists(n);o.token.isCancellationRequested||(l?(this.onFileChange({path:this.request.path,type:0},!0),C.add(await this.doWatch(n,!1))):(this.onFileChange({path:this.request.path,type:2},!0),this.fileChangesAggregator.flush(),this.dispose()))},m.FILE_DELETE_HANDLER_DELAY);C.clear(),C.add((0,H.toDisposable)(()=>clearTimeout(s)))}else this.onFileChange({path:this.request.path,type:0},!0)})}catch(L){await M.Promises.exists(n)&&!o.token.isCancellationRequested&&this.error(`Failed to watch ${n} for changes using fs.watch() (${L.toString()})`)}return(0,H.toDisposable)(()=>{o.dispose(!0),C.dispose()})}onFileChange(n,w=!1){this.cts.token.isCancellationRequested||(this.verboseLogging&&this.trace(`${n.type===1?"[ADDED]":n.type===2?"[DELETED]":"[CHANGED]"} ${n.path}`),!w&&this.excludes.some(o=>o(n.path))?this.verboseLogging&&this.trace(` >> ignored (excluded) ${n.path}`):!w&&this.includes&&this.includes.length>0&&!this.includes.some(o=>o(n.path))?this.verboseLogging&&this.trace(` >> ignored (not included) ${n.path}`):this.fileChangesAggregator.work(n))}handleFileChanges(n){const w=(0,N.coalesceEvents)(n);if(w.length>0){if(this.verboseLogging)for(const C of w)this.trace(`>> normalized ${C.type===1?"[ADDED]":C.type===2?"[DELETED]":"[CHANGED]"} ${C.path}`);this.throttledFileChangesEmitter.work(w)?this.throttledFileChangesEmitter.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesEmitter.pending}, most recent change: ${w[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${w.length}, most recent change: ${w[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}}async existsChildStrictCase(n){if(_.isLinux)return M.Promises.exists(n);try{const w=(0,S.basename)(n);return(await M.Promises.readdir((0,S.dirname)(n))).some(C=>C===w)}catch(w){return this.trace(w),!1}}setVerboseLogging(n){this.verboseLogging=n}error(n){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"error",message:`[File Watcher (node.js)] ${n}`})}warn(n){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"warn",message:`[File Watcher (node.js)] ${n}`})}trace(n){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.onLogMessage?.({type:"trace",message:`[File Watcher (node.js)] ${n}`})}dispose(){this.trace(`stopping file watcher on ${this.request.path}`),this.cts.dispose(!0),super.dispose()}}e.NodeJSFileWatcherLibrary=m;async function d(D,n,w,o,C=512){const L=await M.Promises.open(D,"r"),g=Buffer.allocUnsafe(C),t=new W.CancellationTokenSource(o);let i,u=!1;const c={path:D,excludes:[],recursive:!1},f=new m(c,s=>{(async()=>{for(const{type:l}of s)if(l===0){if(u)return;u=!0;try{for(;!t.token.isCancellationRequested;){const{bytesRead:A}=await M.Promises.read(L,g,0,C,null);if(!A||t.token.isCancellationRequested)break;n(g.slice(0,A))}}catch(A){i=new Error(A),t.dispose(!0)}finally{u=!1}}})()});return await f.ready,w(),new Promise((s,l)=>{t.token.onCancellationRequested(async()=>{f.dispose();try{await M.Promises.close(L)}catch(A){i=new Error(A)}i?l(i):s()})})}e.watchFileContents=d}),define(ge[54],we([0,1,5,16,4,2,33]),function(fe,e,R,U,W,$,H){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeJSWatcher=void 0;class k extends W.Disposable{constructor(){super(...arguments),this._onDidChangeFile=this._register(new R.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidLogMessage=this._register(new R.Emitter),this.onDidLogMessage=this._onDidLogMessage.event,this.onDidError=R.Event.None,this.watchers=new Map,this.verboseLogging=!1}async watch(_){const F=this.normalizeRequests(_),M=F.filter(m=>{const d=this.watchers.get(m.path);return d?!(0,U.patternsEquals)(d.request.excludes,m.excludes)||!(0,U.patternsEquals)(d.request.includes,m.includes):!0}),N=Array.from(this.watchers.values()).filter(({request:m})=>!F.find(d=>d.path===m.path&&(0,U.patternsEquals)(d.excludes,m.excludes)&&(0,U.patternsEquals)(d.includes,m.includes))).map(({request:m})=>m.path);M.length&&this.trace(`Request to start watching: ${M.map(m=>`${m.path} (excludes: ${m.excludes.length>0?m.excludes:"<none>"}, includes: ${m.includes&&m.includes.length>0?JSON.stringify(m.includes):"<all>"})`).join(",")}`),N.length&&this.trace(`Request to stop watching: ${N.join(",")}`);for(const m of N)this.stopWatching(m);for(const m of M)this.startWatching(m)}startWatching(_){const F=new H.NodeJSFileWatcherLibrary(_,N=>this._onDidChangeFile.fire(N),N=>this._onDidLogMessage.fire(N),this.verboseLogging),M={request:_,instance:F};this.watchers.set(_.path,M)}async stop(){for(const[_]of this.watchers)this.stopWatching(_);this.watchers.clear()}stopWatching(_){const F=this.watchers.get(_);F&&(this.watchers.delete(_),F.instance.dispose())}normalizeRequests(_){const F=new Map;for(const M of _){const N=$.isLinux?M.path:M.path.toLowerCase();F.set(N,M)}return Array.from(F.values())}async setVerboseLogging(_){this.verboseLogging=_;for(const[,F]of this.watchers)F.instance.setVerboseLogging(_)}trace(_){this.verboseLogging&&this._onDidLogMessage.fire({type:"trace",message:this.toMessage(_)})}toMessage(_,F){return F?`[File Watcher (node.js)] ${_} (path: ${F.request.path})`:`[File Watcher (node.js)] ${_}`}}e.NodeJSWatcher=k}),define(ge[55],we([0,1,59,18,47,10,11,43,5,13,16,4,23,15,3,2,31,33,32]),function(fe,e,R,U,W,$,H,k,S,_,F,M,N,m,d,D,n,w,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParcelWatcher=void 0;class C extends M.Disposable{static{this.MAP_PARCEL_WATCHER_ACTION_TO_FILE_CHANGE=new Map([["create",1],["update",0],["delete",2]])}static{this.PARCEL_WATCHER_BACKEND=D.isWindows?"windows":D.isLinux?"inotify":"fs-events"}static{this.FILE_CHANGES_HANDLER_DELAY=75}constructor(){super(),this._onDidChangeFile=this._register(new S.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidLogMessage=this._register(new S.Emitter),this.onDidLogMessage=this._onDidLogMessage.event,this._onDidError=this._register(new S.Emitter),this.onDidError=this._onDidError.event,this.watchers=new Map,this.throttledFileChangesEmitter=this._register(new $.ThrottledWorker({maxWorkChunkSize:500,throttleDelay:200,maxBufferedWork:3e4},g=>this._onDidChangeFile.fire(g))),this.verboseLogging=!1,this.enospcErrorLogged=!1,this.registerListeners()}registerListeners(){process.on("uncaughtException",g=>this.onUnexpectedError(g)),process.on("unhandledRejection",g=>this.onUnexpectedError(g))}async watch(g){const t=this.normalizeRequests(g),i=t.filter(c=>{const f=this.watchers.get(c.path);return f?!(0,F.patternsEquals)(f.request.excludes,c.excludes)||!(0,F.patternsEquals)(f.request.includes,c.includes)||f.request.pollingInterval!==c.pollingInterval:!0}),u=Array.from(this.watchers.values()).filter(({request:c})=>!t.find(f=>f.path===c.path&&(0,F.patternsEquals)(f.excludes,c.excludes)&&(0,F.patternsEquals)(f.includes,c.includes)&&f.pollingInterval===c.pollingInterval)).map(({request:c})=>c.path);i.length&&this.trace(`Request to start watching: ${i.map(c=>`${c.path} (excludes: ${c.excludes.length>0?c.excludes:"<none>"}, includes: ${c.includes&&c.includes.length>0?JSON.stringify(c.includes):"<all>"})`).join(",")}`),u.length&&this.trace(`Request to stop watching: ${u.join(",")}`);for(const c of u)await this.stopWatching(c);for(const c of i)c.pollingInterval?this.startPolling(c,c.pollingInterval):this.startWatching(c)}startPolling(g,t,i=0){const u=new H.CancellationTokenSource,c=new $.DeferredPromise,f=(0,_.randomPath)((0,W.tmpdir)(),"vscode-watcher-snapshot"),s={request:g,ready:c.p,restarts:i,token:u.token,worker:new $.RunOnceWorker(J=>this.handleParcelEvents(J,s),C.FILE_CHANGES_HANDLER_DELAY),stop:async()=>{u.dispose(!0),s.worker.flush(),s.worker.dispose(),q.dispose(),(0,U.unlinkSync)(f)}};this.watchers.set(g.path,s);const{realPath:l,realPathDiffers:A,realPathLength:T}=this.normalizePath(g),h=g.includes?(0,o.parseWatcherPatterns)(g.path,g.includes):void 0;this.trace(`Started watching: '${l}' with polling interval '${t}'`);let y=0;const q=new $.RunOnceScheduler(async()=>{if(y++,!u.token.isCancellationRequested){if(y>1){const J=await R.getEventsSince(l,f,{ignore:g.excludes,backend:C.PARCEL_WATCHER_BACKEND});if(u.token.isCancellationRequested)return;this.onParcelEvents(J,s,h,A,T)}await R.writeSnapshot(l,f,{ignore:g.excludes,backend:C.PARCEL_WATCHER_BACKEND}),y===1&&c.complete(),!u.token.isCancellationRequested&&q.schedule()}},t);q.schedule(0)}startWatching(g,t=0){const i=new H.CancellationTokenSource,u=new $.DeferredPromise,c={request:g,ready:u.p,restarts:t,token:i.token,worker:new $.RunOnceWorker(T=>this.handleParcelEvents(T,c),C.FILE_CHANGES_HANDLER_DELAY),stop:async()=>{i.dispose(!0),c.worker.flush(),c.worker.dispose(),await(await u.p)?.unsubscribe()}};this.watchers.set(g.path,c);const{realPath:f,realPathDiffers:s,realPathLength:l}=this.normalizePath(g),A=g.includes?(0,o.parseWatcherPatterns)(g.path,g.includes):void 0;R.subscribe(f,(T,h)=>{c.token.isCancellationRequested||(T&&this.onUnexpectedError(T,c),this.onParcelEvents(h,c,A,s,l))},{backend:C.PARCEL_WATCHER_BACKEND,ignore:c.request.excludes}).then(T=>{this.trace(`Started watching: '${f}' with backend '${C.PARCEL_WATCHER_BACKEND}'`),u.complete(T)}).catch(T=>{this.onUnexpectedError(T,c),u.complete(void 0)})}onParcelEvents(g,t,i,u,c){if(g.length===0)return;this.normalizeEvents(g,t.request,u,c);const f=this.handleIncludes(g,i);for(const s of f)t.worker.work(s)}handleIncludes(g,t){const i=[];for(const{path:u,type:c}of g){const f=C.MAP_PARCEL_WATCHER_ACTION_TO_FILE_CHANGE.get(c);this.verboseLogging&&this.trace(`${f===1?"[ADDED]":f===2?"[DELETED]":"[CHANGED]"} ${u}`),t&&t.length>0&&!t.some(s=>s(u))?this.verboseLogging&&this.trace(` >> ignored (not included) ${u}`):i.push({type:f,path:u})}return i}handleParcelEvents(g,t){const i=(0,o.coalesceEvents)(g),{events:u,rootDeleted:c}=this.filterEvents(i,t);this.emitEvents(u),c&&this.onWatchedPathDeleted(t)}emitEvents(g){if(g.length===0)return;if(this.verboseLogging)for(const i of g)this.trace(` >> normalized ${i.type===1?"[ADDED]":i.type===2?"[DELETED]":"[CHANGED]"} ${i.path}`);this.throttledFileChangesEmitter.work(g)?this.throttledFileChangesEmitter.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesEmitter.pending}, most recent change: ${g[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${g.length}, most recent change: ${g[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}normalizePath(g){let t=g.path,i=!1,u=g.path.length;try{t=(0,n.realpathSync)(g.path),g.path===t&&(t=(0,n.realcaseSync)(g.path)??g.path),g.path!==t&&(u=t.length,i=!0,this.trace(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${g.path}, real: ${t})`))}catch{}return{realPath:t,realPathDiffers:i,realPathLength:u}}normalizeEvents(g,t,i,u){for(const c of g)D.isMacintosh&&(c.path=(0,m.normalizeNFC)(c.path)),D.isWindows&&t.path.length<=3&&(c.path=(0,d.normalize)(c.path)),i&&(c.path=t.path+c.path.substr(u))}filterEvents(g,t){const i=[];let u=!1;for(const c of g)c.type===2&&c.path===t.request.path?u=!0:i.push(c);return{events:i,rootDeleted:u}}onWatchedPathDeleted(g){this.warn("Watcher shutdown because watched path got deleted",g);const t=(0,d.dirname)(g.request.path);if((0,U.existsSync)(t)){const i=new w.NodeJSFileWatcherLibrary({path:t,excludes:[],recursive:!1},u=>{if(!g.token.isCancellationRequested){for(const{path:c,type:f}of u)if(c===g.request.path&&(f===1||f===0)){this.warn("Watcher restarts because watched path got created again",g),i.dispose(),this.restartWatching(g);break}}},u=>this._onDidLogMessage.fire(u),this.verboseLogging);g.token.onCancellationRequested(()=>i.dispose())}}onUnexpectedError(g,t){const i=(0,k.toErrorMessage)(g);i.indexOf("No space left on device")!==-1?this.enospcErrorLogged||(this.error("Inotify limit reached (ENOSPC)",t),this.enospcErrorLogged=!0):(this.error(`Unexpected error: ${i} (EUNKNOWN)`,t),this._onDidError.fire(i))}async stop(){for(const[g]of this.watchers)await this.stopWatching(g);this.watchers.clear()}restartWatching(g,t=800){const i=new $.RunOnceScheduler(async()=>{g.token.isCancellationRequested||(await this.stopWatching(g.request.path),g.request.pollingInterval?this.startPolling(g.request,g.request.pollingInterval,g.restarts+1):this.startWatching(g.request,g.restarts+1))},t);i.schedule(),g.token.onCancellationRequested(()=>i.dispose())}async stopWatching(g){const t=this.watchers.get(g);if(t){this.trace(`stopping file watcher on ${t.request.path}`),this.watchers.delete(g);try{await t.stop()}catch(i){this.error(`Unexpected error stopping watcher: ${(0,k.toErrorMessage)(i)}`,t)}}}normalizeRequests(g,t=!0){const i=N.TernarySearchTree.forPaths(!D.isLinux);g.sort((u,c)=>u.path.length-c.path.length);for(const u of g)if(!u.excludes.includes(F.GLOBSTAR)){if(i.findSubstr(u.path))try{if((0,n.realpathSync)(u.path)===u.path){this.trace(`ignoring a path for watching who's parent is already watched: ${u.path}`);continue}}catch(c){this.trace(`ignoring a path for watching who's realpath failed to resolve: ${u.path} (error: ${c})`);continue}if(t)try{if(!(0,U.statSync)(u.path).isDirectory()){this.trace(`ignoring a path for watching that is a file and not a folder: ${u.path}`);continue}}catch(c){this.trace(`ignoring a path for watching who's stat info failed to resolve: ${u.path} (error: ${c})`);continue}i.set(u.path,u)}return Array.from(i).map(([,u])=>u)}async setVerboseLogging(g){this.verboseLogging=g}trace(g){this.verboseLogging&&this._onDidLogMessage.fire({type:"trace",message:this.toMessage(g)})}warn(g,t){this._onDidLogMessage.fire({type:"warn",message:this.toMessage(g,t)})}error(g,t){this._onDidLogMessage.fire({type:"error",message:this.toMessage(g,t)})}toMessage(g,t){return t?`[File Watcher (parcel)] ${g} (path: ${t.request.path})`:`[File Watcher (parcel)] ${g}`}}e.ParcelWatcher=C}),define(ge[56],we([0,1,4,5,55,54,10]),function(fe,e,R,U,W,$,H){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UniversalWatcher=void 0;class k extends R.Disposable{constructor(){super(...arguments),this.recursiveWatcher=this._register(new W.ParcelWatcher),this.nonRecursiveWatcher=this._register(new $.NodeJSWatcher),this.onDidChangeFile=U.Event.any(this.recursiveWatcher.onDidChangeFile,this.nonRecursiveWatcher.onDidChangeFile),this.onDidLogMessage=U.Event.any(this.recursiveWatcher.onDidLogMessage,this.nonRecursiveWatcher.onDidLogMessage),this.onDidError=U.Event.any(this.recursiveWatcher.onDidError,this.nonRecursiveWatcher.onDidError)}async watch(_){const F=[],M=[];for(const N of _)N.recursive?F.push(N):M.push(N);await H.Promises.settled([this.recursiveWatcher.watch(F),this.nonRecursiveWatcher.watch(M)])}async setVerboseLogging(_){await H.Promises.settled([this.recursiveWatcher.setVerboseLogging(_),this.nonRecursiveWatcher.setVerboseLogging(_)])}async stop(){await H.Promises.settled([this.recursiveWatcher.stop(),this.nonRecursiveWatcher.stop()])}}e.UniversalWatcher=k}),define(ge[60],we([0,1,19,49,50,24,56]),function(fe,e,R,U,W,$,H){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let k;(0,$.isUtilityProcess)(process)?k=new W.Server:k=new U.Server("watcher");const S=new H.UniversalWatcher;k.registerChannel("watcher",R.ProxyChannel.fromService(S))})}).call(this);

//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/82e35eb142bf0f4567ff8c6dd4f16f33abfc2d50/core/vs/platform/files/node/watcher/watcherMain.js.map