/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["exports","require","vs/base/common/platform","vs/base/common/functional","vs/base/common/amd","vs/base/common/uri","vs/base/common/linkedList","vs/base/common/event","vs/base/browser/browser","vs/base/common/errors","vs/base/common/process","vs/base/common/path","vs/base/common/strings","vs/base/common/iterator","vs/base/common/lifecycle","vs/base/node/ps","vs/platform/product/node/product","vs/base/parts/contextmenu/common/contextmenu","vs/base/parts/contextmenu/electron-browser/contextmenu","electron","vs/css!vs/code/electron-browser/processExplorer/media/processExplorer","vs/css!vs/code/electron-browser/processExplorer/processExplorerMain","child_process","vs/code/electron-browser/processExplorer/processExplorerMain","os","vs/nls!vs/code/electron-browser/processExplorer/processExplorerMain"],t=function(t){for(var n=[],r=0,s=t.length;r<s;r++)n[r]=e[t[r]];return n};define(e[9],t([1,0]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===s&&e.message===s}
Object.defineProperty(t,"__esModule",{value:!0});class r{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=r,t.errorHandler=new r,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 s="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){const e=new Error(s);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[3],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let n,r=!1;return function(){return r?n:(r=!0,n=e.apply(t,arguments))}}}),define(e[13],t([1,0]),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 r={next:()=>t.FIN};e.empty=function(){return r},e.fromArray=function(e,n=0,r=e.length){return{next:()=>n>=r?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 r=e.next();return r.done?t.FIN:{done:!1,value:n(r.value)}}}},e.filter=function(e,n){return{next(){for(;;){const r=e.next();if(r.done)return t.FIN;if(n(r.value))return{done:!1,value:r.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 r{constructor(e,t=0,n=e.length,r=t-1){this.items=e,this.start=t,this.end=n,this.index=r}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=r;class s extends r{constructor(e,t=0,n=e.length,r=t-1){super(e,t,n,r)}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=s;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[14],t([1,0,3]),function(e,t,n){"use strict";function r(e,...t){
if(Array.isArray(e))return e.forEach(e=>e&&e.dispose()),[];if(0!==t.length)return r(e),r(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=r,t.combinedDisposable=function(e){return{dispose:()=>r(e)}},t.toDisposable=function(e){return{dispose(){e()}}};class s{constructor(){this._toDispose=[],this._lifecycle_disposable_isDisposed=!1}get toDispose(){return this._toDispose}dispose(){this._lifecycle_disposable_isDisposed=!0,this._toDispose=r(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}}s.None=Object.freeze({dispose(){}}),t.Disposable=s;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:r}=t,s=n.once(()=>{
0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:r,dispose:s}}}t.ReferenceCollection=i;class o{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=o}),define(e[6],t([1,0,13]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.element=e}}class s{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 r(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 r;){if(t===e){if(t.prev&&t.next){const 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(){const e=[];for(let t=this._first;t instanceof r;t=t.next)e.push(t.element);return e}}t.LinkedList=s});var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(s,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function c(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){e.done?s(e.value):new n(function(t){t(e.value)}).then(o,c)}a((r=r.apply(e,t||[])).next())})};define(e[7],t([1,0,9,3,14,6]),function(e,t,r,s,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c;!function(e){function t(e){return(t,n=null,r)=>{let s,i=!1;return s=e(e=>{
if(!i)return s?s.dispose():i=!0,t.call(n,e)},null,r),i&&s.dispose(),s}}function n(e,t){return c((n,r=null,s)=>e(e=>n.call(r,t(e)),null,s))}function r(e,t){return c((n,r=null,s)=>e(e=>{t(e),n.call(r,e)},null,s))}function s(e,t){return c((n,r=null,s)=>e(e=>t(e)&&n.call(r,e),null,s))}function o(e,t,r){let s=r;return n(e,e=>s=t(s,e))}function c(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function a(e){let t,n=!0;return s(e,e=>{const r=n||e!==t;return n=!1,t=e,r})}const l={dispose(){}};e.None=function(){return l},e.once=t,e.map=n,e.forEach=r,e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>i.combinedDisposable(e.map(e=>e(e=>t.call(n,e),null,r)))},e.reduce=o,e.snapshot=c,e.debounce=function(e,t,n=100,r=!1,s){let i,o=void 0,c=void 0,a=0;const l=new u({leakWarningThreshold:s,onFirstListenerAdd(){i=e(e=>{a++,o=t(o,e),r&&!c&&l.fire(o),clearTimeout(c),c=setTimeout(()=>{const e=o;o=void 0,c=void 0,(!r||a>1)&&l.fire(e),
a=0},n)})},onLastListenerRemove(){i.dispose()}});return l.event},e.stopwatch=function(e){const r=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-r)},e.latch=a,e.buffer=function(e,t=!1,n=[]){let r=n.slice(),s=e(e=>{r?r.push(e):o.fire(e)});const i=()=>{r&&r.forEach(e=>o.fire(e)),r=null},o=new u({onFirstListenerAdd(){s||(s=e(e=>o.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(i):i())},onLastListenerRemove(){s&&s.dispose(),s=null}});return o.event},e.echo=function(e,t=!1,n=[]){n=n.slice(),e(e=>{n.push(e),s.fire(e)});const r=(e,t)=>n.forEach(n=>e.call(t,n)),s=new u({onListenerDidAdd(e,n,s){t?setTimeout(()=>r(n,s)):r(n,s)}});return s.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(r(this.event,e))}filter(e){return new h(s(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(a(this.event))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new h(e)},
e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>s.fire(n(...e)),s=new u({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return s.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 a=-1;t.setGlobalLeakWarningThreshold=function(e){const t=a;return a=e,{dispose(){a=t}}};class l{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=a;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),r=this._stacks.get(n)||0;if(this._stacks.set(n,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*t;let n,r=0
;this._stacks.forEach((e,t)=>{(!n||r<e)&&(n=t,r=e)}),console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${r}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class u{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=a>0?new l(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 r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const s=this._listeners.push(t?[e,t]:e);r&&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&&(s(),
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){r.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()){const 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){r.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(s.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,r)=>e(e=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(n,e)):t.call(n,e)},void 0,r)}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[8],t([1,0,7]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1,this._onDidChangeFullscreen=new n.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}setZoomLevel(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))}getZoomFactor(){return this._zoomFactor}setZoomFactor(e){this._zoomFactor=e}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}setFullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,
this._onDidChangeFullscreen.fire())}isFullscreen(){return this._fullscreen}}r.INSTANCE=new r,t.setZoomLevel=function(e,t){r.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return r.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return r.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return r.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){r.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return r.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){r.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return r.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=r.INSTANCE.onDidChangeFullscreen;const s=navigator.userAgent;t.isIE=s.indexOf("Trident")>=0,t.isEdge=s.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=s.indexOf("Opera")>=0,t.isFirefox=s.indexOf("Firefox")>=0,t.isWebKit=s.indexOf("AppleWebKit")>=0,t.isChrome=s.indexOf("Chrome")>=0,
t.isSafari=!t.isChrome&&s.indexOf("Safari")>=0,t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,t.isIPad=s.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&s.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){let e=s.indexOf("Edge/"),t=parseInt(s.substring(e+5,s.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}}),define(e[2],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=!1,r=!1,s=!1,i=!1,o=!1,c=void 0,a="en",l=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,r="darwin"===process.platform,s="linux"===process.platform,c="en",a="en";const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];c=t.locale,a=n||"en",l=t._translationsConfigFile}catch(e){}i=!0}}else{const e=navigator.userAgent
;n=e.indexOf("Windows")>=0,r=e.indexOf("Macintosh")>=0,s=e.indexOf("Linux")>=0,o=!0,a=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&&(r?h=1:n?h=3:s&&(h=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=s,t.isNative=i,t.isWeb=o,t.platform=h,t.isRootUser=function(){return i&&!n&&0===process.getuid()},t.language=a;!function(e){e.value=function(){return t.language},e.isDefaultVariant=function(){return 2===t.language.length?"en"===t.language:t.language.length>=3&&"e"===t.language[0]&&"n"===t.language[1]&&"-"===t.language[2]},e.isDefault=function(){return"en"===t.language}}(t.Language||(t.Language={})),t.locale=c,t.translationsConfigFile=l;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=r?2:n?1:3}),define(e[10],t([1,0,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="undefined"==typeof process?{cwd:()=>"/",env:Object.create(null),get platform(){return n.isWindows?"win32":n.isMacintosh?"darwin":"linux"},nextTick:e=>n.setImmediate(e)}:process;t.cwd=r.cwd,t.env=r.env,t.platform=r.platform,t.nextTick=r.nextTick}),define(e[11],t([1,0,10]),function(e,t,n){"use strict";function r(e,t){if("string"!=typeof e)throw new g(t,"string",e)}function s(e){return e===p||e===m}function i(e){return e===p}function o(e){return e>=l&&e<=h||e>=u&&e<=d}function c(e,t,n,r){let s,i="",o=0,c=-1,a=0
;for(let l=0;l<=e.length;++l){if(l<e.length)s=e.charCodeAt(l);else{if(r(s))break;s=p}if(r(s)){if(c===l-1||1===a);else if(c!==l-1&&2===a){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=l,a=0;continue}if(2===i.length||1===i.length){i="",o=0,c=l,a=0;continue}}t&&(i.length>0?i+=`${n}..`:i="..",o=2)}else i.length>0?i+=n+e.slice(c+1,l):i=e.slice(c+1,l),o=l-c-1;c=l,a=0}else s===f&&-1!==a?++a:a=-1}return i}function a(e,t){const n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}Object.defineProperty(t,"__esModule",{value:!0});const l=65,u=97,h=90,d=122,f=46,p=47,m=92;class g extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";let s=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${r} of type ${t}`;super(s+=`. Received type ${typeof n}`)}}t.win32={
resolve(...e){let t="",i="",a=!1;for(let c=e.length-1;c>=-1;c--){let l;if(c>=0?l=e[c]:t?void 0!==(l=n.env["="+t]||n.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=n.cwd(),r(l,"path"),0===l.length)continue;const u=l.length;let h=0,d="",f=!1;const p=l.charCodeAt(0);if(u>1)if(s(p))if(f=!0,s(l.charCodeAt(1))){let e=2,t=e;for(;e<u&&!s(l.charCodeAt(e));++e);if(e<u&&e!==t){const n=l.slice(t,e);for(t=e;e<u&&s(l.charCodeAt(e));++e);if(e<u&&e!==t){for(t=e;e<u&&!s(l.charCodeAt(e));++e);e===u?(d="\\\\"+n+"\\"+l.slice(t),h=e):e!==t&&(d="\\\\"+n+"\\"+l.slice(t,e),h=e)}}}else h=1;else o(p)&&58===l.charCodeAt(1)&&(d=l.slice(0,2),h=2,u>2&&s(l.charCodeAt(2))&&(f=!0,h=3));else s(p)&&(h=1,f=!0);if(!(d.length>0&&t.length>0&&d.toLowerCase()!==t.toLowerCase())&&(0===t.length&&d.length>0&&(t=d),a||(i=l.slice(h)+"\\"+i,a=f),t.length>0&&a))break}return i=c(i,!a,"\\",s),t+(a?"\\":"")+i||"."},normalize(e){r(e,"path");const t=e.length;if(0===t)return".";let n,i=0,a=!1;const l=e.charCodeAt(0)
;if(t>1)if(s(l))if(a=!0,s(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!s(e.charCodeAt(r));++r);if(r<t&&r!==o){const c=e.slice(o,r);for(o=r;r<t&&s(e.charCodeAt(r));++r);if(r<t&&r!==o){for(o=r;r<t&&!s(e.charCodeAt(r));++r);if(r===t)return"\\\\"+c+"\\"+e.slice(o)+"\\";r!==o&&(n="\\\\"+c+"\\"+e.slice(o,r),i=r)}}}else i=1;else o(l)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&s(e.charCodeAt(2))&&(a=!0,i=3));else if(s(l))return"\\";let u;return 0!==(u=i<t?c(e.slice(i),!a,"\\",s):"").length||a||(u="."),u.length>0&&s(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?a?u.length>0?"\\"+u:"\\":u.length>0?u:"":a?u.length>0?n+"\\"+u:n+"\\":u.length>0?n+u:n},isAbsolute(e){r(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return!!s(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&s(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let n,i;for(let t=0;t<e.length;++t){const s=e[t];r(s,"path"),s.length>0&&(void 0===n?n=i=s:n+="\\"+s)}if(void 0===n)return".";let o=!0,c=0;if("string"==typeof i&&s(i.charCodeAt(0))){++c
;const e=i.length;e>1&&s(i.charCodeAt(1))&&(++c,e>2&&(s(i.charCodeAt(2))?++c:o=!1))}if(o){for(;c<n.length&&s(n.charCodeAt(c));++c);c>=2&&(n="\\"+n.slice(c))}return t.win32.normalize(n)},relative(e,n){if(r(e,"from"),r(n,"to"),e===n)return"";const s=t.win32.resolve(e),i=t.win32.resolve(n);if(s===i)return"";if(e=s.toLowerCase(),n=i.toLowerCase(),e===n)return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===m;++o);let c=e.length;for(;c-1>o&&e.charCodeAt(c-1)===m;--c);const a=c-o;let l=0;for(;l<n.length&&n.charCodeAt(l)===m;++l);let u=n.length;for(;u-1>l&&n.charCodeAt(u-1)===m;--u);const h=u-l,d=a<h?a:h;let f=-1,p=0;for(;p<=d;++p){if(p===d){if(h>d){if(n.charCodeAt(l+p)===m)return i.slice(l+p+1);if(2===p)return i.slice(l+p)}a>d&&(e.charCodeAt(o+p)===m?f=p:2===p&&(f=3));break}const t=e.charCodeAt(o+p);if(t!==n.charCodeAt(l+p))break;t===m&&(f=p)}if(p!==d&&-1===f)return i;let g="";for(-1===f&&(f=0),p=o+f+1;p<=c;++p)p!==c&&e.charCodeAt(p)!==m||(0===g.length?g+="..":g+="\\..");return g.length>0?g+i.slice(l+f,u):(l+=f,
i.charCodeAt(l)===m&&++l,i.slice(l,u))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const n=t.win32.resolve(e);if(n.length>=3)if(n.charCodeAt(0)===m){if(n.charCodeAt(1)===m){const e=n.charCodeAt(2);if(63!==e&&e!==f)return"\\\\?\\UNC\\"+n.slice(2)}}else if(o(n.charCodeAt(0))&&58===n.charCodeAt(1)&&n.charCodeAt(2)===m)return"\\\\?\\"+n;return e},dirname(e){r(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=-1,c=!0,a=0;const l=e.charCodeAt(0);if(t>1)if(s(l)){if(n=a=1,s(e.charCodeAt(1))){let r=2,i=r;for(;r<t&&!s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&!s(e.charCodeAt(r));++r);if(r===t)return e;r!==i&&(n=a=r+1)}}}}else o(l)&&58===e.charCodeAt(1)&&(n=a=2,t>2&&s(e.charCodeAt(2))&&(n=a=3));else if(s(l))return e;for(let n=t-1;n>=a;--n)if(s(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&&r(t,"ext"),r(e,"path");let n,i=0,c=-1,a=!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 r=t.length-1,o=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(s(l)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(c=n):(r=-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(s(e.charCodeAt(n))){if(!a){i=n+1;break}}else-1===c&&(a=!1,c=n+1);return-1===c?"":e.slice(i,c)},extname(e){r(e,"path");let t=0,n=-1,i=0,c=-1,a=!0,l=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=i=2);for(let r=e.length-1;r>=t;--r){const t=e.charCodeAt(r);if(s(t)){if(!a){i=r+1;break}}else-1===c&&(a=!1,c=r+1),t===f?-1===n?n=r:1!==l&&(l=1):-1!==n&&(l=-1)}return-1===n||-1===c||0===l||1===l&&n===c-1&&n===i+1?"":e.slice(n,c)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return a("\\",e)},parse(e){r(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""}
;if(0===e.length)return t;const n=e.length;let i=0,c=e.charCodeAt(0);if(n>1){if(s(c)){if(i=1,s(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!s(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&s(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&!s(e.charCodeAt(t));++t);t===n?i=t:t!==r&&(i=t+1)}}}}else if(o(c)&&58===e.charCodeAt(1)){if(i=2,!(n>2))return t.root=t.dir=e,t;if(s(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(s(c))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));let a=-1,l=i,u=-1,h=!0,d=e.length-1,p=0;for(;d>=i;--d)if(c=e.charCodeAt(d),s(c)){if(!h){l=d+1;break}}else-1===u&&(h=!1,u=d+1),c===f?-1===a?a=d:1!==p&&(p=1):-1!==a&&(p=-1);return-1===a||-1===u||0===p||1===p&&a===u-1&&a===l+1?-1!==u&&(t.base=t.name=e.slice(l,u)):(t.name=e.slice(l,a),t.base=e.slice(l,u),t.ext=e.slice(a,u)),t.dir=l>0&&l!==i?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve(...e){let t="",s=!1;for(let i=e.length-1;i>=-1&&!s;i--){let o;r(o=i>=0?e[i]:n.cwd(),"path"),
0!==o.length&&(t=o+"/"+t,s=o.charCodeAt(0)===p)}return t=c(t,!s,"/",i),s?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(r(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=>(r(e,"path"),e.length>0&&e.charCodeAt(0)===p),join(...e){if(0===e.length)return".";let n;for(let t=0;t<e.length;++t){const e=arguments[t];r(e,"path"),e.length>0&&(void 0===n?n=e:n+="/"+e)}return void 0===n?".":t.posix.normalize(n)},relative(e,n){if(r(e,"from"),r(n,"to"),e===n)return"";if(e=t.posix.resolve(e),n=t.posix.resolve(n),e===n)return"";let s=1;for(;s<e.length&&e.charCodeAt(s)===p;++s);const i=e.length,o=i-s;let c=1;for(;c<n.length&&n.charCodeAt(c)===p;++c);const a=n.length-c,l=o<a?o:a;let u=-1,h=0;for(;h<=l;++h){if(h===l){if(a>l){if(n.charCodeAt(c+h)===p)return n.slice(c+h+1);if(0===h)return n.slice(c+h)}else o>l&&(e.charCodeAt(s+h)===p?u=h:0===h&&(u=0));break}const t=e.charCodeAt(s+h)
;if(t!==n.charCodeAt(c+h))break;t===p&&(u=h)}let d="";for(h=s+u+1;h<=i;++h)h!==i&&e.charCodeAt(h)!==p||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(c+u):(c+=u,n.charCodeAt(c)===p&&++c,n.slice(c))},toNamespacedPath:e=>e,dirname(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p;let n=-1,s=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===p){if(!s){n=t;break}}else s=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let n,s=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 r=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){const a=e.charCodeAt(n);if(a===p){if(!o){s=n+1;break}}else-1===c&&(o=!1,c=n+1),r>=0&&(a===t.charCodeAt(r)?-1==--r&&(i=n):(r=-1,i=c))}return s===i?i=c:-1===i&&(i=e.length),e.slice(s,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){s=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(s,i)},extname(e){r(e,"path");let t=-1,n=0,s=-1,i=!0,o=0
;for(let r=e.length-1;r>=0;--r){const c=e.charCodeAt(r);if(c!==p)-1===s&&(i=!1,s=r+1),c===f?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=r+1;break}}return-1===t||-1===s||0===o||1===o&&t===s-1&&t===n+1?"":e.slice(t,s)},format(e){if(null===e||"object"!=typeof e)throw new g("pathObject","Object",e);return a("/",e)},parse(e){r(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===p;let s;n?(t.root="/",s=1):s=0;let i=-1,o=0,c=-1,a=!0,l=e.length-1,u=0;for(;l>=s;--l){const t=e.charCodeAt(l);if(t!==p)-1===c&&(a=!1,c=l+1),t===f?-1===i?i=l:1!==u&&(u=1):-1!==i&&(u=-1);else if(!a){o=l+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&&n?e.slice(1,c):e.slice(o,c)):(0===o&&n?(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):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,
t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===n.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===n.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===n.platform?t.win32.join:t.posix.join,t.resolve="win32"===n.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===n.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===n.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===n.platform?t.win32.basename:t.posix.basename,t.extname="win32"===n.platform?t.win32.extname:t.posix.extname,t.format="win32"===n.platform?t.win32.format:t.posix.format,t.parse="win32"===n.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===n.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===n.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===n.platform?t.win32.delimiter:t.posix.delimiter}),define(e[12],t([1,0]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){
if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function s(e,t){if(!e||!t)return e;const n=t.length,r=e.length;if(0===n||0===r)return e;let s=r,i=-1;for(;;){if(-1===(i=e.lastIndexOf(t,s-1))||i+n!==s)break;if(0===i)return"";s=i}return e.substring(0,s)}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 a(e){return o(e)||c(e)}function l(e,t,n=e.length){if("string"!=typeof e||"string"!=typeof t)return!1;for(let r=0;r<n;r++){const n=e.charCodeAt(r),s=t.charCodeAt(r);if(n!==s)if(a(n)&&a(s)){const e=Math.abs(n-s);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(s).toLowerCase())return!1}return!0}function u(e,t,n,r,s,i){for(;t<n&&s<i;){if(e[t]!==r[s])return!1;t+=1,s+=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"){const r=""+e,s=[r];for(let e=r.length;e<t;e++)s.push(n);return s.reverse().join("")};const f=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(f,function(e,n){const r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})},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 s(r(e,t),t)},t.ltrim=r,t.rtrim=s,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){
const n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let s="";return r.global&&(s+="g"),r.matchCase||(s+="i"),r.multiline&&(s+="m"),r.unicode&&(s+="u"),new RegExp(e,s)},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++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1},t.getLeadingWhitespace=function(e,t=0,n=e.length){for(let r=t;r<n;r++){const n=e.charCodeAt(r);if(32!==n&&9!==n)return e.substring(t,r)}return e.substring(t,n)
},t.lastNonWhitespaceIndex=function(e,t=e.length-1){for(let n=t;n>=0;n--){const 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 r=0;r<n;r++){let n=e.charCodeAt(r),s=t.charCodeAt(r);if(n===s)continue;c(n)&&(n+=32),c(s)&&(s+=32);const a=n-s;if(0!==a)return o(n)&&o(s)?a: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)&&l(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length;return!(t.length>e.length)&&l(e,t,n)},t.commonPrefixLength=function(e,t){let n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r},t.commonSuffixLength=function(e,t){let n,r=Math.min(e.length,t.length);const s=e.length-1,i=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(s-n)!==t.charCodeAt(i-n))return n;return r},t.overlap=function(e,t){
const n=e.length;let r=t.length,s=n-r;if(0===s)return e===t?n:0;for(s<0&&(r+=s,s=0);s<n&&r>0;){if(u(e,s,n,t,0,r))return r;r-=1,s+=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 m=/(?:[\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 m.test(e)}
;const g=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return g.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 r=/\b/g;let s=0;for(;r.test(e)&&!(e.length-r.lastIndex<n);)s=r.lastIndex,r.lastIndex+=1;return e.substring(s).replace(/^\s/,t.empty)};const v=/\x1B\x5B[12]?K/g,C=/\x1b\[\d+m/g,x=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(C,"")).replace(x,"")),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 r=0;r<t;r++)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,r=e.toLowerCase();let s=0,i=-1;for(;s<n;){const e=r.indexOf(t[s],i+1);if(e<0)return!1;i=e,s++}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[5],t([1,0,2]),function(e,t,n){"use strict";function r(e,t){let n=void 0,r=-1;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);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!==r&&(n+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==n&&(n+=e.charAt(s));else{void 0===n&&(n=e.substr(0,s));const t=m[i];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,s)),r=-1),n+=t):-1===r&&(r=s)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),
void 0!==n?n:e}function s(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++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:r;let s="",{scheme:i,authority:o,path:c,query:a,fragment:l}=e;if(i&&(s+=i,s+=":"),(o||"file"===i)&&(s+=h,s+=h),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?s+=n(t,!1):(s+=n(t.substr(0,e),!1),s+=":",s+=n(t.substr(e+1),!1)),s+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?s+=n(o,!1):(s+=n(o.substr(0,e),!1),s+=o.substr(e))}if(c){if(c.length>=3&&47===c.charCodeAt(0)&&58===c.charCodeAt(2)){
const 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)){const e=c.charCodeAt(0);e>=65&&e<=90&&(c=`${String.fromCharCode(e+32)}:${c.substr(2)}`)}s+=n(c,!0)}return a&&(s+="?",s+=n(a,!1)),l&&(s+="#",s+=t?l:r(l,!1)),s}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,c=/^\//,a=/^\/\//;let l=!0;t.setUriThrowOnMissingScheme=function(e){const t=l;return l=e,t};const u="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{static isUri(e){return e instanceof f||!!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,r,s,i=!1){"object"==typeof e?(this.scheme=e.scheme||u,this.authority=e.authority||u,this.path=e.path||u,this.query=e.query||u,this.fragment=e.fragment||u):(this.scheme=function(e,t){
return t||l?e||u:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,i),this.authority=t||u,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||u),this.query=r||u,this.fragment=s||u,function(e,t){if(!e.scheme){if(t||l)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(a.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 s(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:s,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=u),void 0===n?n=this.authority:null===n&&(n=u),void 0===r?r=this.path:null===r&&(r=u),void 0===s?s=this.query:null===s&&(s=u),void 0===i?i=this.fragment:null===i&&(i=u),t===this.scheme&&n===this.authority&&r===this.path&&s===this.query&&i===this.fragment?this:new p(t,n,r,s,i)}static parse(e,t=!1){const n=d.exec(e);return n?new p(n[2]||u,decodeURIComponent(n[4]||u),decodeURIComponent(n[5]||u),decodeURIComponent(n[7]||u),decodeURIComponent(n[9]||u),t):new p(u,u,u,u,u)}static file(e){let t=u;if(n.isWindows&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){const n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new p("file",t,e,u,u)}static from(e){
return new p(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 f)return e;{const t=new p(e);return t._fsPath=e.fsPath,t._formatted=e.external,t}}return e}}t.URI=f;class p extends f{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=s(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 m={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[4],t([1,0,5]),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[15],t([1,0,22,4]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listProcesses=function(t){return new Promise((s,i)=>{function o(e,n,r,s,i){const o=l.get(n);if(e===t||o){const u={name:c(r),cmd:r,pid:e,ppid:n,load:s,mem:i};l.set(e,u),e===t&&(a=u),o&&(o.children||(o.children=[]),o.children.push(u),o.children.length>1&&(o.children=o.children.sort((e,t)=>e.pid-t.pid)))}}function c(e){const t=/--disable-blink-features=Auxclick/;if(/\\watcher\\win32\\CodeHelper\.exe/.exec(e))return"watcherService ";if(/--crashes-directory/.exec(e))return"electron-crash-reporter";if(/\\pipe\\winpty-control/.exec(e))return"winpty-process";if(/conhost\.exe/.exec(e))return"console-window-host (Windows internal process)";let n=/--type=([a-zA-Z-]+)/.exec(e)
;if(n&&2===n.length)return"renderer"===n[1]?t.exec(e)?"shared-process":"window":n[1];const r=/[a-zA-Z-]+\.js/g;let s="";do{(n=r.exec(e))&&(s+=n+" ")}while(n);return s&&e.indexOf("node ")<0&&e.indexOf("node.exe")<0?`electron_node ${s}`:e}let a;const l=new Map;if("win32"===process.platform)new Promise((t,n)=>{e(["windows-process-tree"],t,n)}).then(e=>{e.getProcessList(t,n=>{e.getProcessCpuUsage(n,e=>{const n=new Map;e.forEach(e=>{const t=(e=>0===e.indexOf("\\\\?\\")?e.substr(4):0===e.indexOf("\\??\\")?e.substr(4):0===e.indexOf('"\\\\?\\')?'"'+e.substr(5):0===e.indexOf('"\\??\\')?'"'+e.substr(5):e)(e.commandLine||"");n.set(e.pid,{name:c(t),cmd:t,pid:e.pid,ppid:e.ppid,load:e.cpu||0,mem:e.memory||0})}),(a=n.get(t))?(n.forEach(e=>{const t=n.get(e.ppid);t&&(t.children||(t.children=[]),t.children.push(e))}),n.forEach(e=>{e.children&&(e.children=e.children.sort((e,t)=>e.pid-t.pid))}),s(a)):i(new Error(`Root process ${t} not found`))})},e.ProcessDataFlag.CommandLine|e.ProcessDataFlag.Memory)});else{
const t=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/;n.exec("/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=",{maxBuffer:1024e3,env:{LC_NUMERIC:"en_US.UTF-8"}},(c,u,h)=>{if(c||h)i(c||h.toString());else{const c=u.toString().split("\n");for(const e of c){const n=t.exec(e.trim());n&&6===n.length&&o(parseInt(n[1]),parseInt(n[2]),n[5],parseFloat(n[3]),parseFloat(n[4]))}if("linux"===process.platform){let t=[a];const o=[];for(;t.length;){const e=t.shift();e&&(o.push(e.pid),e.children&&(t=t.concat(e.children)))}let c=JSON.stringify(r.getPathFromAmdModule(e,"vs/base/node/cpuUsage.sh"));c+=" "+o.join(" "),n.exec(c,{},(e,t,n)=>{if(e||n)i(e||n.toString());else{const e=t.toString().split("\n");for(let t=0;t<o.length;t++)l.get(o[t]).load=parseFloat(e[t]);s(a)}})}else s(a)}})}})}}),define(e[17],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTEXT_MENU_CHANNEL="vscode:contextmenu",t.CONTEXT_MENU_CLOSE_CHANNEL="vscode:onCloseContextMenu"}),
define(e[18],t([1,0,19,17]),function(e,t,n,r){"use strict";function s(e,t){const n={id:t.length,label:e.label,type:e.type,accelerator:e.accelerator,checked:e.checked,enabled:"boolean"!=typeof e.enabled||e.enabled,visible:"boolean"!=typeof e.visible||e.visible};return t.push(e),Array.isArray(e.submenu)&&(n.submenu=e.submenu.map(e=>s(e,t))),n}Object.defineProperty(t,"__esModule",{value:!0});let i=0;t.popup=function(e,t){const o=[],c=i++,a=`vscode:onContextMenu${c}`,l=(e,t,n)=>{const r=o[t];r.click&&r.click(n)};n.ipcRenderer.once(a,l),n.ipcRenderer.once(r.CONTEXT_MENU_CLOSE_CHANNEL,(e,r)=>{r===c&&(n.ipcRenderer.removeListener(a,l),t&&t.onHide&&t.onHide())}),n.ipcRenderer.send(r.CONTEXT_MENU_CHANNEL,c,e.map(e=>s(e,o)),a,t)}}),define(e[20],t([21]),{}),define(e[16],t([1,0,11,4]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=n.dirname(r.getPathFromAmdModule(e,"")),i=n.join(s,"product.json"),o=e.__$__nodeRequire(i);process.env.VSCODE_DEV&&(o.nameShort+=" Dev",
o.nameLong+=" Dev",o.dataFolderName+="-dev"),t.default=o}),define(e[23],t([1,0,15,19,12,24,16,25,8,2,18,20]),function(e,t,n,r,s,i,o,c,a,l,u){"use strict";function h(e,t,n){const r=0===n;let c=t.name;if(r&&(c=`${o.default.applicationName} main`),"window"===c){c=void 0!==v.get(t.pid)?`${c} (${v.get(t.pid)})`:c}const a=r?c:`${s.repeat("    ",n)} ${c}`,l="win32"===process.platform?t.mem:i.totalmem()*(t.mem/100);e.push({cpu:Number(t.load.toFixed(0)),memory:Number((l/1048576).toFixed(0)),pid:Number(t.pid.toFixed(0)),name:c,formattedName:a,cmd:t.cmd}),Array.isArray(t.children)&&t.children.forEach(t=>h(e,t,n+1))}function d(e,t){let n,r=0;return e.forEach(e=>{e[t]>r&&(r=e[t],n=e.pid)}),n}function f(e){r.webFrame.setZoomLevel(e),a.setZoomFactor(r.webFrame.getZoomFactor()),a.setZoomLevel(r.webFrame.getZoomLevel(),!1)}function p(e){e.preventDefault();const t=[],n=parseInt(e.currentTarget.id);if(n&&"number"==typeof n){t.push({label:c.localize(4,null),click(){process.kill(n,"SIGTERM")}}),t.push({label:c.localize(5,null),
click(){process.kill(n,"SIGKILL")}}),t.push({type:"separator"}),t.push({label:c.localize(6,null),click(){const e=document.getElementById(n.toString());e&&r.clipboard.writeText(e.innerText)}}),t.push({label:c.localize(7,null),click(){const e=document.getElementById("process-list");e&&r.clipboard.writeText(e.innerText)}});const e=g.filter(e=>e.pid===n)[0];e&&function(e){const t=C.exec(e);return t&&t.length>=2||e.indexOf("node ")>=0||e.indexOf("node.exe")>=0}(e.cmd)&&(t.push({type:"separator"}),t.push({label:c.localize(8,null),click(){!function(e){const t={type:"node",request:"attach",name:`process ${e.pid}`};let n=C.exec(e.cmd);n&&n.length>=2?(4===n.length&&n[3]&&(t.port=parseInt(n[3])),t.protocol="debug"===n[1]?"legacy":"inspector"):t.processId=String(e.pid),(n=x.exec(e.cmd))&&3===n.length&&(t.port=parseInt(n[2])),r.ipcRenderer.send("vscode:workbenchCommand",{id:"debug.startFromConfig",from:"processExplorer",args:[t]})}(e)}}))}else t.push({label:c.localize(9,null),click(){
const e=document.getElementById("process-list");e&&r.clipboard.writeText(e.innerText)}});u.popup(t)}function m(e){!function(e){const t=document.createElement("style"),n=[];e.hoverBackground&&n.push(`tbody > tr:hover  { background-color: ${e.hoverBackground}; }`),e.hoverForeground&&n.push(`tbody > tr:hover{ color: ${e.hoverForeground}; }`),e.highlightForeground&&n.push(`.highest { color: ${e.highlightForeground}; }`),t.innerHTML=n.join("\n"),document.head&&document.head.appendChild(t),e.color&&(document.body.style.color=e.color)}(e.styles),f(e.zoomLevel),r.ipcRenderer.on("vscode:windowsInfoResponse",(e,t)=>{v=new Map,t.forEach(e=>v.set(e.pid,e.title))}),setInterval(()=>{r.ipcRenderer.send("windowsInfoRequest"),n.listProcesses(e.pid).then(e=>{!function(e){const t=document.getElementById("process-list");if(!t)return;t.innerHTML="";const n=d(e,"cpu"),r=d(e,"memory"),s=document.createElement("thead")
;s.innerHTML=`<tr>\n\t\t<th scope="col" class="cpu">${c.localize(0,null)}</th>\n\t\t<th scope="col" class="memory">${c.localize(1,null)}</th>\n\t\t<th scope="col" class="pid">${c.localize(2,null)}</th>\n\t\t<th scope="col" class="nameLabel">${c.localize(3,null)}</th>\n\t</tr>`;const i=document.createElement("tbody");e.forEach(e=>{const t=document.createElement("tr");t.id=e.pid;const s=document.createElement("td");e.pid===n?s.classList.add("centered","highest"):s.classList.add("centered"),s.textContent=e.cpu;const o=document.createElement("td");e.pid===r?o.classList.add("centered","highest"):o.classList.add("centered"),o.textContent=e.memory;const c=document.createElement("td");c.classList.add("centered"),c.textContent=e.pid;const a=document.createElement("th");a.scope="row",a.classList.add("data"),a.title=e.cmd,a.textContent=e.formattedName,t.append(s,o,c,a),i.appendChild(t)}),t.append(s,i)}(g=function(e){const t=[];return e&&h(t,e,0),t}(e));const t=document.getElementsByTagName("tr")
;for(let e=0;e<t.length;e++){t[e].addEventListener("contextmenu",e=>{p(e)})}})},1200),document.onkeydown=(e=>{const t=l.isMacintosh?e.metaKey:e.ctrlKey;t&&187===e.keyCode&&f(r.webFrame.getZoomLevel()+1),t&&189===e.keyCode&&f(r.webFrame.getZoomLevel()-1)})}Object.defineProperty(t,"__esModule",{value:!0});let g,v=new Map;const C=/\s--(inspect|debug)(-brk|port)?=(\d+)?/,x=/\s--(inspect|debug)-port=(\d+)/;t.startup=m})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/51b0b28134d51361cf996d2f0a1c698247aeabd8/core/vs\code\electron-browser\processExplorer\processExplorerMain.js.map
