UNPKG

@jsjoeio/code-server

Version:

Run VS Code on a remote server.

8 lines (7 loc) 222 kB
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/(function(){var Y=["require","exports","vs/base/common/platform","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/path","vs/base/common/uri","vs/base/common/errors","vs/base/common/strings","vs/base/common/types","vs/base/common/async","vs/base/node/pfs","os","vs/platform/terminal/common/terminal","vs/base/common/process","vs/base/common/cancellation","vs/base/common/buffer","vs/base/common/extpath","vs/base/common/objects","child_process","vs/platform/log/common/log","vs/base/common/decorators","vs/base/common/arrays","vs/base/common/functional","vs/base/common/linkedList","vs/base/common/network","vs/base/common/resources","vs/base/parts/ipc/common/ipc","vs/nls","vs/nls!vs/platform/terminal/node/ptyHostMain","vs/base/node/processes","vs/platform/instantiation/common/instantiation","vs/platform/terminal/node/terminalEnvironment","vs/base/common/iterator","vs/base/common/stopwatch","vs/base/common/stream","vs/base/common/console","vs/base/common/map","vs/base/common/marshalling","vs/base/common/normalization","vs/base/common/uuid","vs/base/node/decoder","fs","vs/base/node/powershell","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/node/processes","vs/base/node/shell","vs/base/parts/ipc/node/ipc.cp","vs/nls!vs/platform/terminal/node/terminalProcess","vs/platform/log/common/logIpc","vs/platform/terminal/common/terminalDataBuffering","vs/platform/terminal/common/terminalEnvironment","vs/platform/terminal/common/terminalRecorder","vs/platform/terminal/node/heartbeatService","vs/platform/terminal/node/windowsShellHelper","vs/platform/terminal/node/terminalProcess","vs/platform/terminal/node/ptyService","string_decoder","util","vs/platform/terminal/node/ptyHostMain"],ee=function(z){for(var e=[],v=0,A=z.length;v<A;v++)e[v]=Y[z[v]];return e};define(Y[21],ee([0,1]),function(z,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function v(T){return(S,y,m)=>{let R=null,k=null;if(typeof m.value=="function"?(R="value",k=m.value):typeof m.get=="function"&&(R="get",k=m.get),!k)throw new Error("not supported");m[R]=T(k,y)}}e.createDecorator=v;function A(T,S,y){let m=null,R=null;if(typeof y.value=="function"?(m="value",R=y.value,R.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof y.get=="function"&&(m="get",R=y.get),!R)throw new Error("not supported");const k=`$memoize$${S}`;y[m]=function(...g){return this.hasOwnProperty(k)||Object.defineProperty(this,k,{configurable:!1,enumerable:!1,writable:!1,value:R.apply(this,g)}),this[k]}}e.memoize=A;function L(T,S,y){return v((m,R)=>{const k=`$debounce$${R}`,g=`$debounce$result$${R}`;return function(...I){this[g]||(this[g]=y?y():void 0),clearTimeout(this[k]),S&&(this[g]=S(this[g],...I),I=[this[g]]),this[k]=setTimeout(()=>{m.apply(this,I),this[g]=y?y():void 0},T)}})}e.debounce=L;function p(T,S,y){return v((m,R)=>{const k=`$throttle$timer$${R}`,g=`$throttle$result$${R}`,I=`$throttle$lastRun$${R}`,P=`$throttle$pending$${R}`;return function(...E){if(this[g]||(this[g]=y?y():void 0),(this[I]===null||this[I]===void 0)&&(this[I]=-Number.MAX_VALUE),S&&(this[g]=S(this[g],...E)),this[P])return;const O=this[I]+T;O<=Date.now()?(this[I]=Date.now(),m.apply(this,[this[g]]),this[g]=y?y():void 0):(this[P]=!0,this[k]=setTimeout(()=>{this[P]=!1,this[I]=Date.now(),m.apply(this,[this[g]]),this[g]=y?y():void 0},O-Date.now()))}})}e.throttle=p}),define(Y[7],ee([0,1]),function(z,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isPromiseCanceledError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class v{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(n){setTimeout(()=>{throw n.stack?new Error(n.message+` `+n.stack):n},0)}}addListener(n){return this.listeners.push(n),()=>{this._removeListener(n)}}emit(n){this.listeners.forEach(t=>{t(n)})}_removeListener(n){this.listeners.splice(this.listeners.indexOf(n),1)}setUnexpectedErrorHandler(n){this.unexpectedErrorHandler=n}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(n){this.unexpectedErrorHandler(n),this.emit(n)}onUnexpectedExternalError(n){this.unexpectedErrorHandler(n)}}e.ErrorHandler=v,e.errorHandler=new v;function A(s){e.errorHandler.setUnexpectedErrorHandler(s)}e.setUnexpectedErrorHandler=A;function L(s){y(s)||e.errorHandler.onUnexpectedError(s)}e.onUnexpectedError=L;function p(s){y(s)||e.errorHandler.onUnexpectedExternalError(s)}e.onUnexpectedExternalError=p;function T(s){if(s instanceof Error){let{name:n,message:t}=s;const i=s.stacktrace||s.stack;return{$isError:!0,name:n,message:t,stack:i}}return s}e.transformErrorForSerialization=T;const S="Canceled";function y(s){return s instanceof Error&&s.name===S&&s.message===S}e.isPromiseCanceledError=y;class m extends Error{constructor(){super(S);this.name=this.message}}e.CancellationError=m;function R(){const s=new Error(S);return s.name=s.message,s}e.canceled=R;function k(s){return s?new Error(`Illegal argument: ${s}`):new Error("Illegal argument")}e.illegalArgument=k;function g(s){return s?new Error(`Illegal state: ${s}`):new Error("Illegal state")}e.illegalState=g;function I(s){return s?new Error(`readonly property '${s} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=I;function P(s){const n=new Error(`${s} has been disposed`);return n.name="DISPOSED",n}e.disposed=P;function E(s){return s?s.message?s.message:s.stack?s.stack.split(` `)[0]:String(s):"Error"}e.getErrorMessage=E;class O extends Error{constructor(n){super("NotImplemented");n&&(this.message=n)}}e.NotImplementedError=O;class M extends Error{constructor(n){super("NotSupported");n&&(this.message=n)}}e.NotSupportedError=M;class _ extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=_;function l(s){const n=s;return n instanceof Error&&Array.isArray(n.actions)}e.isErrorWithActions=l;function o(s,n=Object.create(null)){const t=new Error(s);return n.actions&&(t.actions=n.actions),t}e.createErrorWithActions=o}),define(Y[22],ee([0,1,7]),function(z,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.maxIndex=e.minIndex=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.firstOrDefault=e.lastIndex=e.uniqueFilter=e.distinctES6=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.binarySearch=e.equals=e.tail2=e.tail=void 0;function A(C,c=0){return C[C.length-(1+c)]}e.tail=A;function L(C){if(C.length===0)throw new Error("Invalid tail call");return[C.slice(0,C.length-1),C[C.length-1]]}e.tail2=L;function p(C,c,a=(f,b)=>f===b){if(C===c)return!0;if(!C||!c||C.length!==c.length)return!1;for(let f=0,b=C.length;f<b;f++)if(!a(C[f],c[f]))return!1;return!0}e.equals=p;function T(C,c,a){let f=0,b=C.length-1;for(;f<=b;){const U=(f+b)/2|0,B=a(C[U],c);if(B<0)f=U+1;else if(B>0)b=U-1;else return U}return-(f+1)}e.binarySearch=T;function S(C,c){let a=0,f=C.length;if(f===0)return 0;for(;a<f;){const b=Math.floor((a+f)/2);c(C[b])?f=b:a=b+1}return a}e.findFirstInSorted=S;function y(C,c,a){if(C=C|0,C>=c.length)throw new TypeError("invalid index");let f=c[Math.floor(c.length*Math.random())],b=[],U=[],B=[];for(let G of c){const H=a(G,f);H<0?b.push(G):H>0?U.push(G):B.push(G)}return C<b.length?y(C,b,a):C<b.length+B.length?B[0]:y(C-(b.length+B.length),U,a)}e.quickSelect=y;function m(C,c){const a=[];let f;for(const b of C.slice(0).sort(c))!f||c(f[0],b)!==0?(f=[b],a.push(f)):f.push(b);return a}e.groupBy=m;function R(C,c,a){const f=[];function b(G,H,te){if(H===0&&te.length===0)return;const ie=f[f.length-1];ie&&ie.start+ie.deleteCount===G?(ie.deleteCount+=H,ie.toInsert.push(...te)):f.push({start:G,deleteCount:H,toInsert:te})}let U=0,B=0;for(;;){if(U===C.length){b(U,0,c.slice(B));break}if(B===c.length){b(U,C.length-U,[]);break}const G=C[U],H=c[B],te=a(G,H);te===0?(U+=1,B+=1):te<0?(b(U,1,[]),U+=1):te>0&&(b(U,0,[H]),B+=1)}return f}e.sortedDiff=R;function k(C,c,a){const f=R(C,c,a),b=[],U=[];for(const B of f)b.push(...C.slice(B.start,B.start+B.deleteCount)),U.push(...B.toInsert);return{removed:b,added:U}}e.delta=k;function g(C,c,a){if(a===0)return[];const f=C.slice(0,a).sort(c);return P(C,c,f,a,C.length),f}e.top=g;function I(C,c,a,f,b){return a===0?Promise.resolve([]):new Promise((U,B)=>{(async()=>{const G=C.length,H=C.slice(0,a).sort(c);for(let te=a,ie=Math.min(a+f,G);te<G;te=ie,ie=Math.min(ie+f,G)){if(te>a&&await new Promise(se=>setTimeout(se)),b&&b.isCancellationRequested)throw v.canceled();P(C,c,H,te,ie)}return H})().then(U,B)})}e.topAsync=I;function P(C,c,a,f,b){for(const U=a.length;f<b;f++){const B=C[f];if(c(B,a[U-1])<0){a.pop();const G=S(a,H=>c(B,H)<0);a.splice(G,0,B)}}}function E(C){return C.filter(c=>!!c)}e.coalesce=E;function O(C){let c=0;for(let a=0;a<C.length;a++)C[a]&&(C[c]=C[a],c+=1);C.length=c}e.coalesceInPlace=O;function M(C,c,a){C.splice(a,0,C.splice(c,1)[0])}e.move=M;function _(C){return!Array.isArray(C)||C.length===0}e.isFalsyOrEmpty=_;function l(C){return Array.isArray(C)&&C.length>0}e.isNonEmptyArray=l;function o(C,c){if(!c)return C.filter((f,b)=>C.indexOf(f)===b);const a=Object.create(null);return C.filter(f=>{const b=c(f);return a[b]?!1:(a[b]=!0,!0)})}e.distinct=o;function s(C){const c=new Set;return C.filter(a=>c.has(a)?!1:(c.add(a),!0))}e.distinctES6=s;function n(C){const c=Object.create(null);return a=>{const f=C(a);return c[f]?!1:(c[f]=!0,!0)}}e.uniqueFilter=n;function t(C,c){for(let a=C.length-1;a>=0;a--){const f=C[a];if(c(f))return a}return-1}e.lastIndex=t;function i(C,c){return C.length>0?C[0]:c}e.firstOrDefault=i;function r(C,c,a=(f,b)=>f===b){let f=0;for(let b=0,U=Math.min(C.length,c.length);b<U&&a(C[b],c[b]);b++)f++;return f}e.commonPrefixLength=r;function u(C){return[].concat(...C)}e.flatten=u;function w(C,c){let a=typeof c=="number"?C:0;typeof c=="number"?a=C:(a=0,c=C);const f=[];if(a<=c)for(let b=a;b<c;b++)f.push(b);else for(let b=a;b>c;b--)f.push(b);return f}e.range=w;function h(C,c,a){return C.reduce((f,b)=>(f[c(b)]=a?a(b):b,f),Object.create(null))}e.index=h;function D(C,c){return C.push(c),()=>N(C,c)}e.insert=D;function N(C,c){const a=C.indexOf(c);if(a>-1)return C.splice(a,1),c}e.remove=N;function $(C,c,a){const f=C.slice(0,c),b=C.slice(c);return f.concat(a,b)}e.arrayInsert=$;function X(C,c){let a;if(typeof c=="number"){let f=c;a=()=>{const b=Math.sin(f++)*179426549;return b-Math.floor(b)}}else a=Math.random;for(let f=C.length-1;f>0;f-=1){const b=Math.floor(a()*(f+1)),U=C[f];C[f]=C[b],C[b]=U}}e.shuffle=X;function x(C,c){const a=C.indexOf(c);a>-1&&(C.splice(a,1),C.unshift(c))}e.pushToStart=x;function re(C,c){const a=C.indexOf(c);a>-1&&(C.splice(a,1),C.push(c))}e.pushToEnd=re;function le(C,c){return Array.isArray(C)?C.map(c):c(C)}e.mapArrayOrNot=le;function de(C){return Array.isArray(C)?C:[C]}e.asArray=de;function J(C){return C[Math.floor(Math.random()*C.length)]}e.getRandomElement=J;function V(C,c){for(const a of C){const f=c(a);if(f!==void 0)return f}}e.mapFind=V;function K(C,c){let a=Number.MAX_SAFE_INTEGER,f=0;return C.forEach((b,U)=>{const B=c(b);B<a&&(a=B,f=U)}),f}e.minIndex=K;function W(C,c){let a=Number.MIN_SAFE_INTEGER,f=0;return C.forEach((b,U)=>{const B=c(b);B>a&&(a=B,f=U)}),f}e.maxIndex=W}),define(Y[23],ee([0,1]),function(z,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function v(A){const L=this;let p=!1,T;return function(){return p||(p=!0,T=A.apply(L,arguments)),T}}e.once=v}),define(Y[33],ee([0,1]),function(z,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var v;(function(A){function L(s){return s&&typeof s=="object"&&typeof s[Symbol.iterator]=="function"}A.is=L;const p=Object.freeze([]);function T(){return p}A.empty=T;function*S(s){yield s}A.single=S;function y(s){return s||p}A.from=y;function m(s){return!s||s[Symbol.iterator]().next().done===!0}A.isEmpty=m;function R(s){return s[Symbol.iterator]().next().value}A.first=R;function k(s,n){for(const t of s)if(n(t))return!0;return!1}A.some=k;function g(s,n){for(const t of s)if(n(t))return t}A.find=g;function*I(s,n){for(const t of s)n(t)&&(yield t)}A.filter=I;function*P(s,n){let t=0;for(const i of s)yield n(i,t++)}A.map=P;function*E(...s){for(const n of s)for(const t of n)yield t}A.concat=E;function*O(s){for(const n of s)for(const t of n)yield t}A.concatNested=O;function M(s,n,t){let i=t;for(const r of s)i=n(i,r);return i}A.reduce=M;function*_(s,n,t=s.length){for(n<0&&(n+=s.length),t<0?t+=s.length:t>s.length&&(t=s.length);n<t;n++)yield s[n]}A.slice=_;function l(s,n=Number.POSITIVE_INFINITY){const t=[];if(n===0)return[t,s];const i=s[Symbol.iterator]();for(let r=0;r<n;r++){const u=i.next();if(u.done)return[t,A.empty()];t.push(u.value)}return[t,{[Symbol.iterator](){return i}}]}A.consume=l;function o(s,n,t=(i,r)=>i===r){const i=s[Symbol.iterator](),r=n[Symbol.iterator]();for(;;){const u=i.next(),w=r.next();if(u.done!==w.done)return!1;if(u.done)return!0;if(!t(u.value,w.value))return!1}}A.equals=o})(v=e.Iterable||(e.Iterable={}))}),define(Y[3],ee([0,1,23,33]),function(z,e,v,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ImmortalReference=e.ReferenceCollection=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.trackDisposable=e.setDisposableTracker=void 0;const L=!1;let p=null;function T(l){p=l}if(e.setDisposableTracker=T,L){const l="__is_disposable_tracked__";p=new class{trackDisposable(o){const s=new Error("Potentially leaked disposable").stack;setTimeout(()=>{o[l]||console.log(s)},3e3)}markTracked(o){if(o&&o!==E.None)try{o[l]=!0}catch(s){}}}}function S(l){!p||p.markTracked(l)}function y(l){return p&&p.trackDisposable(l),l}e.trackDisposable=y;class m extends Error{constructor(o){super(`Encountered errors while disposing of store. Errors: [${o.join(", ")}]`);this.errors=o}}e.MultiDisposeError=m;function R(l){return typeof l.dispose=="function"&&l.dispose.length===0}e.isDisposable=R;function k(l){if(A.Iterable.is(l)){let o=[];for(const s of l)if(s){S(s);try{s.dispose()}catch(n){o.push(n)}}if(o.length===1)throw o[0];if(o.length>1)throw new m(o);return Array.isArray(l)?[]:l}else if(l)return S(l),l.dispose(),l}e.dispose=k;function g(...l){return l.forEach(S),I(()=>k(l))}e.combinedDisposable=g;function I(l){const o=y({dispose:()=>{S(o),l()}});return o}e.toDisposable=I;class P{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}clear(){try{k(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 S(o),this._isDisposed?P.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=P,P.DISABLE_DISPOSED_WARNING=!1;class E{constructor(){this._store=new P,y(this)}dispose(){S(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=E,E.None=Object.freeze({dispose(){}});class O{constructor(){this._isDisposed=!1,y(this)}get value(){return this._isDisposed?void 0:this._value}set value(o){var s;this._isDisposed||o===this._value||((s=this._value)===null||s===void 0||s.dispose(),o&&S(o),this._value=o)}clear(){this.value=void 0}dispose(){var o;this._isDisposed=!0,S(this),(o=this._value)===null||o===void 0||o.dispose(),this._value=void 0}}e.MutableDisposable=O;class M{constructor(){this.references=new Map}acquire(o,...s){let n=this.references.get(o);n||(n={counter:0,object:this.createReferencedObject(o,...s)},this.references.set(o,n));const{object:t}=n,i=v.once(()=>{--n.counter==0&&(this.destroyReferencedObject(o,n.object),this.references.delete(o))});return n.counter++,{object:t,dispose:i}}}e.ReferenceCollection=M;class _{constructor(o){this.object=o}dispose(){}}e.ImmortalReference=_}),define(Y[24],ee([0,1]),function(z,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class v{constructor(p){this.element=p,this.next=v.Undefined,this.prev=v.Undefined}}v.Undefined=new v(void 0);class A{constructor(){this._first=v.Undefined,this._last=v.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===v.Undefined}clear(){let p=this._first;for(;p!==v.Undefined;){const T=p.next;p.prev=v.Undefined,p.next=v.Undefined,p=T}this._first=v.Undefined,this._last=v.Undefined,this._size=0}unshift(p){return this._insert(p,!1)}push(p){return this._insert(p,!0)}_insert(p,T){const S=new v(p);if(this._first===v.Undefined)this._first=S,this._last=S;else if(T){const m=this._last;this._last=S,S.prev=m,m.next=S}else{const m=this._first;this._first=S,S.next=m,m.prev=S}this._size+=1;let y=!1;return()=>{y||(y=!0,this._remove(S))}}shift(){if(this._first!==v.Undefined){const p=this._first.element;return this._remove(this._first),p}}pop(){if(this._last!==v.Undefined){const p=this._last.element;return this._remove(this._last),p}}_remove(p){if(p.prev!==v.Undefined&&p.next!==v.Undefined){const T=p.prev;T.next=p.next,p.next.prev=T}else p.prev===v.Undefined&&p.next===v.Undefined?(this._first=v.Undefined,this._last=v.Undefined):p.next===v.Undefined?(this._last=this._last.prev,this._last.next=v.Undefined):p.prev===v.Undefined&&(this._first=this._first.next,this._first.prev=v.Undefined);this._size-=1}*[Symbol.iterator](){let p=this._first;for(;p!==v.Undefined;)yield p.element,p=p.next}}e.LinkedList=A}),define(Y[2],ee([0,1]),function(z,e){"use strict";var v;Object.defineProperty(e,"__esModule",{value:!0}),e.isLittleEndian=e.OS=e.OperatingSystem=e.setImmediate=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isIOS=e.isWeb=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.isPreferringBrowserCodeLoad=e.browserCodeLoadingCacheStrategy=e.isElectronSandboxed=e.globals=void 0;const A="en";let L=!1,p=!1,T=!1,S=!1,y=!1,m=!1,R=!1,k,g=A,I,P;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let E;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?E=e.globals.vscode.process:typeof process!="undefined"&&(E=process);const O=typeof((v=E==null?void 0:E.versions)===null||v===void 0?void 0:v.electron)=="string"&&E.type==="renderer";if(e.isElectronSandboxed=O&&(E==null?void 0:E.sandboxed),e.browserCodeLoadingCacheStrategy=(()=>{if(e.isElectronSandboxed)return"bypassHeatCheck";const r=E==null?void 0:E.env.VSCODE_BROWSER_CODE_LOADING;if(typeof r=="string")return r==="none"||r==="code"||r==="bypassHeatCheck"||r==="bypassHeatCheckAndEagerCompile"?r:"bypassHeatCheck"})(),e.isPreferringBrowserCodeLoad=typeof e.browserCodeLoadingCacheStrategy=="string",typeof navigator=="object"&&!O){P=navigator.userAgent,L=P.indexOf("Windows")>=0,p=P.indexOf("Macintosh")>=0,R=(P.indexOf("Macintosh")>=0||P.indexOf("iPad")>=0||P.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,T=P.indexOf("Linux")>=0,m=!0,k=navigator.language,g=k;const r=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),u=r&&r.getAttribute("data-settings");if(u)try{const w=JSON.parse(u);k=w.locale,I=w._translationsConfigFile,g=w.availableLanguages["*"]||A}catch(w){}}else if(typeof E=="object"){L=E.platform==="win32",p=E.platform==="darwin",T=E.platform==="linux",S=T&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,k=A,g=A;const r=E.env.VSCODE_NLS_CONFIG;if(r)try{const u=JSON.parse(r),w=u.availableLanguages["*"];k=u.locale,g=w||A,I=u._translationsConfigFile}catch(u){}y=!0}else console.error("Unable to resolve platform.");var M;(function(r){r[r.Web=0]="Web",r[r.Mac=1]="Mac",r[r.Linux=2]="Linux",r[r.Windows=3]="Windows"})(M=e.Platform||(e.Platform={}));function _(r){switch(r){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=_;let l=0;p?l=1:L?l=3:T&&(l=2),e.isWindows=L,e.isMacintosh=p,e.isLinux=T,e.isLinuxSnap=S,e.isNative=y,e.isWeb=m,e.isIOS=R,e.platform=l,e.userAgent=P,e.language=g;var o;(function(r){function u(){return e.language}r.value=u;function w(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}r.isDefaultVariant=w;function h(){return e.language==="en"}r.isDefault=h})(o=e.Language||(e.Language={})),e.locale=k,e.translationsConfigFile=I,e.setImmediate=function(){if(e.globals.setImmediate)return e.globals.setImmediate.bind(e.globals);if(typeof e.globals.postMessage=="function"&&!e.globals.importScripts){let w=[];e.globals.addEventListener("message",D=>{if(D.data&&D.data.vscodeSetImmediateId)for(let N=0,$=w.length;N<$;N++){const X=w[N];if(X.id===D.data.vscodeSetImmediateId){w.splice(N,1),X.callback();return}}});let h=0;return D=>{const N=++h;w.push({id:N,callback:D}),e.globals.postMessage({vscodeSetImmediateId:N},"*")}}if(typeof(E==null?void 0:E.nextTick)=="function")return E.nextTick.bind(E);const u=Promise.resolve();return w=>u.then(w)}();var s;(function(r){r[r.Windows=1]="Windows",r[r.Macintosh=2]="Macintosh",r[r.Linux=3]="Linux"})(s=e.OperatingSystem||(e.OperatingSystem={})),e.OS=p||R?2:L?1:3;let n=!0,t=!1;function i(){if(!t){t=!0;const r=new Uint8Array(2);r[0]=1,r[1]=2,n=new Uint16Array(r.buffer)[0]===(2<<8)+1}return n}e.isLittleEndian=i}),define(Y[14],ee([0,1,2]),function(z,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.platform=e.env=e.cwd=void 0;let A;if(typeof v.globals.vscode!="undefined"&&typeof v.globals.vscode.process!="undefined"){const L=v.globals.vscode.process;A={get platform(){return L.platform},get env(){return L.env},cwd(){return L.cwd()},nextTick(p){return v.setImmediate(p)}}}else typeof process!="undefined"?A={get platform(){return process.platform},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()},nextTick(L){return process.nextTick(L)}}:A={get platform(){return v.isWindows?"win32":v.isMacintosh?"darwin":"linux"},nextTick(L){return v.setImmediate(L)},get env(){return{}},cwd(){return"/"}};e.cwd=A.cwd,e.env=A.env,e.platform=A.platform,e.nextTick=A.nextTick}),define(Y[5],ee([0,1,14]),function(z,e,v){"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 A=65,L=97,p=90,T=122,S=46,y=47,m=92,R=58,k=63;class g extends Error{constructor(o,s,n){let t;typeof s=="string"&&s.indexOf("not ")===0?(t="must not be",s=s.replace(/^not /,"")):t="must be";const i=o.indexOf(".")!==-1?"property":"argument";let r=`The "${o}" ${i} ${t} of type ${s}`;r+=`. Received type ${typeof n}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function I(l,o){if(typeof l!="string")throw new g(o,"string",l)}function P(l){return l===y||l===m}function E(l){return l===y}function O(l){return l>=A&&l<=p||l>=L&&l<=T}function M(l,o,s,n){let t="",i=0,r=-1,u=0,w=0;for(let h=0;h<=l.length;++h){if(h<l.length)w=l.charCodeAt(h);else{if(n(w))break;w=y}if(n(w)){if(!(r===h-1||u===1))if(u===2){if(t.length<2||i!==2||t.charCodeAt(t.length-1)!==S||t.charCodeAt(t.length-2)!==S){if(t.length>2){const D=t.lastIndexOf(s);D===-1?(t="",i=0):(t=t.slice(0,D),i=t.length-1-t.lastIndexOf(s)),r=h,u=0;continue}else if(t.length!==0){t="",i=0,r=h,u=0;continue}}o&&(t+=t.length>0?`${s}..`:"..",i=2)}else t.length>0?t+=`${s}${l.slice(r+1,h)}`:t=l.slice(r+1,h),i=h-r-1;r=h,u=0}else w===S&&u!==-1?++u:u=-1}return t}function _(l,o){if(o===null||typeof o!="object")throw new g("pathObject","Object",o);const s=o.dir||o.root,n=o.base||`${o.name||""}${o.ext||""}`;return s?s===o.root?`${s}${n}`:`${s}${l}${n}`:n}e.win32={resolve(...l){let o="",s="",n=!1;for(let t=l.length-1;t>=-1;t--){let i;if(t>=0){if(i=l[t],I(i,"path"),i.length===0)continue}else o.length===0?i=v.cwd():(i=v.env[`=${o}`]||v.cwd(),(i===void 0||i.slice(0,2).toLowerCase()!==o.toLowerCase()&&i.charCodeAt(2)===m)&&(i=`${o}\\`));const r=i.length;let u=0,w="",h=!1;const D=i.charCodeAt(0);if(r===1)P(D)&&(u=1,h=!0);else if(P(D))if(h=!0,P(i.charCodeAt(1))){let N=2,$=N;for(;N<r&&!P(i.charCodeAt(N));)N++;if(N<r&&N!==$){const X=i.slice($,N);for($=N;N<r&&P(i.charCodeAt(N));)N++;if(N<r&&N!==$){for($=N;N<r&&!P(i.charCodeAt(N));)N++;(N===r||N!==$)&&(w=`\\\\${X}\\${i.slice($,N)}`,u=N)}}}else u=1;else O(D)&&i.charCodeAt(1)===R&&(w=i.slice(0,2),u=2,r>2&&P(i.charCodeAt(2))&&(h=!0,u=3));if(w.length>0)if(o.length>0){if(w.toLowerCase()!==o.toLowerCase())continue}else o=w;if(n){if(o.length>0)break}else if(s=`${i.slice(u)}\\${s}`,n=h,h&&o.length>0)break}return s=M(s,!n,"\\",P),n?`${o}\\${s}`:`${o}${s}`||"."},normalize(l){I(l,"path");const o=l.length;if(o===0)return".";let s=0,n,t=!1;const i=l.charCodeAt(0);if(o===1)return E(i)?"\\":l;if(P(i))if(t=!0,P(l.charCodeAt(1))){let u=2,w=u;for(;u<o&&!P(l.charCodeAt(u));)u++;if(u<o&&u!==w){const h=l.slice(w,u);for(w=u;u<o&&P(l.charCodeAt(u));)u++;if(u<o&&u!==w){for(w=u;u<o&&!P(l.charCodeAt(u));)u++;if(u===o)return`\\\\${h}\\${l.slice(w)}\\`;u!==w&&(n=`\\\\${h}\\${l.slice(w,u)}`,s=u)}}}else s=1;else O(i)&&l.charCodeAt(1)===R&&(n=l.slice(0,2),s=2,o>2&&P(l.charCodeAt(2))&&(t=!0,s=3));let r=s<o?M(l.slice(s),!t,"\\",P):"";return r.length===0&&!t&&(r="."),r.length>0&&P(l.charCodeAt(o-1))&&(r+="\\"),n===void 0?t?`\\${r}`:r:t?`${n}\\${r}`:`${n}${r}`},isAbsolute(l){I(l,"path");const o=l.length;if(o===0)return!1;const s=l.charCodeAt(0);return P(s)||o>2&&O(s)&&l.charCodeAt(1)===R&&P(l.charCodeAt(2))},join(...l){if(l.length===0)return".";let o,s;for(let i=0;i<l.length;++i){const r=l[i];I(r,"path"),r.length>0&&(o===void 0?o=s=r:o+=`\\${r}`)}if(o===void 0)return".";let n=!0,t=0;if(typeof s=="string"&&P(s.charCodeAt(0))){++t;const i=s.length;i>1&&P(s.charCodeAt(1))&&(++t,i>2&&(P(s.charCodeAt(2))?++t:n=!1))}if(n){for(;t<o.length&&P(o.charCodeAt(t));)t++;t>=2&&(o=`\\${o.slice(t)}`)}return e.win32.normalize(o)},relative(l,o){if(I(l,"from"),I(o,"to"),l===o)return"";const s=e.win32.resolve(l),n=e.win32.resolve(o);if(s===n||(l=s.toLowerCase(),o=n.toLowerCase(),l===o))return"";let t=0;for(;t<l.length&&l.charCodeAt(t)===m;)t++;let i=l.length;for(;i-1>t&&l.charCodeAt(i-1)===m;)i--;const r=i-t;let u=0;for(;u<o.length&&o.charCodeAt(u)===m;)u++;let w=o.length;for(;w-1>u&&o.charCodeAt(w-1)===m;)w--;const h=w-u,D=r<h?r:h;let N=-1,$=0;for(;$<D;$++){const x=l.charCodeAt(t+$);if(x!==o.charCodeAt(u+$))break;x===m&&(N=$)}if($!==D){if(N===-1)return n}else{if(h>D){if(o.charCodeAt(u+$)===m)return n.slice(u+$+1);if($===2)return n.slice(u+$)}r>D&&(l.charCodeAt(t+$)===m?N=$:$===2&&(N=3)),N===-1&&(N=0)}let X="";for($=t+N+1;$<=i;++$)($===i||l.charCodeAt($)===m)&&(X+=X.length===0?"..":"\\..");return u+=N,X.length>0?`${X}${n.slice(u,w)}`:(n.charCodeAt(u)===m&&++u,n.slice(u,w))},toNamespacedPath(l){if(typeof l!="string")return l;if(l.length===0)return"";const o=e.win32.resolve(l);if(o.length<=2)return l;if(o.charCodeAt(0)===m){if(o.charCodeAt(1)===m){const s=o.charCodeAt(2);if(s!==k&&s!==S)return`\\\\?\\UNC\\${o.slice(2)}`}}else if(O(o.charCodeAt(0))&&o.charCodeAt(1)===R&&o.charCodeAt(2)===m)return`\\\\?\\${o}`;return l},dirname(l){I(l,"path");const o=l.length;if(o===0)return".";let s=-1,n=0;const t=l.charCodeAt(0);if(o===1)return P(t)?l:".";if(P(t)){if(s=n=1,P(l.charCodeAt(1))){let u=2,w=u;for(;u<o&&!P(l.charCodeAt(u));)u++;if(u<o&&u!==w){for(w=u;u<o&&P(l.charCodeAt(u));)u++;if(u<o&&u!==w){for(w=u;u<o&&!P(l.charCodeAt(u));)u++;if(u===o)return l;u!==w&&(s=n=u+1)}}}}else O(t)&&l.charCodeAt(1)===R&&(s=o>2&&P(l.charCodeAt(2))?3:2,n=s);let i=-1,r=!0;for(let u=o-1;u>=n;--u)if(P(l.charCodeAt(u))){if(!r){i=u;break}}else r=!1;if(i===-1){if(s===-1)return".";i=s}return l.slice(0,i)},basename(l,o){o!==void 0&&I(o,"ext"),I(l,"path");let s=0,n=-1,t=!0,i;if(l.length>=2&&O(l.charCodeAt(0))&&l.charCodeAt(1)===R&&(s=2),o!==void 0&&o.length>0&&o.length<=l.length){if(o===l)return"";let r=o.length-1,u=-1;for(i=l.length-1;i>=s;--i){const w=l.charCodeAt(i);if(P(w)){if(!t){s=i+1;break}}else u===-1&&(t=!1,u=i+1),r>=0&&(w===o.charCodeAt(r)?--r==-1&&(n=i):(r=-1,n=u))}return s===n?n=u:n===-1&&(n=l.length),l.slice(s,n)}for(i=l.length-1;i>=s;--i)if(P(l.charCodeAt(i))){if(!t){s=i+1;break}}else n===-1&&(t=!1,n=i+1);return n===-1?"":l.slice(s,n)},extname(l){I(l,"path");let o=0,s=-1,n=0,t=-1,i=!0,r=0;l.length>=2&&l.charCodeAt(1)===R&&O(l.charCodeAt(0))&&(o=n=2);for(let u=l.length-1;u>=o;--u){const w=l.charCodeAt(u);if(P(w)){if(!i){n=u+1;break}continue}t===-1&&(i=!1,t=u+1),w===S?s===-1?s=u:r!==1&&(r=1):s!==-1&&(r=-1)}return s===-1||t===-1||r===0||r===1&&s===t-1&&s===n+1?"":l.slice(s,t)},format:_.bind(null,"\\"),parse(l){I(l,"path");const o={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return o;const s=l.length;let n=0,t=l.charCodeAt(0);if(s===1)return P(t)?(o.root=o.dir=l,o):(o.base=o.name=l,o);if(P(t)){if(n=1,P(l.charCodeAt(1))){let N=2,$=N;for(;N<s&&!P(l.charCodeAt(N));)N++;if(N<s&&N!==$){for($=N;N<s&&P(l.charCodeAt(N));)N++;if(N<s&&N!==$){for($=N;N<s&&!P(l.charCodeAt(N));)N++;N===s?n=N:N!==$&&(n=N+1)}}}}else if(O(t)&&l.charCodeAt(1)===R){if(s<=2)return o.root=o.dir=l,o;if(n=2,P(l.charCodeAt(2))){if(s===3)return o.root=o.dir=l,o;n=3}}n>0&&(o.root=l.slice(0,n));let i=-1,r=n,u=-1,w=!0,h=l.length-1,D=0;for(;h>=n;--h){if(t=l.charCodeAt(h),P(t)){if(!w){r=h+1;break}continue}u===-1&&(w=!1,u=h+1),t===S?i===-1?i=h:D!==1&&(D=1):i!==-1&&(D=-1)}return u!==-1&&(i===-1||D===0||D===1&&i===u-1&&i===r+1?o.base=o.name=l.slice(r,u):(o.name=l.slice(r,i),o.base=l.slice(r,u),o.ext=l.slice(i,u))),r>0&&r!==n?o.dir=l.slice(0,r-1):o.dir=o.root,o},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...l){let o="",s=!1;for(let n=l.length-1;n>=-1&&!s;n--){const t=n>=0?l[n]:v.cwd();I(t,"path"),t.length!==0&&(o=`${t}/${o}`,s=t.charCodeAt(0)===y)}return o=M(o,!s,"/",E),s?`/${o}`:o.length>0?o:"."},normalize(l){if(I(l,"path"),l.length===0)return".";const o=l.charCodeAt(0)===y,s=l.charCodeAt(l.length-1)===y;return l=M(l,!o,"/",E),l.length===0?o?"/":s?"./":".":(s&&(l+="/"),o?`/${l}`:l)},isAbsolute(l){return I(l,"path"),l.length>0&&l.charCodeAt(0)===y},join(...l){if(l.length===0)return".";let o;for(let s=0;s<l.length;++s){const n=l[s];I(n,"path"),n.length>0&&(o===void 0?o=n:o+=`/${n}`)}return o===void 0?".":e.posix.normalize(o)},relative(l,o){if(I(l,"from"),I(o,"to"),l===o||(l=e.posix.resolve(l),o=e.posix.resolve(o),l===o))return"";const s=1,n=l.length,t=n-s,i=1,r=o.length-i,u=t<r?t:r;let w=-1,h=0;for(;h<u;h++){const N=l.charCodeAt(s+h);if(N!==o.charCodeAt(i+h))break;N===y&&(w=h)}if(h===u)if(r>u){if(o.charCodeAt(i+h)===y)return o.slice(i+h+1);if(h===0)return o.slice(i+h)}else t>u&&(l.charCodeAt(s+h)===y?w=h:h===0&&(w=0));let D="";for(h=s+w+1;h<=n;++h)(h===n||l.charCodeAt(h)===y)&&(D+=D.length===0?"..":"/..");return`${D}${o.slice(i+w)}`},toNamespacedPath(l){return l},dirname(l){if(I(l,"path"),l.length===0)return".";const o=l.charCodeAt(0)===y;let s=-1,n=!0;for(let t=l.length-1;t>=1;--t)if(l.charCodeAt(t)===y){if(!n){s=t;break}}else n=!1;return s===-1?o?"/":".":o&&s===1?"//":l.slice(0,s)},basename(l,o){o!==void 0&&I(o,"ext"),I(l,"path");let s=0,n=-1,t=!0,i;if(o!==void 0&&o.length>0&&o.length<=l.length){if(o===l)return"";let r=o.length-1,u=-1;for(i=l.length-1;i>=0;--i){const w=l.charCodeAt(i);if(w===y){if(!t){s=i+1;break}}else u===-1&&(t=!1,u=i+1),r>=0&&(w===o.charCodeAt(r)?--r==-1&&(n=i):(r=-1,n=u))}return s===n?n=u:n===-1&&(n=l.length),l.slice(s,n)}for(i=l.length-1;i>=0;--i)if(l.charCodeAt(i)===y){if(!t){s=i+1;break}}else n===-1&&(t=!1,n=i+1);return n===-1?"":l.slice(s,n)},extname(l){I(l,"path");let o=-1,s=0,n=-1,t=!0,i=0;for(let r=l.length-1;r>=0;--r){const u=l.charCodeAt(r);if(u===y){if(!t){s=r+1;break}continue}n===-1&&(t=!1,n=r+1),u===S?o===-1?o=r:i!==1&&(i=1):o!==-1&&(i=-1)}return o===-1||n===-1||i===0||i===1&&o===n-1&&o===s+1?"":l.slice(o,n)},format:_.bind(null,"/"),parse(l){I(l,"path");const o={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return o;const s=l.charCodeAt(0)===y;let n;s?(o.root="/",n=1):n=0;let t=-1,i=0,r=-1,u=!0,w=l.length-1,h=0;for(;w>=n;--w){const D=l.charCodeAt(w);if(D===y){if(!u){i=w+1;break}continue}r===-1&&(u=!1,r=w+1),D===S?t===-1?t=w:h!==1&&(h=1):t!==-1&&(h=-1)}if(r!==-1){const D=i===0&&s?1:i;t===-1||h===0||h===1&&t===r-1&&t===i+1?o.base=o.name=l.slice(D,r):(o.name=l.slice(D,t),o.base=l.slice(D,r),o.ext=l.slice(t,r))}return i>0?o.dir=l.slice(0,i-1):s&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=v.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=v.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=v.platform==="win32"?e.win32.join:e.posix.join,e.resolve=v.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=v.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=v.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=v.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=v.platform==="win32"?e.win32.extname:e.posix.extname,e.format=v.platform==="win32"?e.win32.format:e.posix.format,e.parse=v.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=v.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=v.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=v.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(Y[34],ee([0,1,2]),function(z,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const A=v.globals.performance&&typeof v.globals.performance.now=="function";class L{constructor(T){this._highResolution=A&&T,this._startTime=this._now(),this._stopTime=-1}static create(T=!0){return new L(T)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?v.globals.performance.now():Date.now()}}e.StopWatch=L}),define(Y[4],ee([0,1,7,23,3,24,34]),function(z,e,v,A,L,p,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.PauseableEmitter=e.Emitter=e.setGlobalLeakWarningThreshold=e.Event=void 0;var S;(function(M){M.None=()=>L.Disposable.None;function _(J){return(V,K=null,W)=>{let C=!1,c;return c=J(a=>{if(!C)return c?c.dispose():C=!0,V.call(K,a)},null,W),C&&c.dispose(),c}}M.once=_;function l(J,V){return r((K,W=null,C)=>J(c=>K.call(W,V(c)),null,C))}M.map=l;function o(J,V){return r((K,W=null,C)=>J(c=>{V(c),K.call(W,c)},null,C))}M.forEach=o;function s(J,V){return r((K,W=null,C)=>J(c=>V(c)&&K.call(W,c),null,C))}M.filter=s;function n(J){return J}M.signal=n;function t(...J){return(V,K=null,W)=>L.combinedDisposable(...J.map(C=>C(c=>V.call(K,c),null,W)))}M.any=t;function i(J,V,K){let W=K;return l(J,C=>(W=V(W,C),W))}M.reduce=i;function r(J){let V;const K=new g({onFirstListenerAdd(){V=J(K.fire,K)},onLastListenerRemove(){V.dispose()}});return K.event}M.snapshot=r;function u(J,V,K=100,W=!1,C){let c,a,f,b=0;const U=new g({leakWarningThreshold:C,onFirstListenerAdd(){c=J(B=>{b++,a=V(a,B),W&&!f&&(U.fire(a),a=void 0),clearTimeout(f),f=setTimeout(()=>{const G=a;a=void 0,f=void 0,(!W||b>1)&&U.fire(G),b=0},K)})},onLastListenerRemove(){c.dispose()}});return U.event}M.debounce=u;function w(J){const V=new Date().getTime();return l(_(J),K=>new Date().getTime()-V)}M.stopwatch=w;function h(J,V=(K,W)=>K===W){let K=!0,W;return s(J,C=>{const c=K||!V(C,W);return K=!1,W=C,c})}M.latch=h;function D(J,V){return[M.filter(J,V),M.filter(J,K=>!V(K))]}M.split=D;function N(J,V=!1,K=[]){let W=K.slice(),C=J(f=>{W?W.push(f):a.fire(f)});const c=()=>{W&&W.forEach(f=>a.fire(f)),W=null},a=new g({onFirstListenerAdd(){C||(C=J(f=>a.fire(f)))},onFirstListenerDidAdd(){W&&(V?setTimeout(c):c())},onLastListenerRemove(){C&&C.dispose(),C=null}});return a.event}M.buffer=N;class ${constructor(V){this.event=V}map(V){return new $(l(this.event,V))}forEach(V){return new $(o(this.event,V))}filter(V){return new $(s(this.event,V))}reduce(V,K){return new $(i(this.event,V,K))}latch(){return new $(h(this.event))}debounce(V,K=100,W=!1,C){return new $(u(this.event,V,K,W,C))}on(V,K,W){return this.event(V,K,W)}once(V,K,W){return _(this.event)(V,K,W)}}function X(J){return new $(J)}M.chain=X;function x(J,V,K=W=>W){const W=(...f)=>a.fire(K(...f)),C=()=>J.on(V,W),c=()=>J.removeListener(V,W),a=new g({onFirstListenerAdd:C,onLastListenerRemove:c});return a.event}M.fromNodeEventEmitter=x;function re(J,V,K=W=>W){const W=(...f)=>a.fire(K(...f)),C=()=>J.addEventListener(V,W),c=()=>J.removeEventListener(V,W),a=new g({onFirstListenerAdd:C,onLastListenerRemove:c});return a.event}M.fromDOMEventEmitter=re;function le(J){const V=new g;let K=!1;return J.then(void 0,()=>null).then(()=>{K?V.fire(void 0):setTimeout(()=>V.fire(void 0),0)}),K=!0,V.event}M.fromPromise=le;function de(J){return new Promise(V=>_(J)(V))}M.toPromise=de})(S=e.Event||(e.Event={}));class y{constructor(_){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${_}_${y._idPool++}`}start(_){this._stopWatch=new T.StopWatch(!0),this._listenerCount=_}stop(){if(this._stopWatch){const _=this._stopWatch.elapsed();this._elapsedOverall+=_,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${_.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}y._idPool=0;let m=-1;function R(M){const _=m;return m=M,{dispose(){m=_}}}e.setGlobalLeakWarningThreshold=R;class k{constructor(_,l=Math.random().toString(18).slice(2,5)){this.customThreshold=_,this.name=l,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(_){let l=m;if(typeof this.customThreshold=="number"&&(l=this.customThreshold),l<=0||_<l)return;this._stacks||(this._stacks=new Map);const o=new Error().stack.split(` `).slice(3).join(` `),s=this._stacks.get(o)||0;if(this._stacks.set(o,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=l*.5;let n,t=0;for(const[i,r]of this._stacks)(!n||t<r)&&(n=i,t=r);console.warn(`[${this.name}] potential listener LEAK detected, having ${_} listeners already. MOST frequent listener (${t}):`),console.warn(n)}return()=>{const n=this._stacks.get(o)||0;this._stacks.set(o,n-1)}}}class g{constructor(_){var l;this._disposed=!1,this._options=_,this._leakageMon=m>0?new k(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((l=this._options)===null||l===void 0?void 0:l._profName)?new y(this._options._profName):void 0}get event(){return this._event||(this._event=(_,l,o)=>{var s;this._listeners||(this._listeners=new p.LinkedList);const n=this._listeners.isEmpty();n&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const t=this._listeners.push(l?[_,l]:_);n&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,_,l);const i=(s=this._leakageMon)===null||s===void 0?void 0:s.check(this._listeners.size);let r;return r={dispose:()=>{i&&i(),r.dispose=g._noop,this._disposed||(t(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))}},o instanceof L.DisposableStore?o.add(r):Array.isArray(o)&&o.push(r),r}),this._event}fire(_){var l,o;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new p.LinkedList);for(let s of this._listeners)this._deliveryQueue.push([s,_]);for((l=this._perfMon)===null||l===void 0||l.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[s,n]=this._deliveryQueue.shift();try{typeof s=="function"?s.call(void 0,n):s[0].call(s[1],n)}catch(t){v.onUnexpectedError(t)}}(o=this._perfMon)===null||o===void 0||o.stop()}}dispose(){var _,l,o,s,n;this._disposed||(this._disposed=!0,(_=this._listeners)===null||_===void 0||_.clear(),(l=this._deliveryQueue)===null||l===void 0||l.clear(),(s=(o=this._options)===null||o===void 0?void 0:o.onLastListenerRemove)===null||s===void 0||s.call(o),(n=this._leakageMon)===null||n===void 0||n.dispose())}}e.Emitter=g,g._noop=function(){};class I extends g{constructor(_){super(_);this._isPaused=0,this._eventQueue=new p.LinkedList,this._mergeFn=_==null?void 0:_.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const _=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(_))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(_){this._listeners&&(this._isPaused!==0?this._eventQueue.push(_):super.fire(_))}}e.PauseableEmitter=I;class P{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new g({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(_){const l={event:_,listener:null};this.events.push(l),this.hasListeners&&this.hook(l);const o=()=>{this.hasListeners&&this.unhook(l);const s=this.events.indexOf(l);this.events.splice(s,1)};return L.toDisposable(A.once(o))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(_=>this.hook(_))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(_=>this.unhook(_))}hook(_){_.listener=_.event(l=>this.emitter.fire(l))}unhook(_){_.listener&&_.listener.dispose(),_.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=P;class E{constructor(){this.buffers=[]}wrapEvent(_){return(l,o,s)=>_(n=>{const t=this.buffers[this.buffers.length-1];t?t.push(()=>l.call(o,n)):l.call(o,n)},void 0,s)}bufferEvents(_){const l=[];this.buffers.push(l);const o=_();return this.buffers.pop(),l.forEach(s=>s()),o}}e.EventBufferer=E;class O{constructor(){this.listening=!1,this.inputEvent=S.None,this.inputEventListener=L.Disposable.None,this.emitter=new g({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(_){this.inputEvent=_,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=_(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=O}),define(Y[15],ee([0,1,4]),function(z,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const A=Object.freeze(function(S,y){const m=setTimeout(S.bind(y),0);return{dispose(){clearTimeout(m)}}});var L;(function(S){function y(m){return m===S.None||m===S.Cancelled||m instanceof p?!0:!m||typeof m!="object"?!1:typeof m.isCancellationRequested=="boolean"&&typeof m.onCancellationRequested=="function"}S.isCancellationToken=y,S.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:v.Event.None}),S.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:A})})(L=e.CancellationToken||(e.CancellationToken={}));class p{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?A:(this._emitter||(this._emitter=new v.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class T{constructor(y){this._token=void 0,this._parentListener=void 0,this._parentListener=y&&y.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new p),this._token}cancel(){this._token?this._token instanceof p&&this._token.cancel():this._token=L.Cancelled}dispose(y=!1){y&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof p&&this._token.dispose():this._token=L.None}}e.CancellationTokenSource=T}),define(Y[35],ee([0,1,7,3]),function(z,e,v,A){"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=void 0;function L(l){const o=l;return o?[o.on,o.pause,o.resume,o.destroy].every(s=>typeof s=="function"):!1}e.isReadableStream=L;function p(l){const o=l;return o?L(o.stream)&&Array.isArray(o.buffer)&&typeof o.ended=="boolean":!1}e.isReadableBufferedStream=p;function T(l,o){return new S(l,o)}e.newWriteableStream=T;class S{constructor(o,s){this.reducer=o,this.options=s,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(o){var s;if(!this.state.destroyed){if(this.state.flowing)this.emitData(o);else if(this.buffer.data.push(o),typeof((s=this.options)===null||s===void 0?void 0:s.highWaterMark)=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(n=>this.pendingWritePromises.push(n))}}error(o){this.state.destroyed||(this.state.flowing?this.emitError(o):this.buffer.error.push(o))}end(o){this.state.destroyed||(typeof o!="undefined"&&this.write(o),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(o){this.listeners.data.slice(0).forEach(s=>s(o))}emitError(o){this.listeners.error.length===0?v.onUnexpectedError(o):this.listeners.error.slice(0).forEach(s=>s(o))}emitEnd(){this.listeners.end.slice(0).forEach(o=>o())}on(o,s){if(!this.state.destroyed)switch(o){case"data":this.listeners.data.push(s),this.resume();break;case"end":this.listeners.end.push(s),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(s),this.state.flowing&&this.flowErrors();break}}removeListener(o,s){if(this.state.destroyed)return;let n;switch(o){case"data":n=this.listeners.data;break;case"end":n=this.listeners.end;break;case"error":n=this.listeners.error;break}if(n){const t=n.indexOf(s);t>=0&&n.splice(t,1)}}flowData(){if(this.buffer.data.length>0){const o=this.reducer(this.buffer.data);this.emitData(o),this.buffer.data.length=0;const s=[...this.pendingWritePromises];this.pendingWritePromises.length=0,s.forEach(n=>n())}}flowErrors(){if(this.listeners.error.length>0){for(const o of this.buffer.error)this.emitError(o);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 y(l,o){const s=[];let n;for(;(n=l.read())!==null;)s.push(n);return o(s)}e.consumeReadable=y;function m(l,o,s){const n=[];let t;for(;(t=l.read())!==null&&n.length<s;)n.push(t);return t===null&&n.length>0?o(n):{read:()=>{if(n.length>0)return n.shift();if(typeof t!="undefined"){const i=t;return t=void 0,i}return l.read()}}}e.peekReadable=m;function R(l,o){return new Promise((s,n)=>{const t=[];k(l,{onData:i=>{o&&t.push(i)},onError:i=>{o?n(i):s(void 0)},onEnd:()=>{s(o?o(t):void 0)}})})}e.consumeStream=R;function k(l,o){l.on("error",s=>o.onError(s)),l.on("end",()=>o.onEnd()),l.on("data",s=>o.onData(s))}e.listenStream=k;function g(l,o){return new Promise((s,n)=>{const t=new A.DisposableStore,i=[],r=h=>{if(i.push(h),i.length>o)return t.dispose(),l.pause(),s({stream:l,buffer:i,ended:!1})},u=h=>n(h),w=()=>s({stream:l,buffer:i,ended:!0});t.add(A.toDisposable(()=>l.removeListener("error",u))),l.on("error",u),t.add(A.toDisposable(()=>l.removeListener("end",w))),l.on("end",w),t.add(A.toDisposable(()=>l.removeListener("data",r))),l.on("data",r)})}e.peekStream=g;function I(l,o){const s=T(o);return s.end(l),s}e.toStream=I;function P(){const l=T(()=>{throw new Error("not supported")});return l.end(),l}e.emptyStream=P;function E(l){let o=!1;return{read:()=>o?null:(o=!0,l)}}e.toReadable=E;function O(l,o,s){const n=T(s);return k(l,{onData:t=>n.write(o.data(t)),onError:t=>n.error(o.error?o.error(t):t),onEnd:()=>n.end()}),n}e.transform=O;function M(l,o,s){let n=!1;return{read:()=>{const t=o.read();return n?t:(n=!0,t!==null?s([l,t]):l)}}}e.prefixedReadable=M;function _(l,o,s){let n=!1;const t=T(s);return k(o,{onData:i=>n?t.write(i):(n=!0,t.write(s([l,i]))),onError:i=>t.error(i),onEnd:()=>{n||(n=!0,t.write(l)),t.end()}}),t}e.prefixedStream=_}),define(Y[8],ee([0,1]),function(z,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLeftDeleteOffset=e.GraphemeBreakType=e.breakBetweenGraphemeBreakType=e.getGraphemeBreakType=e.singleLetterHash=e.getNLines=e.uppercaseFirstLetter=e.containsUppercaseCharacter=e.fuzzyContains=e.stripUTF8BOM=e.startsWithUTF8BOM=e.UTF8_BOM_CHARACTER=e.removeAnsiEscapeCodes=e.lcut=e.isEmojiImprecise=e.isFullWidthCharacter=e.containsFullWidthCharacter=e.containsUnusualLineTerminators=e.UNUSUAL_LINE_TERMINATORS=e.isBasicASCII=e.containsEmoji=e.containsRTL=e.decodeUTF8=e.encodeUTF8=e.g