/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["require","exports","vs/base/common/event","vs/base/common/platform","vs/base/common/lifecycle","vs/base/common/strings","vs/base/common/errors","vs/platform/instantiation/common/instantiation","vs/base/common/types","vs/base/common/async","path","vs/base/common/uri","vs/base/common/arrays","vs/nls!vs/code/electron-browser/issue/issueReporterMain","vs/platform/log/common/log","vs/base/common/amd","os","vs/base/browser/browser","vs/platform/registry/common/platform","vs/base/common/objects","vs/base/common/uuid","vs/base/parts/ipc/node/ipc","vs/css!vs/code/electron-browser/issue/issueReporterMain","vs/nls","vs/base/common/decorators","vs/base/common/paths","vs/base/browser/dom","vs/base/common/collections","vs/base/browser/keyboardEvent","vs/platform/configuration/common/configuration","vs/base/common/map","vs/base/common/functional","fs","vs/platform/instantiation/common/serviceCollection","vs/base/common/cancellation","vs/platform/node/package","vs/platform/node/product","vs/base/common/iterator","vs/platform/configuration/common/configurationRegistry","vs/base/node/pfs","vs/base/browser/event","vs/base/node/encoding","vs/platform/workspaces/common/workspaces","vs/platform/windows/common/windows","vs/platform/telemetry/node/telemetryIpc","vs/base/node/extfs","vs/base/common/date","vs/base/common/keyCodes","vs/base/common/color","vs/base/common/linkedList","vs/base/parts/ipc/node/ipc.electron","vs/base/parts/ipc/electron-browser/ipc.electron-browser","electron","vs/base/parts/ipc/node/ipc.net","vs/platform/telemetry/node/commonProperties","vs/code/electron-browser/issue/issueReporterModel","vs/code/electron-browser/issue/issueReporterUtil","vs/css!vs/base/browser/ui/button/button","vs/base/common/assert","vs/base/browser/ui/button/button","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons-animations","vs/base/browser/ui/octiconLabel/octiconLabel","vs/css!vs/code/electron-browser/issue/media/issueReporter","vs/nls!vs/code/electron-browser/issue/issueReporterPage","vs/base/browser/mouseEvent","vs/base/browser/iframe","vs/code/electron-browser/issue/issueReporterPage","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/telemetry/common/telemetryService","vs/nls!vs/platform/workspaces/common/workspaces","vs/platform/instantiation/common/descriptors","vs/platform/instantiation/common/graph","vs/base/common/glob","vs/base/common/mime","vs/platform/instantiation/common/instantiationService","vs/base/common/normalization","vs/platform/log/node/logIpc","vs/platform/log/node/spdlogService","vs/base/browser/touch","vs/base/node/flow","vs/platform/environment/node/environmentService","vs/platform/telemetry/common/telemetryUtils","vs/platform/windows/node/windowsIpc","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/base/node/paths","vs/base/node/stream","vs/platform/telemetry/common/telemetryService","crypto","net","stream","child_process","iconv-lite","assert","vs/code/electron-browser/issue/issueReporterMain"],t=function(t){
for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[66],t([0,1]),function(e,t){"use strict";function n(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return i=!0,null}catch(e){return i=!0,null}return e.parent}function r(e,t){for(var n,r=e.document.getElementsByTagName("iframe"),i=0,o=r.length;i<o;i++)if((n=r[i]).contentWindow===t)return n;return null}Object.defineProperty(t,"__esModule",{value:!0});var i=!1,o=null,s=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!o){o=[];var e,t=window;do{(e=n(t))?o.push({window:t,iframeElement:r(e,t)}):o.push({window:t,iframeElement:null}),t=e}while(t)}return o.slice(0)},e.hasDifferentOriginAncestor=function(){return o||this.getSameOriginWindowChain(),i},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,r=0,i=0,o=this.getSameOriginWindowChain();i<o.length;i++){var s=o[i]
;if(s.window===t)break;if(!s.iframeElement)break;var a=s.iframeElement.getBoundingClientRect();n+=a.top,r+=a.left}return{top:n,left:r}},e}();t.IframeUtils=s}),define(e[58],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[27],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[48],t([0,1]),function(e,t){"use strict";function n(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,i){void 0===i&&(i=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,r)),this.a=n(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},e}();t.RGBA=r;var i=function(){function e(e,t,r,i){this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,r),0),3),this.a=n(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,r=t.g/255,i=t.b/255,o=t.a,s=Math.max(n,r,i),a=Math.min(n,r,i),u=0,c=0,l=(a+s)/2,f=s-a;if(f>0){switch(c=Math.min(l<=.5?f/(2*l):f/(2-2*l),1),s){
case n:u=(r-i)/f+(r<i?6:0);break;case r:u=(i-n)/f+2;break;case i:u=(n-r)/f+4}u*=60,u=Math.round(u)}return new e(u,c,l,o)},e._hue2rgb=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,i,o,s=t.h/360,a=t.s,u=t.l,c=t.a;if(0===a)n=i=o=u;else{var l=u<.5?u*(1+a):u+a-u*a,f=2*u-l;n=e._hue2rgb(f,l,s+1/3),i=e._hue2rgb(f,l,s),o=e._hue2rgb(f,l,s-1/3)}return new r(Math.round(255*n),Math.round(255*i),Math.round(255*o),c)},e}();t.HSLA=i;var o=function(){function e(e,t,r,i){this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,r),0),3),this.a=n(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n,r=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(r,i,o),a=s-Math.min(r,i,o),u=0===s?0:a/s;return n=0===a?0:s===r?((i-o)/a%6+6)%6:s===i?(o-r)/a+2:(r-i)/a+4,new e(Math.round(60*n),u,s,t.a)},e.toRGBA=function(e){
var t=e.h,n=e.s,i=e.v,o=e.a,s=i*n,a=s*(1-Math.abs(t/60%2-1)),u=i-s,c=[0,0,0],l=c[0],f=c[1],d=c[2];return t<60?(l=s,f=a):t<120?(l=a,f=s):t<180?(f=s,d=a):t<240?(f=a,d=s):t<300?(l=a,d=s):t<360&&(l=s,d=a),l=Math.round(255*(l+u)),f=Math.round(255*(f+u)),d=Math.round(255*(d+u)),new r(l,f,d,o)},e}();t.HSVA=o;var s=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof i)this._hsla=e,this.rgba=i.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:i.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){
return!!e&&r.equals(this.rgba,e.rgba)&&i.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return n(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.getContrastRatio=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},e.prototype.isDarker=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3<128},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()<e.getRelativeLuminance()},e.prototype.lighten=function(t){
return new e(new i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))},e.prototype.darken=function(t){return new e(new i(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))},e.prototype.transparent=function(t){var n=this.rgba,i=n.r,o=n.g,s=n.b,a=n.a;return new e(new r(i,o,s,a*t))},e.prototype.isTransparent=function(){return 0===this.rgba.a},e.prototype.isOpaque=function(){return 1===this.rgba.a},e.prototype.opposite=function(){return new e(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},e.prototype.blend=function(t){var n=t.rgba,i=this.rgba.a,o=n.a,s=i+o*(1-i);if(s<1e-6)return e.transparent;var a=this.rgba.r*i/s+n.r*o*(1-i)/s,u=this.rgba.g*i/s+n.g*o*(1-i)/s,c=this.rgba.b*i/s+n.b*o*(1-i)/s;return new e(new r(a,u,c,s))},e.prototype.flatten=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.reduceRight(function(t,n){return e._flatten(n,t)});return e._flatten(this,r)},e._flatten=function(t,n){var i=1-t.rgba.a
;return new e(new r(i*n.rgba.r+t.rgba.a*t.rgba.r,i*n.rgba.g+t.rgba.a*t.rgba.g,i*n.rgba.b+t.rgba.a*t.rgba.b))},e.prototype.toString=function(){return""+e.Format.CSS.format(this)},e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)},e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)},e.white=new e(new r(255,255,255,1)),e.black=new e(new r(0,0,0,1)),e.red=new e(new r(255,0,0,1)),e.blue=new e(new r(0,0,255,1)),e.green=new e(new r(0,255,0,1)),e.cyan=new e(new r(0,255,255,1)),e.lightgrey=new e(new r(211,211,211,1)),e.transparent=new e(new r(0,0,0,0)),e}();t.Color=s,function(e){!function(t){!function(t){function n(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:
return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")":e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"},t.formatHSL=function(t){return 1===t.hsla.a?"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)":e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"},t.formatHex=function(e){return"#"+n(e.rgba.r)+n(e.rgba.g)+n(e.rgba.b)},t.formatHexA=function(t,r){return void 0===r&&(r=!1),r&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#"+n(t.rgba.r)+n(t.rgba.g)+n(t.rgba.b)+n(Math.round(255*t.rgba.a))},t.format=function(t){
return t?t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t):null},t.parseHex=function(t){if(!t)return null;var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var o=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),a=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(o,s,a,1))}if(9===n){var o=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),a=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),u=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(o,s,a,u/255))}if(4===n){var o=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),a=i(t.charCodeAt(3));return new e(new r(16*o+o,16*s+s,16*a+a))}if(5===n){var o=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),a=i(t.charCodeAt(3)),u=i(t.charCodeAt(4));return new e(new r(16*o+o,16*s+s,16*a+a,(16*u+u)/255))}return null}}(t.CSS||(t.CSS={}))}(e.Format||(e.Format={}))}(s=t.Color||(t.Color={})),t.Color=s}),define(e[24],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[12],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[31],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[37],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[47],t([0,1]),function(e,t){"use strict";function n(e,t){var n=!!(2048&e),r=!!(256&e);return new u(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",
e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",
e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",
e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(t.KeyCode||(t.KeyCode={}));var r=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),i=new r,o=new r,s=new r;!function(){function e(e,t,n,r){void 0===n&&(n=t),void 0===r&&(r=n),i.define(e,t),o.define(e,n),s.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),
e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),
e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}();!function(e){e.toString=function(e){return i.keyCodeToStr(e)},e.fromString=function(e){return i.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return s.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||s.strToKeyCode(e)}}(t.KeyCodeUtils||(t.KeyCodeUtils={}));var a;!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl",
e[e.KeyCode=255]="KeyCode"}(a||(a={}));!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl"}(t.KeyMod||(t.KeyMod={})),t.KeyChord=function(e,t){return(e|(65535&t)<<16>>>0)>>>0},t.createKeybinding=function(e,t){if(0===e)return null;var r=(65535&e)>>>0,i=(4294901760&e)>>>16;return 0!==i?new c(n(r,t),n(i,t)):n(r,t)},t.createSimpleKeybinding=n;!function(e){e[e.Simple=1]="Simple",e[e.Chord=2]="Chord"}(t.KeybindingType||(t.KeybindingType={}));var u=function(){function e(e,t,n,r,i){this.type=1,this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}return e.prototype.equals=function(e){return 1===e.type&&(this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode)},e.prototype.getHashCode=function(){return""+(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},e.prototype.isModifierKey=function(){
return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}();t.SimpleKeybinding=u;var c=function(){function e(e,t){this.type=2,this.firstPart=e,this.chordPart=t}return e.prototype.getHashCode=function(){return this.firstPart.getHashCode()+";"+this.chordPart.getHashCode()},e}();t.ChordKeybinding=c;var l=function(){return function(e,t,n,r,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=o}}();t.ResolvedKeybindingPart=l;var f=function(){return function(){}}();t.ResolvedKeybinding=f}),define(e[4],t([0,1,31]),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[49],t([0,1,37]),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[2],t([0,1,6,31,4,49]),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 v=function(){function e(){this.buffers=[]}
return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach(function(e){return e()}),n},e}();t.EventBufferer=v;var g=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=g}),define(e[17],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=0,this._onDidChangeFullscreen=new n.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this._accessibilitySupport=0,this._onDidChangeAccessibilitySupport=new n.Emitter,this.onDidChangeAccessibilitySupport=this._onDidChangeAccessibilitySupport.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.setZoomLevel=function(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))},e.prototype.getZoomFactor=function(){return this._zoomFactor},
e.prototype.setZoomFactor=function(e){this._zoomFactor=e},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},e.prototype.setFullscreen=function(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())},e.prototype.isFullscreen=function(){return this._fullscreen},e.prototype.setAccessibilitySupport=function(e){this._accessibilitySupport!==e&&(this._accessibilitySupport=e,this._onDidChangeAccessibilitySupport.fire())},e.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},e.INSTANCE=new e,e}();t.setZoomLevel=function(e,t){r.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return r.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()},
t.onDidChangeZoomLevel=function(e){return r.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return r.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){r.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return r.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){r.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return r.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=r.INSTANCE.onDidChangeFullscreen,t.setAccessibilitySupport=function(e){r.INSTANCE.setAccessibilitySupport(e)},t.getAccessibilitySupport=function(){return r.INSTANCE.getAccessibilitySupport()},t.onDidChangeAccessibilitySupport=function(e){return r.INSTANCE.onDidChangeAccessibilitySupport(e)};var i=navigator.userAgent;t.isIE=i.indexOf("Trident")>=0,t.isEdge=i.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=i.indexOf("Opera")>=0,t.isFirefox=i.indexOf("Firefox")>=0,t.isWebKit=i.indexOf("AppleWebKit")>=0,t.isChrome=i.indexOf("Chrome")>=0,t.isSafari=!t.isChrome&&i.indexOf("Safari")>=0,
t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,t.isIPad=i.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&i.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){var e=i.indexOf("Edge/"),n=parseInt(i.substring(e+5,i.indexOf(".",e)),10);if(!n||n>=12&&n<=16)return!1}return!0}}),define(e[40],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=function(e,t,r){var i=function(e){return o.fire(e)},o=new n.Emitter({onFirstListenerAdd:function(){e.addEventListener(t,i,r)},onLastListenerRemove:function(){e.removeEventListener(t,i,r)}});return o.event},t.stop=function(e){return n.Event.map(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}}),define(e[34],t([0,1,2]),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[9],t([0,1,34,6,2,4]),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 v=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=v;var g=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=g,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[3],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 v=0;o&&(r?v=1:n?v=3:i&&(v=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s,t.platform=v,t.isRootUser=function(){return o&&!n&&0===process.getuid()},t.language=u,t.locale=a,t.translationsConfigFile=c;var g="object"==typeof self?self:"object"==typeof global?global:{};t.globals=g;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[28],t([0,1,17,47,3]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=new Array(230),s=new Array(112);!function(){function e(e,t){o[e]=t,s[t]=e}for(var t=0;t<s.length;t++)s[t]=-1;e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),
e(99,96),e(100,97),e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),n.isIE?e(91,57):n.isFirefox?(e(59,80),e(107,81),e(109,83),i.isMacintosh&&e(224,57)):n.isWebKit&&(e(91,57),i.isMacintosh?e(93,57):e(92,57))}(),t.getCodeForKeyCode=function(e){return s[e]};var a=i.isMacintosh?256:2048,u=i.isMacintosh?2048:256,c=function(){function e(e){var t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase()
;return r.KeyCodeUtils.fromString(t)}return o[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=u),t|=e},
e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}();t.StandardKeyboardEvent=c}),define(e[65],t([0,1,17,66,3]),function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop)
;var t=r.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}return e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}();t.StandardMouseEvent=s;var a=function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n}return i(t,e),t}(s);t.DragMouseEvent=a;var u=function(){function e(e,t,r){if(void 0===t&&(t=0),void 0===r&&(r=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=r,this.deltaX=t,e){var i=e,s=e;void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==s.VERTICAL_AXIS&&s.axis===s.VERTICAL_AXIS&&(this.deltaY=-s.detail/3),
void 0!==i.wheelDeltaX?n.isSafari&&o.isWindows?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120:void 0!==s.HORIZONTAL_AXIS&&s.axis===s.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}();t.StandardWheelEvent=u}),define(e[26],t([0,1,17,40,28,65,9,6,2,4,3,12]),function(e,t,n,r,o,s,a,u,c,l,f,d){"use strict";function h(e,t,n,r){return new k(e,t,n,r)}function p(e){if(!D){D=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e((new Date).getTime())},0)}}return D.call(self,e)}function v(e){
return document.defaultView.getComputedStyle(e,null)}function g(e,t,n){var r=v(e),i="0";return r&&(i=r.getPropertyValue?r.getPropertyValue(t):r.getAttribute(n)),R(e,i)}function m(e){for(var t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var i=v(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(r+=M.getBorderLeftWidth(e),n+=M.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function y(e){var t=M.getMarginLeft(e)+M.getMarginRight(e);return e.offsetWidth+t}function b(e){var t=M.getMarginLeft(e)+M.getMarginRight(e);return e.scrollWidth+t}function _(e,t){var n=t.map(function(t){return Math.max(b(t),y(t))+function(e,t){if(null===e)return 0;var n=m(e),r=m(t);return n.left-r.left}(t,e)||0});return Math.max.apply(Math,n)}function w(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function E(e){void 0===e&&(e=document.getElementsByTagName("head")[0])
;var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}function C(){return F||(F=E()),F}function S(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=function(e,t){for(;e;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}Object.defineProperty(t,"__esModule",{value:!0}),t.clearNode=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.removeNode=function(e){e.parentNode&&e.parentNode.removeChild(e)},t.isInDOM=function(e){for(;e;){if(e===document.body)return!0;e=e.parentNode}return!1};var P=new(function(){function e(){}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var r=n.length,i=t.length;if(0!==i)if(r<i)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=r);for(var o,s=-1;(s=n.indexOf(t,s+1))>=0;){if(o=s+i,
(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(o))return this._lastStart=s,void(this._lastEnd=o+1);if(s>0&&32===n.charCodeAt(s-1)&&o===r)return this._lastStart=s-1,void(this._lastEnd=o);if(0===s&&o===r)return this._lastStart=0,void(this._lastEnd=o)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.removeClasses=function(e){
for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),x=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},e.prototype.addClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.removeClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})},
e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),O=n.isIE?P:x;t.hasClass=O.hasClass.bind(O),t.addClass=O.addClass.bind(O),t.addClasses=O.addClasses.bind(O),t.removeClass=O.removeClass.bind(O),t.removeClasses=O.removeClasses.bind(O),t.toggleClass=O.toggleClass.bind(O);var k=function(){function e(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._useCapture=r||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)},e}();t.addDisposableListener=h,t.addStandardDisposableListener=function(e,t,n,r){var i=n;return"click"===t||"mousedown"===t?i=function(e){return function(t){return e(new s.StandardMouseEvent(t))}}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(i=function(e){return function(t){return e(new o.StandardKeyboardEvent(t))}}(n)),h(e,t,i,r)},
t.addDisposableNonBubblingMouseOutListener=function(e,t){return h(e,"mouseout",function(n){for(var r=n.relatedTarget||n.target;r&&r!==e;)r=r.parentNode;r!==e&&t(n)})};var D=null,I=function(){function e(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){u.onUnexpectedError(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();!function(){var e=[],n=null,r=!1,i=!1,o=function(){for(r=!1,n=e,e=[],i=!0;n.length>0;){n.sort(I.sort);n.shift().execute()}i=!1};t.scheduleAtNextAnimationFrame=function(t,n){void 0===n&&(n=0);var i=new I(t,n);return e.push(i),r||(r=!0,p(o)),i},t.runAtThisOrScheduleAtNextAnimationFrame=function(e,r){if(i){var o=new I(e,r);return n.push(o),o}return t.scheduleAtNextAnimationFrame(e,r)}}(),t.measure=function(e){return t.scheduleAtNextAnimationFrame(e,1e4)},t.modify=function(e){return t.scheduleAtNextAnimationFrame(e,-1e4)}
;var L=16,T=function(e,t){return t},A=function(e){function t(t,n,r,i,o){void 0===i&&(i=T),void 0===o&&(o=L);var s=e.call(this)||this,u=null,c=0,l=s._register(new a.TimeoutTimer),f=function(){c=(new Date).getTime(),r(u),u=null};return s._register(h(t,n,function(e){u=i(u,e);var t=(new Date).getTime()-c;t>=o?(l.cancel(),f()):l.setIfNotSet(f,o-t)})),s}return i(t,e),t}(l.Disposable);t.addDisposableThrottledListener=function(e,t,n,r,i){return new A(e,t,n,r,i)},t.getComputedStyle=v;var R=function(e,t){return parseFloat(t)||0};t.getClientArea=function(e){if(e!==document.body)return new N(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new N(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new N(document.body.clientWidth,document.body.clientHeight)
;if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new N(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};var M={getBorderLeftWidth:function(e){return g(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return g(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return g(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return g(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return g(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return g(e,"padding-right","paddingRight")},getPaddingTop:function(e){return g(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return g(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return g(e,"margin-left","marginLeft")},getMarginTop:function(e){return g(e,"margin-top","marginTop")},
getMarginRight:function(e){return g(e,"margin-right","marginRight")},getMarginBottom:function(e){return g(e,"margin-bottom","marginBottom")},__commaSentinel:!1},N=function(){function e(e,t){this.width=e,this.height=t}return e.equals=function(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)},e}();t.Dimension=N,t.getTopLeftOffset=m,t.size=function(e,t,n){"number"==typeof t&&(e.style.width=t+"px"),"number"==typeof n&&(e.style.height=n+"px")},t.position=function(e,t,n,r,i,o){void 0===o&&(o="absolute"),"number"==typeof t&&(e.style.top=t+"px"),"number"==typeof n&&(e.style.right=n+"px"),"number"==typeof r&&(e.style.bottom=r+"px"),"number"==typeof i&&(e.style.left=i+"px"),e.style.position=o},t.getDomNodePagePosition=function(e){var n=e.getBoundingClientRect();return{left:n.left+t.StandardWindow.scrollX,top:n.top+t.StandardWindow.scrollY,width:n.width,height:n.height}},t.StandardWindow=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){
return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}()),t.getTotalWidth=y,t.getContentWidth=function(e){var t=M.getBorderLeftWidth(e)+M.getBorderRightWidth(e),n=M.getPaddingLeft(e)+M.getPaddingRight(e);return e.offsetWidth-t-n},t.getTotalScrollWidth=b,t.getContentHeight=function(e){var t=M.getBorderTopWidth(e)+M.getBorderBottomWidth(e),n=M.getPaddingTop(e)+M.getPaddingBottom(e);return e.offsetHeight-t-n},t.getTotalHeight=function(e){var t=M.getMarginTop(e)+M.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=_,t.isAncestor=w,t.findParentWithClass=function(e,n,r){for(;e;){if(t.hasClass(e,n))return e;if(r)if("string"==typeof r){if(t.hasClass(e,r))return null}else if(e===r)return null;e=e.parentNode}
return null},t.createStyleSheet=E;var F=null;t.createCSSRule=function(e,t,n){void 0===n&&(n=C()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},t.removeCSSRulesContainingSelector=function(e,t){if(void 0===t&&(t=C()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),r=[],i=0;i<n.length;i++)-1!==n[i].selectorText.indexOf(e)&&r.push(i);for(i=r.length-1;i>=0;i--)t.sheet.deleteRule(r[i])}},t.isHTMLElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",
CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:n.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode};var j=function(){function e(e){var n=this;this._onDidFocus=new c.Emitter,this.onDidFocus=this._onDidFocus.event,
this._onDidBlur=new c.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var i=w(document.activeElement,e),o=!1;r.domEvent(e,t.EventType.FOCUS,!0)(function(){o=!1,i||(i=!0,n._onDidFocus.fire())},null,this.disposables),r.domEvent(e,t.EventType.BLUR,!0)(function(){i&&(o=!0,window.setTimeout(function(){o&&(o=!1,i=!1,n._onDidBlur.fire())},0))},null,this.disposables)}return e.prototype.dispose=function(){this.disposables=l.dispose(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();t.trackFocus=function(e){return new j(e)},t.append=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return e.appendChild(t)}),t[t.length-1]},t.prepend=function(e,t){return e.insertBefore(t,e.firstChild),t};var W=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;t.$=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=W.exec(e);if(!i)throw new Error("Bad use of emmet");var o=document.createElement(i[1]||"div")
;return i[3]&&(o.id=i[3]),i[4]&&(o.className=i[4].replace(/\./g," ").trim()),t=t||{},Object.keys(t).forEach(function(e){var n=t[e];/^on\w+$/.test(e)?o[e]=n:"selected"===e?n&&o.setAttribute(e,"true"):o.setAttribute(e,n)}),d.coalesce(n).forEach(function(e){e instanceof Node?o.appendChild(e):o.appendChild(document.createTextNode(e))}),o},t.join=function(e,t){var n=[];return e.forEach(function(e,r){r>0&&(t instanceof Node?n.push(t.cloneNode()):n.push(document.createTextNode(t))),n.push(e)}),n},t.show=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="",i.removeAttribute("aria-hidden")}},t.hide=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="none",i.setAttribute("aria-hidden","true")}},t.removeTabIndexAndUpdateFocus=S,t.getElementsByTagName=function(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)},t.finalHandler=function(e){
return function(t){t.preventDefault(),t.stopPropagation(),e(t)}},t.domContentLoaded=function(){return new Promise(function(e){"complete"===document.readyState||document&&null!==document.body?f.setImmediate(e):window.addEventListener("DOMContentLoaded",e,!1)})},t.computeScreenAwareSize=function(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio},t.windowOpenNoOpener=function(e){if(f.isNative||n.isEdgeWebView)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}},t.animate=function(e){var n=function(){e(),r=t.scheduleAtNextAnimationFrame(n)},r=t.scheduleAtNextAnimationFrame(n);return l.toDisposable(function(){return r.dispose()})}});var o=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};define(e[79],t([0,1,12,4,26,24]),function(e,t,n,r,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u;!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(u=t.EventType||(t.EventType={}));var c=function(e){function t(){var t=e.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(s.addDisposableListener(document,"touchstart",function(e){return t.onTouchStart(e)})),t._register(s.addDisposableListener(document,"touchend",function(e){return t.onTouchEnd(e)})),t._register(s.addDisposableListener(document,"touchmove",function(e){return t.onTouchMove(e)})),t}return i(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},
t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n<r;n++){var i=e.targetTouches.item(n);this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:t,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[t],rollingPageX:[i.pageX],rollingPageY:[i.pageY]};var o=this.newGestureEvent(u.Start,i.target);o.pageX=i.pageX,o.pageY=i.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.onTouchEnd=function(e){for(var r=Date.now(),i=Object.keys(this.activeTouches).length,o=function(o,a){var c=e.changedTouches.item(o);if(!s.activeTouches.hasOwnProperty(String(c.identifier)))return console.warn("move of an UNKNOWN touch",c),"continue";var l=s.activeTouches[c.identifier],f=Date.now()-l.initialTimeStamp
;if(f<t.HOLD_DELAY&&Math.abs(l.initialPageX-n.tail(l.rollingPageX))<30&&Math.abs(l.initialPageY-n.tail(l.rollingPageY))<30){(d=s.newGestureEvent(u.Tap,l.initialTarget)).pageX=n.tail(l.rollingPageX),d.pageY=n.tail(l.rollingPageY),s.dispatchEvent(d)}else if(f>=t.HOLD_DELAY&&Math.abs(l.initialPageX-n.tail(l.rollingPageX))<30&&Math.abs(l.initialPageY-n.tail(l.rollingPageY))<30){var d=s.newGestureEvent(u.Contextmenu,l.initialTarget);d.pageX=n.tail(l.rollingPageX),d.pageY=n.tail(l.rollingPageY),s.dispatchEvent(d)}else if(1===i){var h=n.tail(l.rollingPageX),p=n.tail(l.rollingPageY),v=n.tail(l.rollingTimestamps)-l.rollingTimestamps[0],g=h-l.rollingPageX[0],m=p-l.rollingPageY[0],y=s.targets.filter(function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)});s.inertia(y,r,Math.abs(g)/v,g>0?1:-1,h,Math.abs(m)/v,m>0?1:-1,p)}s.dispatchEvent(s.newGestureEvent(u.End,l.initialTarget)),delete s.activeTouches[c.identifier]},s=this,a=0,c=e.changedTouches.length;a<c;a++)o(a)
;this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n},t.prototype.dispatchEvent=function(e){var t=this;this.targets.forEach(function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)})},t.prototype.inertia=function(e,n,r,i,o,a,c,l){var f=this;this.handle=s.scheduleAtNextAnimationFrame(function(){var s=Date.now(),d=s-n,h=0,p=0,v=!0;a+=t.SCROLL_FRICTION*d,(r+=t.SCROLL_FRICTION*d)>0&&(v=!1,h=i*r*d),a>0&&(v=!1,p=c*a*d);var g=f.newGestureEvent(u.Change);g.translationX=h,g.translationY=p,e.forEach(function(e){return e.dispatchEvent(g)}),v||f.inertia(e,s,r,i,o+h,a,c,l+p)})},t.prototype.onTouchMove=function(e){for(var t=Date.now(),r=0,i=e.changedTouches.length;r<i;r++){var o=e.changedTouches.item(r);if(this.activeTouches.hasOwnProperty(String(o.identifier))){
var s=this.activeTouches[o.identifier],a=this.newGestureEvent(u.Change,s.initialTarget);a.translationX=o.pageX-n.tail(s.rollingPageX),a.translationY=o.pageY-n.tail(s.rollingPageY),a.pageX=o.pageX,a.pageY=o.pageY,this.dispatchEvent(a),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(o.pageX),s.rollingPageY.push(o.pageY),s.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,o([a.memoize],t,"isTouchDevice",null),t}(r.Disposable);t.Gesture=c}),define(e[5],t([0,1]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;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 v=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return v.test(e)};var g=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return g.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[46],t([0,1,5]),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[25],t([0,1,3,5]),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="",v=c.length;v<=r;v++)if(v===r||i(e.charCodeAt(v))){if(a(e,l,v,"..")){var g=p.lastIndexOf(s),m=p.slice(g+1);(c||m.length>0)&&".."!==m&&(p=-1===g?"":p.slice(0,g),f=!0)}else a(e,l,v,".")&&(c||p||v<r-1)&&(f=!0);if(!f){var y=e.slice(l,v);""!==p&&p[p.length-1]!==s&&(p+=s),p+=y}l=v+1,f=!1}return c+p}function 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,v=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(p.lastIndex=0,p.test(e)||n.isWindows&&v.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length))},t.isEqual=function(e,t,n){var i=e===t;return!n||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,n,i,o){if(void 0===o&&(o=t.nativeSep),e===n)return!0;if(!e||!n)return!1;if(n.length>e.length)return!1;if(i){if(!r.startsWithIgnoreCase(e,n))return!1;if(n.length===e.length)return!0;var s=n.length;return n.charAt(n.length-1)===o&&s--,e.charAt(s)===o}return n.charAt(n.length-1)!==o&&(n+=o),0===e.indexOf(n)},t.isAbsolute=function(e){return n.isWindows?c(e):l(e)},t.isAbsolute_win32=c,t.isAbsolute_posix=l,t.isWindowsDriveLetter=f}),
define(e[8],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[19],t([0,1,8]),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[11],t([0,1,3]),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=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,v=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 g(t,n,r,i,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=p.exec(e);return n?new g(n[2]||d,decodeURIComponent(n[4]||d),decodeURIComponent(n[5]||d),decodeURIComponent(n[7]||d),decodeURIComponent(n[9]||d),t):new g(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 g("file",t,e,d,d)},e.from=function(e){return new g(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 g(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.URI=v;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return i(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=o(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1}
;return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(v),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[15],t([0,1,11]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.URI.parse(e.toUrl(t)).fsPath}}),define(e[30],t([0,1,11,37]),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[73],t([0,1,12,5,25,30,9]),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 v=p[h];if("}"!==v&&s)l+=v;else if(!f||"]"===v&&d)switch(v){case"{":s=!0;continue;case"[":f=!0;continue;case"}":var g="(?:"+u(l,",").map(function(e){return c(e)}).join("|")+")";t+=g,s=!1,l="";break;case"]":t+="["+d+"]",f=!1,d="";break;case"?":t+=w;continue;case"*":t+=a(1);continue;default:t+=r.escapeRegExpCharacters(v)}else{d+="-"===v?v:"^"!==v&&"!"!==v||d?v===b?"":r.escapeRegExpCharacters(v):"^"}}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 L;var i
;i="string"!=typeof e?e.pattern:e;var o=(i=i.trim())+"_"+!!t.trimForExclusions,s=D.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?x:P).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!==L}),e),i=r.length;if(!i)return L;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=k.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 L}}(i);return D.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 I;if("string"==typeof e||g(e)){var r=l(e,t);if(r===L)return I;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 L;var r=l(e,n);if(r===L)return L;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!==L})),o=r.length;if(!o)return L;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 v(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function g(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\.-]+)\/?$/,P=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,x=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,O=/^\*\*((\/[\w\.-]+)+)\/?$/,k=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,D=new o.LRUCache(1e4),I=function(){return!1},L=function(){return null};t.match=function(e,t,n){return!(!e||!t)&&p(e)(t,void 0,n)},t.parse=p,t.hasSiblingPromiseFn=function(e){if(e){var t;return function(n){return t||(t=(e()||Promise.resolve([])).then(function(e){return e?v(e):{}})),t.then(function(e){return!!e[n]})}}},t.hasSiblingFn=function(e){if(e){var t;return function(n){if(!t){var r=e();t=r?v(r):{}}return!!t[n]}}},t.isRelativePattern=g,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[74],t([0,1,25,5,12,73]),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[76],t([0,1,30]),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[20],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[80],t([0,1,93]),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[85],t([0,1,15]),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[86],t([0,1,32]),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[41],t([0,1,86,92,3,91,90]),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<=v.indexOf(r)?null:d(n.encoding)})}function d(e){var t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return g[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,v=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=f;var g={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[45],t([0,1,32,10,9,76,3,5,20,41,80,4]),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)})};v(t,511&a.mode).then(u,u)})}function v(e,t,o){var s=function(){return i.nfcall(n.mkdir,e,t).then(void 0,function(t){return"ENOENT"===t.code?Promise.reject(t):i.nfcall(n.stat,e).then(function(t){return t.isDirectory()?null:Promise.reject(new Error("'"+e+"' exists and is not a directory."))},function(e){return Promise.reject(t)})})};return e===r.dirname(e)?Promise.resolve(!0):s().then(void 0,function(n){return o&&o.isCancellationRequested?Promise.resolve(!1):"ENOENT"===n.code?v(r.dirname(e),t).then(s):Promise.reject(n)})}function g(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){g(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=v,t.del=function(e,t,i,o){n.exists(e,function(s){if(!s)return i(null);n.stat(e,function(s,c){if(s||!c)return i(s);if("."===e[e.length-1]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return g(e,i);var l=r.join(t,u.generateUuid());n.rename(e,l,function(t){if(t)return g(e,i);i(null),g(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);g(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[39],t([0,1,45,10,9,32,16,3,2]),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 v(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 g(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=v,t.readDirsInDir=function(e){return c(e).then(function(t){return Promise.all(t.map(function(t){return g(r.join(e,t))})).then(function(e){return t.filter(function(t,n){return e[n]})})})},t.dirExists=g,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[21],t([0,1,4,2,9,34,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 v.Undefined:return;case v.String:return e.read(l(e)).toString();case v.Buffer:return e.read(l(e));case v.Array:for(var t=l(e),n=[],r=0;r<t;r++)n.push(d(e));return n;case v.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 v,g=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"}(v||(v={}));var y={Undefined:Buffer.alloc(1,v.Undefined),String:Buffer.alloc(1,v.String),Buffer:Buffer.alloc(1,v.Buffer),Array:Buffer.alloc(1,v.Array),Object:Buffer.alloc(1,v.Object)},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 g(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 g(e),n=d(t),r=d(t);switch(n[0]){case 200:return this.onResponse({type:n[0]});case 201:case 202:case 204:case 203:return this.onResponse({type:n[0],id:n[1],data:r})}},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 g(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[50],t([0,1,4,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=this;this.sender=e,this._onMessage=new r.Emitter,t(function(e){return n._onMessage.fire(Buffer.from(e,"base64"))})}return Object.defineProperty(e.prototype,"onMessage",{get:function(){return this._onMessage.event},enumerable:!0,configurable:!0}),e.prototype.send=function(e){try{this.sender.send("ipc:message",e.toString("base64"))}catch(e){}},e.prototype.dispose=function(){this.sender.send("ipc:disconnect",null),this.listener=n.dispose(this.listener)},e}();t.Protocol=i}),define(e[51],t([0,1,2,21,50,52]),function(e,t,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(n){var r=this,i=t.createProtocol();return r=e.call(this,i,n)||this,r.protocol=i,r}return i(t,e),t.createProtocol=function(){
var e=n.Event.fromNodeEventEmitter(s.ipcRenderer,"ipc:message",function(e,t){return t});return s.ipcRenderer.send("ipc:hello"),new o.Protocol(s.ipcRenderer,e)},t.prototype.dispose=function(){this.protocol.dispose()},t}(r.IPCClient);t.Client=a}),define(e[53],t([0,1,89,2,21,10,16,20,9]),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[55],t([0,1,19]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t={issueType:0,includeSystemInfo:!0,includeWorkspaceInfo:!0,includeProcessInfo:!0,includeExtensions:!0,includeSearchedExtensions:!0,includeSettingsSearchDetails:!0,allExtensions:[]};this._data=e?n.assign(t,e):t}return e.prototype.getData=function(){return this._data},e.prototype.update=function(e){n.assign(this._data,e)},e.prototype.serialize=function(){
return"\nIssue Type: <b>"+this.getIssueTypeTitle()+"</b>\n\n"+this._data.issueDescription+"\n"+this.getExtensionVersion()+"\nVS Code version: "+(this._data.versionInfo&&this._data.versionInfo.vscodeVersion)+"\nOS version: "+(this._data.versionInfo&&this._data.versionInfo.os)+"\n\n"+this.getInfos()+"\n\x3c!-- generated by issue reporter --\x3e"},e.prototype.fileOnExtension=function(){return!(!(0===this._data.issueType||1===this._data.issueType||2===this._data.issueType)||!this._data.fileOnExtension)},e.prototype.getExtensionVersion=function(){return this.fileOnExtension()&&this._data.selectedExtension?"\nExtension version: "+this._data.selectedExtension.version:""},e.prototype.getIssueTypeTitle=function(){return 0===this._data.issueType?"Bug":1===this._data.issueType?"Performance Issue":3===this._data.issueType?"Settings Search Issue":"Feature Request"},e.prototype.getInfos=function(){var e=""
;return 0!==this._data.issueType&&1!==this._data.issueType||this._data.includeSystemInfo&&this._data.systemInfo&&(e+=this.generateSystemInfoMd()),1===this._data.issueType&&(this._data.includeProcessInfo&&(e+=this.generateProcessInfoMd()),this._data.includeWorkspaceInfo&&(e+=this.generateWorkspaceInfoMd())),0!==this._data.issueType&&1!==this._data.issueType||this._data.includeExtensions&&(e+=this.generateExtensionsMd()),3===this._data.issueType&&(this._data.includeSearchedExtensions&&(e+=this.generateExtensionsMd()),this._data.includeSettingsSearchDetails&&(e+=this.generateSettingSearchResultsMd(),e+="\n"+this.generateSettingsSearchResultDetailsMd())),e},e.prototype.generateSystemInfoMd=function(){var e=this,t="<details>\n<summary>System Info</summary>\n\n|Item|Value|\n|---|---|\n";return Object.keys(this._data.systemInfo).forEach(function(n){var r="object"==typeof e._data.systemInfo[n]?Object.keys(e._data.systemInfo[n]).map(function(t){return t+": "+e._data.systemInfo[n][t]
}).join("<br>"):e._data.systemInfo[n];t+="|"+n+"|"+r+"|\n"}),t+="\n</details>"},e.prototype.generateProcessInfoMd=function(){return"<details>\n<summary>Process Info</summary>\n\n```\n"+this._data.processInfo+"\n```\n\n</details>\n"},e.prototype.generateWorkspaceInfoMd=function(){return"<details>\n<summary>Workspace Info</summary>\n\n```\n"+this._data.workspaceInfo+";\n```\n\n</details>\n"},e.prototype.generateExtensionsMd=function(){if(this._data.extensionsDisabled)return"Extensions disabled";var e=this._data.numberOfThemeExtesions?"\n("+this._data.numberOfThemeExtesions+" theme extensions excluded)":"";if(!this._data.enabledNonThemeExtesions)return"Extensions: none"+e;var t=this._data.enabledNonThemeExtesions.map(function(e){return e.name+"|"+e.publisher.substr(0,3)+"|"+e.version}).join("\n");return"<details><summary>Extensions ("+this._data.enabledNonThemeExtesions.length+")</summary>\n\nExtension|Author (truncated)|Version\n---|---|---\n"+t+"\n"+e+"\n\n</details>"},
e.prototype.generateSettingsSearchResultDetailsMd=function(){return"\nQuery: "+this._data.query+"\nLiteral matches: "+this._data.filterResultCount},e.prototype.generateSettingSearchResultsMd=function(){if(!this._data.actualSearchResults)return"";if(!this._data.actualSearchResults.length)return"No fuzzy results";return"<details><summary>Results</summary>\n\nSetting|Extension|Score\n---|---|---\n"+this._data.actualSearchResults.map(function(e){return e.key+"|"+e.extensionId+"|"+String(e.score).slice(0,5)}).join("\n")+"\n\n</details>"},e}();t.IssueReporterModel=r}),define(e[56],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeGitHubUrl=function(e){return n.endsWith(e,".git")&&(e=e.substr(0,e.length-4)),e=n.rtrim(e,"/"),n.endsWith(e,"/new")&&(e=n.rtrim(e,"/new")),n.endsWith(e,"/issues")&&(e=n.rtrim(e,"/issues")),e}}),define(e[57],t([22]),{}),define(e[59],t([0,1,26,28,48,19,2,4,79,57]),function(e,t,n,r,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});var l={buttonBackground:o.Color.fromHex("#0E639C"),buttonHoverBackground:o.Color.fromHex("#006BB3"),buttonForeground:o.Color.white},f=function(e){function t(t,i){var o=e.call(this)||this;return o._onDidClick=o._register(new a.Emitter),o.options=i||Object.create(null),s.mixin(o.options,l,!1),o.buttonBackground=o.options.buttonBackground,o.buttonHoverBackground=o.options.buttonHoverBackground,o.buttonForeground=o.options.buttonForeground,o.buttonBorder=o.options.buttonBorder,o._element=document.createElement("a"),n.addClass(o._element,"monaco-button"),o._element.tabIndex=0,o._element.setAttribute("role","button"),t.appendChild(o._element),c.Gesture.addTarget(o._element),[n.EventType.CLICK,c.EventType.Tap].forEach(function(e){o._register(n.addDisposableListener(o._element,e,function(e){o.enabled?o._onDidClick.fire(e):n.EventHelper.stop(e)}))}),o._register(n.addDisposableListener(o._element,n.EventType.KEY_DOWN,function(e){var t=new r.StandardKeyboardEvent(e),i=!1
;o.enabled&&t.equals(3)||t.equals(10)?(o._onDidClick.fire(e),i=!0):t.equals(9)&&(o._element.blur(),i=!0),i&&n.EventHelper.stop(t,!0)})),o._register(n.addDisposableListener(o._element,n.EventType.MOUSE_OVER,function(e){n.hasClass(o._element,"disabled")||o.setHoverBackground()})),o._register(n.addDisposableListener(o._element,n.EventType.MOUSE_OUT,function(e){o.applyStyles()})),o.focusTracker=o._register(n.trackFocus(o._element)),o._register(o.focusTracker.onDidFocus(function(){return o.setHoverBackground()})),o._register(o.focusTracker.onDidBlur(function(){return o.applyStyles()})),o.applyStyles(),o}return i(t,e),Object.defineProperty(t.prototype,"onDidClick",{get:function(){return this._onDidClick.event},enumerable:!0,configurable:!0}),t.prototype.setHoverBackground=function(){var e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null;e&&(this._element.style.backgroundColor=e)},t.prototype.style=function(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,
this.buttonHoverBackground=e.buttonHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this._element){var e=this.buttonBackground?this.buttonBackground.toString():null,t=this.buttonForeground?this.buttonForeground.toString():null,n=this.buttonBorder?this.buttonBorder.toString():null;this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=n?"1px":null,this._element.style.borderStyle=n?"solid":null,this._element.style.borderColor=n}},Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{set:function(e){n.hasClass(this._element,"monaco-text-button")||n.addClass(this._element,"monaco-text-button"),this._element.textContent=e,this.options.title&&(this._element.title=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){n.addClass(this._element,e)},enumerable:!0,configurable:!0
}),Object.defineProperty(t.prototype,"enabled",{get:function(){return!n.hasClass(this._element,"disabled")},set:function(e){e?(n.removeClass(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(n.addClass(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!0)),n.removeTabIndexAndUpdateFocus(this._element))},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._element.focus()},t}(u.Disposable);t.Button=f;var d=function(e){function t(t,n,r){var i=e.call(this)||this;return i._buttons=[],i.create(t,n,r),i}return i(t,e),Object.defineProperty(t.prototype,"buttons",{get:function(){return this._buttons},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,i){for(var o=this,s=function(s){var u=a._register(new f(e,i));a._buttons.push(u),t>1&&a._register(n.addDisposableListener(u.element,n.EventType.KEY_DOWN,function(e){var t,i=new r.StandardKeyboardEvent(e),a=!0
;i.equals(15)?t=s>0?s-1:o._buttons.length-1:i.equals(17)?t=s===o._buttons.length-1?0:s+1:a=!1,a&&"number"==typeof t&&(o._buttons[t].focus(),n.EventHelper.stop(e,!0))}))},a=this,u=0;u<t;u++)s(u)},t}(u.Disposable);t.ButtonGroup=d}),define(e[60],t([22]),{}),define(e[61],t([22]),{}),define(e[62],t([0,1,5,60,61]),function(e,t,n){"use strict";function r(e){return function(e){return e.replace(/\$\(((.+?)(~(.*?))?)\)/g,function(e,t,n,r,i){return'<span class="octicon octicon-'+n+" "+(i?"octicon-animation-"+i:"")+'"></span>'})}(n.escape(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.renderOcticons=r;var i=function(){function e(e){this._container=e}return Object.defineProperty(e.prototype,"text",{set:function(e){this._container.innerHTML=r(e||"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._container.title=e},enumerable:!0,configurable:!0}),e}();t.OcticonLabel=i}),define(e[63],t([22]),{}),define(e[64],t([23,13]),function(e,t){
return e.create("vs/code/electron-browser/issue/issueReporterPage",t)}),define(e[67],t([0,1,5,64]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){
return'\n<div id="issue-reporter">\n\t<div id="english" class="input-group hidden">'+n.escape(r.localize(0,null))+'</div>\n\n\t<div class="section">\n\t\t<div class="input-group">\n\t\t\t<label class="inline-label" for="issue-type">'+n.escape(r.localize(1,null))+'</label>\n\t\t\t<select id="issue-type" class="inline-form-control">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</select>\n\t\t</div>\n\n\t\t<div class="input-group" id="problem-source">\n\t\t\t<label class="inline-label" for="issue-source">'+n.escape(r.localize(2,null))+'</label>\n\t\t\t<select id="issue-source" class="inline-form-control">\n\t\t\t\t<option value="false">'+n.escape(r.localize(3,null))+'</option>\n\t\t\t\t<option value="true">'+n.escape(r.localize(4,null))+'</option>\n\t\t\t</select>\n\t\t\t<div id="problem-source-help-text" class="instructions">'+n.escape(r.localize(5,null)).replace("{0}",'<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">'+n.escape(r.localize(6,null))+"</span>")+'\n\t\t\t</div>\n\n\t\t\t<div id="extension-selection">\n\t\t\t\t<label class="inline-label" for="extension-selector">'+n.escape(r.localize(7,null))+' <span class="required-input">*</span></label>\n\t\t\t\t<select id="extension-selector" class="inline-form-control">\n\t\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</select>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="input-group">\n\t\t\t<label class="inline-label" for="issue-title">'+n.escape(r.localize(8,null))+' <span class="required-input">*</span></label>\n\t\t\t<input id="issue-title" type="text" class="inline-form-control" placeholder="'+n.escape(r.localize(9,null))+'" required>\n\t\t\t<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">'+n.escape(r.localize(10,null))+'</div>\n\t\t\t<small id="similar-issues">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</small>\n\t\t</div>\n\n\t</div>\n\n\t<div class="input-group description-section">\n\t\t<label for="description" id="issue-description-label">\n\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t</label>\n\t\t<div class="instructions" id="issue-description-subtitle">\n\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t</div>\n\t\t<div class="block-info-text">\n\t\t\t<textarea name="description" id="description" placeholder="'+n.escape(r.localize(11,null))+'" required></textarea>\n\t\t</div>\n\t</div>\n\n\t<div class="system-info" id="block-container">\n\t\t<div class="block block-system">\n\t\t\t<input class="sendData" type="checkbox" id="includeSystemInfo" checked/>\n\t\t\t<label class="caption" for="includeSystemInfo">'+n.escape(r.localize(12,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(13,null))+"</a>")+'</label>\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-process">\n\t\t\t<input class="sendData" type="checkbox" id="includeProcessInfo" checked/>\n\t\t\t<label class="caption" for="includeProcessInfo">'+n.escape(r.localize(14,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(15,null))+"</a>")+'</label>\n\t\t\t<pre class="block-info hidden">\n\t\t\t\t<code>\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</code>\n\t\t\t</pre>\n\t\t</div>\n\t\t<div class="block block-workspace">\n\t\t\t<input class="sendData" type="checkbox" id="includeWorkspaceInfo" checked/>\n\t\t\t<label class="caption" for="includeWorkspaceInfo">'+n.escape(r.localize(16,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(17,null))+"</a>")+'</label>\n\t\t\t<pre id="systemInfo" class="block-info hidden">\n\t\t\t\t<code>\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</code>\n\t\t\t</pre>\n\t\t</div>\n\t\t<div class="block block-extensions">\n\t\t\t<input class="sendData" type="checkbox" id="includeExtensions" checked/>\n\t\t\t<label class="caption" for="includeExtensions">'+n.escape(r.localize(18,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(19,null))+"</a>")+'</label>\n\t\t\t<div id="systemInfo" class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-searchedExtensions">\n\t\t\t<input class="sendData" type="checkbox" id="includeSearchedExtensions" checked/>\n\t\t\t<label class="caption" for="includeSearchedExtensions">'+n.escape(r.localize(20,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(21,null))+"</a>")+'</label>\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-settingsSearchResults">\n\t\t\t<input class="sendData" type="checkbox" id="includeSettingsSearchDetails" checked/>\n\t\t\t<label class="caption" for="includeSettingsSearchDetails">'+n.escape(r.localize(22,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(23,null))+"</a>")+'</label>\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'
}}),define(e[68],t([23,13]),function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)}),define(e[69],t([23,13]),function(e,t){return e.create("vs/platform/telemetry/common/telemetryService",t)}),define(e[70],t([23,13]),function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)}),define(e[71],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[72],t([0,1,8,27]),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[7],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[33],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[75],t([0,1,6,8,72,71,7,33]),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 v={id:h.id,desc:p,_trace:l._trace.branch(h.id,!0)};i.insertEdge(l,v),c.push(v)}}}for(;;){var g=i.roots();if(0===g.length){i.isEmpty()||r();break}for(var m=0,y=g;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[14],t([0,1,7,4,3,2]),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[77],t([0,1,14,2]),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[78],t([0,1,10,14]),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[35],t([0,1,10,15]),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[36],t([0,1,10,15]),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[81],t([0,1,88,85,16,10,24,35,36,46,3,15,11]),function(e,t,n,r,i,s,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 s.join(_,"vscode-"+r+"-"+u.default.version+"-"+t+".sock")}return s.join(e,u.default.version+"-"+t+".sock")}(e,t)}function v(e,t){
return m(e.debugPluginHost,e.debugBrkPluginHost,5870,t,e.debugId)}function g(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=s.resolve(e);return s.normalize(e)===n?n:s.resolve(t.env.VSCODE_CWD||t.cwd(),e)}}function b(e,t){return y(e["user-data-dir"],t)||s.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=s.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 s.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?s.join(s.dirname(e),"bin",c.default.applicationName+".cmd"):s.join(t,"scripts","code-cli.bat"):f.isLinux?n?s.join(s.dirname(e),"bin",""+c.default.applicationName):s.join(t,"scripts","code-cli.sh"):n?s.join(t,"bin","code"):s.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?s.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 s.join(this.userDataPath,"User")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appSettingsPath",{get:function(){return s.join(this.appSettingsHome,"settings.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"globalStorageHome",{get:function(){return s.join(this.appSettingsHome,"globalStorage")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"workspaceStorageHome",{get:function(){return s.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 s.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 s.join(this.userDataPath,"Backups")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backupWorkspacesPath",{get:function(){return s.join(this.backupHome,"workspaces.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"workspacesHome",{get:function(){return s.join(this.userDataPath,"Workspaces")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"installSourcePath",{get:function(){return s.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||s.normalize(s.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?s.join(n,"extensions"):s.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(s.normalize(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensionTestsPath",{get:function(){return this._args.extensionTestsPath?s.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 v(this._args,this.isBuilt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debugSearch",{get:function(){return g(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}),o([a.memoize],t.prototype,"appRoot",null),o([a.memoize],t.prototype,"cliPath",null),o([a.memoize],t.prototype,"userHome",null),o([a.memoize],t.prototype,"userDataPath",null),o([a.memoize],t.prototype,"appSettingsHome",null),o([a.memoize],t.prototype,"appSettingsPath",null),o([a.memoize],t.prototype,"globalStorageHome",null),o([a.memoize],t.prototype,"workspaceStorageHome",null),o([a.memoize],t.prototype,"settingsSearchBuildId",null),
o([a.memoize],t.prototype,"settingsSearchUrl",null),o([a.memoize],t.prototype,"appKeybindingsPath",null),o([a.memoize],t.prototype,"isExtensionDevelopment",null),o([a.memoize],t.prototype,"backupHome",null),o([a.memoize],t.prototype,"backupWorkspacesPath",null),o([a.memoize],t.prototype,"workspacesHome",null),o([a.memoize],t.prototype,"installSourcePath",null),o([a.memoize],t.prototype,"builtinExtensionsPath",null),o([a.memoize],t.prototype,"extensionsPath",null),o([a.memoize],t.prototype,"extensionDevelopmentLocationURI",null),o([a.memoize],t.prototype,"extensionTestsPath",null),o([a.memoize],t.prototype,"debugExtensionHost",null),o([a.memoize],t.prototype,"debugSearch",null),o([a.memoize],t.prototype,"mainIPCHandle",null),o([a.memoize],t.prototype,"sharedIPCHandle",null),o([a.memoize],t.prototype,"nodeCachedDataDir",null),t}();t.EnvironmentService=w,t.parseExtensionHostPort=v,t.parseSearchPort=g,t.parseDebugPort=m,t.parseUserDataDir=b}),define(e[18],t([0,1,8,58]),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[84],t([0,1,18,2]),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[38],t([0,1,68,2,18,8,5,84]),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!==v.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 v=0,g=p;v<g.length;v++){var m=g[v]
;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 v=new f;i.Registry.add(t.Extensions.Configuration,v),t.validateProperty=c,t.getScopes=function(){for(var e={},t=v.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[29],t([0,1,19,8,11,18,7,38]),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+"]"}});var s=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};define(e[87],t([0,1,69,5,7,29,38,4,19,18]),function(e,t,n,r,i,a,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=o([s(1,i.optional(a.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[82],t([0,1,74,25,29,14]),function(e,t,n,r,i,a){"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=o([s(0,a.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[54],t([0,1,3,16,20,39]),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[44],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[43],t([0,1,7,2,3,4]),function(e,t,n,r,i,a){"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=a.dispose(this.disposables)},e=o([s(0,t.IWindowsService)],e)}();t.ActiveWindowManager=u}),define(e[42],t([0,1,7,70,11]),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[83],t([0,1,2,42,11]),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[94],t([0,1,52,13,26,27,17,5,36,35,16,24,3,4,51,21,53,33,43,82,87,44,75,54,83,81,55,67,78,77,14,62,56,59,63]),function(e,t,n,r,s,a,u,c,l,f,d,h,p,v,g,m,y,b,_,w,E,C,S,P,x,O,k,D,I,L,T,A,R,M){"use strict";function N(e){e.classList.add("hidden")}function F(e){e.classList.remove("hidden")}Object.defineProperty(t,"__esModule",{value:!0});var j=p.isWindows?2081:5400;t.startup=function(e){document.body.innerHTML=D.default(),new W(e).render(),
document.body.style.display="block"};var W=function(e){function t(t){var r=e.call(this)||this;r.numberOfSearchResultsDisplayed=0,r.receivedSystemInfo=!1,r.receivedPerformanceInfo=!1,r.shouldQueueSearch=!1,r.hasBeenSubmitted=!1,r.updateSystemInfo=function(e){var t=document.querySelector(".block-system .block-info");if(t){var n="";Object.keys(e.systemInfo).forEach(function(t){var r="object"==typeof e.systemInfo[t]?Object.keys(e.systemInfo[t]).map(function(n){return n+": "+e.systemInfo[t][n]}).join("<br>"):e.systemInfo[t];n+="\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>"+t+"</td>\n\t\t\t\t\t\t<td>"+r+"</td>\n\t\t\t\t\t</tr>"}),t.innerHTML="<table>"+n+"</table>"}},r.updateProcessInfo=function(e){var t=document.querySelector(".block-process .block-info");t&&(t.innerHTML="<code>"+e.processInfo+"</code>")},r.updateWorkspaceInfo=function(e){document.querySelector(".block-workspace .block-info code").textContent="\n"+e.workspaceInfo},r.initServices(t),r.issueReporterModel=new k.IssueReporterModel({issueType:t.data.issueType||0,
versionInfo:{vscodeVersion:f.default.name+" "+f.default.version+" ("+(l.default.commit||"Commit unknown")+", "+(l.default.date||"Date unknown")+")",os:d.type()+" "+d.arch()+" "+d.release()},extensionsDisabled:!!r.environmentService.disableExtensions});var i=r.getElementById("issue-reporter");return i&&(r.previewButton=new M.Button(i)),n.ipcRenderer.on("vscode:issuePerformanceInfoResponse",function(e,t){r.logService.trace("issueReporter: Received performance data"),r.issueReporterModel.update(t),r.receivedPerformanceInfo=!0;var n=r.issueReporterModel.getData();r.updateProcessInfo(n),r.updateWorkspaceInfo(n),r.updatePreviewButtonState()}),n.ipcRenderer.on("vscode:issueSystemInfoResponse",function(e,t){r.logService.trace("issueReporter: Received system data"),r.issueReporterModel.update({systemInfo:t}),r.receivedSystemInfo=!0,r.updateSystemInfo(r.issueReporterModel.getData()),r.updatePreviewButtonState()}),n.ipcRenderer.send("vscode:issueSystemInfoRequest"),
1===t.data.issueType&&n.ipcRenderer.send("vscode:issuePerformanceInfoRequest"),r.logService.trace("issueReporter: Sent data requests"),"en"!==window.document.documentElement.lang&&F(r.getElementById("english")),r.setUpTypes(),r.setEventHandlers(),r.applyZoom(t.data.zoomLevel),r.applyStyles(t.data.styles),r.handleExtensionData(t.data.enabledExtensions),3===t.data.issueType&&r.handleSettingsSearchData(t.data),r}return i(t,e),t.prototype.render=function(){this.renderBlocks()},t.prototype.applyZoom=function(e){n.webFrame.setZoomLevel(e),u.setZoomFactor(n.webFrame.getZoomFactor()),u.setZoomLevel(n.webFrame.getZoomLevel(),!1)},t.prototype.applyStyles=function(e){var t=document.createElement("style"),n=[];e.inputBackground&&n.push('input[type="text"], textarea, select, .issues-container > .issue > .issue-state, .block-info { background-color: '+e.inputBackground+"; }"),
e.inputBorder?n.push('input[type="text"], textarea, select { border: 1px solid '+e.inputBorder+"; }"):n.push('input[type="text"], textarea, select { border: 1px solid transparent; }'),e.inputForeground&&n.push('input[type="text"], textarea, select, .issues-container > .issue > .issue-state, .block-info { color: '+e.inputForeground+"; }"),e.inputErrorBorder&&(n.push(".invalid-input, .invalid-input:focus { border: 1px solid "+e.inputErrorBorder+" !important; }"),n.push(".validation-error, .required-input { color: "+e.inputErrorBorder+"; }")),e.inputActiveBorder&&n.push("input[type='text']:focus, textarea:focus, select:focus, summary:focus, button:focus, a:focus, .workbenchCommand:focus  { border: 1px solid "+e.inputActiveBorder+"; outline-style: none; }"),e.textLinkColor&&n.push("a, .workbenchCommand { color: "+e.textLinkColor+"; }"),e.textLinkColor&&n.push("a { color: "+e.textLinkColor+"; }"),e.textLinkActiveForeground&&n.push("a:hover, .workbenchCommand:hover { color: "+e.textLinkActiveForeground+"; }"),
e.sliderBackgroundColor&&n.push("::-webkit-scrollbar-thumb { background-color: "+e.sliderBackgroundColor+"; }"),e.sliderActiveColor&&n.push("::-webkit-scrollbar-thumb:active { background-color: "+e.sliderActiveColor+"; }"),e.sliderHoverColor&&n.push("::--webkit-scrollbar-thumb:hover { background-color: "+e.sliderHoverColor+"; }"),e.buttonBackground&&n.push(".monaco-text-button { background-color: "+e.buttonBackground+" !important; }"),e.buttonForeground&&n.push(".monaco-text-button { color: "+e.buttonForeground+" !important; }"),e.buttonHoverBackground&&n.push(".monaco-text-button:hover, .monaco-text-button:focus { background-color: "+e.buttonHoverBackground+" !important; }"),t.innerHTML=n.join("\n"),document.head.appendChild(t),document.body.style.color=e.color||null},t.prototype.handleExtensionData=function(e){var t=a.groupBy(e,function(e){return e.isTheme?"themes":"nonThemes"}),n=t.nonThemes,r=t.themes,i=r&&r.length;this.issueReporterModel.update({numberOfThemeExtesions:i,enabledNonThemeExtesions:n,
allExtensions:e}),this.updateExtensionTable(n,i),(this.environmentService.disableExtensions||0===e.length)&&(this.getElementById("disableExtensions").disabled=!0),this.updateExtensionSelector(e)},t.prototype.handleSettingsSearchData=function(e){this.issueReporterModel.update({actualSearchResults:e.actualSearchResults,query:e.query,filterResultCount:e.filterResultCount}),this.updateSearchedExtensionTable(e.enabledExtensions),this.updateSettingsSearchDetails(e)},t.prototype.updateSettingsSearchDetails=function(e){var t=document.querySelector(".block-settingsSearchResults .block-info");if(t){var n="\n\t\t\t<div class='block-settingsSearchResults-details'>\n\t\t\t\t<div>Query: \""+e.query+'"</div>\n\t\t\t\t<div>Literal match count: '+e.filterResultCount+"</div>\n\t\t\t</div>\n\t\t\t",r="\n\t\t\t\t<tr>\n\t\t\t\t\t<th>Setting</th>\n\t\t\t\t\t<th>Extension</th>\n\t\t\t\t\t<th>Score</th>\n\t\t\t\t</tr>";e.actualSearchResults.forEach(function(e){
r+="\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>"+e.key+"</td>\n\t\t\t\t\t\t\t<td>"+e.extensionId+"</td>\n\t\t\t\t\t\t\t<td>"+String(e.score).slice(0,5)+"</td>\n\t\t\t\t\t\t</tr>"}),t.innerHTML=n+"<table>"+r+"</table>"}},t.prototype.initServices=function(e){var t=this,n=new b.ServiceCollection,r=new g.Client(String("window"+e.windowId)),i=r.getChannel("windows");n.set(_.IWindowsService,new x.WindowsChannelClient(i)),this.environmentService=new O.EnvironmentService(e,e.execPath);var o=I.createSpdLogService("issuereporter"+e.windowId,T.getLogLevel(this.environmentService),this.environmentService.logsPath),s=new L.LogLevelSetterChannelClient(r.getChannel("loglevel"));this.logService=new L.FollowerLogService(s,o);var a=n.get(_.IWindowsService).whenSharedProcessReady().then(function(){return y.connect(t.environmentService.sharedIPCHandle,"window:"+e.windowId)}),u=new S.InstantiationService(n,!0)
;if(this.environmentService.isExtensionDevelopment||this.environmentService.args["disable-telemetry"]||!l.default.enableTelemetry)this.telemetryService=w.NullTelemetryService;else{var c=m.getDelayedChannel(a.then(function(e){return e.getChannel("telemetryAppender")})),d={appender:w.combinedAppender(new C.TelemetryAppenderClient(c),new w.LogAppender(o)),commonProperties:P.resolveCommonProperties(l.default.commit||"Commit unknown",f.default.version,e.machineId,this.environmentService.installSourcePath),piiPaths:[this.environmentService.appRoot,this.environmentService.extensionsPath]},h=u.createInstance(E.TelemetryService,d);this._register(h),this.telemetryService=h}},t.prototype.setEventHandlers=function(){function e(e){n.ipcRenderer.send("vscode:workbenchCommand",{id:e,from:"issueReporter"})}var t=this;this.addEventListener("issue-type","change",function(e){var r=parseInt(e.target.value);t.issueReporterModel.update({issueType:r}),
1!==r||t.receivedPerformanceInfo||n.ipcRenderer.send("vscode:issuePerformanceInfoRequest"),t.updatePreviewButtonState(),t.render()}),["includeSystemInfo","includeProcessInfo","includeWorkspaceInfo","includeExtensions","includeSearchedExtensions","includeSettingsSearchDetails"].forEach(function(e){t.addEventListener(e,"click",function(n){var r;n.stopPropagation(),t.issueReporterModel.update((r={},r[e]=!t.issueReporterModel.getData()[e],r))})});for(var i=document.getElementsByClassName("showInfo"),o=0;o<i.length;o++){i.item(o).addEventListener("click",function(e){e.preventDefault();var t=e.target;if(t){var n=t.parentElement&&t.parentElement.parentElement,i=n&&n.lastElementChild;i&&i.classList.contains("hidden")?(F(i),t.textContent=r.localize(0,null)):(N(i),t.textContent=r.localize(1,null))}})}this.addEventListener("issue-source","change",function(e){var n=JSON.parse(e.target.value);t.issueReporterModel.update({fileOnExtension:n,includeExtensions:!n}),t.render();var r=t.getElementById("issue-title").value
;if(n)t.searchExtensionIssues(r);else{var i=t.issueReporterModel.getData().issueDescription;t.searchVSCodeIssues(r,i)}}),this.addEventListener("description","input",function(e){var n=e.target.value;if(t.issueReporterModel.update({issueDescription:n}),!t.issueReporterModel.fileOnExtension()){var r=t.getElementById("issue-title").value;t.searchVSCodeIssues(r,n)}}),this.addEventListener("issue-title","input",function(e){var n=e.target.value,r=t.getElementById("issue-title-length-validation-error");if(n&&t.getIssueUrlWithTitle(n).length>j?F(r):N(r),t.issueReporterModel.fileOnExtension())t.searchExtensionIssues(n);else{var i=t.issueReporterModel.getData().issueDescription;t.searchVSCodeIssues(n,i)}}),this.previewButton.onDidClick(function(){return t.createIssue()}),this.addEventListener("disableExtensions","click",function(){e("workbench.action.reloadWindowWithExtensionsDisabled")}),this.addEventListener("disableExtensions","keydown",function(t){t.stopPropagation(),
13!==t.keyCode&&32!==t.keyCode||(e("workbench.extensions.action.disableAll"),e("workbench.action.reloadWindow"))}),document.onkeydown=function(e){var r=p.isMacintosh?e.metaKey:e.ctrlKey;if(r&&13===e.keyCode&&t.createIssue()&&n.ipcRenderer.send("vscode:closeIssueReporter"),r&&87===e.keyCode){e.stopPropagation(),e.preventDefault();var i=t.getElementById("issue-title").value,o=t.issueReporterModel.getData().issueDescription;t.hasBeenSubmitted||!i&&!o?n.ipcRenderer.send("vscode:closeIssueReporter"):n.ipcRenderer.send("vscode:issueReporterConfirmClose")}r&&187===e.keyCode&&t.applyZoom(n.webFrame.getZoomLevel()+1),r&&189===e.keyCode&&t.applyZoom(n.webFrame.getZoomLevel()-1),p.isMacintosh&&r&&65===e.keyCode&&e.target&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)&&e.target.select()}},t.prototype.updatePreviewButtonState=function(){this.isPreviewEnabled()?(this.previewButton.label=r.localize(2,null),this.previewButton.enabled=!0):(this.previewButton.enabled=!1,
this.previewButton.label=r.localize(3,null))},t.prototype.isPreviewEnabled=function(){var e=this.issueReporterModel.getData().issueType;return!(0!==e||!this.receivedSystemInfo)||(!(1!==e||!this.receivedSystemInfo||!this.receivedPerformanceInfo)||(2===e||3===e))},t.prototype.getExtensionRepositoryUrl=function(){var e=this.issueReporterModel.getData().selectedExtension;return e&&e.repositoryUrl},t.prototype.getExtensionBugsUrl=function(){var e=this.issueReporterModel.getData().selectedExtension;return e&&e.bugsUrl},t.prototype.searchVSCodeIssues=function(e,t){e?this.searchDuplicates(e,t):this.clearSearchResults()},t.prototype.searchExtensionIssues=function(e){var t=this.getExtensionGitHubUrl();if(e){var n=/^https?:\/\/github\.com\/(.*)/.exec(t);if(n&&n.length){var r=n[1];return this.searchGitHub(r,e)}if(this.issueReporterModel.getData().selectedExtension)return this.clearSearchResults(),this.displaySearchResults([])}this.clearSearchResults()},t.prototype.clearSearchResults=function(){
this.getElementById("similar-issues").innerHTML="",this.numberOfSearchResultsDisplayed=0},t.prototype.searchGitHub=function(e,t){var n=this,i="is:issue+repo:"+e+"+"+t,o=this.getElementById("similar-issues");window.fetch("https://api.github.com/search/issues?q="+i).then(function(i){i.json().then(function(a){if(o.innerHTML="",a&&a.items)n.displaySearchResults(a.items);else{var u=s.$("div.list-title");u.textContent=r.localize(4,null),o.appendChild(u);var c=i.headers.get("X-RateLimit-Reset"),l=c?parseInt(c)-Math.floor(Date.now()/1e3):1;n.shouldQueueSearch&&(n.shouldQueueSearch=!1,setTimeout(function(){n.searchGitHub(e,t),n.shouldQueueSearch=!0},1e3*l))}}).catch(function(e){n.logSearchError(e)})}).catch(function(e){n.logSearchError(e)})},t.prototype.searchDuplicates=function(e,t){var n=this,r={method:"POST",body:JSON.stringify({title:e,body:t}),headers:new Headers({"Content-Type":"application/json"})};window.fetch("https://vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates",r).then(function(e){
e.json().then(function(e){if(n.clearSearchResults(),!e||!e.candidates)throw new Error("Unexpected response, no candidates property");n.displaySearchResults(e.candidates)}).catch(function(e){n.logSearchError(e)})}).catch(function(e){n.logSearchError(e)})},t.prototype.displaySearchResults=function(e){var t=this,n=this.getElementById("similar-issues");if(e.length){var i=s.$("div.issues-container"),o=s.$("div.list-title");o.textContent=r.localize(5,null),this.numberOfSearchResultsDisplayed=e.length<5?e.length:5;for(var a=0;a<this.numberOfSearchResultsDisplayed;a++){var u=e[a],c=s.$("a.issue-link",{href:u.html_url});c.textContent=u.title,c.title=u.title,c.addEventListener("click",function(e){return t.openLink(e)}),c.addEventListener("auxclick",function(e){return t.openLink(e)});var l=void 0,f=void 0;if(u.state){l=s.$("span.issue-state");var d=s.$("span.issue-icon");new A.OcticonLabel(d).text="open"===u.state?"$(issue-opened)":"$(issue-closed)";var h=s.$("span.issue-state.label")
;h.textContent="open"===u.state?r.localize(6,null):r.localize(7,null),l.title="open"===u.state?r.localize(8,null):r.localize(9,null),l.appendChild(d),l.appendChild(h),f=s.$("div.issue",{},l,c)}else f=s.$("div.issue",{},c);i.appendChild(f)}n.appendChild(o),n.appendChild(i)}else{var p=s.$("div.list-title");p.textContent=r.localize(10,null),n.appendChild(p)}},t.prototype.logSearchError=function(e){this.logService.warn("issueReporter#search ",e.message),this.telemetryService.publicLog("issueReporterSearchError",{message:e.message})},t.prototype.setUpTypes=function(){var e=function(e,t){return'<option value="'+e.valueOf()+'">'+c.escape(t)+"</option>"},t=this.getElementById("issue-type"),n=this.issueReporterModel.getData().issueType;3===n?(t.innerHTML=e(3,r.localize(11,null)),t.disabled=!0):t.innerHTML=[e(0,r.localize(12,null)),e(2,r.localize(13,null)),e(1,r.localize(14,null))].join("\n"),t.value=n.toString()},t.prototype.renderBlocks=function(){
var e=this.issueReporterModel.getData(),t=e.issueType,n=e.fileOnExtension,i=this.getElementById("block-container"),o=document.querySelector(".block-system"),s=document.querySelector(".block-process"),a=document.querySelector(".block-workspace"),u=document.querySelector(".block-extensions"),c=document.querySelector(".block-searchedExtensions"),l=document.querySelector(".block-settingsSearchResults"),f=this.getElementById("problem-source"),d=this.getElementById("problem-source-help-text"),h=this.getElementById("issue-description-label"),p=this.getElementById("issue-description-subtitle"),v=this.getElementById("extension-selection");N(i),N(o),N(s),N(a),N(u),N(c),N(l),N(f),N(d),N(v),0===t?(F(i),F(o),F(f),n?F(v):(F(u),F(d)),h.innerHTML=r.localize(15,null)+' <span class="required-input">*</span>',p.innerHTML=r.localize(16,null)):1===t?(F(i),F(o),F(s),F(a),F(f),n?F(v):(F(u),F(d)),h.innerHTML=r.localize(17,null)+' <span class="required-input">*</span>',
p.innerHTML=r.localize(18,null)):2===t?(h.innerHTML=r.localize(19,null)+' <span class="required-input">*</span>',p.innerHTML=r.localize(20,null),F(f),n&&F(v)):3===t&&(F(i),F(c),F(l),h.innerHTML=r.localize(21,null)+' <span class="required-input">*</span>',p.innerHTML=r.localize(22,null))},t.prototype.validateInput=function(e){var t=this.getElementById(e);return t.value?(t.classList.remove("invalid-input"),!0):(t.classList.add("invalid-input"),!1)},t.prototype.validateInputs=function(){var e=this,t=!0;return["issue-title","description","issue-source"].forEach(function(n){t=e.validateInput(n)&&t}),this.issueReporterModel.fileOnExtension()&&(t=this.validateInput("extension-selector")&&t),t},t.prototype.createIssue=function(){var e=this;if(!this.validateInputs()){var t=document.getElementsByClassName("invalid-input");return t.length&&t[0].focus(),this.addEventListener("issue-title","input",function(t){e.validateInput("issue-title")}),this.addEventListener("description","input",function(t){
e.validateInput("description")}),this.issueReporterModel.fileOnExtension()&&this.addEventListener("extension-selector","change",function(t){e.validateInput("extension-selector")}),!1}this.telemetryService.publicLog("issueReporterSubmit",{issueType:this.issueReporterModel.getData().issueType,numSimilarIssuesDisplayed:this.numberOfSearchResultsDisplayed}),this.hasBeenSubmitted=!0;var i=this.getIssueUrlWithTitle(this.getElementById("issue-title").value),o=this.issueReporterModel.serialize(),s=i+"&body="+encodeURIComponent(o);return s.length>j&&(n.clipboard.writeText(o),s=i+"&body="+encodeURIComponent(r.localize(23,null))),n.ipcRenderer.send("vscode:openExternal",s),!0},t.prototype.getExtensionGitHubUrl=function(){var e="",t=this.getExtensionBugsUrl(),n=this.getExtensionRepositoryUrl();return t&&t.match(/^https?:\/\/github\.com\/(.*)/)?e=R.normalizeGitHubUrl(t):n&&n.match(/^https?:\/\/github\.com\/(.*)/)&&(e=R.normalizeGitHubUrl(n)),e},t.prototype.getIssueUrlWithTitle=function(e){var t=l.default.reportIssueUrl
;if(this.issueReporterModel.fileOnExtension()){var n=this.getExtensionGitHubUrl();n&&(t=n+"/issues/new")}return""+t+(-1===l.default.reportIssueUrl.indexOf("?")?"?":"&")+"title="+encodeURIComponent(e)},t.prototype.updateExtensionSelector=function(e){var t=this,n=e.map(function(e){return{name:e.displayName||e.name||"",id:e.id}});n.sort(function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase();return n>r?1:n<r?-1:0});var r=function(e){return'<option value="'+e.id+'">'+c.escape(e.name)+"</option>"},i=this.getElementById("extension-selector");i&&(i.innerHTML="<option></option>"+n.map(r).join("\n"),this.addEventListener("extension-selector","change",function(e){var n=e.target.value,r=t.issueReporterModel.getData().allExtensions.filter(function(e){return e.id===n});if(r.length){t.issueReporterModel.update({selectedExtension:r[0]});var i=t.getElementById("issue-title").value;t.searchExtensionIssues(i)}else t.issueReporterModel.update({selectedExtension:void 0}),t.clearSearchResults()}))},
t.prototype.updateExtensionTable=function(e,t){var n=document.querySelector(".block-extensions .block-info");if(n){if(this.environmentService.disableExtensions)return void(n.innerHTML=r.localize(24,null));var i=t?"\n("+t+" theme extensions excluded)":"";if(!(e=e||[]).length)return void(n.innerHTML="Extensions: none"+i);var o=this.getExtensionTableHtml(e);n.innerHTML="<table>"+o+"</table>"+i}},t.prototype.updateSearchedExtensionTable=function(e){var t=document.querySelector(".block-searchedExtensions .block-info");if(t){if(!e.length)return void(t.innerHTML="Extensions: none");var n=this.getExtensionTableHtml(e);t.innerHTML="<table>"+n+"</table>"}},t.prototype.getExtensionTableHtml=function(e){var t="\n\t\t\t<tr>\n\t\t\t\t<th>Extension</th>\n\t\t\t\t<th>Author (truncated)</th>\n\t\t\t\t<th>Version</th>\n\t\t\t</tr>";return t+=e.map(function(e){return"\n\t\t\t\t<tr>\n\t\t\t\t\t<td>"+e.name+"</td>\n\t\t\t\t\t<td>"+e.publisher.substr(0,3)+"</td>\n\t\t\t\t\t<td>"+e.version+"</td>\n\t\t\t\t</tr>"}).join("")},
t.prototype.openLink=function(e){e.preventDefault(),e.stopPropagation(),e.which<3&&(n.shell.openExternal(e.target.href),this.telemetryService.publicLog("issueReporterViewSimilarIssue"))},t.prototype.getElementById=function(e){var t=document.getElementById(e);if(t)return t;var n=new Error(e+" not found.");return this.logService.error(n),void this.telemetryService.publicLog("issueReporterGetElementError",{message:n.message})},t.prototype.addEventListener=function(e,t,n){var r=this.getElementById(e);r&&r.addEventListener(t,n)},o([h.debounce(300)],t.prototype,"searchGitHub",null),o([h.debounce(300)],t.prototype,"searchDuplicates",null),t}(v.Disposable);t.IssueReporter=W})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/bb1e228e30ce43ebb361c84fdf2f0d4fb7fda6ce/core/vs/code/electron-browser/issue/issueReporterMain.js.map
