/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["require","exports","vs/base/common/platform","vs/base/common/path","vs/base/common/event","vs/base/common/strings","vs/base/common/async","vs/base/common/errors","vs/base/common/extpath","vs/base/common/uri","vs/base/common/lifecycle","vs/base/common/cancellation","vs/base/common/types","vs/base/common/map","vs/base/common/objects","vs/base/common/buffer","vs/base/common/functional","vs/base/common/glob","vs/base/common/normalization","vs/base/common/iterator","child_process","fs","vs/base/common/console","vs/base/common/linkedList","vs/base/common/network","vs/base/common/arrays","vs/base/common/process","vs/base/common/uuid","vs/base/node/decoder","vs/workbench/services/files/node/watcher/nsfw/nsfwWatcherService","vs/base/node/encoding","vs/workbench/services/files/node/watcher/watcher","vs/base/common/resources","vs/workbench/services/files/node/watcher/nsfw/watcherIpc","vs/base/node/pfs","vs/base/common/amd","vs/platform/files/common/files","util","vs/base/node/extpath","vs/base/parts/ipc/common/ipc","vs/nls!vs/base/node/processes","vs/platform/instantiation/common/instantiation","vs/base/parts/ipc/node/ipc.cp","vs/base/node/processes","vs/nls!vs/workbench/services/files/node/watcher/nsfw/watcherApp","vs/nls","os","stream","iconv-lite","string_decoder","vscode-nsfw","vs/workbench/services/files/node/watcher/nsfw/watcherApp"],t=function(t){
for(var n=[],r=0,s=t.length;r<s;r++)n[r]=e[t[r]];return n};define(e[15],t([0,1]),function(e,t){"use strict";function n(){return new o}Object.defineProperty(t,"__esModule",{value:!0}),t.hasBuffer="undefined"!=typeof Buffer;let r,s;class i{static alloc(e){return new i(t.hasBuffer?Buffer.allocUnsafe(e):new Uint8Array(e))}static wrap(e){return t.hasBuffer&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new i(e)}static fromString(e){return t.hasBuffer?new i(Buffer.from(e)):(r||(r=new TextEncoder),new i(r.encode(e)))}static concat(e,t){if(void 0===t){t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].byteLength}const n=i.alloc(t);let r=0;for(let t=0,s=e.length;t<s;t++){const s=e[t];n.set(s,r),r+=s.byteLength}return n}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return t.hasBuffer?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}slice(e,t){return new i(this.buffer.slice(e,t))}set(e,t){this.buffer.set(e.buffer,t)}readUInt32BE(e){
return function(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}(this.buffer,e)}writeUInt32BE(e,t){!function(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}(this.buffer,e,t)}readUInt8(e){return function(e,t){return e[t]}(this.buffer,e)}writeUInt8(e,t){!function(e,t,n){e[n]=t}(this.buffer,e,t)}}t.VSBuffer=i,t.readableToBuffer=function(e){const t=[];let n;for(;n=e.read();)t.push(n);return i.concat(t)},t.bufferToReadable=function(e){let t=!1;return{read:()=>t?null:(t=!0,e)}},t.streamToBuffer=function(e){return new Promise((t,n)=>{const r=[];e.on("data",e=>r.push(e)),e.on("error",e=>n(e)),e.on("end",()=>t(i.concat(r)))})},t.bufferToStream=function(e){const t=n();return t.end(e),t},t.writeableBufferStream=n;class o{constructor(){this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]}}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){
this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(e){this.state.destroyed||(this.state.flowing?this.listeners.data.forEach(t=>t(e)):this.buffer.data.push(e))}error(e){this.state.destroyed||(this.state.flowing?this.listeners.error.forEach(t=>t(e)):this.buffer.error.push(e))}end(e){this.state.destroyed||(e instanceof Error?this.error(e):e&&this.write(e),this.state.flowing?(this.listeners.end.forEach(e=>e()),this.destroy()):this.state.ended=!0)}on(e,t){if(!this.state.destroyed)switch(e){case"data":this.listeners.data.push(t),this.resume();break;case"end":this.listeners.end.push(t),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(t),this.state.flowing&&this.flowErrors()}}flowData(){if(this.buffer.data.length>0){const e=i.concat(this.buffer.data);this.listeners.data.forEach(t=>t(e)),this.buffer.data.length=0}}flowErrors(){if(this.listeners.error.length>0){
for(const e of this.buffer.error)this.listeners.error.forEach(t=>t(e));this.buffer.error.length=0}}flowEnd(){return!!this.state.ended&&(this.listeners.end.forEach(e=>e()),this.listeners.end.length>0)}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0)}}}),define(e[7],t([0,1]),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"}});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[25],t([0,1,7]),function(e,t,r){"use strict";function s(e,t){let n=0,r=e.length;if(0===r)return 0;for(;n<r;){const s=Math.floor((n+r)/2);t(e[s])?r=s:n=s+1}return n}function i(e,t){return o(e,t,0,e.length-1,[]),e}function o(e,t,n,r,s){if(r<=n)return;const i=n+(r-n)/2|0;o(e,t,n,i,s),o(e,t,i+1,r,s),t(e[i],e[i+1])<=0||function(e,t,n,r,s,i){let o=n,c=r+1;for(let t=n;t<=s;t++)i[t]=e[t]
;for(let a=n;a<=s;a++)o>r?e[a]=i[c++]:c>s?e[a]=i[o++]:t(i[c],i[o])<0?e[a]=i[c++]:e[a]=i[o++]}(e,t,n,i,r,s)}function c(e,t,n){function r(e,t,n){if(0===t&&0===n.length)return;const r=s[s.length-1];r&&r.start+r.deleteCount===e?(r.deleteCount+=t,r.toInsert.push(...n)):s.push({start:e,deleteCount:t,toInsert:n})}const s=[];let i=0,o=0;for(;;){if(i===e.length){r(i,0,t.slice(o));break}if(o===t.length){r(i,e.length-i,[]);break}const s=e[i],c=t[o],a=n(s,c);0===a?(i+=1,o+=1):a<0?(r(i,1,[]),i+=1):a>0&&(r(i,0,[c]),o+=1)}return s}function a(e,t,n,r,i){for(const o=n.length;r<i;r++){const i=e[r];if(t(i,n[o-1])<0){n.pop();const e=s(n,e=>t(i,e)<0);n.splice(e,0,i)}}}function u(e,t){for(let n=0;n<e.length;n++){if(t(e[n]))return n}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t=0){return e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,n=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1
;if(e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(!n(e[r],t[r]))return!1;return!0},t.binarySearch=function(e,t,n){let r=0,s=e.length-1;for(;r<=s;){const i=(r+s)/2|0,o=n(e[i],t);if(o<0)r=i+1;else{if(!(o>0))return i;s=i-1}}return-(r+1)},t.findFirstInSorted=s,t.mergeSort=i,t.groupBy=function(e,t){const n=[];let r=void 0;for(const s of i(e.slice(0),t))r&&0===t(r[0],s)?r.push(s):(r=[s],n.push(r));return n},t.sortedDiff=c,t.delta=function(e,t,n){const r=c(e,t,n),s=[],i=[];for(const t of r)s.push(...e.slice(t.start,t.start+t.deleteCount)),i.push(...t.toInsert);return{removed:s,added:i}},t.top=function(e,t,n){if(0===n)return[];const r=e.slice(0,n).sort(t);return a(e,t,r,n,e.length),r},t.topAsync=function(e,t,s,i,o){return 0===s?Promise.resolve([]):new Promise((c,u)=>{(()=>n(this,void 0,void 0,function*(){const n=e.length,c=e.slice(0,s).sort(t);for(let u=s,l=Math.min(s+i,n);u<n;u=l,l=Math.min(l+i,n)){if(u>s&&(yield new Promise(e=>setTimeout(e))),o&&o.isCancellationRequested)throw r.canceled()
;a(e,t,c,u,l)}return c}))().then(c,u)})},t.coalesce=function(e){return e?e.filter(e=>!!e):e},t.coalesceInPlace=function(e){if(!e)return;let t=0;for(let n=0;n<e.length;n++)e[n]&&(e[t]=e[n],t+=1);e.length=t},t.move=function(e,t,n){e.splice(n,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.distinct=function(e,t){if(!t)return e.filter((t,n)=>e.indexOf(t)===n);const n=Object.create(null);return e.filter(e=>{const r=t(e);return!n[r]&&(n[r]=!0,!0)})},t.distinctES6=function(e){const t=new Set;return e.filter(e=>!t.has(e)&&(t.add(e),!0))},t.uniqueFilter=function(e){const t=Object.create(null);return n=>{const r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.lastIndex=function(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1},t.firstIndex=u,t.first=function(e,t,n){const r=u(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n=((e,t)=>e===t)){let r=0
;for(let s=0,i=Math.min(e.length,t.length);s<i&&n(e[s],t[s]);s++)r++;return r},t.flatten=function(e){return[].concat(...e)},t.range=function(e,t){let n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);const r=[];if(n<=t)for(let e=n;e<t;e++)r.push(e);else for(let e=n;e>t;e--)r.push(e);return r},t.fill=function(e,t,n=[]){for(let r=0;r<e;r++)n[r]=t;return n},t.index=function(e,t,n=(e=>e)){return e.reduce((e,r)=>{const s=t(r);return e[s]=n(r,e[s]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){const r=e.slice(0,t),s=e.slice(t);return r.concat(n,s)},t.shuffle=function(e,t){let n;if("number"==typeof t){let e=t;n=(()=>{const t=179426549*Math.sin(e++);return t-Math.floor(t)})}else n=Math.random;for(let t=e.length-1;t>0;t-=1){const r=Math.floor(n()*(t+1)),s=e[t];e[t]=e[r],e[r]=s}},t.pushToStart=function(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))},t.pushToEnd=function(e,t){const n=e.indexOf(t)
;n>-1&&(e.splice(n,1),e.push(t))},t.find=function(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r,n,e))return r}},t.mapArrayOrNot=function(e,t){return Array.isArray(e)?e.map(t):t(e)},t.asArray=function(e){return Array.isArray(e)?e:[e]}}),define(e[16],t([0,1]),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[19],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 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[10],t([0,1,16]),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=new Set,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clear()}clear(){this._toDispose.forEach(e=>e.dispose()),
this._toDispose.clear()}add(e){return this._isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.add(e),e}}t.DisposableStore=s;class i{constructor(){this._store=new s}dispose(){this._store.dispose()}_register(e){return this._store.add(e)}}i.None=Object.freeze({dispose(){}}),t.Disposable=i;class o{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=o;class c{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=c}),define(e[23],t([0,1,19]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}r.Undefined=new r(void 0);class s{constructor(){
this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){this._first=r.Undefined,this._last=r.Undefined,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===r.Undefined)this._first=n,this._last=n;else 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}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,
this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}iterator(){let e,t=this._first;return{next:()=>t===r.Undefined?n.FIN:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}toArray(){const e=[];for(let t=this._first;t!==r.Undefined;t=t.next)e.push(t.element);return e}}t.LinkedList=s}),define(e[4],t([0,1,7,16,10,23]),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 l({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 u={dispose(){}};e.None=function(){return u},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 u=new l({leakWarningThreshold:s,onFirstListenerAdd(){i=e(e=>{a++,o=t(o,e),r&&!c&&u.fire(o),clearTimeout(c),c=setTimeout(()=>{const e=o;o=void 0,c=void 0,(!r||a>1)&&u.fire(e),a=0},n)})},onLastListenerRemove(){i.dispose()}});return u.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 l({onFirstListenerAdd(){s||(s=e(e=>o.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(i):i())},onLastListenerRemove(){s&&s.dispose(),s=null}})
;return o.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 l({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return s.event},e.fromPromise=function(e){const t=new l;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 u{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 l{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=a>0?new u(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=l._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=new o.LinkedList);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>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.clear(),
this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}l._noop=function(){},t.Emitter=l;class h extends l{constructor(e){super(e),this._isPaused=0,this._eventQueue=new o.LinkedList,this._mergeFn=e&&e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}t.PauseableEmitter=h;class f extends l{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=f;class d{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new l({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 p{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=p;class m{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=i.Disposable.None,this.emitter=new l({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=m}),define(e[11],t([0,1,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}})
;var s;!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:r})}(s=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?r:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class o{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){
return this._token||(this._token=new i),this._token}cancel(){this._token?this._token instanceof i&&this._token.cancel():this._token=s.Cancelled}dispose(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof i&&this._token.dispose():this._token=s.None}}t.CancellationTokenSource=o}),define(e[6],t([0,1,11,7,4,10]),function(e,t,r,s,i,o){"use strict";function c(e){return e&&"function"==typeof e.then}function a(e){const t=new r.CancellationTokenSource,n=e(t.token),i=new Promise((e,r)=>{t.token.onCancellationRequested(()=>{r(s.canceled())}),Promise.resolve(n).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),r(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 u(e,t){return t?new Promise((n,r)=>{const i=setTimeout(n,e);t.onCancellationRequested(()=>{clearTimeout(i),r(s.canceled())})}):a(t=>u(e,t))}function l(e){function t(i){void 0!==i&&null!==i&&n.push(i);const o=r<s?e[r++]():null
;return o?o.then(t):Promise.resolve(n)}const n=[];let r=0;const s=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=c,t.createCancelablePromise=a,t.raceCancellation=function(e,t,n){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(n)))])},t.asPromise=function(e){return new Promise((t,n)=>{const r=e();c(r)?r.then(t,n):t(r)})};class h{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=h;class f{
constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=f;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 p{constructor(e){this.delayer=new d(e),this.throttler=new h}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=p;class m{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=m,t.timeout=u,t.disposableTimeout=function(e,t=0){const n=setTimeout(e,t);return o.toDisposable(()=>clearTimeout(n))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=l,t.first=function(e,t=(e=>!!e),n=null){let r=0;const s=e.length,i=()=>{if(r>=s)return Promise.resolve(n);const o=e[r++];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 i.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 v extends g{constructor(){super(1)}}t.Queue=v;class y{constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new v;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=y;class _ extends o.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=_;class w extends o.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=w;class b{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=b
;class E extends b{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=E,function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{const n=setTimeout(()=>t(e));let r=!1;return{dispose(){r||(r=!0,clearTimeout(n))}}})}else t.runWhenIdle=((e,t)=>{const n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(n))}}})}();class C{constructor(e){this._didRun=!1,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=C,
t.retry=function(e,t,r){return n(this,void 0,void 0,function*(){let n;for(let s=0;s<r;s++)try{return yield e()}catch(e){n=e,yield u(t)}return Promise.reject(n)})}}),define(e[24],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote"}(t.Schemas||(t.Schemas={}))}),define(e[2],t([0,1]),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",u=void 0;const l="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||l){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",u=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=u;const f="object"==typeof self?self:"object"==typeof global?global:{};t.globals=f;let d=null;t.setImmediate=function(e){return null===d&&(d=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)),d(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[26],t([0,1,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[3],t([0,1,26]),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>=u&&e<=h||e>=l&&e<=f}function c(e,t,n,r){let s,i="",o=0,c=-1,a=0;for(let u=0;u<=e.length;++u){if(u<e.length)s=e.charCodeAt(u);else{if(r(s))break;s=p}if(r(s)){if(c===u-1||1===a);else if(c!==u-1&&2===a){if(i.length<2||2!==o||i.charCodeAt(i.length-1)!==d||i.charCodeAt(i.length-2)!==d){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=u,a=0;continue}if(2===i.length||1===i.length){i="",o=0,c=u,a=0;continue}}t&&(i.length>0?i+=`${n}..`:i="..",o=2)}else i.length>0?i+=n+e.slice(c+1,u):i=e.slice(c+1,u),o=u-c-1;c=u,a=0}else s===d&&-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 u=65,l=97,h=90,f=122,d=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 u;if(c>=0?u=e[c]:t?void 0!==(u=n.env["="+t]||n.cwd())&&u.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(u=t+"\\"):u=n.cwd(),r(u,"path"),0===u.length)continue;const l=u.length;let h=0,f="",d=!1;const p=u.charCodeAt(0);if(l>1)if(s(p))if(d=!0,s(u.charCodeAt(1))){let e=2,t=e;for(;e<l&&!s(u.charCodeAt(e));++e);if(e<l&&e!==t){const n=u.slice(t,e);for(t=e;e<l&&s(u.charCodeAt(e));++e);if(e<l&&e!==t){for(t=e;e<l&&!s(u.charCodeAt(e));++e);e===l?(f="\\\\"+n+"\\"+u.slice(t),h=e):e!==t&&(f="\\\\"+n+"\\"+u.slice(t,e),h=e)}}}else h=1;else o(p)&&58===u.charCodeAt(1)&&(f=u.slice(0,2),h=2,l>2&&s(u.charCodeAt(2))&&(d=!0,h=3));else s(p)&&(h=1,d=!0)
;if(!(f.length>0&&t.length>0&&f.toLowerCase()!==t.toLowerCase())&&(0===t.length&&f.length>0&&(t=f),a||(i=u.slice(h)+"\\"+i,a=d),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 u=e.charCodeAt(0);if(t>1)if(s(u))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(u)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&s(e.charCodeAt(2))&&(a=!0,i=3));else if(s(u))return"\\";let l;return 0!==(l=i<t?c(e.slice(i),!a,"\\",s):"").length||a||(l="."),l.length>0&&s(e.charCodeAt(t-1))&&(l+="\\"),void 0===n?a?l.length>0?"\\"+l:"\\":l.length>0?l:"":a?l.length>0?n+"\\"+l:n+"\\":l.length>0?n+l: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 u=0;for(;u<n.length&&n.charCodeAt(u)===m;++u);let l=n.length;for(;l-1>u&&n.charCodeAt(l-1)===m;--l);const h=l-u,f=a<h?a:h;let d=-1,p=0;for(;p<=f;++p){if(p===f){if(h>f){if(n.charCodeAt(u+p)===m)return i.slice(u+p+1);if(2===p)return i.slice(u+p)}
a>f&&(e.charCodeAt(o+p)===m?d=p:2===p&&(d=3));break}const t=e.charCodeAt(o+p);if(t!==n.charCodeAt(u+p))break;t===m&&(d=p)}if(p!==f&&-1===d)return i;let g="";for(-1===d&&(d=0),p=o+d+1;p<=c;++p)p!==c&&e.charCodeAt(p)!==m||(0===g.length?g+="..":g+="\\..");return g.length>0?g+i.slice(u+d,l):(u+=d,i.charCodeAt(u)===m&&++u,i.slice(u,l))},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!==d)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 u=e.charCodeAt(0);if(t>1)if(s(u)){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(u)&&58===e.charCodeAt(1)&&(n=a=2,t>2&&s(e.charCodeAt(2))&&(n=a=3));else if(s(u))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 u=e.charCodeAt(n);if(s(u)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1),r>=0&&(u===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,u=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===d?-1===n?n=r:1!==u&&(u=1):-1!==n&&(u=-1)}return-1===n||-1===c||0===u||1===u&&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,u=i,l=-1,h=!0,f=e.length-1,p=0;for(;f>=i;--f)if(c=e.charCodeAt(f),s(c)){if(!h){u=f+1;break}}else-1===l&&(h=!1,l=f+1),c===d?-1===a?a=f:1!==p&&(p=1):-1!==a&&(p=-1)
;return-1===a||-1===l||0===p||1===p&&a===l-1&&a===u+1?-1!==l&&(t.base=t.name=e.slice(u,l)):(t.name=e.slice(u,a),t.base=e.slice(u,l),t.ext=e.slice(a,l)),t.dir=u>0&&u!==i?e.slice(0,u-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,u=o<a?o:a;let l=-1,h=0;for(;h<=u;++h){if(h===u){if(a>u){if(n.charCodeAt(c+h)===p)return n.slice(c+h+1);if(0===h)return n.slice(c+h)}else o>u&&(e.charCodeAt(s+h)===p?l=h:0===h&&(l=0));break}const t=e.charCodeAt(s+h);if(t!==n.charCodeAt(c+h))break;t===p&&(l=h)}let f="";for(h=s+l+1;h<=i;++h)h!==i&&e.charCodeAt(h)!==p||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(c+l):(c+=l,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===d?-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,u=e.length-1,l=0;for(;u>=s;--u){const t=e.charCodeAt(u);if(t!==p)-1===c&&(a=!1,c=u+1),t===d?-1===i?i=u:1!==l&&(l=1):-1!==i&&(l=-1);else if(!a){o=u+1;break}}
return-1===i||-1===c||0===l||1===l&&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[5],t([0,1]),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 u(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 l(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 f(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 d=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(d,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)&&u(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length
;return!(t.length>e.length)&&u(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(l(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,y=/\x1b\[\d+m/g,_=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(y,"")).replace(_,"")),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=f,t.stripUTF8BOM=function(e){return f(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[8],t([0,1,2,5,3]),function(e,t,n,r,s){"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,s.posix.sep)},t.getRoot=function(e,t=s.posix.sep){if(!e)return"";const n=e.length,r=e.charCodeAt(0);if(i(r)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){let r=3;const s=r;for(;r<n&&!i(e.charCodeAt(r));r++);if(s!==r&&!i(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(i(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(o(r)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let c=e.indexOf("://");if(-1!==c)for(c+=3;c<n;c++)if(i(e.charCodeAt(c)))return e.slice(0,c+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 r=2;const s=r;for(;r<e.length&&92!==(t=e.charCodeAt(r));r++);return s!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};const c=/[\\/:\*\?"<>\|]/g,a=/[\\/]/g,u=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e,t=n.isWindows){const r=t?c:a;return!(!e||0===e.length||/^\s+$/.test(e)||(r.lastIndex=0,r.test(e)||t&&u.test(e)||"."===e||".."===e||t&&"."===e[e.length-1]||t&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,n){const s=e===t;return!n||s?s:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,n,i=s.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!r.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,t.sanitizeFilePath=function(e,t){return n.isWindows&&r.endsWith(e,":")&&(e+=s.sep),s.isAbsolute(e)||(e=s.join(t,e)),e=s.normalize(e),n.isWindows?(e=r.rtrim(e,s.sep),r.endsWith(e,":")&&(e+=s.sep)):(e=r.rtrim(e,s.sep))||(e=s.sep),e},t.isRootOrDriveLetter=function(e){const t=s.normalize(e);return n.isWindows?!(e.length>3)&&o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&(2===e.length||92===t.charCodeAt(2)):t===s.posix.sep}}),define(e[12],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==u.number||e.constructor!==Array)}function r(e){return typeof e===u.string||e instanceof String}function s(e){return!(typeof e!==u.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function i(e){return typeof e===u.undefined}function o(e){return i(e)||null===e}function c(e){return typeof e===u.function}function a(e,t){if(r(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 u={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(e=>r(e))},t.isObject=s,t.isNumber=function(e){return(typeof e===u.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=i,t.isUndefinedOrNull=o;const l=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!s(e))return!1;for(let t in e)if(l.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 r=0;r<n;r++)a(e[r],t[r])},
t.validateConstraint=a,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},t.withNullAsUndefined=function(e){return null===e?void 0:e},t.withUndefinedAsNull=function(e){return void 0===e?null:e}}),define(e[14],t([0,1,12]),function(e,t,n){"use strict";function r(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]=r(e[n]):t[n]=e[n]}),t}function s(e,t,r){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(s(i,t,r));return n}if(n.isObject(e)){if(r.has(e))throw new Error("Cannot clone recursive data-structure");r.add(e);const n={};for(let i in e)c.call(e,i)&&(n[i]=s(e[i],t,r));return r.delete(e),n}return e}function i(e,t,r=!0){return n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(s=>{
s in e?r&&(n.isObject(e[s])&&n.isObject(t[s])?i(e[s],t[s],r):e[s]=t[s]):e[s]=t[s]}),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,r;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 s=[];for(r in e)s.push(r);s.sort();const i=[];for(r in t)i.push(r);if(i.sort(),!o(s,i))return!1;for(n=0;n<s.length;n++)if(!o(e[s[n]],t[s[n]]))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=r,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const n in e)if(c.call(e,n)){const r=e[n];"object"!=typeof r||Object.isFrozen(r)||t.push(r)}}return e};const c=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return s(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.safeStringify=function(e){const t=[];return JSON.stringify(e,(e,r)=>{if(n.isObject(r)||Array.isArray(r)){if(-1!==t.indexOf(r))return"[Circular]";t.push(r)}return r})},t.getOrDefault=function(e,t,n){const r=t(e);return void 0===r?n:r},t.distinct=function(e,t){const n=Object.create(null);return e&&t?(Object.keys(t).forEach(r=>{const s=e[r],i=t[r];o(s,i)||(n[r]=i)}),n):n}}),define(e[9],t([0,1,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=g[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+=g[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:u}=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)),u&&(s+="#",s+=t?u:r(u,!1)),s}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,c=/^\//,a=/^\/\//;let u=!0;t.setUriThrowOnMissingScheme=function(e){const t=u;return u=e,t};const l="",h="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;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,r,s,i=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){
return t||u?e||l:(e||(console.trace("BAD uri lacks scheme, falling back to file-scheme."),e="file"),e)}(e,i),this.authority=t||l,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||l),this.query=r||l,this.fragment=s||l,function(e,t){if(!e.scheme){if(t||u)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=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===s?s=this.query:null===s&&(s=l),void 0===i?i=this.fragment:null===i&&(i=l),t===this.scheme&&n===this.authority&&r===this.path&&s===this.query&&i===this.fragment?this:new m(t,n,r,s,i)}static parse(e,t=!1){const n=f.exec(e);return n?new m(n[2]||l,decodeURIComponent(n[4]||l),decodeURIComponent(n[5]||l),decodeURIComponent(n[7]||l),decodeURIComponent(n[9]||l),t):new m(l,l,l,l,l)}static file(e){let t=l;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 m("file",t,e,l,l)}static from(e){
return new m(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;{const t=new m(e);return t._formatted=e.external,t._fsPath=e._sep===p?e.fsPath:null,t}}return e}}t.URI=d;const p=n.isWindows?1:void 0;class m extends d{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,e._sep=p),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 g={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[35],t([0,1,9]),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[22],t([0,1,9]),function(e,t,n){"use strict";function r(e){const t=[];let n;try{const r=JSON.parse(e.arguments),s=r[r.length-1];s&&s.__$stack&&(r.pop(),n=s.__$stack),t.push(...r)}catch(n){t.push("Unable to log remote console arguments",e.arguments)}return{args:t,stack:n}}function s(e){if("string"!=typeof e)return s(r(e).stack);const t=e;if(t){const e=i(t),r=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(e||"");if(r&&4===r.length)return{uri:n.URI.file(r[1]),line:Number(r[2]),column:Number(r[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=r,t.getFirstFrame=s,t.log=function(e,t){const{args:n,stack:s}=r(e),c="string"==typeof n[0]&&1===n.length;let a=i(s);a&&(a=`(${a.trim()})`);let u=[];u="string"==typeof n[0]?a&&c?[`%c[${t}] %c${n[0]} %c${a}`,o("blue"),o("black"),o("grey")]:[`%c[${t}] %c${n[0]}`,o("blue"),o("black"),...n.slice(1)]:[`%c[${t}]%`,o("blue"),...n],a&&!c&&u.push(a),console[e.severity].apply(console,u)}}),define(e[13],t([0,1,9,19]),function(e,t,n,r){"use strict";function s(e){const t=[];return e.forEach(e=>t.push(e)),t}function i(e){const t=[];return e.forEach((e,n)=>t.push(n)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=s,t.keys=i,t.getOrSet=function(e,t,n){let r=e.get(t);return void 0===r&&(r=n,e.set(t,r)),r},t.mapToString=function(e){const t=[];return e.forEach((e,n)=>{t.push(`${n} => ${e}`)}),`Map(${e.size}) {${t.join(", ")}}`},t.setToString=function(e){const t=[];return e.forEach(e=>{t.push(e)}),`Set(${e.size}) {${t.join(", ")}}`},
t.mapToSerializable=function(e){const t=[];return e.forEach((e,n)=>{t.push([n,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[n,r]of e)t.set(n,r);return t};class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=o;class c{reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){let t=0;const n=e.length;let r=this._from;for(;t<n&&r<this._to;){const n=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==n)return n;t+=1,r+=1}return n===this._to-this._from?0:t<n?-1:1}value(){
return this._value.substring(this._from,this._to)}}t.PathIterator=c;class a{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class u{constructor(e){this._iter=e}static forPaths(){return new u(new c)}static forStrings(){return new u(new o)}clear(){this._root=void 0}set(e,t){const n=this._iter.reset(e);let r;for(this._root||(this._root=new a,this._root.segment=n.value()),r=this._root;;){const e=n.cmp(r.segment);if(e>0)r.left||(r.left=new a,r.left.segment=n.value()),r=r.left;else if(e<0)r.right||(r.right=new a,r.right.segment=n.value()),r=r.right;else{if(!n.hasNext())break;n.next(),r.mid||(r.mid=new a,r.mid.segment=n.value()),r=r.mid}}const s=r.value;return r.value=t,r.key=e,s}get(e){const t=this._iter.reset(e);let n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0}delete(e){const t=this._iter.reset(e),n=[];let r=this._root;for(;r;){const e=t.cmp(r.segment);if(e>0)n.push([1,r]),
r=r.left;else if(e<0)n.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;n.length>0&&r.isEmpty();){let[e,t]=n.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}r=t}break}t.next(),n.push([0,r]),r=r.mid}}}findSubstr(e){const t=this._iter.reset(e);let n=this._root,r=void 0;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),r=n.value||r,n=n.mid}}return n&&n.value||r}findSuperstr(e){const t=this._iter.reset(e);let n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())return n.mid?this._nodeIterator(n.mid):void 0;t.next(),n=n.mid}}}_nodeIterator(e){let t,n,s;return{next:()=>(s||(s=[],n=0,this._forEach(e,e=>s.push(e))),n>=s.length?r.FIN:(t?t.value=s[n++]:t={done:!1,value:s[n++]},t))}}forEach(e){this._forEach(this._root,e)}_forEach(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))}}
t.TernarySearchTree=u;class l{constructor(){this.map=new Map,this.ignoreCase=!1}set(e,t){this.map.set(this.toKey(e),t)}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e){this.map.forEach(e)}values(){return s(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return i(this.map).map(e=>n.URI.parse(e))}clone(){const e=new l;return this.map.forEach((t,n)=>e.map.set(n,t)),e}}t.ResourceMap=l;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class h{constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}
set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),this._size++}}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._head;for(;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next}values(){const e=[];let t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){const e=[];let t=this._head;for(;t;)e.push(t.key),t=t.next;return e}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,
this._size=n,t&&(t.previous=void 0)}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),
e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=h;class f extends h{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e){return super.get(e,2)}peek(e){return super.get(e,0)}set(e,t){super.set(e,t,2),this.checkTrim()}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}t.LRUCache=f}),define(e[17],t([0,1,25,5,8,3,13,6]),function(e,t,n,r,s,i,o,c){"use strict";function a(e){switch(e){case 0:return"";case 1:
return`${E}*?`;default:return`(?:${b}|${E}+${b}|${b}${E}+)*?`}}function u(e,t){if(!e)return[];const n=[];let r=!1,s=!1,i="";for(const o of e){switch(o){case t:if(!r&&!s){n.push(i),i="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":s=!0;break;case"]":s=!1}i+=o}return i&&n.push(i),n}function l(e){if(!e)return"";let t="";const n=u(e,w);if(n.every(e=>e===_))t=".*";else{let e=!1;n.forEach((s,i)=>{if(s===_)return void(e||(t+=a(2),e=!0));let o=!1,c="",h=!1,f="";for(const e of s)if("}"!==e&&o)c+=e;else if(!h||"]"===e&&f)switch(e){case"{":o=!0;continue;case"[":h=!0;continue;case"}":const n=`(?:${u(c,",").map(e=>l(e)).join("|")})`;t+=n,o=!1,c="";break;case"]":t+="["+f+"]",h=!1,f="";break;case"?":t+=E;continue;case"*":t+=a(1);continue;default:t+=r.escapeRegExpCharacters(e)}else{let t;f+=t="-"===e?e:"^"!==e&&"!"!==e||f?e===w?"":r.escapeRegExpCharacters(e):"^"}i<n.length-1&&(n[i+1]!==_||i+2<n.length)&&(t+=b),e=!1})}return t}function h(e,t){if(!e)return L;let s;s="string"!=typeof e?e.pattern:e
;const i=`${s=s.trim()}_${!!t.trimForExclusions}`;let o=F.get(i);if(o)return f(o,e);let c;if(x.test(s)){const e=s.substr(4);o=function(t,n){return"string"==typeof t&&r.endsWith(t,e)?s:null}}else o=(c=A.exec(d(s,t)))?function(e,t){const n=`/${e}`,s=`\\${e}`,i=function(i,o){return"string"!=typeof i?null:o?o===e?t:null:i===e||r.endsWith(i,n)||r.endsWith(i,s)?t:null},o=[e];return i.basenames=o,i.patterns=[t],i.allBasenames=o,i}(c[1],s):(t.trimForExclusions?D:P).test(s)?function(e,t){const r=y(e.slice(1,-1).split(",").map(e=>h(e,t)).filter(e=>e!==L),e),s=r.length;if(!s)return L;if(1===s)return r[0];const i=function(t,n){for(let s=0,i=r.length;s<i;s++)if(r[s](t,n))return e;return null},o=n.first(r,e=>!!e.allBasenames);o&&(i.allBasenames=o.allBasenames);const c=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);c.length&&(i.allPaths=c);return i}(s,t):(c=O.exec(d(s,t)))?p(c[1].substr(1),s,!0):(c=S.exec(d(s,t)))?p(c[1],s,!1):function(e){try{const t=new RegExp(`^${l(e)}$`);return function(n,r){return t.lastIndex=0,
"string"==typeof n&&t.test(n)?e:null}}catch(e){return L}}(s);return F.set(i,o),f(o,e)}function f(e,t){return"string"==typeof t?e:function(n,r){return s.isEqualOrParent(n,t.base)?e(i.relative(t.base,n),r):null}}function d(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function p(e,t,n){const s=i.sep!==i.posix.sep?e.replace(C,i.sep):e,o=i.sep+s,c=n?function(e,n){return"string"!=typeof e||e!==s&&!r.endsWith(e,o)?null:t}:function(e,n){return"string"==typeof e&&e===s?t:null};return c.allPaths=[(n?"*/":"./")+e],c}function m(e,t={}){if(!e)return I;if("string"==typeof e||v(e)){const n=h(e,t);if(n===L)return I;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const r=y(Object.getOwnPropertyNames(e).map(n=>(function(e,t,n){if(!1===t)return L;const r=h(e,n);if(r===L)return L;if("boolean"==typeof t)return r;if(t){const n=t.when;if("string"==typeof n){const t=(t,s,i,o)=>{
if(!o||!r(t,s))return null;const a=n.replace("$(basename)",i),u=o(a);return c.isThenable(u)?u.then(t=>t?e:null):u?e:null};return t.requiresSiblings=!0,t}}return r})(n,e[n],t)).filter(e=>e!==L)),s=r.length;if(!s)return L;if(!r.some(e=>!!e.requiresSiblings)){if(1===s)return r[0];const e=function(e,t){for(let n=0,s=r.length;n<s;n++){const s=r[n](e,t);if(s)return s}return null},t=n.first(r,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const i=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return i.length&&(e.allPaths=i),e}const o=function(e,t,n){let s=void 0;for(let o=0,c=r.length;o<c;o++){const c=r[o];c.requiresSiblings&&n&&(t||(t=i.basename(e)),s||(s=t.substr(0,t.length-i.extname(e).length)));const a=c(e,t,s,n);if(a)return a}return null},a=n.first(r,e=>!!e.allBasenames);a&&(o.allBasenames=a.allBasenames);const u=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);u.length&&(o.allPaths=u);return o}(e,t)}function g(e){const t={};for(const n of e)t[n]=!0;return t}function v(e){const t=e
;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function y(e,t){const n=e.filter(e=>!!e.basenames);if(n.length<2)return e;const r=n.reduce((e,t)=>{const n=t.basenames;return n?e.concat(n):e},[]);let s;if(t){s=[];for(let e=0,n=r.length;e<n;e++)s.push(t)}else s=n.reduce((e,t)=>{const n=t.patterns;return n?e.concat(n):e},[]);const i=function(e,t){if("string"!=typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?s[n]:null};i.basenames=r,i.patterns=s,i.allBasenames=r;const o=e.filter(e=>!e.basenames);return o.push(i),o}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};const _="**",w="/",b="[/\\\\]",E="[^/\\\\]",C=/\//g;t.splitGlobAware=u
;const x=/^\*\*\/\*\.[\w\.-]+$/,A=/^\*\*\/([\w\.-]+)\/?$/,P=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,D=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,O=/^\*\*((\/[\w\.-]+)+)\/?$/,S=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,F=new o.LRUCache(1e4),I=function(){return!1},L=function(){return null};t.match=function(e,t,n){return!(!e||"string"!=typeof t)&&m(e)(t,void 0,n)},t.parse=m,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return n=>(t||(t=(e()||Promise.resolve([])).then(e=>e?g(e):{})),t.then(e=>!!e[n]))},t.hasSiblingFn=function(e){if(!e)return;let t;return n=>{if(!t){const n=e();t=n?g(n):{}}return!!t[n]}},t.isRelativePattern=v,t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[18],t([0,1,13]),function(e,t,n){"use strict";function r(e,n,r){if(!t.canNormalize||!e)return e;const s=r.get(e);if(s)return s;let i;return i=o.test(e)?e.normalize(n):e,r.set(e,i),i}Object.defineProperty(t,"__esModule",{value:!0
}),t.canNormalize="function"==typeof"".normalize;const s=new n.LRUCache(1e4);t.normalizeNFC=function(e){return r(e,"NFC",s)};const i=new n.LRUCache(1e4);t.normalizeNFD=function(e){return r(e,"NFD",i)};const o=/[^\u0000-\u0080]/}),define(e[32],t([0,1,8,3,9,5,24,2,17,13]),function(e,t,n,r,s,i,o,c,a,u){"use strict";function l(e){return!e||e.scheme!==o.Schemas.file||!c.isLinux}function h(e,t,r=l(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return n.isEqualOrParent(p(e),p(t),r);if(f(e.authority,t.authority))return n.isEqualOrParent(e.path,t.path,r,"/")}return!1}function f(e,t){return e===t||i.equalsIgnoreCase(e,t)}function d(e){return r.posix.basename(e.path)}function p(e){let t;const r=e.path;return t=e.authority&&r.length>1&&e.scheme===o.Schemas.file?`//${e.authority}${r}`:c.isWindows&&47===r.charCodeAt(0)&&n.isWindowsDriveLetter(r.charCodeAt(1))&&58===r.charCodeAt(2)?r.substr(1):r,c.isWindows&&(t=t.replace(/\//g,"\\")),t}function m(e,t=r.sep){if(e.scheme===o.Schemas.file){const r=p(e)
;return r.length>n.getRoot(r).length&&r[r.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)}}function g(e,t){if(e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===o.Schemas.file){const s=r.relative(e.path,t.path);return c.isWindows?n.toSlashes(s):s}return r.posix.relative(e.path||"/",t.path||"/")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return l(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=l,t.basenameOrAuthority=function(e){return d(e)||e.authority},t.isEqualOrParent=h,t.isEqualAuthority=f,t.isEqual=function(e,t,n=l(e)){if(e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;const r=e.path||"/",s=t.path||"/";return r===s||n&&i.equalsIgnoreCase(r||"/",s||"/")},t.basename=d,t.extname=function(e){return r.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return s.URI.file(r.dirname(p(e)));let t=r.posix.dirname(e.path)
;return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/"),e.with({path:t})},t.joinPath=function(e,...t){let n;return n=e.scheme===o.Schemas.file?s.URI.file(r.join(p(e),...t)).path:r.posix.join(e.path||"/",...t),e.with({path:n})},t.normalizePath=function(e){if(!e.path.length)return e;let t;return t=e.scheme===o.Schemas.file?s.URI.file(r.normalize(p(e))).path:r.posix.normalize(e.path),e.with({path:t})},t.originalFSPath=p,t.isAbsolutePath=function(e){return!!e.path&&"/"===e.path[0]},t.hasTrailingPathSeparator=m,t.removeTrailingPathSeparator=function(e,t=r.sep){return m(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.addTrailingPathSeparator=function(e,t=r.sep){let s=!1;if(e.scheme===o.Schemas.file){const r=p(e);s=void 0!==r&&r.length===n.getRoot(r).length&&r[r.length-1]===t}else{t="/";const n=e.path;s=1===n.length&&47===n.charCodeAt(n.length-1)}return s||m(e,t)?e:e.with({path:e.path+"/"})},t.relativePath=g,
t.resolvePath=function(e,t){if(e.scheme===o.Schemas.file){const n=s.URI.file(r.resolve(p(e),t));return e.with({authority:n.authority,path:n.path})}return e.with({path:r.posix.resolve(e.path,t)})},t.distinctParents=function(e,t){const n=[];for(let r=0;r<e.length;r++){const s=t(e[r]);e.some((e,n)=>n!==r&&h(s,t(e)))||n.push(e[r])}return n};!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(t.DataUri||(t.DataUri={}));class v{constructor(e,t){this.expressionsByRoot=u.TernarySearchTree.forPaths(),this.globalExpression=a.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{root:e.root,expression:a.parse(e.expression)})}matches(e){
const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const n=g(t.root,e);if(n&&t.expression(n))return!0}return!!this.globalExpression(e.path)}}t.ResourceGlobMatcher=v,t.toLocalResource=function(e,t){if(t){let n=e.path;return n&&n[0]!==r.posix.sep&&(n=r.posix.sep+n),e.with({scheme:o.Schemas.vscodeRemote,authority:t,path:n})}return e.with({scheme:o.Schemas.file})}}),define(e[27],t([0,1]),function(e,t){"use strict";function n(){return new i}function r(e){return o.test(e)}Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(e){this._value=e}asHex(){return this._value}}class i extends s{constructor(){
super([i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-","4",i._randomHex(),i._randomHex(),i._randomHex(),"-",i._oneOf(i._timeHighBits),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return i._oneOf(i._chars)}}i._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i._timeHighBits=["8","9","a","b"],t.v4=n;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;t.isUUID=r,t.parse=function(e){if(!r(e))throw new Error("invalid uuid");return new s(e)},t.generateUuid=function(){return n().asHex()}}),define(e[28],t([0,1,49]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e="utf8"){this.stringDecoder=new n.StringDecoder(e),this.remaining=null}write(e){const t=[],n=this.remaining?this.remaining+this.stringDecoder.write(e):this.stringDecoder.write(e);if(n.length<1)return t;let r,s=0,i=s;for(;i<n.length;)if(13===(r=n.charCodeAt(i))||10===r){if(t.push(n.substring(s,i)),++i<n.length){const e=r;r=n.charCodeAt(i),(13===e&&10===r||10===e&&13===r)&&i++}s=i}else i++;return this.remaining=s<n.length?n.substr(s):null,t}end(){return this.remaining}}t.LineDecoder=r}),define(e[30],t([0,1,48,2,20,47]),function(e,t,r,s,i,o){"use strict";function c(e,t){return t.minBytesRequiredForDetection||(t.minBytesRequiredForDetection=t.guessEncoding?p:d),new Promise((n,s)=>{const i=new class extends o.Writable{constructor(){super(...arguments),this.bufferedChunks=[],this.bytesBuffered=0}_write(e,n,r){if(!Buffer.isBuffer(e))return r(new Error("toDecodeStream(): data must be a buffer"))
;this.decodeStream?this.decodeStream.write(e,r):(this.bufferedChunks.push(e),this.bytesBuffered+=e.byteLength,this.decodeStreamPromise?this.decodeStreamPromise.then(()=>r(null),e=>r(e)):"number"==typeof t.minBytesRequiredForDetection&&this.bytesBuffered>=t.minBytesRequiredForDetection?this._startDecodeStream(r):r(null))}_startDecodeStream(e){this.decodeStreamPromise=Promise.resolve(h({buffer:Buffer.concat(this.bufferedChunks),bytesRead:this.bytesBuffered},t.guessEncoding)).then(s=>{s.encoding=t.overwriteEncoding(s.encoding),this.decodeStream=function(e){return r.decodeStream(a(e))}(s.encoding),this.decodeStream.write(Buffer.concat(this.bufferedChunks),e),this.bufferedChunks.length=0,n({detected:s,stream:this.decodeStream})},t=>{this.emit("error",t),e(t)})}_final(e){this.decodeStream?this.decodeStream.end(e):this._startDecodeStream(()=>this.decodeStream.end(e))}};e.on("error",s),e.pipe(i)})}function a(e){return e===t.UTF8_with_bom||null===e?t.UTF8:e}function u(e,n){if(!e||n<t.UTF16be_BOM.length)return null
;const r=e.readUInt8(0),s=e.readUInt8(1);if(r===t.UTF16be_BOM[0]&&s===t.UTF16be_BOM[1])return t.UTF16be;if(r===t.UTF16le_BOM[0]&&s===t.UTF16le_BOM[1])return t.UTF16le;if(n<t.UTF8_BOM.length)return null;const i=e.readUInt8(2);return r===t.UTF8_BOM[0]&&s===t.UTF8_BOM[1]&&i===t.UTF8_BOM[2]?t.UTF8:null}function l(e){const t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return v[t]||t}function h({buffer:r,bytesRead:s},i){let o=u(r,s),c=!1;if(o!==t.UTF16be&&o!==t.UTF16le&&r){let e=!0,n=!0,i=!1;for(let t=0;t<s&&t<f;t++){const s=t%2==1,o=0===r.readInt8(t);if(o&&(i=!0),e&&(s&&!o||!s&&o)&&(e=!1),n&&(s&&o||!s&&!o)&&(n=!1),o&&!e&&!n)break}i&&(e?o=t.UTF16le:n?o=t.UTF16be:c=!0)}return i&&!c&&!o&&r?function(t){return n(this,void 0,void 0,function*(){const n=yield new Promise((t,n)=>{e(["jschardet"],t,n)});n.Constants.MINIMUM_THRESHOLD=m;const r=n.detect(t);if(!r||!r.encoding)return null;const s=r.encoding.toLowerCase();return 0<=g.indexOf(s)?null:l(r.encoding)})}(r.slice(0,s)).then(e=>({seemsBinary:!1,encoding:e})):{
seemsBinary:c,encoding:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.UTF16be_BOM=[254,255],t.UTF16le_BOM=[255,254],t.UTF8_BOM=[239,187,191];const f=512,d=512,p=4096;t.toDecodeStream=c,t.decode=function(e,t){return r.decode(e,a(t))},t.encode=function(e,t,n){return r.encode(e,a(t),n)},t.encodingExists=function(e){return r.encodingExists(a(e))},t.encodeStream=function(e,t){return r.encodeStream(a(e),t)},t.detectEncodingByBOMFromBuffer=u;const m=.2,g=["ascii","utf-8","utf-16","utf-32"],v={ibm866:"cp866",big5:"cp950"};t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:const t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}},
t.detectEncodingFromBuffer=h;const y={437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};t.resolveTerminalEncoding=function(e){return n(this,void 0,void 0,function*(){let n;const o=process.env.VSCODE_CLI_ENCODING;o?(e&&console.log(`Found VSCODE_CLI_ENCODING variable: ${o}`),n=Promise.resolve(o)):n=s.isLinux||s.isMacintosh?new Promise(t=>{e&&console.log('Running "locale charmap" to detect terminal encoding...'),i.exec("locale charmap",(e,n,r)=>t(n))}):new Promise(t=>{e&&console.log('Running "chcp" to detect terminal encoding...'),i.exec("chcp",(e,n,r)=>{if(n){const e=Object.keys(y);for(const r of e)if(n.indexOf(r)>=0)return t(y[r])}return t(void 0)})});const c=yield n;if(e&&console.log(`Detected raw terminal encoding: ${c}`),!c||"utf-8"===c.toLowerCase()||c.toLowerCase()===t.UTF8)return t.UTF8;const a=l(c)
;return r.encodingExists(a)?a:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[34],t([0,1,3,6,21,46,2,4,5,37,8,27,18,30]),function(e,t,r,s,i,o,c,a,u,l,h,f,d,p){"use strict";function m(e,t=I.UNLINK){return n(this,void 0,void 0,function*(){if(h.isRootOrDriveLetter(e))throw new Error("rimraf - will refuse to recursively delete root");return t===I.UNLINK?g(e):function(e){return n(this,void 0,void 0,function*(){try{const t=r.join(o.tmpdir(),f.generateUuid());try{yield x(e,t)}catch(t){return g(e)}g(t)}catch(e){if("ENOENT"!==e.code)throw e}})}(e)})}function g(e){return n(this,void 0,void 0,function*(){try{const t=yield C(e);if(!t.isDirectory()||t.isSymbolicLink()){const n=t.mode;return 128&n||(yield b(e,128|n)),A(e)}{const t=yield y(e);yield Promise.all(t.map(t=>g(r.join(e,t)))),yield l.promisify(i.rmdir)(e)}}catch(e){if("ENOENT"!==e.code)throw e}})}function v(e){if(h.isRootOrDriveLetter(e))throw new Error("rimraf - will refuse to recursively delete root");try{
const t=i.lstatSync(e);if(!t.isDirectory()||t.isSymbolicLink()){const n=t.mode;return 128&n||i.chmodSync(e,128|n),i.unlinkSync(e)}_(e).map(t=>v(r.join(e,t))),i.rmdirSync(e)}catch(e){if("ENOENT"!==e.code)throw e}}function y(e){return n(this,void 0,void 0,function*(){return w(yield l.promisify(i.readdir)(e))})}function _(e){return w(i.readdirSync(e))}function w(e){return c.isMacintosh?e.map(e=>d.normalizeNFC(e)):e}function b(e,t){return l.promisify(i.chmod)(e,t)}function E(e){return l.promisify(i.stat)(e)}function C(e){return l.promisify(i.lstat)(e)}function x(e,t){return l.promisify(i.rename)(e,t)}function A(e){return l.promisify(i.unlink)(e)}function P(e,t,n){return function(e){let t=L[e];if(!t){t=new s.Queue,L[e]=t;a.Event.once(t.onFinished)(()=>{delete L[e],t.dispose()})}return t}(function(e){let t=e;(c.isWindows||c.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(()=>(function(e,t,n){const r=D(n);return new Promise((n,s)=>{
"string"==typeof t||Buffer.isBuffer(t)||t instanceof Uint8Array?function(e,t,n,r){n.encoding&&(t=p.encode(t instanceof Uint8Array?Buffer.from(t):t,n.encoding.charset,{addBOM:n.encoding.addBOM}));if(!R)return i.writeFile(e,t,{mode:n.mode,flag:n.flag},r);i.open(e,n.flag,n.mode,(e,n)=>{if(e)return r(e);i.writeFile(n,t,e=>{if(e)return i.close(n,()=>r(e));i.fdatasync(n,e=>(e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),R=!1),i.close(n,e=>r(e))))})})}(e,t,r,e=>e?s(e):n()):function(e,t,n,r){let s=!1;const o=e=>{s||(s=!0,e?u?(c.once("close",()=>r(e)),c.destroy()):r(e):r())},c=i.createWriteStream(e,{mode:n.mode,flags:n.flag,autoClose:!1});let a,u;c.once("open",e=>{a=e,u=!0,n.encoding&&(t=t.pipe(p.encodeStream(n.encoding.charset,{addBOM:n.encoding.addBOM}))),t.pipe(c)}),t.once("error",e=>o(e)),c.once("error",e=>o(e)),c.once("finish",()=>{R&&u?i.fdatasync(a,e=>{e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),R=!1),
c.destroy()}):c.destroy()}),c.once("close",()=>o())}(e,t,r,e=>e?s(e):n())})})(e,t,n))}function D(e){return e?{mode:"number"==typeof e.mode?e.mode:438,flag:"string"==typeof e.flag?e.flag:"w",encoding:e.encoding}:{mode:438,flag:"w"}}function O(e){return n(this,void 0,void 0,function*(){try{return(yield E(e)).isDirectory()}catch(e){return!1}})}function S(e,t,s){return n(this,void 0,void 0,function*(){const o=s||Object.create(null),c=yield E(e);if(!c.isDirectory())return function(e,t,r){return n(this,void 0,void 0,function*(){return new Promise((n,s)=>{const o=i.createReadStream(e),c=i.createWriteStream(t,{mode:r});let a=!1;const u=e=>{if(!a){if(a=!0,e)return s(e);i.chmod(t,r,e=>e?s(e):n())}};o.once("error",e=>u(e)),c.once("error",e=>u(e)),c.once("close",()=>u()),o.pipe(c)})})}(e,t,511&c.mode);if(o[e])return Promise.resolve();o[e]=!0,yield F(t,511&c.mode);const a=yield y(e);for(let n=0;n<a.length;n++){const s=a[n];yield S(r.join(e,s),r.join(t,s),o)}})}function F(e,t,s){return n(this,void 0,void 0,function*(){
const o=()=>n(this,void 0,void 0,function*(){try{yield l.promisify(i.mkdir)(e,t)}catch(t){if("ENOENT"===t.code)return Promise.reject(t);try{if(!(yield E(e)).isDirectory())return Promise.reject(new Error(`'${e}' exists and is not a directory.`))}catch(e){throw t}}});if(e===r.dirname(e))return Promise.resolve();try{yield o()}catch(n){return s&&s.isCancellationRequested?Promise.resolve():"ENOENT"===n.code?(yield F(r.dirname(e),t),o()):Promise.reject(n)}})}Object.defineProperty(t,"__esModule",{value:!0});var I;!function(e){e[e.UNLINK=0]="UNLINK",e[e.MOVE=1]="MOVE"}(I=t.RimRafMode||(t.RimRafMode={})),t.rimraf=m,t.rimrafSync=v,t.readdir=y,t.readdirSync=_,t.exists=function(e){return l.promisify(i.exists)(e)},t.chmod=b,t.stat=E,t.statLink=function(e){return n(this,void 0,void 0,function*(){let t,n;try{t=yield C(e)}catch(e){n=e}const r=!(!t||!t.isSymbolicLink());return n||r?{stat:yield E(e),isSymbolicLink:r}:{stat:t,isSymbolicLink:!1}})},t.lstat=C,t.rename=x,t.renameIgnoreError=function(e,t){return new Promise(n=>{
i.rename(e,t,()=>n())})},t.unlink=A,t.symlink=function(e,t,n){return l.promisify(i.symlink)(e,t,n)},t.truncate=function(e,t){return l.promisify(i.truncate)(e,t)},t.readFile=function(e,t){return l.promisify(i.readFile)(e,t)};const L=Object.create(null);t.writeFile=P;let R=!0;t.writeFileSync=function(e,t,n){const r=D(n);if(r.encoding&&(t=p.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM})),!R)return i.writeFileSync(e,t,{mode:r.mode,flag:r.flag});const s=i.openSync(e,r.flag,r.mode);try{i.writeFileSync(s,t);try{i.fdatasyncSync(s)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),R=!1}}finally{i.closeSync(s)}},t.readDirsInDir=function(e){return n(this,void 0,void 0,function*(){const t=yield y(e),n=[];for(const s of t)(yield O(r.join(e,s)))&&n.push(s);return n})},t.dirExists=O,t.fileExists=function(e){return n(this,void 0,void 0,function*(){try{return(yield E(e)).isFile()}catch(e){return!1}})},t.whenDeleted=function(e){return new Promise(t=>{let n=!1
;const r=setInterval(()=>{n||(n=!0,i.exists(e,e=>{n=!1,e||(clearInterval(r),t(void 0))}))},1e3)})},t.move=function(e,t){return n(this,void 0,void 0,function*(){function r(e){return n(this,void 0,void 0,function*(){const t=yield C(e);if(t.isDirectory()||t.isSymbolicLink())return Promise.resolve();const n=yield l.promisify(i.open)(e,"a");try{yield l.promisify(i.futimes)(n,t.atime,new Date)}catch(e){}return l.promisify(i.close)(n)})}if(e===t)return Promise.resolve();try{yield x(e,t),yield r(t)}catch(n){if(!(e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||u.endsWith(e,".")))throw n;yield S(e,t),yield m(e,I.MOVE),yield r(t)}})},t.copy=S,t.mkdirp=F;t.MAX_FILE_SIZE="ia32"===process.arch?314572800:17179869184,t.MAX_HEAP_SIZE="ia32"===process.arch?734003200:1468006400}),define(e[38],t([0,1,21,5,3,34,37]),function(e,t,r,s,i,o,c){"use strict";function a(e){const t=i.dirname(e);if(e===t)return e;const n=(i.basename(e)||e).toLowerCase();try{const e=o.readdirSync(t).filter(e=>e.toLowerCase()===n);if(1===e.length){
const n=a(t);if(n)return i.join(n,e[0])}else if(e.length>1){const r=e.indexOf(n);if(r>=0){const n=a(t);if(n)return i.join(n,e[r])}}}catch(e){}return null}function u(e){return s.rtrim(i.normalize(e),i.sep)}Object.defineProperty(t,"__esModule",{value:!0}),t.realcaseSync=a,t.realpath=function(e){return n(this,void 0,void 0,function*(){try{return yield c.promisify(r.realpath)(e)}catch(t){const n=u(e);return yield c.promisify(r.access)(n,r.constants.R_OK),n}})},t.realpathSync=function(e){try{return r.realpathSync(e)}catch(t){const n=u(e);return r.accessSync(n,r.constants.R_OK),n}}}),define(e[39],t([0,1,4,10,6,11,7,15]),function(e,t,r,s,i,o,c,a){"use strict";function u(e){const t=a.VSBuffer.alloc(4);return t.writeUInt32BE(e,0),t}function l(e){return e.read(4).readUInt32BE(0)}function h(e){const t=a.VSBuffer.alloc(1);return t.writeUInt8(e,0),t}function f(e,t){if(void 0===t)e.write(_.Undefined);else if("string"==typeof t){const n=a.VSBuffer.fromString(t);e.write(_.String),e.write(u(n.byteLength)),e.write(n)
}else if(w&&Buffer.isBuffer(t)){const n=a.VSBuffer.wrap(t);e.write(_.Buffer),e.write(u(n.byteLength)),e.write(n)}else if(t instanceof a.VSBuffer)e.write(_.VSBuffer),e.write(u(t.byteLength)),e.write(t);else if(Array.isArray(t)){e.write(_.Array),e.write(u(t.length));for(const n of t)f(e,n)}else{const n=a.VSBuffer.fromString(JSON.stringify(t));e.write(_.Object),e.write(u(n.byteLength)),e.write(n)}}function d(e){switch(e.read(1).readUInt8(0)){case y.Undefined:return;case y.String:return e.read(l(e)).toString();case y.Buffer:return e.read(l(e)).buffer;case y.VSBuffer:return e.read(l(e));case y.Array:{const t=l(e),n=[];for(let r=0;r<t;r++)n.push(d(e));return n}case y.Object:return JSON.parse(e.read(l(e)).toString())}}function p(e){return{call:(t,n,r)=>e.then(e=>e.call(t,n,r)),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 m;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(m||(m={}));class g{constructor(e){this.buffer=e,this.pos=0}read(e){const t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.byteLength,t}}class v{constructor(){this.buffers=[]}get buffer(){return a.VSBuffer.concat(this.buffers)}write(e){this.buffers.push(e)}}var y;!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.VSBuffer=3]="VSBuffer",e[e.Array=4]="Array",e[e.Object=5]="Object"}(y||(y={}));const _={Undefined:h(y.Undefined),String:h(y.String),Buffer:h(y.Buffer),VSBuffer:h(y.VSBuffer),Array:h(y.Array),Object:h(y.Object)
},w="undefined"!=typeof Buffer;class b{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 v;f(n,e),f(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onRawMessage(e){const t=new g(e),n=d(t),r=d(t),s=n[0];switch(s){case 100:return this.onPromise({type:s,id:n[1],channelName:n[2],name:n[3],arg:r});case 102:return this.onEventListen({type:s,id:n[1],channelName:n[2],name:n[3],arg:r});case 101:case 103:return this.disposeActiveRequest({type:s,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,r=t.listen(this.ctx,e.name,e.arg)(e=>this.sendResponse({id:n,data:e,type:204}));this.activeRequests.set(e.id,r)}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=b;class E{constructor(e){this.protocol=e,this.state=m.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,r,s)=>t.requestPromise(e,n,r,s),listen:(n,r)=>t.requestEvent(e,n,r)}}requestPromise(e,t,n,r=o.CancellationToken.None){const a=this.lastRequestId++,u={id:a,type:100,channelName:e,name:t,arg:n};if(r.isCancellationRequested)return Promise.reject(c.canceled());let l;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(a,n=>{switch(n.type){case 201:this.handlers.delete(a),e(n.data);break;case 202:this.handlers.delete(a);const r=new Error(n.data.message);r.stack=n.data.stack,r.name=n.data.name,t(r);break;case 203:this.handlers.delete(a),t(n.data)}}),this.sendRequest(u)});const o=()=>{n?(n.cancel(),n=null):this.sendRequest({id:a,
type:101}),t(c.canceled())},h=r.onCancellationRequested(o);l=s.combinedDisposable(s.toDisposable(o),h),this.activeRequests.add(l)}).finally(()=>this.activeRequests.delete(l))}requestEvent(e,t,n){const s=this.lastRequestId++,o={id:s,type:102,channelName:e,name:t,arg:n};let c=null;const a=new r.Emitter({onFirstListenerAdd:()=>{(c=i.createCancelablePromise(e=>this.whenInitialized())).then(()=>{c=null,this.activeRequests.add(a),this.sendRequest(o)})},onLastListenerRemove:()=>{c?(c.cancel(),c=null):(this.activeRequests.delete(a),this.sendRequest({id:s,type:103}))}});return this.handlers.set(s,e=>a.fire(e.data)),a.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 v;f(n,e),f(n,t),this.sendBuffer(n.buffer)}sendBuffer(e){try{this.protocol.send(e)}catch(e){}}onBuffer(e){const t=new g(e),n=d(t),r=d(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:r})}}onResponse(e){if(200===e.type)return this.state=m.Idle,void this._onDidInitialize.fire();const t=this.handlers.get(e.id);t&&t(e)}whenInitialized(){return this.state===m.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=E;class C{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 r=d(new g(n)),s=new b(e,r),i=new E(e);this.channels.forEach((e,t)=>s.registerChannel(t,e));const o={channelClient:i,ctx:r};this._connections.add(o),this._onDidChangeConnections.fire(o),t(()=>{s.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:(r,s,i)=>p(t.routeCall(n,r,s).then(t=>t.channelClient.getChannel(e))).call(r,s,i),listen:(r,s)=>p(t.routeEvent(n,r,s).then(t=>t.channelClient.getChannel(e))).listen(r,s)}}registerChannel(e,t){this.channels.set(e,t)}dispose(){this.channels.clear(),this._connections.clear(),this._onDidChangeConnections.dispose()}}t.IPCServer=C;class x{constructor(e,t){const n=new v;f(n,t),e.send(n.buffer),this.channelClient=new E(e),this.channelServer=new b(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=x,t.getDelayedChannel=p,t.getNextTickChannel=function(e){let t=!1;return{call:(n,r,s)=>t?e.call(n,r,s):i.timeout(0).then(()=>t=!0).then(()=>e.call(n,r,s)),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 A{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=A}),define(e[40],t([45,44]),function(e,t){return e.create("vs/base/node/processes",t)}),define(e[43],t([0,1,3,21,20,40,12,14,8,2,28,35]),function(e,t,n,r,s,i,o,c,a,u,l,h){"use strict";function f(t,n){if(u.isWindows)try{const e={stdio:["pipe","pipe","ignore"]};n&&(e.cwd=n),s.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(u.isLinux||u.isMacintosh)try{const n=h.getPathFromAmdModule(e,"vs/base/node/terminateProcess.sh"),r=s.spawnSync(n,[t.pid.toString()]);if(r.error)return{success:!1,error:r.error}
}catch(e){return{success:!1,error:e}}else t.kill("SIGKILL");return{success:!0}}function d(){return process.env.comspec||"cmd.exe"}Object.defineProperty(t,"__esModule",{value:!0}),t.terminateProcess=f,t.getWindowsShell=d;class p{constructor(e,t,n,r){if(void 0!==t&&void 0!==n&&void 0!==r)this.cmd=e,this.args=t,this.shell=n,this.options=r;else{const 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){const 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();const t=e.lastIndexOf(n.sep);return-1!==t&&(e=e.substring(t+1)),p.WellKnowCommands[e]?e:"other"}start(e){
return u.isWindows&&(this.options&&this.options.cwd&&a.isUNC(this.options.cwd)||!this.options&&a.isUNC(process.cwd()))?Promise.reject(new Error(i.localize(0,null))):this.useExec().then(t=>{let n,r;const i=new Promise((e,t)=>{n=e,r=t});if(t){let t=this.cmd;this.args&&(t=t+" "+this.args.join(" ")),this.childProcess=s.exec(t,this.options,(t,s,i)=>{this.childProcess=null;const o=t;o&&o.killed?r({killed:this.terminateRequested,stdout:s.toString(),stderr:i.toString()}):this.handleExec(n,e,t,s,i)})}else{let t=null;if(this.shell&&u.isWindows){const e=c.deepClone(this.options);e.windowsVerbatimArguments=!0,e.detached=!1;let n=!1,r=!1;const i=[];let 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),r=r&&o.quoted});const a=["/s","/c"];n?r?a.push('"'+i.join(" ")+'"'):i.length>1?a.push('"'+i[0]+'" '+i.slice(1).join(" ")):a.push('"'+i[0]+'"'):a.push(i.join(" ")),t=s.spawn(d(),a,e)}else this.cmd&&(t=s.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,r({terminated:this.terminateRequested,error:e})}),t.pid&&(this.childProcess.on("close",t=>{this.childProcess=null,this.childProcessPromise=null,this.handleClose(t,n,e,r);const s={terminated:this.terminateRequested};o.isNumber(t)&&(s.cmdCode=t),n(s)}),this.handleSpawn(t,n,e,r,!0)))}return i})}handleClose(e,t,n,r){}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;const t=f(e,this.options.cwd);return t.success&&(this.childProcess=null),t},e=>({success:!0})):Promise.resolve({success:!0})}useExec(){
return new Promise((e,t)=>{if(!this.shell||!u.isWindows)return e(!1);const n=s.spawn(d(),["/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 m extends p{constructor(e,t,n,r){super(e,t,n,r)}handleExec(e,t,n,r,s){[r,s].forEach((e,n)=>{const r=new l.LineDecoder;r.write(e).forEach(e=>{t({line:e,source:0===n?0:1})});const s=r.end();s&&t({line:s,source:0===n?0:1})}),e({terminated:this.terminateRequested,error:n})}handleSpawn(e,t,n,r,s){this.stdoutLineDecoder=new l.LineDecoder,this.stderrLineDecoder=new l.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,r){
[this.stdoutLineDecoder.end(),this.stderrLineDecoder.end()].forEach((e,t)=>{e&&n({line:e,source:0===t?0:1})})}}t.LineProcess=m,t.createQueuedSender=function(e){let t=[],n=!1;const r=function(s){n?t.push(s):e.send(s,e=>{if(e&&console.error(e),n=!1,t.length>0){const e=t.slice(0);t=[],e.forEach(e=>r(e))}})&&!u.isWindows||(n=!0)};return{send:r}};!function(e){e.findExecutable=function(e,t,s){if(n.isAbsolute(e))return e;if(void 0===t&&(t=process.cwd()),"."!==n.dirname(e))return n.join(t,e);if(void 0===s&&o.isString(process.env.PATH)&&(s=process.env.PATH.split(n.delimiter)),void 0===s||0===s.length)return n.join(t,e);for(let i of s){let s;if(s=n.isAbsolute(i)?n.join(i,e):n.join(t,i,e),r.existsSync(s))return s;let o=s+".com";if(r.existsSync(o))return o;if(o=s+".exe",r.existsSync(o))return o}return n.join(t,e)}}(t.win32||(t.win32={}))}),define(e[42],t([0,1,20,10,6,14,4,43,39,22,11,7,15]),function(e,t,n,r,s,i,o,c,a,u,l,h,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class d extends a.ChannelServer{
constructor(e){super({send:e=>{try{process.send&&process.send(e.buffer.toString("base64"))}catch(e){}},onMessage:o.Event.fromNodeEventEmitter(process,"message",e=>f.VSBuffer.wrap(Buffer.from(e,"base64")))},e),process.once("disconnect",()=>this.dispose())}}t.Server=d;class p{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 s.Delayer(n),this.child=null,this._client=null}getChannel(e){const t=this;return{call:(n,r,s)=>t.requestPromise(e,n,r,s),listen:(n,r)=>t.requestEvent(e,n,r)}}requestPromise(e,t,n,i=l.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=s.createCancelablePromise(e=>o.call(t,n,e)),a=i.onCancellationRequested(()=>c.cancel()),u=r.toDisposable(()=>c.cancel());return this.activeRequests.add(u),c.finally(()=>{a.dispose(),this.activeRequests.delete(u),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 r;const s=new o.Emitter({onFirstListenerAdd:()=>{const i=this.getCachedChannel(e).listen(t,n);r=i(s.fire,s),this.activeRequests.add(r)},onLastListenerRemove:()=>{this.activeRequests.delete(r),r.dispose(),0===this.activeRequests.size&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return s.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 s=new o.Emitter;o.Event.fromNodeEventEmitter(this.child,"message",e=>e)(e=>{u.isRemoteConsoleLog(e)?u.log(e,`IPC Library: ${this.options.serverName}`):s.fire(f.VSBuffer.wrap(Buffer.from(e,"base64")))});const l=this.options.useQueue?c.createQueuedSender(this.child):this.child,h={send:e=>this.child&&this.child.connected&&l.send(e.buffer.toString("base64")),onMessage:s.event};this._client=new a.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=>r.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=p}),define(e[41],t([0,1]),function(e,t){"use strict";function n(e,t,n,r){t[s.DI_TARGET]===t?t[s.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[s.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[s.DI_TARGET]=t)}function r(e){
if(s.serviceIds.has(e))return s.serviceIds.get(e);const t=function(e,r,s){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,s,!1)};return t.toString=(()=>e),s.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var s;!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]||[]}}(s=t._util||(t._util={})),t.IInstantiationService=r("instantiationService"),t.createDecorator=r,t.optional=function(e){return function(t,r,s){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,s,!0)}}}),define(e[36],t([0,1,3,2,41,5,32,12]),function(e,t,n,r,s,i,o,c){"use strict";function a(e,t){return e.name=t?`${t} (FileSystemError)`:"FileSystemError",e}function u(e){if(!e)return l.Unknown;if(e instanceof h)return e.code;const t=/^(.+) \(FileSystemError\)$/.exec(e.name);if(!t)return l.Unknown
;switch(t[1]){case l.FileExists:return l.FileExists;case l.FileIsADirectory:return l.FileIsADirectory;case l.FileNotADirectory:return l.FileNotADirectory;case l.FileNotFound:return l.FileNotFound;case l.NoPermissions:return l.NoPermissions;case l.Unavailable:return l.Unavailable}return l.Unknown}Object.defineProperty(t,"__esModule",{value:!0}),t.IFileService=s.createDecorator("fileService");!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(t.FileType||(t.FileType={}));!function(e){e[e.FileReadWrite=2]="FileReadWrite",e[e.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",e[e.FileFolderCopy=8]="FileFolderCopy",e[e.PathCaseSensitive=1024]="PathCaseSensitive",e[e.Readonly=2048]="Readonly",e[e.Trash=4096]="Trash"}(t.FileSystemProviderCapabilities||(t.FileSystemProviderCapabilities={})),t.hasReadWriteCapability=function(e){return!!(2&e.capabilities)},t.hasFileFolderCopyCapability=function(e){return!!(8&e.capabilities)},
t.hasOpenReadWriteCloseCapability=function(e){return!!(4&e.capabilities)};var l;!function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"}(l=t.FileSystemProviderErrorCode||(t.FileSystemProviderErrorCode={}));class h extends Error{constructor(e,t){super(e),this.code=t}}t.FileSystemProviderError=h,t.createFileSystemProviderError=function(e,t){const n=new h(e.toString(),t);return a(n,t),n},t.markAsFileSystemProviderError=a,t.toFileSystemProviderErrorCode=u,t.toFileOperationResult=function(e){if(e instanceof p)return e.fileOperationResult;switch(u(e)){case l.FileNotFound:return 1;case l.FileIsADirectory:return 0;case l.NoPermissions:return 6;case l.FileExists:return 4;case l.FileNotADirectory:default:return 10}};!function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY"
}(t.FileOperation||(t.FileOperation={}));class f{constructor(e,t,n){this.resource=e,this.operation=t,this.target=n}isOperation(e){return this.operation===e}}t.FileOperationEvent=f;!function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(t.FileChangeType||(t.FileChangeType={}));class d{constructor(e){this._changes=e}get changes(){return this._changes}contains(e,t){if(!e)return!1;const n=!c.isUndefinedOrNull(t);return this._changes.some(s=>(!n||s.type===t)&&(2===s.type?o.isEqualOrParent(e,s.resource,!r.isLinux):o.isEqual(e,s.resource,!r.isLinux)))}getAdded(){return this.getOfType(1)}gotAdded(){return this.hasType(1)}getDeleted(){return this.getOfType(2)}gotDeleted(){return this.hasType(2)}getUpdated(){return this.getOfType(0)}gotUpdated(){return this.hasType(0)}getOfType(e){return this._changes.filter(t=>t.type===e)}hasType(e){return this._changes.some(t=>t.type===e)}}t.FileChangesEvent=d,t.isParent=function(e,t,r){
return!(!e||!t||e===t)&&!(t.length>e.length)&&(t.charAt(t.length-1)!==n.sep&&(t+=n.sep),r?i.startsWithIgnoreCase(e,t):0===e.indexOf(t))};class p extends Error{constructor(e,t,n){super(e),this.fileOperationResult=t,this.options=n}static isFileOperationError(e){return e instanceof Error&&!c.isUndefinedOrNull(e.fileOperationResult)}}t.FileOperationError=p;!function(e){e[e.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",e[e.FILE_READ_ONLY=5]="FILE_READ_ONLY",e[e.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",e[e.FILE_EXCEED_MEMORY_LIMIT=9]="FILE_EXCEED_MEMORY_LIMIT",e[e.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"}(t.FileOperationResult||(t.FileOperationResult={})),t.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",
ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},t.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},t.CONTENT_CHANGE_EVENT_BUFFER_DELAY=1e3,t.FILES_ASSOCIATIONS_CONFIG="files.associations",t.FILES_EXCLUDE_CONFIG="files.exclude";!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(t.FileKind||(t.FileKind={})),t.MIN_MAX_MEMORY_SIZE_MB=2048,t.FALLBACK_MAX_MEMORY_SIZE_MB=4096,t.ETAG_DISABLED="",t.etag=function(e){if("number"==typeof e.size&&"number"==typeof e.mtime)return e.mtime.toString(29)+e.size.toString(31)}}),define(e[33],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e){this.service=e}listen(e,t,n){switch(t){case"watch":return this.service.watch(n)}throw new Error(`Event not found: ${t}`)}call(e,t,n){switch(t){case"setRoots":return this.service.setRoots(n);case"setVerboseLogging":return this.service.setVerboseLogging(n);case"stop":
return this.service.stop()}throw new Error(`Call not found: ${t}`)}}t.WatcherChannel=n;class r{constructor(e){this.channel=e}watch(e){return this.channel.listen("watch",e)}setVerboseLogging(e){return this.channel.call("setVerboseLogging",e)}setRoots(e){return this.channel.call("setRoots",e)}stop(){return this.channel.call("stop")}}t.WatcherChannelClient=r}),define(e[31],t([0,1,9,36,2]),function(e,t,n,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toFileChanges=function(e){return e.map(e=>({type:e.type,resource:n.URI.file(e.path)}))},t.normalizeFileChanges=function(e){const t=new i;for(const n of e)t.processEvent(n);return t.normalize()};class i{constructor(){this.normalized=[],this.mapPathToChange=new Map}processEvent(e){const t=this.mapPathToChange.get(e.path);if(t){const n=t.type,r=e.type;1===n&&2===r?(this.mapPathToChange.delete(e.path),this.normalized.splice(this.normalized.indexOf(t),1)):2===n&&1===r?t.type=0:1===n&&0===r||(t.type=r)}else this.normalized.push(e),
this.mapPathToChange.set(e.path,e)}normalize(){const e=[],t=[];return this.normalized.filter(t=>2===t.type||(e.push(t),!1)).sort((e,t)=>e.path.length-t.path.length).filter(e=>!t.some(t=>r.isParent(e.path,t,!s.isLinux))&&(t.push(e.path),!0)).concat(e)}}}),define(e[29],t([0,1,17,8,3,2,31,50,6,18,4,38]),function(e,t,n,r,s,i,o,c,a,u,l,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const f=[];f[c.actions.CREATED]=1,f[c.actions.MODIFIED]=0,f[c.actions.DELETED]=2;class d{constructor(){this._pathWatchers={},this._onWatchEvent=new l.Emitter,this.onWatchEvent=this._onWatchEvent.event}watch(e){return this._verboseLogging=e.verboseLogging,this.onWatchEvent}_watch(e){let t=[];const r=new a.ThrottledDelayer(d.FS_EVENT_DELAY);let l;this._pathWatchers[e.path]={ready:new Promise(e=>l=e),ignored:Array.isArray(e.excludes)?e.excludes.map(e=>n.parse(e)):[]},process.on("uncaughtException",e=>{"Inotify limit reached"!==e||this.enospcErrorLogged||(this.enospcErrorLogged=!0,this._onWatchEvent.fire({
message:"Inotify limit reached (ENOSPC)"}))});let p=!1,m=e.path.length;if(i.isMacintosh)try{let t=h.realpathSync(e.path);e.path===t&&(t=h.realcaseSync(e.path)||e.path),e.path!==t&&(m=t.length,p=!0,console.warn(`Watcher basePath does not match version on disk and will be corrected (original: ${e.path}, real: ${t})`))}catch(e){}c(e.path,n=>{for(const r of n){if(this._verboseLogging){const e=r.action===c.actions.RENAMED?s.join(r.directory,r.oldFile||"")+" -> "+r.newFile:s.join(r.directory,r.file||"");console.log(`${r.action===c.actions.CREATED?"[CREATED]":r.action===c.actions.DELETED?"[DELETED]":r.action===c.actions.MODIFIED?"[CHANGED]":"[RENAMED]"} ${e}`)}let n;r.action===c.actions.RENAMED?(n=s.join(r.directory,r.oldFile||""),this._isPathIgnored(n,this._pathWatchers[e.path].ignored)?this._verboseLogging&&console.log(" >> ignored",n):t.push({type:2,path:n}),n=s.join(r.directory,r.newFile||""),this._isPathIgnored(n,this._pathWatchers[e.path].ignored)?this._verboseLogging&&console.log(" >> ignored",n):t.push({
type:1,path:n})):(n=s.join(r.directory,r.file||""),this._isPathIgnored(n,this._pathWatchers[e.path].ignored)?this._verboseLogging&&console.log(" >> ignored",n):t.push({type:f[r.action],path:n}))}r.trigger(()=>{const n=t;t=[],i.isMacintosh&&n.forEach(t=>{t.path=u.normalizeNFC(t.path),p&&(t.path=e.path+t.path.substr(m))});const r=o.normalizeFileChanges(n);return this._onWatchEvent.fire(r),this._verboseLogging&&r.forEach(e=>{console.log(` >> normalized ${1===e.type?"[ADDED]":2===e.type?"[DELETED]":"[CHANGED]"} ${e.path}`)}),Promise.resolve(void 0)})}).then(t=>{this._pathWatchers[e.path].watcher=t;const n=t.start();return n.then(()=>l(t)),n})}setRoots(e){const t=this._normalizeRoots(e),r=t.filter(e=>!(e.path in this._pathWatchers)),s=Object.keys(this._pathWatchers).filter(e=>t.every(t=>t.path!==e));return this._verboseLogging&&console.log(`Start watching: [${r.map(e=>e.path).join(",")}]\nStop watching: [${s.join(",")}]`),s.forEach(e=>{this._pathWatchers[e].ready.then(e=>e.stop()),delete this._pathWatchers[e]}),
r.forEach(e=>this._watch(e)),e.forEach(e=>{e.path in this._pathWatchers&&(this._pathWatchers[e.path].ignored=Array.isArray(e.excludes)?e.excludes.map(e=>n.parse(e)):[])}),Promise.all([]).then(()=>void 0)}setVerboseLogging(e){return this._verboseLogging=e,Promise.resolve(void 0)}stop(){for(let e in this._pathWatchers){this._pathWatchers[e].ready.then(e=>e.stop()),delete this._pathWatchers[e]}return this._pathWatchers=Object.create(null),Promise.resolve()}_normalizeRoots(e){return e.filter(t=>e.every(e=>!(t.path.length>e.path.length&&r.isEqualOrParent(t.path,e.path))))}_isPathIgnored(e,t){return t&&t.some(t=>t(e))}}d.FS_EVENT_DELAY=50,t.NsfwWatcherService=d}),define(e[51],t([0,1,42,33,29]),function(e,t,n,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=new n.Server("watcher"),o=new s.NsfwWatcherService,c=new r.WatcherChannel(o);i.registerChannel("watcher",c)})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/553cfb2c2205db5f15f3ee8395bbd5cf066d357d/core/vs/workbench/services/files/node/watcher/nsfw/watcherApp.js.map
