cloudstudio
Version:
Run VS Code on a remote server.
9 lines (7 loc) • 358 kB
JavaScript
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/(function(){var oe=["require","exports","vs/base/common/platform","vs/base/common/event","vs/base/common/lifecycle","vs/base/common/path","vs/base/common/uri","vs/base/common/async","vs/platform/log/common/log","vs/base/common/errors","vs/base/common/types","vs/base/common/strings","vs/base/common/network","vs/nls","vs/nls!vs/platform/terminal/node/ptyHostMain","vs/base/common/process","os","vs/base/common/decorators","vs/base/common/cancellation","vs/base/common/resources","vs/base/node/pfs","vs/base/common/arrays","vs/base/common/buffer","child_process","vs/platform/instantiation/common/instantiation","vs/platform/terminal/common/terminal","vs/base/common/functional","vs/base/common/objects","vs/base/common/processes","vs/base/common/extpath","vs/base/common/map","vs/base/node/processes","vs/base/parts/ipc/common/ipc","vs/platform/terminal/node/childProcessMonitor","vs/platform/terminal/node/terminalEnvironment","vs/base/common/iterator","vs/base/common/lazy","vs/base/common/linkedList","vs/base/common/stream","vs/nls!vs/base/common/date","vs/base/common/date","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/common/platform","vs/base/common/stopwatch","vs/base/common/cache","vs/base/common/normalization","vs/base/common/console","vs/base/common/marshalling","fs","vs/base/node/powershell","vs/base/node/ps","vs/base/node/shell","vs/base/parts/ipc/node/ipc.cp","vs/nls!vs/platform/environment/node/argv","vs/nls!vs/platform/files/common/files","vs/nls!vs/platform/terminal/node/ptyService","vs/nls!vs/platform/terminal/node/terminalProcess","vs/platform/environment/common/environmentService","vs/platform/environment/node/argv","vs/platform/environment/node/userDataPath","vs/platform/environment/node/environmentService","vs/platform/files/common/files","vs/platform/log/common/logIpc","vs/platform/log/node/spdlogLog","vs/platform/product/common/product","vs/platform/terminal/common/capabilities/commandDetectionCapability","vs/platform/terminal/common/capabilities/cwdDetectionCapability","vs/platform/terminal/common/capabilities/partialCommandDetectionCapability","vs/platform/terminal/common/capabilities/terminalCapabilityStore","vs/platform/terminal/common/requestStore","vs/platform/terminal/common/terminalAutoResponder","vs/platform/terminal/common/terminalDataBuffering","vs/platform/terminal/common/terminalEnvironment","vs/platform/terminal/common/terminalStrings","vs/platform/terminal/common/xterm/shellIntegrationAddon","vs/platform/terminal/node/heartbeatService","vs/platform/terminal/node/windowsShellHelper","vs/platform/terminal/node/terminalProcess","vs/platform/terminal/node/ptyService","util","minimist","path","xterm-headless","vs/platform/terminal/node/ptyHostMain"],ae=function(x){for(var e=[],g=0,L=x.length;g<L;g++)e[g]=oe[x[g]];return e};define(oe[17],ae([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function g(A){return(w,m,h)=>{let E=null,v=null;if(typeof h.value=="function"?(E="value",v=h.value):typeof h.get=="function"&&(E="get",v=h.get),!v)throw new Error("not supported");h[E]=A(v,m)}}e.createDecorator=g;function L(A,w,m){let h=null,E=null;if(typeof m.value=="function"?(h="value",E=m.value,E.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof m.get=="function"&&(h="get",E=m.get),!E)throw new Error("not supported");const v=`$memoize$${w}`;m[h]=function(...I){return this.hasOwnProperty(v)||Object.defineProperty(this,v,{configurable:!1,enumerable:!1,writable:!1,value:E.apply(this,I)}),this[v]}}e.memoize=L;function y(A,w,m){return g((h,E)=>{const v=`$debounce$${E}`,I=`$debounce$result$${E}`;return function(..._){this[I]||(this[I]=m?m():void 0),clearTimeout(this[v]),w&&(this[I]=w(this[I],..._),_=[this[I]]),this[v]=setTimeout(()=>{h.apply(this,_),this[I]=m?m():void 0},A)}})}e.debounce=y;function P(A,w,m){return g((h,E)=>{const v=`$throttle$timer$${E}`,I=`$throttle$result$${E}`,_=`$throttle$lastRun$${E}`,u=`$throttle$pending$${E}`;return function(...p){if(this[I]||(this[I]=m?m():void 0),(this[_]===null||this[_]===void 0)&&(this[_]=-Number.MAX_VALUE),w&&(this[I]=w(this[I],...p)),this[u])return;const M=this[_]+A;M<=Date.now()?(this[_]=Date.now(),h.apply(this,[this[I]]),this[I]=m?m():void 0):(this[u]=!0,this[v]=setTimeout(()=>{this[u]=!1,this[_]=Date.now(),h.apply(this,[this[I]]),this[I]=m?m():void 0},M-Date.now()))}})}e.throttle=P}),define(oe[9],ae([0,1]),function(x,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.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class g{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(b){setTimeout(()=>{throw b.stack?i.isErrorNoTelemetry(b)?new i(b.message+`
`+b.stack):new Error(b.message+`
`+b.stack):b},0)}}addListener(b){return this.listeners.push(b),()=>{this._removeListener(b)}}emit(b){this.listeners.forEach(c=>{c(b)})}_removeListener(b){this.listeners.splice(this.listeners.indexOf(b),1)}setUnexpectedErrorHandler(b){this.unexpectedErrorHandler=b}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(b){this.unexpectedErrorHandler(b),this.emit(b)}onUnexpectedExternalError(b){this.unexpectedErrorHandler(b)}}e.ErrorHandler=g,e.errorHandler=new g;function L(f){e.errorHandler.setUnexpectedErrorHandler(f)}e.setUnexpectedErrorHandler=L;function y(f){m(f)||e.errorHandler.onUnexpectedError(f)}e.onUnexpectedError=y;function P(f){m(f)||e.errorHandler.onUnexpectedExternalError(f)}e.onUnexpectedExternalError=P;function A(f){if(f instanceof Error){const{name:b,message:c}=f,n=f.stacktrace||f.stack;return{$isError:!0,name:b,message:c,stack:n,noTelemetry:i.isErrorNoTelemetry(f)}}return f}e.transformErrorForSerialization=A;const w="Canceled";function m(f){return f instanceof h?!0:f instanceof Error&&f.name===w&&f.message===w}e.isCancellationError=m;class h extends Error{constructor(){super(w);this.name=this.message}}e.CancellationError=h;function E(){const f=new Error(w);return f.name=f.message,f}e.canceled=E;function v(f){return f?new Error(`Illegal argument: ${f}`):new Error("Illegal argument")}e.illegalArgument=v;function I(f){return f?new Error(`Illegal state: ${f}`):new Error("Illegal state")}e.illegalState=I;function _(f){return f?new Error(`readonly property '${f} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=_;function u(f){const b=new Error(`${f} has been disposed`);return b.name="DISPOSED",b}e.disposed=u;function p(f){return f?f.message?f.message:f.stack?f.stack.split(`
`)[0]:String(f):"Error"}e.getErrorMessage=p;class M extends Error{constructor(b){super("NotImplemented");b&&(this.message=b)}}e.NotImplementedError=M;class C extends Error{constructor(b){super("NotSupported");b&&(this.message=b)}}e.NotSupportedError=C;class D extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=D;class i extends Error{constructor(b){super(b);this.name="CodeExpectedError"}static fromError(b){if(b instanceof i)return b;const c=new i;return c.message=b.message,c.stack=b.stack,c}static isErrorNoTelemetry(b){return b.name==="CodeExpectedError"}}e.ErrorNoTelemetry=i;class a extends Error{constructor(b){super(b||"An unexpected bug occurred.");Object.setPrototypeOf(this,a.prototype);debugger}}e.BugIndicatingError=a}),define(oe[21],ae([0,1,9]),function(x,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=e.ArrayQueue=e.findMinBy=e.findLastMaxBy=e.findMaxBy=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.lastIndex=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 L(T,N=0){return T[T.length-(1+N)]}e.tail=L;function y(T){if(T.length===0)throw new Error("Invalid tail call");return[T.slice(0,T.length-1),T[T.length-1]]}e.tail2=y;function P(T,N,B=(K,te)=>K===te){if(T===N)return!0;if(!T||!N||T.length!==N.length)return!1;for(let K=0,te=T.length;K<te;K++)if(!B(T[K],N[K]))return!1;return!0}e.equals=P;function A(T,N){const B=T.length-1;N<B&&(T[N]=T[B]),T.pop()}e.removeFastWithoutKeepingOrder=A;function w(T,N,B){return m(T.length,K=>B(T[K],N))}e.binarySearch=w;function m(T,N){let B=0,K=T-1;for(;B<=K;){const te=(B+K)/2|0,fe=N(te);if(fe<0)B=te+1;else if(fe>0)K=te-1;else return te}return-(B+1)}e.binarySearch2=m;function h(T,N){let B=0,K=T.length;if(K===0)return 0;for(;B<K;){const te=Math.floor((B+K)/2);N(T[te])?K=te:B=te+1}return B}e.findFirstInSorted=h;function E(T,N,B){if(T=T|0,T>=N.length)throw new TypeError("invalid index");const K=N[Math.floor(N.length*Math.random())],te=[],fe=[],ge=[];for(const ye of N){const _e=B(ye,K);_e<0?te.push(ye):_e>0?fe.push(ye):ge.push(ye)}return T<te.length?E(T,te,B):T<te.length+ge.length?ge[0]:E(T-(te.length+ge.length),fe,B)}e.quickSelect=E;function v(T,N){const B=[];let K;for(const te of T.slice(0).sort(N))!K||N(K[0],te)!==0?(K=[te],B.push(K)):K.push(te);return B}e.groupBy=v;function I(T,N,B){const K=[];function te(ye,_e,be){if(_e===0&&be.length===0)return;const Ce=K[K.length-1];Ce&&Ce.start+Ce.deleteCount===ye?(Ce.deleteCount+=_e,Ce.toInsert.push(...be)):K.push({start:ye,deleteCount:_e,toInsert:be})}let fe=0,ge=0;for(;;){if(fe===T.length){te(fe,0,N.slice(ge));break}if(ge===N.length){te(fe,T.length-fe,[]);break}const ye=T[fe],_e=N[ge],be=B(ye,_e);be===0?(fe+=1,ge+=1):be<0?(te(fe,1,[]),fe+=1):be>0&&(te(fe,0,[_e]),ge+=1)}return K}e.sortedDiff=I;function _(T,N,B){const K=I(T,N,B),te=[],fe=[];for(const ge of K)te.push(...T.slice(ge.start,ge.start+ge.deleteCount)),fe.push(...ge.toInsert);return{removed:te,added:fe}}e.delta=_;function u(T,N,B){if(B===0)return[];const K=T.slice(0,B).sort(N);return M(T,N,K,B,T.length),K}e.top=u;function p(T,N,B,K,te){return B===0?Promise.resolve([]):new Promise((fe,ge)=>{(async()=>{const ye=T.length,_e=T.slice(0,B).sort(N);for(let be=B,Ce=Math.min(B+K,ye);be<ye;be=Ce,Ce=Math.min(Ce+K,ye)){if(be>B&&await new Promise(Te=>setTimeout(Te)),te&&te.isCancellationRequested)throw new g.CancellationError;M(T,N,_e,be,Ce)}return _e})().then(fe,ge)})}e.topAsync=p;function M(T,N,B,K,te){for(const fe=B.length;K<te;K++){const ge=T[K];if(N(ge,B[fe-1])<0){B.pop();const ye=h(B,_e=>N(ge,_e)<0);B.splice(ye,0,ge)}}}function C(T){return T.filter(N=>!!N)}e.coalesce=C;function D(T){let N=0;for(let B=0;B<T.length;B++)T[B]&&(T[N]=T[B],N+=1);T.length=N}e.coalesceInPlace=D;function i(T,N,B){T.splice(B,0,T.splice(N,1)[0])}e.move=i;function a(T){return!Array.isArray(T)||T.length===0}e.isFalsyOrEmpty=a;function f(T){return Array.isArray(T)&&T.length>0}e.isNonEmptyArray=f;function b(T,N=B=>B){const B=new Set;return T.filter(K=>{const te=N(K);return B.has(te)?!1:(B.add(te),!0)})}e.distinct=b;function c(T){const N=new Set;return B=>{const K=T(B);return N.has(K)?!1:(N.add(K),!0)}}e.uniqueFilter=c;function n(T,N){const B=t(T,N);if(B!==-1)return T[B]}e.findLast=n;function t(T,N){for(let B=T.length-1;B>=0;B--){const K=T[B];if(N(K))return B}return-1}e.lastIndex=t;function s(T,N){return T.length>0?T[0]:N}e.firstOrDefault=s;function l(T,N){return T.length>0?T[T.length-1]:N}e.lastOrDefault=l;function o(T,N,B=(K,te)=>K===te){let K=0;for(let te=0,fe=Math.min(T.length,N.length);te<fe&&B(T[te],N[te]);te++)K++;return K}e.commonPrefixLength=o;function r(T){return[].concat(...T)}e.flatten=r;function d(T,N){let B=typeof N=="number"?T:0;typeof N=="number"?B=T:(B=0,N=T);const K=[];if(B<=N)for(let te=B;te<N;te++)K.push(te);else for(let te=B;te>N;te--)K.push(te);return K}e.range=d;function R(T,N,B){return T.reduce((K,te)=>(K[N(te)]=B?B(te):te,K),Object.create(null))}e.index=R;function V(T,N){return T.push(N),()=>G(T,N)}e.insert=V;function G(T,N){const B=T.indexOf(N);if(B>-1)return T.splice(B,1),N}e.remove=G;function ce(T,N,B){const K=T.slice(0,N),te=T.slice(N);return K.concat(B,te)}e.arrayInsert=ce;function le(T,N){let B;if(typeof N=="number"){let K=N;B=()=>{const te=Math.sin(K++)*179426549;return te-Math.floor(te)}}else B=Math.random;for(let K=T.length-1;K>0;K-=1){const te=Math.floor(B()*(K+1)),fe=T[K];T[K]=T[te],T[te]=fe}}e.shuffle=le;function he(T,N){const B=T.indexOf(N);B>-1&&(T.splice(B,1),T.unshift(N))}e.pushToStart=he;function de(T,N){const B=T.indexOf(N);B>-1&&(T.splice(B,1),T.push(N))}e.pushToEnd=de;function ee(T,N){for(const B of N)T.push(B)}e.pushMany=ee;function se(T,N){return Array.isArray(T)?T.map(N):N(T)}e.mapArrayOrNot=se;function F(T){return Array.isArray(T)?T:[T]}e.asArray=F;function X(T){return T[Math.floor(Math.random()*T.length)]}e.getRandomElement=X;function z(T,N){for(const B of T){const K=N(B);if(K!==void 0)return K}}e.mapFind=z;function O(T,N,B){const K=$(T,N),te=T.length,fe=B.length;T.length=te+fe;for(let ge=te-1;ge>=K;ge--)T[ge+fe]=T[ge];for(let ge=0;ge<fe;ge++)T[ge+K]=B[ge]}e.insertInto=O;function j(T,N,B,K){const te=$(T,N),fe=T.splice(te,B);return O(T,te,K),fe}e.splice=j;function $(T,N){return N<0?Math.max(N+T.length,0):Math.min(N,T.length)}var Z;(function(T){function N(te){return te<0}T.isLessThan=N;function B(te){return te>0}T.isGreaterThan=B;function K(te){return te===0}T.isNeitherLessOrGreaterThan=K,T.greaterThan=1,T.lessThan=-1,T.neitherLessOrGreaterThan=0})(Z=e.CompareResult||(e.CompareResult={}));function re(T,N){return(B,K)=>N(T(B),T(K))}e.compareBy=re;function J(...T){return(N,B)=>{for(const K of T){const te=K(N,B);if(!Z.isNeitherLessOrGreaterThan(te))return te}return Z.neitherLessOrGreaterThan}}e.tieBreakComparators=J;const k=(T,N)=>T-N;e.numberComparator=k;function U(T,N){if(T.length===0)return;let B=T[0];for(let K=1;K<T.length;K++){const te=T[K];N(te,B)>0&&(B=te)}return B}e.findMaxBy=U;function W(T,N){if(T.length===0)return;let B=T[0];for(let K=1;K<T.length;K++){const te=T[K];N(te,B)>=0&&(B=te)}return B}e.findLastMaxBy=W;function H(T,N){return U(T,(B,K)=>-N(B,K))}e.findMinBy=H;class Q{constructor(N){this.items=N,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(N){let B=this.firstIdx;for(;B<this.items.length&&N(this.items[B]);)B++;const K=B===this.firstIdx?null:this.items.slice(this.firstIdx,B);return this.firstIdx=B,K}takeFromEndWhile(N){let B=this.lastIdx;for(;B>=0&&N(this.items[B]);)B--;const K=B===this.lastIdx?null:this.items.slice(B+1,this.lastIdx+1);return this.lastIdx=B,K}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const N=this.items[this.firstIdx];return this.firstIdx++,N}removeLast(){const N=this.items[this.lastIdx];return this.lastIdx--,N}takeCount(N){const B=this.items.slice(this.firstIdx,this.firstIdx+N);return this.firstIdx+=N,B}}e.ArrayQueue=Q;class ie{constructor(N){this.iterate=N}forEach(N){this.iterate(B=>(N(B),!0))}toArray(){const N=[];return this.iterate(B=>(N.push(B),!0)),N}filter(N){return new ie(B=>this.iterate(K=>N(K)?B(K):!0))}map(N){return new ie(B=>this.iterate(K=>B(N(K))))}some(N){let B=!1;return this.iterate(K=>(B=N(K),!B)),B}findFirst(N){let B;return this.iterate(K=>N(K)?(B=K,!1):!0),B}findLast(N){let B;return this.iterate(K=>(N(K)&&(B=K),!0)),B}findLastMaxBy(N){let B,K=!0;return this.iterate(te=>((K||Z.isGreaterThan(N(te,B)))&&(K=!1,B=te),!0)),B}}e.CallbackIterable=ie,ie.empty=new ie(T=>{})}),define(oe[26],ae([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function g(L){const y=this;let P=!1,A;return function(){return P||(P=!0,A=L.apply(y,arguments)),A}}e.once=g}),define(oe[35],ae([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var g;(function(L){function y(c){return c&&typeof c=="object"&&typeof c[Symbol.iterator]=="function"}L.is=y;const P=Object.freeze([]);function A(){return P}L.empty=A;function*w(c){yield c}L.single=w;function m(c){return c||P}L.from=m;function h(c){return!c||c[Symbol.iterator]().next().done===!0}L.isEmpty=h;function E(c){return c[Symbol.iterator]().next().value}L.first=E;function v(c,n){for(const t of c)if(n(t))return!0;return!1}L.some=v;function I(c,n){for(const t of c)if(n(t))return t}L.find=I;function*_(c,n){for(const t of c)n(t)&&(yield t)}L.filter=_;function*u(c,n){let t=0;for(const s of c)yield n(s,t++)}L.map=u;function*p(...c){for(const n of c)for(const t of n)yield t}L.concat=p;function*M(c){for(const n of c)for(const t of n)yield t}L.concatNested=M;function C(c,n,t){let s=t;for(const l of c)s=n(s,l);return s}L.reduce=C;function D(c,n){let t=0;for(const s of c)n(s,t++)}L.forEach=D;function*i(c,n,t=c.length){for(n<0&&(n+=c.length),t<0?t+=c.length:t>c.length&&(t=c.length);n<t;n++)yield c[n]}L.slice=i;function a(c,n=Number.POSITIVE_INFINITY){const t=[];if(n===0)return[t,c];const s=c[Symbol.iterator]();for(let l=0;l<n;l++){const o=s.next();if(o.done)return[t,L.empty()];t.push(o.value)}return[t,{[Symbol.iterator](){return s}}]}L.consume=a;function f(c){return a(c)[0]}L.collect=f;function b(c,n,t=(s,l)=>s===l){const s=c[Symbol.iterator](),l=n[Symbol.iterator]();for(;;){const o=s.next(),r=l.next();if(o.done!==r.done)return!1;if(o.done)return!0;if(!t(o.value,r.value))return!1}}L.equals=b})(g=e.Iterable||(e.Iterable={}))}),define(oe[36],ae([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class g{constructor(y){this.executor=y,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(y){this._error=y}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(y){return new g(()=>y(this.getValue()))}}e.Lazy=g}),define(oe[4],ae([0,1,26,35]),function(x,e,g,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const y=!1;let P=null;function A(l){P=l}if(e.setDisposableTracker=A,y){const l="__is_disposable_tracked__";A(new class{trackDisposable(o){const r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{o[l]||console.log(r)},3e3)}setParent(o,r){if(o&&o!==i.None)try{o[l]=!0}catch{}}markAsDisposed(o){if(o&&o!==i.None)try{o[l]=!0}catch{}}markAsSingleton(o){}})}function w(l){return P?.trackDisposable(l),l}function m(l){P?.markAsDisposed(l)}function h(l,o){P?.setParent(l,o)}function E(l,o){if(!!P)for(const r of l)P.setParent(r,o)}function v(l){return P?.markAsSingleton(l),l}e.markAsSingleton=v;class I extends Error{constructor(o){super(`Encountered errors while disposing of store. Errors: [${o.join(", ")}]`);this.errors=o}}e.MultiDisposeError=I;function _(l){return typeof l.dispose=="function"&&l.dispose.length===0}e.isDisposable=_;function u(l){if(L.Iterable.is(l)){const o=[];for(const r of l)if(r)try{r.dispose()}catch(d){o.push(d)}if(o.length===1)throw o[0];if(o.length>1)throw new I(o);return Array.isArray(l)?[]:l}else if(l)return l.dispose(),l}e.dispose=u;function p(l){for(const o of l)_(o)&&o.dispose();return[]}e.disposeIfDisposable=p;function M(...l){const o=C(()=>u(l));return E(l,o),o}e.combinedDisposable=M;function C(l){const o=w({dispose:(0,g.once)(()=>{m(o),l()})});return o}e.toDisposable=C;class D{constructor(){this._toDispose=new Set,this._isDisposed=!1,w(this)}dispose(){this._isDisposed||(m(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(o){if(!o)return o;if(o===this)throw new Error("Cannot register a disposable on itself!");return h(o,this),this._isDisposed?D.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(o),o}}e.DisposableStore=D,D.DISABLE_DISPOSED_WARNING=!1;class i{constructor(){this._store=new D,w(this),h(this._store,this)}dispose(){m(this),this._store.dispose()}_register(o){if(o===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(o)}}e.Disposable=i,i.None=Object.freeze({dispose(){}});class a{constructor(){this._isDisposed=!1,w(this)}get value(){return this._isDisposed?void 0:this._value}set value(o){this._isDisposed||o===this._value||(this._value?.dispose(),o&&h(o,this),this._value=o)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,m(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const o=this._value;return this._value=void 0,o&&h(o,null),o}}e.MutableDisposable=a;class f{constructor(o){this._disposable=o,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=f;class b{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,w(this)}set(o){let r=o;return this.unset=()=>r=void 0,this.isset=()=>r!==void 0,this.dispose=()=>{r&&(r(),r=void 0,m(this))},this}}e.SafeDisposable=b;class c{constructor(){this.references=new Map}acquire(o,...r){let d=this.references.get(o);d||(d={counter:0,object:this.createReferencedObject(o,...r)},this.references.set(o,d));const{object:R}=d,V=(0,g.once)(()=>{--d.counter==0&&(this.destroyReferencedObject(o,d.object),this.references.delete(o))});return d.counter++,{object:R,dispose:V}}}e.ReferenceCollection=c;class n{constructor(o){this.referenceCollection=o}async acquire(o,...r){const d=this.referenceCollection.acquire(o,...r);try{return{object:await d.object,dispose:()=>d.dispose()}}catch(R){throw d.dispose(),R}}}e.AsyncReferenceCollection=n;class t{constructor(o){this.object=o}dispose(){}}e.ImmortalReference=t;function s(l){const o=new D;try{l(o)}finally{o.dispose()}}e.disposeOnReturn=s}),define(oe[37],ae([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class g{constructor(P){this.element=P,this.next=g.Undefined,this.prev=g.Undefined}}g.Undefined=new g(void 0);class L{constructor(){this._first=g.Undefined,this._last=g.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===g.Undefined}clear(){let P=this._first;for(;P!==g.Undefined;){const A=P.next;P.prev=g.Undefined,P.next=g.Undefined,P=A}this._first=g.Undefined,this._last=g.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,A){const w=new g(P);if(this._first===g.Undefined)this._first=w,this._last=w;else if(A){const h=this._last;this._last=w,w.prev=h,h.next=w}else{const h=this._first;this._first=w,w.next=h,h.prev=w}this._size+=1;let m=!1;return()=>{m||(m=!0,this._remove(w))}}shift(){if(this._first!==g.Undefined){const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last!==g.Undefined){const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==g.Undefined&&P.next!==g.Undefined){const A=P.prev;A.next=P.next,P.next.prev=A}else P.prev===g.Undefined&&P.next===g.Undefined?(this._first=g.Undefined,this._last=g.Undefined):P.next===g.Undefined?(this._last=this._last.prev,this._last.next=g.Undefined):P.prev===g.Undefined&&(this._first=this._first.next,this._first.prev=g.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==g.Undefined;)yield P.element,P=P.next}}e.LinkedList=L}),define(oe[38],ae([0,1,9,4]),function(x,e,g,L){"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 y(a){const f=a;return f?typeof f.read=="function":!1}e.isReadable=y;function P(a){const f=a;return f?[f.on,f.pause,f.resume,f.destroy].every(b=>typeof b=="function"):!1}e.isReadableStream=P;function A(a){const f=a;return f?P(f.stream)&&Array.isArray(f.buffer)&&typeof f.ended=="boolean":!1}e.isReadableBufferedStream=A;function w(a,f){return new m(a,f)}e.newWriteableStream=w;class m{constructor(f,b){this.reducer=f,this.options=b,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(f){if(!this.state.destroyed){if(this.state.flowing)this.emitData(f);else if(this.buffer.data.push(f),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(b=>this.pendingWritePromises.push(b))}}error(f){this.state.destroyed||(this.state.flowing?this.emitError(f):this.buffer.error.push(f))}end(f){this.state.destroyed||(typeof f!="undefined"&&this.write(f),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(f){this.listeners.data.slice(0).forEach(b=>b(f))}emitError(f){this.listeners.error.length===0?(0,g.onUnexpectedError)(f):this.listeners.error.slice(0).forEach(b=>b(f))}emitEnd(){this.listeners.end.slice(0).forEach(f=>f())}on(f,b){if(!this.state.destroyed)switch(f){case"data":this.listeners.data.push(b),this.resume();break;case"end":this.listeners.end.push(b),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(b),this.state.flowing&&this.flowErrors();break}}removeListener(f,b){if(this.state.destroyed)return;let c;switch(f){case"data":c=this.listeners.data;break;case"end":c=this.listeners.end;break;case"error":c=this.listeners.error;break}if(c){const n=c.indexOf(b);n>=0&&c.splice(n,1)}}flowData(){if(this.buffer.data.length>0){const f=this.reducer(this.buffer.data);this.emitData(f),this.buffer.data.length=0;const b=[...this.pendingWritePromises];this.pendingWritePromises.length=0,b.forEach(c=>c())}}flowErrors(){if(this.listeners.error.length>0){for(const f of this.buffer.error)this.emitError(f);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 h(a,f){const b=[];let c;for(;(c=a.read())!==null;)b.push(c);return f(b)}e.consumeReadable=h;function E(a,f,b){const c=[];let n;for(;(n=a.read())!==null&&c.length<b;)c.push(n);return n===null&&c.length>0?f(c):{read:()=>{if(c.length>0)return c.shift();if(typeof n!="undefined"){const t=n;return n=void 0,t}return a.read()}}}e.peekReadable=E;function v(a,f){return new Promise((b,c)=>{const n=[];I(a,{onData:t=>{f&&n.push(t)},onError:t=>{f?c(t):b(void 0)},onEnd:()=>{b(f?f(n):void 0)}})})}e.consumeStream=v;function I(a,f){let b=!1;return a.on("error",c=>{b||f.onError(c)}),a.on("end",()=>{b||f.onEnd()}),a.on("data",c=>{b||f.onData(c)}),(0,L.toDisposable)(()=>b=!0)}e.listenStream=I;function _(a,f){return new Promise((b,c)=>{const n=new L.DisposableStore,t=[],s=r=>{if(t.push(r),t.length>f)return n.dispose(),a.pause(),b({stream:a,buffer:t,ended:!1})},l=r=>c(r),o=()=>b({stream:a,buffer:t,ended:!0});n.add((0,L.toDisposable)(()=>a.removeListener("error",l))),a.on("error",l),n.add((0,L.toDisposable)(()=>a.removeListener("end",o))),a.on("end",o),n.add((0,L.toDisposable)(()=>a.removeListener("data",s))),a.on("data",s)})}e.peekStream=_;function u(a,f){const b=w(f);return b.end(a),b}e.toStream=u;function p(){const a=w(()=>{throw new Error("not supported")});return a.end(),a}e.emptyStream=p;function M(a){let f=!1;return{read:()=>f?null:(f=!0,a)}}e.toReadable=M;function C(a,f,b){const c=w(b);return I(a,{onData:n=>c.write(f.data(n)),onError:n=>c.error(f.error?f.error(n):n),onEnd:()=>c.end()}),c}e.transform=C;function D(a,f,b){let c=!1;return{read:()=>{const n=f.read();return c?n:(c=!0,n!==null?b([a,n]):a)}}}e.prefixedReadable=D;function i(a,f,b){let c=!1;const n=w(b);return I(f,{onData:t=>c?n.write(t):(c=!0,n.write(b([a,t]))),onError:t=>n.error(t),onEnd:()=>{c||(c=!0,n.write(a)),n.end()}}),n}e.prefixedStream=i}),define(oe[22],ae([0,1,38]),function(x,e,g){"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.VSBuffer=void 0;const L=typeof Buffer!="undefined";let y,P;class A{constructor(r){this.buffer=r,this.byteLength=this.buffer.byteLength}static alloc(r){return L?new A(Buffer.allocUnsafe(r)):new A(new Uint8Array(r))}static wrap(r){return L&&!Buffer.isBuffer(r)&&(r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)),new A(r)}static fromString(r,d){return!(d?.dontUseNodeBuffer||!1)&&L?new A(Buffer.from(r)):(y||(y=new TextEncoder),new A(y.encode(r)))}static fromByteArray(r){const d=A.alloc(r.length);for(let R=0,V=r.length;R<V;R++)d.buffer[R]=r[R];return d}static concat(r,d){if(typeof d=="undefined"){d=0;for(let G=0,ce=r.length;G<ce;G++)d+=r[G].byteLength}const R=A.alloc(d);let V=0;for(let G=0,ce=r.length;G<ce;G++){const le=r[G];R.set(le,V),V+=le.byteLength}return R}clone(){const r=A.alloc(this.byteLength);return r.set(this),r}toString(){return L?this.buffer.toString():(P||(P=new TextDecoder),P.decode(this.buffer))}slice(r,d){return new A(this.buffer.subarray(r,d))}set(r,d){if(r instanceof A)this.buffer.set(r.buffer,d);else if(r instanceof Uint8Array)this.buffer.set(r,d);else if(r instanceof ArrayBuffer)this.buffer.set(new Uint8Array(r),d);else if(ArrayBuffer.isView(r))this.buffer.set(new Uint8Array(r.buffer,r.byteOffset,r.byteLength),d);else throw new Error("Unknown argument 'array'")}readUInt32BE(r){return h(this.buffer,r)}writeUInt32BE(r,d){E(this.buffer,r,d)}readUInt32LE(r){return v(this.buffer,r)}writeUInt32LE(r,d){I(this.buffer,r,d)}readUInt8(r){return _(this.buffer,r)}writeUInt8(r,d){u(this.buffer,r,d)}}e.VSBuffer=A;function w(o,r){return o[r+0]<<0>>>0|o[r+1]<<8>>>0}e.readUInt16LE=w;function m(o,r,d){o[d+0]=r&255,r=r>>>8,o[d+1]=r&255}e.writeUInt16LE=m;function h(o,r){return o[r]*2**24+o[r+1]*2**16+o[r+2]*2**8+o[r+3]}e.readUInt32BE=h;function E(o,r,d){o[d+3]=r,r=r>>>8,o[d+2]=r,r=r>>>8,o[d+1]=r,r=r>>>8,o[d]=r}e.writeUInt32BE=E;function v(o,r){return o[r+0]<<0>>>0|o[r+1]<<8>>>0|o[r+2]<<16>>>0|o[r+3]<<24>>>0}e.readUInt32LE=v;function I(o,r,d){o[d+0]=r&255,r=r>>>8,o[d+1]=r&255,r=r>>>8,o[d+2]=r&255,r=r>>>8,o[d+3]=r&255}e.writeUInt32LE=I;function _(o,r){return o[r]}e.readUInt8=_;function u(o,r,d){o[d]=r}e.writeUInt8=u;function p(o){return g.consumeReadable(o,r=>A.concat(r))}e.readableToBuffer=p;function M(o){return g.toReadable(o)}e.bufferToReadable=M;function C(o){return g.consumeStream(o,r=>A.concat(r))}e.streamToBuffer=C;async function D(o){return o.ended?A.concat(o.buffer):A.concat([...o.buffer,await C(o.stream)])}e.bufferedStreamToBuffer=D;function i(o){return g.toStream(o,r=>A.concat(r))}e.bufferToStream=i;function a(o){return g.transform(o,{data:r=>typeof r=="string"?A.fromString(r):A.wrap(r)},r=>A.concat(r))}e.streamToBufferReadableStream=a;function f(o){return g.newWriteableStream(r=>A.concat(r),o)}e.newWriteableBufferStream=f;function b(o,r){return g.prefixedReadable(o,r,d=>A.concat(d))}e.prefixedBufferReadable=b;function c(o,r){return g.prefixedStream(o,r,d=>A.concat(d))}e.prefixedBufferStream=c;function n(o){let r=0,d=0,R=0;const V=new Uint8Array(Math.floor(o.length/4*3)),G=le=>{switch(d){case 3:V[R++]=r|le,d=0;break;case 2:V[R++]=r|le>>>2,r=le<<6,d=3;break;case 1:V[R++]=r|le>>>4,r=le<<4,d=2;break;default:r=le<<2,d=1}};for(let le=0;le<o.length;le++){const he=o.charCodeAt(le);if(he>=65&&he<=90)G(he-65);else if(he>=97&&he<=122)G(he-97+26);else if(he>=48&&he<=57)G(he-48+52);else if(he===43||he===45)G(62);else if(he===47||he===95)G(63);else{if(he===61)break;throw new SyntaxError(`Unexpected base64 character ${o[le]}`)}}const ce=R;for(;d>0;)G(0);return A.wrap(V).slice(0,ce)}e.decodeBase64=n;const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function l({buffer:o},r=!0,d=!1){const R=d?s:t;let V="";const G=o.byteLength%3;let ce=0;for(;ce<o.byteLength-G;ce+=3){const le=o[ce+0],he=o[ce+1],de=o[ce+2];V+=R[le>>>2],V+=R[(le<<4|he>>>4)&63],V+=R[(he<<2|de>>>6)&63],V+=R[de&63]}if(G===1){const le=o[ce+0];V+=R[le>>>2],V+=R[le<<4&63],r&&(V+="==")}else if(G===2){const le=o[ce+0],he=o[ce+1];V+=R[le>>>2],V+=R[(le<<4|he>>>4)&63],V+=R[he<<2&63],r&&(V+="=")}return V}e.encodeBase64=l}),define(oe[10],ae([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withUndefinedAsNull=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 g(c){return typeof c=="string"}e.isString=g;function L(c){return Array.isArray(c)&&c.every(n=>g(n))}e.isStringArray=L;function y(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)&&!(c instanceof RegExp)&&!(c instanceof Date)}e.isObject=y;function P(c){const n=Object.getPrototypeOf(Uint8Array);return typeof c=="object"&&c instanceof n}e.isTypedArray=P;function A(c){return typeof c=="number"&&!isNaN(c)}e.isNumber=A;function w(c){return!!c&&typeof c[Symbol.iterator]=="function"}e.isIterable=w;function m(c){return c===!0||c===!1}e.isBoolean=m;function h(c){return typeof c=="undefined"}e.isUndefined=h;function E(c){return!v(c)}e.isDefined=E;function v(c){return h(c)||c===null}e.isUndefinedOrNull=v;function I(c,n){if(!c)throw new Error(n?`Unexpected type, expected '${n}'`:"Unexpected type")}e.assertType=I;function _(c){if(v(c))throw new Error("Assertion Failed: argument is undefined or null");return c}e.assertIsDefined=_;function u(...c){const n=[];for(let t=0;t<c.length;t++){const s=c[t];if(v(s))throw new Error(`Assertion Failed: argument at index ${t} is undefined or null`);n.push(s)}return n}e.assertAllDefined=u;const p=Object.prototype.hasOwnProperty;function M(c){if(!y(c))return!1;for(const n in c)if(p.call(c,n))return!1;return!0}e.isEmptyObject=M;function C(c){return typeof c=="function"}e.isFunction=C;function D(...c){return c.length>0&&c.every(C)}e.areFunctions=D;function i(c,n){const t=Math.min(c.length,n.length);for(let s=0;s<t;s++)a(c[s],n[s])}e.validateConstraints=i;function a(c,n){if(g(n)){if(typeof c!==n)throw new Error(`argument does not match constraint: typeof ${n}`)}else if(C(n)){try{if(c instanceof n)return}catch{}if(!v(c)&&c.constructor===n||n.length===1&&n.call(void 0,c)===!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=a;function f(c){return c===null?void 0:c}e.withNullAsUndefined=f;function b(c){return typeof c=="undefined"?null:c}e.withUndefinedAsNull=b}),define(oe[27],ae([0,1,10]),function(x,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.filter=e.getCaseInsensitive=e.distinct=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function L(C){if(!C||typeof C!="object"||C instanceof RegExp)return C;const D=Array.isArray(C)?[]:{};return Object.keys(C).forEach(i=>{C[i]&&typeof C[i]=="object"?D[i]=L(C[i]):D[i]=C[i]}),D}e.deepClone=L;function y(C){if(!C||typeof C!="object")return C;const D=[C];for(;D.length>0;){const i=D.shift();Object.freeze(i);for(const a in i)if(P.call(i,a)){const f=i[a];typeof f=="object"&&!Object.isFrozen(f)&&!(0,g.isTypedArray)(f)&&D.push(f)}}return C}e.deepFreeze=y;const P=Object.prototype.hasOwnProperty;function A(C,D){return w(C,D,new Set)}e.cloneAndChange=A;function w(C,D,i){if((0,g.isUndefinedOrNull)(C))return C;const a=D(C);if(typeof a!="undefined")return a;if(Array.isArray(C)){const f=[];for(const b of C)f.push(w(b,D,i));return f}if((0,g.isObject)(C)){if(i.has(C))throw new Error("Cannot clone recursive data-structure");i.add(C);const f={};for(const b in C)P.call(C,b)&&(f[b]=w(C[b],D,i));return i.delete(C),f}return C}function m(C,D,i=!0){return(0,g.isObject)(C)?((0,g.isObject)(D)&&Object.keys(D).forEach(a=>{a in C?i&&((0,g.isObject)(C[a])&&(0,g.isObject)(D[a])?m(C[a],D[a],i):C[a]=D[a]):C[a]=D[a]}),C):D}e.mixin=m;function h(C,D){if(C===D)return!0;if(C==null||D===null||D===void 0||typeof C!=typeof D||typeof C!="object"||Array.isArray(C)!==Array.isArray(D))return!1;let i,a;if(Array.isArray(C)){if(C.length!==D.length)return!1;for(i=0;i<C.length;i++)if(!h(C[i],D[i]))return!1}else{const f=[];for(a in C)f.push(a);f.sort();const b=[];for(a in D)b.push(a);if(b.sort(),!h(f,b))return!1;for(i=0;i<f.length;i++)if(!h(C[f[i]],D[f[i]]))return!1}return!0}e.equals=h;function E(C){const D=new Set;return JSON.stringify(C,(i,a)=>{if((0,g.isObject)(a)||Array.isArray(a)){if(D.has(a))return"[Circular]";D.add(a)}return a})}e.safeStringify=E;function v(C,D){const i=Object.create(null);return!C||!D||Object.keys(D).forEach(f=>{const b=C[f],c=D[f];h(b,c)||(i[f]=c)}),i}e.distinct=v;function I(C,D){const i=D.toLowerCase(),a=Object.keys(C).find(f=>f.toLowerCase()===i);return a?C[a]:C[D]}e.getCaseInsensitive=I;function _(C,D){const i=Object.create(null);for(const[a,f]of Object.entries(C))D(a,f)&&(i[a]=f);return i}e.filter=_;function u(C){let D=[],i=Object.getPrototypeOf(C);for(;Object.prototype!==i;)D=D.concat(Object.getOwnPropertyNames(i)),i=Object.getPrototypeOf(i);return D}e.getAllPropertyNames=u;function p(C){const D=[];for(const i of u(C))typeof C[i]=="function"&&D.push(i);return D}e.getAllMethodNames=p;function M(C,D){const i=f=>function(){const b=Array.prototype.slice.call(arguments,0);return D(f,b)},a={};for(const f of C)a[f]=i(f);return a}e.createProxyObject=M}),define(oe[39],ae([13,14]),function(x,e){return x.create("vs/base/common/date",e)}),define(oe[40],ae([0,1,39]),function(x,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalISOString=e.fromNow=void 0;const L=60,y=L*60,P=y*24,A=P*7,w=P*30,m=P*365;function h(v,I,_){typeof v!="number"&&(v=v.getTime());const u=Math.round((new Date().getTime()-v)/1e3);if(u<-30)return(0,g.localize)(0,null,h(new Date().getTime()+u*1e3,!1));if(u<30)return(0,g.localize)(1,null);let p;return u<L?(p=u,I?p===1?_?(0,g.localize)(2,null,p):(0,g.localize)(3,null,p):_?(0,g.localize)(4,null,p):(0,g.localize)(5,null,p):p===1?_?(0,g.localize)(6,null,p):(0,g.localize)(7,null,p):_?(0,g.localize)(8,null,p):(0,g.localize)(9,null,p)):u<y?(p=Math.floor(u/L),I?p===1?_?(0,g.localize)(10,null,p):(0,g.localize)(11,null,p):_?(0,g.localize)(12,null,p):(0,g.localize)(13,null,p):p===1?_?(0,g.localize)(14,null,p):(0,g.localize)(15,null,p):_?(0,g.localize)(16,null,p):(0,g.localize)(17,null,p)):u<P?(p=Math.floor(u/y),I?p===1?_?(0,g.localize)(18,null,p):(0,g.localize)(19,null,p):_?(0,g.localize)(20,null,p):(0,g.localize)(21,null,p):p===1?_?(0,g.localize)(22,null,p):(0,g.localize)(23,null,p):_?(0,g.localize)(24,null,p):(0,g.localize)(25,null,p)):u<A?(p=Math.floor(u/P),I?p===1?(0,g.localize)(26,null,p):(0,g.localize)(27,null,p):p===1?(0,g.localize)(28,null,p):(0,g.localize)(29,null,p)):u<w?(p=Math.floor(u/A),I?p===1?_?(0,g.localize)(30,null,p):(0,g.localize)(31,null,p):_?(0,g.localize)(32,null,p):(0,g.localize)(33,null,p):p===1?_?(0,g.localize)(34,null,p):(0,g.localize)(35,null,p):_?(0,g.localize)(36,null,p):(0,g.localize)(37,null,p)):u<m?(p=Math.floor(u/w),I?p===1?_?(0,g.localize)(38,null,p):(0,g.localize)(39,null,p):_?(0,g.localize)(40,null,p):(0,g.localize)(41,null,p):p===1?_?(0,g.localize)(42,null,p):(0,g.localize)(43,null,p):_?(0,g.localize)(44,null,p):(0,g.localize)(45,null,p)):(p=Math.floor(u/m),I?p===1?_?(0,g.localize)(46,null,p):(0,g.localize)(47,null,p):_?(0,g.localize)(48,null,p):(0,g.localize)(49,null,p):p===1?_?(0,g.localize)(50,null,p):(0,g.localize)(51,null,p):_?(0,g.localize)(52,null,p):(0,g.localize)(53,null,p))}e.fromNow=h;function E(v){return v.getFullYear()+"-"+String(v.getMonth()+1).padStart(2,"0")+"-"+String(v.getDate()).padStart(2,"0")+"T"+String(v.getHours()).padStart(2,"0")+":"+String(v.getMinutes()).padStart(2,"0")+":"+String(v.getSeconds()).padStart(2,"0")+"."+(v.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}e.toLocalISOString=E}),define(oe[41],ae([13,14]),function(x,e){return x.create("vs/base/common/errorMessage",e)}),define(oe[42],ae([0,1,21,10,41]),function(x,e,g,L,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.toErrorMessage=void 0;function P(v,I){return I&&(v.stack||v.stacktrace)?y.localize(0,null,w(v),A(v.stack)||A(v.stacktrace)):w(v)}function A(v){return Array.isArray(v)?v.join(`
`):v}function w(v){return typeof v.code=="string"&&typeof v.errno=="number"&&typeof v.syscall=="string"?y.localize(1,null,v.message):v.message||y.localize(2,null)}function m(v=null,I=!1){if(!v)return y.localize(3,null);if(Array.isArray(v)){const _=g.coalesce(v),u=m(_[0],I);return _.length>1?y.localize(4,null,u,_.length):u}if(L.isString(v))return v;if(v.detail){const _=v.detail;if(_.error)return P(_.error,I);if(_.exception)return P(_.exception,I)}return v.stack?P(v,I):v.message?v.message:y.localize(5,null)}e.toErrorMessage=m;function h(v){const I=v;return I instanceof Error&&Array.isArray(I.actions)}e.isErrorWithActions=h;function E(v,I){let _;return typeof v=="string"?_=new Error(v):_=v,_.actions=I,_}e.createErrorWithActions=E}),define(oe[43],ae([13,14]),function(x,e){return x.create("vs/base/common/platform",e)}),define(oe[2],ae([0,1,43]),function(x,e,g){"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.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=void 0;const L="en";let y=!1,P=!1,A=!1,w=!1,m=!1,h=!1,E=!1,v=!1,I=!1,_,u=L,p,M;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let C;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?C=e.globals.vscode.process:typeof process!="undefined"&&(C=process);const D=typeof C?.versions?.electron=="string",i=D&&C?.type==="renderer";if(typeof navigator=="object"&&!i){M=navigator.userAgent,y=M.indexOf("Windows")>=0,P=M.indexOf("Macintosh")>=0,v=(M.indexOf("Macintosh")>=0||M.indexOf("iPad")>=0||M.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,A=M.indexOf("Linux")>=0,h=!0,_=g.getConfiguredDefaultLocale(g.localize(0,null))||L,u=_;const r=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),d=r&&r.getAttribute("data-settings");if(d)try{const R=JSON.parse(d);_=R.locale,p=R._translationsConfigFile,u=R.availableLanguages["*"]||L}catch{}}else if(typeof C=="object"){y=C.platform==="win32",P=C.platform==="darwin",A=C.platform==="linux",w=A&&!!C.env.SNAP&&!!C.env.SNAP_REVISION,E=D,I=!!C.env.CI||!!C.env.BUILD_ARTIFACTSTAGINGDIRECTORY,_=L,u=L;const o=C.env.VSCODE_NLS_CONFIG;if(o)try{const r=JSON.parse(o),d=r.availableLanguages["*"];_=r.locale,u=d||L,p=r._translationsConfigFile}catch{}m=!0}else console.error("Unable to resolve platform.");var a;(function(o){o[o.Web=0]="Web",o[o.Mac=1]="Mac",o[o.Linux=2]="Linux",o[o.Windows=3]="Windows"})(a=e.Platform||(e.Platform={}));function f(o){switch(o){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=f;let b=0;P?b=1:y?b=3:A&&(b=2),e.isWindows=y,e.isMacintosh=P,e.isLinux=A,e.isLinuxSnap=w,e.isNative=m,e.isElectron=E,e.isWeb=h,e.isWebWorker=h&&typeof e.globals.importScripts=="function",e.isIOS=v,e.isCI=I,e.platform=b,e.userAgent=M,e.language=u;var c;(function(o){function r(){return e.language}o.value=r;function d(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}o.isDefaultVariant=d;function R(){return e.language==="en"}o.isDefault=R})(c=e.Language||(e.Language={})),e.locale=_,e.translationsConfigFile=p,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const o=[];e.globals.addEventListener("message",d=>{if(d.data&&d.data.vscodeScheduleAsyncWork)for(let R=0,V=o.length;R<V;R++){const G=o[R];if(G.id===d.data.vscodeScheduleAsyncWork){o.splice(R,1),G.callback();return}}});let r=0;return d=>{const R=++r;o.push({id:R,callback:d}),e.globals.postMessage({vscodeScheduleAsyncWork:R},"*")}}return o=>setTimeout(o)})();var n;(function(o){o[o.Windows=1]="Windows",o[o.Macintosh=2]="Macintosh",o[o.Linux=3]="Linux"})(n=e.OperatingSystem||(e.OperatingSystem={})),e.OS=P||v?2:y?1:3;let t=!0,s=!1;function l(){if(!s){s=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,t=new Uint16Array(o.buffer)[0]===(2<<8)+1}return t}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(oe[15],ae([0,1,2]),function(x,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let L;if(typeof g.globals.vscode!="undefined"&&typeof g.globals.vscode.process!="undefined"){const y=g.globals.vscode.process;L={get platform(){return y.platform},get arch(){return y.arch},get env(){return y.env},cwd(){return y.cwd()}}}else typeof process!="undefined"?L={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:L={get platform(){return g.isWindows?"win32":g.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=L.cwd,e.env=L.env,e.platform=L.platform,e.arch=L.arch}),define(oe[5],ae([0,1,15]),function(x,e,g){"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 L=65,y=97,P=90,A=122,w=46,m=47,h=92,E=58,v=63;class I extends Error{constructor(a,f,b){let c;typeof f=="string"&&f.indexOf("not ")===0?(c="must not be",f=f.replace(/^not /,"")):c="must be";const n=a.indexOf(".")!==-1?"property":"argument";let t=`The "${a}" ${n} ${c} of type ${f}`;t+=`. Received type ${typeof b}`;super(t);this.code="ERR_INVALID_ARG_TYPE"}}function _(i,a){if(typeof i!="string")throw new I(a,"string",i)}function u(i){return i===m||i===h}function p(i){return i===m}function M(i){return i>=L&&i<=P||i>=y&&i<=A}function C(i,a,f,b){let c="",n=0,t=-1,s=0,l=0;for(let o=0;o<=i.length;++o){if(o<i.length)l=i.charCodeAt(o);else{if(b(l))break;l=m}if(b(l)){if(!(t===o-1||s===1))if(s===2){if(c.length<2||n!==2||c.charCodeAt(c.length-1)!==w||c.charCodeAt(c.length-2)!==w){if(c.length>2){const r=c.lastIndexOf(f);r===-1?(c="",n=0):(c=c.slice(0,r),n=c.length-1-c.lastIndexOf(f)),t=o,s=0;continue}else if(c.length!==0){c="",n=0,t=o,s=0;continue}}a&&(c+=c.length>0?`${f}..`:"..",n=2)}else c.length>0?c+=`${f}${i.slice(t+1,o)}`:c=i.slice(t+1,o),n=o-t-1;t=o,s=0}else l===w&&s!==-1?++s:s=-1}return c}function D(i,a){if(a===null||typeof a!="object")throw new I("pathObject","Object",a);const f=a.dir||a.root,b=a.base||`${a.name||""}${a.ext||""}`;return f?f===a.root?`${f}${b}`:`${f}${i}${b}`:b}e.win32={resolve(...i){let a="",f="",b=!1;for(let c=i.length-1;c>=-1;c--){let n;if(c>=0){if(n=i[c],_(n,"path"),n.length===0)continue}else a.length===0?n=g.cwd():(n=g.env[`=${a}`]||g.cwd(),(n===void 0||n.slice(0,2).toLowerCase()!==a.toLowerCase()&&n.charCodeAt(2)===h)&&(n=`${a}\\`));const t=n.length;let s=0,l="",o=!1;const r=n.charCodeAt(0);if(t===1)u(r)&&(s=1,o=!0);else if(u(r))if(o=!0,u(n.charCodeAt(1))){let d=2,R=d;for(;d<t&&!u(n.charCodeAt(d));)d++;if(d<t&&d!==R){const V=n.slice(R,d);for(R=d;d<t&&u(n.charCodeAt(d));)d++;if(d<t&&d!==R){for(R=d;d<t&&!u(n.charCodeAt(d));)d++;(d===t||d!==R)&&(l=`\\\\${V}\\${n.slice(R,d)}`,s=d)}}}else s=1;else M(r)&&n.charCodeAt(1)===E&&(l=n.slice(0,2),s=2,t>2&&u(n.charCodeAt(2))&&(o=!0,s=3));if(l.length>0)if(a.length>0){if(l.toLowerCase()!==a.toLowerCase())continue}else a=l;if(b){if(a.length>0)break}else if(f=`${n.slice(s)}\\${f}`,b=o,o&&a.length>0)break}return f=C(f,!b,"\\",u),b?`${a}\\${f}`:`${a}${f}`||"."},normalize(i){_(i,"path");const a=i.length;if(a===0)return".";let f=0,b,c=!1;const n=i.charCodeA