/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["require","exports","vs/base/common/platform","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/errors","vs/base/common/cancellation","vs/base/common/types","vs/base/common/objects","vs/base/common/functional","vs/base/common/path","vs/base/common/uri","vs/base/common/async","vs/base/common/extpath","vs/base/common/linkedList","vs/base/common/iterator","vs/base/common/amd","vs/base/common/strings","vs/base/node/console","vs/base/node/decoder","vs/platform/telemetry/node/telemetryIpc","vs/base/parts/ipc/node/ipc","vs/nls!vs/base/node/processes","vs/platform/telemetry/node/appInsightsAppender","vs/platform/log/common/log","vs/base/node/processes","vs/platform/instantiation/common/instantiation","child_process","vs/base/parts/ipc/node/ipc.cp","fs","vs/nls!vs/workbench/contrib/debug/node/telemetryApp","vs/nls","applicationinsights","string_decoder","vs/workbench/contrib/debug/node/telemetryApp"],t=function(t){for(var n=[],s=0,r=t.length;s<r;s++)n[s]=e[t[s]];return n}
;define(e[5],t([0,1]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===r&&e.message===r}Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}t.ErrorHandler=s,t.errorHandler=new s,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=function(e){n(e)||t.errorHandler.onUnexpectedError(e)},t.onUnexpectedExternalError=function(e){
n(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e};const r="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){let e=new Error(r);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")},t.readonly=function(e){return e?new Error(`readonly property '${e} cannot be changed'`):new Error("readonly property cannot be changed")},t.disposed=function(e){const t=new Error(`${e} has been disposed`);return t.name="DISPOSED",t},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}}),define(e[9],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let n,s=!1
;return function(){return s?n:(s=!0,n=e.apply(t,arguments))}}}),define(e[15],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0};var n;!function(e){function n(e,t){for(let n=e.next();!n.done;n=e.next())t(n.value)}const s={next:()=>t.FIN};e.empty=function(){return s},e.fromArray=function(e,n=0,s=e.length){return{next:()=>n>=s?t.FIN:{done:!1,value:e[n++]}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,n){return{next(){const s=e.next();return s.done?t.FIN:{done:!1,value:n(s.value)}}}},e.filter=function(e,n){return{next(){for(;;){const s=e.next();if(s.done)return t.FIN;if(n(s.value))return{done:!1,value:s.value}}}}},e.forEach=n,e.collect=function(e){const t=[];return n(e,e=>t.push(e)),t}}(n=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?n.fromArray(e):e};class s{constructor(e,t=0,n=e.length,s=t-1){this.items=e,this.start=t,this.end=n,this.index=s}first(){
return this.index=this.start,this.current()}next(){return this.index=Math.min(this.index+1,this.end),this.current()}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}}t.ArrayIterator=s;class r extends s{constructor(e,t=0,n=e.length,s=t-1){super(e,t,n,s)}current(){return super.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}parent(){return null}}t.ArrayNavigator=r;class i{constructor(e,t){this.iterator=e,this.fn=t}next(){return this.fn(this.iterator.next())}}t.MappedIterator=i;class o extends i{constructor(e,t){super(e,t),this.navigator=e}current(){return this.fn(this.navigator.current())}previous(){return this.fn(this.navigator.previous())}parent(){return this.fn(this.navigator.parent())}first(){return this.fn(this.navigator.first())}last(){return this.fn(this.navigator.last())}next(){return this.fn(this.navigator.next())}}
t.MappedNavigator=o}),define(e[3],t([0,1,9]),function(e,t,n){"use strict";function s(e,...t){if(Array.isArray(e))return e.forEach(e=>e&&e.dispose()),[];if(0!==t.length)return s(e),s(t),[];if(e)return e.dispose(),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=s,t.combinedDisposable=function(e){return{dispose:()=>s(e)}},t.toDisposable=function(e){return{dispose(){e()}}};class r{constructor(){this._toDispose=[],this._lifecycle_disposable_isDisposed=!1}get toDispose(){return this._toDispose}dispose(){this._lifecycle_disposable_isDisposed=!0,this._toDispose=s(this._toDispose)}_register(e){return this._lifecycle_disposable_isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.push(e),e}}r.None=Object.freeze({dispose(){}}),t.Disposable=r;class i{constructor(){this.references=Object.create(null)}acquire(e){let t=this.references[e]
;t||(t=this.references[e]={counter:0,object:this.createReferencedObject(e)});const{object:s}=t,r=n.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:s,dispose:r}}}t.ReferenceCollection=i;class o{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=o}),define(e[14],t([0,1,15]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){this.element=e}}class r{constructor(){this._size=0}get size(){return this._size}isEmpty(){return!this._first}clear(){this._first=void 0,this._last=void 0,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new s(e);if(this._first)if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}else this._first=n,this._last=n;return this._size+=1,this._remove.bind(this,n)}shift(){if(this._first){const e=this._first.element;return this._remove(this._first),e}}
pop(){if(this._last){const e=this._last.element;return this._remove(this._last),e}}_remove(e){let t=this._first;for(;t instanceof s;){if(t===e){if(t.prev&&t.next){let e=t.prev;e.next=t.next,t.next.prev=e}else t.prev||t.next?t.next?t.prev||(this._first=this._first.next,this._first.prev=void 0):(this._last=this._last.prev,this._last.next=void 0):(this._first=void 0,this._last=void 0);this._size-=1;break}t=t.next}}iterator(){let e,t=this._first;return{next:()=>t?(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e):n.FIN}}toArray(){let e=[];for(let t=this._first;t instanceof s;t=t.next)e.push(t.element);return e}}t.LinkedList=r});var n=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))(function(r,i){function o(e){try{l(s.next(e))}catch(e){i(e)}}function c(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(o,c)}l((s=s.apply(e,t||[])).next())})};define(e[4],t([0,1,5,9,3,14]),function(e,t,s,r,i,o){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var c;!function(e){function t(e){return(t,n=null,s)=>{let r,i=!1;return r=e(e=>{if(!i)return r?r.dispose():i=!0,t.call(n,e)},null,s),i&&r.dispose(),r}}function n(e,t){return c((n,s=null,r)=>e(e=>n.call(s,t(e)),null,r))}function s(e,t){return c((n,s=null,r)=>e(e=>{t(e),n.call(s,e)},null,r))}function r(e,t){return c((n,s=null,r)=>e(e=>t(e)&&n.call(s,e),null,r))}function o(e,t,s){let r=s;return n(e,e=>r=t(r,e))}function c(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e){let t,n=!0;return r(e,e=>{let s=n||e!==t;return n=!1,t=e,s})}const a={dispose(){}};e.None=function(){return a},e.once=t,e.map=n,e.forEach=s,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,s)=>i.combinedDisposable(e.map(e=>e(e=>t.call(n,e),null,s)))},e.reduce=o,e.snapshot=c,e.debounce=function(e,t,n=100,s=!1,r){let i,o=void 0,c=void 0,l=0;const a=new u({leakWarningThreshold:r,
onFirstListenerAdd(){i=e(e=>{l++,o=t(o,e),s&&!c&&a.fire(o),clearTimeout(c),c=setTimeout(()=>{let e=o;o=void 0,c=void 0,(!s||l>1)&&a.fire(e),l=0},n)})},onLastListenerRemove(){i.dispose()}});return a.event},e.stopwatch=function(e){const s=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-s)},e.latch=l,e.buffer=function(e,t=!1,n=[]){let s=n.slice(),r=e(e=>{s?s.push(e):o.fire(e)});const i=()=>{s&&s.forEach(e=>o.fire(e)),s=null},o=new u({onFirstListenerAdd(){r||(r=e(e=>o.fire(e)))},onFirstListenerDidAdd(){s&&(t?setTimeout(i):i())},onLastListenerRemove(){r&&r.dispose(),r=null}});return o.event},e.echo=function(e,t=!1,n=[]){n=n.slice(),e(e=>{n.push(e),r.fire(e)});const s=(e,t)=>n.forEach(n=>e.call(t,n)),r=new u({onListenerDidAdd(e,n,r){t?setTimeout(()=>s(n,r)):s(n,r)}});return r.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(s(this.event,e))}filter(e){return new h(r(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){
return new h(l(this.event))}on(e,t,n){return this.event(e,t,n)}once(e,n,s){return t(this.event)(e,n,s)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const s=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.on(t,s),onLastListenerRemove:()=>e.removeListener(t,s)});return r.event},e.fromPromise=function(e){const t=new u;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(c=t.Event||(t.Event={}));let l=-1;t.setGlobalLeakWarningThreshold=function(e){let t=l;return l=e,{dispose(){l=t}}};class a{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=l;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map)
;let n=(new Error).stack.split("\n").slice(3).join("\n"),s=this._stacks.get(n)||0;if(this._stacks.set(n,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*t;let n,s=0;this._stacks.forEach((e,t)=>{(!n||s<e)&&(n=t,s=e)}),console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${s}):`),console.warn(n)}return()=>{let e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class u{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=l>0?new a(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=((e,t,n)=>{this._listeners||(this._listeners=new o.LinkedList);const s=this._listeners.isEmpty();s&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(t?[e,t]:e);s&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),
this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);let i;this._leakageMon&&(i=this._leakageMon.check(this._listeners.size));let c;return c={dispose:()=>{if(i&&i(),c.dispose=u._noop,!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(n)&&n.push(c),c})),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){s.onUnexpectedError(e)}}}}dispose(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}u._noop=function(){},t.Emitter=u;class h extends u{fireAsync(e){
return n(this,void 0,void 0,function*(){if(this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next()){let t=[];this._asyncDeliveryQueue.push([n.value,e(t,"function"==typeof n.value?n.value:n.value[0]),t])}for(;this._asyncDeliveryQueue.length>0;){const[e,t,n]=this._asyncDeliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){s.onUnexpectedError(e);continue}Object.freeze(n),yield Promise.all(n)}}})}}t.AsyncEmitter=h;class d{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return i.toDisposable(r.once(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,
this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}t.EventMultiplexer=d;class f{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,s)=>e(e=>{const s=this.buffers[this.buffers.length-1];s?s.push(()=>t.call(n,e)):t.call(n,e)},void 0,s)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}t.EventBufferer=f;class p{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=i.Disposable.None,this.emitter=new u({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(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),
this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}t.Relay=p}),define(e[6],t([0,1,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var r;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof i||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s})}(r=t.CancellationToken||(t.CancellationToken={}));class i{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?s:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class o{get token(){return this._token||(this._token=new i),this._token}cancel(){this._token?this._token instanceof i&&this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof i&&this._token.dispose():this._token=r.None}}t.CancellationTokenSource=o}),define(e[12],t([0,1,6,5,4,3]),function(e,t,n,s,r,i){"use strict";function o(e){return e&&"function"==typeof e.then}function c(e){const t=new n.CancellationTokenSource,r=e(t.token),i=new Promise((e,n)=>{t.token.onCancellationRequested(()=>{n(s.canceled())}),Promise.resolve(r).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return i.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return i.finally(e)}}}function l(e,t){return t?new Promise((n,r)=>{const i=setTimeout(n,e)
;t.onCancellationRequested(()=>{clearTimeout(i),r(s.canceled())})}):c(t=>l(e,t))}function a(e){function t(i){void 0!==i&&null!==i&&n.push(i);const o=s<r?e[s++]():null;return o?o.then(t):Promise.resolve(n)}const n=[];let s=0;const r=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=o,t.createCancelablePromise=c,t.asPromise=function(e){return new Promise((t,n)=>{let s=e();o(s)?s.then(t,n):t(s)})};class u{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{
this.activePromise=null,t(e)})})}}t.Throttler=u;class h{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=h;class d{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{this.completionPromise=null,this.doResolve=null;const e=this.task;return this.task=null,e()})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject(s.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=d;class f{constructor(e){this.delayer=new d(e),this.throttler=new u}
trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}t.ThrottledDelayer=f;class p{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}t.Barrier=p,t.timeout=l,t.disposableTimeout=function(e,t=0){const n=setTimeout(e,t);return i.toDisposable(()=>clearTimeout(n))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=a,t.first=function(e,t=(e=>!!e),n=null){let s=0;const r=e.length,i=()=>{if(s>=r)return Promise.resolve(n);const o=e[s++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):i())};return i()};class g{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new r.Emitter}get onFinished(){return this._onFinished.event}get size(){
return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}t.Limiter=g;class m extends g{constructor(){super(1)}}t.Queue=m;class v{constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new m;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=v;class C extends i.Disposable{constructor(e,t){super(),this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),super.dispose()}cancel(){
-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}t.TimeoutTimer=C;class y extends i.Disposable{constructor(){super(),this._token=-1}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}t.IntervalTimer=y;class _{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}t.RunOnceScheduler=_
;class b extends _{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){const e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}}t.RunOnceWorker=b,t.nfcall=function(e,...t){return new Promise((n,s)=>e(...t,(e,t)=>e?s(e):n(t)))},t.ninvoke=function(e,t,...n){return new Promise((s,r)=>t.call(e,...n,(e,t)=>e?r(e):s(t)))},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){let e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{let n=setTimeout(()=>t(e)),s=!1;return{dispose(){s||(s=!0,clearTimeout(n))}}})}else t.runWhenIdle=((e,t)=>{let n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),s=!1;return{dispose(){s||(s=!0,cancelIdleCallback(n))}}})}();class w{constructor(e){this._executor=(()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}}),this._handle=t.runWhenIdle(()=>this._executor())}dispose(){this._handle.dispose()
}getValue(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}t.IdleValue=w}),define(e[2],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE_DEFAULT="en";let n=!1,s=!1,r=!1,i=!1,o=!1,c=void 0,l=t.LANGUAGE_DEFAULT,a=void 0;const u="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||u){if("object"==typeof process){n="win32"===process.platform,s="darwin"===process.platform,r="linux"===process.platform,c=t.LANGUAGE_DEFAULT,l=t.LANGUAGE_DEFAULT;const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),s=n.availableLanguages["*"];c=n.locale,l=s||t.LANGUAGE_DEFAULT,a=n._translationsConfigFile}catch(e){}i=!0}}else{const e=navigator.userAgent;n=e.indexOf("Windows")>=0,s=e.indexOf("Macintosh")>=0,r=e.indexOf("Linux")>=0,o=!0,l=c=navigator.language}!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",
e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(t.Platform||(t.Platform={})),t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};let h=0;i&&(s?h=1:n?h=3:r&&(h=2)),t.isWindows=n,t.isMacintosh=s,t.isLinux=r,t.isNative=i,t.isWeb=o,t.platform=h,t.isRootUser=function(){return i&&!n&&0===process.getuid()},t.language=l,t.locale=c,t.translationsConfigFile=a;const d="object"==typeof self?self:"object"==typeof global?global:{};t.globals=d;let f=null;t.setImmediate=function(e){return null===f&&(f=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),f(e)};!function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=s?2:n?1:3}),define(e[10],t([0,1,2]),function(e,t,n){"use strict";function s(e,t){
if("string"!=typeof e)throw new v(t,"string",e)}function r(e){return e===p||e===g}function i(e){return e===p}function o(e){return e>=a&&e<=h||e>=u&&e<=d}function c(e,t,n,s){let r,i="",o=0,c=-1,l=0;for(let a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(s(r))break;r=p}if(s(r)){if(c===a-1||1===l);else if(c!==a-1&&2===l){if(i.length<2||2!==o||i.charCodeAt(i.length-1)!==f||i.charCodeAt(i.length-2)!==f){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",o=0):o=(i=i.slice(0,e)).length-1-i.lastIndexOf(n),c=a,l=0;continue}if(2===i.length||1===i.length){i="",o=0,c=a,l=0;continue}}t&&(i.length>0?i+=`${n}..`:i="..",o=2)}else i.length>0?i+=n+e.slice(c+1,a):i=e.slice(c+1,a),o=a-c-1;c=a,l=0}else r===f&&-1!==l?++l:l=-1}return i}function l(e,t){const n=t.dir||t.root,s=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+s:n+e+s:s}const a=65,u=97,h=90,d=122,f=46,p=47,g=92,m="undefined"==typeof process?{cwd:()=>"/",env:{},get platform(){return n.isWindows?"win32":"posix"}}:process;class v extends Error{
constructor(e,t,n){let s;"string"==typeof t&&0===t.indexOf("not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be";let r;r=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${s} of type ${t}`,super(r+=`. Received type ${typeof n}`)}}const C={resolve(...e){let t="",n="",i=!1;for(let c=e.length-1;c>=-1;c--){let l;if(c>=0?l=e[c]:t?void 0!==(l=m.env["="+t]||m.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=m.cwd(),s(l,"path"),0===l.length)continue;let a=l.length,u=0,h="",d=!1;const f=l.charCodeAt(0);if(a>1)if(r(f))if(d=!0,r(l.charCodeAt(1))){let e=2,t=e;for(;e<a&&!r(l.charCodeAt(e));++e);if(e<a&&e!==t){const n=l.slice(t,e);for(t=e;e<a&&r(l.charCodeAt(e));++e);if(e<a&&e!==t){for(t=e;e<a&&!r(l.charCodeAt(e));++e);e===a?(h="\\\\"+n+"\\"+l.slice(t),u=e):e!==t&&(h="\\\\"+n+"\\"+l.slice(t,e),u=e)}}}else u=1;else o(f)&&58===l.charCodeAt(1)&&(h=l.slice(0,2),u=2,a>2&&r(l.charCodeAt(2))&&(d=!0,u=3));else r(f)&&(u=1,d=!0)
;if(!(h.length>0&&t.length>0&&h.toLowerCase()!==t.toLowerCase())&&(0===t.length&&h.length>0&&(t=h),i||(n=l.slice(u)+"\\"+n,i=d),t.length>0&&i))break}return n=c(n,!i,"\\",r),t+(i?"\\":"")+n||"."},normalize(e){s(e,"path");const t=e.length;if(0===t)return".";let n,i=0,l=!1;const a=e.charCodeAt(0);if(t>1)if(r(a))if(l=!0,r(e.charCodeAt(1))){let s=2,o=s;for(;s<t&&!r(e.charCodeAt(s));++s);if(s<t&&s!==o){const c=e.slice(o,s);for(o=s;s<t&&r(e.charCodeAt(s));++s);if(s<t&&s!==o){for(o=s;s<t&&!r(e.charCodeAt(s));++s);if(s===t)return"\\\\"+c+"\\"+e.slice(o)+"\\";s!==o&&(n="\\\\"+c+"\\"+e.slice(o,s),i=s)}}}else i=1;else o(a)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&r(e.charCodeAt(2))&&(l=!0,i=3));else if(r(a))return"\\";let u;return 0!==(u=i<t?c(e.slice(i),!l,"\\",r):"").length||l||(u="."),u.length>0&&r(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?l?u.length>0?"\\"+u:"\\":u.length>0?u:"":l?u.length>0?n+"\\"+u:n+"\\":u.length>0?n+u:n},isAbsolute(e){s(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0)
;return!!r(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&r(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r<e.length;++r){let i=e[r];s(i,"path"),i.length>0&&(void 0===t?t=n=i:t+="\\"+i)}if(void 0===t)return".";let i=!0,o=0;if(r(n.charCodeAt(0))){++o;const e=n.length;e>1&&r(n.charCodeAt(1))&&(++o,e>2&&(r(n.charCodeAt(2))?++o:i=!1))}if(i){for(;o<t.length&&r(t.charCodeAt(o));++o);o>=2&&(t="\\"+t.slice(o))}return C.normalize(t)},relative(e,t){if(s(e,"from"),s(t,"to"),e===t)return"";let n=C.resolve(e),r=C.resolve(t);if(n===r)return"";if(e=n.toLowerCase(),t=r.toLowerCase(),e===t)return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===g;++i);let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===g;--o);let c=o-i,l=0;for(;l<t.length&&t.charCodeAt(l)===g;++l);let a=t.length;for(;a-1>l&&t.charCodeAt(a-1)===g;--a);let u=a-l,h=c<u?c:u,d=-1,f=0;for(;f<=h;++f){if(f===h){if(u>h){if(t.charCodeAt(l+f)===g)return r.slice(l+f+1);if(2===f)return r.slice(l+f)}c>h&&(e.charCodeAt(i+f)===g?d=f:2===f&&(d=3));break}
let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(l+f))break;n===g&&(d=f)}if(f!==h&&-1===d)return r;let p="";for(-1===d&&(d=0),f=i+d+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==g||(0===p.length?p+="..":p+="\\..");return p.length>0?p+r.slice(l+d,a):(l+=d,r.charCodeAt(l)===g&&++l,r.slice(l,a))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=C.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===g){if(t.charCodeAt(1)===g){const e=t.charCodeAt(2);if(63!==e&&e!==f)return"\\\\?\\UNC\\"+t.slice(2)}}else if(o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===g)return"\\\\?\\"+t;return e},dirname(e){s(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=-1,c=!0,l=0;const a=e.charCodeAt(0);if(t>1)if(r(a)){if(n=l=1,r(e.charCodeAt(1))){let s=2,i=s;for(;s<t&&!r(e.charCodeAt(s));++s);if(s<t&&s!==i){for(i=s;s<t&&r(e.charCodeAt(s));++s);if(s<t&&s!==i){for(i=s;s<t&&!r(e.charCodeAt(s));++s);if(s===t)return e;s!==i&&(n=l=s+1)}}}}else o(a)&&58===e.charCodeAt(1)&&(n=l=2,
t>2&&r(e.charCodeAt(2))&&(n=l=3));else if(r(a))return e;for(let n=t-1;n>=l;--n)if(r(e.charCodeAt(n))){if(!c){i=n;break}}else c=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&s(t,"ext"),s(e,"path");let n,i=0,c=-1,l=!0;if(e.length>=2){o(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,o=-1;for(n=e.length-1;n>=i;--n){const a=e.charCodeAt(n);if(r(a)){if(!l){i=n+1;break}}else-1===o&&(l=!1,o=n+1),s>=0&&(a===t.charCodeAt(s)?-1==--s&&(c=n):(s=-1,c=o))}return i===c?c=o:-1===c&&(c=e.length),e.slice(i,c)}for(n=e.length-1;n>=i;--n)if(r(e.charCodeAt(n))){if(!l){i=n+1;break}}else-1===c&&(l=!1,c=n+1);return-1===c?"":e.slice(i,c)},extname(e){s(e,"path");let t=0,n=-1,i=0,c=-1,l=!0,a=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=i=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(r(t)){if(!l){i=s+1;break}}else-1===c&&(l=!1,c=s+1),
t===f?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===c||0===a||1===a&&n===c-1&&n===i+1?"":e.slice(n,c)},format(e){if(null===e||"object"!=typeof e)throw new v("pathObject","Object",e);return l("\\",e)},parse(e){s(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n=e.length,i=0,c=e.charCodeAt(0);if(n>1){if(r(c)){if(i=1,r(e.charCodeAt(1))){let t=2,s=t;for(;t<n&&!r(e.charCodeAt(t));++t);if(t<n&&t!==s){for(s=t;t<n&&r(e.charCodeAt(t));++t);if(t<n&&t!==s){for(s=t;t<n&&!r(e.charCodeAt(t));++t);t===n?i=t:t!==s&&(i=t+1)}}}}else if(o(c)&&58===e.charCodeAt(1)){if(i=2,!(n>2))return t.root=t.dir=e,t;if(r(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(r(c))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));let l=-1,a=i,u=-1,h=!0,d=e.length-1,p=0;for(;d>=i;--d)if(c=e.charCodeAt(d),r(c)){if(!h){a=d+1;break}}else-1===u&&(h=!1,u=d+1),c===f?-1===l?l=d:1!==p&&(p=1):-1!==l&&(p=-1)
;return-1===l||-1===u||0===p||1===p&&l===u-1&&l===a+1?-1!==u&&(t.base=t.name=e.slice(a,u)):(t.name=e.slice(a,l),t.base=e.slice(a,u),t.ext=e.slice(l,u)),t.dir=a>0&&a!==i?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i;s(i=r>=0?e[r]:m.cwd(),"path"),0!==i.length&&(t=i+"/"+t,n=i.charCodeAt(0)===p)}return t=c(t,!n,"/",i),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(s(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p,n=e.charCodeAt(e.length-1)===p;return 0!==(e=c(e,!t,"/",i)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(s(e,"path"),e.length>0&&e.charCodeAt(0)===p),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){let e=arguments[n];s(e,"path"),e.length>0&&(void 0===t?t=e:t+="/"+e)}return void 0===t?".":y.normalize(t)},relative(e,t){if(s(e,"from"),s(t,"to"),e===t)return"";if(e=y.resolve(e),t=y.resolve(t),e===t)return"";let n=1
;for(;n<e.length&&e.charCodeAt(n)===p;++n);let r=e.length,i=r-n,o=1;for(;o<t.length&&t.charCodeAt(o)===p;++o);let c=t.length-o,l=i<c?i:c,a=-1,u=0;for(;u<=l;++u){if(u===l){if(c>l){if(t.charCodeAt(o+u)===p)return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else i>l&&(e.charCodeAt(n+u)===p?a=u:0===u&&(a=0));break}let s=e.charCodeAt(n+u);if(s!==t.charCodeAt(o+u))break;s===p&&(a=u)}let h="";for(u=n+a+1;u<=r;++u)u!==r&&e.charCodeAt(u)!==p||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(o+a):(o+=a,t.charCodeAt(o)===p&&++o,t.slice(o))},toNamespacedPath:e=>e,dirname(e){if(s(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===p){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&s(t,"ext"),s(e,"path");let n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n)
;if(l===p){if(!o){r=n+1;break}}else-1===c&&(o=!1,c=n+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=c))}return r===i?i=c:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){s(e,"path");let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const c=e.charCodeAt(s);if(c!==p)-1===r&&(i=!1,r=s+1),c===f?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format(e){if(null===e||"object"!=typeof e)throw new v("pathObject","Object",e);return l("/",e)},parse(e){s(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n,r=e.charCodeAt(0)===p;r?(t.root="/",n=1):n=0;let i=-1,o=0,c=-1,l=!0,a=e.length-1,u=0;for(;a>=n;--a){const t=e.charCodeAt(a);if(t!==p)-1===c&&(l=!1,c=a+1),t===f?-1===i?i=a:1!==u&&(u=1):-1!==i&&(u=-1);else if(!l){o=a+1;break}}
return-1===i||-1===c||0===u||1===u&&i===c-1&&i===o+1?-1!==c&&(t.base=t.name=0===o&&r?e.slice(1,c):e.slice(o,c)):(0===o&&r?(t.name=e.slice(1,i),t.base=e.slice(1,c)):(t.name=e.slice(o,i),t.base=e.slice(o,c)),t.ext=e.slice(i,c)),o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};y.win32=C.win32=C,y.posix=C.posix=y;return"win32"===m.platform?C:y}),define(e[17],t([0,1]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function s(e,t){if(!e||!t)return e;let n=t.length;if(0===n||0===e.length)return e;let s=0;for(;e.indexOf(t,s)===s;)s+=n;return e.substring(s)}function r(e,t){if(!e||!t)return e;let n=t.length,s=e.length;if(0===n||0===s)return e;let r=s,i=-1;for(;;){if(-1===(i=e.lastIndexOf(t,r-1))||i+n!==r)break;if(0===i)return"";r=i}return e.substring(0,r)}function i(e,t){return e<t?-1:e>t?1:0}function o(e){return e>=97&&e<=122}function c(e){return e>=65&&e<=90}function l(e){return o(e)||c(e)}function a(e,t,n=e.length){
if("string"!=typeof e||"string"!=typeof t)return!1;for(let s=0;s<n;s++){const n=e.charCodeAt(s),r=t.charCodeAt(s);if(n!==r)if(l(n)&&l(r)){let e=Math.abs(n-r);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function u(e,t,n,s,r,i){for(;t<n&&r<i;){if(e[t]!==s[r])return!1;t+=1,r+=1}return!0}function h(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function d(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n="0"){let s=""+e,r=[s];for(let e=s.length;e<t;e++)r.push(n);return r.reverse().join("")};const f=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(f,function(e,n){let s=parseInt(n,10);return isNaN(s)||s<0||s>=t.length?e:t[s]})},t.escape=function(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"&lt;"
;case">":return"&gt;";case"&":return"&amp;";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t=" "){return r(s(e,t),t)},t.ltrim=s,t.rtrim=r,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){let n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,s={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),s.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return s.global&&(r+="g"),s.matchCase||(r+="i"),s.multiline&&(r+="m"),s.unicode&&(r+="u"),new RegExp(e,r)},t.regExpLeadsToEndlessLoop=function(e){
return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(let t=0,n=e.length;t<n;t++){let n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1},t.getLeadingWhitespace=function(e,t=0,n=e.length){for(let s=t;s<n;s++){let n=e.charCodeAt(s);if(32!==n&&9!==n)return e.substring(t,s)}return e.substring(t,n)},t.lastNonWhitespaceIndex=function(e,t=e.length-1){for(let n=t;n>=0;n--){let t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1},t.compare=i,t.compareIgnoreCase=function(e,t){const n=Math.min(e.length,t.length);for(let s=0;s<n;s++){let n=e.charCodeAt(s),r=t.charCodeAt(s);if(n===r)continue;c(n)&&(n+=32),c(r)&&(r+=32);const l=n-r;if(0!==l)return o(n)&&o(r)?l:i(e.toLowerCase(),t.toLowerCase())}
return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=o,t.isUpperAsciiLetter=c,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&a(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length;return!(t.length>e.length)&&a(e,t,n)},t.commonPrefixLength=function(e,t){let n,s=Math.min(e.length,t.length);for(n=0;n<s;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return s},t.commonSuffixLength=function(e,t){let n,s=Math.min(e.length,t.length),r=e.length-1,i=t.length-1;for(n=0;n<s;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(i-n))return n;return s},t.overlap=function(e,t){let n=e.length,s=t.length,r=n-s;if(0===r)return e===t?n:0;for(r<0&&(s+=r,r=0);r<n&&s>0;){if(u(e,r,n,t,0,s))return s;s-=1,r+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343}
;const p=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return p.test(e)};const g=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return g.test(e)};const m=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return m.test(e)},t.containsFullWidthCharacter=function(e){for(let t=0,n=e.length;t<n;t++)if(h(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=h,t.lcut=function(e,n){if(e.length<n)return e;const s=/\b/g
;let r=0;for(;s.test(e)&&!(e.length-s.lastIndex<n);)r=s.lastIndex,s.lastIndex+=1;return e.substring(r).replace(/^\s/,t.empty)};const v=/\x1B\x5B[12]?K/g,C=/\x1b\[\d+m/g,y=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(C,"")).replace(y,"")),e},t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};{const e=/[\u0300-\u036f]/g;return function(n){return n.normalize("NFD").replace(e,t.empty)}}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){let n="";for(let s=0;s<t;s++)n+=e;return n},t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;const n=t.length,s=e.toLowerCase();let r=0,i=-1;for(;r<n;){let e=s.indexOf(t[r],i+1);if(e<0)return!1;i=e,r++}return!0},t.containsUppercaseCharacter=function(e,t=!1){
return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.getNLines=function(e,t=1){if(0===t)return"";let n=-1;do{n=e.indexOf("\n",n+1),t--}while(t>0&&n>=0);return n>=0?e.substr(0,n):e}}),define(e[13],t([0,1,2,17,10]),function(e,t,n,s,r){"use strict";function i(e){return 47===e||92===e}function o(e){return e>=65&&e<=90||e>=97&&e<=122}Object.defineProperty(t,"__esModule",{value:!0}),t.toSlashes=function(e){return e.replace(/[\\/]/g,"/")},t.getRoot=function(e,t="/"){if(!e)return"";let n=e.length;const s=e.charCodeAt(0);if(i(s)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let s=3,r=s;for(;s<n&&!i(e.charCodeAt(s));s++);if(r!==s&&!i(e.charCodeAt(s+1)))for(s+=1;s<n;s++)if(i(e.charCodeAt(s)))return e.slice(0,s+1).replace(/[\\/]/g,t)}return t}if(o(s)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let r=e.indexOf("://");if(-1!==r)for(r+=3;r<n;r++)if(i(e.charCodeAt(r)))return e.slice(0,r+1);return""},
t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;let s=2,r=s;for(;s<e.length&&92!==(t=e.charCodeAt(s));s++);return r!==s&&(t=e.charCodeAt(s+1),!isNaN(t)&&92!==t)};const c=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,l=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(c.lastIndex=0,c.test(e)||n.isWindows&&l.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,n){const r=e===t;return!n||r?r:!(!e||!t)&&s.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,n,i=r.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!s.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===i&&n--,e.charAt(n)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)},t.isWindowsDriveLetter=o
}),define(e[7],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==a.number||e.constructor!==Array)}function s(e){return typeof e===a.string||e instanceof String}function r(e){return!(typeof e!==a.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function i(e){return typeof e===a.undefined}function o(e){return i(e)||null===e}function c(e){return typeof e===a.function}function l(e,t){if(s(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(c(t)){try{if(e instanceof t)return}catch(e){}if(!o(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}Object.defineProperty(t,"__esModule",{value:!0});const a={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,
t.isString=s,t.isStringArray=function(e){return n(e)&&e.every(e=>s(e))},t.isObject=r,t.isNumber=function(e){return(typeof e===a.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=i,t.isUndefinedOrNull=o;const u=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!r(e))return!1;for(let t in e)if(u.call(e,t))return!1;return!0},t.isFunction=c,t.areFunctions=function(...e){return e.length>0&&e.every(c)},t.validateConstraints=function(e,t){const n=Math.min(e.length,t.length);for(let s=0;s<n;s++)l(e[s],t[s])},t.validateConstraint=l,t.create=function(e,...t){if(function(e){return"function"==typeof e&&e.hasOwnProperty("prototype")&&!e.hasOwnProperty("arguments")}(e))return new e(...t);{let n=Object.create(e.prototype);return e.apply(n,t),n}},t.getAllPropertyNames=function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}}),define(e[8],t([0,1,7]),function(e,t,n){
"use strict";function s(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]=s(e[n]):t[n]=e[n]}),t}function r(e,t,s){if(n.isUndefinedOrNull(e))return e;const i=t(e);if(void 0!==i)return i;if(n.isArray(e)){const n=[];for(const i of e)n.push(r(i,t,s));return n}if(n.isObject(e)){if(s.has(e))throw new Error("Cannot clone recursive data-structure");s.add(e);const n={};for(let i in e)c.call(e,i)&&(n[i]=r(e[i],t,s));return s.delete(e),n}return e}function i(e,t,s=!0){return n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(r=>{r in e?s&&(n.isObject(e[r])&&n.isObject(t[r])?i(e[r],t[r],s):e[r]=t[r]):e[r]=t[r]}),e):t}function o(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,s;if(Array.isArray(e)){if(e.length!==t.length)return!1
;for(n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1}else{const r=[];for(s in e)r.push(s);r.sort();const i=[];for(s in t)i.push(s);if(i.sort(),!o(r,i))return!1;for(n=0;n<r.length;n++)if(!o(e[r[n]],t[r[n]]))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=s,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){let e=t.shift();Object.freeze(e);for(const n in e)if(c.call(e,n)){let s=e[n];"object"!=typeof s||Object.isFrozen(s)||t.push(s)}}return e};const c=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return r(e,t,new Set)},t.mixin=i,t.assign=function(e,...t){return t.forEach(t=>Object.keys(t).forEach(n=>e[n]=t[n])),e},t.equals=o,t.createKeywordMatcher=function(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));const n=function(e){const t={};for(const n of e)t[n]=!0;return t}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}},
t.safeStringify=function(e){const t=[];return JSON.stringify(e,(e,s)=>{if(n.isObject(s)||Array.isArray(s)){if(-1!==t.indexOf(s))return"[Circular]";t.push(s)}return s})},t.getOrDefault=function(e,t,n){const s=t(e);return void 0===s?n:s},t.distinct=function(e,t){const n=Object.create(null);return e&&t?(Object.keys(t).forEach(s=>{const r=e[s],i=t[s];o(r,i)||(n[s]=i)}),n):n}}),define(e[11],t([0,1,2]),function(e,t,n){"use strict";function s(e,t){let n=void 0,s=-1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));let t=p[i];void 0!==t?(-1!==s&&(n+=encodeURIComponent(e.substring(s,r)),s=-1),n+=t):-1===s&&(s=r)}}return-1!==s&&(n+=encodeURIComponent(e.substring(s))),void 0!==n?n:e}function r(e){let t
;return t=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function i(e,t){const n=t?function(e){let t=void 0;for(let n=0;n<e.length;n++){let s=e.charCodeAt(n);35===s||63===s?(void 0===t&&(t=e.substr(0,n)),t+=p[s]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:s;let r="",{scheme:i,authority:o,path:c,query:l,fragment:a}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=u,r+=u),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?r+=n(t,!1):(r+=n(t.substr(0,e),!1),r+=":",r+=n(t.substr(e+1),!1)),r+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,e),!1),r+=o.substr(e))}if(c){if(c.length>=3&&47===c.charCodeAt(0)&&58===c.charCodeAt(2)){let e=c.charCodeAt(1)
;e>=65&&e<=90&&(c=`/${String.fromCharCode(e+32)}:${c.substr(3)}`)}else if(c.length>=2&&58===c.charCodeAt(1)){let e=c.charCodeAt(0);e>=65&&e<=90&&(c=`${String.fromCharCode(e+32)}:${c.substr(2)}`)}r+=n(c,!0)}return l&&(r+="?",r+=n(l,!1)),a&&(r+="#",r+=t?a:s(a,!1)),r}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//;let a=!0;t.setUriThrowOnMissingScheme=function(e){const t=a;return a=e,t};const u="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}constructor(e,t,n,s,r,i){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||"",this.authority=t||"",this.path=function(e,t){
switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||""),this.query=s||"",this.fragment=r||"",function(e,t){if(!e.scheme){if(t||a)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);console.warn(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)}if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,i))}get fsPath(){return r(this)}with(e){if(!e)return this
;let{scheme:t,authority:n,path:s,query:r,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===s?s=this.path:null===s&&(s=""),void 0===r?r=this.query:null===r&&(r=""),void 0===i?i=this.fragment:null===i&&(i=""),t===this.scheme&&n===this.authority&&s===this.path&&r===this.query&&i===this.fragment?this:new f(t,n,s,r,i)}static parse(e,t=!1){const n=h.exec(e);return n?new f(n[2]||"",decodeURIComponent(n[4]||""),decodeURIComponent(n[5]||""),decodeURIComponent(n[7]||""),decodeURIComponent(n[9]||""),t):new f("","","","","")}static file(e){let t="";if(n.isWindows&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){let n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new f("file",t,e,"","")}static from(e){return new f(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return i(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{let t=new f(e);return t._fsPath=e.fsPath,
t._formatted=e.external,t}}return e}}t.URI=d;class f extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=r(this)),this._fsPath}toString(e=!1){return e?i(this,!0):(this._formatted||(this._formatted=i(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"}}),define(e[16],t([0,1,11]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.URI.parse(e.toUrl(t)).fsPath}}),define(e[18],t([0,1,11]),function(e,t,n){
"use strict";function s(e){const t=[];let n;try{const s=JSON.parse(e.arguments),r=s[s.length-1];r&&r.__$stack&&(s.pop(),n=r.__$stack),t.push(...s)}catch(n){t.push("Unable to log remote console arguments",e.arguments)}return{args:t,stack:n}}function r(e){if("string"!=typeof e)return r(s(e).stack);const t=e;if(t){const e=i(t),s=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(e||"");if(s&&4===s.length)return{uri:n.URI.file(s[1]),line:Number(s[2]),column:Number(s[3])}}}function i(e){if(!e)return e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function o(e){return`color: ${e}`}Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteConsoleLog=function(e){const t=e;return t&&"string"==typeof t.type&&"string"==typeof t.severity},t.parse=s,t.getFirstFrame=r,t.log=function(e,t){const{args:n,stack:r}=s(e),c="string"==typeof n[0]&&1===n.length;let l=i(r);l&&(l=`(${l.trim()})`);let a=[]
;a="string"==typeof n[0]?l&&c?[`%c[${t}] %c${n[0]} %c${l}`,o("blue"),o("black"),o("grey")]:[`%c[${t}] %c${n[0]}`,o("blue"),o("black"),...n.slice(1)]:[`%c[${t}]%`,o("blue"),...n],l&&!c&&a.push(l),console[e.severity].apply(console,a)}}),define(e[19],t([0,1,33]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e="utf8"){this.stringDecoder=new n.StringDecoder(e),this.remaining=null}write(e){let t=[],n=this.remaining?this.remaining+this.stringDecoder.write(e):this.stringDecoder.write(e);if(n.length<1)return t;let s,r=0,i=r;for(;i<n.length;)if(13===(s=n.charCodeAt(i))||10===s){if(t.push(n.substring(r,i)),++i<n.length){let e=s;s=n.charCodeAt(i),(13===e&&10===s||10===e&&13===s)&&i++}r=i}else i++;return this.remaining=r<n.length?n.substr(r):null,t}end(){return this.remaining}}t.LineDecoder=s}),define(e[21],t([0,1,3,4,12,6,5]),function(e,t,s,r,i,o,c){"use strict";function l(e){const t=Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}function a(e){
return e.read(4).readUInt32BE(0)}function u(e,t){if(void 0===t)e.write(v.Undefined);else if("string"==typeof t){const n=Buffer.from(t);e.write(v.String),e.write(l(n.length)),e.write(n)}else if(Buffer.isBuffer(t))e.write(v.Buffer),e.write(l(t.length)),e.write(t);else if(Array.isArray(t)){e.write(v.Array),e.write(l(t.length));for(const n of t)u(e,n)}else{const n=Buffer.from(JSON.stringify(t));e.write(v.Object),e.write(l(n.length)),e.write(n)}}function h(e){switch(e.read(1).readUInt8(0)){case m.Undefined:return;case m.String:return e.read(a(e)).toString();case m.Buffer:return e.read(a(e));case m.Array:{const t=a(e),n=[];for(let s=0;s<t;s++)n.push(h(e));return n}case m.Object:return JSON.parse(e.read(a(e)).toString())}}function d(e){return{call:(t,n,s)=>e.then(e=>e.call(t,n,s)),listen(t,n){const s=new r.Relay;return e.then(e=>s.input=e.listen(t,n)),s.event}}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",
e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(t.RequestType||(t.RequestType={}));!function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(t.ResponseType||(t.ResponseType={}));var f;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(f||(f={}));class p{constructor(e){this.buffer=e,this.pos=0}read(e){const t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.length,t}}class g{constructor(){this.buffers=[]}get buffer(){return Buffer.concat(this.buffers)}write(e){this.buffers.push(e)}}var m;!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.Array=3]="Array",e[e.Object=4]="Object"}(m||(m={}));const v={Undefined:Buffer.alloc(1,m.Undefined),String:Buffer.alloc(1,m.String),Buffer:Buffer.alloc(1,m.Buffer),Array:Buffer.alloc(1,m.Array),Object:Buffer.alloc(1,m.Object)};class C{
constructor(e,t){this.protocol=e,this.ctx=t,this.channels=new Map,this.activeRequests=new Map,this.protocolListener=this.protocol.onMessage(e=>this.onRawMessage(e)),this.sendResponse({type:200})}registerChannel(e,t){this.channels.set(e,t)}sendResponse(e){switch(e.type){case 200:return this.send([e.type]);case 201:case 202:case 204:case 203:return this.send([e.type,e.id],e.data)}}send(e,t){const n=new g;u(n,e),u(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onRawMessage(e){const t=new p(e),n=h(t),s=h(t),r=n[0];switch(r){case 100:return this.onPromise({type:r,id:n[1],channelName:n[2],name:n[3],arg:s});case 102:return this.onEventListen({type:r,id:n[1],channelName:n[2],name:n[3],arg:s});case 101:case 103:return this.disposeActiveRequest({type:r,id:n[1]})}}onPromise(e){const t=this.channels.get(e.channelName);if(!t)throw new Error("Unknown channel");const n=new o.CancellationTokenSource;let r;try{r=t.call(this.ctx,e.name,e.arg,n.token)}catch(e){r=Promise.reject(e)}const i=e.id
;r.then(t=>{this.sendResponse({id:i,data:t,type:201}),this.activeRequests.delete(e.id)},t=>{t instanceof Error?this.sendResponse({id:i,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:202}):this.sendResponse({id:i,data:t,type:203}),this.activeRequests.delete(e.id)});const c=s.toDisposable(()=>n.cancel());this.activeRequests.set(e.id,c)}onEventListen(e){const t=this.channels.get(e.channelName);if(!t)throw new Error("Unknown channel");const n=e.id,s=t.listen(this.ctx,e.name,e.arg)(e=>this.sendResponse({id:n,data:e,type:204}));this.activeRequests.set(e.id,s)}disposeActiveRequest(e){const t=this.activeRequests.get(e.id);t&&(t.dispose(),this.activeRequests.delete(e.id))}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelServer=C;class y{constructor(e){this.protocol=e,this.state=f.Uninitialized,this.activeRequests=new Set,
this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new r.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(e=>this.onBuffer(e))}getChannel(e){const t=this;return{call:(n,s,r)=>t.requestPromise(e,n,s,r),listen:(n,s)=>t.requestEvent(e,n,s)}}requestPromise(e,t,n,r=o.CancellationToken.None){const l=this.lastRequestId++,a={id:l,type:100,channelName:e,name:t,arg:n};if(r.isCancellationRequested)return Promise.reject(c.canceled());let u;return new Promise((e,t)=>{if(r.isCancellationRequested)return t(c.canceled());let n=i.createCancelablePromise(e=>this.whenInitialized());n.then(()=>{n=null;this.handlers.set(l,n=>{switch(n.type){case 201:this.handlers.delete(l),e(n.data);break;case 202:this.handlers.delete(l);const s=new Error(n.data.message);s.stack=n.data.stack,s.name=n.data.name,t(s);break;case 203:this.handlers.delete(l),t(n.data)}}),this.sendRequest(a)});const o=()=>{n?(n.cancel(),n=null):this.sendRequest({id:l,type:101}),t(c.canceled())
},h=r.onCancellationRequested(o);u=s.combinedDisposable([s.toDisposable(o),h]),this.activeRequests.add(u)}).finally(()=>this.activeRequests.delete(u))}requestEvent(e,t,n){const s=this.lastRequestId++,o={id:s,type:102,channelName:e,name:t,arg:n};let c=null;const l=new r.Emitter({onFirstListenerAdd:()=>{(c=i.createCancelablePromise(e=>this.whenInitialized())).then(()=>{c=null,this.activeRequests.add(l),this.sendRequest(o)})},onLastListenerRemove:()=>{c?(c.cancel(),c=null):(this.activeRequests.delete(l),this.sendRequest({id:s,type:103}))}});return this.handlers.set(s,e=>l.fire(e.data)),l.event}sendRequest(e){switch(e.type){case 100:case 102:return this.send([e.type,e.id,e.channelName,e.name],e.arg);case 101:case 103:return this.send([e.type,e.id])}}send(e,t){const n=new g;u(n,e),u(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onBuffer(e){const t=new p(e),n=h(t),s=h(t);switch(n[0]){case 200:return this.onResponse({type:n[0]});case 201:case 202:case 204:case 203:
return this.onResponse({type:n[0],id:n[1],data:s})}}onResponse(e){if(200===e.type)return this.state=f.Idle,void this._onDidInitialize.fire();const t=this.handlers.get(e.id);t&&t(e)}whenInitialized(){return this.state===f.Idle?Promise.resolve():r.Event.toPromise(this.onDidInitialize)}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(e=>e.dispose()),this.activeRequests.clear()}}t.ChannelClient=y;class _{constructor(e){this.channels=new Map,this._connections=new Set,this._onDidChangeConnections=new r.Emitter,this.onDidChangeConnections=this._onDidChangeConnections.event,e(({protocol:e,onDidClientDisconnect:t})=>{r.Event.once(e.onMessage)(n=>{const s=h(new p(n)),r=new C(e,s),i=new y(e);this.channels.forEach((e,t)=>r.registerChannel(t,e));const o={channelClient:i,ctx:s};this._connections.add(o),this._onDidChangeConnections.fire(o),t(()=>{r.dispose(),i.dispose(),this._connections.delete(o)})})})}get connections(){const e=[]
;return this._connections.forEach(t=>e.push(t)),e}getChannel(e,t){const n=this;return{call:(s,r,i)=>d(t.routeCall(n,s,r).then(t=>t.channelClient.getChannel(e))).call(s,r,i),listen:(s,r)=>d(t.routeEvent(n,s,r).then(t=>t.channelClient.getChannel(e))).listen(s,r)}}registerChannel(e,t){this.channels.set(e,t)}dispose(){this.channels.clear(),this._connections.clear(),this._onDidChangeConnections.dispose()}}t.IPCServer=_;class b{constructor(e,t){const n=new g;u(n,t),e.send(n.buffer),this.channelClient=new y(e),this.channelServer=new C(e,t)}getChannel(e){return this.channelClient.getChannel(e)}registerChannel(e,t){this.channelServer.registerChannel(e,t)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}t.IPCClient=b,t.getDelayedChannel=d,t.getNextTickChannel=function(e){let t=!1;return{call:(n,s,r)=>t?e.call(n,s,r):i.timeout(0).then(()=>t=!0).then(()=>e.call(n,s,r)),listen(n,s){if(t)return e.listen(n,s);const o=new r.Relay;return i.timeout(0).then(()=>t=!0).then(()=>o.input=e.listen(n,s)),o.event}}
};class w{constructor(e){this.fn=e}routeCall(e){return this.route(e)}routeEvent(e){return this.route(e)}route(e){return n(this,void 0,void 0,function*(){for(const t of e.connections)if(yield Promise.resolve(this.fn(t.ctx)))return Promise.resolve(t);return yield r.Event.toPromise(e.onDidChangeConnections),yield this.route(e)})}}t.StaticRouter=w}),define(e[22],t([31,30]),function(e,t){return e.create("vs/base/node/processes",t)}),define(e[25],t([0,1,10,29,27,22,7,8,13,2,19,16]),function(e,t,n,s,r,i,o,c,l,a,u,h){"use strict";function d(t,n){if(a.isWindows)try{let e={stdio:["pipe","pipe","ignore"]};n&&(e.cwd=n),r.execFileSync("taskkill",["/T","/F","/PID",t.pid.toString()],e)}catch(e){return{success:!1,error:e,code:e.status?function(e){switch(e){case 0:return 0;case 1:return 2;case 128:return 3;default:return 1}}(e.status):1}}else if(a.isLinux||a.isMacintosh)try{let n=h.getPathFromAmdModule(e,"vs/base/node/terminateProcess.sh"),s=r.spawnSync(n,[t.pid.toString()]);if(s.error)return{success:!1,error:s.error}
}catch(e){return{success:!1,error:e}}else t.kill("SIGKILL");return{success:!0}}function f(){return process.env.comspec||"cmd.exe"}Object.defineProperty(t,"__esModule",{value:!0}),t.terminateProcess=d,t.getWindowsShell=f,t.sanitizeProcessEnvironment=function(e){const t=[/^ELECTRON_.+$/,/^GOOGLE_API_KEY$/,/^VSCODE_.+$/,/^SNAP(|_.*)$/];Object.keys(e).forEach(n=>{for(let s=0;s<t.length;s++)if(-1!==n.search(t[s])){delete e[n];break}})};class p{constructor(e,t,n,s){if(void 0!==t&&void 0!==n&&void 0!==s)this.cmd=e,this.args=t,this.shell=n,this.options=s;else{let t=e;this.cmd=t.command,this.shell=t.isShellCommand,this.args=t.args.slice(0),this.options=t.options||{}}if(this.childProcess=null,this.terminateRequested=!1,this.options.env){let e=Object.create(null);Object.keys(process.env).forEach(t=>{e[t]=process.env[t]}),Object.keys(this.options.env).forEach(t=>{e[t]=this.options.env[t]}),this.options.env=e}}getSanitizedCommand(){let e=this.cmd.toLowerCase(),t=e.lastIndexOf(n.sep);return-1!==t&&(e=e.substring(t+1)),
p.WellKnowCommands[e]?e:"other"}start(e){return a.isWindows&&(this.options&&this.options.cwd&&l.isUNC(this.options.cwd)||!this.options&&l.isUNC(process.cwd()))?Promise.reject(new Error(i.localize(0,null))):this.useExec().then(t=>{let n,s,i=new Promise((e,t)=>{n=e,s=t});if(t){let t=this.cmd;this.args&&(t=t+" "+this.args.join(" ")),this.childProcess=r.exec(t,this.options,(t,r,i)=>{this.childProcess=null;let o=t;o&&o.killed?s({killed:this.terminateRequested,stdout:r.toString(),stderr:i.toString()}):this.handleExec(n,e,t,r,i)})}else{let t=null;if(this.shell&&a.isWindows){let e=c.deepClone(this.options);e.windowsVerbatimArguments=!0,e.detached=!1;let n=!1,s=!1,i=[],o=this.ensureQuotes(this.cmd);i.push(o.value),n=o.quoted,this.args&&this.args.forEach(e=>{o=this.ensureQuotes(e),i.push(o.value),s=s&&o.quoted});let l=["/s","/c"];n?s?l.push('"'+i.join(" ")+'"'):i.length>1?l.push('"'+i[0]+'" '+i.slice(1).join(" ")):l.push('"'+i[0]+'"'):l.push(i.join(" ")),t=r.spawn(f(),l,e)
}else this.cmd&&(t=r.spawn(this.cmd,this.args,this.options));t&&(this.childProcess=t,this.childProcessPromise=Promise.resolve(t),this.pidResolve&&(this.pidResolve(o.isNumber(t.pid)?t.pid:-1),this.pidResolve=void 0),t.on("error",e=>{this.childProcess=null,s({terminated:this.terminateRequested,error:e})}),t.pid&&(this.childProcess.on("close",t=>{this.childProcess=null,this.childProcessPromise=null,this.handleClose(t,n,e,s);let r={terminated:this.terminateRequested};o.isNumber(t)&&(r.cmdCode=t),n(r)}),this.handleSpawn(t,n,e,s,!0)))}return i})}handleClose(e,t,n,s){}ensureQuotes(e){return p.regexp.test(e)?{value:'"'+e+'"',quoted:!0}:{value:e,quoted:e.length>0&&'"'===e[0]&&'"'===e[e.length-1]}}get pid(){return this.childProcessPromise?this.childProcessPromise.then(e=>e.pid,e=>-1):new Promise(e=>{this.pidResolve=e})}terminate(){return this.childProcessPromise?this.childProcessPromise.then(e=>{this.terminateRequested=!0;let t=d(e,this.options.cwd);return t.success&&(this.childProcess=null),t},e=>({success:!0
})):Promise.resolve({success:!0})}useExec(){return new Promise((e,t)=>{this.shell&&a.isWindows||e(!1);let n=r.spawn(f(),["/s","/c"]);n.on("error",t=>{e(!0)}),n.on("exit",t=>{e(!1)})})}}p.WellKnowCommands={ant:!0,cmake:!0,eslint:!0,gradle:!0,grunt:!0,gulp:!0,jake:!0,jenkins:!0,jshint:!0,make:!0,maven:!0,msbuild:!0,msc:!0,nmake:!0,npm:!0,rake:!0,tsc:!0,xbuild:!0},p.regexp=/^[^"].* .*[^"]/,t.AbstractProcess=p;class g extends p{constructor(e,t,n,s){super(e,t,n,s)}handleExec(e,t,n,s,r){[s,r].forEach((e,n)=>{let s=new u.LineDecoder;s.write(e).forEach(e=>{t({line:e,source:0===n?0:1})});let r=s.end();r&&t({line:r,source:0===n?0:1})}),e({terminated:this.terminateRequested,error:n})}handleSpawn(e,t,n,s,r){this.stdoutLineDecoder=new u.LineDecoder,this.stderrLineDecoder=new u.LineDecoder,e.stdout.on("data",e=>{this.stdoutLineDecoder.write(e).forEach(e=>n({line:e,source:0}))}),e.stderr.on("data",e=>{this.stderrLineDecoder.write(e).forEach(e=>n({line:e,source:1}))})}handleClose(e,t,n,s){
[this.stdoutLineDecoder.end(),this.stderrLineDecoder.end()].forEach((e,t)=>{e&&n({line:e,source:0===t?0:1})})}}t.LineProcess=g,t.createQueuedSender=function(e){let t=[],n=!1;const s=function(r){n?t.push(r):e.send(r,e=>{if(e&&console.error(e),n=!1,t.length>0){const e=t.slice(0);t=[],e.forEach(e=>s(e))}})&&!a.isWindows||(n=!0)};return{send:s}};!function(e){e.findExecutable=function(e,t,r){if(n.isAbsolute(e))return e;if(void 0===t&&(t=process.cwd()),"."!==n.dirname(e))return n.join(t,e);if(void 0===r&&o.isString(process.env.PATH)&&(r=process.env.PATH.split(n.delimiter)),void 0===r||0===r.length)return n.join(t,e);for(let i of r){let r;if(r=n.isAbsolute(i)?n.join(i,e):n.join(t,i,e),s.existsSync(r))return r;let o=r+".com";if(s.existsSync(o))return o;if(o=r+".exe",s.existsSync(o))return o}return n.join(t,e)}}(t.win32||(t.win32={}))}),define(e[28],t([0,1,27,3,12,8,4,25,21,18,6,5]),function(e,t,n,s,r,i,o,c,l,a,u,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class d extends l.ChannelServer{
constructor(e){super({send:e=>{try{process.send&&process.send(e.toString("base64"))}catch(e){}},onMessage:o.Event.fromNodeEventEmitter(process,"message",e=>Buffer.from(e,"base64"))},e),process.once("disconnect",()=>this.dispose())}}t.Server=d;class f{constructor(e,t){this.modulePath=e,this.options=t,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new o.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const n=t&&t.timeout?t.timeout:6e4;this.disposeDelayer=new r.Delayer(n),this.child=null,this._client=null}getChannel(e){const t=this;return{call:(n,s,r)=>t.requestPromise(e,n,s,r),listen:(n,s)=>t.requestEvent(e,n,s)}}requestPromise(e,t,n,i=u.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(i.isCancellationRequested)return Promise.reject(h.canceled());this.disposeDelayer.cancel();const o=this.getCachedChannel(e),c=r.createCancelablePromise(e=>o.call(t,n,e)),l=i.onCancellationRequested(()=>c.cancel()),a=s.toDisposable(()=>c.cancel())
;return this.activeRequests.add(a),c.finally(()=>{l.dispose(),this.activeRequests.delete(a),0===this.activeRequests.size&&this.disposeDelayer.trigger(()=>this.disposeClient())}),c}requestEvent(e,t,n){if(!this.disposeDelayer)return o.Event.None;this.disposeDelayer.cancel();let s;const r=new o.Emitter({onFirstListenerAdd:()=>{const i=this.getCachedChannel(e).listen(t,n);s=i(r.fire,r),this.activeRequests.add(s)},onLastListenerRemove:()=>{this.activeRequests.delete(s),s.dispose(),0===this.activeRequests.size&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return r.event}get client(){if(!this._client){const e=this.options&&this.options.args?this.options.args:[],t=Object.create(null);t.env=i.assign(i.deepClone(process.env),{VSCODE_PARENT_PID:String(process.pid)}),this.options&&this.options.env&&(t.env=i.assign(t.env,this.options.env)),this.options&&this.options.freshExecArgv&&(t.execArgv=[]),
this.options&&"number"==typeof this.options.debug&&(t.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&"number"==typeof this.options.debugBrk&&(t.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),this.child=n.fork(this.modulePath,e,t);const r=new o.Emitter;o.Event.fromNodeEventEmitter(this.child,"message",e=>e)(e=>{a.isRemoteConsoleLog(e)?a.log(e,`IPC Library: ${this.options.serverName}`):r.fire(Buffer.from(e,"base64"))});const u=this.options.useQueue?c.createQueuedSender(this.child):this.child,h={send:e=>this.child&&this.child.connected&&u.send(e.toString("base64")),onMessage:r.event};this._client=new l.ChannelClient(h);const d=()=>this.disposeClient();process.once("exit",d),this.child.on("error",e=>console.warn('IPC "'+this.options.serverName+'" errored with '+e)),this.child.on("exit",(e,t)=>{process.removeListener("exit",d),this.activeRequests.forEach(e=>s.dispose(e)),this.activeRequests.clear(),
0!==e&&"SIGTERM"!==t&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+e+" and signal "+t),this.disposeDelayer&&this.disposeDelayer.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:e,signal:t})})}return this._client}getCachedChannel(e){let t=this.channels.get(e);return t||(t=this.client.getChannel(e),this.channels.set(e,t)),t}disposeClient(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer.cancel(),this.disposeDelayer=null,this.disposeClient(),this.activeRequests.clear()}}t.Client=f}),define(e[26],t([0,1]),function(e,t){"use strict";function n(e,t,n,s){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n,optional:s}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n,optional:s}],t[r.DI_TARGET]=t)}function s(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);const t=function(e,s,r){
if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,r,!1)};return t.toString=(()=>e),r.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var r;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r=t._util||(t._util={})),t.IInstantiationService=s("instantiationService"),t.createDecorator=s,t.optional=function(e){return function(t,s,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,r,!0)}}}),define(e[24],t([0,1,26,3,2,4]),function(e,t,n,s,r,i){"use strict";function o(){return(new Date).toISOString()}Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=n.createDecorator("logService");var c;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",
e[e.Off=6]="Off"}(c=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=c.Info;class l extends s.Disposable{constructor(){super(...arguments),this.level=t.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new i.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}t.AbstractLogService=l;class a extends l{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e),this.useColors=!r.isWindows}trace(e,...t){this.getLevel()<=c.Trace&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}debug(e,...t){this.getLevel()<=c.Debug&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}info(e,...t){this.getLevel()<=c.Info&&(this.useColors?console.log(`[90m[main ${o()}][0m`,e,...t):console.log(`[main ${o()}]`,e,...t))}warn(e,...t){
this.getLevel()<=c.Warning&&(this.useColors?console.warn(`[93m[main ${o()}][0m`,e,...t):console.warn(`[main ${o()}]`,e,...t))}error(e,...t){this.getLevel()<=c.Error&&(this.useColors?console.error(`[91m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}critical(e,...t){this.getLevel()<=c.Critical&&(this.useColors?console.error(`[90m[main ${o()}][0m`,e,...t):console.error(`[main ${o()}]`,e,...t))}dispose(){}}t.ConsoleLogMainService=a;class u extends l{constructor(e=t.DEFAULT_LOG_LEVEL){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=c.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=c.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=c.Info&&console.log("%c INFO","color: #33f",e,...t)}warn(e,...t){this.getLevel()<=c.Warning&&console.log("%c WARN","color: #993",e,...t)}error(e,...t){this.getLevel()<=c.Error&&console.log("%c  ERR","color: #f33",e,...t)}critical(e,...t){
this.getLevel()<=c.Critical&&console.log("%cCRITI","background: #f33; color: white",e,...t)}dispose(){}}t.ConsoleLogService=u;class h extends l{constructor(e){super(),this.logServices=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.logServices)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const n of this.logServices)n.trace(e,...t)}debug(e,...t){for(const n of this.logServices)n.debug(e,...t)}info(e,...t){for(const n of this.logServices)n.info(e,...t)}warn(e,...t){for(const n of this.logServices)n.warn(e,...t)}error(e,...t){for(const n of this.logServices)n.error(e,...t)}critical(e,...t){for(const n of this.logServices)n.critical(e,...t)}dispose(){for(const e of this.logServices)e.dispose()}}t.MultiplexLogService=h;class d extends s.Disposable{constructor(e){super(),this.logService=e,this._register(e)}get onDidChangeLogLevel(){return this.logService.onDidChangeLogLevel}setLevel(e){this.logService.setLevel(e)}getLevel(){return this.logService.getLevel()}trace(e,...t){
this.logService.trace(e,...t)}debug(e,...t){this.logService.debug(e,...t)}info(e,...t){this.logService.info(e,...t)}warn(e,...t){this.logService.warn(e,...t)}error(e,...t){this.logService.error(e,...t)}critical(e,...t){this.logService.critical(e,...t)}}t.DelegatedLogService=d;class f{constructor(){this.onDidChangeLogLevel=(new i.Emitter).event}setLevel(e){}getLevel(){return c.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}critical(e,...t){}dispose(){}}t.NullLogService=f,t.getLogLevel=function(e){if(e.verbose)return c.Trace;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return c.Trace;case"debug":return c.Debug;case"info":return c.Info;case"warn":return c.Warning;case"error":return c.Error;case"critical":return c.Critical;case"off":return c.Off}return t.DEFAULT_LOG_LEVEL}});var s=this&&this.__decorate||function(e,t,n,s){var r,i=arguments.length,o=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s
;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},r=this&&this.__param||function(e,t){return function(n,s){t(n,s,e)}};define(e[23],t([0,1,32,7,8,24]),function(e,t,n,i,o,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let l=class e{constructor(e,t,s,r){this._eventPrefix=e,this._defaultData=t,this._logService=r,this._defaultData||(this._defaultData=Object.create(null)),"string"==typeof s?this._aiClient=function(e){let t;return n.defaultClient?(t=new n.TelemetryClient(e)).channel.setUseDiskRetryCaching(!0):(n.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setInternalLogging(!1,!1).setUseDiskRetryCaching(!0).start(),t=n.defaultClient),
0===e.indexOf("AIF-")&&(t.config.endpointUrl="https://vortex.data.microsoft.com/collect/v1"),t}(s):"function"==typeof s&&(this._aiClient=s())}static _getData(t){const n=Object.create(null),s=Object.create(null),r=Object.create(null);e._flaten(t,r);for(let e in r){const t=r[e=e.length>150?e.substr(e.length-149):e];"number"==typeof t?s[e]=t:"boolean"==typeof t?s[e]=t?1:0:"string"==typeof t?n[e]=t.substring(0,1023):void 0!==t&&null!==t&&(n[e]=t)}return{properties:n,measurements:s}}static _flaten(t,n,s=0,r){if(t)for(let c of Object.getOwnPropertyNames(t)){const l=t[c],a=r?r+c:c;Array.isArray(l)?n[a]=o.safeStringify(l):l instanceof Date?n[a]=l.toISOString():i.isObject(l)?s<2?e._flaten(l,n,s+1,a+"."):n[a]=o.safeStringify(l):n[a]=l}}log(t,n){this._aiClient&&(n=o.mixin(n,this._defaultData),n=e._getData(n),this._logService&&this._logService.trace(`telemetry/${t}`,n),this._aiClient.trackEvent({name:this._eventPrefix+"/"+t,properties:n.properties,measurements:n.measurements}))}dispose(){
if(this._aiClient)return new Promise(e=>{this._aiClient.flush({callback:()=>{this._aiClient=void 0,e(void 0)}})})}};l=s([r(3,c.ILogService)],l),t.AppInsightsAppender=l}),define(e[20],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e){this.appender=e}listen(e,t){throw new Error(`Event not found: ${t}`)}call(e,t,{eventName:n,data:s}){return this.appender.log(n,s),Promise.resolve(null)}}t.TelemetryAppenderChannel=n;class s{constructor(e){this.channel=e}log(e,t){return this.channel.call("log",{eventName:e,data:t}).then(void 0,e=>`Failed to log telemetry: ${console.warn(e)}`),Promise.resolve(null)}dispose(){}}t.TelemetryAppenderClient=s}),define(e[34],t([0,1,28,23,20]),function(e,t,n,s,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=new s.AppInsightsAppender(process.argv[2],JSON.parse(process.argv[3]),process.argv[4]);process.once("exit",()=>i.dispose());const o=new r.TelemetryAppenderChannel(i)
;new n.Server("telemetry").registerChannel("telemetryAppender",o)})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/05f146c7a8f7f78e80261aa3b2a2e642586f9eb3/core/vs/workbench/contrib/debug/node/telemetryApp.js.map
