/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["require","exports","vs/base/common/lifecycle","vs/base/common/event","path","vs/platform/instantiation/common/instantiation","vs/base/common/errors","vs/base/common/platform","vs/base/node/pfs","vs/base/common/objects","vs/base/common/types","vs/platform/log/common/log","vs/nls!vs/code/electron-browser/sharedProcess/sharedProcessMain","vs/nls","vs/base/common/strings","vs/platform/environment/common/environment","vs/base/common/uri","vs/base/common/async","vs/base/common/arrays","vs/platform/node/product","vs/platform/configuration/common/configuration","fs","vs/platform/registry/common/platform","os","vs/platform/extensionManagement/common/extensionManagementUtil","vs/base/common/uuid","vs/base/common/cancellation","vs/base/common/amd","vs/platform/node/package","vs/platform/configuration/common/configurationRegistry","vs/base/common/paths","vs/base/common/map","vs/base/common/network","vs/platform/extensionManagement/common/extensionManagement","vs/base/node/extfs","vs/base/node/request","vs/platform/request/node/request","vs/platform/telemetry/common/telemetry","vs/base/common/errorMessage","vs/platform/instantiation/common/serviceCollection","vs/platform/localizations/common/localizations","vs/base/common/iterator","vs/base/common/json","vs/platform/extensions/node/extensionValidator","vs/platform/extensions/common/extensions","vs/platform/instantiation/common/descriptors","vs/base/parts/ipc/node/ipc","vs/platform/dialogs/common/dialogs","vs/platform/configuration/common/configurationModels","vs/platform/download/common/download","vs/base/common/functional","vs/platform/node/zip","vs/platform/extensionManagement/common/extensionNls","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/dialogs/common/dialogs","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/extensionManagement/node/extensionManagementService","vs/nls!vs/platform/extensionManagement/node/extensionManagementUtil","vs/nls!vs/platform/extensions/node/extensionValidator","vs/nls!vs/platform/node/zip","vs/nls!vs/platform/request/node/request","vs/nls!vs/platform/telemetry/common/telemetryService","vs/nls!vs/platform/workspaces/common/workspaces","vs/base/node/flow","vs/platform/request/electron-browser/requestService","vs/platform/extensionManagement/node/extensionLifecycle","vs/platform/extensionManagement/node/extensionManagementIpc","vs/base/node/paths","vs/platform/extensionManagement/node/extensionsManifestCache","vs/base/node/proxy","vs/platform/instantiation/common/graph","url","vs/base/node/stream","vs/platform/dialogs/node/dialogIpc","vs/base/common/assert","vs/base/node/encoding","vs/code/electron-browser/sharedProcess/contrib/logsDataCleaner","vs/code/electron-browser/sharedProcess/contrib/storageDataCleaner","vs/platform/request/node/requestService","child_process","vs/platform/instantiation/common/instantiationService","stream","vs/platform/localizations/node/localizationsIpc","vs/base/common/collections","vs/platform/log/node/logIpc","vs/platform/log/node/spdlogService","vs/base/common/date","vs/base/node/config","vs/base/common/decorators","vs/code/electron-browser/sharedProcess/contrib/languagePackCachedDataCleaner","vs/code/electron-browser/sharedProcess/contrib/nodeCachedDataCleaner","vs/code/electron-browser/sharedProcess/contrib/contributions","vs/platform/environment/node/environmentService","crypto","vs/platform/extensions/node/extensionsUtil","vs/platform/localizations/node/localizations","vs/base/common/glob","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/base/common/mime","vs/base/parts/ipc/node/ipc.net","vs/platform/extensionManagement/node/extensionGalleryService","vs/platform/configuration/node/configuration","vs/platform/configuration/node/configurationService","vs/nls!vs/base/common/errorMessage","vs/base/common/normalization","vs/platform/telemetry/common/telemetryService","vs/platform/telemetry/common/telemetryUtils","vs/platform/telemetry/node/appInsightsAppender","vs/platform/download/node/downloadService","vs/platform/telemetry/node/commonProperties","vs/platform/telemetry/node/telemetryIpc","vs/platform/windows/common/windows","vs/platform/workspaces/common/workspaces","vs/platform/windows/node/windowsIpc","vs/base/common/uriIpc","vs/base/common/linkedList","vs/platform/extensionManagement/node/extensionManagementService","vs/platform/extensionManagement/node/extensionManagementUtil","yazl","semver","yauzl","zlib","applicationinsights","net","iconv-lite","assert","vs/code/electron-browser/sharedProcess/sharedProcessMain","electron"],t=function(t){
for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[74],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}}),define(e[83],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.prototype.hasOwnProperty;t.values=function(e){var t=[];for(var r in e)n.call(e,r)&&t.push(e[r]);return t},t.size=function(e){var t=0;for(var r in e)n.call(e,r)&&(t+=1);return t},t.first=function(e){for(var t in e)if(n.call(e,t))return e[t]},t.forEach=function(e,t){var r=function(r){if(n.call(e,r)&&!1===t({key:r,value:e[r]},function(){delete e[r]}))return{value:void 0}};for(var i in e){var o=r(i);if("object"==typeof o)return o.value}},t.groupBy=function(e,t){for(var n=Object.create(null),r=0,i=e;r<i.length;r++){var o=i[r],s=t(o),a=n[s];a||(a=n[s]=[]),a.push(o)}return n},t.fromMap=function(e){var t=Object.create(null);return e&&e.forEach(function(e,n){
t[n]=e}),t}}),define(e[88],t([0,1]),function(e,t){"use strict";function n(e){return function(t,n,r){var i=null,o=null;if("function"==typeof r.value?(i="value",o=r.value):"function"==typeof r.get&&(i="get",o=r.get),!o)throw new Error("not supported");r[i]=e(o,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=n,t.memoize=function(e,t,n){var r=null,i=null;if("function"==typeof n.value?(r="value",0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,e)}),this[o]}},t.debounce=function(e,t,r){return n(function(n,i){var o="$debounce$"+i,s="$debounce$result$"+i;return function(){for(var i=this,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u]
;this[s]||(this[s]=r?r():void 0),clearTimeout(this[o]),t&&(this[s]=t.apply(void 0,[this[s]].concat(a)),a=[this[s]]),this[o]=setTimeout(function(){n.apply(i,a),i[s]=r?r():void 0},e)}})}}),define(e[6],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{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((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(;a;)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 a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,
!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}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,a={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[18],t([0,1,6]),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 a(e,t,0,e.length-1,[]),e}function a(e,t,n,r,i){if(!(r<=n)){var o=n+(r-n)/2|0;a(e,t,n,o,i),a(e,t,o+1,r,i),t(e[o],e[o+1])<=0||function(e,t,n,r,i,o){for(var s=n,a=r+1,u=n;u<=i;u++)o[u]=e[u]
;for(u=n;u<=i;u++)s>r?e[u]=o[a++]:a>i?e[u]=o[s++]:t(o[a],o[s])<0?e[u]=o[a++]:e[u]=o[s++]}(e,t,n,o,r,i)}}function u(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 a=e[o],u=t[s],c=n(a,u);0===c?(o+=1,s+=1):c<0?(r(o,1,[]),o+=1):c>0&&(r(o,0,[u]),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 a=o(n,function(e){return t(s,e)<0});n.splice(a,0,s)}},a=n.length;r<i;r++)s(a)}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 a=o[i];r&&0===t(r[0],a)?r.push(a):(r=[a],n.push(r))}return n},t.sortedDiff=u,t.delta=function(e,t,n){for(var r=[],i=[],o=0,s=u(e,t,n);o<s.length;o++){var a=s[o];r.push.apply(r,e.slice(a.start,a.start+a.deleteCount)),i.push.apply(i,a.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,a){var u=this;return 0===o?Promise.resolve([]):new Promise(function(l,f){n(u,void 0,void 0,function(){var n,u,l,f;return r(this,function(r){switch(r.label){case 0:n=e.length,
u=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(a&&a.isCancellationRequested)throw i.canceled();c(e,t,u,l,f),r.label=4;case 4:return l=f,f=Math.min(f+s,n),[3,1];case 5:return[2,u]}})}).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[50],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[41],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 a=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=a}),define(e[42],t([0,1]),function(e,t){"use strict";function n(e,t){function n(t){for(var n=0,r=0;n<t;){var i=e.charCodeAt(a);if(i>=48&&i<=57)r=16*r+i-48;else if(i>=65&&i<=70)r=16*r+i-65+10;else{if(!(i>=97&&i<=102))break;r=16*r+i-97+10}a++,n++}return n<t&&(r=-1),r}function s(){if(c="",d=0,l=a,a>=u)return l=u,f=17;var t=e.charCodeAt(a);if(r(t)){do{a++,c+=String.fromCharCode(t),t=e.charCodeAt(a)}while(r(t));return f=15}if(i(t))return a++,c+=String.fromCharCode(t),
13===t&&10===e.charCodeAt(a)&&(a++,c+="\n"),f=14;switch(t){case 123:return a++,f=1;case 125:return a++,f=2;case 91:return a++,f=3;case 93:return a++,f=4;case 58:return a++,f=6;case 44:return a++,f=5;case 34:return a++,c=function(){for(var t="",r=a;;){if(a>=u){t+=e.substring(r,a),d=2;break}var o=e.charCodeAt(a);if(34===o){t+=e.substring(r,a),a++;break}if(92!==o){if(o>=0&&o<=31){if(i(o)){t+=e.substring(r,a),d=2;break}d=6}a++}else{if(t+=e.substring(r,a),++a>=u){d=2;break}switch(o=e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=n(4);s>=0?t+=String.fromCharCode(s):d=4;break;default:d=5}r=a}}return t}(),f=10;case 47:var s=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<u&&!i(e.charCodeAt(a));)a++;return c=e.substring(s,a),f=12}if(42===e.charCodeAt(a+1)){a+=2;for(var h=u-1,p=!1;a<h;){if(42===e.charCodeAt(a)&&47===e.charCodeAt(a+1)){a+=2,p=!0;break}a++}
return p||(a++,d=1),c=e.substring(s,a),f=13}return c+=String.fromCharCode(t),a++,f=16;case 45:if(c+=String.fromCharCode(t),++a===u||!o(e.charCodeAt(a)))return f=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c+=function(){var t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&o(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(!(++a<e.length&&o(e.charCodeAt(a))))return d=3,e.substring(t,a);for(a++;a<e.length&&o(e.charCodeAt(a));)a++}var n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if((++a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&o(e.charCodeAt(a))){for(a++;a<e.length&&o(e.charCodeAt(a));)a++;n=a}else d=3;return e.substring(t,n)}(),f=11;default:for(;a<u&&function(e){if(r(e)||i(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)a++,t=e.charCodeAt(a);if(l!==a){switch(c=e.substring(l,a)){case"true":return f=8;case"false":return f=9;case"null":
return f=7}return f=16}return c+=String.fromCharCode(t),a++,f=16}}void 0===t&&(t=!1);var a=0,u=e.length,c="",l=0,f=16,d=0;return{setPosition:function(e){a=e,c="",l=0,f=16,d=0},getPosition:function(){return a},scan:t?function(){var e;do{e=s()}while(e>=12&&e<=15);return e}:s,getToken:function(){return f},getTokenValue:function(){return c},getTokenOffset:function(){return l},getTokenLength:function(){return a-l},getTokenError:function(){return d}}}function r(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function i(e){return 10===e||13===e||8232===e||8233===e}function o(e){return e>=48&&e<=57}function s(e){if(!e.parent||!e.parent.children)return[];var t=s(e.parent);if("property"===e.parent.type){var n=e.parent.children[0].value;t.push(n)}else if("array"===e.parent.type){var r=e.parent.children.indexOf(e);-1!==r&&t.push(r)}return t}function a(e){switch(e.type){case"array":return e.children.map(a);case"object":
for(var t=Object.create(null),n=0,r=e.children;n<r.length;n++){var i=r[n],o=i.children[1];o&&(t[i.children[0].value]=a(o))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function u(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function c(e,t,n){if(void 0===n&&(n=!1),u(e,t,n)){var r=e.children;if(Array.isArray(r))for(var i=0;i<r.length&&r[i].offset<=t;i++){var o=c(r[i],t,n);if(o)return o}return e}}function l(e,t,r){function i(e){return e?function(){return e(f.getTokenOffset(),f.getTokenLength())}:function(){return!0}}function o(e){return e?function(t){return e(t,f.getTokenOffset(),f.getTokenLength())}:function(){return!0}}function s(){for(;;){var e=f.scan();switch(f.getTokenError()){case 4:a(14);break;case 5:a(15);break;case 3:a(13);break;case 1:E||a(11);break;case 2:a(12);break;case 6:a(16)}switch(e){case 12:case 13:E?a(10):_();break;case 16:a(1);break;case 15:case 14:break;default:return e}}}function a(e,t,n){
if(void 0===t&&(t=[]),void 0===n&&(n=[]),w(e),t.length+n.length>0)for(var r=f.getToken();17!==r;){if(-1!==t.indexOf(r)){s();break}if(-1!==n.indexOf(r))break;r=s()}}function u(e){var t=f.getTokenValue();return e?y(t):p(t),s(),!0}function c(){return 10!==f.getToken()?(a(3,[],[2,5]),!1):(u(!1),6===f.getToken()?(b(":"),s(),l()||a(4,[],[2,5])):a(5,[],[2,5]),!0)}function l(){switch(f.getToken()){case 3:return function(){v(),s();for(var e=!1;4!==f.getToken()&&17!==f.getToken();){if(5===f.getToken()){if(e||a(4,[],[]),b(","),s(),4===f.getToken()&&C)break}else e&&a(6,[],[]);l()||a(4,[],[4,5]),e=!0}return m(),4!==f.getToken()?a(8,[4],[]):s(),!0}();case 1:return function(){h(),s();for(var e=!1;2!==f.getToken()&&17!==f.getToken();){if(5===f.getToken()){if(e||a(4,[],[]),b(","),s(),2===f.getToken()&&C)break}else e&&a(6,[],[]);c()||a(4,[],[2,5]),e=!0}return g(),2!==f.getToken()?a(7,[2],[]):s(),!0}();case 10:return u(!0);default:return function(){switch(f.getToken()){case 11:var e=0;try{
"number"!=typeof(e=JSON.parse(f.getTokenValue()))&&(a(2),e=0)}catch(e){a(2)}y(e);break;case 7:y(null);break;case 8:y(!0);break;case 9:y(!1);break;default:return!1}return s(),!0}()}}void 0===r&&(r=d.DEFAULT);var f=n(e,!1),h=i(t.onObjectBegin),p=o(t.onObjectProperty),g=i(t.onObjectEnd),v=i(t.onArrayBegin),m=i(t.onArrayEnd),y=o(t.onLiteralValue),b=o(t.onSeparator),_=i(t.onComment),w=o(t.onError),E=r&&r.disallowComments,C=r&&r.allowTrailingComma;return s(),17===f.getToken()||(l()?(17!==f.getToken()&&a(9,[],[]),!0):(a(4,[],[]),!1))}function f(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",
e[e.InvalidCharacter=6]="InvalidCharacter"}(t.ScanError||(t.ScanError={}));!function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(t.SyntaxKind||(t.SyntaxKind={}));!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",
e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(t.ParseErrorCode||(t.ParseErrorCode={}));var d;!function(e){e.DEFAULT={allowTrailingComma:!0}}(d=t.ParseOptions||(t.ParseOptions={})),t.createScanner=n;var h;!function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",
e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",
e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",
e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(h||(h={})),t.getLocation=function(e,t){function n(e,t,n,r){s.value=e,s.offset=t,s.length=n,s.type=r,s.colonOffset=void 0,o=s}var r=[],i=new Object,o=void 0,s={value:{},offset:0,length:0,type:"object",parent:void 0},a=!1;try{l(e,{onObjectBegin:function(e,n){if(t<=e)throw i;o=void 0,a=t>e,r.push("")},onObjectProperty:function(e,o,s){if(t<o)throw i;if(n(e,o,s,"property"),r[r.length-1]=e,t<=o+s)throw i},onObjectEnd:function(e,n){if(t<=e)throw i;o=void 0,r.pop()},onArrayBegin:function(e,n){if(t<=e)throw i;o=void 0,r.push(0)},onArrayEnd:function(e,n){if(t<=e)throw i;o=void 0,r.pop()},
onLiteralValue:function(e,r,o){if(t<r)throw i;if(n(e,r,o,f(e)),t<=r+o)throw i},onSeparator:function(e,n,s){if(t<=n)throw i;if(":"===e&&o&&"property"===o.type)o.colonOffset=n,a=!1,o=void 0;else if(","===e){var u=r[r.length-1];"number"==typeof u?r[r.length-1]=u+1:(a=!0,r[r.length-1]=""),o=void 0}}})}catch(e){if(e!==i)throw e}return{path:r,previousNode:o,isAtPropertyKey:a,matches:function(e){for(var t=0,n=0;t<e.length&&n<r.length;n++)if(e[t]===r[n]||"*"===e[t])t++;else if("**"!==e[t])return!1;return t===e.length}}},t.parse=function(e,t,n){function r(e){Array.isArray(o)?o.push(e):i&&(o[i]=e)}void 0===t&&(t=[]),void 0===n&&(n=d.DEFAULT);var i=null,o=[],s=[];return l(e,{onObjectBegin:function(){var e={};r(e),s.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=s.pop()},onArrayBegin:function(){var e=[];r(e),s.push(o),o=e,i=null},onArrayEnd:function(){o=s.pop()},onLiteralValue:r,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n),o[0]},t.parseTree=function(e,t,n){
function r(e){"property"===o.type&&(o.length=e-o.offset,o=o.parent)}function i(e){return o.children.push(e),e}void 0===t&&(t=[]),void 0===n&&(n=d.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};l(e,{onObjectBegin:function(e){o=i({type:"object",offset:e,length:-1,parent:o,children:[]})},onObjectProperty:function(e,t,n){(o=i({type:"property",offset:t,length:-1,parent:o,children:[]})).children.push({type:"string",value:e,offset:t,length:n,parent:o})},onObjectEnd:function(e,t){o.length=e+t-o.offset,o=o.parent,r(e+t)},onArrayBegin:function(e,t){o=i({type:"array",offset:e,length:-1,parent:o,children:[]})},onArrayEnd:function(e,t){o.length=e+t-o.offset,o=o.parent,r(e+t)},onLiteralValue:function(e,t,n){i({type:f(e),offset:t,length:n,parent:o,value:e}),r(t+n)},onSeparator:function(e,t,n){"property"===o.type&&(":"===e?o.colonOffset=t:","===e&&r(t))},onError:function(e,n,r){t.push({error:e,offset:n,length:r})}},n);var s=o.children[0];return s&&delete s.parent,s},
t.findNodeAtLocation=function(e,t){if(e){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if("string"==typeof o){if("object"!==n.type||!Array.isArray(n.children))return;for(var s=!1,a=0,u=n.children;a<u.length;a++){var c=u[a];if(Array.isArray(c.children)&&c.children[0].value===o){n=c.children[1],s=!0;break}}if(!s)return}else{var l=o;if("array"!==n.type||l<0||!Array.isArray(n.children)||l>=n.children.length)return;n=n.children[l]}}return n}},t.getNodePath=s,t.getNodeValue=a,t.contains=u,t.findNodeAtOffset=c,t.visit=l,t.stripComments=function(e,t){var r,i,o=n(e),s=[],a=0;do{switch(i=o.getPosition(),r=o.scan()){case 12:case 13:case 17:a!==i&&s.push(e.substring(a,i)),void 0!==t&&s.push(o.getTokenValue().replace(/[^\r\n]/g,t)),a=o.getPosition()}}while(17!==r);return s.join("")}}),define(e[2],t([0,1,50]),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[115],t([0,1,41]),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[3],t([0,1,6,50,2,115]),function(e,t,o,s,a,u){"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 u={dispose:function(){}};e.None=function(){return u},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),a.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,a=void 0,u=0,c=new d({leakWarningThreshold:i,onFirstListenerAdd:function(){o=e(function(e){u++,s=t(s,e),r&&!a&&c.fire(s),clearTimeout(a),a=setTimeout(function(){var e=s;s=void 0,a=void 0,(!r||u>1)&&c.fire(e),u=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 d({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 d({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 d({onFirstListenerAdd:function(){return e.on(t,r)},onLastListenerRemove:function(){return e.removeListener(t,r)}});return i.event},e.fromPromise=function(e){var t=new d,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}(),d=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 u.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 a;t._leakageMon&&(a=t._leakageMon.check(t._listeners.size));var c;return c={dispose:function(){if(a&&a(),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=d;var h=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,a,u;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())u=[],this._asyncDeliveryQueue.push([n.value,e(u,"function"==typeof n.value?n.value:n.value[0]),u]);r.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];i=this._asyncDeliveryQueue.shift(),s=i[0],a=i[1],u=i[2];try{"function"==typeof s?s.call(void 0,a):s[0].call(s[1],a)}catch(e){return o.onUnexpectedError(e),[3,1]}return Object.freeze(u),[4,Promise.all(u)];case 2:return r.sent(),[3,1];case 3:return[2]}})})},t}(d);t.AsyncEmitter=h;var p=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new d({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 a.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 g=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=g;var v=function(){function e(){var e=this;this.listening=!1,this.inputEvent=c.None,this.inputEventListener=a.Disposable.None,this.emitter=new d({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=v}),define(e[26],t([0,1,3]),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[17],t([0,1,26,6,3,2]),function(e,t,n,r,o,s){"use strict";function a(e){return e&&"function"==typeof e.then}function u(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())})}):u(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=a,t.createCancelablePromise=u,t.asPromise=function(e){return new Promise(function(t,n){var r=e()
;a(r)?r.then(t,n):t(r)})};var d=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=d;var h=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=h;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 g=function(){function e(e){this.delayer=new p(e),this.throttler=new d}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=g;var v=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=v,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 m=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=m;var y=function(e){function t(){return e.call(this,1)||this}return i(t,e),t}(m);t.Queue=y;var b=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=b;var _=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=_
;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[32],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[7],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,a=void 0,u=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,a=t.LANGUAGE_DEFAULT,u=t.LANGUAGE_DEFAULT;var f=process.env.VSCODE_NLS_CONFIG;if(f)try{var d=JSON.parse(f),h=d.availableLanguages["*"];a=d.locale,u=h||t.LANGUAGE_DEFAULT,c=d._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,u=a=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 g=0;o&&(r?g=1:n?g=3:i&&(g=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s,t.platform=g,t.isRootUser=function(){return o&&!n&&0===process.getuid()},t.language=u,t.locale=a,t.translationsConfigFile=c;var v="object"==typeof self?self:"object"==typeof global?global:{};t.globals=v;var m=null;t.setImmediate=function(e){return null===m&&(m=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)),m(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[14],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 a(e){return e>=65&&e<=90}function u(e){return s(e)||a(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(u(i)&&u(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 d(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n){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 h=/{(\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(h,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),u=t.charCodeAt(r);if(i!==u){a(i)&&(i+=32),a(u)&&(u+=32);var c=i-u;if(0!==c)return s(i)&&s(u)?c:o(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=a,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 g=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return g.test(e)};var v=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return v.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 m=/\x1B\x5B[12]?K/g,y=/\x1b\[\d+m/g,b=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(m,"")).replace(y,"")).replace(b,"")),e},t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){
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[86],t([0,1,14]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toLocalISOString=function(e){return e.getFullYear()+"-"+n.pad(e.getMonth()+1,2)+"-"+n.pad(e.getDate(),2)+"T"+n.pad(e.getHours(),2)+":"+n.pad(e.getMinutes(),2)+":"+n.pad(e.getSeconds(),2)+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}),define(e[30],t([0,1,7,14]),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?!h.test(e):!d.test(e)}(e,o))return e;for(var s=o?"\\":"/",c=u(e,s),l=c.length,f=!1,p="",g=c.length;g<=r;g++)if(g===r||i(e.charCodeAt(g))){if(a(e,l,g,"..")){var v=p.lastIndexOf(s),m=p.slice(v+1);(c||m.length>0)&&".."!==m&&(p=-1===v?"":p.slice(0,v),f=!0)}else a(e,l,g,".")&&(c||p||g<r-1)&&(f=!0);if(!f){var y=e.slice(l,g);""!==p&&p[p.length-1]!==s&&(p+=s),p+=y}l=g+1,f=!1}return c+p}function a(e,t,n,r){return t+r.length===n&&e.indexOf(r,t)===t}function u(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 a=e.indexOf("://");if(-1!==a)for(a+=3;a<n;a++)if(i(e.charCodeAt(a)))return e.slice(0,a+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=u(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 d=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,h=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;t.normalize=s,t.getRoot=u,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,g=/^(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&&g.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[10],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 a(e){return typeof e===c.function}function u(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)
}else if(a(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=a,t.areFunctions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length>0&&e.every(a)},t.validateConstraints=function(e,t){
for(var n=Math.min(e.length,t.length),r=0;r<n;r++)u(e[r],t[r])},t.validateConstraint=u,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[9],t([0,1,10]),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=[],u=0,c=e;u<c.length;u++){var l=c[u];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 d in e)a.call(e,d)&&(f[d]=i(e[d],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(a.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e};var a=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[16],t([0,1,7]),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=m[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+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:r,i="",o=e.scheme,s=e.authority,a=e.path,u=e.query,c=e.fragment;if(o&&(i+=o,i+=":"),
(s||"file"===o)&&(i+=h,i+=h),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(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){(d=a.charCodeAt(1))>=65&&d<=90&&(a="/"+String.fromCharCode(d+32)+":"+a.substr(3))}else if(a.length>=2&&58===a.charCodeAt(1)){var d=a.charCodeAt(0);d>=65&&d<=90&&(a=String.fromCharCode(d+32)+":"+a.substr(2))}i+=n(a,!0)}return u&&(i+="?",i+=n(u,!1)),c&&(i+="#",i+=t?c:r(c,!1)),i}Object.defineProperty(t,"__esModule",{value:!0});var a,u=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//,f=!0;t.setUriThrowOnMissingScheme=function(e){var t=f;return f=e,t};var d="",h="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,r,i,o){"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,
this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=e||d,this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||d),this.query=r||d,this.fragment=i||d,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&&!u.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=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===r?r=this.path:null===r&&(r=d),void 0===i?i=this.query:null===i&&(i=d),void 0===o?o=this.fragment:null===o&&(o=d),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new v(t,n,r,i,o)},e.parse=function(e,t){
void 0===t&&(t=!1);var n=p.exec(e);return n?new v(n[2]||d,decodeURIComponent(n[4]||d),decodeURIComponent(n[5]||d),decodeURIComponent(n[7]||d),decodeURIComponent(n[9]||d),t):new v(d,d,d,d,d)},e.file=function(e){var t=d;if(n.isWindows&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){var r=e.indexOf(h,2);-1===r?(t=e.substring(2),e=h):(t=e.substring(2,r),e=e.substring(r)||h)}return new v("file",t,e,d,d)},e.from=function(e){return new v(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 v(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.URI=g;var v=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}(g),m=(a={},a[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a)}),define(e[27],t([0,1,16]),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[31],t([0,1,16,41]),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 a=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=a;var u=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=u;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 u)},e.forStrings=function(){return new e(new a)},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],a=o[1]
;switch(s){case 1:a.left=void 0;break;case 0:a.mid=void 0;break;case-1:a.right=void 0}r=a}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 d=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=d;var h=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}(d);t.LRUCache=h}),define(e[96],t([0,1,18,14,30,31,17]),function(e,t,n,r,i,o,s){"use strict";function a(e){switch(e){
case 0:return"";case 1:return w+"*?";default:return"(?:"+_+"|"+w+"+"+_+"|"+_+w+"+)*?"}}function u(e,t){if(!e)return[];for(var n=[],r=!1,i=!1,o="",s=0,a=e;s<a.length;s++){var u=a[s];switch(u){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+=u}return o&&n.push(o),n}function c(e){if(!e)return"";var t="",n=u(e,b);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,d="",h=0,p=e;h<p.length;h++){var g=p[h];if("}"!==g&&s)l+=g;else if(!f||"]"===g&&d)switch(g){case"{":s=!0;continue;case"[":f=!0;continue;case"}":var v="(?:"+u(l,",").map(function(e){return c(e)}).join("|")+")";t+=v,s=!1,l="";break;case"]":t+="["+d+"]",f=!1,d="";break;case"?":t+=w;continue;case"*":t+=a(1);continue;default:t+=r.escapeRegExpCharacters(g)}else{d+="-"===g?g:"^"!==g&&"!"!==g||d?g===b?"":r.escapeRegExpCharacters(g):"^"}}o<n.length-1&&(n[o+1]!==y||o+2<n.length)&&(t+=_),i=!1}else i||(t+=a(2),i=!0)})}return t}
function l(e,t){if(!e)return j;var i;i="string"!=typeof e?e.pattern:e;var o=(i=i.trim())+"_"+!!t.trimForExclusions,s=k.get(o);if(s)return f(s,e);var a;if(C.test(i)){var u=i.substr(4);s=function(e,t){return e&&r.endsWith(e,u)?i:null}}else s=(a=S.exec(d(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}(a[1],i):(t.trimForExclusions?P:x).test(i)?function(e,t){var r=m(e.slice(1,-1).split(",").map(function(e){return l(e,t)}).filter(function(e){return e!==j}),e),i=r.length;if(!i)return j;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 a=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);a.length&&(o.allPaths=a);return o
}(i,t):(a=O.exec(d(i,t)))?h(a[1].substr(1),i,!0):(a=I.exec(d(i,t)))?h(a[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 j}}(i);return k.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 d(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function h(e,t,n){var o=i.nativeSep!==i.sep?e.replace(E,i.nativeSep):e,s=i.nativeSep+o,a=n?function(e,n){return e&&(e===o||r.endsWith(e,s))?t:null}:function(e,n){return e&&e===o?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function p(e,t){if(void 0===t&&(t={}),!e)return D;if("string"==typeof e||v(e)){var r=l(e,t);if(r===j)return D;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=m(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){
if(!1===t)return j;var r=l(e,n);if(r===j)return j;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t,n,o,a){if(!a||!r(t,n))return null;var u=i.replace("$(basename)",o),c=a(u);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!==j})),o=r.length;if(!o)return j;if(!r.some(function(e){return!!e.requiresSiblings})){if(1===o)return r[0];var a=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},u=n.first(r,function(e){return!!e.allBasenames});u&&(a.allBasenames=u.allBasenames);var c=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return c.length&&(a.allPaths=c),a}var f=function(e,t,n){for(var o=void 0,s=0,a=r.length;s<a;s++){var u=r[s];u.requiresSiblings&&n&&(t||(t=i.basename(e)),o||(o=t.substr(0,t.length-i.extname(e).length)));var c=u(e,t,o,n);if(c)return c}return null},d=n.first(r,function(e){return!!e.allBasenames})
;d&&(f.allBasenames=d.allBasenames);var h=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);h.length&&(f.allPaths=h);return f}(e,t)}function g(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function v(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern&&"function"==typeof t.pathToRelative}function m(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 a=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};a.basenames=i,a.patterns=r,a.allBasenames=i;var u=e.filter(function(e){return!e.basenames});return u.push(a),u}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){
return Object.create(null)};var y="**",b="/",_="[/\\\\]",w="[^/\\\\]",E=/\//g;t.splitGlobAware=u;var C=/^\*\*\/\*\.[\w\.-]+$/,S=/^\*\*\/([\w\.-]+)\/?$/,x=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,P=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,O=/^\*\*((\/[\w\.-]+)+)\/?$/,I=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,k=new o.LRUCache(1e4),D=function(){return!1},j=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?g(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?g(r):{}}return!!t[n]}}},t.isRelativePattern=v,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[98],t([0,1,30,14,18,96]),function(e,t,n,r,i,o){"use strict";function s(e,t){void 0===t&&(t=!1);var r=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(n.sep)>=0}}(e);l.push(r),r.userConfigured?d.push(r):f.push(r),t&&!r.userConfigured&&l.forEach(function(e){e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn("Overwriting extension <<"+r.extension+">> to now point to mime <<"+r.mime+">>"),r.filename&&e.filename===r.filename&&console.warn("Overwriting filename <<"+r.filename+">> to now point to mime <<"+r.mime+">>"),
r.filepattern&&e.filepattern===r.filepattern&&console.warn("Overwriting filepattern <<"+r.filepattern+">> to now point to mime <<"+r.mime+">>"),r.firstline&&e.firstline===r.firstline&&console.warn("Overwriting firstline <<"+r.firstline+">> to now point to mime <<"+r.mime+">>"))})}function a(e,i){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();var o=n.basename(e),s=u(e,o,d);if(s)return[s,t.MIME_TEXT];var a=u(e,o,f);if(a)return[a,t.MIME_TEXT];if(i){var c=function(e){r.startsWithUTF8BOM(e)&&(e=e.substr(1));if(e.length>0)for(var t=0,n=l;t<n.length;t++){var i=n[t];if(i.firstline){var o=e.match(i.firstline);if(o&&o.length>0)return i.mime}}return null}(i);if(c)return[c,t.MIME_TEXT]}return[t.MIME_UNKNOWN]}function u(e,t,n){for(var i=null,s=null,a=null,u=n.length-1;u>=0;u--){var c=n[u];if(t===c.filenameLowercase){i=c;break}if(c.filepattern&&(!s||c.filepattern.length>s.filepattern.length)){var l=c.filepatternOnPath?e:t;o.match(c.filepatternLowercase,l)&&(s=c)}
c.extension&&(!a||c.extension.length>a.extension.length)&&r.endsWith(t,c.extensionLowercase)&&(a=c)}return i?i.mime:s?s.mime:a?a.mime:null}function c(e){return!e||("string"==typeof e?e===t.MIME_BINARY||e===t.MIME_TEXT||e===t.MIME_UNKNOWN:1===e.length&&c(e[0]))}Object.defineProperty(t,"__esModule",{value:!0}),t.MIME_TEXT="text/plain",t.MIME_BINARY="application/octet-stream",t.MIME_UNKNOWN="application/unknown";var l=[],f=[],d=[];t.registerTextMime=s,t.clearTextMimes=function(e){e?(l=l.filter(function(e){return!e.userConfigured}),d=[]):(l=[],f=[],d=[])},t.guessMimeTypes=a,t.isUnspecific=c,t.suggestFilename=function(e,t){var n=l.filter(function(t){return!t.userConfigured&&t.extension&&t.id===e}).map(function(e){return e.extension}),o=i.coalesce(n).filter(function(e){return r.startsWith(e,".")});return o.length>0?t+o[0]:n[0]||t};var h={".bmp":"image/bmp",".gif":"image/gif",".jpg":"image/jpg",".jpeg":"image/jpg",".jpe":"image/jpg",".png":"image/png",".tiff":"image/tiff",".tif":"image/tiff",".ico":"image/x-icon",
".tga":"image/x-tga",".psd":"image/vnd.adobe.photoshop",".webp":"image/webp",".mid":"audio/midi",".midi":"audio/midi",".mp4a":"audio/mp4",".mpga":"audio/mpeg",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".m2a":"audio/mpeg",".m3a":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".spx":"audio/ogg",".aac":"audio/x-aac",".wav":"audio/x-wav",".wma":"audio/x-ms-wma",".mp4":"video/mp4",".mp4v":"video/mp4",".mpg4":"video/mp4",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpe":"video/mpeg",".m1v":"video/mpeg",".m2v":"video/mpeg",".ogv":"video/ogg",".qt":"video/quicktime",".mov":"video/quicktime",".webm":"video/webm",".mkv":"video/x-matroska",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".avi":"video/x-msvideo",".movie":"video/x-sgi-movie"};t.getMediaMime=function(e){var t=n.extname(e);return h[t.toLowerCase()]}}),define(e[104],t([0,1,31]),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[114],t([0,1,16]),function(e,t,n){"use strict";function r(e,t,i){if(!e||i>200)return null;if("object"==typeof e){if(e instanceof n.URI)return t.transformOutgoing(e);for(var o in e)if(Object.hasOwnProperty.call(e,o)){var s=r(e[o],t,i+1);null!==s&&(e[o]=s)}}return null}function i(e,t,r,o){if(!e||o>200)return null;if("object"==typeof e){if(1===e.$mid)return r?n.URI.revive(t.transformIncoming(e)):t.transformIncoming(e);for(var s in e)if(Object.hasOwnProperty.call(e,s)){var a=i(e[s],t,r,o+1);null!==a&&(e[s]=a)}}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultURITransformer=new(function(){function e(){}return e.prototype.transformIncoming=function(e){return e},
e.prototype.transformOutgoing=function(e){return e},e.prototype.transformOutgoingURI=function(e){return e},e}()),t.transformOutgoingURIs=function(e,t){var n=r(e,t,0);return null===n?e:n},t.transformIncomingURIs=function(e,t){var n=i(e,t,!1,0);return null===n?e:n},t.transformAndReviveIncomingURIs=function(e,t){var n=i(e,t,!0,0);return null===n?e:n}}),define(e[25],t([0,1]),function(e,t){"use strict";function n(){return new s}function r(e){return a.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 a=/^[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[63],t([0,1,125]),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(a,u){t(a,function(t,a){if(t?(o=!0,r[u]=null,i[u]=t):(r[u]=a,i[u]=null),++s===e.length)return n(o?i:null,r)})})},t.loop=r,t.sequence=i}),define(e[67],t([0,1,27]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n.getPathFromAmdModule(e,"paths"),i=e.__$__nodeRequire(r);t.getAppDataPath=i.getAppDataPath,t.getDefaultUserDataPath=i.getDefaultUserDataPath}),define(e[69],t([0,1,71,10]),function(e,t,i,o){"use strict";function s(t,s){return void 0===s&&(s={}),n(this,void 0,void 0,function(){var n,a,u,c,l,f;return r(this,function(r){switch(r.label){case 0:return n=i.parse(t),(a=s.proxyUrl||function(e){
return"http:"===e.protocol?process.env.HTTP_PROXY||process.env.http_proxy||null:"https:"===e.protocol?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null:null}(n))?(u=i.parse(a),/^https?:$/.test(u.protocol||"")?(c={host:u.hostname||"",port:Number(u.port),auth:u.auth,rejectUnauthorized:!o.isBoolean(s.strictSSL)||s.strictSSL},"http:"!==n.protocol?[3,2]:[4,new Promise(function(t,n){e(["http-proxy-agent"],t,n)})]):[2,null]):[2,null];case 1:return f=r.sent(),[3,4];case 2:return[4,new Promise(function(t,n){e(["https-proxy-agent"],t,n)})];case 3:f=r.sent(),r.label=4;case 4:return l=f,[2,new l(c)]}})})}Object.defineProperty(t,"__esModule",{value:!0}),t.getProxyAgent=s}),define(e[72],t([0,1,21]),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 a(){n.read(o,u,c,t-c,null,function(e,n){return e?s(e,null,0):0===n?s(null,u,c):(c+=n)===t?s(null,u,c):a()})}if(e)return i(e);var u=Buffer.allocUnsafe(t),c=0;a()})})},t.readToMatchingString=function(e,t,r,i){return new Promise(function(o,s){return n.open(e,"r",null,function(a,u){function c(e,t){n.close(u,function(n){return n?s(n):e&&"EISDIR"===e.code?s(e):o(t)})}function l(){n.read(u,f,d,r,null,function(n,r){if(n)return c(n,null);if(0===r)return c(null,null);d+=r;var o=f.indexOf(t);return o>=0?c(null,f.toString("utf8").substr(0,o)):d>=i?c(new Error("Could not find "+t+" in first "+i+" bytes of "+e),null):l()})}if(a)return s(a);var f=Buffer.allocUnsafe(i),d=0;l()})})}}),define(e[75],t([0,1,72,124,7,79,81]),function(e,t,n,r,o,s,a){"use strict";function u(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<=g.indexOf(r)?null:d(n.encoding)})}function d(e){var t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return v[t]||t}function h(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 a=!0,u=!0,c=!1,d=0;d<i&&d<m;d++){var h=d%2==1,p=0===r.readInt8(d);if(p&&(c=!0),a&&(h&&!p||!h&&p)&&(a=!1),u&&(h&&p||!h&&!p)&&(u=!1),p&&!a&&!u)break}c&&(a?o=t.UTF16le:u?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?b: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(h({buffer:Buffer.concat(this._buffer),bytesRead:this._bytesBuffered},n.guessEncoding)).then(function(i){
n.overwriteEncoding&&(i.encoding=n.overwriteEncoding(i.encoding)),r._decodeStream=u(i.encoding);for(var o=0,s=r._buffer;o<s.length;o++){var a=s[o];r._decodeStream.write(a)}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}(a.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=u,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,g=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=f;var v={ibm866:"cp866",
big5:"cp950"};t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:var t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}};var m=512,y=512,b=4096;t.detectEncodingFromBuffer=h;var _={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(_);i<o.length;i++){var s=o[i];if(n.indexOf(s)>=0)return t(_[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=d(n);return r.encodingExists(i)?i:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[34],t([0,1,21,4,17,104,7,14,25,75,63,2]),function(e,t,n,r,i,o,s,a,u,c,l,f){"use strict";function d(e){return s.isMacintosh?n.readdirSync(e).map(function(e){return o.normalizeNFC(e)}):n.readdirSync(e)}function h(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,a){if(o)return i(o);if(!a.isDirectory())return function(e,t,r,i){
var o=n.createReadStream(e),s=n.createWriteStream(t,{mode:r}),a=!1,u=function(e){a||(a=!0,e?i(e):n.chmod(t,r,i))};o.once("error",function(e){return u(e)}),s.once("error",function(e){return u(e)}),s.once("close",function(){return u()}),o.pipe(s)}(e,t,511&a.mode,i);if(s[e])return i(null);s[e]=!0;var u=function(){h(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)})};g(t,511&a.mode).then(u,u)})}function g(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?g(r.dirname(e),t).then(s):Promise.reject(n)})}function v(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 h(e,function(i,o){if(i||!o)t(i);else if(0===o.length)n.rmdir(e,t);else{var s=null,a=o.length;o.forEach(function(i){v(r.join(e,i),function(r){a--,r&&(s=s||r),0===a&&(s?t(s):n.rmdir(e,t))})})}})}):t(null)})}function m(e){try{var t=n.lstatSync(e);t.isDirectory()&&!t.isSymbolicLink()?(d(e).forEach(function(t){return m(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=b(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,a=!1,u=function(e){a||(a=!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 u(e)}),l.once("error",function(e){return u(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 u()})}(e,t,r,i)}function b(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 _(e){var t=r.dirname(e)
;if(e===t)return e;var n=(r.basename(e)||e).toLowerCase();try{var i=d(t).filter(function(e){return e.toLowerCase()===n});if(1===i.length){if(s=_(t))return r.join(s,i[0])}else if(i.length>1){var o=i.indexOf(n);if(o>=0){var s=_(t);if(s)return r.join(s,i[o])}}}catch(e){}return null}function w(e){return a.rtrim(r.normalize(e),r.sep)}Object.defineProperty(t,"__esModule",{value:!0});var E=l.loop;t.readdirSync=d,t.readdir=h,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=g,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]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return v(e,i);var l=r.join(t,u.generateUuid());n.rename(e,l,function(t){if(t)return v(e,i);i(null),v(l,function(e){e&&console.error(e),o&&o(e)})})})})},t.delSync=m,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||a.endsWith(e,".")?p(e,t,function(t){if(t)return r(t);v(e,i)}):r(n):i(null)})};var C=!0;t.writeFileAndFlush=y,t.writeFileAndFlushSync=function(e,t,r){if((r=b(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=_,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&&a.endsWith(e,":")&&(e+=r.sep),r.isAbsolute(e)||(e=r.join(t,e)),e=r.normalize(e),s.isWindows?(e=a.rtrim(e,r.sep),a.endsWith(e,":")&&(e+=r.sep)):(e=a.rtrim(e,r.sep))||(e=r.sep),e}}),define(e[87],t([0,1,21,4,9,2,3,42,34,7]),function(e,t,n,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){void 0===t&&(t={
defaultConfig:Object.create(null),onError:function(e){return console.error(e)}}),this._path=e,this.options=t,this.disposables=[],this.configName=r.basename(this._path),this._onDidUpdateConfiguration=new s.Emitter,this.disposables.push(this._onDidUpdateConfiguration),this.registerWatcher(),this.initAsync()}return Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasParseErrors",{get:function(){return this.parseErrors&&this.parseErrors.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidUpdateConfiguration",{get:function(){return this._onDidUpdateConfiguration.event},enumerable:!0,configurable:!0}),e.prototype.initAsync=function(){var e=this;this.loadAsync(function(t){e.loaded||e.updateCache(t),e.options.initCallback&&e.options.initCallback(e.getConfig())})},e.prototype.updateCache=function(e){this.cache=e,this.loaded=!0},e.prototype.loadSync=function(){try{
return this.parse(n.readFileSync(this._path).toString())}catch(e){return this.options.defaultConfig}},e.prototype.loadAsync=function(e){var t=this;n.readFile(this._path,function(n,r){return e(n?t.options.defaultConfig:t.parse(r.toString()))})},e.prototype.parse=function(e){try{return this.parseErrors=[],(this.options.parse?this.options.parse(e,this.parseErrors):a.parse(e,this.parseErrors))||this.options.defaultConfig}catch(e){return this.options.defaultConfig}},e.prototype.registerWatcher=function(){var e=this,t=r.dirname(this._path);this.watch(t,!0),n.lstat(this._path,function(t,r){t||r.isDirectory()||r.isSymbolicLink()&&n.readlink(e._path,function(t,n){t||e.watch(n,!1)})})},e.prototype.watch=function(e,t){var n=this;this.disposed||this.disposables.push(u.watch(e,function(e,r){return n.onConfigFileChange(e,r,t)},function(e){return n.options.onError(e)}))},e.prototype.onConfigFileChange=function(e,t,n){var i=this;n&&(c.isWindows&&t&&t!==this.configName&&(t=r.basename(t)),
t!==this.configName)||(this.timeoutHandle&&(global.clearTimeout(this.timeoutHandle),this.timeoutHandle=null),this.timeoutHandle=global.setTimeout(function(){return i.reload()},this.options.changeBufferDelay||0))},e.prototype.reload=function(e){var t=this;this.loadAsync(function(n){if(i.equals(n,t.cache)||(t.updateCache(n),t._onDidUpdateConfiguration.fire({config:t.cache})),e)return e(n)})},e.prototype.getConfig=function(){return this.ensureLoaded(),this.cache},e.prototype.ensureLoaded=function(){this.loaded||this.updateCache(this.loadSync())},e.prototype.dispose=function(){this.disposed=!0,this.disposables=o.dispose(this.disposables)},e}();t.ConfigWatcher=l}),define(e[8],t([0,1,34,4,17,21,23,7,3]),function(e,t,n,r,i,o,s,a,u){"use strict";function c(e){return i.nfcall(n.readdir,e)}function l(e){return d(e).then(function(t){return t.isDirectory()&&!t.isSymbolicLink()?c(e).then(function(t){return Promise.all(t.map(function(t){return l(r.join(e,t))}))}).then(function(){return h(e)}):p(e)},function(e){
if("ENOENT"!==e.code)return Promise.reject(e)})}function f(e){return i.nfcall(o.stat,e)}function d(e){return i.nfcall(o.lstat,e)}function h(e){return i.nfcall(o.rmdir,e)}function p(e){return i.nfcall(o.unlink,e)}function g(e,t,r){return function(e){var t=y[e];if(!t){t=new i.Queue,y[e]=t;u.Event.once(t.onFinished)(function(){delete y[e],t.dispose()})}return t}(function(e){var t=e;(a.isWindows||a.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(function(){return i.nfcall(n.writeFileAndFlush,e,t,r)})}function v(e){return f(e).then(function(e){return e.isDirectory()},function(){return!1})}function m(e,t){return void 0===t&&(b||(b=s.tmpdir()),t=b),i.nfcall(n.del,e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=c,t.exists=function(e){return new Promise(function(t){return o.exists(e,t)})},t.chmod=function(e,t){return i.nfcall(o.chmod,e,t)},t.mkdirp=n.mkdirp,t.rimraf=l,t.realpath=function(e){return i.nfcall(n.realpath,e)},t.stat=f,t.statLink=function(e){return i.nfcall(n.statLink,e)},t.lstat=d,
t.rename=function(e,t){return i.nfcall(o.rename,e,t)},t.renameIgnoreError=function(e,t){return new Promise(function(n){o.rename(e,t,function(){return n()})})},t.rmdir=h,t.unlink=p,t.symlink=function(e,t,n){return i.nfcall(o.symlink,e,t,n)},t.readlink=function(e){return i.nfcall(o.readlink,e)},t.truncate=function(e,t){return i.nfcall(o.truncate,e,t)},t.readFile=function(e,t){return i.nfcall(o.readFile,e,t)};var y=Object.create(null);t.writeFile=g,t.readDirsInDir=function(e){return c(e).then(function(t){return Promise.all(t.map(function(t){return v(r.join(e,t))})).then(function(e){return t.filter(function(t,n){return e[n]})})})},t.dirExists=v,t.fileExists=function(e){return f(e).then(function(e){return e.isFile()},function(){return!1})};var b=null;t.del=m,t.whenDeleted=function(e){return new Promise(function(t){var n=!1,r=setInterval(function(){n||(n=!0,o.exists(e,function(e){n=!1,e||(clearInterval(r),t(void 0))}))},1e3)})},t.copy=function(e,t){return i.nfcall(n.copy,e,t)}}),
define(e[46],t([0,1,2,3,17,26,6]),function(e,t,i,o,s,a,u){"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 d(e){switch(e.read(1).readUInt8(0)){case g.Undefined:return;case g.String:return e.read(l(e)).toString();case g.Buffer:return e.read(l(e));case g.Array:for(var t=l(e),n=[],r=0;r<t;r++)n.push(d(e));return n;case g.Object:return JSON.parse(e.read(l(e)).toString())}}function h(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 g,v=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}(),m=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"}(g||(g={}));var y={Undefined:Buffer.alloc(1,g.Undefined),String:Buffer.alloc(1,g.String),Buffer:Buffer.alloc(1,g.Buffer),Array:Buffer.alloc(1,g.Array),Object:Buffer.alloc(1,g.Object)},b=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 m;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 v(e),n=d(t),r=d(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 a.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 u=i.toDisposable(function(){return o.cancel()});this.activeRequests.set(e.id,u)},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=b;var _=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=a.CancellationToken.None);var c=this.lastRequestId++,l={id:c,type:100,channelName:e,name:t,arg:n};if(r.isCancellationRequested)return Promise.reject(u.canceled());var f,d=new Promise(function(e,t){if(r.isCancellationRequested)return t(u.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 a=function(){n?(n.cancel(),n=null):o.sendRequest({id:c,type:101}),t(u.canceled())},d=r.onCancellationRequested(a);f=i.combinedDisposable([i.toDisposable(a),d]),o.activeRequests.add(f)});return s.always(d,function(){return o.activeRequests.delete(f)}),d},
e.prototype.requestEvent=function(e,t,n){var r=this,i=this.lastRequestId++,a={id:i,type:102,channelName:e,name:t,arg:n},u=null,c=new o.Emitter({onFirstListenerAdd:function(){(u=s.createCancelablePromise(function(e){return r.whenInitialized()})).then(function(){u=null,r.activeRequests.add(c),r.sendRequest(a)})},onLastListenerRemove:function(){u?(u.cancel(),u=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 m;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 v(e),n=d(t),r=d(t);switch(n[0]){case 200:return this.onResponse({type:n[0]});case 201:case 202:case 204:case 203:
return this.onResponse({type:n[0],id:n[1],data:r})}},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=_;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=d(new v(e)),o=new b(n,i),s=new _(n);t.channels.forEach(function(e,t){return o.registerChannel(t,e)});var a={channelClient:s,ctx:i};t._connections.add(a),
t._onDidChangeConnections.fire(a),r(function(){o.dispose(),s.dispose(),t._connections.delete(a)})})})}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 h(t.routeCall(n,r,i).then(function(t){return t.channelClient.getChannel(e)})).call(r,i,o)},listen:function(r,i){return h(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 m;f(n,t),e.send(n.buffer),this.channelClient=new _(e),this.channelServer=new b(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=h,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[99],t([0,1,123,3,46,4,23,25,17]),function(e,t,n,r,o,s,a,u,c){"use strict";function l(e){var t,n=!1,i=!1,o=[],s=function(){if(!i){for(i=!0;n&&o.length>0;)t.fire(o.shift());i=!1}};return e(function(e){o.push(e),s()}),(t=new r.Emitter({onFirstListenerAdd:function(){n=!0,process.nextTick(s)},onLastListenerRemove:function(){n=!1}})).event}Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomPipeName=function(){var e=u.generateUuid();return"win32"===process.platform?"\\\\.\\pipe\\vscode-ipc-"+e+"-sock":s.join(a.tmpdir(),"vscode-ipc-"+e+".sock")};var f=function(){function e(t,n){var i=this;this._socket=t,this._onMessage=new r.Emitter,this.onMessage=this._onMessage.event,this._onClose=new r.Emitter,this.onClose=this._onClose.event,this._writeBuffer=new(function(){function e(){this._data=[],this._totalLength=0}
return e.prototype.add=function(e,t){var n=0===this._totalLength;return this._data.push(e,t),this._totalLength+=e.length+t.length,n},e.prototype.take=function(){var e=Buffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e},e}()),this._isDisposed=!1,this._chunks=[];var o=0,s={readHead:!0,bodyLen:-1},a=function(t){for(i._chunks.push(t),o+=t.length;o>0;){if(s.readHead){if(!(o>=e._headerLen))break;n=Buffer.concat(i._chunks);s.bodyLen=n.readUInt32BE(0),s.readHead=!1;a=n.slice(e._headerLen);o=a.length,i._chunks=[a]}if(!s.readHead){if(!(o>=s.bodyLen))break;var n,r=(n=Buffer.concat(i._chunks)).slice(0,s.bodyLen),a=n.slice(s.bodyLen);if(o=a.length,i._chunks=[a],s.bodyLen=-1,s.readHead=!0,i._onMessage.fire(r),i._isDisposed)break}}},u=function(){if(n&&n.length>0){var e=n;n=void 0,a(e)}};this._firstChunkTimer=new c.TimeoutTimer,this._firstChunkTimer.setIfNotSet(function(){u()},0),this._socketDataListener=function(e){u(),a(e)},t.on("data",this._socketDataListener),
this._socketEndListener=function(){u()},t.on("end",this._socketEndListener),this._socketCloseListener=function(){i._onClose.fire()},t.once("close",this._socketCloseListener)}return e.prototype.dispose=function(){this._isDisposed=!0,this._firstChunkTimer.dispose(),this._socket.removeListener("data",this._socketDataListener),this._socket.removeListener("end",this._socketEndListener),this._socket.removeListener("close",this._socketCloseListener)},e.prototype.end=function(){this._socket.end()},e.prototype.getBuffer=function(){return Buffer.concat(this._chunks)},e.prototype.send=function(t){var n=Buffer.allocUnsafe(e._headerLen);n.writeUInt32BE(t.length,0,!0),this._writeSoon(n,t)},e.prototype._writeSoon=function(e,t){var n=this;this._writeBuffer.add(e,t)&&setImmediate(function(){n._socket.destroyed||n._socket.write(n._writeBuffer.take())})},e._headerLen=4,e}();t.Protocol=f;var d=function(e){function t(n){var r=e.call(this,t.toClientConnectionEvent(n))||this;return r.server=n,r}return i(t,e),
t.toClientConnectionEvent=function(e){var t=r.Event.fromNodeEventEmitter(e,"connection");return r.Event.map(t,function(e){return{protocol:new f(e),onDidClientDisconnect:r.Event.once(r.Event.fromNodeEventEmitter(e,"close"))}})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.server&&(this.server.close(),this.server=null)},t}(o.IPCServer);t.Server=d;var h=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.protocol=t,r}return i(t,e),t.fromSocket=function(e,n){return new t(new f(e),n)},Object.defineProperty(t.prototype,"onClose",{get:function(){return this.protocol.onClose},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.protocol.end()},t}(o.IPCClient);t.Client=h,t.serve=function(e){return new Promise(function(t,r){var i=n.createServer();i.on("error",r),i.listen(e,function(){i.removeListener("error",r),t(new d(i))})})},t.connect=function(e,t){return new Promise(function(r,i){var o=n.createConnection(e,function(){
o.removeListener("error",i),r(h.fromSocket(o,t))});o.once("error",i)})};var p=function(){function e(e){this._actual=e,this.onMessage=l(this._actual.onMessage),this.onClose=l(this._actual.onClose)}return e.prototype.send=function(e){this._actual.send(e)},e.prototype.end=function(){this._actual.end()},e}();t.BufferedProtocol=p}),define(e[103],t([13,12]),function(e,t){return e.create("vs/base/common/errorMessage",t)}),define(e[38],t([0,1,103,10,18]),function(e,t,n,r,i){"use strict";function o(e,t){return e.message?t&&(e.stack||e.stacktrace)?n.localize(0,null,s(e),e.stack||e.stacktrace):s(e):n.localize(1,null)}function s(e){return"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?n.localize(2,null,e.message):e.message}function a(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!1),!e)return n.localize(3,null);if(Array.isArray(e)){var s=i.coalesce(e),u=a(s[0],t);return s.length>1?n.localize(4,null,u,s.length):u}if(r.isString(e))return e;if(e.detail){var c=e.detail
;if(c.error)return o(c.error,t);if(c.exception)return o(c.exception,t)}return e.stack?o(e,t):e.message?e.message:n.localize(5,null)}Object.defineProperty(t,"__esModule",{value:!0}),t.toErrorMessage=a}),define(e[53],t([13,12]),function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)}),define(e[54],t([13,12]),function(e,t){return e.create("vs/platform/dialogs/common/dialogs",t)}),define(e[55],t([13,12]),function(e,t){return e.create("vs/platform/extensionManagement/common/extensionManagement",t)}),define(e[56],t([13,12]),function(e,t){return e.create("vs/platform/extensionManagement/node/extensionManagementService",t)}),define(e[57],t([13,12]),function(e,t){return e.create("vs/platform/extensionManagement/node/extensionManagementUtil",t)}),define(e[58],t([13,12]),function(e,t){return e.create("vs/platform/extensions/node/extensionValidator",t)}),define(e[59],t([13,12]),function(e,t){return e.create("vs/platform/node/zip",t)}),define(e[60],t([13,12]),function(e,t){
return e.create("vs/platform/request/node/request",t)}),define(e[61],t([13,12]),function(e,t){return e.create("vs/platform/telemetry/common/telemetryService",t)}),define(e[62],t([13,12]),function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)});var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)};define(e[24],t([0,1,14]),function(e,t,n){"use strict";function r(e,t){return e.uuid&&t.uuid?e.uuid===t.uuid:e.id===t.id||0===n.compareIgnoreCase(e.id,t.id)}Object.defineProperty(t,"__esModule",{value:!0}),t.areSameExtensions=r,t.adoptToGalleryExtensionId=function(e){return e.toLocaleLowerCase()},t.getGalleryExtensionId=function(e,t){return e.toLocaleLowerCase()+"."+t.toLocaleLowerCase()},t.groupByExtension=function(e,t){for(var n=[],i=function(e){for(var i=0,o=n;i<o.length;i++){var s=o[i];if(s.some(function(n){
return r(t(n),t(e))}))return s}return null},o=0,s=e;o<s.length;o++){var a=s[o],u=i(a);u?u.push(a):n.push([a])}return n},t.getLocalExtensionTelemetryData=function(e){return{id:e.identifier.id,name:e.manifest.name,galleryId:null,publisherId:e.metadata?e.metadata.publisherId:null,publisherName:e.manifest.publisher,publisherDisplayName:e.metadata?e.metadata.publisherDisplayName:null,dependencies:e.manifest.extensionDependencies&&e.manifest.extensionDependencies.length>0}},t.getGalleryExtensionTelemetryData=function(e){return o({id:e.identifier.id,name:e.name,galleryId:e.identifier.uuid,publisherId:e.publisherId,publisherName:e.publisher,publisherDisplayName:e.publisherDisplayName,dependencies:!!(e.properties.dependencies&&e.properties.dependencies.length>0)},e.telemetryData)},t.BetterMergeId="pprice.better-merge",t.getMaliciousExtensionsSet=function(e){for(var t=new Set,n=0,r=e;n<r.length;n++){var i=r[n];i.malicious&&t.add(i.id.id)}return t}}),define(e[52],t([0,1,9]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var r=/^%([\w\d.-]+)%$/i;t.localizeManifest=function(e,t){return n.cloneAndChange(e,function(e){if("string"==typeof e){var n=r.exec(e);if(n)return t[n[1]]||e}})}}),define(e[65],t([0,1,2,79,38,4,17,3,32,8]),function(e,t,o,s,a,u,c,l,f,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){function t(t,n){var r=e.call(this)||this;return r.environmentService=t,r.logService=n,r.processesLimiter=new c.Limiter(5),r}return i(t,e),t.prototype.postUninstall=function(e){return n(this,void 0,void 0,function(){var t,n=this;return r(this,function(r){switch(r.label){case 0:return(t=this.parseScript(e,"uninstall"))?(this.logService.info(e.identifier.id,e.manifest.version,"Running post uninstall script"),[4,this.processesLimiter.queue(function(){return n.runLifecycleHook(t.script,"uninstall",t.args,!0,e).then(function(){return n.logService.info(e.identifier.id,e.manifest.version,"Finished running post uninstall script")},function(t){
return n.logService.error(e.identifier.id,e.manifest.version,"Failed to run post uninstall script: "+t)})})]):[3,2];case 1:r.sent(),r.label=2;case 2:return[2,d.rimraf(this.getExtensionStoragePath(e)).then(void 0,function(e){return n.logService.error("Error while removing extension storage path",e)})]}})})},t.prototype.parseScript=function(e,t){var n="vscode:"+t;if(e.location.scheme===f.Schemas.file&&e.manifest&&e.manifest.scripts&&"string"==typeof e.manifest.scripts[n]){var r=e.manifest.scripts[n].split(" ");return r.length<2||"node"!==r[0]||!r[1]?(this.logService.warn(e.identifier.id,e.manifest.version,n+" should be a node script"),null):{script:u.posix.join(e.location.fsPath,r[1]),args:r.slice(2)||[]}}return null},t.prototype.runLifecycleHook=function(e,t,n,r,i){var o=this;return new Promise(function(s,u){var c,l=o.start(e,t,n,i),f=function(e){c&&(clearTimeout(c),c=null),e?u(e):s(void 0)};l.on("error",function(e){f(a.toErrorMessage(e)||"Unknown")}),l.on("exit",function(e,n){
f(e?"post-"+t+" process exited with code "+e:void 0)}),r&&(c=setTimeout(function(){c=null,l.kill(),u("timed out")},5e3))})},t.prototype.start=function(e,t,n,r){var i=this,o={silent:!0,execArgv:void 0},a=s.fork(e,["--type=extension-post-"+t].concat(n),o);a.stdout.setEncoding("utf8"),a.stderr.setEncoding("utf8");var u=l.Event.fromNodeEventEmitter(a.stdout,"data"),c=l.Event.fromNodeEventEmitter(a.stderr,"data");u(function(e){return i.logService.info(r.identifier.id,r.manifest.version,"post-"+t,e)}),c(function(e){return i.logService.error(r.identifier.id,r.manifest.version,"post-"+t,e)});var f=l.Event.any(l.Event.map(u,function(e){return{data:"%c"+e,format:[""]}}),l.Event.map(c,function(e){return{data:"%c"+e,format:["color: red"]}}));return l.Event.debounce(f,function(e,t){return e?{data:e.data+t.data,format:e.format.concat(t.format)}:{data:t.data,format:t.format}},100)(function(e){console.group(r.identifier.id),console.log.apply(console,[e.data].concat(e.format)),console.groupEnd()}),a},
t.prototype.getExtensionStoragePath=function(e){return u.posix.join(this.environmentService.globalStorageHome,e.identifier.id.toLowerCase())},t}(o.Disposable);t.ExtensionsLifecycle=h}),define(e[66],t([0,1,3,16,114,9]),function(e,t,n,r,i,s){"use strict";function a(e,t){return r.URI.revive(t?t.transformIncoming(e):e)}function u(e,t){t=t||i.DefaultURITransformer;var n=e.manifest,r=i.transformAndReviveIncomingURIs(o({},e,{manifest:void 0}),t);return o({},r,{manifest:n})}function c(e,t){return t?s.cloneAndChange(e,function(e){return e instanceof r.URI?t.transformOutgoingURI(e):void 0}):e}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){this.service=e,this.getUriTransformer=t,this.onInstallExtension=n.Event.buffer(e.onInstallExtension,!0),this.onDidInstallExtension=n.Event.buffer(e.onDidInstallExtension,!0),this.onUninstallExtension=n.Event.buffer(e.onUninstallExtension,!0),this.onDidUninstallExtension=n.Event.buffer(e.onDidUninstallExtension,!0)}
return e.prototype.listen=function(e,t){var r=this.getUriTransformer(e);switch(t){case"onInstallExtension":return this.onInstallExtension;case"onDidInstallExtension":return n.Event.map(this.onDidInstallExtension,function(e){return o({},e,{local:e.local?c(e.local,r):e.local})});case"onUninstallExtension":return this.onUninstallExtension;case"onDidUninstallExtension":return this.onDidUninstallExtension}throw new Error("Invalid listen")},e.prototype.call=function(e,t,n){var r=this.getUriTransformer(e);switch(t){case"zip":return this.service.zip(u(n[0],r)).then(function(e){return function(e,t){return t?t.transformOutgoingURI(e):e}(e,r)});case"unzip":return this.service.unzip(a(n[0],r),n[1]);case"install":return this.service.install(a(n[0],r));case"installFromGallery":return this.service.installFromGallery(n[0]);case"uninstall":return this.service.uninstall(u(n[0],r),n[1]);case"reinstallFromGallery":return this.service.reinstallFromGallery(u(n[0],r));case"getInstalled":
return this.service.getInstalled(n[0]).then(function(e){return e.map(function(e){return c(e,r)})});case"updateMetadata":return this.service.updateMetadata(u(n[0],r),n[1]).then(function(e){return c(e,r)});case"getExtensionsReport":return this.service.getExtensionsReport()}throw new Error("Invalid call")},e}();t.ExtensionManagementChannel=l;var f=function(){function e(e){this.channel=e}return Object.defineProperty(e.prototype,"onInstallExtension",{get:function(){return this.channel.listen("onInstallExtension")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidInstallExtension",{get:function(){return n.Event.map(this.channel.listen("onDidInstallExtension"),function(e){return o({},e,{local:e.local?u(e.local,null):e.local})})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onUninstallExtension",{get:function(){return this.channel.listen("onUninstallExtension")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidUninstallExtension",{get:function(){
return this.channel.listen("onDidUninstallExtension")},enumerable:!0,configurable:!0}),e.prototype.zip=function(e){return Promise.resolve(this.channel.call("zip",[e]).then(function(e){return r.URI.revive(e)}))},e.prototype.unzip=function(e,t){return Promise.resolve(this.channel.call("unzip",[e,t]))},e.prototype.install=function(e){return Promise.resolve(this.channel.call("install",[e]))},e.prototype.installFromGallery=function(e){return Promise.resolve(this.channel.call("installFromGallery",[e]))},e.prototype.uninstall=function(e,t){return void 0===t&&(t=!1),Promise.resolve(this.channel.call("uninstall",[e,t]))},e.prototype.reinstallFromGallery=function(e){return Promise.resolve(this.channel.call("reinstallFromGallery",[e]))},e.prototype.getInstalled=function(e){return void 0===e&&(e=null),Promise.resolve(this.channel.call("getInstalled",[e])).then(function(e){return e.map(function(e){return u(e,null)})})},e.prototype.updateMetadata=function(e,t){
return Promise.resolve(this.channel.call("updateMetadata",[e,t])).then(function(e){return u(e,null)})},e.prototype.getExtensionsReport=function(){return Promise.resolve(this.channel.call("getExtensionsReport"))},e}();t.ExtensionManagementChannelClient=f}),define(e[44],t([0,1,24,14]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MANIFEST_CACHE_FOLDER="CachedExtensions",t.USER_MANIFEST_CACHE_FILE="user",t.BUILTIN_MANIFEST_CACHE_FILE="builtin";var i=function(){function e(e,t){this.identifier=e,this.version=t}return e.prototype.key=function(){return this.identifier.id+"-"+this.version},e.prototype.equals=function(t){return t instanceof e&&(n.areSameExtensions(this.identifier,t.identifier)&&this.version===t.version)},e}();t.ExtensionIdentifierWithVersion=i,t.isIExtensionIdentifier=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(!e.uuid||"string"==typeof e.uuid)};!function(e){e[e.System=0]="System",e[e.User=1]="User"}(t.ExtensionType||(t.ExtensionType={}))
;var o=function(){function e(e){this.value=e,this._lower=e.toLowerCase()}return e.equals=function(e,t){if(void 0===e||null===e)return void 0===t||null===t;if(void 0===t||null===t)return!1;if("string"==typeof e||"string"==typeof t){var n="string"==typeof e?e:e.value,i="string"==typeof t?t:t.value;return r.equalsIgnoreCase(n,i)}return e._lower===t._lower},e.toKey=function(e){return"string"==typeof e?e.toLowerCase():e._lower},e}();t.ExtensionIdentifier=o}),define(e[68],t([0,1,2,4,44,8]),function(e,t,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t,n){var i=e.call(this)||this;return i.environmentService=t,i.extensionsManifestCache=r.join(i.environmentService.userDataPath,o.MANIFEST_CACHE_FOLDER,o.USER_MANIFEST_CACHE_FILE),i._register(n.onDidInstallExtension(function(e){return i.onDidInstallExtension(e)})),i._register(n.onDidUninstallExtension(function(e){return i.onDidUnInstallExtension(e)})),i}return i(t,e),t.prototype.onDidInstallExtension=function(e){
e.error||this.invalidate()},t.prototype.onDidUnInstallExtension=function(e){e.error||this.invalidate()},t.prototype.invalidate=function(){s.del(this.extensionsManifestCache).then(function(){},function(){})},t}(n.Disposable);t.ExtensionsManifestCache=a}),define(e[45],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}();t.SyncDescriptor=n,t.createSyncDescriptor=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new n(e,t)}}),define(e[70],t([0,1,10,83]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null)}return e.prototype.roots=function(){var e=[];return r.forEach(this._nodes,function(t){n.isEmptyObject(t.value.outgoing)&&e.push(t.value)}),e},e.prototype.insertEdge=function(e,t){
var n=this.lookupOrInsertNode(e),r=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=r,r.incoming[this._hashFn(e)]=n},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],r.forEach(this._nodes,function(e){delete e.value.outgoing[t],delete e.value.incoming[t]})},e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n=function(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}(e),this._nodes[t]=n),n},e.prototype.lookup=function(e){return this._nodes[this._hashFn(e)]},e.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},e.prototype.toString=function(){var e=[];return r.forEach(this._nodes,function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")}),e.join("\n")},e}();t.Graph=i}),define(e[5],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[47],t([0,1,5,30,54]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDialogService=n.createDecorator("dialogService"),
t.IFileDialogService=n.createDecorator("fileDialogService");var o=10;t.getConfirmMessage=function(e,t){var n=[e];return n.push(""),n.push.apply(n,t.slice(0,o).map(function(e){return r.basename(e.fsPath)})),t.length>o&&(t.length-o==1?n.push(i.localize(0,null)):n.push(i.localize(1,null,t.length-o))),n.push(""),n.join("\n")}});var s=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};define(e[73],t([0,1,47]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.dialogService=e}return e.prototype.listen=function(e,t){throw new Error("Event not found: "+t)},e.prototype.call=function(e,t,n){
switch(t){case"show":return this.dialogService.show(n[0],n[1],n[2]);case"confirm":return this.dialogService.confirm(n[0])}return Promise.reject(new Error("invalid command"))},e=s([a(0,n.IDialogService)],e)}();t.DialogChannel=r;var i=function(){function e(e){this.channel=e}return e.prototype.show=function(e,t,n){return this.channel.call("show",[e,t,n])},e.prototype.confirm=function(e){return this.channel.call("confirm",[e])},e}();t.DialogChannelClient=i}),define(e[49],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDownloadService=n.createDecorator("downloadService")}),define(e[15],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEnvironmentService=n.createDecorator("environmentService")}),define(e[76],t([0,1,15,4,8,6,2]),function(e,t,n,r,o,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t){var n=e.call(this)||this;return n.environmentService=t,n.cleanUpOldLogsSoon(),n}
return i(t,e),t.prototype.cleanUpOldLogsSoon=function(){var e=this,t=setTimeout(function(){t=void 0;var n=r.basename(e.environmentService.logsPath),i=r.dirname(e.environmentService.logsPath);o.readdir(i).then(function(e){var t=e.filter(function(e){return/^\d{8}T\d{6}$/.test(e)}).sort().filter(function(e,t){return e!==n}),s=t.slice(0,Math.max(0,t.length-9));return Promise.all(s.map(function(e){return o.rimraf(r.join(i,e))}))}).then(null,u.onUnexpectedError)},1e4);this._register(c.toDisposable(function(){return clearTimeout(t)}))},t=s([a(0,n.IEnvironmentService)],t)}(c.Disposable);t.LogsDataCleaner=l}),define(e[77],t([0,1,15,4,8,6,2]),function(e,t,n,r,o,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t){var n=e.call(this)||this;return n.environmentService=t,n.cleanUpStorageSoon(),n}return i(t,e),t.prototype.cleanUpStorageSoon=function(){var e=this,n=setTimeout(function(){n=void 0,o.readFile(e.environmentService.backupWorkspacesPath,"utf8").then(function(n){
var i=JSON.parse(n).emptyWorkspaceInfos.map(function(e){return e.backupFolder});return o.readdir(e.environmentService.workspaceStorageHome).then(function(n){var s=[];return n.forEach(function(n){n.length!==t.NON_EMPTY_WORKSPACE_ID_LENGTH&&-1===i.indexOf(n)&&s.push(o.rimraf(r.join(e.environmentService.workspaceStorageHome,n)))}),Promise.all(s)})}).then(null,u.onUnexpectedError)},3e4);this._register(c.toDisposable(function(){return clearTimeout(n)}))},t.NON_EMPTY_WORKSPACE_ID_LENGTH=32,t=s([a(0,n.IEnvironmentService)],t)}(c.Disposable);t.StorageDataCleaner=l}),define(e[33],t([0,1,55,5]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",t.EXTENSION_IDENTIFIER_REGEX=new RegExp(t.EXTENSION_IDENTIFIER_PATTERN),t.isIExtensionIdentifier=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(!e.uuid||"string"==typeof e.uuid)},
t.IExtensionManagementService=r.createDecorator("extensionManagementService"),t.IExtensionGalleryService=r.createDecorator("extensionGalleryService");!function(e){e[e.NoneOrRelevance=0]="NoneOrRelevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.PublisherName=3]="PublisherName",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.WeightedRating=12]="WeightedRating"}(t.SortBy||(t.SortBy={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(t.SortOrder||(t.SortOrder={}));!function(e){e.Uninstall="uninstall"}(t.StatisticType||(t.StatisticType={}));!function(e){e[e.None=0]="None",e[e.Install=1]="Install",e[e.Update=2]="Update"}(t.InstallOperation||(t.InstallOperation={})),t.INSTALL_ERROR_MALICIOUS="malicious",t.INSTALL_ERROR_INCOMPATIBLE="incompatible",t.IExtensionManagementServerService=r.createDecorator("extensionManagementServerService");!function(e){e[e.Disabled=0]="Disabled",
e[e.WorkspaceDisabled=1]="WorkspaceDisabled",e[e.Enabled=2]="Enabled",e[e.WorkspaceEnabled=3]="WorkspaceEnabled"}(t.EnablementState||(t.EnablementState={})),t.IExtensionEnablementService=r.createDecorator("extensionEnablementService"),t.IExtensionTipsService=r.createDecorator("extensionTipsService");!function(e){e[e.Workspace=0]="Workspace",e[e.File=1]="File",e[e.Executable=2]="Executable",e[e.DynamicWorkspace=3]="DynamicWorkspace",e[e.Experimental=4]="Experimental"}(t.ExtensionRecommendationReason||(t.ExtensionRecommendationReason={})),t.ExtensionsLabel=n.localize(0,null),t.ExtensionsChannelId="extensions",t.PreferencesLabel=n.localize(1,null)}),define(e[39],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];this.set(o,s)}}return e.prototype.set=function(e,t){var n=this._entries.get(e)
;return this._entries.set(e,t),n},e.prototype.forEach=function(e){this._entries.forEach(function(t,n){return e(n,t)})},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}();t.ServiceCollection=n}),define(e[80],t([0,1,6,10,70,45,5,39]),function(e,t,n,r,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t,n){void 0===e&&(e=new u.ServiceCollection),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(a.IInstantiationService,this)}return e.prototype.createChild=function(t){return new e(t,this._strict,this)},e.prototype.invokeFunction=function(e){for(var t=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=f.traceInvocation(e),s=!1;try{var u={get:function(e,r){if(s)throw n.illegalState("service accessor is only valid during the invocation of its target method");var i=t._getOrCreateServiceInstance(e,o)
;if(!i&&r!==a.optional)throw new Error("[invokeFunction] unknown service '"+e+"'");return i}};return e.apply(void 0,[u].concat(r))}finally{s=!0,o.stop()}},e.prototype.createInstance=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i;return e instanceof s.SyncDescriptor?(r=f.traceCreation(e.ctor),i=this._createInstance(e.ctor,e.staticArguments.concat(t),r)):(r=f.traceCreation(e),i=this._createInstance(e,t,r)),r.stop(),i},e.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var i=a._util.getServiceDependencies(e).sort(function(e,t){return e.index-t.index}),o=[],s=0,u=i;s<u.length;s++){var c=u[s],l=this._getOrCreateServiceInstance(c.id,n);if(!l&&this._strict&&!c.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+c.id+".");o.push(l)}var f=i.length>0?i[0].index:t.length;if(t.length!==f){console.warn("[createInstance] First service dependency of "+e.name+" at position "+(f+1)+" conflicts with "+t.length+" static arguments");var d=f-t.length
;t=d>0?t.concat(new Array(d)):t.slice(0,f)}return r.create.apply(null,[e].concat(t,o))},e.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof s.SyncDescriptor)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},e.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},e.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof s.SyncDescriptor?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},e.prototype._createAndCacheServiceInstance=function(e,t,n){function r(){var e=new Error("[createInstance] cyclic dependency between services");throw e.message=i.toString(),e}for(var i=new o.Graph(function(e){return e.id.toString()}),u=0,c=[{id:e,desc:t,_trace:n}];c.length;){var l=c.pop();i.lookupOrInsertNode(l),
u++>100&&r();for(var f=0,d=a._util.getServiceDependencies(l.desc.ctor);f<d.length;f++){var h=d[f],p=this._getServiceInstanceOrDescriptor(h.id);if(p||h.optional||console.warn("[createInstance] "+e+" depends on "+h.id+" which is NOT registered."),p instanceof s.SyncDescriptor){var g={id:h.id,desc:p,_trace:l._trace.branch(h.id,!0)};i.insertEdge(l,g),c.push(g)}}}for(;;){var v=i.roots();if(0===v.length){i.isEmpty()||r();break}for(var m=0,y=v;m<y.length;m++){var b=y[m].data,_=this._createServiceInstanceWithOwner(b.id,b.desc.ctor,b.desc.staticArguments,b.desc.supportsDelayedInstantiation,b._trace);this._setServiceInstance(b.id,_),i.removeNode(b)}}return this._getServiceInstanceOrDescriptor(e)},e.prototype._createServiceInstanceWithOwner=function(e,t,n,r,i){if(void 0===n&&(n=[]),this._services.get(e)instanceof s.SyncDescriptor)return this._createServiceInstance(t,n,r,i);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,r,i);throw new Error("illegalState - creating UNKNOWN service instance")},
e.prototype._createServiceInstance=function(e,t,n,r){return void 0===t&&(t=[]),this._createInstance(e,t,r)},e}();t.InstantiationService=c;var l;!function(e){e[e.Creation=0]="Creation",e[e.Invocation=1]="Invocation",e[e.Branch=2]="Branch"}(l||(l={}));var f=function(){function e(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}return e.traceInvocation=function(t){return e._None},e.traceCreation=function(t){return e._None},e.prototype.branch=function(t,n){var r=new e(2,t.toString());return this._dep.push([t,n,r]),r},e.prototype.stop=function(){function t(e,n){for(var i=[],o=new Array(e+1).join("\t"),s=0,a=n._dep;s<a.length;s++){var u=a[s],c=u[0],l=u[1],f=u[2];if(l&&f){r=!0,i.push(o+"CREATES -> "+c);var d=t(e+1,f);d&&i.push(d)}else i.push(o+"uses -> "+c)}return i.join("\n")}var n=Date.now()-this._start;e._totals+=n;var r=!1,i=[(0===this.type?"CREATE":"CALL")+" "+this.name,""+t(1,this),"DONE, took "+n.toFixed(2)+"ms (grand total "+e._totals.toFixed(2)+"ms)"];(n>2||r)&&console.log(i.join("\n"))},
e._None=new(function(e){function t(){return e.call(this,-1,null)||this}return i(t,e),t.prototype.stop=function(){},t.prototype.branch=function(){return this},t}(e)),e._totals=0,e}()}),define(e[40],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Core=1]="Core",e[e.Contributed=2]="Contributed"}(t.LanguageType||(t.LanguageType={})),t.ILocalizationsService=n.createDecorator("localizationsService"),t.isValidLocalization=function(e){if("string"!=typeof e.languageId)return!1;if(!Array.isArray(e.translations)||0===e.translations.length)return!1;for(var t=0,n=e.translations;t<n.length;t++){var r=n[t];if("string"!=typeof r.id)return!1;if("string"!=typeof r.path)return!1}return!(e.languageName&&"string"!=typeof e.languageName||e.localizedLanguageName&&"string"!=typeof e.localizedLanguageName)}}),define(e[82],t([0,1,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.service=e,
this.onDidLanguagesChange=n.Event.buffer(e.onDidLanguagesChange,!0)}return e.prototype.listen=function(e,t){switch(t){case"onDidLanguagesChange":return this.onDidLanguagesChange}throw new Error("Event not found: "+t)},e.prototype.call=function(e,t,n){switch(t){case"getLanguageIds":return this.service.getLanguageIds(n)}throw new Error("Call not found: "+t)},e}();t.LocalizationsChannel=r;var i=function(){function e(e){this.channel=e}return Object.defineProperty(e.prototype,"onDidLanguagesChange",{get:function(){return this.channel.listen("onDidLanguagesChange")},enumerable:!0,configurable:!0}),e.prototype.getLanguageIds=function(e){return this.channel.call("getLanguageIds",e)},e}();t.LocalizationsChannelClient=i}),define(e[11],t([0,1,5,2,7,3]),function(e,t,n,r,o,s){"use strict";function a(){return(new Date).toISOString()}Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=n.createDecorator("logService");var u;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",
e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(u=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=u.Info;var c=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.level=t.DEFAULT_LOG_LEVEL,n._onDidChangeLogLevel=n._register(new s.Emitter),n.onDidChangeLogLevel=n._onDidChangeLogLevel.event,n}return i(n,e),n.prototype.setLevel=function(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))},n.prototype.getLevel=function(){return this.level},n}(r.Disposable);t.AbstractLogService=c;var l=function(e){function n(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r.useColors=!o.isWindows,r}return i(n,e),n.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Trace&&(this.useColors?console.log.apply(console,["[90m[main "+a()+"][0m",e].concat(t)):console.log.apply(console,["[main "+a()+"]",e].concat(t)))},n.prototype.debug=function(e){
for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Debug&&(this.useColors?console.log.apply(console,["[90m[main "+a()+"][0m",e].concat(t)):console.log.apply(console,["[main "+a()+"]",e].concat(t)))},n.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Info&&(this.useColors?console.log.apply(console,["[90m[main "+a()+"][0m",e].concat(t)):console.log.apply(console,["[main "+a()+"]",e].concat(t)))},n.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Warning&&(this.useColors?console.warn.apply(console,["[93m[main "+a()+"][0m",e].concat(t)):console.warn.apply(console,["[main "+a()+"]",e].concat(t)))},n.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Error&&(this.useColors?console.error.apply(console,["[91m[main "+a()+"][0m",e].concat(t)):console.error.apply(console,["[main "+a()+"]",e].concat(t)))},
n.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Critical&&(this.useColors?console.error.apply(console,["[90m[main "+a()+"][0m",e].concat(t)):console.error.apply(console,["[main "+a()+"]",e].concat(t)))},n.prototype.dispose=function(){},n}(c);t.ConsoleLogMainService=l;var f=function(e){function n(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r}return i(n,e),n.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Trace&&console.log.apply(console,["%cTRACE","color: #888",e].concat(t))},n.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Debug&&console.log.apply(console,["%cDEBUG","background: #eee; color: #888",e].concat(t))},n.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Info&&console.log.apply(console,["%c INFO","color: #33f",e].concat(t))
},n.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Warning&&console.log.apply(console,["%c WARN","color: #993",e].concat(t))},n.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Error&&console.log.apply(console,["%c  ERR","color: #f33",e].concat(t))},n.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=u.Critical&&console.log.apply(console,["%cCRITI","background: #f33; color: white",e].concat(t))},n.prototype.dispose=function(){},n}(c);t.ConsoleLogService=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.logServices=t,t.length&&n.setLevel(t[0].getLevel()),n}return i(t,e),t.prototype.setLevel=function(t){for(var n=0,r=this.logServices;n<r.length;n++){r[n].setLevel(t)}e.prototype.setLevel.call(this,t)},t.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.trace.apply(o,[e].concat(t))}},t.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.debug.apply(o,[e].concat(t))}},t.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.info.apply(o,[e].concat(t))}},t.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.warn.apply(o,[e].concat(t))}},t.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.error.apply(o,[e].concat(t))}},t.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.critical.apply(o,[e].concat(t))}},
t.prototype.dispose=function(){for(var e=0,t=this.logServices;e<t.length;e++){t[e].dispose()}},t}(c);t.MultiplexLogService=d;var h=function(e){function t(t){var n=e.call(this)||this;return n.logService=t,n._register(t),n}return i(t,e),Object.defineProperty(t.prototype,"onDidChangeLogLevel",{get:function(){return this.logService.onDidChangeLogLevel},enumerable:!0,configurable:!0}),t.prototype.setLevel=function(e){this.logService.setLevel(e)},t.prototype.getLevel=function(){return this.logService.getLevel()},t.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).trace.apply(r,[e].concat(t))},t.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).debug.apply(r,[e].concat(t))},t.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).info.apply(r,[e].concat(t))},t.prototype.warn=function(e){
for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).warn.apply(r,[e].concat(t))},t.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).error.apply(r,[e].concat(t))},t.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).critical.apply(r,[e].concat(t))},t}(r.Disposable);t.DelegatedLogService=h;var p=function(){function e(){this.onDidChangeLogLevel=(new s.Emitter).event}return e.prototype.setLevel=function(e){},e.prototype.getLevel=function(){return u.Info},e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){
for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}();t.NullLogService=p,t.getLogLevel=function(e){if(e.verbose)return u.Trace;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return u.Trace;case"debug":return u.Debug;case"info":return u.Info;case"warn":return u.Warning;case"error":return u.Error;case"critical":return u.Critical;case"off":return u.Off}return t.DEFAULT_LOG_LEVEL}}),define(e[84],t([0,1,11,3]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.service=e,this.onDidChangeLogLevel=r.Event.buffer(e.onDidChangeLogLevel,!0)}return e.prototype.listen=function(e,t){switch(t){case"onDidChangeLogLevel":return this.onDidChangeLogLevel}throw new Error("Event not found: "+t)},e.prototype.call=function(e,t,n){switch(t){case"setLevel":this.service.setLevel(n)}
throw new Error("Call not found: "+t)},e}();t.LogLevelSetterChannel=o;var s=function(){function e(e){this.channel=e}return Object.defineProperty(e.prototype,"onDidChangeLogLevel",{get:function(){return this.channel.listen("onDidChangeLogLevel")},enumerable:!0,configurable:!0}),e.prototype.setLevel=function(e){this.channel.call("setLevel",e)},e}();t.LogLevelSetterChannelClient=s;var a=function(e){function t(t,n){var r=e.call(this,n)||this;return r.master=t,r._register(t.onDidChangeLogLevel(function(e){return n.setLevel(e)})),r}return i(t,e),t.prototype.setLevel=function(e){this.master.setLevel(e)},t}(n.DelegatedLogService);t.FollowerLogService=a}),define(e[85],t([0,1,4,11]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSpdLogService=function(t,i,s){try{var a=e.__$__nodeRequire("spdlog");a.setAsyncMode(8192,500);var u=n.join(s,t+".log"),c=new a.RotatingLogger(t,u,5242880,6);return c.setLevel(0),new o(c,i)}catch(e){console.error(e)}return new r.NullLogService},
t.createRotatingLogger=function(t,n,r,i){return new(e.__$__nodeRequire("spdlog").RotatingLogger)(t,n,r,i)};var o=function(e){function t(t,n){void 0===n&&(n=r.LogLevel.Error);var i=e.call(this)||this;return i.logger=t,i.setLevel(n),i}return i(t,e),t.prototype.trace=function(){this.getLevel()<=r.LogLevel.Trace&&this.logger.trace(this.format(arguments))},t.prototype.debug=function(){this.getLevel()<=r.LogLevel.Debug&&this.logger.debug(this.format(arguments))},t.prototype.info=function(){this.getLevel()<=r.LogLevel.Info&&this.logger.info(this.format(arguments))},t.prototype.warn=function(){this.getLevel()<=r.LogLevel.Warning&&this.logger.warn(this.format(arguments))},t.prototype.error=function(){if(this.getLevel()<=r.LogLevel.Error){var e=arguments[0];if(e instanceof Error){var t=Array.prototype.slice.call(arguments);t[0]=e.stack,this.logger.error(this.format(t))}else this.logger.error(this.format(arguments))}},t.prototype.critical=function(){
this.getLevel()<=r.LogLevel.Critical&&this.logger.critical(this.format(arguments))},t.prototype.dispose=function(){this.logger.drop()},t.prototype.format=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("object"==typeof r)try{r=JSON.stringify(r)}catch(e){}t+=(n>0?" ":"")+r}return t},t}(r.AbstractLogService)}),define(e[28],t([0,1,4,27]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.dirname(r.getPathFromAmdModule(e,"")),o=n.join(i,"package.json");t.default=e.__$__nodeRequire(o)}),define(e[43],t([0,1,58,28]),function(e,t,n,r){"use strict";function i(e){return"*"===(e=e.trim())||c.test(e)}function o(e){if(!i(e))return null;if("*"===(e=e.trim()))return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};var t=e.match(c);return t?{hasCaret:"^"===t[1],hasGreaterEquals:">="===t[1],majorBase:"x"===t[2]?0:parseInt(t[2],10),majorMustEqual:"x"!==t[2],
minorBase:"x"===t[4]?0:parseInt(t[4],10),minorMustEqual:"x"!==t[4],patchBase:"x"===t[6]?0:parseInt(t[6],10),patchMustEqual:"x"!==t[6],preRelease:t[8]||null}:null}function s(e){if(!e)return null;var t=e.majorBase,n=e.majorMustEqual,r=e.minorBase,i=e.minorMustEqual,o=e.patchBase,s=e.patchMustEqual;return e.hasCaret&&(0===t?s=!1:(i=!1,s=!1)),{majorBase:t,majorMustEqual:n,minorBase:r,minorMustEqual:i,patchBase:o,patchMustEqual:s,isMinimum:e.hasGreaterEquals}}function a(e,t){var n;n="string"==typeof e?s(o(e)):e;var r;if(r="string"==typeof t?s(o(t)):t,!n||!r)return!1;var i=n.majorBase,a=n.minorBase,u=n.patchBase,c=r.majorBase,l=r.minorBase,f=r.patchBase,d=r.majorMustEqual,h=r.minorMustEqual,p=r.patchMustEqual;return r.isMinimum?i>c||!(i<c)&&(a>l||!(a<l)&&u>=f):(1!==i||0!==c||d&&h&&p||(c=1,l=0,f=0,d=!0,h=!1,p=!1),!(i<c)&&(i>c?!d:!(a<l)&&(a>l?!h:!(u<f)&&(!(u>f)||!p))))}function u(e,t,r){void 0===r&&(r=[]);var i=s(o(t));if(!i)return r.push(n.localize(0,null,t)),!1;if(0===i.majorBase){
if(!i.majorMustEqual||!i.minorMustEqual)return r.push(n.localize(1,null,t)),!1}else if(!i.majorMustEqual)return r.push(n.localize(2,null,t)),!1;return!!a(e,i)||(r.push(n.localize(3,null,e,t)),!1)}Object.defineProperty(t,"__esModule",{value:!0});var c=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/;t.isValidVersionStr=i,t.parseVersion=o,t.normalizeVersion=s,t.isValidVersion=a,t.isValidExtensionVersion=function(e,t,n){return!(!t.isBuiltin&&void 0!==t.main)||u(e,t.engines.vscode,n)},t.isEngineValid=function(e){return"*"===e||u(r.default.version,e)},t.isVersionValid=u}),define(e[19],t([0,1,4,27]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.dirname(r.getPathFromAmdModule(e,"")),o=n.join(i,"product.json"),s=e.__$__nodeRequire(o);process.env.VSCODE_DEV&&(s.nameShort+=" Dev",s.nameLong+=" Dev",s.dataFolderName+="-dev"),t.default=s}),define(e[89],t([0,1,4,8,19,2,6,11,15]),function(e,t,i,o,u,c,l,f,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var h=function(){function e(e,t){this._environmentService=e,this._logService=t,this._disposables=[],this._environmentService.isBuilt&&this._manageCachedDataSoon()}return e.prototype.dispose=function(){this._disposables=c.dispose(this._disposables)},e.prototype._manageCachedDataSoon=function(){var e=this,t=setTimeout(function(){return n(e,void 0,void 0,function(){var e,n,s,a,c,f,d,h,p,g,v,m,y,b,_,w,E,C,S,x,P,O,I,k;return r(this,function(r){switch(r.label){case 0:t=void 0,this._logService.info("Starting to clean up unused language packs."),e=u.default.nameLong.indexOf("Insiders")>=0?6048e5:7776e6,r.label=1;case 1:return r.trys.push([1,17,,18]),n=Object.create(null),c=(a=JSON).parse,[4,o.readFile(i.join(this._environmentService.userDataPath,"languagepacks.json"),"utf8")];case 2:for(s=c.apply(a,[r.sent()]),f=0,d=Object.keys(s);f<d.length;f++)h=d[f],x=s[h],n[x.hash+"."+h]=!0;return p=i.join(this._environmentService.userDataPath,"clp"),[4,o.exists(p)];case 3:return(g=r.sent())?(v=0,[4,o.readdir(p)]):[2];case 4:
m=r.sent(),r.label=5;case 5:return v<m.length?(x=m[v],n[x]?(this._logService.info("Skipping directory "+x+". Language pack still in use."),[3,7]):(this._logService.info("Removing unused language pack:",x),[4,o.rimraf(i.join(p,x))])):[3,8];case 6:r.sent(),r.label=7;case 7:return v++,[3,5];case 8:y=Date.now(),b=0,_=Object.keys(n),r.label=9;case 9:return b<_.length?(w=_[b],E=i.join(p,w),C=0,[4,o.readdir(E)]):[3,16];case 10:S=r.sent(),r.label=11;case 11:return C<S.length?"tcf.json"===(x=S[C])?[3,14]:(P=i.join(E,x),[4,o.stat(P)]):[3,15];case 12:return(O=r.sent()).isDirectory()&&(I=y-O.mtime.getTime())>e?(this._logService.info("Removing language pack cache entry: ",i.join(w,x)),[4,o.rimraf(P)]):[3,14];case 13:r.sent(),r.label=14;case 14:return C++,[3,11];case 15:return b++,[3,9];case 16:return[3,18];case 17:return k=r.sent(),l.onUnexpectedError(k),[3,18];case 18:return[2]}})})},4e4);this._disposables.push({dispose:function(){void 0!==t&&clearTimeout(t)}})},e=s([a(0,d.IEnvironmentService),a(1,f.ILogService)],e)}()
;t.LanguagePackCachedDataCleaner=h}),define(e[90],t([0,1,4,6,2,8,15,19]),function(e,t,n,r,i,o,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e){this._environmentService=e,this._disposables=[],this._manageCachedDataSoon()}return e.prototype.dispose=function(){this._disposables=i.dispose(this._disposables)},e.prototype._manageCachedDataSoon=function(){if(this._environmentService.nodeCachedDataDir){var t=n.dirname(this._environmentService.nodeCachedDataDir),i=n.basename(this._environmentService.nodeCachedDataDir),s=setTimeout(function(){s=void 0,o.readdir(t).then(function(r){var s=Date.now(),a=[];return r.forEach(function(r){if(r!==i){var u=n.join(t,r);a.push(o.stat(u).then(function(t){if(t.isDirectory()){if(s-t.mtime.getTime()>e._DataMaxAge)return o.rimraf(u)}}))}}),Promise.all(a)}).then(void 0,r.onUnexpectedError)},3e4);this._disposables.push({dispose:function(){clearTimeout(s)}})}},e._DataMaxAge=c.default.nameLong.indexOf("Insiders")>=0?6048e5:7776e6,
e=s([a(0,u.IEnvironmentService)],e)}();t.NodeCachedDataCleaner=l}),define(e[91],t([0,1,90,89,2,77,76]),function(e,t,n,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSharedProcessContributions=function(e){return i.combinedDisposable([e.createInstance(n.NodeCachedDataCleaner),e.createInstance(r.LanguagePackCachedDataCleaner),e.createInstance(o.StorageDataCleaner),e.createInstance(s.LogsDataCleaner)])}}),define(e[92],t([0,1,93,67,23,4,88,28,19,86,7,27,16]),function(e,t,n,r,i,o,a,u,c,l,f,d,h){"use strict";function p(e,t){return f.isWindows?function(e,t){return"\\\\.\\pipe\\"+n.createHash("md5").update(e).digest("hex")+"-"+u.default.version+"-"+t+"-sock"}(e,t):function(e,t){if(_){var r=n.createHash("md5").update(e).digest("hex").substr(0,8);return o.join(_,"vscode-"+r+"-"+u.default.version+"-"+t+".sock")}return o.join(e,u.default.version+"-"+t+".sock")}(e,t)}function g(e,t){return m(e.debugPluginHost,e.debugBrkPluginHost,5870,t,e.debugId)}function v(e,t){
return m(e.debugSearch,e.debugBrkSearch,5876,t)}function m(e,t,n,r,i){var o=t||e,s=Number(o)||(r?null:n);return{port:s,break:!!s&&Boolean(!!t),debugId:i}}function y(e,t){if(e){var n=o.resolve(e);return o.normalize(e)===n?n:o.resolve(t.env.VSCODE_CWD||t.cwd(),e)}}function b(e,t){return y(e["user-data-dir"],t)||o.resolve(r.getDefaultUserDataPath(t.platform))}Object.defineProperty(t,"__esModule",{value:!0});var _=process.env.XDG_RUNTIME_DIR,w=function(){function t(e,t){if(this._args=e,this._execPath=t,!process.env.VSCODE_LOGS){var n=l.toLocalISOString(new Date).replace(/-|:|\.\d+Z$/g,"");process.env.VSCODE_LOGS=o.join(this.userDataPath,"logs",n)}this.logsPath=process.env.VSCODE_LOGS}return Object.defineProperty(t.prototype,"args",{get:function(){return this._args},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appRoot",{get:function(){return o.dirname(d.getPathFromAmdModule(e,""))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"execPath",{get:function(){
return this._execPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cliPath",{get:function(){return function(e,t,n){return f.isWindows?n?o.join(o.dirname(e),"bin",c.default.applicationName+".cmd"):o.join(t,"scripts","code-cli.bat"):f.isLinux?n?o.join(o.dirname(e),"bin",""+c.default.applicationName):o.join(t,"scripts","code-cli.sh"):n?o.join(t,"bin","code"):o.join(t,"scripts","code-cli.sh")}(this.execPath,this.appRoot,this.isBuilt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userHome",{get:function(){return i.homedir()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userDataPath",{get:function(){var e=process.env.VSCODE_PORTABLE;return e?o.join(e,"user-data"):b(this._args,process)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appNameLong",{get:function(){return c.default.nameLong},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appQuality",{get:function(){return c.default.quality},enumerable:!0,
configurable:!0}),Object.defineProperty(t.prototype,"appSettingsHome",{get:function(){return o.join(this.userDataPath,"User")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appSettingsPath",{get:function(){return o.join(this.appSettingsHome,"settings.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"globalStorageHome",{get:function(){return o.join(this.appSettingsHome,"globalStorage")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"workspaceStorageHome",{get:function(){return o.join(this.appSettingsHome,"workspaceStorage")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settingsSearchBuildId",{get:function(){return c.default.settingsSearchBuildId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settingsSearchUrl",{get:function(){return c.default.settingsSearchUrl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appKeybindingsPath",{get:function(){
return o.join(this.appSettingsHome,"keybindings.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExtensionDevelopment",{get:function(){return!!this._args.extensionDevelopmentPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backupHome",{get:function(){return o.join(this.userDataPath,"Backups")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backupWorkspacesPath",{get:function(){return o.join(this.backupHome,"workspaces.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"workspacesHome",{get:function(){return o.join(this.userDataPath,"Workspaces")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"installSourcePath",{get:function(){return o.join(this.userDataPath,"installSource")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"builtinExtensionsPath",{get:function(){var t=y(this._args["builtin-extensions-dir"],process)
;return t||o.normalize(o.join(d.getPathFromAmdModule(e,""),"..","extensions"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensionsPath",{get:function(){var e=y(this._args["extensions-dir"],process);if(e)return e;var t=process.env.VSCODE_EXTENSIONS;if(t)return t;var n=process.env.VSCODE_PORTABLE;return n?o.join(n,"extensions"):o.join(this.userHome,c.default.dataFolderName,"extensions")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensionDevelopmentLocationURI",{get:function(){var e=this._args.extensionDevelopmentPath;if(e)return/^[^:/?#]+?:\/\//.test(e)?h.URI.parse(e):h.URI.file(o.normalize(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensionTestsPath",{get:function(){return this._args.extensionTestsPath?o.normalize(this._args.extensionTestsPath):this._args.extensionTestsPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableExtensions",{get:function(){if(this._args["disable-extensions"])return!0
;var e=this._args["disable-extension"];if(e){if("string"==typeof e)return[e];if(Array.isArray(e)&&e.length>0)return e}return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipGettingStarted",{get:function(){return!!this._args["skip-getting-started"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipReleaseNotes",{get:function(){return!!this._args["skip-release-notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipAddToRecentlyOpened",{get:function(){return!!this._args["skip-add-to-recently-opened"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debugExtensionHost",{get:function(){return g(this._args,this.isBuilt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debugSearch",{get:function(){return v(this._args,this.isBuilt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBuilt",{get:function(){return!process.env.VSCODE_DEV},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"verbose",{get:function(){return!!this._args.verbose},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"log",{get:function(){return this._args.log},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wait",{get:function(){return!!this._args.wait},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logExtensionHostCommunication",{get:function(){return!!this._args.logExtensionHostCommunication},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return!!this._args.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mainIPCHandle",{get:function(){return p(this.userDataPath,"main")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sharedIPCHandle",{get:function(){return p(this.userDataPath,"shared")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodeCachedDataDir",{get:function(){return process.env.VSCODE_NODE_CACHED_DATA_DIR||void 0
},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableUpdates",{get:function(){return!!this._args["disable-updates"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableCrashReporter",{get:function(){return!!this._args["disable-crash-reporter"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"driverHandle",{get:function(){return this._args.driver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"driverVerbose",{get:function(){return!!this._args["driver-verbose"]},enumerable:!0,configurable:!0}),s([a.memoize],t.prototype,"appRoot",null),s([a.memoize],t.prototype,"cliPath",null),s([a.memoize],t.prototype,"userHome",null),s([a.memoize],t.prototype,"userDataPath",null),s([a.memoize],t.prototype,"appSettingsHome",null),s([a.memoize],t.prototype,"appSettingsPath",null),s([a.memoize],t.prototype,"globalStorageHome",null),s([a.memoize],t.prototype,"workspaceStorageHome",null),s([a.memoize],t.prototype,"settingsSearchBuildId",null),
s([a.memoize],t.prototype,"settingsSearchUrl",null),s([a.memoize],t.prototype,"appKeybindingsPath",null),s([a.memoize],t.prototype,"isExtensionDevelopment",null),s([a.memoize],t.prototype,"backupHome",null),s([a.memoize],t.prototype,"backupWorkspacesPath",null),s([a.memoize],t.prototype,"workspacesHome",null),s([a.memoize],t.prototype,"installSourcePath",null),s([a.memoize],t.prototype,"builtinExtensionsPath",null),s([a.memoize],t.prototype,"extensionsPath",null),s([a.memoize],t.prototype,"extensionDevelopmentLocationURI",null),s([a.memoize],t.prototype,"extensionTestsPath",null),s([a.memoize],t.prototype,"debugExtensionHost",null),s([a.memoize],t.prototype,"debugSearch",null),s([a.memoize],t.prototype,"mainIPCHandle",null),s([a.memoize],t.prototype,"sharedIPCHandle",null),s([a.memoize],t.prototype,"nodeCachedDataDir",null),t}();t.EnvironmentService=w,t.parseExtensionHostPort=g,t.parseSearchPort=v,t.parseDebugPort=m,t.parseUserDataDir=b}),define(e[94],t([0,1,24,18,19]),function(e,t,n,r,i){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.isUIExtension=function(e,t){var o=n.getGalleryExtensionId(e.publisher,e.name),s=t.getValue("_workbench.uiExtensions")||[];if(s.length){if(-1!==s.indexOf(o))return!0;if(-1!==s.indexOf("-"+o))return!1}switch(e.extensionKind){case"ui":return!0;case"workspace":return!1;default:return!((!r.isNonEmptyArray(i.default.uiExtensions)||!i.default.uiExtensions.some(function(e){return n.areSameExtensions({id:e},{id:o})}))&&(e.main||e.contributes&&r.isNonEmptyArray(e.contributes.debuggers)))}}}),define(e[95],t([0,1,8,93,33,2,15,17,24,11,40,19,18,3,32,4]),function(e,t,n,r,o,u,c,l,f,d,h,p,g,v,m,y){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var b=["de","en","en-US","es","fr","it","ja","ko","ru","zh-CN","zh-TW"];"stable"!==p.default.quality&&b.push("hu");var _=function(e){function t(t,n,r){var i=e.call(this)||this;return i.extensionManagementService=t,i.logService=r,i._onDidLanguagesChange=i._register(new v.Emitter),
i.onDidLanguagesChange=i._onDidLanguagesChange.event,i.cache=i._register(new w(n,r)),i._register(t.onDidInstallExtension(function(e){var t=e.local;return i.onDidInstallExtension(t)})),i._register(t.onDidUninstallExtension(function(e){var t=e.identifier;return i.onDidUninstallExtension(t)})),i.extensionManagementService.getInstalled().then(function(e){return i.cache.update(e)}),i}return i(t,e),t.prototype.getLanguageIds=function(e){return 1===e?Promise.resolve(b.slice()):this.cache.getLanguagePacks().then(function(t){var n=2===e?Object.keys(t):b.concat(Object.keys(t));return g.distinct(n)})},t.prototype.onDidInstallExtension=function(e){e&&e.manifest&&e.manifest.contributes&&e.manifest.contributes.localizations&&e.manifest.contributes.localizations.length&&(this.logService.debug("Adding language packs from the extension",e.identifier.id),this.update())},t.prototype.onDidUninstallExtension=function(e){var t=this;this.cache.getLanguagePacks().then(function(n){Object.keys(n).some(function(t){
return n[t]&&n[t].extensions.some(function(t){return f.areSameExtensions(t.extensionIdentifier,e)})})&&(t.logService.debug("Removing language packs from the extension",e.id),t.update())})},t.prototype.update=function(){var e=this;Promise.all([this.cache.getLanguagePacks(),this.extensionManagementService.getInstalled()]).then(function(t){var n=t[0],r=t[1];return e.cache.update(r).then(function(t){g.equals(Object.keys(n),Object.keys(t))||e._onDidLanguagesChange.fire()})})},t=s([a(0,o.IExtensionManagementService),a(1,c.IEnvironmentService),a(2,d.ILogService)],t)}(u.Disposable);t.LocalizationsService=_;var w=function(e){function t(t,n){var r=e.call(this)||this;return r.logService=n,r.languagePacks={},r.languagePacksFilePath=y.posix.join(t.userDataPath,"languagepacks.json"),r.languagePacksFileLimiter=new l.Queue,r}return i(t,e),t.prototype.getLanguagePacks=function(){var e=this;return this.languagePacksFileLimiter.size?this.withLanguagePacks().then(function(){return e.languagePacks
}):Promise.resolve(this.languagePacks)},t.prototype.update=function(e){var t=this;return this.withLanguagePacks(function(n){Object.keys(n).forEach(function(e){return delete n[e]}),t.createLanguagePacksFromExtensions.apply(t,[n].concat(e))}).then(function(){return t.languagePacks})},t.prototype.createLanguagePacksFromExtensions=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var s=o[i];s&&s.manifest&&s.manifest.contributes&&s.manifest.contributes.localizations&&s.manifest.contributes.localizations.length&&this.createLanguagePacksFromExtension(e,s)}Object.keys(e).forEach(function(n){return t.updateHash(e[n])})},t.prototype.createLanguagePacksFromExtension=function(e,t){for(var n=t.identifier,r=0,i=t.manifest.contributes&&t.manifest.contributes.localizations?t.manifest.contributes.localizations:[];r<i.length;r++){var o=i[r];if(t.location.scheme===m.Schemas.file&&h.isValidLocalization(o)){var s=e[o.languageId];s||(s={hash:"",extensions:[],
translations:{}},e[o.languageId]=s);var a=s.extensions.filter(function(e){return f.areSameExtensions(e.extensionIdentifier,n)})[0];a?a.version=t.manifest.version:s.extensions.push({extensionIdentifier:n,version:t.manifest.version});for(var u=0,c=o.translations;u<c.length;u++){var l=c[u];s.translations[l.id]=y.posix.join(t.location.fsPath,l.path)}}}},t.prototype.updateHash=function(e){if(e){for(var t=r.createHash("md5"),n=0,i=e.extensions;n<i.length;n++){var o=i[n];t.update(o.extensionIdentifier.uuid||o.extensionIdentifier.id).update(o.version)}e.hash=t.digest("hex")}},t.prototype.withLanguagePacks=function(e){var t=this;return void 0===e&&(e=function(){return null}),this.languagePacksFileLimiter.queue(function(){var r=null;return n.readFile(t.languagePacksFilePath,"utf8").then(void 0,function(e){return"ENOENT"===e.code?Promise.resolve("{}"):Promise.reject(e)}).then(function(e){try{return JSON.parse(e)}catch(e){return{}}}).then(function(t){return r=e(t),t}).then(function(e){
for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];e[o]||delete e[o]}t.languagePacks=e;var s=JSON.stringify(t.languagePacks);return t.logService.debug("Writing language packs",s),n.writeFile(t.languagePacksFilePath,s)}).then(function(){return r},function(e){return t.logService.error(e)})})},t=s([a(0,c.IEnvironmentService),a(1,d.ILogService)],t)}(u.Disposable)}),define(e[22],t([0,1,10,74]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.data={}}return e.prototype.add=function(e,t){r.ok(n.isString(e)),r.ok(n.isObject(t)),r.ok(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},e.prototype.knows=function(e){return this.data.hasOwnProperty(e)},e.prototype.as=function(e){return this.data[e]||null},e}();t.Registry=new i}),define(e[97],t([0,1,22,3]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={JSONContribution:"base.contributions.json"};var i=new(function(){
function e(){this._onDidChangeSchema=new r.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[function(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}(e)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e.prototype.getSchemaContributions=function(){return{schemas:this.schemasById}},e}());n.Registry.add(t.Extensions.JSONContribution,i)}),define(e[29],t([0,1,53,3,22,10,14,97]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function c(e){return t.OVERRIDE_PROPERTY_PATTERN.test(e)?n.localize(3,null,e):void 0!==g.getConfigurationProperties()[e]?n.localize(4,null,e):null}Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={
Configuration:"base.contributions.configuration"};!function(e){e[e.APPLICATION=1]="APPLICATION",e[e.WINDOW=2]="WINDOW",e[e.RESOURCE=3]="RESOURCE"}(t.ConfigurationScope||(t.ConfigurationScope={})),t.allSettings={properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}},t.editorConfigurationSchemaId="vscode://schemas/settings/editor";var l=i.Registry.as(a.Extensions.JSONContribution),f=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new r.Emitter,this.onDidSchemaChange=this._onDidSchemaChange.event,this._onDidUpdateConfiguration=new r.Emitter,this.onDidUpdateConfiguration=this._onDidUpdateConfiguration.event,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:n.localize(0,null),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},
patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),l.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var r=[];e.forEach(function(e){r.push.apply(r,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e),n.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(r)},e.prototype.deregisterConfigurations=function(e){for(var n=this,r=[],i=function(e){if(e.properties)for(var o in e.properties)switch(r.push(o),delete n.configurationProperties[o],delete n.editorConfigurationSchema.properties[o],delete t.allSettings.properties[o],
e.properties[o].scope){case 1:delete t.applicationSettings.properties[o];break;case 2:delete t.windowSettings.properties[o];break;case 3:delete t.resourceSettings.properties[o]}e.allOf&&e.allOf.forEach(function(e){return i(e)})},o=0,s=e;o<s.length;o++){var a=s[o];i(a);var u=this.configurationContributors.indexOf(a);-1!==u&&this.configurationContributors.splice(u,1)}l.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(r)},e.prototype.registerDefaultConfigurations=function(e){for(var r=[],i=0,o=e;i<o.length;i++){var s=o[i];for(var a in s.defaults){var u=s.defaults[a];if(t.OVERRIDE_PROPERTY_PATTERN.test(a)&&"object"==typeof u){var c={type:"object",default:u,description:n.localize(1,null,a),$ref:t.editorConfigurationSchemaId};t.allSettings.properties[a]=c,this.defaultOverridesConfigurationNode.properties[a]=c,this.configurationProperties[a]=c,r.push(a)}}}this._onDidSchemaChange.fire(),
this._onDidUpdateConfiguration.fire(r)},e.prototype.deregisterDefaultConfigurations=function(e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];for(var s in o.defaults)n.push(s),delete t.allSettings.properties[s],delete this.defaultOverridesConfigurationNode.properties[s],delete this.configurationProperties[s]}this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)},e.prototype.notifyConfigurationSchemaUpdated=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._onDidSchemaChange.fire()},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,n,r,i){void 0===n&&(n=!0),void 0===r&&(r=2),void 0===i&&(i=!1),r=o.isUndefinedOrNull(e.scope)?r:e.scope,i=e.overridable||i;var s=[],a=e.properties;if(a)for(var l in a){var f=void 0;if(n&&(f=c(l)))console.warn(f),delete a[l];else{var d=a[l],h=d.default;o.isUndefined(h)&&(d.default=u(d.type)),
i&&(d.overridable=!0),t.OVERRIDE_PROPERTY_PATTERN.test(l)?d.scope=void 0:d.scope=o.isUndefinedOrNull(d.scope)?r:d.scope,!a[l].hasOwnProperty("included")||a[l].included?(this.configurationProperties[l]=a[l],s.push(l)):(this.excludedConfigurationProperties[l]=a[l],delete a[l])}}var p=e.allOf;if(p)for(var g=0,v=p;g<v.length;g++){var m=v[g];s.push.apply(s,this.validateAndRegisterProperties(m,n,r,i))}return s},e.prototype.getConfigurations=function(){return this.configurationContributors},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.getExcludedConfigurationProperties=function(){return this.excludedConfigurationProperties},e.prototype.registerJSONConfiguration=function(e){function n(e){var r=e.properties;if(r)for(var i in r)switch(t.allSettings.properties[i]=r[i],r[i].scope){case 1:t.applicationSettings.properties[i]=r[i];break;case 2:t.windowSettings.properties[i]=r[i];break;case 3:t.resourceSettings.properties[i]=r[i]}var o=e.allOf;o&&o.forEach(n)}n(e)},
e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==d&&(this.update(e),l.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema))},e.prototype.updateOverridePropertyPatternKey=function(){var e=t.allSettings.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:n.localize(2,null),errorMessage:"Unknown Identifier. Use language identifiers",$ref:t.editorConfigurationSchemaId}),delete t.allSettings.patternProperties[this.overridePropertyPattern],delete t.applicationSettings.patternProperties[this.overridePropertyPattern],delete t.windowSettings.patternProperties[this.overridePropertyPattern],delete t.resourceSettings.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),t.allSettings.patternProperties[this.overridePropertyPattern]=e,t.applicationSettings.patternProperties[this.overridePropertyPattern]=e,t.windowSettings.patternProperties[this.overridePropertyPattern]=e,
t.resourceSettings.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire()},e.prototype.update=function(e){var t=this,n=e.properties;if(n)for(var r in n)n[r].overridable&&(this.editorConfigurationSchema.properties[r]=this.getConfigurationProperties()[r]);var i=e.allOf;i&&i.forEach(function(e){return t.update(e)})},e.prototype.computeOverridePropertyPattern=function(){this.overridePropertyPattern=this.overrideIdentifiers.length?p.replace("${0}",this.overrideIdentifiers.map(function(e){return s.createRegExp(e,!1).source}).join("|")):h},e}(),d="override",h="\\[.*\\]$",p="\\[(${0})\\]$";t.OVERRIDE_PROPERTY_PATTERN=new RegExp(h),t.getDefaultValue=u;var g=new f;i.Registry.add(t.Extensions.Configuration,g),t.validateProperty=c,t.getScopes=function(){for(var e={},t=g.getConfigurationProperties(),n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e[i]=t[i].scope}return e.launch=3,e.task=3,e}}),define(e[20],t([0,1,9,10,16,22,5,29]),function(e,t,n,r,i,o,s,a){"use strict";function u(e,t){
var n=Object.create(null);for(var r in e)c(n,r,e[r],t);return n}function c(e,t,n,r){for(var i=t.split("."),o=i.pop(),s=e,a=0;a<i.length;a++){var u=i[a],c=s[u];switch(typeof c){case"undefined":c=s[u]=Object.create(null);break;case"object":break;default:return void r("Ignoring "+t+" as "+i.slice(0,a+1).join(".")+" is "+JSON.stringify(c))}s=c}"object"==typeof s?s[o]=n:r("Ignoring "+t+" as "+i.join(".")+" is "+JSON.stringify(s))}function l(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var r=e[n];"object"!=typeof r||Array.isArray(r)||(l(r,t),0===Object.keys(r).length&&delete e[n])}}else delete e[n]}function f(e,t,n){var r=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if("object"!=typeof n||null===n)return;n=n[o]}return n}(e,t.split("."));return void 0===r?n:r}function d(e,t,n){Object.keys(t).forEach(function(i){i in e?r.isObject(e[i])&&r.isObject(t[i])?d(e[i],t[i],n):n&&(e[i]=t[i]):e[i]=t[i]})}function h(e){return e.substring(1,e.length-1)}
Object.defineProperty(t,"__esModule",{value:!0}),t.IConfigurationService=s.createDecorator("configurationService"),t.isConfigurationOverrides=function(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof i.URI)};!function(e){e[e.USER=1]="USER",e[e.WORKSPACE=2]="WORKSPACE",e[e.WORKSPACE_FOLDER=3]="WORKSPACE_FOLDER",e[e.DEFAULT=4]="DEFAULT",e[e.MEMORY=5]="MEMORY"}(t.ConfigurationTarget||(t.ConfigurationTarget={})),t.ConfigurationTargetToString=function(e){switch(e){case 1:return"USER";case 2:return"WORKSPACE";case 3:return"WORKSPACE_FOLDER";case 4:return"DEFAULT";case 5:return"MEMORY"}},t.compare=function(e,t){for(var r=t.keys.filter(function(t){return-1===e.keys.indexOf(t)}),i=e.keys.filter(function(e){return-1===t.keys.indexOf(e)}),o=[],s=0,a=e.keys;s<a.length;s++){var u=a[s],c=f(e.contents,u),l=f(t.contents,u);n.equals(c,l)||o.push(u)}return{added:r,removed:i,updated:o}},t.toOverrides=function(e,t){
for(var n=[],r=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties(),i=0,s=Object.keys(e);i<s.length;i++){var c=s[i];if(a.OVERRIDE_PROPERTY_PATTERN.test(c)){var l={};for(var f in e[c])r[f]&&r[f].overridable&&(l[f]=e[c][f]);n.push({identifiers:[h(c).trim()],contents:u(l,t)})}}return n},t.toValuesTree=u,t.addToValueTree=c,t.removeFromValueTree=function(e,t){l(e,t.split("."))},t.getConfigurationValue=f,t.merge=d,t.getConfigurationKeys=function(){var e=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();return Object.keys(e)},t.getDefaultValues=function(){var e=Object.create(null),t=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(var n in t)c(e,n,t[n].default,function(e){return console.error("Conflict in default settings: "+e)});return e},t.overrideIdentifierFromKey=h,t.keyFromOverrideIdentifier=function(e){return"["+e+"]"}}),define(e[48],t([0,1,42,31,18,10,9,29,20]),function(e,t,n,r,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});var l=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),e.prototype.getValue=function(e){return e?c.getConfigurationValue(this.contents,e):this.contents},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!=typeof n||!Object.keys(n).length)return this;for(var r={},i=0,s=o.distinct(Object.keys(this.contents).concat(Object.keys(n)));i<s.length;i++){var u=s[i],c=this.contents[u],l=n[u];l&&("object"==typeof c&&"object"==typeof l?(c=a.deepClone(c),
this.mergeContents(c,l)):c=l),r[u]=c}return new e(r)},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=a.deepClone(this.contents),i=a.deepClone(this.overrides),s=this.keys.slice(),u=0,c=t;u<c.length;u++){var l=c[u];this.mergeContents(r,l.contents);for(var f=function(e){var t=i.filter(function(t){return o.equals(t.identifiers,e.identifiers)})[0];t?d.mergeContents(t.contents,e.contents):i.push(a.deepClone(e))},d=this,h=0,p=l.overrides;h<p.length;h++){f(p[h])}for(var g=0,v=l.keys;g<v.length;g++){var m=v[g];-1===s.indexOf(m)&&s.push(m)}}return new e(r,s,i)},e.prototype.freeze=function(){return this.isFrozen=!0,this},e.prototype.mergeContents=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];i in e&&s.isObject(e[i])&&s.isObject(t[i])?this.mergeContents(e[i],t[i]):e[i]=a.deepClone(t[i])}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?a.deepFreeze(e):e},e.prototype.getContentsForOverrideIdentifer=function(e){
for(var t=0,n=this.overrides;t<n.length;t++){var r=n[t];if(-1!==r.identifiers.indexOf(e))return r.contents}return null},e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},e.prototype.setValue=function(e,t){this.addKey(e),c.addToValueTree(this.contents,e,t,function(e){throw new Error(e)})},e.prototype.removeValue=function(e){this.removeKey(e)&&c.removeFromValueTree(this.contents,e)},e.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)},e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},e}();t.ConfigurationModel=l;var f=function(e){function t(){for(var t=c.getDefaultValues(),n=c.getConfigurationKeys(),r=[],i=0,o=Object.keys(t);i<o.length;i++){var s=o[i];u.OVERRIDE_PROPERTY_PATTERN.test(s)&&r.push({identifiers:[c.overrideIdentifierFromKey(s).trim()],contents:c.toValuesTree(t[s],function(e){
return console.error("Conflict in default settings file: "+e)})})}return e.call(this,t,n,r)||this}return i(t,e),t}(l);t.DefaultConfigurationModel=f;var d=function(){function e(e){this._name=e,this._configurationModel=null,this._parseErrors=[]}return Object.defineProperty(e.prototype,"configurationModel",{get:function(){return this._configurationModel||new l},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this._parseErrors},enumerable:!0,configurable:!0}),e.prototype.parse=function(e){if(e){var t=this.parseContent(e),n=this.parseRaw(t);this._configurationModel=new l(n.contents,n.keys,n.overrides)}},e.prototype.parseContent=function(e){function t(e){Array.isArray(o)?o.push(e):i&&(o[i]=e)}var r={},i=null,o=[],s=[],a=[],u={onObjectBegin:function(){var e={};t(e),s.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=s.pop()},onArrayBegin:function(){var e=[];t(e),s.push(o),o=e,i=null},onArrayEnd:function(){o=s.pop()},onLiteralValue:t,
onError:function(e,t,n){a.push({error:e,offset:t,length:n})}};if(e)try{n.visit(e,u),r=o[0]||{}}catch(e){console.error("Error while parsing settings file "+this._name+": "+e),this._parseErrors=[e]}return r},e.prototype.parseRaw=function(e){var t=this;return{contents:c.toValuesTree(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)}),keys:Object.keys(e),overrides:c.toOverrides(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)})}},e}();t.ConfigurationModelParser=d;var h=function(){function e(e,t,n,i,o,s,a){void 0===n&&(n=new l),void 0===i&&(i=new r.ResourceMap),void 0===o&&(o=new l),void 0===s&&(s=new r.ResourceMap),void 0===a&&(a=!0),this._defaultConfiguration=e,this._userConfiguration=t,this._workspaceConfiguration=n,this._folderConfigurations=i,this._memoryConfiguration=o,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new r.ResourceMap}
return e.prototype.getValue=function(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e)},e.prototype.updateValue=function(e,t,n){void 0===n&&(n={});var r;n.resource?(r=this._memoryConfigurationByResource.get(n.resource))||(r=new l,this._memoryConfigurationByResource.set(n.resource,r)):r=this._memoryConfiguration,void 0===t?r.removeValue(e):r.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},e.prototype.inspect=function(e,t,n){var r=this.getConsolidateConfigurationModel(t,n),i=this.getFolderConfigurationModelForResource(t.resource,n),o=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration;return{default:t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),user:t.overrideIdentifier?this._userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._userConfiguration.freeze().getValue(e),
workspace:n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,workspaceFolder:i?t.overrideIdentifier?i.freeze().override(t.overrideIdentifier).getValue(e):i.freeze().getValue(e):void 0,memory:t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e),value:r.getValue(e)}},e.prototype.keys=function(e){var t=this.getFolderConfigurationModelForResource(void 0,e);return{default:this._defaultConfiguration.freeze().keys,user:this._userConfiguration.freeze().keys,workspace:this._workspaceConfiguration.freeze().keys,workspaceFolder:t?t.freeze().keys:[]}},e.prototype.updateDefaultConfiguration=function(e){this._defaultConfiguration=e,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()},e.prototype.updateUserConfiguration=function(e){this._userConfiguration=e,this._workspaceConsolidatedConfiguration=null,
this._foldersConsolidatedConfigurations.clear()},e.prototype.updateWorkspaceConfiguration=function(e){this._workspaceConfiguration=e,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()},e.prototype.updateFolderConfiguration=function(e,t){this._folderConfigurations.set(e,t),this._foldersConsolidatedConfigurations.delete(e)},e.prototype.deleteFolderConfiguration=function(e){this.folders.delete(e),this._foldersConsolidatedConfigurations.delete(e)},Object.defineProperty(e.prototype,"defaults",{get:function(){return this._defaultConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"user",{get:function(){return this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"workspace",{get:function(){return this._workspaceConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"folders",{get:function(){return this._folderConfigurations},enumerable:!0,configurable:!0}),
e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,r=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var i=t.getFolder(n);i&&(r=this.getFolderConsolidatedConfiguration(i.uri)||r);var o=this._memoryConfigurationByResource.get(n);o&&(r=r.merge(o))}return r},e.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){
var n=this.getWorkspaceConsolidatedConfiguration(),r=this._folderConfigurations.get(e);r?(t=n.merge(r),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},e.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)||null}return null},e.prototype.toData=function(){var e=this;return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this._userConfiguration.contents,overrides:this._userConfiguration.overrides,keys:this._userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:this._folderConfigurations.keys().reduce(function(t,n){var r=e._folderConfigurations.get(n),i=r.contents,o=r.overrides,s=r.keys;return t[n.toString()]={contents:i,overrides:o,keys:s},t
},Object.create({})),isComplete:!0}},e.prototype.allKeys=function(e){var t=this.keys(e),n=t.default.slice(),r=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];-1===n.indexOf(i)&&n.push(i)}};r(t.user),r(t.workspace);for(var i=0,o=this.folders.keys();i<o.length;i++){var s=o[i];r(this.folders.get(s).keys)}return n},e}();t.Configuration=h;var p=function(){function e(){}return e.prototype.doesConfigurationContains=function(e,t){for(var n,r,i=e.contents,o=c.toValuesTree((n={},n[t]=!0,n),function(){});"object"==typeof o&&(r=Object.keys(o)[0]);){if(!(i=i[r]))return!1;o=o[r]}return!0},e.prototype.updateKeys=function(e,t,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];e.setValue(o,{})}},e}();t.AbstractConfigurationChangeEvent=p;var g=function(e){function t(t,n){void 0===t&&(t=new l),void 0===n&&(n=new r.ResourceMap);var i=e.call(this)||this;return i._changedConfiguration=t,i._changedConfigurationByResource=n,i}return i(t,e),Object.defineProperty(t.prototype,"changedConfiguration",{get:function(){
return this._changedConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changedConfigurationByResource",{get:function(){return this._changedConfigurationByResource},enumerable:!0,configurable:!0}),t.prototype.change=function(e,n){if(e instanceof t){this._changedConfiguration=this._changedConfiguration.merge(e._changedConfiguration);for(var r=0,i=e._changedConfigurationByResource.keys();r<i.length;r++){var o=i[r],s=this.getOrSetChangedConfigurationForResource(o);s=s.merge(e._changedConfigurationByResource.get(o)),this._changedConfigurationByResource.set(o,s)}}else this.changeWithKeys(e,n);return this},t.prototype.telemetryData=function(e,t){return this._source=e,this._sourceConfig=t,this},Object.defineProperty(t.prototype,"affectedKeys",{get:function(){var e=this._changedConfiguration.keys.slice();return this._changedConfigurationByResource.forEach(function(t){return e.push.apply(e,t.keys)}),o.distinct(e)},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"source",{get:function(){return this._source},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sourceConfig",{get:function(){return this._sourceConfig},enumerable:!0,configurable:!0}),t.prototype.affectsConfiguration=function(e,t){var n=[this._changedConfiguration];if(t){var r=this._changedConfigurationByResource.get(t);r&&n.push(r)}else n.push.apply(n,this._changedConfigurationByResource.values());for(var i=0,o=n;i<o.length;i++){var s=o[i];if(this.doesConfigurationContains(s,e))return!0}return!1},t.prototype.changeWithKeys=function(e,t){var n=t?this.getOrSetChangedConfigurationForResource(t):this._changedConfiguration;this.updateKeys(n,e)},t.prototype.getOrSetChangedConfigurationForResource=function(e){var t=this._changedConfigurationByResource.get(e);return t||(t=new l,this._changedConfigurationByResource.set(e,t)),t},t}(p);t.ConfigurationChangeEvent=g}),define(e[101],t([0,1,2,6,48,87,3]),function(e,t,n,r,o,s,a){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){function t(t){var n=e.call(this)||this;return n.settingsPath=t,n._onDidChangeConfiguration=n._register(new a.Emitter),n.onDidChangeConfiguration=n._onDidChangeConfiguration.event,n}return i(t,e),t.prototype.initialize=function(){var e=this;return this.initializePromise||(this.initializePromise=new Promise(function(t,n){e.userConfigModelWatcher=new s.ConfigWatcher(e.settingsPath,{changeBufferDelay:300,onError:function(e){return r.onUnexpectedError(e)},defaultConfig:new o.ConfigurationModelParser(e.settingsPath),parse:function(t,n){var r=new o.ConfigurationModelParser(e.settingsPath);return r.parse(t),r.errors.slice(),r},initCallback:function(){return t(void 0)}}),e._register(e.userConfigModelWatcher),e._register(e.userConfigModelWatcher.onDidUpdateConfiguration(function(){return e._onDidChangeConfiguration.fire(e.userConfigModelWatcher.getConfig().configurationModel)}))})),this.initializePromise.then(function(){
return e.userConfigModelWatcher.getConfig().configurationModel})},t.prototype.initializeSync=function(){return this.initialize(),this.userConfigModelWatcher.getConfig().configurationModel},t.prototype.reload=function(){var e=this;return this.initialize().then(function(){return new Promise(function(t){return e.userConfigModelWatcher.reload(function(e){return t(e.configurationModel)})})})},t}(n.Disposable);t.UserConfiguration=u}),define(e[102],t([0,1,22,29,2,20,48,3,15,101]),function(e,t,n,r,o,u,c,l,f,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){function t(t){var i=e.call(this)||this;i._onDidChangeConfiguration=i._register(new l.Emitter),i.onDidChangeConfiguration=i._onDidChangeConfiguration.event,i.userConfiguration=i._register(new d.UserConfiguration(t.appSettingsPath));var o=new c.DefaultConfigurationModel,s=i.userConfiguration.initializeSync();return i._configuration=new c.Configuration(o,s),i._register(i.userConfiguration.onDidChangeConfiguration(function(e){
return i.onDidChangeUserConfiguration(e)})),i._register(n.Registry.as(r.Extensions.Configuration).onDidUpdateConfiguration(function(e){return i.onDidDefaultConfigurationChange(e)})),i}return i(t,e),Object.defineProperty(t.prototype,"configuration",{get:function(){return this._configuration},enumerable:!0,configurable:!0}),t.prototype.getConfigurationData=function(){return this.configuration.toData()},t.prototype.getValue=function(e,t){var n="string"==typeof e?e:void 0,r=u.isConfigurationOverrides(e)?e:u.isConfigurationOverrides(t)?t:{};return this.configuration.getValue(n,r,null)},t.prototype.updateValue=function(e,t,n,r){return Promise.reject(new Error("not supported"))},t.prototype.inspect=function(e){return this.configuration.inspect(e,{},null)},t.prototype.keys=function(){return this.configuration.keys(null)},t.prototype.reloadConfiguration=function(e){var t=this;return e?Promise.resolve(void 0):this.userConfiguration.reload().then(function(e){return t.onDidChangeUserConfiguration(e)})},
t.prototype.onDidChangeUserConfiguration=function(e){var t=u.compare(this._configuration.user,e),n=t.added,r=t.updated,i=t.removed,o=n.concat(r,i);o.length&&(this._configuration.updateUserConfiguration(e),this.trigger(o,1))},t.prototype.onDidDefaultConfigurationChange=function(e){this._configuration.updateDefaultConfiguration(new c.DefaultConfigurationModel),this.trigger(e,4)},t.prototype.trigger=function(e,t){this._onDidChangeConfiguration.fire((new c.ConfigurationChangeEvent).change(e).telemetryData(t,this.getTargetConfiguration(t)))},t.prototype.getTargetConfiguration=function(e){switch(e){case 4:return this._configuration.defaults.contents;case 1:return this._configuration.user.contents}return{}},t=s([a(0,f.IEnvironmentService)],t)}(o.Disposable);t.ConfigurationService=h}),define(e[36],t([0,1,60,5,29,22]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IRequestService=r.createDecorator("requestService2"),
o.Registry.as(i.Extensions.Configuration).registerConfiguration({id:"http",order:15,title:n.localize(0,null),type:"object",properties:{"http.proxy":{type:"string",pattern:"^https?://([^:]*(:[^@]*)?@)?([^:]+)(:\\d+)?/?$|^$",description:n.localize(1,null)},"http.proxyStrictSSL":{type:"boolean",default:!0,description:n.localize(2,null)},"http.proxyAuthorization":{type:["null","string"],default:null,description:n.localize(3,null)},"http.proxySupport":{type:"string",enum:["off","on","override"],enumDescriptions:[n.localize(4,null),n.localize(5,null),n.localize(6,null)],default:"override",description:n.localize(7,null)}}})}),define(e[37],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITelemetryService=n.createDecorator("telemetryService")}),define(e[105],t([0,1,61,14,5,20,29,2,9,22]),function(e,t,n,r,i,o,u,c,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t){var n=this;this._configurationService=t,this._disposables=[],
this._cleanupPatterns=[],this._appender=e.appender,this._commonProperties=e.commonProperties||Promise.resolve({}),this._piiPaths=e.piiPaths||[],this._userOptIn=!0,this._cleanupPatterns=[/file:\/\/\/.*?\/resources\/app\//gi];for(var i=0,o=this._piiPaths;i<o.length;i++){var s=o[i];this._cleanupPatterns.push(new RegExp(r.escapeRegExpCharacters(s),"gi"))}this._configurationService&&(this._updateUserOptIn(),this._configurationService.onDidChangeConfiguration(this._updateUserOptIn,this,this._disposables),this.publicLog("optInStatus",{optIn:this._userOptIn}),this._commonProperties.then(function(e){var t=/^[a-f0-9]+$/i.test(e["common.machineId"]);n.publicLog("machineIdFallback",{usingFallbackGuid:!t})}))}return e.prototype._updateUserOptIn=function(){var e=this._configurationService.getValue(h);this._userOptIn=e?e.enableTelemetry:this._userOptIn},Object.defineProperty(e.prototype,"isOptedIn",{get:function(){return this._userOptIn},enumerable:!0,configurable:!0}),e.prototype.getTelemetryInfo=function(){
return this._commonProperties.then(function(e){return{sessionId:e.sessionID,instanceId:e["common.instanceId"],machineId:e["common.machineId"]}})},e.prototype.dispose=function(){this._disposables=c.dispose(this._disposables)},e.prototype.publicLog=function(e,t,n){var r=this;return this._userOptIn?this._commonProperties.then(function(i){t=l.mixin(t,i),t=l.cloneAndChange(t,function(e){if("string"==typeof e)return r._cleanupInfo(e,n)}),r._appender.log(e,t)},function(e){console.error(e)}):Promise.resolve(void 0)},e.prototype._cleanupInfo=function(e,t){var n=e;if(t){for(var r=[],i=0,o=this._cleanupPatterns;i<o.length;i++)for(h=o[i];;){var s=h.exec(e);if(!s)break;r.push([s.index,h.lastIndex])}var a=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,u=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g,c=0;n="";for(var l=function(){var t=u.exec(e);if(!t)return"break";!a.test(t[0])&&r.every(function(e){var n=e[0],r=e[1];return t.index<n||t.index>=r
})&&(n+=e.substring(c,t.index)+"<REDACTED: user-file-path>",c=u.lastIndex)};;){if("break"===l())break}c<e.length&&(n+=e.substr(c))}for(var f=0,d=this._cleanupPatterns;f<d.length;f++){var h=d[f];n=n.replace(h,"")}return n},e.IDLE_START_EVENT_NAME="UserIdleStart",e.IDLE_STOP_EVENT_NAME="UserIdleStop",e=s([a(1,i.optional(o.IConfigurationService))],e)}();t.TelemetryService=d;var h="telemetry";f.Registry.as(u.Extensions.Configuration).registerConfiguration({id:h,order:110,type:"object",title:n.localize(0,null),properties:{"telemetry.enableTelemetry":{type:"boolean",description:n.localize(1,null),default:!0,tags:["usesOnlineServices"]}}})}),define(e[106],t([0,1,98,30,20,11]),function(e,t,n,r,i,o){"use strict";function u(e,t){return t.onDidChangeConfiguration(function(t){4!==t.source&&(e.publicLog("updateConfiguration",{configurationSource:i.ConfigurationTargetToString(t.source),configurationKeys:function(e){if(!e)return[];var t=[];return c(t,"",e),t}(t.sourceConfig)}),e.publicLog("updateConfigurationValues",{
configurationSource:i.ConfigurationTargetToString(t.source),configurationValues:function(e,t){if(!e)return[];return t.reduce(function(t,n){var r,i=n.split(".").reduce(function(e,t){return e&&"object"==typeof e?e[t]:void 0},e);return void 0!==i&&t.push((r={},r[n]=i,r)),t},[])}(t.sourceConfig,f)}))})}function c(e,t,n){n&&"object"==typeof n&&!Array.isArray(n)?Object.keys(n).forEach(function(r){return c(e,t?t+"."+r:r,n[r])}):e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NullTelemetryService=new(function(){function e(){}return e.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},e.prototype.getTelemetryInfo=function(){return Promise.resolve({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})},e}()),t.combinedAppender=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{log:function(t,n){return e.forEach(function(e){return e.log(t,n)})},dispose:function(){return Promise.all(e.map(function(e){return e.dispose()}))}}
},t.NullAppender={log:function(){return null},dispose:function(){return Promise.resolve(null)}};var l=function(){function e(e){this._logService=e,this.commonPropertiesRegex=/^sessionID$|^version$|^timestamp$|^commitHash$|^common\./}return e.prototype.dispose=function(){return Promise.resolve(void 0)},e.prototype.log=function(e,t){var n=this,r={};Object.keys(t).forEach(function(e){n.commonPropertiesRegex.test(e)||(r[e]=t[e])}),this._logService.trace("telemetry/"+e,r)},e=s([a(0,o.ILogService)],e)}();t.LogAppender=l,t.telemetryURIDescriptor=function(e,t){var i=e&&e.fsPath;return i?{mimeType:n.guessMimeTypes(i).join(", "),scheme:e.scheme,ext:r.extname(i),path:t(i)}:{}}
;var f=["editor.fontFamily","editor.fontWeight","editor.fontSize","editor.lineHeight","editor.letterSpacing","editor.lineNumbers","editor.rulers","editor.wordSeparators","editor.tabSize","editor.insertSpaces","editor.detectIndentation","editor.roundedSelection","editor.scrollBeyondLastLine","editor.minimap.enabled","editor.minimap.side","editor.minimap.renderCharacters","editor.minimap.maxColumn","editor.find.seedSearchStringFromSelection","editor.find.autoFindInSelection","editor.wordWrap","editor.wordWrapColumn","editor.wrappingIndent","editor.mouseWheelScrollSensitivity","editor.multiCursorModifier","editor.quickSuggestions","editor.quickSuggestionsDelay","editor.parameterHints.enabled","editor.parameterHints.cycle","editor.autoClosingBrackets","editor.autoClosingQuotes","editor.autoSurround","editor.autoIndent","editor.formatOnType","editor.formatOnPaste","editor.suggestOnTriggerCharacters","editor.acceptSuggestionOnEnter","editor.acceptSuggestionOnCommitCharacter","editor.snippetSuggestions","editor.emptySelectionClipboard","editor.wordBasedSuggestions","editor.suggestSelection","editor.suggestFontSize","editor.suggestLineHeight","editor.tabCompletion","editor.selectionHighlight","editor.occurrencesHighlight","editor.overviewRulerLanes","editor.overviewRulerBorder","editor.cursorBlinking","editor.cursorSmoothCaretAnimation","editor.cursorStyle","editor.mouseWheelZoom","editor.fontLigatures","editor.hideCursorInOverviewRuler","editor.renderWhitespace","editor.renderControlCharacters","editor.renderIndentGuides","editor.renderLineHighlight","editor.codeLens","editor.folding","editor.showFoldingControls","editor.matchBrackets","editor.glyphMargin","editor.useTabStops","editor.trimAutoWhitespace","editor.stablePeek","editor.dragAndDrop","editor.formatOnSave","editor.colorDecorators","breadcrumbs.enabled","breadcrumbs.filePath","breadcrumbs.symbolPath","breadcrumbs.symbolSortOrder","breadcrumbs.useQuickPick","explorer.openEditors.visible","extensions.autoUpdate","files.associations","files.autoGuessEncoding","files.autoSave","files.autoSaveDelay","files.encoding","files.eol","files.hotExit","files.trimTrailingWhitespace","git.confirmSync","git.enabled","http.proxyStrictSSL","javascript.validate.enable","php.builtInCompletions.enable","php.validate.enable","php.validate.run","terminal.integrated.fontFamily","window.openFilesInNewWindow","window.restoreWindows","window.zoomLevel","workbench.editor.enablePreview","workbench.editor.enablePreviewFromQuickOpen","workbench.editor.showTabs","workbench.editor.highlightModifiedTabs","workbench.editor.swipeToNavigate","workbench.sideBar.location","workbench.startupEditor","workbench.statusBar.visible","workbench.welcome.enabled"]
;t.configurationTelemetry=u,t.keybindingsTelemetry=function(e,t){return t.onDidUpdateKeybindings(function(t){2===t.source&&t.keybindings&&e.publicLog("updateKeybindings",{bindings:t.keybindings.map(function(e){return{key:e.key,command:e.command,when:e.when,args:!!e.args||void 0}})})})}}),define(e[107],t([0,1,122,10,9,11]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,r,i){this._eventPrefix=e,this._defaultData=t,this._logService=i,this._defaultData||(this._defaultData=Object.create(null)),"string"==typeof r?this._aiClient=function(e){var t;return n.defaultClient?(t=new n.TelemetryClient(e)).channel.setUseDiskRetryCaching(!0):(n.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setInternalLogging(!1,!1).setUseDiskRetryCaching(!0).start(),t=n.defaultClient),
0===e.indexOf("AIF-")&&(t.config.endpointUrl="https://vortex.data.microsoft.com/collect/v1"),t}(r):"function"==typeof r&&(this._aiClient=r())}return e._getData=function(t){var n=Object.create(null),r=Object.create(null),i=Object.create(null);e._flaten(t,i);for(var o in i){var s=i[o=o.length>150?o.substr(o.length-149):o];"number"==typeof s?r[o]=s:"boolean"==typeof s?r[o]=s?1:0:"string"==typeof s?n[o]=s.substring(0,1023):void 0!==s&&null!==s&&(n[o]=s)}return{properties:n,measurements:r}},e._flaten=function(t,n,o,s){if(void 0===o&&(o=0),t)for(var a=0,u=Object.getOwnPropertyNames(t);a<u.length;a++){var c=u[a],l=t[c],f=s?s+c:c;Array.isArray(l)?n[f]=i.safeStringify(l):l instanceof Date?n[f]=l.toISOString():r.isObject(l)?o<2?e._flaten(l,n,o+1,f+"."):n[f]=i.safeStringify(l):n[f]=l}},e.prototype.log=function(t,n){this._aiClient&&(n=i.mixin(n,this._defaultData),n=e._getData(n),this._logService&&this._logService.trace("telemetry/"+t,n),this._aiClient.trackEvent({name:this._eventPrefix+"/"+t,properties:n.properties,
measurements:n.measurements}))},e.prototype.dispose=function(){var e=this;if(this._aiClient)return new Promise(function(t){e._aiClient.flush({callback:function(){e._aiClient=void 0,t(void 0)}})})},e=s([a(3,o.ILogService)],e)}();t.AppInsightsAppender=u}),define(e[109],t([0,1,7,23,25,8]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCommonProperties=function(e,t,s,a){var u=Object.create(null);u["common.machineId"]=s,u.sessionID=i.generateUuid()+Date.now(),u.commitHash=e,u.version=t,u["common.platformVersion"]=(r.release()||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),u["common.platform"]=n.PlatformToString(n.platform),u["common.nodePlatform"]=process.platform,u["common.nodeArch"]=process.arch;var c=0,l=Date.now();return Object.defineProperties(u,{timestamp:{get:function(){return new Date},enumerable:!0},"common.timesincesessionstart":{get:function(){return Date.now()-l},enumerable:!0},"common.sequence":{get:function(){return c++},enumerable:!0}}),
o.readFile(a,"utf8").then(function(e){return u["common.source"]=e.slice(0,30),u},function(e){return u})}}),define(e[110],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.appender=e}return e.prototype.listen=function(e,t){throw new Error("Event not found: "+t)},e.prototype.call=function(e,t,n){var r=n.eventName,i=n.data;return this.appender.log(r,i),Promise.resolve(null)},e}();t.TelemetryAppenderChannel=n;var r=function(){function e(e){this.channel=e}return e.prototype.log=function(e,t){return this.channel.call("log",{eventName:e,data:t}).then(void 0,function(e){return"Failed to log telemetry: "+console.warn(e)}),Promise.resolve(null)},e.prototype.dispose=function(){},e}();t.TelemetryAppenderClient=r}),define(e[111],t([0,1,5,3,7,2]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWindowsService=n.createDecorator("windowsService"),t.IWindowService=n.createDecorator("windowService"),
t.getTitleBarStyle=function(e,t,n){void 0===n&&(n=t.isExtensionDevelopment);var r=e.getValue("window"),o=!t.isBuilt||n;if(i.isMacintosh&&o)return"native";if(r){if(i.isMacintosh&&!0===r.nativeTabs)return"native";if(i.isMacintosh&&!1===r.nativeFullScreen)return"native";if("native"===r.titleBarStyle)return"native"}return"custom"};!function(e){e[e.CLI=0]="CLI",e[e.DOCK=1]="DOCK",e[e.MENU=2]="MENU",e[e.DIALOG=3]="DIALOG",e[e.DESKTOP=4]="DESKTOP",e[e.API=5]="API"}(t.OpenContext||(t.OpenContext={}));!function(e){e[e.NONE=0]="NONE",e[e.LOADING=1]="LOADING",e[e.NAVIGATING=2]="NAVIGATING",e[e.READY=3]="READY"}(t.ReadyState||(t.ReadyState={}));var u=function(){function e(e){var t=this;this.disposables=[];r.Event.latch(r.Event.any(e.onWindowOpen,e.onWindowFocus))(this.setActiveWindow,this,this.disposables),this.firstActiveWindowIdPromise=e.getActiveWindowId().then(function(e){return void 0===t._activeWindowId&&t.setActiveWindow(e)})}return e.prototype.setActiveWindow=function(e){
this.firstActiveWindowIdPromise&&(this.firstActiveWindowIdPromise=null),this._activeWindowId=e},e.prototype.getActiveClientId=function(){return this.firstActiveWindowIdPromise?this.firstActiveWindowIdPromise:Promise.resolve("window:"+this._activeWindowId)},e.prototype.dispose=function(){this.disposables=o.dispose(this.disposables)},e=s([a(0,t.IWindowsService)],e)}();t.ActiveWindowManager=u}),define(e[112],t([0,1,5,62,16]),function(e,t,n,r,i){"use strict";function o(e){return e&&"object"==typeof e&&"string"==typeof e.path&&(!e.name||"string"==typeof e.name)}function s(e){return e&&"object"==typeof e&&"string"==typeof e.uri&&(!e.name||"string"==typeof e.name)}function a(e){return e instanceof i.URI}Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspacesMainService=n.createDecorator("workspacesMainService"),t.IWorkspacesService=n.createDecorator("workspacesService"),t.WORKSPACE_EXTENSION="code-workspace",t.WORKSPACE_FILTER=[{name:r.localize(0,null),extensions:[t.WORKSPACE_EXTENSION]}],
t.UNTITLED_WORKSPACE_NAME="workspace.json",t.isStoredWorkspaceFolder=function(e){return o(e)||s(e)},t.isRawFileWorkspaceFolder=o,t.isRawUriWorkspaceFolder=s,t.isSingleFolderWorkspaceIdentifier=a,t.isWorkspaceIdentifier=function(e){var t=e;return t&&"string"==typeof t.id&&"string"==typeof t.configPath},t.toWorkspaceIdentifier=function(e){return e.configuration?{configPath:e.configuration.fsPath,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0},t.isSingleFolderWorkspaceInitializationPayload=function(e){return a(e.folder)}}),define(e[113],t([0,1,3,112,16]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.service=e,this.onWindowOpen=n.Event.buffer(e.onWindowOpen,!0),this.onWindowFocus=n.Event.buffer(e.onWindowFocus,!0),this.onWindowBlur=n.Event.buffer(e.onWindowBlur,!0),this.onWindowMaximize=n.Event.buffer(e.onWindowMaximize,!0),this.onWindowUnmaximize=n.Event.buffer(e.onWindowUnmaximize,!0),
this.onRecentlyOpenedChange=n.Event.buffer(e.onRecentlyOpenedChange,!0)}return e.prototype.listen=function(e,t){switch(t){case"onWindowOpen":return this.onWindowOpen;case"onWindowFocus":return this.onWindowFocus;case"onWindowBlur":return this.onWindowBlur;case"onWindowMaximize":return this.onWindowMaximize;case"onWindowUnmaximize":return this.onWindowUnmaximize;case"onRecentlyOpenedChange":return this.onRecentlyOpenedChange}throw new Error("Event not found: "+t)},e.prototype.call=function(e,t,n){switch(t){case"pickFileFolderAndOpen":return this.service.pickFileFolderAndOpen(n);case"pickFileAndOpen":return this.service.pickFileAndOpen(n);case"pickFolderAndOpen":return this.service.pickFolderAndOpen(n);case"pickWorkspaceAndOpen":return this.service.pickWorkspaceAndOpen(n);case"showMessageBox":return this.service.showMessageBox(n[0],n[1]);case"showSaveDialog":return this.service.showSaveDialog(n[0],n[1]);case"showOpenDialog":return this.service.showOpenDialog(n[0],n[1]);case"reloadWindow":
return this.service.reloadWindow(n[0],n[1]);case"openDevTools":return this.service.openDevTools(n[0],n[1]);case"toggleDevTools":return this.service.toggleDevTools(n);case"closeWorkspace":return this.service.closeWorkspace(n);case"enterWorkspace":return this.service.enterWorkspace(n[0],i.URI.revive(n[1]));case"toggleFullScreen":return this.service.toggleFullScreen(n);case"setRepresentedFilename":return this.service.setRepresentedFilename(n[0],n[1]);case"addRecentlyOpened":return this.service.addRecentlyOpened(n.map(i.URI.revive));case"removeFromRecentlyOpened":var o=n;return Array.isArray(o)&&(o=o.map(function(e){return r.isWorkspaceIdentifier(e)||"string"==typeof e?e:i.URI.revive(e)})),this.service.removeFromRecentlyOpened(o);case"clearRecentlyOpened":return this.service.clearRecentlyOpened();case"newWindowTab":return this.service.newWindowTab();case"showPreviousWindowTab":return this.service.showPreviousWindowTab();case"showNextWindowTab":return this.service.showNextWindowTab()
;case"moveWindowTabToNewWindow":return this.service.moveWindowTabToNewWindow();case"mergeAllWindowTabs":return this.service.mergeAllWindowTabs();case"toggleWindowTabsBar":return this.service.toggleWindowTabsBar();case"updateTouchBar":return this.service.updateTouchBar(n[0],n[1]);case"getRecentlyOpened":return this.service.getRecentlyOpened(n);case"focusWindow":return this.service.focusWindow(n);case"closeWindow":return this.service.closeWindow(n);case"isFocused":return this.service.isFocused(n);case"isMaximized":return this.service.isMaximized(n);case"maximizeWindow":return this.service.maximizeWindow(n);case"unmaximizeWindow":return this.service.unmaximizeWindow(n);case"minimizeWindow":return this.service.minimizeWindow(n);case"onWindowTitleDoubleClick":return this.service.onWindowTitleDoubleClick(n);case"setDocumentEdited":return this.service.setDocumentEdited(n[0],n[1]);case"openWindow":return this.service.openWindow(n[0],n[1]?n[1].map(function(e){return i.URI.revive(e)}):n[1],n[2]);case"openNewWindow":
return this.service.openNewWindow(n);case"showWindow":return this.service.showWindow(n);case"getWindows":return this.service.getWindows();case"getWindowCount":return this.service.getWindowCount();case"relaunch":return this.service.relaunch(n[0]);case"whenSharedProcessReady":return this.service.whenSharedProcessReady();case"toggleSharedProcess":return this.service.toggleSharedProcess();case"quit":return this.service.quit();case"log":return this.service.log(n[0],n[1]);case"showItemInFolder":return this.service.showItemInFolder(n);case"getActiveWindowId":return this.service.getActiveWindowId();case"openExternal":return this.service.openExternal(n);case"startCrashReporter":return this.service.startCrashReporter(n);case"openAboutDialog":return this.service.openAboutDialog();case"resolveProxy":return this.service.resolveProxy(n[0],n[1])}throw new Error("Call not found: "+t)},e}();t.WindowsChannel=o;var s=function(){function e(e){this.channel=e}return Object.defineProperty(e.prototype,"onWindowOpen",{get:function(){
return this.channel.listen("onWindowOpen")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowFocus",{get:function(){return this.channel.listen("onWindowFocus")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowBlur",{get:function(){return this.channel.listen("onWindowBlur")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowMaximize",{get:function(){return this.channel.listen("onWindowMaximize")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowUnmaximize",{get:function(){return this.channel.listen("onWindowUnmaximize")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onRecentlyOpenedChange",{get:function(){return this.channel.listen("onRecentlyOpenedChange")},enumerable:!0,configurable:!0}),e.prototype.pickFileFolderAndOpen=function(e){return this.channel.call("pickFileFolderAndOpen",e)},e.prototype.pickFileAndOpen=function(e){return this.channel.call("pickFileAndOpen",e)},
e.prototype.pickFolderAndOpen=function(e){return this.channel.call("pickFolderAndOpen",e)},e.prototype.pickWorkspaceAndOpen=function(e){return this.channel.call("pickWorkspaceAndOpen",e)},e.prototype.showMessageBox=function(e,t){return this.channel.call("showMessageBox",[e,t])},e.prototype.showSaveDialog=function(e,t){return this.channel.call("showSaveDialog",[e,t])},e.prototype.showOpenDialog=function(e,t){return this.channel.call("showOpenDialog",[e,t])},e.prototype.reloadWindow=function(e,t){return this.channel.call("reloadWindow",[e,t])},e.prototype.openDevTools=function(e,t){return this.channel.call("openDevTools",[e,t])},e.prototype.toggleDevTools=function(e){return this.channel.call("toggleDevTools",e)},e.prototype.closeWorkspace=function(e){return this.channel.call("closeWorkspace",e)},e.prototype.enterWorkspace=function(e,t){return this.channel.call("enterWorkspace",[e,t])},e.prototype.toggleFullScreen=function(e){return this.channel.call("toggleFullScreen",e)},
e.prototype.setRepresentedFilename=function(e,t){return this.channel.call("setRepresentedFilename",[e,t])},e.prototype.addRecentlyOpened=function(e){return this.channel.call("addRecentlyOpened",e)},e.prototype.removeFromRecentlyOpened=function(e){return this.channel.call("removeFromRecentlyOpened",e)},e.prototype.clearRecentlyOpened=function(){return this.channel.call("clearRecentlyOpened")},e.prototype.getRecentlyOpened=function(e){return this.channel.call("getRecentlyOpened",e).then(function(e){return e.workspaces=e.workspaces.map(function(e){return r.isWorkspaceIdentifier(e)?e:i.URI.revive(e)}),e.files=e.files.map(i.URI.revive),e})},e.prototype.newWindowTab=function(){return this.channel.call("newWindowTab")},e.prototype.showPreviousWindowTab=function(){return this.channel.call("showPreviousWindowTab")},e.prototype.showNextWindowTab=function(){return this.channel.call("showNextWindowTab")},e.prototype.moveWindowTabToNewWindow=function(){return this.channel.call("moveWindowTabToNewWindow")},
e.prototype.mergeAllWindowTabs=function(){return this.channel.call("mergeAllWindowTabs")},e.prototype.toggleWindowTabsBar=function(){return this.channel.call("toggleWindowTabsBar")},e.prototype.focusWindow=function(e){return this.channel.call("focusWindow",e)},e.prototype.closeWindow=function(e){return this.channel.call("closeWindow",e)},e.prototype.isFocused=function(e){return this.channel.call("isFocused",e)},e.prototype.isMaximized=function(e){return this.channel.call("isMaximized",e)},e.prototype.maximizeWindow=function(e){return this.channel.call("maximizeWindow",e)},e.prototype.unmaximizeWindow=function(e){return this.channel.call("unmaximizeWindow",e)},e.prototype.minimizeWindow=function(e){return this.channel.call("minimizeWindow",e)},e.prototype.onWindowTitleDoubleClick=function(e){return this.channel.call("onWindowTitleDoubleClick",e)},e.prototype.setDocumentEdited=function(e,t){return this.channel.call("setDocumentEdited",[e,t])},e.prototype.quit=function(){return this.channel.call("quit")},
e.prototype.relaunch=function(e){return this.channel.call("relaunch",[e])},e.prototype.whenSharedProcessReady=function(){return this.channel.call("whenSharedProcessReady")},e.prototype.toggleSharedProcess=function(){return this.channel.call("toggleSharedProcess")},e.prototype.openWindow=function(e,t,n){return this.channel.call("openWindow",[e,t,n])},e.prototype.openNewWindow=function(e){return this.channel.call("openNewWindow",e)},e.prototype.showWindow=function(e){return this.channel.call("showWindow",e)},e.prototype.getWindows=function(){return this.channel.call("getWindows").then(function(e){return e.forEach(function(e){return e.folderUri=e.folderUri?i.URI.revive(e.folderUri):e.folderUri}),e})},e.prototype.getWindowCount=function(){return this.channel.call("getWindowCount")},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.channel.call("log",[e,t])},e.prototype.showItemInFolder=function(e){return this.channel.call("showItemInFolder",e)},
e.prototype.getActiveWindowId=function(){return this.channel.call("getActiveWindowId")},e.prototype.openExternal=function(e){return this.channel.call("openExternal",e)},e.prototype.startCrashReporter=function(e){return this.channel.call("startCrashReporter",e)},e.prototype.updateTouchBar=function(e,t){return this.channel.call("updateTouchBar",[e,t])},e.prototype.openAboutDialog=function(){return this.channel.call("openAboutDialog")},e.prototype.resolveProxy=function(e,t){return Promise.resolve(this.channel.call("resolveProxy",[e,t]))},e}();t.WindowsChannelClient=s}),define(e[51],t([0,1,59,4,21,17,8,120,118,3]),function(e,t,n,r,o,s,a,u,c,l){"use strict";function f(e,t,i,u,c){var f=s.createCancelablePromise(function(){return Promise.resolve()}),d=0;return l.Event.once(c.onCancellationRequested)(function(){u.debug(t,"Cancelled."),f.cancel(),e.close()}),new Promise(function(u,h){var g=new s.Sequencer,v=function(t){t.isCancellationRequested||(d++,e.readEntry())};e.once("error",h),e.once("close",function(){
return f.then(function(){c.isCancellationRequested||e.entryCount===d?u():h(new p("Incomplete",new Error(n.localize(1,null,d,e.entryCount))))},h)}),e.readEntry(),e.on("entry",function(u){if(!c.isCancellationRequested)if(i.sourcePathRegex.test(u.fileName)){var d=u.fileName.replace(i.sourcePathRegex,"");if(/\/$/.test(d)){var p=r.join(t,d);f=s.createCancelablePromise(function(e){return a.mkdirp(p,void 0,e).then(function(){return v(e)}).then(void 0,h)})}else{var m=s.ninvoke(e,e.openReadStream,u),y=function(e){var t=e.externalFileAttributes>>16||33188;return[448,56,7].map(function(e){return t&e}).reduce(function(e,t){return e+t},61440&t)}(u);f=s.createCancelablePromise(function(e){return g.queue(function(){return m.then(function(i){return function(e,t,i,s,u,c){var f=r.dirname(t),d=r.join(s,f);if(0!==d.indexOf(s))return Promise.reject(new Error(n.localize(0,null,t)));var h,p=r.join(s,t);return l.Event.once(c.onCancellationRequested)(function(){h&&h.destroy()}),Promise.resolve(a.mkdirp(d,void 0,c)).then(function(){
return new Promise(function(t,n){if(!c.isCancellationRequested)try{(h=o.createWriteStream(p,{mode:i})).once("close",function(){return t()}),h.once("error",n),e.once("error",n),e.pipe(h)}catch(e){n(e)}})})}(i,d,y,t,0,e).then(function(){return v(e)})})}).then(null,h)})}}else v(c)})})}function d(e,t){return void 0===t&&(t=!1),s.nfcall(u.open,e,t?{lazyEntries:!0}:void 0).then(void 0,function(e){return Promise.reject(function(e){if(e instanceof p)return e;var t=void 0;return/end of central directory record signature not found/.test(e.message)&&(t="CorruptZip"),new p(t,e)}(e))})}function h(e,t){return function(e,t){return d(e).then(function(e){return new Promise(function(r,i){e.on("entry",function(n){n.fileName===t&&s.ninvoke(e,e.openReadStream,n).then(function(e){return r(e)},function(e){return i(e)})}),e.once("close",function(){return i(new Error(n.localize(2,null,t)))})})})}(e,t).then(function(e){return new Promise(function(t,n){var r=[];e.once("error",n),e.on("data",function(e){return r.push(e)}),
e.on("end",function(){return t(Buffer.concat(r))})})})}Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(t,n){var r=this,i=n.message;switch(t){case"CorruptZip":i="Corrupt ZIP: "+i}return r=e.call(this,i)||this,r.type=t,r.cause=n,r}return i(t,e),t}(Error);t.ExtractError=p,t.zip=function(e,t){return new Promise(function(n,r){var i=new c.ZipFile;t.forEach(function(e){e.contents?i.addBuffer("string"==typeof e.contents?Buffer.from(e.contents,"utf8"):e.contents,e.path):e.localPath&&i.addFile(e.localPath,e.path)}),i.end();var s=o.createWriteStream(e);i.outputStream.pipe(s),i.outputStream.once("error",r),s.once("error",r),s.once("finish",function(){return n(e)})})},t.extract=function(e,t,n,r,i){void 0===n&&(n={});var o=new RegExp(n.sourcePath?"^"+n.sourcePath:""),s=d(e,!0);return n.overwrite&&(s=s.then(function(e){return a.rimraf(t).then(function(){return e})})),s.then(function(e){return f(e,t,{sourcePathRegex:o},r,i)})},t.buffer=h}),define(e[117],t([0,1,51,57]),function(e,t,n,r){
"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getManifest=function(e){return n.buffer(e,"extension/package.json").then(function(e){try{return JSON.parse(e.toString("utf8"))}catch(e){throw new Error(r.localize(0,null))}})}}),define(e[116],t([0,1,56,4,8,9,2,18,51,33,24,52,15,17,3,119,16,28,7,11,68,65,38,37,43,23,25,49,5,32,26,27,117,44,20,94]),function(e,t,o,u,c,l,f,d,h,p,g,v,m,y,b,_,w,E,C,S,x,P,O,I,k,D,j,L,T,A,R,M,F,U,N,W){"use strict";function z(e){return new Promise(function(t,n){try{var r=JSON.parse(e),i=r.__metadata||null;delete r.__metadata,t({manifest:r,metadata:i})}catch(e){n(new Error(o.localize(0,null)))}})}Object.defineProperty(t,"__esModule",{value:!0});var B=function(e){function t(t,n){var r=e.call(this,t)||this;return r.code=n,r}return i(t,e),t}(Error);t.ExtensionManagementError=B;var q=function(t){function q(e,n,r,i,o,s,a){var c=t.call(this)||this;return c.remote=e,c.environmentService=n,c.configurationService=r,c.galleryService=i,c.logService=o,c.downloadService=s,
c.telemetryService=a,c.lastReportTimestamp=0,c.installingExtensions=new Map,c.uninstallingExtensions=new Map,c._onInstallExtension=new b.Emitter,c.onInstallExtension=c._onInstallExtension.event,c._onDidInstallExtension=new b.Emitter,c.onDidInstallExtension=c._onDidInstallExtension.event,c._onUninstallExtension=new b.Emitter,c.onUninstallExtension=c._onUninstallExtension.event,c._onDidUninstallExtension=new b.Emitter,c.onDidUninstallExtension=c._onDidUninstallExtension.event,c._devSystemExtensionsPath=null,c._devSystemExtensionsFilePath=null,c.systemExtensionsPath=n.builtinExtensionsPath,c.extensionsPath=n.extensionsPath,c.uninstalledPath=u.join(c.extensionsPath,".obsolete"),c.uninstalledFileLimiter=new y.Queue,c.manifestCache=c._register(new x.ExtensionsManifestCache(n,c)),c.extensionLifecycle=c._register(new P.ExtensionsLifecycle(n,c.logService)),c._register(f.toDisposable(function(){c.installingExtensions.forEach(function(e){return e.cancel()}),c.uninstallingExtensions.forEach(function(e){return e.cancel()
}),c.installingExtensions.clear(),c.uninstallingExtensions.clear()})),c}return i(q,t),q.prototype.zip=function(e){return this.logService.trace("ExtensionManagementService#zip",e.identifier.id),this.collectFiles(e).then(function(e){return h.zip(u.join(D.tmpdir(),j.generateUuid()),e)}).then(function(e){return w.URI.file(e)})},q.prototype.unzip=function(e,t){return this.logService.trace("ExtensionManagementService#unzip",e.toString()),this.install(e,t)},q.prototype.collectFiles=function(e){var t=this,i=function(e){return n(t,void 0,void 0,function(){var t,n,o;return r(this,function(r){switch(r.label){case 0:return[4,c.readdir(e)];case 1:return t=r.sent(),t=t.map(function(t){return u.join(e,t)}),[4,Promise.all(t.map(function(e){return c.stat(e)}))];case 2:return n=r.sent(),o=Promise.resolve([]),n.forEach(function(e,n){var r=t[n];e.isFile()&&(o=o.then(function(e){return e.concat([r])})),e.isDirectory()&&(o=o.then(function(e){return i(r).then(function(t){return e.concat(t)})}))}),[2,o]}})})}
;return i(e.location.fsPath).then(function(t){return t.map(function(t){return{path:"extension/"+u.relative(e.location.fsPath,t),localPath:t}})})},q.prototype.install=function(e,t){var n=this;return void 0===t&&(t=1),this.logService.trace("ExtensionManagementService#install",e.toString()),y.createCancelablePromise(function(r){return n.downloadVsix(e).then(function(e){var i=u.resolve(e.fsPath);return F.getManifest(i).then(function(e){var s={id:g.getGalleryExtensionId(e.publisher,e.name)},a=1;if(e.engines&&e.engines.vscode&&!k.isEngineValid(e.engines.vscode))return Promise.reject(new Error(o.localize(1,null,s.id,E.default.version)));var u=new U.ExtensionIdentifierWithVersion(s,e.version);return n.getInstalled(1).then(function(t){var r=t.filter(function(e){return g.areSameExtensions(s,e.identifier)})[0];if(r){if(a=2,u.equals(new U.ExtensionIdentifierWithVersion(r.identifier,r.manifest.version)))return n.removeExtension(r,"existing").then(null,function(t){
return Promise.reject(new Error(o.localize(2,null,e.displayName||e.name)))});if(_.gt(r.manifest.version,e.version))return n.uninstall(r,!0)}}).then(function(){return n.logService.info("Installing the extension:",s.id),n._onInstallExtension.fire({identifier:s,zipPath:i}),n.getMetadata(g.getGalleryExtensionId(e.publisher,e.name)).then(function(e){return n.installFromZipPath(u,i,e,t,a,r)},function(){return n.installFromZipPath(u,i,null,t,a,r)}).then(function(){return n.logService.info("Successfully installed the extension:",s.id),s},function(e){return n.logService.error("Failed to install the extension:",s.id,e.message),Promise.reject(e)})})})})})},q.prototype.downloadVsix=function(e){if(e.scheme===A.Schemas.file)return Promise.resolve(e);if(!this.downloadService)throw new Error("Download service is not available");var t=u.join(D.tmpdir(),j.generateUuid());return this.downloadService.download(e,t).then(function(){return w.URI.file(t)})},q.prototype.installFromZipPath=function(e,t,n,r,i,o){var s=this
;return this.toNonCancellablePromise(this.installExtension({zipPath:t,identifierWithVersion:e,metadata:n},r,o).then(function(e){return s.installDependenciesAndPackExtensions(e,null).then(function(){return e},function(t){return s.uninstall(e,!0).then(function(){return Promise.reject(t)},function(){return Promise.reject(t)})})}).then(function(n){return s._onDidInstallExtension.fire({identifier:e.identifier,zipPath:t,local:n,operation:i}),n},function(n){return s._onDidInstallExtension.fire({identifier:e.identifier,zipPath:t,operation:i,error:n}),Promise.reject(n)}))},q.prototype.installFromGallery=function(e){return n(this,void 0,void 0,function(){var t,n,i,o,s,a,u,l,f,d,h,p,v,m=this;return r(this,function(r){switch(r.label){case 0:t=(new Date).getTime(),this.logService.info("Installing extension:",e.identifier.id),this._onInstallExtension.fire({identifier:e.identifier,gallery:e}),n=function(e,n,r){m.logService.info("Extensions installed successfully:",e.identifier.id),m._onDidInstallExtension.fire({
identifier:e.identifier,gallery:e,local:r,operation:n}),m.reportTelemetry(m.getTelemetryEvent(n),g.getGalleryExtensionTelemetryData(e),(new Date).getTime()-t,void 0)},i=function(e,n,r){var i=r&&r.code?r.code:"unknown";m.logService.error("Failed to install extension:",e.identifier.id,r?r.message:i),m._onDidInstallExtension.fire({identifier:e.identifier,gallery:e,operation:n,error:i}),m.reportTelemetry(m.getTelemetryEvent(n),g.getGalleryExtensionTelemetryData(e),(new Date).getTime()-t,r),r instanceof Error&&(r.name=i)},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.checkAndGetCompatibleVersion(e)];case 2:return e=r.sent(),[3,4];case 3:return o=r.sent(),i(e,1,o),[2,Promise.reject(o)];case 4:if(s=new U.ExtensionIdentifierWithVersion(e.identifier,e.version).key(),a=this.installingExtensions.get(s))return[3,10];u=1,a=y.createCancelablePromise(function(e){return l=e,new Promise(function(e,t){f=e,d=t})}),this.installingExtensions.set(s,a),r.label=5;case 5:return r.trys.push([5,9,,10]),[4,this.getInstalled(1)]
;case 6:return h=r.sent(),(p=h.filter(function(t){return g.areSameExtensions(t.identifier,e.identifier)})[0])?(u=2,_.gt(p.manifest.version,e.version)?[4,this.uninstall(p,!0)]:[3,8]):[3,8];case 7:r.sent(),r.label=8;case 8:return this.downloadInstallableExtension(e,u).then(function(e){return m.installExtension(e,1,l).then(function(t){return y.always(c.rimraf(e.zipPath),function(){return null}).then(function(){return t})})}).then(function(e){return m.installDependenciesAndPackExtensions(e,p).then(function(){return e},function(t){return m.uninstall(e,!0).then(function(){return Promise.reject(t)},function(){return Promise.reject(t)})})}).then(function(t){m.installingExtensions.delete(s),n(e,u,t),f(null)},function(t){m.installingExtensions.delete(s),i(e,u,t),d(t)}),[3,10];case 9:return v=r.sent(),this.installingExtensions.delete(s),i(e,u,v),[2,Promise.reject(v)];case 10:return[2,a]}})})},q.prototype.checkAndGetCompatibleVersion=function(e){return n(this,void 0,void 0,function(){var t,n;return r(this,function(r){
switch(r.label){case 0:return[4,this.isMalicious(e)];case 1:return r.sent()?[2,Promise.reject(new B(o.localize(3,null),p.INSTALL_ERROR_MALICIOUS))]:[4,this.galleryService.getCompatibleExtension(e)];case 2:return(t=r.sent())?this.remote?[4,this.galleryService.getManifest(e,R.CancellationToken.None)]:[3,4]:[2,Promise.reject(new B(o.localize(4,null,e.identifier.id,E.default.version),p.INSTALL_ERROR_INCOMPATIBLE))];case 3:if((n=r.sent())&&W.isUIExtension(n,this.configurationService))return[2,Promise.reject(new Error(o.localize(5,null,e.identifier.id)))];r.label=4;case 4:return[2,t]}})})},q.prototype.reinstallFromGallery=function(e){var t=this;return this.logService.trace("ExtensionManagementService#reinstallFromGallery",e.identifier.id),this.galleryService.isEnabled()?this.findGalleryExtension(e).then(function(n){return n?t.setUninstalled(e).then(function(){return t.removeUninstalledExtension(e).then(function(){return t.installFromGallery(n)},function(e){
return Promise.reject(new Error(o.localize(7,null,O.toErrorMessage(e))))})}):Promise.reject(new Error(o.localize(8,null)))}):Promise.reject(new Error(o.localize(6,null)))},q.prototype.getTelemetryEvent=function(e){return 2===e?"extensionGallery:update":"extensionGallery:install"},q.prototype.isMalicious=function(e){return this.getExtensionsReport().then(function(t){return g.getMaliciousExtensionsSet(t).has(e.identifier.id)})},q.prototype.downloadInstallableExtension=function(e,t){var n=this,r={id:e.identifier.uuid,publisherId:e.publisherId,publisherDisplayName:e.publisherDisplayName};return this.logService.trace("Started downloading extension:",e.identifier.id),this.galleryService.download(e,t).then(function(t){return n.logService.info("Downloaded extension:",e.identifier.id,t),F.getManifest(t).then(function(n){return{zipPath:t,identifierWithVersion:new U.ExtensionIdentifierWithVersion(e.identifier,n.version),metadata:r}},function(e){return Promise.reject(new B(n.joinErrors(e).message,"validating"))})
},function(e){return Promise.reject(new B(n.joinErrors(e).message,"downloading"))})},q.prototype.installExtension=function(e,t,n){var r=this;return this.unsetUninstalledAndGetLocal(e.identifierWithVersion).then(function(i){return i||r.extractAndInstall(e,t,n)},function(e){return C.isMacintosh?Promise.reject(new B(o.localize(9,null),"unsetUninstalled")):Promise.reject(new B(o.localize(10,null),"unsetUninstalled"))})},q.prototype.unsetUninstalledAndGetLocal=function(e){var t=this;return this.isUninstalled(e).then(function(n){return n?(t.logService.trace("Removing the extension from uninstalled list:",e.identifier.id),t.unsetUninstalled(e).then(function(){return t.logService.info("Removed the extension from uninstalled list:",e.identifier.id),t.getInstalled(1)}).then(function(t){return t.filter(function(t){return new U.ExtensionIdentifierWithVersion(t.identifier,t.manifest.version).equals(e)})[0]})):null})},q.prototype.extractAndInstall=function(e,t,n){
var r=this,i=e.zipPath,s=e.identifierWithVersion,a=e.metadata,l=s.identifier,f=1===t?this.extensionsPath:this.systemExtensionsPath,d=s.key(),h=u.join(f,"."+d),p=u.join(f,d);return c.rimraf(p).then(function(){return r.extractAndRename(l,i,h,p,n)},function(e){return Promise.reject(new B(o.localize(11,null,p,l.id),"deleting"))}).then(function(){return r.scanExtension(d,f,t)}).then(function(e){return e?(r.logService.info("Installation completed.",l.id),a?(e.metadata=a,r.saveMetadataForLocalExtension(e)):e):Promise.reject(o.localize(12,null,f))},function(e){return c.rimraf(p).then(function(){return Promise.reject(e)},function(){return Promise.reject(e)})})},q.prototype.extractAndRename=function(e,t,n,r,i){var o=this;return this.extract(e,t,n,i).then(function(){return o.rename(e,n,r,Date.now()+12e4).then(function(){return o.logService.info("Renamed to",r)},function(e){return o.logService.info("Rename failed. Deleting from extracted location",n),y.always(c.rimraf(n),function(){return null}).then(function(){
return Promise.reject(e)})})})},q.prototype.extract=function(e,t,n,r){var i=this;return this.logService.trace("Started extracting the extension from "+t+" to "+n),c.rimraf(n).then(function(){return h.extract(t,n,{sourcePath:"extension",overwrite:!0},i.logService,r).then(function(){return i.logService.info("Extracted extension to "+n+":",e.id)},function(e){return y.always(c.rimraf(n),function(){return null}).then(function(){return Promise.reject(new B(e.message,e instanceof h.ExtractError&&e.type?e.type:"extracting"))})})},function(e){return Promise.reject(new B(i.joinErrors(e).message,"deleting"))})},q.prototype.rename=function(e,t,n,r){var i=this;return c.rename(t,n).then(void 0,function(s){return C.isWindows&&s&&"EPERM"===s.code&&Date.now()<r?(i.logService.info("Failed renaming "+t+" to "+n+" with 'EPERM' error. Trying again...",e.id),i.rename(e,t,n,r)):Promise.reject(new B(s.message||o.localize(13,null,t,n),s.code||"renaming"))})},q.prototype.installDependenciesAndPackExtensions=function(e,t){
return n(this,void 0,void 0,function(){var i,o,s,a,u,c=this;return r(this,function(l){if(this.galleryService.isEnabled()){if(i=e.manifest.extensionDependencies||[],e.manifest.extensionPack)for(o=function(e){t&&t.manifest.extensionPack&&t.manifest.extensionPack.some(function(t){return g.areSameExtensions({id:t},{id:e})})||i.every(function(t){return!g.areSameExtensions({id:t},{id:e})})&&i.push(e)},s=0,a=e.manifest.extensionPack;s<a.length;s++)u=a[s],o(u);if(i.length)return[2,this.getInstalled().then(function(e){var t=i.filter(function(t){return e.every(function(e){var n=e.identifier;return!g.areSameExtensions(n,{id:t})})});return t.length?c.galleryService.query({names:t,pageSize:i.length}).then(function(e){var t=e.firstPage;return Promise.all(t.map(function(e){return n(c,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return this.remote?[4,this.galleryService.getManifest(e,R.CancellationToken.None)]:[3,2];case 1:
if((t=n.sent())&&W.isUIExtension(t,this.configurationService))return this.logService.info("Ignored installing the UI dependency",e.identifier.id),[2];n.label=2;case 2:return[2,this.installFromGallery(e)]}})})})).then(function(){return null},function(e){return c.rollback(t).then(function(){return Promise.reject(e)},function(){return Promise.reject(e)})})}):null})]}return[2,Promise.resolve(void 0)]})})},q.prototype.rollback=function(e){var t=this;return this.getInstalled(1).then(function(n){return Promise.all(n.filter(function(t){return e.some(function(e){return new U.ExtensionIdentifierWithVersion(t.identifier,t.manifest.version).equals(new U.ExtensionIdentifierWithVersion(e.identifier,e.version))})}).map(function(e){return t.uninstall(e,!0)}))}).then(function(){},function(){})},q.prototype.uninstall=function(e,t){var n=this;return void 0===t&&(t=!1),this.logService.trace("ExtensionManagementService#uninstall",e.identifier.id),this.toNonCancellablePromise(this.getInstalled(1).then(function(t){
var r=t.filter(function(t){return g.areSameExtensions(t.identifier,e.identifier)})[0];return r?n.checkForDependenciesAndUninstall(r,t).then(function(){return null},function(e){return Promise.reject(n.joinErrors(e))}):Promise.reject(new Error(o.localize(14,null,e.manifest.displayName||e.manifest.name)))}))},q.prototype.updateMetadata=function(e,t){var n=this;return this.logService.trace("ExtensionManagementService#updateMetadata",e.identifier.id),e.metadata=t,this.saveMetadataForLocalExtension(e).then(function(e){return n.manifestCache.invalidate(),e})},q.prototype.saveMetadataForLocalExtension=function(e){if(!e.metadata)return Promise.resolve(e);var t=u.join(e.location.fsPath,"package.json");return c.readFile(t,"utf8").then(function(e){return z(e)}).then(function(t){var n=t.manifest;return l.assign(n,{__metadata:e.metadata})}).then(function(e){return c.writeFile(t,JSON.stringify(e,null,"\t"))}).then(function(){return e})},q.prototype.getMetadata=function(e){
return this.findGalleryExtensionByName(e).then(function(e){return e?{id:e.identifier.uuid,publisherDisplayName:e.publisherDisplayName,publisherId:e.publisherId}:null})},q.prototype.findGalleryExtension=function(e){var t=this;return e.identifier.uuid?this.findGalleryExtensionById(e.identifier.uuid).then(function(n){return n||t.findGalleryExtensionByName(e.identifier.id)}):this.findGalleryExtensionByName(e.identifier.id)},q.prototype.findGalleryExtensionById=function(e){return this.galleryService.query({ids:[e],pageSize:1}).then(function(e){return e.firstPage[0]})},q.prototype.findGalleryExtensionByName=function(e){return this.galleryService.query({names:[e],pageSize:1}).then(function(e){return e.firstPage[0]})},q.prototype.joinErrors=function(e){var t=Array.isArray(e)?e:[e];return 1===t.length?t[0]instanceof Error?t[0]:new Error(t[0]):t.reduce(function(e,t){return new Error(e.message+(e.message?",":"")+(t instanceof Error?t.message:t))},new Error(""))},
q.prototype.checkForDependenciesAndUninstall=function(e,t){var n=this;return this.preUninstallExtension(e).then(function(){var r=n.getAllPackExtensionsToUninstall(e,t);return r.length?n.uninstallExtensions(e,r,t):n.uninstallExtensions(e,[],t)}).then(function(){return n.postUninstallExtension(e)},function(t){return n.postUninstallExtension(e,new B(t instanceof Error?t.message:t,"local")),Promise.reject(t)})},q.prototype.uninstallExtensions=function(e,t,n){var r=this,i=this.getDependents(e,n);if(i.length){var o=i.filter(function(n){return e!==n&&-1===t.indexOf(n)});if(o.length)return Promise.reject(new Error(this.getDependentsErrorMessage(e,o)))}return Promise.all([this.uninstallExtension(e)].concat(t.map(function(e){return r.doUninstall(e)}))).then(function(){})},q.prototype.getDependentsErrorMessage=function(e,t){
return 1===t.length?o.localize(15,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name):2===t.length?o.localize(16,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name,t[1].manifest.displayName||t[1].manifest.name):o.localize(17,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name,t[1].manifest.displayName||t[1].manifest.name)},q.prototype.getAllPackExtensionsToUninstall=function(e,t,n){if(void 0===n&&(n=[]),-1!==n.indexOf(e))return[];n.push(e);var r=e.manifest.extensionPack?e.manifest.extensionPack:[];if(r.length){for(var i=t.filter(function(e){return r.some(function(t){return g.areSameExtensions({id:t},e.identifier)})}),o=[],s=0,a=i;s<a.length;s++){var u=a[s];o.push.apply(o,this.getAllPackExtensionsToUninstall(u,t,n))}return i.concat(o)}return[]},q.prototype.getDependents=function(e,t){return t.filter(function(t){
return t.manifest.extensionDependencies&&t.manifest.extensionDependencies.some(function(t){return g.areSameExtensions({id:t},e.identifier)})})},q.prototype.doUninstall=function(e){var t=this;return this.preUninstallExtension(e).then(function(){return t.uninstallExtension(e)}).then(function(){return t.postUninstallExtension(e)},function(n){return t.postUninstallExtension(e,new B(n instanceof Error?n.message:n,"local")),Promise.reject(n)})},q.prototype.preUninstallExtension=function(e){var t=this;return Promise.resolve(c.exists(e.location.fsPath)).then(function(e){return e?null:Promise.reject(new Error(o.localize(18,null)))}).then(function(){t.logService.info("Uninstalling extension:",e.identifier.id),t._onUninstallExtension.fire(e.identifier)})},q.prototype.uninstallExtension=function(e){var t=this,n=this.uninstallingExtensions.get(e.identifier.id);return n||(n=y.createCancelablePromise(function(n){return t.scanUserExtensions(!1).then(function(n){return t.setUninstalled.apply(t,n.filter(function(t){
return g.areSameExtensions(t.identifier,e.identifier)}))}).then(function(){t.uninstallingExtensions.delete(e.identifier.id)})}),this.uninstallingExtensions.set(e.identifier.id,n)),n},q.prototype.postUninstallExtension=function(e,t){return n(this,void 0,void 0,function(){var n;return r(this,function(r){switch(r.label){case 0:return t?(this.logService.error("Failed to uninstall extension:",e.identifier.id,t.message),[3,3]):[3,1];case 1:return this.logService.info("Successfully uninstalled extension:",e.identifier.id),e.identifier.uuid?[4,this.galleryService.reportStatistic(e.manifest.publisher,e.manifest.name,e.manifest.version,"uninstall")]:[3,3];case 2:r.sent(),r.label=3;case 3:return this.reportTelemetry("extensionGallery:uninstall",g.getLocalExtensionTelemetryData(e),void 0,t),n=t?t instanceof B?t.code:"unknown":void 0,this._onDidUninstallExtension.fire({identifier:e.identifier,error:n}),[2]}})})},q.prototype.getInstalled=function(e){var t=this;void 0===e&&(e=null);var n=[]
;return null!==e&&0!==e||n.push(this.scanSystemExtensions().then(null,function(e){return Promise.reject(new B(t.joinErrors(e).message,"scanningSystem"))})),null!==e&&1!==e||n.push(this.scanUserExtensions(!0).then(null,function(e){return Promise.reject(new B(t.joinErrors(e).message,"scanningUser"))})),Promise.all(n).then(d.flatten,function(e){return Promise.reject(t.joinErrors(e))})},q.prototype.scanSystemExtensions=function(){var e=this;this.logService.trace("Started scanning system extensions");var t=this.scanExtensions(this.systemExtensionsPath,0).then(function(t){return e.logService.info("Scanned system extensions:",t.length),t});if(this.environmentService.isBuilt)return t;var n=this.getDevSystemExtensionsList().then(function(t){return t.length?e.scanExtensions(e.devSystemExtensionsPath,0).then(function(n){return e.logService.info("Scanned dev system extensions:",n.length),n.filter(function(e){return t.some(function(t){return g.areSameExtensions(e.identifier,{id:t})})})}):[]})
;return Promise.all([t,n]).then(function(e){var t=e[0],n=e[1];return t.concat(n)})},q.prototype.scanUserExtensions=function(e){var t=this;return this.logService.trace("Started scanning user extensions"),Promise.all([this.getUninstalledExtensions(),this.scanExtensions(this.extensionsPath,1)]).then(function(n){var r=n[0],i=n[1];if(i=i.filter(function(e){return!r[new U.ExtensionIdentifierWithVersion(e.identifier,e.manifest.version).key()]}),e){i=g.groupByExtension(i,function(e){return e.identifier}).map(function(e){return e.sort(function(e,t){return _.rcompare(e.manifest.version,t.manifest.version)})[0]})}return t.logService.info("Scanned user extensions:",i.length),i})},q.prototype.scanExtensions=function(e,t){var n=this,r=new y.Limiter(10);return c.readdir(e).then(function(i){return Promise.all(i.map(function(i){return r.queue(function(){return n.scanExtension(i,e,t)})}))}).then(function(e){return e.filter(function(e){return e&&e.identifier})})},q.prototype.scanExtension=function(e,t,n){
if(1===n&&0===e.indexOf("."))return Promise.resolve(null);var r=u.join(t,e);return c.readdir(r).then(function(e){return function(e){var t=[c.readFile(u.join(e,"package.json"),"utf8").then(function(e){return z(e)}),c.readFile(u.join(e,"package.nls.json"),"utf8").then(void 0,function(e){return"ENOENT"!==e.code?Promise.reject(e):"{}"}).then(function(e){return JSON.parse(e)})];return Promise.all(t).then(function(e){var t=e[0],n=t.manifest,r=t.metadata,i=e[1];return{manifest:v.localizeManifest(n,i),metadata:r}})}(r).then(function(t){var i=t.manifest,o=t.metadata,s=e.filter(function(e){return/^readme(\.txt|\.md|)$/i.test(e)})[0],a=s?w.URI.file(u.join(r,s)):null,c=e.filter(function(e){return/^changelog(\.txt|\.md|)$/i.test(e)})[0],l=c?w.URI.file(u.join(r,c)):null,f={id:g.getGalleryExtensionId(i.publisher,i.name),uuid:o?o.id:null};return{type:n,identifier:f,manifest:i,metadata:o,location:w.URI.file(r),readmeUrl:a,changelogUrl:l}})}).then(void 0,function(){return null})},
q.prototype.removeDeprecatedExtensions=function(){var e=this;return this.removeUninstalledExtensions().then(function(){return e.removeOutdatedExtensions()})},q.prototype.removeUninstalledExtensions=function(){var e=this;return this.getUninstalledExtensions().then(function(t){return e.scanExtensions(e.extensionsPath,1).then(function(n){var r=n.filter(function(e){return t[new U.ExtensionIdentifierWithVersion(e.identifier,e.manifest.version).key()]});return Promise.all(r.map(function(t){return e.extensionLifecycle.postUninstall(t).then(function(){return e.removeUninstalledExtension(t)})}))})}).then(function(){})},q.prototype.removeOutdatedExtensions=function(){var e=this;return this.scanExtensions(this.extensionsPath,1).then(function(t){var n=[],r=g.groupByExtension(t,function(e){return e.identifier});return n.push.apply(n,d.flatten(r.map(function(e){return e.sort(function(e,t){return _.rcompare(e.manifest.version,t.manifest.version)}).slice(1)}))),Promise.all(n.map(function(t){
return e.removeExtension(t,"outdated")}))}).then(function(){})},q.prototype.removeUninstalledExtension=function(e){var t=this;return this.removeExtension(e,"uninstalled").then(function(){return t.withUninstalledExtensions(function(t){return delete t[new U.ExtensionIdentifierWithVersion(e.identifier,e.manifest.version).key()]})}).then(function(){})},q.prototype.removeExtension=function(e,t){var n=this;return this.logService.trace("Deleting "+t+" extension from disk",e.identifier.id,e.location.fsPath),c.rimraf(e.location.fsPath).then(function(){return n.logService.info("Deleted from disk",e.identifier.id,e.location.fsPath)})},q.prototype.isUninstalled=function(e){return this.filterUninstalled(e).then(function(e){return 1===e.length})},q.prototype.filterUninstalled=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.withUninstalledExtensions(function(t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];t[o.key()]&&n.push(o.key())}return n})},q.prototype.setUninstalled=function(){
for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.map(function(e){return new U.ExtensionIdentifierWithVersion(e.identifier,e.manifest.version)});return this.withUninstalledExtensions(function(e){return l.assign(e,n.reduce(function(e,t){return e[t.key()]=!0,e},{}))})},q.prototype.unsetUninstalled=function(e){return this.withUninstalledExtensions(function(t){return delete t[e.key()]})},q.prototype.getUninstalledExtensions=function(){return this.withUninstalledExtensions(function(e){return e})},q.prototype.withUninstalledExtensions=function(e){return n(this,void 0,void 0,function(){var t=this;return r(this,function(n){switch(n.label){case 0:return[4,this.uninstalledFileLimiter.queue(function(){var n=null;return c.readFile(t.uninstalledPath,"utf8").then(void 0,function(e){return"ENOENT"===e.code?Promise.resolve("{}"):Promise.reject(e)}).then(function(e){try{return JSON.parse(e)}catch(e){return{}}}).then(function(t){return n=e(t),t}).then(function(e){
if(0===Object.keys(e).length)return c.rimraf(t.uninstalledPath);var n=JSON.stringify(e);return c.writeFile(t.uninstalledPath,n)}).then(function(){return n})})];case 1:return[2,n.sent()]}})})},q.prototype.getExtensionsReport=function(){var e=(new Date).getTime();return(!this.reportedExtensions||e-this.lastReportTimestamp>3e5)&&(this.reportedExtensions=this.updateReportCache(),this.lastReportTimestamp=e),this.reportedExtensions},q.prototype.updateReportCache=function(){var e=this;return this.logService.trace("ExtensionManagementService.refreshReportedCache"),this.galleryService.getExtensionsReport().then(function(t){return e.logService.trace("ExtensionManagementService.refreshReportedCache - got "+t.length+" reported extensions from service"),t},function(t){return e.logService.trace("ExtensionManagementService.refreshReportedCache - failed to get extension report"),[]})},Object.defineProperty(q.prototype,"devSystemExtensionsPath",{get:function(){
return this._devSystemExtensionsPath||(this._devSystemExtensionsPath=u.normalize(u.join(M.getPathFromAmdModule(e,""),"..",".build","builtInExtensions"))),this._devSystemExtensionsPath},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"devSystemExtensionsFilePath",{get:function(){return this._devSystemExtensionsFilePath||(this._devSystemExtensionsFilePath=u.normalize(u.join(M.getPathFromAmdModule(e,""),"..","build","builtInExtensions.json"))),this._devSystemExtensionsFilePath},enumerable:!0,configurable:!0}),q.prototype.getDevSystemExtensionsList=function(){return c.readFile(this.devSystemExtensionsFilePath,"utf8").then(function(e){return JSON.parse(e).map(function(e){return e.name})})},q.prototype.toNonCancellablePromise=function(e){return new Promise(function(t,n){return e.then(function(e){return t(e)},function(e){return n(e)})})},q.prototype.reportTelemetry=function(e,t,n,r){var i=r?r instanceof B?r.code:"unknown":void 0;this.telemetryService.publicLog(e,l.assign(t,{success:!r,duration:n,
errorcode:i}))},q=s([a(1,m.IEnvironmentService),a(2,N.IConfigurationService),a(3,p.IExtensionGalleryService),a(4,S.ILogService),a(5,T.optional(L.IDownloadService)),a(6,I.ITelemetryService)],q)}(f.Disposable);t.ExtensionManagementService=q}),define(e[35],t([0,1,10,71,21,9,121,6]),function(e,t,i,o,s,a,u,c){"use strict";function l(t,s){var f;return(t.getRawRequest?Promise.resolve(t.getRawRequest(t)):Promise.resolve(function(t){return n(this,void 0,void 0,function(){var n,i,s;return r(this,function(r){switch(r.label){case 0:return"https:"!==(n=o.parse(t.url)).protocol?[3,2]:[4,new Promise(function(t,n){e(["https"],t,n)})];case 1:return s=r.sent(),[3,4];case 2:return[4,new Promise(function(t,n){e(["http"],t,n)})];case 3:s=r.sent(),r.label=4;case 4:return i=s,[2,i.request]}})})}(t))).then(function(e){return new Promise(function(n,r){var d=o.parse(t.url),h={hostname:d.hostname,port:d.port?parseInt(d.port):"https:"===d.protocol?443:80,protocol:d.protocol,path:d.path,method:t.type||"GET",headers:t.headers,
agent:t.agent,rejectUnauthorized:!i.isBoolean(t.strictSSL)||t.strictSSL};if(t.user&&t.password&&(h.auth=t.user+":"+t.password),(f=e(h,function(e){var o=i.isNumber(t.followRedirects)?t.followRedirects:3;if(e.statusCode&&e.statusCode>=300&&e.statusCode<400&&o>0&&e.headers.location)l(a.assign({},t,{url:e.headers.location,followRedirects:o-1}),s).then(n,r);else{var c=e;"gzip"===e.headers["content-encoding"]&&(c=c.pipe(u.createGunzip())),n({res:e,stream:c})}})).on("error",r),t.timeout&&f.setTimeout(t.timeout),t.data){if("string"!=typeof t.data)return void t.data.pipe(f);f.write(t.data)}f.end(),s.onCancellationRequested(function(){f.abort(),r(c.canceled())})})})}function f(e){return e.res.statusCode&&e.res.statusCode>=200&&e.res.statusCode<300||1223===e.res.statusCode}function d(e){return 204===e.res.statusCode}Object.defineProperty(t,"__esModule",{value:!0}),t.request=l,t.download=function(e,t){return new Promise(function(n,r){var i=s.createWriteStream(e);i.once("finish",function(){return n(void 0)}),
t.stream.once("error",r),t.stream.pipe(i)})},t.asText=function(e){return new Promise(function(t,n){if(!f(e))return n("Server returned "+e.res.statusCode);if(d(e))return t(null);var r=[];e.stream.on("data",function(e){return r.push(e)}),e.stream.on("end",function(){return t(r.join(""))}),e.stream.on("error",n)})},t.asJson=function(e){return new Promise(function(t,n){if(!f(e))return n("Server returned "+e.res.statusCode);if(d(e))return t(null);var r=[];e.stream.on("data",function(e){return r.push(e)}),e.stream.on("end",function(){try{t(JSON.parse(r.join("")))}catch(e){n(e)}}),e.stream.on("error",n)})}}),define(e[108],t([0,1,32,8,36,35,26]),function(e,t,n,r,i,o,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e){this.requestService=e}return e.prototype.download=function(e,t,i){if(void 0===i&&(i=u.CancellationToken.None),e.scheme===n.Schemas.file)return r.copy(e.fsPath,t);var s={type:"GET",url:e.toString()};return this.requestService.request(s,i).then(function(e){
return 200===e.res.statusCode?o.download(t,e):o.asText(e).then(function(t){return Promise.reject(new Error("Expected 200, got back "+e.res.statusCode+" instead.\n\n"+t))})})},e=s([a(0,i.IRequestService)],e)}();t.DownloadService=c}),define(e[100],t([0,1,23,4,18,6,33,24,9,36,37,35,28,19,43,15,8,34,25,31,26,11]),function(e,t,n,r,i,u,c,l,f,d,h,p,g,v,m,y,b,_,w,E,C,S){"use strict";function x(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return String(e.reduce(function(e,t){return e|t},0))}function P(e,t){var n=(e||[]).filter(function(e){return e.statisticName===t})[0];return n?n.value:0}function O(e,t){return e.files.filter(function(e){return e.assetType===t})[0]?{uri:e.assetUri+"/"+t,fallbackUri:e.fallbackAssetUri+"/"+t}:null}function I(e,t){var n=e.properties?e.properties.filter(function(e){return e.key===t}):[],r=n.length>0&&n[0].value;return r?r.split(",").map(function(e){return l.adoptToGalleryExtensionId(e)}):[]}function k(e){var t=e.properties?e.properties.filter(function(e){
return e.key===R.Engine}):[];return t.length>0&&t[0].value||""}function D(t,n,r,i,o){var s={manifest:O(n,A.Manifest),readme:O(n,A.Details),changelog:O(n,A.Changelog),license:O(n,A.License),repository:function(e){if(e.properties){var t=e.properties.filter(function(e){return e.key===A.Repository}),n=new RegExp("((git|ssh|http(s)?)|(git@[w.]+))(:(//)?)([w.@:/-~]+)(.git)(/)?"),r=t.filter(function(e){return n.test(e.value)})[0];return r?{uri:r.value,fallbackUri:r.value}:null}return O(e,A.Repository)}(n),download:function(e){return{uri:e.fallbackAssetUri+"/"+A.VSIX+"?redirect=true",fallbackUri:e.fallbackAssetUri+"/"+A.VSIX}}(n),icon:function(t){var n=O(t,A.Icon);if(n)return n;var r=e.toUrl("./media/defaultIcon.png");return{uri:r,fallbackUri:r}}(n),coreTranslations:function(e){return e.files.filter(function(e){return 0===e.assetType.indexOf("Microsoft.VisualStudio.Code.Translation.")}).reduce(function(t,n){return t[n.assetType.substring("Microsoft.VisualStudio.Code.Translation.".length)]=O(e,n.assetType),t},{})}(n)}
;return{identifier:{id:l.getGalleryExtensionId(t.publisher.publisherName,t.extensionName),uuid:t.extensionId},name:t.extensionName,version:n.version,date:n.lastUpdated,displayName:t.displayName,publisherId:t.publisher.publisherId,publisher:t.publisher.publisherName,publisherDisplayName:t.publisher.displayName,description:t.shortDescription||"",installCount:P(t.statistics,"install")+P(t.statistics,"updateCount"),rating:P(t.statistics,"averagerating"),ratingCount:P(t.statistics,"ratingcount"),assets:s,properties:{dependencies:I(n,R.Dependency),extensionPack:I(n,R.ExtensionPack),engine:k(n),localizedLanguages:function(e){var t=e.properties?e.properties.filter(function(e){return e.key===R.LocalizedLanguages}):[],n=t.length>0&&t[0].value||"";return n?n.split(","):[]}(n)},telemetryData:{index:(i.pageNumber-1)*i.pageSize+r,searchText:i.searchText,querySource:o},preview:function(e){return-1!==e.indexOf("preview")}(t.flags)}}function j(e){var t=r.join(e.userDataPath,"machineid")
;return b.readFile(t,"utf8").then(function(e){return w.isUUID(e)?e:Promise.resolve(null)},function(){return Promise.resolve(null)}).then(function(e){if(!e){e=w.generateUuid();try{_.writeFileAndFlushSync(t,e)}catch(e){}}return{"X-Market-Client-Id":"VSCode "+g.default.version,"User-Agent":"VSCode "+g.default.version,"X-Market-User-Id":e}})}Object.defineProperty(t,"__esModule",{value:!0});var L;!function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.Unpublished=4096]="Unpublished"}(L||(L={}));var T;!function(e){e[e.Tag=1]="Tag",
e[e.ExtensionId=4]="ExtensionId",e[e.Category=5]="Category",e[e.ExtensionName=7]="ExtensionName",e[e.Target=8]="Target",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.ExcludeWithFlags=12]="ExcludeWithFlags"}(T||(T={}));var A={Icon:"Microsoft.VisualStudio.Services.Icons.Default",Details:"Microsoft.VisualStudio.Services.Content.Details",Changelog:"Microsoft.VisualStudio.Services.Content.Changelog",Manifest:"Microsoft.VisualStudio.Code.Manifest",VSIX:"Microsoft.VisualStudio.Services.VSIXPackage",License:"Microsoft.VisualStudio.Services.Content.License",Repository:"Microsoft.VisualStudio.Services.Links.Source"},R={Dependency:"Microsoft.VisualStudio.Code.ExtensionDependencies",ExtensionPack:"Microsoft.VisualStudio.Code.ExtensionPack",Engine:"Microsoft.VisualStudio.Code.Engine",LocalizedLanguages:"Microsoft.VisualStudio.Code.LocalizedLanguages"},M={pageNumber:1,pageSize:10,sortBy:0,sortOrder:0,flags:L.None,criteria:[],assetTypes:[]},F=function(){function e(e){void 0===e&&(e=M),this.state=e}
return Object.defineProperty(e.prototype,"pageNumber",{get:function(){return this.state.pageNumber},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this.state.pageSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortBy",{get:function(){return this.state.sortBy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortOrder",{get:function(){return this.state.sortOrder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this.state.flags},enumerable:!0,configurable:!0}),e.prototype.withPage=function(t,n){return void 0===n&&(n=this.state.pageSize),new e(f.assign({},this.state,{pageNumber:t,pageSize:n}))},e.prototype.withFilter=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.state.criteria.concat(n.map(function(e){return{filterType:t,value:e}}));return new e(f.assign({},this.state,{criteria:i}))},e.prototype.withSortBy=function(t){
return new e(f.assign({},this.state,{sortBy:t}))},e.prototype.withSortOrder=function(t){return new e(f.assign({},this.state,{sortOrder:t}))},e.prototype.withFlags=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(f.assign({},this.state,{flags:t.reduce(function(e,t){return e|t},0)}))},e.prototype.withAssetTypes=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(f.assign({},this.state,{assetTypes:t}))},Object.defineProperty(e.prototype,"raw",{get:function(){var e=this.state,t=e.criteria,n=e.pageNumber,r=e.pageSize,i=e.sortBy,o=e.sortOrder,s=e.flags;return{filters:[{criteria:t,pageNumber:n,pageSize:r,sortBy:i,sortOrder:o}],assetTypes:e.assetTypes,flags:s}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchText",{get:function(){var e=this.state.criteria.filter(function(e){return e.filterType===T.SearchText})[0];return e&&e.value?e.value:""},enumerable:!0,configurable:!0}),e}(),U=function(){function e(e,t,n,r){
this.requestService=e,this.logService=t,this.environmentService=n,this.telemetryService=r;var i=v.default.extensionsGallery;this.extensionsGalleryUrl=i&&i.serviceUrl,this.extensionsControlUrl=i&&i.controlUrl,this.commonHeadersPromise=j(this.environmentService)}return e.prototype.api=function(e){return void 0===e&&(e=""),""+this.extensionsGalleryUrl+e},e.prototype.isEnabled=function(){return!!this.extensionsGalleryUrl},e.prototype.getCompatibleExtension=function(e,t){var n=this,r=c.isIExtensionIdentifier(e)?null:e;if(r&&r.properties.engine&&m.isEngineValid(r.properties.engine))return Promise.resolve(r);var i=r?r.identifier:e,o=i.id,s=i.uuid,a=(new F).withFlags(L.IncludeAssetUri,L.IncludeStatistics,L.IncludeFiles,L.IncludeVersionProperties,L.ExcludeNonValidated).withPage(1,1).withFilter(T.Target,"Microsoft.VisualStudio.Code").withFilter(T.ExcludeWithFlags,x(L.Unpublished)).withAssetTypes(A.Manifest,A.VSIX);return a=s?a.withFilter(T.ExtensionId,s):a.withFilter(T.ExtensionName,o),
this.queryGallery(a,C.CancellationToken.None).then(function(e){var r=e.galleryExtensions[0];if(!r||!r.versions.length)return null;if(t){var i=r.versions.filter(function(e){return e.version===t})[0];if(i){var o=D(r,i,0,a);if(o.properties.engine&&m.isEngineValid(o.properties.engine))return o}return null}return n.getLastValidExtensionVersion(r,r.versions).then(function(e){return e?D(r,e,0,a):null})})},e.prototype.query=function(e){var t=this;if(void 0===e&&(e={}),!this.isEnabled())return Promise.reject(new Error("No extension gallery service configured."));var n=e.names?"ids":e.text?"text":"all",r=e.text||"",i=f.getOrDefault(e,function(e){return e.pageSize},50);this.telemetryService.publicLog("galleryService:query",{type:n,text:r});var o=(new F).withFlags(L.IncludeLatestVersionOnly,L.IncludeAssetUri,L.IncludeStatistics,L.IncludeFiles,L.IncludeVersionProperties).withPage(1,i).withFilter(T.Target,"Microsoft.VisualStudio.Code").withFilter(T.ExcludeWithFlags,x(L.Unpublished))
;return r?((r=(r=(r=r.replace(/\bcategory:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,function(e,t,n){return o=o.withFilter(T.Category,n||t),""})).replace(/\btag:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,function(e,t,n){return o=o.withFilter(T.Tag,n||t),""})).trim())&&(r=r.length<200?r:r.substring(0,200),o=o.withFilter(T.SearchText,r)),o=o.withSortBy(0)):o=e.ids?o.withFilter.apply(o,[T.ExtensionId].concat(e.ids)):e.names?o.withFilter.apply(o,[T.ExtensionName].concat(e.names)):o.withSortBy(4),"number"==typeof e.sortBy&&(o=o.withSortBy(e.sortBy)),"number"==typeof e.sortOrder&&(o=o.withSortOrder(e.sortOrder)),this.queryGallery(o,C.CancellationToken.None).then(function(n){var r=n.galleryExtensions,i=n.total;return{firstPage:r.map(function(t,n){return D(t,t.versions[0],n,o,e.source)}),total:i,pageSize:o.pageSize,getPage:function(n,r){if(r.isCancellationRequested)return Promise.reject(u.canceled());var i=o.withPage(n+1);return t.queryGallery(i,r).then(function(t){return t.galleryExtensions.map(function(t,n){
return D(t,t.versions[0],n,i,e.source)})})}}})},e.prototype.queryGallery=function(e,t){var n=this;return this.isEnabled()?this.commonHeadersPromise.then(function(r){var i=JSON.stringify(e.raw),o=f.assign({},r,{"Content-Type":"application/json",Accept:"application/json;api-version=3.0-preview.1","Accept-Encoding":"gzip","Content-Length":i.length});return n.requestService.request({type:"POST",url:n.api("/extensionquery"),data:i,headers:o},t).then(function(e){return e.res.statusCode&&e.res.statusCode>=400&&e.res.statusCode<500?{galleryExtensions:[],total:0}:p.asJson(e).then(function(e){if(e){var t=e.results[0],n=t.extensions,r=t.resultMetadata&&t.resultMetadata.filter(function(e){return"ResultCount"===e.metadataType})[0];return{galleryExtensions:n,total:r&&r.metadataItems.filter(function(e){return"TotalCount"===e.name})[0].count||0}}return{galleryExtensions:[],total:0}})})}):Promise.reject(new Error("No extension gallery service configured."))},e.prototype.reportStatistic=function(e,t,n,r){var i=this
;return this.isEnabled()?this.commonHeadersPromise.then(function(s){var a=o({},s,{Accept:"*/*;api-version=4.0-preview.1"});return i.requestService.request({type:"POST",url:i.api("/publishers/"+e+"/extensions/"+t+"/"+n+"/stats?statType="+r),headers:a},C.CancellationToken.None).then(void 0,function(){})}):Promise.resolve(void 0)},e.prototype.download=function(e,t){var i=this;this.logService.trace("ExtensionGalleryService#download",e.identifier.id);var o=r.join(n.tmpdir(),w.generateUuid()),s=l.getGalleryExtensionTelemetryData(e),a=(new Date).getTime(),u=1===t?"install":2===t?"update":"",c=u?{uri:e.assets.download.uri+"&"+u+"=true",fallbackUri:e.assets.download.fallbackUri+"?"+u+"=true"}:e.assets.download;return this.getAsset(c).then(function(e){return p.download(o,e)}).then(function(){return function(e){return i.telemetryService.publicLog("galleryService:downloadVSIX",f.assign(s,{duration:e}))}((new Date).getTime()-a)}).then(function(){return o})},e.prototype.getReadme=function(e,t){
return e.assets.readme?this.getAsset(e.assets.readme,{},t).then(function(e){return p.asText(e)}).then(function(e){return e||""}):Promise.resolve("")},e.prototype.getManifest=function(e,t){return e.assets.manifest?this.getAsset(e.assets.manifest,{},t).then(p.asText).then(JSON.parse):Promise.resolve(null)},e.prototype.getCoreTranslation=function(e,t){var n=e.assets.coreTranslations[t.toUpperCase()];return n?this.getAsset(n).then(p.asText).then(JSON.parse):Promise.resolve(null)},e.prototype.getChangelog=function(e,t){return e.assets.changelog?this.getAsset(e.assets.changelog,{},t).then(function(e){return p.asText(e)}).then(function(e){return e||""}):Promise.resolve("")},e.prototype.loadAllDependencies=function(e,t){return this.getDependenciesReccursively(e.map(function(e){return e.id}),[],t)},e.prototype.getAllVersions=function(e,t){
var n=this,r=(new F).withFlags(L.IncludeVersions,L.IncludeFiles,L.IncludeVersionProperties,L.ExcludeNonValidated).withPage(1,1).withFilter(T.Target,"Microsoft.VisualStudio.Code").withFilter(T.ExcludeWithFlags,x(L.Unpublished));return r=e.identifier.uuid?r.withFilter(T.ExtensionId,e.identifier.uuid):r.withFilter(T.ExtensionName,e.identifier.id),this.queryGallery(r,C.CancellationToken.None).then(function(e){var r=e.galleryExtensions;return r.length?t?Promise.all(r[0].versions.map(function(e){return n.getEngine(e).then(function(t){return m.isEngineValid(t)?e:null})})).then(function(e){return e.filter(function(e){return!!e}).map(function(e){return{version:e.version,date:e.lastUpdated}})}):r[0].versions.map(function(e){return{version:e.version,date:e.lastUpdated}}):[]})},e.prototype.loadDependencies=function(e,t){var n;if(!e||0===e.length)return Promise.resolve([])
;var r=(n=(new F).withFlags(L.IncludeLatestVersionOnly,L.IncludeAssetUri,L.IncludeStatistics,L.IncludeFiles,L.IncludeVersionProperties).withPage(1,e.length).withFilter(T.Target,"Microsoft.VisualStudio.Code").withFilter(T.ExcludeWithFlags,x(L.Unpublished)).withAssetTypes(A.Icon,A.License,A.Details,A.Manifest,A.VSIX)).withFilter.apply(n,[T.ExtensionName].concat(e));return this.queryGallery(r,t).then(function(e){for(var t=[],n=[],i=0;i<e.galleryExtensions.length;i++){var o=e.galleryExtensions[i];-1===n.indexOf(o.extensionId)&&(t.push(D(o,o.versions[0],i,r,"dependencies")),n.push(o.extensionId))}return t})},e.prototype.getDependenciesReccursively=function(t,n,r){var o=this;return t&&t.length&&(t=n.length?t.filter(function(t){return!e.hasExtensionByName(n,t)}):t).length?this.loadDependencies(t,r).then(function(t){for(var s=new Set,a=0,u=t;a<u.length;a++){var c=u[a];c.properties.dependencies&&c.properties.dependencies.forEach(function(e){return s.add(e)})}n=i.distinct(n.concat(t),function(e){
return e.identifier.uuid});var l=[];return s.forEach(function(t){return!e.hasExtensionByName(n,t)&&l.push(t)}),o.getDependenciesReccursively(l,n,r)}):Promise.resolve(n)},e.prototype.getAsset=function(e,t,n){var r=this;return void 0===t&&(t={}),void 0===n&&(n=C.CancellationToken.None),this.commonHeadersPromise.then(function(i){var o=f.assign({},i,t.headers||{});t=f.assign({},t,{type:"GET"},{headers:o});var s=e.uri,a=e.fallbackUri,c=f.assign({},t,{url:s});return r.requestService.request(c,n).then(function(e){return 200===e.res.statusCode?Promise.resolve(e):p.asText(e).then(function(t){return Promise.reject(new Error("Expected 200, got back "+e.res.statusCode+" instead.\n\n"+t))})}).then(void 0,function(e){if(u.isPromiseCanceledError(e))return Promise.reject(e);var i=u.getErrorMessage(e);r.telemetryService.publicLog("galleryService:requestError",{url:s,cdn:!0,message:i}),r.telemetryService.publicLog("galleryService:cdnFallback",{url:s,message:i});var o=f.assign({},t,{url:a})
;return r.requestService.request(o,n).then(void 0,function(e){if(u.isPromiseCanceledError(e))return Promise.reject(e);var t=u.getErrorMessage(e);return r.telemetryService.publicLog("galleryService:requestError",{url:a,cdn:!1,message:t}),Promise.reject(e)})})})},e.prototype.getLastValidExtensionVersion=function(e,t){var n=this.getLastValidExtensionVersionFromProperties(e,t);return n||this.getLastValidExtensionVersionReccursively(e,t)},e.prototype.getLastValidExtensionVersionFromProperties=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n],o=k(i);if(!o)return null;if(m.isEngineValid(o))return Promise.resolve(i)}return null},e.prototype.getEngine=function(e){var t=k(e);if(t)return Promise.resolve(t);var n=O(e,A.Manifest);if(!n)return Promise.reject("Manifest was not found");return this.getAsset(n,{headers:{"Accept-Encoding":"gzip"}}).then(function(e){return p.asJson(e)}).then(function(e){return e?e.engines.vscode:Promise.reject("Error while reading manifest")})},
e.prototype.getLastValidExtensionVersionReccursively=function(e,t){var n=this;if(!t.length)return Promise.resolve(null);var r=t[0];return this.getEngine(r).then(function(i){return m.isEngineValid(i)?(r.properties=r.properties||[],r.properties.push({key:R.Engine,value:i}),r):n.getLastValidExtensionVersionReccursively(e,t.slice(1))})},e.hasExtensionByName=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.publisher+"."+i.name===t)return!0}return!1},e.prototype.getExtensionsReport=function(){return this.isEnabled()?this.extensionsControlUrl?this.requestService.request({type:"GET",url:this.extensionsControlUrl},C.CancellationToken.None).then(function(e){return 200!==e.res.statusCode?Promise.reject(new Error("Could not get extensions report.")):p.asJson(e).then(function(e){var t=new Map;if(e)for(var n=0,r=e.malicious;n<r.length;n++){var i=r[n],o=t.get(i)||{id:{id:i},malicious:!0,slow:!1};o.malicious=!0,t.set(i,o)}return Promise.resolve(E.values(t))})
}):Promise.resolve([]):Promise.reject(new Error("No extension gallery service configured."))},e=s([a(0,d.IRequestService),a(1,S.ILogService),a(2,y.IEnvironmentService),a(3,h.ITelemetryService)],e)}();t.ExtensionGalleryService=U,t.resolveMarketplaceHeaders=j}),define(e[78],t([0,1,9,35,69,20,11]),function(e,t,n,r,i,o,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var n=this;this.logService=t,this.disposables=[],this.configure(e.getValue()),e.onDidChangeConfiguration(function(){return n.configure(e.getValue())},this,this.disposables)}return e.prototype.configure=function(e){this.proxyUrl=e.http&&e.http.proxy,this.strictSSL=!(!e.http||!e.http.proxyStrictSSL),this.authorization=e.http&&e.http.proxyAuthorization},e.prototype.request=function(e,t,o){var s=this;void 0===o&&(o=r.request),this.logService.trace("RequestService#request",e.url);var a=this.proxyUrl,u=this.strictSSL;return(e.agent?Promise.resolve(e.agent):Promise.resolve(i.getProxyAgent(e.url||"",{
proxyUrl:a,strictSSL:u}))).then(function(r){return e.agent=r,e.strictSSL=u,s.authorization&&(e.headers=n.assign(e.headers||{},{"Proxy-Authorization":s.authorization})),o(e,t)})},e=s([a(0,o.IConfigurationService),a(1,u.ILogService)],e)}();t.RequestService=c}),define(e[64],t([0,1,81,78,6]),function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),n.prototype.request=function(n,r){return e.prototype.request.call(this,n,r,t.xhrRequest)},n}(r.RequestService);t.RequestService=s,t.xhrRequest=function(e,t){var r=new XMLHttpRequest;return new Promise(function(s,a){r.open(e.type||"GET",e.url||"",!0,e.user,e.password),function(e,t){if(t.headers)e:for(var n in t.headers){switch(n){case"User-Agent":case"Accept-Encoding":case"Content-Length":continue e}e.setRequestHeader(n,t.headers[n])}}(r,e),r.responseType="arraybuffer",r.onerror=function(e){return a(new Error(r.statusText&&"XHR failed: "+r.statusText))},
r.onload=function(e){s({res:{statusCode:r.status,headers:function(e){for(var t=Object.create(null),n=0,r=e.getAllResponseHeaders().split(/\r\n|\n|\r/g);n<r.length;n++){var i=r[n];if(i){var o=i.indexOf(":");t[i.substr(0,o).trim().toLowerCase()]=i.substr(o+1).trim()}}return t}(r)},stream:new(function(e){function t(t){var n=e.call(this)||this;return n._buffer=Buffer.from(new Uint8Array(t)),n._offset=0,n._length=n._buffer.length,n}return i(t,e),t.prototype._read=function(e){this._offset<this._length?(this.push(this._buffer.slice(this._offset,this._offset+e)),this._offset+=e):this.push(null)},t}(n.Readable))(r.response)})},r.ontimeout=function(t){return a(new Error("XHR timeout: "+e.timeout+"ms"))},e.timeout&&(r.timeout=e.timeout),r.send(e.data),t.onCancellationRequested(function(){r.abort(),a(o.canceled())})})}}),
define(e[126],t([0,1,21,7,19,28,99,39,45,80,15,92,66,33,116,100,20,102,36,64,37,106,109,110,105,107,111,113,127,91,85,11,84,95,40,82,73,47,2,108,49,46]),function(e,t,i,o,s,a,u,c,l,f,d,h,p,g,v,m,y,b,_,w,E,C,S,x,P,O,I,k,D,j,L,T,A,R,M,F,U,N,W,z,B,q){"use strict";function V(e){!function(e){n(this,void 0,void 0,function(){var t,n;return r(this,function(r){switch(r.label){case 0:return[4,new Promise(function(e){D.ipcRenderer.once("handshake:hey there",function(t,n){return e(n)}),D.ipcRenderer.send("handshake:hello")})];case 1:return t=r.sent(),[4,function(e){function t(n){return u.serve(e).then(null,function(r){return!n||o.isWindows||"EADDRINUSE"!==r.code?Promise.reject(r):u.connect(e,"").then(function(e){return e.dispose(),Promise.reject(new Error("There is an instance already running."))},function(n){try{i.unlinkSync(e)}catch(e){return Promise.reject(new Error("Error deleting the shared ipc hook."))}return t(!1)})})}return t(!0)}(t.sharedIPCHandle)];case 2:return n=r.sent(),function(e,t,n){
var r=new c.ServiceCollection,i=[],o=function(){return W.dispose(i)};process.once("exit",o),D.ipcRenderer.once("handshake:goodbye",o),i.push(e);var u=new h.EnvironmentService(t.args,process.execPath),V=new q.StaticRouter(function(e){return"main"===e}),G=new A.LogLevelSetterChannelClient(e.getChannel("loglevel",V)),$=new A.FollowerLogService(G,L.createSpdLogService("sharedprocess",t.logLevel,u.logsPath));i.push($),$.info("main",JSON.stringify(n)),r.set(d.IEnvironmentService,u),r.set(T.ILogService,$),r.set(y.IConfigurationService,new l.SyncDescriptor(b.ConfigurationService)),r.set(_.IRequestService,new l.SyncDescriptor(w.RequestService)),r.set(B.IDownloadService,new l.SyncDescriptor(z.DownloadService));var K=e.getChannel("windows",V),J=new k.WindowsChannelClient(K);r.set(I.IWindowsService,J);var Q=new I.ActiveWindowManager(J),X=new q.StaticRouter(function(e){return Q.getActiveClientId().then(function(t){return e===t})}),Y=e.getChannel("dialog",X);r.set(N.IDialogService,new U.DialogChannelClient(Y))
;var Z=new f.InstantiationService(r);Z.invokeFunction(function(r){var o=new c.ServiceCollection,u=r.get(d.IEnvironmentService),f=u.appRoot,h=u.extensionsPath,y=u.extensionDevelopmentLocationURI,b=u.isBuilt,_=u.installSourcePath,w=new A.FollowerLogService(G,L.createSpdLogService("telemetry",t.logLevel,u.logsPath));w.info("The below are logs for every telemetry event sent from VS Code once the log level is set to trace."),w.info("===========================================================");var I=C.NullAppender;if(y||u.args["disable-telemetry"]||!s.default.enableTelemetry)o.set(E.ITelemetryService,C.NullTelemetryService);else{s.default.aiConfig&&s.default.aiConfig.asimovKey&&b&&(I=new O.AppInsightsAppender(H,null,s.default.aiConfig.asimovKey,w),i.push(I));var k={appender:C.combinedAppender(I,new C.LogAppender($)),commonProperties:S.resolveCommonProperties(s.default.commit,a.default.version,n.machineId,_),piiPaths:[f,h]};o.set(E.ITelemetryService,new l.SyncDescriptor(P.TelemetryService,[k]))}
e.registerChannel("telemetryAppender",new x.TelemetryAppenderChannel(I)),o.set(g.IExtensionManagementService,new l.SyncDescriptor(v.ExtensionManagementService,[!1])),o.set(g.IExtensionGalleryService,new l.SyncDescriptor(m.ExtensionGalleryService)),o.set(M.ILocalizationsService,new l.SyncDescriptor(R.LocalizationsService));var D=Z.createChild(o);D.invokeFunction(function(t){var n=t.get(g.IExtensionManagementService),r=new p.ExtensionManagementChannel(n,function(){return null});e.registerChannel("extensions",r),n.removeDeprecatedExtensions();var o=t.get(M.ILocalizationsService),s=new F.LocalizationsChannel(o);e.registerChannel("localizations",s),j.createSharedProcessContributions(D),i.push(n)})})}(n,t,e),D.ipcRenderer.send("handshake:im ready"),[2]}})})}(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.startup=V;var H="monacoworkbench"})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/bb1e228e30ce43ebb361c84fdf2f0d4fb7fda6ce/core/vs/code/electron-browser/sharedProcess/sharedProcessMain.js.map
