/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["require","exports","vs/base/common/platform","vs/base/common/strings","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/paths","vs/base/common/async","vs/base/common/errors","vs/base/common/uri","vs/base/common/cancellation","vs/base/common/types","fs","vs/base/common/objects","vs/base/common/iterator","vs/base/common/map","vs/base/common/normalization","vs/base/common/functional","child_process","vs/base/common/linkedList","vs/base/common/glob","vs/base/common/network","vs/base/common/resources","vs/base/common/uuid","vs/base/node/console","vs/base/common/arrays","vs/workbench/services/files/node/watcher/unix/chokidarWatcherService","vs/base/node/flow","vs/workbench/services/files/node/watcher/unix/watcherIpc","vs/base/node/stream","vs/base/node/decoder","vs/base/node/encoding","vs/workbench/services/files/node/watcher/common","vs/base/common/amd","vs/platform/files/common/files","vs/base/node/extfs","path","vs/base/parts/ipc/node/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/unix/watcherApp","vs/nls","stream","iconv-lite","assert","string_decoder","vscode-chokidar","graceful-fs","vs/workbench/services/files/node/watcher/unix/watcherApp"],t=function(t){
for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[8],t([0,1]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===i&&e.message===i}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.addListener=function(e){var t=this;return this.listeners.push(e),function(){t._removeListener(e)}},e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},e.prototype._removeListener=function(e){this.listeners.splice(this.listeners.indexOf(e),1)},e.prototype.setUnexpectedErrorHandler=function(e){this.unexpectedErrorHandler=e},e.prototype.getUnexpectedErrorHandler=function(){return this.unexpectedErrorHandler},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},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)return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack};return e};var i="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){var e=new Error(i);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){var 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(i,o){function s(e){try{a(r.next(e))}catch(e){o(e)}}function u(e){try{a(r.throw(e))}catch(e){o(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,u)}a((r=r.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){
u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var r,i,o,s,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(e[25],t([0,1,8]),function(e,t,i){"use strict";function o(e,t){var n=0,r=e.length;if(0===r)return 0;for(;n<r;){var i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function s(e,t){return u(e,t,0,e.length-1,[]),e}function u(e,t,n,r,i){if(!(r<=n)){var o=n+(r-n)/2|0;u(e,t,n,o,i),u(e,t,o+1,r,i),t(e[o],e[o+1])<=0||function(e,t,n,r,i,o){for(var s=n,u=r+1,a=n;a<=i;a++)o[a]=e[a];for(a=n;a<=i;a++)s>r?e[a]=o[u++]:u>i?e[a]=o[s++]:t(o[u],o[s])<0?e[a]=o[u++]:e[a]=o[s++]}(e,t,n,o,r,i)}}function a(e,t,n){function r(e,t,n){var r;if(0!==t||0!==n.length){var o=i[i.length-1]
;o&&o.start+o.deleteCount===e?(o.deleteCount+=t,(r=o.toInsert).push.apply(r,n)):i.push({start:e,deleteCount:t,toInsert:n})}}for(var i=[],o=0,s=0;;){if(o===e.length){r(o,0,t.slice(s));break}if(s===t.length){r(o,e.length-o,[]);break}var u=e[o],a=t[s],c=n(u,a);0===c?(o+=1,s+=1):c<0?(r(o,1,[]),o+=1):c>0&&(r(o,0,[a]),s+=1)}return i}function c(e,t,n,r,i){for(var s=function(i){var s=e[r];if(t(s,n[i-1])<0){n.pop();var u=o(n,function(e){return t(s,e)<0});n.splice(u,0,s)}},u=n.length;r<i;r++)s(u)}function l(e,t){for(var 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){return void 0===t&&(t=0),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){if(void 0===n&&(n=function(e,t){return e===t}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0},
t.binarySearch=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=(r+i)/2|0,s=n(e[o],t);if(s<0)r=o+1;else{if(!(s>0))return o;i=o-1}}return-(r+1)},t.findFirstInSorted=o,t.mergeSort=s,t.groupBy=function(e,t){for(var n=[],r=void 0,i=0,o=s(e.slice(0),t);i<o.length;i++){var u=o[i];r&&0===t(r[0],u)?r.push(u):(r=[u],n.push(r))}return n},t.sortedDiff=a,t.delta=function(e,t,n){for(var r=[],i=[],o=0,s=a(e,t,n);o<s.length;o++){var u=s[o];r.push.apply(r,e.slice(u.start,u.start+u.deleteCount)),i.push.apply(i,u.toInsert)}return{removed:r,added:i}},t.top=function(e,t,n){if(0===n)return[];var r=e.slice(0,n).sort(t);return c(e,t,r,n,e.length),r},t.topAsync=function(e,t,o,s,u){var a=this;return 0===o?Promise.resolve([]):new Promise(function(l,f){n(a,void 0,void 0,function(){var n,a,l,f;return r(this,function(r){switch(r.label){case 0:n=e.length,a=e.slice(0,o).sort(t),l=o,f=Math.min(o+s,n),r.label=1;case 1:return l<n?l>o?[4,new Promise(function(e){return setTimeout(e)})]:[3,3]:[3,5];case 2:r.sent(),r.label=3;case 3:
if(u&&u.isCancellationRequested)throw i.canceled();c(e,t,a,l,f),r.label=4;case 4:return l=f,f=Math.min(f+s,n),[3,1];case 5:return[2,a]}})}).then(l,f)})},t.coalesce=function(e){return e?e.filter(function(e){return!!e}):e},t.coalesceInPlace=function(e){if(e){for(var t=0,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(function(t,n){return e.indexOf(t)===n});var n=Object.create(null);return e.filter(function(e){var r=t(e);return!n[r]&&(n[r]=!0,!0)})},t.uniqueFilter=function(e){var t=Object.create(null);return function(n){var r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.firstIndex=l,t.first=function(e,t,n){void 0===n&&(n=null);var r=l(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n){void 0===n&&(n=function(e,t){return e===t})
;for(var r=0,i=0,o=Math.min(e.length,t.length);i<o&&n(e[i],t[i]);i++)r++;return r},t.flatten=function(e){var t;return(t=[]).concat.apply(t,e)},t.range=function(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var r=[];if(n<=t)for(i=n;i<t;i++)r.push(i);else for(var i=n;i>t;i--)r.push(i);return r},t.fill=function(e,t,n){void 0===n&&(n=[]);for(var r=0;r<e;r++)n[r]=t;return n},t.index=function(e,t,n){return void 0===n&&(n=function(e){return e}),e.reduce(function(e,r){var i=t(r);return e[i]=n(r,e[i]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){var r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)},t.shuffle=function(e,t){var n;if("number"==typeof t){var r=t;n=function(){var e=179426549*Math.sin(r++);return e-Math.floor(e)}}else n=Math.random;for(var i=e.length-1;i>0;i-=1){var o=Math.floor(n()*(i+1)),s=e[i];e[i]=e[o],e[o]=s}},t.pushToStart=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),
e.unshift(t))},t.pushToEnd=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))},t.find=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r,n,e))return r}},t.mapArrayOrNot=function(e,t){return Array.isArray(e)?e.map(t):t(e)}}),define(e[17],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}});var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();define(e[14],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(var n=e.next();!n.done;n=e.next())t(n.value)}var r={
next:function(){return t.FIN}};e.empty=function(){return r},e.fromArray=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=e.length),{next:function(){return 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:function(){var r=e.next();return r.done?t.FIN:{done:!1,value:n(r.value)}}}},e.filter=function(e,n){return{next:function(){for(;;){var 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){var t=[];return n(e,function(e){return t.push(e)}),t}}(n=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?n.fromArray(e):e};var r=function(){function e(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=t-1),this.items=e,this.start=t,this.end=n,this.index=r}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){
return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}();t.ArrayIterator=r;var o=function(e){function t(t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===i&&(i=n-1),e.call(this,t,n,r,i)||this}return i(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(r);t.ArrayNavigator=o;var s=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}();t.MappedIterator=s;var u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.navigator=t,r}return i(t,e),
t.prototype.current=function(){return this.fn(this.navigator.current())},t.prototype.previous=function(){return this.fn(this.navigator.previous())},t.prototype.parent=function(){return this.fn(this.navigator.parent())},t.prototype.first=function(){return this.fn(this.navigator.first())},t.prototype.last=function(){return this.fn(this.navigator.last())},t.prototype.next=function(){return this.fn(this.navigator.next())},t}(s);t.MappedNavigator=u}),define(e[4],t([0,1,17]),function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(e)?(e.forEach(function(e){return e&&e.dispose()}),[]):0!==t.length?(r(e),r(t),[]):e?(e.dispose(),e):void 0}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:function(){return r(e)}}},t.toDisposable=function(e){return{dispose:function(){e()}}};var i=function(){function e(){
this._toDispose=[],this._lifecycle_disposable_isDisposed=!1}return Object.defineProperty(e.prototype,"toDispose",{get:function(){return this._toDispose},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._lifecycle_disposable_isDisposed=!0,this._toDispose=r(this._toDispose)},e.prototype._register=function(e){return this._lifecycle_disposable_isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.push(e),e},e.None=Object.freeze({dispose:function(){}}),e}();t.Disposable=i;var o=function(){function e(){this.references=Object.create(null)}return e.prototype.acquire=function(e){var t=this,r=this.references[e];r||(r=this.references[e]={counter:0,object:this.createReferencedObject(e)});var i=r.object,o=n.once(function(){0==--r.counter&&(t.destroyReferencedObject(e,r.object),delete t.references[e])});return r.counter++,{object:i,dispose:o}},e}();t.ReferenceCollection=o;var s=function(){function e(e){this.object=e}
return e.prototype.dispose=function(){},e}();t.ImmortalReference=s}),define(e[19],t([0,1,14]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e){this.element=e}}(),i=function(){function e(){this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!this._first},e.prototype.clear=function(){this._first=void 0,this._last=void 0,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=new r(e);if(this._first)if(t){var i=this._last;this._last=n,n.prev=i,i.next=n}else{var o=this._first;this._first=n,n.next=o,o.prev=n}else this._first=n,this._last=n;return this._size+=1,this._remove.bind(this,n)},e.prototype.shift=function(){if(this._first){var e=this._first.element;return this._remove(this._first),e}},e.prototype.pop=function(){
if(this._last){var e=this._last.element;return this._remove(this._last),e}},e.prototype._remove=function(e){for(var t=this._first;t instanceof r;){if(t===e){if(t.prev&&t.next){var n=t.prev;n.next=t.next,t.next.prev=n}else t.prev||t.next?t.next?t.prev||(this._first=this._first.next,this._first.prev=void 0):(this._last=this._last.prev,this._last.next=void 0):(this._first=void 0,this._last=void 0);this._size-=1;break}t=t.next}},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t?(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e):n.FIN}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t instanceof r;t=t.next)e.push(t.element);return e},e}();t.LinkedList=i}),define(e[5],t([0,1,8,17,4,19]),function(e,t,o,s,u,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c;!function(e){function t(e){return function(t,n,r){void 0===n&&(n=null);var i=!1,o=e(function(e){if(!i)return o?o.dispose():i=!0,t.call(n,e)},null,r);return i&&o.dispose(),o}}
function n(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return n.call(r,t(e))},null,i)}}function r(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){t(e),n.call(r,e)},null,i)}}function i(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return t(e)&&n.call(r,e)},null,i)}}function o(e,t,r){var i=r;return n(e,function(e){return i=t(i,e)})}function s(e){var t,n=!0;return i(e,function(e){var r=n||e!==t;return n=!1,t=e,r})}var a={dispose:function(){}};e.None=function(){return a},e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,r){return void 0===n&&(n=null),u.combinedDisposable(e.map(function(e){return e(function(e){return t.call(n,e)},null,r)}))}},e.reduce=o,e.debounce=function(e,t,n,r,i){void 0===n&&(n=100),void 0===r&&(r=!1);var o,s=void 0,u=void 0,a=0,c=new h({leakWarningThreshold:i,onFirstListenerAdd:function(){o=e(function(e){
a++,s=t(s,e),r&&!u&&c.fire(s),clearTimeout(u),u=setTimeout(function(){var e=s;s=void 0,u=void 0,(!r||a>1)&&c.fire(e),a=0},n)})},onLastListenerRemove:function(){o.dispose()}});return c.event},e.stopwatch=function(e){var r=(new Date).getTime();return n(t(e),function(e){return(new Date).getTime()-r})},e.latch=s,e.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var r=n.slice(),i=e(function(e){r?r.push(e):s.fire(e)}),o=function(){r&&r.forEach(function(e){return s.fire(e)}),r=null},s=new h({onFirstListenerAdd:function(){i||(i=e(function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){r&&(t?setTimeout(o):o())},onLastListenerRemove:function(){i&&i.dispose(),i=null}});return s.event},e.echo=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]),n=n.slice(),e(function(e){n.push(e),i.fire(e)});var r=function(e,t){return n.forEach(function(n){return e.call(t,n)})},i=new h({onListenerDidAdd:function(e,n,i){t?setTimeout(function(){return r(n,i)}):r(n,i)}});return i.event};var c=function(){
function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(n(this._event,t))},e.prototype.forEach=function(t){return new e(r(this._event,t))},e.prototype.filter=function(t){return new e(i(this._event,t))},e.prototype.reduce=function(t,n){return new e(o(this._event,t,n))},e.prototype.latch=function(){return new e(s(this._event))},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e.prototype.once=function(e,n,r){return t(this._event)(e,n,r)},e}();e.chain=function(e){return new c(e)},e.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))},i=new h({onFirstListenerAdd:function(){return e.on(t,r)},onLastListenerRemove:function(){return e.removeListener(t,r)}});return i.event},e.fromPromise=function(e){var t=new h,n=!1;return e.then(void 0,function(){
return null}).then(function(){n?t.fire(void 0):setTimeout(function(){return t.fire(void 0)},0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(function(n){return t(e)(n)})}}(c=t.Event||(t.Event={}));var l=-1;t.setGlobalLeakWarningThreshold=function(e){var t=l;return l=e,{dispose:function(){l=t}}};var f=function(){function e(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}return e.prototype.dispose=function(){this._stacks&&this._stacks.clear()},e.prototype.check=function(e){var t=this,n=l;if("number"==typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var r=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(r)||0;if(this._stacks.set(r,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;var o,s=0;this._stacks.forEach(function(e,t){(!o||s<e)&&(o=t,s=e)}),
console.warn("["+this.name+"] potential listener LEAK detected, having "+e+" listeners already. MOST frequent listener ("+s+"):"),console.warn(o)}return function(){var e=t._stacks.get(r)||0;t._stacks.set(r,e-1)}}},e}(),h=function(){function e(e){this._disposed=!1,this._options=e,this._leakageMon=l>0?new f(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new a.LinkedList);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s=t._listeners.push(r?[n,r]:n);o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r);var u;t._leakageMon&&(u=t._leakageMon.check(t._listeners.size));var c;return c={dispose:function(){if(u&&u(),c.dispose=e._noop,!t._disposed&&(s(),
t._options&&t._options.onLastListenerRemove)){t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)}}},Array.isArray(i)&&i.push(c),c}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var r=this._deliveryQueue.shift(),i=r[0],s=r[1];try{"function"==typeof i?i.call(void 0,s):i[0].call(i[1],s)}catch(n){o.onUnexpectedError(n)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}();t.Emitter=h;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.fireAsync=function(e){return n(this,void 0,void 0,function(){var t,n,i,s,u,a;return r(this,function(r){
switch(r.label){case 0:if(!this._listeners)return[2];for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]),t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())a=[],this._asyncDeliveryQueue.push([n.value,e(a,"function"==typeof n.value?n.value:n.value[0]),a]);r.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];i=this._asyncDeliveryQueue.shift(),s=i[0],u=i[1],a=i[2];try{"function"==typeof s?s.call(void 0,u):s[0].call(s[1],u)}catch(e){return o.onUnexpectedError(e),[3,1]}return Object.freeze(a),[4,Promise.all(a)];case 2:return r.sent(),[3,1];case 3:return[2]}})})},t}(h);t.AsyncEmitter=d;var p=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new h({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,
listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return u.toDisposable(s.once(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();t.EventMultiplexer=p;var v=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e()
;return this.buffers.pop(),t.forEach(function(e){return e()}),n},e}();t.EventBufferer=v;var m=function(){function e(){var e=this;this.listening=!1,this.inputEvent=c.None,this.inputEventListener=u.Disposable.None,this.emitter=new h({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}();t.Relay=m}),define(e[10],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});!function(e){
e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof o||!(!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:i})}(r=t.CancellationToken||(t.CancellationToken={}));var o=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){
this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),s=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new o),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled},e.prototype.dispose=function(){this._token?this._token instanceof o&&this._token.dispose():this._token=r.None},e}();t.CancellationTokenSource=s}),define(e[7],t([0,1,10,8,5,4]),function(e,t,n,r,o,s){"use strict";function u(e){return e&&"function"==typeof e.then}function a(e){var t=new n.CancellationTokenSource,i=e(t.token),o=new Promise(function(e,n){t.token.onCancellationRequested(function(){n(r.canceled())}),Promise.resolve(i).then(function(n){t.dispose(),e(n)},function(e){t.dispose(),n(e)})});return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return o.then(e,t)},e.prototype.catch=function(e){
return this.then(void 0,e)},e.prototype.finally=function(e){return l(o,e||function(){})},e}())}function c(e,t){return t?new Promise(function(n,i){var o=setTimeout(n,e);t.onCancellationRequested(function(){clearTimeout(o),i(r.canceled())})}):a(function(t){return c(e,t)})}function l(e,t){function n(){try{t()}catch(e){r.onUnexpectedError(e)}}return e.then(function(e){return n()},function(e){return n()}),Promise.resolve(e)}function f(e){function t(o){void 0!==o&&null!==o&&n.push(o);var s=r<i?e[r++]():null;return s?s.then(t):Promise.resolve(n)}var n=[],r=0,i=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=u,t.createCancelablePromise=a,t.asPromise=function(e){return new Promise(function(t,n){var r=e();u(r)?r.then(t,n):t(r)})};var h=function(){function e(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}return e.prototype.queue=function(e){var t=this;if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){
var n=function(){t.queuedPromise=null;var e=t.queue(t.queuedPromiseFactory);return t.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(function(e){t.activePromise.then(n,n).then(e)})}return new Promise(function(e,n){t.queuedPromise.then(e,n)})}return this.activePromise=e(),new Promise(function(e,n){t.activePromise.then(function(n){t.activePromise=null,e(n)},function(e){t.activePromise=null,n(e)})})},e}();t.Throttler=h;var d=function(){function e(){this.current=Promise.resolve(null)}return e.prototype.queue=function(e){return this.current=this.current.then(function(){return e()})},e}();t.Sequencer=d;var p=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(e,t){n.doResolve=e,n.doReject=t}).then(function(){n.completionPromise=null,
n.doResolve=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.doResolve(null)},t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject(r.canceled()),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e.prototype.dispose=function(){this.cancelTimeout()},e}();t.Delayer=p;var v=function(){function e(e){this.delayer=new p(e),this.throttler=new h}return e.prototype.trigger=function(e,t){var n=this;return this.delayer.trigger(function(){return n.throttler.queue(e)},t)},e.prototype.isTriggered=function(){return this.delayer.isTriggered()},e.prototype.cancel=function(){this.delayer.cancel()},e.prototype.dispose=function(){this.delayer.dispose()},e}();t.ThrottledDelayer=v;var m=function(){function e(){var e=this;this._isOpen=!1,this._promise=new Promise(function(t,n){
e._completePromise=t})}return e.prototype.isOpen=function(){return this._isOpen},e.prototype.open=function(){this._isOpen=!0,this._completePromise(!0)},e.prototype.wait=function(){return this._promise},e}();t.Barrier=m,t.timeout=c,t.disposableTimeout=function(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return s.toDisposable(function(){return clearTimeout(n)})},t.always=l,t.ignoreErrors=function(e){return e.then(void 0,function(e){})},t.sequence=f,t.first=function(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var r=0,i=e.length,o=function(){if(r>=i)return Promise.resolve(n);var s=e[r++];return Promise.resolve(s()).then(function(e){return t(e)?Promise.resolve(e):o()})};return o()};var g=function(){function e(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new o.Emitter}return Object.defineProperty(e.prototype,"onFinished",{get:function(){return this._onFinished.event},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.queue=function(e){var t=this;return this._size++,new Promise(function(n,r){t.outstandingPromises.push({factory:e,c:n,e:r}),t.consume()})},e.prototype.consume=function(){for(var e=this;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){var t=this.outstandingPromises.shift();this.runningPromises++;var n=t.factory();n.then(t.c,t.e),n.then(function(){return e.consumed()},function(){return e.consumed()})}},e.prototype.consumed=function(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}();t.Limiter=g;var y=function(e){function t(){return e.call(this,1)||this}return i(t,e),t}(g);t.Queue=y;var _=function(){function e(){this.queues=Object.create(null)}return e.prototype.queueFor=function(e){var t=this,n=e.toString();if(!this.queues[n]){var r=new y
;r.onFinished(function(){r.dispose(),delete t.queues[n]}),this.queues[n]=r}return this.queues[n]},e}();t.ResourceQueue=_;var b=function(e){function t(t,n){var r=e.call(this)||this;return r._token=-1,"function"==typeof t&&"number"==typeof n&&r.setIfNotSet(t,n),r}return i(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout(function(){n._token=-1,e()},t)},t.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,e()},t))},t}(s.Disposable);t.TimeoutTimer=b;var w=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return i(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){
this.cancel(),this._token=setInterval(function(){e()},t)},t}(s.Disposable);t.IntervalTimer=w;var E=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();t.RunOnceScheduler=E;var C=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.units=[],r}return i(t,e),t.prototype.work=function(e){this.units.push(e),this.isScheduled()||this.schedule()},t.prototype.doRun=function(){var e=this.units;this.units=[],
this.runner&&this.runner(e)},t.prototype.dispose=function(){this.units=[],e.prototype.dispose.call(this)},t}(E);t.RunOnceWorker=C,t.nfcall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Promise(function(n,r){return e.apply(void 0,t.concat([function(e,t){return e?r(e):n(t)}]))})},t.ninvoke=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return new Promise(function(r,i){return t.call.apply(t,[e].concat(n,[function(e,t){return e?i(e):r(t)}]))})},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});t.runWhenIdle=function(t){var n=setTimeout(function(){return t(e)}),r=!1;return{dispose:function(){r||(r=!0,clearTimeout(n))}}}}else t.runWhenIdle=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),r=!1;return{dispose:function(){r||(r=!0,cancelIdleCallback(n))}}}}();var S=function(){function e(e){var n=this
;this._executor=function(){try{n._value=e()}catch(e){n._error=e}finally{n._didRun=!0}},this._handle=t.runWhenIdle(function(){return n._executor()})}return e.prototype.dispose=function(){this._handle.dispose()},e.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},e}();t.IdleValue=S}),define(e[21],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"}(t.Schemas||(t.Schemas={}))}),define(e[2],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=!1,r=!1,i=!1,o=!1,s=!1,u=void 0,a=void 0,c=void 0;t.LANGUAGE_DEFAULT="en"
;var 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,i="linux"===process.platform,u=t.LANGUAGE_DEFAULT,a=t.LANGUAGE_DEFAULT;var f=process.env.VSCODE_NLS_CONFIG;if(f)try{var h=JSON.parse(f),d=h.availableLanguages["*"];u=h.locale,a=d||t.LANGUAGE_DEFAULT,c=h._translationsConfigFile}catch(e){}o=!0}}else{var p=navigator.userAgent;n=p.indexOf("Windows")>=0,r=p.indexOf("Macintosh")>=0,i=p.indexOf("Linux")>=0,s=!0,a=u=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"}};var v=0;o&&(r?v=1:n?v=3:i&&(v=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s,t.platform=v,t.isRootUser=function(){
return o&&!n&&0===process.getuid()},t.language=a,t.locale=u,t.translationsConfigFile=c;var m="object"==typeof self?self:"object"==typeof global?global:{};t.globals=m;var g=null;t.setImmediate=function(e){return null===g&&(g=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)),g(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;!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(t.AccessibilitySupport||(t.AccessibilitySupport={}))}),define(e[3],t([0,1]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e
;var n=t.length,r=e.length;if(0===n||0===r)return e;for(var i=r,o=-1;;){if(-1===(o=e.lastIndexOf(t,i-1))||o+n!==i)break;if(0===o)return"";i=o}return e.substring(0,i)}function o(e,t){return e<t?-1:e>t?1:0}function s(e){return e>=97&&e<=122}function u(e){return e>=65&&e<=90}function a(e){return s(e)||u(e)}function c(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;r<n;r++){var i=e.charCodeAt(r),o=t.charCodeAt(r);if(i!==o)if(a(i)&&a(o)){var s=Math.abs(i-o);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function l(e,t,n,r,i,o){for(;t<n&&i<o;){if(e[t]!==r[i])return!1;t+=1,i+=1}return!0}function f(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function h(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){void 0===n&&(n="0");for(var r=""+e,i=[r],o=r.length;o<t;o++)i.push(n);return i.reverse().join("")};var d=/{(\d+)}/g;t.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(d,function(e,n){var 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 void 0===t&&(t=" "),i(r(e,t),t)},t.ltrim=r,t.rtrim=i,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(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},
t.createRegExp=function(e,t,r){if(void 0===r&&(r={}),!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"));var i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),new RegExp(e,i)},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(var t=0,n=e.length;t<n;t++){var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1},t.getLeadingWhitespace=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(32!==i&&9!==i)return e.substring(t,r)}return e.substring(t,n)},
t.lastNonWhitespaceIndex=function(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1},t.compare=o,t.compareIgnoreCase=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.charCodeAt(r),a=t.charCodeAt(r);if(i!==a){u(i)&&(i+=32),u(a)&&(a+=32);var c=i-a;if(0!==c)return s(i)&&s(a)?c:o(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=u,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&c(e,t)},t.startsWithIgnoreCase=function(e,t){var n=t.length;return!(t.length>e.length)&&c(e,t,n)},t.commonPrefixLength=function(e,t){var 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){var n,r=Math.min(e.length,t.length),i=e.length-1,o=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(o-n))return n;return r},t.overlap=function(e,t){
var n=e.length,r=t.length,i=n-r;if(0===i)return e===t?n:0;for(i<0&&(r+=i,i=0);i<n&&r>0;){if(l(e,i,n,t,0,r))return r;r-=1,i+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343};var 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)};var v=/(?:[\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 v.test(e)};var m=/^[\t\n\r\x20-\x7E]*$/
;t.isBasicASCII=function(e){return m.test(e)},t.containsFullWidthCharacter=function(e){for(var t=0,n=e.length;t<n;t++)if(f(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=f,t.lcut=function(e,n){if(e.length<n)return e;for(var r=/\b/g,i=0;r.test(e)&&!(e.length-r.lastIndex<n);)i=r.lastIndex,r.lastIndex+=1;return e.substring(i).replace(/^\s/,t.empty)};var g=/\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(g,"")).replace(y,"")).replace(_,"")),e},t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=h,t.stripUTF8BOM=function(e){return h(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var n="",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;for(var n=t.length,r=e.toLowerCase(),i=0,o=-1;i<n;){var s=r.indexOf(t[i],o+1);if(s<0)return!1;o=s,i++}return!0},t.containsUppercaseCharacter=function(e,t){
return void 0===t&&(t=!1),!!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){if(void 0===t&&(t=1),0===t)return"";var 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[6],t([0,1,2,3]),function(e,t,n,r){"use strict";function i(e){return 47===e||92===e}function o(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?o(e.substring(0,e.length-1)):e.substr(1+~t)}function s(e,t){if(null===e||void 0===e)return e;var r=e.length;if(0===r)return".";var o=!(!n.isWindows||!t);if(function(e,t){return t?!d.test(e):!h.test(e)}(e,o))return e;for(var s=o?"\\":"/",c=a(e,s),l=c.length,f=!1,p="",v=c.length;v<=r;v++)if(v===r||i(e.charCodeAt(v))){if(u(e,l,v,"..")){var m=p.lastIndexOf(s),g=p.slice(m+1);(c||g.length>0)&&".."!==g&&(p=-1===m?"":p.slice(0,m),f=!0)}else u(e,l,v,".")&&(c||p||v<r-1)&&(f=!0);if(!f){var y=e.slice(l,v)
;""!==p&&p[p.length-1]!==s&&(p+=s),p+=y}l=v+1,f=!1}return c+p}function u(e,t,n,r){return t+r.length===n&&e.indexOf(r,t)===t}function a(e,t){if(void 0===t&&(t="/"),!e)return"";var n=e.length,r=e.charCodeAt(0);if(i(r)){if(i(e.charCodeAt(1))&&!i(e.charCodeAt(2))){for(var o=3,s=o;o<n&&!i(e.charCodeAt(o));o++);if(s!==o&&!i(e.charCodeAt(o+1)))for(o+=1;o<n;o++)if(i(e.charCodeAt(o)))return e.slice(0,o+1).replace(/[\\/]/g,t)}return t}if(f(r)&&58===e.charCodeAt(1))return i(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);var u=e.indexOf("://");if(-1!==u)for(u+=3;u<n;u++)if(i(e.charCodeAt(u)))return e.slice(0,u+1);return""}function c(e){if(!e)return!1;var t=e.charCodeAt(0);if(i(t))return!0;if(f(t)&&e.length>2&&58===e.charCodeAt(1)){if(i(e.charCodeAt(2)))return!0}return!1}function l(e){return!(!e||47!==e.charCodeAt(0))}function f(e){return e>=65&&e<=90||e>=97&&e<=122}Object.defineProperty(t,"__esModule",{value:!0}),t.sep="/",t.nativeSep=n.isWindows?"\\":"/",t.dirname=function(e,n){void 0===n&&(n=t.nativeSep);var r=e.length
;if(0===r)return".";if(1===r)return i(e.charCodeAt(0))?e:".";var o=a(e,n).length;if(o>=r)return e;0===o&&i(e.charCodeAt(0))&&(o=1);var s=r-1;if(s>o)for(s--;s>o&&!i(e.charCodeAt(s));)s--;return 0===s?".":e.substr(0,s)},t.basename=o,t.extname=function(e){var t=~(e=o(e)).lastIndexOf(".");return t?e.substring(~t):""};var h=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,d=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;t.normalize=s,t.getRoot=a,t.join=function(){for(var e="",n=0;n<arguments.length;n++){var r=arguments[n];if(n>0){if(!i(e.charCodeAt(e.length-1))){i(r.charCodeAt(0))||(e+=t.sep)}}e+=r}return s(e)},t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;var t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;for(var r=2,i=r;r<e.length&&92!==(t=e.charCodeAt(r));r++);return i!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};var p=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,v=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){
return!(!e||0===e.length||/^\s+$/.test(e)||(p.lastIndex=0,p.test(e)||n.isWindows&&v.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length))},t.isEqual=function(e,t,n){var i=e===t;return!n||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,n,i,o){if(void 0===o&&(o=t.nativeSep),e===n)return!0;if(!e||!n)return!1;if(n.length>e.length)return!1;if(i){if(!r.startsWithIgnoreCase(e,n))return!1;if(n.length===e.length)return!0;var s=n.length;return n.charAt(n.length-1)===o&&s--,e.charAt(s)===o}return n.charAt(n.length-1)!==o&&(n+=o),0===e.indexOf(n)},t.isAbsolute=function(e){return n.isWindows?c(e):l(e)},t.isAbsolute_win32=c,t.isAbsolute_posix=l,t.isWindowsDriveLetter=f}),define(e[11],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==c.number||e.constructor!==Array)}function r(e){return typeof e===c.string||e instanceof String}function i(e){
return!(typeof e!==c.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){return typeof e===c.undefined}function s(e){return o(e)||null===e}function u(e){return typeof e===c.function}function a(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(u(t)){if(e instanceof t)return;if(!s(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});var c={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(function(e){return r(e)})},t.isObject=i,t.isNumber=function(e){return(typeof e===c.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=o,
t.isUndefinedOrNull=s;var l=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!i(e))return!1;for(var t in e)if(l.call(e,t))return!1;return!0},t.isFunction=u,t.areFunctions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length>0&&e.every(u)},t.validateConstraints=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)a(e[r],t[r])},t.validateConstraint=a,t.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Object.create(e.prototype);return e.apply(r,t),r}}),define(e[13],t([0,1,11]),function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){e[n]&&"object"==typeof e[n]?t[n]=r(e[n]):t[n]=e[n]}),t}function i(e,t,r){if(n.isUndefinedOrNull(e))return e;var o=t(e);if(void 0!==o)return o;if(n.isArray(e)){for(var s=[],a=0,c=e;a<c.length;a++){var l=c[a];s.push(i(l,t,r))}return s}if(n.isObject(e)){
if(r.has(e))throw new Error("Cannot clone recursive data-structure");r.add(e);var f={};for(var h in e)u.call(e,h)&&(f[h]=i(e[h],t,r));return r.delete(e),f}return e}function o(e,t,r){return void 0===r&&(r=!0),n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(function(i){i in e?r&&(n.isObject(e[i])&&n.isObject(t[i])?o(e[i],t[i],r):e[i]=t[i]):e[i]=t[i]}),e):t}function s(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;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!s(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!s(i,o))return!1;for(n=0;n<i.length;n++)if(!s(e[i[n]],t[i[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;for(var t=[e];t.length>0;){var n=t.shift();Object.freeze(n)
;for(var r in n)if(u.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e};var u=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return i(e,t,new Set)},t.mixin=o,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e},t.equals=s,t.createKeywordMatcher=function(e,t){void 0===t&&(t=!1),t&&(e=e.map(function(e){return e.toLowerCase()}));var n=function(t){for(var n={},r=0,i=e;r<i.length;r++)n[i[r]]=!0;return n}();return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}},t.safeStringify=function(e){var t=[];return JSON.stringify(e,function(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){var r=t(e);return void 0===r?n:r},t.distinct=function(e,t){var n=Object.create(null)
;return e&&t?(Object.keys(t).forEach(function(r){var i=e[r],o=t[r];s(i,o)||(n[r]=o)}),n):n}}),define(e[9],t([0,1,2]),function(e,t,n){"use strict";function r(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=g[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function o(e){var 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 s(e,t){var n=t?function(e){
for(var t=void 0,n=0;n<e.length;n++){var 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,i="",o=e.scheme,s=e.authority,u=e.path,a=e.query,c=e.fragment;if(o&&(i+=o,i+=":"),(s||"file"===o)&&(i+=d,i+=d),s){var l=s.indexOf("@");if(-1!==l){var f=s.substr(0,l);s=s.substr(l+1),-1===(l=f.indexOf(":"))?i+=n(f,!1):(i+=n(f.substr(0,l),!1),i+=":",i+=n(f.substr(l+1),!1)),i+="@"}-1===(l=(s=s.toLowerCase()).indexOf(":"))?i+=n(s,!1):(i+=n(s.substr(0,l),!1),i+=s.substr(l))}if(u){if(u.length>=3&&47===u.charCodeAt(0)&&58===u.charCodeAt(2)){(h=u.charCodeAt(1))>=65&&h<=90&&(u="/"+String.fromCharCode(h+32)+":"+u.substr(3))}else if(u.length>=2&&58===u.charCodeAt(1)){var h=u.charCodeAt(0);h>=65&&h<=90&&(u=String.fromCharCode(h+32)+":"+u.substr(2))}i+=n(u,!0)}return a&&(i+="?",i+=n(a,!1)),c&&(i+="#",i+=t?c:r(c,!1)),i}Object.defineProperty(t,"__esModule",{value:!0});var u,a=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//,f=!0;t.setUriThrowOnMissingScheme=function(e){var t=f
;return f=e,t};var h="",d="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,v=function(){function e(e,t,n,r,i,o){"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=e||h,this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||h),this.query=r||h,this.fragment=i||h,function(e,t){if(!e.scheme){if(t||f)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&&!a.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){
if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"function"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return o(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===n?n=this.authority:null===n&&(n=h),void 0===r?r=this.path:null===r&&(r=h),void 0===i?i=this.query:null===i&&(i=h),
void 0===o?o=this.fragment:null===o&&(o=h),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new m(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=p.exec(e);return n?new m(n[2]||h,decodeURIComponent(n[4]||h),decodeURIComponent(n[5]||h),decodeURIComponent(n[7]||h),decodeURIComponent(n[9]||h),t):new m(h,h,h,h,h)},e.file=function(e){var t=h;if(n.isWindows&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){var r=e.indexOf(d,2);-1===r?(t=e.substring(2),e=d):(t=e.substring(2,r),e=e.substring(r)||d)}return new m("file",t,e,h,h)},e.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),s(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new m(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.URI=v;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,
t._fsPath=null,t}return i(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=o(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(v),g=(u={},u[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u)}),define(e[33],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[15],t([0,1,9,14]),function(e,t,n,r){"use strict";function o(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function s(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=o,t.keys=s,t.getOrSet=function(e,t,n){var r=e.get(t);return void 0===r&&(r=n,e.set(t,r)),r},t.mapToString=function(e){var t=[];return e.forEach(function(e,n){t.push(n+" => "+e)}),"Map("+e.size+") {"+t.join(", ")+"}"},t.setToString=function(e){var t=[];return e.forEach(function(e){t.push(e)}),"Set("+e.size+") {"+t.join(", ")+"}"},t.mapToSerializable=function(e){var t=[];return e.forEach(function(e,n){t.push([n,e])}),t},t.serializableToMap=function(e){for(var t=new Map,n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];t.set(o,s)}return t};var u=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},
e.prototype.next=function(){return this._pos+=1,this},e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},e.prototype.value=function(){return this._value[this._pos]},e}();t.StringIterator=u;var a=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this},e.prototype.cmp=function(e){for(var t=0,n=e.length,r=this._from;t<n&&r<this._to;){var i=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==i)return i;t+=1,r+=1}return n===this._to-this._from?0:t<n?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e}();t.PathIterator=a
;var c=function(){function e(){}return e.prototype.isEmpty=function(){return!(this.left||this.mid||this.right||this.value)},e}(),l=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new a)},e.forStrings=function(){return new e(new u)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,r=this._iter.reset(e);for(this._root||(this._root=new c,this._root.segment=r.value()),n=this._root;;){var i=r.cmp(n.segment);if(i>0)n.left||(n.left=new c,n.left.segment=r.value()),n=n.left;else if(i<0)n.right||(n.right=new c,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new c,n.mid.segment=r.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.delete=function(e){
for(var t=this._iter.reset(e),n=[],r=this._root;r;){var i=t.cmp(r.segment);if(i>0)n.push([1,r]),r=r.left;else if(i<0)n.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;n.length>0&&r.isEmpty();){var o=n.pop(),s=o[0],u=o[1];switch(s){case 1:u.left=void 0;break;case 0:u.mid=void 0;break;case-1:u.right=void 0}r=u}break}t.next(),n.push([0,r]),r=r.mid}}},e.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),n=this._root,r=void 0;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),r=n.value||r,n=n.mid}}return n&&n.value||r},e.prototype.findSuperstr=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())return n.mid?this._nodeIterator(n.mid):void 0;t.next(),n=n.mid}}},e.prototype._nodeIterator=function(e){var t,n,i,o=this;return{next:function(){return i||(i=[],n=0,o._forEach(e,function(e){return i.push(e)})),n>=i.length?r.FIN:(t?t.value=i[n++]:t={done:!1,
value:i[n++]},t)}}},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(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))},e}();t.TernarySearchTree=l;var f=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return o(this.map)},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e.prototype.keys=function(){return s(this.map).map(function(e){return n.URI.parse(e)})},
e.prototype.clone=function(){var t=new e;return this.map.forEach(function(e,n){return t.map.set(n,e)}),t},e}();t.ResourceMap=f;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));var h=function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=0);var 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++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.values=function(){for(var e=[],t=this._head;t;)e.push(t.value),t=t.next;return e},e.prototype.keys=function(){for(var e=[],t=this._head;t;)e.push(t.key),t=t.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(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},e.prototype.addItemLast=function(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},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head)this._head=e.next;else if(e===this._tail)this._tail=e.previous;else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}},e.prototype.touch=function(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;var n=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;var n=e.next,r=e.previous;e===this._head?(n.previous=void 0,
this._head=n):(n.previous=r,r.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),e},e.prototype.fromJSON=function(e){this.clear();for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r[0],o=r[1];this.set(i,o)}},e}();t.LinkedMap=h;var d=function(e){function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;return r._limit=t,r._ratio=Math.min(Math.max(0,n),1),r}return i(t,e),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ratio",{get:function(){return this._ratio},set:function(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,0)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2),
this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(h);t.LRUCache=d}),define(e[20],t([0,1,25,3,6,15,7]),function(e,t,n,r,i,o,s){"use strict";function u(e){switch(e){case 0:return"";case 1:return w+"*?";default:return"(?:"+b+"|"+w+"+"+b+"|"+b+w+"+)*?"}}function a(e,t){if(!e)return[];for(var n=[],r=!1,i=!1,o="",s=0,u=e;s<u.length;s++){var a=u[s];switch(a){case t:if(!r&&!i){n.push(o),o="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}o+=a}return o&&n.push(o),n}function c(e){if(!e)return"";var t="",n=a(e,_);if(n.every(function(e){return e===y}))t=".*";else{var i=!1;n.forEach(function(e,o){if(e!==y){for(var s=!1,l="",f=!1,h="",d=0,p=e;d<p.length;d++){var v=p[d];if("}"!==v&&s)l+=v;else if(!f||"]"===v&&h)switch(v){case"{":s=!0;continue;case"[":f=!0;continue;case"}":var m="(?:"+a(l,",").map(function(e){return c(e)}).join("|")+")";t+=m,s=!1,l="";break;case"]":t+="["+h+"]",f=!1,h="";break;case"?":t+=w
;continue;case"*":t+=u(1);continue;default:t+=r.escapeRegExpCharacters(v)}else{h+="-"===v?v:"^"!==v&&"!"!==v||h?v===_?"":r.escapeRegExpCharacters(v):"^"}}o<n.length-1&&(n[o+1]!==y||o+2<n.length)&&(t+=b),i=!1}else i||(t+=u(2),i=!0)})}return t}function l(e,t){if(!e)return A;var i;i="string"!=typeof e?e.pattern:e;var o=(i=i.trim())+"_"+!!t.trimForExclusions,s=I.get(o);if(s)return f(s,e);var u;if(C.test(i)){var a=i.substr(4);s=function(e,t){return e&&r.endsWith(e,a)?i:null}}else s=(u=S.exec(h(i,t)))?function(e,t){var n="/"+e,i="\\"+e,o=function(o,s){return o?s?s===e?t:null:o===e||r.endsWith(o,n)||r.endsWith(o,i)?t:null:null},s=[e];return o.basenames=s,o.patterns=[t],o.allBasenames=s,o}(u[1],i):(t.trimForExclusions?P:O).test(i)?function(e,t){var r=g(e.slice(1,-1).split(",").map(function(e){return l(e,t)}).filter(function(e){return e!==A}),e),i=r.length;if(!i)return A;if(1===i)return r[0];var o=function(t,n){for(var i=0,o=r.length;i<o;i++)if(r[i](t,n))return e;return null},s=n.first(r,function(e){
return!!e.allBasenames});s&&(o.allBasenames=s.allBasenames);var u=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);u.length&&(o.allPaths=u);return o}(i,t):(u=x.exec(h(i,t)))?d(u[1].substr(1),i,!0):(u=D.exec(h(i,t)))?d(u[1],i,!1):function(e){try{var t=new RegExp("^"+c(e)+"$");return function(n,r){return t.lastIndex=0,n&&t.test(n)?e:null}}catch(e){return A}}(i);return I.set(o,s),f(s,e)}function f(e,t){return"string"==typeof t?e:function(n,r){return i.isEqualOrParent(n,t.base)?e(t.pathToRelative(t.base,n),r):null}}function h(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function d(e,t,n){var o=i.nativeSep!==i.sep?e.replace(E,i.nativeSep):e,s=i.nativeSep+o,u=n?function(e,n){return e&&(e===o||r.endsWith(e,s))?t:null}:function(e,n){return e&&e===o?t:null};return u.allPaths=[(n?"*/":"./")+e],u}function p(e,t){if(void 0===t&&(t={}),!e)return L;if("string"==typeof e||m(e)){var r=l(e,t);if(r===A)return L;var o=function(e,t){return!!r(e,t)}
;return r.allBasenames&&(o.allBasenames=r.allBasenames),r.allPaths&&(o.allPaths=r.allPaths),o}return function(e,t){var r=g(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){if(!1===t)return A;var r=l(e,n);if(r===A)return A;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t,n,o,u){if(!u||!r(t,n))return null;var a=i.replace("$(basename)",o),c=u(a);return s.isThenable(c)?c.then(function(t){return t?e:null}):c?e:null};return o.requiresSiblings=!0,o}}return r}(n,e[n],t)}).filter(function(e){return e!==A})),o=r.length;if(!o)return A;if(!r.some(function(e){return!!e.requiresSiblings})){if(1===o)return r[0];var u=function(e,t){for(var n=0,i=r.length;n<i;n++){var o=r[n](e,t);if(o)return o}return null},a=n.first(r,function(e){return!!e.allBasenames});a&&(u.allBasenames=a.allBasenames);var c=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return c.length&&(u.allPaths=c),u}var f=function(e,t,n){for(var o=void 0,s=0,u=r.length;s<u;s++){
var a=r[s];a.requiresSiblings&&n&&(t||(t=i.basename(e)),o||(o=t.substr(0,t.length-i.extname(e).length)));var c=a(e,t,o,n);if(c)return c}return null},h=n.first(r,function(e){return!!e.allBasenames});h&&(f.allBasenames=h.allBasenames);var d=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);d.length&&(f.allPaths=d);return f}(e,t)}function v(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function m(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern&&"function"==typeof t.pathToRelative}function g(e,t){var n=e.filter(function(e){return!!e.basenames});if(n.length<2)return e;var r,i=n.reduce(function(e,t){var n=t.basenames;return n?e.concat(n):e},[]);if(t){r=[];for(var o=0,s=i.length;o<s;o++)r.push(t)}else r=n.reduce(function(e,t){var n=t.patterns;return n?e.concat(n):e},[]);var u=function(e,t){if(!e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var s=i.indexOf(t);return-1!==s?r[s]:null}
;u.basenames=i,u.patterns=r,u.allBasenames=i;var a=e.filter(function(e){return!e.basenames});return a.push(u),a}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};var y="**",_="/",b="[/\\\\]",w="[^/\\\\]",E=/\//g;t.splitGlobAware=a;var C=/^\*\*\/\*\.[\w\.-]+$/,S=/^\*\*\/([\w\.-]+)\/?$/,O=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,P=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,x=/^\*\*((\/[\w\.-]+)+)\/?$/,D=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new o.LRUCache(1e4),L=function(){return!1},A=function(){return null};t.match=function(e,t,n){return!(!e||!t)&&p(e)(t,void 0,n)},t.parse=p,t.hasSiblingPromiseFn=function(e){if(e){var t;return function(n){return t||(t=(e()||Promise.resolve([])).then(function(e){return e?v(e):{}})),t.then(function(e){return!!e[n]})}}},t.hasSiblingFn=function(e){if(e){var t;return function(n){if(!t){var r=e();t=r?v(r):{}}return!!t[n]}}},t.isRelativePattern=m,t.parseToAsync=function(e,t){
var n=p(e,t);return function(e,t,r){var i=n(e,t,r);return s.isThenable(i)?i:Promise.resolve(i)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[16],t([0,1,15]),function(e,t,n){"use strict";function r(e,n,r){if(!t.canNormalize||!e)return e;var i=r.get(e);if(i)return i;var o;return o=s.test(e)?e.normalize(n):e,r.set(e,o),o}Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;var i=new n.LRUCache(1e4);t.normalizeNFC=function(e){return r(e,"NFC",i)};var o=new n.LRUCache(1e4);t.normalizeNFD=function(e){return r(e,"NFD",o)};var s=/[^\u0000-\u0080]/}),define(e[22],t([0,1,6,9,3,21,2]),function(e,t,n,r,i,o,s){"use strict";function u(e){return!e||e.scheme!==o.Schemas.file||!s.isLinux}function a(e,t,r){if(void 0===r&&(r=u(e)),e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return n.isEqualOrParent(l(e),l(t),r);if(function(e,t,n){return e===t||n&&e&&t&&i.equalsIgnoreCase(e,t)
}(e.authority,t.authority,r))return n.isEqualOrParent(e.path,t.path,r,"/")}return!1}function c(e){return n.basename(e.path)}function l(e){var t,r=e.path;return t=e.authority&&r.length>1&&"file"===e.scheme?"//"+e.authority+r:s.isWindows&&47===r.charCodeAt(0)&&n.isWindowsDriveLetter(r.charCodeAt(1))&&58===r.charCodeAt(2)?r.substr(1):r,s.isWindows&&(t=t.replace(/\//g,"\\")),t}Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return u(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=u,t.basenameOrAuthority=function(e){return c(e)||e.authority},t.isEqualOrParent=a,t.isEqual=function(e,t,n){return void 0===n&&(n=u(e)),!(e!==t)||!(!e||!t)&&(n?i.equalsIgnoreCase(e.toString(),t.toString()):e.toString()===t.toString())},t.basename=c,t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return r.URI.file(n.dirname(l(e)));var t=n.dirname(e.path,"/");return e.authority&&t.length&&47!==t.charCodeAt(0)?null:e.with({path:t})},t.joinPath=function(e,t){var i
;return i=e.scheme===o.Schemas.file?r.URI.file(n.join(l(e),t)).path:n.join(e.path,t),e.with({path:i})},t.normalizePath=function(e){if(!e.path.length)return e;var t;return t=e.scheme===o.Schemas.file?r.URI.file(n.normalize(l(e))).path:n.normalize(e.path),e.with({path:t})},t.fsPath=l,t.isAbsolutePath=function(e){return n.isAbsolute(e.path)},t.distinctParents=function(e,t){for(var n=[],r=function(r){var i=t(e[r]);if(e.some(function(e,n){return n!==r&&a(i,t(e))}))return"continue";n.push(e[r])},i=0;i<e.length;i++)r(i);return n},t.isMalformedFileUri=function(e){if(!e.scheme||s.isWindows&&e.scheme.match(/^[a-zA-Z]$/))return r.URI.file((e.scheme?e.scheme+":":"")+e.path)};!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){var n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(function(e){var t=e.split(":"),r=t[0],i=t[1];r&&i&&n.set(r,i)})
;var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(t.DataUri||(t.DataUri={}))}),define(e[23],t([0,1]),function(e,t){"use strict";function n(){return new s}function r(e){return u.test(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._value=e}return e.prototype.asHex=function(){return this._value},e}(),s=function(e){function t(){return e.call(this,[t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))||this}return i(t,e),t._oneOf=function(e){return e[Math.floor(e.length*Math.random())]},
t._randomHex=function(){return t._oneOf(t._chars)},t._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t._timeHighBits=["8","9","a","b"],t}(o);t.v4=n;var u=/^[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 o(e)},t.generateUuid=function(){return n().asHex()}}),define(e[24],t([0,1,9]),function(e,t,n){"use strict";function r(e){var t,n=[];try{var r=JSON.parse(e.arguments),i=r[r.length-1];i&&i.__$stack&&(r.pop(),t=i.__$stack),n.push.apply(n,r)}catch(t){n.push("Unable to log remote console arguments",e.arguments)}return{args:n,stack:t}}function i(e){if("string"!=typeof e)return i(r(e).stack);var t=e;if(t){var s=o(t),u=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(s||"");if(u&&4===u.length)return{uri:n.URI.file(u[1]),line:Number(u[2]),column:Number(u[3])}}}function o(e){if(!e)return e;var t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function s(e){return"color: "+e
}Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteConsoleLog=function(e){var t=e;return t&&"string"==typeof t.type&&"string"==typeof t.severity},t.parse=r,t.getFirstFrame=i,t.log=function(e,t){var n=r(e),i=n.args,u=n.stack,a="string"==typeof i[0]&&1===i.length,c=o(u);c&&(c="("+c.trim()+")");var l=[];l="string"==typeof i[0]?c&&a?["%c["+t+"] %c"+i[0]+" %c"+c,s("blue"),s("black"),s("grey")]:["%c["+t+"] %c"+i[0],s("blue"),s("black")].concat(i.slice(1)):["%c["+t+"]%",s("blue")].concat(i),c&&!a&&l.push(c),console[e.severity].apply(console,l)}}),define(e[30],t([0,1,47]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){void 0===e&&(e="utf8"),this.stringDecoder=new n.StringDecoder(e),this.remaining=null}return e.prototype.write=function(e){var t=[],n=this.remaining?this.remaining+this.stringDecoder.write(e):this.stringDecoder.write(e);if(n.length<1)return t;for(var r,i=0,o=i;o<n.length;)if(13===(r=n.charCodeAt(o))||10===r){
if(t.push(n.substring(i,o)),++o<n.length){var s=r;r=n.charCodeAt(o),(13===s&&10===r||10===s&&13===r)&&o++}i=o}else o++;return this.remaining=i<n.length?n.substr(i):null,t},e.prototype.end=function(){return this.remaining},e}();t.LineDecoder=r}),define(e[27],t([0,1,46]),function(e,t,n){"use strict";function r(e,t,i){if(n.ok(e,"Missing first parameter"),n.ok("function"==typeof t,"Second parameter must be a function that is called for each element"),n.ok("function"==typeof i,"Third parameter must be a function that is called on error and success"),"function"==typeof e)try{e(function(e,n){e?i(e,null):r(n,t,i)})}catch(e){i(e,null)}else{var o=[],s=function(n){if(n<e.length)try{t(e[n],function(e,t){!0!==e&&!1!==e||(t=e,e=null),e?i(e,null):(t&&o.push(t),process.nextTick(function(){s(n+1)}))},n,e.length)}catch(e){i(e,null)}else i(null,o)};s(0)}}function i(e){!function(e){n.ok(e.length>1,"Need at least one error handler and one function to process sequence"),e.forEach(function(e){n.ok("function"==typeof e)})
;var t=e.splice(0,1)[0],i=null;r(e,function(e,t){var n=function(e,n){!0!==e&&!1!==e||(n=e,e=null),e?t(e,null):(i=n,t(null,null))};try{e.call(n,i)}catch(e){t(e,null)}},function(e,n){e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}Object.defineProperty(t,"__esModule",{value:!0}),t.parallel=function(e,t,n){var r=new Array(e.length),i=new Array(e.length),o=!1,s=0;if(0===e.length)return n(null,[]);e.forEach(function(u,a){t(u,function(t,u){if(t?(o=!0,r[a]=null,i[a]=t):(r[a]=u,i[a]=null),++s===e.length)return n(o?i:null,r)})})},t.loop=r,t.sequence=i}),define(e[29],t([0,1,12]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new Promise(function(r,i){n.open(e,"r",null,function(e,o){function s(e,t,s){n.close(o,function(n){return n?i(n):e&&"EISDIR"===e.code?i(e):r({buffer:t,bytesRead:s})})}function u(){n.read(o,a,c,t-c,null,function(e,n){return e?s(e,null,0):0===n?s(null,a,c):(c+=n)===t?s(null,a,c):u()})}if(e)return i(e)
;var a=Buffer.allocUnsafe(t),c=0;u()})})},t.readToMatchingString=function(e,t,r,i){return new Promise(function(o,s){return n.open(e,"r",null,function(u,a){function c(e,t){n.close(a,function(n){return n?s(n):e&&"EISDIR"===e.code?s(e):o(t)})}function l(){n.read(a,f,h,r,null,function(n,r){if(n)return c(n,null);if(0===r)return c(null,null);h+=r;var o=f.indexOf(t);return o>=0?c(null,f.toString("utf8").substr(0,o)):h>=i?c(new Error("Could not find "+t+" in first "+i+" bytes of "+e),null):l()})}if(u)return s(u);var f=Buffer.allocUnsafe(i),h=0;l()})})}}),define(e[31],t([0,1,29,45,2,18,44]),function(e,t,n,r,o,s,u){"use strict";function a(e){return r.decodeStream(c(e))}function c(e){return e===t.UTF8_with_bom||null===e?t.UTF8:e}function l(e,n){if(!e||n<2)return null;var r=e.readUInt8(0),i=e.readUInt8(1);if(254===r&&255===i)return t.UTF16be;if(255===r&&254===i)return t.UTF16le;if(n<3)return null;var o=e.readUInt8(2);return 239===r&&187===i&&191===o?t.UTF8:null}function f(t){return new Promise(function(t,n){
e(["jschardet"],t,n)}).then(function(e){e.Constants.MINIMUM_THRESHOLD=p;var n=e.detect(t);if(!n||!n.encoding)return null;var r=n.encoding.toLowerCase();return 0<=v.indexOf(r)?null:h(n.encoding)})}function h(e){var t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return m[t]||t}function d(e,n){var r=e.buffer,i=e.bytesRead,o=l(r,i),s=!1;if(o!==t.UTF16be&&o!==t.UTF16le&&r){for(var u=!0,a=!0,c=!1,h=0;h<i&&h<g;h++){var d=h%2==1,p=0===r.readInt8(h);if(p&&(c=!0),u&&(d&&!p||!d&&p)&&(u=!1),a&&(d&&p||!d&&!p)&&(a=!1),p&&!u&&!a)break}c&&(u?o=t.UTF16le:a?o=t.UTF16be:s=!0)}return n&&!s&&!o&&r?f(r.slice(0,i)).then(function(e){return{seemsBinary:!1,encoding:e}}):{seemsBinary:s,encoding:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.toDecodeStream=function(e,n){return n.minBytesRequiredForDetection||(n.minBytesRequiredForDetection=n.guessEncoding?_:y),n.overwriteEncoding||(n.overwriteEncoding=function(e){return e||t.UTF8}),
new Promise(function(t,r){e.on("error",r),e.pipe(new(function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t._buffer=[],t._bytesBuffered=0,t}return i(r,e),r.prototype._write=function(e,t,r){Buffer.isBuffer(e)||r(new Error("data must be a buffer")),this._decodeStream?this._decodeStream.write(e,r):(this._buffer.push(e),this._bytesBuffered+=e.length,this._decodeStreamConstruction?this._decodeStreamConstruction.then(function(e){return r()},function(e){return r(e)}):"number"==typeof n.minBytesRequiredForDetection&&this._bytesBuffered>=n.minBytesRequiredForDetection?this._startDecodeStream(r):r())},r.prototype._startDecodeStream=function(e){var r=this;this._decodeStreamConstruction=Promise.resolve(d({buffer:Buffer.concat(this._buffer),bytesRead:this._bytesBuffered},n.guessEncoding)).then(function(i){n.overwriteEncoding&&(i.encoding=n.overwriteEncoding(i.encoding)),r._decodeStream=a(i.encoding);for(var o=0,s=r._buffer;o<s.length;o++){var u=s[o];r._decodeStream.write(u)}e(),t({detected:i,
stream:r._decodeStream})},function(t){r.emit("error",t),e(t)})},r.prototype._final=function(e){var t=this;this._decodeStream?this._decodeStream.end(e):this._startDecodeStream(function(){return t._decodeStream.end(e)})},r}(u.Writable)))})},t.bomLength=function(e){switch(e){case t.UTF8:return 3;case t.UTF16be:case t.UTF16le:return 2}return 0},t.decode=function(e,t){return r.decode(e,c(t))},t.encode=function(e,t,n){return r.encode(e,c(t),n)},t.encodingExists=function(e){return r.encodingExists(c(e))},t.decodeStream=a,t.encodeStream=function(e,t){return r.encodeStream(c(e),t)},t.detectEncodingByBOMFromBuffer=l,t.detectEncodingByBOM=function(e){return n.readExactlyByFile(e,3).then(function(e){return l(e.buffer,e.bytesRead)})};var p=.2,v=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=f;var m={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:var t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}};var g=512,y=512,_=4096;t.detectEncodingFromBuffer=d;var b={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){var n,i=process.env.VSCODE_CLI_ENCODING;return i?(e&&console.log("Found VSCODE_CLI_ENCODING variable: "+i),n=Promise.resolve(i)):n=o.isLinux||o.isMacintosh?new Promise(function(t){e&&console.log('Running "locale charmap" to detect terminal encoding...'),s.exec("locale charmap",function(e,n,r){return t(n)})}):new Promise(function(t){e&&console.log('Running "chcp" to detect terminal encoding...'),s.exec("chcp",function(e,n,r){if(n)for(var i=0,o=Object.keys(b);i<o.length;i++){var s=o[i];if(n.indexOf(s)>=0)return t(b[s])}return t(void 0)})
}),n.then(function(n){if(e&&console.log("Detected raw terminal encoding: "+n),!n||"utf-8"===n.toLowerCase()||n.toLowerCase()===t.UTF8)return t.UTF8;var i=h(n);return r.encodingExists(i)?i:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[35],t([0,1,12,36,7,16,2,3,23,31,27,4]),function(e,t,n,r,i,o,s,u,a,c,l,f){"use strict";function h(e){return s.isMacintosh?n.readdirSync(e).map(function(e){return o.normalizeNFC(e)}):n.readdirSync(e)}function d(e,t){return s.isMacintosh?n.readdir(e,function(e,n){return e?t(e,[]):t(null,n.map(function(e){return o.normalizeNFC(e)}))}):n.readdir(e,t)}function p(e,t,i,o){var s=o||Object.create(null);n.stat(e,function(o,u){if(o)return i(o);if(!u.isDirectory())return function(e,t,r,i){var o=n.createReadStream(e),s=n.createWriteStream(t,{mode:r}),u=!1,a=function(e){u||(u=!0,e?i(e):n.chmod(t,r,i))};o.once("error",function(e){return a(e)}),s.once("error",function(e){return a(e)}),s.once("close",function(){return a()}),o.pipe(s)
}(e,t,511&u.mode,i);if(s[e])return i(null);s[e]=!0;var a=function(){d(e,function(n,o){E(o,function(n,i){p(r.join(e,n),r.join(t,n),function(e){return i(e,[])},s)},i)})};v(t,511&u.mode).then(a,a)})}function v(e,t,o){var s=function(){return i.nfcall(n.mkdir,e,t).then(void 0,function(t){return"ENOENT"===t.code?Promise.reject(t):i.nfcall(n.stat,e).then(function(t){return t.isDirectory()?null:Promise.reject(new Error("'"+e+"' exists and is not a directory."))},function(e){return Promise.reject(t)})})};return e===r.dirname(e)?Promise.resolve(!0):s().then(void 0,function(n){return o&&o.isCancellationRequested?Promise.resolve(!1):"ENOENT"===n.code?v(r.dirname(e),t).then(s):Promise.reject(n)})}function m(e,t){if("\\"===e||"/"===e)return t(new Error("Will not delete root!"));n.exists(e,function(i){i?n.lstat(e,function(i,o){if(i||!o)t(i);else if(!o.isDirectory()||o.isSymbolicLink()){var s=o.mode;128&s?n.unlink(e,t):n.chmod(e,128|s,function(r){r?t(r):n.unlink(e,t)})}else d(e,function(i,o){
if(i||!o)t(i);else if(0===o.length)n.rmdir(e,t);else{var s=null,u=o.length;o.forEach(function(i){m(r.join(e,i),function(r){u--,r&&(s=s||r),0===u&&(s?t(s):n.rmdir(e,t))})})}})}):t(null)})}function g(e){try{var t=n.lstatSync(e);t.isDirectory()&&!t.isSymbolicLink()?(h(e).forEach(function(t){return g(r.join(e,t))}),n.rmdirSync(e)):n.unlinkSync(e)}catch(e){if("ENOENT"===e.code)return;throw e}}function y(e,t,r,i){r=_(r),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,r,i){r.encoding&&(t=c.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM}));if(!C)return n.writeFile(e,t,{mode:r.mode,flag:r.flag},i);n.open(e,"string"==typeof r.flag?r.flag:"r",r.mode,function(e,r){if(e)return i(e);n.writeFile(r,t,function(e){if(e)return n.close(r,function(){return i(e)});n.fdatasync(r,function(e){return e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),C=!1),n.close(r,function(e){return i(e)})})})})}(e,t,r,i):function(e,t,r,i){var o,s,u=!1,a=function(e){u||(u=!0,
e?s?(l.once("close",function(){return i(e)}),l.destroy()):i(e):i())},l=n.createWriteStream(e,{mode:r.mode,flags:r.flag,autoClose:!1});l.once("open",function(e){o=e,s=!0,r.encoding&&(t=t.pipe(c.encodeStream(r.encoding.charset,{addBOM:r.encoding.addBOM}))),t.pipe(l)}),t.once("error",function(e){return a(e)}),l.once("error",function(e){return a(e)}),l.once("finish",function(){C&&s?n.fdatasync(o,function(e){e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),C=!1),l.destroy()}):l.destroy()}),l.once("close",function(){return a()})}(e,t,r,i)}function _(e){if(!e)return{mode:438,flag:"w"};var t={mode:e.mode,flag:e.flag,encoding:e.encoding};return"number"!=typeof t.mode&&(t.mode=438),"string"!=typeof t.flag&&(t.flag="w"),t}function b(e){var t=r.dirname(e);if(e===t)return e;var n=(r.basename(e)||e).toLowerCase();try{var i=h(t).filter(function(e){return e.toLowerCase()===n});if(1===i.length){if(s=b(t))return r.join(s,i[0])}else if(i.length>1){var o=i.indexOf(n);if(o>=0){
var s=b(t);if(s)return r.join(s,i[o])}}}catch(e){}return null}function w(e){return u.rtrim(r.normalize(e),r.sep)}Object.defineProperty(t,"__esModule",{value:!0});var E=l.loop;t.readdirSync=h,t.readdir=d,t.statLink=function(e,t){n.lstat(e,function(r,i){r||i.isSymbolicLink()?n.stat(e,function(e,n){if(e)return t(e,null);t(null,{stat:n,isSymbolicLink:i&&i.isSymbolicLink()})}):t(null,{stat:i,isSymbolicLink:!1})})},t.copy=p,t.mkdirp=v,t.del=function(e,t,i,o){n.exists(e,function(s){if(!s)return i(null);n.stat(e,function(s,c){if(s||!c)return i(s);if("."===e[e.length-1]||u.endsWith(e,"./")||u.endsWith(e,".\\"))return m(e,i);var l=r.join(t,a.generateUuid());n.rename(e,l,function(t){if(t)return m(e,i);i(null),m(l,function(e){e&&console.error(e),o&&o(e)})})})})},t.delSync=g,t.mv=function(e,t,r){function i(e){if(e)return r(e);n.stat(t,function(e,i){return e?r(e):i.isDirectory()?r(null):void n.open(t,"a",null,function(e,t){if(e)return r(e);n.futimes(t,i.atime,new Date,function(e){if(e)return r(e);n.close(t,r)})})})}
if(e===t)return r(null);n.rename(e,t,function(n){return n?n&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||u.endsWith(e,".")?p(e,t,function(t){if(t)return r(t);m(e,i)}):r(n):i(null)})};var C=!0;t.writeFileAndFlush=y,t.writeFileAndFlushSync=function(e,t,r){if((r=_(r)).encoding&&(t=c.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM})),!C)return n.writeFileSync(e,t,{mode:r.mode,flag:r.flag});var i=n.openSync(e,"string"==typeof r.flag?r.flag:"r",r.mode);try{n.writeFileSync(i,t);try{n.fdatasyncSync(i)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),C=!1}}finally{n.closeSync(i)}},t.realcaseSync=b,t.realpathSync=function(e){try{return n.realpathSync(e)}catch(r){var t=w(e);return n.accessSync(t,n.constants.R_OK),t}},t.realpath=function(e,t){return n.realpath(e,function(r,i){if(!r)return t(null,i);var o=w(e);return n.access(o,n.constants.R_OK,function(e){return t(e,o)})})},t.watch=function(e,t,r){try{var i=n.watch(e)
;return i.on("change",function(e,n){var r;n&&(r=n.toString(),s.isMacintosh&&(r=o.normalizeNFC(r))),t(e,r)}),i.on("error",function(t,n){return r("Failed to watch "+e+" for changes ("+t+", "+n+")")}),f.toDisposable(function(){i.removeAllListeners(),i.close()})}catch(t){n.exists(e,function(n){n&&r("Failed to watch "+e+" for changes ("+t.toString()+")")})}return f.Disposable.None},t.sanitizeFilePath=function(e,t){return s.isWindows&&u.endsWith(e,":")&&(e+=r.sep),r.isAbsolute(e)||(e=r.join(t,e)),e=r.normalize(e),s.isWindows?(e=u.rtrim(e,r.sep),u.endsWith(e,":")&&(e+=r.sep)):(e=u.rtrim(e,r.sep))||(e=r.sep),e}}),define(e[37],t([0,1,4,5,7,10,8]),function(e,t,i,o,s,u,a){"use strict";function c(e){var t=Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}function l(e){return e.read(4).readUInt32BE(0)}function f(e,t){if(void 0===t)e.write(y.Undefined);else if("string"==typeof t){i=Buffer.from(t);e.write(y.String),e.write(c(i.length)),e.write(i)}else if(Buffer.isBuffer(t))e.write(y.Buffer),e.write(c(t.length)),
e.write(t);else if(Array.isArray(t)){e.write(y.Array),e.write(c(t.length));for(var n=0,r=t;n<r.length;n++){f(e,r[n])}}else{var i=Buffer.from(JSON.stringify(t));e.write(y.Object),e.write(c(i.length)),e.write(i)}}function h(e){switch(e.read(1).readUInt8(0)){case v.Undefined:return;case v.String:return e.read(l(e)).toString();case v.Buffer:return e.read(l(e));case v.Array:for(var t=l(e),n=[],r=0;r<t;r++)n.push(h(e));return n;case v.Object:return JSON.parse(e.read(l(e)).toString())}}function d(e){return{call:function(t,n,r){return e.then(function(e){return e.call(t,n,r)})},listen:function(t,n){var r=new o.Relay;return e.then(function(e){return r.input=e.listen(t,n)}),r.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 p;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(p||(p={}));var v,m=function(){function e(e){this.buffer=e,this.pos=0}return e.prototype.read=function(e){var t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.length,t},e}(),g=function(){function e(){this.buffers=[]}return Object.defineProperty(e.prototype,"buffer",{get:function(){return Buffer.concat(this.buffers)},enumerable:!0,configurable:!0}),e.prototype.write=function(e){this.buffers.push(e)},e}();!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.Array=3]="Array",e[e.Object=4]="Object"}(v||(v={}));var y={Undefined:Buffer.alloc(1,v.Undefined),String:Buffer.alloc(1,v.String),Buffer:Buffer.alloc(1,v.Buffer),Array:Buffer.alloc(1,v.Array),Object:Buffer.alloc(1,v.Object)},_=function(){function e(e,t){var n=this;this.protocol=e,
this.ctx=t,this.channels=new Map,this.activeRequests=new Map,this.protocolListener=this.protocol.onMessage(function(e){return n.onRawMessage(e)}),this.sendResponse({type:200})}return e.prototype.registerChannel=function(e,t){this.channels.set(e,t)},e.prototype.sendResponse=function(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)}},e.prototype.send=function(e,t){void 0===t&&(t=void 0);var n=new g;f(n,e),f(n,t),this.sendBuffer(n.buffer)},e.prototype.sendBuffer=function(e){try{this.protocol.send(e)}catch(e){}},e.prototype.onRawMessage=function(e){var t=new m(e),n=h(t),r=h(t),i=n[0];switch(i){case 100:return this.onPromise({type:i,id:n[1],channelName:n[2],name:n[3],arg:r});case 102:return this.onEventListen({type:i,id:n[1],channelName:n[2],name:n[3],arg:r});case 101:case 103:return this.disposeActiveRequest({type:i,id:n[1]})}},e.prototype.onPromise=function(e){var t=this,n=this.channels.get(e.channelName)
;if(!n)throw new Error("Unknown channel");var r,o=new u.CancellationTokenSource;try{r=n.call(this.ctx,e.name,e.arg,o.token)}catch(e){r=Promise.reject(e)}var s=e.id;r.then(function(n){t.sendResponse({id:s,data:n,type:201}),t.activeRequests.delete(e.id)},function(n){n instanceof Error?t.sendResponse({id:s,data:{message:n.message,name:n.name,stack:n.stack?n.stack.split?n.stack.split("\n"):n.stack:void 0},type:202}):t.sendResponse({id:s,data:n,type:203}),t.activeRequests.delete(e.id)});var a=i.toDisposable(function(){return o.cancel()});this.activeRequests.set(e.id,a)},e.prototype.onEventListen=function(e){var t=this,n=this.channels.get(e.channelName);if(!n)throw new Error("Unknown channel");var r=e.id,i=n.listen(this.ctx,e.name,e.arg)(function(e){return t.sendResponse({id:r,data:e,type:204})});this.activeRequests.set(e.id,i)},e.prototype.disposeActiveRequest=function(e){var t=this.activeRequests.get(e.id);t&&(t.dispose(),this.activeRequests.delete(e.id))},e.prototype.dispose=function(){
this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(function(e){return e.dispose()}),this.activeRequests.clear()},e}();t.ChannelServer=_;var b=function(){function e(e){var t=this;this.protocol=e,this.state=p.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new o.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(function(e){return t.onBuffer(e)})}return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r,i){return t.requestPromise(e,n,r,i)},listen:function(n,r){return t.requestEvent(e,n,r)}}},e.prototype.requestPromise=function(e,t,n,r){var o=this;void 0===r&&(r=u.CancellationToken.None);var c=this.lastRequestId++,l={id:c,type:100,channelName:e,name:t,arg:n};if(r.isCancellationRequested)return Promise.reject(a.canceled());var f,h=new Promise(function(e,t){if(r.isCancellationRequested)return t(a.canceled())
;var n=s.createCancelablePromise(function(e){return o.whenInitialized()});n.then(function(){n=null;o.handlers.set(c,function(n){switch(n.type){case 201:o.handlers.delete(c),e(n.data);break;case 202:o.handlers.delete(c);var r=new Error(n.data.message);r.stack=n.data.stack,r.name=n.data.name,t(r);break;case 203:o.handlers.delete(c),t(n.data)}}),o.sendRequest(l)});var u=function(){n?(n.cancel(),n=null):o.sendRequest({id:c,type:101}),t(a.canceled())},h=r.onCancellationRequested(u);f=i.combinedDisposable([i.toDisposable(u),h]),o.activeRequests.add(f)});return s.always(h,function(){return o.activeRequests.delete(f)}),h},e.prototype.requestEvent=function(e,t,n){var r=this,i=this.lastRequestId++,u={id:i,type:102,channelName:e,name:t,arg:n},a=null,c=new o.Emitter({onFirstListenerAdd:function(){(a=s.createCancelablePromise(function(e){return r.whenInitialized()})).then(function(){a=null,r.activeRequests.add(c),r.sendRequest(u)})},onLastListenerRemove:function(){a?(a.cancel(),a=null):(r.activeRequests.delete(c),
r.sendRequest({id:i,type:103}))}});return this.handlers.set(i,function(e){return c.fire(e.data)}),c.event},e.prototype.sendRequest=function(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])}},e.prototype.send=function(e,t){void 0===t&&(t=void 0);var n=new g;f(n,e),f(n,t),this.sendBuffer(n.buffer)},e.prototype.sendBuffer=function(e){try{this.protocol.send(e)}catch(e){}},e.prototype.onBuffer=function(e){var t=new m(e),n=h(t),r=h(t);switch(n[0]){case 200:return this.onResponse({type:n[0]});case 201:case 202:case 204:case 203:return this.onResponse({type:n[0],id:n[1],data:r})}},e.prototype.onResponse=function(e){if(200===e.type)return this.state=p.Idle,void this._onDidInitialize.fire();var t=this.handlers.get(e.id);t&&t(e)},e.prototype.whenInitialized=function(){return this.state===p.Idle?Promise.resolve():o.Event.toPromise(this.onDidInitialize)},e.prototype.dispose=function(){
this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),this.activeRequests.forEach(function(e){return e.dispose()}),this.activeRequests.clear()},e}();t.ChannelClient=b;var w=function(){function e(e){var t=this;this.channels=new Map,this._connections=new Set,this._onDidChangeConnections=new o.Emitter,this.onDidChangeConnections=this._onDidChangeConnections.event,e(function(e){var n=e.protocol,r=e.onDidClientDisconnect;o.Event.once(n.onMessage)(function(e){var i=h(new m(e)),o=new _(n,i),s=new b(n);t.channels.forEach(function(e,t){return o.registerChannel(t,e)});var u={channelClient:s,ctx:i};t._connections.add(u),t._onDidChangeConnections.fire(u),r(function(){o.dispose(),s.dispose(),t._connections.delete(u)})})})}return Object.defineProperty(e.prototype,"connections",{get:function(){var e=[];return this._connections.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),e.prototype.getChannel=function(e,t){var n=this;return{call:function(r,i,o){
return d(t.routeCall(n,r,i).then(function(t){return t.channelClient.getChannel(e)})).call(r,i,o)},listen:function(r,i){return d(t.routeEvent(n,r,i).then(function(t){return t.channelClient.getChannel(e)})).listen(r,i)}}},e.prototype.registerChannel=function(e,t){this.channels.set(e,t)},e.prototype.dispose=function(){this.channels.clear(),this._connections.clear(),this._onDidChangeConnections.dispose()},e}();t.IPCServer=w;var E=function(){function e(e,t){var n=new g;f(n,t),e.send(n.buffer),this.channelClient=new b(e),this.channelServer=new _(e,t)}return e.prototype.getChannel=function(e){return this.channelClient.getChannel(e)},e.prototype.registerChannel=function(e,t){this.channelServer.registerChannel(e,t)},e.prototype.dispose=function(){this.channelClient.dispose(),this.channelServer.dispose()},e}();t.IPCClient=E,t.getDelayedChannel=d,t.getNextTickChannel=function(e){var t=!1;return{call:function(n,r,i){return t?e.call(n,r,i):s.timeout(0).then(function(){return t=!0}).then(function(){return e.call(n,r,i)})},
listen:function(n,r){if(t)return e.listen(n,r);var i=new o.Relay;return s.timeout(0).then(function(){return t=!0}).then(function(){return i.input=e.listen(n,r)}),i.event}}};var C=function(){function e(e){this.fn=e}return e.prototype.routeCall=function(e){return this.route(e)},e.prototype.routeEvent=function(e){return this.route(e)},e.prototype.route=function(e){return n(this,void 0,void 0,function(){var t,n,i;return r(this,function(r){switch(r.label){case 0:t=0,n=e.connections,r.label=1;case 1:return t<n.length?(i=n[t],[4,Promise.resolve(this.fn(i.ctx))]):[3,4];case 2:if(r.sent())return[2,Promise.resolve(i)];r.label=3;case 3:return t++,[3,1];case 4:return[4,o.Event.toPromise(e.onDidChangeConnections)];case 5:return r.sent(),[4,this.route(e)];case 6:return[2,r.sent()]}})})},e}();t.StaticRouter=C}),define(e[38],t([43,42]),function(e,t){return e.create("vs/base/node/processes",t)}),define(e[41],t([0,1,36,12,18,38,11,13,6,2,30,33]),function(e,t,n,r,o,s,u,a,c,l,f,h){"use strict";function d(t,n){if(l.isWindows)try{
var r={stdio:["pipe","pipe","ignore"]};n&&(r.cwd=n),o.execFileSync("taskkill",["/T","/F","/PID",t.pid.toString()],r)}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(l.isLinux||l.isMacintosh)try{var i=h.getPathFromAmdModule(e,"vs/base/node/terminateProcess.sh"),s=o.spawnSync(i,[t.pid.toString()]);if(s.error)return{success:!1,error:s.error}}catch(e){return{success:!1,error:e}}else t.kill("SIGKILL");return{success:!0}}function p(){return process.env.comspec||"cmd.exe"}Object.defineProperty(t,"__esModule",{value:!0}),t.terminateProcess=d,t.getWindowsShell=p,t.sanitizeProcessEnvironment=function(e){var t=[/^ELECTRON_.+$/,/^GOOGLE_API_KEY$/,/^VSCODE_.+$/];Object.keys(e).forEach(function(n){for(var r=0;r<t.length;r++)if(-1!==n.search(t[r])){delete e[n];break}})};var v=function(){function e(e,t,n,r){var i=this;if(void 0!==t&&void 0!==n&&void 0!==r)this.cmd=e,this.args=t,this.shell=n,this.options=r;else{
var o=e;this.cmd=o.command,this.shell=o.isShellCommand,this.args=o.args.slice(0),this.options=o.options||{}}if(this.childProcess=null,this.terminateRequested=!1,this.options.env){var s=Object.create(null);Object.keys(process.env).forEach(function(e){s[e]=process.env[e]}),Object.keys(this.options.env).forEach(function(e){s[e]=i.options.env[e]}),this.options.env=s}}return e.prototype.getSanitizedCommand=function(){var t=this.cmd.toLowerCase(),r=t.lastIndexOf(n.sep);return-1!==r&&(t=t.substring(r+1)),e.WellKnowCommands[t]?t:"other"},e.prototype.start=function(e){var t=this;return l.isWindows&&(this.options&&this.options.cwd&&c.isUNC(this.options.cwd)||!this.options&&c.isUNC(process.cwd()))?Promise.reject(new Error(s.localize(0,null))):this.useExec().then(function(n){var r,i,s=new Promise(function(e,t){r=e,i=t});if(n){var c=t.cmd;t.args&&(c=c+" "+t.args.join(" ")),t.childProcess=o.exec(c,t.options,function(n,o,s){t.childProcess=null;var u=n;u&&u.killed?i({killed:t.terminateRequested,stdout:o.toString(),
stderr:s.toString()}):t.handleExec(r,e,n,o,s)})}else{var f=null,h=function(n){t.childProcess=null,t.childProcessPromise=null,t.handleClose(n,r,e,i);var o={terminated:t.terminateRequested};u.isNumber(n)&&(o.cmdCode=n),r(o)};if(t.shell&&l.isWindows){var d=a.deepClone(t.options);d.windowsVerbatimArguments=!0,d.detached=!1;var v=!1,m=!1,g=[],y=t.ensureQuotes(t.cmd);g.push(y.value),v=y.quoted,t.args&&t.args.forEach(function(e){y=t.ensureQuotes(e),g.push(y.value),m=m&&y.quoted});var _=["/s","/c"];v?m?_.push('"'+g.join(" ")+'"'):g.length>1?_.push('"'+g[0]+'" '+g.slice(1).join(" ")):_.push('"'+g[0]+'"'):_.push(g.join(" ")),f=o.spawn(p(),_,d)}else t.cmd&&(f=o.spawn(t.cmd,t.args,t.options));f&&(t.childProcess=f,t.childProcessPromise=Promise.resolve(f),t.pidResolve&&(t.pidResolve(u.isNumber(f.pid)?f.pid:-1),t.pidResolve=void 0),f.on("error",function(e){t.childProcess=null,i({terminated:t.terminateRequested,error:e})}),f.pid&&(t.childProcess.on("close",h),t.handleSpawn(f,r,e,i,!0)))}return s})},
e.prototype.handleClose=function(e,t,n,r){},e.prototype.ensureQuotes=function(t){return e.regexp.test(t)?{value:'"'+t+'"',quoted:!0}:{value:t,quoted:t.length>0&&'"'===t[0]&&'"'===t[t.length-1]}},Object.defineProperty(e.prototype,"pid",{get:function(){var e=this;return this.childProcessPromise?this.childProcessPromise.then(function(e){return e.pid},function(e){return-1}):new Promise(function(t){e.pidResolve=t})},enumerable:!0,configurable:!0}),e.prototype.terminate=function(){var e=this;return this.childProcessPromise?this.childProcessPromise.then(function(t){e.terminateRequested=!0;var n=d(t,e.options.cwd);return n.success&&(e.childProcess=null),n},function(e){return{success:!0}}):Promise.resolve({success:!0})},e.prototype.useExec=function(){var e=this;return new Promise(function(t,n){e.shell&&l.isWindows||t(!1);var r=o.spawn(p(),["/s","/c"]);r.on("error",function(e){t(!0)}),r.on("exit",function(e){t(!1)})})},e.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},e.regexp=/^[^"].* .*[^"]/,e}();t.AbstractProcess=v;var m=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return i(t,e),t.prototype.handleExec=function(e,t,n,r,i){[r,i].forEach(function(e,n){var r=new f.LineDecoder;r.write(e).forEach(function(e){t({line:e,source:0===n?0:1})});var i=r.end();i&&t({line:i,source:0===n?0:1})}),e({terminated:this.terminateRequested,error:n})},t.prototype.handleSpawn=function(e,t,n,r,i){var o=this;this.stdoutLineDecoder=new f.LineDecoder,this.stderrLineDecoder=new f.LineDecoder,e.stdout.on("data",function(e){o.stdoutLineDecoder.write(e).forEach(function(e){return n({line:e,source:0})})}),e.stderr.on("data",function(e){o.stderrLineDecoder.write(e).forEach(function(e){return n({line:e,source:1})})})},t.prototype.handleClose=function(e,t,n,r){[this.stdoutLineDecoder.end(),this.stderrLineDecoder.end()].forEach(function(e,t){e&&n({line:e,source:0===t?0:1})})},t}(v);t.LineProcess=m,
t.createQueuedSender=function(e){var t=[],n=!1,r=function(i){n?t.push(i):e.send(i,function(e){if(e&&console.error(e),n=!1,t.length>0){var i=t.slice(0);t=[],i.forEach(function(e){return r(e)})}})&&!l.isWindows||(n=!0)};return{send:r}};!function(e){e.findExecutable=function(e,t,i){if(n.isAbsolute(e))return e;if(void 0===t&&(t=process.cwd()),"."!==n.dirname(e))return n.join(t,e);if(void 0===i&&u.isString(process.env.PATH)&&(i=process.env.PATH.split(n.delimiter)),void 0===i||0===i.length)return n.join(t,e);for(var o=0,s=i;o<s.length;o++){var a=s[o],c=void 0;if(c=n.isAbsolute(a)?n.join(a,e):n.join(t,a,e),r.existsSync(c))return c;var l=c+".com";if(r.existsSync(l))return l;if(l=c+".exe",r.existsSync(l))return l}return n.join(t,e)}}(t.win32||(t.win32={}))}),define(e[40],t([0,1,18,4,7,13,5,41,37,24,10,8]),function(e,t,n,r,o,s,u,a,c,l,f,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(e){function t(t){var n=e.call(this,{send:function(e){try{process.send&&process.send(e.toString("base64"))
}catch(e){}},onMessage:u.Event.fromNodeEventEmitter(process,"message",function(e){return Buffer.from(e,"base64")})},t)||this;return process.once("disconnect",function(){return n.dispose()}),n}return i(t,e),t}(c.ChannelServer);t.Server=d;var p=function(){function e(e,t){this.modulePath=e,this.options=t,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new u.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;var n=t&&t.timeout?t.timeout:6e4;this.disposeDelayer=new o.Delayer(n),this.child=null,this._client=null}return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r,i){return t.requestPromise(e,n,r,i)},listen:function(n,r){return t.requestEvent(e,n,r)}}},e.prototype.requestPromise=function(e,t,n,i){var s=this;if(void 0===i&&(i=f.CancellationToken.None),!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(i.isCancellationRequested)return Promise.reject(h.canceled());this.disposeDelayer.cancel()
;var u=this.getCachedChannel(e),a=o.createCancelablePromise(function(e){return u.call(t,n,e)}),c=i.onCancellationRequested(function(){return a.cancel()}),l=r.toDisposable(function(){return a.cancel()});return this.activeRequests.add(l),o.always(a,function(){c.dispose(),s.activeRequests.delete(l),0===s.activeRequests.size&&s.disposeDelayer.trigger(function(){return s.disposeClient()})}),a},e.prototype.requestEvent=function(e,t,n){var r=this;if(!this.disposeDelayer)return u.Event.None;this.disposeDelayer.cancel();var i,o=new u.Emitter({onFirstListenerAdd:function(){var s=r.getCachedChannel(e).listen(t,n);i=s(o.fire,o),r.activeRequests.add(i)},onLastListenerRemove:function(){r.activeRequests.delete(i),i.dispose(),0===r.activeRequests.size&&r.disposeDelayer&&r.disposeDelayer.trigger(function(){return r.disposeClient()})}});return o.event},Object.defineProperty(e.prototype,"client",{get:function(){var e=this;if(!this._client){var t=this.options&&this.options.args?this.options.args:[],i=Object.create(null)
;i.env=s.assign(s.deepClone(process.env),{VSCODE_PARENT_PID:String(process.pid)}),this.options&&this.options.env&&(i.env=s.assign(i.env,this.options.env)),this.options&&this.options.freshExecArgv&&(i.execArgv=[]),this.options&&"number"==typeof this.options.debug&&(i.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&"number"==typeof this.options.debugBrk&&(i.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),this.child=n.fork(this.modulePath,t,i);var o=new u.Emitter;u.Event.fromNodeEventEmitter(this.child,"message",function(e){return e})(function(t){l.isRemoteConsoleLog(t)?l.log(t,"IPC Library: "+e.options.serverName):o.fire(Buffer.from(t,"base64"))});var f=this.options.useQueue?a.createQueuedSender(this.child):this.child,h={send:function(t){return e.child&&e.child.connected&&f.send(t.toString("base64"))},onMessage:o.event};this._client=new c.ChannelClient(h);var d=function(){return e.disposeClient()};process.once("exit",d),this.child.on("error",function(t){
return console.warn('IPC "'+e.options.serverName+'" errored with '+t)}),this.child.on("exit",function(t,n){process.removeListener("exit",d),e.activeRequests.forEach(function(e){return r.dispose(e)}),e.activeRequests.clear(),0!==t&&"SIGTERM"!==n&&console.warn('IPC "'+e.options.serverName+'" crashed with exit code '+t+" and signal "+n),e.disposeDelayer&&e.disposeDelayer.cancel(),e.disposeClient(),e._onDidProcessExit.fire({code:t,signal:n})})}return this._client},enumerable:!0,configurable:!0}),e.prototype.getCachedChannel=function(e){var t=this.channels.get(e);return t||(t=this.client.getChannel(e),this.channels.set(e,t)),t},e.prototype.disposeClient=function(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())},e.prototype.dispose=function(){this._onDidProcessExit.dispose(),this.disposeDelayer.cancel(),this.disposeDelayer=null,this.disposeClient(),this.activeRequests.clear()},e}();t.Client=p}),define(e[39],t([0,1]),function(e,t){"use strict"
;function n(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function r(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function(e,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,i,!1)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var i;!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]||[]}}(i=t._util||(t._util={})),t.IInstantiationService=r("instantiationService"),t.createDecorator=r,t.optional=function(e){return function(t,r,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,i,!0)}}}),define(e[34],t([0,1,6,2,39,3,22,11]),function(e,t,n,r,o,s,u,a){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.IFileService=o.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"}(t.FileSystemProviderCapabilities||(t.FileSystemProviderCapabilities={}));!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={}));var c=function(){function e(e,t,n){this._resource=e,this._operation=t,this._target=n}return Object.defineProperty(e.prototype,"resource",{get:function(){return this._resource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"operation",{get:function(){return this._operation},enumerable:!0,configurable:!0}),e}();t.FileOperationEvent=c;!function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(t.FileChangeType||(t.FileChangeType={}));var l=function(){function e(e){this._changes=e}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes},enumerable:!0,configurable:!0}),e.prototype.contains=function(e,t){if(!e)return!1;var n=!a.isUndefinedOrNull(t);return this._changes.some(function(i){return(!n||i.type===t)&&(2===i.type?u.isEqualOrParent(e,i.resource,!r.isLinux):u.isEqual(e,i.resource,!r.isLinux))})},e.prototype.getAdded=function(){return this.getOfType(1)},e.prototype.gotAdded=function(){return this.hasType(1)},e.prototype.getDeleted=function(){return this.getOfType(2)},e.prototype.gotDeleted=function(){return this.hasType(2)},e.prototype.getUpdated=function(){return this.getOfType(0)},e.prototype.gotUpdated=function(){return this.hasType(0)
},e.prototype.getOfType=function(e){return this._changes.filter(function(t){return t.type===e})},e.prototype.hasType=function(e){return this._changes.some(function(t){return t.type===e})},e}();t.FileChangesEvent=l,t.isParent=function(e,t,r){return!(!e||!t||e===t)&&!(t.length>e.length)&&(t.charAt(t.length-1)!==n.nativeSep&&(t+=n.nativeSep),r?s.startsWithIgnoreCase(e,t):0===e.indexOf(t))};var f=function(){function e(e){this._value=e}return e.prototype.read=function(){var e=this._value;return this._value=null,e},e}();t.StringSnapshot=f,t.snapshotToString=function(e){for(var t,n=[];"string"==typeof(t=e.read());)n.push(t);return n.join("")};var h=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.fileOperationResult=n,i.options=r,i}return i(t,e),t.isFileOperationError=function(e){return e instanceof Error&&!a.isUndefinedOrNull(e.fileOperationResult)},t}(Error);t.FileOperationError=h;!function(e){e[e.FILE_IS_BINARY=0]="FILE_IS_BINARY",e[e.FILE_IS_DIRECTORY=1]="FILE_IS_DIRECTORY",
e[e.FILE_NOT_FOUND=2]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=3]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=4]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=5]="FILE_MOVE_CONFLICT",e[e.FILE_READ_ONLY=6]="FILE_READ_ONLY",e[e.FILE_PERMISSION_DENIED=7]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=8]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=9]="FILE_INVALID_PATH",e[e.FILE_EXCEED_MEMORY_LIMIT=10]="FILE_EXCEED_MEMORY_LIMIT"}(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",t.SUPPORTED_ENCODINGS={utf8:{labelLong:"UTF-8",labelShort:"UTF-8",order:1,alias:"utf8bom"},utf8bom:{labelLong:"UTF-8 with BOM",labelShort:"UTF-8 with BOM",encodeOnly:!0,order:2,
alias:"utf8"},utf16le:{labelLong:"UTF-16 LE",labelShort:"UTF-16 LE",order:3},utf16be:{labelLong:"UTF-16 BE",labelShort:"UTF-16 BE",order:4},windows1252:{labelLong:"Western (Windows 1252)",labelShort:"Windows 1252",order:5},iso88591:{labelLong:"Western (ISO 8859-1)",labelShort:"ISO 8859-1",order:6},iso88593:{labelLong:"Western (ISO 8859-3)",labelShort:"ISO 8859-3",order:7},iso885915:{labelLong:"Western (ISO 8859-15)",labelShort:"ISO 8859-15",order:8},macroman:{labelLong:"Western (Mac Roman)",labelShort:"Mac Roman",order:9},cp437:{labelLong:"DOS (CP 437)",labelShort:"CP437",order:10},windows1256:{labelLong:"Arabic (Windows 1256)",labelShort:"Windows 1256",order:11},iso88596:{labelLong:"Arabic (ISO 8859-6)",labelShort:"ISO 8859-6",order:12},windows1257:{labelLong:"Baltic (Windows 1257)",labelShort:"Windows 1257",order:13},iso88594:{labelLong:"Baltic (ISO 8859-4)",labelShort:"ISO 8859-4",order:14},iso885914:{labelLong:"Celtic (ISO 8859-14)",labelShort:"ISO 8859-14",order:15},windows1250:{
labelLong:"Central European (Windows 1250)",labelShort:"Windows 1250",order:16},iso88592:{labelLong:"Central European (ISO 8859-2)",labelShort:"ISO 8859-2",order:17},cp852:{labelLong:"Central European (CP 852)",labelShort:"CP 852",order:18},windows1251:{labelLong:"Cyrillic (Windows 1251)",labelShort:"Windows 1251",order:19},cp866:{labelLong:"Cyrillic (CP 866)",labelShort:"CP 866",order:20},iso88595:{labelLong:"Cyrillic (ISO 8859-5)",labelShort:"ISO 8859-5",order:21},koi8r:{labelLong:"Cyrillic (KOI8-R)",labelShort:"KOI8-R",order:22},koi8u:{labelLong:"Cyrillic (KOI8-U)",labelShort:"KOI8-U",order:23},iso885913:{labelLong:"Estonian (ISO 8859-13)",labelShort:"ISO 8859-13",order:24},windows1253:{labelLong:"Greek (Windows 1253)",labelShort:"Windows 1253",order:25},iso88597:{labelLong:"Greek (ISO 8859-7)",labelShort:"ISO 8859-7",order:26},windows1255:{labelLong:"Hebrew (Windows 1255)",labelShort:"Windows 1255",order:27},iso88598:{labelLong:"Hebrew (ISO 8859-8)",labelShort:"ISO 8859-8",order:28},iso885910:{
labelLong:"Nordic (ISO 8859-10)",labelShort:"ISO 8859-10",order:29},iso885916:{labelLong:"Romanian (ISO 8859-16)",labelShort:"ISO 8859-16",order:30},windows1254:{labelLong:"Turkish (Windows 1254)",labelShort:"Windows 1254",order:31},iso88599:{labelLong:"Turkish (ISO 8859-9)",labelShort:"ISO 8859-9",order:32},windows1258:{labelLong:"Vietnamese (Windows 1258)",labelShort:"Windows 1258",order:33},gbk:{labelLong:"Simplified Chinese (GBK)",labelShort:"GBK",order:34},gb18030:{labelLong:"Simplified Chinese (GB18030)",labelShort:"GB18030",order:35},cp950:{labelLong:"Traditional Chinese (Big5)",labelShort:"Big5",order:36},big5hkscs:{labelLong:"Traditional Chinese (Big5-HKSCS)",labelShort:"Big5-HKSCS",order:37},shiftjis:{labelLong:"Japanese (Shift JIS)",labelShort:"Shift JIS",order:38},eucjp:{labelLong:"Japanese (EUC-JP)",labelShort:"EUC-JP",order:39},euckr:{labelLong:"Korean (EUC-KR)",labelShort:"EUC-KR",order:40},windows874:{labelLong:"Thai (Windows 874)",labelShort:"Windows 874",order:41},iso885911:{
labelLong:"Latin/Thai (ISO 8859-11)",labelShort:"ISO 8859-11",order:42},koi8ru:{labelLong:"Cyrillic (KOI8-RU)",labelShort:"KOI8-RU",order:43},koi8t:{labelLong:"Tajik (KOI8-T)",labelShort:"KOI8-T",order:44},gb2312:{labelLong:"Simplified Chinese (GB 2312)",labelShort:"GB 2312",order:45},cp865:{labelLong:"Nordic DOS (CP 865)",labelShort:"CP 865",order:46},cp850:{labelLong:"Western European DOS (CP 850)",labelShort:"CP 850",order:47}};!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}),define(e[32],t([0,1,9,34,2]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toFileChangesEvent=function(e){return new r.FileChangesEvent(e.map(function(e){return{type:e.type,resource:n.URI.file(e.path)}}))},t.normalize=function(e){for(var t=new o,n=0,r=e;n<r.length;n++){var i=r[n];t.processEvent(i)}return t.normalize()};var o=function(){function e(){
this.normalized=[],this.mapPathToChange=Object.create(null)}return e.prototype.processEvent=function(e){var t=this.mapPathToChange[e.path];if(t){var n=t.type,r=e.type;1===n&&2===r?(delete this.mapPathToChange[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[e.path]=e},e.prototype.normalize=function(){var e=[],t=[];return this.normalized.filter(function(t){return 2===t.type||(e.push(t),!1)}).sort(function(e,t){return e.path.length-t.path.length}).filter(function(e){return!t.some(function(t){return r.isParent(e.path,t,!i.isLinux)})&&(t.push(e.path),!0)}).concat(e)},e}()}),define(e[28],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.service=e}return e.prototype.listen=function(e,t,n){switch(t){case"watch":return this.service.watch(n)}throw new Error("Event not found: "+t)},e.prototype.call=function(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)},e}();t.WatcherChannel=n;var r=function(){function e(e){this.channel=e}return e.prototype.watch=function(e){return this.channel.listen("watch",e)},e.prototype.setVerboseLogging=function(e){return this.channel.call("setVerboseLogging",e)},e.prototype.setRoots=function(e){return this.channel.call("setRoots",e)},e.prototype.stop=function(){return this.channel.call("stop")},e}();t.WatcherChannelClient=r}),define(e[26],t([0,1,48,12,49,6,20,7,16,35,2,32,5]),function(e,t,n,r,i,o,s,u,a,c,l,f,h){"use strict";function d(e){e=e.sort(function(e,t){return e.basePath.localeCompare(t.basePath)});for(var t=null,n=Object.create(null),r=0,i=e;r<i.length;r++){var s=i[r],u=s.basePath,a=(s.ignored||[]).sort();t&&o.isEqualOrParent(u,t.basePath)?p(a,t.ignored)||n[t.basePath].push({basePath:u,ignored:a}):(t={basePath:u,ignored:a},n[u]=[t])}return n}
function p(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),i.gracefulify(r);var v=function(){function e(){this._onWatchEvent=new h.Emitter,this.onWatchEvent=this._onWatchEvent.event}return e.prototype.watch=function(e){return this._verboseLogging=e.verboseLogging,this._pollingInterval=e.pollingInterval,this._watchers=Object.create(null),this._watcherCount=0,this.onWatchEvent},e.prototype.setVerboseLogging=function(e){return this._verboseLogging=e,Promise.resolve()},e.prototype.setRoots=function(e){var t=Object.create(null),n=[],r=d(e);for(var i in r){var o=this._watchers[i];o&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n].basePath!==t[n].basePath||!p(e[n].ignored,t[n].ignored))return!1;return!0}(o.requests,r[i])?(t[i]=o,delete this._watchers[i]):n.push(i)}for(var s in this._watchers)this._watchers[s].stop();for(var u=0,a=n;u<a.length;u++){var c=r[i=a[u]];t[i]=this._watch(i,c)}
return this._watchers=t,Promise.resolve()},Object.defineProperty(e.prototype,"wacherCount",{get:function(){return this._watcherCount},enumerable:!0,configurable:!0}),e.prototype._watch=function(t,r){var i=this;this._verboseLogging&&console.log("Start watching: "+t+"]");var h=this._pollingInterval||1e3,d={ignoreInitial:!0,ignorePermissionErrors:!0,followSymlinks:!0,interval:h,binaryInterval:h,disableGlobbing:!0},p=1===r.length;p&&(d.ignored=r[0].ignored);var v=l.isMacintosh?c.realcaseSync(t)||t:t,m=v.length,g=t!==v;g&&console.warn("Watcher basePath does not match version on disk and was corrected (original: "+t+", real: "+v+")");var y=n.watch(v,d);this._watcherCount++,l.isMacintosh&&!y.options.useFsEvents&&console.error("Watcher is not using native fsevents library and is falling back to unefficient polling.");var _=[],b=new u.ThrottledDelayer(e.FS_EVENT_DELAY),w={requests:r,stop:function(){try{i._verboseLogging&&console.log("Stop watching: "+t+"]"),y&&(y.close(),i._watcherCount--,y=null),b&&(b.cancel(),
b=null)}catch(e){console.error(e.toString())}}};return y.on("all",function(n,r){if(l.isMacintosh&&(r=a.normalizeNFC(r)),!(r.indexOf(v)<0)){g&&(r=t+r.substr(m));var u;switch(n){case"change":u=0;break;case"add":case"addDir":u=1;break;case"unlink":case"unlinkDir":u=2;break;default:return}if(p||!function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i.basePath===e)return!1;if(o.isEqualOrParent(e,i.basePath)){if(!i.parsedPattern)if(i.ignored&&i.ignored.length>0){var u="{"+i.ignored.join(",")+"}";i.parsedPattern=s.parse(u)}else i.parsedPattern=function(){return!1};var a=e.substr(i.basePath.length+1);if(!i.parsedPattern(a))return!1}}return!0}(r,w.requests)){var c={type:u,path:r};i._verboseLogging&&console.log((1===u?"[ADDED]":2===u?"[DELETED]":"[CHANGED]")+" "+r);var h=Date.now();0===_.length?(i.spamWarningLogged=!1,i.spamCheckStartTime=h):!i.spamWarningLogged&&i.spamCheckStartTime+e.EVENT_SPAM_WARNING_THRESHOLD<h&&(i.spamWarningLogged=!0,
console.warn("Watcher is busy catching up with "+_.length+' file changes in 60 seconds. Latest changed path is "'+c.path+'"')),_.push(c),b&&b.trigger(function(){var e=_;_=[];var t=f.normalize(e);return i._onWatchEvent.fire(t),i._verboseLogging&&t.forEach(function(e){console.log(" >> normalized  "+(1===e.type?"[ADDED]":2===e.type?"[DELETED]":"[CHANGED]")+" "+e.path)}),Promise.resolve()})}}}),y.on("error",function(e){e&&("ENOSPC"===e.code?i.enospcErrorLogged||(i.enospcErrorLogged=!0,i.stop(),i._onWatchEvent.fire({message:"Inotify limit reached (ENOSPC)"})):console.error(e.toString()))}),w},e.prototype.stop=function(){for(var e in this._watchers){this._watchers[e].stop()}return this._watchers=Object.create(null),Promise.resolve()},e.FS_EVENT_DELAY=50,e.EVENT_SPAM_WARNING_THRESHOLD=6e4,e}();t.ChokidarWatcherService=v,t.normalizeRoots=d}),define(e[50],t([0,1,40,28,26]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var o=new n.Server("watcher"),s=new i.ChokidarWatcherService,u=new r.WatcherChannel(s);o.registerChannel("watcher",u)})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/bb1e228e30ce43ebb361c84fdf2f0d4fb7fda6ce/core/vs/workbench/services/files/node/watcher/unix/watcherApp.js.map
